@arcgis/core 5.2.0-next.121 → 5.2.0-next.122
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/Ground.js +1 -1
- package/arcgisGlobal.d.ts +2 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/0148cb611bf7c8c5fe8a.js +1 -0
- package/assets/esri/core/workers/chunks/{deb5b1d772ca407654d4.js → 0acc754907395e83bbc6.js} +1 -1
- package/assets/esri/core/workers/chunks/{bcb06a0643b4c83535ee.js → 1302bf9718747cd9fdd9.js} +1 -1
- package/assets/esri/core/workers/chunks/{956432c9d45940983bc2.js → 1b42d163ef22e3565bb7.js} +1 -1
- package/assets/esri/core/workers/chunks/1b551ef3d84d9c1e93f9.js +1 -0
- package/assets/esri/core/workers/chunks/{4adad3312caa24af98ac.js → 1c38ce72160d5a4e4b3d.js} +1 -1
- package/assets/esri/core/workers/chunks/1c3b087fbf2d102376fc.js +1 -0
- package/assets/esri/core/workers/chunks/{9b3813e39992b1b99941.js → 1e46703cb566c25458ad.js} +1 -1
- package/assets/esri/core/workers/chunks/{015cb790262a59857c5f.js → 1f135269aea3931e11b2.js} +1 -1
- package/assets/esri/core/workers/chunks/23279303cd7698314c56.js +1 -0
- package/assets/esri/core/workers/chunks/{4bf2cc4d092601ff2b86.js → 24673aac70d6c949b6fa.js} +1 -1
- package/assets/esri/core/workers/chunks/24cf91aeab53a897e951.js +1 -0
- package/assets/esri/core/workers/chunks/26bc509a031788bfa678.js +1 -0
- package/assets/esri/core/workers/chunks/2ae6deade655fdbc28de.js +1 -0
- package/assets/esri/core/workers/chunks/{37cf4ca2083cd3b6002e.js → 2c7bb5c9751524687002.js} +1 -1
- package/assets/esri/core/workers/chunks/2c8957f9c7610805208c.js +1 -0
- package/assets/esri/core/workers/chunks/{a3c1a5a5c5cbf27b376d.js → 2d592c935571de80a2e2.js} +1 -1
- package/assets/esri/core/workers/chunks/{a917a1df8270860dc514.js → 2f52ad525744b8793d49.js} +1 -1
- package/assets/esri/core/workers/chunks/{6efc5873747b9cd44fb9.js → 323451ef52d0c2805f1d.js} +1 -1
- package/assets/esri/core/workers/chunks/37ae52c71bf9c70fbb92.js +1 -0
- package/assets/esri/core/workers/chunks/38890ac5917942374ab8.js +1 -0
- package/assets/esri/core/workers/chunks/3e33d953e41b281a120b.js +1 -0
- package/assets/esri/core/workers/chunks/3e52351e06d85bf9bedd.js +1 -0
- package/assets/esri/core/workers/chunks/{fbc5f275c4e5e6bfffaa.js → 462fd57af8ed7921d6ba.js} +1 -1
- package/assets/esri/core/workers/chunks/{1846296be959e28c42bb.js → 475906b079f4f1ddacf2.js} +1 -1
- package/assets/esri/core/workers/chunks/{ea49721fdd2172d1c799.js → 48a2f68e06a2e90b77d0.js} +1 -1
- package/assets/esri/core/workers/chunks/{b6ca73c1384f07b30b74.js → 4bb8432d99a39733368f.js} +1 -1
- package/assets/esri/core/workers/chunks/{c44cbe04efddbbbaec13.js → 4f58e0322707f63f5bf2.js} +1 -1
- package/assets/esri/core/workers/chunks/{0e9f54d7f158195bd203.js → 59cd139712d919e6a738.js} +1 -1
- package/assets/esri/core/workers/chunks/59d5247ac4075b024244.js +1 -0
- package/assets/esri/core/workers/chunks/5b9f3c4f65412c66316f.js +1 -0
- package/assets/esri/core/workers/chunks/{be3421ffb5b391bca02e.js → 5d35e0c2665f5e625ee9.js} +1 -1
- package/assets/esri/core/workers/chunks/5e70bfb9d6235a87b87a.js +1 -0
- package/assets/esri/core/workers/chunks/6006bd8a5ed945fa2776.js +1 -0
- package/assets/esri/core/workers/chunks/618927cfcb93dd1d92fd.js +1 -0
- package/assets/esri/core/workers/chunks/6709d24867d275b33d24.js +1 -0
- package/assets/esri/core/workers/chunks/68e24fa3f564c2a5c9fd.js +1 -0
- package/assets/esri/core/workers/chunks/{fd5e61cb6f936eadcfe3.js → 724ea2e2843e6dac0a90.js} +1 -1
- package/assets/esri/core/workers/chunks/7441d121f00ce747c08e.js +1 -0
- package/assets/esri/core/workers/chunks/{e86f83a6514a35255f64.js → 781fa83e8063b8f685dc.js} +1 -1
- package/assets/esri/core/workers/chunks/{a005efcde3ca9def4e6b.js → 78c1b75b1a8937eaa3cd.js} +1 -1
- package/assets/esri/core/workers/chunks/793b072519ded0dc6f34.js +1 -0
- package/assets/esri/core/workers/chunks/{1086f190f94c715bbfe4.js → 7994fce5f36963aadc51.js} +1 -1
- package/assets/esri/core/workers/chunks/7adee504107cb9ad8563.js +1 -0
- package/assets/esri/core/workers/chunks/7efc45858ebd3fd3302e.js +1 -0
- package/assets/esri/core/workers/chunks/7ff536284942c5284a16.js +1 -0
- package/assets/esri/core/workers/chunks/813dd84933b407c8fe86.js +1 -0
- package/assets/esri/core/workers/chunks/8daeac785af725c3ebdf.js +1 -0
- package/assets/esri/core/workers/chunks/{3ab25279aaa30f035038.js → 8daed13400d9e63e65ae.js} +1 -1
- package/assets/esri/core/workers/chunks/9020bd7a0e488d55ef14.js +1 -0
- package/assets/esri/core/workers/chunks/{cf7c06702babd6fa88b4.js → 9af36ee6a0df224859bc.js} +1 -1
- package/assets/esri/core/workers/chunks/{452d069ba7ad6759b558.js → 9c46c7f00d42f5c02b26.js} +1 -1
- package/assets/esri/core/workers/chunks/a3ab53b534e2872131be.js +1 -0
- package/assets/esri/core/workers/chunks/{fa3f824c874f29d24953.js → aa6b2cc8f6f5627891c1.js} +1 -1
- package/assets/esri/core/workers/chunks/ac7af417ebf7721d7400.js +1 -0
- package/assets/esri/core/workers/chunks/aed479c14d93955f4798.js +1 -0
- package/assets/esri/core/workers/chunks/{60c61f34733063730386.js → b013b70e40dfb6ce013e.js} +1 -1
- package/assets/esri/core/workers/chunks/b22de8bf4a4a739bc36d.js +1 -0
- package/assets/esri/core/workers/chunks/b39cd78d2d97bef9909e.js +1 -0
- package/assets/esri/core/workers/chunks/b5f50955c1eee55b67d1.js +1 -0
- package/assets/esri/core/workers/chunks/{99ebc99e8d1bca105b5e.js → b688e6463a651779a016.js} +1 -1
- package/assets/esri/core/workers/chunks/bdf012e591a8476db467.js +1 -0
- package/assets/esri/core/workers/chunks/{daf7b647bd960d8bad56.js → be52c319a0a81ce1ba36.js} +1 -1
- package/assets/esri/core/workers/chunks/{89edaa1ffa566908ebca.js → ca5a4f62b09cc8579dc0.js} +1 -1
- package/assets/esri/core/workers/chunks/{fbb390c0d92d1536fce3.js → ce1ccf9ec90b786591e5.js} +1 -1
- package/assets/esri/core/workers/chunks/cf0bed7ae27021fd7b05.js +1 -0
- package/assets/esri/core/workers/chunks/cf6f671823fa6c2a9a5e.js +1 -0
- package/assets/esri/core/workers/chunks/{39c5e0f6262f69a62c66.js → d25210574168ead2f813.js} +1 -1
- package/assets/esri/core/workers/chunks/d3378c479052d566317c.js +1 -0
- package/assets/esri/core/workers/chunks/d3ef23923424ad8c5048.js +1 -0
- package/assets/esri/core/workers/chunks/{46388b86d1b10e6121bd.js → d507d7d7a7282fc38e8d.js} +1 -1
- package/assets/esri/core/workers/chunks/dc0816f064be576a2fa6.js +1 -0
- package/assets/esri/core/workers/chunks/{d9b761104ab6e4acaf91.js → dd4ecf81250cc001d040.js} +1 -1
- package/assets/esri/core/workers/chunks/e10fe4c77b8dc4492092.js +1 -0
- package/assets/esri/core/workers/chunks/e4e1db4e9e5f13167401.js +1 -0
- package/assets/esri/core/workers/chunks/e5ee64e2fb5bfcb716d8.js +1 -0
- package/assets/esri/core/workers/chunks/{e755075ac2e02e881fad.js → e6637f9176566382ed3e.js} +1 -1
- package/assets/esri/core/workers/chunks/e6dc68c4bd8eddb168d1.js +1 -0
- package/assets/esri/core/workers/chunks/eb780f2dafa14f776166.js +1 -0
- package/assets/esri/core/workers/chunks/{d9d5f50af047ee7af129.js → eb7f45736c852725b0bb.js} +89 -58
- package/assets/esri/core/workers/chunks/ed31ec586b754241474d.js +1 -0
- package/assets/esri/core/workers/chunks/f38d11be766043413659.js +1 -0
- package/assets/esri/libs/pdfjs/pdf.worker.mjs +63075 -0
- package/assets/esri/libs/pdfjs/wasm/jbig2.wasm +0 -0
- package/assets/esri/libs/pdfjs/wasm/openjpeg.wasm +0 -0
- package/assets/esri/libs/pdfjs/wasm/qcms_bg.wasm +0 -0
- package/assets/esri/libs/pdfjs/wasm/quickjs-eval.wasm +0 -0
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.en.json +1 -1
- package/chunks/CloudsComposition.glsl.js +2 -2
- package/chunks/GlobalIllumination.glsl.js +42 -13
- package/chunks/GlobalIlluminationBlur.glsl.js +1 -1
- package/config.js +1 -1
- package/core/arrayUtils.js +1 -1
- package/core/workers/registry.js +1 -1
- package/geometry/support/geometryUtils.js +1 -1
- package/geometry/support/heightModelInfoUtils.js +1 -1
- package/geometry/support/meshUtils/elevation.js +1 -1
- package/kernel.js +1 -1
- package/layers/GeospatialPDFLayer.d.ts +40 -0
- package/layers/GeospatialPDFLayer.js +2 -0
- package/layers/IntegratedMeshLayer.js +1 -1
- package/layers/geospatialPDF/GeospatialPDFFrame.js +2 -0
- package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +5 -0
- package/layers/geospatialPDF/GeospatialPDFParserUtils.js +2 -0
- package/layers/geospatialPDF/GeospatialPDFWorkerClient.js +2 -0
- package/layers/geospatialPDF/LGIDictMapFrame.js +2 -0
- package/layers/geospatialPDF/Projection.js +2 -0
- package/layers/geospatialPDF/ViewportMeasureFrame.js +2 -0
- package/layers/geospatialPDF/renderExtentUtils.js +2 -0
- package/layers/geospatialPDF/sharedUtils.js +2 -0
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/raster/datasets/GeospatialPDFRaster.js +2 -0
- package/layers/support/ElevationQuery.js +1 -1
- package/layers/support/LabelClass.js +1 -1
- package/layers/support/layersLoader.js +1 -1
- package/layers/types.d.ts +1 -1
- package/package.json +4 -4
- package/portal/PortalItem.js +1 -1
- package/portal/support/portalLayers.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
- package/views/2d/input/MapViewInputManager.js +1 -1
- package/views/2d/input/handlers/KeyPan.js +1 -1
- package/views/2d/input/handlers/KeyRotate.js +1 -1
- package/views/2d/layerViewModuleImportUtils.js +1 -1
- package/views/2d/layers/GeospatialPDFLayerView2D.js +2 -0
- package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
- package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
- package/views/2d/types.d.ts +2 -0
- package/views/3d/GroundView3D.js +1 -1
- package/views/3d/analysis/Slice/SliceTool.js +1 -1
- package/views/3d/input/handlers/KeyboardNavigation.js +1 -1
- package/views/3d/layerViewModuleImportUtils.js +1 -1
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/layers/GeospatialPDFLayerView3D.js +2 -0
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
- package/views/3d/layers/LayerView3D.js +1 -1
- package/views/3d/layers/i3s/I3SMaterialUtil.js +1 -1
- package/views/3d/layers/i3s/Intersector.js +1 -1
- package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
- package/views/3d/support/GroundAndIMSurface.js +1 -1
- package/views/3d/support/hitTest.js +1 -1
- package/views/3d/terrain/isTerrainSurfaceLayer.js +1 -1
- package/views/3d/types.d.ts +2 -0
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +8 -6
- package/views/3d/webgl-engine/core/shaderLibrary/shading/PhysicallyBasedRenderingParameters.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterColor.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +6 -6
- package/views/3d/webgl-engine/effects/clouds/CloudsComposition.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/intersectorUtilsConversions.js +1 -1
- package/views/SceneView.d.ts +31 -0
- package/views/SceneView.js +1 -1
- package/views/View.d.ts +35 -0
- package/views/View.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileLineGroundComputation.js +1 -1
- package/views/analysis/ElevationProfile/elevationProfileQuerySourceUtils.js +1 -1
- package/views/interactive/options/ViewOptions.d.ts +98 -0
- package/views/interactive/options/ViewOptions.js +2 -0
- package/views/interactive/support/Units.d.ts +10 -2
- package/views/interactive/support/Units.js +1 -1
- package/views/layers/FeatureLikeLayerView.d.ts +27 -5
- package/views/layers/GraphicsLayerView.d.ts +25 -2
- package/views/layers/ImageryTileLayerView.js +1 -1
- package/views/selection/types.d.ts +1 -1
- package/views/support/DefaultsFromMap.js +1 -1
- package/views/types.d.ts +9 -3
- package/widgets/ElevationProfile/ElevationProfileLineGround.js +1 -1
- package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.d.ts +8 -2
- package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js +1 -1
- package/widgets/support/SelectionToolbar/VisibleElements.d.ts +8 -1
- package/widgets/support/SelectionToolbar/VisibleElements.js +1 -1
- package/widgets/support/SelectionToolbar.d.ts +7 -1
- package/widgets/support/SelectionToolbar.js +1 -1
- package/assets/esri/core/workers/chunks/01ca17092545d72be7b6.js +0 -1
- package/assets/esri/core/workers/chunks/0b727d7bf3e36e146725.js +0 -1
- package/assets/esri/core/workers/chunks/0bd067a5c0bac96caeb5.js +0 -1
- package/assets/esri/core/workers/chunks/0ff13f7a18b0123d253e.js +0 -1
- package/assets/esri/core/workers/chunks/114bc14c49176f64a2c5.js +0 -1
- package/assets/esri/core/workers/chunks/173417fe995e9bfc49d8.js +0 -1
- package/assets/esri/core/workers/chunks/2cf571d968118b6bdde0.js +0 -1
- package/assets/esri/core/workers/chunks/43436c7ccc6baefc885d.js +0 -1
- package/assets/esri/core/workers/chunks/445b0ca1b70730c9a2e6.js +0 -1
- package/assets/esri/core/workers/chunks/48d3da636be15581fd7d.js +0 -1
- package/assets/esri/core/workers/chunks/501df20cdd09384f6ee2.js +0 -1
- package/assets/esri/core/workers/chunks/50ae209237f104735a30.js +0 -1
- package/assets/esri/core/workers/chunks/54f9062526c2002b7fd7.js +0 -1
- package/assets/esri/core/workers/chunks/56b7ac280bf0be938c14.js +0 -1
- package/assets/esri/core/workers/chunks/61bcbafd676804ce3e1d.js +0 -1
- package/assets/esri/core/workers/chunks/63f7141c71f29dbe8270.js +0 -1
- package/assets/esri/core/workers/chunks/726ca458b98bb4334431.js +0 -1
- package/assets/esri/core/workers/chunks/75410a4de76e67ed5da4.js +0 -1
- package/assets/esri/core/workers/chunks/85780f4fa4b5509f864e.js +0 -1
- package/assets/esri/core/workers/chunks/862754d2d659528fe884.js +0 -1
- package/assets/esri/core/workers/chunks/8675ab3c4dec2f13b9c6.js +0 -1
- package/assets/esri/core/workers/chunks/8a103b6e9534516421e2.js +0 -1
- package/assets/esri/core/workers/chunks/917dec9c004218c58950.js +0 -1
- package/assets/esri/core/workers/chunks/91a51d959ee5c6123c46.js +0 -1
- package/assets/esri/core/workers/chunks/91f451b98e0f696043df.js +0 -1
- package/assets/esri/core/workers/chunks/9d92e6f0beed9a8580fa.js +0 -1
- package/assets/esri/core/workers/chunks/a42505b978d54d36d3b6.js +0 -1
- package/assets/esri/core/workers/chunks/a70c59129ea808857d07.js +0 -1
- package/assets/esri/core/workers/chunks/a86a4e550a92f770d6d5.js +0 -1
- package/assets/esri/core/workers/chunks/b45ebb1b64ee7314375e.js +0 -1
- package/assets/esri/core/workers/chunks/b5b30c8447a0f967fa79.js +0 -1
- package/assets/esri/core/workers/chunks/baa8bce361a2677533ec.js +0 -1
- package/assets/esri/core/workers/chunks/c70a32ac0fa49f4493ca.js +0 -1
- package/assets/esri/core/workers/chunks/cf1106eda10f3cccb1bd.js +0 -1
- package/assets/esri/core/workers/chunks/d1b5be1aeab16d36d4b1.js +0 -1
- package/assets/esri/core/workers/chunks/d38252956c3d9e2168f7.js +0 -1
- package/assets/esri/core/workers/chunks/d6130cd8a20d24dd9d3c.js +0 -1
- package/assets/esri/core/workers/chunks/da161f8cbe1cfc5fcf7c.js +0 -1
- package/assets/esri/core/workers/chunks/da5b3421a984cb94fd58.js +0 -1
- package/assets/esri/core/workers/chunks/e52f30dfb7c82491a7f2.js +0 -1
- package/assets/esri/core/workers/chunks/e88eee4c2fc4229c2a8b.js +0 -1
- package/assets/esri/core/workers/chunks/f75e57d3e02f9828b049.js +0 -1
- package/assets/esri/core/workers/chunks/f774e5b94710ccee1af0.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3354,4538],{73354(t,e,n){n.d(e,{a:()=>l,b:()=>a,c:()=>o,d:()=>i,e:()=>f,f:()=>u,l:()=>c,n:()=>m,t:()=>s}),n(44208);var r=n(72727);function o(t,e,n){s(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function s(t,e,n,o=3,s=o){const i=(0,r.k)(t.length,o,3),a=(0,r.k)(e.length,s,3),h=Math.min(i,a),c=n[0],u=n[1],l=n[2],f=n[4],m=n[5],d=n[6],p=n[8],y=n[9],g=n[10],M=n[12],_=n[13],b=n[14];let v=0,x=0;for(let n=0;n<h;n++){const n=e[v],r=e[v+1],i=e[v+2];t[x]=c*n+f*r+p*i+M,t[x+1]=u*n+m*r+y*i+_,t[x+2]=l*n+d*r+g*i+b,v+=s,x+=o}return t}function i(t,e,n){a(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function a(t,e,n,o=3,s=o){const i=(0,r.k)(t.length,o,3),a=(0,r.k)(e.length,s,3),h=Math.min(i,a),c=n[0],u=n[1],l=n[2],f=n[3],m=n[4],d=n[5],p=n[6],y=n[7],g=n[8];let M=0,_=0;for(let n=0;n<h;n++){const n=e[M],r=e[M+1],i=e[M+2];t[_]=c*n+f*r+p*i,t[_+1]=u*n+m*r+y*i,t[_+2]=l*n+d*r+g*i,M+=s,_+=o}}function h(t,e,n,r=3,o=r){const s=Math.min(t.length/r,e.length/o);let i=0,a=0;for(let h=0;h<s;h++)t[a]=n*e[i],t[a+1]=n*e[i+1],t[a+2]=n*e[i+2],i+=o,a+=r;return t}function c(t,e,n,r){u(t.typedBuffer,e.typedBuffer,n,r,t.typedBufferStride,e.typedBufferStride)}function u(t,e,n,r,o=3,s=o){const i=Math.min(t.length/o,e.length/s);let a=0,h=0;const c=1/2.2;for(let u=0;u<i;u++)t[h]=r*(n*e[a])**c,t[h+1]=r*(n*e[a+1])**c,t[h+2]=r*(n*e[a+2])**c,a+=s,h+=o}function l(t,e,n,o=3,s=o){const i=(0,r.k)(t.length,o,3),a=(0,r.k)(e.length,s,3),h=Math.min(i,a);let c=0,u=0;for(let r=0;r<h;r++)t[u]=e[c]+n[0],t[u+1]=e[c+1]+n[1],t[u+2]=e[c+2]+n[2],c+=s,u+=o;return t}function f(t,e){m(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function m(t,e,n=3,r=n){const o=Math.min(t.length/n,e.length/r);let s=0,i=0;for(let a=0;a<o;a++){const o=e[s],a=e[s+1],h=e[s+2],c=o*o+a*a+h*h;if(c>0){const e=1/Math.sqrt(c);t[i]=e*o,t[i+1]=e*a,t[i+2]=e*h}s+=r,i+=n}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:u,linearToSRGBView:c,normalize:m,normalizeView:f,scale:h,scaleView:function(t,e,n){h(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,n){const r=Math.min(t.count,e.count),o=t.typedBuffer,s=t.typedBufferStride,i=e.typedBuffer,a=e.typedBufferStride;let h=0,c=0;for(let t=0;t<r;t++)o[c]=i[h]>>n,o[c+1]=i[h+1]>>n,o[c+2]=i[h+2]>>n,h+=a,c+=s},transformMat3:a,transformMat3View:i,transformMat4:s,transformMat4View:o,translate:l},Symbol.toStringTag,{value:"Module"}))},69540(t,e,n){var r=n(32198),o=n(69622),s=(n(44208),n(4718)),i=(n(53966),n(97768)),a=n(88620),h=n(64108);const c=Symbol("ClonableMixin"),u=t=>{var e;const n=t;let o=class extends n{constructor(){super(...arguments),this[e]=!0}static{e=c}clone(t){const e=(0,a.oY)(this);(0,i.Lw)(e,"unable to clone instance of non-accessor class");const n=e.metadata,r=e.store,o={},h=new Map;for(const e in n){const i=n[e],a=r?.originOf(e),c=i.clonable;if(i.readOnly||!1===c||7!==a&&0!==a&&5!==a&&4!==a)continue;const u=this[e];let l=null;if("function"==typeof c)l=c(u,t);else if("reference"===c)l=u;else if(l=(0,s.TU)(u,t),null!=u&&null==l)continue;0===a?h.set(e,l):o[e]=l}const c=new(0,Object.getPrototypeOf(this).constructor)(o);if(h.size){const t=(0,a.oY)(c)?.store;if(t)for(const[e,n]of h)t.set(e,n,0)}return c}};return o=(0,r.Cg)([(0,h.$)("esri.core.Clonable")],o),o},l=u(o.A);n.d(e,["OU",0,u,"Pw",0,l])},95488(t,e,n){n.d(e,{I:()=>o});var r=n(11406);class o extends r.T{notify(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onInvalidated(),t.onCommitted()}}}},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(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]]}n.d(e,{o8:()=>o,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:o,create:r,fromValues:function(t,e,n,r,o,s,i,a,h,c,u,l,f,m,d,p){return[t,e,n,r,o,s,i,a,h,c,u,l,f,m,d,p]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,s])},51850(t,e,n){function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function s(t,e,n){return[t,e,n]}function i(t,e,n){return[t,e,n]}function a(t,e=[0,0,0]){const n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function h(){return s(1,1,1)}function c(){return s(1,0,0)}function u(){return s(0,1,0)}function l(){return s(0,0,1)}n.d(e,{CN:()=>i,ci:()=>a,fA:()=>s,o8:()=>o,vt:()=>r});const f=[0,0,0],m=h(),d=c(),p=u(),y=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:m,UNIT_X:d,UNIT_Y:p,UNIT_Z:y,ZEROS:f,clone:o,create:r,freeze:i,fromArray:a,fromValues:s,ones:h,unitX:c,unitY:u,unitZ:l,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Cb",0,y,"Cw",0,d,"JP",0,p,"Un",0,m,"uY",0,f])},34304(t,e,n){n.d(e,{DF:()=>h,FD:()=>o,ct:()=>c});let r=1e-6;function o(){return r}const s=Math.random,i=Math.PI/180,a=180/Math.PI;function h(t){return t*i}function c(t){return t*a}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:s,equals:function(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))},getEpsilon:o,setEpsilon:function(t){r=t},toDegree:c,toRadian:h},Symbol.toStringTag,{value:"Module"})),n.d(e,["Ov",0,s])},58083(t,e,n){n.d(e,{$0:()=>g,$h:()=>T,B8:()=>u,C:()=>s,D_:()=>a,N9:()=>_,O7:()=>w,Qw:()=>c,Tl:()=>f,X_:()=>S,e$:()=>d,eL:()=>p,hM:()=>M,hZ:()=>i,hs:()=>m,kN:()=>y,l:()=>A,lw:()=>l,mg:()=>h,o1:()=>R,sC:()=>x,t2:()=>I,t5:()=>C,tZ:()=>P,ut:()=>O});var r=n(51850),o=n(34304);function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function i(t,e,n,r,o,s,i,a,h,c,u,l,f,m,d,p,y){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=s,t[5]=i,t[6]=a,t[7]=h,t[8]=c,t[9]=u,t[10]=l,t[11]=f,t[12]=m,t[13]=d,t[14]=p,t[15]=y,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 h(t,e){if(t===e){const n=e[1],r=e[2],o=e[3],s=e[6],i=e[7],a=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=s,t[11]=e[14],t[12]=o,t[13]=i,t[14]=a}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function c(t,e){return u(t,e)||a(t),t}function u(t,e){const n=e[0],r=e[1],o=e[2],s=e[3],i=e[4],a=e[5],h=e[6],c=e[7],u=e[8],l=e[9],f=e[10],m=e[11],d=e[12],p=e[13],y=e[14],g=e[15],M=n*a-r*i,_=n*h-o*i,b=n*c-s*i,v=r*h-o*a,x=r*c-s*a,S=o*c-s*h,A=u*p-l*d,R=u*y-f*d,w=u*g-m*d,T=l*y-f*p,C=l*g-m*p,E=f*g-m*y;let I=M*E-_*C+b*T+v*w-x*R+S*A;return I?(I=1/I,t[0]=(a*E-h*C+c*T)*I,t[1]=(o*C-r*E-s*T)*I,t[2]=(p*S-y*x+g*v)*I,t[3]=(f*x-l*S-m*v)*I,t[4]=(h*w-i*E-c*R)*I,t[5]=(n*E-o*w+s*R)*I,t[6]=(y*b-d*S-g*_)*I,t[7]=(u*S-f*b+m*_)*I,t[8]=(i*C-a*w+c*A)*I,t[9]=(r*w-n*C-s*A)*I,t[10]=(d*x-p*b+g*M)*I,t[11]=(l*b-u*x-m*M)*I,t[12]=(a*R-i*T-h*A)*I,t[13]=(n*T-r*R+o*A)*I,t[14]=(p*_-d*v-y*M)*I,t[15]=(u*v-l*_+f*M)*I,t):null}function l(t,e,n){const r=e[0],o=e[1],s=e[2],i=e[3],a=e[4],h=e[5],c=e[6],u=e[7],l=e[8],f=e[9],m=e[10],d=e[11],p=e[12],y=e[13],g=e[14],M=e[15];let _=n[0],b=n[1],v=n[2],x=n[3];return t[0]=_*r+b*a+v*l+x*p,t[1]=_*o+b*h+v*f+x*y,t[2]=_*s+b*c+v*m+x*g,t[3]=_*i+b*u+v*d+x*M,_=n[4],b=n[5],v=n[6],x=n[7],t[4]=_*r+b*a+v*l+x*p,t[5]=_*o+b*h+v*f+x*y,t[6]=_*s+b*c+v*m+x*g,t[7]=_*i+b*u+v*d+x*M,_=n[8],b=n[9],v=n[10],x=n[11],t[8]=_*r+b*a+v*l+x*p,t[9]=_*o+b*h+v*f+x*y,t[10]=_*s+b*c+v*m+x*g,t[11]=_*i+b*u+v*d+x*M,_=n[12],b=n[13],v=n[14],x=n[15],t[12]=_*r+b*a+v*l+x*p,t[13]=_*o+b*h+v*f+x*y,t[14]=_*s+b*c+v*m+x*g,t[15]=_*i+b*u+v*d+x*M,t}function f(t,e,n){const r=n[0],o=n[1],s=n[2];if(e===t)t[12]=e[0]*r+e[4]*o+e[8]*s+e[12],t[13]=e[1]*r+e[5]*o+e[9]*s+e[13],t[14]=e[2]*r+e[6]*o+e[10]*s+e[14],t[15]=e[3]*r+e[7]*o+e[11]*s+e[15];else{const n=e[0],i=e[1],a=e[2],h=e[3],c=e[4],u=e[5],l=e[6],f=e[7],m=e[8],d=e[9],p=e[10],y=e[11];t[0]=n,t[1]=i,t[2]=a,t[3]=h,t[4]=c,t[5]=u,t[6]=l,t[7]=f,t[8]=m,t[9]=d,t[10]=p,t[11]=y,t[12]=n*r+c*o+m*s+e[12],t[13]=i*r+u*o+d*s+e[13],t[14]=a*r+l*o+p*s+e[14],t[15]=h*r+f*o+y*s+e[15]}return t}function m(t,e,n){const r=n[0],o=n[1],s=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,t[8]=e[8]*s,t[9]=e[9]*s,t[10]=e[10]*s,t[11]=e[11]*s,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function d(t,e,n,r){let i=r[0],a=r[1],h=r[2],c=Math.sqrt(i*i+a*a+h*h);if(c<=(0,o.FD)())return void s(t,e);c=1/c,i*=c,a*=c,h*=c;const u=Math.sin(n),l=Math.cos(n),f=1-l,m=e[0],d=e[1],p=e[2],y=e[3],g=e[4],M=e[5],_=e[6],b=e[7],v=e[8],x=e[9],S=e[10],A=e[11],R=i*i*f+l,w=a*i*f+h*u,T=h*i*f-a*u,C=i*a*f-h*u,E=a*a*f+l,I=h*a*f+i*u,O=i*h*f+a*u,P=a*h*f-i*u,N=h*h*f+l;t[0]=m*R+g*w+v*T,t[1]=d*R+M*w+x*T,t[2]=p*R+_*w+S*T,t[3]=y*R+b*w+A*T,t[4]=m*C+g*E+v*I,t[5]=d*C+M*E+x*I,t[6]=p*C+_*E+S*I,t[7]=y*C+b*E+A*I,t[8]=m*O+g*P+v*N,t[9]=d*O+M*P+x*N,t[10]=p*O+_*P+S*N,t[11]=y*O+b*P+A*N,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15])}function p(t,e,n){const r=Math.sin(n),o=Math.cos(n),s=e[4],i=e[5],a=e[6],h=e[7],c=e[8],u=e[9],l=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=s*o+c*r,t[5]=i*o+u*r,t[6]=a*o+l*r,t[7]=h*o+f*r,t[8]=c*o-s*r,t[9]=u*o-i*r,t[10]=l*o-a*r,t[11]=f*o-h*r,t}function y(t,e){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]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function g(t,e,n){if(0===e)return a(t);let r=n[0],s=n[1],i=n[2],h=Math.sqrt(r*r+s*s+i*i);if(h<=(0,o.FD)())return null;h=1/h,r*=h,s*=h,i*=h;const c=Math.sin(e),u=Math.cos(e),l=1-u;return t[0]=r*r*l+u,t[1]=s*r*l+i*c,t[2]=i*r*l-s*c,t[3]=0,t[4]=r*s*l-i*c,t[5]=s*s*l+u,t[6]=i*s*l+r*c,t[7]=0,t[8]=r*i*l+s*c,t[9]=s*i*l-r*c,t[10]=i*i*l+u,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function M(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function _(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,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 b(t,e,n){const r=e[0],o=e[1],s=e[2],i=e[3],a=r+r,h=o+o,c=s+s,u=r*a,l=r*h,f=r*c,m=o*h,d=o*c,p=s*c,y=i*a,g=i*h,M=i*c;return t[0]=1-(m+p),t[1]=l+M,t[2]=f-g,t[3]=0,t[4]=l-M,t[5]=1-(u+p),t[6]=d+y,t[7]=0,t[8]=f+g,t[9]=d-y,t[10]=1-(u+m),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const v=(0,r.vt)();function x(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function S(t,e){const n=e[0],r=e[1],o=e[2],s=e[4],i=e[5],a=e[6],h=e[8],c=e[9],u=e[10];return t[0]=Math.sqrt(n*n+r*r+o*o),t[1]=Math.sqrt(s*s+i*i+a*a),t[2]=Math.sqrt(h*h+c*c+u*u),t}function A(t,e){const n=e[0]+e[5]+e[10];let r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t}function R(t,e,n,r){const o=e[0],s=e[1],i=e[2],a=e[3],h=o+o,c=s+s,u=i+i,l=o*h,f=o*c,m=o*u,d=s*c,p=s*u,y=i*u,g=a*h,M=a*c,_=a*u,b=r[0],v=r[1],x=r[2];return t[0]=(1-(d+y))*b,t[1]=(f+_)*b,t[2]=(m-M)*b,t[3]=0,t[4]=(f-_)*v,t[5]=(1-(l+y))*v,t[6]=(p+g)*v,t[7]=0,t[8]=(m+M)*x,t[9]=(p-g)*x,t[10]=(1-(l+d))*x,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function w(t,e,n,r,o){const s=e[0],i=e[1],a=e[2],h=e[3],c=s+s,u=i+i,l=a+a,f=s*c,m=s*u,d=s*l,p=i*u,y=i*l,g=a*l,M=h*c,_=h*u,b=h*l,v=r[0],x=r[1],S=r[2],A=o[0],R=o[1],w=o[2],T=(1-(p+g))*v,C=(m+b)*v,E=(d-_)*v,I=(m-b)*x,O=(1-(f+g))*x,P=(y+M)*x,N=(d+_)*S,L=(y-M)*S,D=(1-(f+p))*S;return t[0]=T,t[1]=C,t[2]=E,t[3]=0,t[4]=I,t[5]=O,t[6]=P,t[7]=0,t[8]=N,t[9]=L,t[10]=D,t[11]=0,t[12]=n[0]+A-(T*A+I*R+N*w),t[13]=n[1]+R-(C*A+O*R+L*w),t[14]=n[2]+w-(E*A+P*R+D*w),t[15]=1,t}function T(t,e,n,r,o,s,i){const a=1/(n-e),h=1/(o-r),c=1/(s-i);return t[0]=2*s*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*s*h,t[6]=0,t[7]=0,t[8]=(n+e)*a,t[9]=(o+r)*h,t[10]=(i+s)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=i*s*2*c,t[15]=0,t}function C(t,e,n,r){const s=e[0],i=e[1],h=e[2];let c=s-n[0],u=i-n[1],l=h-n[2];const f=(0,o.FD)();if(Math.abs(c)<f&&Math.abs(u)<f&&Math.abs(l)<f)return void a(t);let m=1/Math.sqrt(c*c+u*u+l*l);c*=m,u*=m,l*=m;const d=r[0],p=r[1],y=r[2];let g=p*l-y*u,M=y*c-d*l,_=d*u-p*c;m=Math.sqrt(g*g+M*M+_*_),m?(m=1/m,g*=m,M*=m,_*=m):(g=0,M=0,_=0);let b=u*_-l*M,v=l*g-c*_,x=c*M-u*g;m=Math.sqrt(b*b+v*v+x*x),m?(m=1/m,b*=m,v*=m,x*=m):(b=0,v=0,x=0),t[0]=g,t[1]=b,t[2]=c,t[3]=0,t[4]=M,t[5]=v,t[6]=u,t[7]=0,t[8]=_,t[9]=x,t[10]=l,t[11]=0,t[12]=-(g*s+M*i+_*h),t[13]=-(b*s+v*i+x*h),t[14]=-(c*s+u*i+l*h),t[15]=1}function E(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function I(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function O(t){const e=(0,o.FD)(),n=t[0],r=t[1],s=t[2],i=t[4],a=t[5],h=t[6],c=t[8],u=t[9],l=t[10];return Math.abs(1-(n*n+i*i+c*c))<=e&&Math.abs(1-(r*r+a*a+u*u))<=e&&Math.abs(1-(s*s+h*h+l*l))<=e}function P(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,L=E;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){const n=e[0],r=e[1],o=e[2],s=e[3],i=e[4],a=e[5],h=e[6],c=e[7],u=e[8],l=e[9],f=e[10],m=e[11],d=e[12],p=e[13],y=e[14],g=e[15];return t[0]=a*(f*g-m*y)-l*(h*g-c*y)+p*(h*m-c*f),t[1]=-(r*(f*g-m*y)-l*(o*g-s*y)+p*(o*m-s*f)),t[2]=r*(h*g-c*y)-a*(o*g-s*y)+p*(o*c-s*h),t[3]=-(r*(h*m-c*f)-a*(o*m-s*f)+l*(o*c-s*h)),t[4]=-(i*(f*g-m*y)-u*(h*g-c*y)+d*(h*m-c*f)),t[5]=n*(f*g-m*y)-u*(o*g-s*y)+d*(o*m-s*f),t[6]=-(n*(h*g-c*y)-i*(o*g-s*y)+d*(o*c-s*h)),t[7]=n*(h*m-c*f)-i*(o*m-s*f)+u*(o*c-s*h),t[8]=i*(l*g-m*p)-u*(a*g-c*p)+d*(a*m-c*l),t[9]=-(n*(l*g-m*p)-u*(r*g-s*p)+d*(r*m-s*l)),t[10]=n*(a*g-c*p)-i*(r*g-s*p)+d*(r*c-s*a),t[11]=-(n*(a*m-c*l)-i*(r*m-s*l)+u*(r*c-s*a)),t[12]=-(i*(l*y-f*p)-u*(a*y-h*p)+d*(a*f-h*l)),t[13]=n*(l*y-f*p)-u*(r*y-o*p)+d*(r*f-o*l),t[14]=-(n*(a*y-h*p)-i*(r*y-o*p)+d*(r*h-o*a)),t[15]=n*(a*f-h*l)-i*(r*f-o*l)+u*(r*h-o*a),t},copy:s,determinant:function(t){const e=t[0],n=t[1],r=t[2],o=t[3],s=t[4],i=t[5],a=t[6],h=t[7],c=t[8],u=t[9],l=t[10],f=t[11],m=t[12],d=t[13],p=t[14],y=t[15];return(e*i-n*s)*(l*y-f*p)-(e*a-r*s)*(u*y-f*d)+(e*h-o*s)*(u*p-l*d)+(n*a-r*i)*(c*y-f*m)-(n*h-o*i)*(c*p-l*m)+(r*h-o*a)*(c*d-u*m)},equals:function(t,e){if(t===e)return!0;const n=t[0],r=t[1],s=t[2],i=t[3],a=t[4],h=t[5],c=t[6],u=t[7],l=t[8],f=t[9],m=t[10],d=t[11],p=t[12],y=t[13],g=t[14],M=t[15],_=e[0],b=e[1],v=e[2],x=e[3],S=e[4],A=e[5],R=e[6],w=e[7],T=e[8],C=e[9],E=e[10],I=e[11],O=e[12],P=e[13],N=e[14],L=e[15],D=(0,o.FD)();return Math.abs(n-_)<=D*Math.max(1,Math.abs(n),Math.abs(_))&&Math.abs(r-b)<=D*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(s-v)<=D*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(i-x)<=D*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(a-S)<=D*Math.max(1,Math.abs(a),Math.abs(S))&&Math.abs(h-A)<=D*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(c-R)<=D*Math.max(1,Math.abs(c),Math.abs(R))&&Math.abs(u-w)<=D*Math.max(1,Math.abs(u),Math.abs(w))&&Math.abs(l-T)<=D*Math.max(1,Math.abs(l),Math.abs(T))&&Math.abs(f-C)<=D*Math.max(1,Math.abs(f),Math.abs(C))&&Math.abs(m-E)<=D*Math.max(1,Math.abs(m),Math.abs(E))&&Math.abs(d-I)<=D*Math.max(1,Math.abs(d),Math.abs(I))&&Math.abs(p-O)<=D*Math.max(1,Math.abs(p),Math.abs(O))&&Math.abs(y-P)<=D*Math.max(1,Math.abs(y),Math.abs(P))&&Math.abs(g-N)<=D*Math.max(1,Math.abs(g),Math.abs(N))&&Math.abs(M-L)<=D*Math.max(1,Math.abs(M),Math.abs(L))},exactEquals:I,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,e){const n=e[0],r=e[1],o=e[2],s=e[3],i=n+n,a=r+r,h=o+o,c=n*i,u=r*i,l=r*a,f=o*i,m=o*a,d=o*h,p=s*i,y=s*a,g=s*h;return t[0]=1-l-d,t[1]=u+g,t[2]=f-y,t[3]=0,t[4]=u-g,t[5]=1-c-d,t[6]=m+p,t[7]=0,t[8]=f+y,t[9]=m-p,t[10]=1-c-l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){const n=v,r=-e[0],o=-e[1],s=-e[2],i=e[3],a=e[4],h=e[5],c=e[6],u=e[7],l=r*r+o*o+s*s+i*i;return l>0?(n[0]=2*(a*i+u*r+h*s-c*o)/l,n[1]=2*(h*i+u*o+c*r-a*s)/l,n[2]=2*(c*i+u*s+a*o-h*r)/l):(n[0]=2*(a*i+u*r+h*s-c*o),n[1]=2*(h*i+u*o+c*r-a*s),n[2]=2*(c*i+u*s+a*o-h*r)),b(t,e,n),t},fromRotation:g,fromRotationTranslation:b,fromRotationTranslationScale:R,fromRotationTranslationScaleOrigin:w,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:y,fromXRotation:M,fromYRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:_,frustum:T,getRotation:A,getScale:S,getTranslation:x,hasIdentityRotation:P,identity:a,invert:u,invertOrIdentity:c,isOrthoNormal:O,lookAt:C,mul:N,multiply:l,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:function(t,e,n,r,o,s,i){const a=1/(e-n),h=1/(r-o),c=1/(s-i);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*h,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*a,t[13]=(o+r)*h,t[14]=(i+s)*c,t[15]=1,t},perspective:function(t,e,n,r,o){const s=1/Math.tan(e/2);let i;return t[0]=s/n,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!=o&&o!==1/0?(i=1/(r-o),t[10]=(o+r)*i,t[14]=2*o*r*i):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){const o=Math.tan(e.upDegrees*Math.PI/180),s=Math.tan(e.downDegrees*Math.PI/180),i=Math.tan(e.leftDegrees*Math.PI/180),a=Math.tan(e.rightDegrees*Math.PI/180),h=2/(i+a),c=2/(o+s);return t[0]=h,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(i-a)*h*.5,t[9]=(o-s)*c*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:d,rotateX:p,rotateY:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),s=e[0],i=e[1],a=e[2],h=e[3],c=e[8],u=e[9],l=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*o-c*r,t[1]=i*o-u*r,t[2]=a*o-l*r,t[3]=h*o-f*r,t[8]=s*r+c*o,t[9]=i*r+u*o,t[10]=a*r+l*o,t[11]=h*r+f*o,t},rotateZ:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),s=e[0],i=e[1],a=e[2],h=e[3],c=e[4],u=e[5],l=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*o+c*r,t[1]=i*o+u*r,t[2]=a*o+l*r,t[3]=h*o+f*r,t[4]=c*o-s*r,t[5]=u*o-i*r,t[6]=l*o-a*r,t[7]=f*o-h*r,t},scale:m,set:i,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:L,subtract:E,targetTo:function(t,e,n,r){const o=e[0],s=e[1],i=e[2],a=r[0],h=r[1],c=r[2];let u=o-n[0],l=s-n[1],f=i-n[2],m=u*u+l*l+f*f;m>0&&(m=1/Math.sqrt(m),u*=m,l*=m,f*=m);let d=h*f-c*l,p=c*u-a*f,y=a*l-h*u;return m=d*d+p*p+y*y,m>0&&(m=1/Math.sqrt(m),d*=m,p*=m,y*=m),t[0]=d,t[1]=p,t[2]=y,t[3]=0,t[4]=l*y-f*p,t[5]=f*d-u*y,t[6]=u*p-l*d,t[7]=0,t[8]=u,t[9]=l,t[10]=f,t[11]=0,t[12]=o,t[13]=s,t[14]=i,t[15]=1,t},translate:f,transpose:h},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>R,Bw:()=>s,C:()=>i,Cc:()=>w,DI:()=>x,Io:()=>M,Ln:()=>g,Om:()=>A,Qr:()=>l,Re:()=>c,S8:()=>S,T9:()=>p,WQ:()=>h,Z0:()=>T,_S:()=>m,aI:()=>L,ei:()=>C,fw:()=>I,gL:()=>E,hG:()=>_,hZ:()=>a,hs:()=>y,jk:()=>d,lw:()=>u,m3:()=>b,oW:()=>D,t2:()=>N,tn:()=>f,ze:()=>v});var r=n(51850),o=n(34304);function s(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function h(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function u(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function l(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function f(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function m(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function d(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function p(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function y(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function g(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function M(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return Math.sqrt(n*n+r*r+o*o)}function _(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return n*n+r*r+o*o}function b(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function v(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function x(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function S(t,e=t){const n=e[0],r=e[1],o=e[2];let s=n*n+r*r+o*o;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s),t}function A(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function R(t,e,n){const r=e[0],o=e[1],s=e[2],i=n[0],a=n[1],h=n[2];return t[0]=o*h-s*a,t[1]=s*i-r*h,t[2]=r*a-o*i,t}function w(t,e,n,r){const o=e[0],s=e[1],i=e[2];return t[0]=o+r*(n[0]-o),t[1]=s+r*(n[1]-s),t[2]=i+r*(n[2]-i),t}function T(t,e,n){const r=e[0],o=e[1],s=e[2];return t[0]=n[0]*r+n[4]*o+n[8]*s+n[12],t[1]=n[1]*r+n[5]*o+n[9]*s+n[13],t[2]=n[2]*r+n[6]*o+n[10]*s+n[14],t}function C(t,e,n){const r=e[0],o=e[1],s=e[2];return t[0]=r*n[0]+o*n[3]+s*n[6],t[1]=r*n[1]+o*n[4]+s*n[7],t[2]=r*n[2]+o*n[5]+s*n[8],t}function E(t,e,n){return I(t,e,n[0],n[1],n[2],n[3])}function I(t,e,n,r,o,s){const i=e[0],a=e[1],h=e[2],c=r*h-o*a,u=o*i-n*h,l=n*a-r*i,f=r*l-o*u,m=o*c-n*l,d=n*u-r*c,p=2*s;return t[0]=i+c*p+2*f,t[1]=a+u*p+2*m,t[2]=h+l*p+2*d,t}const O=(0,r.vt)(),P=(0,r.vt)();function N(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function L(t,e){if(t===e)return!0;const n=t[0],r=t[1],s=t[2],i=e[0],a=e[1],h=e[2],c=(0,o.FD)();return Math.abs(n-i)<=c*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(r-a)<=c*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(s-h)<=c*Math.max(1,Math.abs(s),Math.abs(h))}function D(t,e,n){const r=n[0]-e[0],o=n[1]-e[1],s=n[2]-e[2];let i=r*r+o*o+s*s;return i>0?(i=1/Math.sqrt(i),t[0]=r*i,t[1]=o*i,t[2]=s*i,t):(t[0]=0,t[1]=0,t[2]=0,t)}const B=c,G=u,U=l,F=M,j=_,k=s,Z=b;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:h,angle:function(t,e){S(O,t),S(P,e);const n=A(O,P);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,r,o,s){const i=1-s,a=i*i,h=s*s,c=a*i,u=3*s*a,l=3*h*i,f=h*s;return t[0]=e[0]*c+n[0]*u+r[0]*l+o[0]*f,t[1]=e[1]*c+n[1]*u+r[1]*l+o[1]*f,t[2]=e[2]*c+n[2]*u+r[2]*l+o[2]*f,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:i,cross:R,crossAndNormalize:function(t,e,n){const r=e[0],o=e[1],s=e[2],i=n[0],a=n[1],h=n[2],c=o*h-s*a,u=s*i-r*h,l=r*a-o*i,f=Math.sqrt(c*c+u*u+l*l);return t[0]=c/f,t[1]=u/f,t[2]=l/f,t},direction:D,dist:F,distance:M,div:U,divide:l,dot:A,equals:L,exactEquals:N,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,o,s){const i=s*s,a=i*(2*s-3)+1,h=i*(s-2)+s,c=i*(s-1),u=i*(3-2*s);return t[0]=e[0]*a+n[0]*h+r[0]*c+o[0]*u,t[1]=e[1]*a+n[1]*h+r[1]*c+o[1]*u,t[2]=e[2]*a+n[2]*h+r[2]*c+o[2]*u,t},inverse:x,len:k,length:s,lerp:w,max:p,min:d,mul:G,multiply:u,negate:v,normalize:S,random:function(t,e=1){const n=o.Ov,r=2*n()*Math.PI,s=2*n()-1,i=Math.sqrt(1-s*s)*e;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=s*e,t},rotateX:function(t,e,n,r){const o=[],s=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],s[0]=o[0],s[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),s[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=s[0]+n[0],t[1]=s[1]+n[1],t[2]=s[2]+n[2],t},rotateY:function(t,e,n,r){const o=[],s=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],s[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),s[1]=o[1],s[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=s[0]+n[0],t[1]=s[1]+n[1],t[2]=s[2]+n[2],t},rotateZ:function(t,e,n,r){const o=[],s=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],s[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),s[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),s[2]=o[2],t[0]=s[0]+n[0],t[1]=s[1]+n[1],t[2]=s[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:y,scaleAndAdd:g,scaleTo:function(t,e){return y(t,t,e/k(t))},set:a,sign:m,sqrDist:j,sqrLen:Z,squaredDistance:_,squaredLength:b,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:B,subtract:c,transformMat3:C,transformMat4:T,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:E,transformQuatValues:I},Symbol.toStringTag,{value:"Module"})),n.d(e,["Il",0,k,"jb",0,B,"lo",0,j,"uE",0,Z])},83027(t,e,n){const r=n(29953).ho;n.d(e,["h",0,r])},35982(t,e,n){n.d(e,{B:()=>u});var r=n(4576),o=n(71511),s=n(36563),i=n(53966),a=n(97768),h=n(17676),c=n(83027);class u{constructor(t,e,n,r,o={}){this._mainMethod=e,this._transferLists=n,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,c.h)(t,{...o,schedule:r}).then(t=>{null!=this._thread||this._destroyed?t.close():(this._thread=t,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(t=>{o.hasInitialize&&t.invoke("initialize",{}).catch(()=>{});for(const e of this._listeners)this._connectListenerToClient(e,t);this._onClientConnected(t)}))}),this._promise.catch(e=>i.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${t} worker: ${e}`))}on(t,e){const n=new l(t,e);return this._listeners.push(n),this._connectListener(n),(0,s.hA)(()=>{(0,r.TF)(this._listeners,n),n.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,a.xt)(this._onClientConnectedHandle),this._thread&&(this._thread.close(),this._thread=null),this._promise=null;for(const t of this._listeners)t.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(t,e,n){return this.invokeMethod(this._mainMethod,t,e,n)}invokeMethod(t,e,n,r){if(this._thread){const o=this._transferLists[t],s=o?o(e):[];return this._thread.invoke(t,e,{transferList:s,signal:n,jobPriority:r})}return this._promise?this._promise.then(()=>((0,h.Te)(n),this.invokeMethod(t,e,n))):Promise.reject((0,h.NK)())}broadcast(t,e){return this._thread?Promise.all(this._thread.broadcast(e,t)).then(f):this._promise?this._promise.then(()=>this.broadcast(t,e)):Promise.reject((0,h.NK)())}get promise(){return this._promise}_onClientConnected(t){}_connectListener(t){this._thread&&t.add(this._thread.on(t.eventName,t.callback))}_connectListenerToClient(t,e){t.add(e.on(t.eventName,t.callback))}}class l{constructor(t,e){this.eventName=t,this.callback=e,this._handles=new o.A}add(t){this._handles.add(t)}destroy(){this._handles.destroy()}}function f(){}},48526(t,e,n){n.d(e,{A:()=>y});var r,o=n(32198),s=n(4576),i=n(4718),a=n(91429),h=n(5443),c=n(91075),u=n(86738),l=n(16930),f=n(90634),m=n(47610),d=n(56993),p=n(43937);let y=r=class extends c.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:n,hasZ:r,spatialReference:o}=t;switch(e??=[],e?.at(0)?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return o??=l.A.WGS84,{...t,hasM:n,hasZ:r,points:e,spatialReference:o}}(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 h.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,i.o8)(this.points)}clone(){const{points:t,spatialReference:e,hasM:n,hasZ:o}=this;return new r({points:(0,i.o8)(t),spatialReference:e.clone(),hasM:n,hasZ:o})}equals(t){if(this===t)return!0;if(null==t)return!1;const e=this.spatialReference,n=t.spatialReference;return null!=e==(null!=n)&&!(null!=e&&null!=n&&!e.equals(n))&&(0,s.aI)(this.points,t.points,m.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 e=this.points[t],n={x:e[0],y:e[1],spatialReference:this.spatialReference};let r=2;return this.hasZ&&(n.z=e[2],r=3),this.hasM&&(n.m=e[r]),new u.A(n)}removePoint(t){if(!this._validateInputs(t))return null;const e=new u.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)?((0,d.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,o.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,o.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,o.Cg)([(0,p.K)("points")],y.prototype,"writePoints",null),y=r=(0,o.Cg)([(0,a.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,n){n.d(e,{A:()=>d});var r,o=n(32198),s=n(4718),i=n(91429),a=n(5443),h=n(91075),c=n(86738),u=n(16930),l=n(90634),f=n(56993),m=n(43937);let d=r=class extends h.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:n,hasZ:r,spatialReference:o}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return o??=u.A.WGS84,{...t,hasM:n,hasZ:r,paths:e,spatialReference:o}}(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,e){e.curvePaths=(0,s.o8)(t)}get extent(){const t=(0,l.Z3)(this),{spatialReference:e}=this;return t?new a.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,s.o8)(this.paths)}addPath(t){if(!t)return;const e=this.paths,n=e.length;if(function(t){return!Array.isArray(t[0])}(t)){const r=[];for(let e=0,n=t.length;e<n;e++)r[e]=t[e].toArray();e[n]=r}else e[n]=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,e){if(!this._validateInputs(t,e))return null;const n=this.paths[t][e],r=this.hasZ,o=this.hasM;return r&&!o?new c.A(n[0],n[1],n[2],void 0,this.spatialReference):o&&!r?new c.A(n[0],n[1],void 0,n[2],this.spatialReference):r&&o?new c.A(n[0],n[1],n[2],n[3],this.spatialReference):new c.A(n[0],n[1],this.spatialReference)}insertPoint(t,e,n){return this._validateInputs(t,e,!0)?((0,f.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t].splice(e,0,n),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const e=this.paths.splice(t,1)[0],n=this.spatialReference,r=e.map(t=>new c.A(t,n));return this.notifyChange("paths"),r}removePoint(t,e){if(!this._validateInputs(t,e))return null;const n=new c.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),n}setPoint(t,e,n){return this._validateInputs(t,e)?((0,f.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t][e]=n,this.notifyChange("paths"),this):this}_validateInputs(t,e,n=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){const r=this.paths[t];if(n&&(e<0||e>r.length))return!1;if(!n&&(e<0||e>=r.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,o.Cg)([(0,i.MZ)({readOnly:!0})],d.prototype,"cache",null),(0,o.Cg)([(0,i.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],d.prototype,"curvePaths",void 0),(0,o.Cg)([(0,m.K)("curvePaths")],d.prototype,"writeCurvePaths",null),(0,o.Cg)([(0,i.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,o.Cg)([(0,i.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],d.prototype,"paths",void 0),(0,o.Cg)([(0,m.K)("paths")],d.prototype,"writePaths",null),d=r=(0,o.Cg)([(0,i.$K)("esri.geometry.Polyline")],d),d.prototype.toJSON.isDefaultToJSON=!0},65806(t,e,n){n.d(e,{g:()=>i});var r=n(51850),o=n(99917),s=n(9762);function i(t,e,n,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,n))return a[0]=t.x,a[1]=t.y,a[2]=t.z??0,(0,s.projectBuffer)(a,t.spatialReference,0,e,n,0);const i=(0,o.tryProject)(t,n,r);return!!i&&(e[0]=i.x,e[1]=i.y,e[2]=i.z??0,!0)}const a=(0,r.vt)()},27993(t,e,n){n.d(e,{F:()=>a});var r=n(99917),o=n(16930),s=n(9762),i=n(65806);function a(t,e,n,o){return!(null==e||null==o||t.length<2)&&((0,r.canProjectWithoutEngine)(e,o)?(0,s.projectBuffer)(t,e,0,n,o,0,1):(h.x=t[0],h.y=t[1],h.z=t[2],h.spatialReference=e,(0,i.g)(h,n,o)))}const h={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:o.A.WGS84,type:"point"}},4197(t,e,n){n.d(e,{Vj:()=>u,cj:()=>c,jh:()=>s,l5:()=>a,yH:()=>h});var r=n(34275),o=n(9093);function s(t){return t<=1024?new Array(t).fill(0):new Float64Array(t)}function i(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=1024?Array.from(t):new Float64Array(t)}function a(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function h(t,e){if(0===e.length)return i(t);if(0===t.length)return i(e);const n=s(t.length+e.length);for(let e=0;e<t.length;++e)n[e]=t[e];for(let r=0;r<e.length;++r)n[t.length+r]=e[r];return n}function c(t){return[...t]}function u(t){const e=(0,o.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},95696(t,e,n){n.d(e,{A:()=>c});var r,o=n(32198),s=n(69540),i=n(25482),a=n(91429),h=n(93223);let c=class extends((0,s.OU)(i.o)){static{r=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,o.Cg)([(0,h.e)({georeferenced:"georeferenced"},{readOnly:!0})],c.prototype,"type",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],c.prototype,"origin",void 0),c=r=(0,o.Cg)([(0,a.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],c)},18251(t,e,n){n.d(e,{A:()=>c});var r=n(32198),o=n(69540),s=n(25482),i=n(91429),a=n(51850),h=n(93223);let c=class extends((0,o.OU)(s.o)){constructor(t){super(t),this.type="local",this.origin=(0,a.vt)()}};(0,r.Cg)([(0,h.e)({local:"local"},{readOnly:!0})],c.prototype,"type",void 0),(0,r.Cg)([(0,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,r.Cg)([(0,i.$K)("esri.geometry.support.MeshLocalVertexSpace")],c)},72727(t,e,n){function r(t,e,n){if(e<=0)return 0;const r=t-n;return r<0?0:Math.floor(r/e)+1}n.d(e,{k:()=>r}),n(53966)},52006(t,e,n){function r(t){return"curveRings"in t&&!!t.curveRings?.length||"curvePaths"in t&&!!t.curvePaths?.length}function o(t){return"curveRings"in t?t.curveRings:t.curvePaths}function s(t){return"b"in t}function i(t){return"c"in t}function a(t){return Array.isArray(t)}function h(t){return"a"in t}function c(t){return"a"in t&&4===t.a.length}function u(t){return"a"in t&&7===t.a.length}function l(t,e){return o(t).flat().some(t=>function(t,e){return!(a(t)||(s(t)?e.has("cubic-bezier"):i(t)?e.has("circular-arc"):!c(t)&&!u(t)||e.has("elliptic-arc")))}(t,e))}function f(t){return a(t)?t:s(t)?t.b[0]:i(t)?t.c[0]:t.a[0]}function m(t){if(s(t)){const[e,n,r]=t.b;return{b:[[...e],[...n],[...r]]}}if(i(t)){const[e,n]=t.c;return{c:[[...e],[...n]]}}if(a(t))return[...t];if(c(t)){const[e,n,r,o]=t.a;return{a:[[...e],[...n],r,o]}}if(u(t)){const[e,n,r,o,s,i,a]=t.a;return{a:[[...e],[...n],r,o,s,i,a]}}return t}n.d(e,{DA:()=>c,Ed:()=>r,FD:()=>o,FG:()=>h,V8:()=>l,Xq:()=>a,aO:()=>i,n1:()=>s,tk:()=>m,wY:()=>u,yP:()=>f}),n(4576)},60408(t,e,n){function r(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function o(t){return void 0!==t.points}function s(t){return void 0!==t.x&&void 0!==t.y}function i(t){return void 0!==t.paths||void 0!==t.curvePaths}function a(t){return void 0!==t.rings||void 0!==t.curveRings}function h(t){return"object"==typeof t&&"vertexAttributes"in t}function c(t){return t?s(t)?"esriGeometryPoint":i(t)?"esriGeometryPolyline":a(t)?"esriGeometryPolygon":r(t)?"esriGeometryEnvelope":o(t)?"esriGeometryMultipoint":null:null}function u(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)}n.d(e,{$B:()=>c,Bi:()=>a,Pv:()=>u,Rg:()=>i,U9:()=>o,W0:()=>l,ZC:()=>r,fT:()=>s,uW:()=>h})},80754(t,e,n){n.d(e,{kS:()=>c,kd:()=>h});var r=n(82799),o=n(16930),s=n(60408),i=n(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:o.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:o.A.WGS84})}};function h(t,e){return Math.ceil((t-e)/(2*e))}function c(t,e){if((0,i.Ed)(t))for(const n of function(t){return(0,s.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of n){if((0,i.aO)(t)){const[n,r]=t.c;n[0]+=e,r[0]+=e;continue}if((0,i.FG)(t)){const[n,r]=t.a;n[0]+=e,r[0]+=e;continue}if((0,i.n1)(t)){const[n,r,o]=t.b;n[0]+=e,r[0]+=e,o[0]+=e;continue}t[0]+=e}for(const n of function(t){return(0,s.Bi)(t)?t.rings:t.paths}(t))for(const t of n)t[0]+=e;return t}n.d(e,["j7",0,a])},89056(t,e,n){n.d(e,{b3:()=>l,jZ:()=>u});var r=n(12195),o=n(19419),s=n(537),i=n(95108),a=n(60408),h=n(80754),c=n(21325);function u(t){return f(t,!0)}function l(t){return f(t,!1)}function f(t,e){if(null==t)return null;const n=t.spatialReference,o=(0,c.Vp)(n),i=(0,r.W)(t)?t.toJSON():t;if(!o)return i;const u=(0,c.K8)(n)?102100:4326,l=h.j7[u].maxX,f=h.j7[u].minX;if((0,a.fT)(i))return d(i,l,f);if((0,a.U9)(i))return i.points=i.points.map(t=>d(t,l,f)),i;if((0,a.ZC)(i))return m(i,o);if((0,a.Bi)(i)||(0,a.Rg)(i)){const t=(0,s.Rg)(b,i),n={xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3]},r=(0,h.kd)(n.xmin,f)*(2*l),o=0===r?i:(0,h.kS)(i,r);return n.xmin+=r,n.xmax+=r,n.xmax>l?M(o,l,e):n.xmin<f?M(o,f,e):o}return i}function m(t,e){if(!e)return t;const n=function(t,e){const n=[],{ymin:r,ymax:o,xmin:s,xmax:i}=t,a=t.xmax-t.xmin,[h,c]=e.valid,{x:u,frameId:l}=p(t.xmin,e),{x:f,frameId:m}=p(t.xmax,e),d=u===f&&a>0;if(a>2*c){const t={xmin:s<i?u:f,ymin:r,xmax:c,ymax:o},e={xmin:h,ymin:r,xmax:s<i?f:u,ymax:o},a={xmin:0,ymin:r,xmax:c,ymax:o},d={xmin:h,ymin:r,xmax:0,ymax:o},p=[],g=[];y(t,a)&&p.push(l),y(t,d)&&g.push(l),y(e,a)&&p.push(m),y(e,d)&&g.push(m);for(let t=l+1;t<m;t++)p.push(t),g.push(t);n.push(new _(t,[l]),new _(e,[m]),new _(a,p),new _(d,g))}else u>f||d?n.push(new _({xmin:u,ymin:r,xmax:c,ymax:o},[l]),new _({xmin:h,ymin:r,xmax:f,ymax:o},[m])):n.push(new _({xmin:u,ymin:r,xmax:f,ymax:o},[l]));return n}(t,e).map(t=>t.extent);return n.length<2?n[0]||t:n.length>2?(t.xmin=e.valid[0],t.xmax=e.valid[1],t):{rings:n.map(t=>[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]])}}function d(t,e,n){if(Array.isArray(t)){const r=t[0];if(r>e){const n=(0,h.kd)(r,e);t[0]=r+n*(-2*e)}else if(r<n){const e=(0,h.kd)(r,n);t[0]=r+e*(-2*n)}}else{const r=t.x;if(r>e){const n=(0,h.kd)(r,e);t.x+=n*(-2*e)}else if(r<n){const e=(0,h.kd)(r,n);t.x+=e*(-2*n)}}return t}function p(t,e){const[n,r]=e.valid,o=2*r;let s,i=0;return t>r?(s=Math.ceil(Math.abs(t-r)/o),t-=s*o,i=s):t<n&&(s=Math.ceil(Math.abs(t-n)/o),t+=s*o,i=-s),{x:t,frameId:i}}function y(t,e){const{xmin:n,ymin:r,xmax:o,ymax:s}=e;return g(t,n,r)&&g(t,n,s)&&g(t,o,s)&&g(t,o,r)}function g(t,e,n){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax}function M(t,e,n=!0){const r=!(0,a.Rg)(t);if(r&&(0,i.m3)(t),n)return(new v).cut(t,e);const o=r?t.rings:t.paths,s=r?4:2,h=o.length,c=-2*e;for(let t=0;t<h;t++){const e=o[t];if(e&&e.length>=s){const t=[];for(const[n,...r]of e)t.push([n+c,...r]);o.push(t)}}return r?t.rings=o:t.paths=o,t}class _{constructor(t,e){this.extent=t,this.frameIds=e}}const b=(0,o.vt)();class v{constructor(){this._linesIn=[],this._linesOut=[]}cut(t,e){let n;if(this._xCut=e,t.rings)this._closed=!0,n=t.rings,this._minPts=4;else{if(!t.paths)return null;this._closed=!1,n=t.paths,this._minPts=2}for(const t of n){if(!t||t.length<this._minPts)continue;let e=!0;for(const n of t)e?(this.moveTo(n),e=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(const t of this._linesIn)t&&t.length>=this._minPts&&n.push(t);const r=-2*this._xCut;for(const t of this._linesOut)if(t&&t.length>=this._minPts){for(const e of t)e[0]+=r;n.push(t)}return this._closed?t.rings=n:t.paths=n,t}moveTo(t){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(t[0]),this._moveTo(t,this._prevSide),this._prevPt=t,this._firstPt=t}lineTo(t){const e=this._side(t[0]);if(e*this._prevSide===-1){const n=this._intersect(this._prevPt,t);this._lineTo(n,0),this._prevSide=0,this._lineTo(t,e)}else this._lineTo(t,e);this._prevSide=e,this._prevPt=t}close(){const t=this._firstPt,e=this._prevPt;t[0]===e[0]&&t[1]===e[1]||this.lineTo(t),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(t,e){this._closed?(this._lineIn.push(x(t,e<=0?t[0]:this._xCut)),this._lineOut.push(x(t,e>=0?t[0]:this._xCut))):(e<=0&&this._lineIn.push(t.slice()),e>=0&&this._lineOut.push(t.slice()))}_lineTo(t,e){this._closed?(S(this._lineIn,t,e<=0?t[0]:this._xCut),S(this._lineOut,t,e>=0?t[0]:this._xCut)):e<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push(t.slice())):e>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push(t.slice())):this._prevSide<0?(this._lineIn.push(t.slice()),this._lineOut.push(t.slice())):this._prevSide>0&&(this._lineOut.push(t.slice()),this._lineIn.push(t.slice()))}_checkClosingPt(t){const e=t.length;e>3&&t[0][0]===this._xCut&&t[e-2][0]===this._xCut&&t[1][0]===this._xCut&&(t[0]=t[e-2].slice(),t.pop())}_side(t){return t<this._xCut?-1:t>this._xCut?1:0}_intersect(t,e){const n=(this._xCut-t[0])/(e[0]-t[0]),r=[this._xCut,t[1]+n*(e[1]-t[1])],o=Math.min(t.length,e.length);for(let s=2;s<o;s++)r.push(t[s]+n*(e[s]-t[s]));return r}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}function x(t,e){const n=t.slice();return n[0]=e,n}function S(t,e,n){const r=t.length;r>1&&t[r-1][0]===n&&t[r-2][0]===n?t[r-1]=x(e,n):t.push(x(e,n))}},97770(t,e,n){n.d(e,{Ey:()=>P,F8:()=>O,J2:()=>T,Yq:()=>E,_m:()=>C,iS:()=>I,wj:()=>N});var r=n(66552),o=n(73444),s=n(98623),i=n(34747);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},h={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},c={timeZone:"UTC"},u={year:"numeric",month:"numeric",day:"numeric"},l={year:"numeric",month:"long",day:"numeric"},f={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},d={hour:"numeric",minute:"numeric"},p={...d,second:"numeric"},y={hourCycle:"h23"},g={...d,...y},M={...p,...y},_={"short-date":u,"short-date-short-time":{...u,...d},"short-date-short-time-24":{...u,...g},"short-date-long-time":{...u,...p},"short-date-long-time-24":{...u,...M},"short-date-le":u,"short-date-le-short-time":{...u,...d},"short-date-le-short-time-24":{...u,...g},"short-date-le-long-time":{...u,...p},"short-date-le-long-time-24":{...u,...M},"long-month-day-year":l,"long-month-day-year-short-time":{...l,...d},"long-month-day-year-short-time-24":{...l,...g},"long-month-day-year-long-time":{...l,...p},"long-month-day-year-long-time-24":{...l,...M},"day-short-month-year":f,"day-short-month-year-short-time":{...f,...d},"day-short-month-year-short-time-24":{...f,...g},"day-short-month-year-long-time":{...f,...p},"day-short-month-year-long-time-24":{...f,...M},"long-date":m,"long-date-short-time":{...m,...d},"long-date-short-time-24":{...m,...g},"long-date-long-time":{...m,...p},"long-date-long-time-24":{...m,...M},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":d,"long-time":p},b=(0,r.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"}),v={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},x=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),S=x.find(({type:t})=>"month"===t)?.value.toLowerCase();function A(){const t=(0,o.lR)();return(t&&v[t])??(0,o.QC)()}"mart"!==S&&(v.bs="sr-Latn-CS");let R=new WeakMap;const w=_["short-date-short-time"];function T(t){return _[t]}function C(t){const{dateStyle:e,timeStyle:n,hour12:r,year:o,month:s}=t,i={};return e?i.dateStyle=e:o&&(i.year=o,i.month=s||void 0),n&&!i.year&&(i.timeStyle=n,i.hour12="auto"===r?void 0:"always"===r),i}function E(t,e=w){return function(t){let e=R.get(t);if(!e){const n=A(),r=N(t.timeZone??"system"),o={...t,timeZone:r};e=new Intl.DateTimeFormat(n,o),R.set(t,e)}return e}(e).format(t)}function I(t,e=w){return E(new Date(t),{...e,...c,...h})}function O(t,e=w){return E(new Date(`1970-01-01T${t}Z`),{...e,...c,...a})}function P(t,e=w){const n=i.c9.fromISO(t,{setZone:!0});if(!n.isValid)return t;if(e.timeZone)return E(n.toJSDate(),e);const r=0===n.offset?"UTC":e.timeZone,o={...e,timeZone:r};return n.toLocaleString(o,{locale:A()})}function N(t){switch(t){case"system":return s.N;case s.L:return"UTC";default:return t}}(0,o.Ml)(()=>{R=new WeakMap}),n.d(e,["_v",0,b])},73444(t,e,n){n.d(e,{JK:()=>h,Ml:()=>y,QC:()=>l,lR:()=>u,oQ:()=>d});var r=n(36563);let o;n(44208);const s=globalThis.esriConfig?.locale,i=globalThis.document?.documentElement;function a(){const t=i?.getAttribute("lang"),e=globalThis.navigator?.language;return s??t??e??"en"}function h(){return void 0===o&&(o=a()),o}const c=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function u(t=h()){return f(t)?.language}function l(t=h()){const e=f(t);return e?.language&&e?.extlang?t.replace(`${e.language}-`,""):t}function f(t=h()){return c.exec(t)?.groups}const m=[];function d(t){return m.push(t),(0,r.hA)(()=>{m.splice(m.indexOf(t),1)})}new Map;const p=[];function y(t){return p.push(t),(0,r.hA)(()=>p.splice(p.indexOf(t),1))}function g(){const t=a();o!==t&&([...p].forEach(e=>e(t)),o=t,[...m].forEach(e=>e(t)))}globalThis.addEventListener?.("languagechange",g),i&&new MutationObserver(()=>{g()}).observe(i,{attributeFilter:["lang"]})},98623(t,e,n){const r=Intl.DateTimeFormat().resolvedOptions().timeZone;n.d(e,["L",0,"unknown","N",0,r])},89606(t,e,n){n.d(e,{GN:()=>l,MU:()=>u,yf:()=>m});var r=n(35522),o=n(51850),s=n(10614),i=n(63907),a=n(74038);class h{constructor(t,e){this.data=t,this.indices=e}}class c{constructor(t,e,n,r,o){this.indices=t,this.packedNormals=e,this.appendedVertexToOriginal=n,this.outputVertexCount=r,this.appendedVertexCount=o}}function u(t,e,n,c,u){return!c||n.some(({name:t})=>"normal"===t||"normalCompressed"===t)?function(t,e,n,i){const a=new h(t.slice().buffer,e);if(!i)return a;const c=n[0].stride,u=a.data.byteLength/c;for(const t of n)if("normalCompressed"===t.name){const{offset:e}=t,n=new Int16Array(a.data),h=(0,o.vt)();for(let t=0;t<u;++t)(0,s.Tz)(h,n,t,c/2,e/2),(0,r.ei)(h,h,i),(0,s.aT)(n,t,h[0],h[1],h[2],c/2,e/2)}else if("normal"===t.name){const{offset:e}=t,n=new Float32Array(a.data),s=(0,o.vt)();for(let t=0;t<u;++t){const o=(t*c+e)/4;s[0]=n[o],s[1]=n[o+1],s[2]=n[o+2],(0,r.ei)(s,s,i),n[o]=s[0],n[o+1]=s[1],n[o+2]=s[2]}}return a}(t,e,n,u):function(t,e,n,r){const o=n[0].stride,s=o/4,h=new Float32Array(t.buffer,t.byteOffset,t.byteLength/4),c=t.byteLength/o,u=1<n.length?n[1].offset/4:s,m=o+4;n.forEach((t,e)=>{t.stride=m,e>=1&&(t.offset+=4)}),n.splice(1,0,new a._("normalCompressed",2,i.pe.SHORT,12,m,!0));const d=l(e,h,s,r);return f(h,c,u,o,m,d)}(t,e,n,u)}function l(t,e,n,r){const o=t.length/3,s=e.length/n,{faceNormals:i,faceAreas:a,faceEdges:h,edgeFaces:c,vertexFaces:u,vertexFaceCountAndOffset:l}=function(t,e,n,r,o,s){const i=new Float32Array(3*o),a=new Float32Array(o),h=new Uint32Array(3*o),c=new Int32Array(3*o*2),u=3*o,l=new Uint32Array(u),f=new Uint32Array(2*n);for(let t=0;t<o;++t){const e=3*t;for(let t=0;t<3;++t)++f[2*r[e+t]]}{let t=0;for(let e=0;e<n;++e){const n=2*e;f[n+1]=t,t+=f[n]}for(let t=0;t<o;++t){const e=3*t;for(let n=0;n<3;++n)l[f[2*r[e+n]+1]++]=t}for(let t=0;t<n;++t)f[2*t+1]-=f[2*t]}let m=0;const d=new Uint32Array(2*u*2),p=new Uint32Array(2*n);for(let t=0;t<n;++t){const e=2*t,n=4*f[e+1];p[e]=n,p[e+1]=n}function y(t,e,n){const r=Math.min(t,e),o=Math.max(t,e),s=t<e?0:1,i=2*r,a=p[i],h=p[i+1];let u=-1;for(let t=a;t<h;t+=2)if(d[t]===o){u=d[t+1];break}return-1===u&&(u=m++,d[h]=o,d[h+1]=u,p[i+1]=h+2,c[2*u+(1-s)]=-1),c[2*u+s]=n,u}for(let n=0;n<r.length;n+=3){const o=r[n],c=o*e,u=t[c],l=t[c+1],f=t[c+2],m=r[n+1],d=m*e,p=t[d],g=t[d+1],M=t[d+2],_=r[n+2],b=_*e,v=u-p,x=l-g,S=f-M,A=u-t[b],R=l-t[b+1],w=f-t[b+2],T=x*w-S*R,C=S*A-v*w,E=v*R-x*A,I=Math.sqrt(T*T+C*C+E*E)||1,O=n/3;a[O]=.5*I;const P=1/I;if(s){const t=s[0]*T+s[3]*C+s[6]*E,e=s[1]*T+s[4]*C+s[7]*E,n=s[2]*T+s[5]*C+s[8]*E;i[3*O]=t*P,i[3*O+1]=e*P,i[3*O+2]=n*P}else i[3*O]=T*P,i[3*O+1]=C*P,i[3*O+2]=E*P;const N=y(o,m,O),L=y(m,_,O),D=y(_,o,O);h[3*O]=N,h[3*O+1]=L,h[3*O+2]=D}return{faceNormals:i,faceAreas:a,faceEdges:h,vertexFaces:l,vertexFaceCountAndOffset:f,edgeFaces:c}}(e,n,s,t,o,r);return function(t,e,n,r,o,s){const i=new Uint8Array(e),a=new Uint32Array(e),h=new Uint32Array(3*e);let c=0;const u=new Uint32Array(e);let l=0;for(let e=0;e<t.length;e+=3){const t=e/3;if(1===i[t])continue;i[t]=1;const f=n[3*t],m=n[3*t+1],d=n[3*t+2];for(l=0,u[l++]=t,h[0]=o[3*t],h[1]=o[3*t+1],h[2]=o[3*t+2],c=3,a[t]=t+1;c>0;){const e=h[--c];for(let r=0;r<2;++r){const y=s[2*e+r];if(-1===y||a[y]===t+1)continue;a[y]=t+1;const g=n[3*y],M=n[3*y+1],_=n[3*y+2];if(Math.abs(1-(f*g+m*M+d*_))<p){u[l++]=y,i[y]=1;for(let t=0;t<3;++t){const n=o[3*y+t];n!==e&&(h[c++]=n)}}}}if(l>1){let t=0,e=0,o=0,s=0;for(let i=0;i<l;++i){const a=u[i],h=r[a];t+=h,e+=n[3*a]*h,o+=n[3*a+1]*h,s+=n[3*a+2]*h}const i=Math.sqrt(e*e+o*o+s*s)||1;e/=i,o/=i,s/=i;for(let i=0;i<l;++i){const a=u[i];n[3*a]=e,n[3*a+1]=o,n[3*a+2]=s,r[a]=t}}}}(t,o,i,a,h,c),d(o,s,t,i,a,u,l)}function f(t,e,n,r,o,s){const i=r/4,a=o/4,c=s.outputVertexCount,u=new Float32Array(c*a),l=new Uint32Array(u.buffer),f=new Uint32Array(t.buffer,t.byteOffset,t.length);return function(t,e,n,r,o,s,i){for(let a=0;a<s;++a){const s=a*o,h=a*e;for(let e=0;e<n;++e)t[h+e]=r[s+e];t[h+n]=i[a];for(let e=n;e<o;++e)t[h+e+1]=r[s+e]}}(l,a,n,f,i,e,s.packedNormals),m(l,a,n,f,i,e,c,s.appendedVertexToOriginal,s.packedNormals,!0),new h(u.buffer,s.indices)}function m(t,e,n,r,o,s,i,a,h,c){for(let u=s;u<i;++u){const i=a[u-s]*o,l=u*e;for(let e=0;e<o;++e)t[l+e+(c&&e>=n?1:0)]=r[i+e];t[l+n]=h[u]}}function d(t,e,n,r,o,s,i){const a=3*t,h=new(a<256?Uint8Array:a<65536?Uint16Array:Uint32Array)(n);let u=e;const l=new(e<256?Uint8Array:e<65536?Uint16Array:Uint32Array)(a-e),f=new ArrayBuffer(4*a),m=new Int16Array(f),d=new Uint32Array(f);let p=0,g=0;const M=new Uint32Array(t);let _=0;const b=1-y;for(let t=0;t<e;++t){p=i[2*t+1],g=p+i[2*t];let n=t;for(;p<g;){{const t=s[--g],e=3*t,i=r[e],a=r[e+1],h=r[e+2];_=0,M[_++]=t;let c=p;for(;c<g;){const t=s[c],e=3*t;if(i*r[e]+a*r[e+1]+h*r[e+2]>b){M[_++]=t;const e=--g;if(c<e){s[c]=s[e];continue}}++c}let u=0,l=0,f=0;if(1===_)u=i,l=a,f=h;else{for(let t=0;t<_;++t){const e=M[t],n=o[e],s=3*e;u+=r[s]*n,l+=r[s+1]*n,f+=r[s+2]*n}const t=Math.sqrt(u*u+l*l+f*f)||1;u/=t,l/=t,f/=t}{const t=1/(Math.abs(u)+Math.abs(l)+Math.abs(f)),e=u*t,r=l*t;let o=e,s=r;f<=0&&(o=(e>=0?1:-1)*(1-Math.abs(r)),s=(r>=0?1:-1)*(1-Math.abs(e)));const i=2*n,a=Math.round(32767*o),h=Math.round(32767*s);m[i]=a<-32767?-32767:a>32767?32767:a,m[i+1]=h<-32767?-32767:h>32767?32767:h}}if(n!==t)for(let e=0;e<_;++e){const r=3*M[e];h[r]===t&&(h[r]=n),h[r+1]===t&&(h[r+1]=n),h[r+2]===t&&(h[r+2]=n)}if(p>=g)break;n=u++,l[n-e]=t}}return new c(h,d,l,u,u-e)}const p=.04,y=.8},94715(t,e,n){n.r(e),n.d(e,{destroyContext:()=>R,dracoDecompressPointCloudData:()=>_,filterObbsForModifications:()=>b,filterObbsForModificationsSync:()=>I,initialize:()=>N,interpretObbModificationResults:()=>E,process:()=>M,project:()=>S,setLegacySchema:()=>x,setModifications:()=>v,setModificationsSync:()=>T,test:()=>D,transformNormals:()=>A});var r=n(34727),o=n(77690),s=n(29242),i=n(58083),a=n(9093),h=n(16930),c=n(4197),u=n(95696),l=n(18251),f=n(73354),m=n(2741);function d(){p=null}let p;var y=n(89606),g=n(98697);async function M(t){w=await L();const e=[t.geometryBuffer];return{result:C(w,t,e),transferList:e}}async function _(t){w=await L();const e=[t.geometryBuffer],{geometryBuffer:n}=t,r=n.byteLength,o=w._malloc(r),s=new Uint8Array(w.HEAPU8.buffer,o,r);s.set(new Uint8Array(n));const i=w.dracoDecompressPointCloudData(o,s.byteLength);if(w._free(o),i.error.length>0)throw new Error(`i3s.wasm: ${i.error}`);const a=i.featureIds?.length>0?i.featureIds.slice():null,h=i.positions.slice();return a&&e.push(a.buffer),e.push(h.buffer),{result:{positions:h,featureIds:a},transferList:e}}async function b(t){await L(),I(t);const e={buffer:t.buffer};return{result:e,transferList:[e.buffer]}}async function v(t){await L(),T(t)}async function x(t){w=await L(),w.setLegacySchema(t.context,t.jsonSchema)}async function S(t){const{localMatrix:e,origin:r,positions:o,vertexSpace:s}=t,i=h.A.fromJSON(t.inSpatialReference),a=h.A.fromJSON(t.outSpatialReference),f=e?(0,c.Vj)(e):void 0,m=(0,c.cj)(r);let d;const[{projectBuffer:p},{initializeProjection:y}]=await Promise.all([Promise.resolve().then(()=>n(9762)),Promise.resolve().then(()=>n(99917))]);await y(i,a);const g=[0,0,0];if(!p(m,i,0,g,a,0))throw new Error("Failed to project");if("georeferenced"===s.type&&null==s.origin){if(d=new Float64Array(o.length),!p(o,i,0,d,a,0,d.length/3))throw new Error("Failed to project")}else{const t="georeferenced"===s.type?u.A.fromJSON(s):l.A.fromJSON(s),{projectMeshVertexPositions:e}=await Promise.all([n.e(6860),n.e(4406)]).then(()=>n(74594)),r=e({vertexAttributes:{position:o},transform:f?{localMatrix:f}:void 0,vertexSpace:t,spatialReference:i},a);if(!r)throw new Error("Failed to project");d=r}const M=d.length,[_,b,v]=g;for(let t=0;t<M;t+=3)d[t]-=_,d[t+1]-=b,d[t+2]-=v;return{result:{projected:d,original:o,projectedOrigin:g},transferList:[d.buffer,o.buffer]}}async function A({normalMatrix:t,normals:e}){const n=new Float32Array(e.length);return(0,f.b)(n,e,t),(0,r.or)(t)&&(0,f.n)(n,n),{result:{transformed:n,original:e},transferList:[n.buffer,e.buffer]}}function R(t){O(t)}let w;function T(t){if(!w)return;const e=t.modifications,n=w._malloc(8*e.length),r=new Float64Array(w.HEAPU8.buffer,n,e.length);for(let t=0;t<e.length;++t)r[t]=e[t];w.setModifications(t.context,n,e.length,t.isGeodetic),w._free(n)}function C(t,e,n){const{context:r,globalTrafo:h,geometryElevationOffset:c,mbs:u,obbData:l,layouts:f,needNormals:m,computeNormals:d,elevationOffset:p,planetRadiusInGlobalMode:M,geometryBuffer:_,geometryDescriptor:b,geometryData:v,indexToVertexProjector:x,vertexToRenderProjector:S,normalReferenceFrame:A}=e,R=t._malloc(_.byteLength),w=t._malloc(33*Float64Array.BYTES_PER_ELEMENT),T=new Uint8Array(t.HEAPU8.buffer,R,_.byteLength);T.set(new Uint8Array(_));const C=new Float64Array(t.HEAPU8.buffer,w,33);P(C,[NaN,NaN,NaN],0);let E=3;P(C,h,E),E+=16,P(C,u.center,E),E+=3,C[E++]=u.radius,l&&P(C,l,E++);const I={isDraco:!1,isLegacy:!1,color:f.some(t=>t.some(t=>"color"===t.name)),normal:m&&f.some(t=>t.some(t=>"normalCompressed"===t.name)),uv0:f.some(t=>t.some(t=>"uv0"===t.name)),uvRegion:f.some(t=>t.some(t=>"uvRegion"===t.name)),featureIndex:b.featureIndex},O=t.process(r,!!l,R,T.byteLength,b,I,w,p,x,S,A);if(t._free(w),t._free(R),O.error.length>0)throw new Error(`i3s.wasm: ${O.error}`);if(O.discarded)return null;const N=O.componentOffsets.length>0?O.componentOffsets.slice():null,L=O.featureIds.length>0?O.featureIds.slice():null,D=O.anchorIds.length>0?Array.from(O.anchorIds):null,B=O.anchors.length>0?Array.from(O.anchors):null,G=1===O.indicesType?new Uint16Array(O.indices.buffer,O.indices.byteOffset,O.indices.byteLength/2).slice():new Uint32Array(O.indices.buffer,O.indices.byteOffset,O.indices.byteLength/4).slice(),U=f[0].slice(),F=(0,o.z0)((0,s.vt)(),h),j=(0,y.MU)(O.interleavedVertedData,G,U,d&&!I.normal,F),k=O.positions.slice(),Z=function(t,e,n,r,o){const s=n?(0,a.o8)(n):(0,a.vt)();(0,i.lw)(s,e,s);const h=s[0],c=s[1],u=s[2],l=s[4],f=s[5],m=s[6],d=s[8],p=s[9],y=s[10],g=s[12],M=s[13],_=s[14];let b=1/0,v=-1/0;for(let e=0;e<t.length;e+=3){const n=t[e],s=t[e+1],i=t[e+2],a=n*u+s*m+i*y+_;let x=0;if(r>0){const t=n*h+s*l+i*d+g,e=n*c+s*f+i*p+M;x=Math.sqrt(t*t+e*e+a*a)-r}else x=a;x-=o,b=Math.min(b,x),v=Math.max(v,x)}return{minElevation:b,maxElevation:v}}(k,h,v?.geometries[0]?.transformation,M,c),{buffer:q,byteOffset:H,byteLength:z}=O.positionIndices,Y=1===O.positionIndicesType?new Uint16Array(q,H,z/2).slice():new Uint32Array(q,H,z/4).slice(),V=new g._b(U,j.data,j.indices,O.hasColors,O.hasModifications,{data:k,indices:Y});return L&&n.push(L.buffer),N&&n.push(N.buffer),n.push(j.data),n.push(j.indices.buffer),n.push(k.buffer),n.push(Y.buffer),new g.sQ(N,L,D,B,V,h,O.obb,Z.minElevation,Z.maxElevation)}function E(t){return 0===t?0:1===t?1:2===t?2:3}function I(t){if(!w)return;const{context:e,buffer:n}=t,r=w._malloc(n.byteLength),o=n.byteLength/Float64Array.BYTES_PER_ELEMENT,s=new Float64Array(w.HEAPU8.buffer,r,o),i=new Float64Array(n);s.set(i),w.filterOBBs(e,r,o),i.set(s),w._free(r)}function O(t){0===w?.destroy(t)&&(w=null,d())}function P(t,e,n){for(let r=0;r<e.length;++r)t[r+n]=e[r]}async function N(){w||await L()}async function L(){return w??=await(p??=(async()=>{try{const t=await n.e(2980).then(()=>n(82980));return await t.default({locateFile:t=>(0,m.s)(`esri/libs/i3s/${t}`)})}catch(t){throw d(),t}})(),p),w}const D={transform:(t,e)=>w&&C(w,t,e),destroy:O}},98697(t,e,n){n.d(e,{Cm:()=>m,H1:()=>_,Ir:()=>y,_b:()=>l,sQ:()=>f});var r=n(53966),o=n(15142),s=n(51850),i=n(35982),a=n(39829),h=n(99917),c=n(27993),u=n(89056);class l{constructor(t,e,n,r,o,s){this.layout=t,this.interleavedVertexData=e,this.indices=n,this.hasColors=r,this.hasModifications=o,this.positionData=s}}class f{constructor(t,e,n,r,o,s,i,a,h){this.componentOffsets=t,this.featureIds=e,this.anchorIds=n,this.anchors=r,this.transformedGeometry=o,this.globalTrafo=s,this.obb=i,this.geometryMinElevation=a,this.geometryMaxElevation=h}}class m extends i.B{constructor(t){super("SceneLayerWorker","process",{process:t=>[t.geometryBuffer],project:t=>[t.positions.buffer],transformNormals:t=>[t.normals.buffer]},t,{hasInitialize:!0}),this._schemasByContext=new Map,this._modificationsByContext=new Map}_onClientConnected(t){for(const[e,n]of this._schemasByContext)t.invoke("setLegacySchema",{context:e,jsonSchema:n}).catch(()=>{});for(const e of this._modificationsByContext.values())t.invoke("setModifications",e).catch(()=>{})}setModifications(t,e,n){const r={context:t,modifications:e,isGeodetic:n};return this._modificationsByContext.set(t,r),this.broadcast(r,"setModifications")}setLegacySchema(t,e){const n=JSON.stringify(e);return this._schemasByContext.set(t,n),this.broadcast({context:t,jsonSchema:n},"setLegacySchema")}destroyContext(t){return this._schemasByContext.delete(t),this._modificationsByContext.delete(t),this.broadcast(t,"destroyContext")}async destroyContextAndSelf(t){await this.destroyContext(t),this.destroy()}project(t,e){return this.invokeMethod("project",t,e)}transformNormals(t,e){return this.invokeMethod("transformNormals",t,e)}}const d=new o.A({deallocator:null}),p=(0,s.vt)();function y(t,e,n,o=!1){d.clear();let s=1/0,i=1/0,c=-1/0,l=-1/0,f=!1;for(const t of e){const e="clip"===t.type?2:"mask"===t.type?1:0,m=t.geometry,p=m.spatialReference??n;if(p!==n&&!(0,h.canProjectWithoutEngine)(p,n)){r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:m});continue}let y=m.rings;if(p!==n){const t=g(m.rings,p,n);if(null==t){r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:m});continue}y=t}const _=y;if(o){const t=(0,u.jZ)(new a.A({rings:y,spatialReference:n}));null!=t&&(y=t.rings)}const b=1===_.length&&y.length>1?[...y.map(t=>[t]),_]:[y];if(b.some(t=>0===t.length||t.some(t=>t.length<3||t.some(t=>!M(t)))))r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-invalid-polygon","Ignoring invalid modification polygon (empty ring, fewer than 3 vertices, or non-finite coordinates).",{polygon:m});else{f||=1===e;for(const t of b){d.push(e),d.push(t.length);for(const e of t){d.push(e.length);for(const t of e){const e=t[2]??0;d.push(t[0]),d.push(t[1]),d.push(e),s=Math.min(s,t[0]),i=Math.min(i,t[1]),c=Math.max(c,t[0]),l=Math.max(l,t[1])}}}}}if(null!=t)if(f){const e=1e-4;d.push(2),d.push(2),d.push(4),d.push(s-e),d.push(i-e),d.push(0),d.push(c+e),d.push(i-e),d.push(0),d.push(c+e),d.push(l+e),d.push(0),d.push(s-e),d.push(l+e),d.push(0),d.push(4),d.push(t[0]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[3]),d.push(0),d.push(t[0]),d.push(t[3]),d.push(0)}else d.push(1),d.push(1),d.push(4),d.push(t[0]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[3]),d.push(0),d.push(t[0]),d.push(t[3]),d.push(0);d.push(3);const m=new Float64Array(d.length);for(let t=0;t<d.length;++t)m[t]=d.at(t);return m}function g(t,e,n){const r=[];for(const o of t){const t=[];for(const r of o){if(!(0,c.F)(r,e,p,n)||!M(p))return null;t.push([p[0],p[1],p[2]])}r.push(t)}return r}function M(t){return Number.isFinite(t[0])&&Number.isFinite(t[1])&&(null==t[2]||Number.isFinite(t[2]))}function _(t,e){let n=0;for(const r of e){const e=r.geometry,o=e.rings.length,s=e.rings.some(t=>t.length<3);if(0!==o&&!s){n+=1,n+=1;for(let r=0;r<e.rings.length;++r){const o=e.rings[r];n+=1;for(let s=0;s<o.length;++s){const o=[t[n+0],t[n+1],t[n+2]];n+=3,e.setPoint(r,s,o)}}}}}},10614(t,e,n){n.d(e,{Tz:()=>i,aT:()=>s});var r=n(34727),o=n(35522);function s(t,e,n,r,o,s=2,i=0){const h=1/(Math.abs(n)+Math.abs(r)+Math.abs(o)),c=n*h,u=r*h,l=o<=0?(c>=0?1:-1)*(1-Math.abs(u)):c,f=o<=0?(u>=0?1:-1)*(1-Math.abs(c)):u,m=e*s+i;t[m]=a(l),t[m+1]=a(f)}function i(t,e,n,r=2,s=0){const i=n*r+s,a=h(e[i]),c=h(e[i+1]),u=1-Math.abs(a)-Math.abs(c);return t[2]=u,u<0?(t[0]=(a>=0?1:-1)*(1-Math.abs(c)),t[1]=(c>=0?1:-1)*(1-Math.abs(a))):(t[0]=a,t[1]=c),(0,o.S8)(t,t)}function a(t){return(0,r.qE)(Math.round(32767*t),-32767,32767)}function h(t){return(0,r.qE)(t/32767,-1,1)}n(51850)},74038(t,e,n){n.d(e,{_:()=>r});class r{constructor(t,e,n,r,o,s=!1,i=0,a=!1){this.name=t,this.count=e,this.type=n,this.offset=r,this.stride=o,this.normalized=s,this.divisor=i,this.integer=a}}},63907(t,e,n){const r={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},o={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},s=Object.values(o),i={FLOAT:r.FLOAT,UNSIGNED_BYTE:r.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:r.BYTE,UNSIGNED_SHORT:r.UNSIGNED_SHORT,SHORT:r.SHORT,UNSIGNED_INT:r.UNSIGNED_INT,INT:r.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269};n.d(e,["CQ",0,{COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497},"H0",0,o,"SB",0,{DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},"WR",0,{POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},"XN",0,s,"iE",0,{DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},"ld",0,i,"pe",0,r,"vt",0,{Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12}])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9794],{89794(a,e,l){l.r(e),l.d(e,{GlobalIlluminationPassParameters:()=>t.G,build:()=>t.c,defaultColorBleedWeight:()=>.15,defaultRayMarchMaxReach:()=>.5,defaultRayMarchMaxReachEmissionWeight:()=>1,defaultRayMarchMaxSteps:()=>16,defaultRayMarchMinReach:()=>.15,defaultRayMarchMinReachEmissionWeight:()=>1,defaultRayMarchWorldReach:()=>25}),l(82048),l(92573),l(65261),l(98619),l(70893),l(34845),l(45324),l(33094),l(20304),l(31821),l(58029),l(12791),l(63761),l(94046),l(72458),l(63907),l(65786),l(14113);var t=l(587)}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9794],{89794(a,e,l){l.r(e),l.d(e,{GlobalIlluminationPassParameters:()=>t.G,build:()=>t.c,defaultColorBleedWeight:()=>.15,defaultRayMarchMaxReach:()=>.5,defaultRayMarchMaxReachEmissionWeight:()=>1,defaultRayMarchMaxSteps:()=>16,defaultRayMarchMinReach:()=>.15,defaultRayMarchMinReachEmissionWeight:()=>1,defaultRayMarchWorldReach:()=>25}),l(82048),l(92573),l(65261),l(98619),l(70893),l(34845),l(45324),l(33094),l(20304),l(31821),l(58029),l(12791),l(63761),l(94046),l(72458),l(18519),l(63907),l(65786),l(14113);var t=l(587)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[506,1550,1666,1948,7992,8125],{61691(t,e,r){r.d(e,{G:()=>s});class s{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,r){r.d(e,{S:()=>n});var s=r(61691);class n extends s.G{m_aGeoms;m_iGeom=-1;constructor(t){super(),this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},69397(t,e,r){r.d(e,{Qf:()=>o,Qh:()=>i,lM:()=>n});var s=r(34275);function n(t){if(!t)return 0;let e=u;for(const r in t)t.hasOwnProperty(r)&&(e+=a(t[r],!1));return e}function i(t){if(!t)return 0;if("number"==typeof t[0])return o(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let r=c;for(let s=0;s<e;s++)r+=a(t[s]);return r}(t);let e=u;for(const r in t)t.hasOwnProperty(r)&&(e+=a(t[r]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?i(t):u;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...t){return t.reduce((t,e)=>t+(e?(0,s.iu)(e)?e.byteLength+l:Array.isArray(e)?h(e,16):0:0),0)}function h(t,e){return c+t.length*e}const u=32,c=16,l=145},87992(t,e,r){r.d(e,{JR:()=>Z,ME:()=>C,MY:()=>w,NO:()=>M,Nh:()=>P,V2:()=>_,_s:()=>Y,e6:()=>I,gh:()=>E,jm:()=>V,tr:()=>X,uX:()=>p});var s=r(32198),n=r(16930),i=r(19419),a=r(60408),o=r(21325),h=r(513),u=r(50954),c=r(79567),l=r(52006),f=r(49663),g=r(46068),m=r(92722);class p{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:i,partCount:a,partOffsets:o,partFlags:h,segmentFlags:u,segmentIndices:c,segmentParams:l,segmentCountArc:f,segmentCountBezier:g}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=h,this.segmentFlags=u,this.segmentIndices=c,this.segmentParams=l,this.segmentCountArc=f,this.segmentCountBezier=g}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?64+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:r,hasZ:s,hasM:n,segmentCountArc:i,segmentCountBezier:a}=this,o=_(t,e,r,s,n,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;const{vertexXY:h,vertexZ:u,vertexM:c}=this;if(o.vertexXY.set(h.subarray(0,2*e),0),o.vertexZ?.set(u.subarray(0,e),0),o.vertexM?.set(c.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,r+1)),o.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(r.subarray(0,e),0),o.segmentParams.set(s.subarray(0,n),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,o.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new x(this):[][Symbol.iterator]()}}class x{constructor(t){this.geometry=t,this.value=new y(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class y{constructor(t){this.geometry=t,this.index=-1,this._readVertex=R(t),this._segments=new d(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class d{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new v(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class v{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=R(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],s=e[r++],n=e[r++],i=e[r++];return{b:[this.end,[t,s],[n,i]]}}const s=e[r++],n=e[r++],i=e[r++],a=e[r++],o=e[r++],h=e[r++];r++,r++;const u=e[r++],c=e[r++];if(!Boolean(4&s)&&1===i)return{c:[this.end,[u,c]]};const l=2&s?0:1,f=1&s?0:1;return{a:[this.end,[o,h],l,f,a,n,i]}}}function M(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,i.Ie)(),(0,s.mS)(r,new A(t,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:n,vertexZ:a,vertexM:o}=t,h=O(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new A(t,["vertexZ","vertexM"]),!1);const n=(0,i.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,c.e)(n,t,r),t=(0,l.yP)(r)}const[a,o,u,f]=n;e={xmin:a,ymin:o,xmax:u,ymax:f,spatialReference:h}}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}else{let t,s,i,a;t=s=1/0,i=a=-1/0;for(let e=0;e<r;++e){const r=n[2*e],o=n[2*e+1];t=Math.min(t,r),i=Math.max(i,r),s=Math.min(s,o),a=Math.max(a,o)}e={xmin:t,ymin:s,xmax:i,ymax:a,spatialReference:h}}if(a){let t=1/0,r=-1/0;for(const e of a)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(o){let t=1/0,r=-1/0;for(const e of o)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}function C(t){let e,r,s;if((0,a.fT)(t)){s="point";const{x:n,y:i,z:a,m:o}=t,h=[n,i];null!=a&&h.push(a),null!=o&&h.push(o),r=[[h]],e=1}else(0,a.U9)(t)?(s="multipoint",r=[t.points],e=t.points.length):(0,a.Rg)(t)?(s="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(s="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,S(e[0],(0,l.yP)(e.at(-1)))&&--t),t),0));const n=_(s,e,s.includes("point")?0:r.length,(0,a.Pv)(t),(0,a.W0)(t),(0,l.Ed)(t)),{hasZ:i,hasM:o,vertexXY:h,vertexZ:u,vertexM:c}=n;function f(t){h[2*m]=t[0],h[2*m+1]=t[1],i&&(u[m]=t[2]),o&&(c[m]=t[g]),++m}n.spatialReference=t.spatialReference??void 0;const g=n.hasZ?3:2;let m=0;if(!n.isMultipart()){if(!i&&!o){for(const[t,e]of r[0])h[2*m]=t,h[2*m+1]=e,++m;return n}for(const t of r[0])f(t);return n}const p="polygon"===s,{partOffsets:x}=n;let y=0;if(!(0,l.Ed)(t)){for(const t of r){if(x[y++]=m,0===t.length)continue;let e=t.length;if(p&&S(t[0],t.at(-1))&&--e,i||o)for(let r=0;r<e;++r)f(t[r]);else for(let r=0;r<e;++r){const[e,s]=t[r];h[2*m]=e,h[2*m+1]=s,++m}}return x[y]=m,n}function d(t){const e=v+t;if(e<=(n.segmentParams?.length??0))return;let r=e*G;r=20*Math.ceil(r/20);const s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let v=0;for(const t of r){if(n.partOffsets[y++]=m,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const s=t[e];f(r);const i=m-1;(0,l.wY)(s)?(d(10),++n.segmentCountArc,v=Y(r,s,n,i,v),r=s.a[0]):(0,l.DA)(s)?(d(10),++n.segmentCountArc,v=b(r,s,n,i,v),r=s.a[0]):(0,l.aO)(s)?(d(10),++n.segmentCountArc,v=I(r,s,n,i,v),r=s.c[0]):(0,l.n1)(s)?(d(4),++n.segmentCountBezier,v=X(0,s,n,i,v),r=s.b[0]):r=s}p&&S(e,r)||f(r)}return n.partOffsets[y]=m,n}function E(t){const e=R(t),{vertexCount:r,partCount:s,hasZ:n,hasM:i}=t,a=O(t);if("point"===t.type){const[e,r]=t.vertexXY,s=t.vertexZ?.[0],n=t.vertexM?.[0];return{x:e,y:r,z:s,m:n,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<r;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:n,hasM:i}}const h="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let n=0;n<s;++n){const s=t.partOffsets[n+1],i=new Array;for(;o<s;)i.push(e(o++));h&&i.length>0&&i.push(i[0]),r.push(i)}return h?{rings:r,hasZ:n,hasM:i,spatialReference:a}:{paths:r,hasZ:n,hasM:i,spatialReference:a}}const u=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);u.push(t)}return h?{rings:[],curveRings:u,hasZ:n,hasM:i,spatialReference:a}:{paths:[],curvePaths:u,hasZ:n,hasM:i,spatialReference:a}}function P(t,{lengths:e,coords:r,hasZ:s,hasM:n},i){const a=t.includes("point")?0:e.length,o="polygon"===t,h="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?a:0);s??=!1,n??=!1;const u=_(t,h,a,s,n,!1,0,0);if(u.spatialReference=i??void 0,!u.isMultipart()){for(let t=0,e=0;t<h;++t)u.vertexXY[2*t]=r[e++],u.vertexXY[2*t+1]=r[e++],s&&(u.vertexZ[t]=r[e++]),n&&(u.vertexM[t]=r[e++]);return u}const c=2+Number(s)+Number(n);let l=0,f=0;u.partOffsets[0]=0;for(const t of e){const e=u.partOffsets[f],i=e+t-Number(o);u.partOffsets[++f]=i;for(let t=e;t<i;++t)u.vertexXY[2*t]=r[l++],u.vertexXY[2*t+1]=r[l++],s&&(u.vertexZ[t]=r[l++]),n&&(u.vertexM[t]=r[l++]);o&&(l+=c)}return u}function Z({type:t,vertexCount:e,vertexXY:r,vertexZ:s,vertexM:n,partCount:i,partOffsets:a,hasZ:o,hasM:h}){const u=new m.A([],[],o,h);i=Math.max(i,1);const c="polygon"===t;let l=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,f=u.coords.length;for(let t=l;t<i;++t)u.coords.push(r[2*t],r[2*t+1]),o&&u.coords.push(s[t]),h&&u.coords.push(n[t]);if(c){const t=l;u.coords.push(r[2*t],r[2*t+1]),o&&u.coords.push(s[t]),h&&u.coords.push(n[t])}u.lengths.push((u.coords.length-f)/u.stride),l=i}return"point"===t&&(u.lengths.length=0),u}function V(...t){const e=new Set;for(const r of t){if(!r)continue;const t=[r.vertexXY,r.vertexZ,r.vertexM,r.partOffsets,r.partFlags,r.segmentFlags,r.segmentIndices,r.segmentParams];for(const r of t){const t=r?.buffer;t&&e.add(t)}}return Array.from(e)}function w(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let s=t.getLatestID();(s<=0||s===r)&&(s=void 0);const n=t.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:e};const i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:r,wkt:e,latestWkid:s,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new p({...t.toFlatGeometry(),spatialReference:e})}class A{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function O({spatialReference:t}){return t instanceof n.A?t.toJSON():t}function R({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?s=>[t[2*s],t[2*s+1],e[s],r[s]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function S(t,e){return t.every((t,r)=>t===e[r])}function _(t,e,r,s,n,i,a,o){a??=0,o??=0;const h=new p({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o});let u=2*Float64Array.BYTES_PER_ELEMENT*e;s&&(u+=Float64Array.BYTES_PER_ELEMENT*e),n&&(u+=Float64Array.BYTES_PER_ELEMENT*e),h.isMultipart()&&(u+=(r+1)*Int32Array.BYTES_PER_ELEMENT,u+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(u+=e*Int8Array.BYTES_PER_ELEMENT,u+=e*Int32Array.BYTES_PER_ELEMENT,u+=h.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const c=new ArrayBuffer(u);let l=0;return h.vertexXY=new Float64Array(c,l,2*e),l+=h.vertexXY.byteLength,s&&(h.vertexZ=new Float64Array(c,l,e),l+=h.vertexZ.byteLength),n&&(h.vertexM=new Float64Array(c,l,e),l+=h.vertexM.byteLength),i&&(h.segmentParams=new Float64Array(c,l,h.segmentParamCount),l+=h.segmentParams.byteLength,h.segmentIndices=new Int32Array(c,l,e),h.segmentIndices.fill(N),l+=h.segmentIndices.byteLength),h.isMultipart()&&(h.partOffsets=new Int32Array(c,l,r+1),l+=h.partOffsets.byteLength,h.partFlags=new Int8Array(c,l,r+1),l+=h.partFlags.byteLength,"polygon"===h.type&&h.partFlags.subarray(0,r).fill(1)),i&&(h.segmentFlags=new Int8Array(c,l,e),h.segmentFlags.fill(1),l+=h.segmentFlags.byteLength),h}function Y(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const[o,[h,u],c,l,f,m,p]=e.a;let x=4;l||(x|=1),c||(x|=2);const y=(0,g.SW)(t,e),[d,v]=(0,g.Uk)(y,.5);return n[a++]=x,n[a++]=m,n[a++]=p,n[a++]=f,n[a++]=h,n[a++]=u,n[a++]=y.u2-y.u1,n[a++]=y.u1,n[a++]=d,n[a++]=v,a}function b(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const o=(0,f.io)(t,e);return F(o,4,...(0,h.mq)(o,.5),n,a)}function I(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){return r[i]=4,s[i]=a,F((0,u.pM)(t,e),0,...e.c[1],n,a)}function F(t,e,r,s,n,i){const{cx:a,cy:o,thetaStart:h,thetaEnd:u,radius:c}=t;return h>u||(e|=1),Math.abs(u-h)<=Math.PI||(e|=2),n[i++]=e,n[i++]=c,n[i++]=1,n[i++]=0,n[i++]=a,n[i++]=o,n[i++]=u-h,n[i++]=h,n[i++]=r,n[i++]=s,i}function X(t,{b:[e,[r,s],[n,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:h},u,c){return a[u]=2,o[u]=c,h[c++]=r,h[c++]=s,h[c++]=n,h[c++]=i,c}const G=1.61803,N=-1},78125(t,e,r){r.r(e),r.d(e,{fromExtent:()=>x,fromGeometry:()=>p,fromMultipoint:()=>y,fromPoint:()=>d,fromPolygon:()=>v,fromPolyline:()=>M,fromPolylineUsingImportOperator:()=>C,fromSpatialReference:()=>E,getSpatialReference:()=>m,toExtent:()=>Z,toGeometry:()=>P,toMultipoint:()=>V,toPoint:()=>w,toPolygon:()=>A,toPolyline:()=>O});var s=r(83661),n=r(55537),i=r(95213),a=r(88885),o=r(5443),h=r(48526),u=r(86738),c=r(39829),l=r(82799),f=(r(90293),r(83299));const g="_gxVersion";function m(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function p(t){switch(t.type){case"point":return d(t);case"multipoint":return y(t);case"polyline":return M(t);case"polygon":return v(t);case"extent":return x(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function x(t){if(!t.getCacheValue(g)){const e=new i.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(2,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(1,0,t.zmin,t.zmax),t.setCacheValue(g,e)}return t.getCacheValue(g)}function y(t){if(!t.getCacheValue(g)){const e=new a.M,r=new i.P,s=t.points,n=t.hasM,o=t.hasZ,h=o?3:2;for(let t=0,i=s.length;t<i;t++){const i=s[t];r.setXYCoords(i[0],i[1]),o&&r.setZ(i[2]??0),n&&r.setM(i[h]??NaN),e.add(r)}t.setCacheValue(g,e)}return t.getCacheValue(g)}function d(t){if(!t.getCacheValue(g)){const e=new i.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(g,e)}return t.getCacheValue(g)}function v(t){if(!t.getCacheValue(g)){const{curveRings:e,hasM:r,hasZ:s,rings:n}=t,i=(0,f.fromGeometryToGXGeometry)({curveRings:e,hasM:r,hasZ:s,rings:n});t.setCacheValue(g,i)}return t.getCacheValue(g)}function M(t){if(!t.getCacheValue(g)){const{curvePaths:e,hasM:r,hasZ:s,paths:n}=t,i=(0,f.fromGeometryToGXGeometry)({curvePaths:e,hasM:r,hasZ:s,paths:n});t.setCacheValue(g,i)}return t.getCacheValue(g)}function C(t){if(!t.getCacheValue(g)){const{curvePaths:e,hasM:r,hasZ:s,paths:n}=t,i=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:r,hasZ:s,paths:n});t.setCacheValue(g,i)}return t.getCacheValue(g)}function E(t){return t.cache?(t.cache[g]??=(0,f.fromSpatialReference)(t),t.cache[g]):(0,f.fromSpatialReference)(t)}function P(t,e){if(t)switch(t.getGeometryType()){case n.G.enumPoint:return w(t,e);case n.G.enumEnvelope:return Z(t,e);case n.G.enumMultiPoint:return V(t,e);case n.G.enumPolyline:return O(t,e);case n.G.enumPolygon:return A(t,e)}return null}function Z(t,e){if(t.isEmpty())return null;const r=new o.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),s=t.getDescription();if(s.hasM()){const e=t.queryInterval(2,0);r.mmin=e.vmin,r.mmax=e.vmax}if(s.hasZ()){const e=t.queryInterval(1,0);r.zmin=e.vmin,r.zmax=e.vmax}return r.setCacheValue(g,t),r}function V(t,e){if(t.isEmpty())return null;const r=t.getDescription(),s=r.hasM(),n=r.hasZ(),a=[],o=new i.P;for(let e=0,r=t.getPointCount();e<r;e++){t.getPointByVal(e,o);const r=[o.getX(),o.getY()];n&&r.push(o.getZ()),s&&r.push(o.getM()),a.push(r)}const u=new h.A({hasM:s,hasZ:n,points:a,spatialReference:e});return u.setCacheValue(g,t),u}function w(t,e){if(t instanceof s.P)return new u.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const r=new u.A({x:t.getX(),y:t.getY(),spatialReference:e}),n=t.getDescription();return n.hasM()&&(r.m=t.getM()),n.hasZ()&&(r.z=t.getZ()),r.setCacheValue(g,t),r}function A(t,e){if(t.isEmpty())return null;const r=c.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(g,t),r}function O(t,e){if(t.isEmpty())return null;const r=l.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(g,t),r}},92722(t,e,r){r.d(e,{A:()=>n});var s=r(69397);class n{constructor(t=[],e=[],r=!1,s=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=s}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:s}){return new n(t,e,r||!1,s||!1)}static fromRect([t,e,r,s]){const i=r-t,a=s-e;return new n([5],[t,e,i,0,0,a,-i,0,0,-a])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,s.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const r of this.lengths){if(r<3)continue;const{stride:s}=this;let n=this.coords[s*e],i=this.coords[s*e+1];for(let a=1;a<r;a+=1){const r=s*(e+a),o=this.coords[r],h=this.coords[r+1];t+=-.5*(o-n)*(h+i),n=o,i=h}e+=r}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:r}=this;for(const s of this.lengths){for(let n=0;n<s;n++){const s=r*(e+n);t(this.coords[s],this.coords[s+1])}e+=s}}deltaDecode(){const t=this.clone(),{coords:e,lengths:r}=t;let s=0;const{stride:n}=this;for(const t of r){for(let r=1;r<t;r++){const t=n*(s+r);e[t]+=e[t-n],e[t+1]+=e[t+1-n]}s+=t}return t}clone(t){if(this.isPoint)return new n([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:r,size:s}=this,i=this.coords.slice(0,s*r);return t?(t.set(i),new n(e,t,this.hasZ,this.hasM)):new n(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const r=new Array(e*t);for(let e=0,s=0;e<r.length;e+=t)r[s++]=this.coords[e],r[s++]=this.coords[e+1];return new n(this.lengths,r,!1,!1)}}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[506,1550,1948,6671,7992,8125],{61691(t,e,r){r.d(e,{G:()=>s});class s{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,r){r.d(e,{S:()=>n});var s=r(61691);class n extends s.G{m_aGeoms;m_iGeom=-1;constructor(t){super(),this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},69397(t,e,r){r.d(e,{Qf:()=>o,Qh:()=>i,lM:()=>n});var s=r(34275);function n(t){if(!t)return 0;let e=u;for(const r in t)t.hasOwnProperty(r)&&(e+=a(t[r],!1));return e}function i(t){if(!t)return 0;if("number"==typeof t[0])return o(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let r=c;for(let s=0;s<e;s++)r+=a(t[s]);return r}(t);let e=u;for(const r in t)t.hasOwnProperty(r)&&(e+=a(t[r]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?i(t):u;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...t){return t.reduce((t,e)=>t+(e?(0,s.iu)(e)?e.byteLength+l:Array.isArray(e)?h(e,16):0:0),0)}function h(t,e){return c+t.length*e}const u=32,c=16,l=145},87992(t,e,r){r.d(e,{JR:()=>Z,ME:()=>C,MY:()=>w,NO:()=>M,Nh:()=>P,V2:()=>_,_s:()=>Y,e6:()=>I,gh:()=>E,jm:()=>V,tr:()=>X,uX:()=>p});var s=r(32198),n=r(16930),i=r(19419),a=r(60408),o=r(21325),h=r(513),u=r(50954),c=r(79567),l=r(52006),f=r(49663),g=r(46068),m=r(92722);class p{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:i,partCount:a,partOffsets:o,partFlags:h,segmentFlags:u,segmentIndices:c,segmentParams:l,segmentCountArc:f,segmentCountBezier:g}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=h,this.segmentFlags=u,this.segmentIndices=c,this.segmentParams=l,this.segmentCountArc=f,this.segmentCountBezier=g}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?64+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:r,hasZ:s,hasM:n,segmentCountArc:i,segmentCountBezier:a}=this,o=_(t,e,r,s,n,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;const{vertexXY:h,vertexZ:u,vertexM:c}=this;if(o.vertexXY.set(h.subarray(0,2*e),0),o.vertexZ?.set(u.subarray(0,e),0),o.vertexM?.set(c.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,r+1)),o.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(r.subarray(0,e),0),o.segmentParams.set(s.subarray(0,n),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,o.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new x(this):[][Symbol.iterator]()}}class x{constructor(t){this.geometry=t,this.value=new y(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class y{constructor(t){this.geometry=t,this.index=-1,this._readVertex=R(t),this._segments=new d(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class d{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new v(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class v{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=R(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],s=e[r++],n=e[r++],i=e[r++];return{b:[this.end,[t,s],[n,i]]}}const s=e[r++],n=e[r++],i=e[r++],a=e[r++],o=e[r++],h=e[r++];r++,r++;const u=e[r++],c=e[r++];if(!Boolean(4&s)&&1===i)return{c:[this.end,[u,c]]};const l=2&s?0:1,f=1&s?0:1;return{a:[this.end,[o,h],l,f,a,n,i]}}}function M(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,i.Ie)(),(0,s.mS)(r,new A(t,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:n,vertexZ:a,vertexM:o}=t,h=O(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new A(t,["vertexZ","vertexM"]),!1);const n=(0,i.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,c.e)(n,t,r),t=(0,l.yP)(r)}const[a,o,u,f]=n;e={xmin:a,ymin:o,xmax:u,ymax:f,spatialReference:h}}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}else{let t,s,i,a;t=s=1/0,i=a=-1/0;for(let e=0;e<r;++e){const r=n[2*e],o=n[2*e+1];t=Math.min(t,r),i=Math.max(i,r),s=Math.min(s,o),a=Math.max(a,o)}e={xmin:t,ymin:s,xmax:i,ymax:a,spatialReference:h}}if(a){let t=1/0,r=-1/0;for(const e of a)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(o){let t=1/0,r=-1/0;for(const e of o)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}function C(t){let e,r,s;if((0,a.fT)(t)){s="point";const{x:n,y:i,z:a,m:o}=t,h=[n,i];null!=a&&h.push(a),null!=o&&h.push(o),r=[[h]],e=1}else(0,a.U9)(t)?(s="multipoint",r=[t.points],e=t.points.length):(0,a.Rg)(t)?(s="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(s="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,S(e[0],(0,l.yP)(e.at(-1)))&&--t),t),0));const n=_(s,e,s.includes("point")?0:r.length,(0,a.Pv)(t),(0,a.W0)(t),(0,l.Ed)(t)),{hasZ:i,hasM:o,vertexXY:h,vertexZ:u,vertexM:c}=n;function f(t){h[2*m]=t[0],h[2*m+1]=t[1],i&&(u[m]=t[2]),o&&(c[m]=t[g]),++m}n.spatialReference=t.spatialReference??void 0;const g=n.hasZ?3:2;let m=0;if(!n.isMultipart()){if(!i&&!o){for(const[t,e]of r[0])h[2*m]=t,h[2*m+1]=e,++m;return n}for(const t of r[0])f(t);return n}const p="polygon"===s,{partOffsets:x}=n;let y=0;if(!(0,l.Ed)(t)){for(const t of r){if(x[y++]=m,0===t.length)continue;let e=t.length;if(p&&S(t[0],t.at(-1))&&--e,i||o)for(let r=0;r<e;++r)f(t[r]);else for(let r=0;r<e;++r){const[e,s]=t[r];h[2*m]=e,h[2*m+1]=s,++m}}return x[y]=m,n}function d(t){const e=v+t;if(e<=(n.segmentParams?.length??0))return;let r=e*G;r=20*Math.ceil(r/20);const s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let v=0;for(const t of r){if(n.partOffsets[y++]=m,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const s=t[e];f(r);const i=m-1;(0,l.wY)(s)?(d(10),++n.segmentCountArc,v=Y(r,s,n,i,v),r=s.a[0]):(0,l.DA)(s)?(d(10),++n.segmentCountArc,v=b(r,s,n,i,v),r=s.a[0]):(0,l.aO)(s)?(d(10),++n.segmentCountArc,v=I(r,s,n,i,v),r=s.c[0]):(0,l.n1)(s)?(d(4),++n.segmentCountBezier,v=X(0,s,n,i,v),r=s.b[0]):r=s}p&&S(e,r)||f(r)}return n.partOffsets[y]=m,n}function E(t){const e=R(t),{vertexCount:r,partCount:s,hasZ:n,hasM:i}=t,a=O(t);if("point"===t.type){const[e,r]=t.vertexXY,s=t.vertexZ?.[0],n=t.vertexM?.[0];return{x:e,y:r,z:s,m:n,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<r;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:n,hasM:i}}const h="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let n=0;n<s;++n){const s=t.partOffsets[n+1],i=new Array;for(;o<s;)i.push(e(o++));h&&i.length>0&&i.push(i[0]),r.push(i)}return h?{rings:r,hasZ:n,hasM:i,spatialReference:a}:{paths:r,hasZ:n,hasM:i,spatialReference:a}}const u=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);u.push(t)}return h?{rings:[],curveRings:u,hasZ:n,hasM:i,spatialReference:a}:{paths:[],curvePaths:u,hasZ:n,hasM:i,spatialReference:a}}function P(t,{lengths:e,coords:r,hasZ:s,hasM:n},i){const a=t.includes("point")?0:e.length,o="polygon"===t,h="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?a:0);s??=!1,n??=!1;const u=_(t,h,a,s,n,!1,0,0);if(u.spatialReference=i??void 0,!u.isMultipart()){for(let t=0,e=0;t<h;++t)u.vertexXY[2*t]=r[e++],u.vertexXY[2*t+1]=r[e++],s&&(u.vertexZ[t]=r[e++]),n&&(u.vertexM[t]=r[e++]);return u}const c=2+Number(s)+Number(n);let l=0,f=0;u.partOffsets[0]=0;for(const t of e){const e=u.partOffsets[f],i=e+t-Number(o);u.partOffsets[++f]=i;for(let t=e;t<i;++t)u.vertexXY[2*t]=r[l++],u.vertexXY[2*t+1]=r[l++],s&&(u.vertexZ[t]=r[l++]),n&&(u.vertexM[t]=r[l++]);o&&(l+=c)}return u}function Z({type:t,vertexCount:e,vertexXY:r,vertexZ:s,vertexM:n,partCount:i,partOffsets:a,hasZ:o,hasM:h}){const u=new m.A([],[],o,h);i=Math.max(i,1);const c="polygon"===t;let l=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,f=u.coords.length;for(let t=l;t<i;++t)u.coords.push(r[2*t],r[2*t+1]),o&&u.coords.push(s[t]),h&&u.coords.push(n[t]);if(c){const t=l;u.coords.push(r[2*t],r[2*t+1]),o&&u.coords.push(s[t]),h&&u.coords.push(n[t])}u.lengths.push((u.coords.length-f)/u.stride),l=i}return"point"===t&&(u.lengths.length=0),u}function V(...t){const e=new Set;for(const r of t){if(!r)continue;const t=[r.vertexXY,r.vertexZ,r.vertexM,r.partOffsets,r.partFlags,r.segmentFlags,r.segmentIndices,r.segmentParams];for(const r of t){const t=r?.buffer;t&&e.add(t)}}return Array.from(e)}function w(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let s=t.getLatestID();(s<=0||s===r)&&(s=void 0);const n=t.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:e};const i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:r,wkt:e,latestWkid:s,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new p({...t.toFlatGeometry(),spatialReference:e})}class A{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function O({spatialReference:t}){return t instanceof n.A?t.toJSON():t}function R({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?s=>[t[2*s],t[2*s+1],e[s],r[s]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function S(t,e){return t.every((t,r)=>t===e[r])}function _(t,e,r,s,n,i,a,o){a??=0,o??=0;const h=new p({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o});let u=2*Float64Array.BYTES_PER_ELEMENT*e;s&&(u+=Float64Array.BYTES_PER_ELEMENT*e),n&&(u+=Float64Array.BYTES_PER_ELEMENT*e),h.isMultipart()&&(u+=(r+1)*Int32Array.BYTES_PER_ELEMENT,u+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(u+=e*Int8Array.BYTES_PER_ELEMENT,u+=e*Int32Array.BYTES_PER_ELEMENT,u+=h.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const c=new ArrayBuffer(u);let l=0;return h.vertexXY=new Float64Array(c,l,2*e),l+=h.vertexXY.byteLength,s&&(h.vertexZ=new Float64Array(c,l,e),l+=h.vertexZ.byteLength),n&&(h.vertexM=new Float64Array(c,l,e),l+=h.vertexM.byteLength),i&&(h.segmentParams=new Float64Array(c,l,h.segmentParamCount),l+=h.segmentParams.byteLength,h.segmentIndices=new Int32Array(c,l,e),h.segmentIndices.fill(N),l+=h.segmentIndices.byteLength),h.isMultipart()&&(h.partOffsets=new Int32Array(c,l,r+1),l+=h.partOffsets.byteLength,h.partFlags=new Int8Array(c,l,r+1),l+=h.partFlags.byteLength,"polygon"===h.type&&h.partFlags.subarray(0,r).fill(1)),i&&(h.segmentFlags=new Int8Array(c,l,e),h.segmentFlags.fill(1),l+=h.segmentFlags.byteLength),h}function Y(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const[o,[h,u],c,l,f,m,p]=e.a;let x=4;l||(x|=1),c||(x|=2);const y=(0,g.SW)(t,e),[d,v]=(0,g.Uk)(y,.5);return n[a++]=x,n[a++]=m,n[a++]=p,n[a++]=f,n[a++]=h,n[a++]=u,n[a++]=y.u2-y.u1,n[a++]=y.u1,n[a++]=d,n[a++]=v,a}function b(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const o=(0,f.io)(t,e);return F(o,4,...(0,h.mq)(o,.5),n,a)}function I(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){return r[i]=4,s[i]=a,F((0,u.pM)(t,e),0,...e.c[1],n,a)}function F(t,e,r,s,n,i){const{cx:a,cy:o,thetaStart:h,thetaEnd:u,radius:c}=t;return h>u||(e|=1),Math.abs(u-h)<=Math.PI||(e|=2),n[i++]=e,n[i++]=c,n[i++]=1,n[i++]=0,n[i++]=a,n[i++]=o,n[i++]=u-h,n[i++]=h,n[i++]=r,n[i++]=s,i}function X(t,{b:[e,[r,s],[n,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:h},u,c){return a[u]=2,o[u]=c,h[c++]=r,h[c++]=s,h[c++]=n,h[c++]=i,c}const G=1.61803,N=-1},30912(t,e,r){r.d(e,{containsExecute:()=>a});var s=r(39117),n=r(78125);r(85036);const i=new s.x;function a(t,e){return i.execute((0,n.fromGeometry)(t),(0,n.fromGeometry)(e),(0,n.fromSpatialReference)(t.spatialReference),null)}const o=i.supportsCurves();Boolean(o)},78125(t,e,r){r.r(e),r.d(e,{fromExtent:()=>x,fromGeometry:()=>p,fromMultipoint:()=>y,fromPoint:()=>d,fromPolygon:()=>v,fromPolyline:()=>M,fromPolylineUsingImportOperator:()=>C,fromSpatialReference:()=>E,getSpatialReference:()=>m,toExtent:()=>Z,toGeometry:()=>P,toMultipoint:()=>V,toPoint:()=>w,toPolygon:()=>A,toPolyline:()=>O});var s=r(83661),n=r(55537),i=r(95213),a=r(88885),o=r(5443),h=r(48526),u=r(86738),c=r(39829),l=r(82799),f=(r(90293),r(83299));const g="_gxVersion";function m(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function p(t){switch(t.type){case"point":return d(t);case"multipoint":return y(t);case"polyline":return M(t);case"polygon":return v(t);case"extent":return x(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function x(t){if(!t.getCacheValue(g)){const e=new i.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(2,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(1,0,t.zmin,t.zmax),t.setCacheValue(g,e)}return t.getCacheValue(g)}function y(t){if(!t.getCacheValue(g)){const e=new a.M,r=new i.P,s=t.points,n=t.hasM,o=t.hasZ,h=o?3:2;for(let t=0,i=s.length;t<i;t++){const i=s[t];r.setXYCoords(i[0],i[1]),o&&r.setZ(i[2]??0),n&&r.setM(i[h]??NaN),e.add(r)}t.setCacheValue(g,e)}return t.getCacheValue(g)}function d(t){if(!t.getCacheValue(g)){const e=new i.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(g,e)}return t.getCacheValue(g)}function v(t){if(!t.getCacheValue(g)){const{curveRings:e,hasM:r,hasZ:s,rings:n}=t,i=(0,f.fromGeometryToGXGeometry)({curveRings:e,hasM:r,hasZ:s,rings:n});t.setCacheValue(g,i)}return t.getCacheValue(g)}function M(t){if(!t.getCacheValue(g)){const{curvePaths:e,hasM:r,hasZ:s,paths:n}=t,i=(0,f.fromGeometryToGXGeometry)({curvePaths:e,hasM:r,hasZ:s,paths:n});t.setCacheValue(g,i)}return t.getCacheValue(g)}function C(t){if(!t.getCacheValue(g)){const{curvePaths:e,hasM:r,hasZ:s,paths:n}=t,i=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:r,hasZ:s,paths:n});t.setCacheValue(g,i)}return t.getCacheValue(g)}function E(t){return t.cache?(t.cache[g]??=(0,f.fromSpatialReference)(t),t.cache[g]):(0,f.fromSpatialReference)(t)}function P(t,e){if(t)switch(t.getGeometryType()){case n.G.enumPoint:return w(t,e);case n.G.enumEnvelope:return Z(t,e);case n.G.enumMultiPoint:return V(t,e);case n.G.enumPolyline:return O(t,e);case n.G.enumPolygon:return A(t,e)}return null}function Z(t,e){if(t.isEmpty())return null;const r=new o.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),s=t.getDescription();if(s.hasM()){const e=t.queryInterval(2,0);r.mmin=e.vmin,r.mmax=e.vmax}if(s.hasZ()){const e=t.queryInterval(1,0);r.zmin=e.vmin,r.zmax=e.vmax}return r.setCacheValue(g,t),r}function V(t,e){if(t.isEmpty())return null;const r=t.getDescription(),s=r.hasM(),n=r.hasZ(),a=[],o=new i.P;for(let e=0,r=t.getPointCount();e<r;e++){t.getPointByVal(e,o);const r=[o.getX(),o.getY()];n&&r.push(o.getZ()),s&&r.push(o.getM()),a.push(r)}const u=new h.A({hasM:s,hasZ:n,points:a,spatialReference:e});return u.setCacheValue(g,t),u}function w(t,e){if(t instanceof s.P)return new u.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const r=new u.A({x:t.getX(),y:t.getY(),spatialReference:e}),n=t.getDescription();return n.hasM()&&(r.m=t.getM()),n.hasZ()&&(r.z=t.getZ()),r.setCacheValue(g,t),r}function A(t,e){if(t.isEmpty())return null;const r=c.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(g,t),r}function O(t,e){if(t.isEmpty())return null;const r=l.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(g,t),r}},85036(t,e,r){r.d(e,{Q:()=>i});var s=r(51447),n=r(53966);function i(t,e,r){(0,s.io)(n.A.getLogger(`esri.geometry.operators.${t}`),`${e} is deprecated. Refactor using @arcgis/codemod or manually replace usages with ${r} instead.`,{replacement:r,warnOnce:!0})}},92722(t,e,r){r.d(e,{A:()=>n});var s=r(69397);class n{constructor(t=[],e=[],r=!1,s=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=s}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:s}){return new n(t,e,r||!1,s||!1)}static fromRect([t,e,r,s]){const i=r-t,a=s-e;return new n([5],[t,e,i,0,0,a,-i,0,0,-a])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,s.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const r of this.lengths){if(r<3)continue;const{stride:s}=this;let n=this.coords[s*e],i=this.coords[s*e+1];for(let a=1;a<r;a+=1){const r=s*(e+a),o=this.coords[r],h=this.coords[r+1];t+=-.5*(o-n)*(h+i),n=o,i=h}e+=r}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:r}=this;for(const s of this.lengths){for(let n=0;n<s;n++){const s=r*(e+n);t(this.coords[s],this.coords[s+1])}e+=s}}deltaDecode(){const t=this.clone(),{coords:e,lengths:r}=t;let s=0;const{stride:n}=this;for(const t of r){for(let r=1;r<t;r++){const t=n*(s+r);e[t]+=e[t-n],e[t+1]+=e[t+1-n]}s+=t}return t}clone(t){if(this.isPoint)return new n([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:r,size:s}=this,i=this.coords.slice(0,s*r);return t?(t.set(i),new n(e,t,this.hasZ,this.hasM)):new n(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const r=new Array(e*t);for(let e=0,s=0;e<r.length;e+=t)r[s++]=this.coords[e],r[s++]=this.coords[e+1];return new n(this.lengths,r,!1,!1)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[296],{25728(e,t,i){i.d(t,{M:()=>w});var r=i(32198),n=i(69622),o=i(76953),s=i(4718);class a{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(8),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new a,i=this._originStores[0];i&&i.forEach((e,i)=>{t.set(i,(0,s.o8)(e),0)});for(let i=2;i<8;i++){const r=this._originStores[i];r&&r.forEach((r,n)=>{e&&e.has(n)||t.set(n,(0,s.o8)(r),i)})}return t}get(e,t){const i=void 0===t?this._values:this._originStores[t];return i?i.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,i=7){let r=this._originStores[i];if(r||(r=new Map,this._originStores[i]=r),r.set(e,t),!this._values.has(e)||this._propertyOriginMap.get(e)<=i){const r=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,i),r!==t}return!1}delete(e,t=7){const i=this._originStores[t];if(!i)return;const r=i.get(e);if(i.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let i=t-1;i>=0;i--){const t=this._originStores[i];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,i);break}}}return r}has(e,t){const i=void 0===t?this._values:this._originStores[t];return!!i&&i.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const i=this._originStores[t],r=i?.get(e),n=this._values.get(e);return this._values.set(e,r),this._propertyOriginMap.set(e,t),n!==r}originOf(e){return this._propertyOriginMap.get(e)||0}isAtOrigin(e,t){return this.has(e,t)&&this.originOf(e)===t}isBelowOrigin(e,t){return!this.has(e)||this.originOf(e)<t}forEach(e){this._values.forEach(e)}}var l=i(35666),u=i(45917),c=i(88620),p=i(64108);const d=e=>{const t=e;let i=class extends t{constructor(...e){super(...e);const t=(0,c.oY)(this),i=t.store,r=new a;t.store=r,(0,o.k)(t,i,r)}read(e,t){(0,u.L)(this,e,t)}getAtOrigin(e,t){const i=h(this),r=(0,l.aB)(t);return i.get(e,r)}originOf(e){return(0,l.OL)(this.originIdOf(e))}originIdOf(e){return h(this).originOf(e)}revertToOrigin(e,t){const i=h(this),r=(0,l.aB)(t),n=(0,c.oY)(this);"*"===e&&i.keys(r).forEach(e=>this.revertToOrigin(e,t)),n.invalidate(e),i.revert(e,r),n.commit(e)}revertAllToOrigin(e){const t=h(this),i=(0,l.aB)(e);t.keys(i).forEach(t=>this.revertToOrigin(t,e))}};return i=(0,r.Cg)([(0,p.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],i),i};function h(e){return(0,c.oY)(e).store}d(n.A);var g=i(91429),f=i(16649),m=i(49422);const y=e=>{const t=e;let i=class extends t{constructor(...e){super(...e)}clear(e,t="user"){(0,c.oY)(this).clearOrigin(e,(0,l.aB)(t))}write(e,t){return(0,m.M)(this,e=e||{},t),e}setAtOrigin(e,t,i){(0,c.oY)(this).setAtOrigin(e,t,(0,l.aB)(i))}removeOrigin(e){const t=_(this),i=(0,l.aB)(e),r=t.keys(i);for(const e of r)t.originOf(e)===i&&t.set(e,t.get(e,i),7)}updateOrigin(e,t){const i=_(this),r=(0,l.aB)(t),n=(0,f.Jt)(this,e);for(let t=r+1;t<8;++t)i.delete(e,t);i.set(e,n,r)}toJSON(e){return this.write({},e)}};return i=(0,r.Cg)([(0,g.$K)("esri.core.WriteableMultiOriginJSONMixin")],i),i.prototype.toJSON.isDefaultToJSON=!0,i};function _(e){return(0,c.oY)(e).store}const w=e=>{const t=y(d(e));let i=class extends t{};return i=(0,r.Cg)([(0,p.$)("esri.core.MultiOriginJSONSupport")],i),i};w(n.A)},89317(e,t,i){i.d(t,["K",0,["operational-layers","basemap-base-layers","basemap-ground-layers","ground"]])},26887(e,t,i){function r(){return[1,0,0,1,0,0]}function n(e,t,i,r,n,o){return[e,t,i,r,n,o]}i.d(t,{fA:()=>n,vt:()=>r});Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:[1,0,0,1,0,0],clone:function(e){return[e[0],e[1],e[2],e[3],e[4],e[5]]},create:r,fromValues:n},Symbol.toStringTag,{value:"Module"}))},4144(e,t,i){i.r(t),i.d(t,{clipToSpatialReference:()=>l,execute:()=>u,executeMany:()=>c,foldInto360Range:()=>p,foldInto360RangeGeodetic:()=>d,isLoaded:()=>s,load:()=>a,normalizeGeometry:()=>h,supportsCurves:()=>g,transform:()=>f});var r=i(76061),n=i(83290);let o;function s(){return!!o&&(0,n.i)()}async function a(){if(!s()){const[e,t]=await Promise.all([Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(9192)]).then(()=>i(9192)),Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(5756)]).then(()=>i(15756)).then(({injectPe:e})=>e),(0,n.l)()]);o=new e.OperatorProject,t(n.p)}}function l(e,t,i){return o.clipToSpatialReference(e,t,null,i)}function u(e,t){return o.execute(e,t,null)}function c(e,t){const i=o.executeMany(new r.S(e),t,null);return Array.from(i)}function p(e,t){return o.foldInto360Range(e,t)}function d(e,t,i){return o.foldInto360RangeGeodetic(e,t,i)}function h(e,t,i){return o.normalizeGeometry(e,t,i)}function g(){return o.supportsCurves()}function f(e,t,i,r,n){return o.transform(e,t,i,r,n)}},83276(e,t,i){i.r(t),i.d(t,{execute:()=>_,executeMany:()=>v,isLoaded:()=>g,load:()=>m,projectExecute:()=>y,projectExecuteMany:()=>w,projectIsLoaded:()=>h,projectLoad:()=>f,projectSupportsCurves:()=>p,supportsCurves:()=>d});var r=i(4144),n=i(85036),o=i(17499);let s,a,l,u,c,p,d;function h(){return!!s&&(0,r.isLoaded)()}function g(){return(0,n.Q)("projectOperator","isLoaded","projectIsLoaded"),h()}async function f(){if(!h()){const[e,t]=await Promise.all([Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(9567),i.e(9829),i.e(1666)]).then(()=>i(78125)),Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(6129)]).then(()=>i(86129)),(0,r.load)()]);s=e.fromGeometry,a=e.fromSpatialReference,l=e.getSpatialReference,u=e.toGeometry,c=t.createProjectionTransformation,p=(0,r.supportsCurves)(),d=p}}function m(){return(0,n.Q)("projectOperator","load","projectLoad"),f()}function y(e,t,i){const n=l(e),p=c(a(n),a(t),i),d=u((0,r.execute)(s(e),p),t);return!i?.zConversionDisabled&&d?.hasZ&&(0,o.g)([d],n,t),d}function _(e,t,i){return(0,n.Q)("projectOperator","execute","projectExecute"),y(e,t,i)}function w(e,t,i){const n=e.map(s),p=l(e),d=c(a(p),a(t),i),h=(0,r.executeMany)(n,d).map(e=>u(e,t));return!i?.zConversionDisabled&&h&&(0,o.g)(h,p,t),h}function v(e,t,i){return(0,n.Q)("projectOperator","executeMany","projectExecuteMany"),w(e,t,i)}},17499(e,t,i){i.d(t,{g:()=>o});var r=i(60408),n=i(62815);function o(e,t,i){let o;for(const s of e)if(s&&(0,r.Pv)(s)&&!("vertexAttributes"in s)){if(!o){const e="type"in s?s.type:(0,r.$B)(s);if(o=(0,n.N)(e,t,i),!o)return}o(s)}}},62815(e,t,i){i.d(t,{N:()=>a,d:()=>l});var r=i(86211),n=i(73941),o=i(21325),s=i(52006);function a(e,t,i){const r=l(t,i);if(1!==r)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,r);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(const i of e.curvePaths)for(const e of i){const i=(0,s.yP)(e);i.length>2&&(i[2]*=t)}if(e.paths)for(const i of e.paths)for(const e of i)e.length>2&&(e[2]*=t)}}(e,r);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(const i of e.curveRings)for(const e of i){const i=(0,s.yP)(e);i.length>2&&(i[2]*=t)}if(e.rings)for(const i of e.rings)for(const e of i)e.length>2&&(e[2]*=t)}}(e,r);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const i of e.points)i.length>2&&(i[2]*=t)}(e,r);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,r);default:return}}function l(e,t){return null==e||null==t||(0,o.aI)(e,t)||(0,n.xP)(e)||(0,n.xP)(t)?1:(0,r.G9)(e)/(0,r.G9)(t)}},23478(e,t,i){i.r(t),i.d(t,{default:()=>we});var r=i(32198),n=i(49186),o=i(53966),s=i(25728),a=i(17676),l=i(91429),u=i(16930),c=i(21325),p=i(4146),d=i(63074),h=i(8303),g=i(72545),f=i(25036),m=i(86738),y=i(92474),_=i(83027),w=i(48163),v=i(37585),x=i(5443),P=i(39829),M=i(88411),A=i(83276);class T{constructor(e){this.ctm=e.ctm,this.spatialReference=e.toSpatialReference(),this.pairedNeatline=e.pairedNeatline,this.outerExtentMediabox=this._getExtentFromArray(e.outerExtentMediaBox),this.geoControlPoints=e.geoControlPoints,this.outerMediaBox=e.outerExtentMediaBox,this.sourceMediaBoxPolygon=this.createSourceMediaBoxPolygon(),this.sourceNeatlinePolygon=this.createSourceNeatlinePolygon()}createSourceMediaBoxPolygon(){const e=[];for(const[t,i]of this.outerMediaBox){const r=b(this.ctm,t,i);e.push([r[0],r[1]])}return new P.A({rings:[e],spatialReference:this.spatialReference})}createSourceNeatlinePolygon(){const e=[];for(const[t,i]of this.pairedNeatline){const r=b(this.ctm,t,i);e.push([r[0],r[1]])}return new P.A({rings:[e],spatialReference:this.spatialReference})}createProjectedPolygon(e,t,i){(0,a.Te)(i);const r=e;if(r.spatialReference.equals(t))return r;if(!r||!r.extent)throw new n.A("geospatial-pdf-layer: load","Could not project neatline");const o=Math.max(r.extent.width,r.extent.height)/256,s=(0,M.densifyExecute)(r,o);return(0,A.projectExecute)(s,t)}toExtent(){return this._getExtentFromArray(this.pairedNeatline)}_getExtentFromArray(e){let t=1/0,i=1/0,r=-1/0,n=-1/0;for(let o=0;o<e.length;o++){const s=b(this.ctm,e[o][0],e[o][1]);t=Math.min(t,s[0]),i=Math.min(i,s[1]),r=Math.max(r,s[0]),n=Math.max(n,s[1])}return new x.A({xmin:t,ymin:i,xmax:r,ymax:n,spatialReference:this.spatialReference})}}function b(e,t,i){const[r,n,o,s,a,l]=e,u=(0,w.vt)();return(0,v.hZ)(u,r*t+o*i+a,n*t+s*i+l),u}i(44208);var C=i(26887),S=i(48237);function R(e,t,i,r){const n=Math.min(e.length,t.length,3),o=e.slice(0,n).map((e,r)=>({sourcePoint:{x:e[0],y:e[1]},mapPoint:new m.A({x:t[r][0],y:t[r][1],spatialReference:i})}));return new S.A({controlPoints:o,width:r.xmax-r.xmin,height:r.ymax-r.ymin})}function E(e){if(!e?.transform||e.transform.length<6)throw new n.A("geospatial-pdf-layer: georefrencer","created georeferencer does not have valid transform");return e.transform}function O(e){return(0,C.fA)(e[0],-e[1],-e[3],e[4],e[2],e[5])}function j(e){return[[e[0],e[1]],[e[0],e[3]],[e[2],e[3]],[e[2],e[1]]]}class F{constructor(e){const t=this.inputValidation(e);this._registration=t.registration,this._projection=t.projection,this._neatline=t.neatline,this.pairedNeatline=this._pairNeatline(),this.outerExtentMediaBox=j(t.mediaBox),this.geoControlPoints=this._getRegistrationPoints("geo"),this.ctm=t.ctm??this._buildCTMFromRegistration(),this.outputValidation()}inputValidation(e){const{ctm:t,registration:i,projection:r,display:o,neatline:s,mediaBox:a}=e;if(t&&6!==t.length)throw new n.A("geospatial-pdf-layer: invalid-frame","LGIDict has invalid CTM.");if(!t&&(!i||i.length<3))throw new n.A("geospatial-pdf-layer: invalid-frame","LGIDict missing CTM and minimum registration points");if(!a||4!==a.length)throw new n.A("geospatial-pdf-layer: invalid-frame","LGIDict missing or invalid MediaBox.");if(!s||s.length<4||s.length%2!=0)throw new n.A("geospatial-pdf-layer: invalid-frame","LGIDict missing or invalid amount of neatline points");return{ctm:t?(0,C.fA)(t[0],t[1],t[2],t[3],t[4],t[5]):void 0,registration:i??[],projection:r,display:o,neatline:s,mediaBox:a}}outputValidation(){if(6!==this.ctm.length)throw new n.A("geospatial-pdf-layer: invalid-frame","LGIDict missing or invalid CTM");if(this.pairedNeatline.length<4)throw new n.A("geospatial-pdf-layer: invalid-frame","Map Frame should have at least 4 neatline points.");if(4!==this.outerExtentMediaBox.length)throw new n.A("geospatial-pdf-layer: invalid-frame","Failed to generate outerextent from mediaBox.");if(!this.ctm&&this.geoControlPoints.length<2)throw new n.A("geospatial-pdf-layer: invalid-frame","Map Frame should have at least 2 geoControlPoints if defaulting.")}toSpatialReference(){return this._projection.toSpatialReference()}_buildCTMFromRegistration(){const e=[],t=[];for(const i of this._registration)i.length<4||(e.push((0,w.fA)(i[0],i[1])),t.push((0,w.fA)(i[2],i[3])));const i=this._getSourceRect();return O(E(R(e,t,this.toSpatialReference(),i)))}_extentFromArray(e){let t=1/0,i=1/0,r=-1/0,o=-1/0;for(let n=0;n<e.length;n++){const s=e[n];t=Math.min(t,s[0]),i=Math.min(i,s[1]),r=Math.max(r,s[0]),o=Math.max(o,s[1])}if(!(Number.isFinite(t)&&Number.isFinite(i)&&Number.isFinite(r)&&Number.isFinite(o)))throw new n.A("geospatial-pdf-layer: invalid-frame","Failed to compute extent from registration.");return{xmin:t,ymin:i,xmax:r,ymax:o}}_getSourceRect(){if(4===this.outerExtentMediaBox?.length)return this._extentFromArray(this.outerExtentMediaBox);if(this._neatline.length>=6)return this._extentFromArray(this.pairedNeatline);const e=this._getRegistrationPoints("page");if(e.length>=2)return this._extentFromArray(e);throw new n.A("geospatial-pdf-layer: invalid-frame","Cannot build source rectangle from Neatline or Registration points.")}_getRegistrationPoints(e){const[t,i]="page"===e?[0,1]:[2,3];return this._registration.filter(e=>e.length>i).map(e=>[e[t],e[i]])}_pairNeatline(){const e=[];for(let t=0;t<this._neatline.length;t+=2){const i=this._neatline[t],r=this._neatline[t+1];Number.isFinite(i)&&Number.isFinite(r)&&e.push([i,r])}return 2===e.length&&(e.splice(1,0,[e[1][0],e[0][1]]),e.push([e[0][0],e[2][1]])),e}}const D={OriginLatitude:"Origin_Latitude",CentralMeridian:"Central_Meridian",ScaleFactor:"Scale_Factor",FalseEasting:"False_Easting",FalseNorthing:"False_Northing",Zone:"Zone",Hemisphere:"Hemisphere",StandardParallelOne:"Standard_Parallel_One",StandardParallelTwo:"Standard_Parallel_Two"},N=/NAD83|NORTH AMERICAN 1983|^NAR(?:-[A-Z])?$/i,I=/(NAD27|NORTH AMERICAN 1927|NAS(?:-[A-Z])?)$/i,L=/(WGS84|WGS 84|WGE)$/i;class G{constructor(e){const t=this._validateInput(e);this.raw=t.raw,this.dictionaryType=t.dictionaryType,this.datum=t.datum,this.units=t.units,this.projectionType=t.projectionType,this.centralMeridian=t.centralMeridian,this.originLatitude=t.originLatitude,this.falseEasting=t.falseEasting,this.falseNorthing=t.falseNorthing,this.scaleFactor=t.scaleFactor,this.zone=t.zone,this.hemisphere=t.hemisphere,this.standardParallel=t.standardParallel,this.standardParallelOne=t.standardParallelOne,this.standardParallelTwo=t.standardParallelTwo,this.latitudeOne=t.latitudeOne,this.latitudeTwo=t.latitudeTwo,this.latitudeOfTrueScale=t.latitudeOfTrueScale,this.longitudeOne=t.longitudeOne,this.longitudeTwo=t.longitudeTwo,this.longitudeDownFromPole=t.longitudeDownFromPole,this.orientation=t.orientation,this.height=t.height,this.originHeight=t.originHeight,this.originLongitude=t.originLongitude}toWKT(){const e=this._getProjectionName(),t=this._getProjectionWktName(),i=this._getDatumWktPart(),r=this._getLinearUnitWkt(),n=this._getParametersWkt();return`PROJCS["${e}",GEOGCS["${this._getGeographicCoordinateSystemName()}",${i},PRIMEM["Greenwich",0],UNIT["Degree",0.0174532925199433]],PROJECTION["${t}"],${n.join(",\n ")},${r}]`}toSpatialReference(){return new u.A({wkt:this.toWKT()})}_validateInput(e){const t=this._toProjectionDictionaryType(e.Type),i=this._toProjectionCode(e.Projection_Type);if(!i)throw new n.A("geospatial-pdf-layer: invalid-projection","Projection is missing or has unsupported ProjectionType");if(!t)throw new n.A("geospatial-pdf-layer: invalid-projection","Projection dictionary is missing or has invalid Type. Expected Projection or Display.");if(!e.Datum)throw new n.A("geospatial-pdf-layer: invalid-projection","Projection is missing a Datum");return this._requireSummaryParams(e,i),{raw:e,dictionaryType:t,datum:e.Datum,units:e.Units??"M",projectionType:i,centralMeridian:e.Central_Meridian,originLatitude:e.Origin_Latitude,falseEasting:e.False_Easting,falseNorthing:e.False_Northing,scaleFactor:e.Scale_Factor,zone:e.Zone,hemisphere:e.Hemisphere,standardParallel:e.Standard_Parallel,standardParallelOne:e.Standard_Parallel_One,standardParallelTwo:e.Standard_Parallel_Two,latitudeOne:e.Latitude_One,latitudeTwo:e.Latitude_Two,latitudeOfTrueScale:e.Latitude_Of_True_Scale,longitudeOne:e.Longitude_One,longitudeTwo:e.Longitude_Two,longitudeDownFromPole:e.Longitude_Down_From_Pole,orientation:e.Orientation,height:e.Height,originHeight:e.Origin_Height,originLongitude:e.Origin_Longitude}}_toProjectionDictionaryType(e){switch(e){case"Projection":case"Display":return e;default:return}}_toProjectionCode(e){switch(e){case"TC":case"PH":case"UT":case"AC":case"LE":return e;default:return}}_requireSummaryParams(e,t){const i=this._getRequiredParams(t);for(const r of i){const i=e[D[r]];if(void 0===i||""===i)throw new n.A("geospatial-pdf-layer: invalid-projection",`Projection ${t} missing required parameter ${r}.`)}}_getRequiredParams(e){switch(e){case"TC":return["OriginLatitude","CentralMeridian","ScaleFactor","FalseEasting","FalseNorthing"];case"PH":return["OriginLatitude","CentralMeridian","FalseEasting","FalseNorthing"];case"UT":return["Zone","Hemisphere"];case"AC":case"LE":return["OriginLatitude","CentralMeridian","StandardParallelOne","StandardParallelTwo","FalseEasting","FalseNorthing"]}}_getProjectionWktName(){switch(this.projectionType){case"TC":case"UT":return"Transverse_Mercator";case"PH":return"Polyconic";case"AC":return"Albers";case"LE":return"Lambert_Conformal_Conic";default:throw new n.A("geospatial-pdf-layer: invalid-projection","Can not build WKT name from unsupported projection code"+this.projectionType)}}_getProjectionName(){const e=this._getProjectedDatumPrefix();switch(this.projectionType){case"TC":return`${e}_GeoPDF_Transverse_Mercator`;case"PH":return`${e}_GeoPDF_Polyconic`;case"UT":return`${e}_GeoPDF_UTM_Zone_${this.zone}_${this.hemisphere}`;case"AC":return`${e}_GeoPDF_Albers_Equal_Area`;case"LE":return`${e}_GeoPDF_Lambert_Conformal_Conic`;default:throw new n.A("geospatial-pdf-layer: invalid-projection","Can not build Projection name from unsupported projection code"+this.projectionType)}}_getProjectedDatumPrefix(){const e=this._getDatumName();return e?$(e)?"NAD_1983":z(e)?"NAD_1927":B(e)?"WGS_1984":"geospatialPDF":"geospatialPDF"}_getDatumWktPart(){if(!this.datum)throw new n.A("geospatial-pdf-layer: invalid-Datum","Missing Datum");if("definition"===this.datum.kind){const e=this.datum.ellipsoid;if(!e?.semi_Major_Axis)throw new n.A("geospatial-pdf-layer: invalid-Datum","Datum definition requires semi-major axis");const t=this._getInverseFlattening(e),i=this.datum.name??"GeoPDF_Datum",r=`SPHEROID["${e.description??"GeoPDF_Spheroid"}",${e.semi_Major_Axis},${t}]`,o=this.datum.to_WGS84;return`DATUM["${i}",${r}${o?`,TOWGS84[${o.dx??0},${o.dy??0},${o.dz??0},${o.rx??0},${o.ry??0},${o.rz??0},${o.sf??0}]`:""}]`}if(this.datum.name){const e=this.datum.name.toUpperCase();if($(e))return'DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137,298.257222101]]';if(z(e))return'DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]]';if(B(e))return'DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]]'}throw new n.A("geospatial-pdf-layer: invalid-Datum","Unsupported datum "+this.datum.name)}_getLinearUnitWkt(){const e=this.units?.toLowerCase();return["m","meter","meters","metre","metres"].includes(e??"")?'UNIT["Meter",1.0]':["ft","foot","feet"].includes(e??"")?'UNIT["Foot",0.3048]':`UNIT["${this.units}",1.0]`}_getParametersWkt(){switch(this.projectionType){case"TC":return[`PARAMETER["False_Easting",${this.falseEasting}]`,`PARAMETER["False_Northing",${this.falseNorthing}]`,`PARAMETER["Central_Meridian",${this.centralMeridian}]`,`PARAMETER["Latitude_Of_Origin",${this.originLatitude}]`,`PARAMETER["Scale_Factor",${this.scaleFactor}]`];case"PH":return[`PARAMETER["False_Easting",${this.falseEasting}]`,`PARAMETER["False_Northing",${this.falseNorthing}]`,`PARAMETER["Central_Meridian",${this.centralMeridian}]`,`PARAMETER["Latitude_Of_Origin",${this.originLatitude}]`];case"AC":case"LE":return[`PARAMETER["False_Easting",${this.falseEasting}]`,`PARAMETER["False_Northing",${this.falseNorthing}]`,`PARAMETER["Central_Meridian",${this.centralMeridian}]`,`PARAMETER["Latitude_Of_Origin",${this.originLatitude}]`,`PARAMETER["Standard_Parallel_1",${this.standardParallelOne}]`,`PARAMETER["Standard_Parallel_2",${this.standardParallelTwo}]`];case"UT":return this._getUTMParametersWkt()}}_getUTMParametersWkt(){if(!this.zone)throw new n.A("geospatial-pdf-layer: invalid-Projection","No zone found for projection code UT");const e=6*this.zone-183;return['PARAMETER["False_Easting",500000]',`PARAMETER["False_Northing",${/^s/i.test(this.hemisphere??"")?1e7:0}]`,`PARAMETER["Central_Meridian",${e}]`,'PARAMETER["Latitude_Of_Origin",0]','PARAMETER["Scale_Factor",0.9996]']}_getInverseFlattening(e){if(null!=e.inverse_Flattening)return e.inverse_Flattening;const t=e.semi_Major_Axis,i=e.semi_Minor_Axis;if(null==t||null==i)throw new n.A("geospatial-pdf-layer: invalid-Datum","Ellipsoid definition missing InvFlattening or SemiMinorAxis.");return t===i?0:t/(t-i)}_getGeographicCoordinateSystemName(){const e=this._getDatumName();return e?$(e)?"GCS_North_American_1983":z(e)?"GCS_North_American_1927":B(e)?"GCS_WGS_1984":"GCS_GeoPDF":"GCS_GeoPDF"}_getDatumName(){return this.datum&&this.datum.name?this.datum.name.trim().toUpperCase().replace(/_/g," ").replace(/\s+/g," "):null}}function $(e){return N.test(e)}function z(e){return I.test(e)}function B(e){return L.test(e)}class Z{constructor(e){const{bbox:t,bounds:i,gpts:r,lpts:n,gcs:o,mediaBox:s}=this.inputValidation(e);this._bbox=t,this._bounds=i,this._gpts=r,this._lpts=n,this._gcs=o,this.outerExtentMediaBox=j(s),this.geoControlPoints=this._getProjectedGeoControlPoints().map(e=>[e[0],e[1]]);const a=this._getBoundsPolygonPage()??this._getPageControlPoints();this.pairedNeatline=a.map(e=>[e[0],e[1]]),this.neatLine=this.pairedNeatline.flat(),this._georeference=this._createControlPointsGeoreference();const l=E(this._georeference);this.ctm=O(l),this.outputValidation()}toSpatialReference(){return new u.A({wkt:this._gcs.WKT})}inputValidation(e){const{bbox:t,bounds:i,gpts:r,lpts:o,gcs:s,mediaBox:a}=e;if(!t||4!==t.length)throw new n.A("geospatial-pdf-layer: invalid-frame","Viewport missing or invalid BBox.");if(!a||4!==a.length)throw new n.A("geospatial-pdf-layer: invalid-frame","Viewport missing or invalid MediaBox.");if(!r||r.length<6||r.length%2!=0)throw new n.A("geospatial-pdf-layer: invalid-frame","MeasureFrame missing or invalid GPTS.");if(!o||o.length<6||o.length%2!=0)throw new n.A("geospatial-pdf-layer: invalid-frame","MeasureFrame missing or invalid LPTS.");if(o.length!==r.length)throw new n.A("geospatial-pdf-layer: invalid-frame","MeasureFrame LPTS and GPTS must be same length");if(!s?.WKT)throw new n.A("geospatial-pdf-layer: invalid-frame","MeasureFrame missing or invalid WKT.");return{bbox:t,bounds:i,gpts:r,lpts:o,gcs:{WKT:s.WKT},mediaBox:a}}outputValidation(){if(4!==this.outerExtentMediaBox.length)throw new n.A("geospatial-pdf-layer: invalid-frame","Failed to generate outer extent from mediaBox.");if(this.geoControlPoints.length<2)throw new n.A("geospatial-pdf-layer: invalid-frame","Map Frame should have at least 2 geoControlPoints.");if(this.pairedNeatline.length<4)throw new n.A("geospatial-pdf-layer: invalid-frame","Map Frame should have at least 4 neatline points.");if(!this.ctm||6!==this.ctm.length)throw new n.A("geospatial-pdf-layer: invalid-frame","Missing or invalid Map Frame CTM")}_createControlPointsGeoreference(){const e=this._getPageControlPoints(),t=this._getProjectedGeoControlPoints(),i=this._getViewportRect();return R(e,t,this.toSpatialReference(),i)}_getBoundsPolygonLocal(){if(!this._bounds||this._bounds.length<8||this._bounds.length%2!=0)return null;const e=[];for(let t=0;t<this._bounds.length;t+=2)e.push({u:this._bounds[t],v:this._bounds[t+1]});return e}_getBoundsPolygonPage(){const e=this._getBoundsPolygonLocal();return e?.map(e=>this._localToPage(e.u,e.v))??null}_getPageControlPoints(){const e=[];for(let t=0;t<this._lpts.length;t+=2){const i=this._lpts[t],r=this._lpts[t+1];e.push(this._localToPage(i,r))}return e}_getProjectedGeoControlPoints(){const e=this.toSpatialReference(),t=[];for(let i=0;i<this._gpts.length;i+=2){const r=this._gpts[i],n=this._gpts[i+1],o=new m.A({x:n,y:r}),s=(0,A.projectExecute)(o,e);t.push((0,w.fA)(s.x,s.y))}return t}_getViewportRect(){const[e,t,i,r]=this._bbox;return{xmin:Math.min(e,i),ymin:Math.min(t,r),xmax:Math.max(e,i),ymax:Math.max(t,r)}}_localToPage(e,t){const[i,r,n,o]=this._bbox;return(0,w.fA)(i+e*(n-i),r+t*(o-r))}}function k(e){return null==e?[]:Array.isArray(e)?e.map(e=>W(e)):[W(e)]}function U(e){const t=re(e,"LGIDict map frame must be an object.");return{CTM:Q(t.CTM),Registration:Y(t.Registration),Neatline:Q(t.Neatline),Projection:J(t.Projection),Display:J(t.Display)}}function W(e){const t=re(e,"Viewport frame must be an object."),i=function(e){if(ie(e))return{Bounds:Q(e.Bounds),GPTS:Q(e.GPTS),LPTS:Q(e.LPTS),GCS:H(e.GCS)}}(t.Measure);return{BBox:Q(t.BBox),Measure_Raw:t.Measure,Measure:i,Raw:t}}function H(e){if(ie(e))return{WKT:X(e.WKT)}}function J(e){if(ie(e))return{Type:ee(e.Type),Units:ee(e.Units),Datum:K(e.Datum),Projection_Type:ee(e.ProjectionType),Central_Meridian:te(e.CentralMeridian),False_Easting:te(e.FalseEasting),False_Northing:te(e.FalseNorthing),Height:te(e.Height),Hemisphere:ee(e.Hemisphere),Latitude_One:te(e.LatitudeOne),Latitude_Two:te(e.LatitudeTwo),Latitude_Of_True_Scale:te(e.LatitudeOfTrueScale),Longitude_One:te(e.LongitudeOne),Longitude_Two:te(e.LongitudeTwo),Longitude_Down_From_Pole:te(e.LongitudeDownFromPole),Orientation:ee(e.Orientation),Origin_Height:te(e.OriginHeight),Origin_Latitude:te(e.OriginLatitude),Origin_Longitude:te(e.OriginLongitude),Scale_Factor:te(e.ScaleFactor),Standard_Parallel:te(e.StandardParallel),Standard_Parallel_One:te(e.StandardParallelOne),Standard_Parallel_Two:te(e.StandardParallelTwo),Zone:te(e.Zone),Description:ee(e.Description),raw:e}}function K(e){return null==e?null:"string"==typeof e?{kind:"name",name:ee(e),ellipsoid:null,to_WGS84:null,raw:e}:ie(e)?{kind:"definition",name:ee(e.Description),ellipsoid:V(e.Ellipsoid),to_WGS84:q(e.ToWGS84),raw:e}:{kind:"unknown",name:ee(e),ellipsoid:null,to_WGS84:null,raw:e}}function V(e){if(ie(e))return{semi_Major_Axis:te(e.SemiMajorAxis),inverse_Flattening:te(e.InvFlattening),semi_Minor_Axis:te(e.SemiMinorAxis),description:ee(e.Description)}}function q(e){if(ie(e))return{dx:te(e.dx)??0,dy:te(e.dy)??0,dz:te(e.dz)??0,rx:te(e.rx)??0,ry:te(e.ry)??0,rz:te(e.rz)??0,sf:te(e.sf)??0}}function Q(e){if(!Array.isArray(e))return;const t=[];for(const i of e){const e=te(i);if(void 0===e)return;t.push(e)}return t}function Y(e){if(Array.isArray(e))return e.filter(e=>Array.isArray(e)).map(e=>e.map(e=>te(e)).filter(e=>void 0!==e))}function X(e){if(null!=e)return"string"==typeof e?e:String(e)}function ee(e){const t=X(e);if(void 0!==t)return t.trim()}function te(e){if(null==e)return;if("number"==typeof e)return e;if("string"!=typeof e)return;const t=Number(e.trim());return Number.isFinite(t)?t:void 0}function ie(e){return null!=e&&"object"==typeof e&&!Array.isArray(e)}function re(e,t){if(!ie(e))throw new n.A("geospatial-pdf-layer: parse",t);return e}let ne=class extends y.x_{constructor(){super(...arguments),this._connection=null,this._workerHandler=null}load(e){const t=(0,_.h)("GeospatialPDFLayerWorker",{...e,strategy:"dedicated",registryTarget:this}).then(e=>{this._connection=e,this._workerHandler=this._connection.createInvokeProxy()});return this.addResolvingPromise(t),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null,this._workerHandler=null,super.destroy()}async loadPDF(e,t={}){await this.load(t);const{geospatialMetadata:i}=await this._workerHandler.loadPDF(e,t),r=function(e,t=0){const i={mediaBox:Q(e.MediaBox),rotate:te(e.Rotate),hasLGIDict:null!=e.LGIDict,hasVP:null!=e.VP},r=function(e,t){return function(e){return null==e?[]:Array.isArray(e)?e.map(e=>U(e)):[U(e)]}(e)[t]}(e.LGIDict,t);if(r){if(!r.Projection)throw new n.A("geospatial-pdf-layer: parse","LGIDict map frame missing Projection.");const t=new G(r.Projection),o=r.Display?new G(r.Display):void 0;return{result:i,lgiDictFrame:new F({ctm:r.CTM,registration:r.Registration,projection:t,display:o,neatline:r.Neatline,mediaBox:Q(e.MediaBox)})}}const o=function(e,t){return k(e)[t]}(e.VP,t);return o?{result:i,vpFrame:new Z({bbox:o.BBox,bounds:o.Measure?.Bounds,gpts:o.Measure?.GPTS,lpts:o.Measure?.LPTS,gcs:o.Measure?.GCS,mediaBox:Q(e.MediaBox)})}:{result:i}}(i,0),o=r.lgiDictFrame??r.vpFrame;if(!o)throw new n.A("geospatial-pdf-layer:load","pdf does not contain supported LGIDict or VP/Measure.");const s=new T(o),a=s.spatialReference.toJSON();return{frame:s,sourceSpatialReference:a,fullExtent:s.toExtent()}}async render(e,t,i,r,n,o){const s={sourceExtentAsJSON:e.toJSON(),width:t,height:i,ctm:r,currentRing:n};return this._workerHandler.renderPDF(s,o)}};ne=(0,r.Cg)([(0,l.$K)("esri.layers.geospatialPDF.GeospatialPDFWorkerClient")],ne);var oe=i(49859),se=i(14140),ae=i(87186);let le=class extends oe.A{constructor(){super(...arguments),this._workerClient=new ne,this._extent=null,this._ctm=null,this._neatlineRing=[],this._width=0,this._height=0,this._tileSize=512,this.datasetFormat="PDF",this.frame=null,this.neatlineExtent=null,this.page=1,this.tileType="Raster"}destroy(){this._workerClient.destroy(),this.neatlineExtent=null,this._extent=null,this._ctm=null,this._neatlineRing=[]}async fetchRawTile(e,t,i,r={}){const n=this._extent,o=this._ctm,s=this.getTileExtentPDF(e,t,i);return s.intersects(n)?function(e){return new se.A({width:e.width,height:e.height,pixelType:"u8",pixels:[e.red,e.green,e.blue],mask:e.mask})}(await this._workerClient.render(s,this._tileSize,this._tileSize,o,this._neatlineRing,r)):null}async _open(e){if(!this.url)throw new n.A("geospatial-pdf-raster:open","GeospatialPDFRaster requires a url.");const t=await this._workerClient.loadPDF({url:this.url,page:this.page},e);this.frame=t.frame;const i=this.frame.outerExtentMediabox;if(!i)throw new n.A("geospatial-pdf-raster:open","Failed to compute Geospatial PDF extent.");this.neatlineExtent=t.fullExtent,this._extent=i,this._ctm=this.frame.ctm,this._neatlineRing=this.frame.sourceMediaBoxPolygon.rings[0];const r=function(e,t){const[i,r,n,o]=e,s=i*o-r*n;if(!Number.isFinite(s)||0===s)throw new Error("Cannot derive raster dimensions from an invalid PDF CTM.");const a=10*Math.hypot(o,r)/Math.abs(s),l=10*Math.hypot(n,i)/Math.abs(s),u=Math.max(1,Math.ceil(t.width*a)),c=Math.max(1,Math.ceil(t.height*l));if(!Number.isFinite(u)||!Number.isFinite(c))throw new Error("PDF CTM produced invalid raster dimensions.");return[u,c]}(this.frame.ctm,this._extent);this._width=r[0],this._height=r[1];const o={x:i.width/this._width,y:i.height/this._height},s=new ae.A({width:this._width,height:this._height,pixelType:"u8",extent:i,pixelSize:o,spatialReference:i.spatialReference,bandCount:3,keyProperties:{DataType:"Processed"}});this.createRemoteDatasetStorageInfo(s,this._tileSize,this._tileSize),this._set("rasterInfo",s),this.updateTileInfo()}getTileExtentPDF(e,t,i){const r=this._extent,n=2**e,o=r.width/this._width*n,s=r.height/this._height*n,a=new m.A({x:r.xmin,y:r.ymax});return this.getTileExtent({x:o,y:s},t,i,a,r.spatialReference,[512,512])}};(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],le.prototype,"datasetFormat",void 0),(0,r.Cg)([(0,l.MZ)({constructOnly:!0})],le.prototype,"page",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],le.prototype,"tileType",void 0),le=(0,r.Cg)([(0,l.$K)("esri.layers.raster.datasets.GeospatialPDFRaster")],le);var ue=i(34930),ce=i(60694),pe=i(13868),de=i(87045),he=i(36280),ge=i(12711),fe=i(85676),me=i(93223);let ye=class extends((0,d.dM)((0,f.j)((0,h.A)((0,g.G)((0,s.M)(p.A)))))){constructor(e){super(e),this.interpolation="bilinear",this.renderer=null,this.serviceRasterInfo=null,this.symbolizer=null,this._frame=null,this.clippedToNeatline=!0,this.neatlineVisible=!0,this.raster=null,this.spatialReference=null,this.type="geospatial-pdf"}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["PDF"],supportsData:!1},e).catch(a.QP).then(()=>this._openRaster(e?.signal))),Promise.resolve(this)}destroy(){this._shutdownJobHandler(),this.raster?.destroy()}get fullExtent(){return this.serviceRasterInfo?.extent}set url(e){this._set("url",(0,ce.Jf)(e,o.A.getLogger(this)))}async fetchImageBitmapTile(){throw new n.A("geospatial-pdf-layer:fetch-image-bitmap-tile","GeospatialPDFLayer does not expose pre-rendered image tile URLs.")}async fetchPixels(e,t,i,r={}){return _e(this),await this._initJobHandler(),this.raster.fetchPixels(e,Math.round(t),Math.round(i),r)}async fetchTile(e,t,i,r={}){if(_e(this),r.requestAsImageElement)throw new n.A("geospatial-pdf-layer:fetch-tile","GeospatialPDFLayer does not support requestAsImageElement.");await this._initJobHandler();const o=await this.raster.fetchTile(e,t,i,r);return this.clippedToNeatline&&o.pixelBlock&&this._frame&&o.srcExtent&&(o.pixelBlock=await(0,ue.$Q)(o.pixelBlock,o.srcExtent,this._frame.sourceNeatlinePolygon)),o}getCompatibleFullExtent(e){return this.loaded?(this._compatibleFullExtent?.spatialReference.equals(e)||(this._compatibleFullExtent=this.raster.computeExtent(e)),this._compatibleFullExtent):null}getCompatibleTileInfo(e,t,i=!1){if(!this.loaded||null==t)return null;if(i&&e.equals(this.spatialReference))return this.tileInfo;const r=(0,c.Vp)(e);return de.A.create({size:256,spatialReference:e,origin:r?{x:r.origin[0],y:r.origin[1]}:{x:t.xmin,y:t.ymax}})}getRawDisplayBandIds(){return _e(this),[0,1,2]}_configDefaultSettings(){this._configPDFSymbolizer()}_configPDFSymbolizer(){_e(this);const{rasterInfo:e}=this.raster,t=new he.A({stretchType:"none",useGamma:!1}),i=(0,ge.$P)(t.toJSON());this._set("renderer",t),this.symbolizer?(this.symbolizer.rendererJSON=i,this.symbolizer.rasterInfo=e):this.symbolizer=new fe.A({rendererJSON:i,rasterInfo:e});const r=this.symbolizer.bind();r.success||o.A.getLogger(this).warn("geospatial-pdf-layer",r.error||"The fixed GeospatialPDFLayer renderer is not supported.")}async _initJobHandler(){if(!this._rasterJobHandler)return super._initJobHandler().then(()=>{this._rasterJobHandler&&(_e(this),this.raster.rasterJobHandler=this._rasterJobHandler)}).catch(()=>{})}async _openRaster(e){const t=new le({url:this.url});if(await t.open({signal:e}),!t.rasterInfo)throw t.destroy(),new n.A("geospatialpdf-layer:load","cannot load resources on "+this.url);const{rasterInfo:i}=t;this._set("serviceRasterInfo",i),this.setAtOrigin("spatialReference",i.spatialReference,"service"),this.setAtOrigin("tileInfo",t.rasterInfo.storageInfo.tileInfo,"service"),this._frame=t.frame,this.raster=t,this._configDefaultSettings()}_shutdownJobHandler(){super._shutdownJobHandler(),this.raster&&(this.raster.rasterJobHandler=null)}};function _e(e){if(!e.raster||!e.serviceRasterInfo)throw new n.A("imagery-tile","no raster")}(0,r.Cg)([(0,me.e)(pe.SZ)],ye.prototype,"interpolation",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0,clonable:!1,json:{read:!1}})],ye.prototype,"renderer",void 0),(0,r.Cg)([(0,l.MZ)()],ye.prototype,"serviceRasterInfo",void 0),(0,r.Cg)([(0,l.MZ)({clonable:!1})],ye.prototype,"symbolizer",void 0),(0,r.Cg)([(0,l.MZ)({clonable:!1})],ye.prototype,"_compatibleFullExtent",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean})],ye.prototype,"clippedToNeatline",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:!1}})],ye.prototype,"fullExtent",null),(0,r.Cg)([(0,l.MZ)({type:Boolean})],ye.prototype,"neatlineVisible",void 0),(0,r.Cg)([(0,l.MZ)()],ye.prototype,"raster",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0,type:u.A,json:{read:!1}})],ye.prototype,"spatialReference",void 0),(0,r.Cg)([(0,l.MZ)({type:de.A})],ye.prototype,"tileInfo",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0,value:"geospatial-pdf"})],ye.prototype,"type",void 0),(0,r.Cg)([(0,l.MZ)()],ye.prototype,"url",null),ye=(0,r.Cg)([(0,l.$K)("esri.layers.GeospatialPDFLayer")],ye);const we=ye},91806(e,t,i){i.d(t,{A:()=>l});var r,n=i(32198),o=i(25482),s=i(91429),a=i(78888);let l=class extends o.o{static{r=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new r({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,n.Cg)([(0,s.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],l.prototype,"cols",void 0),(0,n.Cg)([(0,s.MZ)({type:a.jz,json:{write:!0}})],l.prototype,"level",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],l.prototype,"levelValue",void 0),(0,n.Cg)([(0,s.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],l.prototype,"origin",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],l.prototype,"resolution",void 0),(0,n.Cg)([(0,s.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],l.prototype,"rows",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],l.prototype,"scale",void 0),l=r=(0,n.Cg)([(0,s.$K)("esri.layers.support.LOD")],l)},87045(e,t,i){i.d(t,{A:()=>w});var r,n=i(32198),o=i(66552),s=i(25482),a=i(86211),l=i(91429),u=i(78888),c=i(86738),p=i(16930),d=i(21325),h=i(28735),g=i(91806),f=i(72802),m=i(36005),y=i(43937);const _=new o.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let w=class extends s.o{static{r=this}static create(e={}){const{resolutionFactor:t=1,scales:i,size:n=256,spatialReference:o=p.A.WebMercator,numLODs:s=24}=e;if(!(0,d.fn)(o)){const e=[];if(i)for(let t=0;t<i.length;t++){const r=i[t];e.push(new g.A({level:t,scale:r,resolution:r}))}else{let t=5e-4;for(let i=s-1;i>=0;i--)e.unshift(new g.A({level:i,scale:t,resolution:t})),t*=2}return new r({dpi:96,lods:e,origin:new c.A(0,0,o),size:[n,n],spatialReference:o})}const l=(0,d.Vp)(o),u=e.origin?new c.A({x:e.origin.x,y:e.origin.y,spatialReference:o}):new c.A(l?{x:l.origin[0],y:l.origin[1],spatialReference:o}:{x:0,y:0,spatialReference:o}),h=1/(39.37*(0,a.GA)(o)*96),f=[];if(i)for(let e=0;e<i.length;e++){const t=i[e],r=t*h;f.push(new g.A({level:e,scale:t,resolution:r}))}else{let e=(0,d.EA)(o)?512/n*591657527.5917094:256/n*591657527.591555;const i=Math.ceil(s/t);f.push(new g.A({level:0,scale:e,resolution:e*h}));for(let r=1;r<i;r++){const i=e/2**t,n=i*h;f.push(new g.A({level:r,scale:i,resolution:n})),e=i}}return new r({dpi:96,lods:f,origin:u,size:[n,n],spatialReference:o})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const i=(0,d.Vp)(e);return e.isWrappable&&!!i&&Math.abs(i.origin[0]-t.x)<=i.dx}return!1}readOrigin(e,t){return c.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,i=0;const r=[],n=this._levelToLOD={};e&&(t=-1/0,i=1/0,e.forEach(e=>{r.push(e.scale),t=e.scale>t?e.scale:t,i=e.scale<i?e.scale:i,n[e.level]=e})),this._set("scales",r),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const i=Math.floor(e),r=i+1;return t[i]/(t[i]/t[r])**(e-i)}scaleToZoom(e){const t=this.scales,i=t.length-1;let r=0;for(;r<i;r++){const i=t[r],n=t[r+1];if(i<=e)return r;if(n===e)return r+1;if(i>e&&n<e)return r+Math.log(i/e)/Math.log(i/n)}return r}tileAt(e,t,i,r){const n=this.lodAt(e);if(!n)return null;let o,s;if("number"==typeof t)o=t,s=i;else if((0,d.aI)(t.spatialReference,this.spatialReference))o=t.x,s=t.y,r=i;else{const e=(0,h.Cv)(t,this.spatialReference);if(null==e)return null;o=e.x,s=e.y,r=i}const a=n.resolution*this.size[0],l=n.resolution*this.size[1];return r??=new f.U(0,0,0),r.level=e,r.row=Math.floor((this.origin.y-s)/l+.001),r.col=Math.floor((o-this.origin.x)/a+.001),this.updateTileInfo(r),r}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let i=this.lodAt(e.level);if(!i&&1===t){const t=this.lods[this.lods.length-1];t.level<e.level&&(i=t)}if(!i)return!1;const r=e.level-i.level,n=i.resolution*this.size[0]/2**r,o=i.resolution*this.size[1]/2**r;return e.extent[0]=this.origin.x+e.col*n,e.extent[1]=this.origin.y-(e.row+1)*o,e.extent[2]=e.extent[0]+n,e.extent[3]=e.extent[1]+o,!0}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const i=this.lodAt(t.level);if(null==i)return null;const{resolution:r}=i,n=r*this.size[0],o=r*this.size[1];return e[0]=this.origin.x+t.col*n,e[1]=this.origin.y-(t.row+1)*o,e[2]=e[0]+n,e[3]=e[1]+o,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return r.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;const t=(512===this.size[0]&&256===e?-1:0)+(this.spatialReference.isGeographic?1:0);if(this.size[0]===e&&0===t)return this;const i=[],n=this.lods.length-t;for(let e=0;e<n;e++){const r=e+t,{scale:n,resolution:o}=r>=0?this.lods[r]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};i.push(new g.A({level:e,scale:n,resolution:o}))}return new r({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:i})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let i=0;i<e.length;i++){const r=e[i];this._upsampleLevels[r.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/r.resolution:0},t=r}}};(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],w.prototype,"compressionQuality",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],w.prototype,"dpi",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{read:_.read,write:_.write,origins:{"web-scene":{read:!1,write:!1}}}})],w.prototype,"format",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],w.prototype,"isWrappable",null),(0,n.Cg)([(0,l.MZ)({type:c.A,json:{write:!0}})],w.prototype,"origin",void 0),(0,n.Cg)([(0,m.w)("origin")],w.prototype,"readOrigin",null),(0,n.Cg)([(0,l.MZ)({type:[g.A],value:null,json:{write:!0}})],w.prototype,"lods",null),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],w.prototype,"scales",void 0),(0,n.Cg)([(0,l.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],w.prototype,"size",void 0),(0,n.Cg)([(0,m.w)("size",["rows","cols"])],w.prototype,"readSize",null),(0,n.Cg)([(0,y.K)("size",{cols:{type:u.jz},rows:{type:u.jz}})],w.prototype,"writeSize",null),(0,n.Cg)([(0,l.MZ)({type:p.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),w=r=(0,n.Cg)([(0,l.$K)("esri.layers.support.TileInfo")],w)},72802(e,t,i){i.d(t,{U:()=>n});var r=i(19419);class n{constructor(e,t,i,n=(0,r.vt)()){this._level=e,this._row=t,this._col=i,this.extent=n}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(e){this._level=e,this._id=null}get row(){return this._row}set row(e){this._row=e,this._id=null}get col(){return this._col}set col(e){this._col=e,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(e){return new n(e.level,e.row,e.col,e.extent)}}},10873(e,t,i){i.d(t,{Qo:()=>_,U$:()=>O});var r=i(66552),n=i(93637),o=i(89317),s=i(5443),a=i(16930),l=i(97159),u=i(88625),c=i(43440),p=i(78553);const d={type:Boolean,value:!0,json:{origins:{service:{read:!1,write:!1},"web-map":{read:!1,write:!1}},name:"screenSizePerspective",write:{enabled:!0,layerContainerTypes:o.K}}},h={type:Boolean,value:!0,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,writer(e,t,i){t[i]=!e}}}},g={type:Boolean,value:!0,nonNullable:!0,json:{name:"showLabels",write:{enabled:!0,layerContainerTypes:o.K}}},f={type:String,json:{origins:{"portal-item":{write:!1}},write:{isRequired:!0,ignoreOrigin:!0,writer:l.w}}},m={type:Boolean,value:!0,nonNullable:!0,json:{origins:{service:{read:{enabled:!1}}},name:"showLegend",write:{enabled:!0,layerContainerTypes:o.K}}},y={value:null,type:u.A,json:{origins:{service:{name:"elevationInfo",write:!0}},name:"layerDefinition.elevationInfo",write:{enabled:!0,layerContainerTypes:o.K}}};function _(e){return{type:e,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}}}const w={write:{enabled:!0,layerContainerTypes:o.K},read:!0},v={type:Number,json:{origins:{"web-document":w,"portal-item":{write:{layerContainerTypes:o.K}}}}},x={...v,json:{...v.json,origins:{"web-document":{...w,write:{enabled:!0,layerContainerTypes:o.K,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}}}},read:{source:["layerDefinition.drawingInfo.transparency","drawingInfo.transparency"],reader:(e,t,i)=>i&&"service"!==i.origin||!t.drawingInfo||void 0===t.drawingInfo.transparency?t.layerDefinition?.drawingInfo&&void 0!==t.layerDefinition.drawingInfo.transparency?(0,p.D)(t.layerDefinition.drawingInfo.transparency):void 0:(0,p.D)(t.drawingInfo.transparency)}}},P={type:s.A,readOnly:!0,json:{origins:{service:{read:{source:["fullExtent","spatialReference"],reader:(e,t)=>{const i=s.A.fromJSON(e);return null!=t.spatialReference&&"object"==typeof t.spatialReference&&(i.spatialReference=a.A.fromJSON(t.spatialReference)),i}}}},read:!1}},M={type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}}}},A={type:Number,json:{origins:{service:{write:{enabled:!1}}},name:"layerDefinition.minScale",write:{layerContainerTypes:o.K}}},T={type:Number,json:{origins:{service:{write:{enabled:!1}}},name:"layerDefinition.maxScale",write:{layerContainerTypes:o.K}}},b={json:{write:{ignoreOrigin:!0,layerContainerTypes:o.K},origins:{"web-map":{read:!1,write:!1}}}},C={type:c.A,json:{name:"attributeTableInfo",write:!0}},S=new r.J({High:"high",Medium:"medium",Low:"low",None:"none"}),R={type:S.apiValues,json:{name:"layerDefinition.barrierWeight",default:"high",read:S.read,write:S.write,origins:{service:{read:!1}}}};function E(e){return{name:"layerDefinition.timeInfo",read:!0,write:{enabled:!0,overridePolicy(t,i){return{enabled:!0,ignoreOrigin:!!e&&this.originIdOf(i)<3}},writer:(e,t,i,r)=>{if(e){const o=e.toJSON({...r,writeExportOptions:!1});(0,n.sM)(i,o,t)}}}}}function O(e){const t=e?.alwaysWriteNonItemOrigin;return{json:{name:e?.name,origins:{"web-map":E(t),"portal-item":E(t)}}}}i.d(t,["C1",0,b,"Fm",0,P,"Ih",0,x,"M6",0,h,"OZ",0,f,"PY",0,d,"Yj",0,y,"es",0,R,"fV",0,m,"hG",0,T,"hn",0,A,"id",0,M,"kF",0,g,"ke",0,v,"zQ",0,C])},31756(e,t,i){var r=i(86211),n=i(79258);const o={unknown:1,inches:(0,r.oU)(1,"meters","inches"),feet:(0,r.oU)(1,"meters","feet"),"us-feet":(0,r.oU)(1,"meters","us-feet"),yards:(0,r.oU)(1,"meters","yards"),miles:(0,r.oU)(1,"meters","miles"),"nautical-miles":(0,r.oU)(1,"meters","nautical-miles"),millimeters:(0,r.oU)(1,"meters","millimeters"),centimeters:(0,r.oU)(1,"meters","centimeters"),decimeters:(0,r.oU)(1,"meters","decimeters"),meters:(0,r.oU)(1,"meters","meters"),kilometers:(0,r.oU)(1,"meters","kilometers"),"decimal-degrees":1/(0,r.vl)(1,"meters",n.$O.radius)};i.d(t,["j",0,o])},88625(e,t,i){i.d(t,{A:()=>_});var r,n=i(32198),o=i(69540),s=i(66552),a=i(25482),l=i(97768),u=i(91429),c=i(30524);let p=r=class extends a.o{constructor(e){super(e),this.expression=void 0,this.title=void 0}async collectRequiredFields(e,t){return(0,c.Dx)(e,t,null,this.expression)}clone(){return new r({expression:this.expression,title:this.title})}equals(e){return this.expression===e.expression&&this.title===e.title}};(0,n.Cg)([(0,u.MZ)({type:String,json:{write:{isRequired:!0}}})],p.prototype,"expression",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],p.prototype,"title",void 0),p=r=(0,n.Cg)([(0,u.$K)("esri.symbols.support.FeatureExpressionInfo")],p);const d=p;var h=i(16271),g=i(36005),f=i(43937);const m=(0,s.O)()({onTheGround:"on-the-ground",relativeToGround:"relative-to-ground",relativeToScene:"relative-to-scene",absoluteHeight:"absolute-height"}),y=new s.J({foot:"feet",kilometer:"kilometers",meter:"meters",mile:"miles","us-foot":"us-feet",yard:"yards"});let _=class extends((0,o.OU)(a.o)){constructor(e){super(e),this.featureExpressionInfo=void 0,this.offset=null}readFeatureExpressionInfo(e,t){return null!=e?e.expression?e:void 0:t.featureExpression&&0===t.featureExpression.value?{expression:"0"}:void 0}writeFeatureExpressionInfo(e,t,i,r){t[i]=e.write({},r),"0"===e.expression&&(t.featureExpression={value:0})}get mode(){const{offset:e,featureExpressionInfo:t}=this;return this._isOverridden("mode")?this._get("mode"):null!=e||t?"relative-to-ground":"on-the-ground"}set mode(e){this._override("mode",e)}set unit(e){this._set("unit",e)}write(e,t){return this.offset||this.mode||this.featureExpressionInfo||this.unit?super.write(e,t):null}equals(e){return this.mode===e.mode&&this.offset===e.offset&&this.unit===e.unit&&(0,l.CM)(this.featureExpressionInfo,e.featureExpressionInfo)}};(0,n.Cg)([(0,u.MZ)({type:d,json:{write:!0}})],_.prototype,"featureExpressionInfo",void 0),(0,n.Cg)([(0,g.w)("featureExpressionInfo",["featureExpressionInfo","featureExpression"])],_.prototype,"readFeatureExpressionInfo",null),(0,n.Cg)([(0,f.K)("featureExpressionInfo",{featureExpressionInfo:{type:d},"featureExpression.value":{type:[0]}})],_.prototype,"writeFeatureExpressionInfo",null),(0,n.Cg)([(0,u.MZ)({type:m.apiValues,nonNullable:!0,json:{type:m.jsonValues,read:m.read,write:{writer:m.write,isRequired:!0}}})],_.prototype,"mode",null),(0,n.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],_.prototype,"offset",void 0),(0,n.Cg)([(0,u.MZ)({type:h.KQ,json:{type:String,read:y.read,write:y.write}})],_.prototype,"unit",null),_=(0,n.Cg)([(0,u.$K)("esri.symbols.support.ElevationInfo")],_)},16271(e,t,i){i.d(t,{Ao:()=>o});var r=i(4576),n=i(31756);function o(e){return 1/(n.j[e]||1)}const s=function(){const e=Object.keys(n.j);return(0,r.TF)(e,"decimal-degrees"),e.sort(),e}();i.d(t,["KQ",0,s])},43440(e,t,i){i.d(t,{A:()=>C});var r=i(32198),n=i(25482),o=i(4718),s=i(91429),a=i(69540),l=i(10107),u=i(64108);let c=class extends n.o{constructor(e){super(e),this.description=null,this.label=null,this.type=null}};(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,r.Cg)([(0,l.MZ)()],c.prototype,"type",void 0),c=(0,r.Cg)([(0,u.$)("esri.tables.elements.AttributeTableElement")],c);const p=c;let d=class extends((0,a.OU)(p)){constructor(e){super(e),this.displayType="auto",this.type="attachment"}clone(){return super.clone()}};(0,r.Cg)([(0,s.MZ)({type:["auto"],json:{write:!0}})],d.prototype,"displayType",void 0),(0,r.Cg)([(0,s.MZ)({type:["attachment"],readOnly:!0,json:{read:!1,write:{enabled:!0,isRequired:!0}}})],d.prototype,"type",void 0),d=(0,r.Cg)([(0,s.$K)("esri.tables.elements.AttributeTableAttachmentElement")],d);const h=d;let g=class extends((0,a.OU)(p)){constructor(e){super(e),this.description=null,this.fieldName=null,this.label=null,this.type="field"}clone(){return super.clone()}};(0,r.Cg)([(0,s.MZ)({type:String,json:{read:!1,write:!1}})],g.prototype,"description",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],g.prototype,"fieldName",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{read:!1,write:!1}})],g.prototype,"label",void 0),(0,r.Cg)([(0,s.MZ)({type:["field"],readOnly:!0,json:{read:!1,write:{enabled:!0,isRequired:!0}}})],g.prototype,"type",void 0),g=(0,r.Cg)([(0,s.$K)("esri.tables.elements.AttributeTableFieldElement")],g);const f=g;var m=i(78888);let y=class extends((0,a.OU)(p)){constructor(e){super(e),this.relationshipId=null,this.type="relationship"}clone(){return super.clone()}};(0,r.Cg)([(0,s.MZ)({type:Number,json:{type:m.jz,write:{enabled:!0,isRequired:!0}}})],y.prototype,"relationshipId",void 0),(0,r.Cg)([(0,s.MZ)({type:["relationship"],readOnly:!0,json:{read:!1,write:{enabled:!0,isRequired:!0}}})],y.prototype,"type",void 0),y=(0,r.Cg)([(0,s.$K)("esri.tables.elements.AttributeTableRelationshipElement")],y);const _=y,w={base:p,key:"type",typeMap:{attachment:h,field:f,relationship:_}};let v=class extends((0,a.OU)(p)){constructor(e){super(e),this.elements=null,this.type="group"}clone(){return super.clone()}};(0,r.Cg)([(0,s.MZ)({types:[w],json:{name:"attributeTableElements",write:!0}})],v.prototype,"elements",void 0),(0,r.Cg)([(0,s.MZ)({type:["group"],readOnly:!0,json:{read:!1,write:{enabled:!0,isRequired:!0}}})],v.prototype,"type",void 0),v=(0,r.Cg)([(0,s.$K)("esri.tables.elements.AttributeTableGroupElement")],v);const x=v;let P=class extends((0,a.OU)(n.o)){constructor(e){super(e),this.field=null,this.order=null}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],P.prototype,"field",void 0),(0,r.Cg)([(0,s.MZ)({type:["asc","desc"],json:{write:!0}})],P.prototype,"order",void 0),P=(0,r.Cg)([(0,s.$K)("esri.tables.support.FieldOrder")],P);const M=P;var A;const T=function(e){return{typesWithGroup:{base:p,key:"type",typeMap:{attachment:h,field:f,group:e,relationship:_}},typesWithoutGroup:w}}(x);let b=A=class extends n.o{constructor(e){super(e),this.elements=null,this.orderByFields=null}clone(){return new A({elements:(0,o.o8)(this.elements),orderByFields:(0,o.o8)(this.orderByFields)})}};(0,r.Cg)([(0,s.MZ)({types:[T.typesWithGroup],json:{name:"attributeTableElements",write:!0}})],b.prototype,"elements",void 0),(0,r.Cg)([(0,s.MZ)({type:[M],json:{write:!0}})],b.prototype,"orderByFields",void 0),b=A=(0,r.Cg)([(0,s.$K)("esri.tables.AttributeTableTemplate")],b);const C=b}}]);
|