@arcgis/core 5.2.0-next.91 → 5.2.0-next.94

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.
Files changed (107) hide show
  1. package/arcade/arcadeAsyncRuntime.js +1 -1
  2. package/arcade/arcadeCompiler.js +1 -1
  3. package/arcade/functions/portal.js +2 -0
  4. package/arcade/treeAnalysis.js +1 -1
  5. package/assets/esri/core/workers/RemoteClient.js +1 -1
  6. package/assets/esri/core/workers/chunks/0be98adfef79fc5036f0.js +1 -0
  7. package/assets/esri/core/workers/chunks/19ab024f6f732fd6c69b.js +1 -0
  8. package/assets/esri/core/workers/chunks/{c6ec0e966106f66360d9.js → 349b0c7febc46267441d.js} +3 -3
  9. package/assets/esri/core/workers/chunks/5d6733dcee9c2ef00072.js +1 -0
  10. package/assets/esri/core/workers/chunks/{aed7b80145b22c246098.js → 6cbc30b31f0bb39c73ca.js} +1 -1
  11. package/assets/esri/core/workers/chunks/6cc03ef97d7731153b9a.js +1 -0
  12. package/assets/esri/core/workers/chunks/75b90fb05e4a2d32b7bb.js +1 -0
  13. package/assets/esri/core/workers/chunks/7eae9053065d3d38e54e.js +1 -0
  14. package/assets/esri/core/workers/chunks/87e9f7e85221bc7e6709.js +1 -0
  15. package/assets/esri/core/workers/chunks/909ee7d2a0eec773037a.js +1 -0
  16. package/assets/esri/core/workers/chunks/a0eb882a5a81d25b9153.js +1 -0
  17. package/assets/esri/core/workers/chunks/a74182ff402c3a808323.js +1 -0
  18. package/assets/esri/core/workers/chunks/{6fd0d9431b141f2a3252.js → cefb70d633c220cbedf9.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{69c9a12c97ead8963817.js → d1304d414b1fa725168a.js} +1 -1
  20. package/assets/esri/core/workers/chunks/d453627894e6e5b02023.js +1 -0
  21. package/assets/esri/core/workers/chunks/e4380706b629729f2212.js +1 -0
  22. package/assets/esri/core/workers/chunks/{5d9c92c4e60a4696fdad.js → e488e5c62cb375c87a39.js} +1 -1
  23. package/assets/esri/core/workers/chunks/ea1877ce00da3b585a30.js +1 -0
  24. package/assets/esri/core/workers/chunks/ec77222776f755dc372c.js +1 -0
  25. package/assets/esri/core/workers/chunks/f5867d8ba73c67ac27d2.js +1 -0
  26. package/assets/esri/core/workers/chunks/{b7ed5f130661e9ca00b9.js → f5a058a0ce006bce2a2a.js} +1 -1
  27. package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
  28. package/chunks/Fog.glsl.js +5 -5
  29. package/chunks/GlowBlur.glsl.js +3 -3
  30. package/chunks/GlowComposite.glsl.js +1 -36
  31. package/chunks/bundle.js +1 -1
  32. package/chunks/portal.js +2 -0
  33. package/config.js +1 -1
  34. package/geometry/support/HalfFloatArray.js +1 -1
  35. package/geometry/support/buffer/BufferView.js +1 -1
  36. package/kernel.js +1 -1
  37. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  38. package/layers/support/AnnotationFeatureSublayer.js +1 -1
  39. package/libs/parquet/parquet.js +1 -1
  40. package/package.json +3 -3
  41. package/smartMapping/symbology/types.d.ts +1 -1
  42. package/support/revision.js +1 -1
  43. package/views/2d/engine/Stage.js +1 -1
  44. package/views/2d/engine/vectorTiles/SpriteMosaic.js +1 -1
  45. package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
  46. package/views/2d/engine/webgl/Painter.js +1 -1
  47. package/views/2d/engine/webgl/SpriteMosaic.js +1 -1
  48. package/views/2d/engine/webgl/shaderGraph/techniques/Technique.js +1 -1
  49. package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapTechnique.js +1 -1
  50. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelTechnique.js +1 -1
  51. package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileDebugInfoTechnique.js +1 -1
  52. package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileStencilTechnique.js +1 -1
  53. package/views/2d/layers/AnnotationFeatureLayerView2D.js +1 -1
  54. package/views/2d/layers/features/FeatureContainer.js +1 -1
  55. package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
  56. package/views/2d/layers/features/support/FeatureSetReaderParquet.js +1 -1
  57. package/views/2d/layers/graphics/GraphicContainer.js +1 -1
  58. package/views/2d/layers/graphics/HighlightGraphicContainer.js +1 -1
  59. package/views/3d/environment/CloudyWeather.js +1 -1
  60. package/views/3d/environment/SunnyWeather.js +1 -1
  61. package/views/3d/support/GaussianSplatSortWorker.js +1 -1
  62. package/views/3d/support/buffer/InterleavedLayout.js +1 -1
  63. package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
  64. package/views/3d/terrain/TileCompositor.js +1 -1
  65. package/views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js +1 -1
  66. package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBufferFields.glsl.js +11 -11
  67. package/views/3d/webgl-engine/effects/clouds/CloudsParameters.js +1 -1
  68. package/views/3d/webgl-engine/effects/clouds/CloudsPresets.js +1 -1
  69. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  70. package/views/3d/webgl-engine/effects/glow/Glow.js +1 -1
  71. package/views/3d/webgl-engine/effects/glow/GlowBlur.glsl.js +1 -1
  72. package/views/3d/webgl-engine/effects/glow/GlowComposite.glsl.js +1 -1
  73. package/views/3d/webgl-engine/effects/glow/GlowCompositeTechnique.js +1 -1
  74. package/views/3d/webgl-engine/effects/glow/blurEmission.glsl.js +38 -0
  75. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowAccumulator.js +1 -1
  76. package/views/3d/webgl-engine/lib/AttributeArray.js +1 -1
  77. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  78. package/views/3d/webgl-engine/lib/DefaultVertexBufferLayouts.js +1 -1
  79. package/views/3d/webgl-engine/lib/MainFramebuffer.js +1 -1
  80. package/views/3d/webgl-engine/lib/RenderContext.js +1 -1
  81. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  82. package/views/3d/webgl-engine/lib/RenderingContext.js +1 -1
  83. package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBufferFieldCreation.js +1 -1
  84. package/views/3d/webgl-engine/lib/glUtil3D.js +1 -1
  85. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  86. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  87. package/views/popupAdapter.js +1 -1
  88. package/widgets/Directions.d.ts +1 -1
  89. package/widgets/OrientedImageryViewer/components/VideoEnhancementTools.js +1 -1
  90. package/widgets/OrientedImageryViewer.js +1 -1
  91. package/widgets/support/FilterBuilder.js +1 -1
  92. package/assets/esri/core/workers/chunks/07613ecf13c38ad58b79.js +0 -1
  93. package/assets/esri/core/workers/chunks/0846855843f85661e974.js +0 -1
  94. package/assets/esri/core/workers/chunks/30376f00cda1165a2504.js +0 -1
  95. package/assets/esri/core/workers/chunks/423c2692df662b3dddd4.js +0 -1
  96. package/assets/esri/core/workers/chunks/46f8c7ae7fb356c3410d.js +0 -1
  97. package/assets/esri/core/workers/chunks/48e2d0bfb62e1f4f2ad9.js +0 -1
  98. package/assets/esri/core/workers/chunks/4bf7c0c874d30b1c0760.js +0 -1
  99. package/assets/esri/core/workers/chunks/7253a439c98200e3e748.js +0 -1
  100. package/assets/esri/core/workers/chunks/848a9f0e5373bbf289a5.js +0 -1
  101. package/assets/esri/core/workers/chunks/ad404195107eadf91e16.js +0 -1
  102. package/assets/esri/core/workers/chunks/b2e2234fdf8e05bc3312.js +0 -1
  103. package/assets/esri/core/workers/chunks/bf11319138facf44752c.js +0 -1
  104. package/assets/esri/core/workers/chunks/ec69dd546c312ba97110.js +0 -1
  105. package/assets/esri/core/workers/chunks/f247f3c5148fa0237a7c.js +0 -1
  106. package/assets/esri/core/workers/chunks/f4d351b4cd9d1aa10632.js +0 -1
  107. package/geometry/support/float16.js +0 -2
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7320],{6797(e,t,r){r.d(t,{Ui:()=>y});var i=r(69622),n=r(7762),s=r(88620);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function a(e){return e instanceof i.A}function l(e){return e instanceof n.A?Object.keys(e.items):a(e)?(0,s.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof n.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function p(e,t){const r=e.diff;if(r&&"function"==typeof r)return r(e,t);const i=l(e),n=l(t);if(0===i.length&&0===n.length)return;if(!i.length||!n.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const s=n.filter(e=>!i.includes(e)),y=i.filter(e=>!n.includes(e)),d=i.filter(r=>n.includes(r)&&u(e,r)!==u(t,r)).concat(s,y).sort(),h=c(e);if(h&&o.has(h)&&d.length)return{type:"complete",oldValue:e,newValue:t};let g;const f=a(e)&&a(t);for(const i of d){const n=u(e,i),s=u(t,i);let o;if((f||"function"!=typeof n&&"function"!=typeof s)&&n!==s&&(null!=n||null!=s)){if(r&&r[i]&&"function"==typeof r[i])o=r[i]?.(n,s);else if(n instanceof Date&&s instanceof Date){if(n.getTime()===s.getTime())continue;o={type:"complete",oldValue:n,newValue:s}}else o="object"==typeof n&&"object"==typeof s&&c(n)===c(s)?p(n,s):{type:"complete",oldValue:n,newValue:s};null!=o&&(null!=g?g.diff[i]=o:g={type:"partial",diff:{[i]:o}})}}return g}function y(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:p(e,t)}},44794(e,t,r){r.d(t,{v:()=>a});var i=r(4718),n=r(62788),s=r(95488);class o{constructor(e,t){this._observable=new s.I,this._value=e,this._equalityFunction=t}get value(){return(0,n.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function a(e,t=i.gh){return new o(e,t)}},99680(e,t,r){r.r(t),r.d(t,{default:()=>oe});var i=r(32198),n=r(37838),s=r(69540),o=r(7762),a=r(51447),l=r(49186),u=r(44208),c=r(53966),p=r(25728),y=r(93637),d=r(36708),h=r(84952),g=r(10107),f=r(64108),m=r(43937),w=r(5443),v=r(16930),b=r(55156),_=r(60950),C=r(89808),x=r(99959);const P=Symbol("isParquetGraphicOrigin");var S;class M extends x.A{get[(S=P,_.ym)](){return this.layer}get[b.e](){return this.layer}get[C.Q](){return this.layer}constructor(e){super(),this[S]=!0,this.type="parquet",this.layer=e}get id(){return this.layer.id}}var A=r(4146),R=r(65529),q=r(92474),F=r(17676),E=r(83027),L=r(42760),I=r(22671);let T=class extends((0,R.Zt)(q.x_)){constructor(e){super(e),this.type="parquet"}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._initialize(t)),this.addHandles([(0,d.wB)(()=>this.layer.data,async e=>{if(e)try{await this._proxy.updateFileProvider(await(0,L.Dt)(e))}catch{}}),(0,d.wB)(()=>this.layer.customParameters,e=>this._setCustomParameters(e))]),Promise.resolve(this)}async reload(e){const t=await this._createLoadParameters(e);return this._proxy.reload(t)}destroy(){this._connection?.destroy()}async openPorts(){return await this.load(),this._connection.openPorts()}async getDiagnosticsSnapshot(){return await this.load(),this._proxy.getDiagnosticsSnapshot()}async getColumnIndex(e){return await this.load(),this._proxy.getColumnIndex(e)}async getOffsetIndex(e){return await this.load(),this._proxy.getOffsetIndex(e)}async queryFeaturesJSON(e,t={}){return await this.load(t),this._proxy.queryFeatures(e.toJSON(),{signal:t?.signal})}async queryFeatures(e,t={}){const r=await this.queryFeaturesJSON(e,{signal:t?.signal});return I.A.fromJSON(r)}async queryObjectIds(e,t){return await this._proxy.queryObjectIds(e.toJSON(),{signal:t?.signal})}async queryFeatureCount(e,t){return this._proxy.queryFeatureCount(e.toJSON(),{signal:t?.signal})}async queryExtent(e,t){if(null==this.layer.geometryEncoding)return c.A.getLogger(this).warn("Tried to queryExtent, but source does not have a geometry. Returning null extent."),{count:0,extent:null};const r=await this._proxy.queryExtent(e.toJSON(),{signal:t?.signal});return{count:r.count,extent:w.A.fromJSON(r.extent)}}async _initialize(e){const t={onSourceChange:()=>this.emit("source-changed"),onRangeRead:e=>this.emit("range-read",e)};this._connection=await(0,E.h)("ParquetSourceWorker",{strategy:"dedicated",signal:e,registryTarget:this,client:t}),(0,F.Te)(e),this._proxy=this._connection.createInvokeProxy();const r=await this._createLoadParameters(e),{layerDefinition:i,capabilities:n}=await this._proxy.load(r);(0,F.Te)(e),this.sourceJSON=i,this.capabilities=n}async _createLoadParameters(e){if(!this.layer.data)throw new l.A("parquet:missing-data","A data source must be specified",this.layer);const t=await(0,L.Dt)(this.layer.data,{signal:e});return(0,F.Te)(e),{provider:t,fields:this.layer.fields?.map(e=>e.toJSON()),geometryType:this.layer.geometryType?(0,L.sA)(this.layer.geometryType):null,spatialReference:this.layer.spatialReference?.toJSON(),geometryEncoding:this.layer.geometryEncoding?.toJSON(),displayOptimization:this.layer.displayOptimization,customParameters:this.layer.customParameters}}_setCustomParameters(e){this._proxy.setCustomParameters(e).catch(()=>{c.A.getLogger(this).warn("Failed to update customParameters")})}_queryStream(e,t){return this._proxy.queryStream(e,t)}_getStreamNextFeatures(e,t){return this._proxy.getStreamNextFeatures(e,t)}};(0,i.Cg)([(0,g.MZ)()],T.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)({constructOnly:!0})],T.prototype,"layer",void 0),(0,i.Cg)([(0,g.MZ)()],T.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,g.MZ)()],T.prototype,"capabilities",void 0),T=(0,i.Cg)([(0,f.$)("esri.layers.graphics.sources.ParquetSource")],T);var O=r(63074),Z=r(69208),j=r(90735),N=r(87718),z=r(56658),U=r(34287),V=r(32756),D=r(25036),$=r(10873),J=r(29005),G=r(20437),B=r(17036),k=r(30524),K=r(9075),Q=r(34582),W=r(46499),H=r(39383),X=r(56370),Y=r(89160),ee=r(41214),te=r(97552),re=r(30291);const ie=(0,B.p)(),ne="__OBJECTID",se={types:{key:"type",base:null,typeMap:{wkb:Q.A,location:K.A}},json:{name:"layerDefinition.geometryEncoding",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{read:{source:"geometryEncoding"}}}}};let oe=class extends((0,z.J)((0,N.F)((0,O.dM)((0,V.fY)((0,j.z)((0,D.j)((0,U.q)((0,p.M)((0,Z.d)((0,s.OU)(A.A))))))))))){constructor(e){super(e),this._emptyUrls=new o.A,this.copyright=null,this.definitionExpression=null,this.returnM=void 0,this.returnZ=void 0,this.displayOptimization=null,this.fields=null,this.fieldsIndex=null,this.geometryEncoding=null,this.fullExtent=null,this.geometryType=null,this.graphicOrigin=new M(this),this.labelsVisible=!0,this.labelingInfo=null,this.objectIdField=ne,this.operationalLayerType="ParquetLayer",this.outFields=null,this.persistenceEnabled=!!(0,u.A)("parquetlayer-persistence-enabled"),this.popupTemplate=null,this.source=null,this.spatialReference=null,this.templates=null,this.type="parquet",this.data=null}initialize(){this.addHandles((0,d.on)(()=>this.source,"source-changed",()=>{this.emit("refresh",{dataChanged:!0})}))}destroy(){this.source?.destroy()}async load(e){return this.addResolvingPromise(this._load(e)),this}get capabilities(){return this.source?.capabilities}get defaultPopupTemplate(){return this.createPopupTemplate()}writeFields(e,t,r,i){const n=e.filter(e=>!(e.name===ne&&"oid"===e.type)).map(e=>e.toJSON(i));(0,y.sM)(r,n,t)}get isTable(){return null==this.geometryEncoding&&null==this.displayOptimization}set renderer(e){(0,k.yp)(e,this.fieldsIndex),this._set("renderer",e)}get title(){let e=this._get("title");if(e&&"defaults"!==this.originOf("title"))return e;switch(this.data?.type){case"files":{const t=this.data.urls?.at(0);e=t?(0,h.e7)(t,["parquet"]):null;break}case"portal-item":e=this.data.portalItem?.title}return e||"Parquet"}set title(e){this._set("title",e)}writeData(e,t,r,i){if(!e)return;if("portal-item"===e.type&&"Parquet Feature Layer"!==e.portalItem?.type)return void i.messages?.push(new l.A("parquet-layer:unsupported-data",`Portal item with type '${e.portalItem?.type}' is not supported in web maps`,{layer:this,itemId:e.portalItem?.id}));const n=e.write({},i);n&&(t.source=n)}get urls(){return"files"===this.data?.type?this.data.urls:this._emptyUrls}set urls(e){(0,a.Lx)(c.A.getLogger(this),"urls",{replacement:"data",version:"5.1",warnOnce:!0}),this.data=new X.A({urls:this._normalizeUrls(e)})}createPopupTemplate(e){return(0,re.tn)(this,e)}createQuery(){const e=new te.A;return e.returnGeometry=!0,e.outFields=["*"],e.where=this.definitionExpression||"1=1",e}async createSource(e){const t=new T({layer:this});return await t.load(e),t}getFieldDomain(e,t){return null}getField(e){return this.fieldsIndex.get(e)}async queryFeatures(e,t){await this.load();const r=await this.source.queryFeatures(this._normalizeQuery(e),t),i=this.graphicOrigin;if(r?.features)for(const e of r.features)e.layer=e.sourceLayer=this,e.origin=i;return r}async queryObjectIds(e,t){return await this.load(),this.source.queryObjectIds(this._normalizeQuery(e),t)}async queryFeatureCount(e,t){return await this.load(),this.source.queryFeatureCount(this._normalizeQuery(e),t)}async queryExtent(e,t){return await this.load(),this.source.queryExtent(this._normalizeQuery(e),t)}_normalizeQuery(e){return te.A.from(e)??this.createQuery()}_normalizeUrls(e){return Array.isArray(e)?new o.A(e):e??new o.A}async _load(e){"portal-item"===this.data?.type&&await this.data.portalItem.load();const t=await this.createSource(e);this._set("source",t),this.read(t.sourceJSON,{origin:"service"}),["fields"].forEach(e=>this.revertToOrigin(e,"service")),(0,k.yp)(this.renderer,this.fieldsIndex),null==this.spatialReference&&(this.spatialReference=v.A.WGS84)}};(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1,write:!1}})],oe.prototype,"capabilities",null),(0,i.Cg)([(0,g.MZ)({type:String})],oe.prototype,"copyright",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],oe.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,g.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],oe.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean})],oe.prototype,"returnM",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean})],oe.prototype,"returnZ",void 0),(0,i.Cg)([(0,g.MZ)()],oe.prototype,"displayOptimization",void 0),(0,i.Cg)([(0,g.MZ)({type:[G.A],json:{name:"layerDefinition.fields",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"fields"}}}})],oe.prototype,"fields",void 0),(0,i.Cg)([(0,m.K)("fields")],oe.prototype,"writeFields",null),(0,i.Cg)([(0,g.MZ)(ie.fieldsIndex)],oe.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,g.MZ)(se)],oe.prototype,"geometryEncoding",void 0),(0,i.Cg)([(0,g.MZ)({type:w.A,json:{name:"extent"}})],oe.prototype,"fullExtent",void 0),(0,i.Cg)([(0,g.MZ)({type:L.ye.apiValues,json:{name:"layerDefinition.geometryType",read:{reader:L.ye.read},write:{writer:L.ye.write,ignoreOrigin:!0,isRequired:!0},origins:{service:{read:{source:"geometryType",reader:L.ye.read}}}}})],oe.prototype,"geometryType",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,clonable:!1})],oe.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,g.MZ)($.kF)],oe.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,g.MZ)({type:[W.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:H.w},write:!0}})],oe.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,g.MZ)($.fV)],oe.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,g.MZ)()],oe.prototype,"file",void 0),(0,i.Cg)([(0,g.MZ)({type:String,readOnly:!0})],oe.prototype,"objectIdField",void 0),(0,i.Cg)([(0,g.MZ)({type:["ParquetLayer"]})],oe.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,g.MZ)(ie.outFields)],oe.prototype,"outFields",void 0),(0,i.Cg)([(0,g.MZ)($.M6)],oe.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,g.MZ)({type:n.A,json:{name:"popupInfo",write:!0}})],oe.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)({types:ee.Hg,json:{name:"layerDefinition.drawingInfo.renderer",write:!0,origins:{service:{read:{source:"drawingInfo.renderer"}}}}})],oe.prototype,"renderer",null),(0,i.Cg)([(0,g.MZ)({type:T,readOnly:!0,cast:null,json:{read:!1}})],oe.prototype,"source",void 0),(0,i.Cg)([(0,g.MZ)({type:v.A,json:{name:"layerDefinition.spatialReference",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{read:{source:"extent.spatialReference"}}}}})],oe.prototype,"spatialReference",void 0),(0,i.Cg)([(0,g.MZ)({type:[J.A]})],oe.prototype,"templates",void 0),(0,i.Cg)([(0,g.MZ)()],oe.prototype,"title",null),(0,i.Cg)([(0,g.MZ)({json:{read:!1},readOnly:!0})],oe.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)({types:{key:"type",base:null,typeMap:{files:X.A,"portal-item":Y.A}},json:{name:"source",origins:{"web-map":{write:{target:"source",ignoreOrigin:!0}}}}})],oe.prototype,"data",void 0),(0,i.Cg)([(0,m.K)("web-map","data")],oe.prototype,"writeData",null),(0,i.Cg)([(0,g.MZ)({type:o.A.ofType(String),json:{read:!1,write:!1}})],oe.prototype,"urls",null),oe=(0,i.Cg)([(0,f.$)("esri.layers.ParquetLayer")],oe)},24460(e,t,r){function i(e){const{minValue:t,maxValue:r,numValues:i,nullCount:n,distinctCount:s}=e;return null!=i&&n===i?{type:"null-only",nullCount:n,distinctCount:s}:"number"==typeof t&&Number.isFinite(t)&&"number"==typeof r&&Number.isFinite(r)&&t<=r?{type:"bounds",minValue:t,maxValue:r,nullCount:n,distinctCount:s}:null!=t||null!=r||null!=s||null!=n?{type:"unknown",nullCount:n,distinctCount:s}:null}function n(e){const t=new Map;for(const r of e.files){const e=s(r);t.set(r.name,e)}return t}function s(e){const t=new Map;for(const r of e.statistics??[]){const e=r.column.at(-1);if(null==e)continue;const n=i({minValue:r.minValue,maxValue:r.maxValue,numValues:null,nullCount:r.nullCount??0,distinctCount:r.distinctCount??null});null!=n&&t.set(e,n)}return new a(0,0,t)}function o(e){const t=e.minValue(),r=e.maxValue(),n=e.numValues(),s=e.distinctCount()??null;return i({minValue:t,maxValue:r,numValues:n,nullCount:e.nullCount()??null,distinctCount:s})}r.d(t,{Hk:()=>o,MB:()=>a,t8:()=>n});class a{static fromFile(e){const t=e.numRows(),r=e.byteLength(),i=new Map;for(const t of e.getColumnDescriptors()){const e=o(t);null!=e&&i.set(t.name(),e),t.free()}return new a(t,r,i)}constructor(e,t,r){this.rowCount=e,this.byteSize=t,this.statistics=r}}},95031(e,t,r){r.d(t,{M:()=>x});var i=r(11254),n=r(32198),s=r(49186),o=r(65529),a=r(44208),l=r(563),u=r(84952),c=r(24460),p=r(63892);class y{static async create(e,t,r,i,n){if(!n){const n=await(0,p.DV)(r,{geometryInfo:e,provider:t}),s=c.MB.fromFile(n);return new y(e,t,r,i,s,Promise.resolve(n))}return new y(e,t,r,i,n,null)}constructor(e,t,r,i,n,s){this._geometryInfo=e,this._provider=t,this.url=r,this.id=i,this.statistics=n,this._file=s}destroy(){null!=this._file&&this._file.then(e=>e.free())}get file(){return null==this._file&&(this._file=(0,p.DV)(this.url,{geometryInfo:this._geometryInfo,provider:this._provider})),this._file}async getDiagnosticsSnapshot(){return{...(await this.file).diagnosticsSnapshot(),fileId:this.id,fileName:this.url}}async getColumnIndex(e,t){return(await this.file).columnIndex(e,t)}async getOffsetIndex(e,t){return(await this.file).offsetIndex(e,t)}}const d="_spatial.json",h=new l.QueueProcessor({concurrency:12,process:async e=>{const{data:t}=await(0,i.A)(e.url,e.options);return t}});let g=1;class f{constructor(e,t=()=>{}){this._geometryInfo=e,this._getCustomParameters=t,this.events=new o.bk}async destroy(){await this.clear()}async clear(){if(this._infos){const e=await this._infos;for(const t of e.values())t.destroy();e.clear(),this._infos=null}}async getMetadata(){const e={stack:[],error:void 0,hasError:!1};try{const t=(await this._getParquetFileNames()).at(0);if(!t)return null;const r=(0,n.mS)(e,await(0,p.DV)(t,{provider:this}),!1);return(0,p._6)(r)}catch(t){e.error=t,e.hasError=!0}finally{(0,n.hk)(e)}}getGeometryInfo(){return this._geometryInfo}async getFiles(){const e=await this._getInfoMap();return Array.from(e.values())}async updateGeometryInfo(e){if(this._geometryInfo)throw new Error("GeometryInfo already set");await this.clear(),this._geometryInfo=e}async fetchLength(e){const{byteLength:t,cacheTag:r}=await this._fetchLengthAndTag(e);if(!(0,a.A)("parquetlayer-cache-enabled"))return t;try{await this._createOrResetCache(e,r)}catch(e){}return t}async fetchRange(e,t,r,i){const n={fileId:e,requestId:g++,range:{start:t,end:r+1}};this.events.emit("rangeRead",{...n,phase:"start"});try{const s=await this._fetchRangeWithCache(e,t,r,i);return this.events.emit("rangeRead",{...n,phase:"complete"}),s}catch(e){throw this.events.emit("rangeRead",{...n,phase:"error"}),e}}_getCacheFileName(e){return e}async _requestStatistics(e){const{data:t}=await(0,i.A)(e,{responseType:"json",query:this._getCustomParameters()});return t}async _fetchRange(e,t,r,i){const n={url:e,options:{responseType:"array-buffer",query:this._getCustomParameters()??{},cacheMode:"no-store",useQueue:!0,headers:{range:`bytes=${t}-${r}`}}},o=await h.push(n),a=r-t+1;if(o.byteLength!==a)throw new s.A("InvalidRangeRequest",`request returned ${o.byteLength} bytes for range ${t}-${r}, expected ${a}.`);return o}async _fetchLengthAndTag(e){if((0,u.w8)(e)){const{data:t}=await(0,i.A)(e,{responseType:"blob"});return{byteLength:t.size,cacheTag:null}}const t=await this._requestHead(e),r=t.headers.get("Content-Length");if(null==r)throw new Error("Unable to parse content length");const n=t.headers.get("etag")??t.headers.get("Last-Modified");return{byteLength:parseInt(r,10),cacheTag:n}}async _getInfoMap(){return this._infos||(this._infos=this._fetchParquetFiles()),this._infos}async _updateParquetFileInfos(e){const t=await this._getInfoMap(),r=new Set(e);for(const e of r)if(!t.get(e)){const r=t.size,i=await y.create(this.getGeometryInfo(),this,e,r,null);t.set(e,i)}for(const e of t.keys())if(!r.has(e))throw new Error("Deletion not supported")}async _getFileStatistics(e){this._statistics||(this._statistics=this._fetchStatistics());const t=await this._statistics,r=function(e){return e.split(/[?#]/)[0].split("/").at(-1)??e}(e);return t.get(r)}async _fetchParquetFiles(){const e=(await this._getParquetFileNames()).map(async(e,t)=>{const r=t,i=await this._getFileStatistics(e);return y.create(this.getGeometryInfo(),this,e,r,i)}),t=await Promise.all(e),r=new Map;for(const e of t)r.set(e.url,e);return r}async _fetchStatistics(){const e=await this._getStatisticsFileName();if(null==e)return new Map;const t=await this._resolveFileUrl(e),r=await this._requestStatistics(t);return(0,c.t8)(r)}async _requestHead(e){const{data:t}=await(0,i.A)(e,{responseType:"native",method:"head",query:this._getCustomParameters()});return t}async _openCache(e){return caches.open(this._getCacheName(e))}async _fetchRangeWithCache(e,t,r,i){if(!(0,a.A)("parquetlayer-cache-enabled"))return this._fetchRange(e,t,r,i);const n=new URL(this._getCacheFileName(e));n.searchParams.append("range",`${t}-${r}`);try{const s=await this._openCache(e),o=await s.match(n);if(o)return await o.arrayBuffer();const a=await this._fetchRange(e,t,r,i);return await s.put(n,new Response(a,{headers:{"Content-Type":"application/octet-stream","Content-Length":a.byteLength.toString()}})),a}catch(n){return this._fetchRange(e,t,r,i)}}_getCacheName(e){return`parquet.v1:${this._getCacheFileName(e)}`}async _createOrResetCache(e,t){const r=this._getCacheName(e),i=new URL(this._getCacheFileName(e));if(i.searchParams.append("metadata","true"),null==t)return void await caches.delete(r);let n=await caches.open(r);const s=await n.match(i),o=await(s?.json());o?.tag!==t&&(await caches.delete(r),n=await caches.open(r));const a=JSON.stringify({tag:t});await n.put(i,new Response(a,{headers:{"Content-Type":"application/json","Content-Length":a.length.toString()}}))}}function m(e){const t=e.split(/[?#]/)[0];return t===d||t.endsWith(d)}var w=r(39131);class v extends f{constructor(e,t,r){super(t,r),this._schema=e,this._isAgol=!!(0,w.py)(this._schema.itemUrl)}async update(e){throw new Error("Unsupported")}async _getParquetFileNames(){return[`${this._baseUrl}/data`]}async _getStatisticsFileName(){return null}_getCacheFileName(e){return`${this._baseUrl}/data`}async _resolveFileUrl(e){return this._resolvedUrl||(this._resolvedUrl=this._fetchResolvedUrl()),this._resolvedUrl}async _fetchLengthAndTag(e){const t=await super._fetchLengthAndTag(e);return t.cacheTag=this._schema.modified.getTime().toString(),t}async _fetchRange(e,t,r,i){try{const n=await this._resolveFileUrl(e);return await super._fetchRange(n,t,r,i)}catch{this._resolvedUrl=null}const n=await this._resolveFileUrl(e);return super._fetchRange(n,t,r,i)}get _baseUrl(){return this._schema.itemCdnUrl??this._schema.itemUrl}async _fetchResolvedUrl(){return this._isAgol?(await(0,i.A)(`${this._baseUrl}/data`,{query:{signedurl:!0,expiration:9,f:"json"}})).data.signedUrl:`${this._baseUrl}/data`}}var b=r(47828);class _ extends f{constructor(e,t,r){super(t,r),this._schema=e,this._directoryChanged=!1}get _baseUrl(){return this._schema.itemCdnUrl??this._schema.itemUrl}async update(e){throw new Error("Unsupported")}async _getParquetFileNames(){const e=await this._getResources();return Array.from(e.keys()).filter(e=>e.endsWith(".parquet"))}async _getStatisticsFileName(){const e=await this._getResources();return Array.from(e.keys()).find(m)??null}_getCacheFileName(e){return`${this._baseUrl}/resources/${e}`}async _resolveFileUrl(e){const t=await this._getResource(e);return t.signedUrl?t.signedUrl:`${this._baseUrl}/resources/${e}`}async _fetchLengthAndTag(e){const t=await this._getResource(e),r=this._schema.itemMetadata.modified.getTime().toString();return{byteLength:t.size,cacheTag:r}}async _fetchRange(e,t,r,i){if(this._directoryChanged)throw(0,b.O)();try{const n=await this._resolveFileUrl(e);return await super._fetchRange(n,t,r,i)}catch{if("directory-changed"===await this._refetchResources())throw(0,b.O)()}const n=await this._resolveFileUrl(e);return super._fetchRange(n,t,r,i)}_refetchResources(){return this._directoryChanged?Promise.resolve("directory-changed"):(this._updateResourcesPromise||(this._updateResourcesPromise=this._executeRefetchResources().finally(()=>{this._updateResourcesPromise=null})),this._updateResourcesPromise)}async _executeRefetchResources(){return await this._refetchPortalItemMetadata()?(this.events.emit("sourceChanged"),this._directoryChanged=!0,"directory-changed"):(this._resources=this._fetchResources(),"ok")}async _refetchPortalItemMetadata(){const e=this._schema.itemMetadata.url,t=await(0,i.A)(this._schema.itemUrl,{responseType:"json",query:{f:"json"}}),{modified:r,url:n}=t.data;if(null==n)throw new Error("Portal item metadata must have a url defined.");if(null==r)throw new Error("Portal item metadata must have a modified timestamp defined.");return this._schema.itemMetadata={modified:new Date(r),url:n},e!==n}async _getResources(){return this._resources||(this._resources=this._fetchResources()),await this._resources}async _getResource(e){const t=(await this._getResources()).get(e);if(!t)throw new Error(`Resource ${e} not found.`);return t}async _fetchResources(){const e=new Map;let t=1;const r=function(e){const t=e.split("/").filter(Boolean),r=t.indexOf("resources");if(-1===r||r===t.length-1)throw new Error(`URL does not contain a resources directory name: ${e}`);return`${t.slice(r+1).map(e=>decodeURIComponent(e)).join("/")}/`}(this._schema.itemMetadata.url);for(;-1!==t;){const n=await(0,i.A)(`${this._baseUrl}/resources`,{query:{f:"json",start:t,num:100}});for(const t of n.data.resources)t.resource.startsWith(r)&&e.set(t.resource,t);t=n.data.nextStart}return e}}class C extends f{constructor(e,t=null,r=()=>{}){super(t,r),this._schema=e}async update(e){await this._updateParquetFileInfos(await this._getParquetFileNames()),this._schema=e}async _resolveFileUrl(e){return e}async _getParquetFileNames(){return this._schema.urls.filter(e=>!e.endsWith(".json"))}async _getStatisticsFileName(){return this._schema.urls.find(m)??null}}function x(e,t,r){switch(e.type){case"urls":return new C(e,t,r);case"portal-parquet-file":return new v(e,t,r);case"portal-parquet-layer":return new _(e,t,r)}}},32756(e,t,r){r.d(t,{Rr:()=>a});var i=r(32198),n=r(93637),s=r(91429),o=r(91880);function a(e,t,r){if(!e)return null;const i=e.find(e=>!!e.field);if(!i)return null;const n=new o.A;return n.read(i,r),[n]}const l={type:[o.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:a},write:{writer:function(e,t,r,i){const s=e.find(e=>!!e.field);s&&(0,n.sM)(r,[s.toJSON()],t)}}}};r.d(t,["fY",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,s.MZ)(l)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,l])},29005(e,t,r){r.d(t,{A:()=>u});var i=r(32198),n=r(69540),s=r(66552),o=r(25482),a=r(91429);const l=new s.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:l.read,write:l.write}})],u.prototype,"drawingTool",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,i.Cg)([(0,a.$K)("esri.layers.support.FeatureTemplate")],u)},34582(e,t,r){r.d(t,{A:()=>a});var i=r(32198),n=r(69540),s=r(25482),o=r(91429);let a=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.type="wkb",this.field=null}};(0,i.Cg)([(0,o.MZ)({type:["wkb"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],a.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)({type:["counter-clockwise"],json:{write:!0}})],a.prototype,"orientation",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"field",void 0),a=(0,i.Cg)([(0,o.$K)("esri.layers.support.GeometryEncodingWkb")],a)},46499(e,t,r){r.d(t,{A:()=>x});var i,n,s=r(32198),o=(r(44208),r(66552)),a=r(25482),l=r(4718),u=r(90629),c=r(91429),p=r(73913),y=r(32730),d=r(77548),h=r(59868),g=r(73838),f=r(33910),m=r(36005),w=r(43937);const v=new o.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function b(e,t,r){return{enabled:!(0,d.TU)(r?.layer)}}function _(e){return!e||"service"!==e.origin&&!("map-image"===e.layer?.type)}function C(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let x=class extends a.o{static{i=y.vK}static{n=this}static evaluateWhere(e,t){const r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;const i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){const e=r(t[i[0]],i[1],i[2]),n=i[3],s=r(t[i[4]],i[5],i[6]);switch(n){case"AND":return e&&s;case"OR":return e||s}}return!1}catch(e){}}constructor(e){super(e),this[i]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=h.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){const r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,y.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){const t=(0,y.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&_(i))e=new p.A({expression:this.getLabelExpressionArcade()});else if(!e)return;const n=e.toJSON(i);n.expression&&(t[r]=n)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,y.XJ)(this)}getLabelExpressionArcade(){return(0,y.BI)(this)}getLabelExpressionSingleField(){return(0,y.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new n({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,l.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,l.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],x.prototype,"name",void 0),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:b}}}}})],x.prototype,"allowOverrun",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:b}}}}})],x.prototype,"deconflictionStrategy",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&C(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],x.prototype,"labelExpression",void 0),(0,s.Cg)([(0,m.w)("labelExpression")],x.prototype,"readLabelExpression",null),(0,s.Cg)([(0,w.K)("labelExpression")],x.prototype,"writeLabelExpression",null),(0,s.Cg)([(0,c.MZ)({type:p.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return _(e)||C(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],x.prototype,"labelExpressionInfo",void 0),(0,s.Cg)([(0,w.K)("labelExpressionInfo")],x.prototype,"writeLabelExpressionInfo",null),(0,s.Cg)([(0,c.MZ)({type:v.apiValues,json:{type:v.jsonValues,read:v.read,write:v.write}})],x.prototype,"labelPlacement",void 0),(0,s.Cg)([(0,c.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],x.prototype,"labelPosition",void 0),(0,s.Cg)([(0,c.MZ)({type:Number})],x.prototype,"maxScale",void 0),(0,s.Cg)([(0,w.K)("maxScale")],x.prototype,"writeMaxScale",null),(0,s.Cg)([(0,c.MZ)({type:Number})],x.prototype,"minScale",void 0),(0,s.Cg)([(0,w.K)("minScale")],x.prototype,"writeMinScale",null),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:b}}}}})],x.prototype,"repeatLabel",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,cast:u.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:b}}}}})],x.prototype,"repeatLabelDistance",null),(0,s.Cg)([(0,c.MZ)({types:f.em,json:{origins:{"web-scene":{types:f.Rv,write:g.oO,default:null}},write:g.oO,default:null}})],x.prototype,"symbol",void 0),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],x.prototype,"useCodedValues",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],x.prototype,"where",void 0),x=n=(0,s.Cg)([(0,c.$K)("esri.layers.support.LabelClass")],x)},73913(e,t,r){r.d(t,{A:()=>c});var i,n=r(32198),s=r(25482),o=r(91429),a=r(32730),l=r(36005),u=r(43937);let c=class extends s.o{static{i=this}constructor(e){super(e),this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,a.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,a.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({expression:this.expression,title:this.title,value:this.value})}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],c.prototype,"expression",void 0),(0,n.Cg)([(0,l.w)("expression",["expression","value"])],c.prototype,"readExpression",null),(0,n.Cg)([(0,u.K)("expression")],c.prototype,"writeExpression",null),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],c.prototype,"title",void 0),(0,n.Cg)([(0,o.MZ)({json:{read:!1,write:!1}})],c.prototype,"value",void 0),c=i=(0,n.Cg)([(0,o.$K)("esri.layers.support.LabelExpressionInfo")],c)},91880(e,t,r){r.d(t,{A:()=>u});var i,n=r(32198),s=r(66552),o=r(25482),a=r(91429);const l=new s.J({asc:"ascending",desc:"descending"});let u=class extends o.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,n.Cg)([(0,a.MZ)({type:l.apiValues,json:{type:l.jsonValues,read:l.read,write:l.write}})],u.prototype,"order",void 0),u=i=(0,n.Cg)([(0,a.$K)("esri.layers.support.OrderByInfo")],u)},56370(e,t,r){r.d(t,{A:()=>y});var i=r(32198),n=r(69540),s=r(7762),o=r(49186),a=r(25482),l=r(91429),u=r(64108),c=r(97159),p=r(43937);let y=class extends((0,a.T)(n.Pw)){constructor(e){super(e),this.type="files",this.urls=new s.A}writeUrls(e,t,r,i){const n=e.toArray().map(e=>(0,c.t)(e,i)).filter(e=>!!e);n.length?t.urls=n:i.messages?.push(new o.A("parquet-layer:missing-urls","Missing or empty 'urls'",{data:this}))}};(0,i.Cg)([(0,l.MZ)({type:["files"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],y.prototype,"type",void 0),(0,i.Cg)([(0,l.MZ)({type:s.A.ofType(String),json:{write:{isRequired:!0}}})],y.prototype,"urls",void 0),(0,i.Cg)([(0,p.K)("urls")],y.prototype,"writeUrls",null),y=(0,i.Cg)([(0,u.$)("esri.layers.support.ParquetFilesData")],y)},89160(e,t,r){r.d(t,{A:()=>p});var i=r(32198),n=r(69540),s=r(25482),o=r(91429),a=r(64108),l=r(80812),u=r(36005),c=r(43937);let p=class extends((0,s.T)(n.Pw)){constructor(e){super(e),this.type="portal-item"}readPortalItem(e,t,r){if(t.itemId)return new l.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}};(0,i.Cg)([(0,o.MZ)({type:["portal-item"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],p.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)({type:l.default,json:{write:{isRequired:!0}}})],p.prototype,"portalItem",void 0),(0,i.Cg)([(0,u.w)("portalItem",["itemId"])],p.prototype,"readPortalItem",null),(0,i.Cg)([(0,c.K)("portalItem",{itemId:{type:String}})],p.prototype,"writePortalItem",null),p=(0,i.Cg)([(0,a.$)("esri.layers.support.ParquetPortalItemData")],p)},39383(e,t,r){r.d(t,{w:()=>l,z:()=>p});var i=r(49186),n=r(53966),s=r(46499);const o=()=>n.A.getLogger("esri.layers.support.labelingInfo"),a=/\[([^[\]]+)\]/gi;function l(e,t,r){return e?e.map(e=>{const i=new s.A;if(i.read(e,r),i.labelExpression){const e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(a,(t,r)=>`[${function(e,t){if(!t)return e;const r=e.toLowerCase();for(let e=0;e<t.length;e++){const i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`)}return i}):null}const u=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],c={esriGeometryPoint:u,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:u,esriGeometryEnvelope:null};function p(e,t){const r=[];for(const n of e){const e=n.labelPlacement,s=c[t];if(!n.symbol)return o().warn("No ILabelClass symbol specified."),[];if(!s)return o().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(s.includes(e))r.push(n);else{const i=s[0];e&&o().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);const a=n.clone();a.labelPlacement=i,r.push(a)}}return r}},50639(e,t,r){r.d(t,{G:()=>s});var i=r(9075),n=r(34582);function s(e){switch(e.type){case"wkb":return n.A.fromJSON(e);case"location":return i.A.fromJSON(e)}}},42760(e,t,r){r.d(t,{Dt:()=>h,hG:()=>y,nc:()=>d,sA:()=>p}),r(7762);var i=r(49186),n=r(44208),s=r(66552),o=r(16930),a=(r(95031),r(20437)),l=r(30524),u=r(50639);r(56370);const c=new s.J({esriGeometryPoint:"point",esriGeometryPolygon:"polygon",esriGeometryPolyline:"polyline",esriGeometryMultipoint:"multipoint"});function p(e){return c.toJSON(e)}function y(e){return c.fromJSON(e)}async function d(e,t){if(t.geometryType&&t.spatialReference&&t.geometryEncoding&&t.fields&&t.displayOptimization)return t;if(!e)throw new i.A("parquet:bad-input","No metadata found");const r={...t},s=e.fields.map(e=>a.A.fromJSON(e));if(null==r.fields)r.fields=s;else{const e=new Set(r.fields.map(e=>e.name));if(!(0,n.A)("parquetlayer-legacy-field-overrides-enabled"))for(const t of s)e.has(t.name)||r.fields.push(t)}if(null!=r.geometryEncoding){const e=r.geometryEncoding;switch(e.type){case"wkb":{const t=s.find(t=>t.name===e.field);if(!t)throw new i.A("parquet:unsupported",`Geometry encoding references field ${e.field} which does not exist`);if("blob"!==t.type)throw new i.A("parquet:unsupported",`Invalid field type for geometry encoding. Found ${t.type} but expected 'blob'`);break}case"location":for(const t of[e.xField,e.yField])if(null!=t){const e=s.find(e=>e.name===t);if(!e)throw new i.A("parquet:unsupported",`Geometry encoding references field ${t} which does not exist`);if(!(0,l.WA)(e))throw new i.A("parquet:unsupported",`Invalid field type for location geometry encoding. Found ${e.type} but expected a numeric`)}}}return null==r.geometryEncoding&&(r.geometryEncoding=e.geometryEncoding?(0,u.G)(e.geometryEncoding):null),r.fields=function(e,t){const r=t.geoMetadata;if(null==r)return e;const i=new Set(Object.keys(r.columns));return e.filter(e=>!i.has(e.name))}(r.fields,e),!r.displayOptimization&&e.displayOptimization&&(r.displayOptimization=e.displayOptimization),!r.geometryType&&e.geometryType&&(r.geometryType=y(e.geometryType)),!r.spatialReference&&e.spatialReference&&(r.spatialReference=o.A.fromJSON(e.spatialReference)),r}async function h(e,t){switch(e.type){case"files":return{type:"urls",urls:e.urls.toArray()};case"portal-item":{const r=await e.portalItem.load(t);switch(r.type){case"Apache Parquet":return{type:"portal-parquet-file",itemUrl:r.itemUrl,itemCdnUrl:r.itemCdnUrl,modified:r.modified,size:r.size};case"Parquet layer":case"Parquet Layer":case"Parquet feature layer":case"Parquet Feature Layer":if(!r.url)throw new i.A("parquet:bad-item",`Item of type ${r.type} must have a url defined`,r);return{type:"portal-parquet-layer",itemUrl:r.itemUrl,itemCdnUrl:r.itemCdnUrl,itemMetadata:{modified:r.modified,url:r.url}};default:throw new i.A("parquet:bad-item",`Item of type ${r.type} is not supported`,r)}}}}r.d(t,["ye",0,c])},22671(e,t,r){r.d(t,{A:()=>w});var i,n=r(32198),s=r(52106),o=r(66552),a=r(25482),l=r(4718),u=r(91429),c=r(16930),p=r(60408),y=r(65864),d=r(50498),h=r(20437),g=r(36005),f=r(43937);const m=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=i=class extends a.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,s.A)}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);const{features:n}=this;if(n)for(const e of n)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,y.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=c.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,l.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,n]}=e,s=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((n-e)/r));for(let e=0,t=s.length;e<t;e++)o?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,n],scale:[s,o]}=r;let a=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,e=>e*s+i,e=>n-e*o,a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const i=c.A.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){const s=e[t],o=r.fromJSON(s),a=s.geometry?.spatialReference;null==o.geometry||a||(o.geometry.spatialReference=i);const l=s.aggregateGeometries,u=o.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],r=l[e],n=r?.spatialReference;null==t||n||(t.spatialReference=i)}n.push(o)}return n}_quantizePoints(e,t,r){let i,n;const s=[];for(let o=0,a=e.length;o<a;o++){const a=e[o];if(o>0){const e=t(a[0]),o=r(a[1]);e===i&&o===n||(s.push([e-i,o-n]),i=e,n=o)}else i=t(a[0]),n=r(a[1]),s.push([i,n])}return s.length>0?s:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,p.Bi)(e)?e.rings:e.paths,n=[];for(let e=0,s=i.length;e<s;e++){const s=i[e],o=this._quantizePoints(s,t,r);o&&n.push(o)}return n.length>0?((0,p.Bi)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,n){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const s=(0,p.Bi)(e)?e.rings:e.paths;let o,a;for(let e=0,i=s.length;e<i;e++){const i=s[e];for(let e=0,n=i.length;e<n;e++){const n=i[e];e>0?(o+=n[0],a+=n[1]):(o=n[0],a=n[1]),n[0]=t(o),n[1]=r(a)}}if(i&&n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=n(r[3])}}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),n&&null!=e.mmax&&null!=e.mmin&&(e.mmax=n(e.mmax),e.mmin=n(e.mmin))}:"multipoint"===e?e=>{const s=e.points;let o,a;for(let e=0,i=s.length;e<i;e++){const i=s[e];e>0?(o+=i[0],a+=i[1]):(o=i[0],a=i[1]),i[0]=t(o),i[1]=r(a)}if(i&&n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2]),t[3]=n(t[3])}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2])}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=n(t[2])}}:null}};(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,n.Cg)([(0,u.MZ)({type:[s.A],json:{write:!0}})],w.prototype,"features",void 0),(0,n.Cg)([(0,g.w)("features")],w.prototype,"readFeatures",null),(0,n.Cg)([(0,u.MZ)({type:[h.A],json:{write:!0}})],w.prototype,"fields",void 0),(0,n.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],w.prototype,"geometryType",void 0),(0,n.Cg)([(0,f.K)("geometryType")],w.prototype,"writeGeometryType",null),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,n.Cg)([(0,u.MZ)({types:d.yR,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,n.Cg)([(0,g.w)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,n.Cg)([(0,u.MZ)({type:c.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,n.Cg)([(0,f.K)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,n.Cg)([(0,u.MZ)({json:{write:!0}})],w.prototype,"transform",void 0),w=i=(0,n.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0},41366(e,t,r){var i=r(32198),n=r(66552),s=r(53966),o=r(91429),a=r(93223);const l=(0,n.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",c="field";r.d(t,["K",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&c||r&&u||null,t&&r&&s.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==c&&e!==u||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,a.e)(l,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,i.Cg)([(0,o.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r},"Q",0,l])}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8559],{48526(e,t,a){a.d(t,{A:()=>m});var r,n=a(32198),s=a(4576),i=a(4718),l=a(91429),o=a(5443),c=a(91075),u=a(86738),y=a(16930),f=a(90634),h=a(47610),d=a(56993),p=a(43937);let m=r=class extends c.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:a,hasZ:r,spatialReference:n}=e;switch(t??=[],t?.at(0)?.length){case 4:r??=!0,a??=!0;break;case 3:r??=!0!==a,a??=!r;break;default:r??=!1,a??=!1}return n??=y.A.WGS84,{...e,hasM:a,hasZ:r,points:t,spatialReference:n}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const e=(0,f.ge)(this);return e?new o.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,i.o8)(this.points)}clone(){const{points:e,spatialReference:t,hasM:a,hasZ:n}=this;return new r({points:(0,i.o8)(e),spatialReference:t.clone(),hasM:a,hasZ:n})}equals(e){if(this===e)return!0;if(null==e)return!1;const t=this.spatialReference,a=e.spatialReference;return null!=t==(null!=a)&&!(null!=t&&null!=a&&!t.equals(a))&&(0,s.aI)(this.points,e.points,h.v6)}addPoint(e){return(0,d.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;const t=this.points[e],a={x:t[0],y:t[1],spatialReference:this.spatialReference};let r=2;return this.hasZ&&(a.z=t[2],r=3),this.hasM&&(a.m=t[r]),new u.A(a)}removePoint(e){if(!this._validateInputs(e))return null;const t=new u.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?((0,d.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points"),this):this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,n.Cg)([(0,l.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,n.Cg)([(0,l.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],m.prototype,"points",void 0),(0,n.Cg)([(0,p.K)("points")],m.prototype,"writePoints",null),m=r=(0,n.Cg)([(0,l.$K)("esri.geometry.Multipoint")],m),m.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,a){a.d(t,{A:()=>d});var r,n=a(32198),s=a(4718),i=a(91429),l=a(5443),o=a(91075),c=a(86738),u=a(16930),y=a(90634),f=a(56993),h=a(43937);let d=r=class extends o.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:a,hasZ:r,spatialReference:n}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:r??=!0,a??=!0;break;case 3:r??=!0!==a,a??=!r;break;default:r??=!1,a??=!1}return n??=u.A.WGS84,{...e,hasM:a,hasZ:r,paths:t,spatialReference:n}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,s.o8)(e)}get extent(){const e=(0,y.Z3)(this),{spatialReference:t}=this;return e?new l.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,s.o8)(this.paths)}addPath(e){if(!e)return;const t=this.paths,a=t.length;if(function(e){return!Array.isArray(e[0])}(e)){const r=[];for(let t=0,a=e.length;t<a;t++)r[t]=e[t].toArray();t[a]=r}else t[a]=e.slice();return this.notifyChange("paths"),this}clone(){const e=new r;return e.spatialReference=this.spatialReference,e.paths=(0,s.o8)(this.paths),e.curvePaths=(0,s.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;const a=this.paths[e][t],r=this.hasZ,n=this.hasM;return r&&!n?new c.A(a[0],a[1],a[2],void 0,this.spatialReference):n&&!r?new c.A(a[0],a[1],void 0,a[2],this.spatialReference):r&&n?new c.A(a[0],a[1],a[2],a[3],this.spatialReference):new c.A(a[0],a[1],this.spatialReference)}insertPoint(e,t,a){return this._validateInputs(e,t,!0)?((0,f.h)(this,a),Array.isArray(a)||(a=a.toArray()),this.paths[e].splice(t,0,a),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;const t=this.paths.splice(e,1)[0],a=this.spatialReference,r=t.map(e=>new c.A(e,a));return this.notifyChange("paths"),r}removePoint(e,t){if(!this._validateInputs(e,t))return null;const a=new c.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),a}setPoint(e,t,a){return this._validateInputs(e,t)?((0,f.h)(this,a),Array.isArray(a)||(a=a.toArray()),this.paths[e][t]=a,this.notifyChange("paths"),this):this}_validateInputs(e,t,a=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){const r=this.paths[e];if(a&&(t<0||t>r.length))return!1;if(!a&&(t<0||t>=r.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,n.Cg)([(0,i.MZ)({readOnly:!0})],d.prototype,"cache",null),(0,n.Cg)([(0,i.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],d.prototype,"curvePaths",void 0),(0,n.Cg)([(0,h.K)("curvePaths")],d.prototype,"writeCurvePaths",null),(0,n.Cg)([(0,i.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,n.Cg)([(0,i.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],d.prototype,"paths",void 0),(0,n.Cg)([(0,h.K)("paths")],d.prototype,"writePaths",null),d=r=(0,n.Cg)([(0,i.$K)("esri.geometry.Polyline")],d),d.prototype.toJSON.isDefaultToJSON=!0},60408(e,t,a){function r(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function n(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function i(e){return void 0!==e.paths||void 0!==e.curvePaths}function l(e){return void 0!==e.rings||void 0!==e.curveRings}function o(e){return"object"==typeof e&&"vertexAttributes"in e}function c(e){return e?s(e)?"esriGeometryPoint":i(e)?"esriGeometryPolyline":l(e)?"esriGeometryPolygon":r(e)?"esriGeometryEnvelope":n(e)?"esriGeometryMultipoint":null:null}function u(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function y(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}a.d(t,{$B:()=>c,Bi:()=>l,Pv:()=>u,Rg:()=>i,U9:()=>n,W0:()=>y,ZC:()=>r,fT:()=>s,uW:()=>o})},22429(e,t,a){a.d(t,{v:()=>n});var r=a(7861);class n{constructor(){this._serviceMetadatas=new Map,this._itemDatas=new Map}async fetchServiceMetadata(e,t){const a=this._serviceMetadatas.get(e);if(a)return a;const n=await(0,r.L)(e,t);return this._serviceMetadatas.set(e,n),n}async fetchItemData(e){const{id:t}=e;if(!t)return null;const{_itemDatas:a}=this;if(a.has(t))return a.get(t);const r=await e.fetchData();return a.set(t,r),r}async fetchCustomParameters(e,t){const a=await this.fetchItemData(e);return a&&"object"==typeof a&&(t?t(a):a.customParameters)||null}}},92009(e,t,a){a.d(t,{L:()=>u});var r=a(70333),n=a(11254),s=a(49186),i=a(17676),l=a(60694),o=a(20655),c=a(80812);async function u(e,t){const a=(0,l.qg)(e);if(!a)throw new s.A("invalid-url","Invalid scene service url");const u={...t,sceneServerUrl:a.url.path,layerId:a.sublayer??void 0};if(u.sceneLayerItem??=await async function(e){const t=(await y(e)).serviceItemId;if(!t)return null;const a=new c.default({id:t,apiKey:e.apiKey}),s=await async function(e){const t=r.id?.findServerInfo(e.sceneServerUrl);if(t?.owningSystemUrl)return t.owningSystemUrl;const a=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const t=(await(0,n.A)(a,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(t)return t}catch(e){(0,i.QP)(e)}return null}(e);null!=s&&(a.portal=new o.A({url:s}));try{return await a.load({signal:e.signal})}catch(e){return(0,i.QP)(e),null}}(u),null==u.sceneLayerItem)return f(u.sceneServerUrl.replace("/SceneServer","/FeatureServer"),u);const h=await async function({sceneLayerItem:e,signal:t}){if(!e)return null;try{const a=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:t})).find(e=>"Feature Service"===e.type)||null;if(!a)return null;const r=new c.default({portal:a.portal,id:a.id});return await r.load(),r}catch(e){return(0,i.QP)(e),null}}(u);if(!h?.url)throw new s.A("related-service-not-found","Could not find feature service through portal item relationship");u.featureServiceItem=h;const d=await f(h.url,u);return d.portalItem=h,d}async function y(e){if(e.rootDocument)return e.rootDocument;const t={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{const a=await(0,n.A)(e.sceneServerUrl,t);e.rootDocument=a.data}catch{e.rootDocument={}}return e.rootDocument}async function f(e,t){const a=(0,l.qg)(e);if(!a)throw new s.A("invalid-feature-service-url","Invalid feature service url");const r=a.url.path,i=t.layerId;if(null==i)return{serverUrl:r};const o=y(t),c=t.featureServiceItem?await t.featureServiceItem.fetchData("json"):null,u=(c?.layers?.[0]||c?.tables?.[0])?.customParameters,f=e=>{const a={query:{f:"json",...u},responseType:"json",authMode:e,signal:t.signal};return(0,n.A)(r,a)},h=f("anonymous").catch(()=>f("no-prompt")),[d,p]=await Promise.all([h,o]),m=p?.layers,w=d.data&&d.data.layers;if(!Array.isArray(w))throw new Error("expected layers array");if(Array.isArray(m)){for(let e=0;e<Math.min(m.length,w.length);e++)if(m[e].id===i)return{serverUrl:r,layerId:w[e].id}}else if(null!=i&&i<w.length)return{serverUrl:r,layerId:w[i].id};throw new Error("could not find matching associated sublayer")}},23154(e,t,a){a.d(t,{A6:()=>l,Aq:()=>p,Jo:()=>d,QM:()=>i});var r=a(77548),n=a(7861);const s=new Set(["Annotation Layer","Catalog Layer","Dimension Layer","Feature Layer","Oriented Imagery Layer"]);async function i(e,t){const{serviceJSON:a,layersJSON:r,...n}=await l(e,t);u(a);const s={serviceJSON:a,...n};return r&&(u(r),s.layersJSON=r),s}async function l(e,t){const{loadContext:a,...s}=t||{},i=a?await a.fetchServiceMetadata(e,s):await(0,n.L)(e,s),l=(0,r.G$)();h(i);const o={serviceJSON:i,preferredHost:l};if((i.currentVersion??0)<10.5)return o;const c=`${(0,r.$x)()??e}/layers`,u=a?await a.fetchServiceMetadata(c,s):await(0,n.L)(c,s);return h(u),o.layersJSON={layers:u.layers,tables:u.tables},o}function o(e){return s.has(e.type)}function c(e){return"Table"===e.type}function u(e){e.layers=e.layers?.filter(o),e.tables=e.tables?.filter(c)}function y(e){e.type||="Feature Layer"}function f(e){e.type||="Table"}function h(e){e.layers?.forEach(y),e.tables?.forEach(f)}function d(e){if(!e)return"FeatureLayer";switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"DimensionFeatureLayer";case"Annotation Layer":return"AnnotationFeatureLayer"}return null}function p(e,t){if(!e)return t?"Table":"ArcGISFeatureLayer";switch(e){case"Annotation Layer":return"ArcGISAnnotationLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"ArcGISDimensionLayer";case"Feature Layer":return"ArcGISFeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Parcel Layer":return"ParcelLayer";case"Table":return"Table";case"Topology Layer":return"TopologyLayer";case"Trace Network Layer":return"TraceNetworkLayer";case"Utility Network Layer":return"UtilityNetworkLayer";default:return null}}},2976(e,t,a){const r={AnnotationFeatureLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(2889),a.e(4676),a.e(4674),a.e(2718),a.e(1954)]).then(a.bind(a,20737))).default,BingMapsLayer:async()=>(await Promise.all([a.e(8278),a.e(7865),a.e(6554),a.e(6684)]).then(a.bind(a,17029))).default,BuildingSceneLayer:async()=>(await Promise.all([a.e(5620),a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(9789),a.e(4674),a.e(2718),a.e(8589),a.e(7005),a.e(9918),a.e(1427),a.e(2754),a.e(7120)]).then(a.bind(a,82411))).default,CSVLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(3813)]).then(a.bind(a,68695))).default,CatalogLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(9789),a.e(4674),a.e(893),a.e(2718),a.e(7013),a.e(7067),a.e(7925)]).then(a.bind(a,83508))).default,DimensionFeatureLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(2889),a.e(4676),a.e(4674),a.e(2718),a.e(3376)]).then(a.bind(a,25077))).default,DimensionLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(6619)]).then(a.bind(a,71493))).default,ElevationLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(9953),a.e(8732),a.e(3885)]).then(a.bind(a,38732))).default,FeatureLayer:async()=>(await Promise.all([a.e(5620),a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(9789),a.e(4674),a.e(2718),a.e(8589),a.e(3075)]).then(a.bind(a,18589))).default,GaussianSplatLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(765),a.e(6475)]).then(a.bind(a,36475))).default,GeoJSONLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(903)]).then(a.bind(a,15481))).default,GeoRSSLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(6554),a.e(2363)]).then(a.bind(a,63201))).default,GroupLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(9866),a.e(6569)]).then(a.bind(a,85989))).default,ImageryLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(893),a.e(5130),a.e(3690),a.e(7772),a.e(8768)]).then(a.bind(a,87772))).default,ImageryTileLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(5130),a.e(373),a.e(3690),a.e(9235),a.e(3500),a.e(1003),a.e(2806),a.e(7870)]).then(a.bind(a,90124))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(9953),a.e(765),a.e(8325),a.e(9544)]).then(a.bind(a,61528))).default,IntegratedMeshLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(9953),a.e(765),a.e(1427),a.e(8325),a.e(7464)]).then(a.bind(a,74660))).default,KMLLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(1214),a.e(5051),a.e(4473),a.e(7339)]).then(a.bind(a,162))).default,KnowledgeGraphLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(9789),a.e(9696),a.e(359),a.e(6390),a.e(3902),a.e(4720),a.e(4934),a.e(8692)]).then(a.bind(a,28692))).default,LineOfSightLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(3730),a.e(9695)]).then(a.bind(a,49695))).default,LinkChartLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(9789),a.e(9696),a.e(359),a.e(6390),a.e(3902),a.e(4720),a.e(4934),a.e(3309)]).then(a.bind(a,93309))).default,MapImageLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(4674),a.e(893),a.e(8470),a.e(1474)]).then(a.bind(a,7656))).default,MapNotesLayer:async()=>(await Promise.all([a.e(5620),a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(9789),a.e(4674),a.e(2718),a.e(8589),a.e(4720),a.e(2469)]).then(a.bind(a,96299))).default,MediaLayer:async()=>(await Promise.all([a.e(5620),a.e(9917),a.e(8278),a.e(7865),a.e(6963),a.e(182)]).then(a.bind(a,90182))).default,OGCFeatureLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(9918),a.e(5977)]).then(a.bind(a,65977))).default,OpenStreetMapLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(6554),a.e(919),a.e(349)]).then(a.bind(a,40349))).default,OrientedImageryLayer:async()=>(await Promise.all([a.e(5620),a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(9789),a.e(4674),a.e(2718),a.e(8589),a.e(6854)]).then(a.bind(a,16852))).default,ParquetLayer:async()=>(await Promise.all([a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(3819),a.e(7320),a.e(7917)]).then(a.bind(a,99680))).default,PointCloudLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(2869),a.e(7984),a.e(7515)]).then(a.bind(a,77885))).default,RouteLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(564),a.e(2869),a.e(3910),a.e(1214),a.e(5051),a.e(4473),a.e(1099)]).then(a.bind(a,39622))).default,SceneLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(2292),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(7005),a.e(9918),a.e(1427),a.e(2754),a.e(1086)]).then(a.bind(a,2e4))).default,StreamLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(8593)]).then(a.bind(a,79457))).default,SubtypeGroupLayer:async()=>(await Promise.all([a.e(5620),a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(2889),a.e(4676),a.e(9789),a.e(4674),a.e(2718),a.e(4451)]).then(a.bind(a,97483))).default,TileLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(4674),a.e(893),a.e(8470),a.e(6200)]).then(a.bind(a,71756))).default,UnknownLayer:async()=>(await Promise.all([a.e(9917),a.e(3928)]).then(a.bind(a,146))).default,UnsupportedLayer:async()=>(await Promise.all([a.e(9917),a.e(2819)]).then(a.bind(a,45165))).default,VectorTileLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(9953),a.e(6554),a.e(7886),a.e(7821)]).then(a.bind(a,50638))).default,VideoLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(3910),a.e(4674),a.e(6963),a.e(449)]).then(a.bind(a,86875))).default,ViewshedLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(3730),a.e(6650)]).then(a.bind(a,96650))).default,VoxelLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(2869),a.e(4443)]).then(a.bind(a,21005))).default,WCSLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(5130),a.e(373),a.e(3690),a.e(9235),a.e(3500),a.e(2806),a.e(2061)]).then(a.bind(a,20521))).default,WFSLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(5411)]).then(a.bind(a,21901))).default,WMSLayer:async()=>(await Promise.all([a.e(5620),a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(6554),a.e(2869),a.e(3910),a.e(417)]).then(a.bind(a,51904))).default,WMTSLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(6554),a.e(919),a.e(309)]).then(a.bind(a,20309))).default,WebTileLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(6554),a.e(919)]).then(a.bind(a,47314))).default};a.d(t,["U",0,r])},66964(e,t,a){a.d(t,{Ju:()=>w,K8:()=>b,XH:()=>L,Y5:()=>m,_r:()=>l,bO:()=>c,l:()=>v,nu:()=>P,pJ:()=>u,rc:()=>y});var r=a(60694),n=a(92009),s=a(23154),i=a(77548);function l(e,t){const{id:a,name:r}=e,n={id:a,name:r};return o(n,e,t),n}function o(e,t,a){const r=(0,s.Aq)(t.type,a);r&&(e.layerType=r)}async function c(e,t,a){let r,n;if(function(e){return!!e&&Array.isArray(e.layers)&&Array.isArray(e.tables)}(e)&&f(e))n=e;else{const s=await a.fetchServiceMetadata(t,{customParameters:u(e)?.customParameters});r=(0,i.G$)(),n=h(e,s),d(n,s)}return p(n),{data:n,preferredHost:r}}function u(e){if(!e)return null;const{layers:t,tables:a}=e;return t?.[0]??a?.[0]??null}function y(e,t){return null==t?null:[...e.layers??[],...e.tables??[]].find(e=>e.id===t)}function f(e){return[...e.layers??[],...e.tables??[]].every(e=>!!e.layerType)}function h(e,t){return{...e,layers:e?.layers??t.layers?.map(e=>l(e))??[],tables:e?.tables??t.tables?.map(e=>l(e,!0))??[]}}function d(e,t){const a=e.layers??[],r=e.tables??[],n=[...t.layers??[],...t.tables??[]];for(const e of[...a,...r]){const{id:t,layerType:a}=e;if(a)continue;const s=n.find(({id:e})=>e===t);s&&o(e,s,r.includes(e))}}function p(e){e.layers=e.layers?.filter(g),e.tables=e.tables?.filter(g)}async function m(e,t,a){if(e?.layers?.length||e?.tables?.length){if(!f(e)){const n=(0,r.qg)(t)?.url.path;if(!n)return;d(e,await a.fetchServiceMetadata(n,{customParameters:u(e)?.customParameters}))}p(e)}}function w(e,t){return[...e.layers??[],...e.tables??[]].filter(({layerType:e})=>e?t.includes(e):t.includes("ArcGISFeatureLayer"))}function L(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}const S=new Set(["ArcGISAnnotationLayer","ArcGISDimensionLayer","ArcGISFeatureLayer","CatalogLayer","OrientedImageryLayer","SubtypeGroupLayer","SubtypeGroupTable","Table"]);function g(e){return!!e.layerType&&S.has(e.layerType)}function v(e){switch(e){case"annotation-feature":return["ArcGISAnnotationLayer"];case"catalog":return["CatalogLayer"];case"dimension-feature":return["ArcGISDimensionLayer"];case"feature":return["ArcGISFeatureLayer","Table"];case"oriented-imagery":return["OrientedImageryLayer"];case"subtype-group":return["SubtypeGroupLayer","SubtypeGroupTable"]}return null}function b(e){switch(e){case"ArcGISAnnotationLayer":return"AnnotationFeatureLayer";case"ArcGISDimensionLayer":return"DimensionFeatureLayer";case"ArcGISFeatureLayer":case"Table":return"FeatureLayer";case"CatalogLayer":return"CatalogLayer";case"OrientedImageryLayer":return"OrientedImageryLayer";case"SubtypeGroupLayer":case"SubtypeGroupTable":return"SubtypeGroupLayer"}return null}async function P(e,t,a){if(!e?.url)return t??{};if(t??={},!t.layers){const r=await a.fetchServiceMetadata(e.url);t.layers=r.layers?.map(e=>l(e))}const{serverUrl:r,portalItem:s}=await(0,n.L)(e.url,{sceneLayerItem:e,customParameters:u(t)?.customParameters}).catch(()=>({serverUrl:null,portalItem:null}));if(null==r)return t.tables=[],t;if(!t.tables&&s){const e=await s.fetchData().catch(()=>null);if(e?.tables)t.tables=e.tables.map(({id:e,name:t})=>({id:e,name:t}));else{const n=await a.fetchServiceMetadata(r,{customParameters:u(e)?.customParameters}).catch(()=>null);t.tables=n?.tables?.map(e=>l(e,!0))}}if(t.tables)for(const e of t.tables)e.url=`${r}/${e.id}`;return t}},10407(e,t,a){a.d(t,{It:()=>h,LG:()=>i,OM:()=>c,Sm:()=>u,Y:()=>l,bK:()=>o,sQ:()=>y});var r=a(99917),n=a(16930),s=a(28735);function i(e,t){if(!l(e,t)){const a=e.typeKeywords;a?a.push(t):e.typeKeywords=[t]}}function l(e,t){return!!e.typeKeywords?.includes(t)}function o(e){return l(e,f.HOSTED_SERVICE)}function c(e,t){const a=e.typeKeywords;if(a){const e=a.indexOf(t);e>-1&&a.splice(e,1)}}function u(e,t,a){a?i(e,t):c(e,t)}async function y(e){const t=e.clone().normalize();let a;if(t.length>1)for(const e of t)a?e.width>a.width&&(a=e):a=e;else a=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const a=n.A.WGS84;return await(0,r.initializeProjection)(t,a),(0,r.project)(e,a)}(a)}const f={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function h(e){const{portal:t,isOrgItem:a,itemControl:r}=e,n=t.user?.privileges;let s=!n||n.includes("features:user:edit"),i=!!a&&!!n?.includes("features:user:fullEdit");const l="update"===r||"admin"===r;return l?i=s=!0:i&&(s=!0),{features:{edit:s,fullEdit:i},content:{updateItem:l}}}a.d(t,["mm",0,f])},45613(e,t,a){a.d(t,{fromItem:()=>f,n:()=>h});var r=a(49186),n=a(92009),s=a(23154),i=a(22429),l=a(2976),o=a(77548),c=a(80812),u=a(66964),y=a(10407);async function f(e){let{portalItem:t}=e;!t||t instanceof c.default||(t=new c.default(t));const a=await async function(e){await e.load();const t=new i.v;return async function(e){const t=e.className,a=l.U[t];return{constructor:await a(),properties:e.properties}}(await h(e,t))}(t);return new(0,a.constructor)({portalItem:t,...a.properties})}async function h(e,t){switch(e.type){case"3DTiles Service":return e.typeKeywords.includes("3DObject")?{className:"UnsupportedLayer"}:e.typeKeywords.includes("GaussianSplat")?{className:"GaussianSplatLayer"}:{className:"IntegratedMesh3DTilesLayer"};case"CSV":return{className:"CSVLayer"};case"Feature Collection":return async function(e){await e.load();const t=(0,y.Y)(e,"Map Notes"),a=(0,y.Y)(e,"Markup");if(t||a)return{className:"MapNotesLayer"};if((0,y.Y)(e,"Route Layer"))return{className:"RouteLayer"};const r=await e.fetchData();return 1===(0,u.XH)(r)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Feature Service":return async function(e,t){const a=await d(e,t);if("object"==typeof a){const{sourceJSON:e,className:t}=a,r={sourceJSON:e};return null!=a.id&&(r.layerId=a.id),{className:t||"FeatureLayer",properties:r}}return{className:"GroupLayer"}}(e,t);case"Feed":case"Stream Service":return{className:"StreamLayer"};case"GeoJson":return{className:"GeoJSONLayer"};case"Group Layer":return{className:"GroupLayer"};case"Image Service":return async function(e,t){await e.load();const a=e.typeKeywords?.map(e=>e.toLowerCase())??[];if(a.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(a.includes("tiled imagery"))return{className:"ImageryTileLayer"};const r=await t.fetchItemData(e),n=r?.layerType;if("ArcGISTiledImageServiceLayer"===n)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===n)return{className:"ImageryLayer"};const s=await t.fetchServiceMetadata(e.url,{customParameters:await t.fetchCustomParameters(e)}),i=s.cacheType?.toLowerCase(),l=s.capabilities?.toLowerCase().includes("tilesonly"),o=s.tileInfo?.format?.toLowerCase()??"",c=null==i&&["jpg","jpeg","png","png8","png24","png32","mixed"].includes(o);return"map"===i||c||l?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e,t);case"KML":return{className:"KMLLayer"};case"Knowledge Graph Layer":return{className:"KnowledgeGraphLayer"};case"Map Service":return async function(e,t){return await async function(e,t){const{tileInfo:a}=await t.fetchServiceMetadata(e.url,{customParameters:await t.fetchCustomParameters(e)});return a}(e,t)?{className:"TileLayer"}:{className:"MapImageLayer"}}(e,t);case"Media Layer":return{className:"MediaLayer"};case"Scene Service":return async function(e,t){const a=await d(e,t,async()=>{try{if(!e.url)return[];const{serverUrl:a}=await(0,n.L)(e.url,{sceneLayerItem:e}),r=await t.fetchServiceMetadata(a);return r?.tables??[]}catch{return[]}});if("object"==typeof a){const r={};let n;if(null!=a.id?(r.layerId=a.id,n=`${e.url}/layers/${a.id}`):n=e.url,e.typeKeywords?.length)for(const t of Object.keys(o.XX))if(e.typeKeywords.includes(t))return{className:o.XX[t]};const s=await t.fetchServiceMetadata(n,{customParameters:await t.fetchCustomParameters(e,e=>(0,u.pJ)(e)?.customParameters)});return{className:o.XX[s?.layerType]||"SceneLayer",properties:r}}if(!1===a){const a=await t.fetchServiceMetadata(e.url);if("Voxel"===a?.layerType)return{className:"VoxelLayer"}}return{className:"GroupLayer"}}(e,t);case"Video Service":return async function(e,t){return"object"==typeof await d(e,t)?{className:"VideoLayer"}:{className:"GroupLayer"}}(e,t);case"Vector Tile Service":return{className:"VectorTileLayer"};case"WCS":return{className:"WCSLayer"};case"WFS":return{className:"WFSLayer"};case"WMS":return{className:"WMSLayer"};case"WMTS":return{className:"WMTSLayer"};default:throw new r.A("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type})}}async function d(e,t,a){const{url:n,type:i}=e,l="Feature Service"===i;if(!n)return{};if(/\/\d+$/.test(n)){if(l){const a=await t.fetchServiceMetadata(n,{customParameters:await t.fetchCustomParameters(e,e=>(0,u.pJ)(e)?.customParameters)});(0,o.Gh)(e,(0,o.G$)());const{id:i,type:l}=a,c=(0,s.Jo)(l);if(!c)throw new r.A("from-portal-item:unsupported",`'${n}' has unsupported type: '${l}'`);return{id:i,className:c,sourceJSON:a}}return{}}if("Video Service"===i){const e=await t.fetchServiceMetadata(n);return!((e.layers?.length??0)>1)&&{}}await e.load();let c=await t.fetchItemData(e);if(l){const{data:a,preferredHost:s}=await(0,u.bO)(c,n,t);if(0===(0,u.XH)(a))throw new r.A("from-portal-item:no-data",`The feature service '${n}' does not have any supported layers or tables`);(0,o.Gh)(e,s);const i=p(a);if("object"==typeof i){const e=(0,u.rc)(a,i.id);return{id:i.id,className:(0,u.K8)(e?.layerType)}}return i}if("Scene Service"===i&&(c=await(0,u.nu)(e,c,t)),(0,u.XH)(c)>0)return p(c);const y=await t.fetchServiceMetadata(n);return a&&(y.tables=await a()),p(y)}function p(e){return 1===(0,u.XH)(e)&&{id:(0,u.pJ)(e)?.id}}},7861(e,t,a){a.d(t,{L:()=>n});var r=a(11254);async function n(e,t){return(await(0,r.A)(e,{responseType:"json",query:{f:"json",...t?.customParameters,token:t?.apiKey}})).data}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8559],{48526(e,t,a){a.d(t,{A:()=>m});var r,n=a(32198),s=a(4576),i=a(4718),l=a(91429),o=a(5443),c=a(91075),u=a(86738),y=a(16930),f=a(90634),h=a(47610),d=a(56993),p=a(43937);let m=r=class extends c.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:a,hasZ:r,spatialReference:n}=e;switch(t??=[],t?.at(0)?.length){case 4:r??=!0,a??=!0;break;case 3:r??=!0!==a,a??=!r;break;default:r??=!1,a??=!1}return n??=y.A.WGS84,{...e,hasM:a,hasZ:r,points:t,spatialReference:n}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const e=(0,f.ge)(this);return e?new o.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,i.o8)(this.points)}clone(){const{points:e,spatialReference:t,hasM:a,hasZ:n}=this;return new r({points:(0,i.o8)(e),spatialReference:t.clone(),hasM:a,hasZ:n})}equals(e){if(this===e)return!0;if(null==e)return!1;const t=this.spatialReference,a=e.spatialReference;return null!=t==(null!=a)&&!(null!=t&&null!=a&&!t.equals(a))&&(0,s.aI)(this.points,e.points,h.v6)}addPoint(e){return(0,d.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;const t=this.points[e],a={x:t[0],y:t[1],spatialReference:this.spatialReference};let r=2;return this.hasZ&&(a.z=t[2],r=3),this.hasM&&(a.m=t[r]),new u.A(a)}removePoint(e){if(!this._validateInputs(e))return null;const t=new u.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?((0,d.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points"),this):this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,n.Cg)([(0,l.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,n.Cg)([(0,l.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],m.prototype,"points",void 0),(0,n.Cg)([(0,p.K)("points")],m.prototype,"writePoints",null),m=r=(0,n.Cg)([(0,l.$K)("esri.geometry.Multipoint")],m),m.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,a){a.d(t,{A:()=>d});var r,n=a(32198),s=a(4718),i=a(91429),l=a(5443),o=a(91075),c=a(86738),u=a(16930),y=a(90634),f=a(56993),h=a(43937);let d=r=class extends o.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:a,hasZ:r,spatialReference:n}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:r??=!0,a??=!0;break;case 3:r??=!0!==a,a??=!r;break;default:r??=!1,a??=!1}return n??=u.A.WGS84,{...e,hasM:a,hasZ:r,paths:t,spatialReference:n}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,s.o8)(e)}get extent(){const e=(0,y.Z3)(this),{spatialReference:t}=this;return e?new l.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,s.o8)(this.paths)}addPath(e){if(!e)return;const t=this.paths,a=t.length;if(function(e){return!Array.isArray(e[0])}(e)){const r=[];for(let t=0,a=e.length;t<a;t++)r[t]=e[t].toArray();t[a]=r}else t[a]=e.slice();return this.notifyChange("paths"),this}clone(){const e=new r;return e.spatialReference=this.spatialReference,e.paths=(0,s.o8)(this.paths),e.curvePaths=(0,s.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;const a=this.paths[e][t],r=this.hasZ,n=this.hasM;return r&&!n?new c.A(a[0],a[1],a[2],void 0,this.spatialReference):n&&!r?new c.A(a[0],a[1],void 0,a[2],this.spatialReference):r&&n?new c.A(a[0],a[1],a[2],a[3],this.spatialReference):new c.A(a[0],a[1],this.spatialReference)}insertPoint(e,t,a){return this._validateInputs(e,t,!0)?((0,f.h)(this,a),Array.isArray(a)||(a=a.toArray()),this.paths[e].splice(t,0,a),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;const t=this.paths.splice(e,1)[0],a=this.spatialReference,r=t.map(e=>new c.A(e,a));return this.notifyChange("paths"),r}removePoint(e,t){if(!this._validateInputs(e,t))return null;const a=new c.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),a}setPoint(e,t,a){return this._validateInputs(e,t)?((0,f.h)(this,a),Array.isArray(a)||(a=a.toArray()),this.paths[e][t]=a,this.notifyChange("paths"),this):this}_validateInputs(e,t,a=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){const r=this.paths[e];if(a&&(t<0||t>r.length))return!1;if(!a&&(t<0||t>=r.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,n.Cg)([(0,i.MZ)({readOnly:!0})],d.prototype,"cache",null),(0,n.Cg)([(0,i.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],d.prototype,"curvePaths",void 0),(0,n.Cg)([(0,h.K)("curvePaths")],d.prototype,"writeCurvePaths",null),(0,n.Cg)([(0,i.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,n.Cg)([(0,i.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],d.prototype,"paths",void 0),(0,n.Cg)([(0,h.K)("paths")],d.prototype,"writePaths",null),d=r=(0,n.Cg)([(0,i.$K)("esri.geometry.Polyline")],d),d.prototype.toJSON.isDefaultToJSON=!0},60408(e,t,a){function r(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function n(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function i(e){return void 0!==e.paths||void 0!==e.curvePaths}function l(e){return void 0!==e.rings||void 0!==e.curveRings}function o(e){return"object"==typeof e&&"vertexAttributes"in e}function c(e){return e?s(e)?"esriGeometryPoint":i(e)?"esriGeometryPolyline":l(e)?"esriGeometryPolygon":r(e)?"esriGeometryEnvelope":n(e)?"esriGeometryMultipoint":null:null}function u(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function y(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}a.d(t,{$B:()=>c,Bi:()=>l,Pv:()=>u,Rg:()=>i,U9:()=>n,W0:()=>y,ZC:()=>r,fT:()=>s,uW:()=>o})},22429(e,t,a){a.d(t,{v:()=>n});var r=a(7861);class n{constructor(){this._serviceMetadatas=new Map,this._itemDatas=new Map}async fetchServiceMetadata(e,t){const a=this._serviceMetadatas.get(e);if(a)return a;const n=await(0,r.L)(e,t);return this._serviceMetadatas.set(e,n),n}async fetchItemData(e){const{id:t}=e;if(!t)return null;const{_itemDatas:a}=this;if(a.has(t))return a.get(t);const r=await e.fetchData();return a.set(t,r),r}async fetchCustomParameters(e,t){const a=await this.fetchItemData(e);return a&&"object"==typeof a&&(t?t(a):a.customParameters)||null}}},92009(e,t,a){a.d(t,{L:()=>u});var r=a(70333),n=a(11254),s=a(49186),i=a(17676),l=a(60694),o=a(20655),c=a(80812);async function u(e,t){const a=(0,l.qg)(e);if(!a)throw new s.A("invalid-url","Invalid scene service url");const u={...t,sceneServerUrl:a.url.path,layerId:a.sublayer??void 0};if(u.sceneLayerItem??=await async function(e){const t=(await y(e)).serviceItemId;if(!t)return null;const a=new c.default({id:t,apiKey:e.apiKey}),s=await async function(e){const t=r.id?.findServerInfo(e.sceneServerUrl);if(t?.owningSystemUrl)return t.owningSystemUrl;const a=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const t=(await(0,n.A)(a,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(t)return t}catch(e){(0,i.QP)(e)}return null}(e);null!=s&&(a.portal=new o.A({url:s}));try{return await a.load({signal:e.signal})}catch(e){return(0,i.QP)(e),null}}(u),null==u.sceneLayerItem)return f(u.sceneServerUrl.replace("/SceneServer","/FeatureServer"),u);const h=await async function({sceneLayerItem:e,signal:t}){if(!e)return null;try{const a=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:t})).find(e=>"Feature Service"===e.type)||null;if(!a)return null;const r=new c.default({portal:a.portal,id:a.id});return await r.load(),r}catch(e){return(0,i.QP)(e),null}}(u);if(!h?.url)throw new s.A("related-service-not-found","Could not find feature service through portal item relationship");u.featureServiceItem=h;const d=await f(h.url,u);return d.portalItem=h,d}async function y(e){if(e.rootDocument)return e.rootDocument;const t={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{const a=await(0,n.A)(e.sceneServerUrl,t);e.rootDocument=a.data}catch{e.rootDocument={}}return e.rootDocument}async function f(e,t){const a=(0,l.qg)(e);if(!a)throw new s.A("invalid-feature-service-url","Invalid feature service url");const r=a.url.path,i=t.layerId;if(null==i)return{serverUrl:r};const o=y(t),c=t.featureServiceItem?await t.featureServiceItem.fetchData("json"):null,u=(c?.layers?.[0]||c?.tables?.[0])?.customParameters,f=e=>{const a={query:{f:"json",...u},responseType:"json",authMode:e,signal:t.signal};return(0,n.A)(r,a)},h=f("anonymous").catch(()=>f("no-prompt")),[d,p]=await Promise.all([h,o]),m=p?.layers,w=d.data&&d.data.layers;if(!Array.isArray(w))throw new Error("expected layers array");if(Array.isArray(m)){for(let e=0;e<Math.min(m.length,w.length);e++)if(m[e].id===i)return{serverUrl:r,layerId:w[e].id}}else if(null!=i&&i<w.length)return{serverUrl:r,layerId:w[i].id};throw new Error("could not find matching associated sublayer")}},23154(e,t,a){a.d(t,{A6:()=>l,Aq:()=>p,Jo:()=>d,QM:()=>i});var r=a(77548),n=a(7861);const s=new Set(["Annotation Layer","Catalog Layer","Dimension Layer","Feature Layer","Oriented Imagery Layer"]);async function i(e,t){const{serviceJSON:a,layersJSON:r,...n}=await l(e,t);u(a);const s={serviceJSON:a,...n};return r&&(u(r),s.layersJSON=r),s}async function l(e,t){const{loadContext:a,...s}=t||{},i=a?await a.fetchServiceMetadata(e,s):await(0,n.L)(e,s),l=(0,r.G$)();h(i);const o={serviceJSON:i,preferredHost:l};if((i.currentVersion??0)<10.5)return o;const c=`${(0,r.$x)()??e}/layers`,u=a?await a.fetchServiceMetadata(c,s):await(0,n.L)(c,s);return h(u),o.layersJSON={layers:u.layers,tables:u.tables},o}function o(e){return s.has(e.type)}function c(e){return"Table"===e.type}function u(e){e.layers=e.layers?.filter(o),e.tables=e.tables?.filter(c)}function y(e){e.type||="Feature Layer"}function f(e){e.type||="Table"}function h(e){e.layers?.forEach(y),e.tables?.forEach(f)}function d(e){if(!e)return"FeatureLayer";switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"DimensionFeatureLayer";case"Annotation Layer":return"AnnotationFeatureLayer"}return null}function p(e,t){if(!e)return t?"Table":"ArcGISFeatureLayer";switch(e){case"Annotation Layer":return"ArcGISAnnotationLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"ArcGISDimensionLayer";case"Feature Layer":return"ArcGISFeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Parcel Layer":return"ParcelLayer";case"Table":return"Table";case"Topology Layer":return"TopologyLayer";case"Trace Network Layer":return"TraceNetworkLayer";case"Utility Network Layer":return"UtilityNetworkLayer";default:return null}}},2976(e,t,a){const r={AnnotationFeatureLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(2889),a.e(4676),a.e(4674),a.e(2718),a.e(1954)]).then(a.bind(a,20737))).default,BingMapsLayer:async()=>(await Promise.all([a.e(8278),a.e(7865),a.e(6554),a.e(6684)]).then(a.bind(a,17029))).default,BuildingSceneLayer:async()=>(await Promise.all([a.e(5620),a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(9789),a.e(4674),a.e(2718),a.e(8589),a.e(7005),a.e(9918),a.e(1427),a.e(2754),a.e(7120)]).then(a.bind(a,82411))).default,CSVLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(3813)]).then(a.bind(a,68695))).default,CatalogLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(9789),a.e(4674),a.e(893),a.e(2718),a.e(7013),a.e(7067),a.e(7925)]).then(a.bind(a,83508))).default,DimensionFeatureLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(2889),a.e(4676),a.e(4674),a.e(2718),a.e(3376)]).then(a.bind(a,25077))).default,DimensionLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(6619)]).then(a.bind(a,71493))).default,ElevationLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(9953),a.e(8732),a.e(3885)]).then(a.bind(a,38732))).default,FeatureLayer:async()=>(await Promise.all([a.e(5620),a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(9789),a.e(4674),a.e(2718),a.e(8589),a.e(3075)]).then(a.bind(a,18589))).default,GaussianSplatLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(765),a.e(6475)]).then(a.bind(a,36475))).default,GeoJSONLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(903)]).then(a.bind(a,15481))).default,GeoRSSLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(6554),a.e(2363)]).then(a.bind(a,63201))).default,GroupLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(9866),a.e(6569)]).then(a.bind(a,85989))).default,ImageryLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(893),a.e(5130),a.e(3690),a.e(7772),a.e(8768)]).then(a.bind(a,87772))).default,ImageryTileLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(5130),a.e(373),a.e(3690),a.e(9235),a.e(3500),a.e(1003),a.e(2806),a.e(7870)]).then(a.bind(a,90124))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(9953),a.e(765),a.e(8325),a.e(9544)]).then(a.bind(a,61528))).default,IntegratedMeshLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(9953),a.e(765),a.e(1427),a.e(8325),a.e(7464)]).then(a.bind(a,74660))).default,KMLLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(1214),a.e(5051),a.e(4473),a.e(7339)]).then(a.bind(a,162))).default,KnowledgeGraphLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(9789),a.e(9696),a.e(359),a.e(6390),a.e(3902),a.e(4720),a.e(4934),a.e(8692)]).then(a.bind(a,28692))).default,LineOfSightLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(3730),a.e(9695)]).then(a.bind(a,49695))).default,LinkChartLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(9789),a.e(9696),a.e(359),a.e(6390),a.e(3902),a.e(4720),a.e(4934),a.e(3309)]).then(a.bind(a,93309))).default,MapImageLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(4674),a.e(893),a.e(8470),a.e(1474)]).then(a.bind(a,7656))).default,MapNotesLayer:async()=>(await Promise.all([a.e(5620),a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(9789),a.e(4674),a.e(2718),a.e(8589),a.e(4720),a.e(2469)]).then(a.bind(a,96299))).default,MediaLayer:async()=>(await Promise.all([a.e(5620),a.e(9917),a.e(8278),a.e(7865),a.e(6963),a.e(182)]).then(a.bind(a,90182))).default,OGCFeatureLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(9918),a.e(5977)]).then(a.bind(a,65977))).default,OpenStreetMapLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(6554),a.e(919),a.e(349)]).then(a.bind(a,40349))).default,OrientedImageryLayer:async()=>(await Promise.all([a.e(5620),a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(9789),a.e(4674),a.e(2718),a.e(8589),a.e(6854)]).then(a.bind(a,16852))).default,ParquetLayer:async()=>(await Promise.all([a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(4864),a.e(7320),a.e(7917)]).then(a.bind(a,99680))).default,PointCloudLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(2869),a.e(7984),a.e(7515)]).then(a.bind(a,77885))).default,RouteLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(564),a.e(2869),a.e(3910),a.e(1214),a.e(5051),a.e(4473),a.e(1099)]).then(a.bind(a,39622))).default,SceneLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(2292),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(7005),a.e(9918),a.e(1427),a.e(2754),a.e(1086)]).then(a.bind(a,2e4))).default,StreamLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(8593)]).then(a.bind(a,79457))).default,SubtypeGroupLayer:async()=>(await Promise.all([a.e(5620),a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(2889),a.e(4676),a.e(9789),a.e(4674),a.e(2718),a.e(4451)]).then(a.bind(a,97483))).default,TileLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(4674),a.e(893),a.e(8470),a.e(6200)]).then(a.bind(a,71756))).default,UnknownLayer:async()=>(await Promise.all([a.e(9917),a.e(3928)]).then(a.bind(a,146))).default,UnsupportedLayer:async()=>(await Promise.all([a.e(9917),a.e(2819)]).then(a.bind(a,45165))).default,VectorTileLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(9953),a.e(6554),a.e(7886),a.e(7821)]).then(a.bind(a,50638))).default,VideoLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(3910),a.e(4674),a.e(6963),a.e(449)]).then(a.bind(a,86875))).default,ViewshedLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(3730),a.e(6650)]).then(a.bind(a,96650))).default,VoxelLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(2869),a.e(4443)]).then(a.bind(a,21005))).default,WCSLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(5130),a.e(373),a.e(3690),a.e(9235),a.e(3500),a.e(2806),a.e(2061)]).then(a.bind(a,20521))).default,WFSLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(9953),a.e(6554),a.e(564),a.e(2869),a.e(3910),a.e(7552),a.e(1214),a.e(5051),a.e(2889),a.e(4473),a.e(4676),a.e(1017),a.e(5411)]).then(a.bind(a,21901))).default,WMSLayer:async()=>(await Promise.all([a.e(5620),a.e(9917),a.e(8278),a.e(7865),a.e(2292),a.e(6554),a.e(2869),a.e(3910),a.e(417)]).then(a.bind(a,51904))).default,WMTSLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(6554),a.e(919),a.e(309)]).then(a.bind(a,20309))).default,WebTileLayer:async()=>(await Promise.all([a.e(9917),a.e(8278),a.e(7865),a.e(6554),a.e(919)]).then(a.bind(a,47314))).default};a.d(t,["U",0,r])},66964(e,t,a){a.d(t,{Ju:()=>w,K8:()=>b,XH:()=>L,Y5:()=>m,_r:()=>l,bO:()=>c,l:()=>v,nu:()=>P,pJ:()=>u,rc:()=>y});var r=a(60694),n=a(92009),s=a(23154),i=a(77548);function l(e,t){const{id:a,name:r}=e,n={id:a,name:r};return o(n,e,t),n}function o(e,t,a){const r=(0,s.Aq)(t.type,a);r&&(e.layerType=r)}async function c(e,t,a){let r,n;if(function(e){return!!e&&Array.isArray(e.layers)&&Array.isArray(e.tables)}(e)&&f(e))n=e;else{const s=await a.fetchServiceMetadata(t,{customParameters:u(e)?.customParameters});r=(0,i.G$)(),n=h(e,s),d(n,s)}return p(n),{data:n,preferredHost:r}}function u(e){if(!e)return null;const{layers:t,tables:a}=e;return t?.[0]??a?.[0]??null}function y(e,t){return null==t?null:[...e.layers??[],...e.tables??[]].find(e=>e.id===t)}function f(e){return[...e.layers??[],...e.tables??[]].every(e=>!!e.layerType)}function h(e,t){return{...e,layers:e?.layers??t.layers?.map(e=>l(e))??[],tables:e?.tables??t.tables?.map(e=>l(e,!0))??[]}}function d(e,t){const a=e.layers??[],r=e.tables??[],n=[...t.layers??[],...t.tables??[]];for(const e of[...a,...r]){const{id:t,layerType:a}=e;if(a)continue;const s=n.find(({id:e})=>e===t);s&&o(e,s,r.includes(e))}}function p(e){e.layers=e.layers?.filter(g),e.tables=e.tables?.filter(g)}async function m(e,t,a){if(e?.layers?.length||e?.tables?.length){if(!f(e)){const n=(0,r.qg)(t)?.url.path;if(!n)return;d(e,await a.fetchServiceMetadata(n,{customParameters:u(e)?.customParameters}))}p(e)}}function w(e,t){return[...e.layers??[],...e.tables??[]].filter(({layerType:e})=>e?t.includes(e):t.includes("ArcGISFeatureLayer"))}function L(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}const S=new Set(["ArcGISAnnotationLayer","ArcGISDimensionLayer","ArcGISFeatureLayer","CatalogLayer","OrientedImageryLayer","SubtypeGroupLayer","SubtypeGroupTable","Table"]);function g(e){return!!e.layerType&&S.has(e.layerType)}function v(e){switch(e){case"annotation-feature":return["ArcGISAnnotationLayer"];case"catalog":return["CatalogLayer"];case"dimension-feature":return["ArcGISDimensionLayer"];case"feature":return["ArcGISFeatureLayer","Table"];case"oriented-imagery":return["OrientedImageryLayer"];case"subtype-group":return["SubtypeGroupLayer","SubtypeGroupTable"]}return null}function b(e){switch(e){case"ArcGISAnnotationLayer":return"AnnotationFeatureLayer";case"ArcGISDimensionLayer":return"DimensionFeatureLayer";case"ArcGISFeatureLayer":case"Table":return"FeatureLayer";case"CatalogLayer":return"CatalogLayer";case"OrientedImageryLayer":return"OrientedImageryLayer";case"SubtypeGroupLayer":case"SubtypeGroupTable":return"SubtypeGroupLayer"}return null}async function P(e,t,a){if(!e?.url)return t??{};if(t??={},!t.layers){const r=await a.fetchServiceMetadata(e.url);t.layers=r.layers?.map(e=>l(e))}const{serverUrl:r,portalItem:s}=await(0,n.L)(e.url,{sceneLayerItem:e,customParameters:u(t)?.customParameters}).catch(()=>({serverUrl:null,portalItem:null}));if(null==r)return t.tables=[],t;if(!t.tables&&s){const e=await s.fetchData().catch(()=>null);if(e?.tables)t.tables=e.tables.map(({id:e,name:t})=>({id:e,name:t}));else{const n=await a.fetchServiceMetadata(r,{customParameters:u(e)?.customParameters}).catch(()=>null);t.tables=n?.tables?.map(e=>l(e,!0))}}if(t.tables)for(const e of t.tables)e.url=`${r}/${e.id}`;return t}},10407(e,t,a){a.d(t,{It:()=>h,LG:()=>i,OM:()=>c,Sm:()=>u,Y:()=>l,bK:()=>o,sQ:()=>y});var r=a(99917),n=a(16930),s=a(28735);function i(e,t){if(!l(e,t)){const a=e.typeKeywords;a?a.push(t):e.typeKeywords=[t]}}function l(e,t){return!!e.typeKeywords?.includes(t)}function o(e){return l(e,f.HOSTED_SERVICE)}function c(e,t){const a=e.typeKeywords;if(a){const e=a.indexOf(t);e>-1&&a.splice(e,1)}}function u(e,t,a){a?i(e,t):c(e,t)}async function y(e){const t=e.clone().normalize();let a;if(t.length>1)for(const e of t)a?e.width>a.width&&(a=e):a=e;else a=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const a=n.A.WGS84;return await(0,r.initializeProjection)(t,a),(0,r.project)(e,a)}(a)}const f={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function h(e){const{portal:t,isOrgItem:a,itemControl:r}=e,n=t.user?.privileges;let s=!n||n.includes("features:user:edit"),i=!!a&&!!n?.includes("features:user:fullEdit");const l="update"===r||"admin"===r;return l?i=s=!0:i&&(s=!0),{features:{edit:s,fullEdit:i},content:{updateItem:l}}}a.d(t,["mm",0,f])},45613(e,t,a){a.d(t,{fromItem:()=>f,n:()=>h});var r=a(49186),n=a(92009),s=a(23154),i=a(22429),l=a(2976),o=a(77548),c=a(80812),u=a(66964),y=a(10407);async function f(e){let{portalItem:t}=e;!t||t instanceof c.default||(t=new c.default(t));const a=await async function(e){await e.load();const t=new i.v;return async function(e){const t=e.className,a=l.U[t];return{constructor:await a(),properties:e.properties}}(await h(e,t))}(t);return new(0,a.constructor)({portalItem:t,...a.properties})}async function h(e,t){switch(e.type){case"3DTiles Service":return e.typeKeywords.includes("3DObject")?{className:"UnsupportedLayer"}:e.typeKeywords.includes("GaussianSplat")?{className:"GaussianSplatLayer"}:{className:"IntegratedMesh3DTilesLayer"};case"CSV":return{className:"CSVLayer"};case"Feature Collection":return async function(e){await e.load();const t=(0,y.Y)(e,"Map Notes"),a=(0,y.Y)(e,"Markup");if(t||a)return{className:"MapNotesLayer"};if((0,y.Y)(e,"Route Layer"))return{className:"RouteLayer"};const r=await e.fetchData();return 1===(0,u.XH)(r)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Feature Service":return async function(e,t){const a=await d(e,t);if("object"==typeof a){const{sourceJSON:e,className:t}=a,r={sourceJSON:e};return null!=a.id&&(r.layerId=a.id),{className:t||"FeatureLayer",properties:r}}return{className:"GroupLayer"}}(e,t);case"Feed":case"Stream Service":return{className:"StreamLayer"};case"GeoJson":return{className:"GeoJSONLayer"};case"Group Layer":return{className:"GroupLayer"};case"Image Service":return async function(e,t){await e.load();const a=e.typeKeywords?.map(e=>e.toLowerCase())??[];if(a.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(a.includes("tiled imagery"))return{className:"ImageryTileLayer"};const r=await t.fetchItemData(e),n=r?.layerType;if("ArcGISTiledImageServiceLayer"===n)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===n)return{className:"ImageryLayer"};const s=await t.fetchServiceMetadata(e.url,{customParameters:await t.fetchCustomParameters(e)}),i=s.cacheType?.toLowerCase(),l=s.capabilities?.toLowerCase().includes("tilesonly"),o=s.tileInfo?.format?.toLowerCase()??"",c=null==i&&["jpg","jpeg","png","png8","png24","png32","mixed"].includes(o);return"map"===i||c||l?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e,t);case"KML":return{className:"KMLLayer"};case"Knowledge Graph Layer":return{className:"KnowledgeGraphLayer"};case"Map Service":return async function(e,t){return await async function(e,t){const{tileInfo:a}=await t.fetchServiceMetadata(e.url,{customParameters:await t.fetchCustomParameters(e)});return a}(e,t)?{className:"TileLayer"}:{className:"MapImageLayer"}}(e,t);case"Media Layer":return{className:"MediaLayer"};case"Scene Service":return async function(e,t){const a=await d(e,t,async()=>{try{if(!e.url)return[];const{serverUrl:a}=await(0,n.L)(e.url,{sceneLayerItem:e}),r=await t.fetchServiceMetadata(a);return r?.tables??[]}catch{return[]}});if("object"==typeof a){const r={};let n;if(null!=a.id?(r.layerId=a.id,n=`${e.url}/layers/${a.id}`):n=e.url,e.typeKeywords?.length)for(const t of Object.keys(o.XX))if(e.typeKeywords.includes(t))return{className:o.XX[t]};const s=await t.fetchServiceMetadata(n,{customParameters:await t.fetchCustomParameters(e,e=>(0,u.pJ)(e)?.customParameters)});return{className:o.XX[s?.layerType]||"SceneLayer",properties:r}}if(!1===a){const a=await t.fetchServiceMetadata(e.url);if("Voxel"===a?.layerType)return{className:"VoxelLayer"}}return{className:"GroupLayer"}}(e,t);case"Video Service":return async function(e,t){return"object"==typeof await d(e,t)?{className:"VideoLayer"}:{className:"GroupLayer"}}(e,t);case"Vector Tile Service":return{className:"VectorTileLayer"};case"WCS":return{className:"WCSLayer"};case"WFS":return{className:"WFSLayer"};case"WMS":return{className:"WMSLayer"};case"WMTS":return{className:"WMTSLayer"};default:throw new r.A("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type})}}async function d(e,t,a){const{url:n,type:i}=e,l="Feature Service"===i;if(!n)return{};if(/\/\d+$/.test(n)){if(l){const a=await t.fetchServiceMetadata(n,{customParameters:await t.fetchCustomParameters(e,e=>(0,u.pJ)(e)?.customParameters)});(0,o.Gh)(e,(0,o.G$)());const{id:i,type:l}=a,c=(0,s.Jo)(l);if(!c)throw new r.A("from-portal-item:unsupported",`'${n}' has unsupported type: '${l}'`);return{id:i,className:c,sourceJSON:a}}return{}}if("Video Service"===i){const e=await t.fetchServiceMetadata(n);return!((e.layers?.length??0)>1)&&{}}await e.load();let c=await t.fetchItemData(e);if(l){const{data:a,preferredHost:s}=await(0,u.bO)(c,n,t);if(0===(0,u.XH)(a))throw new r.A("from-portal-item:no-data",`The feature service '${n}' does not have any supported layers or tables`);(0,o.Gh)(e,s);const i=p(a);if("object"==typeof i){const e=(0,u.rc)(a,i.id);return{id:i.id,className:(0,u.K8)(e?.layerType)}}return i}if("Scene Service"===i&&(c=await(0,u.nu)(e,c,t)),(0,u.XH)(c)>0)return p(c);const y=await t.fetchServiceMetadata(n);return a&&(y.tables=await a()),p(y)}function p(e){return 1===(0,u.XH)(e)&&{id:(0,u.pJ)(e)?.id}}},7861(e,t,a){a.d(t,{L:()=>n});var r=a(11254);async function n(e,t){return(await(0,r.A)(e,{responseType:"json",query:{f:"json",...t?.customParameters,token:t?.apiKey}})).data}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7733],{57733(e,t,_){_.r(t),_.d(t,{ColumnDescriptor:()=>r,ColumnId:()=>n,DisplayOptimizationXZBuilder:()=>s,DisplayOptimizationZBuilder:()=>o,Extent:()=>a,FieldMetadata:()=>u,GeometryField:()=>c,GeometryInfo:()=>l,MultiscaleGeometryField:()=>p,PageEncodingDescriptor:()=>b,ParquetChunk:()=>w,ParquetFile:()=>d,ParquetPatchChunk:()=>f,QuantizedGeometryBuffer:()=>y,Query:()=>h,QueryStream:()=>m,RangeProviderJs:()=>z,RowGroup:()=>F,RowGroupId:()=>q,default:()=>Oe,enableTracing:()=>x,getXZCodeRanges:()=>S,initSync:()=>Ce,queryIntersectsXYStatistics:()=>R,queryIntersectsXZStatistics:()=>v});class r{static __wrap(e){e>>>=0;const t=Object.create(r.prototype);return t.__wbg_ptr=e,T.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,T.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_columndescriptor_free(e,0)}compressedSize(){return Re.columndescriptor_compressedSize(this.__wbg_ptr)}compression(){let e,t;try{const _=Re.columndescriptor_compression(this.__wbg_ptr);return e=_[0],t=_[1],ue(_[0],_[1])}finally{Re.__wbindgen_free(e,t,1)}}distinctCount(){const e=Re.columndescriptor_distinctCount(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}encodings(){return Re.columndescriptor_encodings(this.__wbg_ptr)}logicalType(){const e=Re.columndescriptor_logicalType(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ue(e[0],e[1]).slice(),Re.__wbindgen_free(e[0],1*e[1],1)),t}maxValue(){return Re.columndescriptor_maxValue(this.__wbg_ptr)}minValue(){return Re.columndescriptor_minValue(this.__wbg_ptr)}name(){let e,t;try{const _=Re.columndescriptor_name(this.__wbg_ptr);return e=_[0],t=_[1],ue(_[0],_[1])}finally{Re.__wbindgen_free(e,t,1)}}nullCount(){const e=Re.columndescriptor_nullCount(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}numValues(){return Re.columndescriptor_numValues(this.__wbg_ptr)}pageEncodings(){const e=Re.columndescriptor_pageEncodings(this.__wbg_ptr);let t;return 0!==e[0]&&(t=_e(e[0],e[1]).slice(),Re.__wbindgen_free(e[0],4*e[1],4)),t}physicalType(){const e=Re.columndescriptor_physicalType(this.__wbg_ptr);return O[e]}uncompressedSize(){return Re.columndescriptor_uncompressedSize(this.__wbg_ptr)}}Symbol.dispose&&(r.prototype[Symbol.dispose]=r.prototype.free);class n{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,P.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_columnid_free(e,0)}}Symbol.dispose&&(n.prototype[Symbol.dispose]=n.prototype.free);const i=Object.freeze({PBF:0,0:"PBF"});class s{static __wrap(e){e>>>=0;const t=Object.create(s.prototype);return t.__wbg_ptr=e,M.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,M.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_displayoptimizationxzbuilder_free(e,0)}addLevel(e){$(e,p);var t=e.__destroy_into_raw();Re.displayoptimizationxzbuilder_addLevel(this.__wbg_ptr,t)}static new(){const e=Re.displayoptimizationxzbuilder_new();return s.__wrap(e)}setCodeField(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ve;Re.displayoptimizationxzbuilder_setCodeField(this.__wbg_ptr,t,_)}setEncoding(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ve,r=Re.displayoptimizationxzbuilder_setEncoding(this.__wbg_ptr,t,_);if(r[1])throw ze(r[0])}setFullExtent(e){Re.displayoptimizationxzbuilder_setFullExtent(this.__wbg_ptr,e)}setGeometryType(e){Re.displayoptimizationxzbuilder_setGeometryType(this.__wbg_ptr,e)}setHasM(e){Re.displayoptimizationxzbuilder_setHasM(this.__wbg_ptr,e)}setHasZ(e){Re.displayoptimizationxzbuilder_setHasZ(this.__wbg_ptr,e)}setMaxLevel(e){Re.displayoptimizationxzbuilder_setMaxLevel(this.__wbg_ptr,e)}setSpatialReference(e,t){var _=we(t)?0:me(t,Re.__wbindgen_malloc,Re.__wbindgen_realloc),r=ve;const n=Re.displayoptimizationxzbuilder_setSpatialReference(this.__wbg_ptr,we(e)?4294967297:e>>>0,_,r);if(n[1])throw ze(n[0])}}Symbol.dispose&&(s.prototype[Symbol.dispose]=s.prototype.free);class o{static __wrap(e){e>>>=0;const t=Object.create(o.prototype);return t.__wbg_ptr=e,j.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,j.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_displayoptimizationzbuilder_free(e,0)}static new(){const e=Re.displayoptimizationzbuilder_new();return o.__wrap(e)}setCodeField(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ve;Re.displayoptimizationzbuilder_setCodeField(this.__wbg_ptr,t,_)}setCooordinatePrecision(e){Re.displayoptimizationzbuilder_setCooordinatePrecision(this.__wbg_ptr,e)}setFullExtent(e){Re.displayoptimizationzbuilder_setFullExtent(this.__wbg_ptr,e)}setHasM(e){Re.displayoptimizationzbuilder_setHasM(this.__wbg_ptr,e)}setHasZ(e){Re.displayoptimizationzbuilder_setHasZ(this.__wbg_ptr,e)}setMColumn(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ve;Re.displayoptimizationzbuilder_setMColumn(this.__wbg_ptr,t,_)}setSpatialReference(e,t){var _=we(t)?0:me(t,Re.__wbindgen_malloc,Re.__wbindgen_realloc),r=ve;const n=Re.displayoptimizationzbuilder_setSpatialReference(this.__wbg_ptr,we(e)?4294967297:e>>>0,_,r);if(n[1])throw ze(n[0])}setXColumn(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ve;Re.displayoptimizationzbuilder_setXColumn(this.__wbg_ptr,t,_)}setYColumn(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ve;Re.displayoptimizationzbuilder_setYColumn(this.__wbg_ptr,t,_)}setZColumn(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ve;Re.displayoptimizationzbuilder_setZColumn(this.__wbg_ptr,t,_)}}Symbol.dispose&&(o.prototype[Symbol.dispose]=o.prototype.free);class a{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,A.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_extent_free(e,0)}get xmax(){return Re.__wbg_get_extent_xmax(this.__wbg_ptr)}get xmin(){return Re.__wbg_get_extent_xmin(this.__wbg_ptr)}get ymax(){return Re.__wbg_get_extent_ymax(this.__wbg_ptr)}get ymin(){return Re.__wbg_get_extent_ymin(this.__wbg_ptr)}set xmax(e){Re.__wbg_set_extent_xmax(this.__wbg_ptr,e)}set xmin(e){Re.__wbg_set_extent_xmin(this.__wbg_ptr,e)}set ymax(e){Re.__wbg_set_extent_ymax(this.__wbg_ptr,e)}set ymin(e){Re.__wbg_set_extent_ymin(this.__wbg_ptr,e)}}Symbol.dispose&&(a.prototype[Symbol.dispose]=a.prototype.free);class u{static __wrap(e){e>>>=0;const t=Object.create(u.prototype);return t.__wbg_ptr=e,U.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,U.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_fieldmetadata_free(e,0)}get type(){const e=Re.fieldmetadata_esri_type(this.__wbg_ptr);return I[e]}get logicalType(){const e=Re.fieldmetadata_logical_type(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ue(e[0],e[1]).slice(),Re.__wbindgen_free(e[0],1*e[1],1)),t}get name(){let e,t;try{const _=Re.fieldmetadata_name(this.__wbg_ptr);return e=_[0],t=_[1],ue(_[0],_[1])}finally{Re.__wbindgen_free(e,t,1)}}get physicalType(){const e=Re.fieldmetadata_physical_type(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ue(e[0],e[1]).slice(),Re.__wbindgen_free(e[0],1*e[1],1)),t}get is_nested(){return 0!==Re.__wbg_get_fieldmetadata_is_nested(this.__wbg_ptr)}set is_nested(e){Re.__wbg_set_fieldmetadata_is_nested(this.__wbg_ptr,e)}}Symbol.dispose&&(u.prototype[Symbol.dispose]=u.prototype.free);class c{static __wrap(e){e>>>=0;const t=Object.create(c.prototype);return t.__wbg_ptr=e,L.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,L.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_geometryfield_free(e,0)}static fromLocation(e,t,_,r){const n=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),i=ve,s=me(t,Re.__wbindgen_malloc,Re.__wbindgen_realloc),o=ve,a=Re.geometryfield_fromLocation(n,i,s,o,_,r);if(a[2])throw ze(a[1]);return c.__wrap(a[0])}static fromWkb(e,t,_){const r=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),n=ve,i=Re.geometryfield_fromWkb(r,n,t,_);if(i[2])throw ze(i[1]);return c.__wrap(i[0])}}Symbol.dispose&&(c.prototype[Symbol.dispose]=c.prototype.free);class l{static __wrap(e){e>>>=0;const t=Object.create(l.prototype);return t.__wbg_ptr=e,G.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,G.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_geometryinfo_free(e,0)}static new(){const e=Re.geometryinfo_new();if(e[2])throw ze(e[1]);return l.__wrap(e[0])}setGeometry(e){$(e,c);var t=e.__destroy_into_raw();Re.geometryinfo_setGeometry(this.__wbg_ptr,t)}setOptmizationXZ(e){$(e,s);var t=e.__destroy_into_raw();const _=Re.geometryinfo_setOptmizationXZ(this.__wbg_ptr,t);if(_[1])throw ze(_[0])}setOptmizationZ(e){$(e,o);var t=e.__destroy_into_raw();const _=Re.geometryinfo_setOptmizationZ(this.__wbg_ptr,t);if(_[1])throw ze(_[0])}}Symbol.dispose&&(l.prototype[Symbol.dispose]=l.prototype.free);const g=Object.freeze({Point:0,0:"Point",Polygon:1,1:"Polygon",Polyline:2,2:"Polyline",Multipoint:3,3:"Multipoint"});class p{static __wrap(e){e>>>=0;const t=Object.create(p.prototype);return t.__wbg_ptr=e,E.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_multiscalegeometryfield_free(e,0)}get level(){return Re.__wbg_get_multiscalegeometryfield_level(this.__wbg_ptr)}get resolution(){return Re.__wbg_get_multiscalegeometryfield_resolution(this.__wbg_ptr)}has_field(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ve;return 0!==Re.multiscalegeometryfield_has_field(this.__wbg_ptr,t,_)}static new(e,t,_,r,n){const i=me(_,Re.__wbindgen_malloc,Re.__wbindgen_realloc),s=ve,o=ye(r,Re.__wbindgen_malloc),a=ve,u=ye(n,Re.__wbindgen_malloc),c=ve,l=Re.multiscalegeometryfield_new(e,t,i,s,o,a,u,c);return p.__wrap(l)}set level(e){Re.__wbg_set_multiscalegeometryfield_level(this.__wbg_ptr,e)}set resolution(e){Re.__wbg_set_multiscalegeometryfield_resolution(this.__wbg_ptr,e)}}Symbol.dispose&&(p.prototype[Symbol.dispose]=p.prototype.free);class b{static __wrap(e){e>>>=0;const t=Object.create(b.prototype);return t.__wbg_ptr=e,D.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,D.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_pageencodingdescriptor_free(e,0)}count(){return Re.pageencodingdescriptor_count(this.__wbg_ptr)}encoding(){let e,t;try{const _=Re.pageencodingdescriptor_encoding(this.__wbg_ptr);return e=_[0],t=_[1],ue(_[0],_[1])}finally{Re.__wbindgen_free(e,t,1)}}pageType(){let e,t;try{const _=Re.pageencodingdescriptor_pageType(this.__wbg_ptr);return e=_[0],t=_[1],ue(_[0],_[1])}finally{Re.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(b.prototype[Symbol.dispose]=b.prototype.free);class w{static __wrap(e){e>>>=0;const t=Object.create(w.prototype);return t.__wbg_ptr=e,W.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,W.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_parquetchunk_free(e,0)}boundsXMax(e){const t=Re.parquetchunk_boundsXMax(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsXMin(e){const t=Re.parquetchunk_boundsXMin(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsYMax(e){const t=Re.parquetchunk_boundsYMax(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsYMin(e){const t=Re.parquetchunk_boundsYMin(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}coordinateStride(){return Re.parquetchunk_coordinateStride(this.__wbg_ptr)>>>0}static deserialize(e){const t=fe(e,Re.__wbindgen_malloc),_=ve,r=Re.parquetchunk_deserialize(t,_);return w.__wrap(r)}hasColumn(e){return 0!==Re.parquetchunk_hasColumn(this.__wbg_ptr,e)}hasM(){return 0!==Re.parquetchunk_hasM(this.__wbg_ptr)}hasZ(){return 0!==Re.parquetchunk_hasZ(this.__wbg_ptr)}insertPatch(e){$(e,f);var t=e.__destroy_into_raw();Re.parquetchunk_insertPatch(this.__wbg_ptr,t)}insertPatchBytes(e){const t=fe(e,Re.__wbindgen_malloc),_=ve;Re.parquetchunk_insertPatchBytes(this.__wbg_ptr,t,_)}readAttribute(e,t){return Re.parquetchunk_readAttribute(this.__wbg_ptr,e,t)}readCoordsUnsafe(e){return Re.parquetchunk_readCoordsUnsafe(this.__wbg_ptr,e)}readIdsUnsafe(){return Re.parquetchunk_readIdsUnsafe(this.__wbg_ptr)}readLengthsUnsafe(e){return Re.parquetchunk_readLengthsUnsafe(this.__wbg_ptr,e)}readPointCoordsQuantizedUnsafe(){return Re.parquetchunk_readPointCoordsQuantizedUnsafe(this.__wbg_ptr)}readPointCoordsUnsafe(){return Re.parquetchunk_readPointCoordsUnsafe(this.__wbg_ptr)}rowGroup(){return Re.parquetchunk_rowGroup(this.__wbg_ptr)>>>0}rowId(e){return Re.parquetchunk_rowId(this.__wbg_ptr,e)}serialize(){const e=Re.parquetchunk_serialize(this.__wbg_ptr);var t=re(e[0],e[1]).slice();return Re.__wbindgen_free(e[0],1*e[1],1),t}size(){return Re.parquetchunk_size(this.__wbg_ptr)>>>0}transformGeometry(e,t,_,r,n,i){$(e,y);const s=Re.parquetchunk_transformGeometry(this.__wbg_ptr,e.__wbg_ptr,t,_,r,n,i);return 16777215===s?void 0:0!==s}}Symbol.dispose&&(w.prototype[Symbol.dispose]=w.prototype.free);class d{static __wrap(e){e>>>=0;const t=Object.create(d.prototype);return t.__wbg_ptr=e,Z.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_parquetfile_free(e,0)}byteLength(){return Re.parquetfile_byteLength(this.__wbg_ptr)}columnIndex(e,t){return Re.parquetfile_columnIndex(this.__wbg_ptr,e,t)}compressionCodecs(){const e=Re.parquetfile_compressionCodecs(this.__wbg_ptr);var t=_e(e[0],e[1]).slice();return Re.__wbindgen_free(e[0],4*e[1],4),t}createChunkPatch(e,t,_,r){const n=de(t,Re.__wbindgen_malloc),i=ve,s=he(_,Re.__wbindgen_malloc),o=ve;return Re.parquetfile_createChunkPatch(this.__wbg_ptr,e,n,i,s,o,we(r)?0:N(r))}createdBy(){const e=Re.parquetfile_createdBy(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ue(e[0],e[1]).slice(),Re.__wbindgen_free(e[0],1*e[1],1)),t}diagnosticsSnapshot(){const e=Re.parquetfile_diagnosticsSnapshot(this.__wbg_ptr);if(e[2])throw ze(e[1]);return ze(e[0])}executeQuery(e,t,_){return $(e,h),Re.parquetfile_executeQuery(this.__wbg_ptr,e.__wbg_ptr,t,we(_)?0:N(_))}fields(e){const t=Re.parquetfile_fields(this.__wbg_ptr,e);var _=_e(t[0],t[1]).slice();return Re.__wbindgen_free(t[0],4*t[1],4),_}static fromBinary(e,t){const _=fe(e,Re.__wbindgen_malloc),r=ve;let n=0;return we(t)||($(t,l),n=t.__destroy_into_raw()),Re.parquetfile_fromBinary(_,r,n)}static fromUrl(e,t,_,r){const n=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),i=ve;let s=0;return we(r)||($(r,l),s=r.__destroy_into_raw()),Re.parquetfile_fromUrl(n,i,t,_,s)}getColumnDescriptor(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ve,n=Re.parquetfile_getColumnDescriptor(this.__wbg_ptr,t,_);return r.__wrap(n)}getColumnDescriptors(){const e=Re.parquetfile_getColumnDescriptors(this.__wbg_ptr);var t=_e(e[0],e[1]).slice();return Re.__wbindgen_free(e[0],4*e[1],4),t}getColumnId(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ve,r=Re.parquetfile_getColumnId(this.__wbg_ptr,t,_);return 4294967297===r?void 0:r}keyValueMetadata(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ve,r=Re.parquetfile_keyValueMetadata(this.__wbg_ptr,t,_);let n;return 0!==r[0]&&(n=ue(r[0],r[1]).slice(),Re.__wbindgen_free(r[0],1*r[1],1)),n}keys(){const e=Re.parquetfile_keys(this.__wbg_ptr);let t;return 0!==e[0]&&(t=_e(e[0],e[1]).slice(),Re.__wbindgen_free(e[0],4*e[1],4)),t}numColumns(){return Re.parquetfile_numColumns(this.__wbg_ptr)>>>0}numFields(){return Re.parquetfile_numFields(this.__wbg_ptr)>>>0}numRows(){return Re.parquetfile_numRows(this.__wbg_ptr)>>>0}offsetIndex(e,t){return Re.parquetfile_offsetIndex(this.__wbg_ptr,e,t)}readAttribute(e,t,_){const r=Re.parquetfile_readAttribute(this.__wbg_ptr,e,t,_);if(r[2])throw ze(r[1]);return ze(r[0])}rowGroups(){const e=Re.parquetfile_rowGroups(this.__wbg_ptr);var t=_e(e[0],e[1]).slice();return Re.__wbindgen_free(e[0],4*e[1],4),t}updateChunkFields(e,t,_){$(e,w);const r=he(t,Re.__wbindgen_malloc),n=ve;return Re.parquetfile_updateChunkFields(this.__wbg_ptr,e.__wbg_ptr,r,n,we(_)?0:N(_))}version(){return Re.parquetfile_version(this.__wbg_ptr)}}Symbol.dispose&&(d.prototype[Symbol.dispose]=d.prototype.free);class f{static __wrap(e){e>>>=0;const t=Object.create(f.prototype);return t.__wbg_ptr=e,B.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,B.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_parquetpatchchunk_free(e,0)}static deserialize(e){const t=fe(e,Re.__wbindgen_malloc),_=ve,r=Re.parquetpatchchunk_deserialize(t,_);return f.__wrap(r)}serialize(){const e=Re.parquetpatchchunk_serialize(this.__wbg_ptr);var t=re(e[0],e[1]).slice();return Re.__wbindgen_free(e[0],1*e[1],1),t}}Symbol.dispose&&(f.prototype[Symbol.dispose]=f.prototype.free);class y{static __wrap(e){e>>>=0;const t=Object.create(y.prototype);return t.__wbg_ptr=e,X.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,X.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_quantizedgeometrybuffer_free(e,0)}static new(){const e=Re.quantizedgeometrybuffer_new();return y.__wrap(e)}readCoordsUnsafe(){return Re.quantizedgeometrybuffer_readCoordsUnsafe(this.__wbg_ptr)}readLengthsUnsafe(){return Re.quantizedgeometrybuffer_readLengthsUnsafe(this.__wbg_ptr)}}Symbol.dispose&&(y.prototype[Symbol.dispose]=y.prototype.free);class h{static __wrap(e){e>>>=0;const t=Object.create(h.prototype);return t.__wbg_ptr=e,H.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,H.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_query_free(e,0)}static new(){const e=Re.query_new();return h.__wrap(e)}setExtent(e){Re.query_setExtent(this.__wbg_ptr,e)}setIds(e){const t=de(e,Re.__wbindgen_malloc),_=ve;Re.query_setIds(this.__wbg_ptr,t,_)}setOutFields(e){const t=he(e,Re.__wbindgen_malloc),_=ve;Re.query_setOutFields(this.__wbg_ptr,t,_)}setOutSpatialReference(e){const t=Re.query_setOutSpatialReference(this.__wbg_ptr,e);if(t[1])throw ze(t[0])}setPostFilterCount(e){Re.query_setPostFilterCount(this.__wbg_ptr,e)}setPostFilterStart(e){Re.query_setPostFilterStart(this.__wbg_ptr,e)}setPreFilterCount(e){Re.query_setPreFilterCount(this.__wbg_ptr,e)}setPreFilterStart(e){Re.query_setPreFilterStart(this.__wbg_ptr,e)}setQuantizationTransform(e){Re.query_setQuantizationTransform(this.__wbg_ptr,e)}setReturnGeometry(e){Re.query_setReturnGeometry(this.__wbg_ptr,e)}setReturnM(e){Re.query_setReturnM(this.__wbg_ptr,e)}setReturnZ(e){Re.query_setReturnZ(this.__wbg_ptr,e)}setSourceResolution(e){Re.query_setSourceResolution(this.__wbg_ptr,e)}setWhere(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ve;Re.query_setWhere(this.__wbg_ptr,t,_)}setWhereEvaluator(e){Re.query_setWhereEvaluator(this.__wbg_ptr,e)}setWhereFields(e){const t=he(e,Re.__wbindgen_malloc),_=ve;Re.query_setWhereFields(this.__wbg_ptr,t,_)}}Symbol.dispose&&(h.prototype[Symbol.dispose]=h.prototype.free);class m{static __wrap(e){e>>>=0;const t=Object.create(m.prototype);return t.__wbg_ptr=e,Q.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Q.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_querystream_free(e,0)}next(e){return Re.querystream_next(this.__wbg_ptr,we(e)?0:N(e))}}Symbol.dispose&&(m.prototype[Symbol.dispose]=m.prototype.free);class z{static __wrap(e){e>>>=0;const t=Object.create(z.prototype);return t.__wbg_ptr=e,V.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,V.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_rangeproviderjs_free(e,0)}static new(e,t){const _=Re.rangeproviderjs_new(e,t);return z.__wrap(_)}static withFetch(){const e=Re.rangeproviderjs_withFetch();return z.__wrap(e)}}Symbol.dispose&&(z.prototype[Symbol.dispose]=z.prototype.free);class F{static __wrap(e){e>>>=0;const t=Object.create(F.prototype);return t.__wbg_ptr=e,Y.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Y.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_rowgroup_free(e,0)}columnDescriptorForAttribute(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ve,n=Re.rowgroup_columnDescriptorForAttribute(this.__wbg_ptr,t,_);return r.__wrap(n)}}Symbol.dispose&&(F.prototype[Symbol.dispose]=F.prototype.free);class q{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,J.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_rowgroupid_free(e,0)}}function x(){Re.enableTracing()}function S(e,t,_,r,n){const i=Re.getXZCodeRanges(e,t,_,r,n);if(i[2])throw ze(i[1]);return ze(i[0])}function R(e,t,_,r,n,i,s){const o=Re.queryIntersectsXYStatistics(e,t,_,r,n,i,s);if(o[2])throw ze(o[1]);return 0!==o[0]}function v(e,t,_,r,n,i,s){const o=Re.queryIntersectsXZStatistics(e,t,_,r,n,i,s);if(o[2])throw ze(o[1]);return 0!==o[0]}function k(){const e={__proto__:null,__wbg_String_8564e559799eccda:function(e,t){const _=me(String(t),Re.__wbindgen_malloc,Re.__wbindgen_realloc),r=ve;ie().setInt32(e+4,r,!0),ie().setInt32(e+0,_,!0)},__wbg___wbindgen_is_function_3baa9db1a987f47d:function(e){return"function"==typeof e},__wbg___wbindgen_is_undefined_29a43b4d42920abd:function(e){return void 0===e},__wbg___wbindgen_number_get_c7f42aed0525c451:function(e,t){const _="number"==typeof t?t:void 0;ie().setFloat64(e+8,we(_)?0:_,!0),ie().setInt32(e+0,!we(_),!0)},__wbg___wbindgen_string_get_7ed5322991caaec5:function(e,t){const _="string"==typeof t?t:void 0;var r=we(_)?0:me(_,Re.__wbindgen_malloc,Re.__wbindgen_realloc),n=ve;ie().setInt32(e+4,n,!0),ie().setInt32(e+0,r,!0)},__wbg___wbindgen_throw_6b64449b9b9ed33c:function(e,t){throw new Error(ue(e,t))},__wbg__wbg_cb_unref_b46c9b5a9f08ec37:function(e){e._wbg_cb_unref()},__wbg_aborted_072e5543dce0fc05:function(e){return e.aborted},__wbg_apply_4c35bd236dda9c14:function(){return be(function(e,t,_){return e.apply(t,_)},arguments)},__wbg_call_86e39d65afc3d9db:function(){return be(function(e,t,_,r,n){return e.call(t,_,r,n)},arguments)},__wbg_call_a24592a6f349a97e:function(){return be(function(e,t,_){return e.call(t,_)},arguments)},__wbg_columndescriptor_new:function(e){return r.__wrap(e)},__wbg_error_a6fa202b58aa1cd3:function(e,t){let _,r;try{_=e,r=t,console.error(ue(e,t))}finally{Re.__wbindgen_free(_,r,1)}},__wbg_fieldmetadata_new:function(e){return u.__wrap(e)},__wbg_get_6011fa3a58f61074:function(){return be(function(e,t){return Reflect.get(e,t)},arguments)},__wbg_get_unchecked_17f53dad852b9588:function(e,t){return e[t>>>0]},__wbg_length_3d4ecd04bd8d22f1:function(e){return e.length},__wbg_length_9f1775224cf1d815:function(e){return e.length},__wbg_new_0c7403db6e782f19:function(e){return new Uint8Array(e)},__wbg_new_227d7c05414eb861:function(){return new Error},__wbg_new_5e360d2ff7b9e1c3:function(e,t){return new Error(ue(e,t))},__wbg_new_682678e2f47e32bc:function(){return new Array},__wbg_new_8bc2b540bbfdbb81:function(e){return new Uint32Array(e)},__wbg_new_aa8d0fa9762c29bd:function(){return new Object},__wbg_new_from_slice_158b7b5c2056cc2c:function(e,t){return new Int16Array(te(e,t))},__wbg_new_from_slice_3115b094b1002246:function(e,t){return new Float64Array(ee(e,t))},__wbg_new_no_args_a5300b4b3ea60351:function(e,t){return new Function(ue(e,t))},__wbg_new_typed_323f37fd55ab048d:function(e,t){try{var _={a:e,b:t};return new Promise((e,t)=>{const r=_.a;_.a=0;try{return function(e,t,_,r){Re.wasm_bindgen__convert__closures_____invoke__h44661d48f0e51fa5(e,t,_,r)}(r,_.b,e,t)}finally{_.a=r}})}finally{_.a=0}},__wbg_new_with_length_223c4ea248649e55:function(e){return new Array(e>>>0)},__wbg_pageencodingdescriptor_new:function(e){return b.__wrap(e)},__wbg_parquetchunk_new:function(e){return w.__wrap(e)},__wbg_parquetfile_new:function(e){return d.__wrap(e)},__wbg_parquetpatchchunk_new:function(e){return f.__wrap(e)},__wbg_prototypesetcall_a6b02eb00b0f4ce2:function(e,t,_){Uint8Array.prototype.set.call(re(e,t),_)},__wbg_push_471a5b068a5295f6:function(e,t){return e.push(t)},__wbg_querystream_new:function(e){return m.__wrap(e)},__wbg_queueMicrotask_5d15a957e6aa920e:function(e){queueMicrotask(e)},__wbg_queueMicrotask_f8819e5ffc402f36:function(e){return e.queueMicrotask},__wbg_resolve_e6c466bc1052f16c:function(e){return Promise.resolve(e)},__wbg_rowgroup_new:function(e){return F.__wrap(e)},__wbg_set_3bf1de9fab0cd644:function(e,t,_){e[t>>>0]=_},__wbg_set_6be42768c690e380:function(e,t,_){e[t]=_},__wbg_set_name_f49c6e6bbfc8a63b:function(e,t,_){e.name=ue(t,_)},__wbg_stack_3b0d974bbf31e44f:function(e,t){const _=me(t.stack,Re.__wbindgen_malloc,Re.__wbindgen_realloc),r=ve;ie().setInt32(e+4,r,!0),ie().setInt32(e+0,_,!0)},__wbg_static_accessor_GLOBAL_8cfadc87a297ca02:function(){const e=void 0===_.g?null:_.g;return we(e)?0:N(e)},__wbg_static_accessor_GLOBAL_THIS_602256ae5c8f42cf:function(){const e="undefined"==typeof globalThis?null:globalThis;return we(e)?0:N(e)},__wbg_static_accessor_SELF_e445c1c7484aecc3:function(){const e="undefined"==typeof self?null:self;return we(e)?0:N(e)},__wbg_static_accessor_WINDOW_f20e8576ef1e0f17:function(){const e="undefined"==typeof window?null:window;return we(e)?0:N(e)},__wbg_then_792e0c862b060889:function(e,t,_){return e.then(t,_)},__wbg_then_8e16ee11f05e4827:function(e,t){return e.then(t)},__wbg_valueOf_25e11684e38026ef:function(e){return e.valueOf()},__wbg_valueOf_91a54faf8ce0976a:function(e){return e.valueOf()},__wbindgen_cast_0000000000000001:function(e,t){return function(e,t,_){const r={a:e,b:t,cnt:1},n=(...e)=>{r.cnt++;const t=r.a;r.a=0;try{return _(t,r.b,...e)}finally{r.a=t,n._wbg_cb_unref()}};return n._wbg_cb_unref=()=>{0===--r.cnt&&(Re.__wbindgen_destroy_closure(r.a,r.b),r.a=0,K.unregister(r))},K.register(n,r,r),n}(e,t,C)},__wbindgen_cast_0000000000000002:function(e){return e},__wbindgen_cast_0000000000000003:function(e){return e},__wbindgen_cast_0000000000000004:function(e,t){return ee(e,t)},__wbindgen_cast_0000000000000005:function(e,t){return te(e,t)},__wbindgen_cast_0000000000000006:function(e,t){return function(e,t){return e>>>=0,le().subarray(e/4,e/4+t)}(e,t)},__wbindgen_cast_0000000000000007:function(e,t){return re(e,t)},__wbindgen_cast_0000000000000008:function(e,t){return ue(e,t)},__wbindgen_cast_0000000000000009:function(e,t){var _=re(e,t).slice();return Re.__wbindgen_free(e,1*t,1),_},__wbindgen_init_externref_table:function(){const e=Re.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}};return{__proto__:null,"./bundle_bg.js":e}}function C(e,t,_){const r=Re.wasm_bindgen__convert__closures_____invoke__h0082ca4dbd10b7c6(e,t,_);if(r[1])throw ze(r[0])}Symbol.dispose&&(q.prototype[Symbol.dispose]=q.prototype.free);const O=["boolean","int32","int64","int96","float","double","byte-array","fixed-byte-array"],I=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeBigInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],T="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_columndescriptor_free(e>>>0,1)),P="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_columnid_free(e>>>0,1)),M="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_displayoptimizationxzbuilder_free(e>>>0,1)),j="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_displayoptimizationzbuilder_free(e>>>0,1)),A="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_extent_free(e>>>0,1)),U="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_fieldmetadata_free(e>>>0,1)),L="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_geometryfield_free(e>>>0,1)),G="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_geometryinfo_free(e>>>0,1)),E="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_multiscalegeometryfield_free(e>>>0,1)),D="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_pageencodingdescriptor_free(e>>>0,1)),W="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_parquetchunk_free(e>>>0,1)),Z="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_parquetfile_free(e>>>0,1)),B="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_parquetpatchchunk_free(e>>>0,1)),X="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_quantizedgeometrybuffer_free(e>>>0,1)),H="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_query_free(e>>>0,1)),Q="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_querystream_free(e>>>0,1)),V="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_rangeproviderjs_free(e>>>0,1)),Y="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_rowgroup_free(e>>>0,1)),J="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_rowgroupid_free(e>>>0,1));function N(e){const t=Re.__externref_table_alloc();return Re.__wbindgen_externrefs.set(t,e),t}function $(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`)}const K="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbindgen_destroy_closure(e.a,e.b));function ee(e,t){return e>>>=0,oe().subarray(e/8,e/8+t)}function te(e,t){return e>>>=0,(null!==ae&&0!==ae.byteLength||(ae=new Int16Array(Re.memory.buffer)),ae).subarray(e/2,e/2+t)}function _e(e,t){e>>>=0;const _=ie(),r=[];for(let n=e;n<e+4*t;n+=4)r.push(Re.__wbindgen_externrefs.get(_.getUint32(n,!0)));return Re.__externref_drop_slice(e,t),r}function re(e,t){return e>>>=0,pe().subarray(e/1,e/1+t)}let ne=null;function ie(){return(null===ne||!0===ne.buffer.detached||void 0===ne.buffer.detached&&ne.buffer!==Re.memory.buffer)&&(ne=new DataView(Re.memory.buffer)),ne}let se=null;function oe(){return null!==se&&0!==se.byteLength||(se=new Float64Array(Re.memory.buffer)),se}let ae=null;function ue(e,t){return function(e,t){return xe+=t,xe>=qe&&(Fe=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),Fe.decode(),xe=t),Fe.decode(pe().subarray(e,e+t))}(e>>>=0,t)}let ce=null;function le(){return null!==ce&&0!==ce.byteLength||(ce=new Uint32Array(Re.memory.buffer)),ce}let ge=null;function pe(){return null!==ge&&0!==ge.byteLength||(ge=new Uint8Array(Re.memory.buffer)),ge}function be(e,t){try{return e.apply(this,t)}catch(e){const t=N(e);Re.__wbindgen_exn_store(t)}}function we(e){return null==e}function de(e,t){const _=t(4*e.length,4)>>>0;return le().set(e,_/4),ve=e.length,_}function fe(e,t){const _=t(1*e.length,1)>>>0;return pe().set(e,_/1),ve=e.length,_}function ye(e,t){const _=t(8*e.length,8)>>>0;return oe().set(e,_/8),ve=e.length,_}function he(e,t){const _=t(4*e.length,4)>>>0;for(let t=0;t<e.length;t++){const r=N(e[t]);ie().setUint32(_+4*t,r,!0)}return ve=e.length,_}function me(e,t,_){if(void 0===_){const _=Se.encode(e),r=t(_.length,1)>>>0;return pe().subarray(r,r+_.length).set(_),ve=_.length,r}let r=e.length,n=t(r,1)>>>0;const i=pe();let s=0;for(;s<r;s++){const t=e.charCodeAt(s);if(t>127)break;i[n+s]=t}if(s!==r){0!==s&&(e=e.slice(s)),n=_(n,r,r=s+3*e.length,1)>>>0;const t=pe().subarray(n+s,n+r);s+=Se.encodeInto(e,t).written,n=_(n,r,s,1)>>>0}return ve=s,n}function ze(e){const t=Re.__wbindgen_externrefs.get(e);return Re.__externref_table_dealloc(e),t}let Fe=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Fe.decode();const qe=2146435072;let xe=0;const Se=new TextEncoder;"encodeInto"in Se||(Se.encodeInto=function(e,t){const _=Se.encode(e);return t.set(_),{read:e.length,written:_.length}});let Re,ve=0;function ke(e,t){return Re=e.exports,ne=null,se=null,ae=null,ce=null,ge=null,Re.__wbindgen_start(),Re}function Ce(e){if(void 0!==Re)return Re;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module:e}=e):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const t=k();return e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e)),ke(new WebAssembly.Instance(e,t))}async function Oe(e){if(void 0!==Re)return Re;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module_or_path:e}=e):console.warn("using deprecated parameters for the initialization function; pass a single object instead"));const t=k();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:_,module:r}=await async function(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(!e.ok||!function(e){switch(e){case"basic":case"cors":case"default":return!0}return!1}(e.type)||"application/wasm"===e.headers.get("Content-Type"))throw t;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t)}const _=await e.arrayBuffer();return await WebAssembly.instantiate(_,t)}{const _=await WebAssembly.instantiate(e,t);return _ instanceof WebAssembly.Instance?{instance:_,module:e}:_}}(await e,t);return ke(_)}_.d(t,["DisplayEncoding",0,i,"GeometryType",0,g])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7214],{29242(t,e,r){function n(){return[1,0,0,0,1,0,0,0,1]}function s(t,e,r,n,s,i,u,o,a){return[t,e,r,n,s,i,u,o,a]}r.d(e,{fA:()=>s,vt:()=>n});const i=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:n,fromValues:s},Symbol.toStringTag,{value:"Module"})),r.d(e,["zK",0,i])},82534(t,e,r){function n(){return[0,0,0,1]}function s(t){return[t[0],t[1],t[2],t[3]]}r.d(e,{o8:()=>s,vt:()=>n});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:n,fromValues:function(t,e,r,n){return[t,e,r,n]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["zK",0,i])},48163(t,e,r){function n(){return[0,0]}function s(t){return[t[0],t[1]]}function i(t,e){return[t,e]}function u(){return i(1,1)}function o(){return i(-1,-1)}function a(){return i(1,0)}function f(){return i(0,1)}r.d(e,{fA:()=>i,o8:()=>s,vt:()=>n});const c=u(),l=o(),h=a(),d=f();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:l,ONES:c,UNIT_X:h,UNIT_Y:d,ZEROS:[0,0],clone:s,create:n,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){const r=Math.min(2,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e},fromValues:i,negativeOnes:o,ones:u,unitX:a,unitY:f,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["IA",0,l,"Un",0,c])},51850(t,e,r){function n(){return[0,0,0]}function s(t){return[t[0],t[1],t[2]]}function i(t,e,r){return[t,e,r]}function u(t,e,r){return[t,e,r]}function o(t,e=[0,0,0]){const r=Math.min(3,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e}function a(){return i(1,1,1)}function f(){return i(1,0,0)}function c(){return i(0,1,0)}function l(){return i(0,0,1)}r.d(e,{CN:()=>u,ci:()=>o,fA:()=>i,o8:()=>s,vt:()=>n});const h=[0,0,0],d=a(),p=f(),y=c(),m=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:p,UNIT_Y:y,UNIT_Z:m,ZEROS:h,clone:s,create:n,freeze:u,fromArray:o,fromValues:i,ones:a,unitX:f,unitY:c,unitZ:l,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["Cb",0,m,"Cw",0,p,"JP",0,y,"Un",0,d,"uY",0,h])},91829(t,e,r){function n(){return[0,0,0,0]}function s(t,e,r,n){return[t,e,r,n]}function i(){return s(1,1,1,1)}function u(){return s(1,0,0,0)}function o(){return s(0,1,0,0)}function a(){return s(0,0,1,0)}function f(){return s(0,0,0,1)}r.d(e,{_Y:()=>f,fA:()=>s,vt:()=>n});const c=[0,0,0,0],l=i(),h=u(),d=o(),p=a(),y=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:l,UNIT_W:y,UNIT_X:h,UNIT_Y:d,UNIT_Z:p,ZEROS:c,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:n,freeze:function(t,e,r,n){return[t,e,r,n]},fromArray:function(t,e=[0,0,0,0]){const r=Math.min(4,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e},fromValues:s,ones:i,unitW:f,unitX:u,unitY:o,unitZ:a,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["Un",0,l,"uY",0,c])},34304(t,e,r){r.d(e,{DF:()=>a,FD:()=>s,ct:()=>f});let n=1e-6;function s(){return n}const i=Math.random,u=Math.PI/180,o=180/Math.PI;function a(t){return t*u}function f(t){return t*o}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:i,equals:function(t,e){return Math.abs(t-e)<=n*Math.max(1,Math.abs(t),Math.abs(e))},getEpsilon:s,setEpsilon:function(t){n=t},toDegree:f,toRadian:a},Symbol.toStringTag,{value:"Module"})),r.d(e,["Ov",0,i])},77690(t,e,r){r.d(e,{B8:()=>o,Ge:()=>d,I0:()=>h,KC:()=>a,a4:()=>f,hZ:()=>i,hs:()=>l,lw:()=>c,mg:()=>u,z0:()=>s});var n=r(34304);function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function i(t,e,r,n,s,i,u,o,a,f){return t[0]=e,t[1]=r,t[2]=n,t[3]=s,t[4]=i,t[5]=u,t[6]=o,t[7]=a,t[8]=f,t}function u(t,e){if(t===e){const r=e[1],n=e[2],s=e[5];t[1]=e[3],t[2]=e[6],t[3]=r,t[5]=e[7],t[6]=n,t[7]=s}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function o(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],u=e[4],o=e[5],a=e[6],f=e[7],c=e[8],l=c*u-o*f,h=-c*i+o*a,d=f*i-u*a;let p=r*l+n*h+s*d;return p?(p=1/p,t[0]=l*p,t[1]=(-c*n+s*f)*p,t[2]=(o*n-s*u)*p,t[3]=h*p,t[4]=(c*r-s*a)*p,t[5]=(-o*r+s*i)*p,t[6]=d*p,t[7]=(-f*r+n*a)*p,t[8]=(u*r-n*i)*p,t):null}function a(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],u=e[4],o=e[5],a=e[6],f=e[7],c=e[8];return t[0]=u*c-o*f,t[1]=s*f-n*c,t[2]=n*o-s*u,t[3]=o*a-i*c,t[4]=r*c-s*a,t[5]=s*i-r*o,t[6]=i*f-u*a,t[7]=n*a-r*f,t[8]=r*u-n*i,t}function f(t){const e=t[0],r=t[1],n=t[2],s=t[3],i=t[4],u=t[5],o=t[6],a=t[7],f=t[8];return e*(f*i-u*a)+r*(-f*s+u*o)+n*(a*s-i*o)}function c(t,e,r){const n=e[0],s=e[1],i=e[2],u=e[3],o=e[4],a=e[5],f=e[6],c=e[7],l=e[8],h=r[0],d=r[1],p=r[2],y=r[3],m=r[4],E=r[5],M=r[6],B=r[7],T=r[8];return t[0]=h*n+d*u+p*f,t[1]=h*s+d*o+p*c,t[2]=h*i+d*a+p*l,t[3]=y*n+m*u+E*f,t[4]=y*s+m*o+E*c,t[5]=y*i+m*a+E*l,t[6]=M*n+B*u+T*f,t[7]=M*s+B*o+T*c,t[8]=M*i+B*a+T*l,t}function l(t,e,r){const n=r[0],s=r[1],i=r[2];return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=s*e[3],t[4]=s*e[4],t[5]=s*e[5],t[6]=i*e[6],t[7]=i*e[7],t[8]=i*e[8],t}function h(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],u=r+r,o=n+n,a=s+s,f=r*u,c=n*u,l=n*o,h=s*u,d=s*o,p=s*a,y=i*u,m=i*o,E=i*a;return t[0]=1-l-p,t[3]=c-E,t[6]=h+m,t[1]=c+E,t[4]=1-f-p,t[7]=d-y,t[2]=h-m,t[5]=d+y,t[8]=1-f-l,t}function d(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],u=e[4],o=e[5],a=e[6],f=e[7],c=e[8],l=e[9],h=e[10],d=e[11],p=e[12],y=e[13],m=e[14],E=e[15],M=r*o-n*u,B=r*a-s*u,T=r*f-i*u,_=n*a-s*o,b=n*f-i*o,S=s*f-i*a,A=c*y-l*p,g=c*m-h*p,v=c*E-d*p,x=l*m-h*y,N=l*E-d*y,R=h*E-d*m;let I=M*R-B*N+T*x+_*v-b*g+S*A;return I?(I=1/I,t[0]=(o*R-a*N+f*x)*I,t[1]=(a*v-u*R-f*g)*I,t[2]=(u*N-o*v+f*A)*I,t[3]=(s*N-n*R-i*x)*I,t[4]=(r*R-s*v+i*g)*I,t[5]=(n*v-r*N-i*A)*I,t[6]=(y*S-m*b+E*_)*I,t[7]=(m*T-p*S-E*B)*I,t[8]=(p*b-y*T+E*M)*I,t):null}function p(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t[6]=e[6]-r[6],t[7]=e[7]-r[7],t[8]=e[8]-r[8],t}const y=c,m=p;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t},adjoint:a,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:f,equals:function(t,e){const r=t[0],s=t[1],i=t[2],u=t[3],o=t[4],a=t[5],f=t[6],c=t[7],l=t[8],h=e[0],d=e[1],p=e[2],y=e[3],m=e[4],E=e[5],M=e[6],B=e[7],T=e[8],_=(0,n.FD)();return Math.abs(r-h)<=_*Math.max(1,Math.abs(r),Math.abs(h))&&Math.abs(s-d)<=_*Math.max(1,Math.abs(s),Math.abs(d))&&Math.abs(i-p)<=_*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(u-y)<=_*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(o-m)<=_*Math.max(1,Math.abs(o),Math.abs(m))&&Math.abs(a-E)<=_*Math.max(1,Math.abs(a),Math.abs(E))&&Math.abs(f-M)<=_*Math.max(1,Math.abs(f),Math.abs(M))&&Math.abs(c-B)<=_*Math.max(1,Math.abs(c),Math.abs(B))&&Math.abs(l-T)<=_*Math.max(1,Math.abs(l),Math.abs(T))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:s,fromQuat:h,fromRotation:function(t,e){const r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=-r,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:o,isOrthoNormal:function(t){const e=(0,n.FD)(),r=t[0],s=t[1],i=t[2],u=t[3],o=t[4],a=t[5],f=t[6],c=t[7],l=t[8];return Math.abs(1-(r*r+u*u+f*f))<=e&&Math.abs(1-(s*s+o*o+c*c))<=e&&Math.abs(1-(i*i+a*a+l*l))<=e},mul:y,multiply:c,multiplyScalar:function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*r,t},multiplyScalarAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t},normalFromMat4:d,normalFromMat4Legacy:function(t,e){const r=e[0],n=e[1],s=e[2],i=e[4],u=e[5],o=e[6],a=e[8],f=e[9],c=e[10],l=c*u-o*f,h=-c*i+o*a,d=f*i-u*a,p=r*l+n*h+s*d;if(!p)return null;const y=1/p;return t[0]=l*y,t[1]=(-c*n+s*f)*y,t[2]=(o*n-s*u)*y,t[3]=h*y,t[4]=(c*r-s*a)*y,t[5]=(-o*r+s*i)*y,t[6]=d*y,t[7]=(-f*r+n*a)*y,t[8]=(u*r-n*i)*y,t},projection:function(t,e,r){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,r){const n=e[0],s=e[1],i=e[2],u=e[3],o=e[4],a=e[5],f=e[6],c=e[7],l=e[8],h=Math.sin(r),d=Math.cos(r);return t[0]=d*n+h*u,t[1]=d*s+h*o,t[2]=d*i+h*a,t[3]=d*u-h*n,t[4]=d*o-h*s,t[5]=d*a-h*i,t[6]=f,t[7]=c,t[8]=l,t},scale:l,scaleByVec2:function(t,e,r){const n=r[0],s=r[1];return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=s*e[3],t[4]=s*e[4],t[5]=s*e[5],t},set:i,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:m,subtract:p,translate:function(t,e,r){const n=e[0],s=e[1],i=e[2],u=e[3],o=e[4],a=e[5],f=e[6],c=e[7],l=e[8],h=r[0],d=r[1];return t[0]=n,t[1]=s,t[2]=i,t[3]=u,t[4]=o,t[5]=a,t[6]=h*n+d*u+f,t[7]=h*s+d*o+c,t[8]=h*i+d*a+l,t},transpose:u},Symbol.toStringTag,{value:"Module"}))},37585(t,e,r){r.d(e,{C:()=>i,Cc:()=>b,Io:()=>m,LI:()=>d,Ln:()=>y,Om:()=>_,Re:()=>a,S8:()=>T,T9:()=>l,WQ:()=>o,aI:()=>v,e$:()=>A,hG:()=>E,hZ:()=>u,hs:()=>p,l0:()=>S,qE:()=>h,t2:()=>g});var n=r(34727),s=r(34304);function i(t,e){return t[0]=e[0],t[1]=e[1],t}function u(t,e,r){return t[0]=e,t[1]=r,t}function o(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function a(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function f(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function c(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function l(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}function h(t,e,r,s){return t[0]=(0,n.qE)(e[0],r[0],s[0]),t[1]=(0,n.qE)(e[1],r[1],s[1]),t}function d(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function p(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function y(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t}function m(t,e){const r=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(r*r+n*n)}function E(t,e){const r=e[0]-t[0],n=e[1]-t[1];return r*r+n*n}function M(t){const e=t[0],r=t[1];return Math.sqrt(e*e+r*r)}function B(t){const e=t[0],r=t[1];return e*e+r*r}function T(t,e){const r=e[0],n=e[1];let s=r*r+n*n;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s),t}function _(t,e){return t[0]*e[0]+t[1]*e[1]}function b(t,e,r,n){const s=e[0],i=e[1];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t}function S(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[2]*s+r[4],t[1]=r[1]*n+r[3]*s+r[5],t}function A(t,e,r,n){const s=e[0]-r[0],i=e[1]-r[1],u=Math.sin(n),o=Math.cos(n);return t[0]=s*o-i*u+r[0],t[1]=s*u+i*o+r[1],t}function g(t,e){return t[0]===e[0]&&t[1]===e[1]}function v(t,e){const r=t[0],n=t[1],i=e[0],u=e[1],o=(0,s.FD)();return Math.abs(r-i)<=o*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(n-u)<=o*Math.max(1,Math.abs(n),Math.abs(u))}const x=M,N=a,R=f,I=c,O=m,C=E,F=B;Object.freeze(Object.defineProperty({__proto__:null,add:o,angle:function(t,e){const r=t[0],n=t[1],s=e[0],i=e[1];let u=r*r+n*n;u>0&&(u=1/Math.sqrt(u));let o=s*s+i*i;o>0&&(o=1/Math.sqrt(o));const a=(r*s+n*i)*u*o;return a>1?0:a<-1?Math.PI:Math.acos(a)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},clamp:h,copy:i,cross:function(t,e,r){const n=e[0]*r[1]-e[1]*r[0];return t[0]=t[1]=0,t[2]=n,t},dist:O,distance:m,div:I,divide:c,dot:_,equals:v,exactEquals:g,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},len:x,length:M,lerp:b,max:l,min:function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t},mul:R,multiply:f,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:T,projectAndScale:function(t,e,r,n,s){let i=e[0]-r[0],u=e[1]-r[1];const o=(n[0]*i+n[1]*u)*(s-1);return i=n[0]*o,u=n[1]*o,t[0]=e[0]+i,t[1]=e[1]+u,t},random:function(t,e=1){const r=2*(0,s.Ov)()*Math.PI;return t[0]=Math.cos(r)*e,t[1]=Math.sin(r)*e,t},rotate:A,round:d,scale:p,scaleAndAdd:y,set:u,sqrDist:C,sqrLen:F,squaredDistance:E,squaredLength:B,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:N,subtract:a,transformMat2:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[2]*s,t[1]=r[1]*n+r[3]*s,t},transformMat2d:S,transformMat3:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[3]*s+r[6],t[1]=r[1]*n+r[4]*s+r[7],t},transformMat4:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[4]*s+r[12],t[1]=r[1]*n+r[5]*s+r[13],t}},Symbol.toStringTag,{value:"Module"})),r.d(e,["Il",0,x,"jb",0,N,"xg",0,O])},35522(t,e,r){r.d(e,{$A:()=>g,Bw:()=>i,C:()=>u,Cc:()=>v,DI:()=>b,Io:()=>M,Ln:()=>E,Om:()=>A,Qr:()=>l,Re:()=>f,S8:()=>S,T9:()=>y,WQ:()=>a,Z0:()=>x,_S:()=>d,aI:()=>w,ei:()=>N,fw:()=>I,gL:()=>R,hG:()=>B,hZ:()=>o,hs:()=>m,jk:()=>p,lw:()=>c,m3:()=>T,oW:()=>U,t2:()=>F,tn:()=>h,ze:()=>_});var n=r(51850),s=r(34304);function i(t){const e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function o(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}function a(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}function f(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function c(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}function l(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}function h(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function d(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function p(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}function y(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}function m(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}function E(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}function M(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2];return Math.sqrt(r*r+n*n+s*s)}function B(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2];return r*r+n*n+s*s}function T(t){const e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}function _(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function b(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function S(t,e){const r=e[0],n=e[1],s=e[2];let i=r*r+n*n+s*s;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function A(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function g(t,e,r){const n=e[0],s=e[1],i=e[2],u=r[0],o=r[1],a=r[2];return t[0]=s*a-i*o,t[1]=i*u-n*a,t[2]=n*o-s*u,t}function v(t,e,r,n){const s=e[0],i=e[1],u=e[2];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t[2]=u+n*(r[2]-u),t}function x(t,e,r){const n=e[0],s=e[1],i=e[2];return t[0]=r[0]*n+r[4]*s+r[8]*i+r[12],t[1]=r[1]*n+r[5]*s+r[9]*i+r[13],t[2]=r[2]*n+r[6]*s+r[10]*i+r[14],t}function N(t,e,r){const n=e[0],s=e[1],i=e[2];return t[0]=n*r[0]+s*r[3]+i*r[6],t[1]=n*r[1]+s*r[4]+i*r[7],t[2]=n*r[2]+s*r[5]+i*r[8],t}function R(t,e,r){return I(t,e,r[0],r[1],r[2],r[3])}function I(t,e,r,n,s,i){const u=e[0],o=e[1],a=e[2],f=n*a-s*o,c=s*u-r*a,l=r*o-n*u,h=n*l-s*c,d=s*f-r*l,p=r*c-n*f,y=2*i;return t[0]=u+f*y+2*h,t[1]=o+c*y+2*d,t[2]=a+l*y+2*p,t}const O=(0,n.vt)(),C=(0,n.vt)();function F(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function w(t,e){if(t===e)return!0;const r=t[0],n=t[1],i=t[2],u=e[0],o=e[1],a=e[2],f=(0,s.FD)();return Math.abs(r-u)<=f*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(n-o)<=f*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-a)<=f*Math.max(1,Math.abs(i),Math.abs(a))}function U(t,e,r){const n=r[0]-e[0],s=r[1]-e[1],i=r[2]-e[2];let u=n*n+s*s+i*i;return u>0?(u=1/Math.sqrt(u),t[0]=n*u,t[1]=s*u,t[2]=i*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const L=f,D=c,G=l,P=M,V=B,q=i,Y=T;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:a,angle:function(t,e){S(O,t),S(C,e);const r=A(O,C);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(t,e,r,n,s,i){const u=1-i,o=u*u,a=i*i,f=o*u,c=3*i*o,l=3*a*u,h=a*i;return t[0]=e[0]*f+r[0]*c+n[0]*l+s[0]*h,t[1]=e[1]*f+r[1]*c+n[1]*l+s[1]*h,t[2]=e[2]*f+r[2]*c+n[2]*l+s[2]*h,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,r=1){return t[0]=Math.min(Math.max(t[0],e),r),t[1]=Math.min(Math.max(t[1],e),r),t[2]=Math.min(Math.max(t[2],e),r),t},copy:u,cross:g,crossAndNormalize:function(t,e,r){const n=e[0],s=e[1],i=e[2],u=r[0],o=r[1],a=r[2],f=s*a-i*o,c=i*u-n*a,l=n*o-s*u,h=Math.sqrt(f*f+c*c+l*l);return t[0]=f/h,t[1]=c/h,t[2]=l/h,t},direction:U,dist:P,distance:M,div:G,divide:l,dot:A,equals:w,exactEquals:F,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,r,n,s,i){const u=i*i,o=u*(2*i-3)+1,a=u*(i-2)+i,f=u*(i-1),c=u*(3-2*i);return t[0]=e[0]*o+r[0]*a+n[0]*f+s[0]*c,t[1]=e[1]*o+r[1]*a+n[1]*f+s[1]*c,t[2]=e[2]*o+r[2]*a+n[2]*f+s[2]*c,t},inverse:b,len:q,length:i,lerp:v,max:y,min:p,mul:D,multiply:c,negate:_,normalize:S,random:function(t,e=1){const r=s.Ov,n=2*r()*Math.PI,i=2*r()-1,u=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*u,t[1]=Math.sin(n)*u,t[2]=i*e,t},rotateX:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[0],i[1]=s[1]*Math.cos(n)-s[2]*Math.sin(n),i[2]=s[1]*Math.sin(n)+s[2]*Math.cos(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateY:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[2]*Math.sin(n)+s[0]*Math.cos(n),i[1]=s[1],i[2]=s[2]*Math.cos(n)-s[0]*Math.sin(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateZ:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[0]*Math.cos(n)-s[1]*Math.sin(n),i[1]=s[0]*Math.sin(n)+s[1]*Math.cos(n),i[2]=s[2],t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:m,scaleAndAdd:E,scaleTo:function(t,e){return m(t,t,e/q(t))},set:o,sign:d,sqrDist:V,sqrLen:Y,squaredDistance:B,squaredLength:T,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:L,subtract:f,transformMat3:N,transformMat4:x,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:R,transformQuatValues:I},Symbol.toStringTag,{value:"Module"})),r.d(e,["Il",0,q,"jb",0,L,"lo",0,V,"uE",0,Y])},78955(t,e,r){r.d(e,{Bw:()=>m,C:()=>s,Cc:()=>T,LI:()=>h,Om:()=>B,S8:()=>M,T9:()=>l,WQ:()=>u,Z0:()=>_,aI:()=>S,hG:()=>y,hZ:()=>i,hs:()=>d,jk:()=>c,m3:()=>E,t2:()=>b});var n=r(34304);function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function i(t,e,r,n,s){return t[0]=e,t[1]=r,t[2]=n,t[3]=s,t}function u(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t}function o(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t}function a(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t[3]=e[3]*r[3],t}function f(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t[3]=e[3]/r[3],t}function c(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t[3]=Math.min(e[3],r[3]),t}function l(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t[3]=Math.max(e[3],r[3]),t}function h(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t}function d(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}function p(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2],i=e[3]-t[3];return Math.sqrt(r*r+n*n+s*s+i*i)}function y(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2],i=e[3]-t[3];return r*r+n*n+s*s+i*i}function m(t){const e=t[0],r=t[1],n=t[2],s=t[3];return Math.sqrt(e*e+r*r+n*n+s*s)}function E(t){const e=t[0],r=t[1],n=t[2],s=t[3];return e*e+r*r+n*n+s*s}function M(t,e){const r=e[0],n=e[1],s=e[2],i=e[3];let u=r*r+n*n+s*s+i*i;return u>0&&(u=1/Math.sqrt(u),t[0]=r*u,t[1]=n*u,t[2]=s*u,t[3]=i*u),t}function B(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function T(t,e,r,n){const s=e[0],i=e[1],u=e[2],o=e[3];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t[2]=u+n*(r[2]-u),t[3]=o+n*(r[3]-o),t}function _(t,e,r){const n=e[0],s=e[1],i=e[2],u=e[3];return t[0]=r[0]*n+r[4]*s+r[8]*i+r[12]*u,t[1]=r[1]*n+r[5]*s+r[9]*i+r[13]*u,t[2]=r[2]*n+r[6]*s+r[10]*i+r[14]*u,t[3]=r[3]*n+r[7]*s+r[11]*i+r[15]*u,t}function b(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function S(t,e){const r=t[0],s=t[1],i=t[2],u=t[3],o=e[0],a=e[1],f=e[2],c=e[3],l=(0,n.FD)();return Math.abs(r-o)<=l*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(s-a)<=l*Math.max(1,Math.abs(s),Math.abs(a))&&Math.abs(i-f)<=l*Math.max(1,Math.abs(i),Math.abs(f))&&Math.abs(u-c)<=l*Math.max(1,Math.abs(u),Math.abs(c))}const A=o,g=a,v=f,x=p,N=y,R=m,I=E;Object.freeze(Object.defineProperty({__proto__:null,add:u,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},copy:s,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:x,distance:p,div:v,divide:f,dot:B,equals:S,exactEquals:b,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},len:R,length:m,lerp:T,max:l,min:c,mul:g,multiply:a,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:M,random:function(t,e=1){const r=n.Ov;let s,i,u,o,a,f;do{s=2*r()-1,i=2*r()-1,a=s*s+i*i}while(a>=1);do{u=2*r()-1,o=2*r()-1,f=u*u+o*o}while(f>=1);const c=Math.sqrt((1-a)/f);return t[0]=e*s,t[1]=e*i,t[2]=e*u*c,t[3]=e*o*c,t},round:h,scale:d,scaleAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t},set:i,sqrDist:N,sqrLen:I,squaredDistance:y,squaredLength:E,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:A,subtract:o,transformMat4:_,transformQuat:function(t,e,r){const n=e[0],s=e[1],i=e[2],u=r[0],o=r[1],a=r[2],f=r[3],c=f*n+o*i-a*s,l=f*s+a*n-u*i,h=f*i+u*s-o*n,d=-u*n-o*s-a*i;return t[0]=c*f+d*-u+l*-a-h*-o,t[1]=l*f+d*-o+h*-u-c*-a,t[2]=h*f+d*-a+c*-o-l*-u,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},34727(t,e,r){r.d(e,{$8:()=>A,Cc:()=>o,Hx:()=>m,Io:()=>b,KJ:()=>c,OS:()=>x,Sp:()=>d,XM:()=>l,YN:()=>h,ZH:()=>y,b6:()=>S,cU:()=>s,gg:()=>p,hs:()=>a,kU:()=>f,mP:()=>u,or:()=>v,pF:()=>R,qE:()=>i});const n=new Float32Array(1);function s(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function i(t,e,r){return Math.min(Math.max(t,e),r)}function u(t,e){return 0===e?0:Math.ceil(t/e)*e}function o(t,e,r){return t+(e-t)*r}function a(t,e,r,n,s){return o(n,s,(t-e)/(r-e))}function f(t){return t*Math.PI/180}function c(t){return 180*t/Math.PI}function l(t){return Math.acos(i(t,-1,1))}function h(t){return Math.asin(i(t,-1,1))}function d(t,e,r=1e-6){return t===e||!(!Number.isFinite(t)||!Number.isFinite(e))&&(t>e?t-e:e-t)<=r}function p(t,e,r=1e-6){return!d(t,e,r)&&t>e}function y(t,e,r=1e-6){return!d(t,e,r)&&t<e}function m(t,e,r=1e-6){return d(t,e,r)||t>e}const E=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function M(t){return E.setFloat64(0,t),E.getBigInt64(0)}const B=1000000n,T=_(1);function _(t){const e=M(t=Math.abs(t)),r=function(t){return E.setBigInt64(0,t),E.getFloat64(0)}(e<=B?B:e-B);return Math.abs(t-r)}function b(t,e,r=T){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;if(null!=r&&_(Math.min(Math.abs(t),Math.abs(e)))<r)return Math.abs(t-e)<=r;const n=M(t),s=M(e);return n<0==s<0&&!((n<s?s-n:n-s)>B)}function S(t,e,r=1e-6){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;const n=Math.abs(t-e),s=Math.abs(t),i=Math.abs(e);if(0===t||0===e||s<1e-12&&i<1e-12){if(n>.01*r)return!1}else if(n/(s+i)>r)return!1;return!0}function A(t){return g(Math.max(-N,Math.min(t,N)))}function g(t){return n[0]=t,n[0]}function v(t){const e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],r=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],n=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(d(e,1)&&d(r,1)&&d(n,1))}function x(t,e){return(t%e+e)%e}const N=g(34028234663852886e22);function R(t,e,r){if(void 0===r||0===+r)return Math[t](e);if(e=+e,r=+r,isNaN(e)||"number"!=typeof r||r%1!=0)return NaN;let n=e.toString().split("e");return n=(e=Math[t](+(n[0]+"e"+(n[1]?+n[1]-r:-r)))).toString().split("e"),+(n[0]+"e"+(n[1]?+n[1]+r:r))}r.d(e,["pq",0,N])},13030(t,e,r){r.d(e,{Y$:()=>m,XW:()=>y,qB:()=>x,Qt:()=>Z,My:()=>W,bf:()=>z,jZ:()=>S,j0:()=>A,Sx:()=>g,E$:()=>v,Qy:()=>nt,h:()=>U,P:()=>P,SL:()=>O,dy:()=>et,ES:()=>st,gH:()=>M,ZD:()=>E,si:()=>N,mJ:()=>k,UL:()=>J,D6:()=>j,Yi:()=>L,An:()=>V,LC:()=>C,xs:()=>T,EC:()=>B,Xm:()=>R,Vp:()=>$,zD:()=>K,m8:()=>H,nS:()=>D,H$:()=>q,eI:()=>F,td:()=>rt,Eq:()=>b,jz:()=>_,Aj:()=>I,E7:()=>Q,Y4:()=>tt,TX:()=>X,Uz:()=>G,ml:()=>Y,XP:()=>w});var n=r(34727),s=r(37585),i=r(48163),u=r(78955),o=r(91829);class a{static{this.ElementCount=9}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=9;const i=this.TypedArrayConstructor;void 0===n&&(n=9*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<9;t++)e[t]=this.typedBuffer[r++];return e}setMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<9;t++)this.typedBuffer[r++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;for(let t=0;t<9;++t)n[i++]=s[u++]}get buffer(){return this.typedBuffer.buffer}}class f{static{this.ElementCount=16}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=16;const i=this.TypedArrayConstructor;void 0===n&&(n=16*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<16;t++)e[t]=this.typedBuffer[r++];return e}setMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<16;t++)this.typedBuffer[r++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}copyFrom(t,e,r){this.copyFromTypedBuffer(t,e.typedBuffer,r*e.typedBufferStride)}copyFromTypedBuffer(t,e,r){const n=this.typedBuffer;let s=t*this.typedBufferStride;for(let t=0;t<16;++t)n[s++]=e[r++]}get buffer(){return this.typedBuffer.buffer}}class c{static{this.ElementCount=1}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=1;const i=this.TypedArrayConstructor;void 0===n&&(n=i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.stride=n,this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride)}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}get(t){return this.typedBuffer[t*this.typedBufferStride]}set(t,e){this.typedBuffer[t*this.typedBufferStride]=e}get buffer(){return this.typedBuffer.buffer}}class l{static{this.ElementCount=2}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.start=r,this.elementCount=2;const i=this.TypedArrayConstructor;void 0===n&&(n=2*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,s.hZ)(e,this.typedBuffer[t],this.typedBuffer[t+1])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t]=e[1]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;n[i++]=s[u++],n[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}var h=r(35522);class d{static{this.ElementCount=3}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=3;const i=this.TypedArrayConstructor;void 0===n&&(n=3*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,h.hZ)(e,this.typedBuffer[t],this.typedBuffer[t+1],this.typedBuffer[t+2])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t]=e[2]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,n){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t]=n}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;n[i++]=s[u++],n[i++]=s[u++],n[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}class p{static{this.ElementCount=4}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.start=r,this.elementCount=4;const i=this.TypedArrayConstructor;void 0===n&&(n=4*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,u.hZ)(e,this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t++]=e[2],this.typedBuffer[t]=e[3]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,n,s){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t++]=n,this.typedBuffer[t]=s}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;n[i++]=s[u++],n[i++]=s[u++],n[i++]=s[u++],n[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}class y extends c{constructor(t,e=0,r,n){super(Float16Array,t,e,r,n),this.elementType="f16"}static{this.ElementType="f16"}}class m extends c{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}static{this.ElementType="f32"}}class E extends l{constructor(t,e=0,r,n){super(Float16Array,t,e,r,n),this.elementType="f16"}slice(t,e){return this.sliceBuffer(E,t,e)}static{this.ElementType="f16"}}class M extends l{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(M,t,e)}static{this.ElementType="f32"}}class B extends d{constructor(t,e=0,r,n){super(Float16Array,t,e,r,n),this.elementType="f16"}slice(t,e){return this.sliceBuffer(B,t,e)}static{this.ElementType="f16"}}class T extends d{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(T,t,e)}static fromTypedArray(t,e){return new T(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f32"}}class _ extends p{constructor(t,e=0,r,n){super(Float16Array,t,e,r,n),this.elementType="f16"}slice(t,e){return this.sliceBuffer(_,t,e)}static{this.ElementType="f16"}}class b extends p{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(b,t,e)}static{this.ElementType="f32"}}class S extends a{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(S,t,e)}static{this.ElementType="f32"}}class A extends a{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(A,t,e)}static{this.ElementType="f64"}}class g extends f{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(g,t,e)}static{this.ElementType="f32"}}class v extends f{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(v,t,e)}static{this.ElementType="f64"}}class x extends c{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(x,t,e)}static{this.ElementType="f64"}}class N extends l{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(N,t,e)}static{this.ElementType="f64"}}class R extends d{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(R,t,e)}static fromTypedArray(t,e){return new R(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f64"}}class I extends p{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(I,t,e)}static{this.ElementType="f64"}}class O extends c{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(O,t,e)}static{this.ElementType="u8"}}class C extends l{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(C,t,e)}static{this.ElementType="u8"}}class F extends d{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(F,t,e)}static fromTypedArray(t,e){return new F(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="u8"}}class w extends p{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(w,t,e)}static{this.ElementType="u8"}}class U extends c{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(U,t,e)}static{this.ElementType="u16"}}class L extends l{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(L,t,e)}static{this.ElementType="u16"}}class D extends d{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(D,t,e)}static{this.ElementType="u16"}}class G extends p{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(G,t,e)}static{this.ElementType="u16"}}class P extends c{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(P,t,e)}static{this.ElementType="u32"}}class V extends l{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(V,t,e)}static{this.ElementType="u32"}}class q extends d{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(q,t,e)}static{this.ElementType="u32"}}class Y extends p{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(Y,t,e)}static{this.ElementType="u32"}}class z extends c{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(z,t,e)}static{this.ElementType="i8"}}class j extends l{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(j,t,e)}static{this.ElementType="i8"}}class H extends d{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(H,t,e)}static{this.ElementType="i8"}}class X extends p{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(X,t,e)}static{this.ElementType="i8"}}class Z extends c{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(Z,t,e)}static{this.ElementType="i16"}}class k extends l{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(k,t,e)}static{this.ElementType="i16"}}class $ extends d{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer($,t,e)}static{this.ElementType="i16"}}class Q extends p{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(Q,t,e)}static{this.ElementType="i16"}}class W extends c{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(W,t,e)}static{this.ElementType="i32"}}class J extends l{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(J,t,e)}static{this.ElementType="i32"}}class K extends d{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(K,t,e)}static{this.ElementType="i32"}}class tt extends p{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(tt,t,e)}static{this.ElementType="i32"}}class et extends O{constructor(t,e=0,r,n){super(t,e,r,n)}get(t){return this.typedBuffer[t*this.typedBufferStride]/255}set(t,e){this.typedBuffer[t*this.typedBufferStride]=Math.round(255*(0,n.qE)(e,0,1))}slice(t,e){return this.sliceBuffer(et,t,e)}}class rt extends w{constructor(t,e=0,r,n){super(t,e,r,n)}getVec(t,e){return(0,u.hs)(e,super.getVec(t,e),1/255)}setVec(t,e){(0,u.jk)(ut,(0,u.T9)(ut,e,o.uY),o.Un),(0,u.hs)(ut,ut,255),(0,u.LI)(ut,ut),super.setVec(t,ut)}get(t,e){return super.get(t,e)/255}set(t,e,r){super.set(t,e,Math.round(255*(0,n.qE)(r,0,1)))}setValues(t,e,r,n,s){(0,u.hZ)(ut,e,r,n,s),this.setVec(t,ut)}slice(t,e){return this.sliceBuffer(rt,t,e)}}class nt extends Z{constructor(t,e=0,r,n){super(t,e,r,n)}get(t){return Math.max(super.get(t)/32767,-1)}set(t,e){super.set(t,Math.round(32767*(0,n.qE)(e,-1,1)))}slice(t,e){return this.sliceBuffer(nt,t,e)}}class st extends k{constructor(t,e=0,r,n){super(t,e,r,n)}getVec(t,e){return(0,s.hZ)(it,-1,-1),(0,s.T9)(e,(0,s.hs)(e,super.getVec(t,e),1/32767),it)}setVec(t,e){(0,s.qE)(it,e,i.IA,i.Un),(0,s.hs)(it,it,32767),(0,s.LI)(it,it),super.setVec(t,it)}get(t,e){return Math.max(super.get(t,e)/32767,-1)}set(t,e,r){super.set(t,e,Math.round(32767*(0,n.qE)(r,-1,1)))}setValues(t,e,r){(0,s.hZ)(it,e,r),this.setVec(t,it)}slice(t,e){return this.sliceBuffer(st,t,e)}}const it=(0,i.vt)(),ut=(0,o.vt)()},90239(t,e,r){function n(t){switch(t){case"u8":case"i8":return 1;case"u16":case"i16":case"f16":return 2;case"u32":case"i32":case"f32":return 4;case"f64":return 8}}r.d(e,{GJ:()=>n})},77214(t,e,r){r.r(e),r.d(e,{destroyContext:()=>b,initialize:()=>B,processVertices:()=>_});var n=r(82534),s=r(51850),i=r(13030),u=r(77690),o=r(29242),a=r(35522),f=r(89606);class c{constructor(t=1/0,e=-1/0){this.minElevation=t,this.maxElevation=e}get elevationRangeValid(){return!Number.isNaN(this.minElevation)}get isEmpty(){return!(this.minElevation<=this.maxElevation)}contains(t){return this.minElevation<=t.minElevation&&this.maxElevation>=t.maxElevation}invalidateElevationRange(){this.minElevation=NaN}initializeEmpty(){this.minElevation=1/0,this.maxElevation=-1/0}expandElevationRange(t){const e=Math.min(this.minElevation,t.minElevation),r=Math.max(this.maxElevation,t.maxElevation),n=e!==this.minElevation||r!==this.maxElevation;return this.minElevation=e,this.maxElevation=r,n}expandElevationRangeValues(t,e){const r=Math.min(this.minElevation,t),n=Math.max(this.maxElevation,e),s=r!==this.minElevation||n!==this.maxElevation;return this.minElevation=r,this.maxElevation=n,s}setElevationRange(t){this.minElevation=t.minElevation,this.maxElevation=t.maxElevation}setElevationRangeValues(t,e){this.minElevation=t,this.maxElevation=e}equals(t){return this.minElevation===t.minElevation&&this.maxElevation===t.maxElevation}}var l=r(1843),h=r(65786);h.Y;class d extends h.Y{constructor(t,e,r){super(),this.hasVertexColors=t,this.hasNormals=e,this.textureCoordinateType=r}}function p(t){const e=(0,l.BP)().vec3f("position");return t.hasNormals&&e.vec2i16("normalCompressed",{glNormalized:!0}),1===t.textureCoordinateType?e.vec2f("uv0"):2===t.textureCoordinateType&&(e.vec2f("uv0"),e.vec4u16("uvRegion",{glNormalized:!0})),t.hasVertexColors&&e.vec4u8("color",{glNormalized:!0}),e.freeze()}function y(t,e,r,n,i,u,o){const a=new Array,l=(0,s.fA)(0,0,0),h=new c,y={origin:e,ellipsoidRadius:r,isGlobal:n,ecefRotation:i};for(const e of t){const{componentIndex:t,positionView:r,indicesView:n,texCoord0Data:s,colorView:i,normalsData:c}=e,E=r.count,M=s?1:0,B=new d(null!=i,null!=c||o,M),T=o&&null==c?(0,f.GN)(n.typedBuffer,r.typedBuffer,r.typedBufferStride):null,_=T?.outputVertexCount??E,b=p(B),S=b.createBuffer(_),A=T?b.fields.get("normalCompressed"):null;if(null!=T&&null==A)throw new Error("computeNormals requires a reserved NORMALCOMPRESSED attribute in layout");let g;if(m(y,{texCoord0Data:s,colorView:i,packedNormalsSource:T?T.packedNormals:c??null},S,{positionView:r,tileObb:u,obbHalfSizeAccumulator:l,elevationRange:h}),null!=T){const t=b.stride/4,e=A.offset/4,r=E,n=new Uint32Array(S.buffer);(0,f.yf)(n,t,e,n,t,r,_,T.appendedVertexToOriginal,T.packedNormals,!1),g=T.indices}else g=n.typedBuffer;a.push({componentIndex:t,positionView:r,indicesView:n,layout:b,textureCoordinateType:M,interleavedVertexData:S.buffer,indices:g})}return{vertexProcessingOutputs:a,obbHalfSizeAccumulator:l,elevationRange:h}}function m(t,e,r,n){const{origin:s,ellipsoidRadius:f,isGlobal:c,ecefRotation:l}=t,{texCoord0Data:h,colorView:d,packedNormalsSource:p}=e,{positionView:y,tileObb:m,obbHalfSizeAccumulator:B,elevationRange:T}=n,_=r.getField("position",i.xs),b=_.typedBuffer,S=_.typedBufferStride,A=null!=h?r.getField("uv0",i.gH):null,g=A?.typedBuffer,v=A?.typedBufferStride??0,x=d?.typedBuffer,N=d?.elementCount??0,R=null!=d?r.getField("color",i.XP):null,I=R?.typedBuffer,O=R?.typedBufferStride??0,C=null!=p?r.getField("normalCompressed",i.mJ):null,F=null!=C?new Uint32Array(C.typedBuffer.buffer,C.typedBuffer.byteOffset,C.typedBuffer.length/2):null,w=null!=C?C.typedBufferStride/2:0,U=(0,u.I0)(M,m.quaternionConjugate),L=(0,a.ei)(E,m.center,U),D=U[0],G=U[1],P=U[2],V=U[3],q=U[4],Y=U[5],z=U[6],j=U[7],H=U[8],X=L[0],Z=L[1],k=L[2],$=l[0],Q=l[1],W=l[2],J=l[3],K=l[4],tt=l[5],et=l[6],rt=l[7],nt=l[8],st=l!==o.zK,it=s[0],ut=s[1],ot=s[2],at=y.count,ft=y.typedBufferStride,ct=y.typedBuffer,lt=null!=g&&null!=h,ht=null!=I&&null!=x&&(3===N||4===N),dt=4===N,pt=null!=F&&null!=p;let yt=B[0],mt=B[1],Et=B[2];for(let t=0;t<at;++t){const e=t*ft,r=ct[e],n=ct[e+1],s=ct[e+2],i=r+it,u=n+ut,o=s+ot,a=c?Math.sqrt(i*i+u*u+o*o)-f:o;T.expandElevationRangeValues(a,a);const l=Math.abs(i*D+u*V+o*z-X),d=Math.abs(i*G+u*q+o*j-Z),y=Math.abs(i*P+u*Y+o*H-k);yt=Math.max(yt,l),mt=Math.max(mt,d),Et=Math.max(Et,y),st&&(ct[e]=r*$+n*J+s*et,ct[e+1]=r*Q+n*K+s*rt,ct[e+2]=r*W+n*tt+s*nt);const m=t*S;if(b[m]=r,b[m+1]=n,b[m+2]=s,lt){const e=2*t,r=t*v;g[r]=h[e],g[r+1]=h[e+1]}if(ht){const e=t*O;if(dt){const r=4*t;I[e]=x[r],I[e+1]=x[r+1],I[e+2]=x[r+2],I[e+3]=x[r+3]}else{const r=3*t;I[e]=x[r],I[e+1]=x[r+1],I[e+2]=x[r+2],I[e+3]=255}}pt&&(F[t*w]=p[t])}B[0]=yt,B[1]=mt,B[2]=Et}const E=(0,s.vt)(),M=(0,o.vt)();function B(){}function T(t){const{colorData:e,colorElementCount:r}=t;if(null==e||0===r)return;const n=e.byteOffset,s=n+e.byteLength;return 3===r?e instanceof Float32Array?new i.xs(e.buffer,n,void 0,s):e instanceof Uint8Array?new i.eI(e.buffer,n,void 0,s):new i.nS(e.buffer,n,void 0,s):e instanceof Float32Array?new i.Eq(e.buffer,n,void 0,s):e instanceof Uint8Array?new i.XP(e.buffer,n,void 0,s):new i.Uz(e.buffer,n,void 0,s)}async function _(t){const e={center:(0,s.o8)(t.tileObbCenter),quaternionConjugate:(0,n.o8)(t.tileObbQuaternionConjugate)},{vertexProcessingOutputs:r,obbHalfSizeAccumulator:u,elevationRange:o}=y(t.inputs.map((t,e)=>{const{indicesData:r}=t,n=t.positionData.byteOffset,s=n+t.positionData.byteLength,u=t.positionStride*Float32Array.BYTES_PER_ELEMENT,o=r.byteOffset,a=o+r.byteLength;return{componentIndex:e,positionView:new i.xs(t.positionData.buffer,n,u,s),indicesView:r instanceof Uint16Array?new i.h(r.buffer,o,void 0,a):new i.P(r.buffer,o,void 0,a),texCoord0Data:t.texCoord0Data??void 0,colorView:T(t),normalsData:t.normalsData??void 0}}),t.origin,t.ellipsoidRadius,t.isGlobal,t.ecefRotation,e,t.imVertexNormals),a=(c=r,l=t.isGlobal,c.map(t=>({positionData:l?t.positionView.typedBuffer:null,interleavedVertexData:t.interleavedVertexData,renderIndices:t.indices===t.indicesView.typedBuffer?null:t.indices}))),f=function(t){const e=[];for(const r of t)null!=r.positionData&&e.push(r.positionData.buffer),e.push(r.interleavedVertexData),null!=r.renderIndices&&e.push(r.renderIndices.buffer);return e}(a);var c,l;return{result:{outputs:a,obbHalfSizeAccumulator:(0,s.o8)(u),minElevation:o.minElevation,maxElevation:o.maxElevation},transferList:f}}function b(t){}},89606(t,e,r){r.d(e,{GN:()=>l,MU:()=>c,yf:()=>d});var n=r(35522),s=r(51850),i=r(10614),u=r(63907),o=r(74038);class a{constructor(t,e){this.data=t,this.indices=e}}class f{constructor(t,e,r,n,s){this.indices=t,this.packedNormals=e,this.appendedVertexToOriginal=r,this.outputVertexCount=n,this.appendedVertexCount=s}}function c(t,e,r,f,c){return!f||r.some(({name:t})=>"normal"===t||"normalCompressed"===t)?function(t,e,r,u){const o=new a(t.slice().buffer,e);if(!u)return o;const f=r[0].stride,c=o.data.byteLength/f;for(const t of r)if("normalCompressed"===t.name){const{offset:e}=t,r=new Int16Array(o.data),a=(0,s.vt)();for(let t=0;t<c;++t)(0,i.Tz)(a,r,t,f/2,e/2),(0,n.ei)(a,a,u),(0,i.aT)(r,t,a[0],a[1],a[2],f/2,e/2)}else if("normal"===t.name){const{offset:e}=t,r=new Float32Array(o.data),i=(0,s.vt)();for(let t=0;t<c;++t){const s=(t*f+e)/4;i[0]=r[s],i[1]=r[s+1],i[2]=r[s+2],(0,n.ei)(i,i,u),r[s]=i[0],r[s+1]=i[1],r[s+2]=i[2]}}return o}(t,e,r,c):function(t,e,r,n){const s=r[0].stride,i=s/4,a=new Float32Array(t.buffer,t.byteOffset,t.byteLength/4),f=t.byteLength/s,c=1<r.length?r[1].offset/4:i,d=s+4;r.forEach((t,e)=>{t.stride=d,e>=1&&(t.offset+=4)}),r.splice(1,0,new o._("normalCompressed",2,u.pe.SHORT,12,d,!0));const p=l(e,a,i,n);return h(a,f,c,s,d,p)}(t,e,r,c)}function l(t,e,r,n){const s=t.length/3,i=e.length/r,{faceNormals:u,faceAreas:o,faceEdges:a,edgeFaces:f,vertexFaces:c,vertexFaceCountAndOffset:l}=function(t,e,r,n,s,i){const u=new Float32Array(3*s),o=new Float32Array(s),a=new Uint32Array(3*s),f=new Int32Array(3*s*2),c=3*s,l=new Uint32Array(c),h=new Uint32Array(2*r);for(let t=0;t<s;++t){const e=3*t;for(let t=0;t<3;++t)++h[2*n[e+t]]}{let t=0;for(let e=0;e<r;++e){const r=2*e;h[r+1]=t,t+=h[r]}for(let t=0;t<s;++t){const e=3*t;for(let r=0;r<3;++r)l[h[2*n[e+r]+1]++]=t}for(let t=0;t<r;++t)h[2*t+1]-=h[2*t]}let d=0;const p=new Uint32Array(2*c*2),y=new Uint32Array(2*r);for(let t=0;t<r;++t){const e=2*t,r=4*h[e+1];y[e]=r,y[e+1]=r}function m(t,e,r){const n=Math.min(t,e),s=Math.max(t,e),i=t<e?0:1,u=2*n,o=y[u],a=y[u+1];let c=-1;for(let t=o;t<a;t+=2)if(p[t]===s){c=p[t+1];break}return-1===c&&(c=d++,p[a]=s,p[a+1]=c,y[u+1]=a+2,f[2*c+(1-i)]=-1),f[2*c+i]=r,c}for(let r=0;r<n.length;r+=3){const s=n[r],f=s*e,c=t[f],l=t[f+1],h=t[f+2],d=n[r+1],p=d*e,y=t[p],E=t[p+1],M=t[p+2],B=n[r+2],T=B*e,_=c-y,b=l-E,S=h-M,A=c-t[T],g=l-t[T+1],v=h-t[T+2],x=b*v-S*g,N=S*A-_*v,R=_*g-b*A,I=Math.sqrt(x*x+N*N+R*R)||1,O=r/3;o[O]=.5*I;const C=1/I;if(i){const t=i[0]*x+i[3]*N+i[6]*R,e=i[1]*x+i[4]*N+i[7]*R,r=i[2]*x+i[5]*N+i[8]*R;u[3*O]=t*C,u[3*O+1]=e*C,u[3*O+2]=r*C}else u[3*O]=x*C,u[3*O+1]=N*C,u[3*O+2]=R*C;const F=m(s,d,O),w=m(d,B,O),U=m(B,s,O);a[3*O]=F,a[3*O+1]=w,a[3*O+2]=U}return{faceNormals:u,faceAreas:o,faceEdges:a,vertexFaces:l,vertexFaceCountAndOffset:h,edgeFaces:f}}(e,r,i,t,s,n);return function(t,e,r,n,s,i){const u=new Uint8Array(e),o=new Uint32Array(e),a=new Uint32Array(3*e);let f=0;const c=new Uint32Array(e);let l=0;for(let e=0;e<t.length;e+=3){const t=e/3;if(1===u[t])continue;u[t]=1;const h=r[3*t],d=r[3*t+1],p=r[3*t+2];for(l=0,c[l++]=t,a[0]=s[3*t],a[1]=s[3*t+1],a[2]=s[3*t+2],f=3,o[t]=t+1;f>0;){const e=a[--f];for(let n=0;n<2;++n){const m=i[2*e+n];if(-1===m||o[m]===t+1)continue;o[m]=t+1;const E=r[3*m],M=r[3*m+1],B=r[3*m+2];if(Math.abs(1-(h*E+d*M+p*B))<y){c[l++]=m,u[m]=1;for(let t=0;t<3;++t){const r=s[3*m+t];r!==e&&(a[f++]=r)}}}}if(l>1){let t=0,e=0,s=0,i=0;for(let u=0;u<l;++u){const o=c[u],a=n[o];t+=a,e+=r[3*o]*a,s+=r[3*o+1]*a,i+=r[3*o+2]*a}const u=Math.sqrt(e*e+s*s+i*i)||1;e/=u,s/=u,i/=u;for(let u=0;u<l;++u){const o=c[u];r[3*o]=e,r[3*o+1]=s,r[3*o+2]=i,n[o]=t}}}}(t,s,u,o,a,f),p(s,i,t,u,o,c,l)}function h(t,e,r,n,s,i){const u=n/4,o=s/4,f=i.outputVertexCount,c=new Float32Array(f*o),l=new Uint32Array(c.buffer),h=new Uint32Array(t.buffer,t.byteOffset,t.length);return function(t,e,r,n,s,i,u){for(let o=0;o<i;++o){const i=o*s,a=o*e;for(let e=0;e<r;++e)t[a+e]=n[i+e];t[a+r]=u[o];for(let e=r;e<s;++e)t[a+e+1]=n[i+e]}}(l,o,r,h,u,e,i.packedNormals),d(l,o,r,h,u,e,f,i.appendedVertexToOriginal,i.packedNormals,!0),new a(c.buffer,i.indices)}function d(t,e,r,n,s,i,u,o,a,f){for(let c=i;c<u;++c){const u=o[c-i]*s,l=c*e;for(let e=0;e<s;++e)t[l+e+(f&&e>=r?1:0)]=n[u+e];t[l+r]=a[c]}}function p(t,e,r,n,s,i,u){const o=3*t,a=new(o<256?Uint8Array:o<65536?Uint16Array:Uint32Array)(r);let c=e;const l=new(e<256?Uint8Array:e<65536?Uint16Array:Uint32Array)(o-e),h=new ArrayBuffer(4*o),d=new Int16Array(h),p=new Uint32Array(h);let y=0,E=0;const M=new Uint32Array(t);let B=0;const T=1-m;for(let t=0;t<e;++t){y=u[2*t+1],E=y+u[2*t];let r=t;for(;y<E;){{const t=i[--E],e=3*t,u=n[e],o=n[e+1],a=n[e+2];B=0,M[B++]=t;let f=y;for(;f<E;){const t=i[f],e=3*t;if(u*n[e]+o*n[e+1]+a*n[e+2]>T){M[B++]=t;const e=--E;if(f<e){i[f]=i[e];continue}}++f}let c=0,l=0,h=0;if(1===B)c=u,l=o,h=a;else{for(let t=0;t<B;++t){const e=M[t],r=s[e],i=3*e;c+=n[i]*r,l+=n[i+1]*r,h+=n[i+2]*r}const t=Math.sqrt(c*c+l*l+h*h)||1;c/=t,l/=t,h/=t}{const t=1/(Math.abs(c)+Math.abs(l)+Math.abs(h)),e=c*t,n=l*t;let s=e,i=n;h<=0&&(s=(e>=0?1:-1)*(1-Math.abs(n)),i=(n>=0?1:-1)*(1-Math.abs(e)));const u=2*r,o=Math.round(32767*s),a=Math.round(32767*i);d[u]=o<-32767?-32767:o>32767?32767:o,d[u+1]=a<-32767?-32767:a>32767?32767:a}}if(r!==t)for(let e=0;e<B;++e){const n=3*M[e];a[n]===t&&(a[n]=r),a[n+1]===t&&(a[n+1]=r),a[n+2]===t&&(a[n+2]=r)}if(y>=E)break;r=c++,l[r-e]=t}}return new f(a,p,l,c,c-e)}const y=.04,m=.8},1843(t,e,r){r.d(e,{BP:()=>c,l5:()=>l});var n=r(13030),s=r(90239),i=r(4431),u=r(620),o=r(85079);class a{constructor(t,e,r=0){this.layout=t,this.byteOffset=r,this.buffer="number"==typeof e?new ArrayBuffer(e*t.stride):e;for(const e of t.fields.keys()){const n=t.fields.get(e);this[e]=new n.constructor(this.buffer,r+n.offset,this.stride)}}get stride(){return this.layout.stride}get count(){return this.byteLength/this.stride}get byteLength(){return this.buffer.byteLength-this.byteOffset}getField(t,e){const r=this[t];return r&&r.elementCount===e.ElementCount&&r.elementType===e.ElementType?r:null}slice(t,e){return new a(this.layout,this.buffer.slice(t*this.stride,e*this.stride))}copyFrom(t,e=0,r=0,n=t.count){const s=this.stride;if(s%4==0){const i=new Uint32Array(t.buffer,e*s,n*s/4);new Uint32Array(this.buffer,r*s,n*s/4).set(i)}else{const i=new Uint8Array(t.buffer,e*s,n*s);new Uint8Array(this.buffer,r*s,n*s).set(i)}return this}get usedMemory(){return this.byteLength}dispose(){}}class f{constructor(t){this._stride=0,this._fields=new Map,t&&(this._stride=t.stride,t.fields.forEach(t=>this._fields.set(t[0],{...t[1],constructor:p(t[1].constructor)})))}freeze(){return this}get locations(){return(0,o.Xk)((0,i.U)(this))}vec2f16(t,e){return this._appendField(t,n.ZD,e),this}vec2f(t,e){return this._appendField(t,n.gH,e),this}vec2f64(t,e){return this._appendField(t,n.si,e),this}vec3f16(t,e){return this._appendField(t,n.EC,e),this}vec3f(t,e){return this._appendField(t,n.xs,e),this}vec3f64(t,e){return this._appendField(t,n.Xm,e),this}vec4f16(t,e){return this._appendField(t,n.jz,e),this}vec4f(t,e){return this._appendField(t,n.Eq,e),this}vec4f64(t,e){return this._appendField(t,n.Aj,e),this}mat3f(t,e){return this._appendField(t,n.jZ,e),this}mat3f64(t,e){return this._appendField(t,n.j0,e),this}mat4f(t,e){return this._appendField(t,n.Sx,e),this}mat4f64(t,e){return this._appendField(t,n.E$,e),this}vec4u8(t,e){return this._appendField(t,n.XP,e),this}f16(t,e){return this._appendField(t,n.XW,e),this}f32(t,e){return this._appendField(t,n.Y$,e),this}f64(t,e){return this._appendField(t,n.qB,e),this}u8(t,e){return this._appendField(t,n.SL,e),this}u16(t,e){return this._appendField(t,n.h,e),this}i8(t,e){return this._appendField(t,n.bf,e),this}vec2i8(t,e){return this._appendField(t,n.D6,e),this}vec2i16(t,e){return this._appendField(t,n.mJ,e),this}vec2u8(t,e){return this._appendField(t,n.LC,e),this}vec2u16(t,e){return this._appendField(t,n.Yi,e),this}vec4u16(t,e){return this._appendField(t,n.Uz,e),this}vec4i16(t,e){return this._appendField(t,n.E7,e),this}u32(t,e){return this._appendField(t,n.P,e),this}_appendField(t,e,r){this._fields.has(t)&&(0,u.vA)(!1,`${t} already added to vertex buffer layout`);const n=e.ElementCount*(0,s.GJ)(e.ElementType),i=this._stride;this._fields.set(t,{constructor:e,size:n,offset:i,optional:r}),this._alignFields()}_alignFields(){let t=0,e=1;this._fields.forEach(r=>{const n=(0,s.GJ)(r.constructor.ElementType);t=Math.floor((t+n-1)/n)*n,r.offset=t,t+=r.size,e=Math.max(e,n)}),t=Math.floor((t+e-1)/e)*e,this._stride=t}createBuffer(t){return new a(this,t)}createView(t,e){return new a(this,t,e)}clone(){const t=new f;return t._stride=this._stride,t._fields=new Map,this._fields.forEach((e,r)=>t._fields.set(r,e)),t.BufferType=this.BufferType,t}get stride(){return this._stride}get fields(){return this._fields}}function c(){return new f}class l{constructor(t){this.fields=new Array,t.fields.forEach((t,e)=>{const r={...t,constructor:d(t.constructor)};this.fields.push([e,r])}),this.stride=t.stride}}const h=[n.Y$,n.gH,n.xs,n.Eq,n.jZ,n.Sx,n.qB,n.si,n.Xm,n.Aj,n.j0,n.E$,n.SL,n.LC,n.eI,n.XP,n.h,n.Yi,n.nS,n.Uz,n.P,n.An,n.H$,n.ml,n.bf,n.D6,n.m8,n.TX,n.Qt,n.mJ,n.Vp,n.E7,n.My,n.UL,n.zD,n.Y4];function d(t){return`${t.ElementType}_${t.ElementCount}`}function p(t){return y.get(t)}const y=new Map;h.forEach(t=>y.set(d(t),t))},4431(t,e,r){r.d(e,{U:()=>i});var n=r(63907),s=r(74038);function i(t,e=0){const r=t.stride;return t.fields.entries().map(([t,i])=>{const u=i.constructor.ElementCount,o=function(t){switch(t){case"u8":return n.pe.UNSIGNED_BYTE;case"u16":return n.pe.UNSIGNED_SHORT;case"u32":return n.pe.UNSIGNED_INT;case"i8":return n.pe.BYTE;case"i16":return n.pe.SHORT;case"i32":return n.pe.INT;case"f16":return n.pe.HALF_FLOAT;case"f32":return n.pe.FLOAT;default:throw new Error("BufferType not supported in WebGL")}}(i.constructor.ElementType),a=i.offset,f=i.optional?.glNormalized??!1,c=i.optional?.integer??!1;return new s._(t,u,o,a,r,f,e,c)}).toArray()}},10614(t,e,r){r.d(e,{Tz:()=>u,aT:()=>i});var n=r(34727),s=r(35522);function i(t,e,r,n,s,i=2,u=0){const a=1/(Math.abs(r)+Math.abs(n)+Math.abs(s)),f=r*a,c=n*a,l=s<=0?(f>=0?1:-1)*(1-Math.abs(c)):f,h=s<=0?(c>=0?1:-1)*(1-Math.abs(f)):c,d=e*i+u;t[d]=o(l),t[d+1]=o(h)}function u(t,e,r,n=2,i=0){const u=r*n+i,o=a(e[u]),f=a(e[u+1]),c=1-Math.abs(o)-Math.abs(f);return t[2]=c,c<0?(t[0]=(o>=0?1:-1)*(1-Math.abs(f)),t[1]=(f>=0?1:-1)*(1-Math.abs(o))):(t[0]=o,t[1]=f),(0,s.S8)(t,t)}function o(t){return(0,n.qE)(Math.round(32767*t),-32767,32767)}function a(t){return(0,n.qE)(t/32767,-1,1)}r(51850)},620(t,e,r){r.d(e,{O_:()=>i,vA:()=>s}),r(48163),r(78955),(0,r(91829).vt)();class n{constructor(t){this.message=t}toString(){return`AssertException: ${this.message}`}}function s(t,e="Assertion"){if(!t){const t=new Error(e).stack;throw new n(`${e} at ${t}`)}}function i(t,e,r,n){let s,i=(r[0]-t[0])/e[0],u=(n[0]-t[0])/e[0];i>u&&(s=i,i=u,u=s);let o=(r[1]-t[1])/e[1],a=(n[1]-t[1])/e[1];if(o>a&&(s=o,o=a,a=s),i>a||o>u)return!1;o>i&&(i=o),a<u&&(u=a);let f=(r[2]-t[2])/e[2],c=(n[2]-t[2])/e[2];return f>c&&(s=f,f=c,c=s),!(i>c||f>u||(c<u&&(u=c),u<0))}},65786(t,e,r){const n=class{};new n,r.d(e,["Y",0,n])},85079(t,e,r){r.d(e,{Sk:()=>u,Xk:()=>s,_u:()=>i});var n=r(21818);function s(t){let e=0;return(0,n.z)(new Map(t.map(({name:t,count:r})=>{const n=[t,e];return 16===r?e+=4:9===r?e+=3:++e,n})))}function i(t){const e=new Map;let r=0;return t.forEach(t=>t.forEach(({name:t,count:n})=>{e.set(t,r),16===n?r+=4:9===n?r+=3:++r})),e}function u(t){return i(Array.from(t.values()).map(({layout:t})=>t))}},74038(t,e,r){r.d(e,{_:()=>n});class n{constructor(t,e,r,n,s,i=!1,u=0,o=!1){this.name=t,this.count=e,this.type=r,this.offset=n,this.stride=s,this.normalized=i,this.divisor=u,this.integer=o}}},63907(t,e,r){const n={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},s={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},i=Object.values(s),u={FLOAT:n.FLOAT,UNSIGNED_BYTE:n.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:n.BYTE,UNSIGNED_SHORT:n.UNSIGNED_SHORT,SHORT:n.SHORT,UNSIGNED_INT:n.UNSIGNED_INT,INT:n.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269};r.d(e,["CQ",0,{COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497},"H0",0,s,"SB",0,{DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},"WR",0,{POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},"XN",0,i,"iE",0,{DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},"ld",0,u,"pe",0,n,"vt",0,{Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12}])}}]);