@arcgis/core 5.2.0-next.93 → 5.2.0-next.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arcade/arcadeAsyncRuntime.js +1 -1
- package/arcade/arcadeCompiler.js +1 -1
- package/arcade/functions/portal.js +2 -0
- package/arcade/treeAnalysis.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{c4a0d3149947a1d2c484.js → 05662a663f761dd3dea5.js} +1 -1
- package/assets/esri/core/workers/chunks/0be98adfef79fc5036f0.js +1 -0
- package/assets/esri/core/workers/chunks/0df9864ecebe6a2b973f.js +1 -0
- package/assets/esri/core/workers/chunks/10c13c36c42c5ac41d12.js +1 -0
- package/assets/esri/core/workers/chunks/{e50adcfb392adfb3f79c.js → 1b311ff39dede07865df.js} +1 -1
- package/assets/esri/core/workers/chunks/{188c6ff5f4664827c254.js → 1c803eef9a8fdabc61e3.js} +2 -2
- package/assets/esri/core/workers/chunks/1d7f633f158062eb3f64.js +1 -0
- package/assets/esri/core/workers/chunks/1f047dd747e7c1916dc7.js +1684 -0
- package/assets/esri/core/workers/chunks/2524e2385f61a6898411.js +1 -0
- package/assets/esri/core/workers/chunks/26737d061c7cfbbab95c.js +1 -0
- package/assets/esri/core/workers/chunks/{91de343844ac578e7c93.js → 2b6d261fe79fe186fb22.js} +1 -1
- package/assets/esri/core/workers/chunks/{8a87e1a89a0d8c6203a7.js → 2e51764c8aa31096cb2a.js} +1 -1
- package/assets/esri/core/workers/chunks/{da8a314800944706511b.js → 36e35a8067b18f59cc05.js} +1 -1
- package/assets/esri/core/workers/chunks/{d270b49c037085503016.js → 3a9435569ba460ff7e3d.js} +1 -1
- package/assets/esri/core/workers/chunks/{5d9c92c4e60a4696fdad.js → 471027e4280bd51167b0.js} +1 -1
- package/assets/esri/core/workers/chunks/4c088c26d5d546c95c90.js +1 -0
- package/assets/esri/core/workers/chunks/{e594b6db9caee1f7b9fc.js → 4d700cb028f6306b163e.js} +1 -1
- package/assets/esri/core/workers/chunks/5168bd8ab6233dc9c32a.js +1 -0
- package/assets/esri/core/workers/chunks/{cd02a6078443b8f63927.js → 5b8591486f33627f5389.js} +1 -1
- package/assets/esri/core/workers/chunks/5d6733dcee9c2ef00072.js +1 -0
- package/assets/esri/core/workers/chunks/{a89dbef8155d7c4354da.js → 5edf77618ca51819d7c4.js} +2 -2
- package/assets/esri/core/workers/chunks/6057a79c68c33ee4a193.js +1 -0
- package/assets/esri/core/workers/chunks/{48726010778d6004e347.js → 63127e3b22e7eac6003d.js} +2 -2
- package/assets/esri/core/workers/chunks/{ff83d0337ac489ab08de.js → 678585509706755c0434.js} +2 -2
- package/assets/esri/core/workers/chunks/{2754ba5cc094028a7a3c.js → 691e9cc541cfaebe1776.js} +1 -1
- package/assets/esri/core/workers/chunks/{32f11b4aeae1ef00e466.js → 6baae3e856d904fef9b1.js} +1 -1
- package/assets/esri/core/workers/chunks/{aed7b80145b22c246098.js → 6cbc30b31f0bb39c73ca.js} +1 -1
- package/assets/esri/core/workers/chunks/6cc03ef97d7731153b9a.js +1 -0
- package/assets/esri/core/workers/chunks/{d44338bf5edafa3ca926.js → 6f01bd01b13662eb3bd7.js} +1 -1
- package/assets/esri/core/workers/chunks/{76e7d3cde2da4bdd7820.js → 74cd9df85c4560bb8e52.js} +1 -1
- package/assets/esri/core/workers/chunks/{97e41500fc2d24a88938.js → 7b70d6fdfa7a19ffffb0.js} +1 -1
- package/assets/esri/core/workers/chunks/7bb3411a86cdd736d555.js +1 -0
- package/assets/esri/core/workers/chunks/7ddb5800777fbecee3a8.js +1 -0
- package/assets/esri/core/workers/chunks/7eae9053065d3d38e54e.js +1 -0
- package/assets/esri/core/workers/chunks/7efc51324cfc8e08c756.js +1 -0
- package/assets/esri/core/workers/chunks/{e90076ac1cf88a83a7f9.js → 80f38ab2b7ae61e6f301.js} +1 -1
- package/assets/esri/core/workers/chunks/{5aa23b0f4521ba9a07ad.js → 854f42f16fdb40000aae.js} +1 -1
- package/assets/esri/core/workers/chunks/{24c44541046576fee7e0.js → 87094044458b0ea5cb0f.js} +2 -2
- package/assets/esri/core/workers/chunks/909ee7d2a0eec773037a.js +1 -0
- package/assets/esri/core/workers/chunks/92a6559a6999b26362d7.js +1 -0
- package/assets/esri/core/workers/chunks/{3a65693964e3976d8035.js → 9df38cadebf8e6fd746c.js} +1 -1
- package/assets/esri/core/workers/chunks/a0eb882a5a81d25b9153.js +1 -0
- package/assets/esri/core/workers/chunks/{20f6e681ccd8bf884b77.js → a72983c3621810d4b1af.js} +1 -1
- package/assets/esri/core/workers/chunks/{9226205850e35b7fc610.js → a8aa8cb60b30f0983e7e.js} +1 -1
- package/assets/esri/core/workers/chunks/a8e9aa5461c71c88e2e5.js +1 -0
- package/assets/esri/core/workers/chunks/{1ab8307ba9981124f669.js → af6b9fd77b1792fbb66e.js} +1 -1
- package/assets/esri/core/workers/chunks/{19e93d4d37018e3ee849.js → b102ae764c14d8b32ace.js} +1 -1
- package/assets/esri/core/workers/chunks/{1554feab934e8e1bcd28.js → b333de4dea14c5db0a4d.js} +1 -1
- package/assets/esri/core/workers/chunks/{d7d5275d8b3c9430de1f.js → b7c0da9d255d5e48320d.js} +1 -1
- package/assets/esri/core/workers/chunks/{6b9dbf43c0659e55c539.js → be0417df35a7d99af675.js} +1 -1
- package/assets/esri/core/workers/chunks/{a46ac0be9aabc4cfedc7.js → cc3186dcbbf5edff8b9e.js} +1 -1
- package/assets/esri/core/workers/chunks/{6fd0d9431b141f2a3252.js → cefb70d633c220cbedf9.js} +1 -1
- package/assets/esri/core/workers/chunks/{69c9a12c97ead8963817.js → d1304d414b1fa725168a.js} +1 -1
- package/assets/esri/core/workers/chunks/d453627894e6e5b02023.js +1 -0
- package/assets/esri/core/workers/chunks/e4380706b629729f2212.js +1 -0
- package/assets/esri/core/workers/chunks/e5b6fa57cc4028fbd401.js +1 -0
- package/assets/esri/core/workers/chunks/e7fdad0c07beb3614b60.js +1 -0
- package/assets/esri/core/workers/chunks/ea1877ce00da3b585a30.js +1 -0
- package/assets/esri/core/workers/chunks/{0336f4f8498a22347720.js → ea5ee1b12b43594592a0.js} +1 -1
- package/assets/esri/core/workers/chunks/{c4fef90cf08bbe4f0bb5.js → eafc591e1a98000d54ef.js} +1 -1
- package/assets/esri/core/workers/chunks/f331c24247d132589859.js +1 -0
- package/assets/esri/core/workers/chunks/f5867d8ba73c67ac27d2.js +1 -0
- package/assets/esri/core/workers/chunks/{b7ed5f130661e9ca00b9.js → f5a058a0ce006bce2a2a.js} +1 -1
- package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
- package/chunks/{GlowBlur.glsl.js → BlurEmission.glsl.js} +3 -3
- package/chunks/EmissionComposite.glsl.js +3 -3
- package/chunks/Fog.glsl.js +8 -6
- package/chunks/RibbonLine.glsl.js +52 -52
- package/chunks/bundle.js +1 -1
- package/chunks/portal.js +2 -0
- package/config.js +1 -1
- package/core/timeUtils.d.ts +62 -0
- package/core/timeUtils.js +1 -1
- package/kernel.js +1 -1
- package/layers/AnnotationFeatureLayer.d.ts +0 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/support/AnnotationFeatureSublayer.js +1 -1
- package/libs/parquet/parquet.js +1 -1
- package/package.json +3 -3
- package/rest/imageService/fetchRasterInfo.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/types.d.ts +2 -1
- package/views/2d/engine/Stage.js +1 -1
- package/views/2d/engine/vectorTiles/SpriteMosaic.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
- package/views/2d/engine/webgl/Painter.js +1 -1
- package/views/2d/engine/webgl/SpriteMosaic.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/Technique.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/tile/TileDebugInfoTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileStencilTechnique.js +1 -1
- package/views/2d/layers/AnnotationFeatureLayerView2D.js +1 -1
- package/views/2d/layers/features/FeatureContainer.js +1 -1
- package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderParquet.js +1 -1
- package/views/2d/layers/graphics/GraphicContainer.js +1 -1
- package/views/2d/layers/graphics/HighlightGraphicContainer.js +1 -1
- package/views/3d/environment/CloudyWeather.js +1 -1
- package/views/3d/environment/SunnyWeather.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/state/ViewStateManager.js +1 -1
- package/views/3d/support/GaussianSplatSortWorker.js +1 -1
- package/views/3d/support/buffer/InterleavedLayout.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
- package/views/3d/terrain/TileCompositor.js +1 -1
- package/views/3d/webgl/RenderCamera.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/NormalUtils.glsl.js +1 -5
- package/views/3d/webgl-engine/effects/clouds/CloudsParameters.js +1 -1
- package/views/3d/webgl-engine/effects/clouds/CloudsPresets.js +1 -1
- package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
- package/views/3d/webgl-engine/effects/fog/Fog.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
- package/views/3d/webgl-engine/effects/fog/FogTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
- package/views/3d/webgl-engine/effects/glow/{GlowBlur.glsl.js → BlurEmission.glsl.js} +1 -1
- package/views/3d/webgl-engine/effects/glow/BlurEmission.js +2 -0
- package/views/3d/webgl-engine/effects/glow/BlurEmissionTechnique.js +2 -0
- package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +37 -0
- package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowAccumulator.js +1 -1
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/BufferGeometry.js +2 -0
- package/views/3d/webgl-engine/lib/EmissionComposite.glsl.js +1 -1
- package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
- package/views/3d/webgl-engine/lib/EmissionCompositeTechnique.js +1 -1
- package/views/3d/webgl-engine/lib/Geometry.js +1 -1
- package/views/3d/webgl-engine/lib/GeometryBaseInstance.js +1 -1
- package/views/3d/webgl-engine/lib/MainFramebuffer.js +1 -1
- package/views/3d/webgl-engine/lib/RenderContext.js +1 -1
- package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/RenderingContext.js +1 -1
- package/views/3d/webgl-engine/lib/rendererUtils.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/Instance.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/MergedBuffer.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/VaoWriter.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/EmissiveTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/floatBlendScale.glsl.js +1 -1
- package/views/SceneView.d.ts +1 -0
- package/views/SceneView.js +1 -1
- package/views/popupAdapter.js +1 -1
- package/assets/esri/core/workers/chunks/0846855843f85661e974.js +0 -1
- package/assets/esri/core/workers/chunks/15f4f7e34e14e3cf52e6.js +0 -1
- package/assets/esri/core/workers/chunks/19ab024f6f732fd6c69b.js +0 -1
- package/assets/esri/core/workers/chunks/22c94f9a69b2157f8dbd.js +0 -1
- package/assets/esri/core/workers/chunks/2ec44ebc48beeba11201.js +0 -1
- package/assets/esri/core/workers/chunks/30376f00cda1165a2504.js +0 -1
- package/assets/esri/core/workers/chunks/349b0c7febc46267441d.js +0 -1684
- package/assets/esri/core/workers/chunks/423c2692df662b3dddd4.js +0 -1
- package/assets/esri/core/workers/chunks/46f8c7ae7fb356c3410d.js +0 -1
- package/assets/esri/core/workers/chunks/4bf7c0c874d30b1c0760.js +0 -1
- package/assets/esri/core/workers/chunks/5bf2ce280ea35ea4c96b.js +0 -1
- package/assets/esri/core/workers/chunks/7253a439c98200e3e748.js +0 -1
- package/assets/esri/core/workers/chunks/75b90fb05e4a2d32b7bb.js +0 -1
- package/assets/esri/core/workers/chunks/7e41cee4a0ae75e1490d.js +0 -1
- package/assets/esri/core/workers/chunks/848a9f0e5373bbf289a5.js +0 -1
- package/assets/esri/core/workers/chunks/95a3f09751bff63f4fab.js +0 -1
- package/assets/esri/core/workers/chunks/98d614d6fc9de8ebaf94.js +0 -1
- package/assets/esri/core/workers/chunks/b2e2234fdf8e05bc3312.js +0 -1
- package/assets/esri/core/workers/chunks/bb23e670736bcace8b6f.js +0 -1
- package/assets/esri/core/workers/chunks/bdfffa5f88b559a4b42d.js +0 -1
- package/assets/esri/core/workers/chunks/c352696478b48a2090d5.js +0 -1
- package/assets/esri/core/workers/chunks/c91042f8bf886056a29c.js +0 -1
- package/assets/esri/core/workers/chunks/d58d6b55b2749a535eb3.js +0 -1
- package/assets/esri/core/workers/chunks/ec69dd546c312ba97110.js +0 -1
- package/assets/esri/core/workers/chunks/f247f3c5148fa0237a7c.js +0 -1
- package/assets/esri/core/workers/chunks/f4d351b4cd9d1aa10632.js +0 -1
- package/assets/esri/core/workers/chunks/fbc7576ed12964059da6.js +0 -1
- package/chunks/GlowComposite.glsl.js +0 -37
- package/views/3d/webgl-engine/effects/glow/Glow.js +0 -2
- package/views/3d/webgl-engine/effects/glow/GlowBlurTechnique.js +0 -2
- package/views/3d/webgl-engine/effects/glow/GlowComposite.glsl.js +0 -2
- package/views/3d/webgl-engine/effects/glow/GlowCompositeTechnique.js +0 -2
- /package/assets/esri/core/workers/chunks/{188c6ff5f4664827c254.js.LICENSE.txt → 1c803eef9a8fdabc61e3.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{a89dbef8155d7c4354da.js.LICENSE.txt → 5edf77618ca51819d7c4.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{48726010778d6004e347.js.LICENSE.txt → 63127e3b22e7eac6003d.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{ff83d0337ac489ab08de.js.LICENSE.txt → 678585509706755c0434.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{24c44541046576fee7e0.js.LICENSE.txt → 87094044458b0ea5cb0f.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3730],{79608(t,n,e){e.d(n,{A:()=>f});var r=e(32198),i=e(69540),s=e(91429);let o=class extends i.Pw{constructor(t){super(t),this.type="web-scene"}equals(t){return this.type===t.type}};(0,r.Cg)([(0,s.MZ)()],o.prototype,"type",void 0),o=(0,r.Cg)([(0,s.$K)("esri.analysis.support.AnalysisOriginWebScene")],o);const a=o;var u=e(69622),c=e(4902),h=e(25482);let l=0,f=class extends((0,h.T)((0,i.OU)((0,c.s)(u.A)))){constructor(t){super(t),this.id=`${Date.now().toString(16)}-analysis-${l++}`,this.origin=null}get parent(){return this._get("parent")}set parent(t){const n=this.parent;if(null!=n)switch(n.type){case"line-of-sight":case"dimension":case"viewshed":n.releaseAnalysis(this);break;case"2d":case"3d":n.analyses.includes(this)&&n.analyses.remove(this)}this._set("parent",t)}equals(t){return this.type===t.type}};(0,r.Cg)([(0,s.MZ)({type:String,constructOnly:!0,clonable:!1})],f.prototype,"id",void 0),(0,r.Cg)([(0,s.MZ)({clonable:!1,value:null})],f.prototype,"parent",null),(0,r.Cg)([(0,s.MZ)({types:{key:"type",base:null,typeMap:{"web-scene":a}}})],f.prototype,"origin",void 0),f=(0,r.Cg)([(0,s.$K)("esri.analysis.Analysis")],f)},91715(t,n,e){e.d(n,{xH:()=>s,N1:()=>a}),e(35522);var r=e(51850),i=e(71351);function s(t,n){return o(t)===o(n)}function o(t){if(null==t)return null;const n=null!=t.layer?t.layer.id:"";let e=null;return e=null!=t.objectId?t.objectId:null!=t.layer&&"objectIdField"in t.layer&&null!=t.layer.objectIdField&&null!=t.attributes?t.attributes[t.layer.objectIdField]:t.uid,null==e?null:`o-${n}-${e}`}e(58083),e(70328),e(77548),e(6867),e(49718),(0,r.vt)();const a={json:{write:{writer:function(t,n){null!=t?.layer?.objectIdField&&null!=t.attributes&&(n.feature={layerId:t.layer.id,objectId:t.attributes[t.layer.objectIdField]})},target:{"feature.layerId":{type:[Number,String],isRequired:!0},"feature.objectId":{type:[Number,String],isRequired:!0}}},origins:{"web-scene":{read:function(t){if(null!=t.layerId&&null!=t.objectId)return{uid:null,layer:{id:t.layerId,objectIdField:"ObjectId"},attributes:{ObjectId:t.objectId}}}}}},clonable:"reference"};(0,i.vt)(),(0,r.vt)()},80200(t,n,e){e.d(n,{d:()=>l});const r={Base64:0,Hex:1,String:2,Raw:3};function i(t,n){const e=(65535&t)+(65535&n);return(t>>16)+(n>>16)+(e>>16)<<16|65535&e}function s(t,n,e,r,s,o){return i(function(t,n){return t<<n|t>>>32-n}(i(i(n,t),i(r,o)),s),e)}function o(t,n,e,r,i,o,a){return s(n&e|~n&r,t,n,i,o,a)}function a(t,n,e,r,i,o,a){return s(n&r|e&~r,t,n,i,o,a)}function u(t,n,e,r,i,o,a){return s(n^e^r,t,n,i,o,a)}function c(t,n,e,r,i,o,a){return s(e^(n|~r),t,n,i,o,a)}function h(t,n){t[n>>5]|=128<<n%32,t[14+(n+64>>>9<<4)]=n;let e=1732584193,r=-271733879,s=-1732584194,h=271733878;for(let n=0;n<t.length;n+=16){const l=e,f=r,p=s,d=h;e=o(e,r,s,h,t[n],7,-680876936),h=o(h,e,r,s,t[n+1],12,-389564586),s=o(s,h,e,r,t[n+2],17,606105819),r=o(r,s,h,e,t[n+3],22,-1044525330),e=o(e,r,s,h,t[n+4],7,-176418897),h=o(h,e,r,s,t[n+5],12,1200080426),s=o(s,h,e,r,t[n+6],17,-1473231341),r=o(r,s,h,e,t[n+7],22,-45705983),e=o(e,r,s,h,t[n+8],7,1770035416),h=o(h,e,r,s,t[n+9],12,-1958414417),s=o(s,h,e,r,t[n+10],17,-42063),r=o(r,s,h,e,t[n+11],22,-1990404162),e=o(e,r,s,h,t[n+12],7,1804603682),h=o(h,e,r,s,t[n+13],12,-40341101),s=o(s,h,e,r,t[n+14],17,-1502002290),r=o(r,s,h,e,t[n+15],22,1236535329),e=a(e,r,s,h,t[n+1],5,-165796510),h=a(h,e,r,s,t[n+6],9,-1069501632),s=a(s,h,e,r,t[n+11],14,643717713),r=a(r,s,h,e,t[n],20,-373897302),e=a(e,r,s,h,t[n+5],5,-701558691),h=a(h,e,r,s,t[n+10],9,38016083),s=a(s,h,e,r,t[n+15],14,-660478335),r=a(r,s,h,e,t[n+4],20,-405537848),e=a(e,r,s,h,t[n+9],5,568446438),h=a(h,e,r,s,t[n+14],9,-1019803690),s=a(s,h,e,r,t[n+3],14,-187363961),r=a(r,s,h,e,t[n+8],20,1163531501),e=a(e,r,s,h,t[n+13],5,-1444681467),h=a(h,e,r,s,t[n+2],9,-51403784),s=a(s,h,e,r,t[n+7],14,1735328473),r=a(r,s,h,e,t[n+12],20,-1926607734),e=u(e,r,s,h,t[n+5],4,-378558),h=u(h,e,r,s,t[n+8],11,-2022574463),s=u(s,h,e,r,t[n+11],16,1839030562),r=u(r,s,h,e,t[n+14],23,-35309556),e=u(e,r,s,h,t[n+1],4,-1530992060),h=u(h,e,r,s,t[n+4],11,1272893353),s=u(s,h,e,r,t[n+7],16,-155497632),r=u(r,s,h,e,t[n+10],23,-1094730640),e=u(e,r,s,h,t[n+13],4,681279174),h=u(h,e,r,s,t[n],11,-358537222),s=u(s,h,e,r,t[n+3],16,-722521979),r=u(r,s,h,e,t[n+6],23,76029189),e=u(e,r,s,h,t[n+9],4,-640364487),h=u(h,e,r,s,t[n+12],11,-421815835),s=u(s,h,e,r,t[n+15],16,530742520),r=u(r,s,h,e,t[n+2],23,-995338651),e=c(e,r,s,h,t[n],6,-198630844),h=c(h,e,r,s,t[n+7],10,1126891415),s=c(s,h,e,r,t[n+14],15,-1416354905),r=c(r,s,h,e,t[n+5],21,-57434055),e=c(e,r,s,h,t[n+12],6,1700485571),h=c(h,e,r,s,t[n+3],10,-1894986606),s=c(s,h,e,r,t[n+10],15,-1051523),r=c(r,s,h,e,t[n+1],21,-2054922799),e=c(e,r,s,h,t[n+8],6,1873313359),h=c(h,e,r,s,t[n+15],10,-30611744),s=c(s,h,e,r,t[n+6],15,-1560198380),r=c(r,s,h,e,t[n+13],21,1309151649),e=c(e,r,s,h,t[n+4],6,-145523070),h=c(h,e,r,s,t[n+11],10,-1120210379),s=c(s,h,e,r,t[n+2],15,718787259),r=c(r,s,h,e,t[n+9],21,-343485551),e=i(e,l),r=i(r,f),s=i(s,p),h=i(h,d)}return[e,r,s,h]}function l(t,n=r.Hex){const e=n||r.Base64,i=h(function(t){const n=[];for(let e=0,r=8*t.length;e<r;e+=8)n[e>>5]|=(255&t.charCodeAt(e/8))<<e%32;return n}(t),8*t.length);switch(e){case r.Raw:return i;case r.Hex:return function(t){const n="0123456789abcdef",e=[];for(let r=0,i=4*t.length;r<i;r++)e.push(n.charAt(t[r>>2]>>r%4*8+4&15)+n.charAt(t[r>>2]>>r%4*8&15));return e.join("")}(i);case r.String:return function(t){const n=[];for(let e=0,r=32*t.length;e<r;e+=8)n.push(String.fromCharCode(t[e>>5]>>>e%32&255));return n.join("")}(i);case r.Base64:return function(t){const n=[];for(let e=0,r=4*t.length;e<r;e+=3){const r=(t[e>>2]>>e%4*8&255)<<16|(t[e+1>>2]>>(e+1)%4*8&255)<<8|t[e+2>>2]>>(e+2)%4*8&255;for(let i=0;i<4;i++)8*e+6*i>32*t.length?n.push("="):n.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>6*(3-i)&63))}return n.join("")}(i)}}e.d(n,["T",0,r])},4341(t,n,e){e.d(n,{I:()=>i});var r=e(26390);class i{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*s);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,s));t++)this._items.push(this._allocator())}}const s=1024},87024(t,n,e){e.d(n,{P:()=>p});var r=e(49186),i=e(80200),s=e(76553),o=e(84952),a=e(13069),u=e(96156),c=e(35666),h=e(10107),l=e(85648),f=e(97159);function p(t){const n=t?.origins??[void 0];return(e,r)=>{const i=function(t,n,e){if("resource"===t?.type)return function(t,n,e){const r=(0,u.z4)(n,e);return{type:String,read:(t,n,e)=>{const i=(0,f.r)(t,n,e);return r.type===String?i:"function"==typeof r.type?new r.type({url:i}):void 0},write:{isRequired:r.json?.write?.isRequired,writer(n,i,a,u){if(!u?.resources)return"string"==typeof n?void(i[a]=(0,f.t)(n,u)):void(i[a]=n.write({},u));const h=function(t){return null==t?null:"string"==typeof t?t:t.url}(n),p=(0,f.t)(h,{...u,verifyItemRelativeUrls:u?.verifyItemRelativeUrls?{writtenUrls:u.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),y=r.type!==String&&(!(0,s.H)(this)||u?.origin&&this.originIdOf(e)>(0,c.aB)(u.origin)),g={object:this,propertyName:e,value:n,targetUrl:p,dest:i,targetPropertyName:a,context:u,params:t};u?.portalItem&&p&&!(0,o.oP)(p)?y&&t?.contentAddressed?d(g):y?function(t){const{context:n,targetUrl:e,params:r,value:i,dest:s,targetPropertyName:a}=t;if(!n.portalItem)return;const u=n.portalItem.resourceFromPath(e),c=M(i,e,n),h=(0,l.n)(c),f=(0,o.Zo)(u.path),p=r?.compress??!1;h===f?(n.resources&&m({...t,resource:u,content:c,compress:p,updates:n.resources.toUpdate}),s[a]=e):d(t)}(g):function({context:t,targetUrl:n,dest:e,targetPropertyName:r}){t.portalItem&&t.resources&&(t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(n),compress:!1}),e[r]=n)}(g):u?.portalItem&&(null==p||null!=(0,f.i)(p)||(0,o.w8)(p)||y)?d(g):i[a]=p}}}}(t,n,e);switch(t?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:t,write:n}=f.b;return{read:t,write:n}}}}(t,e,r);for(const t of n){const n=(0,h.rM)(e,t,r);for(const t in i)n[t]=i[t]}}}function d(t){const{targetUrl:n,params:e,value:s,context:u,dest:c,targetPropertyName:h}=t;if(!u.portalItem)return;const p=(0,f.p)(n),d=M(s,n,u);if(e?.contentAddressed&&"json"!==d.type)return void u.messages?.push(new r.A("persistable:contentAddressingUnsupported",`Property "${h}" is trying to serializing a resource with content of type ${d.type} with content addressing. Content addressing is only supported for json resources.`,{content:d}));const y=e?.contentAddressed&&"json"===d.type?(0,i.d)(d.jsonString):p?.filename??(0,a.lk)(),g=(0,o.fj)(e?.prefix??p?.prefix,y),b=`${g}.${(0,l.n)(d)}`;if(e?.contentAddressed&&u.resources&&"json"===d.type){const t=u.resources.toKeep.find(({resource:t})=>t.path===b)??u.resources.toAdd.find(({resource:t})=>t.path===b);if(t)return void(c[h]=t.resource.itemRelativeUrl)}const v=u.portalItem.resourceFromPath(b);(0,o.w8)(n)&&u.resources&&u.resources.pendingOperations.push((0,o.tk)(n).then(t=>{v.path=`${g}.${(0,l.n)({type:"blob",blob:t})}`,c[h]=v.itemRelativeUrl}).catch(()=>{}));const _=e?.compress??!1;u.resources&&m({...t,resource:v,content:d,compress:_,updates:u.resources.toAdd}),c[h]=v.itemRelativeUrl}function m({object:t,propertyName:n,updates:e,resource:r,content:i,compress:s}){e.push({resource:r,content:i,compress:s,finish:e=>{!function(t,n,e){"string"==typeof t[n]?t[n]=e.url:t[n].url=e.url}(t,n,e)}})}function M(t,n,e){return"string"==typeof t?{type:"url",url:n}:{type:"json",jsonString:JSON.stringify(t.toJSON(e))}}},62885(t,n,e){e.d(n,{H:()=>s,V:()=>i});var r=e(7762);function i(t,n,e=r.A){return n||(n=new e),n===t||n.destroyed||(n.removeAll(),(i=t)&&(Array.isArray(i)||"items"in i&&Array.isArray(i.items))?n.addMany(t):t&&n.add(t)),n;var i}function s(t){return t}},9093(t,n,e){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}e.d(n,{o8:()=>i,vt:()=>r});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,fromValues:function(t,n,e,r,i,s,o,a,u,c,h,l,f,p,d,m){return[t,n,e,r,i,s,o,a,u,c,h,l,f,p,d,m]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,s])},82534(t,n,e){function r(){return[0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3]]}e.d(n,{o8:()=>i,vt:()=>r});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,fromValues:function(t,n,e,r){return[t,n,e,r]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,s])},48163(t,n,e){function r(){return[0,0]}function i(t){return[t[0],t[1]]}function s(t,n){return[t,n]}function o(){return s(1,1)}function a(){return s(-1,-1)}function u(){return s(1,0)}function c(){return s(0,1)}e.d(n,{fA:()=>s,o8:()=>i,vt:()=>r});const h=o(),l=a(),f=u(),p=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:l,ONES:h,UNIT_X:f,UNIT_Y:p,ZEROS:[0,0],clone:i,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:s,negativeOnes:a,ones:o,unitX:u,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["IA",0,l,"Un",0,h])},91829(t,n,e){function r(){return[0,0,0,0]}function i(t,n,e,r){return[t,n,e,r]}function s(){return i(1,1,1,1)}function o(){return i(1,0,0,0)}function a(){return i(0,1,0,0)}function u(){return i(0,0,1,0)}function c(){return i(0,0,0,1)}e.d(n,{_Y:()=>c,fA:()=>i,vt:()=>r});const h=[0,0,0,0],l=s(),f=o(),p=a(),d=u(),m=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:l,UNIT_W:m,UNIT_X:f,UNIT_Y:p,UNIT_Z:d,ZEROS:h,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:function(t,n,e,r){return[t,n,e,r]},fromArray:function(t,n=[0,0,0,0]){const e=Math.min(4,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:i,ones:s,unitW:c,unitX:o,unitY:a,unitZ:u,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["Un",0,l,"uY",0,h,"v7",0,m])},58083(t,n,e){e.d(n,{$0:()=>y,$h:()=>j,B8:()=>h,C:()=>s,D_:()=>a,N9:()=>b,O7:()=>P,Qw:()=>c,Tl:()=>f,X_:()=>x,e$:()=>d,eL:()=>m,hM:()=>g,hZ:()=>o,hs:()=>p,kN:()=>M,l:()=>w,lw:()=>l,mg:()=>u,o1:()=>A,sC:()=>I,t2:()=>S,t5:()=>R,tZ:()=>q,ut:()=>O});var r=e(51850),i=e(34304);function s(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function o(t,n,e,r,i,s,o,a,u,c,h,l,f,p,d,m,M){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t[4]=s,t[5]=o,t[6]=a,t[7]=u,t[8]=c,t[9]=h,t[10]=l,t[11]=f,t[12]=p,t[13]=d,t[14]=m,t[15]=M,t}function a(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function u(t,n){if(t===n){const e=n[1],r=n[2],i=n[3],s=n[6],o=n[7],a=n[11];t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=e,t[6]=n[9],t[7]=n[13],t[8]=r,t[9]=s,t[11]=n[14],t[12]=i,t[13]=o,t[14]=a}else t[0]=n[0],t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=n[1],t[5]=n[5],t[6]=n[9],t[7]=n[13],t[8]=n[2],t[9]=n[6],t[10]=n[10],t[11]=n[14],t[12]=n[3],t[13]=n[7],t[14]=n[11],t[15]=n[15];return t}function c(t,n){return h(t,n)||a(t),t}function h(t,n){const e=n[0],r=n[1],i=n[2],s=n[3],o=n[4],a=n[5],u=n[6],c=n[7],h=n[8],l=n[9],f=n[10],p=n[11],d=n[12],m=n[13],M=n[14],y=n[15],g=e*a-r*o,b=e*u-i*o,v=e*c-s*o,_=r*u-i*a,I=r*c-s*a,x=i*c-s*u,w=h*m-l*d,A=h*M-f*d,P=h*y-p*d,j=l*M-f*m,R=l*y-p*m,C=f*y-p*M;let S=g*C-b*R+v*j+_*P-I*A+x*w;return S?(S=1/S,t[0]=(a*C-u*R+c*j)*S,t[1]=(i*R-r*C-s*j)*S,t[2]=(m*x-M*I+y*_)*S,t[3]=(f*I-l*x-p*_)*S,t[4]=(u*P-o*C-c*A)*S,t[5]=(e*C-i*P+s*A)*S,t[6]=(M*v-d*x-y*b)*S,t[7]=(h*x-f*v+p*b)*S,t[8]=(o*R-a*P+c*w)*S,t[9]=(r*P-e*R-s*w)*S,t[10]=(d*I-m*v+y*g)*S,t[11]=(l*v-h*I-p*g)*S,t[12]=(a*A-o*j-u*w)*S,t[13]=(e*j-r*A+i*w)*S,t[14]=(m*b-d*_-M*g)*S,t[15]=(h*_-l*b+f*g)*S,t):null}function l(t,n,e){const r=n[0],i=n[1],s=n[2],o=n[3],a=n[4],u=n[5],c=n[6],h=n[7],l=n[8],f=n[9],p=n[10],d=n[11],m=n[12],M=n[13],y=n[14],g=n[15];let b=e[0],v=e[1],_=e[2],I=e[3];return t[0]=b*r+v*a+_*l+I*m,t[1]=b*i+v*u+_*f+I*M,t[2]=b*s+v*c+_*p+I*y,t[3]=b*o+v*h+_*d+I*g,b=e[4],v=e[5],_=e[6],I=e[7],t[4]=b*r+v*a+_*l+I*m,t[5]=b*i+v*u+_*f+I*M,t[6]=b*s+v*c+_*p+I*y,t[7]=b*o+v*h+_*d+I*g,b=e[8],v=e[9],_=e[10],I=e[11],t[8]=b*r+v*a+_*l+I*m,t[9]=b*i+v*u+_*f+I*M,t[10]=b*s+v*c+_*p+I*y,t[11]=b*o+v*h+_*d+I*g,b=e[12],v=e[13],_=e[14],I=e[15],t[12]=b*r+v*a+_*l+I*m,t[13]=b*i+v*u+_*f+I*M,t[14]=b*s+v*c+_*p+I*y,t[15]=b*o+v*h+_*d+I*g,t}function f(t,n,e){const r=e[0],i=e[1],s=e[2];if(n===t)t[12]=n[0]*r+n[4]*i+n[8]*s+n[12],t[13]=n[1]*r+n[5]*i+n[9]*s+n[13],t[14]=n[2]*r+n[6]*i+n[10]*s+n[14],t[15]=n[3]*r+n[7]*i+n[11]*s+n[15];else{const e=n[0],o=n[1],a=n[2],u=n[3],c=n[4],h=n[5],l=n[6],f=n[7],p=n[8],d=n[9],m=n[10],M=n[11];t[0]=e,t[1]=o,t[2]=a,t[3]=u,t[4]=c,t[5]=h,t[6]=l,t[7]=f,t[8]=p,t[9]=d,t[10]=m,t[11]=M,t[12]=e*r+c*i+p*s+n[12],t[13]=o*r+h*i+d*s+n[13],t[14]=a*r+l*i+m*s+n[14],t[15]=u*r+f*i+M*s+n[15]}return t}function p(t,n,e){const r=e[0],i=e[1],s=e[2];return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*i,t[5]=n[5]*i,t[6]=n[6]*i,t[7]=n[7]*i,t[8]=n[8]*s,t[9]=n[9]*s,t[10]=n[10]*s,t[11]=n[11]*s,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function d(t,n,e,r){let o=r[0],a=r[1],u=r[2],c=Math.sqrt(o*o+a*a+u*u);if(c<=(0,i.FD)())return void s(t,n);c=1/c,o*=c,a*=c,u*=c;const h=Math.sin(e),l=Math.cos(e),f=1-l,p=n[0],d=n[1],m=n[2],M=n[3],y=n[4],g=n[5],b=n[6],v=n[7],_=n[8],I=n[9],x=n[10],w=n[11],A=o*o*f+l,P=a*o*f+u*h,j=u*o*f-a*h,R=o*a*f-u*h,C=a*a*f+l,S=u*a*f+o*h,O=o*u*f+a*h,q=a*u*f-o*h,N=u*u*f+l;t[0]=p*A+y*P+_*j,t[1]=d*A+g*P+I*j,t[2]=m*A+b*P+x*j,t[3]=M*A+v*P+w*j,t[4]=p*R+y*C+_*S,t[5]=d*R+g*C+I*S,t[6]=m*R+b*C+x*S,t[7]=M*R+v*C+w*S,t[8]=p*O+y*q+_*N,t[9]=d*O+g*q+I*N,t[10]=m*O+b*q+x*N,t[11]=M*O+v*q+w*N,n!==t&&(t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15])}function m(t,n,e){const r=Math.sin(e),i=Math.cos(e),s=n[4],o=n[5],a=n[6],u=n[7],c=n[8],h=n[9],l=n[10],f=n[11];return n!==t&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[4]=s*i+c*r,t[5]=o*i+h*r,t[6]=a*i+l*r,t[7]=u*i+f*r,t[8]=c*i-s*r,t[9]=h*i-o*r,t[10]=l*i-a*r,t[11]=f*i-u*r,t}function M(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function y(t,n,e){if(0===n)return a(t);let r=e[0],s=e[1],o=e[2],u=Math.sqrt(r*r+s*s+o*o);if(u<=(0,i.FD)())return null;u=1/u,r*=u,s*=u,o*=u;const c=Math.sin(n),h=Math.cos(n),l=1-h;return t[0]=r*r*l+h,t[1]=s*r*l+o*c,t[2]=o*r*l-s*c,t[3]=0,t[4]=r*s*l-o*c,t[5]=s*s*l+h,t[6]=o*s*l+r*c,t[7]=0,t[8]=r*o*l+s*c,t[9]=s*o*l-r*c,t[10]=o*o*l+h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function g(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=e,t[7]=0,t[8]=0,t[9]=-e,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function b(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=0,t[4]=-e,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function v(t,n,e){const r=n[0],i=n[1],s=n[2],o=n[3],a=r+r,u=i+i,c=s+s,h=r*a,l=r*u,f=r*c,p=i*u,d=i*c,m=s*c,M=o*a,y=o*u,g=o*c;return t[0]=1-(p+m),t[1]=l+g,t[2]=f-y,t[3]=0,t[4]=l-g,t[5]=1-(h+m),t[6]=d+M,t[7]=0,t[8]=f+y,t[9]=d-M,t[10]=1-(h+p),t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}const _=(0,r.vt)();function I(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t}function x(t,n){const e=n[0],r=n[1],i=n[2],s=n[4],o=n[5],a=n[6],u=n[8],c=n[9],h=n[10];return t[0]=Math.sqrt(e*e+r*r+i*i),t[1]=Math.sqrt(s*s+o*o+a*a),t[2]=Math.sqrt(u*u+c*c+h*h),t}function w(t,n){const e=n[0]+n[5]+n[10];let r=0;return e>0?(r=2*Math.sqrt(e+1),t[3]=.25*r,t[0]=(n[6]-n[9])/r,t[1]=(n[8]-n[2])/r,t[2]=(n[1]-n[4])/r):n[0]>n[5]&&n[0]>n[10]?(r=2*Math.sqrt(1+n[0]-n[5]-n[10]),t[3]=(n[6]-n[9])/r,t[0]=.25*r,t[1]=(n[1]+n[4])/r,t[2]=(n[8]+n[2])/r):n[5]>n[10]?(r=2*Math.sqrt(1+n[5]-n[0]-n[10]),t[3]=(n[8]-n[2])/r,t[0]=(n[1]+n[4])/r,t[1]=.25*r,t[2]=(n[6]+n[9])/r):(r=2*Math.sqrt(1+n[10]-n[0]-n[5]),t[3]=(n[1]-n[4])/r,t[0]=(n[8]+n[2])/r,t[1]=(n[6]+n[9])/r,t[2]=.25*r),t}function A(t,n,e,r){const i=n[0],s=n[1],o=n[2],a=n[3],u=i+i,c=s+s,h=o+o,l=i*u,f=i*c,p=i*h,d=s*c,m=s*h,M=o*h,y=a*u,g=a*c,b=a*h,v=r[0],_=r[1],I=r[2];return t[0]=(1-(d+M))*v,t[1]=(f+b)*v,t[2]=(p-g)*v,t[3]=0,t[4]=(f-b)*_,t[5]=(1-(l+M))*_,t[6]=(m+y)*_,t[7]=0,t[8]=(p+g)*I,t[9]=(m-y)*I,t[10]=(1-(l+d))*I,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function P(t,n,e,r,i){const s=n[0],o=n[1],a=n[2],u=n[3],c=s+s,h=o+o,l=a+a,f=s*c,p=s*h,d=s*l,m=o*h,M=o*l,y=a*l,g=u*c,b=u*h,v=u*l,_=r[0],I=r[1],x=r[2],w=i[0],A=i[1],P=i[2],j=(1-(m+y))*_,R=(p+v)*_,C=(d-b)*_,S=(p-v)*I,O=(1-(f+y))*I,q=(M+g)*I,N=(d+b)*x,Z=(M-g)*x,T=(1-(f+m))*x;return t[0]=j,t[1]=R,t[2]=C,t[3]=0,t[4]=S,t[5]=O,t[6]=q,t[7]=0,t[8]=N,t[9]=Z,t[10]=T,t[11]=0,t[12]=e[0]+w-(j*w+S*A+N*P),t[13]=e[1]+A-(R*w+O*A+Z*P),t[14]=e[2]+P-(C*w+q*A+T*P),t[15]=1,t}function j(t,n,e,r,i,s,o){const a=1/(e-n),u=1/(i-r),c=1/(s-o);return t[0]=2*s*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*s*u,t[6]=0,t[7]=0,t[8]=(e+n)*a,t[9]=(i+r)*u,t[10]=(o+s)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*s*2*c,t[15]=0,t}function R(t,n,e,r){const s=n[0],o=n[1],u=n[2];let c=s-e[0],h=o-e[1],l=u-e[2];const f=(0,i.FD)();if(Math.abs(c)<f&&Math.abs(h)<f&&Math.abs(l)<f)return void a(t);let p=1/Math.sqrt(c*c+h*h+l*l);c*=p,h*=p,l*=p;const d=r[0],m=r[1],M=r[2];let y=m*l-M*h,g=M*c-d*l,b=d*h-m*c;p=Math.sqrt(y*y+g*g+b*b),p?(p=1/p,y*=p,g*=p,b*=p):(y=0,g=0,b=0);let v=h*b-l*g,_=l*y-c*b,I=c*g-h*y;p=Math.sqrt(v*v+_*_+I*I),p?(p=1/p,v*=p,_*=p,I*=p):(v=0,_=0,I=0),t[0]=y,t[1]=v,t[2]=c,t[3]=0,t[4]=g,t[5]=_,t[6]=h,t[7]=0,t[8]=b,t[9]=I,t[10]=l,t[11]=0,t[12]=-(y*s+g*o+b*u),t[13]=-(v*s+_*o+I*u),t[14]=-(c*s+h*o+l*u),t[15]=1}function C(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t[9]=n[9]-e[9],t[10]=n[10]-e[10],t[11]=n[11]-e[11],t[12]=n[12]-e[12],t[13]=n[13]-e[13],t[14]=n[14]-e[14],t[15]=n[15]-e[15],t}function S(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]&&t[9]===n[9]&&t[10]===n[10]&&t[11]===n[11]&&t[12]===n[12]&&t[13]===n[13]&&t[14]===n[14]&&t[15]===n[15]}function O(t){const n=(0,i.FD)(),e=t[0],r=t[1],s=t[2],o=t[4],a=t[5],u=t[6],c=t[8],h=t[9],l=t[10];return Math.abs(1-(e*e+o*o+c*c))<=n&&Math.abs(1-(r*r+a*a+h*h))<=n&&Math.abs(1-(s*s+u*u+l*l))<=n}function q(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const N=l,Z=C;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t[9]=n[9]+e[9],t[10]=n[10]+e[10],t[11]=n[11]+e[11],t[12]=n[12]+e[12],t[13]=n[13]+e[13],t[14]=n[14]+e[14],t[15]=n[15]+e[15],t},adjoint:function(t,n){const e=n[0],r=n[1],i=n[2],s=n[3],o=n[4],a=n[5],u=n[6],c=n[7],h=n[8],l=n[9],f=n[10],p=n[11],d=n[12],m=n[13],M=n[14],y=n[15];return t[0]=a*(f*y-p*M)-l*(u*y-c*M)+m*(u*p-c*f),t[1]=-(r*(f*y-p*M)-l*(i*y-s*M)+m*(i*p-s*f)),t[2]=r*(u*y-c*M)-a*(i*y-s*M)+m*(i*c-s*u),t[3]=-(r*(u*p-c*f)-a*(i*p-s*f)+l*(i*c-s*u)),t[4]=-(o*(f*y-p*M)-h*(u*y-c*M)+d*(u*p-c*f)),t[5]=e*(f*y-p*M)-h*(i*y-s*M)+d*(i*p-s*f),t[6]=-(e*(u*y-c*M)-o*(i*y-s*M)+d*(i*c-s*u)),t[7]=e*(u*p-c*f)-o*(i*p-s*f)+h*(i*c-s*u),t[8]=o*(l*y-p*m)-h*(a*y-c*m)+d*(a*p-c*l),t[9]=-(e*(l*y-p*m)-h*(r*y-s*m)+d*(r*p-s*l)),t[10]=e*(a*y-c*m)-o*(r*y-s*m)+d*(r*c-s*a),t[11]=-(e*(a*p-c*l)-o*(r*p-s*l)+h*(r*c-s*a)),t[12]=-(o*(l*M-f*m)-h*(a*M-u*m)+d*(a*f-u*l)),t[13]=e*(l*M-f*m)-h*(r*M-i*m)+d*(r*f-i*l),t[14]=-(e*(a*M-u*m)-o*(r*M-i*m)+d*(r*u-i*a)),t[15]=e*(a*f-u*l)-o*(r*f-i*l)+h*(r*u-i*a),t},copy:s,determinant:function(t){const n=t[0],e=t[1],r=t[2],i=t[3],s=t[4],o=t[5],a=t[6],u=t[7],c=t[8],h=t[9],l=t[10],f=t[11],p=t[12],d=t[13],m=t[14],M=t[15];return(n*o-e*s)*(l*M-f*m)-(n*a-r*s)*(h*M-f*d)+(n*u-i*s)*(h*m-l*d)+(e*a-r*o)*(c*M-f*p)-(e*u-i*o)*(c*m-l*p)+(r*u-i*a)*(c*d-h*p)},equals:function(t,n){if(t===n)return!0;const e=t[0],r=t[1],s=t[2],o=t[3],a=t[4],u=t[5],c=t[6],h=t[7],l=t[8],f=t[9],p=t[10],d=t[11],m=t[12],M=t[13],y=t[14],g=t[15],b=n[0],v=n[1],_=n[2],I=n[3],x=n[4],w=n[5],A=n[6],P=n[7],j=n[8],R=n[9],C=n[10],S=n[11],O=n[12],q=n[13],N=n[14],Z=n[15],T=(0,i.FD)();return Math.abs(e-b)<=T*Math.max(1,Math.abs(e),Math.abs(b))&&Math.abs(r-v)<=T*Math.max(1,Math.abs(r),Math.abs(v))&&Math.abs(s-_)<=T*Math.max(1,Math.abs(s),Math.abs(_))&&Math.abs(o-I)<=T*Math.max(1,Math.abs(o),Math.abs(I))&&Math.abs(a-x)<=T*Math.max(1,Math.abs(a),Math.abs(x))&&Math.abs(u-w)<=T*Math.max(1,Math.abs(u),Math.abs(w))&&Math.abs(c-A)<=T*Math.max(1,Math.abs(c),Math.abs(A))&&Math.abs(h-P)<=T*Math.max(1,Math.abs(h),Math.abs(P))&&Math.abs(l-j)<=T*Math.max(1,Math.abs(l),Math.abs(j))&&Math.abs(f-R)<=T*Math.max(1,Math.abs(f),Math.abs(R))&&Math.abs(p-C)<=T*Math.max(1,Math.abs(p),Math.abs(C))&&Math.abs(d-S)<=T*Math.max(1,Math.abs(d),Math.abs(S))&&Math.abs(m-O)<=T*Math.max(1,Math.abs(m),Math.abs(O))&&Math.abs(M-q)<=T*Math.max(1,Math.abs(M),Math.abs(q))&&Math.abs(y-N)<=T*Math.max(1,Math.abs(y),Math.abs(N))&&Math.abs(g-Z)<=T*Math.max(1,Math.abs(g),Math.abs(Z))},exactEquals:S,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,n){const e=n[0],r=n[1],i=n[2],s=n[3],o=e+e,a=r+r,u=i+i,c=e*o,h=r*o,l=r*a,f=i*o,p=i*a,d=i*u,m=s*o,M=s*a,y=s*u;return t[0]=1-l-d,t[1]=h+y,t[2]=f-M,t[3]=0,t[4]=h-y,t[5]=1-c-d,t[6]=p+m,t[7]=0,t[8]=f+M,t[9]=p-m,t[10]=1-c-l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,n){const e=_,r=-n[0],i=-n[1],s=-n[2],o=n[3],a=n[4],u=n[5],c=n[6],h=n[7],l=r*r+i*i+s*s+o*o;return l>0?(e[0]=2*(a*o+h*r+u*s-c*i)/l,e[1]=2*(u*o+h*i+c*r-a*s)/l,e[2]=2*(c*o+h*s+a*i-u*r)/l):(e[0]=2*(a*o+h*r+u*s-c*i),e[1]=2*(u*o+h*i+c*r-a*s),e[2]=2*(c*o+h*s+a*i-u*r)),v(t,n,e),t},fromRotation:y,fromRotationTranslation:v,fromRotationTranslationScale:A,fromRotationTranslationScaleOrigin:P,fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=n[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:M,fromXRotation:g,fromYRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=0,t[2]=-e,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=e,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:b,frustum:j,getRotation:w,getScale:x,getTranslation:I,hasIdentityRotation:q,identity:a,invert:h,invertOrIdentity:c,isOrthoNormal:O,lookAt:R,mul:N,multiply:l,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t[9]=n[9]*e,t[10]=n[10]*e,t[11]=n[11]*e,t[12]=n[12]*e,t[13]=n[13]*e,t[14]=n[14]*e,t[15]=n[15]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t[9]=n[9]+e[9]*r,t[10]=n[10]+e[10]*r,t[11]=n[11]+e[11]*r,t[12]=n[12]+e[12]*r,t[13]=n[13]+e[13]*r,t[14]=n[14]+e[14]*r,t[15]=n[15]+e[15]*r,t},ortho:function(t,n,e,r,i,s,o){const a=1/(n-e),u=1/(r-i),c=1/(s-o);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(n+e)*a,t[13]=(i+r)*u,t[14]=(o+s)*c,t[15]=1,t},perspective:function(t,n,e,r,i){const s=1/Math.tan(n/2);let o;return t[0]=s/e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,n,e,r){const i=Math.tan(n.upDegrees*Math.PI/180),s=Math.tan(n.downDegrees*Math.PI/180),o=Math.tan(n.leftDegrees*Math.PI/180),a=Math.tan(n.rightDegrees*Math.PI/180),u=2/(o+a),c=2/(i+s);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(o-a)*u*.5,t[9]=(i-s)*c*.5,t[10]=r/(e-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*e/(e-r),t[15]=0,t},rotate:d,rotateX:m,rotateY:function(t,n,e){const r=Math.sin(e),i=Math.cos(e),s=n[0],o=n[1],a=n[2],u=n[3],c=n[8],h=n[9],l=n[10],f=n[11];return n!==t&&(t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=s*i-c*r,t[1]=o*i-h*r,t[2]=a*i-l*r,t[3]=u*i-f*r,t[8]=s*r+c*i,t[9]=o*r+h*i,t[10]=a*r+l*i,t[11]=u*r+f*i,t},rotateZ:function(t,n,e){const r=Math.sin(e),i=Math.cos(e),s=n[0],o=n[1],a=n[2],u=n[3],c=n[4],h=n[5],l=n[6],f=n[7];return n!==t&&(t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=s*i+c*r,t[1]=o*i+h*r,t[2]=a*i+l*r,t[3]=u*i+f*r,t[4]=c*i-s*r,t[5]=h*i-o*r,t[6]=l*i-a*r,t[7]=f*i-u*r,t},scale:p,set:o,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:Z,subtract:C,targetTo:function(t,n,e,r){const i=n[0],s=n[1],o=n[2],a=r[0],u=r[1],c=r[2];let h=i-e[0],l=s-e[1],f=o-e[2],p=h*h+l*l+f*f;p>0&&(p=1/Math.sqrt(p),h*=p,l*=p,f*=p);let d=u*f-c*l,m=c*h-a*f,M=a*l-u*h;return p=d*d+m*m+M*M,p>0&&(p=1/Math.sqrt(p),d*=p,m*=p,M*=p),t[0]=d,t[1]=m,t[2]=M,t[3]=0,t[4]=l*M-f*m,t[5]=f*d-h*M,t[6]=h*m-l*d,t[7]=0,t[8]=h,t[9]=l,t[10]=f,t[11]=0,t[12]=i,t[13]=s,t[14]=o,t[15]=1,t},translate:f,transpose:u},Symbol.toStringTag,{value:"Module"}))},35522(t,n,e){e.d(n,{$A:()=>A,Bw:()=>s,C:()=>o,Cc:()=>P,DI:()=>I,Io:()=>g,Ln:()=>y,Om:()=>w,Qr:()=>l,Re:()=>c,S8:()=>x,T9:()=>m,WQ:()=>u,Z0:()=>j,_S:()=>p,aI:()=>Z,ei:()=>R,fw:()=>S,gL:()=>C,hG:()=>b,hZ:()=>a,hs:()=>M,jk:()=>d,lw:()=>h,m3:()=>v,oW:()=>T,t2:()=>N,tn:()=>f,ze:()=>_});var r=e(51850),i=e(34304);function s(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function a(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function u(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function c(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function h(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function l(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function f(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function p(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function d(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function m(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function M(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function y(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}function g(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2];return Math.sqrt(e*e+r*r+i*i)}function b(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2];return e*e+r*r+i*i}function v(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function _(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function I(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function x(t,n){const e=n[0],r=n[1],i=n[2];let s=e*e+r*r+i*i;return s>0&&(s=1/Math.sqrt(s),t[0]=n[0]*s,t[1]=n[1]*s,t[2]=n[2]*s),t}function w(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function A(t,n,e){const r=n[0],i=n[1],s=n[2],o=e[0],a=e[1],u=e[2];return t[0]=i*u-s*a,t[1]=s*o-r*u,t[2]=r*a-i*o,t}function P(t,n,e,r){const i=n[0],s=n[1],o=n[2];return t[0]=i+r*(e[0]-i),t[1]=s+r*(e[1]-s),t[2]=o+r*(e[2]-o),t}function j(t,n,e){const r=n[0],i=n[1],s=n[2];return t[0]=e[0]*r+e[4]*i+e[8]*s+e[12],t[1]=e[1]*r+e[5]*i+e[9]*s+e[13],t[2]=e[2]*r+e[6]*i+e[10]*s+e[14],t}function R(t,n,e){const r=n[0],i=n[1],s=n[2];return t[0]=r*e[0]+i*e[3]+s*e[6],t[1]=r*e[1]+i*e[4]+s*e[7],t[2]=r*e[2]+i*e[5]+s*e[8],t}function C(t,n,e){return S(t,n,e[0],e[1],e[2],e[3])}function S(t,n,e,r,i,s){const o=n[0],a=n[1],u=n[2],c=r*u-i*a,h=i*o-e*u,l=e*a-r*o,f=r*l-i*h,p=i*c-e*l,d=e*h-r*c,m=2*s;return t[0]=o+c*m+2*f,t[1]=a+h*m+2*p,t[2]=u+l*m+2*d,t}const O=(0,r.vt)(),q=(0,r.vt)();function N(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function Z(t,n){if(t===n)return!0;const e=t[0],r=t[1],s=t[2],o=n[0],a=n[1],u=n[2],c=(0,i.FD)();return Math.abs(e-o)<=c*Math.max(1,Math.abs(e),Math.abs(o))&&Math.abs(r-a)<=c*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(s-u)<=c*Math.max(1,Math.abs(s),Math.abs(u))}function T(t,n,e){const r=e[0]-n[0],i=e[1]-n[1],s=e[2]-n[2];let o=r*r+i*i+s*s;return o>0?(o=1/Math.sqrt(o),t[0]=r*o,t[1]=i*o,t[2]=s*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const D=c,U=h,z=l,F=g,$=b,E=s,V=v;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:u,angle:function(t,n){x(O,t),x(q,n);const e=w(O,q);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,i,s){const o=1-s,a=o*o,u=s*s,c=a*o,h=3*s*a,l=3*u*o,f=u*s;return t[0]=n[0]*c+e[0]*h+r[0]*l+i[0]*f,t[1]=n[1]*c+e[1]*h+r[1]*l+i[1]*f,t[2]=n[2]*c+e[2]*h+r[2]*l+i[2]*f,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:o,cross:A,crossAndNormalize:function(t,n,e){const r=n[0],i=n[1],s=n[2],o=e[0],a=e[1],u=e[2],c=i*u-s*a,h=s*o-r*u,l=r*a-i*o,f=Math.sqrt(c*c+h*h+l*l);return t[0]=c/f,t[1]=h/f,t[2]=l/f,t},direction:T,dist:F,distance:g,div:z,divide:l,dot:w,equals:Z,exactEquals:N,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,i,s){const o=s*s,a=o*(2*s-3)+1,u=o*(s-2)+s,c=o*(s-1),h=o*(3-2*s);return t[0]=n[0]*a+e[0]*u+r[0]*c+i[0]*h,t[1]=n[1]*a+e[1]*u+r[1]*c+i[1]*h,t[2]=n[2]*a+e[2]*u+r[2]*c+i[2]*h,t},inverse:I,len:E,length:s,lerp:P,max:m,min:d,mul:U,multiply:h,negate:_,normalize:x,random:function(t,n=1){const e=i.Ov,r=2*e()*Math.PI,s=2*e()-1,o=Math.sqrt(1-s*s)*n;return t[0]=Math.cos(r)*o,t[1]=Math.sin(r)*o,t[2]=s*n,t},rotateX:function(t,n,e,r){const i=[],s=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],s[0]=i[0],s[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),s[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},rotateY:function(t,n,e,r){const i=[],s=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],s[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),s[1]=i[1],s[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},rotateZ:function(t,n,e,r){const i=[],s=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],s[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),s[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),s[2]=i[2],t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:M,scaleAndAdd:y,scaleTo:function(t,n){return M(t,t,n/E(t))},set:a,sign:p,sqrDist:$,sqrLen:V,squaredDistance:b,squaredLength:v,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:D,subtract:c,transformMat3:R,transformMat4:j,transformMat4Z:function(t,n){return n[2]*t[0]+n[6]*t[1]+n[10]*t[2]+n[14]},transformQuat:C,transformQuatValues:S},Symbol.toStringTag,{value:"Module"})),e.d(n,["Il",0,E,"jb",0,D,"lo",0,$,"uE",0,V])},78955(t,n,e){e.d(n,{Bw:()=>M,C:()=>i,Cc:()=>v,LI:()=>f,Om:()=>b,S8:()=>g,T9:()=>l,WQ:()=>o,Z0:()=>_,aI:()=>x,hG:()=>m,hZ:()=>s,hs:()=>p,jk:()=>h,m3:()=>y,t2:()=>I});var r=e(34304);function i(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function s(t,n,e,r,i){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t}function o(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t}function a(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t}function u(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t[3]=n[3]*e[3],t}function c(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t[3]=n[3]/e[3],t}function h(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t[3]=Math.min(n[3],e[3]),t}function l(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t[3]=Math.max(n[3],e[3]),t}function f(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t}function p(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t}function d(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2],s=n[3]-t[3];return Math.sqrt(e*e+r*r+i*i+s*s)}function m(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2],s=n[3]-t[3];return e*e+r*r+i*i+s*s}function M(t){const n=t[0],e=t[1],r=t[2],i=t[3];return Math.sqrt(n*n+e*e+r*r+i*i)}function y(t){const n=t[0],e=t[1],r=t[2],i=t[3];return n*n+e*e+r*r+i*i}function g(t,n){const e=n[0],r=n[1],i=n[2],s=n[3];let o=e*e+r*r+i*i+s*s;return o>0&&(o=1/Math.sqrt(o),t[0]=e*o,t[1]=r*o,t[2]=i*o,t[3]=s*o),t}function b(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function v(t,n,e,r){const i=n[0],s=n[1],o=n[2],a=n[3];return t[0]=i+r*(e[0]-i),t[1]=s+r*(e[1]-s),t[2]=o+r*(e[2]-o),t[3]=a+r*(e[3]-a),t}function _(t,n,e){const r=n[0],i=n[1],s=n[2],o=n[3];return t[0]=e[0]*r+e[4]*i+e[8]*s+e[12]*o,t[1]=e[1]*r+e[5]*i+e[9]*s+e[13]*o,t[2]=e[2]*r+e[6]*i+e[10]*s+e[14]*o,t[3]=e[3]*r+e[7]*i+e[11]*s+e[15]*o,t}function I(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function x(t,n){const e=t[0],i=t[1],s=t[2],o=t[3],a=n[0],u=n[1],c=n[2],h=n[3],l=(0,r.FD)();return Math.abs(e-a)<=l*Math.max(1,Math.abs(e),Math.abs(a))&&Math.abs(i-u)<=l*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(s-c)<=l*Math.max(1,Math.abs(s),Math.abs(c))&&Math.abs(o-h)<=l*Math.max(1,Math.abs(o),Math.abs(h))}const w=a,A=u,P=c,j=d,R=m,C=M,S=y;Object.freeze(Object.defineProperty({__proto__:null,add:o,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},copy:i,copyVec3:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},dist:j,distance:d,div:P,divide:c,dot:b,equals:x,exactEquals:I,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},len:C,length:M,lerp:v,max:l,min:h,mul:A,multiply:u,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},normalize:g,random:function(t,n=1){const e=r.Ov;let i,s,o,a,u,c;do{i=2*e()-1,s=2*e()-1,u=i*i+s*s}while(u>=1);do{o=2*e()-1,a=2*e()-1,c=o*o+a*a}while(c>=1);const h=Math.sqrt((1-u)/c);return t[0]=n*i,t[1]=n*s,t[2]=n*o*h,t[3]=n*a*h,t},round:f,scale:p,scaleAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t},set:s,sqrDist:R,sqrLen:S,squaredDistance:m,squaredLength:y,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:w,subtract:a,transformMat4:_,transformQuat:function(t,n,e){const r=n[0],i=n[1],s=n[2],o=e[0],a=e[1],u=e[2],c=e[3],h=c*r+a*s-u*i,l=c*i+u*r-o*s,f=c*s+o*i-a*r,p=-o*r-a*i-u*s;return t[0]=h*c+p*-o+l*-u-f*-a,t[1]=l*c+p*-a+f*-o-h*-u,t[2]=f*c+p*-u+h*-a-l*-o,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},56512(t,n,e){function r(t){let n,e,r=[],i=!1;return function(...s){return i&&n===this&&function(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(t[e]!==n[e])return!1;return!0}(s,r)||(e=t.apply(this,s),n=this,r=s,i=!0),e}}e.d(n,{B:()=>r})},76553(t,n,e){function r(t){return t&&"getAtOrigin"in t&&"originOf"in t}e.d(n,{H:()=>r})},13069(t,n,e){e.d(n,{AG:()=>a,lk:()=>i,vD:()=>o,yS:()=>s});const r="randomUUID"in crypto;function i(){if(r)return crypto.randomUUID();const t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const n=n=>t[n].toString(16).padStart(4,"0");return n(0)+n(1)+"-"+n(2)+"-"+n(3)+"-"+n(4)+"-"+n(5)+n(6)+n(7)}function s(){return`{${i().toUpperCase()}}`}function o(){return`{${i()}}`}function a(t){const n=t.toUpperCase();return t.startsWith("{")?n:`{${n}}`}},48526(t,n,e){e.d(n,{A:()=>M});var r,i=e(32198),s=e(4576),o=e(4718),a=e(91429),u=e(5443),c=e(91075),h=e(86738),l=e(16930),f=e(90634),p=e(47610),d=e(56993),m=e(43937);let M=r=class extends c.A{constructor(t){super(function(t){if(!t)return;let{points:n,hasM:e,hasZ:r,spatialReference:i}=t;switch(n??=[],n?.at(0)?.length){case 4:r??=!0,e??=!0;break;case 3:r??=!0!==e,e??=!r;break;default:r??=!1,e??=!1}return i??=l.A.WGS84,{...t,hasM:e,hasZ:r,points:n,spatialReference:i}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=(0,f.ge)(this);return t?new u.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,n){n.points=(0,o.o8)(this.points)}clone(){const{points:t,spatialReference:n,hasM:e,hasZ:i}=this;return new r({points:(0,o.o8)(t),spatialReference:n.clone(),hasM:e,hasZ:i})}equals(t){if(this===t)return!0;if(null==t)return!1;const n=this.spatialReference,e=t.spatialReference;return null!=n==(null!=e)&&!(null!=n&&null!=e&&!n.equals(e))&&(0,s.aI)(this.points,t.points,p.v6)}addPoint(t){return(0,d.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const n=this.points[t],e={x:n[0],y:n[1],spatialReference:this.spatialReference};let r=2;return this.hasZ&&(e.z=n[2],r=3),this.hasM&&(e.m=n[r]),new h.A(e)}removePoint(t){if(!this._validateInputs(t))return null;const n=new h.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),n}setPoint(t,n){return this._validateInputs(t)?((0,d.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.points[t]=n,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],M.prototype,"cache",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],M.prototype,"extent",null),(0,i.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],M.prototype,"points",void 0),(0,i.Cg)([(0,m.K)("points")],M.prototype,"writePoints",null),M=r=(0,i.Cg)([(0,a.$K)("esri.geometry.Multipoint")],M),M.prototype.toJSON.isDefaultToJSON=!0},82799(t,n,e){e.d(n,{A:()=>d});var r,i=e(32198),s=e(4718),o=e(91429),a=e(5443),u=e(91075),c=e(86738),h=e(16930),l=e(90634),f=e(56993),p=e(43937);let d=r=class extends u.A{constructor(t){super(function(t){if(!t)return;let{paths:n,hasM:e,hasZ:r,spatialReference:i}=t;switch(n??=[],function(t){return"number"==typeof t[0]?.[0]}(n)&&(n=[n]),n[0]?.[0]?.length){case 4:r??=!0,e??=!0;break;case 3:r??=!0!==e,e??=!r;break;default:r??=!1,e??=!1}return i??=h.A.WGS84,{...t,hasM:e,hasZ:r,paths:n,spatialReference:i}}(t)),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(t,n){n.curvePaths=(0,s.o8)(t)}get extent(){const t=(0,l.Z3)(this),{spatialReference:n}=this;return t?new a.A({...t,spatialReference:n}):null}writePaths(t,n){n.paths=(0,s.o8)(this.paths)}addPath(t){if(!t)return;const n=this.paths,e=n.length;if(function(t){return!Array.isArray(t[0])}(t)){const r=[];for(let n=0,e=t.length;n<e;n++)r[n]=t[n].toArray();n[e]=r}else n[e]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new r;return t.spatialReference=this.spatialReference,t.paths=(0,s.o8)(this.paths),t.curvePaths=(0,s.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,n){if(!this._validateInputs(t,n))return null;const e=this.paths[t][n],r=this.hasZ,i=this.hasM;return r&&!i?new c.A(e[0],e[1],e[2],void 0,this.spatialReference):i&&!r?new c.A(e[0],e[1],void 0,e[2],this.spatialReference):r&&i?new c.A(e[0],e[1],e[2],e[3],this.spatialReference):new c.A(e[0],e[1],this.spatialReference)}insertPoint(t,n,e){return this._validateInputs(t,n,!0)?((0,f.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t].splice(n,0,e),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const n=this.paths.splice(t,1)[0],e=this.spatialReference,r=n.map(t=>new c.A(t,e));return this.notifyChange("paths"),r}removePoint(t,n){if(!this._validateInputs(t,n))return null;const e=new c.A(this.paths[t].splice(n,1)[0],this.spatialReference);return this.notifyChange("paths"),e}setPoint(t,n,e){return this._validateInputs(t,n)?((0,f.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t][n]=e,this.notifyChange("paths"),this):this}_validateInputs(t,n,e=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=n){const r=this.paths[t];if(e&&(n<0||n>r.length))return!1;if(!e&&(n<0||n>=r.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],d.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}}}})],d.prototype,"curvePaths",void 0),(0,i.Cg)([(0,p.K)("curvePaths")],d.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],d.prototype,"paths",void 0),(0,i.Cg)([(0,p.K)("paths")],d.prototype,"writePaths",null),d=r=(0,i.Cg)([(0,o.$K)("esri.geometry.Polyline")],d),d.prototype.toJSON.isDefaultToJSON=!0},4197(t,n,e){e.d(n,{Vj:()=>h,cj:()=>c,jh:()=>s,l5:()=>a,yH:()=>u});var r=e(34275),i=e(9093);function s(t){return t<=1024?new Array(t).fill(0):new Float64Array(t)}function o(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=1024?Array.from(t):new Float64Array(t)}function a(t,n,e){return Array.isArray(t)?t.slice(n,n+e):t.subarray(n,n+e)}function u(t,n){if(0===n.length)return o(t);if(0===t.length)return o(n);const e=s(t.length+n.length);for(let n=0;n<t.length;++n)e[n]=t[n];for(let r=0;r<n.length;++r)e[t.length+r]=n[r];return e}function c(t){return[...t]}function h(t){const n=(0,i.vt)();for(let e=0;e<16;++e)n[e]=t[e];return n}},70328(t,n,e){e.d(n,{BI:()=>j,C:()=>o,DC:()=>f,Ej:()=>b,Ie:()=>A,Jt:()=>P,Lu:()=>_,Ne:()=>I,RF:()=>l,TF:()=>y,VL:()=>d,aI:()=>C,fA:()=>a,gE:()=>c,gX:()=>g,hZ:()=>w,iT:()=>p,is:()=>R,pg:()=>v,uJ:()=>M,vI:()=>x,vY:()=>u,vt:()=>s,w1:()=>h,yr:()=>m}),e(35522);var r=e(5443),i=(e(19419),e(4197));function s(t=O){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,n){for(let e=0;e<6;e++)t[e]=n[e];return t}function a(t,n,e,r,i,o,a=s()){return a[0]=t,a[1]=n,a[2]=e,a[3]=r,a[4]=i,a[5]=o,a}function u(t,n=s()){return function(t,n,e,r=s()){return w(r,S),function(t,n,e=0,r=n.length/3){let i=t[0],s=t[1],o=t[2],a=t[3],u=t[4],c=t[5];for(let t=0;t<r;t++)i=Math.min(i,n[e+3*t]),s=Math.min(s,n[e+3*t+1]),o=Math.min(o,n[e+3*t+2]),a=Math.max(a,n[e+3*t]),u=Math.max(u,n[e+3*t+1]),c=Math.max(c,n[e+3*t+2]);t[0]=i,t[1]=s,t[2]=o,t[3]=a,t[4]=u,t[5]=c}(r,t,n,e),r}(t,0,t.length/3,n)}function c(t,n=(0,i.jh)(24)){const[e,r,s,o,a,u]=t;return n[0]=e,n[1]=r,n[2]=s,n[3]=e,n[4]=r,n[5]=u,n[6]=e,n[7]=a,n[8]=s,n[9]=e,n[10]=a,n[11]=u,n[12]=o,n[13]=r,n[14]=s,n[15]=o,n[16]=r,n[17]=u,n[18]=o,n[19]=a,n[20]=s,n[21]=o,n[22]=a,n[23]=u,n}function h(t,n){const e=isFinite(t[2])||isFinite(t[5]);return new r.A(e?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:n}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:n})}function l(t,n,e=t){e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e[3]=Math.max(t[3],n[3]),e[4]=Math.max(t[4],n[4]),e[5]=Math.max(t[5],n[5])}function f(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[3]=Math.max(t[3],n[2]),t[4]=Math.max(t[4],n[3])}function p(t,[n,e,r]){!function(t,n,e,r){t[0]=Math.min(t[0],n),t[1]=Math.min(t[1],e),t[2]=Math.min(t[2],r),t[3]=Math.max(t[3],n),t[4]=Math.max(t[4],e),t[5]=Math.max(t[5],r)}(t,n,e,r)}function d(t){return t[0]>=t[3]?0:t[3]-t[0]}function m(t){return t[1]>=t[4]?0:t[4]-t[1]}function M(t){return t[2]>=t[5]?0:t[5]-t[2]}function y(t){const n=d(t),e=M(t),r=m(t);return n*n+e*e+r*r}function g(t,n=[0,0,0]){return n[0]=t[0]+d(t)/2,n[1]=t[1]+m(t)/2,n[2]=t[2]+M(t)/2,n}function b(t,n=[0,0,0]){return n[0]=d(t),n[1]=m(t),n[2]=M(t),n}function v(t,n){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n}function _(t,n){return n[0]=t[3],n[1]=t[4],n[2]=t[5],n}function I(t,n,e=t){return e[0]=n[0],e[1]=n[1],e[2]=n[2],e!==t&&(e[3]=t[3],e[4]=t[4],e[5]=t[5]),e}function x(t,n,e=t){return e[3]=n[0],e[4]=n[1],e[5]=n[2],e!==t&&(e[0]=t[0],e[1]=t[1],e[2]=t[2]),t}function w(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t}function A(t){return t?w(t,S):s(S)}function P(t,n){return t[0]=n[0],t[1]=n[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=n[2],t[4]=n[3],t[5]=Number.POSITIVE_INFINITY,t}function j(t,n,e,r,i){return t[0]=n,t[1]=e,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=i,t[5]=Number.POSITIVE_INFINITY,t}function R(t){return 6===t.length}function C(t,n,e){if(null==t||null==n)return t===n;if(!R(t)||!R(n))return!1;if(e){for(let r=0;r<t.length;r++)if(!e(t[r],n[r]))return!1}else for(let e=0;e<t.length;e++)if(t[e]!==n[e])return!1;return!0}const S=[1/0,1/0,1/0,-1/0,-1/0,-1/0],O=[0,0,0,0,0,0];s(),e.d(n,["qv",0,S,"v_",0,O])},60408(t,n,e){function r(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function i(t){return void 0!==t.points}function s(t){return void 0!==t.x&&void 0!==t.y}function o(t){return void 0!==t.paths||void 0!==t.curvePaths}function a(t){return void 0!==t.rings||void 0!==t.curveRings}function u(t){return"object"==typeof t&&"vertexAttributes"in t}function c(t){return t?s(t)?"esriGeometryPoint":o(t)?"esriGeometryPolyline":a(t)?"esriGeometryPolygon":r(t)?"esriGeometryEnvelope":i(t)?"esriGeometryMultipoint":null:null}function h(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function l(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}e.d(n,{$B:()=>c,Bi:()=>a,Pv:()=>h,Rg:()=>o,U9:()=>i,W0:()=>l,ZC:()=>r,fT:()=>s,uW:()=>u})},71351(t,n,e){e.d(n,{C:()=>h,Cr:()=>l,LV:()=>c,fA:()=>f,vt:()=>a}),e(4576);var r=e(4341),i=(e(77690),e(29242)),s=e(35522),o=e(51850);function a(t){return t?u((0,o.o8)(t.origin),(0,o.o8)(t.direction)):u((0,o.vt)(),(0,o.vt)())}function u(t,n){return{origin:t,direction:n}}function c(t,n){const e=p.get();return e.origin=t,e.direction=n,e}function h(t,n=a()){return f(t.origin,t.direction,n)}function l(t,n,e=a()){return(0,s.C)(e.origin,t),(0,s.Re)(e.direction,n,t),e}function f(t,n,e=a()){return(0,s.C)(e.origin,t),(0,s.C)(e.direction,n),e}e(32114);const p=new r.I(()=>a());(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,i.vt)()},32114(t,n,e){e.d(n,{Rc:()=>p,rq:()=>l,Km:()=>f}),e(44208);var r=e(26390),i=e(29242),s=e(9093),o=e(82534),a=e(48163),u=e(51850),c=e(91829);class h{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new h(a.vt)}static createVec3f64(){return new h(u.vt)}static createVec4f64(){return new h(c.vt)}static createMat3f64(){return new h(i.vt)}static createMat4f64(){return new h(s.vt)}static createQuatf64(){return new h(o.vt)}get test(){}}h.createVec2f64();const l=h.createVec3f64(),f=h.createVec4f64(),p=(h.createMat3f64(),h.createMat4f64());h.createQuatf64()},85648(t,n,e){e.d(n,{n:()=>i});var r=e(84952);function i(t){return s[function(t){return"json"===t.type?"application/json":"blob"===t.type?t.blob.type:function(t){const n=(0,r.Zo)(t);return u[n]||o}(t.url)}(t)]||a}const s={},o="text/plain",a=s[o],u={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const t in u)s[u[t]]=t},24212(t,n,e){e.d(n,{$7:()=>u,B:()=>a,M7:()=>l,XF:()=>h,tW:()=>c,w7:()=>o});var r=e(56512),i=e(86211),s=e(16271);function o(t,n){return function(t,n){return n?.mode?n.mode:function(t){return t?f:p}(t).mode}(null==t||(t.hasZ??!1),n)}function a(t,n,e){return e&&e.mode!==n?`${t} only support ${n} elevation mode`:null}function u(t,n,e){return e?.mode===n?`${t} do not support ${n} elevation mode`:null}function c(t,n){return null!=n?.featureExpressionInfo&&"0"!==n.featureExpressionInfo.expression?`${t} do not support featureExpressionInfo`:null}function h(t,n){n&&t.warn(".elevationInfo=",n)}function l(t){return(t?.offset??0)*(0,s.Ao)(t?.unit)}(0,r.B)((t,n,e)=>{if(!t)return 0;if("decimal-degrees"===n)return 0;const r="unknown"!==n&&n?n:"meters",s=(0,i.mq)(e);return s?(0,i.oU)(t,r,s):0});const f={mode:"absolute-height",offset:0},p={mode:"on-the-ground",offset:null}},49718(t,n,e){e(51850),e(6867).w_},6867(t,n,e){e.d(n,{w_:()=>l});var r=e(58083),i=e(9093),s=e(35522),o=e(51850),a=e(78955),u=e(91829),c=e(71351);class h{constructor(){this.intersector=4}get distance(){return this._distance}get renderDistance(){return this._renderDistance}_init(){this._distance=this._renderDistance=this.target=this.drapedLayerOrder=this.renderPriority=null,this.intersector=4}_setBase(t,n,e,r=null,i=null,s=null){this.intersector=t,this._distance=e,this._renderDistance=r,this.target=n,this.drapedLayerOrder=i,this.renderPriority=s}}class l extends h{get ray(){return this._ray}get distanceInRenderSpace(){return null==this.distance?null:((0,s.hs)(p,this.ray.direction,this.distance),(0,s.Bw)(p))}withinDistance(t){return!!f(this)&&null!=this.distanceInRenderSpace&&this.distanceInRenderSpace<=t}getIntersectionPoint(t){return!!f(this)&&((0,s.hs)(p,this.ray.direction,this.distance),(0,s.WQ)(t,this.ray.origin,p),!0)}getTransformedNormal(t){return(0,s.C)(d,this.normal),d[3]=0,(0,a.Z0)(d,d,this.transformation),(0,s.C)(t,d),(0,s.S8)(t,t)}constructor(t){super(),this.normal=(0,o.vt)(),this.transformation=(0,i.vt)(),this._ray=(0,c.vt)(),this.init(t)}init(t){super._init(),t&&(0,c.C)(t,this._ray)}set(t,n,e,a,u,c,h,l){this._setBase(t,n,e,a,h,l),(0,s.C)(this.normal,u??o.Cb),(0,r.C)(this.transformation,c??i.zK)}copy(t){this._setBase(t.intersector,t.target,t.distance,t.renderDistance,t.drapedLayerOrder,t.renderPriority),(0,c.C)(t.ray,this._ray),(0,s.C)(this.normal,t.normal),(0,r.C)(this.transformation,t.transformation)}}function f(t){return null!=t?.distance&&null!=t?.renderDistance}const p=(0,o.vt)(),d=(0,u.vt)()},78553(t,n,e){e.d(n,{D:()=>s,p:()=>i});var r=e(56507);function i(t){const n=(0,r.Vr)(100*(1-t));return Math.max(0,Math.min(n,100))}function s(t){const n=1-t/100;return Math.max(0,Math.min(n,1))}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1737],{40876(e,t,n){n.d(t,{Eq:()=>m,G1:()=>g,TS:()=>s,V6:()=>r,Vm:()=>f,ay:()=>l,c1:()=>p,c4:()=>a,j5:()=>u,lT:()=>h,oW:()=>c,xV:()=>b});const i={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function r(e){return!!i[e]||!!i[e.toLowerCase()]}function s(e){return i[e]??i[e.toLowerCase()]}function a(e){return[...s(e)]}function o(e,t,n){n<0&&++n,n>1&&--n;const i=6*n;return i<1?e+(t-e)*i:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function l(e,t,n,i=1){const r=(e%360+360)%360/360,s=n<=.5?n*(t+1):n+t-n*t,a=2*n-s;return[Math.round(255*o(a,s,r+1/3)),Math.round(255*o(a,s,r)),Math.round(255*o(a,s,r-1/3)),i]}function u(e){const t=e.length>5,n=t?8:4,i=(1<<n)-1,r=t?1:17,s=t?9===e.length:5===e.length;let a=Number("0x"+e.slice(1));if(isNaN(a))return null;const o=[0,0,0,1];let l;return s&&(l=a&i,a>>=n,o[3]=r*l/255),l=a&i,a>>=n,o[2]=r*l,l=a&i,a>>=n,o[1]=r*l,l=a&i,a>>=n,o[0]=r*l,o}function c(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const t=parseInt(e.slice(1,2),16),n=parseInt(e.slice(2,3),16),i=parseInt(e.slice(3,4),16),r=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,n+16*n,i+16*i,(r+16*r)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function h(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),n=t[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){if(e[0].endsWith("%")){const t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),d(t)}return d(e.map(e=>parseFloat(e)))}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return l(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function d(e){return e[0]=p(e[0]),e[1]=p(e[1]),e[2]=p(e[2]),e[3]=4===e.length?g(e[3]):1,e}function m(e){let t=r(e)?s(e):null;return t??=h(e),t??=c(e),t}function f(e){const t=m(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function g(e){return y(e,0,1)}function p(e){return Math.round(y(e,0,255))}function y(e,t,n){return e=Number(e),isNaN(e)?n:e<t?t:e>n?n:e}const v=1/2.2;function b(e){return e**v}n.d(t,["iw",0,v])},7762(e,t,n){var i,r=n(32198),s=n(98291),a=n(4576),o=n(65529),l=n(36563),u=n(4718),c=n(53966),h=n(93687),d=n(76030),m=n(56507),f=n(62788),g=n(10107),p=n(7695),y=n(64108),v=n(95488),b=n(12195);class _{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class w{constructor(e,t,n,i,r){this.target=e,this.added=t,this.removed=n,this.start=i,this.deleteCount=r}}const M=new h.A(()=>new _,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function T(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function x(e){return e?e instanceof k?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function F(e){if(e?.length)return e[0]}function C(e,t,n,i){const r=Math.min(e.length-n,t.length-i);let s=0;for(;s<r&&e[n+s]===t[i+s];)s++;return s}function S(e,t,n,i){t&&t.forEach((t,r,s)=>{e.push(t),S(e,n.call(i,t,r,s),n,i)})}const I=new Set,z=new Set,V=new Set,N=new Map;let D=0,k=i=class extends o.nJ{static ofType(e){if(!e)return i;if(N.has(e))return N.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const n in e.typeMap){const i=e.typeMap[n].prototype.declaredClass;t?t+=` | ${i}`:t=i}let n=class extends i{};return(0,r.Cg)([(0,p.u)({Type:e,ensureType:"function"==typeof e?(0,m.dp)(e):(0,m.aq)(e)})],n.prototype,"itemType",void 0),n=(0,r.Cg)([(0,y.$)(`esri.core.Collection<${t}>`)],n),N.set(e,n),n}static isCollection(e){return null!=e&&e instanceof i}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new v.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:D++})}normalizeCtorArgs(e){return e?(0,a.yc)(e)||e instanceof i?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(e){e>this._length?c.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(e,Math.max(0,this._length-e))}get items(){return(0,f.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,x(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,l.hA)();if("change"===e){const e=this._chgListeners,n={removed:!1,callback:t};return e.push(n),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,l.hA)(()=>{n.removed=!0,e.splice(e.indexOf(n),1)})}return super.on(e,t)}once(e,t){const n="deref"in t?()=>t.deref():()=>t,i=this.on(e,e=>{n()?.call(null,e),i.remove()});return i}add(e,t){if((0,f.gc)(this._observable),this._emitBeforeChanges(1))return this;const n=this.getNextIndex(t??null);return this._splice(n,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,f.gc)(this._observable),!e?.length)return this;if(this._emitBeforeChanges(1))return this;const n=this.getNextIndex(t);return this._splice(n,0,x(e)),this._emitAfterChanges(1),this}at(e){if((0,f.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];const e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,f.gc)(this._observable),this._createNewInstance({items:this._items.map(u.o8)})}concat(...e){(0,f.gc)(this._observable);const t=e.map(x);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const n=this._splice(0,this.length),i=n.length;for(let r=0;r<i;r++)e.call(t,n[r],r,n);this._emitAfterChanges(2)}destroyAll(){this.drain(T)}destroyMany(e){const t=this.removeMany(e);return t.forEach(T),t}every(e,t){return(0,f.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,f.gc)(this._observable);const n=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:n})}find(e,t){return(0,f.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,f.gc)(this._observable),this._items.findIndex(e,t)}findLast(e,t){return(0,f.gc)(this._observable),this._items.findLast(e,t)}findLastIndex(e,t){return(0,f.gc)(this._observable),this._items.findLastIndex(e,t)}flatten(e,t){(0,f.gc)(this._observable);const n=[];return S(n,this,e,t),new i(n)}forEach(e,t){return(0,f.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,f.gc)(this._observable),this._items[e]}getNextIndex(e){(0,f.gc)(this._observable);const t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,f.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,f.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,f.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,f.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,f.gc)(this._observable);const n=this._items.map(e,t);return new i({items:n})}reorder(e,t=this.length-1){(0,f.gc)(this._observable);const n=this.indexOf(e);if(-1!==n){if(t<0?t=0:t>=this.length&&(t=this.length-1),n!==t){if(this._emitBeforeChanges(4))return e;this._splice(n,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=F(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,f.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,f.gc)(this._observable);const n=this._items;return 2===arguments.length?n.reduce(e,t):n.reduce(e)}reduceRight(e,t){(0,f.gc)(this._observable);const n=this._items;return 2===arguments.length?n.reduceRight(e,t):n.reduceRight(e)}remove(e){return(0,f.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,f.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;const t=F(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,f.gc)(this._observable),!e?.length||this._emitBeforeChanges(2))return[];const t=e instanceof i?e.toArray():e,n=this._items,r=[],s=t.length;for(let e=0;e<s;e++){const i=t[e],s=n.indexOf(i);if(s>-1){const i=1+C(t,n,e+1,s+1),a=this._splice(s,i);a&&a.length>0&&r.push.apply(r,a),e+=i-1}}return this._emitAfterChanges(2),r}reverse(){if((0,f.gc)(this._observable),this._emitBeforeChanges(4))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=F(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,f.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,f.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;const t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){const t=this.length-1;for(let n=0;n<t;n++)if(e(this.items[n],this.items[n+1])>0)return!0;return!1}splice(e,t,...n){(0,f.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;const i=(t?2:0)|(n.length?1:0);if(this._emitBeforeChanges(i))return[];const r=this._splice(e,t,n)||[];return this._emitAfterChanges(i),r}toArray(){return(0,f.gc)(this._observable),this._items.slice()}toJSON(e){return(0,f.gc)(this._observable),this.toArray().map(t=>(0,b.W)(t)?t.toJSON(e):t)}toLocaleString(){return(0,f.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,f.gc)(this._observable),this._items.toString()}unshift(...e){return(0,f.gc)(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,n){const i=this._items,r=this.itemType;let s,a;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,d._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(a=i.splice(e,t),this.hasEventListener("before-remove")){const t=M.acquire();t.target=this,t.cancellable=!0;for(let n=0,r=a.length;n<r;n++)s=a[n],t.reset(s),this.emit("before-remove",t),t.defaultPrevented&&(a.splice(n,1),i.splice(e,0,s),e+=1,n-=1,r-=1);M.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){const e=M.acquire();e.target=this,e.cancellable=!1;const t=a.length;for(let n=0;n<t;n++)e.reset(a[n]),this.emit("after-remove",e);M.release(e)}}if(n?.length){if(r){const e=[];for(const t of n){const n=r.ensureType(t);null==n&&null!=t||e.push(n)}n=e}const t=this.hasEventListener("before-add"),s=this.hasEventListener("after-add"),a=e===this.length;if(t||s){const r=M.acquire();r.target=this,r.cancellable=!0;const o=M.acquire();o.target=this,o.cancellable=!1;for(const l of n)t?(r.reset(l),this.emit("before-add",r),r.defaultPrevented||(a?i.push(l):i.splice(e++,0,l),this._length=i.length,s&&(o.reset(l),this.emit("after-add",o)))):(a?i.push(l):i.splice(e++,0,l),this._length=i.length,o.reset(l),this.emit("after-add",o));M.release(o),M.release(r)}else{if(a)for(const e of n)i.push(e);else i.splice(e,0,...n);this._length=i.length}}if((n?.length||a?.length)&&this._notifyChangeEvent(n,a),this.hasEventListener("after-splice")){const i=new w(this,n,a,e,t);this.emit("after-splice",i)}return a}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const n=M.acquire();n.target=this,n.cancellable=!0,n.type=e,this.emit("before-changes",n),t=n.defaultPrevented,M.release(n)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=M.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),M.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;I.clear(),z.clear(),V.clear();for(const{added:t,removed:n}of e){if(t)if(0===V.size&&0===z.size)for(const e of t)I.add(e);else for(const e of t)z.has(e)?(V.add(e),z.delete(e)):V.has(e)||I.add(e);if(n)if(0===V.size&&0===I.size)for(const e of n)z.add(e);else for(const e of n)I.has(e)?I.delete(e):(V.delete(e),z.add(e))}const n=s.A.acquire();I.forEach(e=>{n.push(e)});const i=s.A.acquire();z.forEach(e=>{i.push(e)});const r=this._items,a=t.items,o=s.A.acquire();if(V.forEach(e=>{a.indexOf(e)!==r.indexOf(e)&&o.push(e)}),t.listeners&&(n.length||i.length||o.length)){const e={target:this,added:n,removed:i,moved:o},r=t.listeners.length;for(let n=0;n<r;n++){const i=t.listeners[n];i.removed||i.callback.call(this,e)}}s.A.release(n),s.A.release(i),s.A.release(o)}I.clear(),z.clear(),V.clear()}};(0,r.Cg)([(0,g.MZ)()],k.prototype,"_updating",void 0),(0,r.Cg)([(0,g.MZ)()],k.prototype,"_length",void 0),(0,r.Cg)([(0,g.MZ)()],k.prototype,"length",null),(0,r.Cg)([(0,g.MZ)()],k.prototype,"items",null),(0,r.Cg)([(0,g.MZ)({readOnly:!0})],k.prototype,"updating",null),k=i=(0,r.Cg)([(0,y.$)("esri.core.Collection")],k);const L=k;n.d(t,["A",0,L])},7695(e,t,n){function i(e){return(t,n)=>{t[n]=e}}n.d(t,{u:()=>i})},91829(e,t,n){function i(){return[0,0,0,0]}function r(e,t,n,i){return[e,t,n,i]}function s(){return r(1,1,1,1)}function a(){return r(1,0,0,0)}function o(){return r(0,1,0,0)}function l(){return r(0,0,1,0)}function u(){return r(0,0,0,1)}n.d(t,{_Y:()=>u,fA:()=>r,vt:()=>i});const c=[0,0,0,0],h=s(),d=a(),m=o(),f=l(),g=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:g,UNIT_X:d,UNIT_Y:m,UNIT_Z:f,ZEROS:c,clone:function(e){return[e[0],e[1],e[2],e[3]]},create:i,freeze:function(e,t,n,i){return[e,t,n,i]},fromArray:function(e,t=[0,0,0,0]){const n=Math.min(4,e.length);for(let i=0;i<n;++i)t[i]=e[i];return t},fromValues:r,ones:s,unitW:u,unitX:a,unitY:o,unitZ:l,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(t,["Un",0,h,"uY",0,c,"v7",0,g])},78955(e,t,n){n.d(t,{Bw:()=>p,C:()=>r,Cc:()=>_,LI:()=>d,Om:()=>b,S8:()=>v,T9:()=>h,WQ:()=>a,Z0:()=>w,aI:()=>T,hG:()=>g,hZ:()=>s,hs:()=>m,jk:()=>c,m3:()=>y,t2:()=>M});var i=n(34304);function r(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function s(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=i,e[3]=r,e}function a(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e}function o(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e}function l(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e[3]=t[3]*n[3],e}function u(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e[3]=t[3]/n[3],e}function c(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e[3]=Math.min(t[3],n[3]),e}function h(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e[3]=Math.max(t[3],n[3]),e}function d(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e}function m(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e}function f(e,t){const n=t[0]-e[0],i=t[1]-e[1],r=t[2]-e[2],s=t[3]-e[3];return Math.sqrt(n*n+i*i+r*r+s*s)}function g(e,t){const n=t[0]-e[0],i=t[1]-e[1],r=t[2]-e[2],s=t[3]-e[3];return n*n+i*i+r*r+s*s}function p(e){const t=e[0],n=e[1],i=e[2],r=e[3];return Math.sqrt(t*t+n*n+i*i+r*r)}function y(e){const t=e[0],n=e[1],i=e[2],r=e[3];return t*t+n*n+i*i+r*r}function v(e,t){const n=t[0],i=t[1],r=t[2],s=t[3];let a=n*n+i*i+r*r+s*s;return a>0&&(a=1/Math.sqrt(a),e[0]=n*a,e[1]=i*a,e[2]=r*a,e[3]=s*a),e}function b(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function _(e,t,n,i){const r=t[0],s=t[1],a=t[2],o=t[3];return e[0]=r+i*(n[0]-r),e[1]=s+i*(n[1]-s),e[2]=a+i*(n[2]-a),e[3]=o+i*(n[3]-o),e}function w(e,t,n){const i=t[0],r=t[1],s=t[2],a=t[3];return e[0]=n[0]*i+n[4]*r+n[8]*s+n[12]*a,e[1]=n[1]*i+n[5]*r+n[9]*s+n[13]*a,e[2]=n[2]*i+n[6]*r+n[10]*s+n[14]*a,e[3]=n[3]*i+n[7]*r+n[11]*s+n[15]*a,e}function M(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function T(e,t){const n=e[0],r=e[1],s=e[2],a=e[3],o=t[0],l=t[1],u=t[2],c=t[3],h=(0,i.FD)();return Math.abs(n-o)<=h*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-l)<=h*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(s-u)<=h*Math.max(1,Math.abs(s),Math.abs(u))&&Math.abs(a-c)<=h*Math.max(1,Math.abs(a),Math.abs(c))}const x=o,F=l,C=u,S=f,I=g,z=p,V=y;Object.freeze(Object.defineProperty({__proto__:null,add:a,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},copy:r,copyVec3:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},dist:S,distance:f,div:C,divide:u,dot:b,equals:T,exactEquals:M,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},len:z,length:p,lerp:_,max:h,min:c,mul:F,multiply:l,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:v,random:function(e,t=1){const n=i.Ov;let r,s,a,o,l,u;do{r=2*n()-1,s=2*n()-1,l=r*r+s*s}while(l>=1);do{a=2*n()-1,o=2*n()-1,u=a*a+o*o}while(u>=1);const c=Math.sqrt((1-l)/u);return e[0]=t*r,e[1]=t*s,e[2]=t*a*c,e[3]=t*o*c,e},round:d,scale:m,scaleAndAdd:function(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e[2]=t[2]+n[2]*i,e[3]=t[3]+n[3]*i,e},set:s,sqrDist:I,sqrLen:V,squaredDistance:g,squaredLength:y,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:x,subtract:o,transformMat4:w,transformQuat:function(e,t,n){const i=t[0],r=t[1],s=t[2],a=n[0],o=n[1],l=n[2],u=n[3],c=u*i+o*s-l*r,h=u*r+l*i-a*s,d=u*s+a*r-o*i,m=-a*i-o*r-l*s;return e[0]=c*u+m*-a+h*-l-d*-o,e[1]=h*u+m*-o+d*-a-c*-l,e[2]=d*u+m*-l+c*-o-h*-a,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},90629(e,t,n){n.d(t,{Lz:()=>r,PN:()=>s,cr:()=>a,gs:()=>l,r_:()=>u,tc:()=>o}),n(39829);const i=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function r(e){return e?e/72*96:0}function s(e){return e?72*e/96:0}function a(e){if("string"==typeof e){const t=e.match(i);if(t){const n=Number(t[1]),i=t[3]&&t[3].toLowerCase(),r=e.startsWith("-"),a="px"===i?s(n):n;return r?-a:a}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function o(e=0,t=0){return{x:e,y:t}}function l(e=0,t=0){return[e,t]}function u(e=0,t=0,n=0){return[e,t,n]}},88930(e,t,n){n.d(t,{S1:()=>o,VW:()=>l,lL:()=>u,rb:()=>c,t:()=>h});var i=n(97770),r=(n(98623),n(34747));const s=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,a={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function o(e,t,n,s="system"){if("unknown"===n)return e;const a=new r.oh((0,i.wj)(s)),o=r.c9.fromJSDate(e,{zone:a}),l="decades"===n||"centuries"===n?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(n);return"decades"===n&&(t*=10),"centuries"===n&&(t*=100),o.plus({[l]:t}).toJSDate()}function l(e,t,n="milliseconds"){const i=e.getTime(),r=h(t,n,"milliseconds");return new Date(i+r)}function u(e,t,n="system"){const{unit:s}=t,a=Math.max(1,Math.trunc(t.value)),o=new r.oh((0,i.wj)(n)),l=r.c9.fromJSDate(e,{zone:o}),u=e=>e-e%a;switch(s){case"milliseconds":return l.startOf("second").plus({millisecond:u(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:u(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:u(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:u(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:u(l.day-1)}).toJSDate();case"weeks":{const e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:u(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:u(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{const e=l.startOf("year"),t=("decades"===s?10:"centuries"===s?100:1)*a,n=e.year-e.year%t;return e.set({year:n}).toJSDate()}case"unknown":return e}}function c(e){const t=s.exec(e);if(!t)return null;const{hh:n,mm:i,ss:r,ms:o}=t.groups;return Number(n)*a.hours+Number(i)*a.minutes+Number(r||0)*a.seconds+Number(o||0)}function h(e,t,n){return 0===e?0:e*a[t]/a[n]}},62577(e,t,n){function i(e){return e?{originPosition:"upper-left"===e.originPosition?"upperLeft":"lower-left"===e.originPosition?"lowerLeft":e.originPosition,scale:e.tolerance?[e.tolerance,e.tolerance,1,1]:[1,1,1,1],translate:null!=e.extent?[e.extent.xmin,e.extent.ymax,e.extent.zmin??0,e.extent.mmin??0]:[0,0,0,0]}:null}function r(e){if(function(e){return"lowerLeft"===e.originPosition&&4===e.scale.length&&4===e.translate.length}(e))return e;const{originPosition:t,scale:n,translate:i}=e,r=n[0]??1,s=n[1]??1;return{originPosition:"lowerLeft",scale:[r,"lowerLeft"===t?s:-s,n[2]??1,n[3]??1],translate:[i[0]??0,i[1]??0,i[2]??0,i[3]??0]}}function s({scale:e,translate:t},n){return Math.round((n-t[0])/e[0])}function a({scale:e,translate:t},n){return Math.round((n-t[1])/e[1])}function o({scale:e,translate:t},n){return n*e[0]+t[0]}function l({scale:e,translate:t},n){return n*e[1]+t[1]}function u({scale:e,translate:t},n){return(n??0)*e[2]+t[2]}function c({scale:e,translate:t},n){return n?n*e[3]+t[3]:0}function h(e,t){return e&&t?g:e&&!t?m:!e&&t?f:d}n.d(t,{$X:()=>_,B2:()=>a,Gy:()=>y,IE:()=>s,P5:()=>w,Q1:()=>r,SW:()=>v,Tr:()=>b,VV:()=>i});const d=(e,t)=>{const n=new Array(t.length);if(!t.length)return n;const i=t[0];let r=o(e,i[0]),s=l(e,i[1]);n[0]=[r,s];const{scale:a,originPosition:u}=e,c=a[0],h="lowerLeft"===u?a[1]:-a[1];for(let e=1;e<t.length;e++){const[i,a]=t[e];r+=c*i,s+=h*a,n[e]=[r,s]}return n},m=(e,t)=>{const n=new Array(t.length);if(!t.length)return n;const i=t[0];let r=o(e,i[0]),s=l(e,i[1]);n[0]=[r,s,u(e,i[2])];const{scale:a,originPosition:c}=e,h=a[0],d="lowerLeft"===c?a[1]:-a[1];for(let i=1;i<t.length;i++){const[a,o,l]=t[i];r+=h*a,s+=d*o,n[i]=[r,s,u(e,l)]}return n},f=(e,t)=>{const n=new Array(t.length);if(!t.length)return n;const i=t[0];let r=o(e,i[0]),s=l(e,i[1]);n[0]=[r,s,c(e,i[2])];const{scale:a,originPosition:u}=e,h=a[0],d="lowerLeft"===u?a[1]:-a[1];for(let i=1;i<t.length;i++){const[a,o,l]=t[i];r+=h*a,s+=d*o,n[i]=[r,s,c(e,l)]}return n},g=(e,t)=>{const n=new Array(t.length);if(!t.length)return n;const i=t[0];let r=o(e,i[0]),s=l(e,i[1]);n[0]=[r,s,u(e,i[2]),c(e,i[3])];const{scale:a,originPosition:h}=e,d=a[0],m="lowerLeft"===h?a[1]:-a[1];for(let i=1;i<t.length;i++){const[a,o,l,h]=t[i];r+=d*a,s+=m*o,n[i]=[r,s,u(e,l),c(e,h)]}return n};function p(e,t,n){const i=new Array(n.length);for(let r=0;r<n.length;r++)i[r]=t(e,n[r]);return i}function y(e,t,n){const i=r(e);return t.x=s(i,n.x),t.y=a(i,n.y),null!=n.z&&(t.z=function({scale:e,translate:t},n){return Math.round(((n??0)-t[2])/e[2])}(i,n.z)),null!=n.m&&(t.m=function({scale:e,translate:t},n){return n?Math.round((n-t[3])/e[3]):0}(i,n.m)),t}function v(e,t,n,i=n?.hasZ??!1,s=n?.hasM??!1){if(null!=n){const a=r(e);t.points=h(i,s)(a,n.points),t.hasZ=i,t.hasM=s}return t}function b(e,t,n,i=null!=n?.z,s=null!=n?.m){if(null==n)return t;const a=r(e);return t.x=o(a,n.x),t.y=l(a,n.y),i&&(t.z=u(a,n.z)),s&&(t.m=c(a,n.m)),t}function _(e,t,n,i=n?.hasZ??!1,s=n?.hasM??!1){if(null!=n){const a=r(e);t.rings=p(a,h(i,s),n.rings),t.hasZ=i,t.hasM=s}return t}function w(e,t,n,i=n?.hasZ??!1,s=n?.hasM??!1){if(null!=n){const a=r(e);t.paths=p(a,h(i,s),n.paths),t.hasZ=i,t.hasM=s}return t}},97770(e,t,n){n.d(t,{Ey:()=>D,F8:()=>N,J2:()=>S,Yq:()=>z,_m:()=>I,iS:()=>V,wj:()=>k});var i=n(66552),r=n(73444),s=n(98623),a=n(34747);const o={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},u={timeZone:"UTC"},c={year:"numeric",month:"numeric",day:"numeric"},h={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},f={hour:"numeric",minute:"numeric"},g={...f,second:"numeric"},p={hourCycle:"h23"},y={...f,...p},v={...g,...p},b={"short-date":c,"short-date-short-time":{...c,...f},"short-date-short-time-24":{...c,...y},"short-date-long-time":{...c,...g},"short-date-long-time-24":{...c,...v},"short-date-le":c,"short-date-le-short-time":{...c,...f},"short-date-le-short-time-24":{...c,...y},"short-date-le-long-time":{...c,...g},"short-date-le-long-time-24":{...c,...v},"long-month-day-year":h,"long-month-day-year-short-time":{...h,...f},"long-month-day-year-short-time-24":{...h,...y},"long-month-day-year-long-time":{...h,...g},"long-month-day-year-long-time-24":{...h,...v},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...f},"day-short-month-year-short-time-24":{...d,...y},"day-short-month-year-long-time":{...d,...g},"day-short-month-year-long-time-24":{...d,...v},"long-date":m,"long-date-short-time":{...m,...f},"long-date-short-time-24":{...m,...y},"long-date-long-time":{...m,...g},"long-date-long-time-24":{...m,...v},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":f,"long-time":g},_=(0,i.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),w={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},M=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),T=M.find(({type:e})=>"month"===e)?.value.toLowerCase();function x(){const e=(0,r.lR)();return(e&&w[e])??(0,r.QC)()}"mart"!==T&&(w.bs="sr-Latn-CS");let F=new WeakMap;const C=b["short-date-short-time"];function S(e){return b[e]}function I(e){const{dateStyle:t,timeStyle:n,hour12:i,year:r,month:s}=e,a={};return t?a.dateStyle=t:r&&(a.year=r,a.month=s||void 0),n&&!a.year&&(a.timeStyle=n,a.hour12="auto"===i?void 0:"always"===i),a}function z(e,t=C){return function(e){let t=F.get(e);if(!t){const n=x(),i=k(e.timeZone??"system"),r={...e,timeZone:i};t=new Intl.DateTimeFormat(n,r),F.set(e,t)}return t}(t).format(e)}function V(e,t=C){return z(new Date(e),{...t,...u,...l})}function N(e,t=C){return z(new Date(`1970-01-01T${e}Z`),{...t,...u,...o})}function D(e,t=C){const n=a.c9.fromISO(e,{setZone:!0});if(!n.isValid)return e;if(t.timeZone)return z(n.toJSDate(),t);const i=0===n.offset?"UTC":t.timeZone,r={...t,timeZone:i};return n.toLocaleString(r,{locale:x()})}function k(e){switch(e){case"system":return s.N;case s.L:return"UTC";default:return e}}(0,r.Ml)(()=>{F=new WeakMap}),n.d(t,["_v",0,_])},73444(e,t,n){n.d(t,{JK:()=>l,Ml:()=>p,QC:()=>h,lR:()=>c,oQ:()=>f});var i=n(36563);let r;n(44208);const s=globalThis.esriConfig?.locale,a=globalThis.document?.documentElement;function o(){const e=a?.getAttribute("lang"),t=globalThis.navigator?.language;return s??e??t??"en"}function l(){return void 0===r&&(r=o()),r}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 d(e)?.language}function h(e=l()){const t=d(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function d(e=l()){return u.exec(e)?.groups}const m=[];function f(e){return m.push(e),(0,i.hA)(()=>{m.splice(m.indexOf(e),1)})}new Map;const g=[];function p(e){return g.push(e),(0,i.hA)(()=>g.splice(g.indexOf(e),1))}function y(){const e=o();r!==e&&([...g].forEach(t=>t(e)),r=e,[...m].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",y),a&&new MutationObserver(()=>{y()}).observe(a,{attributeFilter:["lang"]})},95466(e,t,n){n.d(t,{A:()=>u});var i=n(49186),r=n(53966),s=n(12195),a=n(30524),o=n(98623),l=n(56400);class u{static fromJSON(e){return new u(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new u(e.fields??[],h(e))}static fromLayerJSON(e){return new u(e.fields??[],h(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const n=[];for(const e of this.fields){const t=e?.name,i=(0,a.GZ)(t);if(t&&i){const r=(0,a.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(r,e),this._normalizedFieldsMap.set(i,e),n.push(`${r}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.te)(e)||(0,a.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}n.sort(),this.uid=n.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.te)(e)||(0,a.Xz)(e)||e.nullable||void 0!==(0,a.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,a.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(r.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new i.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):c.has(t.type)?o.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,s.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const c=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function h(e){const t=new Map;if(!e.fields)return t;const n=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:r}=e,s=(i?"startField"in i?i.startField:i.startTimeField:"")??"",u=(i?"endField"in i?i.endField:i.endTimeField:"")??"",h=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,l.ZS)(e.dateFieldsTimeReference):null,d=r?function(e){return"timeZone"in e}(r)?r.timeZone??h:r.dateFieldsTimeReference?(0,l.ZS)(r.dateFieldsTimeReference):h??"UTC":null,m=i?function(e){return"timeZone"in e}(i)?i.timeZone??h:i.timeReference?(0,l.ZS)(i.timeReference):h:null,f=new Map([[(0,a.NF)(r?.creationDateField??""),d],[(0,a.NF)(r?.editDateField??""),d],[(0,a.NF)(s),m],[(0,a.NF)(u),m]]);for(const{name:i,type:r}of e.fields)if(c.has(r))t.set(i,o.L);else if("date"!==r&&"esriFieldTypeDate"!==r)t.set(i,null);else if(n)t.set(i,o.L);else{const e=f.get((0,a.NF)(i??""))??h;t.set(i,e)}return t}},61760(e,t,n){n.d(t,{PU:()=>s,YW:()=>o,hv:()=>a,zp:()=>r}),n(34727);var i=n(90629);function r(e){return(0,i.PN)(2.4*e)}function s(e){return(0,i.Lz)(e)/2.4}function a(e,t,n){const i=Math.sqrt(e**2+t**2)/n;return i>1?0:3/(Math.PI*n**2)*(1-i**2)**2}function o(e){return"function"==typeof e?e:e?t=>+t[e]:()=>1}n(78955),n(91829)},9760(e,t,n){n.d(t,{A:()=>c});var i=n(32198),r=n(66552),s=n(25482),a=n(91429),o=n(93223);const l=new r.J({esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation",esriClassifyDefinedInterval:"defined-interval"}),u=new r.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});let c=class extends s.o{constructor(e){super(e),this.type="class-breaks-definition",this.breakCount=null,this.classificationField=null,this.classificationMethod=null,this.normalizationField=null,this.normalizationType=null}set standardDeviationInterval(e){"standard-deviation"===this.classificationMethod&&this._set("standardDeviationInterval",e)}set definedInterval(e){"defined-interval"===this.classificationMethod&&this._set("definedInterval",e)}};(0,i.Cg)([(0,o.e)({classBreaksDef:"class-breaks-definition"})],c.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"breakCount",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"classificationField",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{read:l.read,write:l.write}})],c.prototype,"classificationMethod",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"normalizationField",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:u.read,write:u.write}})],c.prototype,"normalizationType",void 0),(0,i.Cg)([(0,a.MZ)({value:null,json:{write:!0}})],c.prototype,"standardDeviationInterval",null),(0,i.Cg)([(0,a.MZ)({value:null,json:{write:!0}})],c.prototype,"definedInterval",null),c=(0,i.Cg)([(0,a.$K)("esri.rest.support.ClassBreaksDefinition")],c)},84892(e,t,n){n.d(t,{t:()=>s});var i=n(53966);function r(e,t){return Number(e.toFixed(t))}function s(e,t){const{normalizationTotal:n}=e;return{classBreaks:a(e,t),normalizationTotal:n}}function a(e,t){const n=e.definition,{classificationMethod:i,normalizationType:s,definedInterval:a}=n,u=n.breakCount??1,c=[];let h=e.values;if(0===h.length)return[];h=h.sort((e,t)=>e-t);const[d,m]=t??[h.at(0),h.at(-1)];if("equal-interval"===i)if(h.length>=u){const e=(m-d)/u;let t=d;for(let n=1;n<u;n++){const i=r(d+n*e,6);c.push({minValue:t,maxValue:i,label:o(t,i,s)}),t=i}c.push({minValue:t,maxValue:m,label:o(t,m,s)})}else h.forEach(e=>{c.push({minValue:e,maxValue:e,label:o(e,e,s)})});else if("natural-breaks"===i){const t=function(e){const t=[],n=[];let i=Number.MIN_VALUE,r=1,s=-1;for(let a=0;a<e.length;a++){const o=e[a];o===i?(r++,n[s]=r):null!==o&&(t.push(o),i=o,r=1,n.push(r),s++)}return{uniqueValues:t,valueFrequency:n}}(h),n=e.valueFrequency||t.valueFrequency,i=l(t.uniqueValues,n,u);let a=d;for(let e=1;e<u;e++)if(t.uniqueValues.length>e){const n=r(t.uniqueValues[i[e]],6);c.push({minValue:a,maxValue:n,label:o(a,n,s)}),a=n}c.push({minValue:a,maxValue:m,label:o(a,m,s)})}else if("quantile"===i)if(h.length>=u&&d!==m){let e=d,t=Math.ceil(h.length/u),n=0;for(let i=1;i<u;i++){let r=t+n-1;r>h.length&&(r=h.length-1),r<0&&(r=0),c.push({minValue:e,maxValue:h[r],label:o(e,h[r],s)}),e=h[r],n+=t,t=Math.ceil((h.length-n)/(u-i))}c.push({minValue:e,maxValue:m,label:o(e,m,s)})}else{let e=-1;for(let t=0;t<h.length;t++){const n=h[t];n!==e&&(e=n,c.push({minValue:e,maxValue:n,label:o(e,n,s)}),e=n)}}else if("standard-deviation"===i){const e=function(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t/=e.length,t}(h),t=function(e,t){let n=0;for(let i=0;i<e.length;i++){const r=e[i];n+=(r-t)*(r-t)}return n/=e.length,Math.sqrt(n)}(h,e);if(0===t)c.push({minValue:h[0],maxValue:h[0],label:o(h[0],h[0],s)});else{const n=function(e,t,n,i,r){let s=Math.max(i-e,t-i)/r/n;return s=s>=1?1:s>=.5?.5:.25,s}(d,m,u,e,t)*t;let i=0,a=d;for(let t=u;t>=1;t--){const l=r(e-(t-.5)*n,6);c.push({minValue:a,maxValue:l,label:o(a,l,s)}),a=l,i++}let l=r(e+.5*n,6);c.push({minValue:a,maxValue:l,label:o(a,l,s)}),a=l,i++;for(let t=1;t<=u;t++)l=i===2*u?m:r(e+(t+.5)*n,6),c.push({minValue:a,maxValue:l,label:o(a,l,s)}),a=l,i++}}else if("defined-interval"===i){if(!a)return c;const[e,n]=t??[h.at(0),h.at(-1)],i=Math.ceil((n-e)/a);let l=e;for(let t=1;t<i;t++){const n=r(e+t*a,6);c.push({minValue:l,maxValue:n,label:o(l,n,s)}),l=n}c.push({minValue:l,maxValue:n,label:o(l,n,s)})}return c}function o(e,t,n){let i=null;return i=e===t?n&&"percent-of-total"===n?e+"%":e.toString():n&&"percent-of-total"===n?e+"% - "+t+"%":e+" - "+t,i}function l(e,t,n){const i=e.length,r=[];n>i&&(n=i);for(let e=0;e<n;e++)r.push(Math.round(e*i/n-1));r.push(i-1);let s=u(r,e,t,n);return function(e,t,n,i,r,s){let a=0,o=0,l=0,u=0,h=!0;for(let d=0;d<2&&h;d++){0===d&&(h=!1);for(let d=0;d<s-1;d++)for(;n[d+1]+1!==n[d+2];){n[d+1]=n[d+1]+1;const s=c(d,n,i,r);l=s.sbMean,a=s.sbSdcm;const m=c(d+1,n,i,r);if(u=m.sbMean,o=m.sbSdcm,!(a+o<t[d]+t[d+1])){n[d+1]=n[d+1]-1;break}t[d]=a,t[d+1]=o,e[d]=l,e[d+1]=u,h=!0}for(let d=s-1;d>0;d--)for(;n[d]!==n[d-1]+1;){n[d]=n[d]-1;const s=c(d-1,n,i,r);l=s.sbMean,a=s.sbSdcm;const m=c(d,n,i,r);if(u=m.sbMean,o=m.sbSdcm,!(a+o<t[d-1]+t[d])){n[d]=n[d]+1;break}t[d-1]=a,t[d]=o,e[d-1]=l,e[d]=u,h=!0}}return h}(s.mean,s.sdcm,r,e,t,n)&&(s=u(r,e,t,n)),r}function u(e,t,n,i){let r=[],s=[],a=[],o=0;const l=[],u=[];for(let r=0;r<i;r++){const i=c(r,e,t,n);l.push(i.sbMean),u.push(i.sbSdcm),o+=u[r]}let h,d=o,m=!0;for(;m||o<d;){m=!1,r=[];for(let t=0;t<i;t++)r.push(e[t]);for(let n=0;n<i;n++)for(let r=e[n]+1;r<=e[n+1];r++)if(h=t[r],n>0&&r!==e[n+1]&&Math.abs(h-l[n])>Math.abs(h-l[n-1]))e[n]=r;else if(n<i-1&&e[n]!==r-1&&Math.abs(h-l[n])>Math.abs(h-l[n+1])){e[n+1]=r-1;break}d=o,o=0,s=[],a=[];for(let r=0;r<i;r++){s.push(l[r]),a.push(u[r]);const i=c(r,e,t,n);l[r]=i.sbMean,u[r]=i.sbSdcm,o+=u[r]}}if(o>d){for(let t=0;t<i;t++)e[t]=r[t],l[t]=s[t],u[t]=a[t];o=d}return{mean:l,sdcm:u}}function c(e,t,n,r){let s=0,a=0;for(let i=t[e]+1;i<=t[e+1];i++){const e=r[i];s+=n[i]*e,a+=e}a<=0&&i.A.getLogger("esri.rest.support.generateRendererUtils").warn("Exception in Natural Breaks calculation");const o=s/a;let l=0;for(let i=t[e]+1;i<=t[e+1];i++)l+=r[i]*(n[i]-o)**2;return{sbMean:o,sbSdcm:l}}},26412(e,t,n){n.r(t),n.d(t,{classBreaks:()=>b,heatmapStatistics:()=>w,histogram:()=>_,summaryStatistics:()=>y,uniqueValues:()=>v}),n(49186);var i=n(90629),r=n(88930),s=n(86738),a=n(16930),o=n(62577),l=n(21325),u=n(95466),c=n(30524),h=n(61760),d=n(4560),m=n(1873),f=n(43668);let g;async function p(e,t,n=!0){if(!t)return[];const{field:i,field2:s,field3:o,fieldDelimiter:l,sqlExpression:h,fieldInfos:p,timeZone:y}=e,v=i&&p?.find(e=>e.name.toLowerCase()===i.toLowerCase()),b=!!v&&(0,c.OH)(v),_=!!v&&(0,d.fs)(v),w=e.valueExpression,M=e.normalizationType,T=e.normalizationField,x=e.normalizationTotal,F=[],C=e.viewInfoParams;let S,I=null;if(w){if(!g){const{arcadeUtils:e}=await(0,f.l)();g=e}g.hasGeometryOperations(w)&&await g.enableGeometryOperations(),I=g.createFunction(w),S=C?g.getViewInfo({viewingMode:C.viewingMode,scale:C.scale,spatialReference:new a.A(C.spatialReference)}):null}const z=e.fieldInfos,V=t[0]&&"declaredClass"in t[0]&&"esri.Graphic"===t[0].declaredClass||!z?null:{fields:z};for await(const e of t){const t=e.attributes;let a;if(h){const t=await(0,d.j4)(h,new u.A(z));t&&(a=t.calculateValue(e.attributes))}else if(w){const t=V?Object.assign({},e,{layer:V}):e,n=g.createExecContext(t,S,y);a=g.executeFunction(I,n)}else t&&(a=t[i],s?(a=`${(0,m.gJ)(a)}${l}${(0,m.gJ)(t[s])}`,o&&(a=`${a}${l}${(0,m.gJ)(t[o])}`)):"string"==typeof a&&n&&(_?a=a?new Date(a).getTime():null:b&&(a=a?(0,r.rb)(a):null)));if(M&&"number"==typeof a&&isFinite(a)){const e=t&&parseFloat(t[T]);a=(0,m.zS)(a,M,e,x)}F.push(a)}return F}async function y(e){const{attribute:t,features:n}=e,{normalizationType:i,normalizationField:r,minValue:s,maxValue:a,fieldType:o,outStatisticTypes:l}=t,u=await p({field:t.field,valueExpression:t.valueExpression,normalizationType:i,normalizationField:r,normalizationTotal:t.normalizationTotal,viewInfoParams:t.viewInfoParams,timeZone:t.timeZone,fieldInfos:t.fieldInfos},n),c=(0,m.Vb)({normalizationType:i,normalizationField:r,minValue:s,maxValue:a}),h={value:.5,fieldType:o},d="esriFieldTypeString"===o?(0,m.z9)({values:u,supportsNullCount:c,percentileParams:h,outStatisticTypes:l}):(0,m.G_)({values:u,minValue:s,maxValue:a,useSampleStdDev:!i,supportsNullCount:c,percentileParams:h,outStatisticTypes:l});return(0,m.oZ)(d,l,"esriFieldTypeDate"===o)}async function v(e){const{attribute:t,features:n}=e,i=await p({field:t.field,field2:t.field2,field3:t.field3,fieldDelimiter:t.fieldDelimiter,valueExpression:t.valueExpression,viewInfoParams:t.viewInfoParams,timeZone:t.timeZone,fieldInfos:t.fieldInfos},n,!1),r=(0,m.b3)(i);return(0,m.lv)(r,t.domains,t.returnAllCodedValues,t.fieldDelimiter)}async function b(e){const{attribute:t,features:n}=e,{field:i,normalizationType:r,normalizationField:s,normalizationTotal:a,classificationMethod:o}=t,l=await p({field:i,valueExpression:t.valueExpression,normalizationType:r,normalizationField:s,normalizationTotal:a,viewInfoParams:t.viewInfoParams,timeZone:t.timeZone,fieldInfos:t.fieldInfos},n),u=(0,m.Rw)(l,{field:i,normalizationType:r,normalizationField:s,normalizationTotal:a,classificationMethod:o,standardDeviationInterval:t.standardDeviationInterval,numClasses:t.numClasses,minValue:t.minValue,maxValue:t.maxValue});return(0,m.jM)(u,o)}async function _(e){const{attribute:t,features:n}=e,{field:i,normalizationType:r,normalizationField:s,normalizationTotal:a,classificationMethod:o}=t,l=await p({field:i,valueExpression:t.valueExpression,sqlExpression:t.sqlExpression,normalizationType:r,normalizationField:s,normalizationTotal:a,viewInfoParams:t.viewInfoParams,timeZone:t.timeZone,fieldInfos:t.fieldInfos},n);return(0,m.$y)(l,{field:i,normalizationType:r,normalizationField:s,normalizationTotal:a,classificationMethod:o,standardDeviationInterval:t.standardDeviationInterval,numBins:t.numBins,minValue:t.minValue,maxValue:t.maxValue})}async function w(e){const{attribute:t,features:n}=e,{field:r,radius:a,transform:u,spatialReference:c}=t,d=t.size??[0,0],m=function(e,t,n,i){const r=(0,l.d9)(n)?(0,l.Vp)(n):null,a=r?Math.round((r.valid[1]-r.valid[0])/t.scale[0]):null;return e.map(e=>{const n=new s.A(e.geometry);return(0,o.Gy)(t,n,n),e.geometry=r?function(e,t,n){return e.x<0?e.x+=t:e.x>n&&(e.x-=t),e}(n,a??0,i[0]):n,e})}(n??[],u,c,d);return function(e,t=18,n,r,s){const a=new Float64Array(r*s);t=Math.round((0,i.Lz)(t));let o=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY;const u=(0,h.YW)(n);for(const{geometry:n,attributes:i}of e){const{x:e,y:c}=n,d=Math.max(0,e-t),m=Math.max(0,c-t),f=Math.min(s,c+t),g=Math.min(r,e+t),p=+u(i);for(let n=m;n<f;n++)for(let i=d;i<g;i++){const s=n*r+i,u=(0,h.hv)(i-e,n-c,t)*p,d=a[s]+=u;o=Math.min(o,d),l=Math.max(l,d)}}return{min:o,max:l}}(m,a??void 0,r,d[0],d[1])}},4560(e,t,n){n.d(t,{i0:()=>u,j4:()=>l,fs:()=>o});var i=n(97770),r=n(30524);n(7762),n(84952),n(27865),n(43281),n(98623);var s=n(56400);let a;function o(e){return(0,r.vE)(e)||(0,r.zD)(e)||(0,r.Ah)(e)}async function l(e,t){if(!e)return null;if(!a){const e=await Promise.all([n.e(9696),n.e(2867)]).then(n.bind(n,44123)).then(e=>e.WhereClauseCache);a=new e(50,500)}return a.get(e,t)}function u(e,t){const{format:n,fieldFormat:r,timeZoneOptions:a,fieldType:o}=t??{},l=r?(0,i._m)(r):null;let u,c;if(a&&({timeZone:u,timeZoneName:c}=(0,s.hv)(a.layerTimeZone,a.datesInUnknownTimezone,a.viewTimeZone,l||(0,i.J2)(n||"short-date-short-time"),o)),"string"==typeof e&&isNaN(Date.parse("time-only"===o?`1970-01-01T${e}Z`:e)))return e;switch(o){case"date-only":{const t=l||(0,i.J2)(n||"short-date");return"string"==typeof e?(0,i.iS)(e,{...t}):(0,i.Yq)(e,{...t,timeZone:"UTC"})}case"time-only":{const t=l||(0,i.J2)(n||"short-time");return"string"==typeof e?(0,i.F8)(e,t):(0,i.Yq)(e,{...t,timeZone:"UTC"})}case"timestamp-offset":{const t=n||l||a?l||(0,i.J2)(n||"short-date-short-time"):void 0,r=t?{...t,timeZone:u,timeZoneName:c}:void 0;return"string"==typeof e?(0,i.Ey)(e,r):(0,i.Yq)(e,r)}default:{const t=n||l||a?l||(0,i.J2)(n||"short-date-short-time"):void 0;return(0,i.Yq)("string"==typeof e?new Date(e):e,t?{...t,timeZone:u,timeZoneName:c}:void 0)}}}new Set(["integer","small-integer"])},1873(e,t,n){n.d(t,{$y:()=>L,Ak:()=>A,FM:()=>f,G_:()=>d,Rw:()=>D,Vb:()=>c,b3:()=>I,gJ:()=>u,jM:()=>k,lv:()=>V,oZ:()=>S,qg:()=>m,sU:()=>Z,z9:()=>h,zS:()=>N});var i=n(9760),r=n(84892);const s=/\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*/gi,a=new Set(["esriFieldTypeDate","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeOID","esriFieldTypeBigInteger"]),o=new Set(["esriFieldTypeTimeOnly","esriFieldTypeDateOnly"]),l=["min","max","avg","stddev","count","sum","variance","nullcount","median"];function u(e){return null==e||"string"==typeof e&&!e?"<Null>":e}function c(e){const t=null!=e.normalizationField||null!=e.normalizationType,n=null!=e.minValue||null!=e.maxValue,i=!!e.sqlExpression&&e.supportsSQLExpression;return!t&&!n&&!i}function h(e){const{outStatisticTypes:t}=e,n=e.returnDistinct?[...new Set(e.values)]:e.values,i=n.filter(e=>null!=e).sort(),r=i.length,s={count:r,min:i[0],max:i[r-1]};return e.supportsNullCount&&(s.nullcount=n.length-r),!e.percentileParams||t?.include?.length&&!t.include.includes("median")||t?.exclude?.length&&t.exclude.includes("median")||(s.median=m(n,e.percentileParams)),s}function d(e){const{values:t,useSampleStdDev:n,supportsNullCount:i,outStatisticTypes:r}=e;let s=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY,o=null,l=null,u=null,c=null,h=0;const d=null==e.minValue?-1/0:e.minValue,f=null==e.maxValue?1/0:e.maxValue;for(const e of t)Number.isFinite(e)?e>=d&&e<=f&&(o=null===o?e:o+e,s=Math.min(s,e),a=Math.max(a,e),h++):"string"==typeof e&&h++;if(h&&null!=o){l=o/h;let e=0;for(const n of t)Number.isFinite(n)&&n>=d&&n<=f&&(e+=(n-l)**2);c=n?h>1?e/(h-1):0:h>0?e/h:0,u=Math.sqrt(c)}else s=null,a=null;const g={avg:l,count:h,max:a,min:s,stddev:u,sum:o,variance:c};return i&&(g.nullcount=t.length-h),!e.percentileParams||r?.include?.length&&!r.include.includes("median")||r?.exclude?.length&&r.exclude.includes("median")||(g.median=m(t,e.percentileParams)),g}function m(e,t){const{fieldType:n,value:i,orderBy:r,isDiscrete:s}=t,a=f(n,"desc"===r,"case-insensitive");if(0===(e=[...e].filter(e=>null!=e).sort((e,t)=>a(e,t))).length)return null;if(i<=0)return e[0];if(i>=1)return e[e.length-1];const o=(e.length-1)*i,l=Math.floor(o),u=l+1,c=o%1,h=e[l],d=e[u];return u>=e.length||s||"string"==typeof h||"string"==typeof d?h:h*(1-c)+d*c}function f(e,t,n="case-sensitive"){if(e){if(a.has(e))return F(t);if(o.has(e))return M(t,!0);if("esriFieldTypeTimestampOffset"===e)return function(e){return e?b:v}(t);const i=M(t,"case-sensitive"===n);if("esriFieldTypeString"===e)return i;if("esriFieldTypeGUID"===e||"esriFieldTypeGlobalID"===e)return(e,t)=>i(C(e),C(t))}const i=t?1:-1,r=F(t),s=M(t,"case-sensitive"===n),l=y(t);return(e,t)=>"number"==typeof e&&"number"==typeof t?r(e,t):"string"==typeof e&&"string"==typeof t?s(e,t):l(e,t)??i}const g=(e,t)=>null==e?null==t?0:1:null==t?-1:null,p=(e,t)=>null==e?null==t?0:-1:null==t?1:null;function y(e){return e?g:p}const v=(e,t)=>p(e,t)??(e===t?0:new Date(e).getTime()-new Date(t).getTime()),b=(e,t)=>g(e,t)??(e===t?0:new Date(t).getTime()-new Date(e).getTime()),_=(e,t)=>p(e,t)??(e===t?0:e<t?-1:1),w=(e,t)=>g(e,t)??(e===t?0:e<t?1:-1);function M(e,t){if(t)return e?w:_;const n=y(e);return e?(e,t)=>{const i=n(e,t);return null!=i?i:(e=e.toUpperCase())>(t=t.toUpperCase())?-1:e<t?1:0}:(e,t)=>{const i=n(e,t);return null!=i?i:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}}const T=(e,t)=>g(e,t)??t-e,x=(e,t)=>p(e,t)??e-t;function F(e){return e?T:x}function C(e){return e.slice(24,36)+e.slice(19,23)+e.slice(16,18)+e.slice(14,16)+e.slice(11,13)+e.slice(9,11)+e.slice(6,8)+e.slice(4,6)+e.slice(2,4)+e.slice(0,2)}function S(e,t,n){let i;for(i in e)t?.include?.length&&!t.include.includes(i)||t?.exclude?.length&&t.exclude.includes(i)?delete e[i]:l.includes(i)&&(Number.isFinite(e[i])||(e[i]=null));return n?(["avg","stddev","variance"].forEach(t=>{null!=e[t]&&(e[t]=Math.ceil(e[t]??0))}),e):e}function I(e){const t={};for(let n of e)(null==n||"string"==typeof n&&""===n.trim())&&(n=null),null==t[n]?t[n]={count:1,data:n}:t[n].count++;return{count:t}}function z(e){return"coded-value"!==e?.type?[]:e.codedValues.map(e=>e.code)}function V(e,t,n,i){const r=e.count,s=[];if(n&&t){const e=[],n=z(t[0]);for(const r of n)if(t[1]){const n=z(t[1]);for(const s of n)if(t[2]){const n=z(t[2]);for(const t of n)e.push(`${u(r)}${i}${u(s)}${i}${u(t)}`)}else e.push(`${u(r)}${i}${u(s)}`)}else e.push(r);for(const t of e)r.hasOwnProperty(t)||(r[t]={data:t,count:0})}for(const e in r){const t=r[e];s.push({value:t.data,count:t.count,label:t.label})}return{uniqueValueInfos:s}}function N(e,t,n,i){let r=null;switch(t){case"log":0!==e&&(r=Math.log(e)*Math.LOG10E);break;case"percent-of-total":Number.isFinite(i)&&0!==i&&(r=e/i*100);break;case"field":Number.isFinite(n)&&0!==n&&(r=e/n);break;case"natural-log":e>0&&(r=Math.log(e));break;case"square-root":e>0&&(r=e**.5)}return r}function D(e,t,n){const s=function(e){const{breakCount:t,field:n,normalizationField:r,normalizationType:s}=e,a=e.classificationMethod||"equal-interval",o="standard-deviation"===a?e.standardDeviationInterval||1:void 0,l="defined-interval"===a?e.definedInterval:void 0;return new i.A({breakCount:t,classificationField:n,classificationMethod:a,normalizationField:"field"===s?r:void 0,normalizationType:s,standardDeviationInterval:o,definedInterval:l})}({field:t.field,normalizationType:t.normalizationType,normalizationField:t.normalizationField,classificationMethod:t.classificationMethod,standardDeviationInterval:t.standardDeviationInterval,definedInterval:t.definedInterval,breakCount:t.numClasses||5});return e=function(e,t,n){const i=t??-1/0,r=n??1/0;return e.filter(e=>Number.isFinite(e)&&e>=i&&e<=r)}(e,t.minValue,t.maxValue),(0,r.t)({definition:s,values:e,normalizationTotal:t.normalizationTotal},n)}function k(e,t){let n=e.classBreaks;const i=n.length,r=n[0]?.minValue,a=n[i-1]?.maxValue,o="standard-deviation"===t,l=s;return n=n.map(e=>{const t=e.label,n={minValue:e.minValue,maxValue:e.maxValue,label:t};if(o&&t){const e=t.match(l),i=e?.map(e=>+e.trim())??[];2===i.length?(n.minStdDev=i[0],n.maxStdDev=i[1],i[0]<0&&i[1]>0&&(n.hasAvg=!0)):1===i.length&&(t.includes("<")?(n.minStdDev=null,n.maxStdDev=i[0]):t.includes(">")&&(n.minStdDev=i[0],n.maxStdDev=null))}return n}),{minValue:r,maxValue:a,classBreakInfos:n,normalizationTotal:e.normalizationTotal}}function L(e,t){const n=Z(e,t);if(null==n.min&&null==n.max)return{bins:[],minValue:n.min,maxValue:n.max,normalizationTotal:t.normalizationTotal};const i=n.intervals,r=n.min??0,s=n.max??0,a=i.map((e,t)=>({minValue:i[t][0],maxValue:i[t][1],count:0}));for(const t of e)if(null!=t&&t>=r&&t<=s){const e=A(i,t);e>-1&&a[e].count++}return{bins:a,minValue:r,maxValue:s,normalizationTotal:t.normalizationTotal}}function Z(e,t,n=!1){const{field:i,classificationMethod:r,standardDeviationInterval:s,definedInterval:a,normalizationType:o,normalizationField:l,normalizationTotal:u,minValue:h,maxValue:m}=t,f=t.numBins||10;let g=null,p=null,y=null;if(r&&"equal-interval"!==r||o){const{classBreaks:t}=D(e,{field:i,normalizationType:o,normalizationField:l,normalizationTotal:u,classificationMethod:r,standardDeviationInterval:s,definedInterval:a,minValue:h,maxValue:m,numClasses:f},null!=h&&null!=m?[h,m]:void 0);g=t[0]?.minValue,p=t[t.length-1]?.maxValue,y=t.map(e=>[e.minValue,e.maxValue])}else{if(null!=h&&null!=m)g=h,p=m;else{const t=d({values:e,minValue:h,maxValue:m,useSampleStdDev:!o,supportsNullCount:c({normalizationType:o,normalizationField:l,minValue:h,maxValue:m})});g=t.min??null,p=t.max??null}y=function(e,t,n){const i=(t-e)/n,r=[];let s,a=e;for(let e=1;e<=n;e++)s=a+i,s=Number(s.toFixed(16)),r.push([a,e===n?t:s]),a=s;return r}(g??0,p??0,f)}if(n&&y.length){const e=y.at(-1)[1];y.push([e,e])}return{min:g,max:p,intervals:y}}function A(e,t){let n=-1;for(let i=e.length-1;i>=0;i--)if(t>=e[i][0]){n=i;break}return n}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2741],{2741(e,t,r){r.d(t,{s:()=>i});var s=r(92602),n=(r(11254),r(49186)),o=r(53966),a=r(84952);function i(e){if(!s.A.assetsPath)throw o.A.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new n.A("assets:path-not-set","config.assetsPath is not set");return(0,a.fj)(s.A.assetsPath,e)}},97159(e,t,r){r.d(t,{a:()=>g,c:()=>f,e:()=>y,f:()=>a,i:()=>p,p:()=>m,r:()=>l,t:()=>i,w:()=>u});var s=r(70333),n=r(84952),o=r(39131);function a(e,t){const r=t?.url?.path;if(e&&r&&(e=(0,n.s2)(e,r,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){const r=(0,n.V1)(e,t.portalItem.itemUrl);null!=r&&r.startsWith(d)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(r).path)}return(e=w(e,t?.portal))&&c.test(e)?g(e):e}function i(e,t,r=0){if(null==(e=e&&c.test(e)?v(e):e))return e;!(0,n.oP)(e)&&t?.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let s=(0,n.s2)(e);if(t){const r=t.verifyItemRelativeUrls?.rootPath||t.url?.path;if(r){const o=w(r,t.portal),a=w(s,t.portal);s=(0,n.V1)(a,o,o),null!=s&&s!==a&&s!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(s)}}return s=y(s,t?.portal),(0,n.oP)(s)&&(s=(0,n.S8)(s)),t?.resources&&t?.portalItem&&!(0,n.oP)(s)&&!(0,n.DB)(s)&&0===r&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(s),compress:!1}),s}function l(e,t,r){return a(e,r)}function u(e,t,r,s){const n=i(e,s);void 0!==n&&(t[r]=n)}const c=/\/items\/([^/]+)\/resources\/(.*)/,d="./resources/";function p(e){const t=e?.match(c)??null;return t?.[1]??null}const h=/http.+\/items\/[^/]+/i;function f(e){const t=e&&c.test(e)?e.match(h):null;return t?.[0]??null}function m(e){const t=e?.match(c)??null;if(null==t)return null;const r=t[2],s=r.lastIndexOf("/");if(-1===s){const{path:e,extension:t}=(0,n.xw)(r);return{prefix:null,filename:e,extension:t}}const{path:o,extension:a}=(0,n.xw)(r.slice(s+1));return{prefix:r.slice(0,s),filename:o,extension:a}}function y(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?(0,n.T1)(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}function w(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;const r=`${t.urlKey}.${t.customBaseUrl}`,s=(0,n.Xq)();return(0,n.FX)(s,`${s.scheme}://${r}`)?(0,n.T1)(e,t.portalHostname,r):(0,n.T1)(e,r,t.portalHostname)}function g(e){if(!e)return e||null;let t=e;return t&&s.id&&!s.id.findCredential(t)&&(t=(0,o.qG)(t),t=t.replace(/^https?:\/\/www\.arcgis\.com/,"https://cdn.arcgis.com"),t=t.replace(/^https?:\/\/devext\.arcgis\.com/,"https://cdndev.arcgis.com"),t=t.replace(/^https?:\/\/qaext\.arcgis\.com/,"https://cdnqa.arcgis.com")),t}function v(e){if(!e)return e||null;let t=e;return t=t.replace(/^https?:\/\/cdn\.arcgis\.com/,"https://www.arcgis.com"),t=t.replace(/^https?:\/\/cdndev\.arcgis\.com/,"https://devext.arcgis.com"),t=t.replace(/^https?:\/\/cdnqa\.arcgis\.com/,"https://qaext.arcgis.com"),t&&s.id&&!s.id.findCredential(t)&&(t=(0,o.qG)(t)),t}const q=Object.freeze(Object.defineProperty({__proto__:null,ensureMainOnlineDomain:y,fromCDNUrl:v,fromJSON:a,itemIdFromResourceUrl:p,itemUrlFromResourceUrl:f,prefixAndFilenameFromResourceUrl:m,read:l,toCDNUrl:g,toJSON:i,write:u},Symbol.toStringTag,{value:"Module"}));r.d(t,["b",0,q])},91869(e,t,r){function s(e,t){for(const r of e.values())if(t(r))return!0;return!1}function n(e,t,r){const s=e.get(t);if(void 0!==s)return s;const n=r();return e.set(t,n),n}function o(e){const t=new Map;return r=>(t.has(r)||t.set(r,e(r)),t.get(r))}r.d(t,{Bj:()=>o,Bs:()=>s,tE:()=>n})},60694(e,t,r){r.d(t,{Fi:()=>d,HZ:()=>q,Jf:()=>v,LS:()=>b,Wo:()=>w,bd:()=>S,cr:()=>f,iz:()=>h,qg:()=>p,uV:()=>g,yG:()=>m});var s=r(84952),n=r(39131),o=r(97159);const a={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",knowledgegraphserver:"KnowledgeGraphServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer","3dtilesserver":"3DTilesServer",videoserver:"VideoServer"},i=Object.values(a),l=new RegExp(`^(?<path>(?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(?<serviceTitle>.+?)\\/(?<serverType>${i.join("|")})(?:\\/exts\\/(?<soeTitle>.+?)\\/(?<soeServerType>${i.join("|")}))?)(?:\\/(?:layers))?(?:\\/(?<sublayer>\\d+))?`,"i"),u=new RegExp(`^(?<path>(?:https?:)?\\/\\/\\S+?\\/(?<serviceTitle>[^/\\n]+)\\/(?<serverType>${i.join("|")}))(?:\\/(?:layers))?(?:\\/(?<sublayer>\\d+))?`,"i"),c=/(.*?)\/(?:layers\/)?(\d+)\/?$/i;function d(e){return l.test(e)}function p(e){if(null==e)return null;const t=(0,s.An)(e),r=t?.path.match(l)||t?.path.match(u);if(!r)return null;const{path:n,serviceTitle:o,serverType:i,soeTitle:c,soeServerType:d,sublayer:p}=r.groups??{},h=c||o,m=h.indexOf("/");return{title:f(-1!==m?h.slice(m+1):h),serverType:a[(d||i).toLowerCase()],sublayer:null!=p&&""!==p?parseInt(p,10):null,url:{path:n}}}function h(e){const t=(0,s.An)(e).path.match(c);return t?{serviceUrl:t[1],sublayerId:Number(t[2])}:null}function f(e){return(e=e.replaceAll(/\s*[/_]+\s*/g," "))[0].toUpperCase()+e.slice(1)}function m(e,t){const r=[];if(e){const t=p(e);null!=t&&t.title&&r.push(t.title)}if(t){const e=f(t);r.push(e)}if(2===r.length){if(r[0].toLowerCase().includes(r[1].toLowerCase()))return r[0];if(r[1].toLowerCase().includes(r[0].toLowerCase()))return r[1]}return r.join(" - ")}const y=["services","features","tiles","elevation3d","basemaps3d"];function w(e){let t=(0,s.$z)(e,!0);return!!t&&(t=t.toLowerCase(),!!t.endsWith(".arcgis.com")&&(!!y.some(e=>t.startsWith(e))||/^[a-z\d-]+\.svcs[a-z\d-]*\./.test(t)))}function g(e){return(0,n.$E)(e)&&function(e){const t=(0,s.$z)(e);return!!t&&t.toLowerCase().endsWith(".arcgis.com")}(e)}function v(e,t){return e?(0,s.UC)((0,s.zi)(e,t)):e}function q(e){let{url:t}=e;if(!t)return{url:t};t=(0,s.zi)(t,e.logger);const r=(0,s.An)(t),n=p(r.path);let o;if(null!=n)null!=n.sublayer&&null==e.layer.layerId&&(o=n.sublayer),t=n.url.path;else if(e.nonStandardUrlAllowed){const e=h(r.path);null!=e&&(t=e.serviceUrl,o=e.sublayerId)}return{url:(0,s.UC)(t),layerId:o}}function b(e,t,r,n,a){(0,o.w)(t,n,"url",a),n.url&&null!=e.layerId&&(n.url=(0,s.fj)(n.url,r,e.layerId.toString()))}function S(e){if(!e)return!1;const t=e.toLowerCase(),r=t.includes("/services/"),s=t.includes("/mapserver/wmsserver"),n=t.includes("/imageserver/wmsserver"),o=t.includes("/wmsserver");return r&&(s||n||o)}},11254(e,t,r){r.d(t,{A:()=>w});var s=r(92602),n=r(49186),o=r(44208),a=r(17676),i=r(84952),l=r(56152),u=r(65592),c=r(91869),d=r(60694);async function p(e){const t=function(e){let t,r=!1;return"string"==typeof e?(t=(0,i.$z)(e,!0),r=(0,d.Wo)(e)):(t=e.origin,r=(0,d.Wo)(e.toString())),null==t?null:new y(t,r)}(e.parameters.url);if(!t)return null;const{QueueProcessor:s,SharedConcurrency:n}=await r.e(563).then(r.bind(r,563));return(0,c.tE)(h,t.origin,()=>{const e=(t.isHosted?(0,o.A)("request-queue-concurrency-hosted"):(0,o.A)("request-queue-concurrency-non-hosted"))??4;return f??=new n((0,o.A)("request-queue-concurrency-global")??50),new s({concurrency:e,sharedConcurrency:f,process:e=>{if((0,a.G4)(e.parameters.requestOptions))throw(0,u.YB)("",(0,a.NK)("Request canceled"),e.parameters);return(0,u.zc)(e)}})})}const h=new Map;let f,m;class y{constructor(e,t){this.origin=e,this.isHosted=t}}async function w(e,t){e instanceof URL&&(e=e.toString());const s=(0,i.DB)(e),n=(0,i.w8)(e);n||s||(e=(0,i.S8)(e));const c={url:e,requestOptions:{...t}};t?.query&&(c.requestOptions.query=t?.query instanceof URLSearchParams?(0,i.zf)(t.query.toString().replaceAll("+"," ")):t?.query);const d=e=>({data:e,getAllHeaders:v,getHeader:v,httpStatus:200,requestOptions:c.requestOptions,url:c.url}),h=(0,i.sC)(e,g.internalInterceptors);if(h){const e=await q(h,c);if(null!=e)return d(e)}let f=(0,i.sC)(e);if(f){const e=await q(f,c);if(null!=e)return d(e);f.after||f.error||(f=null)}if(e=c.url,"image"===(t=c.requestOptions).responseType&&((0,o.A)("host-webworker")||(0,o.A)("host-node")))throw(0,u.YB)("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),c);if("head"===t.method){if(t.body)throw(0,u.YB)("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),c);if(s||n)throw(0,u.YB)("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),c)}if(await async function(){(0,o.A)("host-webworker")&&(!m&&globalThis.invokeStaticMessage?m=await r.e(369).then(r.bind(r,40369)):l.i.isForeignWorker=!0)}(),m)return m.execute(e,t);const y=new AbortController,w=(0,a.u7)(t,()=>y.abort()),b={controller:y,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:f,parameters:c,redoRequest:!1,useIdentity:g.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},S=t.useQueue?async function(e){const t=await p(e);return t?t.push(e):(0,u.zc)(e)}(b):(0,u.zc)(b),T=await S.finally(()=>w?.remove());return f?.after?.(T),T}const g=s.A.request,v=()=>null;async function q(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,s;try{s=await e.before(t)}catch(e){r=(0,u.YB)("request:interceptor",e,t)}if((s instanceof Error||s instanceof n.A)&&(r=(0,u.YB)("request:interceptor",s,t)),r)throw e.error&&e.error(r),r;return s}}},56152(e,t,r){r.d(t,["i",0,{corsServers:["https://server.arcgisonline.com","https://services.arcgisonline.com"],beforeFetch:void 0,afterFetch:void 0,isForeignWorker:!1}])},95117(e,t,r){r.d(t,{y:()=>n});var s=r(17676);function n(e,t,r=!1,n){return new Promise((o,a)=>{if((0,s.G4)(n))return void a((0,s.NK)());let i=()=>{c(),a(new Error(`Unable to load ${t}`))},l=async()=>{const t=e;try{await t.decode()}catch{}c(),o(t)},u=()=>{if(!e)return;const t=e;c(),t.src="",a((0,s.NK)())};const c=()=>{e&&(e.removeEventListener("error",i),e.removeEventListener("load",l),i=null,l=null,e=null,n?.removeEventListener("abort",u),u=null,r&&URL.revokeObjectURL(t))};n?.addEventListener("abort",u),e.addEventListener("error",i),e.addEventListener("load",l)})}},65592(e,t,r){r.d(t,{YB:()=>x,c8:()=>$,zc:()=>b});var s=r(92602),n=r(70333),o=r(49186),a=r(44208),i=r(4718),l=r(17676),u=r(84952),c=r(39131),d=r(56152),p=r(95117),h=r(60694);const f=new Map;function m(e,t){const r=t?.preferredHost;if(!r||(0,u.FX)(e,`https://${r}`,!0))return;const s=(0,h.qg)(e);if(!s||"FeatureServer"!==s.serverType||(0,c.$E)(e))return;const n=s.url.path.toLowerCase();f.has(n)||f.set(n,r)}function y(e){const t=(0,h.qg)(e)?.url.path.toLowerCase();if(!t)return e;const r=f.get(t);return r?(0,u.hf)(e,r):e}const w="FormData"in globalThis,g=new Set([499,498,403,401]),v=new Set(["COM_0056","COM_0057","SB_0008"]),q=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i];async function b(e){let t,o;await async function(e){const t=e.parameters.url,o=e.parameters.requestOptions,a=e.controller.signal,i=o.body;let u=null,c=null;if(w&&"HTMLFormElement"in globalThis&&(i instanceof FormData?u=i:i instanceof HTMLFormElement&&(u=new FormData(i))),"string"==typeof i&&(c=i),e.fetchOptions={cache:o.cacheMode??(o.cacheBust?"no-cache":"default"),credentials:"same-origin",headers:o.headers||{},keepalive:o.keepAlive??!1,method:"head"===o.method?"HEAD":"GET",mode:"cors",priority:o.priority??s.A.request.priority,redirect:"follow",signal:a},(u||c)&&(e.fetchOptions.body=u||c),(d.i.isForeignWorker||"anonymous"===o.authMode)&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||o.query?.token||u?.get("token")),!e.hasToken){const{getApiKey:s,getSessionToken:n}=await r.e(926).then(r.bind(r,926)),a=await n(t)??s(t);a&&(o.query??={},o.query.token=a,e.hasToken=!0)}if(e.useIdentity&&!e.hasToken&&!e.credential&&!e.credentialToken&&!O(t)&&!(0,l.G4)(a)){let r;"immediate"===o.authMode?(await A(),r=await n.id.getCredential(t,{signal:a})):"no-prompt"===o.authMode?(await A(),r=await n.id.getCredential(t,{prompt:!1,signal:a}).catch(()=>{})):n.id&&(r=n.id.findCredential(t)),r&&(e.credential=r,e.credentialToken=r.token,e.useSSL=!!r.ssl)}}(e);try{do{[t,o]=await S(e)}while(!await L(e,t,o))}catch(r){const s=x("request:server",r,e.parameters,t);throw s.details.ssl=e.useSSL,e.interceptor?.error?.(s),s}const a=e.parameters.url;if(o)if(/\/sharing\/rest\/(accounts|portals)\/self/i.test(a)){if(!e.hasToken&&!e.credentialToken&&o.user?.username&&!(0,u.FL)(a)){const e=(0,u.$z)(a,!0);e&&s.A.request.trustedServers.push(e)}Array.isArray(o.authorizedCrossOriginNoCorsDomains)&&function(e){s.A.request.crossOriginNoCorsDomains||(s.A.request.crossOriginNoCorsDomains={});const t=s.A.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[(0,u.$z)(r)??""]=0:(t[(0,u.$z)("http://"+r)??""]=0,t[(0,u.$z)("https://"+r)??""]=0)}(o.authorizedCrossOriginNoCorsDomains)}else"json"===(e.parameters.requestOptions.responseType||"json")&&m(a,o);const i=e.credential;if(i&&n.id){const e=n.id.findServerInfo(i.server);let t=e?.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=n.id.findCredential(t,i.userId);e&&-1===n.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:o,getAllHeaders:t?()=>Array.from(t.headers):E,getHeader:t?e=>t.headers.get(e):E,httpStatus:t?.status??200,requestOptions:e.parameters.requestOptions,ssl:e.useSSL,url:e.parameters.url}}async function S(e){let t=e.parameters.url,r=y(t);const o=e.parameters.requestOptions,i=e.fetchOptions??{},p=(0,u.w8)(t)||(0,u.DB)(t),h=o.responseType??"json",f=p?0:null!=o.timeout?o.timeout:s.A.request.timeout;let m=!1;if(!p){e.useSSL&&(t=(0,u.lM)(t));let l={...o.query};e.credentialToken&&(l.token=e.credentialToken);let d=(0,u.x0)(l);(0,a.A)("esri-url-encodes-apostrophe")&&(d=d.replaceAll("'","%27"));const p=r.length+1+d.length;let h;m="delete"===o.method||"post"===o.method||"put"===o.method||!!o.body||p>s.A.request.maxUrlLength;const f=o.useProxy||!!(0,u.zs)(t);if(f){const e=(0,u.s_)(t);h=e.path,!m&&h.length+1+p>s.A.request.maxUrlLength&&(m=!0),e.query&&(l={...e.query,...l})}if("HEAD"===i.method&&(m||f)){if(m){if(p>s.A.request.maxUrlLength)throw x("request:invalid-parameters",new Error("URL exceeds maximum length"),e.parameters);throw x("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.parameters)}if(f)throw x("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.parameters)}if(m?(i.method="delete"===o.method?"DELETE":"put"===o.method?"PUT":"POST",o.body?t=(0,u.a6)(t,l):(i.body=(0,u.x0)(l),i.headers||(i.headers={}),i.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,u.a6)(t,l),f&&(e.useProxy=!0,t=`${h}?${t}`),l.token&&w&&i.body instanceof FormData&&!(0,c.$E)(t)&&i.body.set("token",l.token),o.hasOwnProperty("withCredentials"))e.withCredentials=o.withCredentials;else if(!(0,u.FX)(t,(0,u.Xq)()))if((0,u.FL)(t))e.withCredentials=!0;else if(n.id){const r=n.id.findServerInfo(t);r?.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(i.credentials="include",function(e){const t=s.A.request.crossOriginNoCorsDomains;if(t){let r=(0,u.$z)(e);if(r)return r=r.toLowerCase(),!(0,u.FX)(r,(0,u.Xq)())&&t[r]<Date.now()-36e5}return!1}(t)&&await async function(e){const t=(0,u.An)(e);e=t.path,"json"===t.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}const r=s.A.request.crossOriginNoCorsDomains,n=(0,u.$z)(e);r&&n&&(r[n.toLowerCase()]=Date.now())}(m?(0,u.a6)(t,l):t)),r=y(t)}let g,v,q=0,b=!1;f>0&&(q=setTimeout(()=>{b=!0,e.controller.abort()},f));try{if("native-request-init"===o.responseType)v=i,v.url=r,o.signal?v.signal=o.signal:delete v.signal;else if("image"!==o.responseType||"default"!==i.cache||i.keepalive||"GET"!==i.method||m||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(o.headers)||!p&&!e.useProxy&&s.A.request.proxyUrl&&!C(t)){if(await(d.i.beforeFetch?.(t,i)),g=await fetch(r,i),await(d.i.afterFetch?.(g)),e.useProxy||function(e){const t=(0,u.$z)(e);t&&!d.i.corsServers.includes(t)&&d.i.corsServers.push(t)}(t),"native"===o.responseType)v=g;else if("HEAD"!==i.method)if(g.ok){switch(h){case"array-buffer":v=await g.arrayBuffer();break;case"blob":case"image":v=await g.blob();break;default:v=await g.text()}if(q&&(clearTimeout(q),q=0),"json"===h||"xml"===h||"document"===h)if(v)switch(h){case"json":v=JSON.parse(v);break;case"xml":v=k(v,"application/xml");break;case"document":v=k(v,"text/html")}else v=null;if(v){if(("array-buffer"===h||"blob"===h)&&v["blob"===h?"size":"byteLength"]<=750)try{const e=await new Response(v).json();e.error&&(v=e)}catch{}"image"===h&&v instanceof Blob&&(v=await T(URL.createObjectURL(v),e,!0))}}else{v=await g.text();try{v=JSON.parse(v)}catch{}}}else v=await T(r,e)}catch(r){if("AbortError"===r.name){if(b)throw new Error(P);throw(0,l.NK)("Request canceled")}if(!(!g&&r instanceof TypeError&&s.A.request.proxyUrl)||o.body||"delete"===o.method||"head"===o.method||"post"===o.method||"put"===o.method||e.useProxy||C(t))throw r;e.redoRequest=!0,(0,u.oy)({proxyUrl:s.A.request.proxyUrl,urlPrefix:(0,u.$z)(t)??""})}finally{q&&clearTimeout(q)}return[g,v]}function T(e,t,r=!1){const n=t.controller.signal,o=new Image;return t.withCredentials?o.crossOrigin="use-credentials":o.crossOrigin="anonymous",o.alt="",o.fetchPriority=s.A.request.priority,o.src=e,(0,p.y)(o,e,r,n)}function C(e){const t=(0,u.$z)(e);return!t||t.endsWith(".arcgis.com")||d.i.corsServers.includes(t)||(0,u.FL)(t)}async function A(){n.id||await Promise.all([r.e(5620),r.e(7736),r.e(4372),r.e(9358),r.e(9530),r.e(8094)]).then(r.bind(r,50148))}function O(e){return q.some(t=>t.test(e))}function k(e,t){let r;try{r=(new DOMParser).parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function L(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;const s=e.parameters.requestOptions;if(!t||"native"===s.responseType||"native-request-init"===s.responseType)return!0;let o,a;if(r&&(r.error&&"object"==typeof r.error?o=r.error:"error"===r.status&&Array.isArray(r.messages)&&(o={...r},o[U]=r,o.details=r.messages)),!o&&!t.ok)throw o=new Error(`Unable to load ${t.url} status: ${t.status}`),o[U]=r,o;let i,l=null;o&&(a=Number(o.code),l=o.hasOwnProperty("subcode")?Number(o.subcode):null,i=o.messageCode,i=i?.toUpperCase());const u=s.authMode;if(403===a&&(4===l||o.message?.toLowerCase().includes("ssl")&&!o.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===a)&&void 0!==a&&g.has(a)&&!O(e.parameters.url)&&(403!==a||(!i||!v.has(i))&&(null==l||2===l&&e.credentialToken))){await A();try{const t=await n.id.getCredential(e.parameters.url,{error:x("request:server",o,e.parameters),credential:e.credential,prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===u)return e.credential=void 0,e.credentialToken=void 0,!1;o=t}}if(o)throw o;return!0}function x(e,t,r,s){let n;const a={url:r.url,requestOptions:r.requestOptions,getAllHeaders:E,getHeader:E,ssl:!1};if(t instanceof o.A)return t.details?(t.details=(0,i.o8)(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=a,t;if(t){const e=s&&(()=>Array.from(s.headers)),r=s&&(e=>s.headers.get(e)),o=s?.status,i=t.message;i&&(n=i),e&&r&&(a.getAllHeaders=e,a.getHeader=r),a.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||o||0,a.subCode=t.subcode,a.messageCode=t.messageCode,"string"==typeof t.details?(a.messages=[t.details],n??=t.details):(a.messages=t.details,n??=a.messages?.[0]),a.raw=U in t?t[U]:t}return n??="Error",(0,l.zf)(t)?(0,l.NK)():new o.A(e,n,a)}const U=Symbol(),E=()=>null,P="Timeout exceeded";function $(e){return"object"==typeof e&&!!e&&"message"in e&&e.message===P}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2741],{2741(e,t,r){r.d(t,{s:()=>i});var s=r(92602),n=(r(11254),r(49186)),o=r(53966),a=r(84952);function i(e){if(!s.A.assetsPath)throw o.A.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new n.A("assets:path-not-set","config.assetsPath is not set");return(0,a.fj)(s.A.assetsPath,e)}},97159(e,t,r){r.d(t,{a:()=>g,c:()=>f,e:()=>y,f:()=>a,i:()=>p,p:()=>m,r:()=>l,t:()=>i,w:()=>u});var s=r(70333),n=r(84952),o=r(39131);function a(e,t){const r=t?.url?.path;if(e&&r&&(e=(0,n.s2)(e,r,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){const r=(0,n.V1)(e,t.portalItem.itemUrl);null!=r&&r.startsWith(d)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(r).path)}return(e=w(e,t?.portal))&&c.test(e)?g(e):e}function i(e,t,r=0){if(null==(e=e&&c.test(e)?v(e):e))return e;!(0,n.oP)(e)&&t?.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let s=(0,n.s2)(e);if(t){const r=t.verifyItemRelativeUrls?.rootPath||t.url?.path;if(r){const o=w(r,t.portal),a=w(s,t.portal);s=(0,n.V1)(a,o,o),null!=s&&s!==a&&s!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(s)}}return s=y(s,t?.portal),(0,n.oP)(s)&&(s=(0,n.S8)(s)),t?.resources&&t?.portalItem&&!(0,n.oP)(s)&&!(0,n.DB)(s)&&0===r&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(s),compress:!1}),s}function l(e,t,r){return a(e,r)}function u(e,t,r,s){const n=i(e,s);void 0!==n&&(t[r]=n)}const c=/\/items\/([^/]+)\/resources\/(.*)/,d="./resources/";function p(e){const t=e?.match(c)??null;return t?.[1]??null}const h=/http.+\/items\/[^/]+/i;function f(e){const t=e&&c.test(e)?e.match(h):null;return t?.[0]??null}function m(e){const t=e?.match(c)??null;if(null==t)return null;const r=t[2],s=r.lastIndexOf("/");if(-1===s){const{path:e,extension:t}=(0,n.xw)(r);return{prefix:null,filename:e,extension:t}}const{path:o,extension:a}=(0,n.xw)(r.slice(s+1));return{prefix:r.slice(0,s),filename:o,extension:a}}function y(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?(0,n.T1)(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}function w(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;const r=`${t.urlKey}.${t.customBaseUrl}`,s=(0,n.Xq)();return(0,n.FX)(s,`${s.scheme}://${r}`)?(0,n.T1)(e,t.portalHostname,r):(0,n.T1)(e,r,t.portalHostname)}function g(e){if(!e)return e||null;let t=e;return t&&s.id&&!s.id.findCredential(t)&&(t=(0,o.qG)(t),t=t.replace(/^https?:\/\/www\.arcgis\.com/,"https://cdn.arcgis.com"),t=t.replace(/^https?:\/\/devext\.arcgis\.com/,"https://cdndev.arcgis.com"),t=t.replace(/^https?:\/\/qaext\.arcgis\.com/,"https://cdnqa.arcgis.com")),t}function v(e){if(!e)return e||null;let t=e;return t=t.replace(/^https?:\/\/cdn\.arcgis\.com/,"https://www.arcgis.com"),t=t.replace(/^https?:\/\/cdndev\.arcgis\.com/,"https://devext.arcgis.com"),t=t.replace(/^https?:\/\/cdnqa\.arcgis\.com/,"https://qaext.arcgis.com"),t&&s.id&&!s.id.findCredential(t)&&(t=(0,o.qG)(t)),t}const q=Object.freeze(Object.defineProperty({__proto__:null,ensureMainOnlineDomain:y,fromCDNUrl:v,fromJSON:a,itemIdFromResourceUrl:p,itemUrlFromResourceUrl:f,prefixAndFilenameFromResourceUrl:m,read:l,toCDNUrl:g,toJSON:i,write:u},Symbol.toStringTag,{value:"Module"}));r.d(t,["b",0,q])},91869(e,t,r){function s(e,t){for(const r of e.values())if(t(r))return!0;return!1}function n(e,t,r){const s=e.get(t);if(void 0!==s)return s;const n=r();return e.set(t,n),n}function o(e){const t=new Map;return r=>(t.has(r)||t.set(r,e(r)),t.get(r))}r.d(t,{Bj:()=>o,Bs:()=>s,tE:()=>n})},60694(e,t,r){r.d(t,{Fi:()=>d,HZ:()=>q,Jf:()=>v,LS:()=>b,Wo:()=>w,bd:()=>S,cr:()=>f,iz:()=>h,qg:()=>p,uV:()=>g,yG:()=>m});var s=r(84952),n=r(39131),o=r(97159);const a={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",knowledgegraphserver:"KnowledgeGraphServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer","3dtilesserver":"3DTilesServer",videoserver:"VideoServer"},i=Object.values(a),l=new RegExp(`^(?<path>(?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(?<serviceTitle>.+?)\\/(?<serverType>${i.join("|")})(?:\\/exts\\/(?<soeTitle>.+?)\\/(?<soeServerType>${i.join("|")}))?)(?:\\/(?:layers))?(?:\\/(?<sublayer>\\d+))?`,"i"),u=new RegExp(`^(?<path>(?:https?:)?\\/\\/\\S+?\\/(?<serviceTitle>[^/\\n]+)\\/(?<serverType>${i.join("|")}))(?:\\/(?:layers))?(?:\\/(?<sublayer>\\d+))?`,"i"),c=/(.*?)\/(?:layers\/)?(\d+)\/?$/i;function d(e){return l.test(e)}function p(e){if(null==e)return null;const t=(0,s.An)(e),r=t?.path.match(l)||t?.path.match(u);if(!r)return null;const{path:n,serviceTitle:o,serverType:i,soeTitle:c,soeServerType:d,sublayer:p}=r.groups??{},h=c||o,m=h.indexOf("/");return{title:f(-1!==m?h.slice(m+1):h),serverType:a[(d||i).toLowerCase()],sublayer:null!=p&&""!==p?parseInt(p,10):null,url:{path:n}}}function h(e){const t=(0,s.An)(e).path.match(c);return t?{serviceUrl:t[1],sublayerId:Number(t[2])}:null}function f(e){return(e=e.replaceAll(/\s*[/_]+\s*/g," "))[0].toUpperCase()+e.slice(1)}function m(e,t){const r=[];if(e){const t=p(e);null!=t&&t.title&&r.push(t.title)}if(t){const e=f(t);r.push(e)}if(2===r.length){if(r[0].toLowerCase().includes(r[1].toLowerCase()))return r[0];if(r[1].toLowerCase().includes(r[0].toLowerCase()))return r[1]}return r.join(" - ")}const y=["services","features","tiles","elevation3d","basemaps3d"];function w(e){let t=(0,s.$z)(e,!0);return!!t&&(t=t.toLowerCase(),!!t.endsWith(".arcgis.com")&&(!!y.some(e=>t.startsWith(e))||/^[a-z\d-]+\.svcs[a-z\d-]*\./.test(t)))}function g(e){return(0,n.$E)(e)&&function(e){const t=(0,s.$z)(e);return!!t&&t.toLowerCase().endsWith(".arcgis.com")}(e)}function v(e,t){return e?(0,s.UC)((0,s.zi)(e,t)):e}function q(e){let{url:t}=e;if(!t)return{url:t};t=(0,s.zi)(t,e.logger);const r=(0,s.An)(t),n=p(r.path);let o;if(null!=n)null!=n.sublayer&&null==e.layer.layerId&&(o=n.sublayer),t=n.url.path;else if(e.nonStandardUrlAllowed){const e=h(r.path);null!=e&&(t=e.serviceUrl,o=e.sublayerId)}return{url:(0,s.UC)(t),layerId:o}}function b(e,t,r,n,a){(0,o.w)(t,n,"url",a),n.url&&null!=e.layerId&&(n.url=(0,s.fj)(n.url,r,e.layerId.toString()))}function S(e){if(!e)return!1;const t=e.toLowerCase(),r=t.includes("/services/"),s=t.includes("/mapserver/wmsserver"),n=t.includes("/imageserver/wmsserver"),o=t.includes("/wmsserver");return r&&(s||n||o)}},11254(e,t,r){r.d(t,{A:()=>w});var s=r(92602),n=r(49186),o=r(44208),a=r(17676),i=r(84952),l=r(56152),u=r(65592),c=r(91869),d=r(60694);async function p(e){const t=function(e){let t,r=!1;return"string"==typeof e?(t=(0,i.$z)(e,!0),r=(0,d.Wo)(e)):(t=e.origin,r=(0,d.Wo)(e.toString())),null==t?null:new y(t,r)}(e.parameters.url);if(!t)return null;const{QueueProcessor:s,SharedConcurrency:n}=await r.e(563).then(r.bind(r,563));return(0,c.tE)(h,t.origin,()=>{const e=(t.isHosted?(0,o.A)("request-queue-concurrency-hosted"):(0,o.A)("request-queue-concurrency-non-hosted"))??4;return f??=new n((0,o.A)("request-queue-concurrency-global")??50),new s({concurrency:e,sharedConcurrency:f,process:e=>{if((0,a.G4)(e.parameters.requestOptions))throw(0,u.YB)("",(0,a.NK)("Request canceled"),e.parameters);return(0,u.zc)(e)}})})}const h=new Map;let f,m;class y{constructor(e,t){this.origin=e,this.isHosted=t}}async function w(e,t){e instanceof URL&&(e=e.toString());const s=(0,i.DB)(e),n=(0,i.w8)(e);n||s||(e=(0,i.S8)(e));const c={url:e,requestOptions:{...t}};t?.query&&(c.requestOptions.query=t?.query instanceof URLSearchParams?(0,i.zf)(t.query.toString().replaceAll("+"," ")):t?.query);const d=e=>({data:e,getAllHeaders:v,getHeader:v,httpStatus:200,requestOptions:c.requestOptions,url:c.url}),h=(0,i.sC)(e,g.internalInterceptors);if(h){const e=await q(h,c);if(null!=e)return d(e)}let f=(0,i.sC)(e);if(f){const e=await q(f,c);if(null!=e)return d(e);f.after||f.error||(f=null)}if(e=c.url,"image"===(t=c.requestOptions).responseType&&((0,o.A)("host-webworker")||(0,o.A)("host-node")))throw(0,u.YB)("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),c);if("head"===t.method){if(t.body)throw(0,u.YB)("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),c);if(s||n)throw(0,u.YB)("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),c)}if(await async function(){(0,o.A)("host-webworker")&&(!m&&globalThis.invokeStaticMessage?m=await r.e(369).then(r.bind(r,40369)):l.i.isForeignWorker=!0)}(),m)return m.execute(e,t);const y=new AbortController,w=(0,a.u7)(t,()=>y.abort()),b={controller:y,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:f,parameters:c,redoRequest:!1,useIdentity:g.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},S=t.useQueue?async function(e){const t=await p(e);return t?t.push(e):(0,u.zc)(e)}(b):(0,u.zc)(b),T=await S.finally(()=>w?.remove());return f?.after?.(T),T}const g=s.A.request,v=()=>null;async function q(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,s;try{s=await e.before(t)}catch(e){r=(0,u.YB)("request:interceptor",e,t)}if((s instanceof Error||s instanceof n.A)&&(r=(0,u.YB)("request:interceptor",s,t)),r)throw e.error&&e.error(r),r;return s}}},56152(e,t,r){r.d(t,["i",0,{corsServers:["https://server.arcgisonline.com","https://services.arcgisonline.com"],beforeFetch:void 0,afterFetch:void 0,isForeignWorker:!1}])},95117(e,t,r){r.d(t,{y:()=>n});var s=r(17676);function n(e,t,r=!1,n){return new Promise((o,a)=>{if((0,s.G4)(n))return void a((0,s.NK)());let i=()=>{c(),a(new Error(`Unable to load ${t}`))},l=async()=>{const t=e;try{await t.decode()}catch{}c(),o(t)},u=()=>{if(!e)return;const t=e;c(),t.src="",a((0,s.NK)())};const c=()=>{e&&(e.removeEventListener("error",i),e.removeEventListener("load",l),i=null,l=null,e=null,n?.removeEventListener("abort",u),u=null,r&&URL.revokeObjectURL(t))};n?.addEventListener("abort",u),e.addEventListener("error",i),e.addEventListener("load",l)})}},65592(e,t,r){r.d(t,{YB:()=>x,c8:()=>$,zc:()=>b});var s=r(92602),n=r(70333),o=r(49186),a=r(44208),i=r(4718),l=r(17676),u=r(84952),c=r(39131),d=r(56152),p=r(95117),h=r(60694);const f=new Map;function m(e,t){const r=t?.preferredHost;if(!r||(0,u.FX)(e,`https://${r}`,!0))return;const s=(0,h.qg)(e);if(!s||"FeatureServer"!==s.serverType||(0,c.$E)(e))return;const n=s.url.path.toLowerCase();f.has(n)||f.set(n,r)}function y(e){const t=(0,h.qg)(e)?.url.path.toLowerCase();if(!t)return e;const r=f.get(t);return r?(0,u.hf)(e,r):e}const w="FormData"in globalThis,g=new Set([499,498,403,401]),v=new Set(["COM_0056","COM_0057","SB_0008"]),q=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i];async function b(e){let t,o;await async function(e){const t=e.parameters.url,o=e.parameters.requestOptions,a=e.controller.signal,i=o.body;let u=null,c=null;if(w&&"HTMLFormElement"in globalThis&&(i instanceof FormData?u=i:i instanceof HTMLFormElement&&(u=new FormData(i))),"string"==typeof i&&(c=i),e.fetchOptions={cache:o.cacheMode??(o.cacheBust?"no-cache":"default"),credentials:"same-origin",headers:o.headers||{},keepalive:o.keepAlive??!1,method:"head"===o.method?"HEAD":"GET",mode:"cors",priority:o.priority??s.A.request.priority,redirect:"follow",signal:a},(u||c)&&(e.fetchOptions.body=u||c),(d.i.isForeignWorker||"anonymous"===o.authMode)&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||o.query?.token||u?.get("token")),!e.hasToken){const{getApiKey:s,getSessionToken:n}=await r.e(926).then(r.bind(r,926)),a=await n(t)??s(t);a&&(o.query??={},o.query.token=a,e.hasToken=!0)}if(e.useIdentity&&!e.hasToken&&!e.credential&&!e.credentialToken&&!O(t)&&!(0,l.G4)(a)){let r;"immediate"===o.authMode?(await A(),r=await n.id.getCredential(t,{signal:a})):"no-prompt"===o.authMode?(await A(),r=await n.id.getCredential(t,{prompt:!1,signal:a}).catch(()=>{})):n.id&&(r=n.id.findCredential(t)),r&&(e.credential=r,e.credentialToken=r.token,e.useSSL=!!r.ssl)}}(e);try{do{[t,o]=await S(e)}while(!await L(e,t,o))}catch(r){const s=x("request:server",r,e.parameters,t);throw s.details.ssl=e.useSSL,e.interceptor?.error?.(s),s}const a=e.parameters.url;if(o)if(/\/sharing\/rest\/(accounts|portals)\/self/i.test(a)){if(!e.hasToken&&!e.credentialToken&&o.user?.username&&!(0,u.FL)(a)){const e=(0,u.$z)(a,!0);e&&s.A.request.trustedServers.push(e)}Array.isArray(o.authorizedCrossOriginNoCorsDomains)&&function(e){s.A.request.crossOriginNoCorsDomains||(s.A.request.crossOriginNoCorsDomains={});const t=s.A.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[(0,u.$z)(r)??""]=0:(t[(0,u.$z)("http://"+r)??""]=0,t[(0,u.$z)("https://"+r)??""]=0)}(o.authorizedCrossOriginNoCorsDomains)}else"json"===(e.parameters.requestOptions.responseType||"json")&&m(a,o);const i=e.credential;if(i&&n.id){const e=n.id.findServerInfo(i.server);let t=e?.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=n.id.findCredential(t,i.userId);e&&-1===n.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:o,getAllHeaders:t?()=>Array.from(t.headers):E,getHeader:t?e=>t.headers.get(e):E,httpStatus:t?.status??200,requestOptions:e.parameters.requestOptions,ssl:e.useSSL,url:e.parameters.url}}async function S(e){let t=e.parameters.url,r=y(t);const o=e.parameters.requestOptions,i=e.fetchOptions??{},p=(0,u.w8)(t)||(0,u.DB)(t),h=o.responseType??"json",f=p?0:null!=o.timeout?o.timeout:s.A.request.timeout;let m=!1;if(!p){e.useSSL&&(t=(0,u.lM)(t));let l={...o.query};e.credentialToken&&(l.token=e.credentialToken);let d=(0,u.x0)(l);(0,a.A)("esri-url-encodes-apostrophe")&&(d=d.replaceAll("'","%27"));const p=r.length+1+d.length;let h;m="delete"===o.method||"post"===o.method||"put"===o.method||!!o.body||p>s.A.request.maxUrlLength;const f=o.useProxy||!!(0,u.zs)(t);if(f){const e=(0,u.s_)(t);h=e.path,!m&&h.length+1+p>s.A.request.maxUrlLength&&(m=!0),e.query&&(l={...e.query,...l})}if("HEAD"===i.method&&(m||f)){if(m){if(p>s.A.request.maxUrlLength)throw x("request:invalid-parameters",new Error("URL exceeds maximum length"),e.parameters);throw x("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.parameters)}if(f)throw x("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.parameters)}if(m?(i.method="delete"===o.method?"DELETE":"put"===o.method?"PUT":"POST",o.body?t=(0,u.a6)(t,l):(i.body=(0,u.x0)(l),i.headers||(i.headers={}),i.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,u.a6)(t,l),f&&(e.useProxy=!0,t=`${h}?${t}`),l.token&&w&&i.body instanceof FormData&&!(0,c.$E)(t)&&i.body.set("token",l.token),o.hasOwnProperty("withCredentials"))e.withCredentials=o.withCredentials;else if(!(0,u.FX)(t,(0,u.Xq)()))if((0,u.FL)(t))e.withCredentials=!0;else if(n.id){const r=n.id.findServerInfo(t);r?.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(i.credentials="include",function(e){const t=s.A.request.crossOriginNoCorsDomains;if(t){let r=(0,u.$z)(e);if(r)return r=r.toLowerCase(),!(0,u.FX)(r,(0,u.Xq)())&&t[r]<Date.now()-36e5}return!1}(t)&&await async function(e){const t=(0,u.An)(e);e=t.path,"json"===t.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}const r=s.A.request.crossOriginNoCorsDomains,n=(0,u.$z)(e);r&&n&&(r[n.toLowerCase()]=Date.now())}(m?(0,u.a6)(t,l):t)),r=y(t)}let g,v,q=0,b=!1;f>0&&(q=setTimeout(()=>{b=!0,e.controller.abort()},f));try{if("native-request-init"===o.responseType)v=i,v.url=r,o.signal?v.signal=o.signal:delete v.signal;else if("image"!==o.responseType||"default"!==i.cache||i.keepalive||"GET"!==i.method||m||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(o.headers)||!p&&!e.useProxy&&s.A.request.proxyUrl&&!C(t)){if(await(d.i.beforeFetch?.(t,i)),g=await fetch(r,i),await(d.i.afterFetch?.(g)),e.useProxy||function(e){const t=(0,u.$z)(e);t&&!d.i.corsServers.includes(t)&&d.i.corsServers.push(t)}(t),"native"===o.responseType)v=g;else if("HEAD"!==i.method)if(g.ok){switch(h){case"array-buffer":v=await g.arrayBuffer();break;case"blob":case"image":v=await g.blob();break;default:v=await g.text()}if(q&&(clearTimeout(q),q=0),"json"===h||"xml"===h||"document"===h)if(v)switch(h){case"json":v=JSON.parse(v);break;case"xml":v=k(v,"application/xml");break;case"document":v=k(v,"text/html")}else v=null;if(v){if(("array-buffer"===h||"blob"===h)&&v["blob"===h?"size":"byteLength"]<=750)try{const e=await new Response(v).json();e.error&&(v=e)}catch{}"image"===h&&v instanceof Blob&&(v=await T(URL.createObjectURL(v),e,!0))}}else{v=await g.text();try{v=JSON.parse(v)}catch{}}}else v=await T(r,e)}catch(r){if("AbortError"===r.name){if(b)throw new Error(P);throw(0,l.NK)("Request canceled")}if(!(!g&&r instanceof TypeError&&s.A.request.proxyUrl)||o.body||"delete"===o.method||"head"===o.method||"post"===o.method||"put"===o.method||e.useProxy||C(t))throw r;e.redoRequest=!0,(0,u.oy)({proxyUrl:s.A.request.proxyUrl,urlPrefix:(0,u.$z)(t)??""})}finally{q&&clearTimeout(q)}return[g,v]}function T(e,t,r=!1){const n=t.controller.signal,o=new Image;return t.withCredentials?o.crossOrigin="use-credentials":o.crossOrigin="anonymous",o.alt="",o.fetchPriority=s.A.request.priority,o.src=e,(0,p.y)(o,e,r,n)}function C(e){const t=(0,u.$z)(e);return!t||t.endsWith(".arcgis.com")||d.i.corsServers.includes(t)||(0,u.FL)(t)}async function A(){n.id||await Promise.all([r.e(5620),r.e(7736),r.e(4372),r.e(9358),r.e(8837),r.e(8094)]).then(r.bind(r,50148))}function O(e){return q.some(t=>t.test(e))}function k(e,t){let r;try{r=(new DOMParser).parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function L(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;const s=e.parameters.requestOptions;if(!t||"native"===s.responseType||"native-request-init"===s.responseType)return!0;let o,a;if(r&&(r.error&&"object"==typeof r.error?o=r.error:"error"===r.status&&Array.isArray(r.messages)&&(o={...r},o[U]=r,o.details=r.messages)),!o&&!t.ok)throw o=new Error(`Unable to load ${t.url} status: ${t.status}`),o[U]=r,o;let i,l=null;o&&(a=Number(o.code),l=o.hasOwnProperty("subcode")?Number(o.subcode):null,i=o.messageCode,i=i?.toUpperCase());const u=s.authMode;if(403===a&&(4===l||o.message?.toLowerCase().includes("ssl")&&!o.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===a)&&void 0!==a&&g.has(a)&&!O(e.parameters.url)&&(403!==a||(!i||!v.has(i))&&(null==l||2===l&&e.credentialToken))){await A();try{const t=await n.id.getCredential(e.parameters.url,{error:x("request:server",o,e.parameters),credential:e.credential,prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===u)return e.credential=void 0,e.credentialToken=void 0,!1;o=t}}if(o)throw o;return!0}function x(e,t,r,s){let n;const a={url:r.url,requestOptions:r.requestOptions,getAllHeaders:E,getHeader:E,ssl:!1};if(t instanceof o.A)return t.details?(t.details=(0,i.o8)(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=a,t;if(t){const e=s&&(()=>Array.from(s.headers)),r=s&&(e=>s.headers.get(e)),o=s?.status,i=t.message;i&&(n=i),e&&r&&(a.getAllHeaders=e,a.getHeader=r),a.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||o||0,a.subCode=t.subcode,a.messageCode=t.messageCode,"string"==typeof t.details?(a.messages=[t.details],n??=t.details):(a.messages=t.details,n??=a.messages?.[0]),a.raw=U in t?t[U]:t}return n??="Error",(0,l.zf)(t)?(0,l.NK)():new o.A(e,n,a)}const U=Symbol(),E=()=>null,P="Timeout exceeded";function $(e){return"object"==typeof e&&!!e&&"message"in e&&e.message===P}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1089],{66131(t,e,r){r.d(e,{lY:()=>d,mT:()=>h});var n=r(59534),s=r(799),o=r(3330),i=r(34747);const a={TimeZoneNotRecognized:"Timezone identifier has not been recognized."};class u extends Error{constructor(t,e){super((0,s.HC)(a[t],e)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,u)}}function c(t,e,r){return t<e?t-e:t>r?t-r:0}function l(t,e,r){return t<e?e:t>r?r:t}class d{constructor(t){this._date=t,this.declaredRootClass="esri.arcade.arcadedate"}static fromParts(t=0,e=1,r=1,n=0,s=0,o=0,a=0,u){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(s)||isNaN(o)||isNaN(a))return null;const m=i.c9.local(t,e).daysInMonth;let f=i.c9.fromObject({day:l(r,1,m),year:t,month:l(e,1,12),hour:l(n,0,23),minute:l(s,0,59),second:l(o,0,59),millisecond:l(a,0,999)},{zone:h(u)});return f=f.plus({months:c(e,1,12),days:c(r,1,m),hours:c(n,0,23),minutes:c(s,0,59),seconds:c(o,0,59),milliseconds:c(a,0,999)}),new d(f)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(t,e){const r=h(e);return t.isUnknownTimeZone||r===o.GB.instance?d.fromParts(t.year,t.monthJS+1,t.day,t.hour,t.minute,t.second,t.millisecond,r):new d(t._date.setZone(r))}static dateJSToArcadeDate(t){return new d(i.c9.fromJSDate(t,{zone:"system"}))}static dateJSAndZoneToArcadeDate(t,e="system"){const r=h(e);return new d(i.c9.fromJSDate(t,{zone:r}))}static unknownEpochToArcadeDate(t){return new d(i.c9.fromMillis(t,{zone:o.GB.instance}))}static unknownDateJSToArcadeDate(t){return new d(i.c9.fromMillis(t.getTime(),{zone:o.GB.instance}))}static epochToArcadeDate(t,e="system"){const r=h(e);return new d(i.c9.fromMillis(t,{zone:r}))}static dateTimeToArcadeDate(t){return new d(t)}clone(){return new d(this._date)}changeTimeZone(t){const e=h(t);return d.dateTimeToArcadeDate(this._date.setZone(e))}static dateTimeAndZoneToArcadeDate(t,e){const r=h(e);return t.zone===o.GB.instance||r===o.GB.instance?d.fromParts(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond,r):new d(t.setZone(r))}static nowToArcadeDate(t){const e=h(t);return new d(i.c9.fromJSDate(new Date,{zone:e}))}static nowUTCToArcadeDate(){return new d(i.c9.utc())}get isSystem(){return"system"===this.timeZone||this.timeZone===d.systemTimeZoneCanonicalName}equals(t){return this.isSystem&&t.isSystem?this.toNumber()===t.toNumber():this.isUnknownTimeZone===t.isUnknownTimeZone&&this._date.equals(t._date)}get isUnknownTimeZone(){return this._date.zone===o.GB.instance}get isValid(){return this._date.isValid}get hour(){return this._date.hour}get second(){return this._date.second}get day(){return this._date.day}get dayOfWeekISO(){return this._date.weekday}get dayOfWeekJS(){let t=this._date.weekday;return t>6&&(t=0),t}get millisecond(){return this._date.millisecond}get monthISO(){return this._date.month}get weekISO(){return this._date.weekNumber}get yearISO(){return this._date.weekYear}get monthJS(){return this._date.month-1}get year(){return this._date.year}get minute(){return this._date.minute}get zone(){return this._date.zone}get timeZoneOffset(){return this.isUnknownTimeZone?0:this._date.offset}get timeZone(){if(this.isUnknownTimeZone)return"unknown";if("system"===this._date.zone.type)return"system";const t=this.zone;return"fixed"===t.type?0===t.fixed?"UTC":t.formatOffset(0,"short"):t.name}stringify(){return JSON.stringify(this.toJSDate())}plus(t){return new d(this._date.plus(t))}diff(t,e){return this._date.diff(t._date,e)[e]}toISODate(){return this._date.toISODate()}toISOString(t){return t?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toISOTime(t,e){return this._date.toISOTime({suppressMilliseconds:t,includeOffset:e&&!this.isUnknownTimeZone})}toFormat(t,e){return this.isUnknownTimeZone&&(t=t.replaceAll("Z","")),this._date.toFormat(t,e)}toJSDate(){return this._date.toJSDate()}toSQLValue(){return this._date.toFormat("yyyy-LL-dd HH:mm:ss")}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}toDateTime(){return this._date}toNumber(){return this._date.toMillis()}getTime(){return this._date.toMillis()}toUTC(){return new d(this._date.toUTC())}toLocal(){return new d(this._date.toLocal())}toString(){return this.toISOString(!0)}static fromReaderAsTimeStampOffset(t){if(!t)return null;const e=i.c9.fromISO(t,{setZone:!0});return new d(e)}}function h(t,e=!0){if(t instanceof i.bo)return t;switch((0,n.B)(t)){case"system":return"system";case"utc":return"UTC";case"unknown":return o.GB.instance}if(/^[+-]?[0-9]{1,2}(:[0-9]{2})?$/.test(t)){const e=i.mQ.parseSpecifier("UTC"+(t.startsWith("+")||t.startsWith("-")?"":"+")+t);if(e)return e}const r=i.oh.create(t);if(!r.isValid){if(e)throw new u("TimeZoneNotRecognized");return null}return r}},47609(t,e,r){r.d(e,{A:()=>s});var n=r(66395);class s extends n.A{constructor(t){super({__proto__:null,url:t}),this.declaredClass="esri.arcade.Portal"}get url(){return this.field("url")}}},66395(t,e,r){r.d(e,{A:()=>a});var n=r(66131),s=r(6800),o=r(85935),i=r(78878);class a{constructor(t){this.declaredClass="esri.arcade.Dictionary",this.plain=!1,this.immutable=!0,t instanceof a?this.attributes=t.attributes:null==t?this.attributes=Object.create(null):null!=Object.getPrototypeOf(t)?this.attributes={__proto__:null,...t}:this.attributes=t}static createMutable(t){const e=new a(t);return e.immutable=!1,e}static containerEntry(t,e){return new a({__proto__:null,key:t,value:e})}static textFormatting(){return a.createMutable({__proto__:null,newline:"\n",tab:"\t",singlequote:"'",doublequote:'"',forwardslash:"/",backwardslash:"\\"})}field(t){const e=t.toLowerCase(),r=this.attributes[t];if(void 0!==r)return r;for(const t in this.attributes)if(t.toLowerCase()===e)return this.attributes[t];throw new o.D$("FieldNotFound",null,{key:t})}setField(t,e){if(this.immutable)throw new o.D$("Immutable",null);if((0,i.i)(e))throw new o.D$("NoFunctionInDictionary",null);const r=t.toLowerCase();if(e instanceof Date&&(e=n.lY.dateJSToArcadeDate(e)),void 0===this.attributes[t]){for(const t in this.attributes)if(t.toLowerCase()===r)return void(this.attributes[t]=e);this.attributes[t]=e}else this.attributes[t]=e}eraseField(t){if(this.immutable)throw new o.D$("Immutable",null);if(t in this.attributes)return void delete this.attributes[t];const e=t.toLowerCase();for(const t in this.attributes)if(t.toLowerCase()===e)return void delete this.attributes[t]}hasField(t){const e=t.toLowerCase();if(void 0!==this.attributes[t])return!0;for(const t in this.attributes)if(t.toLowerCase()===e)return!0;return!1}keys(){const t=[];for(const e in this.attributes)t.push(e);return t.sort((t,e)=>t.toLowerCase()<e.toLowerCase()?-1:1)}entryCount(){return Object.keys(this.attributes).length}isEmpty(){return this.entryCount()<=0}castToText(t=!1){return(0,i.c)(this.attributes,{useNumbersForDates:t})}castAsJson(){const t=Object.create(null);for(const e in this.attributes){const r=this.attributes[e];void 0!==r&&(t[e]=(0,i.a)(r))}return t}async castAsJsonAsync(t=null){const e=Object.create(null),r=[];for(const s in this.attributes){const o=this.attributes[s];void 0!==o&&((0,i.b)(o)||(0,i.d)(o)||o instanceof n.lY?e[s]=(0,i.a)(o):r.push((0,i.e)(o,t).then(t=>{e[s]=t})))}return r.length>0&&await Promise.all(r),e}deepClone(){const t=new a;t.immutable=!1;for(const e of this.keys())t.setField(e,(0,s.G)(this.field(e)));return t}}},48938(t,e,r){r.d(e,{X:()=>s});var n=r(85935);function s(t){if("string"==typeof t)return t.toLowerCase();if("name"in t)return t.name.toLowerCase();if("string"!=typeof t.value)throw new n.D$("InvalidIdentifier",null);return t.value.toLowerCase()}const o=Object.freeze({aborted:!1});r.d(e,["_",0,o])},6800(t,e,r){r.d(e,{G:()=>a,y:()=>o});var n=r(78878),s=r(54218);function o(t){i=t}let i;function a(t){return null==t?null:(0,n.f)(t)?t.clone():(0,n.b)(t)?t:(0,n.d)(t)?t.clone():(0,n.g)(t)?t.toArray().map(t=>a(t)):(0,s.cy)(t)?t.map(t=>a(t)):(0,n.h)(t)?i.createFromArcadeFeature(t):(0,n.j)(t)||(0,n.k)(t)?t:(0,n.l)(t)||(0,n.m)(t)?t.deepClone():((0,n.n)(t)||(0,n.o)(t)||(0,n.p)(t)||(0,n.i)(t),t)}},59534(t,e,r){r.d(e,{B:()=>s,b:()=>o});var n=r(85935);function s(t){return t.toLowerCase().replaceAll(/[\s-]+/g,"")}class o{constructor(t,e){const r=new Map;for(const e of t){const t=s(e);if(r.has(t))throw new Error(`${e} already added as ${r.get(t)}`);r.set(t,e)}if(null!=e)for(const[t,n]of e){const e=s(t);if(r.has(e))throw new Error(`${t} already associated with ${r.get(e)}`);r.set(e,n)}this._enumMap=r}lookup(t){return this._enumMap.get(s(t))}get(t){const e=this.lookup(t);if(null==e)throw new n.D$("InvalidParameter",null);return e}}},85935(t,e,r){r.d(e,{D$:()=>a,O$:()=>l,i2:()=>d,mT:()=>c,ps:()=>m});var n=r(799);const s={TypeNotAllowedInFeature:"Feature attributes only support dates, numbers, strings, guids.",LogicError:"Logic error - {reason}",CannotCompareDateAndTime:"Cannot compare date or dateonly with timeonly types",NeverReach:"Encountered unreachable logic",AsyncNotEnabled:"Async Arcade must be enabled for this script",ModuleAccessorMustBeString:"Module accessor must be a string",ModuleExportNotFound:"Module has no export with provided identifier",ModulesNotSupported:"Current profile does not support modules",ArrayAccessMustBeNumber:"Array accessor must be a number",FunctionNotFound:"Function not found",FieldNotFound:"Key not found - {key}",CircularModules:"Circular module dependencies are not allowed",Cancelled:"Execution cancelled",UnsupportedHashType:"Type not supported in hash function",IllegalResult:"Value is not a supported return type",PortalRequired:"Portal is required",InvalidParameter:"Invalid parameter",WrongNumberOfParameters:"Call with wrong number of parameters",Unrecognized:"Unrecognized code structure",UnrecognizedType:"Unrecognized type",WrongSpatialReference:"Cannot work with geometry in this spatial reference. It is different to the execution spatial reference",BooleanConditionRequired:"Conditions must use booleans",NoFunctionInDictionary:"Dictionaries cannot contain functions.",NoFunctionInArray:"Arrays cannot contain functions.",NoFunctionInTemplateLiteral:"Template Literals do not expect functions by value.",KeyAccessorMustBeString:"Accessor must be a string",KeyMustBeString:"Object keys must be a string",Immutable:"Object is immutable",UnexpectedToken:"Unexpected token",MemberOfNull:"Cannot access property of null object",MaximumCallDepth:"Exceeded maximum function depth",OutOfBounds:"Out of bounds",InvalidIdentifier:"Identifier not recognized",CallNonFunction:"Expression is not a function",InvalidMemberAccessKey:"Cannot access value using a key of this type",AssignModuleFunction:"Cannot assign function to module variable",UnsupportUnaryOperator:"Unsupported unary operator",UnsupportedOperator:"Unsupported operator",LogicalExpressionOnlyBoolean:"Logical expressions must be boolean",LogicExpressionOrAnd:"Logical expression can only be combined with || or &&",CannotChangeTimeZoneTime:"Cannot change the timezone of a Time",CannotChangeTimeZoneDateOnly:"Cannot change the timezone of a DateOnly",FeatureSetDoesNotHaveSubtypes:"FeatureSet does not have subtypes"};function o(t){return"object"==typeof t&&"line"in t&&"column"in t&&"number"==typeof t.line&&"number"==typeof t.column}class i extends Error{constructor(t,e){super(u(e)+("object"==typeof t&&null!=t&&"message"in t?t.message:""),{cause:t}),this.loc=e?.loc??null}}class a extends Error{constructor(t,e,r){super("Execution error - "+u(e)+(0,n.HC)(s[t],r)),this.declaredRootClass="esri.arcade.arcadeexecutionerror",this.loc=e?.loc??null}}function u(t){return null==t?.loc?"":`Line ${t.loc.start.line}:${t.loc.start.column}: `}class c extends Error{constructor(t,e,r){super("Compilation error - "+u(e)+(0,n.HC)(s[t],r)),this.declaredRootClass="esri.arcade.arcadecompilationerror",this.loc=e?.loc??null}}class l extends Error{constructor(){super("Uncompilable code structures"),this.declaredRootClass="esri.arcade.arcadeuncompilableerror"}}function d(t,e){return!function(t){if(t instanceof Error&&"loc"in t){const e=t.loc;return null==e||"object"==typeof e&&"start"in e&&null!=e.start&&o(e.start)&&(!("end"in e)||null==e.end||o(e.end))}return!1}(t)||null==t.loc&&null!=e?.loc?new i(t,e):t}const h={UnrecognizedUri:"Unrecognized uri - {uri}",UnsupportedUriProtocol:"Unrecognized uri protocol"};class m extends Error{constructor(t,e){super((0,n.HC)(h[t],e)),this.declaredRootClass="esri.arcade.arcademoduleerror"}}},76343(t,e,r){r.r(e),r.d(e,{BatchTranslationServiceFactory:()=>n.B,PortalTranslationService:()=>n.P,getTranslateParametersKey:()=>n.g,registerFunctions:()=>n.r}),r(48938),r(66395),r(85935),r(78878),r(80672),r(49186),r(53966),r(45475),r(67090),r(62791),r(14942);var n=r(3367)},80672(t,e,r){r.d(e,{Iq:()=>a,RI:()=>i,VQ:()=>c,wI:()=>u});var n=r(47609),s=r(84952),o=r(20655);function i(t,e){return null==e?a(t):new o.A({url:e.url})}function a(t){return t.services?.portal??o.A.getDefault()}function u(t){const e=a(t);return new n.A(e.url)}function c(t,e){const r=t.url;return!!r&&(0,s.ut)(r,e.restUrl)}},3367(t,e,r){r.d(e,{B:()=>S,P:()=>y,g:()=>T,r:()=>C});var n=r(48938),s=r(66395),o=r(85935),i=r(78878),a=r(80672),u=r(49186),c=r(53966),l=r(91869),d=r(45475),h=r(67090),m=r(62791),f=r(14942),p=r(54218);class y{constructor(t,e){this.portal=t,this._debugLog=e}async translate(t){this.portal.loaded||await this.portal.load();const e=this.portal.helperServices?.aiUtilityServices;if(null==e)return{success:!1};const r=e.api?.text_translate;if(null==r)return{success:!1};const n=e.url+r;try{return t.requestSource??="arcade",{success:!0,results:(await(0,d.T)(n,t,{authMode:"no-prompt"})).map(t=>t.toJSON())}}catch(t){return null!=this._debugLog&&(t instanceof Error||t instanceof u.A)&&this._debugLog(`TranslateText error: ${t.message}`),c.A.getLogger("esri.arcade.functions.aiServices").error(t),{success:!1}}}}class g{constructor(t,e,r){this._parameters=t,this._maxTotalContentSize=e,this._maxContentsLength=r,this._requests=[],this._normalizedContents=new Map,this._contentsTotalSize=0}tryAdd(t){const e=new Set(t.filter(t=>!this._normalizedContents.has(t.text)).map(t=>t.text));if(this._requests.length+e.size>this._maxContentsLength)return null;let r=0;for(const t of e)r+=t.length;if((r+this._contentsTotalSize)*(this._parameters.outputCultures.length??1)>this._maxTotalContentSize)return null;const n=this._requests.length;for(const{key:e,text:r}of t)(0,l.tE)(this._normalizedContents,r,()=>[]).push({batchIdx:n,key:e});return this._requests.push(t),this._contentsTotalSize+=r,n}async send(t){const e=[],r=[];let n=0;for(const[t,s]of this._normalizedContents)e.push(new h.k({key:String(n++),text:t})),r.push(s);const s=new m.F(this._parameters);s.input=e;const o=await t.translate(s);if(!o.success)return Array.from(this._requests,()=>o);const i=Array.from(this._requests,()=>({success:!0,results:[]}));for(const t of o.results){const e=Number(t.key);for(const n of r[e])i[n.batchIdx].results.push({...t,key:n.key})}return i}}function T(t){const e=[...new Set(t.outputCultures)].sort(),r=t.inputCulture??null,n=t.portalUrl,s=t.provider;return JSON.stringify([e,r,n,s])}async function w(t,e,r){try{return(await t.yieldFor(r))[e]}catch{return{success:!1}}}class S{constructor(t,e,{maxTotalContentSize:r=5e4,maxContentsLength:n=1e3}={}){this._executor=t,this._service=e,this._openBatches=new Map,this._maxTotalContentSize=r,this._maxContentsLength=n}create(t){return{translate:async e=>{const r=T(e),{input:n,outputCultures:s,inputCulture:o,provider:i,portalUrl:a}=e;if(null==s)return{success:!1};if(null==n||n.every(t=>0===t.text.length))return{success:!1};const u=this._openBatches.get(r);if(null!=u){const e=u.data.tryAdd(n);if(null!=e)return await w(t,e,u);u.send()}const c=new g({outputCultures:s,inputCulture:o,provider:i,portalUrl:a},this._maxTotalContentSize,this._maxContentsLength),l=c.tryAdd(n);if(null!=l){const e=this._executor.openBatch(c,{open:t=>{this._openBatches.set(r,t)},execute:t=>t.send(this._service),close:t=>{this._openBatches.get(r)===t&&this._openBatches.delete(r)}});return await w(t,l,e)}return await this._service.translate(e)}}}}function C(t){"async"===t.mode&&(t.functions[(0,n.X)("TranslateText")]=function(e,r){return t.standardFunctionAsync(e,r,async(t,e,r)=>{if((0,i.E)(r,2,3,e),!(0,p.Kg)(r[0])&&!(0,p.cy)(r[0])&&!(0,i.g)(r[0]))throw new o.D$("InvalidParameter",e);const n=(0,i.P)(r[0]);if(!(0,p.Kg)(r[1])&&!(0,p.cy)(r[1])&&!(0,i.g)(r[1]))throw new o.D$("InvalidParameter",e);const u=(0,i.P)(r[1]);let c=null;if(r.length>=3){if(!(0,p.Kg)(r[2]))throw new o.D$("InvalidParameter",e);c=r[2]}const l=n.map((t,e)=>new h.k({key:String(e),text:t})),d=(0,a.Iq)(t),g=new m.F({outputCultures:u,input:l,inputCulture:c,portalUrl:d.restUrl.replace(/\/sharing\/rest$/,"")}),w=new Map;let S;if(null!=t.lrucache){const e=t.lrucache;S??=T(g),g.input=g.input?.filter(t=>{const r=e.getCachedTranslation(S,t.text);return null==r||(w.set(t.key,{...r,key:t.key}),!1)})}if(g.input?.length){const e=t.services?.translation??new y(d,t.console),r=await e.translate(g);if(!r.success)return new s.A({__proto__:null,success:!1});for(const e of r.results){const r=g.input?.find(t=>t.key===e.key)?.text;if(null==r)throw new o.D$("NeverReach",null);w.set(e.key,e),null!=t.lrucache&&(S??=T(g),t.lrucache.setCachedTranslation(S,r,{detectedLanguage:e.detectedLanguage,translations:e.translations}))}}const C=Array.from(l,t=>{const e=f.s.fromJSON(w.get(t.key));if(null==e)throw new o.D$("NeverReach",null);const r=Object.create(null);for(const t of e.translations)r[t.to]=t.text;return new s.A({__proto__:null,key:e.key,text:t.text,detectedLanguage:new s.A({__proto__:null,language:e.detectedLanguage,score:e.detectedLanguageScore}),translation:new s.A(r)})});return new s.A({__proto__:null,success:!0,results:C})})})}const _=Object.freeze(Object.defineProperty({__proto__:null,BatchTranslationServiceFactory:S,PortalTranslationService:y,getTranslateParametersKey:T,registerFunctions:C},Symbol.toStringTag,{value:"Module"}));r.d(e,["A",0,_])},44729(t,e,r){r.d(e,{n:()=>u});var n=r(66131),s=r(73444),o=r(34747);function i(t){t=t.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let e="";const r=/(\[[^[]*\])|(\\)?([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?|ZZ?|.)/g;for(const n of t.match(r)||[])switch(n){case"D":e+="d";break;case"DD":e+="dd";break;case"DDD":e+="o";break;case"d":e+="c";break;case"ddd":e+="ccc";break;case"dddd":e+="cccc";break;case"M":e+="L";break;case"MM":e+="LL";break;case"MMM":e+="LLL";break;case"MMMM":e+="LLLL";break;case"YY":e+="yy";break;case"Y":case"YYYY":e+="yyyy";break;case"Q":e+="q";break;case"X":case"x":e+=n;break;default:n.length>=2&&n.startsWith("[")&&n.endsWith("]")?e+=`'${n.slice(1,-1)}'`:e+=`'${n}'`}return e}const a="esri.core.sql.dateonly";class u{constructor(t,e,r){this._year=t,this._month=e,this._day=r,this.declaredRootClass=a}static isDateOnly(t){return"object"==typeof t&&null!=t&&"declaredRootClass"in t&&t.declaredRootClass===a}get month(){return this._month}get monthJS(){return this._month-1}get year(){return this._year}get day(){return this._day}get isValid(){return this.toDateTime("unknown").isValid}equals(t){return u.isDateOnly(t)&&t.day===this.day&&t.month===this.month&&t.year===this.year}compare(t){return this.year===t.year?this.month===t.month?this.day-t.day:this.month-t.month:this.year-t.year}clone(){return new u(this._year,this._month,this._day)}toDateTime(t){return o.c9.fromObject({day:this.day,month:this.month,year:this.year},{zone:(0,n.mT)(t)})}toDateTimeLuxon(t){return o.c9.fromObject({day:this.day,month:this.month,year:this.year},{zone:(0,n.mT)(t)})}toString(){return`${this.year.toString().padStart(4,"0")}-${this.month.toString().padStart(2,"0")}-${this.day.toString().padStart(2,"0")}`}toFormat(t=null,e=!0){if(null===t||""===t)return this.toString();if(e&&(t=i(t)),!t)return"";const r=this.toDateTime("unknown");return n.lY.dateTimeToArcadeDate(r).toFormat(t,{locale:(0,s.JK)(),numberingSystem:"latn"})}toArcadeDate(){const t=this.toDateTime("unknown");return n.lY.dateTimeToArcadeDate(t)}toNumber(){return this.toDateTime("unknown").toMillis()}toJSDate(){return this.toDateTime("unknown").toJSDate()}toStorageFormat(){return this.toFormat("yyyy-LL-dd",!1)}toSQLValue(){return this.toFormat("yyyy-LL-dd",!1)}toSQLWithKeyword(){return"date '"+this.toFormat("yyyy-LL-dd",!1)+"'"}plus(t,e){return u.fromDateTime(this.toUTCDateTime().plus({[t]:e}))}toUTCDateTime(){return o.c9.utc(this.year,this.month,this.day,0,0,0,0)}difference(t,e){switch(e.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(t.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return"M"===e?this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(t.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(t.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(t.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(t.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(t.toUTCDateTime(),"years").years}}static fromMilliseconds(t){const e=o.c9.fromMillis(t,{zone:o.mQ.utcInstance});return e.isValid?u.fromParts(e.year,e.month,e.day):null}static fromSeconds(t){const e=o.c9.fromSeconds(t,{zone:o.mQ.utcInstance});return e.isValid?u.fromParts(e.year,e.month,e.day):null}static fromReader(t){if(!t)return null;const e=t.indexOf("-");if(e<0)return null;const r=t.indexOf("-",e+1);return r<0?null:new u(parseInt(t.slice(0,e),10),parseInt(t.slice(e+1,r),10),parseInt(t.slice(r+1),10))}static fromParts(t,e,r){const n=new u(t,e,r);return!1===n.isValid?null:n}static fromDateJS(t){return u.fromParts(t.getFullYear(),t.getMonth()+1,t.getDay())}static fromDateTime(t){return u.fromParts(t.year,t.month,t.day)}static fromSqlTimeStampOffset(t){return this.fromDateTime(t.toDateTime())}static fromString(t,e=null){if(""===t)return null;if(null===t)return null;const r=[];if(e)(e=i(e))&&r.push(e);else if(null===e||""===e){const e=o.c9.fromISO(t,{setZone:!0});return e.isValid?u.fromParts(e.year,e.month,e.day):null}for(const n of r){const r=o.c9.fromFormat(t,e??n);if(r.isValid)return new u(r.year,r.month,r.day)}return null}static fromNow(t="system"){const e=o.c9.fromJSDate(new Date).setZone((0,n.mT)(t));return new u(e.year,e.month,e.day)}}},15032(t,e,r){r.d(e,{k:()=>u});var n=r(73444),s=r(54218),o=r(34747);function i(t){if(!t)return"";const e=/(a|A|hh?|HH?|mm?|ss?|SSS|S|.)/g;let r="";for(const n of t.match(e)||[])switch(n){case"SSS":case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":r+=n;break;case"A":case"a":r+="a";break;default:r+=`'${n}'`}return r}const a="esri.core.sql.timeonly";class u{constructor(t,e,r,n){this._hour=t,this._minute=e,this._second=r,this._millisecond=n,this.declaredRootClass=a}static isTimeOnly(t){return"object"==typeof t&&null!=t&&"declaredRootClass"in t&&t.declaredRootClass===a}get hour(){return this._hour}get minute(){return this._minute}get second(){return this._second}get millisecond(){return this._millisecond}equals(t){return u.isTimeOnly(t)&&t.hour===this.hour&&t.minute===this.minute&&t.second===this.second&&t.millisecond===this.millisecond}clone(){return new u(this.hour,this.minute,this.second,this.millisecond)}isValid(){return(0,s.Fq)(this.hour)&&(0,s.Fq)(this.minute)&&(0,s.Fq)(this.second)&&(0,s.Fq)(this.millisecond)&&this.hour>=0&&this.hour<24&&this.minute>=0&&this.minute<60&&this.second>=0&&this.second<60&&this.millisecond>=0&&this.millisecond<1e3}toString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`+(this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):"")}toSQLValue(){return this.toString()}toSQLWithKeyword(){return`time '${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}${this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):""}'`}toStorageString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`}toFormat(t=null){return null===t||""===t?this.toString():(t=i(t))?o.c9.local(1970,1,1,this._hour,this._minute,this._second,this._millisecond).toFormat(t,{locale:(0,n.JK)(),numberingSystem:"latn"}):""}toNumber(){return this.millisecond+1e3*this.second+1e3*this.minute*60+60*this.hour*60*1e3}static fromParts(t,e,r,n){const s=new u(t,e,r,n);return s.isValid()?s:null}static fromReader(t){if(!t)return null;const e=t.indexOf(":");if(e<0)return null;const r=t.indexOf(":",e+1);return r<0?null:new u(parseInt(t.slice(0,e),10),parseInt(t.slice(e+1,r),10),parseInt(t.slice(r+1),10),0)}static fromMilliseconds(t){if(t>864e5||t<0)return null;const e=Math.floor(t/1e3%60),r=Math.floor(t/6e4%60),n=Math.floor(t/36e5%24),s=Math.floor(t%1e3);return new u(n,r,e,s)}static fromDateJS(t){return new u(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}static fromDateTime(t){return new u(t.hour,t.minute,t.second,t.millisecond)}static fromSqlTimeStampOffset(t){return this.fromDateTime(t.toDateTime())}static fromString(t,e=null){if(""===t)return null;if(null===t)return null;const r=[];e?(e=i(e))&&r.push(e):null!==e&&""!==e||(r.push("HH:mm:ss"),r.push("HH:mm:ss.SSS"),r.push("hh:mm:ss a"),r.push("hh:mm:ss.SSS a"),r.push("HH:mm"),r.push("hh:mm a"),r.push("H:mm"),r.push("h:mm a"),r.push("H:mm:ss"),r.push("h:mm:ss a"),r.push("H:mm:ss.SSS"),r.push("h:mm:ss.SSS a"));for(const e of r){const r=o.c9.fromFormat(t,e);if(r.isValid)return new u(r.hour,r.minute,r.second,r.millisecond)}return null}plus(t,e){switch(t){case"days":case"years":case"months":return this.clone();case"hours":case"minutes":case"seconds":case"milliseconds":return u.fromDateTime(this.toUTCDateTime().plus({[t]:e}))}return null}toUTCDateTime(){return o.c9.utc(1970,1,1,this.hour,this.minute,this.second,this.millisecond)}difference(t,e){switch(e.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(t.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return"M"===e?this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(t.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(t.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(t.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(t.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(t.toUTCDateTime(),"years").years}}}},67090(t,e,r){r.d(e,{k:()=>a});var n=r(32198),s=r(25482),o=r(10107),i=r(64108);let a=class extends s.o{constructor(t){super(t)}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"key",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"text",void 0),a=(0,n.Cg)([(0,i.$)("esri.rest.support.TranslateContent")],a)},62791(t,e,r){r.d(e,{F:()=>u});var n=r(32198),s=r(25482),o=r(10107),i=r(64108),a=r(67090);let u=class extends s.o{constructor(t){super(t),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,o.MZ)({type:[String],json:{write:!0}})],u.prototype,"outputCultures",void 0),(0,n.Cg)([(0,o.MZ)({type:[a.k],json:{write:!0}})],u.prototype,"input",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{read:!1,write:!1}})],u.prototype,"portalUrl",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0,default:"default"}})],u.prototype,"provider",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"inputCulture",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{read:!1,write:!1}})],u.prototype,"requestSource",void 0),u=(0,n.Cg)([(0,i.$)("esri.rest.support.TranslateParameters")],u)},14942(t,e,r){r.d(e,{s:()=>u});var n=r(32198),s=r(25482),o=r(10107),i=r(64108);let a=class extends s.o{};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"text",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"to",void 0),a=(0,n.Cg)([(0,i.$)("esri.rest.support.TranslateResult.Translation")],a);let u=class extends s.o{constructor(t){super(t),this.detectedLanguage="en",this.detectedLanguageScore=-1}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"key",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{read:{source:"detectedLanguage.language"},write:{target:"detectedLanguage.language"}}})],u.prototype,"detectedLanguage",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{read:{source:"detectedLanguage.score"},write:{target:"detectedLanguage.score"}}})],u.prototype,"detectedLanguageScore",void 0),(0,n.Cg)([(0,o.MZ)({type:[a],json:{write:!0}})],u.prototype,"translations",void 0),u=(0,n.Cg)([(0,i.$)("esri.rest.support.TranslateResult")],u)},45475(t,e,r){r.d(e,{T:()=>i});var n=r(11254),s=r(2272),o=r(14942);async function i(t,e,r){const i=JSON.stringify(e.toJSON()),a={};"https://www.arcgis.com"!==e.portalUrl&&(a.portal=e.portalUrl),null!=e.requestSource&&(a.request_source=e.requestSource),a.token=await(0,s.gf)(e.portalUrl,null,{signal:r?.signal,prompt:"no-prompt"!==r?.authMode});const u=(0,s.Dl)(t),c=(0,s.jV)(u.query,{...r,query:a,body:i,method:"post",authMode:"anonymous"});return(await(0,n.A)(u.path,c)).data.results.map(t=>o.s.fromJSON(t))}},2272(t,e,r){r.d(e,{Dl:()=>c,gf:()=>d,jV:()=>u,lF:()=>l});var n=r(92602),s=r(70333),o=r(4718),i=r(84952),a=r(926);function u(t,e){return e?{...e,query:{...t,...e.query}}:{query:t}}function c(t){return"string"==typeof t?(0,i.An)(t):(0,o.o8)(t)}function l(t,e,r){const n={};for(const s in t){if("declaredClass"===s)continue;const o=t[s];if(null!=o&&"function"!=typeof o)if(Array.isArray(o))n[s]=o.map(t=>l(t));else if("object"==typeof o)if(o.toJSON){const t=o.toJSON(r?.[s]);n[s]=e?t:JSON.stringify(t)}else n[s]=e?o:JSON.stringify(o);else n[s]=o}return n}async function d(t,e,o){const i=function(t,e){return t?e&&(0,a.Qc)(t)?e:(0,a.getApiKey)(t)??s.id?.findCredential(t)?.token:null}(t,e);if(i)return i;!s.id&&n.A.request.useIdentity&&await Promise.all([r.e(5620),r.e(4372),r.e(9530)]).then(r.bind(r,50148));const u=await s.id.getCredential(t,o);return u?.token}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1089],{66131(t,e,r){r.d(e,{lY:()=>d,mT:()=>h});var n=r(59534),s=r(799),o=r(3330),i=r(34747);const a={TimeZoneNotRecognized:"Timezone identifier has not been recognized."};class u extends Error{constructor(t,e){super((0,s.HC)(a[t],e)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,u)}}function c(t,e,r){return t<e?t-e:t>r?t-r:0}function l(t,e,r){return t<e?e:t>r?r:t}class d{constructor(t){this._date=t,this.declaredRootClass="esri.arcade.arcadedate"}static fromParts(t=0,e=1,r=1,n=0,s=0,o=0,a=0,u){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(s)||isNaN(o)||isNaN(a))return null;const m=i.c9.local(t,e).daysInMonth;let f=i.c9.fromObject({day:l(r,1,m),year:t,month:l(e,1,12),hour:l(n,0,23),minute:l(s,0,59),second:l(o,0,59),millisecond:l(a,0,999)},{zone:h(u)});return f=f.plus({months:c(e,1,12),days:c(r,1,m),hours:c(n,0,23),minutes:c(s,0,59),seconds:c(o,0,59),milliseconds:c(a,0,999)}),new d(f)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(t,e){const r=h(e);return t.isUnknownTimeZone||r===o.GB.instance?d.fromParts(t.year,t.monthJS+1,t.day,t.hour,t.minute,t.second,t.millisecond,r):new d(t._date.setZone(r))}static dateJSToArcadeDate(t){return new d(i.c9.fromJSDate(t,{zone:"system"}))}static dateJSAndZoneToArcadeDate(t,e="system"){const r=h(e);return new d(i.c9.fromJSDate(t,{zone:r}))}static unknownEpochToArcadeDate(t){return new d(i.c9.fromMillis(t,{zone:o.GB.instance}))}static unknownDateJSToArcadeDate(t){return new d(i.c9.fromMillis(t.getTime(),{zone:o.GB.instance}))}static epochToArcadeDate(t,e="system"){const r=h(e);return new d(i.c9.fromMillis(t,{zone:r}))}static dateTimeToArcadeDate(t){return new d(t)}clone(){return new d(this._date)}changeTimeZone(t){const e=h(t);return d.dateTimeToArcadeDate(this._date.setZone(e))}static dateTimeAndZoneToArcadeDate(t,e){const r=h(e);return t.zone===o.GB.instance||r===o.GB.instance?d.fromParts(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond,r):new d(t.setZone(r))}static nowToArcadeDate(t){const e=h(t);return new d(i.c9.fromJSDate(new Date,{zone:e}))}static nowUTCToArcadeDate(){return new d(i.c9.utc())}get isSystem(){return"system"===this.timeZone||this.timeZone===d.systemTimeZoneCanonicalName}equals(t){return this.isSystem&&t.isSystem?this.toNumber()===t.toNumber():this.isUnknownTimeZone===t.isUnknownTimeZone&&this._date.equals(t._date)}get isUnknownTimeZone(){return this._date.zone===o.GB.instance}get isValid(){return this._date.isValid}get hour(){return this._date.hour}get second(){return this._date.second}get day(){return this._date.day}get dayOfWeekISO(){return this._date.weekday}get dayOfWeekJS(){let t=this._date.weekday;return t>6&&(t=0),t}get millisecond(){return this._date.millisecond}get monthISO(){return this._date.month}get weekISO(){return this._date.weekNumber}get yearISO(){return this._date.weekYear}get monthJS(){return this._date.month-1}get year(){return this._date.year}get minute(){return this._date.minute}get zone(){return this._date.zone}get timeZoneOffset(){return this.isUnknownTimeZone?0:this._date.offset}get timeZone(){if(this.isUnknownTimeZone)return"unknown";if("system"===this._date.zone.type)return"system";const t=this.zone;return"fixed"===t.type?0===t.fixed?"UTC":t.formatOffset(0,"short"):t.name}stringify(){return JSON.stringify(this.toJSDate())}plus(t){return new d(this._date.plus(t))}diff(t,e){return this._date.diff(t._date,e)[e]}toISODate(){return this._date.toISODate()}toISOString(t){return t?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toISOTime(t,e){return this._date.toISOTime({suppressMilliseconds:t,includeOffset:e&&!this.isUnknownTimeZone})}toFormat(t,e){return this.isUnknownTimeZone&&(t=t.replaceAll("Z","")),this._date.toFormat(t,e)}toJSDate(){return this._date.toJSDate()}toSQLValue(){return this._date.toFormat("yyyy-LL-dd HH:mm:ss")}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}toDateTime(){return this._date}toNumber(){return this._date.toMillis()}getTime(){return this._date.toMillis()}toUTC(){return new d(this._date.toUTC())}toLocal(){return new d(this._date.toLocal())}toString(){return this.toISOString(!0)}static fromReaderAsTimeStampOffset(t){if(!t)return null;const e=i.c9.fromISO(t,{setZone:!0});return new d(e)}}function h(t,e=!0){if(t instanceof i.bo)return t;switch((0,n.B)(t)){case"system":return"system";case"utc":return"UTC";case"unknown":return o.GB.instance}if(/^[+-]?[0-9]{1,2}(:[0-9]{2})?$/.test(t)){const e=i.mQ.parseSpecifier("UTC"+(t.startsWith("+")||t.startsWith("-")?"":"+")+t);if(e)return e}const r=i.oh.create(t);if(!r.isValid){if(e)throw new u("TimeZoneNotRecognized");return null}return r}},47609(t,e,r){r.d(e,{A:()=>s});var n=r(66395);class s extends n.A{constructor(t){super({__proto__:null,url:t}),this.declaredClass="esri.arcade.Portal"}get url(){return this.field("url")}}},66395(t,e,r){r.d(e,{A:()=>a});var n=r(66131),s=r(6800),o=r(85935),i=r(78878);class a{constructor(t){this.declaredClass="esri.arcade.Dictionary",this.plain=!1,this.immutable=!0,t instanceof a?this.attributes=t.attributes:null==t?this.attributes=Object.create(null):null!=Object.getPrototypeOf(t)?this.attributes={__proto__:null,...t}:this.attributes=t}static createMutable(t){const e=new a(t);return e.immutable=!1,e}static containerEntry(t,e){return new a({__proto__:null,key:t,value:e})}static textFormatting(){return a.createMutable({__proto__:null,newline:"\n",tab:"\t",singlequote:"'",doublequote:'"',forwardslash:"/",backwardslash:"\\"})}field(t){const e=t.toLowerCase(),r=this.attributes[t];if(void 0!==r)return r;for(const t in this.attributes)if(t.toLowerCase()===e)return this.attributes[t];throw new o.D$("FieldNotFound",null,{key:t})}setField(t,e){if(this.immutable)throw new o.D$("Immutable",null);if((0,i.i)(e))throw new o.D$("NoFunctionInDictionary",null);const r=t.toLowerCase();if(e instanceof Date&&(e=n.lY.dateJSToArcadeDate(e)),void 0===this.attributes[t]){for(const t in this.attributes)if(t.toLowerCase()===r)return void(this.attributes[t]=e);this.attributes[t]=e}else this.attributes[t]=e}eraseField(t){if(this.immutable)throw new o.D$("Immutable",null);if(t in this.attributes)return void delete this.attributes[t];const e=t.toLowerCase();for(const t in this.attributes)if(t.toLowerCase()===e)return void delete this.attributes[t]}hasField(t){const e=t.toLowerCase();if(void 0!==this.attributes[t])return!0;for(const t in this.attributes)if(t.toLowerCase()===e)return!0;return!1}keys(){const t=[];for(const e in this.attributes)t.push(e);return t.sort((t,e)=>t.toLowerCase()<e.toLowerCase()?-1:1)}entryCount(){return Object.keys(this.attributes).length}isEmpty(){return this.entryCount()<=0}castToText(t=!1){return(0,i.c)(this.attributes,{useNumbersForDates:t})}castAsJson(){const t=Object.create(null);for(const e in this.attributes){const r=this.attributes[e];void 0!==r&&(t[e]=(0,i.a)(r))}return t}async castAsJsonAsync(t=null){const e=Object.create(null),r=[];for(const s in this.attributes){const o=this.attributes[s];void 0!==o&&((0,i.b)(o)||(0,i.d)(o)||o instanceof n.lY?e[s]=(0,i.a)(o):r.push((0,i.e)(o,t).then(t=>{e[s]=t})))}return r.length>0&&await Promise.all(r),e}deepClone(){const t=new a;t.immutable=!1;for(const e of this.keys())t.setField(e,(0,s.G)(this.field(e)));return t}}},48938(t,e,r){r.d(e,{X:()=>s});var n=r(85935);function s(t){if("string"==typeof t)return t.toLowerCase();if("name"in t)return t.name.toLowerCase();if("string"!=typeof t.value)throw new n.D$("InvalidIdentifier",null);return t.value.toLowerCase()}const o=Object.freeze({aborted:!1});r.d(e,["_",0,o])},6800(t,e,r){r.d(e,{G:()=>a,y:()=>o});var n=r(78878),s=r(54218);function o(t){i=t}let i;function a(t){return null==t?null:(0,n.f)(t)?t.clone():(0,n.b)(t)?t:(0,n.d)(t)?t.clone():(0,n.g)(t)?t.toArray().map(t=>a(t)):(0,s.cy)(t)?t.map(t=>a(t)):(0,n.h)(t)?i.createFromArcadeFeature(t):(0,n.j)(t)||(0,n.k)(t)?t:(0,n.l)(t)||(0,n.m)(t)?t.deepClone():((0,n.n)(t)||(0,n.o)(t)||(0,n.p)(t)||(0,n.i)(t),t)}},59534(t,e,r){r.d(e,{B:()=>s,b:()=>o});var n=r(85935);function s(t){return t.toLowerCase().replaceAll(/[\s-]+/g,"")}class o{constructor(t,e){const r=new Map;for(const e of t){const t=s(e);if(r.has(t))throw new Error(`${e} already added as ${r.get(t)}`);r.set(t,e)}if(null!=e)for(const[t,n]of e){const e=s(t);if(r.has(e))throw new Error(`${t} already associated with ${r.get(e)}`);r.set(e,n)}this._enumMap=r}lookup(t){return this._enumMap.get(s(t))}get(t){const e=this.lookup(t);if(null==e)throw new n.D$("InvalidParameter",null);return e}}},85935(t,e,r){r.d(e,{D$:()=>a,O$:()=>l,i2:()=>d,mT:()=>c,ps:()=>m});var n=r(799);const s={TypeNotAllowedInFeature:"Feature attributes only support dates, numbers, strings, guids.",LogicError:"Logic error - {reason}",CannotCompareDateAndTime:"Cannot compare date or dateonly with timeonly types",NeverReach:"Encountered unreachable logic",AsyncNotEnabled:"Async Arcade must be enabled for this script",ModuleAccessorMustBeString:"Module accessor must be a string",ModuleExportNotFound:"Module has no export with provided identifier",ModulesNotSupported:"Current profile does not support modules",ArrayAccessMustBeNumber:"Array accessor must be a number",FunctionNotFound:"Function not found",FieldNotFound:"Key not found - {key}",CircularModules:"Circular module dependencies are not allowed",Cancelled:"Execution cancelled",UnsupportedHashType:"Type not supported in hash function",IllegalResult:"Value is not a supported return type",PortalRequired:"Portal is required",InvalidParameter:"Invalid parameter",WrongNumberOfParameters:"Call with wrong number of parameters",Unrecognized:"Unrecognized code structure",UnrecognizedType:"Unrecognized type",WrongSpatialReference:"Cannot work with geometry in this spatial reference. It is different to the execution spatial reference",BooleanConditionRequired:"Conditions must use booleans",NoFunctionInDictionary:"Dictionaries cannot contain functions.",NoFunctionInArray:"Arrays cannot contain functions.",NoFunctionInTemplateLiteral:"Template Literals do not expect functions by value.",KeyAccessorMustBeString:"Accessor must be a string",KeyMustBeString:"Object keys must be a string",Immutable:"Object is immutable",UnexpectedToken:"Unexpected token",MemberOfNull:"Cannot access property of null object",MaximumCallDepth:"Exceeded maximum function depth",OutOfBounds:"Out of bounds",InvalidIdentifier:"Identifier not recognized",CallNonFunction:"Expression is not a function",InvalidMemberAccessKey:"Cannot access value using a key of this type",AssignModuleFunction:"Cannot assign function to module variable",UnsupportUnaryOperator:"Unsupported unary operator",UnsupportedOperator:"Unsupported operator",LogicalExpressionOnlyBoolean:"Logical expressions must be boolean",LogicExpressionOrAnd:"Logical expression can only be combined with || or &&",CannotChangeTimeZoneTime:"Cannot change the timezone of a Time",CannotChangeTimeZoneDateOnly:"Cannot change the timezone of a DateOnly",FeatureSetDoesNotHaveSubtypes:"FeatureSet does not have subtypes"};function o(t){return"object"==typeof t&&"line"in t&&"column"in t&&"number"==typeof t.line&&"number"==typeof t.column}class i extends Error{constructor(t,e){super(u(e)+("object"==typeof t&&null!=t&&"message"in t?t.message:""),{cause:t}),this.loc=e?.loc??null}}class a extends Error{constructor(t,e,r){super("Execution error - "+u(e)+(0,n.HC)(s[t],r)),this.declaredRootClass="esri.arcade.arcadeexecutionerror",this.loc=e?.loc??null}}function u(t){return null==t?.loc?"":`Line ${t.loc.start.line}:${t.loc.start.column}: `}class c extends Error{constructor(t,e,r){super("Compilation error - "+u(e)+(0,n.HC)(s[t],r)),this.declaredRootClass="esri.arcade.arcadecompilationerror",this.loc=e?.loc??null}}class l extends Error{constructor(){super("Uncompilable code structures"),this.declaredRootClass="esri.arcade.arcadeuncompilableerror"}}function d(t,e){return!function(t){if(t instanceof Error&&"loc"in t){const e=t.loc;return null==e||"object"==typeof e&&"start"in e&&null!=e.start&&o(e.start)&&(!("end"in e)||null==e.end||o(e.end))}return!1}(t)||null==t.loc&&null!=e?.loc?new i(t,e):t}const h={UnrecognizedUri:"Unrecognized uri - {uri}",UnsupportedUriProtocol:"Unrecognized uri protocol"};class m extends Error{constructor(t,e){super((0,n.HC)(h[t],e)),this.declaredRootClass="esri.arcade.arcademoduleerror"}}},76343(t,e,r){r.r(e),r.d(e,{BatchTranslationServiceFactory:()=>n.B,PortalTranslationService:()=>n.P,getTranslateParametersKey:()=>n.g,registerFunctions:()=>n.r}),r(48938),r(66395),r(85935),r(78878),r(80672),r(49186),r(53966),r(45475),r(67090),r(62791),r(14942);var n=r(3367)},80672(t,e,r){r.d(e,{Iq:()=>a,RI:()=>i,VQ:()=>c,wI:()=>u});var n=r(47609),s=r(84952),o=r(20655);function i(t,e){return null==e?a(t):new o.A({url:e.url})}function a(t){return t.services?.portal??o.A.getDefault()}function u(t){const e=a(t);return new n.A(e.url)}function c(t,e){const r=t.url;return!!r&&(0,s.ut)(r,e.restUrl)}},3367(t,e,r){r.d(e,{B:()=>S,P:()=>y,g:()=>T,r:()=>C});var n=r(48938),s=r(66395),o=r(85935),i=r(78878),a=r(80672),u=r(49186),c=r(53966),l=r(91869),d=r(45475),h=r(67090),m=r(62791),f=r(14942),p=r(54218);class y{constructor(t,e){this.portal=t,this._debugLog=e}async translate(t){this.portal.loaded||await this.portal.load();const e=this.portal.helperServices?.aiUtilityServices;if(null==e)return{success:!1};const r=e.api?.text_translate;if(null==r)return{success:!1};const n=e.url+r;try{return t.requestSource??="arcade",{success:!0,results:(await(0,d.T)(n,t,{authMode:"no-prompt"})).map(t=>t.toJSON())}}catch(t){return null!=this._debugLog&&(t instanceof Error||t instanceof u.A)&&this._debugLog(`TranslateText error: ${t.message}`),c.A.getLogger("esri.arcade.functions.aiServices").error(t),{success:!1}}}}class g{constructor(t,e,r){this._parameters=t,this._maxTotalContentSize=e,this._maxContentsLength=r,this._requests=[],this._normalizedContents=new Map,this._contentsTotalSize=0}tryAdd(t){const e=new Set(t.filter(t=>!this._normalizedContents.has(t.text)).map(t=>t.text));if(this._requests.length+e.size>this._maxContentsLength)return null;let r=0;for(const t of e)r+=t.length;if((r+this._contentsTotalSize)*(this._parameters.outputCultures.length??1)>this._maxTotalContentSize)return null;const n=this._requests.length;for(const{key:e,text:r}of t)(0,l.tE)(this._normalizedContents,r,()=>[]).push({batchIdx:n,key:e});return this._requests.push(t),this._contentsTotalSize+=r,n}async send(t){const e=[],r=[];let n=0;for(const[t,s]of this._normalizedContents)e.push(new h.k({key:String(n++),text:t})),r.push(s);const s=new m.F(this._parameters);s.input=e;const o=await t.translate(s);if(!o.success)return Array.from(this._requests,()=>o);const i=Array.from(this._requests,()=>({success:!0,results:[]}));for(const t of o.results){const e=Number(t.key);for(const n of r[e])i[n.batchIdx].results.push({...t,key:n.key})}return i}}function T(t){const e=[...new Set(t.outputCultures)].sort(),r=t.inputCulture??null,n=t.portalUrl,s=t.provider;return JSON.stringify([e,r,n,s])}async function w(t,e,r){try{return(await t.yieldFor(r))[e]}catch{return{success:!1}}}class S{constructor(t,e,{maxTotalContentSize:r=5e4,maxContentsLength:n=1e3}={}){this._executor=t,this._service=e,this._openBatches=new Map,this._maxTotalContentSize=r,this._maxContentsLength=n}create(t){return{translate:async e=>{const r=T(e),{input:n,outputCultures:s,inputCulture:o,provider:i,portalUrl:a}=e;if(null==s)return{success:!1};if(null==n||n.every(t=>0===t.text.length))return{success:!1};const u=this._openBatches.get(r);if(null!=u){const e=u.data.tryAdd(n);if(null!=e)return await w(t,e,u);u.send()}const c=new g({outputCultures:s,inputCulture:o,provider:i,portalUrl:a},this._maxTotalContentSize,this._maxContentsLength),l=c.tryAdd(n);if(null!=l){const e=this._executor.openBatch(c,{open:t=>{this._openBatches.set(r,t)},execute:t=>t.send(this._service),close:t=>{this._openBatches.get(r)===t&&this._openBatches.delete(r)}});return await w(t,l,e)}return await this._service.translate(e)}}}}function C(t){"async"===t.mode&&(t.functions[(0,n.X)("TranslateText")]=function(e,r){return t.standardFunctionAsync(e,r,async(t,e,r)=>{if((0,i.E)(r,2,3,e),!(0,p.Kg)(r[0])&&!(0,p.cy)(r[0])&&!(0,i.g)(r[0]))throw new o.D$("InvalidParameter",e);const n=(0,i.P)(r[0]);if(!(0,p.Kg)(r[1])&&!(0,p.cy)(r[1])&&!(0,i.g)(r[1]))throw new o.D$("InvalidParameter",e);const u=(0,i.P)(r[1]);let c=null;if(r.length>=3){if(!(0,p.Kg)(r[2]))throw new o.D$("InvalidParameter",e);c=r[2]}const l=n.map((t,e)=>new h.k({key:String(e),text:t})),d=(0,a.Iq)(t),g=new m.F({outputCultures:u,input:l,inputCulture:c,portalUrl:d.restUrl.replace(/\/sharing\/rest$/,"")}),w=new Map;let S;if(null!=t.lrucache){const e=t.lrucache;S??=T(g),g.input=g.input?.filter(t=>{const r=e.getCachedTranslation(S,t.text);return null==r||(w.set(t.key,{...r,key:t.key}),!1)})}if(g.input?.length){const e=t.services?.translation??new y(d,t.console),r=await e.translate(g);if(!r.success)return new s.A({__proto__:null,success:!1});for(const e of r.results){const r=g.input?.find(t=>t.key===e.key)?.text;if(null==r)throw new o.D$("NeverReach",null);w.set(e.key,e),null!=t.lrucache&&(S??=T(g),t.lrucache.setCachedTranslation(S,r,{detectedLanguage:e.detectedLanguage,translations:e.translations}))}}const C=Array.from(l,t=>{const e=f.s.fromJSON(w.get(t.key));if(null==e)throw new o.D$("NeverReach",null);const r=Object.create(null);for(const t of e.translations)r[t.to]=t.text;return new s.A({__proto__:null,key:e.key,text:t.text,detectedLanguage:new s.A({__proto__:null,language:e.detectedLanguage,score:e.detectedLanguageScore}),translation:new s.A(r)})});return new s.A({__proto__:null,success:!0,results:C})})})}const _=Object.freeze(Object.defineProperty({__proto__:null,BatchTranslationServiceFactory:S,PortalTranslationService:y,getTranslateParametersKey:T,registerFunctions:C},Symbol.toStringTag,{value:"Module"}));r.d(e,["A",0,_])},44729(t,e,r){r.d(e,{n:()=>u});var n=r(66131),s=r(73444),o=r(34747);function i(t){t=t.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let e="";const r=/(\[[^[]*\])|(\\)?([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?|ZZ?|.)/g;for(const n of t.match(r)||[])switch(n){case"D":e+="d";break;case"DD":e+="dd";break;case"DDD":e+="o";break;case"d":e+="c";break;case"ddd":e+="ccc";break;case"dddd":e+="cccc";break;case"M":e+="L";break;case"MM":e+="LL";break;case"MMM":e+="LLL";break;case"MMMM":e+="LLLL";break;case"YY":e+="yy";break;case"Y":case"YYYY":e+="yyyy";break;case"Q":e+="q";break;case"X":case"x":e+=n;break;default:n.length>=2&&n.startsWith("[")&&n.endsWith("]")?e+=`'${n.slice(1,-1)}'`:e+=`'${n}'`}return e}const a="esri.core.sql.dateonly";class u{constructor(t,e,r){this._year=t,this._month=e,this._day=r,this.declaredRootClass=a}static isDateOnly(t){return"object"==typeof t&&null!=t&&"declaredRootClass"in t&&t.declaredRootClass===a}get month(){return this._month}get monthJS(){return this._month-1}get year(){return this._year}get day(){return this._day}get isValid(){return this.toDateTime("unknown").isValid}equals(t){return u.isDateOnly(t)&&t.day===this.day&&t.month===this.month&&t.year===this.year}compare(t){return this.year===t.year?this.month===t.month?this.day-t.day:this.month-t.month:this.year-t.year}clone(){return new u(this._year,this._month,this._day)}toDateTime(t){return o.c9.fromObject({day:this.day,month:this.month,year:this.year},{zone:(0,n.mT)(t)})}toDateTimeLuxon(t){return o.c9.fromObject({day:this.day,month:this.month,year:this.year},{zone:(0,n.mT)(t)})}toString(){return`${this.year.toString().padStart(4,"0")}-${this.month.toString().padStart(2,"0")}-${this.day.toString().padStart(2,"0")}`}toFormat(t=null,e=!0){if(null===t||""===t)return this.toString();if(e&&(t=i(t)),!t)return"";const r=this.toDateTime("unknown");return n.lY.dateTimeToArcadeDate(r).toFormat(t,{locale:(0,s.JK)(),numberingSystem:"latn"})}toArcadeDate(){const t=this.toDateTime("unknown");return n.lY.dateTimeToArcadeDate(t)}toNumber(){return this.toDateTime("unknown").toMillis()}toJSDate(){return this.toDateTime("unknown").toJSDate()}toStorageFormat(){return this.toFormat("yyyy-LL-dd",!1)}toSQLValue(){return this.toFormat("yyyy-LL-dd",!1)}toSQLWithKeyword(){return"date '"+this.toFormat("yyyy-LL-dd",!1)+"'"}plus(t,e){return u.fromDateTime(this.toUTCDateTime().plus({[t]:e}))}toUTCDateTime(){return o.c9.utc(this.year,this.month,this.day,0,0,0,0)}difference(t,e){switch(e.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(t.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return"M"===e?this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(t.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(t.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(t.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(t.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(t.toUTCDateTime(),"years").years}}static fromMilliseconds(t){const e=o.c9.fromMillis(t,{zone:o.mQ.utcInstance});return e.isValid?u.fromParts(e.year,e.month,e.day):null}static fromSeconds(t){const e=o.c9.fromSeconds(t,{zone:o.mQ.utcInstance});return e.isValid?u.fromParts(e.year,e.month,e.day):null}static fromReader(t){if(!t)return null;const e=t.indexOf("-");if(e<0)return null;const r=t.indexOf("-",e+1);return r<0?null:new u(parseInt(t.slice(0,e),10),parseInt(t.slice(e+1,r),10),parseInt(t.slice(r+1),10))}static fromParts(t,e,r){const n=new u(t,e,r);return!1===n.isValid?null:n}static fromDateJS(t){return u.fromParts(t.getFullYear(),t.getMonth()+1,t.getDay())}static fromDateTime(t){return u.fromParts(t.year,t.month,t.day)}static fromSqlTimeStampOffset(t){return this.fromDateTime(t.toDateTime())}static fromString(t,e=null){if(""===t)return null;if(null===t)return null;const r=[];if(e)(e=i(e))&&r.push(e);else if(null===e||""===e){const e=o.c9.fromISO(t,{setZone:!0});return e.isValid?u.fromParts(e.year,e.month,e.day):null}for(const n of r){const r=o.c9.fromFormat(t,e??n);if(r.isValid)return new u(r.year,r.month,r.day)}return null}static fromNow(t="system"){const e=o.c9.fromJSDate(new Date).setZone((0,n.mT)(t));return new u(e.year,e.month,e.day)}}},15032(t,e,r){r.d(e,{k:()=>u});var n=r(73444),s=r(54218),o=r(34747);function i(t){if(!t)return"";const e=/(a|A|hh?|HH?|mm?|ss?|SSS|S|.)/g;let r="";for(const n of t.match(e)||[])switch(n){case"SSS":case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":r+=n;break;case"A":case"a":r+="a";break;default:r+=`'${n}'`}return r}const a="esri.core.sql.timeonly";class u{constructor(t,e,r,n){this._hour=t,this._minute=e,this._second=r,this._millisecond=n,this.declaredRootClass=a}static isTimeOnly(t){return"object"==typeof t&&null!=t&&"declaredRootClass"in t&&t.declaredRootClass===a}get hour(){return this._hour}get minute(){return this._minute}get second(){return this._second}get millisecond(){return this._millisecond}equals(t){return u.isTimeOnly(t)&&t.hour===this.hour&&t.minute===this.minute&&t.second===this.second&&t.millisecond===this.millisecond}clone(){return new u(this.hour,this.minute,this.second,this.millisecond)}isValid(){return(0,s.Fq)(this.hour)&&(0,s.Fq)(this.minute)&&(0,s.Fq)(this.second)&&(0,s.Fq)(this.millisecond)&&this.hour>=0&&this.hour<24&&this.minute>=0&&this.minute<60&&this.second>=0&&this.second<60&&this.millisecond>=0&&this.millisecond<1e3}toString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`+(this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):"")}toSQLValue(){return this.toString()}toSQLWithKeyword(){return`time '${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}${this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):""}'`}toStorageString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`}toFormat(t=null){return null===t||""===t?this.toString():(t=i(t))?o.c9.local(1970,1,1,this._hour,this._minute,this._second,this._millisecond).toFormat(t,{locale:(0,n.JK)(),numberingSystem:"latn"}):""}toNumber(){return this.millisecond+1e3*this.second+1e3*this.minute*60+60*this.hour*60*1e3}static fromParts(t,e,r,n){const s=new u(t,e,r,n);return s.isValid()?s:null}static fromReader(t){if(!t)return null;const e=t.indexOf(":");if(e<0)return null;const r=t.indexOf(":",e+1);return r<0?null:new u(parseInt(t.slice(0,e),10),parseInt(t.slice(e+1,r),10),parseInt(t.slice(r+1),10),0)}static fromMilliseconds(t){if(t>864e5||t<0)return null;const e=Math.floor(t/1e3%60),r=Math.floor(t/6e4%60),n=Math.floor(t/36e5%24),s=Math.floor(t%1e3);return new u(n,r,e,s)}static fromDateJS(t){return new u(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}static fromDateTime(t){return new u(t.hour,t.minute,t.second,t.millisecond)}static fromSqlTimeStampOffset(t){return this.fromDateTime(t.toDateTime())}static fromString(t,e=null){if(""===t)return null;if(null===t)return null;const r=[];e?(e=i(e))&&r.push(e):null!==e&&""!==e||(r.push("HH:mm:ss"),r.push("HH:mm:ss.SSS"),r.push("hh:mm:ss a"),r.push("hh:mm:ss.SSS a"),r.push("HH:mm"),r.push("hh:mm a"),r.push("H:mm"),r.push("h:mm a"),r.push("H:mm:ss"),r.push("h:mm:ss a"),r.push("H:mm:ss.SSS"),r.push("h:mm:ss.SSS a"));for(const e of r){const r=o.c9.fromFormat(t,e);if(r.isValid)return new u(r.hour,r.minute,r.second,r.millisecond)}return null}plus(t,e){switch(t){case"days":case"years":case"months":return this.clone();case"hours":case"minutes":case"seconds":case"milliseconds":return u.fromDateTime(this.toUTCDateTime().plus({[t]:e}))}return null}toUTCDateTime(){return o.c9.utc(1970,1,1,this.hour,this.minute,this.second,this.millisecond)}difference(t,e){switch(e.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(t.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return"M"===e?this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(t.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(t.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(t.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(t.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(t.toUTCDateTime(),"years").years}}}},67090(t,e,r){r.d(e,{k:()=>a});var n=r(32198),s=r(25482),o=r(10107),i=r(64108);let a=class extends s.o{constructor(t){super(t)}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"key",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"text",void 0),a=(0,n.Cg)([(0,i.$)("esri.rest.support.TranslateContent")],a)},62791(t,e,r){r.d(e,{F:()=>u});var n=r(32198),s=r(25482),o=r(10107),i=r(64108),a=r(67090);let u=class extends s.o{constructor(t){super(t),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,o.MZ)({type:[String],json:{write:!0}})],u.prototype,"outputCultures",void 0),(0,n.Cg)([(0,o.MZ)({type:[a.k],json:{write:!0}})],u.prototype,"input",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{read:!1,write:!1}})],u.prototype,"portalUrl",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0,default:"default"}})],u.prototype,"provider",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"inputCulture",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{read:!1,write:!1}})],u.prototype,"requestSource",void 0),u=(0,n.Cg)([(0,i.$)("esri.rest.support.TranslateParameters")],u)},14942(t,e,r){r.d(e,{s:()=>u});var n=r(32198),s=r(25482),o=r(10107),i=r(64108);let a=class extends s.o{};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"text",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"to",void 0),a=(0,n.Cg)([(0,i.$)("esri.rest.support.TranslateResult.Translation")],a);let u=class extends s.o{constructor(t){super(t),this.detectedLanguage="en",this.detectedLanguageScore=-1}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"key",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{read:{source:"detectedLanguage.language"},write:{target:"detectedLanguage.language"}}})],u.prototype,"detectedLanguage",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{read:{source:"detectedLanguage.score"},write:{target:"detectedLanguage.score"}}})],u.prototype,"detectedLanguageScore",void 0),(0,n.Cg)([(0,o.MZ)({type:[a],json:{write:!0}})],u.prototype,"translations",void 0),u=(0,n.Cg)([(0,i.$)("esri.rest.support.TranslateResult")],u)},45475(t,e,r){r.d(e,{T:()=>i});var n=r(11254),s=r(2272),o=r(14942);async function i(t,e,r){const i=JSON.stringify(e.toJSON()),a={};"https://www.arcgis.com"!==e.portalUrl&&(a.portal=e.portalUrl),null!=e.requestSource&&(a.request_source=e.requestSource),a.token=await(0,s.gf)(e.portalUrl,null,{signal:r?.signal,prompt:"no-prompt"!==r?.authMode});const u=(0,s.Dl)(t),c=(0,s.jV)(u.query,{...r,query:a,body:i,method:"post",authMode:"anonymous"});return(await(0,n.A)(u.path,c)).data.results.map(t=>o.s.fromJSON(t))}},2272(t,e,r){r.d(e,{Dl:()=>c,gf:()=>d,jV:()=>u,lF:()=>l});var n=r(92602),s=r(70333),o=r(4718),i=r(84952),a=r(926);function u(t,e){return e?{...e,query:{...t,...e.query}}:{query:t}}function c(t){return"string"==typeof t?(0,i.An)(t):(0,o.o8)(t)}function l(t,e,r){const n={};for(const s in t){if("declaredClass"===s)continue;const o=t[s];if(null!=o&&"function"!=typeof o)if(Array.isArray(o))n[s]=o.map(t=>l(t));else if("object"==typeof o)if(o.toJSON){const t=o.toJSON(r?.[s]);n[s]=e?t:JSON.stringify(t)}else n[s]=e?o:JSON.stringify(o);else n[s]=o}return n}async function d(t,e,o){const i=function(t,e){return t?e&&(0,a.Qc)(t)?e:(0,a.getApiKey)(t)??s.id?.findCredential(t)?.token:null}(t,e);if(i)return i;!s.id&&n.A.request.useIdentity&&await Promise.all([r.e(5620),r.e(4372),r.e(8837)]).then(r.bind(r,50148));const u=await s.id.getCredential(t,o);return u?.token}}}]);
|