@arcgis/core 5.2.0-next.76 → 5.2.0-next.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{dbdd96e558936955acdb.js → 040a73b2a23577e1eabd.js} +1 -1
- package/assets/esri/core/workers/chunks/{bad2c7219e95750906e1.js → 05663093b1d2a268b953.js} +1 -1
- package/assets/esri/core/workers/chunks/{755b2d883fba90c4e688.js → 06c8547521ce9c97b258.js} +2 -2
- package/assets/esri/core/workers/chunks/{a014c17fc210620da738.js → 17e9324a02b69733307a.js} +2 -2
- package/assets/esri/core/workers/chunks/29a20a37e7837142fa6b.js +2 -0
- package/assets/esri/core/workers/chunks/{4945d6b0ca1812864185.js → 385b23d4bd5275031fb6.js} +1 -1
- package/assets/esri/core/workers/chunks/3958d92c737b3a2a3bc2.js +1 -0
- package/assets/esri/core/workers/chunks/{9c3e6325dc60bcaf44d7.js → 4115bab15c19b4f5ae08.js} +1 -1
- package/assets/esri/core/workers/chunks/{ff578f0ca68d652fece5.js → 57e26a86d46e02c89c4f.js} +1 -1
- package/assets/esri/core/workers/chunks/{8b980c6b92cc4ea68ede.js → 81cd0cb9ae1371765d32.js} +1 -1
- package/assets/esri/core/workers/chunks/{de927b1460bc384f5b87.js → 83556c9f6f85c2a46779.js} +1 -1
- package/assets/esri/core/workers/chunks/{f4aa6e90200f61e623e5.js → 8762da315cf5086167c3.js} +1 -1
- package/assets/esri/core/workers/chunks/{46e56fac44e0fd26ba1d.js → 95956d62591d689f1135.js} +1 -1
- package/assets/esri/core/workers/chunks/{9e2e4d197a7a57c2a691.js → ac2ba5c3d613d7d5183a.js} +1 -1
- package/assets/esri/core/workers/chunks/{94b9a61b4dbb83425a78.js → b2812279662f1a5f8d06.js} +1 -1
- package/assets/esri/core/workers/chunks/b82763e9401b16121f8d.js +2 -0
- package/assets/esri/core/workers/chunks/{83e54166ba634ec2bd89.js → c69cf08da4e4c2c824ee.js} +10 -10
- package/assets/esri/core/workers/chunks/{6c740c411b085d2d08c4.js → cd74de12005834244a47.js} +1 -1
- package/assets/esri/core/workers/chunks/{6e45ecf359bce3417f5d.js → ef803fb25741e9f2a0a1.js} +1 -1
- package/assets/esri/core/workers/chunks/f3bbebedad51f776bb98.js +1 -0
- package/assets/esri/core/workers/chunks/{a91c1d782346a9c7e1ef.js → f703bc002c732d1c045d.js} +1 -1
- package/assets/esri/core/workers/chunks/fdd4f78facec6387cdb0.js +1 -0
- package/assets/esri/core/workers/chunks/ffd5285c7b2c83208f87.js +2 -0
- package/config.js +1 -1
- package/geometry/support/webMercatorUtils.d.ts +38 -14
- package/kernel.js +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/VectorTileLayer.d.ts +40 -22
- package/layers/mixins/RasterJobHandlerMixin.js +1 -1
- package/layers/support/RasterJobHandler.js +1 -1
- package/layers/video/VideoController.js +1 -1
- package/package.json +4 -4
- package/support/revision.js +1 -1
- package/views/2d/engine/BitmapTile.js +1 -1
- package/views/2d/engine/flow/styles/Imagery.js +1 -1
- package/views/2d/engine/flow/styles/Particles.js +1 -1
- package/views/2d/engine/flow/styles/Streamlines.js +1 -1
- package/views/2d/engine/imagery/RasterTile.js +1 -1
- package/views/2d/engine/imagery/RasterVFTile.js +1 -1
- package/views/2d/engine/vectorTiles/TileHandler3D.js +1 -1
- package/views/2d/engine/vectorTiles/VTLPainter3D.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileRendererHelper3D.js +1 -1
- package/views/2d/engine/webgl/FeatureDisplayList.js +1 -1
- package/views/2d/engine/webgl/Painter.js +1 -1
- package/views/2d/engine/webgl/RenderingDevice.js +1 -1
- package/views/2d/engine/webgl/TileContainer.js +1 -1
- package/views/2d/engine/webgl/TiledDisplayObject.js +1 -1
- package/views/2d/engine/webgl/normalizedTileUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/GraphShaderModule.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/graph/ShaderGraphContext.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedLineShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/bitmap/BitmapTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/clip/ClipTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPointShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/drop-shadow/DropShadowTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/featureTechniqueUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexOutlineFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/FillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/OutlineFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternOutlineFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/flow/FlowTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/LineTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/TexturedLineTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/overlay/OverlayTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/RasterColorizerTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/VectorFieldTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BitmapShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BlendShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/FillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientStrokeShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HeatmapAccumulateShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/LineShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OutlineFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/PatternFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TexturedLineShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/Tile.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileDebugInfoShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileInfo.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileStencilShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ViewInfo.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/hittestUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/BaseRasterColorizerShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/MagDirShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/ScalarShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderBackground.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderCircle.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderFill.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderIcon.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderLine.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderOutline.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderText.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileDebugInfoTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileStencilTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/utility/DebugOverlayTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueBackground.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueCircle.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueFill.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueLine.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueSymbol.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/typed/TypedShaderProgram.js +1 -1
- package/views/2d/layers/MediaLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/support/DisplayGL.js +1 -1
- package/views/3d/GroundView3D.js +1 -1
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/VectorTileLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
- package/views/3d/state/HUDOccludedFragmentOpacity.js +1 -1
- package/views/3d/state/ViewState.js +1 -1
- package/views/3d/state/ViewStateManager.js +1 -1
- package/views/3d/support/GaussianSplatSortWorker.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianTile.js +1 -1
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/terrain/PatchRenderDataWaterproofness.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/TerrainWaterproofnessDiagnostics.js +2 -0
- package/views/3d/terrain/TileCompositor.js +1 -1
- package/views/3d/webgl-engine/lib/Geometry.js +1 -1
- package/views/3d/webgl-engine/parts/Model.js +1 -1
- package/views/VideoView.js +1 -1
- package/views/support/waitForResources.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/UniformBufferLayout.js +1 -1
- package/views/webgl/UniformBufferObject.js +1 -1
- package/widgets/Feature/FeatureViewModel.d.ts +4 -3
- package/widgets/Feature/FeatureViewModel.js +1 -1
- package/widgets/Feature.js +1 -1
- package/widgets/Features/FeaturesViewModel.d.ts +4 -2
- package/widgets/Features/FeaturesViewModel.js +1 -1
- package/widgets/Features.js +1 -1
- package/widgets/PanoramicViewer/PanoramicVideoViewerViewModel.js +1 -1
- package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
- package/widgets/Popup/PopupViewModel.d.ts +1 -0
- package/widgets/Popup/PopupViewModel.js +1 -1
- package/widgets/Popup.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeature.js +1 -1
- package/assets/esri/core/workers/chunks/0502641d9a214b37ff29.js +0 -1
- package/assets/esri/core/workers/chunks/4f8ce5887102971bfa34.js +0 -2
- package/assets/esri/core/workers/chunks/532e3a59888e4cc13bd3.js +0 -2
- package/assets/esri/core/workers/chunks/a19be304219808268039.js +0 -2
- package/assets/esri/core/workers/chunks/b950ddafba8125c84a5b.js +0 -1
- package/assets/esri/core/workers/chunks/de9a1cce70581920f248.js +0 -1
- package/views/2d/engine/webgl/shaderGraph/types.js +0 -2
- package/views/2d/engine/webgl/shaderGraph/uniformBufferUtils.js +0 -2
- /package/assets/esri/core/workers/chunks/{755b2d883fba90c4e688.js.LICENSE.txt → 06c8547521ce9c97b258.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{a014c17fc210620da738.js.LICENSE.txt → 17e9324a02b69733307a.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{4f8ce5887102971bfa34.js.LICENSE.txt → 29a20a37e7837142fa6b.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{a19be304219808268039.js.LICENSE.txt → b82763e9401b16121f8d.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{532e3a59888e4cc13bd3.js.LICENSE.txt → ffd5285c7b2c83208f87.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3367],{99719(e,t,r){r.d(t,{x:()=>n});class n{}},47609(e,t,r){r.d(t,{A:()=>i});var n=r(66395);class i extends n.A{constructor(e){super({__proto__:null,url:e}),this.declaredClass="esri.arcade.Portal"}get url(){return this.field("url")}}},66395(e,t,r){r.d(t,{A:()=>l});var n=r(66131),i=r(6800),s=r(85935),o=r(78878),a=r(91075);class l{constructor(e){this.declaredClass="esri.arcade.Dictionary",this.plain=!1,this.immutable=!0,e instanceof l?this.attributes=e.attributes:null==e?this.attributes=Object.create(null):null!=Object.getPrototypeOf(e)?this.attributes={__proto__:null,...e}:this.attributes=e}static createMutable(e){const t=new l(e);return t.immutable=!1,t}static containerEntry(e,t){return new l({__proto__:null,key:e,value:t})}static textFormatting(){return l.createMutable({__proto__:null,newline:"\n",tab:"\t",singlequote:"'",doublequote:'"',forwardslash:"/",backwardslash:"\\"})}field(e){const t=e.toLowerCase(),r=this.attributes[e];if(void 0!==r)return r;for(const e in this.attributes)if(e.toLowerCase()===t)return this.attributes[e];throw new s.D$("FieldNotFound",null,{key:e})}setField(e,t){if(this.immutable)throw new s.D$("Immutable",null);if((0,o.i)(t))throw new s.D$("NoFunctionInDictionary",null);const r=e.toLowerCase();if(t instanceof Date&&(t=n.lY.dateJSToArcadeDate(t)),void 0===this.attributes[e]){for(const e in this.attributes)if(e.toLowerCase()===r)return void(this.attributes[e]=t);this.attributes[e]=t}else this.attributes[e]=t}eraseField(e){if(this.immutable)throw new s.D$("Immutable",null);if(e in this.attributes)return void delete this.attributes[e];const t=e.toLowerCase();for(const e in this.attributes)if(e.toLowerCase()===t)return void delete this.attributes[e]}hasField(e){const t=e.toLowerCase();if(void 0!==this.attributes[e])return!0;for(const e in this.attributes)if(e.toLowerCase()===t)return!0;return!1}keys(){const e=[];for(const t in this.attributes)e.push(t);return e.sort((e,t)=>e.toLowerCase()<t.toLowerCase()?-1:1)}values(){return this.keys().map(e=>this.attributes[e])}entryCount(){return Object.keys(this.attributes).length}isEmpty(){return this.entryCount()<=0}castToText(e=!1){return(0,o.c)(this.attributes,{useNumbersForDates:e})}castAsJson(){const e=Object.create(null);for(const t in this.attributes){const r=this.attributes[t];void 0!==r&&(e[t]=(0,o.a)(r))}return e}async castAsJsonAsync(e=null){const t=Object.create(null),r=[];for(const i in this.attributes){const s=this.attributes[i];void 0!==s&&((0,o.b)(s)||s instanceof a.A||s instanceof n.lY?t[i]=(0,o.a)(s):r.push((0,o.d)(s,e).then(e=>{t[i]=e})))}return r.length>0&&await Promise.all(r),t}deepClone(){const e=new l;e.immutable=!1;for(const t of this.keys())e.setField(t,(0,i.G)(this.field(t)));return e}}},92400(e,t,r){r.d(t,{CU:()=>a,UQ:()=>o,fF:()=>i,o6:()=>s});var n=r(17676);class i{constructor(){}}function s(e,t,r){if(e instanceof i&&!(e instanceof a)){const n=new a;return n.fn=e,n.parameterEvaluator=r,n.context=t,n}return e}class o extends i{constructor(e,t){super(),this._name=t,this.fn=e}get debugName(){return null!=this._name?`<native>.${this._name}`:"<native>"}createFunction(e){return(...t)=>this.fn(e,{preparsed:!0,arguments:t})}call(e,t){return this.fn(e,t)}marshalledCall(e,t,r,o){return o(e,t,(t,l,u)=>{u=u.map(t=>t instanceof i&&!(t instanceof a)?s(t,e,o):t);const c=this.call(r,{args:u});return(0,n.$X)(c)?c.then(e=>s(e,r,o)):c})}}class a extends i{constructor(){super(...arguments),this.fn=null,this.context=null}get debugName(){return null!=this.fn.debugName?`<imported>.${this.fn.debugName}`:null}createFunction(e){return this.fn.createFunction(this.context)}call(e,t){return this.fn.marshalledCall(e,t,this.context,this.parameterEvaluator)}marshalledCall(e,t,r){return this.fn.marshalledCall(e,t,this.context,this.parameterEvaluator)}}},93818(e,t,r){r.d(t,{A:()=>n});class n{static from(e){return new i(e)}length(){return this._elements.length}toArray(){return this.slice()}slice(e=0,t=this.length()){const r=[];for(let n=e;n<t;n++)r.push(this.get(n));return r}}class i extends n{constructor(e){super(),this._elements=e}get(e){return this._elements[e]}slice(e=0,t=this.length()){return this._elements.slice(Math.max(e,0),Math.min(t,this.length()))}equalityTest(e){return this===e}}},7320(e,t,r){r.d(t,{A:()=>s});var n=r(93818),i=r(86738);class s extends n.A{constructor(e,t,r,n,i,s){super(),this._elements=e,this._spRef=t,this._hasZ=r,this._hasM=n,this._cacheId=i,this._partId=s,this._lazyPt=[]}hasZ(){return this._hasZ}hasM(){return this._hasM}get(e){if(void 0===this._lazyPt[e]){const t=this._elements[e];if(void 0===t)return;const r=new i.A(t[0],t[1],this._spRef);this._hasZ&&(r.z=t[2]),this._hasM&&(r.m=this._hasZ?t[3]:t[2]),r.cache._arcadeCacheId=this._cacheId.toString()+"-"+this._partId.toString()+"-"+e.toString(),this._lazyPt[e]=r}return this._lazyPt[e]}equalityTest(e){return e===this||null!==e&&e instanceof s!=0&&e.getUniqueHash()===this.getUniqueHash()}getUniqueHash(){return this._cacheId.toString()+"-"+this._partId.toString()}}},48938(e,t,r){r.d(t,{X:()=>i});var n=r(85935);function i(e){if("string"==typeof e)return e.toLowerCase();if("name"in e)return e.name.toLowerCase();if("string"!=typeof e.value)throw new n.D$("InvalidIdentifier",null);return e.value.toLowerCase()}const s=Object.freeze({aborted:!1});r.d(t,["_",0,s])},6800(e,t,r){r.d(t,{G:()=>a,y:()=>s});var n=r(78878),i=r(54218);function s(e){o=e}let o;function a(e){return null==e?null:(0,n.e)(e)?e.clone():(0,n.b)(e)?e:(0,n.f)(e)?e.clone():(0,n.g)(e)?e.toArray().map(e=>a(e)):(0,i.cy)(e)?e.map(e=>a(e)):(0,n.h)(e)?o.createFromArcadeFeature(e):(0,n.j)(e)||(0,n.k)(e)?e:(0,n.l)(e)||(0,n.m)(e)?e.deepClone():((0,n.n)(e)||(0,n.o)(e)||(0,n.p)(e)||(0,n.i)(e),e)}},33325(e,t,r){r.d(t,{$P:()=>c,JB:()=>g,Lk:()=>p,Qi:()=>y,eB:()=>m,eg:()=>h,f0:()=>d,ke:()=>l,nE:()=>u,rX:()=>f});var n=r(66131),i=r(44729),s=r(15032),o=r(20437),a=r(92647);function l(e){return o.A.fromJSON(e.toJSON())}function u(e){return"toJSON"in e?e.toJSON():e}function c(e){return e instanceof Date}function p(e){return e instanceof a.c9}function f(e){return e instanceof n.lY}function d(e){return e instanceof i.n}function h(e){return e instanceof s.k}function y(e){return void 0===e?"":e=(e=(e=e.replace(/\/featureserver\/[0-9]*/i,"/FeatureServer")).replace(/\/mapserver\/[0-9]*/i,"/MapServer")).split("?")[0]}function g(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const r="boolean"==typeof t.cycles&&t.cycles,n=t.cmp&&(i=t.cmp,function(e){return function(t,r){const n={key:t,value:e[t]},s={key:r,value:e[r]};return i(n,s)}});var i;const s=[];return function e(t){if(t?.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===t)return;if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);let i,o;if(Array.isArray(t)){for(o="[",i=0;i<t.length;i++)i&&(o+=","),o+=e(t[i])||"null";return o+"]"}if(null===t)return"null";if(s.includes(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const a=s.push(t)-1,l=Object.keys(t).sort(n?.(t));for(o="",i=0;i<l.length;i++){const r=l[i],n=e(t[r]);n&&(o&&(o+=","),o+=JSON.stringify(r)+":"+n)}return s.splice(a,1),"{"+o+"}"}(e)}function m(e){switch(e.type){case"catalog-footprint":case"catalog":case"csv":case"feature":case"geojson":case"knowledge-graph-sublayer":case"oriented-imagery":case"parquet":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}r.d(t,["At",0,{"small-integer":"esriFieldTypeSmallInteger",integer:"esriFieldTypeInteger",long:"esriFieldTypeLong",single:"esriFieldTypeSingle",double:"esriFieldTypeDouble",string:"esriFieldTypeString",date:"esriFieldTypeDate","date-only":"esriFieldTypeDateOnly","time-only":"esriFieldTypeTimeOnly","timestamp-offset":"esriFieldTypeTimestampOffset",oid:"esriFieldTypeOID",geometry:"esriFieldTypeGeometry",blob:"esriFieldTypeBlob",raster:"esriFieldTypeRaster",guid:"esriFieldTypeGUID","global-id":"esriFieldTypeGlobalID",xml:"esriFieldTypeXML","big-integer":"esriFieldTypeBigInteger",esriFieldTypeSmallInteger:"esriFieldTypeSmallInteger",esriFieldTypeInteger:"esriFieldTypeInteger",esriFieldTypeLong:"esriFieldTypeLong",esriFieldTypeSingle:"esriFieldTypeSingle",esriFieldTypeDouble:"esriFieldTypeDouble",esriFieldTypeString:"esriFieldTypeString",esriFieldTypeDate:"esriFieldTypeDate",esriFieldTypeDateOnly:"esriFieldTypeDateOnly",esriFieldTypeTimeOnly:"esriFieldTypeTimeOnly",esriFieldTypeTimestampOffset:"esriFieldTypeTimestampOffset",esriFieldTypeOID:"esriFieldTypeOID",esriFieldTypeGeometry:"esriFieldTypeGeometry",esriFieldTypeBlob:"esriFieldTypeBlob",esriFieldTypeRaster:"esriFieldTypeRaster",esriFieldTypeGUID:"esriFieldTypeGUID",esriFieldTypeGlobalID:"esriFieldTypeGlobalID",esriFieldTypeXML:"esriFieldTypeXML",esriFieldTypeBigInteger:"esriFieldTypeBigInteger"},"ik",0,{point:"point",polygon:"polygon",polyline:"polyline",multipoint:"multipoint",extent:"extent",esriGeometryPoint:"point",esriGeometryPolygon:"polygon",esriGeometryPolyline:"polyline",esriGeometryMultipoint:"multipoint",esriGeometryEnvelope:"extent",envelope:"extent"},"yT",0,{point:"esriGeometryPoint",polygon:"esriGeometryPolygon",polyline:"esriGeometryPolyline",multipoint:"esriGeometryMultipoint",extent:"esriGeometryEnvelope",esriGeometryPoint:"esriGeometryPoint",esriGeometryPolygon:"esriGeometryPolygon",esriGeometryPolyline:"esriGeometryPolyline",esriGeometryMultipoint:"esriGeometryMultipoint",esriGeometryEnvelope:"esriGeometryEnvelope",envelope:"esriGeometryEnvelope"}])},80672(e,t,r){r.d(t,{Iq:()=>a,RI:()=>o,VQ:()=>u,wI:()=>l});var n=r(47609),i=r(84952),s=r(20655);function o(e,t){return null==t?a(e):new s.A({url:t.url})}function a(e){return e.services?.portal??s.A.getDefault()}function l(e){const t=a(e);return new n.A(t.url)}function u(e,t){const r=e.url;return!!r&&(0,i.ut)(r,t.restUrl)}},3367(e,t,r){r.d(t,{B:()=>S,P:()=>g,g:()=>b,r:()=>v});var n=r(48938),i=r(66395),s=r(85935),o=r(78878),a=r(80672),l=r(49186),u=r(53966),c=r(91869),p=r(45475),f=r(67090),d=r(62791),h=r(14942),y=r(54218);class g{constructor(e,t){this.portal=e,this._debugLog=t}async translate(e){this.portal.loaded||await this.portal.load();const t=this.portal.helperServices?.aiUtilityServices;if(null==t)return{success:!1};const r=t.api?.text_translate;if(null==r)return{success:!1};const n=t.url+r;try{return e.requestSource??="arcade",{success:!0,results:(await(0,p.T)(n,e,{authMode:"no-prompt"})).map(e=>e.toJSON())}}catch(e){return null!=this._debugLog&&(e instanceof Error||e instanceof l.A)&&this._debugLog(`TranslateText error: ${e.message}`),u.A.getLogger("esri.arcade.functions.aiServices").error(e),{success:!1}}}}class m{constructor(e,t,r){this._parameters=e,this._maxTotalContentSize=t,this._maxContentsLength=r,this._requests=[],this._normalizedContents=new Map,this._contentsTotalSize=0}tryAdd(e){const t=new Set(e.filter(e=>!this._normalizedContents.has(e.text)).map(e=>e.text));if(this._requests.length+t.size>this._maxContentsLength)return null;let r=0;for(const e of t)r+=e.length;if((r+this._contentsTotalSize)*(this._parameters.outputCultures.length??1)>this._maxTotalContentSize)return null;const n=this._requests.length;for(const{key:t,text:r}of e)(0,c.tE)(this._normalizedContents,r,()=>[]).push({batchIdx:n,key:t});return this._requests.push(e),this._contentsTotalSize+=r,n}async send(e){const t=[],r=[];let n=0;for(const[e,i]of this._normalizedContents)t.push(new f.k({key:String(n++),text:e})),r.push(i);const i=new d.F(this._parameters);i.input=t;const s=await e.translate(i);if(!s.success)return Array.from(this._requests,()=>s);const o=Array.from(this._requests,()=>({success:!0,results:[]}));for(const e of s.results){const t=Number(e.key);for(const n of r[t])o[n.batchIdx].results.push({...e,key:n.key})}return o}}function b(e){const t=[...new Set(e.outputCultures)].sort(),r=e.inputCulture??null,n=e.portalUrl,i=e.provider;return JSON.stringify([t,r,n,i])}async function w(e,t,r){try{return(await e.yieldFor(r))[t]}catch{return{success:!1}}}class S{constructor(e,t,{maxTotalContentSize:r=5e4,maxContentsLength:n=1e3}={}){this._executor=e,this._service=t,this._openBatches=new Map,this._maxTotalContentSize=r,this._maxContentsLength=n}create(e){return{translate:async t=>{const r=b(t),{input:n,outputCultures:i,inputCulture:s,provider:o,portalUrl:a}=t;if(null==i)return{success:!1};if(null==n||n.every(e=>0===e.text.length))return{success:!1};const l=this._openBatches.get(r);if(null!=l){const t=l.data.tryAdd(n);if(null!=t)return await w(e,t,l);l.send()}const u=new m({outputCultures:i,inputCulture:s,provider:o,portalUrl:a},this._maxTotalContentSize,this._maxContentsLength),c=u.tryAdd(n);if(null!=c){const t=this._executor.openBatch(u,{open:e=>{this._openBatches.set(r,e)},execute:e=>e.send(this._service),close:e=>{this._openBatches.get(r)===e&&this._openBatches.delete(r)}});return await w(e,c,t)}return await this._service.translate(t)}}}}function v(e){"async"===e.mode&&(e.functions[(0,n.X)("TranslateText")]=function(t,r){return e.standardFunctionAsync(t,r,async(e,t,r)=>{if((0,o.E)(r,2,3,t),!(0,y.Kg)(r[0])&&!(0,y.cy)(r[0])&&!(0,o.g)(r[0]))throw new s.D$("InvalidParameter",t);const n=(0,o.Q)(r[0]);if(!(0,y.Kg)(r[1])&&!(0,y.cy)(r[1])&&!(0,o.g)(r[1]))throw new s.D$("InvalidParameter",t);const l=(0,o.Q)(r[1]);let u=null;if(r.length>=3){if(!(0,y.Kg)(r[2]))throw new s.D$("InvalidParameter",t);u=r[2]}const c=n.map((e,t)=>new f.k({key:String(t),text:e})),p=(0,a.Iq)(e),m=new d.F({outputCultures:l,input:c,inputCulture:u,portalUrl:p.restUrl.replace(/\/sharing\/rest$/,"")}),w=new Map;let S;if(null!=e.lrucache){const t=e.lrucache;S??=b(m),m.input=m.input?.filter(e=>{const r=t.getCachedTranslation(S,e.text);return null==r||(w.set(e.key,{...r,key:e.key}),!1)})}if(m.input?.length){const t=e.services?.translation??new g(p,e.console),r=await t.translate(m);if(!r.success)return new i.A({__proto__:null,success:!1});for(const t of r.results){const r=m.input?.find(e=>e.key===t.key)?.text;if(null==r)throw new s.D$("NeverReach",null);w.set(t.key,t),null!=e.lrucache&&(S??=b(m),e.lrucache.setCachedTranslation(S,r,{detectedLanguage:t.detectedLanguage,translations:t.translations}))}}const v=Array.from(c,e=>{const t=h.s.fromJSON(w.get(e.key));if(null==t)throw new s.D$("NeverReach",null);const r=Object.create(null);for(const e of t.translations)r[e.to]=e.text;return new i.A({__proto__:null,key:t.key,text:e.text,detectedLanguage:new i.A({__proto__:null,language:t.detectedLanguage,score:t.detectedLanguageScore}),translation:new i.A(r)})});return new i.A({__proto__:null,success:!0,results:v})})})}const T=Object.freeze(Object.defineProperty({__proto__:null,BatchTranslationServiceFactory:S,PortalTranslationService:g,getTranslateParametersKey:b,registerFunctions:v},Symbol.toStringTag,{value:"Module"}));r.d(t,["A",0,T])},78878(e,t,r){r.d(t,{$:()=>Ie,A:()=>Oe,B:()=>V,E:()=>H,F:()=>j,G:()=>J,H:()=>Te,I:()=>N,J:()=>ye,K:()=>Ne,L:()=>Ae,M:()=>xe,N:()=>he,O:()=>k,P:()=>W,Q:()=>Fe,R:()=>C,S:()=>D,T:()=>je,U:()=>de,V:()=>ne,W:()=>ee,X:()=>Le,Y:()=>Je,Z:()=>Re,_:()=>Ge,a:()=>Me,a0:()=>ge,a1:()=>_,a3:()=>ue,a4:()=>Pe,a5:()=>Ze,a6:()=>we,a7:()=>me,a8:()=>be,b:()=>M,c:()=>ae,d:()=>ke,e:()=>B,f:()=>L,g:()=>Y,h:()=>R,i:()=>Z,j:()=>z,k:()=>G,l:()=>E,m:()=>q,n:()=>$,o:()=>K,p:()=>O,q:()=>U,r:()=>Q,t:()=>ce,u:()=>P,v:()=>fe,w:()=>le,y:()=>se,z:()=>oe});var n=r(66131),i=r(99719),s=r(85935),o=r(92400),a=r(93818),l=r(7320),u=r(33325),c=r(14607),p=r(44729),f=r(15032),d=r(91075),h=r(48526),y=r(86738),g=r(39829),m=r(82799),b=r(95108),w=r(73444),S=r(54218),v=r(92647),T=r(94128);class C{constructor(e){this.value=e}}class N{constructor(e){this.value=e}}const A={type:"VOID"},x=Symbol("BREAK"),F=Symbol("CONTINUE");function _(e,t,r){return""===t||null==t||t===r||t===r?e:e=e.split(t).join(r)}function Z(e){return e instanceof o.fF}function O(e){return e instanceof i.x}function M(e){return!!((0,S.Kg)(e)||(0,S.Et)(e)||B(e)||U(e)||Q(e)||(0,S.Lm)(e)||null===e||e===A)}function k(e,t){return void 0===e?t:e}function D(e){if(null==e)return"";if((0,S.cy)(e))return"Array";if(Y(e))return"Array";if(B(e))return"Date";if(Q(e))return"Time";if(U(e))return"DateOnly";if((0,S.Kg)(e))return"String";if((0,S.Lm)(e))return"Boolean";if((0,S.Et)(e))return"Number";if(q(e))return"Attachment";if($(e))return"Portal";if(E(e))return"Dictionary";if(K(e))return"KnowledgeGraph";if(O(e))return"Module";if(R(e))return"Feature";if(L(e))switch(e.type){case"point":return"Point";case"polygon":return"Polygon";case"polyline":return"Polyline";case"multipoint":return"Multipoint";case"extent":return"Extent";default:return"Unrecognized Type"}return Z(e)?"Function":G(e)?"FeatureSet":z(e)?"FeatureSetCollection":J(e)?"Voxel":j(e)?"Pixel":e===A?"":"number"==typeof e&&isNaN(e)?"Number":"Unrecognized Type"}function P(e){return e===A}function L(e){return e instanceof d.A}function I(e){return e instanceof y.A}function R(e){return"esri.arcade.Feature"===e?.arcadeDeclaredClass}function J(e){return"esri.arcade.Voxel"===e?.arcadeDeclaredClass}function j(e){return"esri.arcade.Pixel"===e?.arcadeDeclaredClass}function G(e){return"esri.arcade.featureset.support.FeatureSet"===e?.declaredRootClass}function E(e){return"esri.arcade.Dictionary"===e?.declaredClass}function $(e){return"esri.arcade.Portal"===e?.declaredClass}function q(e){return"esri.arcade.Attachment"===e?.declaredClass}function V(e){return E(e)||R(e)||J(e)||j(e)}function z(e){return"esri.arcade.featureSetCollection"===e?.declaredRootClass}function K(e){return"esri.rest.knowledgeGraph.KnowledgeGraph"===e?.declaredClass}function Y(e){return e instanceof a.A}function B(e){return e instanceof n.lY}function U(e){return e instanceof p.n}function Q(e){return e instanceof f.k}function X(e){return null!=e&&"object"==typeof e}function H(e,t,r,n){if(e.length<t||e.length>r)throw new s.D$("WrongNumberOfParameters",n)}function W(e){return null==e||P(e)||""===e}function ee(e){return e<0?-Math.round(-e):Math.round(e)}function te(e,t){return isNaN(e)||null==t||""===t?e.toString():(t=_(t,"‰",""),t=_(t,"¤",""),(0,c.GP)(e,{pattern:t}))}function re(e,t){return null==t||""===t?e.toISOString(!0):e.toFormat(ne(t),{locale:(0,w.JK)(),numberingSystem:"latn"})}function ne(e,t=!1){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let r="";const n=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|Z{1,5}|.)/g;for(const i of e.match(n)||[])switch(i){case"D":r+="d";break;case"DD":r+="dd";break;case"DDD":r+="o";break;case"d":r+="c";break;case"ddd":r+="ccc";break;case"dddd":r+="cccc";break;case"M":r+="L";break;case"MM":r+="LL";break;case"MMM":r+="LLL";break;case"MMMM":r+="LLLL";break;case"YY":r+="yy";break;case"Y":case"YYYY":r+="yyyy";break;case"Q":r+="q";break;case"Z":r+="Z";break;case"ZZ":r+="ZZ";break;case"ZZZ":r+="ZZZ";break;case"ZZZZ":r+=t?"[ZZZZ]":"ZZZZ";break;case"ZZZZZ":r+=t?"[ZZZZZ]":"ZZZZZ";break;case"S":r+="'S'";break;case"SS":r+="'SS'";break;case"SSS":r+="u";break;case"A":case"a":r+="a";break;case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":case"X":case"x":r+=i;break;default:i.length>=2&&i.startsWith("[")&&i.endsWith("]")?r+=`'${i.slice(1,-1)}'`:r+=`'${i}'`}return r}function ie(e,t,r){switch(r){case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}return!1}function se(e,t,r){if(null===e){if(null===t||t===A)return ie(null,null,r);if((0,S.Et)(t))return ie(0,t,r);if((0,S.Kg)(t))return ie(0,fe(t),r);if((0,S.Lm)(t))return ie(0,fe(t),r);if(B(t))return ie(0,t.toNumber(),r);if(Q(t))return ie(e,t.toNumber(),r);if(U(t))return ie(e,t.toNumber(),r)}if(e===A){if(null===t||t===A)return ie(null,null,r);if((0,S.Et)(t))return ie(0,t,r);if((0,S.Kg)(t))return ie(0,fe(t),r);if((0,S.Lm)(t))return ie(0,fe(t),r);if(B(t))return ie(0,t.toNumber(),r);if(Q(t))return ie(e,t.toNumber(),r);if(U(t))return ie(e,t.toNumber(),r)}else if((0,S.Et)(e)){if((0,S.Et)(t))return ie(e,t,r);if((0,S.Lm)(t))return ie(e,fe(t),r);if(null===t||t===A)return ie(e,0,r);if((0,S.Kg)(t))return ie(e,fe(t),r);if(B(t))return ie(e,t.toNumber(),r);if(Q(t))return ie(e,t.toNumber(),r);if(U(t))return ie(e,t.toNumber(),r)}else if((0,S.Kg)(e)){if((0,S.Kg)(t))return ie(le(e),le(t),r);if(B(t))return ie(fe(e),t.toNumber(),r);if(Q(t))return ie(fe(e),t.toNumber(),r);if(U(t))return ie(fe(e),t.toNumber(),r);if((0,S.Et)(t))return ie(fe(e),t,r);if(null===t||t===A)return ie(fe(e),0,r);if((0,S.Lm)(t))return ie(fe(e),fe(t),r)}else if(B(e)){if(B(t))return e.timeZone!==t.timeZone&&(e.isUnknownTimeZone?e=n.lY.arcadeDateAndZoneToArcadeDate(e,t.timeZone):t.isUnknownTimeZone&&(t=n.lY.arcadeDateAndZoneToArcadeDate(t,e.timeZone))),ie(e.toNumber(),t.toNumber(),r);if(null===t||t===A)return ie(e.toNumber(),0,r);if((0,S.Et)(t))return ie(e.toNumber(),t,r);if((0,S.Lm)(t))return ie(e.toNumber(),fe(t),r);if((0,S.Kg)(t))return ie(e.toNumber(),fe(t),r);if(Q(t))throw new s.D$("CannotCompareDateAndTime",null);if(U(t))return ie(e.toNumber(),t.toNumber(),r)}else if((0,S.Lm)(e)){if((0,S.Lm)(t))return ie(e,t,r);if((0,S.Et)(t))return ie(fe(e),fe(t),r);if(B(t))return ie(fe(e),t.toNumber(),r);if(Q(t))return ie(fe(e),t.toNumber(),r);if(U(t))return ie(fe(e),t.toNumber(),r);if(null===t||t===A)return ie(fe(e),0,r);if((0,S.Kg)(t))return ie(fe(e),fe(t),r)}else if(U(e)){if(B(t))return ie(e.toNumber(),t.toNumber(),r);if(null===t||t===A)return ie(e.toNumber(),0,r);if((0,S.Et)(t))return ie(e.toNumber(),t,r);if((0,S.Lm)(t))return ie(e.toNumber(),fe(t),r);if((0,S.Kg)(t))return ie(e.toNumber(),fe(t),r);if(Q(t))throw new s.D$("CannotCompareDateAndTime",null);if(U(t))return ie(e.toNumber(),t.toNumber(),r)}else if(Q(e)){if(B(t))throw new s.D$("CannotCompareDateAndTime",null);if(null===t||t===A)return ie(e.toNumber(),0,r);if((0,S.Et)(t))return ie(e.toNumber(),t,r);if((0,S.Lm)(t))return ie(e.toNumber(),fe(t),r);if((0,S.Kg)(t))return ie(e.toNumber(),fe(t),r);if(Q(t))return ie(e.toNumber(),t.toNumber(),r);if(U(t))throw new s.D$("CannotCompareDateAndTime",null)}return!!oe(e,t)&&("<="===r||">="===r)}function oe(e,t){if(e===t)return!0;if(null===e&&t===A||null===t&&e===A)return!0;if(B(e)&&B(t))return e.equals(t);if(Q(e)&&Q(t))return e.equals(t);if(U(e)&&U(t))return e.equals(t);if(Y(e))return e.equalityTest(t);if(I(e)&&I(t)){const r=e.cache._arcadeCacheId,n=t.cache._arcadeCacheId;if(null!=r)return r===n}if(X(e)&&X(t)){if(e._arcadeCacheId===t._arcadeCacheId&&void 0!==e._arcadeCacheId&&null!==e._arcadeCacheId)return!0;if(e._underlyingGraphic===t._underlyingGraphic&&void 0!==e._underlyingGraphic&&null!==e._underlyingGraphic)return!0}return!1}function ae(e,{useNumbersForDates:t}){let r="";for(const n in e){""!==r&&(r+=",");const i=e[n];null==i?r+=JSON.stringify(n)+":null":(0,S.Lm)(i)||(0,S.Et)(i)||(0,S.Kg)(i)?r+=JSON.stringify(n)+":"+JSON.stringify(i):L(i)?r+=JSON.stringify(n)+":"+ce(i):Q(i)||U(i)?r+=`${JSON.stringify(n)}:${JSON.stringify(i.toString())}`:Y(i)||Array.isArray(i)?r+=JSON.stringify(n)+":"+ce(i,null,t):B(i)?r+=t?JSON.stringify(n)+":"+JSON.stringify(i.getTime()):JSON.stringify(n)+":"+i.stringify():null!==i&&"object"==typeof i&&"castToText"in i&&(r+=JSON.stringify(n)+":"+i.castToText(t))}return"{"+r+"}"}function le(e,t){if((0,S.Kg)(e))return e;if(null===e)return"";if((0,S.Et)(e))return te(e,t);if((0,S.Lm)(e))return e.toString();if(B(e))return re(e,t);if(Q(e))return e.toFormat(t);if(U(e))return e.toFormat(t);if(L(e))return JSON.stringify(e.toJSON());if((0,S.cy)(e)){const t=[];for(let r=0;r<e.length;r++)t[r]=pe(e[r]);return"["+t.join(",")+"]"}if(Y(e)){const t=[];for(let r=0;r<e.length();r++)t[r]=pe(e.get(r));return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText():Z(e)?"object, Function":e===A?"":O(e)?"object, Module":""}function ue(e){const t=[];if(Y(e)){for(let r=0;r<e.length();r++)t[r]=fe(e.get(r));return t}if(!(0,S.cy)(e))return null;for(let r=0;r<e.length;r++)t[r]=fe(e[r]);return t}function ce(e,t,r=!1){if((0,S.Kg)(e))return e;if(null===e)return"";if((0,S.Et)(e))return te(e,t);if((0,S.Lm)(e))return e.toString();if(B(e))return re(e,t);if(Q(e))return e.toFormat(t);if(U(e))return e.toFormat(t);if(L(e))return"extent"===e.type?'{"xmin":'+e.xmin.toString()+',"ymin":'+e.ymin.toString()+","+(e.hasZ?'"zmin":'+e.zmin.toString()+",":"")+(e.hasM?'"mmin":'+e.mmin.toString()+",":"")+'"xmax":'+e.xmax.toString()+',"ymax":'+e.ymax.toString()+","+(e.hasZ?'"zmax":'+e.zmax.toString()+",":"")+(e.hasM?'"mmax":'+e.mmax.toString()+",":"")+'"spatialReference":'+ve(e.spatialReference)+"}":ve(e.toJSON(),(e,t)=>e.key===t.key?0:"spatialReference"===e.key?1:"spatialReference"===t.key||e.key<t.key?-1:e.key>t.key?1:0);if((0,S.cy)(e)){const t=[];for(let n=0;n<e.length;n++)t[n]=pe(e[n],r);return"["+t.join(",")+"]"}if(Y(e)){const t=[];for(let n=0;n<e.length();n++)t[n]=pe(e.get(n),r);return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText(r):Z(e)?"object, Function":P(e)?"":O(e)?"object, Module":""}function pe(e,t=!1){if(null===e)return"null";if((0,S.Lm)(e)||(0,S.Kg)(e))return JSON.stringify(e);if((0,S.Et)(e))return e.toString();if(L(e))return ce(e,null,t);if(Y(e))return ce(e,null,t);if((0,S.cy)(e))return ce(e,null,t);if(B(e))return t?JSON.stringify(e.getTime()):JSON.stringify(re(e,""));if(Q(e))return JSON.stringify(e.toString());if(U(e))return JSON.stringify(e.toString());if(null!==e&&"object"==typeof e){if("castToText"in e)return e.castToText(t)}else if(e===A)return"null";return"null"}function fe(e,t){return(0,S.Et)(e)?e:null===e||""===e?0:B(e)||U(e)||Q(e)?NaN:(0,S.Lm)(e)?e?1:0:(0,S.cy)(e)||""===e||void 0===e?NaN:void 0!==t&&(0,S.Kg)(e)?(t=_(t,"‰",""),t=_(t,"¤",""),(0,c.qg)(e,{pattern:t})):e===A?0:Number(e)}function de(e,t){if(B(e))return e;if((0,S.Kg)(e)){const r=function(e,t){const r=/ (\d\d)/,i=(0,n.mT)(t);let s=v.c9.fromISO(e,{zone:i});return s.isValid||r.test(e)&&(e=e.replace(r,"T$1"),s=v.c9.fromISO(e,{zone:t}),s.isValid)?s:null}(e,t);if(r)return n.lY.dateTimeToArcadeDate(r)}return null}function he(e){return(0,S.Lm)(e)?e:(0,S.Kg)(e)?"true"===(e=e.toLowerCase()):!!(0,S.Et)(e)&&0!==e&&!isNaN(e)}function ye(e,t){return null==e?null:(null!==e.spatialReference&&void 0!==e.spatialReference||(e.spatialReference=t),e)}function ge(e){if(null==e)return null;if("point"===e.type)return"NaN"===e.x||null===e.x||isNaN(e.x)?null:e;if("polygon"===e.type){if(0===(e.curveRings??e.rings).length)return null;for(const t of e.curveRings??e.rings)if(t.length>0)return e;return null}if("polyline"===e.type){if(0===(e.curvePaths??e.paths).length)return null;for(const t of e.curvePaths??e.paths)if(t.length>0)return e;return null}return"multipoint"===e.type?0===e.points.length?null:e:"extent"===e.type?"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)?null:e:null}function me(e,t){if(!e)return t;if(!e.domain)return t;let r=null,n=null;if(B(t))r=t.toNumber();else if(U(t))r=t.toString();else if(Q(t))r=t.toStorageString();else if("string"===e.field.type||"esriFieldTypeString"===e.field.type)r=le(t);else{if(null==t)return null;if(""===t)return t;r=fe(t)}for(let t=0;t<e.domain.codedValues.length;t++){const i=e.domain.codedValues[t];i.code===r&&(n=i)}return null===n?le(t):n.name}function be(e,t){if(!e)return t;if(!e.domain)return t;let r=null;const n=le(t);for(let t=0;t<e.domain.codedValues.length;t++){const i=e.domain.codedValues[t];i.name===n&&(r=i)}return null===r?t:r.code}function we(e,t,r=null,n=null){if(!t)return null;if(!t.fields)return null;let i,o,a=null;for(let r=0;r<t.fields.length;r++){const n=t.fields[r];n.name.toLowerCase()===e.toString().toLowerCase()&&(a=n)}if(null===a)throw new s.D$("FieldNotFound",null,{key:e});let l=t.typeIdField,u="id",c=t.types;if(t.subtypeField&&(l=t.subtypeField,u="code",c=t.subtypes??[]),null===n&&r&&l)n=r.hasField(l)?r.field(l):null;else if(l&&null!==n){let e=!1;for(const t of c||[])if(n===t[u]){e=!0;break}if(!e)for(const t of c||[])if(n===t.name){n=t[u],e=!0;break}e||(n=null,r&&l&&(n=r.hasField(l)?r.field(l):null))}return null!=n&&c.some(e=>e[u]===n&&(i=e.domains?.[a.name],i&&"inherited"===i.type&&(i=Se(a.name,t),o=!0),!0)),o||i||(i=Se(e,t)),{field:a,domain:i}}function Se(e,t){let r;return t.fields.some(t=>(t.name.toLowerCase()===e.toLowerCase()&&(r=t.domain),!!r)),r}function ve(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const r="boolean"==typeof t.cycles&&t.cycles,n=t.cmp&&(i=t.cmp,function(e){return function(t,r){const n={key:t,value:e[t]},s={key:r,value:e[r]};return i(n,s)}});var i;const s=[];return function e(t){if(t?.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===t)return;if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);let i,o;if(Array.isArray(t)){for(o="[",i=0;i<t.length;i++)i&&(o+=","),o+=e(t[i])||"null";return o+"]"}if(null===t)return"null";if(s.includes(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const a=s.push(t)-1,l=Object.keys(t).sort(n?.(t));for(o="",i=0;i<l.length;i++){const r=l[i],n=e(t[r]);n&&(o&&(o+=","),o+=JSON.stringify(r)+":"+n)}return s.splice(a,1),"{"+o+"}"}(e)}function Te(e){const t=[];for(const r of e)R(r)?t.push(r.geometry()):t.push(r);return t}function Ce(e,t){if(!I(t))throw new s.D$("InvalidParameter",null);e.push(t.hasZ?t.hasM?[t.x,t.y,t.z,t.m]:[t.x,t.y,t.z]:[t.x,t.y])}function Ne(e,t){if((0,S.cy)(e)||Y(e)){let r=!1,n=!1,i=[],o=t;if((0,S.cy)(e)){for(const t of e)Ce(i,t);i.length>0&&(o=e[0].spatialReference,r=e[0].hasZ,n=e[0].hasM)}else if(e instanceof l.A)i=e._elements,i.length>0&&(r=e.hasZ(),n=e.hasM(),o=e.get(0).spatialReference);else{if(!Y(e))throw new s.D$("InvalidParameter",null);for(const t of e.toArray())Ce(i,t);i.length>0&&(o=e.get(0).spatialReference,r=!0===e.get(0).hasZ,n=!0===e.get(0).hasM)}return 0===i.length?null:((0,b.$3)(i)||(i=i.slice().reverse()),new g.A({rings:[i],spatialReference:o,hasZ:r,hasM:n}))}return e}function Ae(e,t){if((0,S.cy)(e)||Y(e)){let r=!1,n=!1,i=[],s=t;if((0,S.cy)(e)){for(const t of e)Ce(i,t);i.length>0&&(s=e[0].spatialReference,r=!0===e[0].hasZ,n=!0===e[0].hasM)}else if(e instanceof l.A)i=e._elements,i.length>0&&(r=e.hasZ(),n=e.hasM(),s=e.get(0).spatialReference);else if(Y(e)){for(const t of e.toArray())Ce(i,t);i.length>0&&(s=e.get(0).spatialReference,r=!0===e.get(0).hasZ,n=!0===e.get(0).hasM)}return 0===i.length?null:new m.A({paths:[i],spatialReference:s,hasZ:r,hasM:n})}return e}function xe(e,t){if((0,S.cy)(e)||Y(e)){let r=!1,n=!1,i=[],s=t;if((0,S.cy)(e)){for(const t of e)Ce(i,t);i.length>0&&(s=e[0].spatialReference,r=!0===e[0].hasZ,n=!0===e[0].hasM)}else if(e instanceof l.A)i=e._elements,i.length>0&&(r=e.hasZ(),n=e.hasM(),s=e.get(0).spatialReference);else if(Y(e)){for(const t of e.toArray())Ce(i,t);i.length>0&&(s=e.get(0).spatialReference,r=!0===e.get(0).hasZ,n=!0===e.get(0).hasM)}return 0===i.length?null:new h.A({points:i,spatialReference:s,hasZ:r,hasM:n})}return e}function Fe(e,t=!0){if(null==e)return[];if((0,S.cy)(e)){const r=[];for(const n of e){const e=le(n);(t||""!==e)&&r.push(e)}return r}if(Y(e)){const r=[];for(let n=0;n<e.length();n++){const i=le(e.get(n));(t||""!==i)&&r.push(i)}return r}if(M(e)){const r=le(e);if(t||""!==r)return[r]}return[]}let _e=0;function Ze(){return _e++,_e%100==0?(_e=0,new Promise(e=>{setTimeout(()=>{e()},0)})):Promise.resolve()}function Oe(e,t,r){switch(r){case"&":return e&t;case"|":return e|t;case"^":return e^t;case"<<":return e<<t;case">>":return e>>t;case">>>":return e>>>t}}function Me(e){return null==e?null:(0,S.Lm)(e)||(0,S.Et)(e)||(0,S.Kg)(e)?e:L(e)?e.toJSON():Y(e)?e.toArray().map(e=>Me(e)):Array.isArray(e)?e.map(e=>Me(e)):(0,S.$P)(e)?e:B(e)?e.toJSDate():Q(e)?e.toString():U(e)?e.toJSDate():"castAsJson"in e?e.castAsJson():null}async function ke(e,t=null){if(Y(e)&&(e=e.toArray()),null==e)return null;if(M(e)||L(e)||(0,S.$P)(e)||B(e))return Me(e);if(Array.isArray(e)){const r=[],n=[];for(const i of e)if(null===i||M(i)||L(i)||(0,S.$P)(i)||B(i))n.push(Me(i));else{const e=n.push(null)-1;r.push(ke(i,t).then(t=>{n[e]=t}))}return r.length>0&&await Promise.all(r),n}return"castAsJsonAsync"in e?e.castAsJsonAsync(t):null}function De(e){return Pe(e)?e.parent:e}function Pe(e){return e&&"declaredClass"in e&&"esri.layers.support.SubtypeSublayer"===e.declaredClass}function Le(e,t,r){const n=De(e.fullSchema());return null===n?null:n.fields?we(t,n,e,r):null}function Ie(e){const t=De(e.fullSchema());return null===t?null:t.fields?t.subtypeField?{subtypeField:t.subtypeField,subtypes:t.subtypes?t.subtypes.map(e=>({name:e.name,code:e.code})):[]}:t.typeIdField?{subtypeField:t.typeIdField,subtypes:t.types?t.types.map(e=>({name:e.name,code:e.id})):[]}:null:null}function Re(e,t,r,n){const i=De(e.fullSchema());if(null===i)return null;if(!i.fields)return null;const s=we(t,i,e,n);if(void 0===r)try{r=e.field(t)}catch(e){return null}return me(s,r)}function Je(e,t,r,n){const i=De(e.fullSchema());if(null===i)return null;if(!i.fields)return null;if(void 0===r){try{r=e.field(t)}catch(e){return null}return r}return be(we(t,i,e,n),r)}function je(e){return e?.timeZone??"system"}function Ge(e){const t=De(e.fullSchema());if(null===t)return null;if(!t.fields)return null;const r=[];for(const e of t.fields)r.push((0,u.nE)(e));return{objectIdField:t.objectIdField,globalIdField:t.globalIdField??"",geometryType:void 0===u.yT[t.geometryType]?"":u.yT[t.geometryType],fields:r}}const Ee=Object.freeze(Object.defineProperty({__proto__:null,ImplicitResult:N,ReturnResult:C,absRound:ee,arcadeVersion:"1.36",autoCastArrayOfPointsToMultiPoint:xe,autoCastArrayOfPointsToPolygon:Ne,autoCastArrayOfPointsToPolyline:Ae,autoCastFeatureToGeometry:Te,binaryOperator:Oe,breakResult:x,castAsJson:Me,castAsJsonAsync:ke,castRecordToText:ae,continueResult:F,defaultTimeZone:je,defaultUndefined:k,equalityTest:oe,featureDomainCodeLookup:Je,featureDomainValueLookup:Re,featureFullDomain:Le,featureSchema:Ge,featureSubtypes:Ie,fixNullGeometry:ge,fixSpatialReference:ye,getDomain:we,getDomainCode:be,getDomainValue:me,getType:D,greaterThanLessThan:se,isArray:S.cy,isAttachment:q,isBoolean:S.Lm,isDate:B,isDateOnly:U,isDictionary:E,isDictionaryLike:V,isEmpty:W,isFeature:R,isFeatureSet:G,isFeatureSetCollection:z,isFunctionParameter:Z,isGeometry:L,isGraphic:T.D,isImmutableArray:Y,isInteger:S.Fq,isJsDate:S.$P,isKnowledgeGraph:K,isModule:O,isNumber:S.Et,isPixel:j,isPortal:$,isSimpleType:M,isString:S.Kg,isSubtypeGrouplayer:function(e){return e&&"declaredClass"in e&&"esri.layers.SubtypeGroupLayer"===e.declaredClass},isSubtypeSublayer:Pe,isTime:Q,isVoid:P,isVoxel:J,multiReplace:_,pcCheck:H,standardiseDateFormat:ne,tick:Ze,toBoolean:he,toDate:de,toNumber:fe,toNumberArray:ue,toString:le,toStringArray:Fe,toStringExplicit:ce,voidOperation:A},Symbol.toStringTag,{value:"Module"}));r.d(t,["C",0,x,"D",0,F,"s",0,Ee,"x",0,A])},14607(e,t,r){r.d(t,{B:()=>u,GP:()=>a,qg:()=>c});var n=r(799),i=r(73444);const s={ar:[".",","],bg:[","," "],bs:[",","."],ca:[",","."],cs:[","," "],da:[",","."],de:[",","."],"de-ch":[".","’"],el:[",","."],en:[".",","],"en-au":[".",","],es:[",","."],"es-mx":[".",","],et:[","," "],fi:[","," "],fr:[","," "],"fr-ch":[","," "],he:[".",","],hi:[".",",","#,##,##0.###"],hr:[",","."],hu:[","," "],id:[",","."],it:[",","."],"it-ch":[".","’"],ja:[".",","],ko:[".",","],lt:[","," "],lv:[","," "],mk:[",","."],nb:[","," "],nl:[",","."],no:[","," "],pl:[","," "],pt:[",","."],"pt-pt":[","," "],ro:[",","."],ru:[","," "],sk:[","," "],sl:[",","."],sr:[",","."],sv:[","," "],th:[".",","],tr:[",","."],uk:[","," "],vi:[",","."],zh:[".",","]};function o(e=(0,i.JK)()){let t=(e=e.toLowerCase())in s;if(!t){const r=e.split("-");r.length>1&&r[0]in s&&(e=r[0],t=!0),t||(e="en")}const[r,n,o="#,##0.###"]=s[e];return{decimal:r,group:n,pattern:o}}function a(e,t){const r=o((t={...t}).locale);t.customs=r;const n=t.pattern||r.pattern;return isNaN(e)||Math.abs(e)===1/0?null:function(e,t,r){const n=(r=r||{}).customs.group,i=r.customs.decimal,s=t.split(";"),o=s[0];if((t=s[e<0?1:0]||"-"+o).includes("%"))e*=100;else if(t.includes("‰"))e*=1e3;else{if(t.includes("¤"))throw new Error("currency notation not supported");if(t.includes("E"))throw new Error("exponential notation not supported")}const a=l,u=o.match(a);if(!u)throw new Error("unable to find a number expression in pattern: "+t);return!1===r.fractional&&(r.places=0),t.replace(a,function(e,t,r){!0===(r=r||{}).places&&(r.places=0),r.places===1/0&&(r.places=6);const n=t.split("."),i="string"==typeof r.places&&r.places.indexOf(",");let s=r.places;i?s=r.places.slice(i+1):+s>=0||(s=(n[1]||[]).length),r.round<0||(e=Number(e.toFixed(Number(s))));const o=String(Math.abs(e)).split("."),a=o[1]||"";if(n[1]||r.places){i&&(r.places=r.places.slice(0,Math.max(0,i)));const e=void 0!==r.places?r.places:n[1]&&n[1].lastIndexOf("0")+1;+e>a.length&&(o[1]=a.padEnd(Number(e),"0")),+s<a.length&&(o[1]=a.slice(0,Math.max(0,Number(s))))}else o[1]&&o.pop();const l=n[0].replace(",","");let u=l.indexOf("0");-1!==u&&(u=l.length-u,u>o[0].length&&(o[0]=o[0].padStart(u,"0")),l.includes("#")||(o[0]=o[0].slice(-u)));let c,p,f=n[0].lastIndexOf(",");if(-1!==f){c=n[0].length-f-1;const e=n[0].slice(0,f);f=e.lastIndexOf(","),-1!==f&&(p=e.length-f-1)}const d=[];for(let e=o[0];e;){const t=e.length-c;d.push(t>0?e.slice(Math.max(0,t)):e),e=t>0?e.slice(0,t):"",p&&(c=p,p=void 0)}return o[0]=d.reverse().join(r.group||","),o.join(r.decimal||".")}(e,u[0],{decimal:i,group:n,places:r.places,round:r.round}))}(e,n,t)}const l=/[#0,]*[#0](?:\.0*#*)?/;function u(e){const t=o((e=e||{}).locale),r=e.pattern||t.pattern,i=t.group,s=t.decimal;let a=1;if(r.includes("%"))a/=100;else if(r.includes("‰"))a/=1e3;else if(r.includes("¤"))throw new Error("currency notation not supported");const u=r.split(";");1===u.length&&u.push("-"+u[0]);const c=f(u,t=>(t="(?:"+(0,n.Cj)(t,".")+")").replace(l,t=>{const r={signed:!1,separator:e.strict?i:[i,""],fractional:e.fractional,decimal:s,exponent:!1},n=t.split(".");let o=e.places;1===n.length&&1!==a&&(n[1]="###"),1===n.length||0===o?r.fractional=!1:(void 0===o&&(o=e.pattern?n[1].lastIndexOf("0")+1:1/0),o&&null==e.fractional&&(r.fractional=!0),!e.places&&+o<n[1].length&&(o+=","+n[1].length),r.places=o);const l=n[0].split(",");return l.length>1&&(r.groupSize=l.pop().length,l.length>1&&(r.groupSize2=l.pop().length)),"("+function(e){"places"in(e=e||{})||(e.places=1/0),"string"!=typeof e.decimal&&(e.decimal="."),"fractional"in e&&!String(e.places).startsWith("0")||(e.fractional=[!0,!1]),"exponent"in e||(e.exponent=[!0,!1]),"eSigned"in e||(e.eSigned=[!0,!1]);const t=p(e),r=f(e.fractional,t=>{let r="";return t&&0!==e.places&&(r="\\"+e.decimal,e.places===1/0?r="(?:"+r+"\\d+)?":r+="\\d{"+e.places+"}"),r},!0);let n=t+r;return r&&(n="(?:(?:"+n+")|(?:"+r+"))"),n+f(e.exponent,t=>t?"([eE]"+p({signed:e.eSigned})+")":"")}(r)+")"}),!0);return{regexp:c.replaceAll(/[\xa0 ]/g,"[\\s\\xa0]"),group:i,decimal:s,factor:a}}function c(e,t){const r=u(t),n=new RegExp("^"+r.regexp+"$").exec(e);if(!n)return NaN;let i=n[1];if(!n[1]){if(!n[2])return NaN;i=n[2],r.factor*=-1}return i=i.replaceAll(new RegExp("["+r.group+"\\s\\xa0]","g"),"").replace(r.decimal,"."),Number(i)*r.factor}function p(e){return"signed"in(e=e||{})||(e.signed=[!0,!1]),"separator"in e?"groupSize"in e||(e.groupSize=3):e.separator="",f(e.signed,e=>e?"[-+]":"",!0)+f(e.separator,t=>{if(!t)return"(?:\\d+)";" "===(t=(0,n.Cj)(t))?t="\\s":" "===t&&(t="\\s\\xa0");const r=e.groupSize,i=e.groupSize2;if(i){const e="(?:0|[1-9]\\d{0,"+(i-1)+"}(?:["+t+"]\\d{"+i+"})*["+t+"]\\d{"+r+"})";return r-i>0?"(?:"+e+"|(?:0|[1-9]\\d{0,"+(r-1)+"}))":e}return"(?:0|[1-9]\\d{0,"+(r-1)+"}(?:["+t+"]\\d{"+r+"})*)"},!0)}const f=(e,t,r)=>{if(!Array.isArray(e))return t(e);const n=[];for(let r=0;r<e.length;r++)n.push(t(e[r]));return d(n.join("|"),Boolean(r))},d=(e,t)=>"("+(t?"?:":"")+e+")"},48526(e,t,r){r.d(t,{A:()=>g});var n,i=r(5482),s=r(4576),o=r(4718),a=r(91429),l=r(5443),u=r(91075),c=r(86738),p=r(16930),f=r(90634),d=r(47610),h=r(56993),y=r(43937);let g=n=class extends u.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:r,hasZ:n,spatialReference:i}=e;switch(t??=[],t?.at(0)?.length){case 4:n??=!0,r??=!0;break;case 3:n??=!0!==r,r??=!n;break;default:n??=!1,r??=!1}return i??=p.A.WGS84,{...e,hasM:r,hasZ:n,points:t,spatialReference:i}}(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 l.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,o.o8)(this.points)}clone(){const{points:e,spatialReference:t,hasM:r,hasZ:i}=this;return new n({points:(0,o.o8)(e),spatialReference:t.clone(),hasM:r,hasZ:i})}equals(e){if(this===e)return!0;if(null==e)return!1;const t=this.spatialReference,r=e.spatialReference;return null!=t==(null!=r)&&!(null!=t&&null!=r&&!t.equals(r))&&(0,s.aI)(this.points,e.points,d.v6)}addPoint(e){return(0,h.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],r={x:t[0],y:t[1],spatialReference:this.spatialReference};let n=2;return this.hasZ&&(r.z=t[2],n=3),this.hasM&&(r.m=t[n]),new c.A(r)}removePoint(e){if(!this._validateInputs(e))return null;const t=new c.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?((0,h.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,i.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"cache",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"extent",null),(0,i.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],g.prototype,"points",void 0),(0,i.Cg)([(0,y.K)("points")],g.prototype,"writePoints",null),g=n=(0,i.Cg)([(0,a.$K)("esri.geometry.Multipoint")],g),g.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,r){r.d(t,{A:()=>h});var n,i=r(5482),s=r(4718),o=r(91429),a=r(5443),l=r(91075),u=r(86738),c=r(16930),p=r(90634),f=r(56993),d=r(43937);let h=n=class extends l.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:r,hasZ:n,spatialReference:i}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:n??=!0,r??=!0;break;case 3:n??=!0!==r,r??=!n;break;default:n??=!1,r??=!1}return i??=c.A.WGS84,{...e,hasM:r,hasZ:n,paths:t,spatialReference:i}}(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,p.Z3)(this),{spatialReference:t}=this;return e?new a.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,s.o8)(this.paths)}addPath(e){if(!e)return;const t=this.paths,r=t.length;if(function(e){return!Array.isArray(e[0])}(e)){const n=[];for(let t=0,r=e.length;t<r;t++)n[t]=e[t].toArray();t[r]=n}else t[r]=e.slice();return this.notifyChange("paths"),this}clone(){const e=new n;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 r=this.paths[e][t],n=this.hasZ,i=this.hasM;return n&&!i?new u.A(r[0],r[1],r[2],void 0,this.spatialReference):i&&!n?new u.A(r[0],r[1],void 0,r[2],this.spatialReference):n&&i?new u.A(r[0],r[1],r[2],r[3],this.spatialReference):new u.A(r[0],r[1],this.spatialReference)}insertPoint(e,t,r){return this._validateInputs(e,t,!0)?((0,f.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e].splice(t,0,r),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;const t=this.paths.splice(e,1)[0],r=this.spatialReference,n=t.map(e=>new u.A(e,r));return this.notifyChange("paths"),n}removePoint(e,t){if(!this._validateInputs(e,t))return null;const r=new u.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),r}setPoint(e,t,r){return this._validateInputs(e,t)?((0,f.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e][t]=r,this.notifyChange("paths"),this):this}_validateInputs(e,t,r=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){const n=this.paths[e];if(r&&(t<0||t>n.length))return!1;if(!r&&(t<0||t>=n.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],h.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],h.prototype,"curvePaths",void 0),(0,i.Cg)([(0,d.K)("curvePaths")],h.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],h.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],h.prototype,"paths",void 0),(0,i.Cg)([(0,d.K)("paths")],h.prototype,"writePaths",null),h=n=(0,i.Cg)([(0,o.$K)("esri.geometry.Polyline")],h),h.prototype.toJSON.isDefaultToJSON=!0},73444(e,t,r){r.d(t,{JK:()=>l,Ml:()=>g,QC:()=>p,lR:()=>c,oQ:()=>h});var n=r(36563);let i;r(44208);const s=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function a(){const e=o?.getAttribute("lang"),t=globalThis.navigator?.language;return s??e??t??"en"}function l(){return void 0===i&&(i=a()),i}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function c(e=l()){return f(e)?.language}function p(e=l()){const t=f(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function f(e=l()){return u.exec(e)?.groups}const d=[];function h(e){return d.push(e),(0,n.hA)(()=>{d.splice(d.indexOf(e),1)})}new Map;const y=[];function g(e){return y.push(e),(0,n.hA)(()=>y.splice(y.indexOf(e),1))}function m(){const e=a();i!==e&&([...y].forEach(t=>t(e)),i=e,[...d].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",m),o&&new MutationObserver(()=>{m()}).observe(o,{attributeFilter:["lang"]})},39357(e,t,r){r.d(t,{A:()=>a});var n,i=r(5482),s=r(25482),o=r(91429);let a=n=class extends s.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new n({name:this.name,code:this.code})}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],a.prototype,"code",void 0),a=n=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValue")],a)},53177(e,t,r){r.d(t,{A:()=>c});var n,i=r(5482),s=r(4718),o=r(91429),a=r(39357),l=r(76357),u=r(93223);let c=class extends l.A{static{n=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some(e=>(String(e.code)===r&&(t=e.name),!!t))}return t}clone(){return new n({codedValues:(0,s.o8)(this.codedValues),name:this.name})}};(0,i.Cg)([(0,o.MZ)({type:[a.A],json:{write:{isRequired:!0}}})],c.prototype,"codedValues",void 0),(0,i.Cg)([(0,u.e)({codedValue:"coded-value"})],c.prototype,"type",void 0),c=n=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValueDomain")],c)},76357(e,t,r){r.d(t,{A:()=>u});var n=r(5482),i=r(66552),s=r(25482),o=r(91429),a=r(93223);const l=new i.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends s.o{constructor(e){super(e),this.name=null,this.type=null}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,n.Cg)([(0,a.e)(l),(0,o.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),u=(0,n.Cg)([(0,o.$K)("esri.layers.support.Domain")],u)},20437(e,t,r){r.d(t,{A:()=>h});var n,i=r(5482),s=r(66552),o=r(25482),a=r(91429),l=r(56507),u=r(8631),c=r(98453),p=r(36005),f=r(93223);const d=new s.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier",url:"url"});let h=class extends o.o{static{n=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?d.fromJSON(r.fieldValueType):null}clone(){return new n({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"alias",void 0),(0,i.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],h.prototype,"defaultValue",void 0),(0,i.Cg)([(0,a.MZ)()],h.prototype,"description",void 0),(0,i.Cg)([(0,p.w)("description")],h.prototype,"readDescription",null),(0,i.Cg)([(0,a.MZ)({types:u.g,json:{read:{reader:u.r},write:!0}})],h.prototype,"domain",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"editable",void 0),(0,i.Cg)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],h.prototype,"length",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"nullable",void 0),(0,i.Cg)([(0,f.e)(c.m)],h.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)()],h.prototype,"valueType",void 0),(0,i.Cg)([(0,p.w)("valueType",["description"])],h.prototype,"readValueType",null),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1}})],h.prototype,"visible",void 0),h=n=(0,i.Cg)([(0,a.$K)("esri.layers.support.Field")],h)},41628(e,t,r){r.d(t,{A:()=>l});var n,i=r(5482),s=r(91429),o=r(76357),a=r(93223);let l=class extends o.A{static{n=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new n({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]},isRequired:!0}}})],l.prototype,"maxValue",void 0),(0,i.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]},isRequired:!0}}})],l.prototype,"minValue",void 0),(0,i.Cg)([(0,a.e)({range:"range"})],l.prototype,"type",void 0),l=n=(0,i.Cg)([(0,s.$K)("esri.layers.support.RangeDomain")],l)},8631(e,t,r){r.d(t,{r:()=>f,g:()=>p});var n,i=r(53177),s=r(76357),o=r(5482),a=r(91429),l=r(93223);let u=class extends s.A{static{n=this}constructor(e){super(e),this.type="inherited"}clone(){return new n}};(0,o.Cg)([(0,l.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=n=(0,o.Cg)([(0,a.$K)("esri.layers.support.InheritedDomain")],u);var c=r(41628);const p={key:"type",base:s.A,typeMap:{range:c.A,"coded-value":i.A,inherited:u}};function f(e){if(!e?.type)return null;switch(e.type){case"range":return c.A.fromJSON(e);case"codedValue":return i.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},98453(e,t,r){const n=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"});r.d(t,["m",0,n])},67090(e,t,r){r.d(t,{k:()=>a});var n=r(5482),i=r(25482),s=r(10107),o=r(64108);let a=class extends i.o{constructor(e){super(e)}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"key",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"text",void 0),a=(0,n.Cg)([(0,o.$)("esri.rest.support.TranslateContent")],a)},62791(e,t,r){r.d(t,{F:()=>l});var n=r(5482),i=r(25482),s=r(10107),o=r(64108),a=r(67090);let l=class extends i.o{constructor(e){super(e),this.outputCultures=null,this.input=null,this.portalUrl="https://www.arcgis.com",this.provider="default",this.inputCulture=null,this.requestSource=null}};(0,n.Cg)([(0,s.MZ)({type:[String],json:{write:!0}})],l.prototype,"outputCultures",void 0),(0,n.Cg)([(0,s.MZ)({type:[a.k],json:{write:!0}})],l.prototype,"input",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{read:!1,write:!1}})],l.prototype,"portalUrl",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0,default:"default"}})],l.prototype,"provider",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],l.prototype,"inputCulture",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{read:!1,write:!1}})],l.prototype,"requestSource",void 0),l=(0,n.Cg)([(0,o.$)("esri.rest.support.TranslateParameters")],l)},14942(e,t,r){r.d(t,{s:()=>l});var n=r(5482),i=r(25482),s=r(10107),o=r(64108);let a=class extends i.o{};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"text",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"to",void 0),a=(0,n.Cg)([(0,o.$)("esri.rest.support.TranslateResult.Translation")],a);let l=class extends i.o{constructor(e){super(e),this.detectedLanguage="en",this.detectedLanguageScore=-1}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],l.prototype,"key",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{read:{source:"detectedLanguage.language"},write:{target:"detectedLanguage.language"}}})],l.prototype,"detectedLanguage",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{read:{source:"detectedLanguage.score"},write:{target:"detectedLanguage.score"}}})],l.prototype,"detectedLanguageScore",void 0),(0,n.Cg)([(0,s.MZ)({type:[a],json:{write:!0}})],l.prototype,"translations",void 0),l=(0,n.Cg)([(0,o.$)("esri.rest.support.TranslateResult")],l)},45475(e,t,r){r.d(t,{T:()=>o});var n=r(11254),i=r(2272),s=r(14942);async function o(e,t,r){const o=JSON.stringify(t.toJSON()),a={};"https://www.arcgis.com"!==t.portalUrl&&(a.portal=t.portalUrl),null!=t.requestSource&&(a.request_source=t.requestSource),a.token=await(0,i.gf)(t.portalUrl,null,{signal:r?.signal,prompt:"no-prompt"!==r?.authMode});const l=(0,i.Dl)(e),u=(0,i.jV)(l.query,{...r,query:a,body:o,method:"post",authMode:"anonymous"});return(await(0,n.A)(l.path,u)).data.results.map(e=>s.s.fromJSON(e))}},2272(e,t,r){r.d(t,{Dl:()=>u,gf:()=>p,jV:()=>l,lF:()=>c});var n=r(92602),i=r(70333),s=r(4718),o=r(84952),a=r(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,o.An)(e):(0,s.o8)(e)}function c(e,t,r){const n={};for(const i in e){if("declaredClass"===i)continue;const s=e[i];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))n[i]=s.map(e=>c(e));else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(r?.[i]);n[i]=t?e:JSON.stringify(e)}else n[i]=t?s:JSON.stringify(s);else n[i]=s}return n}async function p(e,t,s){const o=function(e,t){return e?t&&(0,a.Qc)(e)?t:(0,a.getApiKey)(e)??i.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!i.id&&n.A.request.useIdentity&&await Promise.all([r.e(7632),r.e(4943),r.e(148)]).then(r.bind(r,50148));const l=await i.id.getCredential(e,s);return l?.token}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3367],{99719(e,t,r){r.d(t,{x:()=>n});class n{}},47609(e,t,r){r.d(t,{A:()=>i});var n=r(66395);class i extends n.A{constructor(e){super({__proto__:null,url:e}),this.declaredClass="esri.arcade.Portal"}get url(){return this.field("url")}}},66395(e,t,r){r.d(t,{A:()=>l});var n=r(66131),i=r(6800),s=r(85935),o=r(78878),a=r(91075);class l{constructor(e){this.declaredClass="esri.arcade.Dictionary",this.plain=!1,this.immutable=!0,e instanceof l?this.attributes=e.attributes:null==e?this.attributes=Object.create(null):null!=Object.getPrototypeOf(e)?this.attributes={__proto__:null,...e}:this.attributes=e}static createMutable(e){const t=new l(e);return t.immutable=!1,t}static containerEntry(e,t){return new l({__proto__:null,key:e,value:t})}static textFormatting(){return l.createMutable({__proto__:null,newline:"\n",tab:"\t",singlequote:"'",doublequote:'"',forwardslash:"/",backwardslash:"\\"})}field(e){const t=e.toLowerCase(),r=this.attributes[e];if(void 0!==r)return r;for(const e in this.attributes)if(e.toLowerCase()===t)return this.attributes[e];throw new s.D$("FieldNotFound",null,{key:e})}setField(e,t){if(this.immutable)throw new s.D$("Immutable",null);if((0,o.i)(t))throw new s.D$("NoFunctionInDictionary",null);const r=e.toLowerCase();if(t instanceof Date&&(t=n.lY.dateJSToArcadeDate(t)),void 0===this.attributes[e]){for(const e in this.attributes)if(e.toLowerCase()===r)return void(this.attributes[e]=t);this.attributes[e]=t}else this.attributes[e]=t}eraseField(e){if(this.immutable)throw new s.D$("Immutable",null);if(e in this.attributes)return void delete this.attributes[e];const t=e.toLowerCase();for(const e in this.attributes)if(e.toLowerCase()===t)return void delete this.attributes[e]}hasField(e){const t=e.toLowerCase();if(void 0!==this.attributes[e])return!0;for(const e in this.attributes)if(e.toLowerCase()===t)return!0;return!1}keys(){const e=[];for(const t in this.attributes)e.push(t);return e.sort((e,t)=>e.toLowerCase()<t.toLowerCase()?-1:1)}values(){return this.keys().map(e=>this.attributes[e])}entryCount(){return Object.keys(this.attributes).length}isEmpty(){return this.entryCount()<=0}castToText(e=!1){return(0,o.c)(this.attributes,{useNumbersForDates:e})}castAsJson(){const e=Object.create(null);for(const t in this.attributes){const r=this.attributes[t];void 0!==r&&(e[t]=(0,o.a)(r))}return e}async castAsJsonAsync(e=null){const t=Object.create(null),r=[];for(const i in this.attributes){const s=this.attributes[i];void 0!==s&&((0,o.b)(s)||s instanceof a.A||s instanceof n.lY?t[i]=(0,o.a)(s):r.push((0,o.d)(s,e).then(e=>{t[i]=e})))}return r.length>0&&await Promise.all(r),t}deepClone(){const e=new l;e.immutable=!1;for(const t of this.keys())e.setField(t,(0,i.G)(this.field(t)));return e}}},92400(e,t,r){r.d(t,{CU:()=>a,UQ:()=>o,fF:()=>i,o6:()=>s});var n=r(17676);class i{constructor(){}}function s(e,t,r){if(e instanceof i&&!(e instanceof a)){const n=new a;return n.fn=e,n.parameterEvaluator=r,n.context=t,n}return e}class o extends i{constructor(e,t){super(),this._name=t,this.fn=e}get debugName(){return null!=this._name?`<native>.${this._name}`:"<native>"}createFunction(e){return(...t)=>this.fn(e,{preparsed:!0,arguments:t})}call(e,t){return this.fn(e,t)}marshalledCall(e,t,r,o){return o(e,t,(t,l,u)=>{u=u.map(t=>t instanceof i&&!(t instanceof a)?s(t,e,o):t);const c=this.call(r,{args:u});return(0,n.$X)(c)?c.then(e=>s(e,r,o)):c})}}class a extends i{constructor(){super(...arguments),this.fn=null,this.context=null}get debugName(){return null!=this.fn.debugName?`<imported>.${this.fn.debugName}`:null}createFunction(e){return this.fn.createFunction(this.context)}call(e,t){return this.fn.marshalledCall(e,t,this.context,this.parameterEvaluator)}marshalledCall(e,t,r){return this.fn.marshalledCall(e,t,this.context,this.parameterEvaluator)}}},93818(e,t,r){r.d(t,{A:()=>n});class n{static from(e){return new i(e)}length(){return this._elements.length}toArray(){return this.slice()}slice(e=0,t=this.length()){const r=[];for(let n=e;n<t;n++)r.push(this.get(n));return r}}class i extends n{constructor(e){super(),this._elements=e}get(e){return this._elements[e]}slice(e=0,t=this.length()){return this._elements.slice(Math.max(e,0),Math.min(t,this.length()))}equalityTest(e){return this===e}}},7320(e,t,r){r.d(t,{A:()=>s});var n=r(93818),i=r(86738);class s extends n.A{constructor(e,t,r,n,i,s){super(),this._elements=e,this._spRef=t,this._hasZ=r,this._hasM=n,this._cacheId=i,this._partId=s,this._lazyPt=[]}hasZ(){return this._hasZ}hasM(){return this._hasM}get(e){if(void 0===this._lazyPt[e]){const t=this._elements[e];if(void 0===t)return;const r=new i.A(t[0],t[1],this._spRef);this._hasZ&&(r.z=t[2]),this._hasM&&(r.m=this._hasZ?t[3]:t[2]),r.cache._arcadeCacheId=this._cacheId.toString()+"-"+this._partId.toString()+"-"+e.toString(),this._lazyPt[e]=r}return this._lazyPt[e]}equalityTest(e){return e===this||null!==e&&e instanceof s!=0&&e.getUniqueHash()===this.getUniqueHash()}getUniqueHash(){return this._cacheId.toString()+"-"+this._partId.toString()}}},48938(e,t,r){r.d(t,{X:()=>i});var n=r(85935);function i(e){if("string"==typeof e)return e.toLowerCase();if("name"in e)return e.name.toLowerCase();if("string"!=typeof e.value)throw new n.D$("InvalidIdentifier",null);return e.value.toLowerCase()}const s=Object.freeze({aborted:!1});r.d(t,["_",0,s])},6800(e,t,r){r.d(t,{G:()=>a,y:()=>s});var n=r(78878),i=r(54218);function s(e){o=e}let o;function a(e){return null==e?null:(0,n.e)(e)?e.clone():(0,n.b)(e)?e:(0,n.f)(e)?e.clone():(0,n.g)(e)?e.toArray().map(e=>a(e)):(0,i.cy)(e)?e.map(e=>a(e)):(0,n.h)(e)?o.createFromArcadeFeature(e):(0,n.j)(e)||(0,n.k)(e)?e:(0,n.l)(e)||(0,n.m)(e)?e.deepClone():((0,n.n)(e)||(0,n.o)(e)||(0,n.p)(e)||(0,n.i)(e),e)}},33325(e,t,r){r.d(t,{$P:()=>c,JB:()=>g,Lk:()=>p,Qi:()=>y,eB:()=>m,eg:()=>h,f0:()=>d,ke:()=>l,nE:()=>u,rX:()=>f});var n=r(66131),i=r(44729),s=r(15032),o=r(20437),a=r(92647);function l(e){return o.A.fromJSON(e.toJSON())}function u(e){return"toJSON"in e?e.toJSON():e}function c(e){return e instanceof Date}function p(e){return e instanceof a.c9}function f(e){return e instanceof n.lY}function d(e){return e instanceof i.n}function h(e){return e instanceof s.k}function y(e){return void 0===e?"":e=(e=(e=e.replace(/\/featureserver\/[0-9]*/i,"/FeatureServer")).replace(/\/mapserver\/[0-9]*/i,"/MapServer")).split("?")[0]}function g(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const r="boolean"==typeof t.cycles&&t.cycles,n=t.cmp&&(i=t.cmp,function(e){return function(t,r){const n={key:t,value:e[t]},s={key:r,value:e[r]};return i(n,s)}});var i;const s=[];return function e(t){if(t?.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===t)return;if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);let i,o;if(Array.isArray(t)){for(o="[",i=0;i<t.length;i++)i&&(o+=","),o+=e(t[i])||"null";return o+"]"}if(null===t)return"null";if(s.includes(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const a=s.push(t)-1,l=Object.keys(t).sort(n?.(t));for(o="",i=0;i<l.length;i++){const r=l[i],n=e(t[r]);n&&(o&&(o+=","),o+=JSON.stringify(r)+":"+n)}return s.splice(a,1),"{"+o+"}"}(e)}function m(e){switch(e.type){case"catalog-footprint":case"catalog":case"csv":case"feature":case"geojson":case"knowledge-graph-sublayer":case"oriented-imagery":case"parquet":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}r.d(t,["At",0,{"small-integer":"esriFieldTypeSmallInteger",integer:"esriFieldTypeInteger",long:"esriFieldTypeLong",single:"esriFieldTypeSingle",double:"esriFieldTypeDouble",string:"esriFieldTypeString",date:"esriFieldTypeDate","date-only":"esriFieldTypeDateOnly","time-only":"esriFieldTypeTimeOnly","timestamp-offset":"esriFieldTypeTimestampOffset",oid:"esriFieldTypeOID",geometry:"esriFieldTypeGeometry",blob:"esriFieldTypeBlob",raster:"esriFieldTypeRaster",guid:"esriFieldTypeGUID","global-id":"esriFieldTypeGlobalID",xml:"esriFieldTypeXML","big-integer":"esriFieldTypeBigInteger",esriFieldTypeSmallInteger:"esriFieldTypeSmallInteger",esriFieldTypeInteger:"esriFieldTypeInteger",esriFieldTypeLong:"esriFieldTypeLong",esriFieldTypeSingle:"esriFieldTypeSingle",esriFieldTypeDouble:"esriFieldTypeDouble",esriFieldTypeString:"esriFieldTypeString",esriFieldTypeDate:"esriFieldTypeDate",esriFieldTypeDateOnly:"esriFieldTypeDateOnly",esriFieldTypeTimeOnly:"esriFieldTypeTimeOnly",esriFieldTypeTimestampOffset:"esriFieldTypeTimestampOffset",esriFieldTypeOID:"esriFieldTypeOID",esriFieldTypeGeometry:"esriFieldTypeGeometry",esriFieldTypeBlob:"esriFieldTypeBlob",esriFieldTypeRaster:"esriFieldTypeRaster",esriFieldTypeGUID:"esriFieldTypeGUID",esriFieldTypeGlobalID:"esriFieldTypeGlobalID",esriFieldTypeXML:"esriFieldTypeXML",esriFieldTypeBigInteger:"esriFieldTypeBigInteger"},"ik",0,{point:"point",polygon:"polygon",polyline:"polyline",multipoint:"multipoint",extent:"extent",esriGeometryPoint:"point",esriGeometryPolygon:"polygon",esriGeometryPolyline:"polyline",esriGeometryMultipoint:"multipoint",esriGeometryEnvelope:"extent",envelope:"extent"},"yT",0,{point:"esriGeometryPoint",polygon:"esriGeometryPolygon",polyline:"esriGeometryPolyline",multipoint:"esriGeometryMultipoint",extent:"esriGeometryEnvelope",esriGeometryPoint:"esriGeometryPoint",esriGeometryPolygon:"esriGeometryPolygon",esriGeometryPolyline:"esriGeometryPolyline",esriGeometryMultipoint:"esriGeometryMultipoint",esriGeometryEnvelope:"esriGeometryEnvelope",envelope:"esriGeometryEnvelope"}])},80672(e,t,r){r.d(t,{Iq:()=>a,RI:()=>o,VQ:()=>u,wI:()=>l});var n=r(47609),i=r(84952),s=r(20655);function o(e,t){return null==t?a(e):new s.A({url:t.url})}function a(e){return e.services?.portal??s.A.getDefault()}function l(e){const t=a(e);return new n.A(t.url)}function u(e,t){const r=e.url;return!!r&&(0,i.ut)(r,t.restUrl)}},3367(e,t,r){r.d(t,{B:()=>S,P:()=>g,g:()=>b,r:()=>v});var n=r(48938),i=r(66395),s=r(85935),o=r(78878),a=r(80672),l=r(49186),u=r(53966),c=r(91869),p=r(45475),f=r(67090),d=r(62791),h=r(14942),y=r(54218);class g{constructor(e,t){this.portal=e,this._debugLog=t}async translate(e){this.portal.loaded||await this.portal.load();const t=this.portal.helperServices?.aiUtilityServices;if(null==t)return{success:!1};const r=t.api?.text_translate;if(null==r)return{success:!1};const n=t.url+r;try{return e.requestSource??="arcade",{success:!0,results:(await(0,p.T)(n,e,{authMode:"no-prompt"})).map(e=>e.toJSON())}}catch(e){return null!=this._debugLog&&(e instanceof Error||e instanceof l.A)&&this._debugLog(`TranslateText error: ${e.message}`),u.A.getLogger("esri.arcade.functions.aiServices").error(e),{success:!1}}}}class m{constructor(e,t,r){this._parameters=e,this._maxTotalContentSize=t,this._maxContentsLength=r,this._requests=[],this._normalizedContents=new Map,this._contentsTotalSize=0}tryAdd(e){const t=new Set(e.filter(e=>!this._normalizedContents.has(e.text)).map(e=>e.text));if(this._requests.length+t.size>this._maxContentsLength)return null;let r=0;for(const e of t)r+=e.length;if((r+this._contentsTotalSize)*(this._parameters.outputCultures.length??1)>this._maxTotalContentSize)return null;const n=this._requests.length;for(const{key:t,text:r}of e)(0,c.tE)(this._normalizedContents,r,()=>[]).push({batchIdx:n,key:t});return this._requests.push(e),this._contentsTotalSize+=r,n}async send(e){const t=[],r=[];let n=0;for(const[e,i]of this._normalizedContents)t.push(new f.k({key:String(n++),text:e})),r.push(i);const i=new d.F(this._parameters);i.input=t;const s=await e.translate(i);if(!s.success)return Array.from(this._requests,()=>s);const o=Array.from(this._requests,()=>({success:!0,results:[]}));for(const e of s.results){const t=Number(e.key);for(const n of r[t])o[n.batchIdx].results.push({...e,key:n.key})}return o}}function b(e){const t=[...new Set(e.outputCultures)].sort(),r=e.inputCulture??null,n=e.portalUrl,i=e.provider;return JSON.stringify([t,r,n,i])}async function w(e,t,r){try{return(await e.yieldFor(r))[t]}catch{return{success:!1}}}class S{constructor(e,t,{maxTotalContentSize:r=5e4,maxContentsLength:n=1e3}={}){this._executor=e,this._service=t,this._openBatches=new Map,this._maxTotalContentSize=r,this._maxContentsLength=n}create(e){return{translate:async t=>{const r=b(t),{input:n,outputCultures:i,inputCulture:s,provider:o,portalUrl:a}=t;if(null==i)return{success:!1};if(null==n||n.every(e=>0===e.text.length))return{success:!1};const l=this._openBatches.get(r);if(null!=l){const t=l.data.tryAdd(n);if(null!=t)return await w(e,t,l);l.send()}const u=new m({outputCultures:i,inputCulture:s,provider:o,portalUrl:a},this._maxTotalContentSize,this._maxContentsLength),c=u.tryAdd(n);if(null!=c){const t=this._executor.openBatch(u,{open:e=>{this._openBatches.set(r,e)},execute:e=>e.send(this._service),close:e=>{this._openBatches.get(r)===e&&this._openBatches.delete(r)}});return await w(e,c,t)}return await this._service.translate(t)}}}}function v(e){"async"===e.mode&&(e.functions[(0,n.X)("TranslateText")]=function(t,r){return e.standardFunctionAsync(t,r,async(e,t,r)=>{if((0,o.E)(r,2,3,t),!(0,y.Kg)(r[0])&&!(0,y.cy)(r[0])&&!(0,o.g)(r[0]))throw new s.D$("InvalidParameter",t);const n=(0,o.Q)(r[0]);if(!(0,y.Kg)(r[1])&&!(0,y.cy)(r[1])&&!(0,o.g)(r[1]))throw new s.D$("InvalidParameter",t);const l=(0,o.Q)(r[1]);let u=null;if(r.length>=3){if(!(0,y.Kg)(r[2]))throw new s.D$("InvalidParameter",t);u=r[2]}const c=n.map((e,t)=>new f.k({key:String(t),text:e})),p=(0,a.Iq)(e),m=new d.F({outputCultures:l,input:c,inputCulture:u,portalUrl:p.restUrl.replace(/\/sharing\/rest$/,"")}),w=new Map;let S;if(null!=e.lrucache){const t=e.lrucache;S??=b(m),m.input=m.input?.filter(e=>{const r=t.getCachedTranslation(S,e.text);return null==r||(w.set(e.key,{...r,key:e.key}),!1)})}if(m.input?.length){const t=e.services?.translation??new g(p,e.console),r=await t.translate(m);if(!r.success)return new i.A({__proto__:null,success:!1});for(const t of r.results){const r=m.input?.find(e=>e.key===t.key)?.text;if(null==r)throw new s.D$("NeverReach",null);w.set(t.key,t),null!=e.lrucache&&(S??=b(m),e.lrucache.setCachedTranslation(S,r,{detectedLanguage:t.detectedLanguage,translations:t.translations}))}}const v=Array.from(c,e=>{const t=h.s.fromJSON(w.get(e.key));if(null==t)throw new s.D$("NeverReach",null);const r=Object.create(null);for(const e of t.translations)r[e.to]=e.text;return new i.A({__proto__:null,key:t.key,text:e.text,detectedLanguage:new i.A({__proto__:null,language:t.detectedLanguage,score:t.detectedLanguageScore}),translation:new i.A(r)})});return new i.A({__proto__:null,success:!0,results:v})})})}const T=Object.freeze(Object.defineProperty({__proto__:null,BatchTranslationServiceFactory:S,PortalTranslationService:g,getTranslateParametersKey:b,registerFunctions:v},Symbol.toStringTag,{value:"Module"}));r.d(t,["A",0,T])},78878(e,t,r){r.d(t,{$:()=>Ie,A:()=>Oe,B:()=>V,E:()=>H,F:()=>j,G:()=>J,H:()=>Te,I:()=>N,J:()=>ye,K:()=>Ne,L:()=>Ae,M:()=>xe,N:()=>he,O:()=>k,P:()=>W,Q:()=>Fe,R:()=>C,S:()=>D,T:()=>je,U:()=>de,V:()=>ne,W:()=>ee,X:()=>Le,Y:()=>Je,Z:()=>Re,_:()=>Ge,a:()=>Me,a0:()=>ge,a1:()=>_,a3:()=>ue,a4:()=>Pe,a5:()=>Ze,a6:()=>we,a7:()=>me,a8:()=>be,b:()=>M,c:()=>ae,d:()=>ke,e:()=>B,f:()=>L,g:()=>Y,h:()=>R,i:()=>Z,j:()=>z,k:()=>G,l:()=>E,m:()=>q,n:()=>$,o:()=>K,p:()=>O,q:()=>U,r:()=>Q,t:()=>ce,u:()=>P,v:()=>fe,w:()=>le,y:()=>se,z:()=>oe});var n=r(66131),i=r(99719),s=r(85935),o=r(92400),a=r(93818),l=r(7320),u=r(33325),c=r(14607),p=r(44729),f=r(15032),d=r(91075),h=r(48526),y=r(86738),g=r(39829),m=r(82799),b=r(95108),w=r(73444),S=r(54218),v=r(92647),T=r(94128);class C{constructor(e){this.value=e}}class N{constructor(e){this.value=e}}const A={type:"VOID"},x=Symbol("BREAK"),F=Symbol("CONTINUE");function _(e,t,r){return""===t||null==t||t===r||t===r?e:e=e.split(t).join(r)}function Z(e){return e instanceof o.fF}function O(e){return e instanceof i.x}function M(e){return!!((0,S.Kg)(e)||(0,S.Et)(e)||B(e)||U(e)||Q(e)||(0,S.Lm)(e)||null===e||e===A)}function k(e,t){return void 0===e?t:e}function D(e){if(null==e)return"";if((0,S.cy)(e))return"Array";if(Y(e))return"Array";if(B(e))return"Date";if(Q(e))return"Time";if(U(e))return"DateOnly";if((0,S.Kg)(e))return"String";if((0,S.Lm)(e))return"Boolean";if((0,S.Et)(e))return"Number";if(q(e))return"Attachment";if($(e))return"Portal";if(E(e))return"Dictionary";if(K(e))return"KnowledgeGraph";if(O(e))return"Module";if(R(e))return"Feature";if(L(e))switch(e.type){case"point":return"Point";case"polygon":return"Polygon";case"polyline":return"Polyline";case"multipoint":return"Multipoint";case"extent":return"Extent";default:return"Unrecognized Type"}return Z(e)?"Function":G(e)?"FeatureSet":z(e)?"FeatureSetCollection":J(e)?"Voxel":j(e)?"Pixel":e===A?"":"number"==typeof e&&isNaN(e)?"Number":"Unrecognized Type"}function P(e){return e===A}function L(e){return e instanceof d.A}function I(e){return e instanceof y.A}function R(e){return"esri.arcade.Feature"===e?.arcadeDeclaredClass}function J(e){return"esri.arcade.Voxel"===e?.arcadeDeclaredClass}function j(e){return"esri.arcade.Pixel"===e?.arcadeDeclaredClass}function G(e){return"esri.arcade.featureset.support.FeatureSet"===e?.declaredRootClass}function E(e){return"esri.arcade.Dictionary"===e?.declaredClass}function $(e){return"esri.arcade.Portal"===e?.declaredClass}function q(e){return"esri.arcade.Attachment"===e?.declaredClass}function V(e){return E(e)||R(e)||J(e)||j(e)}function z(e){return"esri.arcade.featureSetCollection"===e?.declaredRootClass}function K(e){return"esri.rest.knowledgeGraph.KnowledgeGraph"===e?.declaredClass}function Y(e){return e instanceof a.A}function B(e){return e instanceof n.lY}function U(e){return e instanceof p.n}function Q(e){return e instanceof f.k}function X(e){return null!=e&&"object"==typeof e}function H(e,t,r,n){if(e.length<t||e.length>r)throw new s.D$("WrongNumberOfParameters",n)}function W(e){return null==e||P(e)||""===e}function ee(e){return e<0?-Math.round(-e):Math.round(e)}function te(e,t){return isNaN(e)||null==t||""===t?e.toString():(t=_(t,"‰",""),t=_(t,"¤",""),(0,c.GP)(e,{pattern:t}))}function re(e,t){return null==t||""===t?e.toISOString(!0):e.toFormat(ne(t),{locale:(0,w.JK)(),numberingSystem:"latn"})}function ne(e,t=!1){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let r="";const n=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|Z{1,5}|.)/g;for(const i of e.match(n)||[])switch(i){case"D":r+="d";break;case"DD":r+="dd";break;case"DDD":r+="o";break;case"d":r+="c";break;case"ddd":r+="ccc";break;case"dddd":r+="cccc";break;case"M":r+="L";break;case"MM":r+="LL";break;case"MMM":r+="LLL";break;case"MMMM":r+="LLLL";break;case"YY":r+="yy";break;case"Y":case"YYYY":r+="yyyy";break;case"Q":r+="q";break;case"Z":r+="Z";break;case"ZZ":r+="ZZ";break;case"ZZZ":r+="ZZZ";break;case"ZZZZ":r+=t?"[ZZZZ]":"ZZZZ";break;case"ZZZZZ":r+=t?"[ZZZZZ]":"ZZZZZ";break;case"S":r+="'S'";break;case"SS":r+="'SS'";break;case"SSS":r+="u";break;case"A":case"a":r+="a";break;case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":case"X":case"x":r+=i;break;default:i.length>=2&&i.startsWith("[")&&i.endsWith("]")?r+=`'${i.slice(1,-1)}'`:r+=`'${i}'`}return r}function ie(e,t,r){switch(r){case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}return!1}function se(e,t,r){if(null===e){if(null===t||t===A)return ie(null,null,r);if((0,S.Et)(t))return ie(0,t,r);if((0,S.Kg)(t))return ie(0,fe(t),r);if((0,S.Lm)(t))return ie(0,fe(t),r);if(B(t))return ie(0,t.toNumber(),r);if(Q(t))return ie(e,t.toNumber(),r);if(U(t))return ie(e,t.toNumber(),r)}if(e===A){if(null===t||t===A)return ie(null,null,r);if((0,S.Et)(t))return ie(0,t,r);if((0,S.Kg)(t))return ie(0,fe(t),r);if((0,S.Lm)(t))return ie(0,fe(t),r);if(B(t))return ie(0,t.toNumber(),r);if(Q(t))return ie(e,t.toNumber(),r);if(U(t))return ie(e,t.toNumber(),r)}else if((0,S.Et)(e)){if((0,S.Et)(t))return ie(e,t,r);if((0,S.Lm)(t))return ie(e,fe(t),r);if(null===t||t===A)return ie(e,0,r);if((0,S.Kg)(t))return ie(e,fe(t),r);if(B(t))return ie(e,t.toNumber(),r);if(Q(t))return ie(e,t.toNumber(),r);if(U(t))return ie(e,t.toNumber(),r)}else if((0,S.Kg)(e)){if((0,S.Kg)(t))return ie(le(e),le(t),r);if(B(t))return ie(fe(e),t.toNumber(),r);if(Q(t))return ie(fe(e),t.toNumber(),r);if(U(t))return ie(fe(e),t.toNumber(),r);if((0,S.Et)(t))return ie(fe(e),t,r);if(null===t||t===A)return ie(fe(e),0,r);if((0,S.Lm)(t))return ie(fe(e),fe(t),r)}else if(B(e)){if(B(t))return e.timeZone!==t.timeZone&&(e.isUnknownTimeZone?e=n.lY.arcadeDateAndZoneToArcadeDate(e,t.timeZone):t.isUnknownTimeZone&&(t=n.lY.arcadeDateAndZoneToArcadeDate(t,e.timeZone))),ie(e.toNumber(),t.toNumber(),r);if(null===t||t===A)return ie(e.toNumber(),0,r);if((0,S.Et)(t))return ie(e.toNumber(),t,r);if((0,S.Lm)(t))return ie(e.toNumber(),fe(t),r);if((0,S.Kg)(t))return ie(e.toNumber(),fe(t),r);if(Q(t))throw new s.D$("CannotCompareDateAndTime",null);if(U(t))return ie(e.toNumber(),t.toNumber(),r)}else if((0,S.Lm)(e)){if((0,S.Lm)(t))return ie(e,t,r);if((0,S.Et)(t))return ie(fe(e),fe(t),r);if(B(t))return ie(fe(e),t.toNumber(),r);if(Q(t))return ie(fe(e),t.toNumber(),r);if(U(t))return ie(fe(e),t.toNumber(),r);if(null===t||t===A)return ie(fe(e),0,r);if((0,S.Kg)(t))return ie(fe(e),fe(t),r)}else if(U(e)){if(B(t))return ie(e.toNumber(),t.toNumber(),r);if(null===t||t===A)return ie(e.toNumber(),0,r);if((0,S.Et)(t))return ie(e.toNumber(),t,r);if((0,S.Lm)(t))return ie(e.toNumber(),fe(t),r);if((0,S.Kg)(t))return ie(e.toNumber(),fe(t),r);if(Q(t))throw new s.D$("CannotCompareDateAndTime",null);if(U(t))return ie(e.toNumber(),t.toNumber(),r)}else if(Q(e)){if(B(t))throw new s.D$("CannotCompareDateAndTime",null);if(null===t||t===A)return ie(e.toNumber(),0,r);if((0,S.Et)(t))return ie(e.toNumber(),t,r);if((0,S.Lm)(t))return ie(e.toNumber(),fe(t),r);if((0,S.Kg)(t))return ie(e.toNumber(),fe(t),r);if(Q(t))return ie(e.toNumber(),t.toNumber(),r);if(U(t))throw new s.D$("CannotCompareDateAndTime",null)}return!!oe(e,t)&&("<="===r||">="===r)}function oe(e,t){if(e===t)return!0;if(null===e&&t===A||null===t&&e===A)return!0;if(B(e)&&B(t))return e.equals(t);if(Q(e)&&Q(t))return e.equals(t);if(U(e)&&U(t))return e.equals(t);if(Y(e))return e.equalityTest(t);if(I(e)&&I(t)){const r=e.cache._arcadeCacheId,n=t.cache._arcadeCacheId;if(null!=r)return r===n}if(X(e)&&X(t)){if(e._arcadeCacheId===t._arcadeCacheId&&void 0!==e._arcadeCacheId&&null!==e._arcadeCacheId)return!0;if(e._underlyingGraphic===t._underlyingGraphic&&void 0!==e._underlyingGraphic&&null!==e._underlyingGraphic)return!0}return!1}function ae(e,{useNumbersForDates:t}){let r="";for(const n in e){""!==r&&(r+=",");const i=e[n];null==i?r+=JSON.stringify(n)+":null":(0,S.Lm)(i)||(0,S.Et)(i)||(0,S.Kg)(i)?r+=JSON.stringify(n)+":"+JSON.stringify(i):L(i)?r+=JSON.stringify(n)+":"+ce(i):Q(i)||U(i)?r+=`${JSON.stringify(n)}:${JSON.stringify(i.toString())}`:Y(i)||Array.isArray(i)?r+=JSON.stringify(n)+":"+ce(i,null,t):B(i)?r+=t?JSON.stringify(n)+":"+JSON.stringify(i.getTime()):JSON.stringify(n)+":"+i.stringify():null!==i&&"object"==typeof i&&"castToText"in i&&(r+=JSON.stringify(n)+":"+i.castToText(t))}return"{"+r+"}"}function le(e,t){if((0,S.Kg)(e))return e;if(null===e)return"";if((0,S.Et)(e))return te(e,t);if((0,S.Lm)(e))return e.toString();if(B(e))return re(e,t);if(Q(e))return e.toFormat(t);if(U(e))return e.toFormat(t);if(L(e))return JSON.stringify(e.toJSON());if((0,S.cy)(e)){const t=[];for(let r=0;r<e.length;r++)t[r]=pe(e[r]);return"["+t.join(",")+"]"}if(Y(e)){const t=[];for(let r=0;r<e.length();r++)t[r]=pe(e.get(r));return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText():Z(e)?"object, Function":e===A?"":O(e)?"object, Module":""}function ue(e){const t=[];if(Y(e)){for(let r=0;r<e.length();r++)t[r]=fe(e.get(r));return t}if(!(0,S.cy)(e))return null;for(let r=0;r<e.length;r++)t[r]=fe(e[r]);return t}function ce(e,t,r=!1){if((0,S.Kg)(e))return e;if(null===e)return"";if((0,S.Et)(e))return te(e,t);if((0,S.Lm)(e))return e.toString();if(B(e))return re(e,t);if(Q(e))return e.toFormat(t);if(U(e))return e.toFormat(t);if(L(e))return"extent"===e.type?'{"xmin":'+e.xmin.toString()+',"ymin":'+e.ymin.toString()+","+(e.hasZ?'"zmin":'+e.zmin.toString()+",":"")+(e.hasM?'"mmin":'+e.mmin.toString()+",":"")+'"xmax":'+e.xmax.toString()+',"ymax":'+e.ymax.toString()+","+(e.hasZ?'"zmax":'+e.zmax.toString()+",":"")+(e.hasM?'"mmax":'+e.mmax.toString()+",":"")+'"spatialReference":'+ve(e.spatialReference)+"}":ve(e.toJSON(),(e,t)=>e.key===t.key?0:"spatialReference"===e.key?1:"spatialReference"===t.key||e.key<t.key?-1:e.key>t.key?1:0);if((0,S.cy)(e)){const t=[];for(let n=0;n<e.length;n++)t[n]=pe(e[n],r);return"["+t.join(",")+"]"}if(Y(e)){const t=[];for(let n=0;n<e.length();n++)t[n]=pe(e.get(n),r);return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText(r):Z(e)?"object, Function":P(e)?"":O(e)?"object, Module":""}function pe(e,t=!1){if(null===e)return"null";if((0,S.Lm)(e)||(0,S.Kg)(e))return JSON.stringify(e);if((0,S.Et)(e))return e.toString();if(L(e))return ce(e,null,t);if(Y(e))return ce(e,null,t);if((0,S.cy)(e))return ce(e,null,t);if(B(e))return t?JSON.stringify(e.getTime()):JSON.stringify(re(e,""));if(Q(e))return JSON.stringify(e.toString());if(U(e))return JSON.stringify(e.toString());if(null!==e&&"object"==typeof e){if("castToText"in e)return e.castToText(t)}else if(e===A)return"null";return"null"}function fe(e,t){return(0,S.Et)(e)?e:null===e||""===e?0:B(e)||U(e)||Q(e)?NaN:(0,S.Lm)(e)?e?1:0:(0,S.cy)(e)||""===e||void 0===e?NaN:void 0!==t&&(0,S.Kg)(e)?(t=_(t,"‰",""),t=_(t,"¤",""),(0,c.qg)(e,{pattern:t})):e===A?0:Number(e)}function de(e,t){if(B(e))return e;if((0,S.Kg)(e)){const r=function(e,t){const r=/ (\d\d)/,i=(0,n.mT)(t);let s=v.c9.fromISO(e,{zone:i});return s.isValid||r.test(e)&&(e=e.replace(r,"T$1"),s=v.c9.fromISO(e,{zone:t}),s.isValid)?s:null}(e,t);if(r)return n.lY.dateTimeToArcadeDate(r)}return null}function he(e){return(0,S.Lm)(e)?e:(0,S.Kg)(e)?"true"===(e=e.toLowerCase()):!!(0,S.Et)(e)&&0!==e&&!isNaN(e)}function ye(e,t){return null==e?null:(null!==e.spatialReference&&void 0!==e.spatialReference||(e.spatialReference=t),e)}function ge(e){if(null==e)return null;if("point"===e.type)return"NaN"===e.x||null===e.x||isNaN(e.x)?null:e;if("polygon"===e.type){if(0===(e.curveRings??e.rings).length)return null;for(const t of e.curveRings??e.rings)if(t.length>0)return e;return null}if("polyline"===e.type){if(0===(e.curvePaths??e.paths).length)return null;for(const t of e.curvePaths??e.paths)if(t.length>0)return e;return null}return"multipoint"===e.type?0===e.points.length?null:e:"extent"===e.type?"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)?null:e:null}function me(e,t){if(!e)return t;if(!e.domain)return t;let r=null,n=null;if(B(t))r=t.toNumber();else if(U(t))r=t.toString();else if(Q(t))r=t.toStorageString();else if("string"===e.field.type||"esriFieldTypeString"===e.field.type)r=le(t);else{if(null==t)return null;if(""===t)return t;r=fe(t)}for(let t=0;t<e.domain.codedValues.length;t++){const i=e.domain.codedValues[t];i.code===r&&(n=i)}return null===n?le(t):n.name}function be(e,t){if(!e)return t;if(!e.domain)return t;let r=null;const n=le(t);for(let t=0;t<e.domain.codedValues.length;t++){const i=e.domain.codedValues[t];i.name===n&&(r=i)}return null===r?t:r.code}function we(e,t,r=null,n=null){if(!t)return null;if(!t.fields)return null;let i,o,a=null;for(let r=0;r<t.fields.length;r++){const n=t.fields[r];n.name.toLowerCase()===e.toString().toLowerCase()&&(a=n)}if(null===a)throw new s.D$("FieldNotFound",null,{key:e});let l=t.typeIdField,u="id",c=t.types;if(t.subtypeField&&(l=t.subtypeField,u="code",c=t.subtypes??[]),null===n&&r&&l)n=r.hasField(l)?r.field(l):null;else if(l&&null!==n){let e=!1;for(const t of c||[])if(n===t[u]){e=!0;break}if(!e)for(const t of c||[])if(n===t.name){n=t[u],e=!0;break}e||(n=null,r&&l&&(n=r.hasField(l)?r.field(l):null))}return null!=n&&c.some(e=>e[u]===n&&(i=e.domains?.[a.name],i&&"inherited"===i.type&&(i=Se(a.name,t),o=!0),!0)),o||i||(i=Se(e,t)),{field:a,domain:i}}function Se(e,t){let r;return t.fields.some(t=>(t.name.toLowerCase()===e.toLowerCase()&&(r=t.domain),!!r)),r}function ve(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const r="boolean"==typeof t.cycles&&t.cycles,n=t.cmp&&(i=t.cmp,function(e){return function(t,r){const n={key:t,value:e[t]},s={key:r,value:e[r]};return i(n,s)}});var i;const s=[];return function e(t){if(t?.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===t)return;if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);let i,o;if(Array.isArray(t)){for(o="[",i=0;i<t.length;i++)i&&(o+=","),o+=e(t[i])||"null";return o+"]"}if(null===t)return"null";if(s.includes(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const a=s.push(t)-1,l=Object.keys(t).sort(n?.(t));for(o="",i=0;i<l.length;i++){const r=l[i],n=e(t[r]);n&&(o&&(o+=","),o+=JSON.stringify(r)+":"+n)}return s.splice(a,1),"{"+o+"}"}(e)}function Te(e){const t=[];for(const r of e)R(r)?t.push(r.geometry()):t.push(r);return t}function Ce(e,t){if(!I(t))throw new s.D$("InvalidParameter",null);e.push(t.hasZ?t.hasM?[t.x,t.y,t.z,t.m]:[t.x,t.y,t.z]:[t.x,t.y])}function Ne(e,t){if((0,S.cy)(e)||Y(e)){let r=!1,n=!1,i=[],o=t;if((0,S.cy)(e)){for(const t of e)Ce(i,t);i.length>0&&(o=e[0].spatialReference,r=e[0].hasZ,n=e[0].hasM)}else if(e instanceof l.A)i=e._elements,i.length>0&&(r=e.hasZ(),n=e.hasM(),o=e.get(0).spatialReference);else{if(!Y(e))throw new s.D$("InvalidParameter",null);for(const t of e.toArray())Ce(i,t);i.length>0&&(o=e.get(0).spatialReference,r=!0===e.get(0).hasZ,n=!0===e.get(0).hasM)}return 0===i.length?null:((0,b.$3)(i)||(i=i.slice().reverse()),new g.A({rings:[i],spatialReference:o,hasZ:r,hasM:n}))}return e}function Ae(e,t){if((0,S.cy)(e)||Y(e)){let r=!1,n=!1,i=[],s=t;if((0,S.cy)(e)){for(const t of e)Ce(i,t);i.length>0&&(s=e[0].spatialReference,r=!0===e[0].hasZ,n=!0===e[0].hasM)}else if(e instanceof l.A)i=e._elements,i.length>0&&(r=e.hasZ(),n=e.hasM(),s=e.get(0).spatialReference);else if(Y(e)){for(const t of e.toArray())Ce(i,t);i.length>0&&(s=e.get(0).spatialReference,r=!0===e.get(0).hasZ,n=!0===e.get(0).hasM)}return 0===i.length?null:new m.A({paths:[i],spatialReference:s,hasZ:r,hasM:n})}return e}function xe(e,t){if((0,S.cy)(e)||Y(e)){let r=!1,n=!1,i=[],s=t;if((0,S.cy)(e)){for(const t of e)Ce(i,t);i.length>0&&(s=e[0].spatialReference,r=!0===e[0].hasZ,n=!0===e[0].hasM)}else if(e instanceof l.A)i=e._elements,i.length>0&&(r=e.hasZ(),n=e.hasM(),s=e.get(0).spatialReference);else if(Y(e)){for(const t of e.toArray())Ce(i,t);i.length>0&&(s=e.get(0).spatialReference,r=!0===e.get(0).hasZ,n=!0===e.get(0).hasM)}return 0===i.length?null:new h.A({points:i,spatialReference:s,hasZ:r,hasM:n})}return e}function Fe(e,t=!0){if(null==e)return[];if((0,S.cy)(e)){const r=[];for(const n of e){const e=le(n);(t||""!==e)&&r.push(e)}return r}if(Y(e)){const r=[];for(let n=0;n<e.length();n++){const i=le(e.get(n));(t||""!==i)&&r.push(i)}return r}if(M(e)){const r=le(e);if(t||""!==r)return[r]}return[]}let _e=0;function Ze(){return _e++,_e%100==0?(_e=0,new Promise(e=>{setTimeout(()=>{e()},0)})):Promise.resolve()}function Oe(e,t,r){switch(r){case"&":return e&t;case"|":return e|t;case"^":return e^t;case"<<":return e<<t;case">>":return e>>t;case">>>":return e>>>t}}function Me(e){return null==e?null:(0,S.Lm)(e)||(0,S.Et)(e)||(0,S.Kg)(e)?e:L(e)?e.toJSON():Y(e)?e.toArray().map(e=>Me(e)):Array.isArray(e)?e.map(e=>Me(e)):(0,S.$P)(e)?e:B(e)?e.toJSDate():Q(e)?e.toString():U(e)?e.toJSDate():"castAsJson"in e?e.castAsJson():null}async function ke(e,t=null){if(Y(e)&&(e=e.toArray()),null==e)return null;if(M(e)||L(e)||(0,S.$P)(e)||B(e))return Me(e);if(Array.isArray(e)){const r=[],n=[];for(const i of e)if(null===i||M(i)||L(i)||(0,S.$P)(i)||B(i))n.push(Me(i));else{const e=n.push(null)-1;r.push(ke(i,t).then(t=>{n[e]=t}))}return r.length>0&&await Promise.all(r),n}return"castAsJsonAsync"in e?e.castAsJsonAsync(t):null}function De(e){return Pe(e)?e.parent:e}function Pe(e){return e&&"declaredClass"in e&&"esri.layers.support.SubtypeSublayer"===e.declaredClass}function Le(e,t,r){const n=De(e.fullSchema());return null===n?null:n.fields?we(t,n,e,r):null}function Ie(e){const t=De(e.fullSchema());return null===t?null:t.fields?t.subtypeField?{subtypeField:t.subtypeField,subtypes:t.subtypes?t.subtypes.map(e=>({name:e.name,code:e.code})):[]}:t.typeIdField?{subtypeField:t.typeIdField,subtypes:t.types?t.types.map(e=>({name:e.name,code:e.id})):[]}:null:null}function Re(e,t,r,n){const i=De(e.fullSchema());if(null===i)return null;if(!i.fields)return null;const s=we(t,i,e,n);if(void 0===r)try{r=e.field(t)}catch(e){return null}return me(s,r)}function Je(e,t,r,n){const i=De(e.fullSchema());if(null===i)return null;if(!i.fields)return null;if(void 0===r){try{r=e.field(t)}catch(e){return null}return r}return be(we(t,i,e,n),r)}function je(e){return e?.timeZone??"system"}function Ge(e){const t=De(e.fullSchema());if(null===t)return null;if(!t.fields)return null;const r=[];for(const e of t.fields)r.push((0,u.nE)(e));return{objectIdField:t.objectIdField,globalIdField:t.globalIdField??"",geometryType:void 0===u.yT[t.geometryType]?"":u.yT[t.geometryType],fields:r}}const Ee=Object.freeze(Object.defineProperty({__proto__:null,ImplicitResult:N,ReturnResult:C,absRound:ee,arcadeVersion:"1.36",autoCastArrayOfPointsToMultiPoint:xe,autoCastArrayOfPointsToPolygon:Ne,autoCastArrayOfPointsToPolyline:Ae,autoCastFeatureToGeometry:Te,binaryOperator:Oe,breakResult:x,castAsJson:Me,castAsJsonAsync:ke,castRecordToText:ae,continueResult:F,defaultTimeZone:je,defaultUndefined:k,equalityTest:oe,featureDomainCodeLookup:Je,featureDomainValueLookup:Re,featureFullDomain:Le,featureSchema:Ge,featureSubtypes:Ie,fixNullGeometry:ge,fixSpatialReference:ye,getDomain:we,getDomainCode:be,getDomainValue:me,getType:D,greaterThanLessThan:se,isArray:S.cy,isAttachment:q,isBoolean:S.Lm,isDate:B,isDateOnly:U,isDictionary:E,isDictionaryLike:V,isEmpty:W,isFeature:R,isFeatureSet:G,isFeatureSetCollection:z,isFunctionParameter:Z,isGeometry:L,isGraphic:T.D,isImmutableArray:Y,isInteger:S.Fq,isJsDate:S.$P,isKnowledgeGraph:K,isModule:O,isNumber:S.Et,isPixel:j,isPortal:$,isSimpleType:M,isString:S.Kg,isSubtypeGrouplayer:function(e){return e&&"declaredClass"in e&&"esri.layers.SubtypeGroupLayer"===e.declaredClass},isSubtypeSublayer:Pe,isTime:Q,isVoid:P,isVoxel:J,multiReplace:_,pcCheck:H,standardiseDateFormat:ne,tick:Ze,toBoolean:he,toDate:de,toNumber:fe,toNumberArray:ue,toString:le,toStringArray:Fe,toStringExplicit:ce,voidOperation:A},Symbol.toStringTag,{value:"Module"}));r.d(t,["C",0,x,"D",0,F,"s",0,Ee,"x",0,A])},14607(e,t,r){r.d(t,{B:()=>u,GP:()=>a,qg:()=>c});var n=r(799),i=r(73444);const s={ar:[".",","],bg:[","," "],bs:[",","."],ca:[",","."],cs:[","," "],da:[",","."],de:[",","."],"de-ch":[".","’"],el:[",","."],en:[".",","],"en-au":[".",","],es:[",","."],"es-mx":[".",","],et:[","," "],fi:[","," "],fr:[","," "],"fr-ch":[","," "],he:[".",","],hi:[".",",","#,##,##0.###"],hr:[",","."],hu:[","," "],id:[",","."],it:[",","."],"it-ch":[".","’"],ja:[".",","],ko:[".",","],lt:[","," "],lv:[","," "],mk:[",","."],nb:[","," "],nl:[",","."],no:[","," "],pl:[","," "],pt:[",","."],"pt-pt":[","," "],ro:[",","."],ru:[","," "],sk:[","," "],sl:[",","."],sr:[",","."],sv:[","," "],th:[".",","],tr:[",","."],uk:[","," "],vi:[",","."],zh:[".",","]};function o(e=(0,i.JK)()){let t=(e=e.toLowerCase())in s;if(!t){const r=e.split("-");r.length>1&&r[0]in s&&(e=r[0],t=!0),t||(e="en")}const[r,n,o="#,##0.###"]=s[e];return{decimal:r,group:n,pattern:o}}function a(e,t){const r=o((t={...t}).locale);t.customs=r;const n=t.pattern||r.pattern;return isNaN(e)||Math.abs(e)===1/0?null:function(e,t,r){const n=(r=r||{}).customs.group,i=r.customs.decimal,s=t.split(";"),o=s[0];if((t=s[e<0?1:0]||"-"+o).includes("%"))e*=100;else if(t.includes("‰"))e*=1e3;else{if(t.includes("¤"))throw new Error("currency notation not supported");if(t.includes("E"))throw new Error("exponential notation not supported")}const a=l,u=o.match(a);if(!u)throw new Error("unable to find a number expression in pattern: "+t);return!1===r.fractional&&(r.places=0),t.replace(a,function(e,t,r){!0===(r=r||{}).places&&(r.places=0),r.places===1/0&&(r.places=6);const n=t.split("."),i="string"==typeof r.places&&r.places.indexOf(",");let s=r.places;i?s=r.places.slice(i+1):+s>=0||(s=(n[1]||[]).length),r.round<0||(e=Number(e.toFixed(Number(s))));const o=String(Math.abs(e)).split("."),a=o[1]||"";if(n[1]||r.places){i&&(r.places=r.places.slice(0,Math.max(0,i)));const e=void 0!==r.places?r.places:n[1]&&n[1].lastIndexOf("0")+1;+e>a.length&&(o[1]=a.padEnd(Number(e),"0")),+s<a.length&&(o[1]=a.slice(0,Math.max(0,Number(s))))}else o[1]&&o.pop();const l=n[0].replace(",","");let u=l.indexOf("0");-1!==u&&(u=l.length-u,u>o[0].length&&(o[0]=o[0].padStart(u,"0")),l.includes("#")||(o[0]=o[0].slice(-u)));let c,p,f=n[0].lastIndexOf(",");if(-1!==f){c=n[0].length-f-1;const e=n[0].slice(0,f);f=e.lastIndexOf(","),-1!==f&&(p=e.length-f-1)}const d=[];for(let e=o[0];e;){const t=e.length-c;d.push(t>0?e.slice(Math.max(0,t)):e),e=t>0?e.slice(0,t):"",p&&(c=p,p=void 0)}return o[0]=d.reverse().join(r.group||","),o.join(r.decimal||".")}(e,u[0],{decimal:i,group:n,places:r.places,round:r.round}))}(e,n,t)}const l=/[#0,]*[#0](?:\.0*#*)?/;function u(e){const t=o((e=e||{}).locale),r=e.pattern||t.pattern,i=t.group,s=t.decimal;let a=1;if(r.includes("%"))a/=100;else if(r.includes("‰"))a/=1e3;else if(r.includes("¤"))throw new Error("currency notation not supported");const u=r.split(";");1===u.length&&u.push("-"+u[0]);const c=f(u,t=>(t="(?:"+(0,n.Cj)(t,".")+")").replace(l,t=>{const r={signed:!1,separator:e.strict?i:[i,""],fractional:e.fractional,decimal:s,exponent:!1},n=t.split(".");let o=e.places;1===n.length&&1!==a&&(n[1]="###"),1===n.length||0===o?r.fractional=!1:(void 0===o&&(o=e.pattern?n[1].lastIndexOf("0")+1:1/0),o&&null==e.fractional&&(r.fractional=!0),!e.places&&+o<n[1].length&&(o+=","+n[1].length),r.places=o);const l=n[0].split(",");return l.length>1&&(r.groupSize=l.pop().length,l.length>1&&(r.groupSize2=l.pop().length)),"("+function(e){"places"in(e=e||{})||(e.places=1/0),"string"!=typeof e.decimal&&(e.decimal="."),"fractional"in e&&!String(e.places).startsWith("0")||(e.fractional=[!0,!1]),"exponent"in e||(e.exponent=[!0,!1]),"eSigned"in e||(e.eSigned=[!0,!1]);const t=p(e),r=f(e.fractional,t=>{let r="";return t&&0!==e.places&&(r="\\"+e.decimal,e.places===1/0?r="(?:"+r+"\\d+)?":r+="\\d{"+e.places+"}"),r},!0);let n=t+r;return r&&(n="(?:(?:"+n+")|(?:"+r+"))"),n+f(e.exponent,t=>t?"([eE]"+p({signed:e.eSigned})+")":"")}(r)+")"}),!0);return{regexp:c.replaceAll(/[\xa0 ]/g,"[\\s\\xa0]"),group:i,decimal:s,factor:a}}function c(e,t){const r=u(t),n=new RegExp("^"+r.regexp+"$").exec(e);if(!n)return NaN;let i=n[1];if(!n[1]){if(!n[2])return NaN;i=n[2],r.factor*=-1}return i=i.replaceAll(new RegExp("["+r.group+"\\s\\xa0]","g"),"").replace(r.decimal,"."),Number(i)*r.factor}function p(e){return"signed"in(e=e||{})||(e.signed=[!0,!1]),"separator"in e?"groupSize"in e||(e.groupSize=3):e.separator="",f(e.signed,e=>e?"[-+]":"",!0)+f(e.separator,t=>{if(!t)return"(?:\\d+)";" "===(t=(0,n.Cj)(t))?t="\\s":" "===t&&(t="\\s\\xa0");const r=e.groupSize,i=e.groupSize2;if(i){const e="(?:0|[1-9]\\d{0,"+(i-1)+"}(?:["+t+"]\\d{"+i+"})*["+t+"]\\d{"+r+"})";return r-i>0?"(?:"+e+"|(?:0|[1-9]\\d{0,"+(r-1)+"}))":e}return"(?:0|[1-9]\\d{0,"+(r-1)+"}(?:["+t+"]\\d{"+r+"})*)"},!0)}const f=(e,t,r)=>{if(!Array.isArray(e))return t(e);const n=[];for(let r=0;r<e.length;r++)n.push(t(e[r]));return d(n.join("|"),Boolean(r))},d=(e,t)=>"("+(t?"?:":"")+e+")"},48526(e,t,r){r.d(t,{A:()=>g});var n,i=r(5482),s=r(4576),o=r(4718),a=r(91429),l=r(5443),u=r(91075),c=r(86738),p=r(16930),f=r(90634),d=r(47610),h=r(56993),y=r(43937);let g=n=class extends u.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:r,hasZ:n,spatialReference:i}=e;switch(t??=[],t?.at(0)?.length){case 4:n??=!0,r??=!0;break;case 3:n??=!0!==r,r??=!n;break;default:n??=!1,r??=!1}return i??=p.A.WGS84,{...e,hasM:r,hasZ:n,points:t,spatialReference:i}}(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 l.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,o.o8)(this.points)}clone(){const{points:e,spatialReference:t,hasM:r,hasZ:i}=this;return new n({points:(0,o.o8)(e),spatialReference:t.clone(),hasM:r,hasZ:i})}equals(e){if(this===e)return!0;if(null==e)return!1;const t=this.spatialReference,r=e.spatialReference;return null!=t==(null!=r)&&!(null!=t&&null!=r&&!t.equals(r))&&(0,s.aI)(this.points,e.points,d.v6)}addPoint(e){return(0,h.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],r={x:t[0],y:t[1],spatialReference:this.spatialReference};let n=2;return this.hasZ&&(r.z=t[2],n=3),this.hasM&&(r.m=t[n]),new c.A(r)}removePoint(e){if(!this._validateInputs(e))return null;const t=new c.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?((0,h.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,i.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"cache",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"extent",null),(0,i.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],g.prototype,"points",void 0),(0,i.Cg)([(0,y.K)("points")],g.prototype,"writePoints",null),g=n=(0,i.Cg)([(0,a.$K)("esri.geometry.Multipoint")],g),g.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,r){r.d(t,{A:()=>h});var n,i=r(5482),s=r(4718),o=r(91429),a=r(5443),l=r(91075),u=r(86738),c=r(16930),p=r(90634),f=r(56993),d=r(43937);let h=n=class extends l.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:r,hasZ:n,spatialReference:i}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:n??=!0,r??=!0;break;case 3:n??=!0!==r,r??=!n;break;default:n??=!1,r??=!1}return i??=c.A.WGS84,{...e,hasM:r,hasZ:n,paths:t,spatialReference:i}}(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,p.Z3)(this),{spatialReference:t}=this;return e?new a.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,s.o8)(this.paths)}addPath(e){if(!e)return;const t=this.paths,r=t.length;if(function(e){return!Array.isArray(e[0])}(e)){const n=[];for(let t=0,r=e.length;t<r;t++)n[t]=e[t].toArray();t[r]=n}else t[r]=e.slice();return this.notifyChange("paths"),this}clone(){const e=new n;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 r=this.paths[e][t],n=this.hasZ,i=this.hasM;return n&&!i?new u.A(r[0],r[1],r[2],void 0,this.spatialReference):i&&!n?new u.A(r[0],r[1],void 0,r[2],this.spatialReference):n&&i?new u.A(r[0],r[1],r[2],r[3],this.spatialReference):new u.A(r[0],r[1],this.spatialReference)}insertPoint(e,t,r){return this._validateInputs(e,t,!0)?((0,f.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e].splice(t,0,r),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;const t=this.paths.splice(e,1)[0],r=this.spatialReference,n=t.map(e=>new u.A(e,r));return this.notifyChange("paths"),n}removePoint(e,t){if(!this._validateInputs(e,t))return null;const r=new u.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),r}setPoint(e,t,r){return this._validateInputs(e,t)?((0,f.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e][t]=r,this.notifyChange("paths"),this):this}_validateInputs(e,t,r=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){const n=this.paths[e];if(r&&(t<0||t>n.length))return!1;if(!r&&(t<0||t>=n.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],h.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],h.prototype,"curvePaths",void 0),(0,i.Cg)([(0,d.K)("curvePaths")],h.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],h.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],h.prototype,"paths",void 0),(0,i.Cg)([(0,d.K)("paths")],h.prototype,"writePaths",null),h=n=(0,i.Cg)([(0,o.$K)("esri.geometry.Polyline")],h),h.prototype.toJSON.isDefaultToJSON=!0},73444(e,t,r){r.d(t,{JK:()=>l,Ml:()=>g,QC:()=>p,lR:()=>c,oQ:()=>h});var n=r(36563);let i;r(44208);const s=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function a(){const e=o?.getAttribute("lang"),t=globalThis.navigator?.language;return s??e??t??"en"}function l(){return void 0===i&&(i=a()),i}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function c(e=l()){return f(e)?.language}function p(e=l()){const t=f(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function f(e=l()){return u.exec(e)?.groups}const d=[];function h(e){return d.push(e),(0,n.hA)(()=>{d.splice(d.indexOf(e),1)})}new Map;const y=[];function g(e){return y.push(e),(0,n.hA)(()=>y.splice(y.indexOf(e),1))}function m(){const e=a();i!==e&&([...y].forEach(t=>t(e)),i=e,[...d].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",m),o&&new MutationObserver(()=>{m()}).observe(o,{attributeFilter:["lang"]})},39357(e,t,r){r.d(t,{A:()=>a});var n,i=r(5482),s=r(25482),o=r(91429);let a=n=class extends s.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new n({name:this.name,code:this.code})}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],a.prototype,"code",void 0),a=n=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValue")],a)},53177(e,t,r){r.d(t,{A:()=>c});var n,i=r(5482),s=r(4718),o=r(91429),a=r(39357),l=r(76357),u=r(93223);let c=class extends l.A{static{n=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some(e=>(String(e.code)===r&&(t=e.name),!!t))}return t}clone(){return new n({codedValues:(0,s.o8)(this.codedValues),name:this.name})}};(0,i.Cg)([(0,o.MZ)({type:[a.A],json:{write:{isRequired:!0}}})],c.prototype,"codedValues",void 0),(0,i.Cg)([(0,u.e)({codedValue:"coded-value"})],c.prototype,"type",void 0),c=n=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValueDomain")],c)},76357(e,t,r){r.d(t,{A:()=>u});var n=r(5482),i=r(66552),s=r(25482),o=r(91429),a=r(93223);const l=new i.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends s.o{constructor(e){super(e),this.name=null,this.type=null}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,n.Cg)([(0,a.e)(l),(0,o.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),u=(0,n.Cg)([(0,o.$K)("esri.layers.support.Domain")],u)},20437(e,t,r){r.d(t,{A:()=>h});var n,i=r(5482),s=r(66552),o=r(25482),a=r(91429),l=r(56507),u=r(8631),c=r(98453),p=r(36005),f=r(93223);const d=new s.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier",url:"url"});let h=class extends o.o{static{n=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?d.fromJSON(r.fieldValueType):null}clone(){return new n({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"alias",void 0),(0,i.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],h.prototype,"defaultValue",void 0),(0,i.Cg)([(0,a.MZ)()],h.prototype,"description",void 0),(0,i.Cg)([(0,p.w)("description")],h.prototype,"readDescription",null),(0,i.Cg)([(0,a.MZ)({types:u.g,json:{read:{reader:u.r},write:!0}})],h.prototype,"domain",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"editable",void 0),(0,i.Cg)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],h.prototype,"length",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"nullable",void 0),(0,i.Cg)([(0,f.e)(c.m)],h.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)()],h.prototype,"valueType",void 0),(0,i.Cg)([(0,p.w)("valueType",["description"])],h.prototype,"readValueType",null),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1}})],h.prototype,"visible",void 0),h=n=(0,i.Cg)([(0,a.$K)("esri.layers.support.Field")],h)},41628(e,t,r){r.d(t,{A:()=>l});var n,i=r(5482),s=r(91429),o=r(76357),a=r(93223);let l=class extends o.A{static{n=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new n({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]},isRequired:!0}}})],l.prototype,"maxValue",void 0),(0,i.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]},isRequired:!0}}})],l.prototype,"minValue",void 0),(0,i.Cg)([(0,a.e)({range:"range"})],l.prototype,"type",void 0),l=n=(0,i.Cg)([(0,s.$K)("esri.layers.support.RangeDomain")],l)},8631(e,t,r){r.d(t,{r:()=>f,g:()=>p});var n,i=r(53177),s=r(76357),o=r(5482),a=r(91429),l=r(93223);let u=class extends s.A{static{n=this}constructor(e){super(e),this.type="inherited"}clone(){return new n}};(0,o.Cg)([(0,l.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=n=(0,o.Cg)([(0,a.$K)("esri.layers.support.InheritedDomain")],u);var c=r(41628);const p={key:"type",base:s.A,typeMap:{range:c.A,"coded-value":i.A,inherited:u}};function f(e){if(!e?.type)return null;switch(e.type){case"range":return c.A.fromJSON(e);case"codedValue":return i.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},98453(e,t,r){const n=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"});r.d(t,["m",0,n])},67090(e,t,r){r.d(t,{k:()=>a});var n=r(5482),i=r(25482),s=r(10107),o=r(64108);let a=class extends i.o{constructor(e){super(e)}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"key",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"text",void 0),a=(0,n.Cg)([(0,o.$)("esri.rest.support.TranslateContent")],a)},62791(e,t,r){r.d(t,{F:()=>l});var n=r(5482),i=r(25482),s=r(10107),o=r(64108),a=r(67090);let l=class extends i.o{constructor(e){super(e),this.outputCultures=null,this.input=null,this.portalUrl="https://www.arcgis.com",this.provider="default",this.inputCulture=null,this.requestSource=null}};(0,n.Cg)([(0,s.MZ)({type:[String],json:{write:!0}})],l.prototype,"outputCultures",void 0),(0,n.Cg)([(0,s.MZ)({type:[a.k],json:{write:!0}})],l.prototype,"input",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{read:!1,write:!1}})],l.prototype,"portalUrl",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0,default:"default"}})],l.prototype,"provider",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],l.prototype,"inputCulture",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{read:!1,write:!1}})],l.prototype,"requestSource",void 0),l=(0,n.Cg)([(0,o.$)("esri.rest.support.TranslateParameters")],l)},14942(e,t,r){r.d(t,{s:()=>l});var n=r(5482),i=r(25482),s=r(10107),o=r(64108);let a=class extends i.o{};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"text",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"to",void 0),a=(0,n.Cg)([(0,o.$)("esri.rest.support.TranslateResult.Translation")],a);let l=class extends i.o{constructor(e){super(e),this.detectedLanguage="en",this.detectedLanguageScore=-1}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],l.prototype,"key",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{read:{source:"detectedLanguage.language"},write:{target:"detectedLanguage.language"}}})],l.prototype,"detectedLanguage",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{read:{source:"detectedLanguage.score"},write:{target:"detectedLanguage.score"}}})],l.prototype,"detectedLanguageScore",void 0),(0,n.Cg)([(0,s.MZ)({type:[a],json:{write:!0}})],l.prototype,"translations",void 0),l=(0,n.Cg)([(0,o.$)("esri.rest.support.TranslateResult")],l)},45475(e,t,r){r.d(t,{T:()=>o});var n=r(11254),i=r(2272),s=r(14942);async function o(e,t,r){const o=JSON.stringify(t.toJSON()),a={};"https://www.arcgis.com"!==t.portalUrl&&(a.portal=t.portalUrl),null!=t.requestSource&&(a.request_source=t.requestSource),a.token=await(0,i.gf)(t.portalUrl,null,{signal:r?.signal,prompt:"no-prompt"!==r?.authMode});const l=(0,i.Dl)(e),u=(0,i.jV)(l.query,{...r,query:a,body:o,method:"post",authMode:"anonymous"});return(await(0,n.A)(l.path,u)).data.results.map(e=>s.s.fromJSON(e))}},2272(e,t,r){r.d(t,{Dl:()=>u,gf:()=>p,jV:()=>l,lF:()=>c});var n=r(92602),i=r(70333),s=r(4718),o=r(84952),a=r(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,o.An)(e):(0,s.o8)(e)}function c(e,t,r){const n={};for(const i in e){if("declaredClass"===i)continue;const s=e[i];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))n[i]=s.map(e=>c(e));else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(r?.[i]);n[i]=t?e:JSON.stringify(e)}else n[i]=t?s:JSON.stringify(s);else n[i]=s}return n}async function p(e,t,s){const o=function(e,t){return e?t&&(0,a.Qc)(e)?t:(0,a.getApiKey)(e)??i.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!i.id&&n.A.request.useIdentity&&await Promise.all([r.e(7632),r.e(1144),r.e(148)]).then(r.bind(r,50148));const l=await i.id.getCredential(e,s);return l?.token}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6796],{24185(e,t,n){n.d(t,{a:()=>y});var l=n(
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6796],{24185(e,t,n){n.d(t,{a:()=>y});var l=n(57791),a=n(78948);const i=(0,l.aK)((e,t)=>{t.onConnected(()=>{f(e)}),t.onDisconnected(()=>{!function(e){if(!e)return;if(m.delete(e),document.removeEventListener(s,h.get(e)),document.removeEventListener(o,u.get(e)),h.delete(e),u.delete(e),!e.labelEl)return;const t=d.get(e.labelEl);1===t.length&&(e.labelEl.removeEventListener(c,b.get(e.labelEl)),b.delete(e.labelEl)),d.set(e.labelEl,t.filter(t=>t!==e).sort(g)),e.labelEl=void 0}(e)})}),c="calciteInternalLabelClick",s="calciteInternalLabelConnected",o="calciteInternalLabelDisconnected",r="calcite-label",d=new WeakMap,b=new WeakMap,h=new WeakMap,u=new WeakMap,m=new Set;function f(e){if(!e)return;const t=(e=>{const{id:t}=e,n=t&&(0,a.r)(e,{selector:`${r}[for="${t}"]`});if(n)return n;const l=(0,a.c)(e,r);return!l||function(e,t){let n;const l="custom-element-ancestor-check",a=l=>{l.stopImmediatePropagation();const a=l.composedPath();n=a.slice(a.indexOf(t),a.indexOf(e))};return e.addEventListener(l,a,{once:!0}),t.dispatchEvent(new CustomEvent(l,{composed:!0,bubbles:!0})),e.removeEventListener(l,a),n.filter(n=>n!==t&&n!==e).filter(e=>e.tagName?.includes("-")).length>0}(l,e)?null:l})(e.el);if(t&&b.has(t)&&t===e.labelEl||!t&&m.has(e))return;const n=E.bind(e);if(t){e.labelEl=t;const l=d.get(t)||[];l.push(e),d.set(t,l.sort(g)),b.has(e.labelEl)||(b.set(e.labelEl,v),e.labelEl.addEventListener(c,v)),m.delete(e),document.removeEventListener(s,h.get(e)),u.set(e,n),document.addEventListener(o,n)}else m.has(e)||(n(),document.removeEventListener(o,u.get(e)))}function g(e,t){return(0,a.t)(e.el,t.el)?-1:1}function v(e){const t=e.detail.sourceEvent.target,n=d.get(this),l=n.find(e=>e.el===t);if(l&&n.includes(l))return;const a=n[0];a.disabled||a.onLabelClick(e)}function p(){m.has(this)&&f(this)}function E(){m.add(this);const e=h.get(this)||p.bind(this);h.set(this,e),document.addEventListener(s,e)}async function y(e){if(await e.componentOnReady(),d.has(e))return;const t=e.for&&e.ownerDocument?.getElementById(e.for);t&&requestAnimationFrame(()=>{for(const e of m)if(e.el===t){f(e);break}})}n.d(t,["b",0,o,"l",0,s,"u",0,i])},16796(e,t,n){n.r(t),n.d(t,{Label:()=>r});var l=n(61476),a=n(46913),i=n(5576),c=n(10225),s=n(24185);const o=a.AH`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}:host([alignment=start]){text-align:start}:host([alignment=end]){text-align:end}:host([alignment=center]){text-align:center}:host([scale=s]) .container{gap:.25rem;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);margin-block-end:var(--calcite-label-margin-bottom, .5rem)}:host([scale=m]) .container{gap:.5rem;font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base);margin-block-end:var(--calcite-label-margin-bottom, .75rem)}:host([scale=l]) .container{gap:.5rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);margin-block-end:var(--calcite-label-margin-bottom, 1rem)}:host .container{margin-inline:0px;margin-block-start:0px;inline-size:100%;line-height:1.375;color:var(--calcite-color-text-1);color:var(--calcite-label-text-color, var(--calcite-color-text-1))}:host([layout=block]) .container,:host([layout=default]) .container{display:flex;flex-direction:column}:host([layout=inline]) .container,:host([layout=inline-space-between]) .container{display:flex;flex-direction:row;align-items:center;gap:.5rem}:host([layout=inline][scale=l]) .container{gap:.75rem}:host([layout=inline-space-between]) .container{justify-content:space-between}:host([disabled])>.container{opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted(*[disabled]),:host([disabled]) ::slotted(*[disabled] *){--tw-bg-opacity: 1}:host([disabled]) ::slotted(calcite-input-message:not([active])){--tw-bg-opacity: 0}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`;class r extends i.WF{constructor(){super(),this.alignment="start",this.layout="default",this.scale="m",this.calciteInternalLabelClick=(0,c.c)({bubbles:!1,cancelable:!1}),this.listen("click",this.labelClickHandler)}static{this.properties={alignment:[3,{},{reflect:!0}],for:[3,{},{reflect:!0}],layout:[3,{},{reflect:!0}],scale:[3,{},{reflect:!0}]}}static{this.styles=o}connectedCallback(){super.connectedCallback(),document.dispatchEvent(new CustomEvent(s.l))}willUpdate(e){e.has("for")&&(0,s.a)(this.el)}disconnectedCallback(){super.disconnectedCallback(),document.dispatchEvent(new CustomEvent(s.b))}labelClickHandler(e){"Range"===window.getSelection()?.type||e.defaultPrevented||this.calciteInternalLabelClick.emit({sourceEvent:e})}render(){return a.qy`<div class=${(0,i.CP)("container")}><slot></slot></div>`}}(0,l.c)("calcite-label",r)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2387],{69052(e,t,n){n.d(t,{hr:()=>o});var r=n(34727);class o{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,n=!1){return s(this.range,this.min,this.max,e,t,n)}clamp(e,t=0){return(0,r.qE)(e-t,this.min,this.max)+t}monotonic(e,t,n){return e<t?t:t+i(this.range,e-t,n)}minimalMonotonic(e,t,n){return s(this.range,e,e+this.range,t,n)}center(e,t,n){return t=this.monotonic(e,t,n),this.normalize((e+t)/2,n)}diff(e,t,n){return this.monotonic(e,t,n)-e}shortestSignedDiff(e,t){e=this.normalize(e);const n=(t=this.normalize(t))-e,r=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(n)<Math.abs(r)?n:r}contains(e,t,n){return t=this.minimalMonotonic(e,t),(n=this.minimalMonotonic(e,n))>e&&n<t}}function s(e,t,n,r,o=0,s=!1){return(r-=o)<t?r+=i(e,t-r):r>n&&(r-=i(e,r-n)),s&&r===n&&(r=t),r+o}function i(e,t,n=0){return Math.ceil((t-n)/e)*e+n}const a=new o(0,2*Math.PI),l=(new o(-Math.PI,Math.PI),new o(0,360));n.d(t,["ie",0,l,"uC",0,a])},93146(e,t,n){n.d(t,{z:()=>o});class r{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return null==this._promise&&(this._promise=this._import().then(async e=>(this.module=e,e))),this._promise}}function o(e){return new r(async()=>{const t=await e();return!1===t.isLoaded?.()&&await t.load(),t})}},52039(e,t,n){n.d(t,{O7:()=>f,el:()=>l});var r=n(69052),o=(n(49186),n(17676)),s=(n(5443),n(39829),n(82799),n(16930)),i=n(93146),a=(n(80754),n(21325));async function l(e,t,n){Array.isArray(e)||(e=[e]),null!=t&&"object"==typeof t&&"authMode"in t&&(n=t);let r=null;for(const t of e)r??=t?.spatialReference;if(!r)return e;const s=(0,a.Vp)(r);if(!s)return e;const[i,l]=s.valid;let f=!1;for(const t of e){if(!t)continue;if("point"===t.type){f||=t.x>=l,f||=t.x<=i;continue}const{extent:e}=t;if(null==e){f=!0;break}f||=e.xmin>=l,f||=e.xmin<=i,f||=e.xmax>=l,f||=e.xmax<=i}if(!f)return e;const[{foldInto360Range:p},m]=await(0,o.qr)(Promise.all([u.getImportPromise(),c.getImportPromise()]),n),y=m.fromSpatialReference(r);return e.map(e=>{if(null==e||"mesh"===e.type)return e;const t=m.fromGeometry(e),n=m.toGeometry(p(t,y),r);return"extent"===e.type&&1===n?.rings.length?n.extent:n})}const u=(0,i.z)(()=>n.e(4144).then(n.bind(n,4144))),c=(0,i.z)(()=>Promise.all([n.e(9187),n.e(8885),n.e(5756),n.e(3299),n.e(1550)]).then(n.bind(n,78125)));function f(e,t,n){const r=(0,a.Vp)(n);if(null==r)return e;const[o,s]=r.valid,i=2*s;let l=0,u=0;t>s?l=Math.ceil(Math.abs(t-s)/i):t<o&&(l=-Math.ceil(Math.abs(t-o)/i)),e>s?u=Math.ceil(Math.abs(e-s)/i):e<o&&(u=-Math.ceil(Math.abs(e-o)/i));let c=e+(l-u)*i;const f=c-t;return f>s?c-=i:f<o&&(c+=i),c}function p(e){const t=(0,a.Vp)(e);if(null==t)return null;const[n,o]=t.valid;return new r.hr(n,o)}const m=p(s.A.WGS84);p(s.A.WebMercator),n.d(t,["Y_",0,m])},80754(e,t,n){n.d(t,{kS:()=>u,kd:()=>l});var r=n(82799),o=n(16930),s=n(60408),i=n(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:o.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:o.A.WGS84})}};function l(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){if((0,i.Ed)(e))for(const n of function(e){return(0,s.Bi)(e)?e.curveRings:e.curvePaths}(e))for(const e of n){if((0,i.aO)(e)){const[n,r]=e.c;n[0]+=t,r[0]+=t;continue}if((0,i.FG)(e)){const[n,r]=e.a;n[0]+=t,r[0]+=t;continue}if((0,i.n1)(e)){const[n,r,o]=e.b;n[0]+=t,r[0]+=t,o[0]+=t;continue}e[0]+=t}for(const n of function(e){return(0,s.Bi)(e)?e.rings:e.paths}(e))for(const e of n)e[0]+=t;return e}n.d(t,["j7",0,a])},41653(e,t,n){n.r(t),n.d(t,{queryModel:()=>g,queryModels:()=>d});var r=n(11254),o=n(4576),s=n(49186),i=n(91869),a=n(84952),l=n(5482),u=n(69622),c=n(91429);let f=class extends u.A{constructor(e){super(e),this.name="",this.size=0}arrayBuffer(e){return this.loadArrayBuffer(e)}};(0,l.Cg)([(0,c.MZ)({constructOnly:!0})],f.prototype,"flags",void 0),(0,l.Cg)([(0,c.MZ)({constructOnly:!0})],f.prototype,"loadArrayBuffer",void 0),(0,l.Cg)([(0,c.MZ)({constructOnly:!0})],f.prototype,"name",void 0),(0,l.Cg)([(0,c.MZ)({constructOnly:!0})],f.prototype,"size",void 0),f=(0,l.Cg)([(0,c.$K)("esri.layers.scene.ModelFileInfo")],f);let p=class extends u.A{constructor(e){super(e),this.files=[],this.format="",this.isSource=!1,this.name="",this.size=0}};(0,l.Cg)([(0,c.MZ)({constructOnly:!0})],p.prototype,"files",void 0),(0,l.Cg)([(0,c.MZ)({constructOnly:!0})],p.prototype,"format",void 0),(0,l.Cg)([(0,c.MZ)({constructOnly:!0})],p.prototype,"isSource",void 0),(0,l.Cg)([(0,c.MZ)({constructOnly:!0})],p.prototype,"name",void 0),(0,l.Cg)([(0,c.MZ)({constructOnly:!0})],p.prototype,"size",void 0),p=(0,l.Cg)([(0,c.$K)("esri.layers.scene.ModelInfo")],p);var m=n(20557),y=n(99199),h=n(97552);async function d(e,t,n,r){const l=e.infoFor3D;if(!l)throw new s.A("scenelayer:query-models-not-available","Model queries are not available without 3D object metadata",{layer:e});const{objectIdField:u,globalIdField:c}=t;if(!u||!c)throw new s.A("scenelayer:query-models-not-available","Missing required fields for model queries",{layer:e});const f=function(e,t,n,r){const o=function(e,t){const n=h.A.from(t)?.clone()??e.createQuery();return n.outFields=null,n.formatOf3DObjects=null,n.returnGeometry=!1,n}(e,t);return o.outFields=[n,r],o.returnGeometry=!1,o}(e,n,u,c),p=await t.queryFeatures(f,r);return await async function(e){const{infoFor3D:t,associatedLayer:n,options:r}=e,s=n.globalIdField,l=n.parsedUrl;if(!s||!l)return new Map;const u=await async function(e){const{options:t,infoFor3D:n,featureInfos:r}=e,s=[...r.keys()];if(t?.requestedFormat){const e=(0,m.fE)(t.requestedFormat,n.supportedFormats);return e?[{formatId:e,objectIds:s}]:[]}const l=(0,o.Am)([...n.queryFormats,...n.editFormats]);return await async function({options:e,infoFor3D:t,featureInfos:n,requestQuery:r,associatedLayer:s},l){const u=t.assetMapFieldRoles.parentGlobalId,c=t.assetMapFieldRoles.assetType,f=t.assetMapFieldRoles.flags,p=new Map;for(const[e,{globalId:t}]of n)t&&p.set(e,t);const d=(0,o.Am)(p.values()),g=(0,m.JZ)(t);if(!g||!d.length)return[];const w=(0,a.fj)(s.parsedUrl?.path??"",`../${g.id}`),M=!!e?.sourceOnly,b=new h.A({where:`${u} IN (${d.map(x).join(",")})`,outFields:M?[u,c,f]:[u,c],returnDistinctValues:!0,returnGeometry:!1}),{features:F}=await(0,y.s)(w,b,{query:r,signal:e?.signal}),A=new Set(l),v=new Map;for(const e of F){const t=e.getAttribute(u),n=e.getAttribute(c),r=e.getAttribute(f)??0;n&&A.has(n)&&t&&!(1&r)&&(0,i.tE)(v,t,()=>new Set).add(n)}const q=new Map;for(const[e,t]of p)for(const n of v.get(t)??[])(0,i.tE)(q,n,()=>[]).push(e);return l.map(e=>({formatId:e,objectIds:q.get(e)??[]})).filter(({objectIds:e})=>e.length>0)}(e,l)}(e),c=new Map,f=await Promise.all(u.map(async({formatId:o,objectIds:i})=>{const a=(0,m.be)(o,t.supportedFormats),l=n.parsedUrl;if(null==a||!l||!i.length)return null;const u=(0,m._h)(o,t.supportedFormats),c=(0,m.qv)(u),f=n.createQuery();return f.objectIds=i,f.outFields=[s],f.formatOf3DObjects=o,f.returnGeometry=!0,{modelFormat:a,modelFileExtensions:c,featureSetJSON:await(0,y.e)(l.path,f,{query:e.requestQuery,signal:r?.signal},{uniqueIdFields:n.uniqueIdFields})}}));for(const t of f)t&&w(e,t.modelFormat,t.modelFileExtensions,t.featureSetJSON,c);return c}(new A(e,t,function(e){const t=new Map;for(const n of e.features){const e=n.getObjectId(),r=n.getGlobalId();null!=e&&null!=r&&t.set(e,{globalId:r})}return t}(p),l,r))}async function g(e,t,n,r){const o=r?.format;return((await d(e,t,{objectIds:[n]},{...r,requestedFormat:o,sourceOnly:null==o})).get(n)??[]).find(e=>o&&e.format===o||!o&&e.isSource)}function w({featureInfos:e,requestQuery:t,infoFor3D:n},r,o,s,a){const l=new Map;for(const e of s.assetMaps??[])(0,i.tE)(l,e.parentGlobalId,()=>[]).push(e);for(const[s,u]of e){const e=l.get(u.globalId);if(!e?.length)continue;const c=M(e,t,n);if(!c.length)continue;const f=c.reduce((e,t)=>e+t.size,0),m=F(c,o),y=!m.flags.includes("DERIVED");(0,i.tE)(a,s,()=>[]).push(new p({name:m.name,size:f,format:r,isSource:y,files:c}))}}function M(e,t,n){const r=new Map,o=({assetType:e})=>null!=(0,m.be)(e,n.supportedFormats),s=e.some(e=>o(e)&&!e.flags.includes("DERIVED"));for(const t of e)s&&o(t)&&t.flags.includes("DERIVED")||(0,i.tE)(r,t.assetName,()=>[]).push(t);const a=[];for(const[e,n]of r){n.sort((e,t)=>e.seqNo-t.seqNo);const r=n.reduce((e,t)=>e+t.size,0),o=n.map(({assetURL:e})=>e).filter(e=>!!e);o.length&&a.push(new f({name:e,size:r,flags:n[0].flags,loadArrayBuffer:e=>b(o,t,e)}))}return a}async function b(e,t,n){const o=await Promise.all(e.map(e=>(0,r.A)(e,{responseType:"array-buffer",query:t,signal:n?.signal}).then(({data:e})=>e)));return 1===o.length?o[0]:function(e){const t=e.reduce((e,t)=>e+t.byteLength,0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(new Uint8Array(t),r),r+=t.byteLength;return n.buffer}(o)}function F(e,t){return e.find(({name:e})=>t.some(t=>e.toLowerCase().endsWith(`.${t}`)))??e[0]}function x(e){return`'${e.replaceAll("'","''")}'`}class A{constructor(e,t,n,r,o){this.layer=e,this.associatedLayer=t,this.featureInfos=n,this.infoFor3D=r,this.options=o,this.requestQuery={...t.parsedUrl?.query,...e.customParameters,...e.apiKey?{token:e.apiKey}:{}}}}},99199(e,t,n){n.d(t,{e:()=>l,s:()=>a});var r=n(2272),o=n(80893),s=n(22671),i=n(97552);async function a(e,t,n,r){const o=await l(e,t,n,r);return s.A.fromJSON(o)}function l(e,t,n,s){const a=(0,r.Dl)(e),l={...n},u=i.A.from(t);return(0,o.eW)(a,u,u.sourceSpatialReference,l,s)}},22671(e,t,n){n.d(t,{A:()=>w});var r,o=n(5482),s=n(52106),i=n(66552),a=n(25482),l=n(4718),u=n(91429),c=n(16930),f=n(60408),p=n(65864),m=n(50498),y=n(20437),h=n(36005),d=n(43937);const g=new i.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=r=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,n,r){if(e)return void g.write(e,t,n,r);const{features:o}=this;if(o)for(const e of o)if(null!=e?.geometry)return void g.write(e.geometry.type,t,n,r)}readQueryGeometry(e,t){if(!e)return null;const n=!!e.spatialReference,r=(0,p.rS)(e);return r&&!n&&t.spatialReference&&(r.spatialReference=c.A.fromJSON(t.spatialReference)),r}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:n}=this;if(n)for(const e of n)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new r(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 n=0;n<t.features.length;n++){const r=t.features[n];if(r.geometry){const t=e?.[n];r.geometry=t?.toJSON()||r.geometry}}return t}quantize(e){const{scale:[t,n],translate:[r,o]}=e,s=this.features,i=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-r)/t),e=>Math.round((o-e)/n));for(let e=0,t=s.length;e<t;e++)i?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:n}=this;if(!n)return this;const{translate:[r,o],scale:[s,i]}=n;let a=null,l=null;if(this.hasZ&&null!=n?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=n;a=n=>n*t+e}if(this.hasM&&null!=n?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=n;l=n=>null==n?n:n*t+e}const u=this._getHydrationFunction(e,e=>e*s+r,e=>o-e*i,a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,n){const r=c.A.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){const s=e[t],i=n.fromJSON(s),a=s.geometry?.spatialReference;null==i.geometry||a||(i.geometry.spatialReference=r);const l=s.aggregateGeometries,u=i.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],n=l[e],o=n?.spatialReference;null==t||o||(t.spatialReference=r)}o.push(i)}return o}_quantizePoints(e,t,n){let r,o;const s=[];for(let i=0,a=e.length;i<a;i++){const a=e[i];if(i>0){const e=t(a[0]),i=n(a[1]);e===r&&i===o||(s.push([e-r,i-o]),r=e,o=i)}else r=t(a[0]),o=n(a[1]),s.push([r,o])}return s.length>0?s:null}_getQuantizationFunction(e,t,n){return"point"===e?e=>(e.x=t(e.x),e.y=n(e.y),e):"polyline"===e||"polygon"===e?e=>{const r=(0,f.Bi)(e)?e.rings:e.paths,o=[];for(let e=0,s=r.length;e<s;e++){const s=r[e],i=this._quantizePoints(s,t,n);i&&o.push(i)}return o.length>0?((0,f.Bi)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{const r=this._quantizePoints(e.points,t,n);return r&&r.length>0?(e.points=r,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,n,r,o){return"point"===e?e=>{e.x=t(e.x),e.y=n(e.y),r&&(e.z=r(e.z))}:"polyline"===e||"polygon"===e?e=>{const s=(0,f.Bi)(e)?e.rings:e.paths;let i,a;for(let e=0,r=s.length;e<r;e++){const r=s[e];for(let e=0,o=r.length;e<o;e++){const o=r[e];e>0?(i+=o[0],a+=o[1]):(i=o[0],a=o[1]),o[0]=t(i),o[1]=n(a)}}if(r&&o)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=r(n[2]),n[3]=o(n[3])}}else if(r)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=r(n[2])}}else if(o)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=o(n[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=n(e.ymin),e.xmax=t(e.xmax),e.ymax=n(e.ymax),r&&null!=e.zmax&&null!=e.zmin&&(e.zmax=r(e.zmax),e.zmin=r(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{const s=e.points;let i,a;for(let e=0,r=s.length;e<r;e++){const r=s[e];e>0?(i+=r[0],a+=r[1]):(i=r[0],a=r[1]),r[0]=t(i),r[1]=n(a)}if(r&&o)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=r(t[2]),t[3]=o(t[3])}else if(r)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=r(t[2])}else if(o)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=o(t[2])}}:null}};(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,o.Cg)([(0,u.MZ)({type:[s.A],json:{write:!0}})],w.prototype,"features",void 0),(0,o.Cg)([(0,h.w)("features")],w.prototype,"readFeatures",null),(0,o.Cg)([(0,u.MZ)({type:[y.A],json:{write:!0}})],w.prototype,"fields",void 0),(0,o.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],w.prototype,"geometryType",void 0),(0,o.Cg)([(0,d.K)("geometryType")],w.prototype,"writeGeometryType",null),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,o.Cg)([(0,u.MZ)({types:m.yR,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,o.Cg)([(0,h.w)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,o.Cg)([(0,u.MZ)({type:c.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,o.Cg)([(0,d.K)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],w.prototype,"transform",void 0),w=r=(0,o.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0},2272(e,t,n){n.d(t,{Dl:()=>u,gf:()=>f,jV:()=>l,lF:()=>c});var r=n(92602),o=n(70333),s=n(4718),i=n(84952),a=n(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,i.An)(e):(0,s.o8)(e)}function c(e,t,n){const r={};for(const o in e){if("declaredClass"===o)continue;const s=e[o];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))r[o]=s.map(e=>c(e));else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(n?.[o]);r[o]=t?e:JSON.stringify(e)}else r[o]=t?s:JSON.stringify(s);else r[o]=s}return r}async function f(e,t,s){const i=function(e,t){return e?t&&(0,a.Qc)(e)?t:(0,a.getApiKey)(e)??o.id?.findCredential(e)?.token:null}(e,t);if(i)return i;!o.id&&r.A.request.useIdentity&&await Promise.all([n.e(7632),n.e(4943),n.e(148)]).then(n.bind(n,50148));const l=await o.id.getCredential(e,s);return l?.token}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2387],{69052(e,t,n){n.d(t,{hr:()=>o});var r=n(34727);class o{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,n=!1){return s(this.range,this.min,this.max,e,t,n)}clamp(e,t=0){return(0,r.qE)(e-t,this.min,this.max)+t}monotonic(e,t,n){return e<t?t:t+i(this.range,e-t,n)}minimalMonotonic(e,t,n){return s(this.range,e,e+this.range,t,n)}center(e,t,n){return t=this.monotonic(e,t,n),this.normalize((e+t)/2,n)}diff(e,t,n){return this.monotonic(e,t,n)-e}shortestSignedDiff(e,t){e=this.normalize(e);const n=(t=this.normalize(t))-e,r=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(n)<Math.abs(r)?n:r}contains(e,t,n){return t=this.minimalMonotonic(e,t),(n=this.minimalMonotonic(e,n))>e&&n<t}}function s(e,t,n,r,o=0,s=!1){return(r-=o)<t?r+=i(e,t-r):r>n&&(r-=i(e,r-n)),s&&r===n&&(r=t),r+o}function i(e,t,n=0){return Math.ceil((t-n)/e)*e+n}const a=new o(0,2*Math.PI),l=(new o(-Math.PI,Math.PI),new o(0,360));n.d(t,["ie",0,l,"uC",0,a])},93146(e,t,n){n.d(t,{z:()=>o});class r{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return null==this._promise&&(this._promise=this._import().then(async e=>(this.module=e,e))),this._promise}}function o(e){return new r(async()=>{const t=await e();return!1===t.isLoaded?.()&&await t.load(),t})}},52039(e,t,n){n.d(t,{O7:()=>f,el:()=>l});var r=n(69052),o=(n(49186),n(17676)),s=(n(5443),n(39829),n(82799),n(16930)),i=n(93146),a=(n(80754),n(21325));async function l(e,t,n){Array.isArray(e)||(e=[e]),null!=t&&"object"==typeof t&&"authMode"in t&&(n=t);let r=null;for(const t of e)r??=t?.spatialReference;if(!r)return e;const s=(0,a.Vp)(r);if(!s)return e;const[i,l]=s.valid;let f=!1;for(const t of e){if(!t)continue;if("point"===t.type){f||=t.x>=l,f||=t.x<=i;continue}const{extent:e}=t;if(null==e){f=!0;break}f||=e.xmin>=l,f||=e.xmin<=i,f||=e.xmax>=l,f||=e.xmax<=i}if(!f)return e;const[{foldInto360Range:p},m]=await(0,o.qr)(Promise.all([u.getImportPromise(),c.getImportPromise()]),n),y=m.fromSpatialReference(r);return e.map(e=>{if(null==e||"mesh"===e.type)return e;const t=m.fromGeometry(e),n=m.toGeometry(p(t,y),r);return"extent"===e.type&&1===n?.rings.length?n.extent:n})}const u=(0,i.z)(()=>n.e(4144).then(n.bind(n,4144))),c=(0,i.z)(()=>Promise.all([n.e(9187),n.e(8885),n.e(5756),n.e(3299),n.e(1550)]).then(n.bind(n,78125)));function f(e,t,n){const r=(0,a.Vp)(n);if(null==r)return e;const[o,s]=r.valid,i=2*s;let l=0,u=0;t>s?l=Math.ceil(Math.abs(t-s)/i):t<o&&(l=-Math.ceil(Math.abs(t-o)/i)),e>s?u=Math.ceil(Math.abs(e-s)/i):e<o&&(u=-Math.ceil(Math.abs(e-o)/i));let c=e+(l-u)*i;const f=c-t;return f>s?c-=i:f<o&&(c+=i),c}function p(e){const t=(0,a.Vp)(e);if(null==t)return null;const[n,o]=t.valid;return new r.hr(n,o)}const m=p(s.A.WGS84);p(s.A.WebMercator),n.d(t,["Y_",0,m])},80754(e,t,n){n.d(t,{kS:()=>u,kd:()=>l});var r=n(82799),o=n(16930),s=n(60408),i=n(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:o.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:o.A.WGS84})}};function l(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){if((0,i.Ed)(e))for(const n of function(e){return(0,s.Bi)(e)?e.curveRings:e.curvePaths}(e))for(const e of n){if((0,i.aO)(e)){const[n,r]=e.c;n[0]+=t,r[0]+=t;continue}if((0,i.FG)(e)){const[n,r]=e.a;n[0]+=t,r[0]+=t;continue}if((0,i.n1)(e)){const[n,r,o]=e.b;n[0]+=t,r[0]+=t,o[0]+=t;continue}e[0]+=t}for(const n of function(e){return(0,s.Bi)(e)?e.rings:e.paths}(e))for(const e of n)e[0]+=t;return e}n.d(t,["j7",0,a])},41653(e,t,n){n.r(t),n.d(t,{queryModel:()=>g,queryModels:()=>d});var r=n(11254),o=n(4576),s=n(49186),i=n(91869),a=n(84952),l=n(5482),u=n(69622),c=n(91429);let f=class extends u.A{constructor(e){super(e),this.name="",this.size=0}arrayBuffer(e){return this.loadArrayBuffer(e)}};(0,l.Cg)([(0,c.MZ)({constructOnly:!0})],f.prototype,"flags",void 0),(0,l.Cg)([(0,c.MZ)({constructOnly:!0})],f.prototype,"loadArrayBuffer",void 0),(0,l.Cg)([(0,c.MZ)({constructOnly:!0})],f.prototype,"name",void 0),(0,l.Cg)([(0,c.MZ)({constructOnly:!0})],f.prototype,"size",void 0),f=(0,l.Cg)([(0,c.$K)("esri.layers.scene.ModelFileInfo")],f);let p=class extends u.A{constructor(e){super(e),this.files=[],this.format="",this.isSource=!1,this.name="",this.size=0}};(0,l.Cg)([(0,c.MZ)({constructOnly:!0})],p.prototype,"files",void 0),(0,l.Cg)([(0,c.MZ)({constructOnly:!0})],p.prototype,"format",void 0),(0,l.Cg)([(0,c.MZ)({constructOnly:!0})],p.prototype,"isSource",void 0),(0,l.Cg)([(0,c.MZ)({constructOnly:!0})],p.prototype,"name",void 0),(0,l.Cg)([(0,c.MZ)({constructOnly:!0})],p.prototype,"size",void 0),p=(0,l.Cg)([(0,c.$K)("esri.layers.scene.ModelInfo")],p);var m=n(20557),y=n(99199),h=n(97552);async function d(e,t,n,r){const l=e.infoFor3D;if(!l)throw new s.A("scenelayer:query-models-not-available","Model queries are not available without 3D object metadata",{layer:e});const{objectIdField:u,globalIdField:c}=t;if(!u||!c)throw new s.A("scenelayer:query-models-not-available","Missing required fields for model queries",{layer:e});const f=function(e,t,n,r){const o=function(e,t){const n=h.A.from(t)?.clone()??e.createQuery();return n.outFields=null,n.formatOf3DObjects=null,n.returnGeometry=!1,n}(e,t);return o.outFields=[n,r],o.returnGeometry=!1,o}(e,n,u,c),p=await t.queryFeatures(f,r);return await async function(e){const{infoFor3D:t,associatedLayer:n,options:r}=e,s=n.globalIdField,l=n.parsedUrl;if(!s||!l)return new Map;const u=await async function(e){const{options:t,infoFor3D:n,featureInfos:r}=e,s=[...r.keys()];if(t?.requestedFormat){const e=(0,m.fE)(t.requestedFormat,n.supportedFormats);return e?[{formatId:e,objectIds:s}]:[]}const l=(0,o.Am)([...n.queryFormats,...n.editFormats]);return await async function({options:e,infoFor3D:t,featureInfos:n,requestQuery:r,associatedLayer:s},l){const u=t.assetMapFieldRoles.parentGlobalId,c=t.assetMapFieldRoles.assetType,f=t.assetMapFieldRoles.flags,p=new Map;for(const[e,{globalId:t}]of n)t&&p.set(e,t);const d=(0,o.Am)(p.values()),g=(0,m.JZ)(t);if(!g||!d.length)return[];const w=(0,a.fj)(s.parsedUrl?.path??"",`../${g.id}`),M=!!e?.sourceOnly,b=new h.A({where:`${u} IN (${d.map(x).join(",")})`,outFields:M?[u,c,f]:[u,c],returnDistinctValues:!0,returnGeometry:!1}),{features:F}=await(0,y.s)(w,b,{query:r,signal:e?.signal}),A=new Set(l),v=new Map;for(const e of F){const t=e.getAttribute(u),n=e.getAttribute(c),r=e.getAttribute(f)??0;n&&A.has(n)&&t&&!(1&r)&&(0,i.tE)(v,t,()=>new Set).add(n)}const q=new Map;for(const[e,t]of p)for(const n of v.get(t)??[])(0,i.tE)(q,n,()=>[]).push(e);return l.map(e=>({formatId:e,objectIds:q.get(e)??[]})).filter(({objectIds:e})=>e.length>0)}(e,l)}(e),c=new Map,f=await Promise.all(u.map(async({formatId:o,objectIds:i})=>{const a=(0,m.be)(o,t.supportedFormats),l=n.parsedUrl;if(null==a||!l||!i.length)return null;const u=(0,m._h)(o,t.supportedFormats),c=(0,m.qv)(u),f=n.createQuery();return f.objectIds=i,f.outFields=[s],f.formatOf3DObjects=o,f.returnGeometry=!0,{modelFormat:a,modelFileExtensions:c,featureSetJSON:await(0,y.e)(l.path,f,{query:e.requestQuery,signal:r?.signal},{uniqueIdFields:n.uniqueIdFields})}}));for(const t of f)t&&w(e,t.modelFormat,t.modelFileExtensions,t.featureSetJSON,c);return c}(new A(e,t,function(e){const t=new Map;for(const n of e.features){const e=n.getObjectId(),r=n.getGlobalId();null!=e&&null!=r&&t.set(e,{globalId:r})}return t}(p),l,r))}async function g(e,t,n,r){const o=r?.format;return((await d(e,t,{objectIds:[n]},{...r,requestedFormat:o,sourceOnly:null==o})).get(n)??[]).find(e=>o&&e.format===o||!o&&e.isSource)}function w({featureInfos:e,requestQuery:t,infoFor3D:n},r,o,s,a){const l=new Map;for(const e of s.assetMaps??[])(0,i.tE)(l,e.parentGlobalId,()=>[]).push(e);for(const[s,u]of e){const e=l.get(u.globalId);if(!e?.length)continue;const c=M(e,t,n);if(!c.length)continue;const f=c.reduce((e,t)=>e+t.size,0),m=F(c,o),y=!m.flags.includes("DERIVED");(0,i.tE)(a,s,()=>[]).push(new p({name:m.name,size:f,format:r,isSource:y,files:c}))}}function M(e,t,n){const r=new Map,o=({assetType:e})=>null!=(0,m.be)(e,n.supportedFormats),s=e.some(e=>o(e)&&!e.flags.includes("DERIVED"));for(const t of e)s&&o(t)&&t.flags.includes("DERIVED")||(0,i.tE)(r,t.assetName,()=>[]).push(t);const a=[];for(const[e,n]of r){n.sort((e,t)=>e.seqNo-t.seqNo);const r=n.reduce((e,t)=>e+t.size,0),o=n.map(({assetURL:e})=>e).filter(e=>!!e);o.length&&a.push(new f({name:e,size:r,flags:n[0].flags,loadArrayBuffer:e=>b(o,t,e)}))}return a}async function b(e,t,n){const o=await Promise.all(e.map(e=>(0,r.A)(e,{responseType:"array-buffer",query:t,signal:n?.signal}).then(({data:e})=>e)));return 1===o.length?o[0]:function(e){const t=e.reduce((e,t)=>e+t.byteLength,0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(new Uint8Array(t),r),r+=t.byteLength;return n.buffer}(o)}function F(e,t){return e.find(({name:e})=>t.some(t=>e.toLowerCase().endsWith(`.${t}`)))??e[0]}function x(e){return`'${e.replaceAll("'","''")}'`}class A{constructor(e,t,n,r,o){this.layer=e,this.associatedLayer=t,this.featureInfos=n,this.infoFor3D=r,this.options=o,this.requestQuery={...t.parsedUrl?.query,...e.customParameters,...e.apiKey?{token:e.apiKey}:{}}}}},99199(e,t,n){n.d(t,{e:()=>l,s:()=>a});var r=n(2272),o=n(80893),s=n(22671),i=n(97552);async function a(e,t,n,r){const o=await l(e,t,n,r);return s.A.fromJSON(o)}function l(e,t,n,s){const a=(0,r.Dl)(e),l={...n},u=i.A.from(t);return(0,o.eW)(a,u,u.sourceSpatialReference,l,s)}},22671(e,t,n){n.d(t,{A:()=>w});var r,o=n(5482),s=n(52106),i=n(66552),a=n(25482),l=n(4718),u=n(91429),c=n(16930),f=n(60408),p=n(65864),m=n(50498),y=n(20437),h=n(36005),d=n(43937);const g=new i.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=r=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,n,r){if(e)return void g.write(e,t,n,r);const{features:o}=this;if(o)for(const e of o)if(null!=e?.geometry)return void g.write(e.geometry.type,t,n,r)}readQueryGeometry(e,t){if(!e)return null;const n=!!e.spatialReference,r=(0,p.rS)(e);return r&&!n&&t.spatialReference&&(r.spatialReference=c.A.fromJSON(t.spatialReference)),r}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:n}=this;if(n)for(const e of n)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new r(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 n=0;n<t.features.length;n++){const r=t.features[n];if(r.geometry){const t=e?.[n];r.geometry=t?.toJSON()||r.geometry}}return t}quantize(e){const{scale:[t,n],translate:[r,o]}=e,s=this.features,i=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-r)/t),e=>Math.round((o-e)/n));for(let e=0,t=s.length;e<t;e++)i?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:n}=this;if(!n)return this;const{translate:[r,o],scale:[s,i]}=n;let a=null,l=null;if(this.hasZ&&null!=n?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=n;a=n=>n*t+e}if(this.hasM&&null!=n?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=n;l=n=>null==n?n:n*t+e}const u=this._getHydrationFunction(e,e=>e*s+r,e=>o-e*i,a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,n){const r=c.A.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){const s=e[t],i=n.fromJSON(s),a=s.geometry?.spatialReference;null==i.geometry||a||(i.geometry.spatialReference=r);const l=s.aggregateGeometries,u=i.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],n=l[e],o=n?.spatialReference;null==t||o||(t.spatialReference=r)}o.push(i)}return o}_quantizePoints(e,t,n){let r,o;const s=[];for(let i=0,a=e.length;i<a;i++){const a=e[i];if(i>0){const e=t(a[0]),i=n(a[1]);e===r&&i===o||(s.push([e-r,i-o]),r=e,o=i)}else r=t(a[0]),o=n(a[1]),s.push([r,o])}return s.length>0?s:null}_getQuantizationFunction(e,t,n){return"point"===e?e=>(e.x=t(e.x),e.y=n(e.y),e):"polyline"===e||"polygon"===e?e=>{const r=(0,f.Bi)(e)?e.rings:e.paths,o=[];for(let e=0,s=r.length;e<s;e++){const s=r[e],i=this._quantizePoints(s,t,n);i&&o.push(i)}return o.length>0?((0,f.Bi)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{const r=this._quantizePoints(e.points,t,n);return r&&r.length>0?(e.points=r,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,n,r,o){return"point"===e?e=>{e.x=t(e.x),e.y=n(e.y),r&&(e.z=r(e.z))}:"polyline"===e||"polygon"===e?e=>{const s=(0,f.Bi)(e)?e.rings:e.paths;let i,a;for(let e=0,r=s.length;e<r;e++){const r=s[e];for(let e=0,o=r.length;e<o;e++){const o=r[e];e>0?(i+=o[0],a+=o[1]):(i=o[0],a=o[1]),o[0]=t(i),o[1]=n(a)}}if(r&&o)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=r(n[2]),n[3]=o(n[3])}}else if(r)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=r(n[2])}}else if(o)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=o(n[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=n(e.ymin),e.xmax=t(e.xmax),e.ymax=n(e.ymax),r&&null!=e.zmax&&null!=e.zmin&&(e.zmax=r(e.zmax),e.zmin=r(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{const s=e.points;let i,a;for(let e=0,r=s.length;e<r;e++){const r=s[e];e>0?(i+=r[0],a+=r[1]):(i=r[0],a=r[1]),r[0]=t(i),r[1]=n(a)}if(r&&o)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=r(t[2]),t[3]=o(t[3])}else if(r)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=r(t[2])}else if(o)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=o(t[2])}}:null}};(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,o.Cg)([(0,u.MZ)({type:[s.A],json:{write:!0}})],w.prototype,"features",void 0),(0,o.Cg)([(0,h.w)("features")],w.prototype,"readFeatures",null),(0,o.Cg)([(0,u.MZ)({type:[y.A],json:{write:!0}})],w.prototype,"fields",void 0),(0,o.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],w.prototype,"geometryType",void 0),(0,o.Cg)([(0,d.K)("geometryType")],w.prototype,"writeGeometryType",null),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,o.Cg)([(0,u.MZ)({types:m.yR,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,o.Cg)([(0,h.w)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,o.Cg)([(0,u.MZ)({type:c.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,o.Cg)([(0,d.K)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],w.prototype,"transform",void 0),w=r=(0,o.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0},2272(e,t,n){n.d(t,{Dl:()=>u,gf:()=>f,jV:()=>l,lF:()=>c});var r=n(92602),o=n(70333),s=n(4718),i=n(84952),a=n(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,i.An)(e):(0,s.o8)(e)}function c(e,t,n){const r={};for(const o in e){if("declaredClass"===o)continue;const s=e[o];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))r[o]=s.map(e=>c(e));else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(n?.[o]);r[o]=t?e:JSON.stringify(e)}else r[o]=t?s:JSON.stringify(s);else r[o]=s}return r}async function f(e,t,s){const i=function(e,t){return e?t&&(0,a.Qc)(e)?t:(0,a.getApiKey)(e)??o.id?.findCredential(e)?.token:null}(e,t);if(i)return i;!o.id&&r.A.request.useIdentity&&await Promise.all([n.e(7632),n.e(1144),n.e(148)]).then(n.bind(n,50148));const l=await o.id.getCredential(e,s);return l?.token}}}]);
|