PageSourceSearch

https://global-deep-sea-exploration-goals.vercel.app/assets/knowledgegraph-DW8fQDR0.js

js global-deep-sea-exploration-goals.vercel.app collected 2026-10-03 07:03:29 UTC 4,586 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/knowledgeGraphService-Dk6z_x99.js","assets/index-DsSzbvv0.js","assets/index-D-W0oWE6.css","assets/GraphQueryStreaming-D9WyCg76.js"])))=>i.map(i=>d[i]);
2import{C as I,Z as k,w as N,dx as C,dy as J,K as V,a4 as P,S as M,fq as W,gY as Q,gI as j}from"./index-DsSzbvv0.js";import{a as T,b as u,r as f,a1 as L,m as b,G as y,al as O,P as U,N as D,U as _,W as H,E as q,X as E,w as X,v as Y,am as Z,an as A,ao as z}from"./arcadeUtils-D1bROmST.js";import{l as B}from"./portalUtils-Bjb7So3x.js";import{p as $,n as tt}from"./project-GsuIN3gI.js";import{s as nt,m as et,t as rt,p as at,c as it}from"./GraphQueryStreaming-D9WyCg76.js";import"./TimeOnly-BPg_DIQr.js";import"./ImmutableArray-BPVd6ESQ.js";import"./number-BhMVk86J.js";import"./featureConversionUtils-Dh36I6mL.js";import"./OptimizedFeature-7juV2tZm.js";import"./OptimizedGeometry-vU5jWBvU.js";import"./OptimizedFeatureSet-Blu9Ckm7.js";import"./hash-CcEbRgUF.js";import"./utils-CYOG62il.js";import"./utils-Za-9WUOQ.js";let c=null;async function ot(t){const n=N.geometryServiceUrl??"";if(!n){C()||await J();for(const e of t)e.container[e.indexer]=V(e.container[e.indexer],P.WGS84);return}const r=t.map(e=>e.container[e.indexer]),i=new $({geometries:r,outSpatialReference:P.WGS84}),s=await tt(n,i);for(let e=0;e<s.length;e++){const a=t[e];a.container[a.indexer]=s[e]}}async function G(t,n){const r=new M({portal:t,id:n});return await r.load(),c===null&&(c=await k(()=>import("./knowledgeGraphService-Dk6z_x99.js").then(i=>i.k),__vite__mapDeps([0,1,2,3]))),await c.fetchKnowledgeGraph(r.url)}function R(t,n,r,i,s){if(t===null)return null;if(y(t)||q(t))return t;if(E(t)||E(t))return t.toJSDate();if(X(t))return t.toStorageFormat();if(Y(t))return t.toStorageString();if(Z(t)){const e={};for(const a of t.keys())e[a]=R(t.field(a),n,r,i,s),e[a]instanceof W&&s.push({container:e,indexer:a});return e}if(_(t)){const e=t.map(a=>R(a,n,r,i,s));for(let a=0;a<e.length;a++)e[a]instanceof W&&s.push({container:e,indexer:a});return e}return A(t)?t.spatialReference.isWGS84?t:t.spatialReference.isWebMercator&&n?Q(t):t:void 0}function st(t,n){if(!t)return t;if(t.spatialReference.isWGS84&&n.spatialReference.isWebMercator)return j(t);if(t.spatialReference.equals(n.spatialReference))return t;throw new u(n,f.WrongSpatialReference,null)}function v(t,n){if(!t)return null;const r={};for(const i in t)r[i]=g(t[i],n);return r}function g(t,n){return t===null?null:_(t)?t.map(r=>g(r,n)):t instanceof et?{graphTypeName:t.typeName,id:t.id,graphType:"entity",properties:v(t.properties,n)}:t instanceof rt?{graphType:"object",properties:v(t.properties,n)}:t instanceof at?{graphTypeName:t.typeName,id:t.id,graphType:"relationship",originId:t.originId??null,destinationId:t.destinationId??null,properties:v(t.properties,n)}:t instanceof it?{graphType:"path",path:t.path?t.path.map(r=>g(r,n)):null}:A(t)?st(t,n):y(t)||q(t)||z(t)?t:null}function xt(t){t.mode==="async"&&(t.functions.knowledgegraphbyportalitem=function(n,r){return t.standardFunctionAsync(n,r,(i,s,e)=>{var m,d;if(T(e,2,2,n,r),e[0]===null)throw new u(n,f.PortalRequired,r);if(e[0]instanceof L){const l=b(e[1]);let h;return h=(m=n.services)!=null&&m.portal?n.services.portal:I.getDefault(),G(B(e[0],h),l)}if(y(e[0])===!1)throw new u(n,f.InvalidParameter,r);const a=b(e[0]);return G(((d=n.services)==null?void 0:d.portal)??I.getDefault(),a)})},t.signatures.push({name:"knowledgegraphbyportalitem",min:2,max:2}),t.functions.querygraph=function(n,r){return t.standardFunctionAsync(n,r,async(i,s,e)=>{var x;T(e,2,4,n,r);const a=e[0];if(!O(a))throw new u(n,f.InvalidParameter,r);const m=e[1];if(!y(m))throw new u(n,f.InvalidParameter,r);c===null&&(c=await k(()=>import("./knowledgeGraphService-Dk6z_x99.js").then(o=>o.k),__vite__mapDeps([0,1,2,3])));let d=null;const l=U(e[2],null);if(!(l instanceof D||l===null))throw new u(n,f.InvalidParameter,r);if(l){let o=[];d=R(l,!0,!1,n,o),o=o.filter(p=>!p.container[p.indexer].spatialReference.isWGS84),o.length>0&&await ot(o)}const h=new nt({openCypherQuery:m,bindParameters:d});(((x=a==null?void 0:a.serviceDefinition)==null?void 0:x.currentVersion)??11.3)>11.2&&(h.outputSpatialReference=n.spatialReference);const F=(await c.executeQueryStreaming(a,h)).resultRowsStream.getReader(),S=[];try{for(;;){const{done:o,value:p}=await F.read();if(o)break;if(_(p))for(const w of p)S.push(g(w,n));else{const w=[];for(const K of p)w.push(g(p[K],n));S.push(w)}}}catch(o){throw o}return D.convertJsonToArcade(S,H(n),!1,!0)})},t.signatures.push({name:"querygraph",min:2,max:4}))}export{xt as registerFunctions};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.