@arcgis/core 4.31.0-next.20240705 → 4.31.0-next.20240708
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arcade/functions/geomasync.js +1 -1
- package/arcade/functions/geomsync.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{734844c5bef28f609a8c.js → 17c37078ab65f8d4046b.js} +1 -1
- package/assets/esri/core/workers/chunks/{3edc527a24cb9a4868e5.js → 20d0390504e4cc9f93f4.js} +1 -1
- package/assets/esri/core/workers/chunks/291bdab5737152bc1825.js +1 -0
- package/assets/esri/core/workers/chunks/{ef8ba10380053ea4c4dd.js → 34ea46659c8cebec3ffa.js} +1 -1
- package/assets/esri/core/workers/chunks/3de4fe7458b7844e2aae.js +1 -0
- package/assets/esri/core/workers/chunks/413609b0aa85f2052154.js +1 -0
- package/assets/esri/core/workers/chunks/5089a12084a8a8fb93d8.js +1 -0
- package/assets/esri/core/workers/chunks/527932bf4c31cec46922.js +1 -0
- package/assets/esri/core/workers/chunks/65d34a9d408c678de2ca.js +1 -0
- package/assets/esri/core/workers/chunks/{5d0761c14d6ee53dd653.js → 7447883bb4a981e6d759.js} +1 -1
- package/assets/esri/core/workers/chunks/{86f3ef84cc27de6d8540.js → 87f33a60768801ca1ce8.js} +1 -1
- package/assets/esri/core/workers/chunks/{a734359619e3eb955399.js → b4d850e82a8ae902d684.js} +1 -1
- package/assets/esri/core/workers/chunks/d85c51abde781660b1f5.js +1 -0
- package/assets/esri/core/workers/chunks/{5afc1562bb5c20127ef1.js → e840e54455eb500b501d.js} +18 -18
- package/assets/esri/themes/base/widgets/_Tooltip.scss +4 -0
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/ChapmanAtmosphere.glsl.js +1 -1
- package/chunks/ComponentShader.glsl.js +3 -3
- package/chunks/DefaultMaterial.glsl.js +1 -1
- package/chunks/EdgeShader.glsl.js +5 -6
- package/chunks/Heatmap.glsl.js +4 -4
- package/chunks/HighlightApply.glsl.js +172 -135
- package/chunks/LineCallout.glsl.js +4 -4
- package/chunks/MeasurementArrow.glsl.js +5 -5
- package/chunks/RealisticTree.glsl.js +2 -2
- package/chunks/Terrain.glsl.js +39 -39
- package/geometry/Polyline.js +1 -1
- package/geometry/SpatialReference.js +1 -1
- package/geometry/geometryEngine.js +1 -1
- package/geometry/support/geodesicUtils.js +1 -1
- package/geometry/support/meshUtils/exporters/gltf/gltf.js +1 -1
- package/layers/LinkChartLayer.js +1 -1
- package/layers/support/ElevationQuery.js +1 -1
- package/layers/video/videoUtils.js +1 -1
- package/package.json +1 -1
- package/rest/knowledgeGraph/wasmInterface/wasmToGeometryFactories.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/interactive/SnappingVisualizer2D.js +1 -1
- package/views/3d/environment/ChapmanAtmosphere.js +1 -1
- package/views/3d/environment/Fog.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/TransparencyMode.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentShader.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/Laserline.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +11 -11
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/Terrain.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/DiscardOrAdjustAlpha.glsl.js +9 -0
- package/views/3d/webgl-engine/effects/laserlines/LaserLineRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/MainFramebuffer.js +5 -0
- package/views/3d/webgl-engine/lib/RenderContext.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/Heatmap.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/HighlightApply.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/LineCallout.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/MeasurementArrow.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeShader.glsl.js +1 -1
- package/views/draw/support/Box.js +1 -1
- package/views/draw/support/Reshape.js +1 -1
- package/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js +1 -1
- package/widgets/UtilityNetworkTrace/support/GeometryHandler.js +1 -1
- package/assets/esri/core/workers/chunks/164debfd5eac01ce3121.js +0 -1
- package/assets/esri/core/workers/chunks/1972e6be738a3b9289e8.js +0 -1
- package/assets/esri/core/workers/chunks/2e62e34c85d8505c98f4.js +0 -1
- package/assets/esri/core/workers/chunks/4ef2ce12499fae8b85c4.js +0 -1
- package/assets/esri/core/workers/chunks/5bf51ad34e2d729f9048.js +0 -1
- package/assets/esri/core/workers/chunks/9a9abefa8099aa1ebc3d.js +0 -1
- package/assets/esri/core/workers/chunks/da3af488df83bd8e153b.js +0 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/AlphaDiscard.glsl.js +0 -7
- package/views/3d/webgl-engine/core/shaderLibrary/util/DiscardOrAdjustAlphaBlend.glsl.js +0 -7
- package/views/3d/webgl-engine/lib/MainColor.js +0 -5
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/DiscardByCoverage.glsl.js +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1728],{71728:(e,t,a)=>{a.r(t),a.d(t,{default:()=>N});var i,n,s=a(90237),o=(a(59456),a(5503)),r=a(49186),l=a(53966),h=a(91869),d=a(74887),u=a(10107),c=(a(44208),a(87811),a(40608)),p=a(4146),y=a(90708),g=a(92722);(n=i||(i={})).MULTIPLIER="multiplier",n.ABSOLUTE="absoluteValue";var m=a(61184),f=a(70643),C=a(45654),L=a(63074),M=a(25036),k=a(8460),w=a(71932),b=a(5443),T=a(86738),E=a(82799);let D=class extends((0,L.dM)((0,M.j)(p.A))){constructor(e){if(super(e),this.dataPreloadedInLocalCache=!1,this.defaultLinkChartConfig=null,this._currentLinkChartConfig={layoutMode:"RADIAL_TREE"},this._graphTypeLookup=new Map,this.dataManager=null,this.knowledgeGraph=null,this.layers=new o.A,this.entityLinkChartDiagramLookup=new Map,this.relationshipLinkChartDiagramLookup=new Map,this.linkChartExtent=new b.A({xmin:-1e-7,ymin:-1e-7,xmax:1e-7,ymax:1e-7}),this.memberEntityTypes=null,this.memberRelationshipTypes=null,this.sublayerIdsCache=new Map,this.tables=new o.A,this.type="link-chart",this.chronologicalAuxiliaryGraphics=null,this._originalInclusionList=e.inclusionModeDefinition,e.dataPreloadedInLocalCache&&!e.inclusionModeDefinition)throw new r.A("knowledge-graph:linkchart-layer-constructor","If creating a link chart composite layer and configured that data is already loaded in the cache, you must specify an inclusion list so the Composite Layer knows what records belong to it")}normalizeCtorArgs(e){return{url:e.url,title:e.title,dataPreloadedInLocalCache:e.dataPreloadedInLocalCache,defaultLinkChartConfig:e.defaultLinkChartConfig}}_initializeLayerProperties(e){if(!this.title&&this.url){const e=this.url.split("/");this.title=e[e.length-2]}const t=new Set;let a=[],i=[];if(e.inclusionModeDefinition&&(!e.inclusionModeDefinition.namedTypeDefinitions||e.inclusionModeDefinition.namedTypeDefinitions.size<1))throw new r.A("knowledge-graph:composite-layer-constructor","If an explicit inclusion definition is defined, at least one namedTypeDefinition must also be defined");e.knowledgeGraph.dataModel.entityTypes?.forEach((e=>{e.name&&this._graphTypeLookup.set(e.name,e)})),e.knowledgeGraph.dataModel.relationshipTypes?.forEach((e=>{e.name&&this._graphTypeLookup.set(e.name,e)})),e.inclusionModeDefinition?.generateAllSublayers?(a=e.knowledgeGraph.dataModel.entityTypes??[],i=e.knowledgeGraph.dataModel.relationshipTypes??[]):e.inclusionModeDefinition?.namedTypeDefinitions&&e.inclusionModeDefinition?.namedTypeDefinitions.size>0?e.inclusionModeDefinition?.namedTypeDefinitions.forEach(((n,s)=>{const o=this._graphTypeLookup.get(s);if(!o)return l.A.getLogger(this).warn(`A named type, ${s}, was in the inclusion list that wasn't in the data model and will be removed`),void e.inclusionModeDefinition?.namedTypeDefinitions.delete(s);"relationship"===o.type?t.has(s)||(t.add(s),i.push(o)):"entity"===o.type?t.has(s)||(t.add(s),a.push(o)):(l.A.getLogger(this).warn(`A named type, ${s}, was in the inclusion list that wasn't properly modeled and will be removed`),e.inclusionModeDefinition?.namedTypeDefinitions.delete(s))})):(a=e.knowledgeGraph.dataModel.entityTypes??[],i=e.knowledgeGraph.dataModel.relationshipTypes??[]);const n=new m.PB({knowledgeGraph:e.knowledgeGraph,inclusionModeDefinition:e.inclusionModeDefinition});this.knowledgeGraph=e.knowledgeGraph,this.memberEntityTypes=a,this.memberRelationshipTypes=i,this.dataManager=n}load(e){return this.addResolvingPromise(new Promise((t=>{(0,w.fetchKnowledgeGraph)(this.url).then((a=>{if(this._initializeLayerProperties({knowledgeGraph:a,inclusionModeDefinition:this._originalInclusionList}),this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.size||(this.dataManager.inclusionModeDefinition={generateAllSublayers:!1,namedTypeDefinitions:new Map},this.dataManager.knowledgeGraph.dataModel.entityTypes?.forEach((e=>{e.name&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.set(e.name,{useAllData:!0})})),this.dataManager.knowledgeGraph.dataModel.relationshipTypes?.forEach((e=>{e.name&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.set(e.name,{useAllData:!0})}))),this.dataPreloadedInLocalCache)this.loadLayerAssumingLocalCache(),this.dataManager.inclusionModeDefinition&&(this.dataManager.inclusionModeDefinition.generateAllSublayers=!1),this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.forEach((e=>{e.useAllData=!1,e.members?.forEach((e=>{let t;t=e.linkChartLocation instanceof g.A?e.linkChartLocation:e.linkChartLocation?(0,y.Ux)(e.linkChartLocation):null,t&&2===t.coords.length&&0===t.lengths.length?this.entityLinkChartDiagramLookup.set(e.id,t):this.relationshipLinkChartDiagramLookup.set(e.id,t)})),this.addResolvingPromise(this._initializeDiagram().then((async()=>{this.layers.forEach((async e=>{await e.refreshCachedQueryEngine()})),this.tables.forEach((async e=>{await e.refreshCachedQueryEngine()}))})))}));else{const t="GEOGRAPHIC"===this.defaultLinkChartConfig?.layoutMode;this.addResolvingPromise(this.dataManager.refreshCacheContent(void 0,!1,t,!0).then((async()=>{(0,d.Te)(e);const t=[],a=[];this.loadLayerAssumingLocalCache(),this.dataManager.inclusionModeDefinition&&(this.dataManager.inclusionModeDefinition.generateAllSublayers=!1,this.dataManager.inclusionModeDefinition.namedTypeDefinitions.forEach((e=>{e.useAllData=!1}))),await this._initializeDiagram(),this.layers.forEach((e=>{a.push(e.refreshCachedQueryEngine()),t.push(new Promise((t=>{e.on("layerview-create",(()=>{t(null)}))})))})),this.tables.forEach((e=>{a.push(e.refreshCachedQueryEngine())})),await Promise.all(a)})))}t(null)}))}))),Promise.resolve(this)}async addRecords(e,t){let a=[];t?.cascadeAddRelationshipEndNodes&&this.dataManager.knowledgeGraph.dataModel&&(a=await(0,C.aq)(e,this.dataManager.knowledgeGraph));const i=e.concat(a).filter((e=>!this.sublayerIdsCache.get(e.typeName)?.has(e.id)));await this._handleNewRecords(i)}async removeRecords(e,{cascadeRemoveRelationships:t=!0,recalculateLayout:a=!1}={cascadeRemoveRelationships:!0,recalculateLayout:!1}){let i=[];for(const t of e)!1===this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.get(t.typeName)?.useAllData&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.get(t.typeName)?.members?.has(t.id)&&i.push(t);if(t){const e=new Set,t=[];for(const t of i)if(this.dataManager.nodeConnectionsLookup.has(t.id))for(const a of this.dataManager.nodeConnectionsLookup.get(t.id))e.add(a);for(const a of e)if(this.dataManager.memberIdTypeLookup.has(a))for(const e of this.dataManager.memberIdTypeLookup.get(a))this.dataManager.relationshipTypeNames.has(e)&&t.push({id:a,typeName:e});i=i.concat(t)}this.dataManager.removeFromLayer(i);for(const e of i)this.sublayerIdsCache.get(e.typeName)?.delete(e.id),this.dataManager.relationshipTypeNames.has(e.typeName)?this.relationshipLinkChartDiagramLookup.delete(e.id):this.entityLinkChartDiagramLookup.delete(e.id);a&&await this._calculateLayoutWithSublayerTimeInfo(this._currentLinkChartConfig.layoutMode,this._currentLinkChartConfig.layoutOptions);const n=[];return this.layers.forEach((e=>{n.push(e.refreshCachedQueryEngine())})),await Promise.all(n),this._refreshNamedTypes(),i}async expand(e,t){const a=await this.dataManager.getConnectedRecordIds(e,t),i=a.filter((e=>!this.sublayerIdsCache.get(e.typeName)?.has(e.id)));return await this._handleNewRecords(a),{records:i}}loadLayerAssumingLocalCache(){this.memberRelationshipTypes.forEach((e=>{const t=new f.A({objectType:e,parentCompositeLayer:this,graphType:"relationship",title:e.name});t.geometryType?this.layers.push(t):this.tables.push(t),this.dataManager.sublayerCaches.has(e.name)||this.dataManager.sublayerCaches.set(e.name,new Map)})),this.memberEntityTypes.forEach((e=>{const t=new f.A({objectType:e,parentCompositeLayer:this,graphType:"entity",title:e.name});t.geometryType?this.layers.push(t):this.tables.push(t),this.dataManager.sublayerCaches.has(e.name)||this.dataManager.sublayerCaches.set(e.name,new Map)})),this.dataManager.inclusionModeDefinition?.namedTypeDefinitions&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.forEach(((e,t)=>{const a=(0,h.tE)(this.sublayerIdsCache,t,(()=>new Set));e.members?.forEach((e=>{if(a.add(e.id),e.linkChartLocation)if(e.linkChartLocation instanceof g.A)this.dataManager.relationshipTypeNames.has(t)?this.relationshipLinkChartDiagramLookup.set(e.id,e.linkChartLocation):this.entityLinkChartDiagramLookup.set(e.id,e.linkChartLocation);else{const a=(0,y.Ux)(e.linkChartLocation);this.dataManager.relationshipTypeNames.has(t)?this.relationshipLinkChartDiagramLookup.set(e.id,e.linkChartLocation?a:null):this.entityLinkChartDiagramLookup.set(e.id,e.linkChartLocation?a:null)}}))}))}async calculateLinkChartLayout(e="RADIAL_TREE",t){const a=[],i=[],n=[];this.dataManager.sublayerCaches.forEach(((e,t)=>{this.dataManager.entityTypeNames.has(t)?e.forEach((e=>{a.push({typeName:t,feature:e})})):this.dataManager.relationshipTypeNames.has(t)&&e.forEach((e=>{i.push({typeName:t,feature:e})}))})),this.entityLinkChartDiagramLookup=new Map,this.relationshipLinkChartDiagramLookup=new Map;const s=new Map,o=new Map,h=new Map,d=new Map,u=new Uint8Array(a.length),c=new Float64Array(a.length),p=new Float64Array(a.length),g=new Float64Array(a.length),f=new Float64Array(a.length),C=new Uint32Array(i.length),L=new Uint32Array(i.length),M=new Float64Array(i.length),w=new Float64Array(i.length),D=[],N=new b.A({xmin:-1e-7,ymin:-1e-7,xmax:1e-7,ymax:1e-7});let x,A="FORCE_DIRECTED",I=0,R=0;const v=k.i6.apply;switch(A="GEOGRAPHIC"===e?"FORCE_DIRECTED":e,A){case"FORCE_DIRECTED":x=k.pM.apply;break;case"COMMUNITY":x=k.Tu.apply;break;case"HIERARCHICAL":x=k.$C.apply;break;case"RADIAL_TREE":x=k.vJ.apply;break;case"SMART_TREE":x=k.Xq.apply;break;default:x=k.Wg.apply}let _=!1;a.forEach((({typeName:a,feature:i})=>{if("CHRONOLOGICAL"!==e&&t?.lockedNodeLocations?.has(i.attributes[m.yC])){"GEOGRAPHIC"===e&&this.dataManager.geographicLookup.has(a)?u[I]=k.tx.IsGeographic:u[I]=k.tx.None;const n=t.lockedNodeLocations.get(i.attributes[m.yC]);c[I]=n.x,p[I]=n.y}else if("GEOGRAPHIC"===e&&this.dataManager.geographicLookup.has(a)){u[I]=k.tx.IsGeographic;let e=null;const t=i.attributes[this.dataManager.geographicLookup.get(a).name],n=this.dataManager.geographicLookup.get(a)?.geometryType;switch(n){case"esriGeometryPoint":c[I]=t?.x,p[I]=t?.y;break;case"esriGeometryPolygon":e=t?.centroid,null!=e?.x&&null!=e?.y?(c[I]=e.x,p[I]=e.y):u[I]=k.tx.IsMovable;break;case"esriGeometryPolyline":case"esriGeometryMultipoint":e=t?.extent?.center,null!=e?.x&&null!=e?.y?(c[I]=e.x,p[I]=e.y):u[I]=k.tx.IsMovable;break;default:u[I]=k.tx.IsMovable}(null==c[I]||null==p[I]||Number.isNaN(c[I])||Number.isNaN(p[I]))&&(u[I]=k.tx.IsMovable,c[I]=0,p[I]=0)}else if("CHRONOLOGICAL"===e){!_&&t?.lockedNodeLocations?.has(i.attributes[m.yC])&&(_=!0);const e=t?.timeInfoByTypeName?.get(a),n=e?.startField,s=n&&e?.startField?i.attributes[n]:null;g[I]=s?new Date(s).getTime():NaN;const o=e?.endField,r=o&&e?.endField?i.attributes[o]:null;f[I]=r?new Date(r).getTime():NaN,c[I]=0,p[I]=0,u[I]=k.tx.IsMovable}else u[I]=k.tx.IsMovable,c[I]=0,p[I]=0;d.set(i.attributes[m.yC],I),D[I]={feature:i,typeName:a},I++})),_&&l.A.getLogger(this).warn("Locked node locations are not supported for chronological layout at this time. Requested node locations were ignored");let G=!1;const O=new Map;i.forEach((a=>{const i=a.feature.attributes[m.Vr],s=a.feature.attributes[m.ZL],o=d.get(i),r=d.get(s),l=t?.timeInfoByTypeName?.get(a.typeName),h=t?.timeInfoByTypeName?l?.startField:null,u=h?a.feature.attributes[h]:null,c=l?.endField,p=c?a.feature.attributes[c]:null;if(void 0!==o&&void 0!==r){let t=i+"-"+s;"CHRONOLOGICAL"===e&&(t=t+"-"+u+"-"+p);const l=O.get(t),h=l?.has(a.typeName);h||(C[R]=o,L[R]=r,"CHRONOLOGICAL"===e&&(M[R]=u?new Date(u).getTime():NaN,w[R]=p?new Date(p).getTime():NaN),void 0===l?O.set(t,new Map([[a.typeName,R]])):l.set(a.typeName,R),R++),n.push(a)}else G=!0,this.relationshipLinkChartDiagramLookup.set(i,null)})),G&&l.A.getLogger(this).warn("A relationship is a member of this layer that has either origin or destination entity nodes that are not members. The diagram geometry will be set to null");const Z=this._validateLayoutSettings(e,t),P=this._convertLayoutSettingsToCalculationSettings(Z);await(0,k.Hh)();let S=!1,F=null;if("CHRONOLOGICAL"===e){const e=!0;let t;({success:S,links:F,graphics:t}=v(u,c,p,g,f,C.subarray(0,R),L.subarray(0,R),M.subarray(0,R),w.subarray(0,R),e,{})),S&&(this.chronologicalAuxiliaryGraphics=t)}else({success:S,links:F}=x(u,c,p,C.subarray(0,R),L.subarray(0,R),P.computationBudgetTime,P.idealEdgeLengthMultiplier,P.repulsionRadiusMultiplier));if(!S)throw new r.A("knowledge-graph:layout-failed","Attempting to arrange the records in the specified layout failed");for(let e=0;e<D.length;e++){if(p[e]>84.9999?p[e]=84.9999:p[e]<-84.9999&&(p[e]=-84.9999),c[e]>179.9999?c[e]=179.9999:c[e]<-179.9999&&(c[e]=-179.9999),D[e].feature.attributes[m.sZ]=new T.A(c[e],p[e]),s.has(D[e].typeName)){const t=s.get(D[e].typeName);t?.set(D[e].feature.attributes[m.yC],D[e].feature)}else{const t=new Map;t.set(D[e].feature.attributes[m.yC],D[e].feature),s.set(D[e].typeName,t)}h.set(D[e].feature.attributes[m.yC],D[e].feature);const t=(0,y.Ux)(D[e].feature.attributes[m.sZ]);this.entityLinkChartDiagramLookup.set(D[e].feature.attributes[m.yC],D[e].feature.attributes[m.sZ]?t:null),D[e].feature.attributes[m.sZ].x<N.xmin&&(N.xmin=D[e].feature.attributes[m.sZ].x),D[e].feature.attributes[m.sZ].x>N.xmax&&(N.xmax=D[e].feature.attributes[m.sZ].x),D[e].feature.attributes[m.sZ].y<N.ymin&&(N.ymin=D[e].feature.attributes[m.sZ].y),D[e].feature.attributes[m.sZ].y>N.ymax&&(N.ymax=D[e].feature.attributes[m.sZ].y)}if(this.linkChartExtent.xmin=N.xmin,this.linkChartExtent.xmax=N.xmax,this.linkChartExtent.ymin=N.ymin,this.linkChartExtent.ymax=N.ymax,!F)throw new r.A("knowledge-graph:layout-failed","Attempting to retrieve link geometry from diagram engine failed");const B=new Map,H=new Map,U=new Map,z=new Set;for(let a=0;a<n.length;a++){const i=[],s=n[a],r=s.feature.attributes[m.Vr],u=s.feature.attributes[m.ZL];let c=r+"-"+u;if("CHRONOLOGICAL"===e){const e=t?.timeInfoByTypeName?.get(s.typeName),a=t?.timeInfoByTypeName?e?.startField:null,i=a?s.feature.attributes[a]:null,n=e?.endField;c+="-"+i+"-"+(n?s.feature.attributes[n]:null)}const p=O.get(c).get(s.typeName),g=0===p?0:F?.vertexEndIndex[p-1];if(!z.has(p)){if(z.add(p),F.types[p]===k.J.Recursive){const e=[F.vertices[2*g],F.vertices[2*g+1]],t=[F.vertices[2*(g+1)],F.vertices[2*(g+1)+1]],a=[.5*(e[0]+t[0]),.5*(e[1]+t[1])],n=[a[0]-e[0],a[1]-e[1]],s=[a[0]+n[1],a[1]-n[0]],o=[a[0]-n[1],a[1]+n[0]];i.push(e),i.push(s),i.push(t),i.push(o),i.push(e)}else{if(F.types[p]!==k.J.Regular){l.A.getLogger(this).warn("A relationship generated an unsupported link geometry type. It will not be rendered");continue}for(let e=g;e<F.vertexEndIndex[p];e++)i.push([F.vertices[2*e],F.vertices[2*e+1]])}if("CHRONOLOGICAL"!==e){const e=D[d.get(r)]?.feature.attributes[m.sZ],t=D[d.get(u)]?.feature.attributes[m.sZ];i[0][0]===e.x&&i[0][1]===e.y||(i[0]=[e.x,e.y]),i[i.length-1][0]===t.x&&i[i.length-1][1]===t.y||(i[i.length-1]=[t.x,t.y])}for(let e=1;e<i.length-1;e++)i[e][1]>85.5?i[e][1]=85.5:i[e][1]<-85.5&&(i[e][1]=-85.5),i[e][0]>179.9999?i[e][0]=179.9999:i[e][0]<-179.9999&&(i[e][0]=-179.9999);B.has(c)?B.get(c).push(i):B.set(c,[i])}const f=B.get(c);H.has(c)||(H.set(c,new Map),U.set(c,new Map));const C=H.get(c),L=U.get(c);C.has(s.typeName)||(C.set(s.typeName,f.shift()),L.set(s.typeName,0));const M=C.get(s.typeName);L.set(s.typeName,L.get(s.typeName)+1);const w=new E.A({paths:M});if(s.feature.attributes[m.sZ]=w,o.has(s.typeName)){const e=o.get(s.typeName);e?.set(s.feature.attributes[m.yC],s.feature)}else{const e=new Map;e.set(s.feature.attributes[m.yC],s.feature),o.set(s.typeName,e)}h.set(s.feature.attributes[m.yC],s.feature);const b=(0,y.Ux)(s.feature.attributes[m.sZ]);this.relationshipLinkChartDiagramLookup.set(s.feature.attributes[m.yC],s.feature.attributes[m.sZ]?b:null)}for(const e of n)e.feature.attributes[m.d4]=U.get(e.feature.attributes[m.Vr]+"-"+e.feature.attributes[m.ZL])?.get(e.typeName)??null;return this._currentLinkChartConfig={layoutMode:e,layoutOptions:Z},{nodes:s,links:o,idMap:h}}async applyNewLinkChartLayout(e="RADIAL_TREE",t){const a=[];await this._calculateLayoutWithSublayerTimeInfo(e,t),this.layers.forEach((e=>{a.push(e.refreshCachedQueryEngine())})),await Promise.all(a),this._refreshNamedTypes()}getCurrentNodeLocations(){const e=new Map;return this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.forEach((t=>{t?.members?.forEach((t=>{const a=t.linkChartLocation;let i;const n=t.id;a&&(i="x"in a?{x:a.x,y:a.y}:{x:a.coords[0],y:a.coords[1]},e.set(n,new T.A({x:i.x,y:i.y})))}))})),e}async synchronizeInclusionListWithCache(){return new Promise((e=>{this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.forEach(((e,t)=>{if(e.useAllData=!1,e.members&&e.members.size>0){if(!this.dataManager.sublayerCaches.get(t))return;const a=new Set(Array.from(this.dataManager.sublayerCaches.get(t).keys()));Array.from(e.members.keys()).filter((e=>!a.has(e))).forEach((t=>{e.members?.delete(t)}))}})),e()}))}async refreshLinkChartCache(e){await this.dataManager.refreshCacheContent(e);const t=[];this.layers.forEach((e=>{t.push(e.refreshCachedQueryEngine())})),await Promise.all(t),this._refreshNamedTypes()}async connectBetweenEntities(e){let t=[];for(const e of this.dataManager.relationshipTypeNames){const a=this.sublayerIdsCache.get(e);a&&(t=t.concat(Array.from(a.keys())))}const a=await this.dataManager.getRelationshipsBetweenNodes(e,t);return await this._handleNewRecords(a),{records:a}}async connectFromEntities(e){let t=[];for(const e of this.dataManager.relationshipTypeNames){const a=this.sublayerIdsCache.get(e);a&&(t=t.concat(Array.from(a.keys())))}let a=[];for(const e of this.dataManager.entityTypeNames){const t=this.sublayerIdsCache.get(e);t&&(a=a.concat(Array.from(t)))}const i=await this.dataManager.getRelationshipsFromNodes(e,a,t);return await this._handleNewRecords(i),{records:i}}getCurrentLayout(){return this._currentLinkChartConfig.layoutMode}async _calculateLayoutWithSublayerTimeInfo(e="RADIAL_TREE",t){const a=new Map;this.layers.forEach((e=>{a.set(e.objectType.name,e.timeInfo)})),await this.calculateLinkChartLayout(e,{timeInfoByTypeName:a,...t})}async _handleNewRecords(e){const t=[];this.dataManager.addToLayer(e);for(const a of e)this.sublayerIdsCache.has(a.typeName)||(this.sublayerIdsCache.set(a.typeName,new Set),t.push(a.typeName)),this.sublayerIdsCache.get(a.typeName).add(a.id);for(const e of t){const t=this._graphTypeLookup.get(e);if(t){const a=new f.A({objectType:t,parentCompositeLayer:this,graphType:t.type,title:e});"entity"===t.type?this.dataManager.entityTypeNames.add(e):this.dataManager.relationshipTypeNames.add(e),a.geometryType?this.layers.push(a):this.tables.push(a),this.dataManager.sublayerCaches.set(e,new Map)}}await this.dataManager.refreshCacheContent(e.map((e=>e.id)));const a=Object.assign({},this._currentLinkChartConfig.layoutOptions);a.lockedNodeLocations=new Map;for(const[e,t]of this.entityLinkChartDiagramLookup.entries())t&&a.lockedNodeLocations.set(e,new T.A(t.coords[0],t.coords[1]));await this.applyNewLinkChartLayout(this._currentLinkChartConfig.layoutMode,a)}async _initializeDiagram(){this.defaultLinkChartConfig?this.defaultLinkChartConfig.doNotRecalculateLayout?(this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.forEach(((e,t)=>{e?.members?.forEach((e=>{const a=e.linkChartLocation;let i;const n=e.id;if(!a)return;i="x"in a?{x:a.x,y:a.y}:{x:a.coords[0],y:a.coords[1]};const s=(0,y.Ux)(i);this.dataManager.relationshipTypeNames.has(t)?this.relationshipLinkChartDiagramLookup.set(n,s):this.entityLinkChartDiagramLookup.set(n,s),this.linkChartExtent.xmin>i.x&&(this.linkChartExtent.xmin=i.x),this.linkChartExtent.xmax<i.x&&(this.linkChartExtent.xmax=i.x),this.linkChartExtent.ymin>i.y&&(this.linkChartExtent.ymin=i.y),this.linkChartExtent.ymax<i.y&&(this.linkChartExtent.ymax=i.y)}))})),this.memberRelationshipTypes.forEach((e=>{e.name&&this.dataManager.sublayerCaches.get(e.name)?.forEach((e=>{const t=this.relationshipLinkChartDiagramLookup.get(e.attributes[m.Vr]),a=this.relationshipLinkChartDiagramLookup.get(e.attributes[m.ZL]);if(t&&a){const i=(0,y.Ux)(new E.A({paths:[[t.coords[0],t.coords[1]],[a.coords[0],a.coords[1]]]}));this.relationshipLinkChartDiagramLookup.set(e.attributes[m.yC],i)}else this.relationshipLinkChartDiagramLookup.set(e.attributes[m.yC],null)}))}))):await this._calculateLayoutWithSublayerTimeInfo(this.defaultLinkChartConfig.layoutMode,{lockedNodeLocations:this.getCurrentNodeLocations(),...this.defaultLinkChartConfig.layoutOptions||{}}):await this._calculateLayoutWithSublayerTimeInfo("RADIAL_TREE",{lockedNodeLocations:this.getCurrentNodeLocations()})}_refreshNamedTypes(){for(const e of this.layers)e.emit("refresh",{dataChanged:!0});for(const e of this.tables)e.emit("refresh",{dataChanged:!0})}_validateLayoutSettings(e,t){const a=e=>"number"==typeof e&&!isNaN(e),n=new Set(["FORCE_DIRECTED","COMMUNITY","GEOGRAPHIC"]),s={};if(!n.has(e)||!t)return!n.has(e)&&t&&l.A.getLogger(this).warn("Layout mode options were given for a layout mode that does not utilize them, settings will be ignored"),s;const{computationBudgetTime:o,repulsionRadiusMultiplier:r,idealEdgeLength:h,idealEdgeLengthType:d}=t;(e=>a(e)&&e>=1)(o)?s.computationBudgetTime=o:void 0!==o&&l.A.getLogger(this).warn("Invalid layout computationBudgetTime setting, will revert to default setting"),(e=>a(e)&&e>=1)(r)?s.repulsionRadiusMultiplier=r:void 0!==r&&l.A.getLogger(this).warn("Invalid layout repulsionRadiusMultiplier setting, will revert to default setting");const u=void 0!==h||void 0!==d;return"GEOGRAPHIC"!==e&&u?l.A.getLogger(this).warn("Ideal edge length settings were specified for an incompatible layout mode, and will be ignored"):"GEOGRAPHIC"===e&&u&&((e=>Object.values(i).includes(e))(d)?s.idealEdgeLengthType=d:void 0!==d&&l.A.getLogger(this).warn('Invalid layout idealEdgeLengthType setting, will revert to "multiplier" setting'),(e=>a(e)&&e>=0)(h)?s.idealEdgeLength=h:void 0!==h&&l.A.getLogger(this).warn("Invalid layout idealEdgeLength setting, will revert to default setting")),s}_convertLayoutSettingsToCalculationSettings(e){let t=e.idealEdgeLength;return e.idealEdgeLengthType===i.ABSOLUTE&&(void 0===t?t=-1:t*=-1),{computationBudgetTime:e.computationBudgetTime,repulsionRadiusMultiplier:e.repulsionRadiusMultiplier,idealEdgeLengthMultiplier:t}}};(0,s._)([(0,u.MZ)()],D.prototype,"dataPreloadedInLocalCache",void 0),(0,s._)([(0,u.MZ)()],D.prototype,"defaultLinkChartConfig",void 0),(0,s._)([(0,u.MZ)()],D.prototype,"dataManager",void 0),(0,s._)([(0,u.MZ)()],D.prototype,"knowledgeGraph",void 0),(0,s._)([(0,u.MZ)()],D.prototype,"layers",void 0),(0,s._)([(0,u.MZ)()],D.prototype,"entityLinkChartDiagramLookup",void 0),(0,s._)([(0,u.MZ)()],D.prototype,"relationshipLinkChartDiagramLookup",void 0),(0,s._)([(0,u.MZ)()],D.prototype,"linkChartExtent",void 0),(0,s._)([(0,u.MZ)()],D.prototype,"memberEntityTypes",void 0),(0,s._)([(0,u.MZ)()],D.prototype,"memberRelationshipTypes",void 0),(0,s._)([(0,u.MZ)()],D.prototype,"sublayerIdsCache",void 0),(0,s._)([(0,u.MZ)()],D.prototype,"tables",void 0),(0,s._)([(0,u.MZ)({json:{read:!1}})],D.prototype,"type",void 0),(0,s._)([(0,u.MZ)({json:{read:!1}})],D.prototype,"chronologicalAuxiliaryGraphics",void 0),D=(0,s._)([(0,c.$)("esri.layers.LinkChartLayer")],D);const N=D}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1728],{71728:(e,t,a)=>{a.r(t),a.d(t,{default:()=>N});var i,n,s=a(90237),o=(a(59456),a(5503)),r=a(49186),l=a(53966),h=a(91869),d=a(74887),u=a(10107),c=(a(44208),a(87811),a(40608)),p=a(4146),y=a(90708),g=a(92722);(n=i||(i={})).MULTIPLIER="multiplier",n.ABSOLUTE="absoluteValue";var m=a(61184),f=a(70643),C=a(45654),L=a(63074),M=a(25036),k=a(8460),w=a(71932),b=a(5443),T=a(86738),E=a(82799);let D=class extends((0,L.dM)((0,M.j)(p.A))){constructor(e){if(super(e),this.dataPreloadedInLocalCache=!1,this.defaultLinkChartConfig=null,this._currentLinkChartConfig={layoutMode:"RADIAL_TREE"},this._graphTypeLookup=new Map,this.dataManager=null,this.knowledgeGraph=null,this.layers=new o.A,this.entityLinkChartDiagramLookup=new Map,this.relationshipLinkChartDiagramLookup=new Map,this.linkChartExtent=new b.A({xmin:-1e-7,ymin:-1e-7,xmax:1e-7,ymax:1e-7}),this.memberEntityTypes=null,this.memberRelationshipTypes=null,this.sublayerIdsCache=new Map,this.tables=new o.A,this.type="link-chart",this.chronologicalAuxiliaryGraphics=null,this._originalInclusionList=e.inclusionModeDefinition,e.dataPreloadedInLocalCache&&!e.inclusionModeDefinition)throw new r.A("knowledge-graph:linkchart-layer-constructor","If creating a link chart composite layer and configured that data is already loaded in the cache, you must specify an inclusion list so the Composite Layer knows what records belong to it")}normalizeCtorArgs(e){return{url:e.url,title:e.title,dataPreloadedInLocalCache:e.dataPreloadedInLocalCache,defaultLinkChartConfig:e.defaultLinkChartConfig}}_initializeLayerProperties(e){if(!this.title&&this.url){const e=this.url.split("/");this.title=e[e.length-2]}const t=new Set;let a=[],i=[];if(e.inclusionModeDefinition&&(!e.inclusionModeDefinition.namedTypeDefinitions||e.inclusionModeDefinition.namedTypeDefinitions.size<1))throw new r.A("knowledge-graph:composite-layer-constructor","If an explicit inclusion definition is defined, at least one namedTypeDefinition must also be defined");e.knowledgeGraph.dataModel.entityTypes?.forEach((e=>{e.name&&this._graphTypeLookup.set(e.name,e)})),e.knowledgeGraph.dataModel.relationshipTypes?.forEach((e=>{e.name&&this._graphTypeLookup.set(e.name,e)})),e.inclusionModeDefinition?.generateAllSublayers?(a=e.knowledgeGraph.dataModel.entityTypes??[],i=e.knowledgeGraph.dataModel.relationshipTypes??[]):e.inclusionModeDefinition?.namedTypeDefinitions&&e.inclusionModeDefinition?.namedTypeDefinitions.size>0?e.inclusionModeDefinition?.namedTypeDefinitions.forEach(((n,s)=>{const o=this._graphTypeLookup.get(s);if(!o)return l.A.getLogger(this).warn(`A named type, ${s}, was in the inclusion list that wasn't in the data model and will be removed`),void e.inclusionModeDefinition?.namedTypeDefinitions.delete(s);"relationship"===o.type?t.has(s)||(t.add(s),i.push(o)):"entity"===o.type?t.has(s)||(t.add(s),a.push(o)):(l.A.getLogger(this).warn(`A named type, ${s}, was in the inclusion list that wasn't properly modeled and will be removed`),e.inclusionModeDefinition?.namedTypeDefinitions.delete(s))})):(a=e.knowledgeGraph.dataModel.entityTypes??[],i=e.knowledgeGraph.dataModel.relationshipTypes??[]);const n=new m.PB({knowledgeGraph:e.knowledgeGraph,inclusionModeDefinition:e.inclusionModeDefinition});this.knowledgeGraph=e.knowledgeGraph,this.memberEntityTypes=a,this.memberRelationshipTypes=i,this.dataManager=n}load(e){return this.addResolvingPromise(new Promise((t=>{(0,w.fetchKnowledgeGraph)(this.url).then((a=>{if(this._initializeLayerProperties({knowledgeGraph:a,inclusionModeDefinition:this._originalInclusionList}),this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.size||(this.dataManager.inclusionModeDefinition={generateAllSublayers:!1,namedTypeDefinitions:new Map},this.dataManager.knowledgeGraph.dataModel.entityTypes?.forEach((e=>{e.name&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.set(e.name,{useAllData:!0})})),this.dataManager.knowledgeGraph.dataModel.relationshipTypes?.forEach((e=>{e.name&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.set(e.name,{useAllData:!0})}))),this.dataPreloadedInLocalCache)this.loadLayerAssumingLocalCache(),this.dataManager.inclusionModeDefinition&&(this.dataManager.inclusionModeDefinition.generateAllSublayers=!1),this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.forEach((e=>{e.useAllData=!1,e.members?.forEach((e=>{let t;t=e.linkChartLocation instanceof g.A?e.linkChartLocation:e.linkChartLocation?(0,y.Ux)(e.linkChartLocation):null,t&&2===t.coords.length&&0===t.lengths.length?this.entityLinkChartDiagramLookup.set(e.id,t):this.relationshipLinkChartDiagramLookup.set(e.id,t)})),this.addResolvingPromise(this._initializeDiagram().then((async()=>{this.layers.forEach((async e=>{await e.refreshCachedQueryEngine()})),this.tables.forEach((async e=>{await e.refreshCachedQueryEngine()}))})))}));else{const t="GEOGRAPHIC"===this.defaultLinkChartConfig?.layoutMode;this.addResolvingPromise(this.dataManager.refreshCacheContent(void 0,!1,t,!0).then((async()=>{(0,d.Te)(e);const t=[],a=[];this.loadLayerAssumingLocalCache(),this.dataManager.inclusionModeDefinition&&(this.dataManager.inclusionModeDefinition.generateAllSublayers=!1,this.dataManager.inclusionModeDefinition.namedTypeDefinitions.forEach((e=>{e.useAllData=!1}))),await this._initializeDiagram(),this.layers.forEach((e=>{a.push(e.refreshCachedQueryEngine()),t.push(new Promise((t=>{e.on("layerview-create",(()=>{t(null)}))})))})),this.tables.forEach((e=>{a.push(e.refreshCachedQueryEngine())})),await Promise.all(a)})))}t(null)}))}))),Promise.resolve(this)}async addRecords(e,t){let a=[];t?.cascadeAddRelationshipEndNodes&&this.dataManager.knowledgeGraph.dataModel&&(a=await(0,C.aq)(e,this.dataManager.knowledgeGraph));const i=e.concat(a).filter((e=>!this.sublayerIdsCache.get(e.typeName)?.has(e.id)));await this._handleNewRecords(i)}async removeRecords(e,{cascadeRemoveRelationships:t=!0,recalculateLayout:a=!1}={cascadeRemoveRelationships:!0,recalculateLayout:!1}){let i=[];for(const t of e)!1===this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.get(t.typeName)?.useAllData&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.get(t.typeName)?.members?.has(t.id)&&i.push(t);if(t){const e=new Set,t=[];for(const t of i)if(this.dataManager.nodeConnectionsLookup.has(t.id))for(const a of this.dataManager.nodeConnectionsLookup.get(t.id))e.add(a);for(const a of e)if(this.dataManager.memberIdTypeLookup.has(a))for(const e of this.dataManager.memberIdTypeLookup.get(a))this.dataManager.relationshipTypeNames.has(e)&&t.push({id:a,typeName:e});i=i.concat(t)}this.dataManager.removeFromLayer(i);for(const e of i)this.sublayerIdsCache.get(e.typeName)?.delete(e.id),this.dataManager.relationshipTypeNames.has(e.typeName)?this.relationshipLinkChartDiagramLookup.delete(e.id):this.entityLinkChartDiagramLookup.delete(e.id);a&&await this._calculateLayoutWithSublayerTimeInfo(this._currentLinkChartConfig.layoutMode,this._currentLinkChartConfig.layoutOptions);const n=[];return this.layers.forEach((e=>{n.push(e.refreshCachedQueryEngine())})),await Promise.all(n),this._refreshNamedTypes(),i}async expand(e,t){const a=await this.dataManager.getConnectedRecordIds(e,t),i=a.filter((e=>!this.sublayerIdsCache.get(e.typeName)?.has(e.id)));return await this._handleNewRecords(a),{records:i}}loadLayerAssumingLocalCache(){this.memberRelationshipTypes.forEach((e=>{const t=new f.A({objectType:e,parentCompositeLayer:this,graphType:"relationship",title:e.name});t.geometryType?this.layers.push(t):this.tables.push(t),this.dataManager.sublayerCaches.has(e.name)||this.dataManager.sublayerCaches.set(e.name,new Map)})),this.memberEntityTypes.forEach((e=>{const t=new f.A({objectType:e,parentCompositeLayer:this,graphType:"entity",title:e.name});t.geometryType?this.layers.push(t):this.tables.push(t),this.dataManager.sublayerCaches.has(e.name)||this.dataManager.sublayerCaches.set(e.name,new Map)})),this.dataManager.inclusionModeDefinition?.namedTypeDefinitions&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.forEach(((e,t)=>{const a=(0,h.tE)(this.sublayerIdsCache,t,(()=>new Set));e.members?.forEach((e=>{if(a.add(e.id),e.linkChartLocation)if(e.linkChartLocation instanceof g.A)this.dataManager.relationshipTypeNames.has(t)?this.relationshipLinkChartDiagramLookup.set(e.id,e.linkChartLocation):this.entityLinkChartDiagramLookup.set(e.id,e.linkChartLocation);else{const a=(0,y.Ux)(e.linkChartLocation);this.dataManager.relationshipTypeNames.has(t)?this.relationshipLinkChartDiagramLookup.set(e.id,e.linkChartLocation?a:null):this.entityLinkChartDiagramLookup.set(e.id,e.linkChartLocation?a:null)}}))}))}async calculateLinkChartLayout(e="RADIAL_TREE",t){const a=[],i=[],n=[];this.dataManager.sublayerCaches.forEach(((e,t)=>{this.dataManager.entityTypeNames.has(t)?e.forEach((e=>{a.push({typeName:t,feature:e})})):this.dataManager.relationshipTypeNames.has(t)&&e.forEach((e=>{i.push({typeName:t,feature:e})}))})),this.entityLinkChartDiagramLookup=new Map,this.relationshipLinkChartDiagramLookup=new Map;const s=new Map,o=new Map,h=new Map,d=new Map,u=new Uint8Array(a.length),c=new Float64Array(a.length),p=new Float64Array(a.length),g=new Float64Array(a.length),f=new Float64Array(a.length),C=new Uint32Array(i.length),L=new Uint32Array(i.length),M=new Float64Array(i.length),w=new Float64Array(i.length),D=[],N=new b.A({xmin:-1e-7,ymin:-1e-7,xmax:1e-7,ymax:1e-7});let x,A="FORCE_DIRECTED",I=0,R=0;const v=k.i6.apply;switch(A="GEOGRAPHIC"===e?"FORCE_DIRECTED":e,A){case"FORCE_DIRECTED":x=k.pM.apply;break;case"COMMUNITY":x=k.Tu.apply;break;case"HIERARCHICAL":x=k.$C.apply;break;case"RADIAL_TREE":x=k.vJ.apply;break;case"SMART_TREE":x=k.Xq.apply;break;default:x=k.Wg.apply}let _=!1;a.forEach((({typeName:a,feature:i})=>{if("CHRONOLOGICAL"!==e&&t?.lockedNodeLocations?.has(i.attributes[m.yC])){"GEOGRAPHIC"===e&&this.dataManager.geographicLookup.has(a)?u[I]=k.tx.IsGeographic:u[I]=k.tx.None;const n=t.lockedNodeLocations.get(i.attributes[m.yC]);c[I]=n.x,p[I]=n.y}else if("GEOGRAPHIC"===e&&this.dataManager.geographicLookup.has(a)){u[I]=k.tx.IsGeographic;let e=null;const t=i.attributes[this.dataManager.geographicLookup.get(a).name],n=this.dataManager.geographicLookup.get(a)?.geometryType;switch(n){case"esriGeometryPoint":c[I]=t?.x,p[I]=t?.y;break;case"esriGeometryPolygon":e=t?.centroid,null!=e?.x&&null!=e?.y?(c[I]=e.x,p[I]=e.y):u[I]=k.tx.IsMovable;break;case"esriGeometryPolyline":case"esriGeometryMultipoint":e=t?.extent?.center,null!=e?.x&&null!=e?.y?(c[I]=e.x,p[I]=e.y):u[I]=k.tx.IsMovable;break;default:u[I]=k.tx.IsMovable}(null==c[I]||null==p[I]||Number.isNaN(c[I])||Number.isNaN(p[I]))&&(u[I]=k.tx.IsMovable,c[I]=0,p[I]=0)}else if("CHRONOLOGICAL"===e){!_&&t?.lockedNodeLocations?.has(i.attributes[m.yC])&&(_=!0);const e=t?.timeInfoByTypeName?.get(a),n=e?.startField,s=n&&e?.startField?i.attributes[n]:null;g[I]=s?new Date(s).getTime():NaN;const o=e?.endField,r=o&&e?.endField?i.attributes[o]:null;f[I]=r?new Date(r).getTime():NaN,c[I]=0,p[I]=0,u[I]=k.tx.IsMovable}else u[I]=k.tx.IsMovable,c[I]=0,p[I]=0;d.set(i.attributes[m.yC],I),D[I]={feature:i,typeName:a},I++})),_&&l.A.getLogger(this).warn("Locked node locations are not supported for chronological layout at this time. Requested node locations were ignored");let G=!1;const O=new Map;i.forEach((a=>{const i=a.feature.attributes[m.Vr],s=a.feature.attributes[m.ZL],o=d.get(i),r=d.get(s),l=t?.timeInfoByTypeName?.get(a.typeName),h=t?.timeInfoByTypeName?l?.startField:null,u=h?a.feature.attributes[h]:null,c=l?.endField,p=c?a.feature.attributes[c]:null;if(void 0!==o&&void 0!==r){let t=i+"-"+s;"CHRONOLOGICAL"===e&&(t=t+"-"+u+"-"+p);const l=O.get(t),h=l?.has(a.typeName);h||(C[R]=o,L[R]=r,"CHRONOLOGICAL"===e&&(M[R]=u?new Date(u).getTime():NaN,w[R]=p?new Date(p).getTime():NaN),void 0===l?O.set(t,new Map([[a.typeName,R]])):l.set(a.typeName,R),R++),n.push(a)}else G=!0,this.relationshipLinkChartDiagramLookup.set(i,null)})),G&&l.A.getLogger(this).warn("A relationship is a member of this layer that has either origin or destination entity nodes that are not members. The diagram geometry will be set to null");const Z=this._validateLayoutSettings(e,t),P=this._convertLayoutSettingsToCalculationSettings(Z);await(0,k.Hh)();let S=!1,F=null;if("CHRONOLOGICAL"===e){const e=!0;let t;({success:S,links:F,graphics:t}=v(u,c,p,g,f,C.subarray(0,R),L.subarray(0,R),M.subarray(0,R),w.subarray(0,R),e,{})),S&&(this.chronologicalAuxiliaryGraphics=t)}else({success:S,links:F}=x(u,c,p,C.subarray(0,R),L.subarray(0,R),P.computationBudgetTime,P.idealEdgeLengthMultiplier,P.repulsionRadiusMultiplier));if(!S)throw new r.A("knowledge-graph:layout-failed","Attempting to arrange the records in the specified layout failed");for(let e=0;e<D.length;e++){if(p[e]>84.9999?p[e]=84.9999:p[e]<-84.9999&&(p[e]=-84.9999),c[e]>179.9999?c[e]=179.9999:c[e]<-179.9999&&(c[e]=-179.9999),D[e].feature.attributes[m.sZ]=new T.A(c[e],p[e]),s.has(D[e].typeName)){const t=s.get(D[e].typeName);t?.set(D[e].feature.attributes[m.yC],D[e].feature)}else{const t=new Map;t.set(D[e].feature.attributes[m.yC],D[e].feature),s.set(D[e].typeName,t)}h.set(D[e].feature.attributes[m.yC],D[e].feature);const t=(0,y.Ux)(D[e].feature.attributes[m.sZ]);this.entityLinkChartDiagramLookup.set(D[e].feature.attributes[m.yC],D[e].feature.attributes[m.sZ]?t:null),D[e].feature.attributes[m.sZ].x<N.xmin&&(N.xmin=D[e].feature.attributes[m.sZ].x),D[e].feature.attributes[m.sZ].x>N.xmax&&(N.xmax=D[e].feature.attributes[m.sZ].x),D[e].feature.attributes[m.sZ].y<N.ymin&&(N.ymin=D[e].feature.attributes[m.sZ].y),D[e].feature.attributes[m.sZ].y>N.ymax&&(N.ymax=D[e].feature.attributes[m.sZ].y)}if(this.linkChartExtent.xmin=N.xmin,this.linkChartExtent.xmax=N.xmax,this.linkChartExtent.ymin=N.ymin,this.linkChartExtent.ymax=N.ymax,!F)throw new r.A("knowledge-graph:layout-failed","Attempting to retrieve link geometry from diagram engine failed");const B=new Map,H=new Map,U=new Map,z=new Set;for(let a=0;a<n.length;a++){const i=[],s=n[a],r=s.feature.attributes[m.Vr],u=s.feature.attributes[m.ZL];let c=r+"-"+u;if("CHRONOLOGICAL"===e){const e=t?.timeInfoByTypeName?.get(s.typeName),a=t?.timeInfoByTypeName?e?.startField:null,i=a?s.feature.attributes[a]:null,n=e?.endField;c+="-"+i+"-"+(n?s.feature.attributes[n]:null)}const p=O.get(c).get(s.typeName),g=0===p?0:F?.vertexEndIndex[p-1];if(!z.has(p)){if(z.add(p),F.types[p]===k.J.Recursive){const e=[F.vertices[2*g],F.vertices[2*g+1]],t=[F.vertices[2*(g+1)],F.vertices[2*(g+1)+1]],a=[.5*(e[0]+t[0]),.5*(e[1]+t[1])],n=[a[0]-e[0],a[1]-e[1]],s=[a[0]+n[1],a[1]-n[0]],o=[a[0]-n[1],a[1]+n[0]];i.push(e),i.push(s),i.push(t),i.push(o),i.push(e)}else{if(F.types[p]!==k.J.Regular){l.A.getLogger(this).warn("A relationship generated an unsupported link geometry type. It will not be rendered");continue}for(let e=g;e<F.vertexEndIndex[p];e++)i.push([F.vertices[2*e],F.vertices[2*e+1]])}if("CHRONOLOGICAL"!==e){const e=D[d.get(r)]?.feature.attributes[m.sZ],t=D[d.get(u)]?.feature.attributes[m.sZ];i[0][0]===e.x&&i[0][1]===e.y||(i[0]=[e.x,e.y]),i[i.length-1][0]===t.x&&i[i.length-1][1]===t.y||(i[i.length-1]=[t.x,t.y])}for(let e=1;e<i.length-1;e++)i[e][1]>85.5?i[e][1]=85.5:i[e][1]<-85.5&&(i[e][1]=-85.5),i[e][0]>179.9999?i[e][0]=179.9999:i[e][0]<-179.9999&&(i[e][0]=-179.9999);B.has(c)?B.get(c).push(i):B.set(c,[i])}const f=B.get(c);H.has(c)||(H.set(c,new Map),U.set(c,new Map));const C=H.get(c),L=U.get(c);C.has(s.typeName)||(C.set(s.typeName,f.shift()),L.set(s.typeName,0));const M=C.get(s.typeName);L.set(s.typeName,L.get(s.typeName)+1);const w=new E.A({paths:[M]});if(s.feature.attributes[m.sZ]=w,o.has(s.typeName)){const e=o.get(s.typeName);e?.set(s.feature.attributes[m.yC],s.feature)}else{const e=new Map;e.set(s.feature.attributes[m.yC],s.feature),o.set(s.typeName,e)}h.set(s.feature.attributes[m.yC],s.feature);const b=(0,y.Ux)(s.feature.attributes[m.sZ]);this.relationshipLinkChartDiagramLookup.set(s.feature.attributes[m.yC],s.feature.attributes[m.sZ]?b:null)}for(const e of n)e.feature.attributes[m.d4]=U.get(e.feature.attributes[m.Vr]+"-"+e.feature.attributes[m.ZL])?.get(e.typeName)??null;return this._currentLinkChartConfig={layoutMode:e,layoutOptions:Z},{nodes:s,links:o,idMap:h}}async applyNewLinkChartLayout(e="RADIAL_TREE",t){const a=[];await this._calculateLayoutWithSublayerTimeInfo(e,t),this.layers.forEach((e=>{a.push(e.refreshCachedQueryEngine())})),await Promise.all(a),this._refreshNamedTypes()}getCurrentNodeLocations(){const e=new Map;return this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.forEach((t=>{t?.members?.forEach((t=>{const a=t.linkChartLocation;let i;const n=t.id;a&&(i="x"in a?{x:a.x,y:a.y}:{x:a.coords[0],y:a.coords[1]},e.set(n,new T.A({x:i.x,y:i.y})))}))})),e}async synchronizeInclusionListWithCache(){return new Promise((e=>{this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.forEach(((e,t)=>{if(e.useAllData=!1,e.members&&e.members.size>0){if(!this.dataManager.sublayerCaches.get(t))return;const a=new Set(Array.from(this.dataManager.sublayerCaches.get(t).keys()));Array.from(e.members.keys()).filter((e=>!a.has(e))).forEach((t=>{e.members?.delete(t)}))}})),e()}))}async refreshLinkChartCache(e){await this.dataManager.refreshCacheContent(e);const t=[];this.layers.forEach((e=>{t.push(e.refreshCachedQueryEngine())})),await Promise.all(t),this._refreshNamedTypes()}async connectBetweenEntities(e){let t=[];for(const e of this.dataManager.relationshipTypeNames){const a=this.sublayerIdsCache.get(e);a&&(t=t.concat(Array.from(a.keys())))}const a=await this.dataManager.getRelationshipsBetweenNodes(e,t);return await this._handleNewRecords(a),{records:a}}async connectFromEntities(e){let t=[];for(const e of this.dataManager.relationshipTypeNames){const a=this.sublayerIdsCache.get(e);a&&(t=t.concat(Array.from(a.keys())))}let a=[];for(const e of this.dataManager.entityTypeNames){const t=this.sublayerIdsCache.get(e);t&&(a=a.concat(Array.from(t)))}const i=await this.dataManager.getRelationshipsFromNodes(e,a,t);return await this._handleNewRecords(i),{records:i}}getCurrentLayout(){return this._currentLinkChartConfig.layoutMode}async _calculateLayoutWithSublayerTimeInfo(e="RADIAL_TREE",t){const a=new Map;this.layers.forEach((e=>{a.set(e.objectType.name,e.timeInfo)})),await this.calculateLinkChartLayout(e,{timeInfoByTypeName:a,...t})}async _handleNewRecords(e){const t=[];this.dataManager.addToLayer(e);for(const a of e)this.sublayerIdsCache.has(a.typeName)||(this.sublayerIdsCache.set(a.typeName,new Set),t.push(a.typeName)),this.sublayerIdsCache.get(a.typeName).add(a.id);for(const e of t){const t=this._graphTypeLookup.get(e);if(t){const a=new f.A({objectType:t,parentCompositeLayer:this,graphType:t.type,title:e});"entity"===t.type?this.dataManager.entityTypeNames.add(e):this.dataManager.relationshipTypeNames.add(e),a.geometryType?this.layers.push(a):this.tables.push(a),this.dataManager.sublayerCaches.set(e,new Map)}}await this.dataManager.refreshCacheContent(e.map((e=>e.id)));const a=Object.assign({},this._currentLinkChartConfig.layoutOptions);a.lockedNodeLocations=new Map;for(const[e,t]of this.entityLinkChartDiagramLookup.entries())t&&a.lockedNodeLocations.set(e,new T.A(t.coords[0],t.coords[1]));await this.applyNewLinkChartLayout(this._currentLinkChartConfig.layoutMode,a)}async _initializeDiagram(){this.defaultLinkChartConfig?this.defaultLinkChartConfig.doNotRecalculateLayout?(this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.forEach(((e,t)=>{e?.members?.forEach((e=>{const a=e.linkChartLocation;let i;const n=e.id;if(!a)return;i="x"in a?{x:a.x,y:a.y}:{x:a.coords[0],y:a.coords[1]};const s=(0,y.Ux)(i);this.dataManager.relationshipTypeNames.has(t)?this.relationshipLinkChartDiagramLookup.set(n,s):this.entityLinkChartDiagramLookup.set(n,s),this.linkChartExtent.xmin>i.x&&(this.linkChartExtent.xmin=i.x),this.linkChartExtent.xmax<i.x&&(this.linkChartExtent.xmax=i.x),this.linkChartExtent.ymin>i.y&&(this.linkChartExtent.ymin=i.y),this.linkChartExtent.ymax<i.y&&(this.linkChartExtent.ymax=i.y)}))})),this.memberRelationshipTypes.forEach((e=>{e.name&&this.dataManager.sublayerCaches.get(e.name)?.forEach((e=>{const t=this.relationshipLinkChartDiagramLookup.get(e.attributes[m.Vr]),a=this.relationshipLinkChartDiagramLookup.get(e.attributes[m.ZL]);if(t&&a){const i=(0,y.Ux)(new E.A({paths:[[[t.coords[0],t.coords[1]],[a.coords[0],a.coords[1]]]]}));this.relationshipLinkChartDiagramLookup.set(e.attributes[m.yC],i)}else this.relationshipLinkChartDiagramLookup.set(e.attributes[m.yC],null)}))}))):await this._calculateLayoutWithSublayerTimeInfo(this.defaultLinkChartConfig.layoutMode,{lockedNodeLocations:this.getCurrentNodeLocations(),...this.defaultLinkChartConfig.layoutOptions||{}}):await this._calculateLayoutWithSublayerTimeInfo("RADIAL_TREE",{lockedNodeLocations:this.getCurrentNodeLocations()})}_refreshNamedTypes(){for(const e of this.layers)e.emit("refresh",{dataChanged:!0});for(const e of this.tables)e.emit("refresh",{dataChanged:!0})}_validateLayoutSettings(e,t){const a=e=>"number"==typeof e&&!isNaN(e),n=new Set(["FORCE_DIRECTED","COMMUNITY","GEOGRAPHIC"]),s={};if(!n.has(e)||!t)return!n.has(e)&&t&&l.A.getLogger(this).warn("Layout mode options were given for a layout mode that does not utilize them, settings will be ignored"),s;const{computationBudgetTime:o,repulsionRadiusMultiplier:r,idealEdgeLength:h,idealEdgeLengthType:d}=t;(e=>a(e)&&e>=1)(o)?s.computationBudgetTime=o:void 0!==o&&l.A.getLogger(this).warn("Invalid layout computationBudgetTime setting, will revert to default setting"),(e=>a(e)&&e>=1)(r)?s.repulsionRadiusMultiplier=r:void 0!==r&&l.A.getLogger(this).warn("Invalid layout repulsionRadiusMultiplier setting, will revert to default setting");const u=void 0!==h||void 0!==d;return"GEOGRAPHIC"!==e&&u?l.A.getLogger(this).warn("Ideal edge length settings were specified for an incompatible layout mode, and will be ignored"):"GEOGRAPHIC"===e&&u&&((e=>Object.values(i).includes(e))(d)?s.idealEdgeLengthType=d:void 0!==d&&l.A.getLogger(this).warn('Invalid layout idealEdgeLengthType setting, will revert to "multiplier" setting'),(e=>a(e)&&e>=0)(h)?s.idealEdgeLength=h:void 0!==h&&l.A.getLogger(this).warn("Invalid layout idealEdgeLength setting, will revert to default setting")),s}_convertLayoutSettingsToCalculationSettings(e){let t=e.idealEdgeLength;return e.idealEdgeLengthType===i.ABSOLUTE&&(void 0===t?t=-1:t*=-1),{computationBudgetTime:e.computationBudgetTime,repulsionRadiusMultiplier:e.repulsionRadiusMultiplier,idealEdgeLengthMultiplier:t}}};(0,s._)([(0,u.MZ)()],D.prototype,"dataPreloadedInLocalCache",void 0),(0,s._)([(0,u.MZ)()],D.prototype,"defaultLinkChartConfig",void 0),(0,s._)([(0,u.MZ)()],D.prototype,"dataManager",void 0),(0,s._)([(0,u.MZ)()],D.prototype,"knowledgeGraph",void 0),(0,s._)([(0,u.MZ)()],D.prototype,"layers",void 0),(0,s._)([(0,u.MZ)()],D.prototype,"entityLinkChartDiagramLookup",void 0),(0,s._)([(0,u.MZ)()],D.prototype,"relationshipLinkChartDiagramLookup",void 0),(0,s._)([(0,u.MZ)()],D.prototype,"linkChartExtent",void 0),(0,s._)([(0,u.MZ)()],D.prototype,"memberEntityTypes",void 0),(0,s._)([(0,u.MZ)()],D.prototype,"memberRelationshipTypes",void 0),(0,s._)([(0,u.MZ)()],D.prototype,"sublayerIdsCache",void 0),(0,s._)([(0,u.MZ)()],D.prototype,"tables",void 0),(0,s._)([(0,u.MZ)({json:{read:!1}})],D.prototype,"type",void 0),(0,s._)([(0,u.MZ)({json:{read:!1}})],D.prototype,"chronologicalAuxiliaryGraphics",void 0),D=(0,s._)([(0,c.$)("esri.layers.LinkChartLayer")],D);const N=D}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9933],{39933:(e,t,l)=>{l.r(t),l.d(t,{build:()=>s.b}),l(46686),l(32680),l(49255),l(76591),l(76597),l(82991),l(96336),l(10764),l(39014),l(53466),l(92700),l(54154),l(9169),l(3452),l(8881),l(98619),l(51343),l(22393),l(59469),l(25618),l(986),l(
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9933],{39933:(e,t,l)=>{l.r(t),l.d(t,{build:()=>s.b}),l(46686),l(32680),l(49255),l(76591),l(76597),l(82991),l(96336),l(10764),l(39014),l(53466),l(92700),l(54154),l(9169),l(3452),l(8881),l(98619),l(51343),l(22393),l(59469),l(25618),l(986),l(11955),l(27950),l(20693),l(33079),l(71988),l(20304),l(2597),l(85977),l(63761),l(46540),l(60517);var s=l(57323)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8541,1053,2731,3209],{11053:(e,t,n)=>{n.d(t,{c:()=>r,g:()=>a});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},12731:(e,t,n)=>{n.r(t),n.d(t,{hydratedAdapter:()=>u});var r=n(5443),a=n(48526),i=n(86738),o=n(39829),c=n(82799);const u={convertToGEGeometry:function(e,t){if(null==t)return null;let n="cache"in t?t.cache._geVersion:void 0;return null==n&&(n=e.convertJSONToGeometry(t),"cache"in t&&(t.cache._geVersion=n)),n},exportPoint:function(e,t,n){const r=e.hasZ(t),a=e.hasM(t),o=new i.A({x:e.getPointX(t),y:e.getPointY(t),spatialReference:n});return r&&(o.z=e.getPointZ(t)),a&&(o.m=e.getPointM(t)),o.cache._geVersion=t,o},exportPolygon:function(e,t,n){const r=new o.A({rings:e.exportPaths(t),hasZ:e.hasZ(t),hasM:e.hasM(t),spatialReference:n});return r.cache._geVersion=t,r},exportPolyline:function(e,t,n){const r=new c.A({paths:e.exportPaths(t),hasZ:e.hasZ(t),hasM:e.hasM(t),spatialReference:n});return r.cache._geVersion=t,r},exportMultipoint:function(e,t,n){const r=new a.A({hasZ:e.hasZ(t),hasM:e.hasM(t),points:e.exportPoints(t),spatialReference:n});return r.cache._geVersion=t,r},exportExtent:function(e,t,n){const a=e.hasZ(t),i=e.hasM(t),o=new r.A({xmin:e.getXMin(t),ymin:e.getYMin(t),xmax:e.getXMax(t),ymax:e.getYMax(t),spatialReference:n});if(a){const n=e.getZExtent(t);o.zmin=n.vmin,o.zmax=n.vmax}if(i){const n=e.getMExtent(t);o.mmin=n.vmin,o.mmax=n.vmax}return o.cache._geVersion=t,o}}},33209:(e,t,n)=>{n.r(t),n.d(t,{buffer:()=>T,changeDefaultSpatialReferenceTolerance:()=>q,clearDefaultSpatialReferenceTolerance:()=>B,clip:()=>d,contains:()=>f,convexHull:()=>M,crosses:()=>l,cut:()=>s,densify:()=>H,difference:()=>v,disjoint:()=>g,distance:()=>p,equals:()=>h,extendedSpatialReferenceInfo:()=>u,flipHorizontal:()=>L,flipVertical:()=>O,generalize:()=>k,geodesicArea:()=>I,geodesicBuffer:()=>b,geodesicDensify:()=>J,geodesicLength:()=>X,intersect:()=>S,intersectLinesToPoints:()=>Y,intersects:()=>y,isSimple:()=>w,nearestCoordinate:()=>_,nearestVertex:()=>D,nearestVertices:()=>z,offset:()=>Z,overlaps:()=>x,planarArea:()=>N,planarLength:()=>j,relate:()=>m,rotate:()=>E,simplify:()=>R,symmetricDifference:()=>P,touches:()=>A,union:()=>V,within:()=>G}),n(59456);var r=n(56507),a=n(49930),i=n(12731),o=n(16930);function c(e){const t=Array.isArray(e)?e[0].spatialReference:e.spatialReference;return t?(0,r.PZ)(o.A,t):o.A.WGS84}function u(e){return a.G.extendedSpatialReferenceInfo(e)}function d(e,t){return a.G.clip(i.hydratedAdapter,c(e),e,t)}function s(e,t){return a.G.cut(i.hydratedAdapter,c(e),e,t)}function f(e,t){return a.G.contains(i.hydratedAdapter,c(e),e,t)}function l(e,t){return a.G.crosses(i.hydratedAdapter,c(e),e,t)}function p(e,t,n){return a.G.distance(i.hydratedAdapter,c(e),e,t,n)}function h(e,t){return a.G.equals(i.hydratedAdapter,c(e),e,t)}function y(e,t){return a.G.intersects(i.hydratedAdapter,c(e),e,t)}function A(e,t){return a.G.touches(i.hydratedAdapter,c(e),e,t)}function G(e,t){return a.G.within(i.hydratedAdapter,c(e),e,t)}function g(e,t){return a.G.disjoint(i.hydratedAdapter,c(e),e,t)}function x(e,t){return a.G.overlaps(i.hydratedAdapter,c(e),e,t)}function m(e,t,n){return a.G.relate(i.hydratedAdapter,c(e),e,t,n)}function w(e){return a.G.isSimple(i.hydratedAdapter,c(e),e)}function R(e){return a.G.simplify(i.hydratedAdapter,c(e),e)}function M(e,t=!1){return a.G.convexHull(i.hydratedAdapter,c(e),e,t)}function v(e,t){return a.G.difference(i.hydratedAdapter,c(e),e,t)}function P(e,t){return a.G.symmetricDifference(i.hydratedAdapter,c(e),e,t)}function S(e,t){return a.G.intersect(i.hydratedAdapter,c(e),e,t)}function V(e,t=null){return a.G.union(i.hydratedAdapter,c(e),e,t)}function Z(e,t,n,r,o,u){return a.G.offset(i.hydratedAdapter,c(e),e,t,n,r,o,u)}function T(e,t,n,r=!1){return a.G.buffer(i.hydratedAdapter,c(e),e,t,n,r)}function b(e,t,n,r,o,u){return a.G.geodesicBuffer(i.hydratedAdapter,c(e),e,t,n,r,o,u)}function _(e,t,n=!0){return a.G.nearestCoordinate(i.hydratedAdapter,c(e),e,t,n)}function D(e,t){return a.G.nearestVertex(i.hydratedAdapter,c(e),e,t)}function z(e,t,n,r){return a.G.nearestVertices(i.hydratedAdapter,c(e),e,t,n,r)}function C(e){return"xmin"in e?"center"in e?e.center:null:"x"in e?e:"extent"in e?e.extent?.center??null:null}function E(e,t,n){if(null==e)throw new W;const r=e.spatialReference;if(null==(n=n??C(e)))throw new W;const i=e.constructor.fromJSON(a.G.rotate(e,t,n));return i.spatialReference=r,i}function L(e,t){if(null==e)throw new W;const n=e.spatialReference;if(null==(t=t??C(e)))throw new W;const r=e.constructor.fromJSON(a.G.flipHorizontal(e,t));return r.spatialReference=n,r}function O(e,t){if(null==e)throw new W;const n=e.spatialReference;if(null==(t=t??C(e)))throw new W;const r=e.constructor.fromJSON(a.G.flipVertical(e,t));return r.spatialReference=n,r}function k(e,t,n,r){return a.G.generalize(i.hydratedAdapter,c(e),e,t,n,r)}function H(e,t,n){return a.G.densify(i.hydratedAdapter,c(e),e,t,n)}function J(e,t,n,r=0){return a.G.geodesicDensify(i.hydratedAdapter,c(e),e,t,n,r)}function N(e,t){return a.G.planarArea(i.hydratedAdapter,c(e),e,t)}function j(e,t){return a.G.planarLength(i.hydratedAdapter,c(e),e,t)}function I(e,t,n){return a.G.geodesicArea(i.hydratedAdapter,c(e),e,t,n)}function X(e,t,n){return a.G.geodesicLength(i.hydratedAdapter,c(e),e,t,n)}function Y(e,t){return a.G.intersectLinesToPoints(i.hydratedAdapter,c(e),e,t)}function q(e,t){a.G.changeDefaultSpatialReferenceTolerance(e,t)}function B(e){a.G.clearDefaultSpatialReferenceTolerance(e)}class W extends Error{constructor(){super("Illegal Argument Exception")}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5141],{5141:(e,t,l)=>{l.r(t),l.d(t,{build:()=>s.b}),l(46686),l(32680),l(49255),l(76591),l(76597),l(82991),l(96336),l(10764),l(39014),l(53466),l(92700),l(72824),l(54154),l(9169),l(77695),l(3452),l(8881),l(98619),l(51343),l(62602),l(22393),l(59469),l(25618),l(51406),l(986),l(
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5141],{5141:(e,t,l)=>{l.r(t),l.d(t,{build:()=>s.b}),l(46686),l(32680),l(49255),l(76591),l(76597),l(82991),l(96336),l(10764),l(39014),l(53466),l(92700),l(72824),l(54154),l(9169),l(77695),l(3452),l(8881),l(98619),l(51343),l(62602),l(22393),l(59469),l(25618),l(51406),l(986),l(11955),l(27950),l(20693),l(33079),l(71988),l(20304),l(2597),l(85977),l(63761),l(46540),l(60517);var s=l(28491)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1932],{35448:(e,t,r)=>{var n,o,i,a,s,p,l;r.d(t,{Eq:()=>n,bV:()=>i,nP:()=>s,r5:()=>o,ti:()=>p,vy:()=>l,wr:()=>a}),function(e){e[e.Regular=0]="Regular",e[e.Provenance=1]="Provenance",e[e.Document=2]="Document"}(n||(n={})),function(e){e[e.esriFieldTypeSmallInteger=0]="esriFieldTypeSmallInteger",e[e.esriFieldTypeInteger=1]="esriFieldTypeInteger",e[e.esriFieldTypeSingle=2]="esriFieldTypeSingle",e[e.esriFieldTypeDouble=3]="esriFieldTypeDouble",e[e.esriFieldTypeString=4]="esriFieldTypeString",e[e.esriFieldTypeDate=5]="esriFieldTypeDate",e[e.esriFieldTypeOID=6]="esriFieldTypeOID",e[e.esriFieldTypeGeometry=7]="esriFieldTypeGeometry",e[e.esriFieldTypeBlob=8]="esriFieldTypeBlob",e[e.esriFieldTypeRaster=9]="esriFieldTypeRaster",e[e.esriFieldTypeGUID=10]="esriFieldTypeGUID",e[e.esriFieldTypeGlobalID=11]="esriFieldTypeGlobalID",e[e.esriFieldTypeXML=12]="esriFieldTypeXML",e[e.esriFieldTypeBigInteger=13]="esriFieldTypeBigInteger",e[e.esriFieldTypeDateOnly=14]="esriFieldTypeDateOnly",e[e.esriFieldTypeTimeOnly=15]="esriFieldTypeTimeOnly",e[e.esriFieldTypeTimestampOffset=16]="esriFieldTypeTimestampOffset"}(o||(o={})),function(e){e[e.esriGeometryNull=0]="esriGeometryNull",e[e.esriGeometryPoint=1]="esriGeometryPoint",e[e.esriGeometryMultipoint=2]="esriGeometryMultipoint",e[e.esriGeometryPolyline=3]="esriGeometryPolyline",e[e.esriGeometryPolygon=4]="esriGeometryPolygon",e[e.esriGeometryEnvelope=5]="esriGeometryEnvelope",e[e.esriGeometryAny=6]="esriGeometryAny",e[e.esriGeometryMultiPatch=7]="esriGeometryMultiPatch"}(i||(i={})),function(e){e[e.esriMethodHintUNSPECIFIED=0]="esriMethodHintUNSPECIFIED",e[e.esriUUIDESRI=1]="esriUUIDESRI",e[e.esriUUIDRFC4122=2]="esriUUIDRFC4122"}(a||(a={})),function(e){e[e.esriTypeUNSPECIFIED=0]="esriTypeUNSPECIFIED",e[e.esriTypeEntity=1]="esriTypeEntity",e[e.esriTypeRelationship=2]="esriTypeRelationship",e[e.esriTypeBoth=4]="esriTypeBoth"}(s||(s={})),function(e){e[e.esriGraphPropertyUNSPECIFIED=0]="esriGraphPropertyUNSPECIFIED",e[e.esriGraphPropertyRegular=1]="esriGraphPropertyRegular",e[e.esriGraphPropertyDocumentName=2]="esriGraphPropertyDocumentName",e[e.esriGraphPropertyDocumentTitle=3]="esriGraphPropertyDocumentTitle",e[e.esriGraphPropertyDocumentUrl=4]="esriGraphPropertyDocumentUrl",e[e.esriGraphPropertyDocumentText=5]="esriGraphPropertyDocumentText",e[e.esriGraphPropertyDocumentKeywords=6]="esriGraphPropertyDocumentKeywords",e[e.esriGraphPropertyDocumentContentType=7]="esriGraphPropertyDocumentContentType",e[e.esriGraphPropertyDocumentMetadata=8]="esriGraphPropertyDocumentMetadata",e[e.esriGraphPropertyDocumentFileExtension=9]="esriGraphPropertyDocumentFileExtension",e[e.esriGraphPropertyProvenanceInstanceId=10]="esriGraphPropertyProvenanceInstanceId",e[e.esriGraphPropertyProvenanceSourceType=11]="esriGraphPropertyProvenanceSourceType",e[e.esriGraphPropertyProvenanceSourceName=12]="esriGraphPropertyProvenanceSourceName",e[e.esriGraphPropertyProvenanceSource=13]="esriGraphPropertyProvenanceSource",e[e.esriGraphPropertyProvenanceComment=14]="esriGraphPropertyProvenanceComment",e[e.esriGraphPropertyProvenanceTypeName=15]="esriGraphPropertyProvenanceTypeName",e[e.esriGraphPropertyProvenancePropertyName=16]="esriGraphPropertyProvenancePropertyName"}(p||(p={})),function(e){e[e.esriIdentifierInfoTypeUNSPECIFIED=0]="esriIdentifierInfoTypeUNSPECIFIED",e[e.esriIdentifierInfoTypeDatabaseNative=1]="esriIdentifierInfoTypeDatabaseNative",e[e.esriIdentifierInfoTypeUniformProperty=2]="esriIdentifierInfoTypeUniformProperty"}(l||(l={}))},45724:(e,t,r)=>{r.d(t,{I:()=>p});var n=r(2741),o=r(44208);const i="esri/rest/knowledgeGraph/wasmInterface/";let a,s=null;async function p(){const e=s??a;if(e)return e;const t=(0,o.A)("wasm-simd");return a=l(t),a}async function l(e){if(e){const{default:e}=await r.e(5367).then(r.bind(r,15367)).then((e=>e.a));return e({locateFile:e=>(0,n.s)(i+e)})}const{default:t}=await r.e(9013).then(r.bind(r,29013)).then((e=>e.a));return t({locateFile:e=>(0,n.s)(i+e)})}},71932:(e,t,r)=>{r.r(t),r.d(t,{_fetchWrapper:()=>Ze,executeApplyEdits:()=>Ae,executeQuery:()=>Se,executeQueryStreaming:()=>Pe,executeSearch:()=>be,executeSearchStreaming:()=>xe,fetchKnowledgeGraph:()=>ke,kgRestServices:()=>Re,refreshDataModel:()=>Oe,refreshServiceDefinition:()=>je}),r(59456);var n=r(70333),o=r(78888),i=r(49186),a=r(53966),s=r(90237),p=r(69622),l=r(10107),d=(r(44208),r(87811),r(40608));let u=class extends p.A{constructor(e){super(e),this.headerKeys=[],this.outSpatialReference=null,this.exceededTransferLimit=!1}};(0,s._)([(0,l.MZ)()],u.prototype,"headerKeys",void 0),(0,s._)([(0,l.MZ)()],u.prototype,"outSpatialReference",void 0),(0,s._)([(0,l.MZ)()],u.prototype,"exceededTransferLimit",void 0),u=(0,s._)([(0,d.$)("esri.rest.knowledgeGraph.GraphQueryResultHeader")],u);const c=u;let y=class extends p.A{constructor(e){super(e),this.resultRows=[],this.resultHeader=new c}};(0,s._)([(0,l.MZ)()],y.prototype,"resultRows",void 0),(0,s._)([(0,l.MZ)()],y.prototype,"resultHeader",void 0),y=(0,s._)([(0,d.$)("esri.rest.knowledgeGraph.GraphQueryResult")],y);const h=y;let f=class extends p.A{constructor(e){super(e),this.resultRowsStream=new ReadableStream,this.resultHeader=new c}};(0,s._)([(0,l.MZ)()],f.prototype,"resultRowsStream",void 0),(0,s._)([(0,l.MZ)()],f.prototype,"resultHeader",void 0),f=(0,s._)([(0,d.$)("esri.rest.knowledgeGraph.GraphQueryStreamingResult")],f);const _=f;var g=r(25482),w=r(16930);let m=class extends g.oY{constructor(e){super(e),this.name=null,this.unique=null,this.ascending=null,this.description=null,this.fieldNames=null}};(0,s._)([(0,l.MZ)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,s._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"unique",void 0),(0,s._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"ascending",void 0),(0,s._)([(0,l.MZ)({type:String,json:{write:!0}})],m.prototype,"description",void 0),(0,s._)([(0,l.MZ)({type:[String],json:{write:!0}})],m.prototype,"fieldNames",void 0),m=(0,s._)([(0,d.$)("esri.rest.knowledgeGraph.FieldIndex")],m);const v=m;let E=class extends g.oY{constructor(e){super(e),this.name=null,this.alias=null,this.fieldType=null,this.geometryType=null,this.hasM=null,this.hasZ=null,this.nullable=null,this.editable=null,this.required=null,this.defaultVisibility=null,this.systemMaintained=null,this.role=null,this.defaultValue=null}};(0,s._)([(0,l.MZ)({type:String,json:{write:!0}})],E.prototype,"name",void 0),(0,s._)([(0,l.MZ)({type:String,json:{write:!0}})],E.prototype,"alias",void 0),(0,s._)([(0,l.MZ)({type:String,json:{write:!0}})],E.prototype,"fieldType",void 0),(0,s._)([(0,l.MZ)({type:String,json:{write:!0}})],E.prototype,"geometryType",void 0),(0,s._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],E.prototype,"hasM",void 0),(0,s._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],E.prototype,"hasZ",void 0),(0,s._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],E.prototype,"nullable",void 0),(0,s._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],E.prototype,"editable",void 0),(0,s._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],E.prototype,"required",void 0),(0,s._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],E.prototype,"defaultVisibility",void 0),(0,s._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],E.prototype,"systemMaintained",void 0),(0,s._)([(0,l.MZ)({type:String,json:{write:!0}})],E.prototype,"role",void 0),(0,s._)([(0,l.MZ)({json:{write:!0}})],E.prototype,"defaultValue",void 0),E=(0,s._)([(0,d.$)("esri.rest.knowledgeGraph.GraphProperty")],E);const T=E;let M=class extends g.oY{constructor(e){super(e),this.name=null,this.alias=null,this.role=null,this.strict=null,this.properties=null,this.fieldIndexes=null,this.type=null}};(0,s._)([(0,l.MZ)({type:String,json:{write:!0}})],M.prototype,"name",void 0),(0,s._)([(0,l.MZ)({type:String,json:{write:!0}})],M.prototype,"alias",void 0),(0,s._)([(0,l.MZ)({type:String,json:{write:!0}})],M.prototype,"role",void 0),(0,s._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],M.prototype,"strict",void 0),(0,s._)([(0,l.MZ)({type:[T],json:{write:!0}})],M.prototype,"properties",void 0),(0,s._)([(0,l.MZ)({type:[v],json:{write:!0}})],M.prototype,"fieldIndexes",void 0),M=(0,s._)([(0,d.$)("esri.rest.knowledgeGraph.GraphObjectType")],M);const G=M;let I=class extends G{constructor(e){super(e),this.type="entity"}};I=(0,s._)([(0,d.$)("esri.rest.knowledgeGraph.EntityType")],I);const R=I;let A=class extends G{constructor(e){super(e),this.endPoints=[],this.type="relationship"}};(0,s._)([(0,l.MZ)()],A.prototype,"endPoints",void 0),A=(0,s._)([(0,d.$)("esri.rest.knowledgeGraph.RelationshipType")],A);const S=A;let P=class extends g.oY{constructor(e){super(e),this.timestamp=null,this.spatialReference=null,this.strict=null,this.objectIdField=null,this.globalIdField=null,this.arcgisManaged=null,this.identifierInfo=null,this.searchIndexes=null,this.entityTypes=null,this.relationshipTypes=null,this.metaEntityTypes=null}};(0,s._)([(0,l.MZ)({type:Date,json:{type:Number,write:{writer:(e,t)=>{t.timestamp=e?.getTime()}}}})],P.prototype,"timestamp",void 0),(0,s._)([(0,l.MZ)({type:w.A,json:{write:!0}})],P.prototype,"spatialReference",void 0),(0,s._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],P.prototype,"strict",void 0),(0,s._)([(0,l.MZ)({type:String,json:{write:!0}})],P.prototype,"objectIdField",void 0),(0,s._)([(0,l.MZ)({type:String,json:{write:!0}})],P.prototype,"globalIdField",void 0),(0,s._)([(0,l.MZ)()],P.prototype,"arcgisManaged",void 0),(0,s._)([(0,l.MZ)()],P.prototype,"identifierInfo",void 0),(0,s._)([(0,l.MZ)()],P.prototype,"searchIndexes",void 0),(0,s._)([(0,l.MZ)({type:[R],json:{write:!0}})],P.prototype,"entityTypes",void 0),(0,s._)([(0,l.MZ)({type:[S],json:{write:!0}})],P.prototype,"relationshipTypes",void 0),(0,s._)([(0,l.MZ)({type:[R],json:{write:!0}})],P.prototype,"metaEntityTypes",void 0),P=(0,s._)([(0,d.$)("esri.rest.knowledgeGraph.DataModel")],P);const b=P;let x=class extends g.oY{constructor(e){super(e),this.capabilities=[],this.supportsSearch=!1,this.supportedQueryFormats=[],this.allowGeometryUpdates=!1,this.searchMaxRecordCount=null,this.serviceCapabilities=null,this.maxRecordCount=null,this.description="",this.copyrightText="",this.units="",this.spatialReference=null,this.currentVersion=null,this.dateFieldsTimeReference=null,this.serviceItemId="",this.supportsDocuments=!1,this.dataEditingNotSupported=!1,this.schemaEditingNotSupported=!1,this.supportsProvenance=!1}};(0,s._)([(0,l.MZ)({type:[String],json:{write:!0}})],x.prototype,"capabilities",void 0),(0,s._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],x.prototype,"supportsSearch",void 0),(0,s._)([(0,l.MZ)({type:[String],json:{write:!0}})],x.prototype,"supportedQueryFormats",void 0),(0,s._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],x.prototype,"allowGeometryUpdates",void 0),(0,s._)([(0,l.MZ)({type:Number,json:{write:!0}})],x.prototype,"searchMaxRecordCount",void 0),(0,s._)([(0,l.MZ)({type:Object,json:{write:!0}})],x.prototype,"serviceCapabilities",void 0),(0,s._)([(0,l.MZ)({type:Number,json:{write:!0}})],x.prototype,"maxRecordCount",void 0),(0,s._)([(0,l.MZ)({type:String,json:{write:!0}})],x.prototype,"description",void 0),(0,s._)([(0,l.MZ)({type:String,json:{write:!0}})],x.prototype,"copyrightText",void 0),(0,s._)([(0,l.MZ)({type:String,json:{write:!0}})],x.prototype,"units",void 0),(0,s._)([(0,l.MZ)({type:w.A,json:{write:!0}})],x.prototype,"spatialReference",void 0),(0,s._)([(0,l.MZ)({type:Number,json:{write:!0}})],x.prototype,"currentVersion",void 0),(0,s._)([(0,l.MZ)({type:Object,json:{write:!0}})],x.prototype,"dateFieldsTimeReference",void 0),(0,s._)([(0,l.MZ)({type:String,json:{write:!0}})],x.prototype,"serviceItemId",void 0),(0,s._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],x.prototype,"supportsDocuments",void 0),(0,s._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],x.prototype,"dataEditingNotSupported",void 0),(0,s._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],x.prototype,"schemaEditingNotSupported",void 0),(0,s._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],x.prototype,"supportsProvenance",void 0),x=(0,s._)([(0,d.$)("esri.rest.knowledgeGraph.ServiceDefinition")],x);const k=x;let O=class extends g.oY{constructor(e){super(e),this.dataModel=null,this.serviceDefinition=null}};(0,s._)([(0,l.MZ)({type:String,json:{write:!0}})],O.prototype,"url",void 0),(0,s._)([(0,l.MZ)({type:b,json:{write:!0}})],O.prototype,"dataModel",void 0),(0,s._)([(0,l.MZ)({type:k,json:{write:!0}})],O.prototype,"serviceDefinition",void 0),O=(0,s._)([(0,d.$)("esri.rest.knowledgeGraph.KnowledgeGraph")],O);const j=O;var Z,F,D,N=r(45724),L=r(48526),C=r(86738),z=r(39829),Y=r(82799);!function(e){e[e.OBJECT=0]="OBJECT",e[e.ENTITY=1]="ENTITY",e[e.RELATIONSHIP=2]="RELATIONSHIP",e[e.PATH=3]="PATH",e[e.ARRAY=4]="ARRAY"}(Z||(Z={})),function(e){e[e.view=0]="view",e[e.edit=1]="edit"}(F||(F={})),function(e){e[e.exclude=0]="exclude",e[e.include=1]="include"}(D||(D={}));var q=r(91075);function U(e,t){const r=new t.ArrayValue;return r.deleteLater(),e.forEach((e=>{r.add_value(B(e,t))})),r}function H(e,t){const r=new t.ObjectValue;r.deleteLater();for(const[n,o]of Object.entries(e))r.set_key_value(n,B(o,t));return r}function Q(e,t){if(e instanceof L.A)return function(e,t){const r=new t.GeometryValue;r.deleteLater(),r.geometry_type=r.geometry_type=t.esriGeometryType.esriGeometryMultipoint,r.has_z=e.hasZ,r.has_m=e.hasM;const n=[],o=[];o[0]=e.points.length;let i=0;return e.points.forEach((e=>{e.forEach((e=>{n[i]=e,i++}))})),r.coords=new Float64Array(n),r.lengths=new Uint32Array(o),r}(e,t);if(e instanceof C.A)return function(e,t){const r=new t.GeometryValue;r.deleteLater(),r.geometry_type=t.esriGeometryType.esriGeometryPoint,r.has_z=e.hasZ,r.has_m=e.hasM;const n=[],o=[];o[0]=1,n[0]=e.x,n[1]=e.y;let i=2;return e.hasZ&&(n[i]=e.z,i++),e.hasM&&(n[i]=e.m,i++),r.coords=new Float64Array(n),r.lengths=new Uint32Array(o),r}(e,t);if(e instanceof Y.A||e instanceof z.A)return function(e,t){const r=new t.GeometryValue;r.deleteLater(),r.has_z=e.hasZ,r.has_m=e.hasM;const n=[],o=[];let i=[];e instanceof Y.A?(r.geometry_type=t.esriGeometryType.esriGeometryPolyline,i=e.paths):e instanceof z.A&&(r.geometry_type=t.esriGeometryType.esriGeometryPolygon,i=e.rings);let a=0,s=0;return i.forEach((e=>{let t=0;e.forEach((e=>{t++,e.forEach((e=>{n[s]=e,s++}))})),o[a]=t,a++})),r.coords=new Float64Array(n),r.lengths=new Uint32Array(o),r}(e,t);throw new i.A("knowledge-graph:unsupported-geometry","Only Point, Multipoint, Polyline, and Polygon geometry are supported by ArcGIS Knowledge",{geometry:e})}function B(e,t){if(null==e)return"";if("object"!=typeof e)return e;if(e instanceof Date)return e;if(e instanceof q.A)return Q(e,t);if(Array.isArray(e)){const r=new t.ArrayValue;return r.deleteLater(),e.forEach((e=>{r.add_value(B(e,t))})),r}return H(e,t)}var V=r(25927),W=r(23150);function $(e,t){if(!e.typeName)throw new i.A("knowledge-graph:no-type-name","You must indicate the entity/relationship named object type to apply edits");if(e instanceof V.A){const r=new t.EntityValue;r.deleteLater(),r.type_name=e.typeName;for(const[n,o]of Object.entries(e.properties))r.set_key_value(n,K(o,t));return e.id&&r.set_id(e.id),r}if(e instanceof W.A){const r=new t.RelationshipValue;r.deleteLater(),r.type_name=e.typeName;for(const[n,o]of Object.entries(e.properties))r.set_key_value(n,K(o,t));return e.id&&r.set_id(e.id),e.originId&&e.destinationId&&r.set_related_entity_ids(e.originId,e.destinationId),r}throw new i.A("knowledge-graph:applyEdits-encoding-failure","Could not determine the type of a named graph object passed to the encoder")}function K(e,t){return null==e?null:"object"!=typeof e||e instanceof Date?e:e instanceof q.A?Q(e,t):null}let J=class extends p.A{constructor(e){super(e),this.name=null,this.supportedCategory=null,this.analyzers=[],this.searchProperties=new Map}};(0,s._)([(0,l.MZ)()],J.prototype,"name",void 0),(0,s._)([(0,l.MZ)()],J.prototype,"supportedCategory",void 0),(0,s._)([(0,l.MZ)()],J.prototype,"analyzers",void 0),(0,s._)([(0,l.MZ)()],J.prototype,"searchProperties",void 0),J=(0,s._)([(0,d.$)("esri.rest.knowledgeGraph.SearchIndex")],J);const X=J;var ee=r(35448);function te(e){return e.deleteLater(),new R(ne(e))}function re(e){return e.deleteLater(),new v({name:e.name,unique:e.unique,ascending:e.ascending,description:e.description,fieldNames:se(e.fields)})}function ne(e){return{name:e.name,alias:e.alias,role:ee.Eq[e.role.value]?ee.Eq[e.role.value]:null,strict:e.strict,properties:pe(e.properties),fieldIndexes:le(e.field_indexes)}}function oe(e){return e.deleteLater(),new T({alias:e.alias,name:e.name,fieldType:ee.r5[e.field_type.value]?ee.r5[e.field_type.value]:null,geometryType:ee.bV[e.geometry_type.value]?ee.bV[e.geometry_type.value]:null,hasM:e.has_m,hasZ:e.has_z,nullable:e.nullable,editable:e.editable,required:e.required,defaultVisibility:e.default_visibility,systemMaintained:e.system_maintained,role:ee.ti[e.role.value],defaultValue:e.default_value})}function ie(e){e.deleteLater();const t=ne(e),r=[];for(let t=0;t<e.end_points.size();t++){const n=e.end_points.get(t);r.push({originEntityType:n.origin_entity_type,destinationEntityType:n.dest_entity_type})}return e.end_points.delete(),new S(Object.assign({endPoints:r},t))}function ae(e){const t=[];for(let r=0;r<e.size();r++)t.push(te(e.get(r)));return e.delete(),t}function se(e){const t=[];for(let r=0;r<e.size();r++)t.push(e.get(r));return e.delete(),t}function pe(e){const t=[];for(let r=0;r<e.size();r++)t.push(oe(e.get(r)));return e.delete(),t}function le(e){const t=[];for(let r=0;r<e.size();r++)t.push(re(e.get(r)));return e.delete(),t}function de(e){const t=[];for(let r=0;r<e.size();r++)t.push(ie(e.get(r)));return e.delete(),t}function ue(e){const t=[];for(let r=0;r<e.size();r++){const r=new X,n=e.get(0);r.name=n.name,r.supportedCategory=ee.nP[n.supported_category.value];const o=n.analyzers.size();for(let e=0;e<o;e++)r.analyzers.push({name:n.analyzers.get(e).name});n.analyzers.delete();for(let e=0;e<n.search_properties.keys().size();e++){const t=n.search_properties.keys().get(e),o=n.search_properties.get(t),i=[];for(let e=0;e<o.property_names.size();e++)i.push(o.property_names.get(e));r.searchProperties.set(t,{propertyNames:i})}t.push(r)}return e.delete(),t}r(77901);var ce,ye=r(40662),he=r(42095);function fe(e,t){const r={paths:[],hasM:!1,hasZ:!1},n=_e(e,r),{coords:o,geometry_type:a,lengths:s}=e;if(a.value!==t)throw new i.A("KnowledgeGraph:illegal-geometry-type","Illegal Geometry type for multipath conversion");let p=0;return s.forEach((e=>{const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e[t]=o[p],p++;t.push(e)}r.paths.push(t)})),r}function _e(e,t){let r=2;return e.has_z?(t.hasZ=e.has_z,r++):t.hasZ=!1,e.has_m?(t.hasM=e.has_m,r++):t.hasM=!1,r}!function(e){e[e.ESRI_GEOMETRY_NULL=0]="ESRI_GEOMETRY_NULL",e[e.ESRI_GEOMETRY_POINT=1]="ESRI_GEOMETRY_POINT",e[e.ESRI_GEOMETRY_MULTIPOINT=2]="ESRI_GEOMETRY_MULTIPOINT",e[e.ESRI_GEOMETRY_POLYLINE=3]="ESRI_GEOMETRY_POLYLINE",e[e.ESRI_GEOMETRY_POLYGON=4]="ESRI_GEOMETRY_POLYGON",e[e.ESRI_GEOMETRY_ENVELOPE=5]="ESRI_GEOMETRY_ENVELOPE",e[e.ESRI_GEOMETRY_ANY=6]="ESRI_GEOMETRY_ANY",e[e.ESRI_GEOMETRY_MULTI_PATCH=7]="ESRI_GEOMETRY_MULTI_PATCH"}(ce||(ce={}));const ge=()=>a.A.getLogger("esri.rest.knowledgeGraph.WasmToQueryResponseObjConstructors"),we={decodedWasmObjToQueryResponseObj:(e,t,r)=>{if(null==e)return null;if("object"!=typeof e)return e;if("getDate"in e)return e;if("geometry_type"in e)switch(e.geometry_type.value){case null:return null;case ce.ESRI_GEOMETRY_POINT:return function(e,t){const r={spatialReference:t};let n=2;_e(e,r);const o=e.coords;return r.x=o[0],r.y=o[1],e.has_z&&(r.z=o[n],n++),e.has_m&&(r.m=o[n]),new C.A(r)}(e,r);case ce.ESRI_GEOMETRY_MULTIPOINT:return function(e,t){const r={spatialReference:t},n=_e(e,r),o=e.lengths,i=e.coords,a=o[0];r.points=[];let s=0;for(let e=0;e<a;e++){const e=[];for(let t=0;t<n;t++)e[t]=i[s],s++;r.points.push(e)}return new L.A(r)}(e,r);case ce.ESRI_GEOMETRY_POLYLINE:return function(e,t){const{paths:r,hasM:n,hasZ:o}=fe(e,ce.ESRI_GEOMETRY_POLYLINE);return new Y.A({paths:r,hasM:n,hasZ:o,spatialReference:t})}(e,r);case ce.ESRI_GEOMETRY_POLYGON:return function(e,t){const{paths:r,hasM:n,hasZ:o}=fe(e,ce.ESRI_GEOMETRY_POLYGON);return new z.A({rings:r,hasM:n,hasZ:o,spatialReference:t})}(e,r);case ce.ESRI_GEOMETRY_ENVELOPE:case ce.ESRI_GEOMETRY_MULTI_PATCH:return ge().warnOnce("Envelope and Multipatch are not supported on knowledge entities, but one of those geometry types was detected. Result interpreted as null"),null;case ce.ESRI_GEOMETRY_NULL:case ce.ESRI_GEOMETRY_ANY:default:return ge().warnOnce("Unknown or blank geometry type returned - Result interpreted as null"),null}else{if(!("object_value_type"in e))return ge().warnOnce("A decoded value came back of a type that is not supported. Result interpreted as null"),null;switch(e.object_value_type.value){case Z.OBJECT:return function(e,t,r){return new ye.A(Ee(e,t,r))}(e,t,r);case Z.ENTITY:return ve(e,t,r);case Z.RELATIONSHIP:return Te(e,t,r);case Z.PATH:return function(e,t,r){const n=e.entity_count(),o=e.relationship_count(),i=[];for(let a=0;a<n;a++)i.push(ve(e.get_entity_at(a),t,r)),a<o&&i.push(Te(e.get_relationship_at(a),t,r));return new he.A({path:i})}(e,t,r);case Z.ARRAY:return function(e,t,r){const n=[],o=e.count();for(let i=0;i<o;i++){const o=e.get_value_at(i);n.push(me(o,t,r))}return n}(e,t,r);default:return ge().warnOnce("Unknown graph object type detected! Result interpreted as null"),null}}}};function me(e,t,r){return we.decodedWasmObjToQueryResponseObj(e,t,r)}function ve(e,t,r){const n=e.type_name,o=Ee(e,t,r),i=e.get_id();return new V.A(Object.assign({typeName:n,id:i},o))}function Ee(e,t,r){const n={},o=e.key_count();for(let i=0;i<o;i++)n[e.get_key_at(i)]=me(e.get_value_at(i),t,r);return{properties:n}}function Te(e,t,r){const n=e.type_name,o=Ee(e,t,r);return new W.A(Object.assign({typeName:n,id:e.get_id(),originId:e.get_origin_entity_id(),destinationId:e.get_destination_entity_id()},o))}function Me(e){const t=[];for(let r=0;r<e.get_header_keys().size();r++)t.push(e.get_header_keys().get(r));const r=new w.A(e.get_out_sr());return new c({headerKeys:t,outSpatialReference:r,exceededTransferLimit:e.exceeded_transfer_limit()})}let Ge=class extends p.A{constructor(e){super(e),this.hasError=null,this.error=null,this.editResults=[]}};(0,s._)([(0,l.MZ)()],Ge.prototype,"hasError",void 0),(0,s._)([(0,l.MZ)()],Ge.prototype,"error",void 0),(0,s._)([(0,l.MZ)()],Ge.prototype,"editResults",void 0),Ge=(0,s._)([(0,d.$)("esri.rest.knowledgeGraph.GraphApplyEditsResult")],Ge);const Ie=Ge,Re={fetchKnowledgeGraph:async e=>{const t=new j({url:e}),r=[];return r.push(Oe(t)),r.push(je(t)),await Promise.all(r),t},refreshDataModel:async e=>{e.dataModel=await Ye(e)},refreshServiceDefinition:async e=>{const t=(await(0,o.A)(e.url,{query:{f:"json"}})).data;return t.capabilities=t?.capabilities?.split(","),t.supportedQueryFormats=t?.supportedQueryFormats?.split(","),e.serviceDefinition=new k(t),e.serviceDefinition},executeQueryStreaming:async(e,t,r)=>{const n=`${e.url}/graph/query`;await Fe(e);const o=await Le(n,r);if(!e.serviceDefinition?.supportsProvenance&&"include"===t.provenanceBehavior)throw new i.A("knowledge-graph:provenance-not-supported","The Knowledge Graph Service definition indicated that provenance is not supported");o.data.body=await async function(e,t){const r=await(0,N.I)(),n=new r.GraphQueryRequestEncoder;if(n.deleteLater(),e.outputSpatialReference?n.output_spatial_reference={wkid:e.outputSpatialReference.wkid,latestWkid:e.outputSpatialReference.latestWkid,vcsWkid:e.outputSpatialReference.vcsWkid,latestVcsWkid:e.outputSpatialReference.latestVcsWkid,wkt:e.outputSpatialReference.wkt??""}:n.output_spatial_reference=r.SpatialReferenceUtil.WGS84(),n.open_cypher_query=e.openCypherQuery,e.bindParameters)for(const[t,o]of Object.entries(e.bindParameters))Ne(t,o,n,r);if(e.bindGeometryQuantizationParameters)!function(e,t){t.input_quantization_parameters={xy_resolution:e.xyResolution,x_false_origin:e.xFalseOrigin,y_false_origin:e.yFalseOrigin,z_resolution:e.zResolution,z_false_origin:e.zFalseOrigin,m_resolution:e.mResolution,m_false_origin:e.mFalseOrigin}}(e.bindGeometryQuantizationParameters,n);else{if(t.dataModel||await Oe(t),4326!==t.dataModel?.spatialReference?.wkid)throw new i.A("knowledge-graph:SR-quantization-mismatch","If the DataModel indicates a coordinate system other than WGS84, inputQuantizationParameters must be provided to the query encoder");n.input_quantization_parameters=r.InputQuantizationUtil.WGS84_lossless()}e.outputQuantizationParameters&&function(e,t,r){if(!e.extent)throw new i.A("knowledge-graph:illegal-output-quantization","The Output quantization provided to the encoder had an illegal value as part of its extent",e.extent);if(!e.quantizeMode)throw new i.A("knowledge-graph:illegal-output-quantization","The Output quantization contained an illegal mode setting",e.quantizeMode);if(!e.tolerance)throw new i.A("knowledge-graph:illegal-output-quantization","The Output quantization contained an illegal tolerance setting",e.quantizeMode);t.output_quantization_parameters={extent:{xmax:e.extent.xmax,ymax:e.extent.ymax,xmin:e.extent.xmin,ymin:e.extent.ymin},quantize_mode:r.esriQuantizeMode[e.quantizeMode],tolerance:e.tolerance}}(e.outputQuantizationParameters,n,r),e.provenanceBehavior&&function(e,t){t.provenance_behavior={value:D[e]}}(e.provenanceBehavior,n);try{n.encode()}catch(e){throw new i.A("knowledge-graph:query-encoding-failed","Attempting to encode the query failed",{error:e})}const o=n.get_encoding_result();if(0!==o.error.error_code)throw new i.A("knowledge-graph:query-encoding-failed","Attempting to encode the query failed",{errorCode:o.error.error_code,errorMessage:o.error.error_message});return structuredClone(o.get_byte_buffer())}(t,e);const a=await Ze(o.data.url,o.data);if(e.dataModel){const t=await ze(a,e.dataModel);return new _({resultRowsStream:t.readableStream,resultHeader:t.resultHeader})}throw new i.A("knowledge-graph:undefined-data-model","The KnowledgeGraph supplied did not have a data model")},executeApplyEdits:async(e,t,r)=>{if(e.serviceDefinition?.dataEditingNotSupported)throw new i.A("knowledge-graph:data-editing-not-supported","The Knowledge Graph Service definition indicated that data editing is not supported");const n=`${e.url}/graph/applyEdits`;await Fe(e);const o=await Le(n,r);return o.data.body=await async function(e,t){if(t.dataModel||await Oe(t),!t.dataModel)throw new i.A("knowledge-graph:data-model-undefined","Encoding could not proceed because a data model was not provided and it could not be determined from the service");const r=await(0,N.I)(),n=!!e.options?.cascadeDelete,o=new r.GraphApplyEditsEncoder(r.SpatialReferenceUtil.WGS84(),e.options?.inputQuantizationParameters?function(e){return{xy_resolution:e.xyResolution,x_false_origin:e.xFalseOrigin,y_false_origin:e.yFalseOrigin,z_resolution:e.zResolution,z_false_origin:e.zFalseOrigin,m_resolution:e.mResolution,m_false_origin:e.mFalseOrigin}}(e.options?.inputQuantizationParameters):r.InputQuantizationUtil.WGS84_lossless());o.deleteLater(),o.cascade_delete=n;try{let t;e.entityAdds?.forEach((e=>{t=o.add_entity($(e,r)),De(t,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits - an entity failed to be added to the encoder")})),e.relationshipAdds?.forEach((e=>{if(!e.originId||!e.destinationId)throw new i.A("knowledge-graph:relationship-origin-destination-missing","When adding a new relationship, you must provide both an origin and destination id on the appropriate class property");t=o.add_relationship($(e,r)),De(t,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits - a relationship failed to be added to the encoder")})),e.entityUpdates?.forEach((e=>{if(!e.id)throw new i.A("knowledge-graph:entity-id-missing","When updating an entity or relationship, you must specify the id on the class level property");t=o.update_entity($(e,r)),De(t,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits - an entity failed to be added to the encoder")})),e.relationshipUpdates?.forEach((e=>{if(!e.id)throw new i.A("knowledge-graph:relationship-id-missing","When updating an entity or relationship, you must specify the id on the class level property");t=o.update_relationship($(e,r)),De(t,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits - a relationship failed to be added to the encoder")})),e.entityDeletes?.forEach((e=>{if(!e.typeName)throw new i.A("knowledge-graph:no-type-name","You must indicate the entity/relationship named object type to apply edits - delete");const t=o.make_delete_helper(e.typeName,!0);t.deleteLater(),e.ids?.forEach((e=>{t.delete_by_id(e)}))})),e.relationshipDeletes?.forEach((e=>{if(!e.typeName)throw new i.A("knowledge-graph:no-type-name","You must indicate the entity/relationship named object type to apply edits - delete");const t=o.make_delete_helper(e.typeName,!1);e.ids?.forEach((e=>{t.delete_by_id(e)}))})),o.encode()}catch(e){throw new i.A("knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits failed",{error:e})}const a=o.get_encoding_result();return De(a.error,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits failed"),structuredClone(a.get_byte_buffer())}(t,e),async function(e){const t=e.headers.get("content-type");if(t?.includes("application/x-protobuf")){const t=await e.arrayBuffer(),r=new((await(0,N.I)()).GraphApplyEditsDecoder);return r.deleteLater(),r.decode(new Uint8Array(t)),function(e){const t=e.has_error(),r=new Ie({hasError:t,error:t?{errorCode:e.error.error_code,errorMessage:e.error.error_message}:null}),n=e.get_edit_results_count();for(let t=0;t<n;t++){const n=e.get_edit_results_at(t),o=e.get_edit_results_type_name_at(t),i=[],a=[],s=[],p=n.get_add_results_count(),l=n.get_update_results_count(),d=n.get_delete_results_count();for(let e=0;e<p;e++){const t=n.get_add_result_at(e);i.push({id:t.id,error:{errorCode:t.error.error_code,errorMessage:t.error.error_message}})}for(let e=0;e<l;e++){const t=n.get_update_result_at(e);a.push({id:t.id,error:{errorCode:t.error.error_code,errorMessage:t.error.error_message}})}for(let e=0;e<d;e++){const t=n.get_delete_result_at(e);s.push({id:t.id,error:{errorCode:t.error.error_code,errorMessage:t.error.error_message}})}r.editResults.push({typeName:o,adds:i,updates:a,deletes:s})}return r}(r)}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:t,data:e.text()})}(await Ze(o.data.url,o.data))},executeQuery:async(e,t,r)=>{const n=`${e.url}/graph/query`,a=await(0,o.A)(n,{responseType:"array-buffer",query:{f:"pbf",openCypherQuery:t.openCypherQuery,...r?.query},signal:r?.signal,timeout:r?.timeout}),s=a.getHeader?.("content-type"),p=a.data;if(s?.includes("application/x-protobuf")){const t=new((await(0,N.I)()).GraphQueryDecoder);if(t.deleteLater(),e.dataModel){const r=Ce(t,p,e.dataModel);return new h({resultRows:r.resultRows,resultHeader:r.resultHeader})}throw new i.A("knowledge-graph:undefined-data-model","The KnowledgeGraph supplied did not have a data model")}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:s,data:a.data})},executeSearch:async(e,t,r)=>{const n=t.typeCategoryFilter,a=`${e.url}/graph/search`,s=await(0,o.A)(a,{responseType:"array-buffer",query:{f:"pbf",searchQuery:`"${t.searchQuery}"`,typeCategoryFilter:n,...r?.query},signal:r?.signal,timeout:r?.timeout}),p=s.getHeader?.("content-type"),l=s.data;if(p?.includes("application/x-protobuf")){const t=new((await(0,N.I)()).GraphQueryDecoder);if(t.deleteLater(),e.dataModel){const r=Ce(t,l,e.dataModel);return new h({resultRows:r.resultRows,resultHeader:r.resultHeader})}throw new i.A("knowledge-graph:undefined-data-model","The KnowledgeGraph supplied did not have a data model")}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:p,data:s.data})},executeSearchStreaming:async(e,t,r)=>{const n=`${e.url}/graph/search`;await Fe(e);const o=await Le(n,r);o.data.body=await async function(e){const t=await(0,N.I)(),r=new t.GraphSearchRequestEncoder;if(r.deleteLater(),r.search_query=e.searchQuery,r.type_category_filter=t.esriNamedTypeCategory[e.typeCategoryFilter],!0===e.returnSearchContext&&(r.return_search_context=e.returnSearchContext),null!=e.start&&e.start>0&&(r.start_index=e.start),null!=e.num&&(r.max_num_results=e.num),null!=e.idsFilter&&Array.isArray(e.idsFilter)&&e.idsFilter.length>0)try{r.set_ids_filter(U(e.idsFilter,t))}catch(e){throw new i.A("knowledge-graph:ids-format-error","Attempting to set ids filter failed. This is usually caused by an incorrectly formatted UUID string",{error:e})}e.namedTypesFilter?.forEach((e=>{r.add_named_type_filter(e)}));try{r.encode()}catch(e){throw new i.A("knowledge-graph:search-encoding-failed","Attempting to encode the search failed",{error:e})}const n=r.get_encoding_result();if(0!==n.error.error_code)throw new i.A("knowledge-graph:search-encoding-failed","Attempting to get encoding result from the query failed",{errorCode:n.error.error_code,errorMessage:n.error.error_message});return structuredClone(n.get_byte_buffer())}(t);const a=await Ze(o.data.url,o.data);if(e.dataModel){const t=await ze(a,e.dataModel);return new _({resultRowsStream:t.readableStream,resultHeader:t.resultHeader})}throw new i.A("knowledge-graph:undefined-data-model","The KnowledgeGraph supplied did not have a data model")},_fetchWrapper:async(e,t)=>fetch(e,t)};async function Ae(e,t,r){return Re.executeApplyEdits(e,t,r)}async function Se(e,t,r){return Re.executeQuery(e,t,r)}async function Pe(e,t,r){return Re.executeQueryStreaming(e,t,r)}async function be(e,t,r){return Re.executeSearch(e,t,r)}async function xe(e,t,r){return Re.executeSearchStreaming(e,t,r)}async function ke(e){return Re.fetchKnowledgeGraph(e)}async function Oe(e){return Re.refreshDataModel(e)}async function je(e){return Re.refreshServiceDefinition(e)}async function Ze(e,t){return Re._fetchWrapper(e,t)}async function Fe(e){const t=n.id?.findCredential(e.url);t||(e.dataModel?await Ye(e):await Oe(e))}function De(e,t,r){if(0!==e.error_code)throw new i.A(t,r,{errorCode:e.error_code,errorMessage:e.error_message})}function Ne(e,t,r,n){null==t?r.set_param_key_value(e,""):"object"!=typeof t||t instanceof Date?r.set_param_key_value(e,t):t instanceof q.A?r.set_param_key_value(e,Q(t,n)):Array.isArray(t)?r.set_param_key_value(e,U(t,n)):r.set_param_key_value(e,H(t,n))}async function Le(e,t){return(0,o.A)(e,{responseType:"native-request-init",method:"post",query:{f:"pbf",...t?.query},body:"x",headers:{"Content-Type":"application/octet-stream"},signal:t?.signal,timeout:t?.timeout})}function Ce(e,t,r,n){e.push_buffer(new Uint8Array(t));const o=[];let a,s,p=0;for(;e.next_row();){a&&s||(a=n??Me(e),s=a.outSpatialReference??new w.A({wkid:4326})),p||(p=e.get_header_keys().size());const t=new Array(p);for(let n=0;n<p;n++){const o=e.get_value(n);t[n]=me(o,r,s)}o.push(t)}if(e.has_error())throw new i.A("knowledge-graph:stream-decoding-error","One or more result rows were not successfully decoded - inner row decoding",{errorCode:e.error.error_code,errorMessage:e.error.error_message});return{resultHeader:a,resultRows:o}}async function ze(e,t){const r=e.headers.get("content-type");if(e.headers.get("content-length")&&a.A.getLogger("esri.rest.knowledgeGraph.knowledgeGraphService").warnOnce("Found `Content-Length` header when expecting a streaming HTTP response! Please investigate whether all intermediate HTTP proxies and/or load balancers are configured such that they don't forcefully buffer the entire response before returning it to the client. A valid HTTP streaming response should use Chunked Transfer Encoding and not have a Content Length defined."),r?.includes("application/x-protobuf")){const r=e.body?.getReader(),n=new((await(0,N.I)()).GraphQueryDecoder);let o,s,p;n.deleteLater();const l=new Promise(((e,t)=>{s=e,p=t}));let d=!1;return{readableStream:new ReadableStream({async start(e){try{return function l(){return r?.read().then((({done:u,value:y})=>{try{if(u){let t;if(n.has_error()?t=new i.A("knowledge-graph:stream-decoding-error","One or more result rows were not successfully decoded - query stream done",{errorCode:n.error.error_code,errorMessage:n.error.error_message}):d||s(new c),r.releaseLock(),t)throw e.error(t),p(t),t;return void e.close()}const a=Ce(n,y,t,o),h=a.resultRows;return h.length>0&&e.enqueue(h),!o&&a.resultHeader&&(o=a.resultHeader,s(a.resultHeader),d=!0),l()}catch(e){throw a.A.getLogger("esri.rest.knowledgeGraph.knowledgeGraphService").error(e),p(e),new i.A("knowledge-graph:unexpected-server-response","Error inside streaming data return parsing",{error:e})}}))}()}catch(t){r?.releaseLock(),e.error(new i.A("knowledge-graph:stream-decoding-error","The server returned a valid response, but there was an error decoding the response stream",{error:t})),e.close()}}}),resultHeader:await l}}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:r,data:e.text()})}async function Ye(e){const t=`${e.url}/dataModel/queryDataModel`,r=await(0,o.A)(t,{responseType:"array-buffer",query:{f:"pbf"}}),n=r.getHeader?.("content-type"),a=r.data;if(n?.includes("application/x-protobuf")){const e=(await(0,N.I)()).decode_data_model_from_protocol_buffer(new Uint8Array(a));if(!e)throw new i.A("knowledge-graph:data-model-decode-failure","The server responded to the data model query, but the response failed to be decoded. This typically occurs when the Knowledge JS API (4.26 or later) is used with an unsupported backend (11.0 or earlier)");return function(e){return e.deleteLater(),new b({timestamp:e.timestamp,spatialReference:new w.A(e.spatial_reference),strict:e.strict,objectIdField:e.objectid_property,globalIdField:e.globalid_property,arcgisManaged:e.arcgis_managed,identifierInfo:{identifierMappingInfo:{identifierInfoType:ee.vy[e.identifier_info?.identifier_mapping_info?.identifier_info_type?.value],databaseNativeIdentifier:e.identifier_info?.identifier_mapping_info?.database_native_identifier,uniformPropertyIdentifier:{identifierPropertyName:e.identifier_info?.identifier_mapping_info?.uniform_property_identifier?.identifier_property_name}},identifierGenerationInfo:{uuidMethodHint:ee.wr[e.identifier_info?.identifier_generation_info?.uuid_method_hint?.value]}},searchIndexes:ue(e.search_indexes),entityTypes:ae(e.entity_types),relationshipTypes:de(e.relationship_types),metaEntityTypes:ae(e.meta_entity_types)})}(e)}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:n,data:r.data})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4996],{2741:(e,t,r)=>{r.d(t,{s:()=>a});var o=r(92602),n=(r(78888),r(49186)),s=r(53966),i=r(84952);function a(e){if(!o.A.assetsPath)throw s.A.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new n.A("assets:path-not-set","config.assetsPath is not set");return(0,i.fj)(o.A.assetsPath,e)}},83290:(e,t,r)=>{r.d(t,{P:()=>l,a:()=>c,g:()=>u,h:()=>P,i:()=>a,j:()=>M,l:()=>f,p:()=>R});var o=r(2741),n=r(44208);let s,i=null;function a(){return!!i}function f(){return s||(s=r.e(6187).then(r.bind(r,46187)).then((e=>e.p)).then((({default:e})=>e({locateFile:e=>(0,o.s)(`esri/geometry/support/${e}`)}))).then((e=>{y(e)})),s)}var u,c,l,_;!function(e){function t(e,t,r){i.ensureCache.prepare();const o=A(r),n=r===o,s=i.ensureFloat64(o),a=i._pe_geog_to_proj(i.getPointer(e),t,s);return a&&C(r,t,s,n),a}function r(e,t,r){return o(e,t,r,0)}function o(e,t,r,o){i.ensureCache.prepare();const n=A(r),s=r===n,a=i.ensureFloat64(n),f=i._pe_proj_to_geog_center(i.getPointer(e),t,a,o);return f&&C(r,t,a,s),f}e.geogToProj=t,e.projGeog=function(e,o,n,s){switch(s){case c.PE_TRANSFORM_P_TO_G:return r(e,o,n);case c.PE_TRANSFORM_G_TO_P:return t(e,o,n)}return 0},e.projToGeog=r,e.projToGeogCenter=o}(u||(u={})),(_=c||(c={})).init=function(){_.PE_BUFFER_MAX=i.PeDefs.prototype.PE_BUFFER_MAX,_.PE_NAME_MAX=i.PeDefs.prototype.PE_NAME_MAX,_.PE_MGRS_MAX=i.PeDefs.prototype.PE_MGRS_MAX,_.PE_USNG_MAX=i.PeDefs.prototype.PE_USNG_MAX,_.PE_DD_MAX=i.PeDefs.prototype.PE_DD_MAX,_.PE_DDM_MAX=i.PeDefs.prototype.PE_DDM_MAX,_.PE_DMS_MAX=i.PeDefs.prototype.PE_DMS_MAX,_.PE_UTM_MAX=i.PeDefs.prototype.PE_UTM_MAX,_.PE_PARM_MAX=i.PeDefs.prototype.PE_PARM_MAX,_.PE_TYPE_NONE=i.PeDefs.prototype.PE_TYPE_NONE,_.PE_TYPE_GEOGCS=i.PeDefs.prototype.PE_TYPE_GEOGCS,_.PE_TYPE_PROJCS=i.PeDefs.prototype.PE_TYPE_PROJCS,_.PE_TYPE_GEOGTRAN=i.PeDefs.prototype.PE_TYPE_GEOGTRAN,_.PE_TYPE_COORDSYS=i.PeDefs.prototype.PE_TYPE_COORDSYS,_.PE_TYPE_UNIT=i.PeDefs.prototype.PE_TYPE_UNIT,_.PE_TYPE_LINUNIT=i.PeDefs.prototype.PE_TYPE_LINUNIT,_.PE_STR_OPTS_NONE=i.PeDefs.prototype.PE_STR_OPTS_NONE,_.PE_STR_AUTH_NONE=i.PeDefs.prototype.PE_STR_AUTH_NONE,_.PE_STR_AUTH_TOP=i.PeDefs.prototype.PE_STR_AUTH_TOP,_.PE_STR_NAME_CANON=i.PeDefs.prototype.PE_STR_NAME_CANON,_.PE_STR_FMT_WKT=i.PeDefs.prototype.PE_STR_FMT_WKT,_.PE_STR_FMT_WKT2=i.PeDefs.prototype.PE_STR_FMT_WKT2,_.PE_PARM_X0=i.PeDefs.prototype.PE_PARM_X0,_.PE_PARM_ND=i.PeDefs.prototype.PE_PARM_ND,_.PE_TRANSFORM_1_TO_2=i.PeDefs.prototype.PE_TRANSFORM_1_TO_2,_.PE_TRANSFORM_2_TO_1=i.PeDefs.prototype.PE_TRANSFORM_2_TO_1,_.PE_TRANSFORM_P_TO_G=i.PeDefs.prototype.PE_TRANSFORM_P_TO_G,_.PE_TRANSFORM_G_TO_P=i.PeDefs.prototype.PE_TRANSFORM_G_TO_P,_.PE_HORIZON_RECT=i.PeDefs.prototype.PE_HORIZON_RECT,_.PE_HORIZON_POLY=i.PeDefs.prototype.PE_HORIZON_POLY,_.PE_HORIZON_LINE=i.PeDefs.prototype.PE_HORIZON_LINE,_.PE_HORIZON_DELTA=i.PeDefs.prototype.PE_HORIZON_DELTA},function(e){const t={},r={},o=e=>{if(e){const t=e.getType();switch(t){case c.PE_TYPE_GEOGCS:e=i.castObject(e,i.PeGeogcs);break;case c.PE_TYPE_PROJCS:e=i.castObject(e,i.PeProjcs);break;case c.PE_TYPE_GEOGTRAN:e=i.castObject(e,i.PeGeogtran);break;default:t&c.PE_TYPE_UNIT&&(e=i.castObject(e,i.PeUnit))}}return e};function n(e,r){let n=null,s=t[e];if(s||(s={},t[e]=s),s.hasOwnProperty(String(r)))n=s[r];else{const t=i.PeFactory.prototype.factoryByType(e,r);i.compare(t,i.NULL)||(n=t,s[r]=n)}return n=o(n),n}e.initialize=function(){i.PeFactory.prototype.initialize(null)},e.coordsys=function(e){return n(c.PE_TYPE_COORDSYS,e)},e.factoryByType=n,e.fromString=function(e,t){let n=null,s=r[e];if(s||(s={},r[e]=s),s.hasOwnProperty(t))n=s[t];else{const r=i.PeFactory.prototype.fromString(e,t);i.compare(r,i.NULL)||(n=r,s[t]=n)}return n=o(n),n},e.geogcs=function(e){return n(c.PE_TYPE_GEOGCS,e)},e.geogtran=function(e){return n(c.PE_TYPE_GEOGTRAN,e)},e.getCode=function(e){return i.PeFactory.prototype.getCode(e)},e.projcs=function(e){return n(c.PE_TYPE_PROJCS,e)},e.unit=function(e){return n(c.PE_TYPE_UNIT,e)}}(l||(l={}));let d=null;var p,h,P,E,g,m,S,M,T;function y(e){function t(e,t,r){e[t]=r(e[t])}i=e,c.init(),p.init(),g.init(),S.init(),M.init(),d=class extends i.PeGCSExtent{destroy(){i.destroy(this)}};const r=[i.PeDatum,i.PeGeogcs,i.PeGeogtran,i.PeObject,i.PeParameter,i.PePrimem,i.PeProjcs,i.PeSpheroid,i.PeUnit];for(const e of r)t(e.prototype,"getName",(e=>function(){return e.call(this,new Array(c.PE_NAME_MAX))}));for(const e of[i.PeGeogtran,i.PeProjcs])t(e.prototype,"getParameters",(e=>function(){const t=new Array(c.PE_PARM_MAX);let r=e.call(this);for(let e=0;e<t.length;e++){const o=i.getValue(r,"*");t[e]=o?i.wrapPointer(o,i.PeParameter):null,r+=Int32Array.BYTES_PER_ELEMENT}return t}));t(i.PeHorizon.prototype,"getCoord",(e=>function(){const t=this.getSize();if(!t)return null;const r=[];return C(r,t,e.call(this)),r})),t(i.PeGTlistExtendedEntry.prototype,"getEntries",(e=>{const t=i._pe_getPeGTlistExtendedGTsSize();return function(){let r=null;const o=e.call(this);if(!i.compare(o,i.NULL)){r=[o];const e=this.getSteps();if(e>1){const n=i.getPointer(o);for(let o=1;o<e;o++)r.push(i.wrapPointer(n+t*o,i.PeGTlistExtendedGTs))}}return r}}));const o=i._pe_getPeHorizonSize(),n=e=>function(){let t=this._cache;if(t||(t=new Map,this._cache=t),t.has(e))return t.get(e);let r=null;const n=e.call(this);if(!i.compare(n,i.NULL)){r=[n];const e=n.getNump();if(e>1){const t=i.getPointer(n);for(let n=1;n<e;n++)r.push(i.wrapPointer(t+o*n,i.PeHorizon))}}return t.set(e,r),r};t(i.PeProjcs.prototype,"horizonGcsGenerate",n),t(i.PeProjcs.prototype,"horizonPcsGenerate",n),i.PeObject.prototype.toString=function(e=c.PE_STR_OPTS_NONE){i.ensureCache.prepare();const t=i.getPointer(this),r=i.ensureInt8(new Array(c.PE_BUFFER_MAX));return i.UTF8ToString(i._pe_object_to_string_ext(t,e,r))}}function O(e){if(!e)return;const t=i.getClass(e);if(!t)return;const r=i.getCache(t);if(!r)return;const o=i.getPointer(e);o&&delete r[o]}function w(e,t){const r=[],o=new Array(t);for(let t=0;t<e;t++)r.push(i.ensureInt8(o));return r}function A(e){let t;return Array.isArray(e[0])?(t=[],e.forEach((e=>{t.push(e[0],e[1])}))):t=e,t}function C(e,t,r,o=!1){if(o)for(let o=0;o<2*t;o++)e[o]=i.getValue(r+o*Float64Array.BYTES_PER_ELEMENT,"double");else{const o=0===e.length;for(let n=0;n<t;n++)o&&(e[n]=new Array(2)),e[n][0]=i.getValue(r,"double"),e[n][1]=i.getValue(r+Float64Array.BYTES_PER_ELEMENT,"double"),r+=2*Float64Array.BYTES_PER_ELEMENT}}!function(e){let t;e.init=function(){e.PE_GTLIST_OPTS_COMMON=i.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,t=i._pe_getPeGTlistExtendedEntrySize()},e.getGTlist=function(e,r,o,n,s,a){let f=null;const u=new i.PeInteger(a);try{const c=i.PeGTlistExtended.prototype.getGTlist(e,r,o,n,s,u);if((a=u.val)&&(f=[c],a>1)){const e=i.getPointer(c);for(let r=1;r<a;r++)f.push(i.wrapPointer(e+t*r,i.PeGTlistExtendedEntry))}}finally{i.destroy(u)}return f}}(p||(p={})),function(e){e.destroy=function(e){if(e?.length){for(const t of e)O(t),t.getEntries().forEach((e=>{O(e);const t=e.getGeogtran();O(t),t.getParameters().forEach(O),[t.getGeogcs1(),t.getGeogcs2()].forEach((e=>{O(e);const t=e.getDatum();O(t),O(t.getSpheroid()),O(e.getPrimem()),O(e.getUnit())}))}));i.PeGTlistExtendedEntry.prototype.Delete(e[0])}}}(h||(h={})),function(e){e.geogToGeog=function(e,t,r,o,n){i.ensureCache.prepare();const s=A(r),a=r===s,f=i.ensureFloat64(s);let u=0;o&&(u=i.ensureFloat64(o));const c=i._pe_geog_to_geog(i.getPointer(e),t,f,u,n);return c&&C(r,t,f,a),c}}(P||(P={})),function(e){const t=(e,t,r,o,n,s)=>{let a,f;switch(i.ensureCache.prepare(),e){case"dd":a=i._pe_geog_to_dd,f=c.PE_DD_MAX;break;case"ddm":a=i._pe_geog_to_ddm,f=c.PE_DDM_MAX;break;case"dms":a=i._pe_geog_to_dms,f=c.PE_DMS_MAX}let u=0;t&&(u=i.getPointer(t));const l=A(o),_=i.ensureFloat64(l),d=w(r,f),p=a(u,r,_,n,i.ensureInt32(d));if(p)for(let e=0;e<r;e++)s[e]=i.UTF8ToString(d[e]);return p},r=(e,t,r,o,n)=>{let s;switch(i.ensureCache.prepare(),e){case"dd":s=i._pe_dd_to_geog;break;case"ddm":s=i._pe_ddm_to_geog;break;case"dms":s=i._pe_dms_to_geog}let a=0;t&&(a=i.getPointer(t));const f=o.map((e=>i.ensureString(e))),u=i.ensureInt32(f),c=i.ensureFloat64(new Array(2*r)),l=s(a,r,u,c);return l&&C(n,r,c),l};e.geogToDms=function(e,r,o,n,s){return t("dms",e,r,o,n,s)},e.dmsToGeog=function(e,t,o,n){return r("dms",e,t,o,n)},e.geogToDdm=function(e,r,o,n,s){return t("ddm",e,r,o,n,s)},e.ddmToGeog=function(e,t,o,n){return r("ddm",e,t,o,n)},e.geogToDd=function(e,r,o,n,s){return t("dd",e,r,o,n,s)},e.ddToGeog=function(e,t,o,n){return r("dd",e,t,o,n)}}(E||(E={})),function(e){e.init=function(){e.PE_MGRS_STYLE_NEW=i.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,e.PE_MGRS_STYLE_OLD=i.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,e.PE_MGRS_STYLE_AUTO=i.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,e.PE_MGRS_180_ZONE_1_PLUS=i.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,e.PE_MGRS_ADD_SPACES=i.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES},e.geogToMgrsExtended=function(e,t,r,o,n,s,a){i.ensureCache.prepare();let f=0;e&&(f=i.getPointer(e));const u=A(r),l=i.ensureFloat64(u),_=w(t,c.PE_MGRS_MAX),d=i.ensureInt32(_),p=i._pe_geog_to_mgrs_extended(f,t,l,o,n,s,d);if(p)for(let e=0;e<t;e++)a[e]=i.UTF8ToString(_[e]);return p},e.mgrsToGeogExtended=function(e,t,r,o,n){i.ensureCache.prepare();let s=0;e&&(s=i.getPointer(e));const a=r.map((e=>i.ensureString(e))),f=i.ensureInt32(a),u=i.ensureFloat64(new Array(2*t)),c=i._pe_mgrs_to_geog_extended(s,t,f,o,u);return c&&C(n,t,u),c}}(g||(g={})),function(e){e.geogToUsng=function(e,t,r,o,n,s,a){i.ensureCache.prepare();let f=0;e&&(f=i.getPointer(e));const u=A(r),l=i.ensureFloat64(u),_=w(t,c.PE_MGRS_MAX),d=i.ensureInt32(_),p=i._pe_geog_to_usng(f,t,l,o,n,s,d);if(p)for(let e=0;e<t;e++)a[e]=i.UTF8ToString(_[e]);return p},e.usngToGeog=function(e,t,r,o){i.ensureCache.prepare();let n=0;e&&(n=i.getPointer(e));const s=r.map((e=>i.ensureString(e))),a=i.ensureInt32(s),f=i.ensureFloat64(new Array(2*t)),u=i._pe_usng_to_geog(n,t,a,f);return u&&C(o,t,f),u}}(m||(m={})),function(e){e.init=function(){e.PE_UTM_OPTS_NONE=i.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,e.PE_UTM_OPTS_ADD_SPACES=i.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,e.PE_UTM_OPTS_NS=i.PeNotationUtm.prototype.PE_UTM_OPTS_NS},e.geogToUtm=function(e,t,r,o,n){i.ensureCache.prepare();let s=0;e&&(s=i.getPointer(e));const a=A(r),f=i.ensureFloat64(a),u=w(t,c.PE_UTM_MAX),l=i.ensureInt32(u),_=i._pe_geog_to_utm(s,t,f,o,l);if(_)for(let e=0;e<t;e++)n[e]=i.UTF8ToString(u[e]);return _},e.utmToGeog=function(e,t,r,o,n){i.ensureCache.prepare();let s=0;e&&(s=i.getPointer(e));const a=r.map((e=>i.ensureString(e))),f=i.ensureInt32(a),u=i.ensureFloat64(new Array(2*t)),c=i._pe_utm_to_geog(s,t,f,o,u);return c&&C(n,t,u),c}}(S||(S={})),function(e){const t=new Map;e.init=function(){e.PE_PCSINFO_OPTION_NONE=i.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,e.PE_PCSINFO_OPTION_DOMAIN=i.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,e.PE_POLE_OUTSIDE_BOUNDARY=i.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,e.PE_POLE_POINT=i.PePCSInfo.prototype.PE_POLE_POINT},e.generate=function(r,o=e.PE_PCSINFO_OPTION_DOMAIN){let n=null,s=null;return t.has(r)&&(s=t.get(r),s[o]&&(n=s[o])),n||(n=i.PePCSInfo.prototype.generate(r,o),s||(s=[],t.set(r,s)),s[o]=n),n}}(M||(M={})),function(e){e.versionString=function(){return i.PeVersion.prototype.version_string()}}(T||(T={}));const R=Object.freeze(Object.defineProperty({__proto__:null,get PeCSTransformations(){return u},get PeDefs(){return c},get PeFactory(){return l},get PeGCSExtent(){return d},get PeGTTransformations(){return P},get PeGTlistExtended(){return p},get PeGTlistExtendedEntry(){return h},get PeNotationDms(){return E},get PeNotationMgrs(){return g},get PeNotationUsng(){return m},get PeNotationUtm(){return S},get PePCSInfo(){return M},get PeVersion(){return T},_init:y,get _pe(){return i},isLoaded:a,isSupported:function(){return!!(0,n.A)("esri-wasm")},load:f},Symbol.toStringTag,{value:"Module"}))},38954:(e,t,r)=>{r.d(t,{A:()=>d,B:()=>c,C:()=>h,D:()=>l,E:()=>U,F:()=>q,H:()=>x,a:()=>m,b:()=>w,c:()=>i,e:()=>b,f:()=>u,g:()=>f,h:()=>C,i:()=>T,j:()=>P,k:()=>M,l:()=>s,m:()=>O,n:()=>y,o:()=>A,p:()=>g,q:()=>S,r:()=>E,s:()=>a,t:()=>R,u:()=>N,v:()=>_,w:()=>F,x:()=>L,y:()=>p,z:()=>D});var o=r(51850),n=r(34304);function s(e){const t=e[0],r=e[1],o=e[2];return Math.sqrt(t*t+r*r+o*o)}function i(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,r,o){return e[0]=t,e[1]=r,e[2]=o,e}function f(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function u(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function c(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function l(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function _(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function d(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function p(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function h(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function P(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function E(e,t,r,o){return e[0]=t[0]+r[0]*o,e[1]=t[1]+r[1]*o,e[2]=t[2]+r[2]*o,e}function g(e,t){const r=t[0]-e[0],o=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(r*r+o*o+n*n)}function m(e,t){const r=t[0]-e[0],o=t[1]-e[1],n=t[2]-e[2];return r*r+o*o+n*n}function S(e){const t=e[0],r=e[1],o=e[2];return t*t+r*r+o*o}function M(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function T(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function y(e,t){const r=t[0],o=t[1],n=t[2];let s=r*r+o*o+n*n;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function O(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function w(e,t,r){const o=t[0],n=t[1],s=t[2],i=r[0],a=r[1],f=r[2];return e[0]=n*f-s*a,e[1]=s*i-o*f,e[2]=o*a-n*i,e}function A(e,t,r,o){const n=t[0],s=t[1],i=t[2];return e[0]=n+o*(r[0]-n),e[1]=s+o*(r[1]-s),e[2]=i+o*(r[2]-i),e}function C(e,t,r){const o=t[0],n=t[1],s=t[2];return e[0]=r[0]*o+r[4]*n+r[8]*s+r[12],e[1]=r[1]*o+r[5]*n+r[9]*s+r[13],e[2]=r[2]*o+r[6]*n+r[10]*s+r[14],e}function R(e,t,r){const o=t[0],n=t[1],s=t[2];return e[0]=o*r[0]+n*r[3]+s*r[6],e[1]=o*r[1]+n*r[4]+s*r[7],e[2]=o*r[2]+n*r[5]+s*r[8],e}function N(e,t,r){const o=r[0],n=r[1],s=r[2],i=r[3],a=t[0],f=t[1],u=t[2],c=n*u-s*f,l=s*a-o*u,_=o*f-n*a,d=n*_-s*l,p=s*c-o*_,h=o*l-n*c,P=2*i;return e[0]=a+c*P+2*d,e[1]=f+l*P+2*p,e[2]=u+_*P+2*h,e}const G=(0,o.vt)(),k=(0,o.vt)();function b(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function U(e,t,r){const o=r[0]-t[0],n=r[1]-t[1],s=r[2]-t[2];let i=o*o+n*n+s*s;return i>0?(i=1/Math.sqrt(i),e[0]=o*i,e[1]=n*i,e[2]=s*i,e):(e[0]=0,e[1]=0,e[2]=0,e)}const D=u,I=c,v=l,q=g,F=m,x=s,L=S;Object.freeze(Object.defineProperty({__proto__:null,abs:_,add:f,angle:function(e,t){y(G,e),y(k,t);const r=O(G,k);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(e,t,r,o,n,s){const i=1-s,a=i*i,f=s*s,u=a*i,c=3*s*a,l=3*f*i,_=f*s;return e[0]=t[0]*u+r[0]*c+o[0]*l+n[0]*_,e[1]=t[1]*u+r[1]*c+o[1]*l+n[1]*_,e[2]=t[2]*u+r[2]*c+o[2]*l+n[2]*_,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},copy:i,cross:w,crossAndNormalize:function(e,t,r){const o=t[0],n=t[1],s=t[2],i=r[0],a=r[1],f=r[2],u=n*f-s*a,c=s*i-o*f,l=o*a-n*i,_=Math.sqrt(u*u+c*c+l*l);return e[0]=u/_,e[1]=c/_,e[2]=l/_,e},direction:U,dist:q,distance:g,div:v,divide:l,dot:O,equals:function(e,t){if(e===t)return!0;const r=e[0],o=e[1],s=e[2],i=t[0],a=t[1],f=t[2],u=(0,n.FD)();return Math.abs(r-i)<=u*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(o-a)<=u*Math.max(1,Math.abs(o),Math.abs(a))&&Math.abs(s-f)<=u*Math.max(1,Math.abs(s),Math.abs(f))},exactEquals:b,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,r,o,n,s){const i=s*s,a=i*(2*s-3)+1,f=i*(s-2)+s,u=i*(s-1),c=i*(3-2*s);return e[0]=t[0]*a+r[0]*f+o[0]*u+n[0]*c,e[1]=t[1]*a+r[1]*f+o[1]*u+n[1]*c,e[2]=t[2]*a+r[2]*f+o[2]*u+n[2]*c,e},inverse:T,len:x,length:s,lerp:A,max:h,min:p,mul:I,multiply:c,negate:M,normalize:y,random:function(e,t){t=t||1;const r=n.Ov,o=2*r()*Math.PI,s=2*r()-1,i=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(o)*i,e[1]=Math.sin(o)*i,e[2]=s*t,e},rotateX:function(e,t,r,o){const n=[],s=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],s[0]=n[0],s[1]=n[1]*Math.cos(o)-n[2]*Math.sin(o),s[2]=n[1]*Math.sin(o)+n[2]*Math.cos(o),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateY:function(e,t,r,o){const n=[],s=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],s[0]=n[2]*Math.sin(o)+n[0]*Math.cos(o),s[1]=n[1],s[2]=n[2]*Math.cos(o)-n[0]*Math.sin(o),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateZ:function(e,t,r,o){const n=[],s=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],s[0]=n[0]*Math.cos(o)-n[1]*Math.sin(o),s[1]=n[0]*Math.sin(o)+n[1]*Math.cos(o),s[2]=n[2],e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:P,scaleAndAdd:E,set:a,sign:d,sqrDist:F,sqrLen:L,squaredDistance:m,squaredLength:S,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:D,subtract:u,transformMat3:R,transformMat4:C,transformQuat:N},Symbol.toStringTag,{value:"Module"}))},43937:(e,t,r)=>{r.d(t,{K:()=>n});var o=r(10107);function n(e,t,r){let n,s;return void 0===t?(s=e,n=[void 0]):"string"!=typeof t?(s=e,n=[void 0],r=t):(s=t,n=Array.isArray(e)?e:[e]),(e,t)=>{const i=e.constructor.prototype;for(const a of n){const n=(0,o.rM)(e,a,s);n.write&&"object"==typeof n.write||(n.write={}),r&&(n.write.target=r),n.write.writer=i[t]}}}},66552:(e,t,r)=>{r.d(t,{J:()=>n,O:()=>i});var o=r(93637);class n{constructor(e,t={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=e,this._options=t,this.apiValues=[],this.jsonValues=[],this._apiToJSON=function(e){const t={};for(const r in e)t[e[r]]=r;return t}(e),this.apiValues=s(this._apiToJSON),this.jsonValues=s(this._jsonToAPI),this.read=e=>this.fromJSON(e),this.write=(e,t,r)=>{const n=this.toJSON(e);void 0!==n&&(0,o.sM)(r,n,t)},this.write.isJSONMapWriter=!0}toJSON(e){if(null==e)return null;if(this._apiToJSON.hasOwnProperty(e)){const t=this._apiToJSON[e];return this._options.useNumericKeys?+t:t}return this._options.ignoreUnknown?void 0:e}fromJSON(e){return null!=e&&this._jsonToAPI.hasOwnProperty(e)?this._jsonToAPI[e]:this._options.ignoreUnknown?void 0:e}}function s(e){const t=[];for(const r in e)t.push(r);return t.sort(),t}function i(){return function(e,t){return new n(e,{ignoreUnknown:!0,...t})}}},51850:(e,t,r)=>{function o(){return[0,0,0]}function n(e){return[e[0],e[1],e[2]]}function s(e,t,r){return[e,t,r]}function i(e,t=[0,0,0]){const r=Math.min(3,e.length);for(let o=0;o<r;++o)t[o]=e[o];return t}function a(){return s(1,1,1)}function f(){return s(1,0,0)}function u(){return s(0,1,0)}function c(){return s(0,0,1)}r.d(t,{Cb:()=>h,Cw:()=>d,JP:()=>p,Un:()=>_,ci:()=>i,fA:()=>s,o8:()=>n,uY:()=>l,vt:()=>o});const l=[0,0,0],_=a(),d=f(),p=u(),h=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:_,UNIT_X:d,UNIT_Y:p,UNIT_Z:h,ZEROS:l,clone:n,create:o,createView:function(e,t){return new Float64Array(e,t,3)},fromArray:i,fromValues:s,ones:a,unitX:f,unitY:u,unitZ:c,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},34304:(e,t,r)=>{r.d(t,{DF:()=>f,FD:()=>n,Ov:()=>s,ct:()=>u});let o=1e-6;function n(){return o}const s=Math.random,i=Math.PI/180,a=180/Math.PI;function f(e){return e*i}function u(e){return e*a}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:s,equals:function(e,t){return Math.abs(e-t)<=o*Math.max(1,Math.abs(e),Math.abs(t))},getEpsilon:n,setEpsilon:function(e){o=e},toDegree:u,toRadian:f},Symbol.toStringTag,{value:"Module"}))},34727:(e,t,r)=>{r.d(t,{$8:()=>S,Cc:()=>a,Io:()=>m,KJ:()=>c,Sp:()=>d,XM:()=>l,YN:()=>_,cU:()=>s,hs:()=>f,jU:()=>T,kU:()=>u,or:()=>y,pq:()=>O,qE:()=>i});var o=r(38954);const n=new Float32Array(1);function s(e){--e;for(let t=1;t<32;t<<=1)e|=e>>t;return e+1}function i(e,t,r){return Math.min(Math.max(e,t),r)}function a(e,t,r){return e+(t-e)*r}function f(e,t,r,o,n){return a(o,n,(e-t)/(r-t))}function u(e){return e*Math.PI/180}function c(e){return 180*e/Math.PI}function l(e){return Math.acos(i(e,-1,1))}function _(e){return Math.asin(i(e,-1,1))}function d(e,t,r=1e-6){return e===t||!(!Number.isFinite(e)||!Number.isFinite(t))&&(e>t?e-t:t-e)<=r}const p=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function h(e){return p.setFloat64(0,e),p.getBigInt64(0)}const P=BigInt("1000000"),E=g(1);function g(e){const t=h(e=Math.abs(e)),r=function(e){return p.setBigInt64(0,e),p.getFloat64(0)}(t<=P?P:t-P);return Math.abs(e-r)}function m(e,t,r=E){if(e===t)return!0;if(!Number.isFinite(e)||!Number.isFinite(t))return!1;if(null!=r&&g(Math.min(Math.abs(e),Math.abs(t)))<r)return Math.abs(e-t)<=r;const o=h(e),n=h(t);return o<0==n<0&&!((o<n?n-o:o-n)>P)}function S(e){return M(Math.max(-O,Math.min(e,O)))}function M(e){return n[0]=e,n[0]}function T(e,t){const r=(0,o.l)(e),n=_(e[2]/r),s=Math.atan2(e[1]/r,e[0]/r);return(0,o.s)(t,r,n,s),t}function y(e){const t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],r=e[3]*e[3]+e[4]*e[4]+e[5]*e[5],o=e[6]*e[6]+e[7]*e[7]+e[8]*e[8];return!(d(t,1)&&d(r,1)&&d(o,1))}const O=M(34028234663852886e22)},83047:(e,t,r)=>{r.d(t,{G9:()=>O,GA:()=>A,Ij:()=>G,KX:()=>C,LA:()=>y,Sk:()=>I,b$:()=>v,dk:()=>D,dy:()=>f,k1:()=>w,oU:()=>M,vl:()=>T}),r(44208);var o=r(66552),n=r(73941),s=r(79258),i=r(21325),a=r(22530);const f=39.37,u=s.$O.radius*Math.PI/200,c=/(?:LENGTH)?UNIT\[([^\]]+)]]$/i,l=a.A,_=/UNIT\[([^\]]+)]/i,d=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),p=(0,o.O)()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),h=e=>e*e,P=e=>e*e*e,E={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:h(.001)},"square-centimeters":{inBaseUnits:h(.01)},"square-decimeters":{inBaseUnits:h(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:h(1e3)},"square-inches":{inBaseUnits:h(.0254)},"square-feet":{inBaseUnits:h(.3048)},"square-yards":{inBaseUnits:h(.9144)},"square-miles":{inBaseUnits:h(1609.344)},"square-us-feet":{inBaseUnits:h(1200/3937)},acres:{inBaseUnits:.0015625*h(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*P(.001)},"cubic-centimeters":{inBaseUnits:1e3*P(.01)},"cubic-decimeters":{inBaseUnits:1e3*P(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*P(1e3)},"cubic-inches":{inBaseUnits:1e3*P(.0254)},"cubic-feet":{inBaseUnits:1e3*P(.3048)},"cubic-yards":{inBaseUnits:1e3*P(.9144)},"cubic-miles":{inBaseUnits:1e3*P(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},g=(()=>{const e={};for(const t in E)for(const r in E[t].units)e[r]=t;return e})();function m(e){const t=g[e];if(!t)throw new Error("unknown type");return t}function S(e,t=null){return t=t||m(e),E[t].baseUnit===e}function M(e,t,r){if(t===r)return e;const o=m(t);if(o!==m(r))throw new Error("incompatible units");const n=S(t,o)?e:function(e,t,r){return e*E[r].units[t].inBaseUnits}(e,t,o);return S(r,o)?n:function(e,t,r){return e/E[r].units[t].inBaseUnits}(n,r,o)}function T(e,t,r){return M(e,t,"meters")/(r*Math.PI/180)}function y(e){return p.fromJSON(e.toLowerCase())||null}function O(e){if(null!=e&&!(0,i.B3)(e))return 1;const t=A(e);return t>1e5?1:t}function w(e){return A(e)>=(0,n.tO)(e).metersPerDegree?"meters":G(e)}function A(e,t=s.$O.metersPerDegree){return function(e,t=!1){const r=e?.wkid??null,o=e?.wkt2??e?.wkt??null;let n=null;if(r){if((0,i.tl)(r))return s.sH.metersPerDegree;if((0,i.ZL)(r))return s.Sw.metersPerDegree;n=l.values[l[r]],!n&&t&&d.has(r)&&(n=u)}else o&&(b(o)?n=R(c.exec(o),n):k(o)&&(n=R(_.exec(o),n)));return n}(e,!0)??t}function C(e){return(0,i.EA)(e)?1:A(e)}function R(e,t){return e?.[1]?N(e[1]):t}function N(e){return parseFloat(e.split(",")[1])}function G(e){const t=e?.wkid??null,r=e?.wkt2??e?.wkt??null;let o=null;if(t)o=l.units[l[t]];else if(r){const e=b(r)?c:k(r)?_:null;if(e){const t=e.exec(r);t?.[1]&&(o=function(e){const t=/[\\"']{1}([^\\"']+)/.exec(e);let r=t?.[1];if(!r||!l.units.includes(r)){const t=N(e);r=null;const o=l.values;for(let e=0;e<o.length;++e)if(Math.abs(t-o[e])<U){r=l.units[e];break}}return r}(t[1]))}}return null!=o?y(o):null}function k(e){return/^GEOCCS/i.test(e)}function b(e){return/^\s*(?:PROJCS|PROJCRS|PROJECTEDCRS)/i.test(e)}new Map([["meters","square-meters"],["feet","square-feet"],["us-feet","square-us-feet"]]);const U=1e-7,D=(0,o.O)()({esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"}),I=(0,o.O)()({esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"}),v=(0,o.O)()({esriDUDecimalDegrees:"degrees",esriDURadians:"radians"})},16930:(e,t,r)=>{r.d(t,{A:()=>p});var o,n=r(90237),s=r(25482),i=r(4718),a=r(83047),f=r(56507),u=r(10107),c=r(40608),l=r(43937),_=r(21325);let d=o=class extends s.oY{static fromJSON(e){if(!e)return null;if(102100===e?.wkid)return o.WebMercator;if(4326===e?.wkid)return o.WGS84;const t=new o;return t.read(e),t}constructor(e){super(e),this.latestWkid=null,this.wkid=null,this.wkt=null,this.wkt2=null,this.vcsWkid=null,this.latestVcsWkid=null,this.imageCoordinateSystem=null}normalizeCtorArgs(e){if(e&&"object"==typeof e)return e;const t="string"==typeof e?"wkt":"wkid";return{[t]:e}}get isWGS84(){return(0,_.oT)(this)}get isWebMercator(){return(0,_.K8)(this)}get isGeographic(){return(0,_.EA)(this)}get isWrappable(){return(0,_.d9)(this)}get metersPerUnit(){return(0,a.GA)(this)}get unit(){return(0,a.Ij)(this)||(this.isGeographic?"degrees":null)}writeWkt(e,t){this.wkid||(t.wkt=e)}clone(){if(this===o.WGS84)return new o(_.KK);if(this===o.WebMercator)return new o(_.ch);const e=new o;return null!=this.wkid?(e.wkid=this.wkid,null!=this.latestWkid&&(e.latestWkid=this.latestWkid),null!=this.vcsWkid&&(e.vcsWkid=this.vcsWkid),null!=this.latestVcsWkid&&(e.latestVcsWkid=this.latestVcsWkid)):(null!=this.wkt&&(e.wkt=this.wkt),null!=this.wkt2&&(e.wkt2=this.wkt2)),this.imageCoordinateSystem&&(e.imageCoordinateSystem=(0,i.o8)(this.imageCoordinateSystem)),e}equals(e){if(null==e)return!1;if(this.imageCoordinateSystem||e.imageCoordinateSystem){if(null==this.imageCoordinateSystem||null==e.imageCoordinateSystem)return!1;const{id:t,referenceServiceName:r}=e.imageCoordinateSystem,{geodataXform:o}=e.imageCoordinateSystem,n=this.imageCoordinateSystem;return null==t||o?JSON.stringify(n)===JSON.stringify(e.imageCoordinateSystem):r?n.id===t&&n.referenceServiceName===r:n.id===t}return(0,_.aI)(this,e)}toJSON(e){return this.write(void 0,e)}};d.GCS_NAD_1927=null,d.WGS84=null,d.WebMercator=null,d.PlateCarree=null,(0,n._)([(0,u.MZ)({readOnly:!0})],d.prototype,"isWGS84",null),(0,n._)([(0,u.MZ)({readOnly:!0})],d.prototype,"isWebMercator",null),(0,n._)([(0,u.MZ)({readOnly:!0})],d.prototype,"isGeographic",null),(0,n._)([(0,u.MZ)({readOnly:!0})],d.prototype,"isWrappable",null),(0,n._)([(0,u.MZ)({type:f.jz,json:{write:!0}})],d.prototype,"latestWkid",void 0),(0,n._)([(0,u.MZ)({readOnly:!0})],d.prototype,"metersPerUnit",null),(0,n._)([(0,u.MZ)({readOnly:!0})],d.prototype,"unit",null),(0,n._)([(0,u.MZ)({type:f.jz,json:{write:!0,origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkt}}}}}}})],d.prototype,"wkid",void 0),(0,n._)([(0,u.MZ)({type:String,json:{origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkid}}}}}}})],d.prototype,"wkt",void 0),(0,n._)([(0,l.K)("wkt"),(0,l.K)("web-scene","wkt")],d.prototype,"writeWkt",null),(0,n._)([(0,u.MZ)({type:String,json:{write:!1}})],d.prototype,"wkt2",void 0),(0,n._)([(0,u.MZ)({type:f.jz,json:{write:!0}})],d.prototype,"vcsWkid",void 0),(0,n._)([(0,u.MZ)({type:f.jz,json:{write:!0}})],d.prototype,"latestVcsWkid",void 0),(0,n._)([(0,u.MZ)()],d.prototype,"imageCoordinateSystem",void 0),d=o=(0,n._)([(0,c.$)("esri.geometry.SpatialReference")],d),d.prototype.toJSON.isDefaultToJSON=!0,d.GCS_NAD_1927=new d({wkid:4267,wkt:'GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]'}),d.WGS84=new d(_.KK),d.WebMercator=new d(_.ch),d.PlateCarree=new d(_.tQ),Object.freeze&&(Object.freeze(d.GCS_NAD_1927),Object.freeze(d.WGS84),Object.freeze(d.WebMercator),Object.freeze(d.PlateCarree));const p=d},73941:(e,t,r)=>{r.d(t,{FY:()=>a,LJ:()=>f,Ro:()=>u,fv:()=>i,jA:()=>p,tO:()=>_,xP:()=>h,y7:()=>d});var o=r(79258),n=r(21325);function s(e){return{wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`}}const i=s(o.$O),a=s(o.sH),f=s(o.Sw),u={wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${o.$O.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`},c=a.wkt.toUpperCase(),l=f.wkt.toUpperCase();function _(e){if(null!=e&&(0,n.fn)(e)){const t=e.wkid,r=e.wkt2??e.wkt;if((0,n.tl)(t))return o.sH;const s=r?.toUpperCase();if(r&&s===c)return o.sH;if((0,n.ZL)(t)||s&&s===l)return o.Sw}return o.$O}function d(e){return(0,n.tl)(e)?o.sH:(0,n.ZL)(e)?o.Sw:o.$O}function p(e){return(0,n.aI)(e,i)}function h(e){return p(e)||(0,n.aI)(e,a)||(0,n.aI)(e,f)}},79258:(e,t,r)=>{r.d(t,{$O:()=>n,Sw:()=>i,sH:()=>s});class o{constructor(e,t,r,o){this.semiMajorAxis=e,this.flattening=t,this.outerAtmosphereRimWidth=r;const n=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*n,this.halfSemiMajorAxis=this.semiMajorAxis/2,this.halfCircumference=Math.PI*this.semiMajorAxis,this.metersPerDegree=this.halfCircumference/180,this.inverseFlattening=1/(1-this.flattening)-1,this.eccentricitySquared=o||2*this.flattening-this.flattening*this.flattening,this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}get radius(){return this.semiMajorAxis}}const n=new o(6378137,1/298.257223563,3e5,.006694379990137799),s=new o(3396190,1/169.8944472236118,23e4),i=new o(1737400,0,0)},19936:(e,t,r)=>{var o;r.d(t,{Y:()=>o}),function(e){e[e.CGCS2000=4490]="CGCS2000",e[e.GCSMARS2000=104971]="GCSMARS2000",e[e.GCSMARS2000_SPHERE=104905]="GCSMARS2000_SPHERE",e[e.GCSMOON2000=104903]="GCSMOON2000"}(o||(o={}))},22530:(e,t,r)=>{let o;r.d(t,{A:()=>n});const n={values:[1,.3048,.3048006096012192,.3047972654,.9143917962,.201166195164,.9143984146160287,.3047994715386762,20.11676512155263,20.11678249437587,.9143985307444408,.91439523,.3047997101815088,20.1168,20.116756,5e4,15e4],units:["Meter","Foot","Foot_US","Foot_Clarke","Yard_Clarke","Link_Clarke","Yard_Sears","Foot_Sears","Chain_Sears","Chain_Benoit_1895_B","Yard_Indian","Yard_Indian_1937","Foot_Gold_Coast","Chain","Chain_Sears_1922_Truncated","50_Kilometers","150_Kilometers"],2066:5,2136:12,2155:2,2157:0,2158:0,2159:12,2160:12,2204:2,2219:0,2220:0,2254:2,2255:2,2256:1,2265:1,2266:1,2267:2,2268:2,2269:1,2270:1,2271:2,2272:2,2273:1,2294:0,2295:0,2314:3,2899:2,2900:2,2901:1,2909:1,2910:1,2911:2,2912:2,2913:1,2914:1,2992:1,2993:0,2994:1,3080:1,3089:2,3090:0,3091:2,3102:2,3141:0,3142:0,3167:14,3359:2,3360:0,3361:1,3362:0,3363:2,3364:0,3365:2,3366:3,3404:2,3405:0,3406:0,3407:3,3439:0,3440:0,3479:1,3480:0,3481:1,3482:0,3483:1,3484:0,3485:2,3486:0,3487:2,3488:0,3489:0,3490:2,3491:0,3492:2,3493:0,3494:2,3495:0,3496:2,3497:0,3498:2,3499:0,3500:2,3501:0,3502:2,3503:0,3504:2,3505:0,3506:2,3507:0,3508:2,3509:0,3510:2,3511:0,3512:2,3513:0,3514:0,3515:2,3516:0,3517:2,3518:0,3519:2,3520:0,3521:2,3522:0,3523:2,3524:0,3525:2,3526:0,3527:2,3528:0,3529:2,3530:0,3531:2,3532:0,3533:2,3534:0,3535:2,3536:0,3537:2,3538:0,3539:2,3540:0,3541:2,3542:0,3543:2,3544:0,3545:2,3546:0,3547:2,3548:0,3549:2,3550:0,3551:2,3552:0,3553:2,3582:2,3583:0,3584:2,3585:0,3586:2,3587:0,3588:1,3589:0,3590:1,3591:0,3592:0,3593:1,3598:2,3599:0,3600:2,3605:1,3606:0,3607:0,3608:2,3609:0,3610:2,3611:0,3612:2,3613:0,3614:2,3615:0,3616:2,3617:0,3618:2,3619:0,3620:2,3621:0,3622:2,3623:0,3624:2,3625:0,3626:2,3627:0,3628:2,3629:0,3630:2,3631:0,3632:2,3633:0,3634:1,3635:0,3636:1,3640:2,3641:0,3642:2,3643:0,3644:1,3645:0,3646:1,3647:0,3648:1,3649:0,3650:2,3651:0,3652:2,3653:0,3654:2,3655:0,3656:1,3657:0,3658:2,3659:0,3660:2,3661:0,3662:2,3663:0,3664:2,3668:2,3669:0,3670:2,3671:0,3672:2,3673:0,3674:2,3675:0,3676:1,3677:2,3678:0,3679:1,3680:2,3681:0,3682:1,3683:2,3684:0,3685:0,3686:2,3687:0,3688:2,3689:0,3690:2,3691:0,3692:2,3696:2,3697:0,3698:2,3699:0,3700:2,3793:0,3794:0,3812:0,3854:0,3857:0,3920:0,3978:0,3979:0,3991:2,3992:2,4026:0,4037:0,4038:0,4071:0,4082:0,4083:0,4087:0,4088:0,4217:2,4414:0,4415:0,4417:0,4434:0,4437:0,4438:2,4439:2,4462:0,4467:0,4471:0,4474:0,4559:0,4647:0,4822:0,4826:0,4839:0,5018:0,5041:0,5042:0,5048:0,5221:0,5223:0,5234:0,5235:0,5243:0,5247:0,5266:0,5316:0,5320:0,5321:0,5325:0,5337:0,5361:0,5362:0,5367:0,5382:0,5383:0,5396:0,5456:0,5457:0,5469:0,5472:4,5490:0,5513:0,5514:0,5523:0,5559:0,5588:1,5589:3,5596:0,5627:0,5629:0,5641:0,5643:0,5644:0,5646:2,5654:2,5655:2,5659:0,5700:0,5825:0,5836:0,5837:0,5839:0,5842:0,5844:0,5858:0,5879:0,5880:0,5887:0,5890:0,6128:1,6129:1,6141:1,6204:0,6210:0,6211:0,6307:0,6312:0,6316:0,6362:0,6391:1,6405:1,6406:0,6407:1,6408:0,6409:1,6410:0,6411:2,6412:0,6413:2,6414:0,6415:0,6416:2,6417:0,6418:2,6419:0,6420:2,6421:0,6422:2,6423:0,6424:2,6425:0,6426:2,6427:0,6428:2,6429:0,6430:2,6431:0,6432:2,6433:0,6434:2,6435:0,6436:2,6437:0,6438:2,6439:0,6440:0,6441:2,6442:0,6443:2,6444:0,6445:2,6446:0,6447:2,6448:0,6449:2,6450:0,6451:2,6452:0,6453:2,6454:0,6455:2,6456:0,6457:2,6458:0,6459:2,6460:0,6461:2,6462:0,6463:2,6464:0,6465:2,6466:0,6467:2,6468:0,6469:2,6470:0,6471:2,6472:0,6473:2,6474:0,6475:2,6476:0,6477:2,6478:0,6479:2,6484:2,6485:0,6486:2,6487:0,6488:2,6489:0,6490:2,6491:0,6492:2,6493:0,6494:1,6495:0,6496:1,6497:0,6498:0,6499:1,6500:0,6501:2,6502:0,6503:2,6504:0,6505:2,6506:0,6507:2,6508:0,6509:0,6510:2,6515:1,6516:0,6518:0,6519:2,6520:0,6521:2,6522:0,6523:2,6524:0,6525:2,6526:0,6527:2,6528:0,6529:2,6530:0,6531:2,6532:0,6533:2,6534:0,6535:2,6536:0,6537:2,6538:0,6539:2,6540:0,6541:2,6542:0,6543:2,6544:0,6545:1,6546:0,6547:1,6548:0,6549:2,6550:0,6551:2,6552:0,6553:2,6554:0,6555:2,6556:0,6557:1,6558:0,6559:1,6560:0,6561:1,6562:0,6563:2,6564:0,6565:2,6566:0,6567:0,6568:2,6569:0,6570:1,6571:0,6572:2,6573:0,6574:2,6575:0,6576:2,6577:0,6578:2,6582:2,6583:0,6584:2,6585:0,6586:2,6587:0,6588:2,6589:0,6590:2,6591:0,6592:0,6593:2,6594:0,6595:2,6596:0,6597:2,6598:0,6599:2,6600:0,6601:2,6602:0,6603:2,6605:2,6606:0,6607:2,6608:0,6609:2,6610:0,6611:0,6612:2,6613:0,6614:2,6615:0,6616:2,6617:0,6618:2,6633:2,6646:0,6703:0,6784:0,6785:1,6786:0,6787:1,6788:0,6789:1,6790:0,6791:1,6792:0,6793:1,6794:0,6795:1,6796:0,6797:1,6798:0,6799:1,6800:0,6801:1,6802:0,6803:1,6804:0,6805:1,6806:0,6807:1,6808:0,6809:1,6810:0,6811:1,6812:0,6813:1,6814:0,6815:1,6816:0,6817:1,6818:0,6819:1,6820:0,6821:1,6822:0,6823:1,6824:0,6825:1,6826:0,6827:1,6828:0,6829:1,6830:0,6831:1,6832:0,6833:1,6834:0,6835:1,6836:0,6837:1,6838:0,6839:1,6840:0,6841:1,6842:0,6843:1,6844:0,6845:1,6846:0,6847:1,6848:0,6849:1,6850:0,6851:1,6852:0,6853:1,6854:0,6855:1,6856:0,6857:1,6858:0,6859:1,6860:0,6861:1,6862:0,6863:1,6867:0,6868:1,6870:0,6875:0,6876:0,6879:0,6880:2,6884:0,6885:1,6886:0,6887:1,6915:0,6922:0,6923:2,6924:0,6925:2,6962:0,6984:0,6991:0,7128:2,7131:0,7132:2,7142:0,7257:0,7258:2,7259:0,7260:2,7261:0,7262:2,7263:0,7264:2,7265:0,7266:2,7267:0,7268:2,7269:0,7270:2,7271:0,7272:2,7273:0,7274:2,7275:0,7276:2,7277:0,7278:2,7279:0,7280:2,7281:0,7282:2,7283:0,7284:2,7285:0,7286:2,7287:0,7288:2,7289:0,7290:2,7291:0,7292:2,7293:0,7294:2,7295:0,7296:2,7297:0,7298:2,7299:0,7300:2,7301:0,7302:2,7303:0,7304:2,7305:0,7306:2,7307:0,7308:2,7309:0,7310:2,7311:0,7312:2,7313:0,7314:2,7315:0,7316:2,7317:0,7318:2,7319:0,7320:2,7321:0,7322:2,7323:0,7324:2,7325:0,7326:2,7327:0,7328:2,7329:0,7330:2,7331:0,7332:2,7333:0,7334:2,7335:0,7336:2,7337:0,7338:2,7339:0,7340:2,7341:0,7342:2,7343:0,7344:2,7345:0,7346:2,7347:0,7348:2,7349:0,7350:2,7351:0,7352:2,7353:0,7354:2,7355:0,7356:2,7357:0,7358:2,7359:0,7360:2,7361:0,7362:2,7363:0,7364:2,7365:0,7366:2,7367:0,7368:2,7369:0,7370:2,7877:0,7878:0,7882:0,7883:0,7887:0,7899:0,7991:0,7992:0,8035:2,8036:2,8058:0,8059:0,8082:0,8083:0,8088:0,8090:0,8091:2,8092:0,8093:2,8095:0,8096:2,8097:0,8098:2,8099:0,8100:2,8101:0,8102:2,8103:0,8104:2,8105:0,8106:2,8107:0,8108:2,8109:0,8110:2,8111:0,8112:2,8113:0,8114:2,8115:0,8116:2,8117:0,8118:2,8119:0,8120:2,8121:0,8122:2,8123:0,8124:2,8125:0,8126:2,8127:0,8128:2,8129:0,8130:2,8131:0,8132:2,8133:0,8134:2,8135:0,8136:2,8137:0,8138:2,8139:0,8140:2,8141:0,8142:2,8143:0,8144:2,8145:0,8146:2,8147:0,8148:2,8149:0,8150:2,8151:0,8152:2,8153:0,8154:2,8155:0,8156:2,8157:0,8158:2,8159:0,8160:2,8161:0,8162:2,8163:0,8164:2,8165:0,8166:2,8167:0,8168:2,8169:0,8170:2,8171:0,8172:2,8173:0,8177:2,8179:0,8180:2,8181:0,8182:2,8184:0,8185:2,8187:0,8189:2,8191:0,8193:2,8196:0,8197:2,8198:0,8200:2,8201:0,8202:2,8203:0,8204:2,8205:0,8206:2,8207:0,8208:2,8209:0,8210:2,8212:0,8213:2,8214:0,8216:2,8218:0,8220:2,8222:0,8224:2,8225:0,8226:2,8311:0,8312:1,8313:0,8314:1,8315:0,8316:1,8317:0,8318:1,8319:0,8320:1,8321:0,8322:1,8323:0,8324:1,8325:0,8326:1,8327:0,8328:1,8329:0,8330:1,8331:0,8332:1,8333:0,8334:1,8335:0,8336:1,8337:0,8338:1,8339:0,8340:1,8341:0,8342:1,8343:0,8344:1,8345:0,8346:1,8347:0,8348:1,8352:0,8353:0,8379:0,8380:2,8381:0,8382:2,8383:0,8384:2,8385:0,8387:2,8391:0,8395:0,8433:0,8441:0,8455:0,8456:0,8531:2,8682:0,8686:0,8687:0,8692:0,8693:0,8826:0,8903:0,8950:0,8951:0,9039:0,9040:0,9141:0,9149:0,9150:0,9191:0,9221:0,9222:0,9249:0,9250:0,9252:0,9254:0,9265:0,9284:0,9285:0,9300:0,9354:0,9367:0,9373:0,9377:0,9387:0,9391:0,9456:0,9473:0,9498:0,9674:0,9678:0,9680:0,9709:0,9712:0,9713:0,9716:0,9741:0,9748:2,9749:2,9761:0,9766:0,9793:0,9794:0,9869:0,9874:0,9875:0,9880:0,9895:0,9943:0,9945:0,9947:0,9967:0,9972:0,9977:0,10160:0,10183:0,10188:0,10194:0,10199:0,10207:0,10212:0,10217:0,10222:0,10227:0,10235:0,10240:0,10250:0,10254:0,10270:0,10275:0,10280:0,10306:0,10329:0,10471:0,10477:0,10481:2,10516:2,20002:0,20042:0,20050:1,20499:0,20538:0,20539:0,20790:0,20791:0,21291:0,21292:0,21500:0,21817:0,21818:0,22032:0,22033:0,22091:0,22092:0,22239:0,22240:0,22332:0,22337:0,22338:0,22391:0,22392:0,22639:0,22700:0,22739:0,22770:0,22780:0,22832:0,23090:0,23095:0,23239:0,23240:0,23433:0,23700:0,24047:0,24048:0,24100:3,24200:0,24305:0,24306:0,24382:10,24383:0,24500:0,24547:0,24548:0,24571:9,24600:0,25e3:0,25231:0,25884:0,25932:0,26237:0,26331:0,26332:0,26432:0,26591:0,26592:0,26632:0,26692:0,27120:0,27200:0,27291:6,27292:6,27429:0,27492:0,27493:0,27500:0,28232:0,28600:0,28991:0,28992:0,29100:0,29101:0,29220:0,29221:0,29333:0,29635:0,29636:0,29701:0,29738:0,29739:0,29849:0,29850:0,29871:8,29872:7,29873:0,29874:0,30200:5,30339:0,30340:0,30591:0,30592:0,30791:0,30792:0,30800:0,31028:0,31121:0,31154:0,31170:0,31171:0,31370:0,31528:0,31529:0,31600:0,31700:0,31838:0,31839:0,31900:0,31901:0,32061:0,32062:0,32098:0,32099:2,32100:0,32104:0,32161:0,32766:0,53048:0,53049:0,54090:0,54091:0,65061:2,65062:2,65161:0,65163:0,102041:2,102064:11,102068:15,102069:16,102118:2,102119:1,102120:2,102121:2,102217:2,102218:0,102219:2,102220:2,102378:1,102379:1,102380:0,102381:1,102589:2,102599:2,102600:2,102604:2,102647:0,102704:2,102705:2,102706:0,102731:0,102732:0,102759:1,102760:1,102761:2,102762:0,102763:2,102764:0,102765:0,102766:2,102970:1,102974:2,102993:0,102994:0,102995:2,102996:2,103015:0,103016:2,103017:0,103018:2,103025:0,103026:0,103027:2,103028:2,103035:0,103036:0,103037:2,103038:2,103039:0,103040:0,103041:2,103042:2,103043:0,103044:0,103045:2,103046:2,103047:0,103048:0,103049:2,103050:2,103051:0,103052:2,103053:0,103054:2,103055:0,103056:2,103057:0,103058:0,103059:2,103060:2,103061:0,103062:0,103063:2,103064:2,103069:2,103070:0,103071:0,103072:2,103073:2,103086:0,103087:0,103088:2,103089:2,103094:1,103095:0,103096:2,103103:0,103104:2,103105:0,103106:2,103121:0,103122:2,103123:0,103124:0,103125:1,103126:1,103127:0,103128:0,103129:2,103130:2,103131:0,103132:0,103133:2,103134:2,103135:0,103136:0,103137:1,103138:1,103139:0,103140:2,103141:0,103142:2,103143:0,103144:2,103145:0,103146:1,103147:0,103148:0,103149:2,103150:2,103151:0,103152:2,103172:0,103173:2,103174:0,103175:0,103176:2,103177:2,103178:0,103179:0,103180:2,103181:2,103182:0,103183:0,103184:2,103185:2,103228:0,103229:0,103230:2,103231:2,103250:0,103251:2,103252:0,103253:2,103260:0,103261:0,103262:2,103263:2,103270:0,103271:0,103272:2,103273:2,103274:0,103275:0,103276:2,103277:2,103278:0,103279:0,103280:2,103281:2,103282:0,103283:0,103284:2,103285:2,103286:0,103287:2,103288:0,103289:2,103290:0,103291:2,103292:0,103293:0,103294:2,103295:2,103296:0,103297:0,103298:2,103299:2,103376:2,103377:0,103378:0,103379:2,103380:2,103393:0,103394:0,103395:2,103396:2,103472:0,103473:1,103474:0,103475:2,103482:0,103483:2,103484:0,103485:2,103500:0,103501:2,103502:0,103503:0,103504:1,103505:1,103506:0,103507:0,103508:2,103509:2,103510:0,103511:0,103512:2,103513:2,103514:0,103515:2,103516:0,103517:2,103518:0,103519:2,103520:0,103521:1,103522:0,103523:0,103524:2,103525:2,103526:0,103527:2,103561:2,103562:2,103563:0,103564:0,103565:2,103566:2,103567:0,103568:0,103569:2,103570:2,103584:0,103585:2,103586:0,103587:2,103588:1,103589:0,103590:2,103591:1,103592:0,103593:2,103594:1,103695:2,103897:1};for(o=2e3;o<=2045;o++)n[o]=0;for(o=2056;o<=2065;o++)n[o]=0;for(o=2067;o<=2135;o++)n[o]=0;for(o=2137;o<=2154;o++)n[o]=0;for(o=2161;o<=2170;o++)n[o]=0;for(o=2172;o<=2193;o++)n[o]=0;for(o=2195;o<=2198;o++)n[o]=0;for(o=2200;o<=2203;o++)n[o]=0;for(o=2205;o<=2217;o++)n[o]=0;for(o=2222;o<=2224;o++)n[o]=1;for(o=2225;o<=2250;o++)n[o]=2;for(o=2251;o<=2253;o++)n[o]=1;for(o=2257;o<=2264;o++)n[o]=2;for(o=2274;o<=2279;o++)n[o]=2;for(o=2280;o<=2282;o++)n[o]=1;for(o=2283;o<=2289;o++)n[o]=2;for(o=2290;o<=2292;o++)n[o]=0;for(o=2308;o<=2313;o++)n[o]=0;for(o=2315;o<=2491;o++)n[o]=0;for(o=2494;o<=2866;o++)n[o]=0;for(o=2867;o<=2869;o++)n[o]=1;for(o=2870;o<=2888;o++)n[o]=2;for(o=2891;o<=2895;o++)n[o]=2;for(o=2896;o<=2898;o++)n[o]=1;for(o=2902;o<=2908;o++)n[o]=2;for(o=2915;o<=2920;o++)n[o]=2;for(o=2921;o<=2923;o++)n[o]=1;for(o=2924;o<=2930;o++)n[o]=2;for(o=2931;o<=2962;o++)n[o]=0;for(o=2964;o<=2968;o++)n[o]=2;for(o=2969;o<=2973;o++)n[o]=0;for(o=2975;o<=2991;o++)n[o]=0;for(o=2995;o<=3051;o++)n[o]=0;for(o=3054;o<=3079;o++)n[o]=0;for(o=3081;o<=3088;o++)n[o]=0;for(o=3092;o<=3101;o++)n[o]=0;for(o=3106;o<=3138;o++)n[o]=0;for(o=3146;o<=3151;o++)n[o]=0;for(o=3153;o<=3166;o++)n[o]=0;for(o=3168;o<=3172;o++)n[o]=0;for(o=3174;o<=3203;o++)n[o]=0;for(o=3294;o<=3358;o++)n[o]=0;for(o=3367;o<=3403;o++)n[o]=0;for(o=3408;o<=3416;o++)n[o]=0;for(o=3417;o<=3438;o++)n[o]=2;for(o=3441;o<=3446;o++)n[o]=2;for(o=3447;o<=3450;o++)n[o]=0;for(o=3451;o<=3459;o++)n[o]=2;for(o=3460;o<=3478;o++)n[o]=0;for(o=3554;o<=3559;o++)n[o]=0;for(o=3560;o<=3570;o++)n[o]=2;for(o=3571;o<=3581;o++)n[o]=0;for(o=3594;o<=3597;o++)n[o]=0;for(o=3601;o<=3604;o++)n[o]=0;for(o=3637;o<=3639;o++)n[o]=0;for(o=3665;o<=3667;o++)n[o]=0;for(o=3693;o<=3695;o++)n[o]=0;for(o=3701;o<=3727;o++)n[o]=0;for(o=3728;o<=3739;o++)n[o]=2;for(o=3740;o<=3751;o++)n[o]=0;for(o=3753;o<=3760;o++)n[o]=2;for(o=3761;o<=3773;o++)n[o]=0;for(o=3775;o<=3777;o++)n[o]=0;for(o=3779;o<=3781;o++)n[o]=0;for(o=3783;o<=3785;o++)n[o]=0;for(o=3788;o<=3791;o++)n[o]=0;for(o=3797;o<=3802;o++)n[o]=0;for(o=3814;o<=3816;o++)n[o]=0;for(o=3825;o<=3829;o++)n[o]=0;for(o=3832;o<=3841;o++)n[o]=0;for(o=3844;o<=3852;o++)n[o]=0;for(o=3873;o<=3885;o++)n[o]=0;for(o=3890;o<=3893;o++)n[o]=0;for(o=3907;o<=3912;o++)n[o]=0;for(o=3942;o<=3950;o++)n[o]=0;for(o=3968;o<=3970;o++)n[o]=0;for(o=3973;o<=3976;o++)n[o]=0;for(o=3986;o<=3989;o++)n[o]=0;for(o=3994;o<=3997;o++)n[o]=0;for(o=4048;o<=4051;o++)n[o]=0;for(o=4056;o<=4063;o++)n[o]=0;for(o=4093;o<=4096;o++)n[o]=0;for(o=4390;o<=4398;o++)n[o]=0;for(o=4399;o<=4413;o++)n[o]=2;for(o=4418;o<=4433;o++)n[o]=2;for(o=4455;o<=4457;o++)n[o]=2;for(o=4484;o<=4489;o++)n[o]=0;for(o=4491;o<=4554;o++)n[o]=0;for(o=4568;o<=4589;o++)n[o]=0;for(o=4652;o<=4656;o++)n[o]=0;for(o=4766;o<=4800;o++)n[o]=0;for(o=5014;o<=5016;o++)n[o]=0;for(o=5069;o<=5072;o++)n[o]=0;for(o=5105;o<=5130;o++)n[o]=0;for(o=5167;o<=5188;o++)n[o]=0;for(o=5253;o<=5259;o++)n[o]=0;for(o=5269;o<=5275;o++)n[o]=0;for(o=5292;o<=5311;o++)n[o]=0;for(o=5329;o<=5331;o++)n[o]=0;for(o=5343;o<=5349;o++)n[o]=0;for(o=5355;o<=5357;o++)n[o]=0;for(o=5387;o<=5389;o++)n[o]=0;for(o=5459;o<=5463;o++)n[o]=0;for(o=5479;o<=5482;o++)n[o]=0;for(o=5518;o<=5520;o++)n[o]=0;for(o=5530;o<=5539;o++)n[o]=0;for(o=5550;o<=5552;o++)n[o]=0;for(o=5562;o<=5583;o++)n[o]=0;for(o=5623;o<=5625;o++)n[o]=2;for(o=5631;o<=5639;o++)n[o]=0;for(o=5649;o<=5653;o++)n[o]=0;for(o=5663;o<=5680;o++)n[o]=0;for(o=5682;o<=5685;o++)n[o]=0;for(o=5875;o<=5877;o++)n[o]=0;for(o=5896;o<=5899;o++)n[o]=0;for(o=5921;o<=5940;o++)n[o]=0;for(o=6050;o<=6125;o++)n[o]=0;for(o=6244;o<=6275;o++)n[o]=0;for(o=6328;o<=6348;o++)n[o]=0;for(o=6350;o<=6356;o++)n[o]=0;for(o=6366;o<=6372;o++)n[o]=0;for(o=6381;o<=6387;o++)n[o]=0;for(o=6393;o<=6404;o++)n[o]=0;for(o=6480;o<=6483;o++)n[o]=0;for(o=6511;o<=6514;o++)n[o]=0;for(o=6579;o<=6581;o++)n[o]=0;for(o=6619;o<=6624;o++)n[o]=0;for(o=6625;o<=6627;o++)n[o]=2;for(o=6628;o<=6632;o++)n[o]=0;for(o=6634;o<=6637;o++)n[o]=0;for(o=6669;o<=6692;o++)n[o]=0;for(o=6707;o<=6709;o++)n[o]=0;for(o=6720;o<=6723;o++)n[o]=0;for(o=6732;o<=6738;o++)n[o]=0;for(o=6931;o<=6933;o++)n[o]=0;for(o=6956;o<=6959;o++)n[o]=0;for(o=7005;o<=7007;o++)n[o]=0;for(o=7057;o<=7070;o++)n[o]=2;for(o=7074;o<=7082;o++)n[o]=0;for(o=7109;o<=7118;o++)n[o]=0;for(o=7119;o<=7127;o++)n[o]=1;for(o=7374;o<=7376;o++)n[o]=0;for(o=7528;o<=7586;o++)n[o]=0;for(o=7587;o<=7645;o++)n[o]=2;for(o=7692;o<=7696;o++)n[o]=0;for(o=7755;o<=7787;o++)n[o]=0;for(o=7791;o<=7795;o++)n[o]=0;for(o=7799;o<=7801;o++)n[o]=0;for(o=7803;o<=7805;o++)n[o]=0;for(o=7825;o<=7831;o++)n[o]=0;for(o=7845;o<=7859;o++)n[o]=0;for(o=8013;o<=8032;o++)n[o]=0;for(o=8065;o<=8068;o++)n[o]=1;for(o=8518;o<=8529;o++)n[o]=2;for(o=8533;o<=8536;o++)n[o]=2;for(o=8538;o<=8540;o++)n[o]=2;for(o=8677;o<=8679;o++)n[o]=0;for(o=8836;o<=8840;o++)n[o]=0;for(o=8857;o<=8859;o++)n[o]=0;for(o=8908;o<=8910;o++)n[o]=0;for(o=9154;o<=9159;o++)n[o]=0;for(o=9205;o<=9218;o++)n[o]=0;for(o=9271;o<=9273;o++)n[o]=0;for(o=9295;o<=9297;o++)n[o]=0;for(o=9356;o<=9360;o++)n[o]=0;for(o=9404;o<=9407;o++)n[o]=0;for(o=9476;o<=9482;o++)n[o]=0;for(o=9487;o<=9494;o++)n[o]=0;for(o=9697;o<=9699;o++)n[o]=0;for(o=9821;o<=9865;o++)n[o]=0;for(o=10285;o<=10291;o++)n[o]=0;for(o=10314;o<=10317;o++)n[o]=0;for(o=10448;o<=10465;o++)n[o]=0;for(o=10731;o<=10733;o++)n[o]=0;for(o=11114;o<=11118;o++)n[o]=0;for(o=20004;o<=20032;o++)n[o]=0;for(o=20047;o<=20049;o++)n[o]=0;for(o=20062;o<=20092;o++)n[o]=0;for(o=20135;o<=20138;o++)n[o]=0;for(o=20248;o<=20258;o++)n[o]=0;for(o=20348;o<=20358;o++)n[o]=0;for(o=20436;o<=20440;o++)n[o]=0;for(o=20822;o<=20824;o++)n[o]=0;for(o=20904;o<=20932;o++)n[o]=0;for(o=20934;o<=20936;o++)n[o]=0;for(o=21004;o<=21032;o++)n[o]=0;for(o=21035;o<=21037;o++)n[o]=0;for(o=21095;o<=21097;o++)n[o]=0;for(o=21148;o<=21150;o++)n[o]=0;for(o=21207;o<=21264;o++)n[o]=0;for(o=21307;o<=21364;o++)n[o]=0;for(o=21413;o<=21423;o++)n[o]=0;for(o=21453;o<=21463;o++)n[o]=0;for(o=21473;o<=21483;o++)n[o]=0;for(o=21780;o<=21782;o++)n[o]=0;for(o=21891;o<=21894;o++)n[o]=0;for(o=21896;o<=21899;o++)n[o]=0;for(o=22171;o<=22177;o++)n[o]=0;for(o=22181;o<=22187;o++)n[o]=0;for(o=22191;o<=22197;o++)n[o]=0;for(o=22207;o<=22222;o++)n[o]=0;for(o=22229;o<=22232;o++)n[o]=0;for(o=22234;o<=22236;o++)n[o]=0;for(o=22243;o<=22250;o++)n[o]=0;for(o=22262;o<=22265;o++)n[o]=0;for(o=22307;o<=22322;o++)n[o]=0;for(o=22348;o<=22357;o++)n[o]=0;for(o=22407;o<=22422;o++)n[o]=0;for(o=22462;o<=22465;o++)n[o]=0;for(o=22521;o<=22525;o++)n[o]=0;for(o=22607;o<=22622;o++)n[o]=0;for(o=22641;o<=22646;o++)n[o]=0;for(o=22648;o<=22657;o++)n[o]=0;for(o=22707;o<=22722;o++)n[o]=0;for(o=22762;o<=22765;o++)n[o]=0;for(o=22807;o<=22822;o++)n[o]=0;for(o=22991;o<=22994;o++)n[o]=0;for(o=23028;o<=23038;o++)n[o]=0;for(o=23301;o<=23333;o++)n[o]=2;for(o=23830;o<=23853;o++)n[o]=0;for(o=23866;o<=23872;o++)n[o]=0;for(o=23877;o<=23884;o++)n[o]=0;for(o=23886;o<=23894;o++)n[o]=0;for(o=23946;o<=23948;o++)n[o]=0;for(o=24311;o<=24313;o++)n[o]=0;for(o=24342;o<=24347;o++)n[o]=0;for(o=24370;o<=24374;o++)n[o]=10;for(o=24375;o<=24381;o++)n[o]=0;for(o=24718;o<=24721;o++)n[o]=0;for(o=24817;o<=24821;o++)n[o]=0;for(o=24877;o<=24882;o++)n[o]=0;for(o=24891;o<=24893;o++)n[o]=0;for(o=25391;o<=25395;o++)n[o]=0;for(o=25828;o<=25838;o++)n[o]=0;for(o=26191;o<=26195;o++)n[o]=0;for(o=26391;o<=26393;o++)n[o]=0;for(o=26701;o<=26722;o++)n[o]=0;for(o=26729;o<=26799;o++)n[o]=2;for(o=26801;o<=26803;o++)n[o]=2;for(o=26811;o<=26813;o++)n[o]=2;for(o=26847;o<=26870;o++)n[o]=2;for(o=26891;o<=26899;o++)n[o]=0;for(o=26901;o<=26923;o++)n[o]=0;for(o=26929;o<=26946;o++)n[o]=0;for(o=26948;o<=26998;o++)n[o]=0;for(o=27037;o<=27040;o++)n[o]=0;for(o=27205;o<=27232;o++)n[o]=0;for(o=27258;o<=27260;o++)n[o]=0;for(o=27391;o<=27398;o++)n[o]=0;for(o=27561;o<=27564;o++)n[o]=0;for(o=27571;o<=27574;o++)n[o]=0;for(o=27581;o<=27584;o++)n[o]=0;for(o=27591;o<=27594;o++)n[o]=0;for(o=27700;o<=27707;o++)n[o]=0;for(o=28191;o<=28193;o++)n[o]=0;for(o=28348;o<=28358;o++)n[o]=0;for(o=28402;o<=28432;o++)n[o]=0;for(o=28462;o<=28492;o++)n[o]=0;for(o=29118;o<=29122;o++)n[o]=0;for(o=29168;o<=29172;o++)n[o]=0;for(o=29177;o<=29185;o++)n[o]=0;for(o=29187;o<=29195;o++)n[o]=0;for(o=29900;o<=29903;o++)n[o]=0;for(o=30161;o<=30179;o++)n[o]=0;for(o=30491;o<=30494;o++)n[o]=0;for(o=30729;o<=30732;o++)n[o]=0;for(o=31251;o<=31259;o++)n[o]=0;for(o=31265;o<=31268;o++)n[o]=0;for(o=31275;o<=31279;o++)n[o]=0;for(o=31281;o<=31297;o++)n[o]=0;for(o=31461;o<=31469;o++)n[o]=0;for(o=31491;o<=31495;o++)n[o]=0;for(o=31917;o<=31922;o++)n[o]=0;for(o=31965;o<=32e3;o++)n[o]=0;for(o=32001;o<=32003;o++)n[o]=2;for(o=32005;o<=32031;o++)n[o]=2;for(o=32033;o<=32060;o++)n[o]=2;for(o=32064;o<=32067;o++)n[o]=2;for(o=32074;o<=32077;o++)n[o]=2;for(o=32081;o<=32086;o++)n[o]=0;for(o=32107;o<=32130;o++)n[o]=0;for(o=32133;o<=32159;o++)n[o]=0;for(o=32164;o<=32167;o++)n[o]=2;for(o=32180;o<=32199;o++)n[o]=0;for(o=32201;o<=32260;o++)n[o]=0;for(o=32301;o<=32360;o++)n[o]=0;for(o=32401;o<=32460;o++)n[o]=0;for(o=32501;o<=32560;o++)n[o]=0;for(o=32601;o<=32662;o++)n[o]=0;for(o=32664;o<=32667;o++)n[o]=2;for(o=32701;o<=32761;o++)n[o]=0;for(o=53001;o<=53004;o++)n[o]=0;for(o=53008;o<=53019;o++)n[o]=0;for(o=53021;o<=53032;o++)n[o]=0;for(o=53034;o<=53037;o++)n[o]=0;for(o=53042;o<=53046;o++)n[o]=0;for(o=53074;o<=53080;o++)n[o]=0;for(o=54001;o<=54004;o++)n[o]=0;for(o=54008;o<=54019;o++)n[o]=0;for(o=54021;o<=54032;o++)n[o]=0;for(o=54034;o<=54037;o++)n[o]=0;for(o=54042;o<=54046;o++)n[o]=0;for(o=54048;o<=54053;o++)n[o]=0;for(o=54074;o<=54080;o++)n[o]=0;for(o=54098;o<=54101;o++)n[o]=0;for(o=102001;o<=102040;o++)n[o]=0;for(o=102042;o<=102063;o++)n[o]=0;for(o=102065;o<=102067;o++)n[o]=0;for(o=102070;o<=102117;o++)n[o]=0;for(o=102122;o<=102216;o++)n[o]=0;for(o=102221;o<=102377;o++)n[o]=0;for(o=102382;o<=102388;o++)n[o]=0;for(o=102389;o<=102398;o++)n[o]=2;for(o=102399;o<=102444;o++)n[o]=0;for(o=102445;o<=102447;o++)n[o]=2;for(o=102448;o<=102458;o++)n[o]=0;for(o=102459;o<=102468;o++)n[o]=2;for(o=102469;o<=102499;o++)n[o]=0;for(o=102500;o<=102519;o++)n[o]=1;for(o=102520;o<=102524;o++)n[o]=0;for(o=102525;o<=102529;o++)n[o]=2;for(o=102530;o<=102588;o++)n[o]=0;for(o=102590;o<=102598;o++)n[o]=0;for(o=102601;o<=102603;o++)n[o]=0;for(o=102605;o<=102628;o++)n[o]=0;for(o=102629;o<=102646;o++)n[o]=2;for(o=102648;o<=102700;o++)n[o]=2;for(o=102701;o<=102703;o++)n[o]=0;for(o=102707;o<=102730;o++)n[o]=2;for(o=102733;o<=102758;o++)n[o]=2;for(o=102767;o<=102900;o++)n[o]=0;for(o=102901;o<=102933;o++)n[o]=2;for(o=102934;o<=102950;o++)n[o]=13;for(o=102951;o<=102963;o++)n[o]=0;for(o=102965;o<=102969;o++)n[o]=0;for(o=102971;o<=102973;o++)n[o]=0;for(o=102975;o<=102989;o++)n[o]=0;for(o=102990;o<=102992;o++)n[o]=1;for(o=102997;o<=103002;o++)n[o]=0;for(o=103003;o<=103008;o++)n[o]=2;for(o=103009;o<=103011;o++)n[o]=0;for(o=103012;o<=103014;o++)n[o]=2;for(o=103019;o<=103021;o++)n[o]=0;for(o=103022;o<=103024;o++)n[o]=2;for(o=103029;o<=103031;o++)n[o]=0;for(o=103032;o<=103034;o++)n[o]=2;for(o=103065;o<=103068;o++)n[o]=0;for(o=103074;o<=103076;o++)n[o]=0;for(o=103077;o<=103079;o++)n[o]=1;for(o=103080;o<=103082;o++)n[o]=0;for(o=103083;o<=103085;o++)n[o]=2;for(o=103090;o<=103093;o++)n[o]=0;for(o=103097;o<=103099;o++)n[o]=0;for(o=103100;o<=103102;o++)n[o]=2;for(o=103107;o<=103109;o++)n[o]=0;for(o=103110;o<=103112;o++)n[o]=2;for(o=103113;o<=103116;o++)n[o]=0;for(o=103117;o<=103120;o++)n[o]=2;for(o=103153;o<=103157;o++)n[o]=0;for(o=103158;o<=103162;o++)n[o]=2;for(o=103163;o<=103165;o++)n[o]=0;for(o=103166;o<=103168;o++)n[o]=1;for(o=103169;o<=103171;o++)n[o]=2;for(o=103186;o<=103188;o++)n[o]=0;for(o=103189;o<=103191;o++)n[o]=2;for(o=103192;o<=103195;o++)n[o]=0;for(o=103196;o<=103199;o++)n[o]=2;for(o=103200;o<=103224;o++)n[o]=0;for(o=103225;o<=103227;o++)n[o]=1;for(o=103232;o<=103237;o++)n[o]=0;for(o=103238;o<=103243;o++)n[o]=2;for(o=103244;o<=103246;o++)n[o]=0;for(o=103247;o<=103249;o++)n[o]=2;for(o=103254;o<=103256;o++)n[o]=0;for(o=103257;o<=103259;o++)n[o]=2;for(o=103264;o<=103266;o++)n[o]=0;for(o=103267;o<=103269;o++)n[o]=2;for(o=103300;o<=103375;o++)n[o]=0;for(o=103381;o<=103383;o++)n[o]=0;for(o=103384;o<=103386;o++)n[o]=1;for(o=103387;o<=103389;o++)n[o]=0;for(o=103390;o<=103392;o++)n[o]=2;for(o=103397;o<=103399;o++)n[o]=0;for(o=103400;o<=103471;o++)n[o]=2;for(o=103476;o<=103478;o++)n[o]=0;for(o=103479;o<=103481;o++)n[o]=2;for(o=103486;o<=103488;o++)n[o]=0;for(o=103489;o<=103491;o++)n[o]=2;for(o=103492;o<=103495;o++)n[o]=0;for(o=103496;o<=103499;o++)n[o]=2;for(o=103528;o<=103543;o++)n[o]=0;for(o=103544;o<=103548;o++)n[o]=2;for(o=103549;o<=103551;o++)n[o]=0;for(o=103552;o<=103554;o++)n[o]=1;for(o=103555;o<=103557;o++)n[o]=2;for(o=103558;o<=103560;o++)n[o]=0;for(o=103571;o<=103573;o++)n[o]=0;for(o=103574;o<=103576;o++)n[o]=2;for(o=103577;o<=103580;o++)n[o]=0;for(o=103581;o<=103583;o++)n[o]=2;for(o=103595;o<=103694;o++)n[o]=0;for(o=103696;o<=103699;o++)n[o]=0;for(o=103700;o<=103793;o++)n[o]=2;for(o=103794;o<=103890;o++)n[o]=0;for(o=103891;o<=103896;o++)n[o]=2;for(o=103900;o<=103971;o++)n[o]=2;for(o=103972;o<=103977;o++)n[o]=0;for(o=112e3;o<=112101;o++)n[o]=0},21325:(e,t,r)=>{r.d(t,{B3:()=>P,EA:()=>h,K8:()=>S,KK:()=>R,KQ:()=>w,Vp:()=>d,YX:()=>p,ZL:()=>O,aI:()=>_,ch:()=>N,d9:()=>A,fn:()=>C,jp:()=>g,oT:()=>E,q8:()=>y,r1:()=>M,tQ:()=>G,tl:()=>T,x1:()=>m});var o=r(799),n=(r(83290),r(19936)),s=r(22530);const i=[102100,102113,3857,3785],a=[4326,...i,104905,104971],f='PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',u=[-20037508.342788905,20037508.342788905],c=[-20037508.342787,20037508.342787],l={102113:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:u,origin:c,dx:1e-5},102100:{wkTemplate:f,valid:u,origin:c,dx:1e-5},3785:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:u,origin:c,dx:1e-5},3857:{wkTemplate:f,valid:u,origin:c,dx:1e-5},4326:{wkTemplate:'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",{Central_Meridian}],UNIT["Degree",0.0174532925199433]]',altTemplate:'PROJCS["WGS_1984_Plate_Carree",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Plate_Carree"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],UNIT["Degrees",111319.491]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104971:{wkTemplate:'GEOGCS["Mars_2000_(Sphere)",DATUM["Mars_2000_(Sphere)",SPHEROID["Mars_2000_(Sphere)",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104905:{wkTemplate:'GEOGCS["GCS_Mars_2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190.0,169.8944472236118]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5}};function _(e,t){if(e===t)return!0;if(null==e||null==t)return!1;const r=e.wkid,o=t.wkid;if(null!=r||null!=o){if(r===o)return!0;if(S(e)&&S(t))return!0;const n=e.latestWkid;if(null!=n&&o===n)return!0;const s=t.latestWkid;return null!=s&&r===s}let n,s;return e.wkt2&&t.wkt2?(n=e.wkt2,s=t.wkt2):e.wkt&&t.wkt&&(n=e.wkt,s=t.wkt),!(!n||!s)&&n.toUpperCase()===s.toUpperCase()}function d(e){const t=e?.wkid;return null!=t&&t>=2e3&&l[t]||null}function p(e){if(!e)return;const{wkid:t,vcsWkid:r}=e;if(t)return r?JSON.stringify({wkid:t,vcsWkid:r}):String(t);const o=e.wkt||e.wkt2;return JSON.stringify(o?r?{wkt:o,vcsWkid:r}:{wkt:o}:{})}function h(e){if(!C(e))return!1;const{wkid:t}=e;if(t)return null==s.A[t];const r=e.wkt2||e.wkt;return!!r&&/^\s*(?:GEOGCS|GEOGCRS|GEOGRAPHICCRS)/i.test(r)}function P(e){return!(y(e)||w(e))}function E(e){return 4326===e?.wkid}function g(e){return/^\s*(?:GEOD|GEODETIC|GEOG|GEOGRAPHIC|PROJ|PROJECTED|VERT|VERTICAL|ENG|ENGINEERING|PARAMETRIC|TIME|DERIVEDPROJ|COMPOUND|BOUND)CRS/i.test(e)}function m(e){return e?.wkid===n.Y.CGCS2000}function S(e){const t=e?.wkid;return null!=t&&t>=2e3&&i.includes(t)}function M(e){return 32662===e?.wkid}function T(e){return e===n.Y.GCSMARS2000||e===n.Y.GCSMARS2000_SPHERE}function y(e){return T(e?.wkid)}function O(e){return e===n.Y.GCSMOON2000}function w(e){return O(e?.wkid)}function A(e){const t=e?.wkid;return null!=t&&t>=2e3&&a.includes(t)}function C(e){if(null==e)return!1;const t=e.wkid;return null!=t&&t>=2e3||null!=e.wkt2||null!=e.wkt}const R={wkid:4326,wkt:(0,o.HC)(l[4326].wkTemplate,{Central_Meridian:"0.0"})},N={wkid:102100,latestWkid:3857},G={wkid:32662}},78888:(e,t,r)=>{r.d(t,{A:()=>d});var o=r(92602),n=r(70333),s=r(49186),i=r(44208),a=r(4718),f=r(74887),u=r(84952),c=r(39131),l=r(926),_=r(56058);async function d(e,t){e instanceof URL&&(e=e.toString()),t?.query instanceof URLSearchParams&&(t.query=(0,u.zf)(t.query.toString().replaceAll("+"," ")));const s=(0,u.DB)(e),a=(0,u.w8)(e);a||s||(e=(0,u.S8)(e));const c={url:e,requestOptions:{...t}},d=e=>({data:e,getAllHeaders:S,getHeader:S,httpStatus:200,requestOptions:c.requestOptions,url:c.url}),E=(0,u.sC)(e,h.internalInterceptors);if(E){const e=await C(E,c);if(null!=e)return d(e)}let g=(0,u.sC)(e);if(g){const e=await C(g,c);if(null!=e)return d(e);g.after||g.error||(g=null)}if(e=c.url,"image"===(t=c.requestOptions).responseType&&((0,i.A)("host-webworker")||(0,i.A)("host-node")))throw y("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),c);if("head"===t.method){if(t.body)throw y("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),c);if(s||a)throw y("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),c)}if(await async function(){(0,i.A)("host-webworker")&&!p&&(p=await r.e(369).then(r.bind(r,40369)))}(),p)return p.execute(e,t);const m=new AbortController,M=(0,f.u7)(t,(()=>m.abort())),T={controller:m,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:g,params:c,redoRequest:!1,useIdentity:h.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},R=await async function(e){let t,r;await async function(e){const t=e.params.url,r=e.params.requestOptions,s=e.controller.signal,i=r.body;let a=null,u=null;if(P&&"HTMLFormElement"in globalThis&&(i instanceof FormData?a=i:i instanceof HTMLFormElement&&(a=new FormData(i))),"string"==typeof i&&(u=i),e.fetchOptions={cache:r.cacheBust?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:"head"===r.method?"HEAD":"GET",mode:"cors",priority:h.priority,redirect:"follow",signal:s},(a||u)&&(e.fetchOptions.body=a||u),"anonymous"===r.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query?.token||a?.get("token")),!e.hasToken&&o.A.apiKey&&(0,l.Q)(t)&&(r.query||(r.query={}),r.query.token=o.A.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!w(t)&&!(0,f.G4)(s)){let o;"immediate"===r.authMode?(await O(),o=await n.id.getCredential(t,{signal:s}),e.credential=o):"no-prompt"===r.authMode?(await O(),o=await n.id.getCredential(t,{prompt:!1,signal:s}).catch((()=>{})),e.credential=o):n.id&&(o=n.id.findCredential(t)),o&&(e.credentialToken=o.token,e.useSSL=!!o.ssl)}}(e);try{do{[t,r]=await A(e)}while(!await N(e,t,r))}catch(r){const o=y("request:server",r,e.params,t);throw o.details.ssl=e.useSSL,e.interceptor?.error&&e.interceptor.error(o),o}const s=e.params.url;if(r&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(s)){if(!e.hasToken&&!e.credentialToken&&r.user?.username&&!(0,u.FL)(s)){const e=(0,u.$z)(s,!0);e&&h.trustedServers.push(e)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&(0,_.tz)(r.authorizedCrossOriginNoCorsDomains)}const i=e.credential;if(i&&n.id){const e=n.id.findServerInfo(i.server);let t=e?.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=n.id.findCredential(t,i.userId);e&&-1===n.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:r,getAllHeaders:t?()=>Array.from(t.headers):S,getHeader:t?e=>t.headers.get(e):S,httpStatus:t?.status??200,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(T).finally((()=>M?.remove()));return g?.after?.(R),R}let p;const h=o.A.request,P="FormData"in globalThis,E=new Set([499,498,403,401]),g=new Set(["COM_0056","COM_0057","SB_0008"]),m=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],S=()=>null,M=Symbol();function T(e){const t=(0,u.$z)(e);return!t||t.endsWith(".arcgis.com")||d._corsServers.includes(t)||(0,u.FL)(t)}function y(e,t,r,o){let n="Error";const i={url:r.url,requestOptions:r.requestOptions,getAllHeaders:S,getHeader:S,ssl:!1};if(t instanceof s.A)return t.details?(t.details=(0,a.o8)(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=i,t;if(t){const e=o&&(()=>Array.from(o.headers)),r=o&&(e=>o.headers.get(e)),s=o?.status,a=t.message;a&&(n=a),e&&r&&(i.getAllHeaders=e,i.getHeader=r),i.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||s||0,i.subCode=t.subcode,i.messageCode=t.messageCode,"string"==typeof t.details?i.messages=[t.details]:i.messages=t.details,i.raw=M in t?t[M]:t}return(0,f.zf)(t)?(0,f.NK)():new s.A(e,n,i)}async function O(){n.id||await Promise.all([r.e(6285),r.e(6845),r.e(8438),r.e(2857)]).then(r.bind(r,67112))}function w(e){return m.some((t=>t.test(e)))}async function A(e){let t=e.params.url;const r=e.params.requestOptions,o=e.fetchOptions??{},s=(0,u.w8)(t)||(0,u.DB)(t),a=r.responseType||"json",l=s?0:null!=r.timeout?r.timeout:h.timeout;let p=!1;if(!s){e.useSSL&&(t=(0,u.lM)(t));let s={...r.query};e.credentialToken&&(s.token=e.credentialToken);let a=(0,u.x0)(s);(0,i.A)("esri-url-encodes-apostrophe")&&(a=a.replaceAll("'","%27"));const f=t.length+1+a.length;let l;p="delete"===r.method||"post"===r.method||"put"===r.method||!!r.body||f>h.maxUrlLength;const d=r.useProxy||!!(0,u.zs)(t);if(d){const e=(0,u.s_)(t);l=e.path,!p&&l.length+1+f>h.maxUrlLength&&(p=!0),e.query&&(s={...e.query,...s})}if("HEAD"===o.method&&(p||d)){if(p){if(f>h.maxUrlLength)throw y("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw y("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(d)throw y("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(p?(o.method="delete"===r.method?"DELETE":"put"===r.method?"PUT":"POST",r.body?t=(0,u.a6)(t,s):(o.body=(0,u.x0)(s),o.headers||(o.headers={}),o.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,u.a6)(t,s),d&&(e.useProxy=!0,t=`${l}?${t}`),s.token&&P&&o.body instanceof FormData&&!(0,c.$E)(t)&&o.body.set("token",s.token),r.hasOwnProperty("withCredentials"))e.withCredentials=r.withCredentials;else if(!(0,u.FX)(t,(0,u.Xq)()))if((0,u.FL)(t))e.withCredentials=!0;else if(n.id){const r=n.id.findServerInfo(t);r?.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(o.credentials="include",(0,_.xW)(t)&&await(0,_.m3)(p?(0,u.a6)(t,s):t))}let E,g,m=0,S=!1;l>0&&(m=setTimeout((()=>{S=!0,e.controller.abort()}),l));try{if("native-request-init"===r.responseType)g=o,g.url=t;else if("image"!==r.responseType||"default"!==o.cache||"GET"!==o.method||p||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(r.headers)||!s&&!e.useProxy&&h.proxyUrl&&!T(t)){if(d._beforeFetch&&await d._beforeFetch(t,o),E=await fetch(t,o),d._afterFetch&&await d._afterFetch(E),e.useProxy||function(e){const t=(0,u.$z)(e);t&&!d._corsServers.includes(t)&&d._corsServers.push(t)}(t),"native"===r.responseType)g=E;else if("HEAD"!==o.method)if(E.ok){switch(a){case"array-buffer":g=await E.arrayBuffer();break;case"blob":case"image":g=await E.blob();break;default:g=await E.text()}if(m&&(clearTimeout(m),m=0),"json"===a||"xml"===a||"document"===a)if(g)switch(a){case"json":g=JSON.parse(g);break;case"xml":g=R(g,"application/xml");break;case"document":g=R(g,"text/html")}else g=null;if(g){if("array-buffer"===a||"blob"===a){const e=E.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&g["blob"===a?"size":"byteLength"]<=750)try{const e=await new Response(g).json();e.error&&(g=e)}catch{}}"image"===a&&g instanceof Blob&&(g=await G(URL.createObjectURL(g),e,!0))}}else{g=await E.text();try{g=JSON.parse(g)}catch{}}}else g=await G(t,e)}catch(o){if("AbortError"===o.name){if(S)throw(0,_.ql)();throw(0,f.NK)("Request canceled")}if(!(!E&&o instanceof TypeError&&h.proxyUrl)||r.body||"delete"===r.method||"head"===r.method||"post"===r.method||"put"===r.method||e.useProxy||T(t))throw o;e.redoRequest=!0,(0,u.oy)({proxyUrl:h.proxyUrl,urlPrefix:(0,u.$z)(t)??""})}finally{m&&clearTimeout(m)}return[E,g]}async function C(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,o;try{o=await e.before(t)}catch(e){r=y("request:interceptor",e,t)}if((o instanceof Error||o instanceof s.A)&&(r=y("request:interceptor",o,t)),r)throw e.error&&e.error(r),r;return o}}function R(e,t){let r;try{r=(new DOMParser).parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function N(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;const o=e.params.requestOptions;if(!t||"native"===o.responseType||"native-request-init"===o.responseType)return!0;let s,i;if(r&&(r.error&&"object"==typeof r.error?s=r.error:"error"===r.status&&Array.isArray(r.messages)&&(s={...r},s[M]=r,s.details=r.messages)),!s&&!t.ok)throw s=new Error(`Unable to load ${t.url} status: ${t.status}`),s[M]=r,s;let a,f=null;s&&(i=Number(s.code),f=s.hasOwnProperty("subcode")?Number(s.subcode):null,a=s.messageCode,a=a?.toUpperCase());const u=o.authMode;if(403===i&&(4===f||s.message?.toLowerCase().includes("ssl")&&!s.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===i)&&void 0!==i&&E.has(i)&&!w(e.params.url)&&(403!==i||(!a||!g.has(a))&&(null==f||2===f&&e.credentialToken))){await O();try{const t=await n.id.getCredential(e.params.url,{error:y("request:server",s,e.params),prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===u)return e.credential=void 0,e.credentialToken=void 0,!1;s=t}}if(s)throw s;return!0}function G(e,t,r=!1){const o=t.controller.signal,n=new Image;return t.withCredentials?n.crossOrigin="use-credentials":n.crossOrigin="anonymous",n.alt="",n.fetchPriority=h.priority,n.src=e,(0,_.Sx)(n,e,r,o)}d._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"],d._beforeFetch=void 0,d._afterFetch=void 0},926:(e,t,r)=>{r.d(t,{Q:()=>s});var o=r(84952);const n=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"]);function s(e){const t=(0,o.$z)(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!n.has(t)&&!e.endsWith("/sharing/rest/generateToken")}},56058:(e,t,r)=>{r.d(t,{Sx:()=>a,c8:()=>l,m3:()=>p,ql:()=>c,tz:()=>_,xW:()=>d});var o=r(92602),n=r(44208),s=r(74887),i=r(84952);function a(e,t,r=!1,o){return new Promise(((i,a)=>{if((0,s.G4)(o))return void a(f());let u=()=>{_(),a(new Error(`Unable to load ${t}`))},c=()=>{const t=e;_(),i(t)},l=()=>{if(!e)return;const t=e;_(),t.src="",a(f())};const _=()=>{(0,n.A)("esri-image-decode")||(e.removeEventListener("error",u),e.removeEventListener("load",c)),u=null,c=null,e=null,null!=o&&o.removeEventListener("abort",l),l=null,r&&URL.revokeObjectURL(t)};null!=o&&o.addEventListener("abort",l),(0,n.A)("esri-image-decode")?e.decode().then(c,u):(e.addEventListener("error",u),e.addEventListener("load",c))}))}function f(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}const u="Timeout exceeded";function c(){return new Error(u)}function l(e){return"object"==typeof e&&!!e&&"message"in e&&e.message===u}function _(e){o.A.request.crossOriginNoCorsDomains||(o.A.request.crossOriginNoCorsDomains={});const t=o.A.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[(0,i.$z)(r)??""]=0:(t[(0,i.$z)("http://"+r)??""]=0,t[(0,i.$z)("https://"+r)??""]=0)}function d(e){const t=o.A.request.crossOriginNoCorsDomains;if(t){let r=(0,i.$z)(e);if(r)return r=r.toLowerCase(),!(0,i.FX)(r,(0,i.Xq)())&&t[r]<Date.now()-36e5}return!1}async function p(e){const t=o.A.request.crossOriginNoCorsDomains,r=(0,i.$z)(e);t&&r&&(t[r.toLowerCase()]=Date.now());const n=(0,i.An)(e);e=n.path,"json"===n.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8096],{8096:(e,t,s)=>{s.r(t),s.d(t,{toBinaryGLTF:()=>K});var n,i=s(74887);!function(e){e[e.JSON=1313821514]="JSON",e[e.BIN=5130562]="BIN"}(n||(n={}));class r{constructor(e,t){if(!e)throw new Error("GLB requires a JSON gltf chunk");this._length=r.HEADER_SIZE,this._length+=r.CHUNK_HEADER_SIZE;const s=function(e){return(new TextEncoder).encode(e).buffer}(e);if(this._length+=_(s.byteLength,4),t&&(this._length+=r.CHUNK_HEADER_SIZE,this._length+=t.byteLength,t.byteLength%4))throw new Error("Expected BIN chunk length to be divisible by 4 at this point");this.buffer=new ArrayBuffer(this._length),this._outView=new DataView(this.buffer),this._writeHeader();const i=this._writeChunk(s,12,n.JSON,32);t&&this._writeChunk(t,i,n.BIN)}_writeHeader(){this._outView.setUint32(0,r.MAGIC,!0),this._outView.setUint32(4,r.VERSION,!0),this._outView.setUint32(8,this._length,!0)}_writeChunk(e,t,s,n=0){const i=_(e.byteLength,4);for(this._outView.setUint32(t,i,!0),this._outView.setUint32(t+=4,s,!0),function(e,t,s,n,i){new Uint8Array(e,s,i).set(new Uint8Array(t,0,i),0)}(this._outView.buffer,e,t+=4,0,e.byteLength),t+=e.byteLength;t%4;)n&&this._outView.setUint8(t,n),t++;return t}}function _(e,t){return t*Math.ceil(e/t)}r.HEADER_SIZE=12,r.CHUNK_HEADER_SIZE=8,r.MAGIC=1179937895,r.VERSION=2;var E,a,o,T,A,R,c,N,u=s(53966),f=s(91869),h=s(34727),l=s(67026),O=s(82534),S=s(38954),C=s(51850),I=s(80882),L=s(72258);(N=E||(E={}))[N.External=0]="External",N[N.DataURI=1]="DataURI",N[N.GLB=2]="GLB",function(e){e[e.External=0]="External",e[e.DataURI=1]="DataURI",e[e.GLB=2]="GLB"}(a||(a={})),function(e){e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER"}(o||(o={})),function(e){e.SCALAR="SCALAR",e.VEC2="VEC2",e.VEC3="VEC3",e.VEC4="VEC4",e.MAT2="MAT2",e.MAT3="MAT3",e.MAT4="MAT4"}(T||(T={})),function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(A||(A={})),function(e){e.OPAQUE="OPAQUE",e.MASK="MASK",e.BLEND="BLEND"}(R||(R={})),function(e){e[e.NoColor=0]="NoColor",e[e.FaceColor=1]="FaceColor",e[e.VertexColor=2]="VertexColor"}(c||(c={}));var d=s(63907);class M{constructor(e,t,s,n,i){this._buffer=e,this._componentType=s,this._dataType=n,this._data=[],this._isFinalized=!1,this._accessorIndex=-1,this._accessorAttribute=null,this._accessorMin=null,this._accessorMax=null,t.bufferViews||(t.bufferViews=[]),this.index=t.bufferViews.length,this._bufferView={buffer:e.index,byteLength:-1,target:i};const r=this._getElementSize();r>=4&&i!==o.ELEMENT_ARRAY_BUFFER&&(this._bufferView.byteStride=r),t.bufferViews.push(this._bufferView),this._numComponentsForDataType=this._calculateNumComponentsForDataType()}push(e){const t=this._data.length;if(this._data.push(e),this._accessorIndex>=0){const s=t%this._numComponentsForDataType,n=this._accessorMin[s];this._accessorMin[s]="number"!=typeof n?e:Math.min(n,e);const i=this._accessorMax[s];this._accessorMax[s]="number"!=typeof i?e:Math.max(i,e)}}get dataSize(){return this._data.length*this._sizeComponentType()}get byteSize(){return function(e,t){return 4*Math.ceil(e/4)}(this.dataSize)}getByteOffset(){if(!this._isFinalized)throw new Error("Cannot get BufferView offset until it is finalized");return this._buffer.getByteOffset(this)}get byteOffset(){if(!this._isFinalized)throw new Error("Cannot get BufferView offset until it is finalized");return this._buffer.getByteOffset(this)}_createTypedArray(e,t){switch(this._componentType){case d.pe.BYTE:return new Int8Array(e,t);case d.pe.FLOAT:return new Float32Array(e,t);case d.pe.SHORT:return new Int16Array(e,t);case d.pe.UNSIGNED_BYTE:return new Uint8Array(e,t);case d.pe.UNSIGNED_INT:return new Uint32Array(e,t);case d.pe.UNSIGNED_SHORT:return new Uint16Array(e,t)}}writeOutToBuffer(e,t){this._createTypedArray(e,t).set(this._data)}writeAsync(e){if(this._asyncWritePromise)throw new Error("Can't write multiple bufferView values asynchronously");return this._asyncWritePromise=e.then((e=>{const t=new Uint8Array(e);for(let e=0;e<t.length;++e)this._data.push(t[e]);delete this._asyncWritePromise})),this._asyncWritePromise}startAccessor(e){if(this._accessorIndex>=0)throw new Error("Accessor was started without ending the previous one");this._accessorIndex=this._data.length,this._accessorAttribute=e;const t=this._numComponentsForDataType;this._accessorMin=new Array(t),this._accessorMax=new Array(t)}endAccessor(){if(this._accessorIndex<0)throw new Error("An accessor was not started, but was attempted to be ended");const e=this._getElementSize(),t=this._numComponentsForDataType,s=(this._data.length-this._accessorIndex)/t;if(s%1)throw new Error("An accessor was ended with missing component values");for(let e=0;e<this._accessorMin.length;++e)"number"!=typeof this._accessorMin[e]&&(this._accessorMin[e]=0),"number"!=typeof this._accessorMax[e]&&(this._accessorMax[e]=0);const n={byteOffset:e*(this._accessorIndex/t),componentType:this._componentType,count:s,type:this._dataType,min:this._accessorMin,max:this._accessorMax,name:this._accessorAttribute};switch(this._accessorAttribute){case"TEXCOORD_0":case"TEXCOORD_1":case"COLOR_0":case"WEIGHTS_0":switch(this._componentType){case d.pe.UNSIGNED_BYTE:case d.pe.UNSIGNED_SHORT:n.normalized=!0}}return this._accessorIndex=-1,this._accessorAttribute=null,this._accessorMin=null,this._accessorMax=null,n}get finalized(){return this._finalizedPromise?this._finalizedPromise:this._isFinalized?this._finalizedPromise=Promise.resolve():this._finalizedPromise=new Promise((e=>this._finalizedPromiseResolve=e))}async finalize(){const e=this._bufferView,t=this._buffer.getViewFinalizePromises(this);this._asyncWritePromise&&t.push(this._asyncWritePromise),await Promise.allSettled(t),this._isFinalized=!0,e.byteOffset=this.getByteOffset(),e.byteLength=this.dataSize,this._finalizedPromiseResolve&&this._finalizedPromiseResolve()}_getElementSize(){return this._sizeComponentType()*this._numComponentsForDataType}_sizeComponentType(){switch(this._componentType){case d.pe.BYTE:case d.pe.UNSIGNED_BYTE:return 1;case d.pe.SHORT:case d.pe.UNSIGNED_SHORT:return 2;case d.pe.UNSIGNED_INT:case d.pe.FLOAT:return 4}}_calculateNumComponentsForDataType(){switch(this._dataType){case T.SCALAR:return 1;case T.VEC2:return 2;case T.VEC3:return 3;case T.VEC4:case T.MAT2:return 4;case T.MAT3:return 9;case T.MAT4:return 16}}}class D{constructor(e){this._gltf=e,this._bufferViews=[],this._isFinalized=!1,e.buffers||(e.buffers=[]),this.index=e.buffers.length;const t={byteLength:-1};e.buffers.push(t),this._buffer=t}addBufferView(e,t,s){if(this._finalizePromise)throw new Error("Cannot add buffer view after fiinalizing buffer");const n=new M(this,this._gltf,e,t,s);return this._bufferViews.push(n),n}getByteOffset(e){let t=0;for(const s of this._bufferViews){if(s===e)return t;t+=s.byteSize}throw new Error("Given bufferView was not present in this buffer")}getViewFinalizePromises(e){const t=[];for(const s of this._bufferViews){if(e&&s===e)return t;t.push(s.finalized)}return t}getArrayBuffer(){if(!this._isFinalized)throw new Error("Cannot get ArrayBuffer from Buffer before it is finalized");const e=this._getTotalSize(),t=new ArrayBuffer(e);let s=0;for(const e of this._bufferViews)e.writeOutToBuffer(t,s),s+=e.byteSize;return t}finalize(){if(this._finalizePromise)throw new Error(`Buffer ${this.index} was already finalized`);return this._finalizePromise=Promise.allSettled(this.getViewFinalizePromises()).then((()=>{this._isFinalized=!0;const e=this.getArrayBuffer();this._buffer.byteLength=e.byteLength,this._buffer.uri=e})),this._gltf.extras.promises.push(this._finalizePromise),this._finalizePromise}_getTotalSize(){let e=0;for(const t of this._bufferViews)e+=t.byteSize;return e}}function p(e,t){null==t.normal&&(t.normal=new Float32Array(t.position.length));const s=e.faces,{position:n,normal:i}=t,r=s.length/3;for(let e=0;e<r;++e){const t=3*s[3*e],r=3*s[3*e+1],_=3*s[3*e+2],E=(0,S.s)(U,n[t],n[t+1],n[t+2]),a=(0,S.s)(B,n[r],n[r+1],n[r+2]),o=(0,S.s)(m,n[_],n[_+1],n[_+2]),T=(0,S.f)(a,a,E),A=(0,S.f)(o,o,E),R=(0,S.b)(T,T,A);i[t]+=R[0],i[t+1]+=R[1],i[t+2]+=R[2],i[r]+=R[0],i[r+1]+=R[1],i[r+2]+=R[2],i[_]+=R[0],i[_+1]+=R[1],i[_+2]+=R[2]}for(let e=0;e<i.length;e+=3)(0,S.s)(G,i[e],i[e+1],i[e+2]),(0,S.n)(G,G),i[e]=G[0],i[e+1]=G[1],i[e+2]=G[2]}const U=(0,C.vt)(),B=(0,C.vt)(),m=(0,C.vt)(),G=(0,C.vt)();s(44208);var P=s(49186),g=s(84952);async function F(e,t){const s=w(e);if(null==s)throw new P.A("imageToArrayBuffer","Unsupported image type");const n=function(e){if(!(e instanceof HTMLImageElement))return"image/png";const t=e.src;if((0,g.DB)(t)){const e=(0,g.r$)(t);return"image/jpeg"===e?.mediaType?e.mediaType:"image/png"}return/\.png$/i.test(t)?"image/png":/\.(jpg|jpeg)$/i.test(t)?"image/jpeg":"image/png"}(e),r=await new Promise((e=>s.toBlob(e,n)));if((0,i.Te)(t),!r)throw new P.A("imageToArrayBuffer","Failed to encode image");const _=await r.arrayBuffer();return(0,i.Te)(t),{data:_,type:n}}function w(e){if(e instanceof HTMLCanvasElement)return e;if(e instanceof HTMLVideoElement)return null;const t=document.createElement("canvas");t.width=e.width,t.height=e.height;const s=t.getContext("2d");return e instanceof HTMLImageElement?s.drawImage(e,0,0,e.width,e.height):e instanceof ImageData&&s.putImageData(e,0,0),t}var b=s(51530);const H=()=>u.A.getLogger("esri.geometry.support.meshUtils.exporters.gltf.gltf");class x{constructor(e,t){this.options=t,this._materialMap=new Array,this._imageMap=new Map,this._textureMap=new Map,this.gltf={asset:{version:"2.0",copyright:e.copyright,generator:e.generator},extras:{output:t.output,binChunkBuffer:null,promises:[]}},this._addScenes(e)}_addScenes(e){this.gltf.scene=e.defaultScene;const t=this.gltf.extras,s=t.output.buffer===E.GLB||t.output.image===a.GLB;s&&(t.binChunkBuffer=new D(this.gltf)),e.forEachScene((e=>{this._addScene(e)})),s&&t.binChunkBuffer.finalize()}_addScene(e){this.gltf.scenes||(this.gltf.scenes=[]);const t={};e.name&&(t.name=e.name),e.forEachNode((e=>{t.nodes||(t.nodes=[]),t.nodes.push(...this._addNodes(e))})),this.gltf.scenes.push(t)}_addNodes(e){this.gltf.nodes||(this.gltf.nodes=[]);const t={};e.name&&(t.name=e.name);const s=e.translation;(0,S.e)(s,C.uY)||(t.translation=(0,C.o8)(s));const n=e.rotation;(0,l.t2)(n,O.zK)||(t.rotation=(0,O.o8)(n));const i=e.scale;(0,S.e)(i,C.Un)||(t.scale=(0,C.o8)(i));const r=this.gltf.nodes.length;if(this.gltf.nodes.push(t),e.mesh&&e.mesh.vertexAttributes.position){const s=this._createMeshes(e.mesh),n=[r];if(1===s.length)this._addMesh(t,s[0]);else for(const e of s){const t={};this._addMesh(t,e),n.push(this.gltf.nodes.length),this.gltf.nodes.push(t)}return n}return e.forEachNode((e=>{t.children||(t.children=[]),t.children.push(...this._addNodes(e))})),[r]}_addMesh(e,t){this.gltf.meshes??=[];const s=this.gltf.meshes.length;this.gltf.meshes.push(t),e.mesh=s}_createMeshes(e){const t=this.gltf.extras,s=t.output.buffer===E.GLB;let n;n=s?t.binChunkBuffer:new D(this.gltf);const i=this.options.origin,r=e.vertexSpace.clone();r.origin=[i.x,i.y,i.z??0];const _=(0,L.UR)({vertexAttributes:e.vertexAttributes,vertexSpace:e.vertexSpace,transform:this.options?.ignoreLocalTransform?null:e.transform,spatialReference:e.spatialReference},r,{targetUnit:"meters"});if(!_)return[];(function(e,t){if(e.components)for(const s of e.components)s.faces&&"smooth"===s.shading&&p(s,t)})(e,_),function({position:e,normal:t,tangent:s}){y(e,3),y(t,3),y(s,4)}(_);const{position:a,normal:A,tangent:R}=_,{uv:c,color:N}=e.vertexAttributes,u=n.addBufferView(d.pe.FLOAT,T.VEC3,o.ARRAY_BUFFER);let f,h,l,O;A&&(f=n.addBufferView(d.pe.FLOAT,T.VEC3,o.ARRAY_BUFFER)),c&&(h=n.addBufferView(d.pe.FLOAT,T.VEC2,o.ARRAY_BUFFER)),R&&(l=n.addBufferView(d.pe.FLOAT,T.VEC4,o.ARRAY_BUFFER)),N&&(O=n.addBufferView(d.pe.UNSIGNED_BYTE,T.VEC4,o.ARRAY_BUFFER)),u.startAccessor("POSITION"),f&&f.startAccessor("NORMAL"),h&&h.startAccessor("TEXCOORD_0"),l&&l.startAccessor("TANGENT"),O&&O.startAccessor("COLOR_0");const S=_.position.length/3;for(let e=0;e<S;++e)u.push(a[3*e]),u.push(a[3*e+1]),u.push(a[3*e+2]),f&&null!=A&&(f.push(A[3*e]),f.push(A[3*e+1]),f.push(A[3*e+2])),h&&null!=c&&(h.push(c[2*e]),h.push(c[2*e+1])),l&&null!=R&&(l.push(R[4*e]),l.push(R[4*e+1]),l.push(R[4*e+2]),l.push(R[4*e+3])),O&&null!=N&&(O.push(N[4*e]),O.push(N[4*e+1]),O.push(N[4*e+2]),O.push(N[4*e+3]));const C=u.endAccessor(),I=this._addAccessor(u.index,C);let M,U,B,m,G;if(f){const e=f.endAccessor();M=this._addAccessor(f.index,e)}if(h){const e=h.endAccessor();U=this._addAccessor(h.index,e)}if(l){const e=l.endAccessor();B=this._addAccessor(l.index,e)}if(O){const e=O.endAccessor();m=this._addAccessor(O.index,e)}const P=[];return e.components&&e.components.length>0&&e.components[0].faces?(G=n.addBufferView(d.pe.UNSIGNED_INT,T.SCALAR,o.ELEMENT_ARRAY_BUFFER),this._addMeshVertexIndexed(G,e.components,P,I,M,U,B,m)):this._addMeshVertexNonIndexed(e.components,P,I,M,U,B,m),u.finalize(),f&&f.finalize(),h&&h.finalize(),l&&l.finalize(),G&&G.finalize(),O&&O.finalize(),s||n.finalize(),P}_addMaterial(e){if(null===e)return;const t=this._materialMap.indexOf(e);if(-1!==t)return t;this.gltf.materials||(this.gltf.materials=[]);const s={};switch(e.alphaMode){case"mask":s.alphaMode=R.MASK;break;case"auto":case"blend":s.alphaMode=R.BLEND}s.alphaCutoff=e.alphaCutoff,e.doubleSided&&(s.doubleSided=e.doubleSided),s.pbrMetallicRoughness={};const n=e=>e**2.1,i=e=>{const t=e.toRgba();return t[0]=n(t[0]/255),t[1]=n(t[1]/255),t[2]=n(t[2]/255),t};if(null!=e.color&&(s.pbrMetallicRoughness.baseColorFactor=i(e.color)),null!=e.colorTexture&&(s.pbrMetallicRoughness.baseColorTexture=this._createTextureInfo(e.colorTexture,e.colorTextureTransform)),null!=e.normalTexture&&(s.normalTexture=this._createTextureInfo(e.normalTexture,e.normalTextureTransform)),e instanceof I.A){if(null!=e.emissiveTexture&&(s.emissiveTexture=this._createTextureInfo(e.emissiveTexture,e.emissiveTextureTransform)),null!=e.emissiveColor){const t=i(e.emissiveColor);s.emissiveFactor=[t[0],t[1],t[2]]}null!=e.occlusionTexture&&(s.occlusionTexture=this._createTextureInfo(e.occlusionTexture,e.occlusionTextureTransform)),null!=e.metallicRoughnessTexture&&(s.pbrMetallicRoughness.metallicRoughnessTexture=this._createTextureInfo(e.metallicRoughnessTexture,e.metallicRoughnessTextureTransform)),s.pbrMetallicRoughness.metallicFactor=e.metallic,s.pbrMetallicRoughness.roughnessFactor=e.roughness}else s.pbrMetallicRoughness.metallicFactor=1,s.pbrMetallicRoughness.roughnessFactor=1,H().warnOnce("Meshes exported to GLTF without MeshMaterialMetallicRoughness material will appear different when imported back.");const r=this.gltf.materials.length;return this.gltf.materials.push(s),this._materialMap.push(e),r}_createTextureInfo(e,t){const s={index:this._addTexture(e)};return t?(s.extensions||(s.extensions={}),s.extensions.KHR_texture_transform={scale:t.scale,offset:t.offset,rotation:(0,h.kU)(t.rotation)},s):s}_addTexture(e){const t=this.gltf.textures??[];return this.gltf.textures=t,(0,f.tE)(this._textureMap,e,(()=>{const s={sampler:this._addSampler(e),source:this._addImage(e)},n=t.length;return t.push(s),n}))}_addImage(e){const t=this._imageMap.get(e);if(null!=t)return t;this.gltf.images||(this.gltf.images=[]);const s={};if(e.url)s.uri=e.url;else{const t=e.data;s.extras=t;for(let e=0;e<this.gltf.images.length;++e)if(t===this.gltf.images[e].extras)return e;const n=this.gltf.extras;switch(n.output.image){case a.GLB:{const e=n.binChunkBuffer.addBufferView(d.pe.UNSIGNED_BYTE,T.SCALAR);if((0,b.x3)(t))null!=t.data&&e.writeOutToBuffer(t.data,0);else{const i=F(t,this.options.signal).then((({data:e,type:t})=>(s.mimeType=t,e)));n.promises.push(e.writeAsync(i).then((()=>{e.finalize()})))}s.bufferView=e.index;break}case a.DataURI:if((0,b.x3)(t)){H().warnOnce("Image export for basis compressed textures not available.");break}s.uri=function(e){const t=w(e);return null!=t?t.toDataURL():""}(t);break;default:if((0,b.x3)(t)){H().warnOnce("Image export for basis compressed textures not available.");break}n.promises.push(F(t,this.options.signal).then((({data:e,type:t})=>{s.uri=e,s.mimeType=t})))}}const n=this.gltf.images.length;return this.gltf.images.push(s),this._imageMap.set(e,n),n}_addSampler(e){this.gltf.samplers||(this.gltf.samplers=[]);let t=d.pF.REPEAT,s=d.pF.REPEAT;if("string"==typeof e.wrap)switch(e.wrap){case"clamp":t=d.pF.CLAMP_TO_EDGE,s=d.pF.CLAMP_TO_EDGE;break;case"mirror":t=d.pF.MIRRORED_REPEAT,s=d.pF.MIRRORED_REPEAT}else{switch(e.wrap.vertical){case"clamp":s=d.pF.CLAMP_TO_EDGE;break;case"mirror":s=d.pF.MIRRORED_REPEAT}switch(e.wrap.horizontal){case"clamp":t=d.pF.CLAMP_TO_EDGE;break;case"mirror":t=d.pF.MIRRORED_REPEAT}}const n={wrapS:t,wrapT:s};for(let e=0;e<this.gltf.samplers.length;++e)if(JSON.stringify(n)===JSON.stringify(this.gltf.samplers[e]))return e;const i=this.gltf.samplers.length;return this.gltf.samplers.push(n),i}_addAccessor(e,t){this.gltf.accessors||(this.gltf.accessors=[]);const s={bufferView:e,byteOffset:t.byteOffset,componentType:t.componentType,count:t.count,type:t.type,min:t.min,max:t.max,name:t.name};t.normalized&&(s.normalized=!0);const n=this.gltf.accessors.length;return this.gltf.accessors.push(s),n}_addMeshVertexIndexed(e,t,s,n,i,r,_,E){const a=new Map;for(const o of t){e.startAccessor("INDICES");for(let t=0;t<o.faces.length;++t)e.push(o.faces[t]);const t=e.endAccessor(),T={attributes:{POSITION:n},indices:this._addAccessor(e.index,t),material:this._addMaterial(o.material)};i&&"flat"!==o.shading&&(T.attributes.NORMAL=i),r&&(T.attributes.TEXCOORD_0=r),_&&"flat"!==o.shading&&(T.attributes.TANGENT=_),E&&(T.attributes.COLOR_0=E);const A=a.get(o.name);if(A)A.primitives.push(T);else{const e={name:o.name,primitives:[T]};a.set(o.name,e),s.push(e)}}}_addMeshVertexNonIndexed(e,t,s,n,i,r,_){const E={primitives:[]};t.push(E);const a={attributes:{POSITION:s}};n&&(a.attributes.NORMAL=n),i&&(a.attributes.TEXCOORD_0=i),r&&(a.attributes.TANGENT=r),_&&(a.attributes.COLOR_0=_),e&&(a.material=this._addMaterial(e[0].material)),E.primitives.push(a)}}function y(e,t){if(null!=e)for(let s=1,n=2;s<e.length;s+=t,n+=t){const t=e[s],i=e[n];e[s]=i,e[n]=-t}}var V=s(4576);class Y{constructor(){this.copyright="",this.defaultScene=0,this.generator="",this._scenes=[]}addScene(e){if(this._scenes.includes(e))throw new Error("Scene already added");this._scenes.push(e)}removeScene(e){(0,V.TF)(this._scenes,e)}forEachScene(e){this._scenes.forEach(e)}}class v{constructor(e){this.mesh=e,this.name="",this.translation=(0,C.vt)(),this.rotation=(0,O.vt)(),this.scale=(0,C.o8)(C.Un),this._nodes=[]}addNode(e){if(this._nodes.includes(e))throw new Error("Node already added");this._nodes.push(e)}forEachNode(e){this._nodes.forEach(e)}set rotationAngles(e){(0,l.A6)(this.rotation,e[0],e[1],e[2])}}const z="model.gltf",X="model.glb";async function k(e,t){const s=new x(e,t).gltf,n=s.extras.promises;let _=1,o=1,T=null;await Promise.allSettled(n),(0,i.Te)(t.signal);const A=t.jsonSpacing??4,R=new Map,c=JSON.stringify(s,((e,s)=>{if("extras"!==e){if(s instanceof ArrayBuffer){if(function(e){if(e.byteLength<8)return!1;const t=new Uint8Array(e);return 137===t[0]&&80===t[1]&&78===t[2]&&71===t[3]&&13===t[4]&&10===t[5]&&26===t[6]&&10===t[7]}(s))switch(t.output?.image){case a.DataURI:case a.GLB:break;case a.External:default:{const e=`img${o}.png`;return o++,R.set(e,s),e}}switch(t.output?.buffer){case E.DataURI:return function(e){const t=[],s=new Uint8Array(e);for(let e=0;e<s.length;e++)t.push(String.fromCharCode(s[e]));return"data:application/octet-stream;base64,"+btoa(t.join(""))}(s);case E.GLB:if(T)throw new Error("Already encountered an ArrayBuffer, there should only be one in the GLB format.");return void(T=s);case E.External:default:{const e=`data${_}.bin`;return _++,R.set(e,s),e}}}return s}}),A);return t.output?.buffer===E.GLB||t.output?.image===a.GLB?R.set(X,new r(c,T).buffer):R.set(z,c),R}class W{constructor(){this.name="",this._nodes=[]}addNode(e){if(this._nodes.includes(e))throw new Error("Node already added");this._nodes.push(e)}forEachNode(e){this._nodes.forEach(e)}}async function K(e,t){const s=new Y,n=new W;return s.addScene(n),n.addNode(new v(e)),await async function(e,t){const s=(await k(e,{output:{buffer:E.GLB,image:a.GLB},jsonSpacing:0,...t})).get(X);if(!(s&&s instanceof ArrayBuffer))throw new Error("failed to export to glb");return s}(s,{origin:e.origin,...t})}},51530:(e,t,s)=>{s.d(t,{KB:()=>E,Xi:()=>r,pn:()=>a,x3:()=>_});var n=s(44208),i=s(89192);class r{constructor(e){this.data=e,this.type="encoded-mesh-texture",this.encoding=i.JS.KTX2_ENCODING}}function _(e){return"encoded-mesh-texture"===e?.type}async function E(e){const t=new Blob([e]),s=await t.text();return JSON.parse(s)}async function a(e,t){if(t===i.JS.KTX2_ENCODING)return new r(e);const s=new Blob([e],{type:t}),_=URL.createObjectURL(s),E=new Image;if((0,n.A)("esri-iPhone"))return new Promise(((e,t)=>{const s=()=>{i(),e(E)},n=e=>{i(),t(e)},i=()=>{URL.revokeObjectURL(_),E.removeEventListener("load",s),E.removeEventListener("error",n)};E.addEventListener("load",s),E.addEventListener("error",n),E.src=_}));try{E.src=_,await E.decode()}catch(e){console.warn("Failed decoding HTMLImageElement")}return URL.revokeObjectURL(_),E}},89192:(e,t,s)=>{var n,i,r,_,E,a,o,T,A;s.d(t,{Am:()=>_,C7:()=>r,ID:()=>T,JS:()=>A,Mg:()=>a,dd:()=>E,it:()=>i,s2:()=>n,sf:()=>o}),function(e){e[e.None=0]="None",e[e.Front=1]="Front",e[e.Back=2]="Back",e[e.COUNT=3]="COUNT"}(n||(n={})),function(e){e[e.Less=0]="Less",e[e.Lequal=1]="Lequal",e[e.COUNT=2]="COUNT"}(i||(i={})),function(e){e[e.BACKGROUND=0]="BACKGROUND",e[e.UPDATE=1]="UPDATE"}(r||(r={})),function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"}(_||(_={})),function(e){e[e.IntegratedMeshMaskExcluded=1]="IntegratedMeshMaskExcluded",e[e.OutlineVisualElementMask=2]="OutlineVisualElementMask"}(E||(E={})),function(e){e[e.Highlight=0]="Highlight",e[e.MaskOccludee=1]="MaskOccludee",e[e.COUNT=2]="COUNT"}(a||(a={})),function(e){e[e.Blend=0]="Blend",e[e.Opaque=1]="Opaque",e[e.Mask=2]="Mask",e[e.MaskBlend=3]="MaskBlend",e[e.COUNT=4]="COUNT"}(o||(o={})),function(e){e[e.OFF=0]="OFF",e[e.ON=1]="ON"}(T||(T={})),function(e){e.DDS_ENCODING="image/vnd-ms.dds",e.KTX2_ENCODING="image/ktx2",e.BASIS_ENCODING="image/x.basis"}(A||(A={}))},63907:(e,t,s)=>{var n,i,r,_,E,a,o,T,A,R,c,N,u,f,h,l,O,S,C,I,L,d,M;s.d(t,{Ab:()=>f,Ac:()=>o,Ap:()=>u,CQ:()=>p,Cj:()=>c,Co:()=>C,H0:()=>h,Hr:()=>M,MT:()=>A,NZ:()=>E,Nm:()=>d,R:()=>I,Tb:()=>_,WR:()=>i,Y7:()=>a,_U:()=>S,dn:()=>r,eA:()=>R,hn:()=>n,ld:()=>l,nI:()=>D,pF:()=>N,pe:()=>T,vt:()=>L,yQ:()=>O}),function(e){e[e.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",e[e.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",e[e.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT"}(n||(n={})),function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(i||(i={})),function(e){e[e.ZERO=0]="ZERO",e[e.ONE=1]="ONE",e[e.SRC_COLOR=768]="SRC_COLOR",e[e.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",e[e.SRC_ALPHA=770]="SRC_ALPHA",e[e.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",e[e.DST_ALPHA=772]="DST_ALPHA",e[e.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",e[e.DST_COLOR=774]="DST_COLOR",e[e.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",e[e.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",e[e.CONSTANT_COLOR=32769]="CONSTANT_COLOR",e[e.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",e[e.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",e[e.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA"}(r||(r={})),function(e){e[e.ADD=32774]="ADD",e[e.MIN=32775]="MIN",e[e.MAX=32776]="MAX",e[e.SUBTRACT=32778]="SUBTRACT",e[e.REVERSE_SUBTRACT=32779]="REVERSE_SUBTRACT"}(_||(_={})),function(e){e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e[e.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",e[e.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",e[e.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",e[e.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER",e[e.TRANSFORM_FEEDBACK_BUFFER=35982]="TRANSFORM_FEEDBACK_BUFFER"}(E||(E={})),function(e){e[e.FRONT=1028]="FRONT",e[e.BACK=1029]="BACK",e[e.FRONT_AND_BACK=1032]="FRONT_AND_BACK"}(a||(a={})),function(e){e[e.CW=2304]="CW",e[e.CCW=2305]="CCW"}(o||(o={})),function(e){e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.INT=5124]="INT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.FLOAT=5126]="FLOAT",e[e.HALF_FLOAT=5131]="HALF_FLOAT"}(T||(T={})),function(e){e[e.NEVER=512]="NEVER",e[e.LESS=513]="LESS",e[e.EQUAL=514]="EQUAL",e[e.LEQUAL=515]="LEQUAL",e[e.GREATER=516]="GREATER",e[e.NOTEQUAL=517]="NOTEQUAL",e[e.GEQUAL=518]="GEQUAL",e[e.ALWAYS=519]="ALWAYS"}(A||(A={})),function(e){e[e.ZERO=0]="ZERO",e[e.KEEP=7680]="KEEP",e[e.REPLACE=7681]="REPLACE",e[e.INCR=7682]="INCR",e[e.DECR=7683]="DECR",e[e.INVERT=5386]="INVERT",e[e.INCR_WRAP=34055]="INCR_WRAP",e[e.DECR_WRAP=34056]="DECR_WRAP"}(R||(R={})),function(e){e[e.NEAREST=9728]="NEAREST",e[e.LINEAR=9729]="LINEAR",e[e.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",e[e.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",e[e.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",e[e.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR"}(c||(c={})),function(e){e[e.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(N||(N={})),function(e){e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_3D=32879]="TEXTURE_3D",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY"}(u||(u={})),function(e){e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",e[e.ALPHA=6406]="ALPHA",e[e.RGB=6407]="RGB",e[e.RGBA=6408]="RGBA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.RED=6403]="RED",e[e.RG=33319]="RG",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER"}(f||(f={})),function(e){e[e.RGBA4=32854]="RGBA4",e[e.R16F=33325]="R16F",e[e.RG16F=33327]="RG16F",e[e.RGB32F=34837]="RGB32F",e[e.RGBA16F=34842]="RGBA16F",e[e.R32F=33326]="R32F",e[e.RG32F=33328]="RG32F",e[e.RGBA32F=34836]="RGBA32F",e[e.R11F_G11F_B10F=35898]="R11F_G11F_B10F",e[e.RGB8=32849]="RGB8",e[e.RGBA8=32856]="RGBA8",e[e.RGB5_A1=32855]="RGB5_A1",e[e.R8=33321]="R8",e[e.RG8=33323]="RG8",e[e.R8I=33329]="R8I",e[e.R8UI=33330]="R8UI",e[e.R16I=33331]="R16I",e[e.R16UI=33332]="R16UI",e[e.R32I=33333]="R32I",e[e.R32UI=33334]="R32UI",e[e.RG8I=33335]="RG8I",e[e.RG8UI=33336]="RG8UI",e[e.RG16I=33337]="RG16I",e[e.RG16UI=33338]="RG16UI",e[e.RG32I=33339]="RG32I",e[e.RG32UI=33340]="RG32UI",e[e.RGB16F=34843]="RGB16F",e[e.RGB9_E5=35901]="RGB9_E5",e[e.SRGB8=35905]="SRGB8",e[e.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",e[e.RGB565=36194]="RGB565",e[e.RGBA32UI=36208]="RGBA32UI",e[e.RGB32UI=36209]="RGB32UI",e[e.RGBA16UI=36214]="RGBA16UI",e[e.RGB16UI=36215]="RGB16UI",e[e.RGBA8UI=36220]="RGBA8UI",e[e.RGB8UI=36221]="RGB8UI",e[e.RGBA32I=36226]="RGBA32I",e[e.RGB32I=36227]="RGB32I",e[e.RGBA16I=36232]="RGBA16I",e[e.RGB16I=36233]="RGB16I",e[e.RGBA8I=36238]="RGBA8I",e[e.RGB8I=36239]="RGB8I",e[e.R8_SNORM=36756]="R8_SNORM",e[e.RG8_SNORM=36757]="RG8_SNORM",e[e.RGB8_SNORM=36758]="RGB8_SNORM",e[e.RGBA8_SNORM=36759]="RGBA8_SNORM",e[e.RGB10_A2=32857]="RGB10_A2",e[e.RGB10_A2UI=36975]="RGB10_A2UI"}(h||(h={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.INT=5124]="INT",e[e.HALF_FLOAT=5131]="HALF_FLOAT",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV"}(l||(l={})),function(e){e[e.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",e[e.STENCIL_INDEX8=36168]="STENCIL_INDEX8",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",e[e.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",e[e.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",e[e.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8"}(O||(O={})),function(e){e[e.STATIC_DRAW=35044]="STATIC_DRAW",e[e.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",e[e.STREAM_DRAW=35040]="STREAM_DRAW",e[e.STATIC_READ=35045]="STATIC_READ",e[e.DYNAMIC_READ=35049]="DYNAMIC_READ",e[e.STREAM_READ=35041]="STREAM_READ",e[e.STATIC_COPY=35046]="STATIC_COPY",e[e.DYNAMIC_COPY=35050]="DYNAMIC_COPY",e[e.STREAM_COPY=35042]="STREAM_COPY"}(S||(S={})),function(e){e[e.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",e[e.VERTEX_SHADER=35633]="VERTEX_SHADER"}(C||(C={})),function(e){e[e.FRAMEBUFFER=36160]="FRAMEBUFFER",e[e.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",e[e.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER"}(I||(I={})),function(e){e[e.Texture=0]="Texture",e[e.BufferObject=1]="BufferObject",e[e.VertexArrayObject=2]="VertexArrayObject",e[e.Shader=3]="Shader",e[e.Program=4]="Program",e[e.FramebufferObject=5]="FramebufferObject",e[e.Renderbuffer=6]="Renderbuffer",e[e.TransformFeedback=7]="TransformFeedback",e[e.Sync=8]="Sync",e[e.UNCOUNTED=9]="UNCOUNTED",e[e.LinesOfCode=9]="LinesOfCode",e[e.Uniform=10]="Uniform",e[e.COUNT=11]="COUNT"}(L||(L={})),function(e){e[e.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",e[e.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1",e[e.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2",e[e.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3",e[e.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4",e[e.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5",e[e.COLOR_ATTACHMENT6=36070]="COLOR_ATTACHMENT6",e[e.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7",e[e.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8",e[e.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9",e[e.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10",e[e.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11",e[e.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12",e[e.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13",e[e.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14",e[e.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15"}(d||(d={})),function(e){e[e.NONE=0]="NONE",e[e.BACK=1029]="BACK"}(M||(M={}));const D=33306;var p,U,B,m,G,P,g;!function(e){e[e.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",e[e.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",e[e.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",e[e.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",e[e.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",e[e.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",e[e.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",e[e.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",e[e.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"}(p||(p={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_VEC2=35664]="FLOAT_VEC2",e[e.FLOAT_VEC3=35665]="FLOAT_VEC3",e[e.FLOAT_VEC4=35666]="FLOAT_VEC4",e[e.INT=5124]="INT",e[e.INT_VEC2=35667]="INT_VEC2",e[e.INT_VEC3=35668]="INT_VEC3",e[e.INT_VEC4=35669]="INT_VEC4",e[e.BOOL=35670]="BOOL",e[e.BOOL_VEC2=35671]="BOOL_VEC2",e[e.BOOL_VEC3=35672]="BOOL_VEC3",e[e.BOOL_VEC4=35673]="BOOL_VEC4",e[e.FLOAT_MAT2=35674]="FLOAT_MAT2",e[e.FLOAT_MAT3=35675]="FLOAT_MAT3",e[e.FLOAT_MAT4=35676]="FLOAT_MAT4",e[e.SAMPLER_2D=35678]="SAMPLER_2D",e[e.SAMPLER_CUBE=35680]="SAMPLER_CUBE",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",e[e.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",e[e.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",e[e.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",e[e.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",e[e.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",e[e.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",e[e.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",e[e.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",e[e.SAMPLER_3D=35679]="SAMPLER_3D",e[e.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",e[e.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",e[e.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",e[e.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",e[e.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",e[e.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",e[e.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",e[e.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",e[e.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",e[e.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",e[e.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",e[e.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY"}(U||(U={})),function(e){e[e.OBJECT_TYPE=37138]="OBJECT_TYPE",e[e.SYNC_CONDITION=37139]="SYNC_CONDITION",e[e.SYNC_STATUS=37140]="SYNC_STATUS",e[e.SYNC_FLAGS=37141]="SYNC_FLAGS"}(B||(B={})),function(e){e[e.UNSIGNALED=37144]="UNSIGNALED",e[e.SIGNALED=37145]="SIGNALED"}(m||(m={})),function(e){e[e.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",e[e.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",e[e.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",e[e.WAIT_FAILED=37149]="WAIT_FAILED"}(G||(G={})),function(e){e[e.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE"}(P||(P={})),function(e){e[e.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT"}(g||(g={}))}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3209,2731],{12731:(e,t,n)=>{n.r(t),n.d(t,{hydratedAdapter:()=>u});var r=n(5443),a=n(48526),i=n(86738),c=n(39829),o=n(82799);const u={convertToGEGeometry:function(e,t){if(null==t)return null;let n="cache"in t?t.cache._geVersion:void 0;return null==n&&(n=e.convertJSONToGeometry(t),"cache"in t&&(t.cache._geVersion=n)),n},exportPoint:function(e,t,n){const r=e.hasZ(t),a=e.hasM(t),c=new i.A({x:e.getPointX(t),y:e.getPointY(t),spatialReference:n});return r&&(c.z=e.getPointZ(t)),a&&(c.m=e.getPointM(t)),c.cache._geVersion=t,c},exportPolygon:function(e,t,n){const r=new c.A({rings:e.exportPaths(t),hasZ:e.hasZ(t),hasM:e.hasM(t),spatialReference:n});return r.cache._geVersion=t,r},exportPolyline:function(e,t,n){const r=new o.A({paths:e.exportPaths(t),hasZ:e.hasZ(t),hasM:e.hasM(t),spatialReference:n});return r.cache._geVersion=t,r},exportMultipoint:function(e,t,n){const r=new a.A({hasZ:e.hasZ(t),hasM:e.hasM(t),points:e.exportPoints(t),spatialReference:n});return r.cache._geVersion=t,r},exportExtent:function(e,t,n){const a=e.hasZ(t),i=e.hasM(t),c=new r.A({xmin:e.getXMin(t),ymin:e.getYMin(t),xmax:e.getXMax(t),ymax:e.getYMax(t),spatialReference:n});if(a){const n=e.getZExtent(t);c.zmin=n.vmin,c.zmax=n.vmax}if(i){const n=e.getMExtent(t);c.mmin=n.vmin,c.mmax=n.vmax}return c.cache._geVersion=t,c}}},33209:(e,t,n)=>{n.r(t),n.d(t,{buffer:()=>D,changeDefaultSpatialReferenceTolerance:()=>q,clearDefaultSpatialReferenceTolerance:()=>B,clip:()=>s,contains:()=>f,convexHull:()=>M,crosses:()=>l,cut:()=>d,densify:()=>J,difference:()=>v,disjoint:()=>g,distance:()=>p,equals:()=>h,extendedSpatialReferenceInfo:()=>u,flipHorizontal:()=>b,flipVertical:()=>k,generalize:()=>H,geodesicArea:()=>X,geodesicBuffer:()=>T,geodesicDensify:()=>N,geodesicLength:()=>Y,intersect:()=>S,intersectLinesToPoints:()=>j,intersects:()=>y,isSimple:()=>w,nearestCoordinate:()=>z,nearestVertex:()=>_,nearestVertices:()=>C,offset:()=>Z,overlaps:()=>x,planarArea:()=>O,planarLength:()=>I,relate:()=>m,rotate:()=>L,simplify:()=>R,symmetricDifference:()=>P,touches:()=>A,union:()=>V,within:()=>G}),n(59456);var r=n(56507),a=n(49930),i=n(12731),c=n(16930);function o(e){const t=Array.isArray(e)?e[0].spatialReference:e.spatialReference;return t?(0,r.PZ)(c.A,t):c.A.WGS84}function u(e){return a.G.extendedSpatialReferenceInfo(e)}function s(e,t){return a.G.clip(i.hydratedAdapter,o(e),e,t)}function d(e,t){return a.G.cut(i.hydratedAdapter,o(e),e,t)}function f(e,t){return a.G.contains(i.hydratedAdapter,o(e),e,t)}function l(e,t){return a.G.crosses(i.hydratedAdapter,o(e),e,t)}function p(e,t,n){return a.G.distance(i.hydratedAdapter,o(e),e,t,n)}function h(e,t){return a.G.equals(i.hydratedAdapter,o(e),e,t)}function y(e,t){return a.G.intersects(i.hydratedAdapter,o(e),e,t)}function A(e,t){return a.G.touches(i.hydratedAdapter,o(e),e,t)}function G(e,t){return a.G.within(i.hydratedAdapter,o(e),e,t)}function g(e,t){return a.G.disjoint(i.hydratedAdapter,o(e),e,t)}function x(e,t){return a.G.overlaps(i.hydratedAdapter,o(e),e,t)}function m(e,t,n){return a.G.relate(i.hydratedAdapter,o(e),e,t,n)}function w(e){return a.G.isSimple(i.hydratedAdapter,o(e),e)}function R(e){return a.G.simplify(i.hydratedAdapter,o(e),e)}function M(e,t=!1){return a.G.convexHull(i.hydratedAdapter,o(e),e,t)}function v(e,t){return a.G.difference(i.hydratedAdapter,o(e),e,t)}function P(e,t){return a.G.symmetricDifference(i.hydratedAdapter,o(e),e,t)}function S(e,t){return a.G.intersect(i.hydratedAdapter,o(e),e,t)}function V(e,t=null){return a.G.union(i.hydratedAdapter,o(e),e,t)}function Z(e,t,n,r,c,u){return a.G.offset(i.hydratedAdapter,o(e),e,t,n,r,c,u)}function D(e,t,n,r=!1){return a.G.buffer(i.hydratedAdapter,o(e),e,t,n,r)}function T(e,t,n,r,c,u){return a.G.geodesicBuffer(i.hydratedAdapter,o(e),e,t,n,r,c,u)}function z(e,t,n=!0){return a.G.nearestCoordinate(i.hydratedAdapter,o(e),e,t,n)}function _(e,t){return a.G.nearestVertex(i.hydratedAdapter,o(e),e,t)}function C(e,t,n,r){return a.G.nearestVertices(i.hydratedAdapter,o(e),e,t,n,r)}function E(e){return"xmin"in e?"center"in e?e.center:null:"x"in e?e:"extent"in e?e.extent?.center??null:null}function L(e,t,n){if(null==e)throw new W;const r=e.spatialReference;if(null==(n=n??E(e)))throw new W;const i=e.constructor.fromJSON(a.G.rotate(e,t,n));return i.spatialReference=r,i}function b(e,t){if(null==e)throw new W;const n=e.spatialReference;if(null==(t=t??E(e)))throw new W;const r=e.constructor.fromJSON(a.G.flipHorizontal(e,t));return r.spatialReference=n,r}function k(e,t){if(null==e)throw new W;const n=e.spatialReference;if(null==(t=t??E(e)))throw new W;const r=e.constructor.fromJSON(a.G.flipVertical(e,t));return r.spatialReference=n,r}function H(e,t,n,r){return a.G.generalize(i.hydratedAdapter,o(e),e,t,n,r)}function J(e,t,n){return a.G.densify(i.hydratedAdapter,o(e),e,t,n)}function N(e,t,n,r=0){return a.G.geodesicDensify(i.hydratedAdapter,o(e),e,t,n,r)}function O(e,t){return a.G.planarArea(i.hydratedAdapter,o(e),e,t)}function I(e,t){return a.G.planarLength(i.hydratedAdapter,o(e),e,t)}function X(e,t,n){return a.G.geodesicArea(i.hydratedAdapter,o(e),e,t,n)}function Y(e,t,n){return a.G.geodesicLength(i.hydratedAdapter,o(e),e,t,n)}function j(e,t){return a.G.intersectLinesToPoints(i.hydratedAdapter,o(e),e,t)}function q(e,t){a.G.changeDefaultSpatialReferenceTolerance(e,t)}function B(e){a.G.clearDefaultSpatialReferenceTolerance(e)}class W extends Error{constructor(){super("Illegal Argument Exception")}}}}]);
|