@arcgis/core 5.2.0-next.48 → 5.2.0-next.49
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/applications/Components/OrientedImageryViewer/PanoramicViewer/utils.d.ts +33 -0
- package/applications/Components/OrientedImageryViewer/PanoramicViewer/utils.js +2 -0
- package/arcgisGlobal.d.ts +2 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/031ccf2e1583beebdf24.js +1 -0
- package/assets/esri/core/workers/chunks/0474af7687466d8befd2.js +1 -0
- package/assets/esri/core/workers/chunks/{f9b2727b41943d83d4ca.js → 0a413d917f3d19440fc1.js} +1 -1
- package/assets/esri/core/workers/chunks/0b2ca406761c63529a6a.js +1 -0
- package/assets/esri/core/workers/chunks/{c369d4266f38e9ea6592.js → 1119a33245138e7b3914.js} +1 -1
- package/assets/esri/core/workers/chunks/{6fbcf1b85461c6c6c127.js → 172571397c66f992d08c.js} +1 -1
- package/assets/esri/core/workers/chunks/18edf2846d7546285e5e.js +1 -0
- package/assets/esri/core/workers/chunks/{7759a489205a874e13bb.js → 1b0557fcb058fc450230.js} +1 -1
- package/assets/esri/core/workers/chunks/{7d0ff52748fd4eb0334d.js → 1bc45872d22d61dbd7d1.js} +1 -1
- package/assets/esri/core/workers/chunks/{835643f716f7058a2722.js → 1cf8fb704c48ac3d3b15.js} +1 -1
- package/assets/esri/core/workers/chunks/25cb56c3b538d00e7693.js +1 -0
- package/assets/esri/core/workers/chunks/{2c0d92c0e3511775401a.js → 35cbf00f0c37a86517af.js} +1 -1
- package/assets/esri/core/workers/chunks/382d9491c2a56c1925fe.js +1 -0
- package/assets/esri/core/workers/chunks/3af2b9d6d5466cb2b957.js +256 -0
- package/assets/esri/core/workers/chunks/{c3766d98f0a70897647f.js → 3bc2943035391b44d4cf.js} +1 -1
- package/assets/esri/core/workers/chunks/{bd8b180c61a80e60568c.js → 40f7bb0ebd918d76f078.js} +1 -1
- package/assets/esri/core/workers/chunks/43b39abd49c4a8ce891f.js +1 -0
- package/assets/esri/core/workers/chunks/{821176ee3be724621bb0.js → 461c2de938bf4c9b1442.js} +1 -1
- package/assets/esri/core/workers/chunks/4ee7232ea41fa41c5ed4.js +29 -0
- package/assets/esri/core/workers/chunks/50674ba5f24129d61d89.js +1 -0
- package/assets/esri/core/workers/chunks/547a2fe53139f705f95e.js +1 -0
- package/assets/esri/core/workers/chunks/5ce09c4d06e98b1e9251.js +1 -0
- package/assets/esri/core/workers/chunks/{4d9433f127aef76f3449.js → 5dbd28fce73751d2d1aa.js} +1 -1
- package/assets/esri/core/workers/chunks/5ec8b02e097cf6718462.js +1 -0
- package/assets/esri/core/workers/chunks/5f54d927dc77e92cf145.js +1 -0
- package/assets/esri/core/workers/chunks/63e3d338751240479335.js +1 -0
- package/assets/esri/core/workers/chunks/6ccd5fa5e35dc70fcd5d.js +1 -0
- package/assets/esri/core/workers/chunks/6e520ef645c5edcd499a.js +1 -0
- package/assets/esri/core/workers/chunks/{68d898037feb0aee3138.js → 78add8e6b54b51eaa299.js} +1 -1
- package/assets/esri/core/workers/chunks/7b61f56d0f766421eaef.js +1 -0
- package/assets/esri/core/workers/chunks/7f2f2a92dce3f68e579b.js +1 -0
- package/assets/esri/core/workers/chunks/{e7e3ea7af928b49b226c.js → 801a664f21e0218bc705.js} +1 -1
- package/assets/esri/core/workers/chunks/8d21e2dabc5165f1c8ca.js +1 -0
- package/assets/esri/core/workers/chunks/9008090a5d8431ddfa22.js +1 -0
- package/assets/esri/core/workers/chunks/{71ce1009dadcae8f8094.js → 95b3b8fe45ef4ac6b277.js} +1 -1
- package/assets/esri/core/workers/chunks/{78918035144c3c76df71.js → 96cec8a02ca96175d602.js} +1 -1
- package/assets/esri/core/workers/chunks/{bab71e1b8b93d09d4809.js → 99eccf9ce53582cfa5b5.js} +1 -1
- package/assets/esri/core/workers/chunks/9b7cb96acea388d86fa4.js +1 -0
- package/assets/esri/core/workers/chunks/{ff2c4f648f77850922d5.js → 9e474465d069cb9e94f5.js} +1 -1
- package/assets/esri/core/workers/chunks/{ae9f9e975d7a9d442fa5.js → ab5aa4280ed0cb7fcbe9.js} +1 -1
- package/assets/esri/core/workers/chunks/b49952541d189b4b9f7e.js +1 -0
- package/assets/esri/core/workers/chunks/{fed6c75485601cd3afa1.js → baac90da0703891d59c4.js} +1 -1
- package/assets/esri/core/workers/chunks/bb552089b34d6811fb03.js +1 -0
- package/assets/esri/core/workers/chunks/{b30237361d87cf982e41.js → d1af0bd611a3dc549858.js} +64 -59
- package/assets/esri/core/workers/chunks/d2cb3d5ef0a9285afb78.js +1 -0
- package/assets/esri/core/workers/chunks/d560ed96dde5ca3a5583.js +1 -0
- package/assets/esri/core/workers/chunks/dc1787d88b11ed985159.js +1 -0
- package/assets/esri/core/workers/chunks/{399e23d777a043efa9f1.js → dd95f50dac3f33cdb6d2.js} +1 -1
- package/assets/esri/core/workers/chunks/ddb92c815d17c67a45e6.js +1 -0
- package/assets/esri/core/workers/chunks/{52efa4ded11c1e71f04f.js → e2e2162adbfb9b46bede.js} +1 -1
- package/assets/esri/core/workers/chunks/e4353f0792f45aa6a62f.js +1 -0
- package/assets/esri/core/workers/chunks/eac8cae89da9ce2f4946.js +1 -0
- package/assets/esri/core/workers/chunks/edf87407dd20685c82ab.js +1 -0
- package/assets/esri/core/workers/chunks/{be6caade351e89f84251.js → ee7c8a7f384ea6393487.js} +107 -82
- package/assets/esri/core/workers/chunks/f1299b4fc760ccca1518.js +1 -0
- package/assets/esri/core/workers/chunks/f244632f7934a4b72c91.js +1 -0
- package/assets/esri/core/workers/chunks/fc639c730115e07a4a1a.js +1 -0
- package/assets/esri/libs/dxtEncoder/dxt_encoder.wasm +0 -0
- package/chunks/Component.glsl.js +104 -67
- package/chunks/LineMarker.glsl.js +31 -31
- package/chunks/RibbonLine.glsl.js +60 -49
- package/chunks/dxt_encoder.js +1 -1
- package/chunks/vec3.js +1 -1
- package/config.js +1 -1
- package/core/has.js +1 -1
- package/geometry/support/aaBoundingBox.js +1 -1
- package/geometry/support/buffer/math/vec3.js +1 -1
- package/geometry/support/frustum.js +1 -1
- package/geometry/support/meshUtils/extent.js +1 -1
- package/geometry/support/meshUtils/vertexSpaceConversion.js +1 -1
- package/kernel.js +1 -1
- package/layers/orientedImagery/transformations/imageToWorld.js +1 -1
- package/layers/orientedImagery/transformations/utils.js +1 -1
- package/package.json +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
- package/symbols/cim/CIMSymbolHelper.js +1 -1
- package/symbols/cim/TextRasterizer.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/symbols/cim/richTextUtils.js +2 -0
- package/views/2d/engine/webgl/TextureManager.js +1 -1
- package/views/2d/engine/webgl/definitions.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
- package/views/2d/engine/webgl/util/DimensionMatcher.js +1 -1
- package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
- package/views/2d/layers/features/schema/processor/symbols/SymbolSchema.js +1 -1
- package/views/2d/layers/support/annodime/DimensionInfo.js +1 -1
- package/views/2d/layers/support/annodime/dimensionUtils.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightReshapeTool3D.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedConfiguration.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedEditTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedSubVisualization.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
- package/views/3d/analysis/ViewshedAnalysisView3D.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillVisualization.js +1 -1
- package/views/3d/focusAreaUtils.js +1 -1
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
- package/views/3d/layers/graphics/wosrLoader.js +1 -1
- package/views/3d/layers/i3s/meshUtils.js +1 -1
- package/views/3d/webgl/RenderCamera.js +1 -1
- package/views/3d/webgl/RenderNode.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/Component.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBuffer.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBufferFields.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js +36 -25
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +17 -10
- package/views/3d/webgl-engine/lib/BoundingInfo.js +1 -1
- package/views/3d/webgl-engine/lib/Object3D.js +1 -1
- package/views/3d/webgl-engine/lib/PolygonIntersections2D.js +1 -1
- package/views/3d/webgl-engine/lib/RayIntersections.js +1 -1
- package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodLevel.js +1 -1
- package/views/3d/webgl-engine/lib/screenPolygonOverlapUtils.js +1 -1
- package/views/3d/webgl-engine/lib/screenPolygonTriangleIntersections.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/shaders/AnimatedLine.glsl.js +8 -5
- package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineLayouts.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTextureBuffer.glsl.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/interactive/snapping/featureSources/FeatureServiceSnappingSource.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorkerHandle.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiledFetcher.js +1 -1
- package/views/selection/SelectionOperation.js +1 -1
- package/views/support/DefaultsFromMap.js +1 -1
- package/views/support/LayerViewManager.js +1 -1
- package/views/support/TextureCompressionWorker.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/services/SuperimposeService.js +1 -1
- package/widgets/OrientedImageryViewer/support/superimposeUtils.js +1 -1
- package/widgets/PanoramicViewer/support/PanoramicTileNode.d.ts +63 -0
- package/widgets/PanoramicViewer/support/PanoramicTileNode.js +1 -1
- package/widgets/PanoramicViewer/support/PanoramicTilePyramid.d.ts +66 -0
- package/widgets/PanoramicViewer/support/PanoramicTilePyramid.js +1 -1
- package/widgets/PanoramicViewer/utils.js +1 -1
- package/widgets/Sketch/VisibleElements.d.ts +0 -10
- package/widgets/Sketch.js +1 -1
- package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js +1 -1
- package/widgets/support/SelectionToolbar.js +1 -1
- package/widgets/support/Selector3D/selectorUtils.js +2 -0
- package/assets/esri/core/workers/chunks/0e64e20fedfe01a1985f.js +0 -1
- package/assets/esri/core/workers/chunks/0f674c625f24ac73e25a.js +0 -1
- package/assets/esri/core/workers/chunks/15351354afcbf840a23d.js +0 -29
- package/assets/esri/core/workers/chunks/1843a762f7051f61af43.js +0 -1
- package/assets/esri/core/workers/chunks/1d1f5578c7d8619f7a46.js +0 -1
- package/assets/esri/core/workers/chunks/2015f4def2ef201bdab8.js +0 -1
- package/assets/esri/core/workers/chunks/20c363a113dc068de9e0.js +0 -1
- package/assets/esri/core/workers/chunks/24d936d459c538187af6.js +0 -1
- package/assets/esri/core/workers/chunks/272c8ab189217240d05f.js +0 -1
- package/assets/esri/core/workers/chunks/2e121eac97ae72a8b49a.js +0 -1
- package/assets/esri/core/workers/chunks/327899182a4dace428eb.js +0 -1
- package/assets/esri/core/workers/chunks/32ca15d928d51b380068.js +0 -1
- package/assets/esri/core/workers/chunks/3e1a7e4c674057807e3a.js +0 -1
- package/assets/esri/core/workers/chunks/4e2baa60c5d5197b2271.js +0 -1
- package/assets/esri/core/workers/chunks/519c0b51b1ba42fb71d7.js +0 -1
- package/assets/esri/core/workers/chunks/57fa3c0e7892c2eef3ee.js +0 -261
- package/assets/esri/core/workers/chunks/68b615bbd27fadcfcb66.js +0 -1
- package/assets/esri/core/workers/chunks/69d740ab18510156f5d6.js +0 -1
- package/assets/esri/core/workers/chunks/8d21f3d6edbcd7b335d0.js +0 -1
- package/assets/esri/core/workers/chunks/9a97f6cda2f36941efae.js +0 -1
- package/assets/esri/core/workers/chunks/9ceeae787dc7c194d60e.js +0 -1
- package/assets/esri/core/workers/chunks/a90f7b1c6c69b6033b4c.js +0 -1
- package/assets/esri/core/workers/chunks/b32bdf5730953c2fb16b.js +0 -1
- package/assets/esri/core/workers/chunks/b5d23efa584c74955d5b.js +0 -1
- package/assets/esri/core/workers/chunks/b83f2bbd634f57a5e8f9.js +0 -1
- package/assets/esri/core/workers/chunks/bb8e9b8343b83dd1ba3c.js +0 -1
- package/assets/esri/core/workers/chunks/bef1990159c0e49e7d27.js +0 -1
- package/assets/esri/core/workers/chunks/bf287f0e2ecb4532dc00.js +0 -1
- package/assets/esri/core/workers/chunks/c5e36544b2d1792e4c5f.js +0 -1
- package/assets/esri/core/workers/chunks/cba3316910ff088f4d77.js +0 -1
- package/assets/esri/core/workers/chunks/de9573871f64c01e9f01.js +0 -1
- package/assets/esri/core/workers/chunks/e232459f0b00110e07ac.js +0 -1
- package/assets/esri/core/workers/chunks/ee6bb6cd16f99421c76b.js +0 -1
- package/assets/esri/core/workers/chunks/fd2ba6f76645ba503cbb.js +0 -1
- package/views/3d/analysis/Viewshed/ViewshedTool2.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5524],{73354(t,e,n){n.d(e,{a:()=>r,b:()=>a,c:()=>i,d:()=>o,e:()=>f,f:()=>u,l:()=>h,n:()=>p,t:()=>l}),n(44208);var s=n(72727);function i(t,e,n){r(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function r(t,e,n,i=3,r=i){const o=(0,s.k)(t.length,i,3),a=(0,s.k)(e.length,r,3),c=Math.min(o,a),h=n[0],u=n[1],l=n[2],f=n[4],p=n[5],d=n[6],m=n[8],g=n[9],S=n[10],y=n[12],M=n[13],v=n[14];let k=0,E=0;for(let n=0;n<c;n++){const n=e[k],s=e[k+1],o=e[k+2];t[E]=h*n+f*s+m*o+y,t[E+1]=u*n+p*s+g*o+M,t[E+2]=l*n+d*s+S*o+v,k+=r,E+=i}return t}function o(t,e,n){a(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function a(t,e,n,i=3,r=i){const o=(0,s.k)(t.length,i,3),a=(0,s.k)(e.length,r,3),c=Math.min(o,a),h=n[0],u=n[1],l=n[2],f=n[3],p=n[4],d=n[5],m=n[6],g=n[7],S=n[8];let y=0,M=0;for(let n=0;n<c;n++){const n=e[y],s=e[y+1],o=e[y+2];t[M]=h*n+f*s+m*o,t[M+1]=u*n+p*s+g*o,t[M+2]=l*n+d*s+S*o,y+=r,M+=i}}function c(t,e,n,s=3,i=s){const r=Math.min(t.length/s,e.length/i);let o=0,a=0;for(let c=0;c<r;c++)t[a]=n*e[o],t[a+1]=n*e[o+1],t[a+2]=n*e[o+2],o+=i,a+=s;return t}function h(t,e,n,s){u(t.typedBuffer,e.typedBuffer,n,s,t.typedBufferStride,e.typedBufferStride)}function u(t,e,n,s,i=3,r=i){const o=Math.min(t.length/i,e.length/r);let a=0,c=0;const h=1/2.2;for(let u=0;u<o;u++)t[c]=s*(n*e[a])**h,t[c+1]=s*(n*e[a+1])**h,t[c+2]=s*(n*e[a+2])**h,a+=r,c+=i}function l(t,e,n,i=3,r=i){const o=(0,s.k)(t.length,i,3),a=(0,s.k)(e.length,r,3),c=Math.min(o,a);let h=0,u=0;for(let s=0;s<c;s++)t[u]=e[h]+n[0],t[u+1]=e[h+1]+n[1],t[u+2]=e[h+2]+n[2],h+=r,u+=i;return t}function f(t,e){p(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function p(t,e,n=3,s=n){const i=Math.min(t.length/n,e.length/s);let r=0,o=0;for(let a=0;a<i;a++){const i=e[r],a=e[r+1],c=e[r+2],h=i*i+a*a+c*c;if(h>0){const e=1/Math.sqrt(h);t[o]=e*i,t[o+1]=e*a,t[o+2]=e*c}r+=s,o+=n}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:u,linearToSRGBView:h,normalize:p,normalizeView:f,scale:c,scaleView:function(t,e,n){c(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,n){const s=Math.min(t.count,e.count),i=t.typedBuffer,r=t.typedBufferStride,o=e.typedBuffer,a=e.typedBufferStride;let c=0,h=0;for(let t=0;t<s;t++)i[h]=o[c]>>n,i[h+1]=o[c+1]>>n,i[h+2]=o[c+2]>>n,c+=a,h+=r},transformMat3:a,transformMat3View:o,transformMat4:r,transformMat4View:i,translate:l},Symbol.toStringTag,{value:"Module"}))},69052(t,e,n){n.d(e,{hr:()=>i});var s=n(34727);class i{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,n=!1){return r(this.range,this.min,this.max,t,e,n)}clamp(t,e=0){return(0,s.qE)(t-e,this.min,this.max)+e}monotonic(t,e,n){return t<e?e:e+o(this.range,t-e,n)}minimalMonotonic(t,e,n){return r(this.range,t,t+this.range,e,n)}center(t,e,n){return e=this.monotonic(t,e,n),this.normalize((t+e)/2,n)}diff(t,e,n){return this.monotonic(t,e,n)-t}shortestSignedDiff(t,e){t=this.normalize(t);const n=(e=this.normalize(e))-t,s=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(n)<Math.abs(s)?n:s}contains(t,e,n){return e=this.minimalMonotonic(t,e),(n=this.minimalMonotonic(t,n))>t&&n<e}}function r(t,e,n,s,i=0,r=!1){return(s-=i)<e?s+=o(t,e-s):s>n&&(s-=o(t,s-n)),r&&s===n&&(s=e),s+i}function o(t,e,n=0){return Math.ceil((e-n)/t)*t+n}const a=new i(0,2*Math.PI),c=(new i(-Math.PI,Math.PI),new i(0,360));n.d(e,["ie",0,c,"uC",0,a])},44794(t,e,n){n.d(e,{v:()=>a});var s=n(4718),i=n(62788),r=n(95488);class o{constructor(t,e){this._observable=new r.I,this._value=t,this._equalityFunction=e}get value(){return(0,i.gc)(this._observable),this._value}set value(t){this._equalityFunction(t,this._value)||(this._value=t,this._observable.notify())}mutate(t){t(this._value),this._observable.notify()}}function a(t,e=s.gh){return new o(t,e)}},72727(t,e,n){function s(t,e,n){if(e<=0)return 0;const s=t-n;return s<0?0:Math.floor(s/e)+1}n.d(e,{k:()=>s}),n(53966)},31411(t,e,n){n.d(e,{GS:()=>b,gh:()=>R});var s=n(49186),i=n(56512),r=n(65864),o=n(4305),a=n(50954),c=n(52006),h=n(49663),u=n(46068),l=n(15507);const f=1e-6,p=[0,0];function d(t){return{maxSegmentLength:t.maxSegmentLength??0,maxDeviation:t.maxDeviation??0,maxSegmentsPerCurve:t.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??1,1)}}class m{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:n,maxSegmentsPerCurve:s,minSegmentsPerCurve:i}){const r=n*n,o=e*e,a=1/s,c=this.interpolate(0),h=this.interpolate(1);(0,l.kb)(this.curveStart,c)>f&&t.push(c),this.initialize(c,h);const u=1/i;for(let t=i-1;t>0;t--){const e=t*u;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<a||(0===r||!isFinite(r)||(0,l.kb)(this.arcStart,this.arcEnd)<r)&&(0===o||!isFinite(o)||this.getDeviation2()<o)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,l.kb)(this.curveEnd,h)>f&&t.push([...this.curveEnd]),t}}class g extends m{constructor(t,e){const[n,s,i]=e.b;super(t,n),this._controlPointsStack=[],this._curveControlPoints=[s,i],this._arcControlPoints=[s,i],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:n,tStart:s,tEnd:i}=this,[r,o]=this._arcControlPoints,a=(t-s)/(i-s),c=(0,l.RS)([],e,r,a),h=(0,l.RS)(p,r,o,a),u=(0,l.RS)([],o,n,a),f=(0,l.RS)([],c,h,a),d=(0,l.RS)([],h,u,a),m=(0,l.RS)([],f,d,a);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([d,u]),this.tEndStack.push(t),this.arcEndStack.push(m),this._arcControlPoints[0]=c,this._arcControlPoints[1]=f,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:n}=this,[s,i]=this._curveControlPoints;return(0,o.B4)(e,s,i,n,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[n,s]=this._arcControlPoints;return Math.max((0,l.yE)(n,t,e),(0,l.yE)(s,t,e))}}class S extends m{constructor(t,e){const[n]=e.a;super(t,n),this._derivedEllipse=(0,u.SW)(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return(0,u.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,l.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function y(t,e,n,{cx:s,cy:i,radius:r,thetaStart:o,thetaEnd:a,isInvalid:c},{maxDeviation:h,maxSegmentLength:u,maxSegmentsPerCurve:p,minSegmentsPerCurve:d}){if(c)return t.push([...n]),t;const m=2*r,g=[s+r*Math.cos(o),i+r*Math.sin(o)],S=[s+r*Math.cos(a),i+r*Math.sin(a)];(0,l.kb)(e,g)>f&&t.push(g);const y=Math.abs(a-o),M=u>0&&u<m?2*Math.asin(u/m):y,v=h>0&&h<=r?2*Math.acos(1-h/r):y,k=Math.min(M,v),E=Math.min(p,Math.max(d,Math.ceil(Math.abs(y/k)))),x=1/E;for(let e=1;e<E;e++){const n=e*x,c=o*(1-n)+a*n;t.push([s+r*Math.cos(c),i+r*Math.sin(c)])}return t.push(S),(0,l.kb)(n,S)>f&&t.push([...n]),t}function M(t,e,n,s){return new g(e,n).densify(t,s)}function v(t,e,n,s){const i=(0,a.pM)(e,n),[r]=n.c;return y(t,e,r,i,s)}function k(t,e,n,s){const i=(0,h.io)(e,n),[r]=n.a;return y(t,e,r,i,s)}function E(t,e,n,s){const[i,r,o,a,c,h,u]=n.a;return 0===h||0===u?(t.push([...i]),t):new S(e,n).densify(t,s)}function x(t,e,n,s){return(0,c.Xq)(n)?(t.push([...n]),t):(0,c.n1)(n)?M(t,e,n,s):(0,c.aO)(n)?v(t,e,n,s):(0,c.DA)(n)?k(t,e,n,s):E(t,e,n,s)}function b(t,e={}){if(!(0,c.Ed)(t))return t;const n=d(e),s=(0,c.FD)(t),i=[];for(const t of s){const e=[];for(let s=0;s<t.length-1;s++){const i=s+1,r=[...(0,c.yP)(t[s])];0===s&&e.push(r),x(e,r,t[i],n)}i.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:i,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:i,spatialReference:t.spatialReference}}const w=(0,i.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function R(t,e,i){const o=new Set(e);return await async function(t,e,i){let r=null;for(const o of t)if(o&&(0,c.Ed)(o)&&null==o.spatialReference.xyTolerance&&(0,c.V8)(o,e)){const t=o.spatialReference;if(!t)throw new s.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const e=_(t);if(i.has(e))o.spatialReference=i.get(e);else{r||(r=await Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(1550)]).then(n.bind(n,78125)));const a=r.fromSpatialReference(t),c=a?.getTolerance();if(null==c)throw new s.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const h=o.spatialReference.clone();h.read({xyTolerance:c}),o.spatialReference=h,i.set(e,h)}}}(t,o,i),t.map(t=>{if(!t||!(0,c.Ed)(t))return t;const n=t.spatialReference.xyTolerance;if(null==n)return t;const s=w(n);return(0,r.rS)(function(t,e,n){if(!(0,c.Ed)(t))return t;const s=new Set(e),i=d(n),r=(0,c.FD)(t),o=[];let a=!1;for(const t of r){const e=[];for(let n=0;n<t.length-1;n++){const r=n+1,o=[...(0,c.yP)(t[n])];0===n&&e.push(o);const h=t[r];(0,c.Xq)(h)?e.push([...h]):(0,c.n1)(h)&&!s.has("cubic-bezier")?M(e,o,h,i):(0,c.aO)(h)&&!s.has("circular-arc")?v(e,o,h,i):(0,c.DA)(h)&&!s.has("elliptic-arc")?k(e,o,h,i):(0,c.wY)(h)&&!s.has("elliptic-arc")?E(e,o,h,i):(e.push((0,c.tk)(h)),a=!0)}o.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...a?{curvePaths:o}:{paths:o}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...a?{curveRings:o}:{rings:o}}}(t,e,s))})}function _(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}},17136(t,e,n){n.d(e,{Y_:()=>B,O7:()=>P,el:()=>_});var s=n(92602),i=n(69052),r=n(49186),o=n(53966),a=n(39829),c=n(82799),h=n(16930),u=n(80754),l=n(21325),f=n(28735),p=n(52006),d=n(31411),m=n(11254),g=n(60408),S=n(65864),y=n(2272),M=n(84952),v=n(92300);const k=()=>o.A.getLogger("esri.geometry.support.normalizeUtils");function E(t){return"polygon"===t[0].type}function x(t){return"polyline"===t[0].type}function b(t,e,n){const s=1e6;if(e){const e=(0,p.Ed)(t)?(0,d.GS)(t,{maxSegmentLength:s}):function(t,e){if(!(t instanceof c.A||t instanceof a.A)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw k().error(t),new r.A("internal:geometry",t)}const n=(0,u.r8)(t),s=[];for(const t of n){const n=[];s.push(n),n.push([t[0][0],t[0][1]]);for(let s=0;s<t.length-1;s++){const i=t[s][0],r=t[s][1],o=t[s+1][0],a=t[s+1][1],c=Math.sqrt((o-i)*(o-i)+(a-r)*(a-r)),h=(a-r)/c,u=(o-i)/c,l=c/e;if(l>1){for(let t=1;t<=l-1;t++){const s=t*e,o=u*s+i,a=h*s+r;n.push([o,a])}const t=(c+Math.floor(l-1)*e)/2,s=u*t+i,o=h*t+r;n.push([s,o])}n.push([o,a])}}return function(t){return"polygon"===t.type}(t)?new a.A({rings:s,spatialReference:t.spatialReference}):new c.A({paths:s,spatialReference:t.spatialReference})}(t,s);t=(0,f.ci)(e,!0)}return n&&(t=(0,u.kS)(t,n)),t}function w(t,e,n){if(Array.isArray(t)){const s=t[0];if(s>e){const n=(0,u.kd)(s,e);t[0]=s+n*(-2*e)}else if(s<n){const e=(0,u.kd)(s,n);t[0]=s+e*(-2*n)}}else{const s=t.x;if(s>e){const n=(0,u.kd)(s,e);t=t.clone().offset(n*(-2*e),0)}else if(s<n){const e=(0,u.kd)(s,n);t=t.clone().offset(e*(-2*n),0)}}return t}function R(t,e){let n=-1;for(let s=0;s<e.cutIndexes.length;s++){const i=e.cutIndexes[s],r=e.geometries[s],o=(0,u.r8)(r);for(let t=0;t<o.length;t++){const e=o[t];e.some(n=>{if(n[0]<180)return!0;{let n=0;for(let t=0;t<e.length;t++){const s=e[t][0];n=s>n?s:n}n=Number(n.toFixed(9));const s=-360*(0,u.kd)(n,180);for(let n=0;n<e.length;n++){const e=r.getPoint(t,n);r.setPoint(t,n,e.clone().offset(s,0))}return!0}})}if(i===n){if(E(t))for(const e of(0,u.r8)(r))t[i]=t[i].addRing(e);else if(x(t))for(const e of(0,u.r8)(r))t[i]=t[i].addPath(e)}else n=i,t[i]=r}return t}async function _(t,e,n){if(!Array.isArray(t))return _([t],e);e&&"string"!=typeof e&&k().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const i="string"==typeof e?e:e?.url??s.A.geometryServiceUrl;let r,o,h,p,d,E,x,P,A=0;const B=[],C=[];for(const e of t)if(null!=e)if(r||(r=e.spatialReference,o=(0,l.Vp)(r),h=r.isWebMercator,E=h?102100:4326,p=u.j7[E].maxX,d=u.j7[E].minX,x=u.j7[E].plus180Line,P=u.j7[E].minus180Line),o)if("mesh"===e.type)C.push(e);else if("point"===e.type)C.push(w(e.clone(),p,d));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map(t=>w(t,p,d)),C.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,o);C.push(t.rings?new a.A(t):t)}else if(e.extent){const t=e.extent,n=(0,u.kd)(t.xmin,d)*(2*p);let s=0===n?e.clone():(0,u.kS)(e.clone(),n);t.offset(n,0);let{xmin:i,xmax:r}=t;i=Number(i.toFixed(9)),r=Number(r.toFixed(9)),t.intersects(x)&&r!==p?(A=r>A?r:A,s=b(s,h),B.push(s),C.push("cut")):t.intersects(P)&&i!==d?(A=r*(2*p)>A?r*(2*p):A,s=b(s,h,360),B.push(s),C.push("cut")):C.push(s)}else C.push(e.clone());else C.push(e);else C.push(e);let D=(0,u.kd)(A,p),O=-90;const z=D,L=new c.A;for(;D>0;){const t=360*D-180;L.addPath([[t,O],[t,-1*O]]),O*=-1,D--}if(B.length>0&&z>0){const e=R(B,await async function(t,e,n,s){const i=(0,y.Dl)(t),r=e[0].spatialReference,o={...s,responseType:"json",query:{...i.query,f:"json",sr:(0,l.YX)(r),target:JSON.stringify({geometryType:(0,g.$B)(e[0]),geometries:e}),cutter:JSON.stringify(n)}},a=await(0,m.A)(i.path+"/cut",o),{cutIndexes:c,geometries:h=[]}=a.data;return{cutIndexes:c,geometries:h.map(t=>{const e=(0,S.rS)(t);return e.spatialReference=r,e})}}(i,B,L,n)),s=[],r=[];for(let n=0;n<C.length;n++){const i=C[n];if("cut"!==i)r.push(i);else{const i=e.shift(),o=t[n];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&i.rings.length>=o.rings.length?(s.push(i),r.push("simplify")):r.push(h?(0,f.Gh)(i):i)}}if(!s.length)return r;const o=await async function(t,e,n){const s="string"==typeof t?(0,M.An)(t):t,i=e[0].spatialReference,r=(0,g.$B)(e[0]),o={...n,query:{...s.query,f:"json",sr:(0,l.YX)(i),geometries:JSON.stringify((0,v.X)(e))}},{data:a}=await(0,m.A)(s.path+"/simplify",o);return(0,v.V)(a.geometries,r,i)}(i,s,n),a=[];for(let t=0;t<r.length;t++){const e=r[t];"simplify"!==e?a.push(e):a.push(h?(0,f.Gh)(o.shift()):o.shift())}return a}const T=[];for(let t=0;t<C.length;t++){const e=C[t];if("cut"!==e)T.push(e);else{const t=B.shift();T.push(!0===h?(0,f.Gh)(t):t)}}return T}function P(t,e,n){const s=(0,l.Vp)(n);if(null==s)return t;const[i,r]=s.valid,o=2*r;let a=0,c=0;e>r?a=Math.ceil(Math.abs(e-r)/o):e<i&&(a=-Math.ceil(Math.abs(e-i)/o)),t>r?c=Math.ceil(Math.abs(t-r)/o):t<i&&(c=-Math.ceil(Math.abs(t-i)/o));let h=t+(a-c)*o;const u=h-e;return u>r?h-=o:u<i&&(h+=o),h}function A(t){const e=(0,l.Vp)(t);if(null==e)return null;const[n,s]=e.valid;return new i.hr(n,s)}const B=A(h.A.WGS84);A(h.A.WebMercator)},80754(t,e,n){n.d(e,{kS:()=>h,kd:()=>c,r8:()=>u});var s=n(82799),i=n(16930),r=n(60408),o=n(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new s.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new s.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function c(t,e){return Math.ceil((t-e)/(2*e))}function h(t,e){if((0,o.Ed)(t))for(const n of function(t){return(0,r.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of n){if((0,o.aO)(t)){const[n,s]=t.c;n[0]+=e,s[0]+=e;continue}if((0,o.FG)(t)){const[n,s]=t.a;n[0]+=e,s[0]+=e;continue}if((0,o.n1)(t)){const[n,s,i]=t.b;n[0]+=e,s[0]+=e,i[0]+=e;continue}t[0]+=e}for(const n of u(t))for(const t of n)t[0]+=e;return t}function u(t){return(0,r.Bi)(t)?t.rings:t.paths}n.d(e,["j7",0,a])},38969(t,e,n){n.d(e,{i:()=>i});var s=n(37955);function i(t,e){return new Promise((n,i)=>{t.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?n():(e((0,s.Oo)(t,"canplay",n)),e((0,s.Oo)(t,"error",i)))})}},92300(t,e,n){n.d(e,{V:()=>o,X:()=>r});var s=n(60408),i=n(65864);function r(t){return{geometryType:(0,s.$B)(t[0]),geometries:t.map(t=>t.toJSON())}}function o(t,e,n){const s=(0,i.xD)(e);return t.map(t=>{const e=s.fromJSON(t);return e.spatialReference=n,e})}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5524],{73354(t,e,n){n.d(e,{a:()=>l,b:()=>a,c:()=>i,d:()=>o,e:()=>f,f:()=>u,l:()=>h,n:()=>p,t:()=>r}),n(44208);var s=n(72727);function i(t,e,n){r(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function r(t,e,n,i=3,r=i){const o=(0,s.k)(t.length,i,3),a=(0,s.k)(e.length,r,3),c=Math.min(o,a),h=n[0],u=n[1],l=n[2],f=n[4],p=n[5],d=n[6],m=n[8],g=n[9],S=n[10],y=n[12],M=n[13],v=n[14];let k=0,E=0;for(let n=0;n<c;n++){const n=e[k],s=e[k+1],o=e[k+2];t[E]=h*n+f*s+m*o+y,t[E+1]=u*n+p*s+g*o+M,t[E+2]=l*n+d*s+S*o+v,k+=r,E+=i}return t}function o(t,e,n){a(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function a(t,e,n,i=3,r=i){const o=(0,s.k)(t.length,i,3),a=(0,s.k)(e.length,r,3),c=Math.min(o,a),h=n[0],u=n[1],l=n[2],f=n[3],p=n[4],d=n[5],m=n[6],g=n[7],S=n[8];let y=0,M=0;for(let n=0;n<c;n++){const n=e[y],s=e[y+1],o=e[y+2];t[M]=h*n+f*s+m*o,t[M+1]=u*n+p*s+g*o,t[M+2]=l*n+d*s+S*o,y+=r,M+=i}}function c(t,e,n,s=3,i=s){const r=Math.min(t.length/s,e.length/i);let o=0,a=0;for(let c=0;c<r;c++)t[a]=n*e[o],t[a+1]=n*e[o+1],t[a+2]=n*e[o+2],o+=i,a+=s;return t}function h(t,e,n,s){u(t.typedBuffer,e.typedBuffer,n,s,t.typedBufferStride,e.typedBufferStride)}function u(t,e,n,s,i=3,r=i){const o=Math.min(t.length/i,e.length/r);let a=0,c=0;const h=1/2.2;for(let u=0;u<o;u++)t[c]=s*(n*e[a])**h,t[c+1]=s*(n*e[a+1])**h,t[c+2]=s*(n*e[a+2])**h,a+=r,c+=i}function l(t,e,n,i=3,r=i){const o=(0,s.k)(t.length,i,3),a=(0,s.k)(e.length,r,3),c=Math.min(o,a);let h=0,u=0;for(let s=0;s<c;s++)t[u]=e[h]+n[0],t[u+1]=e[h+1]+n[1],t[u+2]=e[h+2]+n[2],h+=r,u+=i;return t}function f(t,e){p(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function p(t,e,n=3,s=n){const i=Math.min(t.length/n,e.length/s);let r=0,o=0;for(let a=0;a<i;a++){const i=e[r],a=e[r+1],c=e[r+2],h=i*i+a*a+c*c;if(h>0){const e=1/Math.sqrt(h);t[o]=e*i,t[o+1]=e*a,t[o+2]=e*c}r+=s,o+=n}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:u,linearToSRGBView:h,normalize:p,normalizeView:f,scale:c,scaleView:function(t,e,n){c(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,n){const s=Math.min(t.count,e.count),i=t.typedBuffer,r=t.typedBufferStride,o=e.typedBuffer,a=e.typedBufferStride;let c=0,h=0;for(let t=0;t<s;t++)i[h]=o[c]>>n,i[h+1]=o[c+1]>>n,i[h+2]=o[c+2]>>n,c+=a,h+=r},transformMat3:a,transformMat3View:o,transformMat4:r,transformMat4View:i,translate:l},Symbol.toStringTag,{value:"Module"}))},69052(t,e,n){n.d(e,{hr:()=>i});var s=n(34727);class i{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,n=!1){return r(this.range,this.min,this.max,t,e,n)}clamp(t,e=0){return(0,s.qE)(t-e,this.min,this.max)+e}monotonic(t,e,n){return t<e?e:e+o(this.range,t-e,n)}minimalMonotonic(t,e,n){return r(this.range,t,t+this.range,e,n)}center(t,e,n){return e=this.monotonic(t,e,n),this.normalize((t+e)/2,n)}diff(t,e,n){return this.monotonic(t,e,n)-t}shortestSignedDiff(t,e){t=this.normalize(t);const n=(e=this.normalize(e))-t,s=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(n)<Math.abs(s)?n:s}contains(t,e,n){return e=this.minimalMonotonic(t,e),(n=this.minimalMonotonic(t,n))>t&&n<e}}function r(t,e,n,s,i=0,r=!1){return(s-=i)<e?s+=o(t,e-s):s>n&&(s-=o(t,s-n)),r&&s===n&&(s=e),s+i}function o(t,e,n=0){return Math.ceil((e-n)/t)*t+n}const a=new i(0,2*Math.PI),c=(new i(-Math.PI,Math.PI),new i(0,360));n.d(e,["ie",0,c,"uC",0,a])},44794(t,e,n){n.d(e,{v:()=>a});var s=n(4718),i=n(62788),r=n(95488);class o{constructor(t,e){this._observable=new r.I,this._value=t,this._equalityFunction=e}get value(){return(0,i.gc)(this._observable),this._value}set value(t){this._equalityFunction(t,this._value)||(this._value=t,this._observable.notify())}mutate(t){t(this._value),this._observable.notify()}}function a(t,e=s.gh){return new o(t,e)}},72727(t,e,n){function s(t,e,n){if(e<=0)return 0;const s=t-n;return s<0?0:Math.floor(s/e)+1}n.d(e,{k:()=>s}),n(53966)},31411(t,e,n){n.d(e,{GS:()=>b,gh:()=>R});var s=n(49186),i=n(56512),r=n(65864),o=n(4305),a=n(50954),c=n(52006),h=n(49663),u=n(46068),l=n(15507);const f=1e-6,p=[0,0];function d(t){return{maxSegmentLength:t.maxSegmentLength??0,maxDeviation:t.maxDeviation??0,maxSegmentsPerCurve:t.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??1,1)}}class m{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:n,maxSegmentsPerCurve:s,minSegmentsPerCurve:i}){const r=n*n,o=e*e,a=1/s,c=this.interpolate(0),h=this.interpolate(1);(0,l.kb)(this.curveStart,c)>f&&t.push(c),this.initialize(c,h);const u=1/i;for(let t=i-1;t>0;t--){const e=t*u;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<a||(0===r||!isFinite(r)||(0,l.kb)(this.arcStart,this.arcEnd)<r)&&(0===o||!isFinite(o)||this.getDeviation2()<o)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,l.kb)(this.curveEnd,h)>f&&t.push([...this.curveEnd]),t}}class g extends m{constructor(t,e){const[n,s,i]=e.b;super(t,n),this._controlPointsStack=[],this._curveControlPoints=[s,i],this._arcControlPoints=[s,i],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:n,tStart:s,tEnd:i}=this,[r,o]=this._arcControlPoints,a=(t-s)/(i-s),c=(0,l.RS)([],e,r,a),h=(0,l.RS)(p,r,o,a),u=(0,l.RS)([],o,n,a),f=(0,l.RS)([],c,h,a),d=(0,l.RS)([],h,u,a),m=(0,l.RS)([],f,d,a);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([d,u]),this.tEndStack.push(t),this.arcEndStack.push(m),this._arcControlPoints[0]=c,this._arcControlPoints[1]=f,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:n}=this,[s,i]=this._curveControlPoints;return(0,o.B4)(e,s,i,n,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[n,s]=this._arcControlPoints;return Math.max((0,l.yE)(n,t,e),(0,l.yE)(s,t,e))}}class S extends m{constructor(t,e){const[n]=e.a;super(t,n),this._derivedEllipse=(0,u.SW)(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return(0,u.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,l.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function y(t,e,n,{cx:s,cy:i,radius:r,thetaStart:o,thetaEnd:a,isInvalid:c},{maxDeviation:h,maxSegmentLength:u,maxSegmentsPerCurve:p,minSegmentsPerCurve:d}){if(c)return t.push([...n]),t;const m=2*r,g=[s+r*Math.cos(o),i+r*Math.sin(o)],S=[s+r*Math.cos(a),i+r*Math.sin(a)];(0,l.kb)(e,g)>f&&t.push(g);const y=Math.abs(a-o),M=u>0&&u<m?2*Math.asin(u/m):y,v=h>0&&h<=r?2*Math.acos(1-h/r):y,k=Math.min(M,v),E=Math.min(p,Math.max(d,Math.ceil(Math.abs(y/k)))),x=1/E;for(let e=1;e<E;e++){const n=e*x,c=o*(1-n)+a*n;t.push([s+r*Math.cos(c),i+r*Math.sin(c)])}return t.push(S),(0,l.kb)(n,S)>f&&t.push([...n]),t}function M(t,e,n,s){return new g(e,n).densify(t,s)}function v(t,e,n,s){const i=(0,a.pM)(e,n),[r]=n.c;return y(t,e,r,i,s)}function k(t,e,n,s){const i=(0,h.io)(e,n),[r]=n.a;return y(t,e,r,i,s)}function E(t,e,n,s){const[i,r,o,a,c,h,u]=n.a;return 0===h||0===u?(t.push([...i]),t):new S(e,n).densify(t,s)}function x(t,e,n,s){return(0,c.Xq)(n)?(t.push([...n]),t):(0,c.n1)(n)?M(t,e,n,s):(0,c.aO)(n)?v(t,e,n,s):(0,c.DA)(n)?k(t,e,n,s):E(t,e,n,s)}function b(t,e={}){if(!(0,c.Ed)(t))return t;const n=d(e),s=(0,c.FD)(t),i=[];for(const t of s){const e=[];for(let s=0;s<t.length-1;s++){const i=s+1,r=[...(0,c.yP)(t[s])];0===s&&e.push(r),x(e,r,t[i],n)}i.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:i,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:i,spatialReference:t.spatialReference}}const w=(0,i.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function R(t,e,i){const o=new Set(e);return await async function(t,e,i){let r=null;for(const o of t)if(o&&(0,c.Ed)(o)&&null==o.spatialReference.xyTolerance&&(0,c.V8)(o,e)){const t=o.spatialReference;if(!t)throw new s.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const e=_(t);if(i.has(e))o.spatialReference=i.get(e);else{r||(r=await Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(1550)]).then(n.bind(n,78125)));const a=r.fromSpatialReference(t),c=a?.getTolerance();if(null==c)throw new s.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const h=o.spatialReference.clone();h.read({xyTolerance:c}),o.spatialReference=h,i.set(e,h)}}}(t,o,i),t.map(t=>{if(!t||!(0,c.Ed)(t))return t;const n=t.spatialReference.xyTolerance;if(null==n)return t;const s=w(n);return(0,r.rS)(function(t,e,n){if(!(0,c.Ed)(t))return t;const s=new Set(e),i=d(n),r=(0,c.FD)(t),o=[];let a=!1;for(const t of r){const e=[];for(let n=0;n<t.length-1;n++){const r=n+1,o=[...(0,c.yP)(t[n])];0===n&&e.push(o);const h=t[r];(0,c.Xq)(h)?e.push([...h]):(0,c.n1)(h)&&!s.has("cubic-bezier")?M(e,o,h,i):(0,c.aO)(h)&&!s.has("circular-arc")?v(e,o,h,i):(0,c.DA)(h)&&!s.has("elliptic-arc")?k(e,o,h,i):(0,c.wY)(h)&&!s.has("elliptic-arc")?E(e,o,h,i):(e.push((0,c.tk)(h)),a=!0)}o.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...a?{curvePaths:o}:{paths:o}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...a?{curveRings:o}:{rings:o}}}(t,e,s))})}function _(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}},17136(t,e,n){n.d(e,{Y_:()=>B,O7:()=>P,el:()=>_});var s=n(92602),i=n(69052),r=n(49186),o=n(53966),a=n(39829),c=n(82799),h=n(16930),u=n(80754),l=n(21325),f=n(28735),p=n(52006),d=n(31411),m=n(11254),g=n(60408),S=n(65864),y=n(2272),M=n(84952),v=n(92300);const k=()=>o.A.getLogger("esri.geometry.support.normalizeUtils");function E(t){return"polygon"===t[0].type}function x(t){return"polyline"===t[0].type}function b(t,e,n){const s=1e6;if(e){const e=(0,p.Ed)(t)?(0,d.GS)(t,{maxSegmentLength:s}):function(t,e){if(!(t instanceof c.A||t instanceof a.A)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw k().error(t),new r.A("internal:geometry",t)}const n=(0,u.r8)(t),s=[];for(const t of n){const n=[];s.push(n),n.push([t[0][0],t[0][1]]);for(let s=0;s<t.length-1;s++){const i=t[s][0],r=t[s][1],o=t[s+1][0],a=t[s+1][1],c=Math.sqrt((o-i)*(o-i)+(a-r)*(a-r)),h=(a-r)/c,u=(o-i)/c,l=c/e;if(l>1){for(let t=1;t<=l-1;t++){const s=t*e,o=u*s+i,a=h*s+r;n.push([o,a])}const t=(c+Math.floor(l-1)*e)/2,s=u*t+i,o=h*t+r;n.push([s,o])}n.push([o,a])}}return function(t){return"polygon"===t.type}(t)?new a.A({rings:s,spatialReference:t.spatialReference}):new c.A({paths:s,spatialReference:t.spatialReference})}(t,s);t=(0,f.ci)(e,!0)}return n&&(t=(0,u.kS)(t,n)),t}function w(t,e,n){if(Array.isArray(t)){const s=t[0];if(s>e){const n=(0,u.kd)(s,e);t[0]=s+n*(-2*e)}else if(s<n){const e=(0,u.kd)(s,n);t[0]=s+e*(-2*n)}}else{const s=t.x;if(s>e){const n=(0,u.kd)(s,e);t=t.clone().offset(n*(-2*e),0)}else if(s<n){const e=(0,u.kd)(s,n);t=t.clone().offset(e*(-2*n),0)}}return t}function R(t,e){let n=-1;for(let s=0;s<e.cutIndexes.length;s++){const i=e.cutIndexes[s],r=e.geometries[s],o=(0,u.r8)(r);for(let t=0;t<o.length;t++){const e=o[t];e.some(n=>{if(n[0]<180)return!0;{let n=0;for(let t=0;t<e.length;t++){const s=e[t][0];n=s>n?s:n}n=Number(n.toFixed(9));const s=-360*(0,u.kd)(n,180);for(let n=0;n<e.length;n++){const e=r.getPoint(t,n);r.setPoint(t,n,e.clone().offset(s,0))}return!0}})}if(i===n){if(E(t))for(const e of(0,u.r8)(r))t[i]=t[i].addRing(e);else if(x(t))for(const e of(0,u.r8)(r))t[i]=t[i].addPath(e)}else n=i,t[i]=r}return t}async function _(t,e,n){if(!Array.isArray(t))return _([t],e);e&&"string"!=typeof e&&k().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const i="string"==typeof e?e:e?.url??s.A.geometryServiceUrl;let r,o,h,p,d,E,x,P,A=0;const B=[],C=[];for(const e of t)if(null!=e)if(r||(r=e.spatialReference,o=(0,l.Vp)(r),h=r.isWebMercator,E=h?102100:4326,p=u.j7[E].maxX,d=u.j7[E].minX,x=u.j7[E].plus180Line,P=u.j7[E].minus180Line),o)if("mesh"===e.type)C.push(e);else if("point"===e.type)C.push(w(e.clone(),p,d));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map(t=>w(t,p,d)),C.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,o);C.push(t.rings?new a.A(t):t)}else if(e.extent){const t=e.extent,n=(0,u.kd)(t.xmin,d)*(2*p);let s=0===n?e.clone():(0,u.kS)(e.clone(),n);t.offset(n,0);let{xmin:i,xmax:r}=t;i=Number(i.toFixed(9)),r=Number(r.toFixed(9)),t.intersects(x)&&r!==p?(A=r>A?r:A,s=b(s,h),B.push(s),C.push("cut")):t.intersects(P)&&i!==d?(A=r*(2*p)>A?r*(2*p):A,s=b(s,h,360),B.push(s),C.push("cut")):C.push(s)}else C.push(e.clone());else C.push(e);else C.push(e);let D=(0,u.kd)(A,p),O=-90;const z=D,L=new c.A;for(;D>0;){const t=360*D-180;L.addPath([[t,O],[t,-1*O]]),O*=-1,D--}if(B.length>0&&z>0){const e=R(B,await async function(t,e,n,s){const i=(0,y.Dl)(t),r=e[0].spatialReference,o={...s,responseType:"json",query:{...i.query,f:"json",sr:(0,l.YX)(r),target:JSON.stringify({geometryType:(0,g.$B)(e[0]),geometries:e}),cutter:JSON.stringify(n)}},a=await(0,m.A)(i.path+"/cut",o),{cutIndexes:c,geometries:h=[]}=a.data;return{cutIndexes:c,geometries:h.map(t=>{const e=(0,S.rS)(t);return e.spatialReference=r,e})}}(i,B,L,n)),s=[],r=[];for(let n=0;n<C.length;n++){const i=C[n];if("cut"!==i)r.push(i);else{const i=e.shift(),o=t[n];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&i.rings.length>=o.rings.length?(s.push(i),r.push("simplify")):r.push(h?(0,f.Gh)(i):i)}}if(!s.length)return r;const o=await async function(t,e,n){const s="string"==typeof t?(0,M.An)(t):t,i=e[0].spatialReference,r=(0,g.$B)(e[0]),o={...n,query:{...s.query,f:"json",sr:(0,l.YX)(i),geometries:JSON.stringify((0,v.X)(e))}},{data:a}=await(0,m.A)(s.path+"/simplify",o);return(0,v.V)(a.geometries,r,i)}(i,s,n),a=[];for(let t=0;t<r.length;t++){const e=r[t];"simplify"!==e?a.push(e):a.push(h?(0,f.Gh)(o.shift()):o.shift())}return a}const T=[];for(let t=0;t<C.length;t++){const e=C[t];if("cut"!==e)T.push(e);else{const t=B.shift();T.push(!0===h?(0,f.Gh)(t):t)}}return T}function P(t,e,n){const s=(0,l.Vp)(n);if(null==s)return t;const[i,r]=s.valid,o=2*r;let a=0,c=0;e>r?a=Math.ceil(Math.abs(e-r)/o):e<i&&(a=-Math.ceil(Math.abs(e-i)/o)),t>r?c=Math.ceil(Math.abs(t-r)/o):t<i&&(c=-Math.ceil(Math.abs(t-i)/o));let h=t+(a-c)*o;const u=h-e;return u>r?h-=o:u<i&&(h+=o),h}function A(t){const e=(0,l.Vp)(t);if(null==e)return null;const[n,s]=e.valid;return new i.hr(n,s)}const B=A(h.A.WGS84);A(h.A.WebMercator)},80754(t,e,n){n.d(e,{kS:()=>h,kd:()=>c,r8:()=>u});var s=n(82799),i=n(16930),r=n(60408),o=n(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new s.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new s.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function c(t,e){return Math.ceil((t-e)/(2*e))}function h(t,e){if((0,o.Ed)(t))for(const n of function(t){return(0,r.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of n){if((0,o.aO)(t)){const[n,s]=t.c;n[0]+=e,s[0]+=e;continue}if((0,o.FG)(t)){const[n,s]=t.a;n[0]+=e,s[0]+=e;continue}if((0,o.n1)(t)){const[n,s,i]=t.b;n[0]+=e,s[0]+=e,i[0]+=e;continue}t[0]+=e}for(const n of u(t))for(const t of n)t[0]+=e;return t}function u(t){return(0,r.Bi)(t)?t.rings:t.paths}n.d(e,["j7",0,a])},38969(t,e,n){n.d(e,{i:()=>i});var s=n(37955);function i(t,e){return new Promise((n,i)=>{t.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?n():(e((0,s.Oo)(t,"canplay",n)),e((0,s.Oo)(t,"error",i)))})}},92300(t,e,n){n.d(e,{V:()=>o,X:()=>r});var s=n(60408),i=n(65864);function r(t){return{geometryType:(0,s.$B)(t[0]),geometries:t.map(t=>t.toJSON())}}function o(t,e,n){const s=(0,i.xD)(e);return t.map(t=>{const e=s.fromJSON(t);return e.spatialReference=n,e})}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8419],{5482(t,e,n){function r(t,e,n,r){var s,i=arguments.length,o=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(s=t[u])&&(o=(i<3?s(o):i>3?s(e,n,o):s(e,n))||o);return i>3&&o&&Object.defineProperty(e,n,o),o}function s(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var r,s;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose],n&&(s=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");s&&(r=function(){try{s.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}n.d(e,{Cg:()=>r,hk:()=>o,mS:()=>s}),Object.create,Object.create;var i="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function o(t){function e(e){t.error=t.hasError?new i(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var n,r=0;return function s(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(s);if(n.dispose){var i=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(i).then(s,function(t){return e(t),s()})}else r|=1}catch(t){e(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},11006(t,e,n){function r(t,e,n,r,i){s(t,e,n||0,r||t.length-1,i||o)}function s(t,e,n,r,o){for(;r>n;){if(r-n>600){var u=r-n+1,a=e-n+1,c=Math.log(u),l=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*l*(u-l)/u)*(a-u/2<0?-1:1);s(t,e,Math.max(n,Math.floor(e-a*l/u+f)),Math.min(r,Math.floor(e+(u-a)*l/u+f)),o)}var h=t[e],p=n,d=r;for(i(t,n,e),o(t[r],h)>0&&i(t,n,r);p<d;){for(i(t,p,d),p++,d--;o(t[p],h)<0;)p++;for(;o(t[d],h)>0;)d--}0===o(t[n],h)?i(t,n,d):i(t,++d,r),d<=e&&(n=d+1),e<=d&&(r=d-1)}}function i(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function o(t,e){return t<e?-1:t>e?1:0}n.d(e,{q:()=>r})},73354(t,e,n){n.d(e,{a:()=>i,b:()=>u,c:()=>s,d:()=>o,e:()=>h,f:()=>l,l:()=>c,n:()=>p,t:()=>f}),n(44208);var r=n(72727);function s(t,e,n){i(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function i(t,e,n,s=3,i=s){const o=(0,r.k)(t.length,s,3),u=(0,r.k)(e.length,i,3),a=Math.min(o,u),c=n[0],l=n[1],f=n[2],h=n[4],p=n[5],d=n[6],y=n[8],m=n[9],M=n[10],g=n[12],B=n[13],x=n[14];let T=0,b=0;for(let n=0;n<a;n++){const n=e[T],r=e[T+1],o=e[T+2];t[b]=c*n+h*r+y*o+g,t[b+1]=l*n+p*r+m*o+B,t[b+2]=f*n+d*r+M*o+x,T+=i,b+=s}return t}function o(t,e,n){u(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function u(t,e,n,s=3,i=s){const o=(0,r.k)(t.length,s,3),u=(0,r.k)(e.length,i,3),a=Math.min(o,u),c=n[0],l=n[1],f=n[2],h=n[3],p=n[4],d=n[5],y=n[6],m=n[7],M=n[8];let g=0,B=0;for(let n=0;n<a;n++){const n=e[g],r=e[g+1],o=e[g+2];t[B]=c*n+h*r+y*o,t[B+1]=l*n+p*r+m*o,t[B+2]=f*n+d*r+M*o,g+=i,B+=s}}function a(t,e,n,r=3,s=r){const i=Math.min(t.length/r,e.length/s);let o=0,u=0;for(let a=0;a<i;a++)t[u]=n*e[o],t[u+1]=n*e[o+1],t[u+2]=n*e[o+2],o+=s,u+=r;return t}function c(t,e,n,r){l(t.typedBuffer,e.typedBuffer,n,r,t.typedBufferStride,e.typedBufferStride)}function l(t,e,n,r,s=3,i=s){const o=Math.min(t.length/s,e.length/i);let u=0,a=0;const c=1/2.2;for(let l=0;l<o;l++)t[a]=r*(n*e[u])**c,t[a+1]=r*(n*e[u+1])**c,t[a+2]=r*(n*e[u+2])**c,u+=i,a+=s}function f(t,e,n,s=3,i=s){const o=(0,r.k)(t.length,s,3),u=(0,r.k)(e.length,i,3),a=Math.min(o,u);let c=0,l=0;for(let r=0;r<a;r++)t[l]=e[c]+n[0],t[l+1]=e[c+1]+n[1],t[l+2]=e[c+2]+n[2],c+=i,l+=s;return t}function h(t,e){p(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function p(t,e,n=3,r=n){const s=Math.min(t.length/n,e.length/r);let i=0,o=0;for(let u=0;u<s;u++){const s=e[i],u=e[i+1],a=e[i+2],c=s*s+u*u+a*a;if(c>0){const e=1/Math.sqrt(c);t[o]=e*s,t[o+1]=e*u,t[o+2]=e*a}i+=r,o+=n}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:l,linearToSRGBView:c,normalize:p,normalizeView:h,scale:a,scaleView:function(t,e,n){a(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,n){const r=Math.min(t.count,e.count),s=t.typedBuffer,i=t.typedBufferStride,o=e.typedBuffer,u=e.typedBufferStride;let a=0,c=0;for(let t=0;t<r;t++)s[c]=o[a]>>n,s[c+1]=o[a+1]>>n,s[c+2]=o[a+2]>>n,a+=u,c+=i},transformMat3:u,transformMat3View:o,transformMat4:i,transformMat4View:s,translate:f},Symbol.toStringTag,{value:"Module"}))},50867(t,e,n){n.d(e,{a:()=>s,b:()=>c,l:()=>a,n:()=>o,t:()=>i}),n(44208);var r=n(72727);function s(t,e,n){i(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function i(t,e,n,s=4,i=s){const o=(0,r.k)(t.length,s,4),u=(0,r.k)(e.length,i,4),a=Math.min(o,u),c=n[0],l=n[1],f=n[2],h=n[3],p=n[4],d=n[5],y=n[6],m=n[7],M=n[8];let g=0,B=0;for(let n=0;n<a;n++){const n=e[g],r=e[g+1],o=e[g+2],u=e[g+3];t[B]=c*n+h*r+y*o,t[B+1]=l*n+p*r+m*o,t[B+2]=f*n+d*r+M*o,t[B+3]=u,g+=i,B+=s}}function o(t,e){const n=Math.min(t.count,e.count),r=t.typedBuffer,s=t.typedBufferStride,i=e.typedBuffer,o=e.typedBufferStride;for(let t=0;t<n;t++){const e=t*s,n=t*o,u=i[n],a=i[n+1],c=i[n+2],l=u*u+a*a+c*c;if(l>0){const t=1/Math.sqrt(l);r[e]=t*u,r[e+1]=t*a,r[e+2]=t*c}}}function u(t,e,n,r=4){const s=Math.min(t.length/r,e.count),i=e.typedBuffer,o=e.typedBufferStride;let u=0,a=0;for(let e=0;e<s;e++)t[a]=n*i[u],t[a+1]=n*i[u+1],t[a+2]=n*i[u+2],t[a+3]=n*i[u+3],u+=o,a+=r}function a(t,e,n,r){c(t.typedBuffer,e,n,r,t.typedBufferStride)}function c(t,e,n,r,s=4){const i=Math.min(t.length/s,e.count),o=e.typedBuffer,u=e.typedBufferStride;let a=0,c=0;const l=1/2.2;for(let e=0;e<i;e++)t[c]=r*(n*o[a])**l,t[c+1]=r*(n*o[a+1])**l,t[c+2]=r*(n*o[a+2])**l,t[c+3]=r*n*o[a+3],a+=u,c+=s}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:a,normalize:o,scale:u,scaleView:function(t,e,n){u(t.typedBuffer,e,n,t.typedBufferStride)},transformMat3:i,transformMat3View:s,transformMat4:function(t,e,n,s=4,i=s){const o=(0,r.k)(t.length,s,4),u=(0,r.k)(e.length,i,4),a=Math.min(o,u),c=n[0],l=n[1],f=n[2],h=n[3],p=n[4],d=n[5],y=n[6],m=n[7],M=n[8],g=n[9],B=n[10],x=n[11],T=n[12],b=n[13],E=n[14],v=n[15];let A=0,w=0;for(let n=0;n<a;n++){const n=e[A],r=e[A+1],o=e[A+2],u=e[A+3];t[w]=c*n+p*r+M*o+T*u,t[w+1]=l*n+d*r+g*o+b*u,t[w+2]=f*n+y*r+B*o+E*u,t[w+3]=h*n+m*r+x*o+v*u,A+=i,w+=s}},transformMat4View:function(t,e,n){const s=t.typedBuffer,i=t.typedBufferStride,o=e.typedBuffer,u=e.typedBufferStride,a=(0,r.k)(s.length,i,4),c=(0,r.k)(o.length,u,4),l=Math.min(a,c),f=n[0],h=n[1],p=n[2],d=n[3],y=n[4],m=n[5],M=n[6],g=n[7],B=n[8],x=n[9],T=n[10],b=n[11],E=n[12],v=n[13],A=n[14],w=n[15];for(let t=0;t<l;t++){const e=t*i,n=t*u,r=o[n],a=o[n+1],c=o[n+2],l=o[n+3];s[e]=f*r+y*a+B*c+E*l,s[e+1]=h*r+m*a+x*c+v*l,s[e+2]=p*r+M*a+T*c+A*l,s[e+3]=d*r+g*a+b*c+w*l}}},Symbol.toStringTag,{value:"Module"}))},69540(t,e,n){var r=n(5482),s=n(69622),i=(n(44208),n(4718)),o=(n(53966),n(97768)),u=n(88620),a=n(64108);const c=Symbol("ClonableMixin"),l=t=>{var e;const n=t;let s=class extends n{constructor(){super(...arguments),this[e]=!0}static{e=c}clone(t){const e=(0,u.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");const n=e.metadata,r=e.store,s={},a=new Map;for(const e in n){const o=n[e],u=r?.originOf(e),c=o.clonable;if(o.readOnly||!1===c||7!==u&&0!==u&&5!==u&&4!==u)continue;const l=this[e];let f=null;if("function"==typeof c)f=c(l,t);else if("reference"===c)f=l;else if(f=(0,i.TU)(l,t),null!=l&&null==f)continue;0===u?a.set(e,f):s[e]=f}const c=new(0,Object.getPrototypeOf(this).constructor)(s);if(a.size){const t=(0,u.oY)(c)?.store;if(t)for(const[e,n]of a)t.set(e,n,0)}return c}};return s=(0,r.Cg)([(0,a.$)("esri.core.Clonable")],s),s},f=l(s.A);n.d(e,["OU",0,l,"Pw",0,f])},95488(t,e,n){n.d(e,{I:()=>s});var r=n(11406);class s 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 s(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:()=>s,vt:()=>r});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:r,fromValues:function(t,e,n,r,s,i,o,u,a,c,l,f,h,p,d,y){return[t,e,n,r,s,i,o,u,a,c,l,f,h,p,d,y]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,i])},48163(t,e,n){function r(){return[0,0]}function s(t){return[t[0],t[1]]}function i(t,e){return[t,e]}function o(){return i(1,1)}function u(){return i(-1,-1)}function a(){return i(1,0)}function c(){return i(0,1)}n.d(e,{fA:()=>i,o8:()=>s,vt:()=>r});const l=o(),f=u(),h=a(),p=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:f,ONES:l,UNIT_X:h,UNIT_Y:p,ZEROS:[0,0],clone:s,create:r,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){const n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:i,negativeOnes:u,ones:o,unitX:a,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["IA",0,f,"Un",0,l])},51850(t,e,n){function r(){return[0,0,0]}function s(t){return[t[0],t[1],t[2]]}function i(t,e,n){return[t,e,n]}function o(t,e,n){return[t,e,n]}function u(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 a(){return[0,0,0]}function c(){return i(1,1,1)}function l(){return i(1,0,0)}function f(){return i(0,1,0)}function h(){return i(0,0,1)}n.d(e,{CN:()=>o,S:()=>c,Ul:()=>a,ci:()=>u,fA:()=>i,o8:()=>s,vt:()=>r});const p=[0,0,0],d=c(),y=l(),m=f(),M=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:y,UNIT_Y:m,UNIT_Z:M,ZEROS:p,clone:s,create:r,freeze:o,fromArray:u,fromValues:i,ones:c,unitX:l,unitY:f,unitZ:h,zeros:a},Symbol.toStringTag,{value:"Module"})),n.d(e,["Cb",0,M,"Cw",0,y,"JP",0,m,"Un",0,d,"uY",0,p])},91829(t,e,n){function r(){return[0,0,0,0]}function s(t,e,n,r){return[t,e,n,r]}function i(t,e,n,r){return[t,e,n,r]}function o(){return s(1,1,1,1)}function u(){return s(1,0,0,0)}function a(){return s(0,1,0,0)}function c(){return s(0,0,1,0)}function l(){return s(0,0,0,1)}n.d(e,{CN:()=>i,_Y:()=>l,fA:()=>s,vt:()=>r});const f=[0,0,0,0],h=o(),p=u(),d=a(),y=c(),m=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:m,UNIT_X:p,UNIT_Y:d,UNIT_Z:y,ZEROS:f,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:i,fromArray:function(t,e=[0,0,0,0]){const n=Math.min(4,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:s,ones:o,unitW:l,unitX:u,unitY:a,unitZ:c,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Un",0,h,"uY",0,f])},58083(t,e,n){n.d(e,{$0:()=>M,$h:()=>S,B8:()=>l,C:()=>i,D_:()=>u,N9:()=>B,O7:()=>w,Qw:()=>c,Tl:()=>h,X_:()=>E,e$:()=>d,eL:()=>y,hM:()=>g,hZ:()=>o,hs:()=>p,kN:()=>m,l:()=>v,lw:()=>f,mg:()=>a,o1:()=>A,sC:()=>b,t2:()=>O,t5:()=>R,tZ:()=>I,ut:()=>C,v3:()=>_});var r=n(51850),s=n(34304);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],t}function o(t,e,n,r,s,i,o,u,a,c,l,f,h,p,d,y,m){return t[0]=e,t[1]=n,t[2]=r,t[3]=s,t[4]=i,t[5]=o,t[6]=u,t[7]=a,t[8]=c,t[9]=l,t[10]=f,t[11]=h,t[12]=p,t[13]=d,t[14]=y,t[15]=m,t}function u(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 a(t,e){if(t===e){const n=e[1],r=e[2],s=e[3],i=e[6],o=e[7],u=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]=i,t[11]=e[14],t[12]=s,t[13]=o,t[14]=u}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 l(t,e)||u(t),t}function l(t,e){const n=e[0],r=e[1],s=e[2],i=e[3],o=e[4],u=e[5],a=e[6],c=e[7],l=e[8],f=e[9],h=e[10],p=e[11],d=e[12],y=e[13],m=e[14],M=e[15],g=n*u-r*o,B=n*a-s*o,x=n*c-i*o,T=r*a-s*u,b=r*c-i*u,E=s*c-i*a,v=l*y-f*d,A=l*m-h*d,w=l*M-p*d,S=f*m-h*y,_=f*M-p*y,R=h*M-p*m;let P=g*R-B*_+x*S+T*w-b*A+E*v;return P?(P=1/P,t[0]=(u*R-a*_+c*S)*P,t[1]=(s*_-r*R-i*S)*P,t[2]=(y*E-m*b+M*T)*P,t[3]=(h*b-f*E-p*T)*P,t[4]=(a*w-o*R-c*A)*P,t[5]=(n*R-s*w+i*A)*P,t[6]=(m*x-d*E-M*B)*P,t[7]=(l*E-h*x+p*B)*P,t[8]=(o*_-u*w+c*v)*P,t[9]=(r*w-n*_-i*v)*P,t[10]=(d*b-y*x+M*g)*P,t[11]=(f*x-l*b-p*g)*P,t[12]=(u*A-o*S-a*v)*P,t[13]=(n*S-r*A+s*v)*P,t[14]=(y*B-d*T-m*g)*P,t[15]=(l*T-f*B+h*g)*P,t):null}function f(t,e,n){const r=e[0],s=e[1],i=e[2],o=e[3],u=e[4],a=e[5],c=e[6],l=e[7],f=e[8],h=e[9],p=e[10],d=e[11],y=e[12],m=e[13],M=e[14],g=e[15];let B=n[0],x=n[1],T=n[2],b=n[3];return t[0]=B*r+x*u+T*f+b*y,t[1]=B*s+x*a+T*h+b*m,t[2]=B*i+x*c+T*p+b*M,t[3]=B*o+x*l+T*d+b*g,B=n[4],x=n[5],T=n[6],b=n[7],t[4]=B*r+x*u+T*f+b*y,t[5]=B*s+x*a+T*h+b*m,t[6]=B*i+x*c+T*p+b*M,t[7]=B*o+x*l+T*d+b*g,B=n[8],x=n[9],T=n[10],b=n[11],t[8]=B*r+x*u+T*f+b*y,t[9]=B*s+x*a+T*h+b*m,t[10]=B*i+x*c+T*p+b*M,t[11]=B*o+x*l+T*d+b*g,B=n[12],x=n[13],T=n[14],b=n[15],t[12]=B*r+x*u+T*f+b*y,t[13]=B*s+x*a+T*h+b*m,t[14]=B*i+x*c+T*p+b*M,t[15]=B*o+x*l+T*d+b*g,t}function h(t,e,n){const r=n[0],s=n[1],i=n[2];if(e===t)t[12]=e[0]*r+e[4]*s+e[8]*i+e[12],t[13]=e[1]*r+e[5]*s+e[9]*i+e[13],t[14]=e[2]*r+e[6]*s+e[10]*i+e[14],t[15]=e[3]*r+e[7]*s+e[11]*i+e[15];else{const n=e[0],o=e[1],u=e[2],a=e[3],c=e[4],l=e[5],f=e[6],h=e[7],p=e[8],d=e[9],y=e[10],m=e[11];t[0]=n,t[1]=o,t[2]=u,t[3]=a,t[4]=c,t[5]=l,t[6]=f,t[7]=h,t[8]=p,t[9]=d,t[10]=y,t[11]=m,t[12]=n*r+c*s+p*i+e[12],t[13]=o*r+l*s+d*i+e[13],t[14]=u*r+f*s+y*i+e[14],t[15]=a*r+h*s+m*i+e[15]}return t}function p(t,e,n){const r=n[0],s=n[1],i=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]*s,t[5]=e[5]*s,t[6]=e[6]*s,t[7]=e[7]*s,t[8]=e[8]*i,t[9]=e[9]*i,t[10]=e[10]*i,t[11]=e[11]*i,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function d(t,e,n,r){let o=r[0],u=r[1],a=r[2],c=Math.sqrt(o*o+u*u+a*a);if(c<=(0,s.FD)())return void i(t,e);c=1/c,o*=c,u*=c,a*=c;const l=Math.sin(n),f=Math.cos(n),h=1-f,p=e[0],d=e[1],y=e[2],m=e[3],M=e[4],g=e[5],B=e[6],x=e[7],T=e[8],b=e[9],E=e[10],v=e[11],A=o*o*h+f,w=u*o*h+a*l,S=a*o*h-u*l,_=o*u*h-a*l,R=u*u*h+f,P=a*u*h+o*l,O=o*a*h+u*l,C=u*a*h-o*l,I=a*a*h+f;t[0]=p*A+M*w+T*S,t[1]=d*A+g*w+b*S,t[2]=y*A+B*w+E*S,t[3]=m*A+x*w+v*S,t[4]=p*_+M*R+T*P,t[5]=d*_+g*R+b*P,t[6]=y*_+B*R+E*P,t[7]=m*_+x*R+v*P,t[8]=p*O+M*C+T*I,t[9]=d*O+g*C+b*I,t[10]=y*O+B*C+E*I,t[11]=m*O+x*C+v*I,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15])}function y(t,e,n){const r=Math.sin(n),s=Math.cos(n),i=e[4],o=e[5],u=e[6],a=e[7],c=e[8],l=e[9],f=e[10],h=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]=i*s+c*r,t[5]=o*s+l*r,t[6]=u*s+f*r,t[7]=a*s+h*r,t[8]=c*s-i*r,t[9]=l*s-o*r,t[10]=f*s-u*r,t[11]=h*s-a*r,t}function m(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 M(t,e,n){if(0===e)return u(t);let r=n[0],i=n[1],o=n[2],a=Math.sqrt(r*r+i*i+o*o);if(a<=(0,s.FD)())return null;a=1/a,r*=a,i*=a,o*=a;const c=Math.sin(e),l=Math.cos(e),f=1-l;return t[0]=r*r*f+l,t[1]=i*r*f+o*c,t[2]=o*r*f-i*c,t[3]=0,t[4]=r*i*f-o*c,t[5]=i*i*f+l,t[6]=o*i*f+r*c,t[7]=0,t[8]=r*o*f+i*c,t[9]=i*o*f-r*c,t[10]=o*o*f+l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function g(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 B(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 x(t,e,n){const r=e[0],s=e[1],i=e[2],o=e[3],u=r+r,a=s+s,c=i+i,l=r*u,f=r*a,h=r*c,p=s*a,d=s*c,y=i*c,m=o*u,M=o*a,g=o*c;return t[0]=1-(p+y),t[1]=f+g,t[2]=h-M,t[3]=0,t[4]=f-g,t[5]=1-(l+y),t[6]=d+m,t[7]=0,t[8]=h+M,t[9]=d-m,t[10]=1-(l+p),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const T=(0,r.vt)();function b(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function E(t,e){const n=e[0],r=e[1],s=e[2],i=e[4],o=e[5],u=e[6],a=e[8],c=e[9],l=e[10];return t[0]=Math.sqrt(n*n+r*r+s*s),t[1]=Math.sqrt(i*i+o*o+u*u),t[2]=Math.sqrt(a*a+c*c+l*l),t}function v(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 A(t,e,n,r){const s=e[0],i=e[1],o=e[2],u=e[3],a=s+s,c=i+i,l=o+o,f=s*a,h=s*c,p=s*l,d=i*c,y=i*l,m=o*l,M=u*a,g=u*c,B=u*l,x=r[0],T=r[1],b=r[2];return t[0]=(1-(d+m))*x,t[1]=(h+B)*x,t[2]=(p-g)*x,t[3]=0,t[4]=(h-B)*T,t[5]=(1-(f+m))*T,t[6]=(y+M)*T,t[7]=0,t[8]=(p+g)*b,t[9]=(y-M)*b,t[10]=(1-(f+d))*b,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,s){const i=e[0],o=e[1],u=e[2],a=e[3],c=i+i,l=o+o,f=u+u,h=i*c,p=i*l,d=i*f,y=o*l,m=o*f,M=u*f,g=a*c,B=a*l,x=a*f,T=r[0],b=r[1],E=r[2],v=s[0],A=s[1],w=s[2],S=(1-(y+M))*T,_=(p+x)*T,R=(d-B)*T,P=(p-x)*b,O=(1-(h+M))*b,C=(m+g)*b,I=(d+B)*E,j=(m-g)*E,Y=(1-(h+y))*E;return t[0]=S,t[1]=_,t[2]=R,t[3]=0,t[4]=P,t[5]=O,t[6]=C,t[7]=0,t[8]=I,t[9]=j,t[10]=Y,t[11]=0,t[12]=n[0]+v-(S*v+P*A+I*w),t[13]=n[1]+A-(_*v+O*A+j*w),t[14]=n[2]+w-(R*v+C*A+Y*w),t[15]=1,t}function S(t,e,n,r,s,i,o){const u=1/(n-e),a=1/(s-r),c=1/(i-o);return t[0]=2*i*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*i*a,t[6]=0,t[7]=0,t[8]=(n+e)*u,t[9]=(s+r)*a,t[10]=(o+i)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*i*2*c,t[15]=0,t}function _(t,e,n,r,s,i,o){const u=1/(e-n),a=1/(r-s),c=1/(i-o);return t[0]=-2*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*u,t[13]=(s+r)*a,t[14]=(o+i)*c,t[15]=1,t}function R(t,e,n,r){const i=e[0],o=e[1],a=e[2];let c=i-n[0],l=o-n[1],f=a-n[2];const h=(0,s.FD)();if(Math.abs(c)<h&&Math.abs(l)<h&&Math.abs(f)<h)return void u(t);let p=1/Math.sqrt(c*c+l*l+f*f);c*=p,l*=p,f*=p;const d=r[0],y=r[1],m=r[2];let M=y*f-m*l,g=m*c-d*f,B=d*l-y*c;p=Math.sqrt(M*M+g*g+B*B),p?(p=1/p,M*=p,g*=p,B*=p):(M=0,g=0,B=0);let x=l*B-f*g,T=f*M-c*B,b=c*g-l*M;p=Math.sqrt(x*x+T*T+b*b),p?(p=1/p,x*=p,T*=p,b*=p):(x=0,T=0,b=0),t[0]=M,t[1]=x,t[2]=c,t[3]=0,t[4]=g,t[5]=T,t[6]=l,t[7]=0,t[8]=B,t[9]=b,t[10]=f,t[11]=0,t[12]=-(M*i+g*o+B*a),t[13]=-(x*i+T*o+b*a),t[14]=-(c*i+l*o+f*a),t[15]=1}function P(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 O(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 C(t){const e=(0,s.FD)(),n=t[0],r=t[1],i=t[2],o=t[4],u=t[5],a=t[6],c=t[8],l=t[9],f=t[10];return Math.abs(1-(n*n+o*o+c*c))<=e&&Math.abs(1-(r*r+u*u+l*l))<=e&&Math.abs(1-(i*i+a*a+f*f))<=e}function I(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 j=f,Y=P;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],s=e[2],i=e[3],o=e[4],u=e[5],a=e[6],c=e[7],l=e[8],f=e[9],h=e[10],p=e[11],d=e[12],y=e[13],m=e[14],M=e[15];return t[0]=u*(h*M-p*m)-f*(a*M-c*m)+y*(a*p-c*h),t[1]=-(r*(h*M-p*m)-f*(s*M-i*m)+y*(s*p-i*h)),t[2]=r*(a*M-c*m)-u*(s*M-i*m)+y*(s*c-i*a),t[3]=-(r*(a*p-c*h)-u*(s*p-i*h)+f*(s*c-i*a)),t[4]=-(o*(h*M-p*m)-l*(a*M-c*m)+d*(a*p-c*h)),t[5]=n*(h*M-p*m)-l*(s*M-i*m)+d*(s*p-i*h),t[6]=-(n*(a*M-c*m)-o*(s*M-i*m)+d*(s*c-i*a)),t[7]=n*(a*p-c*h)-o*(s*p-i*h)+l*(s*c-i*a),t[8]=o*(f*M-p*y)-l*(u*M-c*y)+d*(u*p-c*f),t[9]=-(n*(f*M-p*y)-l*(r*M-i*y)+d*(r*p-i*f)),t[10]=n*(u*M-c*y)-o*(r*M-i*y)+d*(r*c-i*u),t[11]=-(n*(u*p-c*f)-o*(r*p-i*f)+l*(r*c-i*u)),t[12]=-(o*(f*m-h*y)-l*(u*m-a*y)+d*(u*h-a*f)),t[13]=n*(f*m-h*y)-l*(r*m-s*y)+d*(r*h-s*f),t[14]=-(n*(u*m-a*y)-o*(r*m-s*y)+d*(r*a-s*u)),t[15]=n*(u*h-a*f)-o*(r*h-s*f)+l*(r*a-s*u),t},copy:i,determinant:function(t){const e=t[0],n=t[1],r=t[2],s=t[3],i=t[4],o=t[5],u=t[6],a=t[7],c=t[8],l=t[9],f=t[10],h=t[11],p=t[12],d=t[13],y=t[14],m=t[15];return(e*o-n*i)*(f*m-h*y)-(e*u-r*i)*(l*m-h*d)+(e*a-s*i)*(l*y-f*d)+(n*u-r*o)*(c*m-h*p)-(n*a-s*o)*(c*y-f*p)+(r*a-s*u)*(c*d-l*p)},equals:function(t,e){if(t===e)return!0;const n=t[0],r=t[1],i=t[2],o=t[3],u=t[4],a=t[5],c=t[6],l=t[7],f=t[8],h=t[9],p=t[10],d=t[11],y=t[12],m=t[13],M=t[14],g=t[15],B=e[0],x=e[1],T=e[2],b=e[3],E=e[4],v=e[5],A=e[6],w=e[7],S=e[8],_=e[9],R=e[10],P=e[11],O=e[12],C=e[13],I=e[14],j=e[15],Y=(0,s.FD)();return Math.abs(n-B)<=Y*Math.max(1,Math.abs(n),Math.abs(B))&&Math.abs(r-x)<=Y*Math.max(1,Math.abs(r),Math.abs(x))&&Math.abs(i-T)<=Y*Math.max(1,Math.abs(i),Math.abs(T))&&Math.abs(o-b)<=Y*Math.max(1,Math.abs(o),Math.abs(b))&&Math.abs(u-E)<=Y*Math.max(1,Math.abs(u),Math.abs(E))&&Math.abs(a-v)<=Y*Math.max(1,Math.abs(a),Math.abs(v))&&Math.abs(c-A)<=Y*Math.max(1,Math.abs(c),Math.abs(A))&&Math.abs(l-w)<=Y*Math.max(1,Math.abs(l),Math.abs(w))&&Math.abs(f-S)<=Y*Math.max(1,Math.abs(f),Math.abs(S))&&Math.abs(h-_)<=Y*Math.max(1,Math.abs(h),Math.abs(_))&&Math.abs(p-R)<=Y*Math.max(1,Math.abs(p),Math.abs(R))&&Math.abs(d-P)<=Y*Math.max(1,Math.abs(d),Math.abs(P))&&Math.abs(y-O)<=Y*Math.max(1,Math.abs(y),Math.abs(O))&&Math.abs(m-C)<=Y*Math.max(1,Math.abs(m),Math.abs(C))&&Math.abs(M-I)<=Y*Math.max(1,Math.abs(M),Math.abs(I))&&Math.abs(g-j)<=Y*Math.max(1,Math.abs(g),Math.abs(j))},exactEquals:O,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],s=e[2],i=e[3],o=n+n,u=r+r,a=s+s,c=n*o,l=r*o,f=r*u,h=s*o,p=s*u,d=s*a,y=i*o,m=i*u,M=i*a;return t[0]=1-f-d,t[1]=l+M,t[2]=h-m,t[3]=0,t[4]=l-M,t[5]=1-c-d,t[6]=p+y,t[7]=0,t[8]=h+m,t[9]=p-y,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){const n=T,r=-e[0],s=-e[1],i=-e[2],o=e[3],u=e[4],a=e[5],c=e[6],l=e[7],f=r*r+s*s+i*i+o*o;return f>0?(n[0]=2*(u*o+l*r+a*i-c*s)/f,n[1]=2*(a*o+l*s+c*r-u*i)/f,n[2]=2*(c*o+l*i+u*s-a*r)/f):(n[0]=2*(u*o+l*r+a*i-c*s),n[1]=2*(a*o+l*s+c*r-u*i),n[2]=2*(c*o+l*i+u*s-a*r)),x(t,e,n),t},fromRotation:M,fromRotationTranslation:x,fromRotationTranslationScale:A,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:m,fromXRotation:g,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:B,frustum:S,getRotation:v,getScale:E,getTranslation:b,hasIdentityRotation:I,identity:u,invert:l,invertOrIdentity:c,isOrthoNormal:C,lookAt:R,mul:j,multiply:f,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:_,perspective:function(t,e,n,r,s){const i=1/Math.tan(e/2);let o;return t[0]=i/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,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!=s&&s!==1/0?(o=1/(r-s),t[10]=(s+r)*o,t[14]=2*s*r*o):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){const s=Math.tan(e.upDegrees*Math.PI/180),i=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),u=Math.tan(e.rightDegrees*Math.PI/180),a=2/(o+u),c=2/(s+i);return t[0]=a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(o-u)*a*.5,t[9]=(s-i)*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:y,rotateY:function(t,e,n){const r=Math.sin(n),s=Math.cos(n),i=e[0],o=e[1],u=e[2],a=e[3],c=e[8],l=e[9],f=e[10],h=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]=i*s-c*r,t[1]=o*s-l*r,t[2]=u*s-f*r,t[3]=a*s-h*r,t[8]=i*r+c*s,t[9]=o*r+l*s,t[10]=u*r+f*s,t[11]=a*r+h*s,t},rotateZ:function(t,e,n){const r=Math.sin(n),s=Math.cos(n),i=e[0],o=e[1],u=e[2],a=e[3],c=e[4],l=e[5],f=e[6],h=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]=i*s+c*r,t[1]=o*s+l*r,t[2]=u*s+f*r,t[3]=a*s+h*r,t[4]=c*s-i*r,t[5]=l*s-o*r,t[6]=f*s-u*r,t[7]=h*s-a*r,t},scale:p,set:o,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:Y,subtract:P,targetTo:function(t,e,n,r){const s=e[0],i=e[1],o=e[2],u=r[0],a=r[1],c=r[2];let l=s-n[0],f=i-n[1],h=o-n[2],p=l*l+f*f+h*h;p>0&&(p=1/Math.sqrt(p),l*=p,f*=p,h*=p);let d=a*h-c*f,y=c*l-u*h,m=u*f-a*l;return p=d*d+y*y+m*m,p>0&&(p=1/Math.sqrt(p),d*=p,y*=p,m*=p),t[0]=d,t[1]=y,t[2]=m,t[3]=0,t[4]=f*m-h*y,t[5]=h*d-l*m,t[6]=l*y-f*d,t[7]=0,t[8]=l,t[9]=f,t[10]=h,t[11]=0,t[12]=s,t[13]=i,t[14]=o,t[15]=1,t},translate:h,transpose:a},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>A,Bw:()=>i,C:()=>o,Cc:()=>w,DI:()=>b,Io:()=>g,Ln:()=>M,Om:()=>v,Qr:()=>f,Re:()=>c,S8:()=>E,T9:()=>y,WQ:()=>a,Z0:()=>S,_S:()=>p,aI:()=>Y,ei:()=>_,fw:()=>P,g7:()=>O,gL:()=>R,hG:()=>B,hZ:()=>u,hs:()=>m,jk:()=>d,lw:()=>l,m3:()=>x,oW:()=>q,t2:()=>j,tn:()=>h,ze:()=>T});var r=n(51850),s=n(34304);function i(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function u(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function a(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 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,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function h(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function p(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 y(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 m(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function M(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 g(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2];return Math.sqrt(n*n+r*r+s*s)}function B(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2];return n*n+r*r+s*s}function x(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function T(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function b(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function E(t,e){const n=e[0],r=e[1],s=e[2];let i=n*n+r*r+s*s;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function v(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function A(t,e,n){const r=e[0],s=e[1],i=e[2],o=n[0],u=n[1],a=n[2];return t[0]=s*a-i*u,t[1]=i*o-r*a,t[2]=r*u-s*o,t}function w(t,e,n,r){const s=e[0],i=e[1],o=e[2];return t[0]=s+r*(n[0]-s),t[1]=i+r*(n[1]-i),t[2]=o+r*(n[2]-o),t}function S(t,e,n){const r=e[0],s=e[1],i=e[2];return t[0]=n[0]*r+n[4]*s+n[8]*i+n[12],t[1]=n[1]*r+n[5]*s+n[9]*i+n[13],t[2]=n[2]*r+n[6]*s+n[10]*i+n[14],t}function _(t,e,n){const r=e[0],s=e[1],i=e[2];return t[0]=r*n[0]+s*n[3]+i*n[6],t[1]=r*n[1]+s*n[4]+i*n[7],t[2]=r*n[2]+s*n[5]+i*n[8],t}function R(t,e,n){return P(t,e,n[0],n[1],n[2],n[3])}function P(t,e,n,r,s,i){const o=e[0],u=e[1],a=e[2],c=r*a-s*u,l=s*o-n*a,f=n*u-r*o,h=r*f-s*l,p=s*c-n*f,d=n*l-r*c,y=2*i;return t[0]=o+c*y+2*h,t[1]=u+l*y+2*p,t[2]=a+f*y+2*d,t}function O(t,e){E(C,t),E(I,e);const n=v(C,I);return n>1?0:n<-1?Math.PI:Math.acos(n)}const C=(0,r.vt)(),I=(0,r.vt)();function j(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function Y(t,e){if(t===e)return!0;const n=t[0],r=t[1],i=t[2],o=e[0],u=e[1],a=e[2],c=(0,s.FD)();return Math.abs(n-o)<=c*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-u)<=c*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(i-a)<=c*Math.max(1,Math.abs(i),Math.abs(a))}function q(t,e,n){const r=n[0]-e[0],s=n[1]-e[1],i=n[2]-e[2];let o=r*r+s*s+i*i;return o>0?(o=1/Math.sqrt(o),t[0]=r*o,t[1]=s*o,t[2]=i*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const N=c,X=l,k=f,L=g,Z=B,F=i,z=x;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:a,angle:O,bezier:function(t,e,n,r,s,i){const o=1-i,u=o*o,a=i*i,c=u*o,l=3*i*u,f=3*a*o,h=a*i;return t[0]=e[0]*c+n[0]*l+r[0]*f+s[0]*h,t[1]=e[1]*c+n[1]*l+r[1]*f+s[1]*h,t[2]=e[2]*c+n[2]*l+r[2]*f+s[2]*h,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,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:o,cross:A,crossAndNormalize:function(t,e,n){const r=e[0],s=e[1],i=e[2],o=n[0],u=n[1],a=n[2],c=s*a-i*u,l=i*o-r*a,f=r*u-s*o,h=Math.sqrt(c*c+l*l+f*f);return t[0]=c/h,t[1]=l/h,t[2]=f/h,t},direction:q,dist:L,distance:g,div:k,divide:f,dot:v,equals:Y,exactEquals:j,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,s,i){const o=i*i,u=o*(2*i-3)+1,a=o*(i-2)+i,c=o*(i-1),l=o*(3-2*i);return t[0]=e[0]*u+n[0]*a+r[0]*c+s[0]*l,t[1]=e[1]*u+n[1]*a+r[1]*c+s[1]*l,t[2]=e[2]*u+n[2]*a+r[2]*c+s[2]*l,t},inverse:b,len:F,length:i,lerp:w,max:y,min:d,mul:X,multiply:l,negate:T,normalize:E,random:function(t,e=1){const n=s.Ov,r=2*n()*Math.PI,i=2*n()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(r)*o,t[1]=Math.sin(r)*o,t[2]=i*e,t},rotateX:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[0],i[1]=s[1]*Math.cos(r)-s[2]*Math.sin(r),i[2]=s[1]*Math.sin(r)+s[2]*Math.cos(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateY:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[2]*Math.sin(r)+s[0]*Math.cos(r),i[1]=s[1],i[2]=s[2]*Math.cos(r)-s[0]*Math.sin(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateZ:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[0]*Math.cos(r)-s[1]*Math.sin(r),i[1]=s[0]*Math.sin(r)+s[1]*Math.cos(r),i[2]=s[2],t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[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:m,scaleAndAdd:M,set:u,sign:p,sqrDist:Z,sqrLen:z,squaredDistance:B,squaredLength:x,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:N,subtract:c,transformMat3:_,transformMat4:S,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:R,transformQuatValues:P},Symbol.toStringTag,{value:"Module"})),n.d(e,["Il",0,F,"jb",0,N,"lo",0,Z,"uE",0,z,"xg",0,L])},78955(t,e,n){n.d(e,{Bw:()=>m,C:()=>s,Cc:()=>x,LI:()=>h,Om:()=>B,S8:()=>g,T9:()=>f,WQ:()=>o,Z0:()=>T,aI:()=>E,hG:()=>y,hZ:()=>i,hs:()=>p,jk:()=>l,m3:()=>M,t2:()=>b});var r=n(34304);function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function i(t,e,n,r,s){return t[0]=e,t[1]=n,t[2]=r,t[3]=s,t}function o(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}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[3]=e[3]-n[3],t}function a(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}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[3]=e[3]/n[3],t}function l(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[3]=Math.min(e[3],n[3]),t}function f(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[3]=Math.max(e[3],n[3]),t}function h(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t}function p(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}function d(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2],i=e[3]-t[3];return Math.sqrt(n*n+r*r+s*s+i*i)}function y(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2],i=e[3]-t[3];return n*n+r*r+s*s+i*i}function m(t){const e=t[0],n=t[1],r=t[2],s=t[3];return Math.sqrt(e*e+n*n+r*r+s*s)}function M(t){const e=t[0],n=t[1],r=t[2],s=t[3];return e*e+n*n+r*r+s*s}function g(t,e){const n=e[0],r=e[1],s=e[2],i=e[3];let o=n*n+r*r+s*s+i*i;return o>0&&(o=1/Math.sqrt(o),t[0]=n*o,t[1]=r*o,t[2]=s*o,t[3]=i*o),t}function B(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function x(t,e,n,r){const s=e[0],i=e[1],o=e[2],u=e[3];return t[0]=s+r*(n[0]-s),t[1]=i+r*(n[1]-i),t[2]=o+r*(n[2]-o),t[3]=u+r*(n[3]-u),t}function T(t,e,n){const r=e[0],s=e[1],i=e[2],o=e[3];return t[0]=n[0]*r+n[4]*s+n[8]*i+n[12]*o,t[1]=n[1]*r+n[5]*s+n[9]*i+n[13]*o,t[2]=n[2]*r+n[6]*s+n[10]*i+n[14]*o,t[3]=n[3]*r+n[7]*s+n[11]*i+n[15]*o,t}function b(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function E(t,e){const n=t[0],s=t[1],i=t[2],o=t[3],u=e[0],a=e[1],c=e[2],l=e[3],f=(0,r.FD)();return Math.abs(n-u)<=f*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(s-a)<=f*Math.max(1,Math.abs(s),Math.abs(a))&&Math.abs(i-c)<=f*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(o-l)<=f*Math.max(1,Math.abs(o),Math.abs(l))}const v=u,A=a,w=c,S=d,_=y,R=m,P=M;Object.freeze(Object.defineProperty({__proto__:null,add:o,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},copy:s,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:S,distance:d,div:w,divide:c,dot:B,equals:E,exactEquals:b,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},len:R,length:m,lerp:x,max:f,min:l,mul:A,multiply:a,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:g,random:function(t,e=1){const n=r.Ov;let s,i,o,u,a,c;do{s=2*n()-1,i=2*n()-1,a=s*s+i*i}while(a>=1);do{o=2*n()-1,u=2*n()-1,c=o*o+u*u}while(c>=1);const l=Math.sqrt((1-a)/c);return t[0]=e*s,t[1]=e*i,t[2]=e*o*l,t[3]=e*u*l,t},round:h,scale:p,scaleAndAdd: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},set:i,sqrDist:_,sqrLen:P,squaredDistance:y,squaredLength:M,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:v,subtract:u,transformMat4:T,transformQuat:function(t,e,n){const r=e[0],s=e[1],i=e[2],o=n[0],u=n[1],a=n[2],c=n[3],l=c*r+u*i-a*s,f=c*s+a*r-o*i,h=c*i+o*s-u*r,p=-o*r-u*s-a*i;return t[0]=l*c+p*-o+f*-a-h*-u,t[1]=f*c+p*-u+h*-o-l*-a,t[2]=h*c+p*-a+l*-u-f*-o,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},75503(t,e,n){n.d(e,{wq:()=>u});var r=n(4576),s=n(21818),i=(n(44208),n(15142)),o=n(11006);class u{constructor(t=9,e){this._compareMinX=h,this._compareMinY=p,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),T.prune(),b.prune(),E.prune(),v.prune()}all(t){a(this._data,t)}search(t,e){let n=this._data;const r=this._toBBox;if(B(t,n))for(T.clear();n;){for(let s=0,i=n.children.length;s<i;s++){const i=n.children[s],o=n.leaf?r(i):i;B(t,o)&&(n.leaf?e(i):g(t,o)?a(i,e):T.push(i))}n=T.pop()}}collides(t){let e=this._data;const n=this._toBBox;if(!B(t,e))return!1;for(T.clear();e;){for(let r=0,s=e.children.length;r<s;r++){const s=e.children[r],i=e.leaf?n(s):s;if(B(t,i)){if(e.leaf||g(t,i))return!0;T.push(s)}}e=T.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,n=t.length;e<n;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new S([]),this}remove(t){if(!t)return this;let e,n=this._data,i=null,o=0,u=!1;const a=this._toBBox(t);for(E.clear(),v.clear();n||E.length>0;){if(n||(n=E.pop(),i=E.data[E.length-1],o=v.pop()??0,u=!0),n.leaf&&(e=(0,r.qh)(n.children,(0,s.z)(t),n.children.length,n.indexHint),-1!==e))return n.children.splice(e,1),E.push(n),this._condense(E),this;u||n.leaf||!g(n,a)?i?(o++,n=i.children[o],u=!1):n=null:(E.push(n),v.push(o),o=0,i=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,e,n,r){const s=n-e+1;let i=this._maxEntries;if(s<=i){const r=new S(t.slice(e,n+1));return c(r,this._toBBox),r}r||(r=Math.ceil(Math.log(s)/Math.log(i)),i=Math.ceil(s/i**(r-1)));const o=new _([]);o.height=r;const u=Math.ceil(s/i),a=u*Math.ceil(Math.sqrt(i));x(t,e,n,a,this._compareMinX);for(let s=e;s<=n;s+=a){const e=Math.min(s+a-1,n);x(t,s,e,u,this._compareMinY);for(let n=s;n<=e;n+=u){const s=Math.min(n+u-1,e);o.children.push(this._build(t,n,s,r-1))}}return c(o,this._toBBox),o}_insert(t,e,n){const r=this._toBBox,s=n?t:r(t);E.clear();const i=function(t,e,n,r){for(;r.push(e),!0!==e.leaf&&r.length-1!==n;){let n,r=1/0,s=1/0;for(let i=0,o=e.children.length;i<o;i++){const o=e.children[i],u=d(o),a=m(t,o)-u;a<s?(s=a,r=u<r?u:r,n=o):a===s&&u<r&&(r=u,n=o)}e=n||e.children[0]}return e}(s,this._data,e,E);for(i.children.push(t),f(i,s);e>=0&&E.data[e].children.length>this._maxEntries;)this._split(E,e),e--;!function(t,e,n){for(let r=n;r>=0;r--)f(e.data[r],t)}(s,E,e)}_split(t,e){const n=t.data[e],r=n.children.length,s=this._minEntries;this._chooseSplitAxis(n,s,r);const i=this._chooseSplitIndex(n,s,r);if(!i)return;const o=n.children.splice(i,n.children.length-i),u=n.leaf?new S(o):new _(o);u.height=n.height,c(n,this._toBBox),c(u,this._toBBox),e?t.data[e-1].children.push(u):this._splitRoot(n,u)}_splitRoot(t,e){this._data=new _([t,e]),this._data.height=t.height+1,c(this._data,this._toBBox)}_chooseSplitIndex(t,e,n){let r,s,i;r=s=1/0;for(let o=e;o<=n-e;o++){const e=l(t,0,o,this._toBBox),u=l(t,o,n,this._toBBox),a=M(e,u),c=d(e)+d(u);a<r?(r=a,i=o,s=c<s?c:s):a===r&&c<s&&(s=c,i=o)}return i}_chooseSplitAxis(t,e,n){const r=t.leaf?this._compareMinX:h,s=t.leaf?this._compareMinY:p;this._allDistMargin(t,e,n,r)<this._allDistMargin(t,e,n,s)&&t.children.sort(r)}_allDistMargin(t,e,n,r){t.children.sort(r);const s=this._toBBox,i=l(t,0,e,s),o=l(t,n-e,n,s);let u=y(i)+y(o);for(let r=e;r<n-e;r++){const e=t.children[r];f(i,t.leaf?s(e):e),u+=y(i)}for(let r=n-e-1;r>=e;r--){const e=t.children[r];f(o,t.leaf?s(e):e),u+=y(o)}return u}_condense(t){for(let e=t.length-1;e>=0;e--){const n=t.data[e];if(0===n.children.length)if(e>0){const s=t.data[e-1],i=s.children;i.splice((0,r.qh)(i,n,i.length,s.indexHint),1)}else this.clear();else c(n,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function a(t,e){let n=t;for(b.clear();n;){if(!0===n.leaf)for(const t of n.children)e((0,s.z)(t));else b.pushArray(n.children);n=b.pop()??null}}function c(t,e){l(t,0,t.children.length,e,t)}function l(t,e,n,r,s){s||(s=new S([])),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(let i,o=e;o<n;o++)i=t.children[o],f(s,t.leaf?r(i):i);return s}function f(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function h(t,e){return t.minX-e.minX}function p(t,e){return t.minY-e.minY}function d(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function y(t){return t.maxX-t.minX+(t.maxY-t.minY)}function m(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function M(t,e){const n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY),s=Math.min(t.maxX,e.maxX),i=Math.min(t.maxY,e.maxY);return Math.max(0,s-n)*Math.max(0,i-r)}function g(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function B(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function x(t,e,n,r,s){const i=[e,n];for(;i.length;){const e=i.pop(),n=i.pop();if(e-n<=r)continue;const u=n+Math.ceil((e-n)/r/2)*r;(0,o.q)(t,u,n,e,s),i.push(n,u,u,e)}}const T=new i.A,b=new i.A,E=new i.A,v=new i.A({deallocator:void 0});class A{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class w extends A{constructor(){super(...arguments),this.height=1,this.indexHint=new r.vW}}class S extends w{constructor(t){super(),this.children=t,this.leaf=!0}}class _ extends w{constructor(t){super(),this.children=t,this.leaf=!1}}},48526(t,e,n){n.d(e,{A:()=>m});var r,s=n(5482),i=n(4576),o=n(4718),u=n(91429),a=n(5443),c=n(91075),l=n(86738),f=n(16930),h=n(90634),p=n(47610),d=n(56993),y=n(43937);let m=r=class extends c.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:n,hasZ:r,spatialReference:s}=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 s??=f.A.WGS84,{...t,hasM:n,hasZ:r,points:e,spatialReference:s}}(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,h.ge)(this);return t?new a.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,o.o8)(this.points)}clone(){const{points:t,spatialReference:e,hasM:n,hasZ:s}=this;return new r({points:(0,o.o8)(t),spatialReference:e.clone(),hasM:n,hasZ:s})}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,i.aI)(this.points,t.points,p.v6)}addPoint(t){return(0,d.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const 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 l.A(n)}removePoint(t){if(!this._validateInputs(t))return null;const e=new l.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,s.Cg)([(0,u.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,s.Cg)([(0,u.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],m.prototype,"points",void 0),(0,s.Cg)([(0,y.K)("points")],m.prototype,"writePoints",null),m=r=(0,s.Cg)([(0,u.$K)("esri.geometry.Multipoint")],m),m.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,n){n.d(e,{A:()=>d});var r,s=n(5482),i=n(4718),o=n(91429),u=n(5443),a=n(91075),c=n(86738),l=n(16930),f=n(90634),h=n(56993),p=n(43937);let d=r=class extends a.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:n,hasZ:r,spatialReference:s}=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 s??=l.A.WGS84,{...t,hasM:n,hasZ:r,paths:e,spatialReference:s}}(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,i.o8)(t)}get extent(){const t=(0,f.Z3)(this),{spatialReference:e}=this;return t?new u.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,i.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,i.o8)(this.paths),t.curvePaths=(0,i.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,s=this.hasM;return r&&!s?new c.A(n[0],n[1],n[2],void 0,this.spatialReference):s&&!r?new c.A(n[0],n[1],void 0,n[2],this.spatialReference):r&&s?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,h.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,h.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,s.Cg)([(0,o.MZ)({readOnly:!0})],d.prototype,"cache",null),(0,s.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],d.prototype,"curvePaths",void 0),(0,s.Cg)([(0,p.K)("curvePaths")],d.prototype,"writeCurvePaths",null),(0,s.Cg)([(0,o.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,s.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],d.prototype,"paths",void 0),(0,s.Cg)([(0,p.K)("paths")],d.prototype,"writePaths",null),d=r=(0,s.Cg)([(0,o.$K)("esri.geometry.Polyline")],d),d.prototype.toJSON.isDefaultToJSON=!0},159(t,e,n){n.d(e,{A:()=>c});var r,s=n(5482),i=n(69540),o=n(25482),u=n(91429),a=n(99157);let c=r=class extends((0,i.OU)(o.o)){constructor(t){super(t),this.steps=[]}getInverse(){const t=new r;for(let e=this.steps.length-1;e>=0;e--){const n=this.steps[e];t.steps.push(n.getInverse())}return t}};(0,s.Cg)([(0,u.MZ)({type:[a.A],nonNullable:!0,json:{name:"geoTransforms"}})],c.prototype,"steps",void 0),c=r=(0,s.Cg)([(0,u.$K)("esri.geometry.operators.support.GeographicTransformation")],c)},99157(t,e,n){n.d(e,{A:()=>a});var r,s=n(5482),i=n(69540),o=n(25482),u=n(91429);let a=r=class extends((0,i.OU)(o.o)){constructor(t){super(t),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,s.Cg)([(0,u.MZ)({json:{name:"transformForward",read:t=>!t,write:(t,e,n)=>{e[n]=!t}}})],a.prototype,"isInverse",void 0),(0,s.Cg)([(0,u.MZ)({json:{write:!0}})],a.prototype,"wkt",void 0),(0,s.Cg)([(0,u.MZ)({json:{write:!0}})],a.prototype,"wkid",void 0),a=r=(0,s.Cg)([(0,u.$K)("esri.geometry.operators.support.GeographicTransformationStep")],a)},48353(t,e,n){n.d(e,{l:()=>c});var r=n(34727),s=n(58083),i=n(51850);function o(t,e,n){const r=Math.sin(t),s=Math.cos(t),i=Math.sin(e),o=Math.cos(e),u=n;return u[0]=-r,u[4]=-i*s,u[8]=o*s,u[12]=0,u[1]=s,u[5]=-i*r,u[9]=o*r,u[13]=0,u[2]=0,u[6]=o,u[10]=i,u[14]=0,u[3]=0,u[7]=0,u[11]=0,u[15]=1,u}var u=n(49208),a=n(21325);function c(t,e,n,r){const i=(0,u.Tp)(t,r);if(null==i)return!1;const c=i.source.spatialReferenceId,d=i.dest.spatialReferenceId;if(c===d&&!l(d)&&(0!==c||(0,a.aI)(t,r)))return(0,s.kN)(n,e),!0;if(l(d)){const t=u.w5[c][10],r=u.w5[10][d];return null!=t&&null!=r&&(t(e,0,h,0),r(h,0,p,0),o(f*h[0],f*h[1],n),n[12]=p[0],n[13]=p[1],n[14]=p[2],!0)}const y=l(c);if((3===d||11===d||2===d||5===d)&&(2===c||y||3===c||5===c)){const t=u.w5[c][10],r=u.w5[10][d];return null!=t&&null!=r&&(t(e,0,h,0),r(h,0,p,0),y?function(t,e,n){o(t,e,n),(0,s.mg)(n,n)}(f*h[0],f*h[1],n):(0,s.D_)(n),n[12]=p[0],n[13]=p[1],n[14]=p[2],!0)}return!1}function l(t){return 1===t||6===t||8===t||4===t}const f=(0,r.kU)(1),h=(0,i.vt)(),p=(0,i.vt)()},9762(t,e,n){n.r(e),n.d(e,{projectBuffer:()=>s});var r=n(49208);function s(t,e,n,s,i,o,u=Math.floor(t.length/3)){const a=(0,r.jd)(e,i);if(null==a)return!1;if(a===r.pO){if(t===s&&n===o)return!0;const e=n+3*u;for(let r=n,i=o;r<e;r++,i++)s[i]=t[r]??0;return!0}const c=n+3*u;for(let e=n,r=o;e<c;e+=3,r+=3)a(t,e,s,r);return!0}},65806(t,e,n){n.d(e,{g:()=>o});var r=n(51850),s=n(91218),i=n(9762);function o(t,e,n,r){if((0,s.canProjectWithoutEngine)(t.spatialReference,n))return u[0]=t.x,u[1]=t.y,u[2]=t.z??0,(0,i.projectBuffer)(u,t.spatialReference,0,e,n,0);const o=(0,s.tryProject)(t,n,r);return!!o&&(e[0]=o.x,e[1]=o.y,e[2]=o.z??0,!0)}const u=(0,r.vt)()},49208(t,e,n){n.d(e,{Tp:()=>f,jd:()=>l,pO:()=>p});var r=n(34727),s=n(86211),i=n(73941),o=n(79258),u=n(34403),a=n(21325);const c={2:{5:p,7:null,9:null,10:p,1:T,6:null,8:null,0:null,3:y,11:m,2:p,4:w},5:{5:p,7:null,9:null,10:p,1:T,6:null,8:null,0:null,3:y,11:m,2:p,4:w},7:{5:null,7:p,9:null,10:p,1:null,6:x,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:p,10:p,1:null,6:null,8:B,0:null,3:null,11:null,2:null,4:null},3:{5:d,7:null,9:null,10:d,1:function(t,e,n,r){const s=t[e]/C,i=O-2*Math.atan(Math.exp(-t[e+1]/C)),o=C+(t[e+2]??0),u=Math.cos(i)*o;n[r]=Math.cos(s)*u,n[r+1]=Math.sin(s)*u,n[r+2]=Math.sin(i)*o},6:null,8:null,0:null,3:p,11:function(t,e,n,r){d(t,e,n,r),m(n,r,n,r)},2:d,4:function(t,e,n,r){d(t,e,n,r),w(n,r,n,r)}},4:{5:S,7:null,9:null,10:S,1:function(t,e,n,r){S(t,e,n,r),T(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){S(t,e,n,r),y(n,r,n,r)},11:function(t,e,n,r){S(t,e,n,r),m(n,r,n,r)},2:S,4:p},1:{5:A,7:null,9:null,10:A,1:p,6:null,8:null,0:null,3:function(t,e,n,r){A(t,e,n,r),y(n,r,n,r)},11:function(t,e,n,r){A(t,e,n,r),m(n,r,n,r)},2:A,4:function(t,e,n,r){A(t,e,n,r),w(n,r,n,r)}},6:{5:null,7:v,9:null,10:v,1:null,6:p,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:E,10:E,1:null,6:null,8:p,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:p,3:null,11:null,2:null,4:null},10:{5:p,7:p,9:p,10:p,1:T,6:x,8:B,0:null,3:y,11:m,2:p,4:w},11:{5:M,7:null,9:null,10:M,1:function(t,e,n,r){M(t,e,n,r),T(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){M(t,e,n,r),y(n,r,n,r)},11:p,2:M,4:function(t,e,n,r){M(t,e,n,r),w(n,r,n,r)}}};function l(t,e){return f(t,e)?.projector}function f(t,e){if(null==t||null==e)return null;if(_.source.spatialReference===t&&_.dest.spatialReference===e)return _;const n=h(t,_.source),r=h(e,_.dest);return 0===n&&0===r?(0,a.aI)(t,e)?_.projector=p:_.projector=null:_.projector=c[n][r],_}function h(t,e){return t?e.spatialReference===t?e.spatialReferenceId:(e.spatialReference=t,"metersPerUnit"in e&&(e.metersPerUnit=(0,s.GA)(t,1)),(0,i.jA)(t)?e.spatialReferenceId=1:(0,a.oT)(t)?e.spatialReferenceId=2:(0,a.K8)(t)?e.spatialReferenceId=3:(0,a.r1)(t)?e.spatialReferenceId=11:t.wkt===i.Ro.wkt?e.spatialReferenceId=4:4490===t.wkid?e.spatialReferenceId=5:t.wkt===i.FY.wkt?e.spatialReferenceId=6:t.wkt===i.LJ.wkt?e.spatialReferenceId=8:(0,i.q8)(t)?e.spatialReferenceId=7:(0,i.KQ)(t)?e.spatialReferenceId=9:e.spatialReferenceId=0):0}function p(t,e,n,r){t!==n&&(n[r++]=t[e++],n[r++]=t[e++],n[r]=t[e]??0)}function d(t,e,n,r){n[r]=P*(t[e]/C),n[r+1]=P*(O-2*Math.atan(Math.exp(-t[e+1]/C))),n[r+2]=t[e+2]??0}function y(t,e,n,s){!function(t,e,n,s,i){const o=.4999999*Math.PI,u=(0,r.qE)(R*t[e+1],-o,o),a=Math.sin(u);n[s++]=R*t[e]*i.radius,n[s++]=i.halfSemiMajorAxis*Math.log((1+a)/(1-a)),n[s]=t[e+2]??0}(t,e,n,s,o.$O)}function m(t,e,n,r){n[r]=t[e]*I,n[r+1]=t[e+1]*I,n[r+2]=t[e+2]??0}function M(t,e,n,r){n[r]=t[e]*j,n[r+1]=t[e+1]*j,n[r+2]=t[e+2]??0}function g(t,e,n,r,s){const i=s+(t[e+2]??0),o=R*t[e],u=R*t[e+1],a=Math.cos(u)*i;n[r]=Math.cos(o)*a,n[r+1]=Math.sin(o)*a,n[r+2]=Math.sin(u)*i}function B(t,e,n,r){g(t,e,n,r,o.Sw.radius)}function x(t,e,n,r){g(t,e,n,r,o.sH.radius)}function T(t,e,n,r){g(t,e,n,r,o.$O.radius)}function b(t,e,n,s,i){const o=t[e],u=t[e+1],a=t[e+2]??0,c=Math.sqrt(o*o+u*u+a*a),l=(0,r.YN)(a/(0===c?1:c)),f=Math.atan2(u,o);n[s++]=P*f,n[s++]=P*l,n[s]=c-i}function E(t,e,n,r){b(t,e,n,r,o.Sw.radius)}function v(t,e,n,r){b(t,e,n,r,o.sH.radius)}function A(t,e,n,r){b(t,e,n,r,o.$O.radius)}function w(t,e,n,r){!function(t,e,n,r,s){const i=R*t[e],o=R*t[e+1],u=t[e+2]??0,a=Math.sin(o),c=Math.cos(o),l=s.radius/Math.sqrt(1-s.eccentricitySquared*a*a);n[r++]=(l+u)*c*Math.cos(i),n[r++]=(l+u)*c*Math.sin(i),n[r++]=(l*(1-s.eccentricitySquared)+u)*a}(t,e,n,r,o.$O)}function S(t,e,n,r){const s=u.TP,i=t[e],a=t[e+1],c=t[e+2]??0;let l,f,h,p,d,y,m,M,g,B,x,T,b,E,v,A,w,S,_,R,O;l=Math.abs(c),f=i*i+a*a,h=Math.sqrt(f),p=f+c*c,d=Math.sqrt(p),R=Math.atan2(a,i),y=c*c/p,m=f/p,E=s.a2/d,v=s.a3-s.a4/d,m>.3?(M=l/d*(1+m*(s.a1+E+y*v)/d),_=Math.asin(M),B=M*M,g=Math.sqrt(1-B)):(g=h/d*(1-y*(s.a5-E-m*v)/d),_=Math.acos(g),B=1-g*g,M=Math.sqrt(B)),x=1-o.$O.eccentricitySquared*B,T=o.$O.radius/Math.sqrt(x),b=s.a6*T,E=h-T*g,v=l-b*M,w=g*E+M*v,A=g*v-M*E,S=A/(b/x+w),_+=S,O=w+A*S/2,c<0&&(_=-_),n[r++]=P*R,n[r++]=P*_,n[r]=O}const _={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:p},R=(0,r.kU)(1),P=(0,r.KJ)(1),O=.5*Math.PI,C=o.$O.radius,I=C*Math.PI/180,j=180/(C*Math.PI);n.d(e,["w5",0,c])},91218(t,e,n){n.r(e),n.d(e,{canProjectWithoutEngine:()=>D,initializeProjection:()=>G,isEqualBaseGCS:()=>$,isLoaded:()=>C,isLoadedOrLoad:()=>I,isLoadedOrLoadFor:()=>j,load:()=>q,project:()=>N,projectAsync:()=>V,projectExtent:()=>st,projectMany:()=>X,projectMultipoint:()=>H,projectOrLoad:()=>L,projectOrLoadMany:()=>Z,projectPoint:()=>W,projectPolygon:()=>nt,projectPolyline:()=>tt,projectWithoutEngine:()=>K,requiresLoad:()=>Y,test:()=>U,tryProject:()=>k,unload:()=>z});var r=n(49186),s=n(17676),i=n(62788),o=n(95488),u=n(51850),a=n(21276),c=n(73941),l=n(5443),f=n(91075),h=n(48526),p=n(86738),d=n(39829),y=n(82799),m=n(16930),M=n(98764),g=n(159),B=n(9762),x=n(49208);function T(t,e,n,r,s,i){return b[0]=t,b[1]=e,b[2]=n,(0,B.projectBuffer)(b,r,0,s,i,0)}const b=(0,u.vt)();var E=n(60408),v=n(21325),A=n(52006);let w=null,S=null,_=null,R=null,P={};const O=new o.I;function C(){return!!(S?.isLoaded()&&_?.isLoaded()&&R?.isLoaded())}function I(){return!!C()||((0,i.gc)(O),q(),!1)}function j(t,e){return!t||!e||D(t,e)||I()}function Y(t,e){return!D(t,e)&&!C()}async function q(t){null==w&&(w=Promise.all([n.e(3276).then(n.bind(n,83276)).then(t=>(S=t,S.load())),n.e(8377).then(n.bind(n,8377)).then(t=>(_=t,_.load())),n.e(2158).then(n.bind(n,12158)).then(t=>(R=t,R.load()))])),await w,(0,s.Te)(t),O.notify()}function N(t,e,n){return Array.isArray(t)?0===t.length?[]:((0,a.H)(t),X(t,t[0].spatialReference,e,n)):((0,a.f)(t),X([t],t.spatialReference,e,n)[0])}function X(t,e,n,r){if(null==e||null==n)return t;if(D(e,n,r))return t.map(t=>K(t,e,n));if(null==r?.geographicTransformation&&(0,c.jA)(e))return X(t.map(t=>K(t,e,m.A.WGS84)),m.A.WGS84,n,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,c.jA)(n))return X(t,e,m.A.WGS84).map(t=>K(t,m.A.WGS84,n));if(!C())throw new F;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:R.getTransformation(e,n,r.areaOfInterestExtent)||new g.A};else if(!r?.areaOfInterestExtent){const t=function(t,e){return[t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??"",e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??""].join()}(e,n);let s=P[t];s||(s=R.getTransformation(e,n)||new g.A,P[t]=s),r={geographicTransformation:s,zConversionDisabled:r?.zConversionDisabled}}return t[0].spatialReference||(t[0].spatialReference=e),t[0]instanceof f.A?S.executeMany(t,n,r):_.executeMany(t,n,r)}function k(t,e,n){try{return N(t,e,n)}catch(t){return null}}function L(t,e){const n=Z([t],e);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function Z(t,e,n){if(!C())for(const n of t)if(null!=n&&!(0,v.aI)(n.spatialReference,e)&&(0,v.fn)(n.spatialReference)&&(0,v.fn)(e)&&!D(n.spatialReference,e))return(0,i.gc)(O),{pending:q(),geometries:null};return{pending:null,geometries:t.map(t=>null==t?null:(0,v.aI)(t.spatialReference,e)?t:(0,v.fn)(t.spatialReference)&&(0,v.fn)(e)?N(t,e,n):null)}}class F extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function z(){w=null,S=null,_=null,R=null,P={}}const U={get loadPromise(){return w}};async function V(t,e,n){if((0,s.Te)(n),!t)return t;const r=Z(Array.isArray(t)?t:[t],e,n);if(r.pending)return await r.pending,(0,s.Te)(n),V(t,e,n);const i=r.geometries??[];return Array.isArray(t)?i:i[0]}function D(t,e,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,v.aI)(t,e)||(0,v.fn)(t)&&(0,v.fn)(e)&&!!(0,x.jd)(t,e))}function $(t,e){if((0,v.aI)(t,e))return!0;if(!(0,v.fn)(t)||!(0,v.fn)(e))return!1;const n=(0,v.oT)(t)||(0,v.K8)(t)||(0,v.x1)(t),r=(0,v.oT)(e)||(0,v.K8)(e)||(0,v.x1)(e);return n&&r}async function G(t,e,n,r){if(C())return(0,s.NO)(r);if(Array.isArray(t)){for(const{source:e,dest:n,options:s}of t)if(e&&n&&!D(e,n,s))return q(r)}else if(t&&e&&!D(t,e,n))return q(r);return(0,s.NO)(r)}function K(t,e,n){return t?(0,E.fT)(t)?J(t,e,new p.A,n,0):(0,E.ZC)(t)?it(t,e,new l.A,n,0):(0,E.Bi)(t)?rt(t,e,new d.A,n,0):(0,E.Rg)(t)?et(t,e,new y.A,n,0):(0,E.U9)(t)?Q(t,e,new h.A,n,0):null:null}function W(t,e,n=e.spatialReference,r=0){return null!=n&&null!=t.spatialReference&&null!=J(t,t.spatialReference,e,n,r)}function J(t,e,n,r,s){ct[0]=t.x,ct[1]=t.y;const i=t.z;return ct[2]=void 0!==i?i:s,(0,B.projectBuffer)(ct,e,0,ct,r,0)?(n.x=ct[0],n.y=ct[1],n.spatialReference=r,void 0!==i||(0,c.xP)(r)?(n.z=ct[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===t.m?(n.m=void 0,n.hasM=!1):(n.m=t.m,n.hasM=!0),n):null}function H(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=Q(t,t.spatialReference,e,n,r)}function Q(t,e,n,r,s){const{points:i,hasZ:o,hasM:u}=t,a=[],c=i.length,l=[];for(const t of i)l.push(t[0],t[1],o?t[2]:s);if(!(0,B.projectBuffer)(l,e,0,l,r,0,c))return null;const f=at(o,r);for(let t=0;t<c;++t){const e=3*t,n=l[e],r=l[e+1];f&&u?a.push([n,r,l[e+2],i[t][3]]):f?a.push([n,r,l[e+2]]):u?a.push([n,r,i[t][2]]):a.push([n,r])}return n.points=a,n.spatialReference=r,n.hasZ=o,n.hasM=u,n}function tt(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=et(t,t.spatialReference,e,n,r)}function et(t,e,n,r,s){const{curvePaths:i,paths:o,hasZ:u,hasM:a}=t;if(!(i?ut(i,u??!1,a??!1,e,n.curvePaths=[],r,s):ot(o,u??!1,a??!1,e,n.paths,r,s)))return null;const c=at(u,r);return n.spatialReference=r,n.hasZ=c,n.hasM=a,n}function nt(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=rt(t,t.spatialReference,e,n,r)}function rt(t,e,n,r,s){const{curveRings:i,rings:o,hasZ:u,hasM:a}=t;return(i?ut(i,u??!1,a??!1,e,n.curveRings=[],r,s):ot(o,u??!1,a??!1,e,n.rings,r,s))?(n.spatialReference=r,n.hasZ=at(u,r),n.hasM=a,n):null}function st(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=it(t,t.spatialReference,e,n,r)}function it(t,e,n,r,s){const{xmin:i,ymin:o,xmax:u,ymax:a,hasZ:c,hasM:l}=t;if(!T(i,o,c?t.zmin:s,e,ct,r))return null;const f=at(c,r);return n.xmin=ct[0],n.ymin=ct[1],f&&(n.zmin=ct[2]),T(u,a,c?t.zmax:s,e,ct,r)?(n.xmax=ct[0],n.ymax=ct[1],f&&(n.zmax=ct[2]),l&&(n.mmin=t.mmin,n.mmax=t.mmax),n.spatialReference=r,n):null}function ot(t,e,n,r,s,i,o=0){const u=new Array;for(const n of t)for(const t of n)u.push(t[0],t[1],e?t[2]:o);if(!(0,B.projectBuffer)(u,r,0,u,i,0))return!1;let a=0;s.length=0;const c=e?3:2,l=at(e,i);for(const e of t){const t=new Array;for(const r of e){const e=u.slice(a,a+=3);l||e.pop(),n&&e.push(r[c]),t.push(e)}s.push(t)}return!0}function ut(t,e,n,r,s,i,o=0){const u=new Array;for(const n of t)for(const t of n){if((0,A.FG)(t))return!1;if((0,A.aO)(t)){const[n,r]=t.c;u.push(n[0],n[1],e?n[2]:o,r[0],r[1],o);continue}if((0,A.n1)(t)){const[n,r,s]=t.b;u.push(n[0],n[1],e?n[2]:o,r[0],r[1],o,s[0],s[1],o);continue}const n=t;u.push(n[0],n[1],e?n[2]:o)}if(!(0,B.projectBuffer)(u,r,0,u,i,0))return!1;let a=0;s.length=0;const c=e?3:2,l=at(e,i);for(const e of t){const t=new Array;for(const r of e){const e=u.slice(a,a+=3);if(l||e.pop(),n&&e.push((0,A.yP)(r)[c]),(0,A.FG)(r))return!1;if((0,A.aO)(r)){const n=u[a++],r=u[a++];++a,t.push({c:[e,[n,r]]});continue}if((0,A.n1)(r)){const n=u[a++],r=u[a++];++a;const s=u[a++],i=u[a++];++a,t.push({b:[e,[n,r],[s,i]]});continue}t.push(e)}s.push(t)}return!0}function at(t,e){return t||(0,c.xP)(e)||(0,v.aI)(e,M.Y0)}const ct=(0,u.vt)()},98764(t,e,n){n.d(e,{lO:()=>l});var r=n(73941),s=n(16930),i=n(21325);const o=new s.A(r.fv),u=new s.A(r.FY),a=new s.A(r.LJ),c=new s.A(r.Ro);function l(t){const e=f.get(t);if(e)return e;let n=o;if(t)if(t===u)n=u;else if(t===a)n=a;else{const e=t.wkid,r=t.latestWkid;if(null!=e||null!=r)(0,i.tl)(e)||(0,i.tl)(r)?n=u:((0,i.ZL)(e)||(0,i.ZL)(r))&&(n=a);else{const e=t.wkt2??t.wkt;if(e){const t=e.toUpperCase();t===h?n=u:t===p&&(n=a)}}}return f.set(t,n),n}const f=new Map,h=u.wkt.toUpperCase(),p=a.wkt.toUpperCase();n.d(e,["GD",0,o,"Y0",0,c])},95696(t,e,n){n.d(e,{A:()=>c});var r,s=n(5482),i=n(69540),o=n(25482),u=n(91429),a=n(93223);let c=class extends((0,i.OU)(o.o)){static{r=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,s.Cg)([(0,a.e)({georeferenced:"georeferenced"},{readOnly:!0})],c.prototype,"type",void 0),(0,s.Cg)([(0,u.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],c.prototype,"origin",void 0),c=r=(0,s.Cg)([(0,u.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],c)},18251(t,e,n){n.d(e,{A:()=>c});var r=n(5482),s=n(69540),i=n(25482),o=n(91429),u=n(51850),a=n(93223);let c=class extends((0,s.OU)(i.o)){constructor(t){super(t),this.type="local",this.origin=(0,u.vt)()}};(0,r.Cg)([(0,a.e)({local:"local"},{readOnly:!0})],c.prototype,"type",void 0),(0,r.Cg)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,r.Cg)([(0,o.$K)("esri.geometry.support.MeshLocalVertexSpace")],c)},13030(t,e,n){n.d(e,{Y$:()=>g,XW:()=>M,qB:()=>R,Qt:()=>K,My:()=>Q,bf:()=>V,jZ:()=>A,j0:()=>w,Sx:()=>S,E$:()=>_,Qy:()=>it,h:()=>N,P:()=>Z,SL:()=>I,dy:()=>rt,ES:()=>ot,gH:()=>x,ZD:()=>B,si:()=>P,mJ:()=>W,UL:()=>tt,D6:()=>D,Yi:()=>X,An:()=>F,LC:()=>j,xs:()=>b,EC:()=>T,Xm:()=>O,Vp:()=>J,zD:()=>et,m8:()=>$,nS:()=>k,H$:()=>z,eI:()=>Y,td:()=>st,Eq:()=>v,jz:()=>E,Aj:()=>C,E7:()=>H,Y4:()=>nt,TX:()=>G,Uz:()=>L,ml:()=>U,XP:()=>q});var r=n(34727),s=n(37585),i=n(48163),o=n(78955),u=n(91829),a=n(20498);class c{static{this.ElementCount=9}constructor(t,e,n=0,r,s){this.TypedArrayConstructor=t,this.elementCount=9;const i=this.TypedArrayConstructor;void 0===r&&(r=9*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:n;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-n)/i.BYTES_PER_ELEMENT),this.typedBufferStride=r/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,n=this.count-e){const r=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,r,this.stride,r+n*this.stride)}getMat(t,e){let n=t*this.typedBufferStride;for(let t=0;t<9;t++)e[t]=this.typedBuffer[n++];return e}setMat(t,e){let n=t*this.typedBufferStride;for(let t=0;t<9;t++)this.typedBuffer[n++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,n){this.typedBuffer[t*this.typedBufferStride+e]=n}copyFrom(t,e,n){const r=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=n*e.typedBufferStride;for(let t=0;t<9;++t)r[i++]=s[o++]}get buffer(){return this.typedBuffer.buffer}}class l{static{this.ElementCount=16}constructor(t,e,n=0,r,s){this.TypedArrayConstructor=t,this.elementCount=16;const i=this.TypedArrayConstructor;void 0===r&&(r=16*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:n;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-n)/i.BYTES_PER_ELEMENT),this.typedBufferStride=r/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,n=this.count-e){const r=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,r,this.stride,r+n*this.stride)}getMat(t,e){let n=t*this.typedBufferStride;for(let t=0;t<16;t++)e[t]=this.typedBuffer[n++];return e}setMat(t,e){let n=t*this.typedBufferStride;for(let t=0;t<16;t++)this.typedBuffer[n++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,n){this.typedBuffer[t*this.typedBufferStride+e]=n}copyFrom(t,e,n){this.copyFromTypedBuffer(t,e.typedBuffer,n*e.typedBufferStride)}copyFromTypedBuffer(t,e,n){const r=this.typedBuffer;let s=t*this.typedBufferStride;for(let t=0;t<16;++t)r[s++]=e[n++]}get buffer(){return this.typedBuffer.buffer}}class f{static{this.ElementCount=1}constructor(t,e,n=0,r,s){this.TypedArrayConstructor=t,this.elementCount=1;const i=this.TypedArrayConstructor;void 0===r&&(r=i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:n;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-n)/i.BYTES_PER_ELEMENT),this.stride=r,this.typedBufferStride=r/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride)}sliceBuffer(t,e,n=this.count-e){const r=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,r,this.stride,r+n*this.stride)}get(t){return this.typedBuffer[t*this.typedBufferStride]}set(t,e){this.typedBuffer[t*this.typedBufferStride]=e}get buffer(){return this.typedBuffer.buffer}}class h{static{this.ElementCount=2}constructor(t,e,n=0,r,s){this.TypedArrayConstructor=t,this.start=n,this.elementCount=2;const i=this.TypedArrayConstructor;void 0===r&&(r=2*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:n;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-n)/i.BYTES_PER_ELEMENT),this.typedBufferStride=r/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,n=this.count-e){const r=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,r,this.stride,r+n*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,s.hZ)(e,this.typedBuffer[t],this.typedBuffer[t+1])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t]=e[1]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,n){this.typedBuffer[t*this.typedBufferStride+e]=n}setValues(t,e,n){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t]=n}copyFrom(t,e,n){const r=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=n*e.typedBufferStride;r[i++]=s[o++],r[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}var p=n(35522);class d{static{this.ElementCount=3}constructor(t,e,n=0,r,s){this.TypedArrayConstructor=t,this.elementCount=3;const i=this.TypedArrayConstructor;void 0===r&&(r=3*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:n;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-n)/i.BYTES_PER_ELEMENT),this.typedBufferStride=r/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,n=this.count-e){const r=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,r,this.stride,r+n*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,p.hZ)(e,this.typedBuffer[t],this.typedBuffer[t+1],this.typedBuffer[t+2])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t]=e[2]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,n){this.typedBuffer[t*this.typedBufferStride+e]=n}setValues(t,e,n,r){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=n,this.typedBuffer[t]=r}copyFrom(t,e,n){const r=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=n*e.typedBufferStride;r[i++]=s[o++],r[i++]=s[o++],r[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}class y{static{this.ElementCount=4}constructor(t,e,n=0,r,s){this.TypedArrayConstructor=t,this.start=n,this.elementCount=4;const i=this.TypedArrayConstructor;void 0===r&&(r=4*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:n;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-n)/i.BYTES_PER_ELEMENT),this.typedBufferStride=r/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,n=this.count-e){const r=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,r,this.stride,r+n*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,o.hZ)(e,this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t++]=e[2],this.typedBuffer[t]=e[3]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,n){this.typedBuffer[t*this.typedBufferStride+e]=n}setValues(t,e,n,r,s){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=n,this.typedBuffer[t++]=r,this.typedBuffer[t]=s}copyFrom(t,e,n){const r=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=n*e.typedBufferStride;r[i++]=s[o++],r[i++]=s[o++],r[i++]=s[o++],r[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}var m=n(620);class M extends f{constructor(t,e=0,n,r){(0,m.vA)(a.SX),super((0,a.pX)(),t,e,n,r),this.elementType="f16"}static{this.ElementType="f16"}}class g extends f{constructor(t,e=0,n,r){super(Float32Array,t,e,n,r),this.elementType="f32"}static{this.ElementType="f32"}}class B extends h{constructor(t,e=0,n,r){(0,m.vA)(a.SX),super((0,a.pX)(),t,e,n,r),this.elementType="f16"}slice(t,e){return this.sliceBuffer(B,t,e)}static{this.ElementType="f16"}}class x extends h{constructor(t,e=0,n,r){super(Float32Array,t,e,n,r),this.elementType="f32"}slice(t,e){return this.sliceBuffer(x,t,e)}static{this.ElementType="f32"}}class T extends d{constructor(t,e=0,n,r){(0,m.vA)(a.SX),super((0,a.pX)(),t,e,n,r),this.elementType="f16"}slice(t,e){return this.sliceBuffer(T,t,e)}static{this.ElementType="f16"}}class b extends d{constructor(t,e=0,n,r){super(Float32Array,t,e,n,r),this.elementType="f32"}slice(t,e){return this.sliceBuffer(b,t,e)}static fromTypedArray(t,e){return new b(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f32"}}class E extends y{constructor(t,e=0,n,r){(0,m.vA)(a.SX),super((0,a.pX)(),t,e,n,r),this.elementType="f16"}slice(t,e){return this.sliceBuffer(E,t,e)}static{this.ElementType="f16"}}class v extends y{constructor(t,e=0,n,r){super(Float32Array,t,e,n,r),this.elementType="f32"}slice(t,e){return this.sliceBuffer(v,t,e)}static{this.ElementType="f32"}}class A extends c{constructor(t,e=0,n,r){super(Float32Array,t,e,n,r),this.elementType="f32"}slice(t,e){return this.sliceBuffer(A,t,e)}static{this.ElementType="f32"}}class w extends c{constructor(t,e=0,n,r){super(Float64Array,t,e,n,r),this.elementType="f64"}slice(t,e){return this.sliceBuffer(w,t,e)}static{this.ElementType="f64"}}class S extends l{constructor(t,e=0,n,r){super(Float32Array,t,e,n,r),this.elementType="f32"}slice(t,e){return this.sliceBuffer(S,t,e)}static{this.ElementType="f32"}}class _ extends l{constructor(t,e=0,n,r){super(Float64Array,t,e,n,r),this.elementType="f64"}slice(t,e){return this.sliceBuffer(_,t,e)}static{this.ElementType="f64"}}class R extends f{constructor(t,e=0,n,r){super(Float64Array,t,e,n,r),this.elementType="f64"}slice(t,e){return this.sliceBuffer(R,t,e)}static{this.ElementType="f64"}}class P extends h{constructor(t,e=0,n,r){super(Float64Array,t,e,n,r),this.elementType="f64"}slice(t,e){return this.sliceBuffer(P,t,e)}static{this.ElementType="f64"}}class O extends d{constructor(t,e=0,n,r){super(Float64Array,t,e,n,r),this.elementType="f64"}slice(t,e){return this.sliceBuffer(O,t,e)}static fromTypedArray(t,e){return new O(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f64"}}class C extends y{constructor(t,e=0,n,r){super(Float64Array,t,e,n,r),this.elementType="f64"}slice(t,e){return this.sliceBuffer(C,t,e)}static{this.ElementType="f64"}}class I extends f{constructor(t,e=0,n,r){super(Uint8Array,t,e,n,r),this.elementType="u8"}slice(t,e){return this.sliceBuffer(I,t,e)}static{this.ElementType="u8"}}class j extends h{constructor(t,e=0,n,r){super(Uint8Array,t,e,n,r),this.elementType="u8"}slice(t,e){return this.sliceBuffer(j,t,e)}static{this.ElementType="u8"}}class Y extends d{constructor(t,e=0,n,r){super(Uint8Array,t,e,n,r),this.elementType="u8"}slice(t,e){return this.sliceBuffer(Y,t,e)}static fromTypedArray(t,e){return new Y(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="u8"}}class q extends y{constructor(t,e=0,n,r){super(Uint8Array,t,e,n,r),this.elementType="u8"}slice(t,e){return this.sliceBuffer(q,t,e)}static{this.ElementType="u8"}}class N extends f{constructor(t,e=0,n,r){super(Uint16Array,t,e,n,r),this.elementType="u16"}slice(t,e){return this.sliceBuffer(N,t,e)}static{this.ElementType="u16"}}class X extends h{constructor(t,e=0,n,r){super(Uint16Array,t,e,n,r),this.elementType="u16"}slice(t,e){return this.sliceBuffer(X,t,e)}static{this.ElementType="u16"}}class k extends d{constructor(t,e=0,n,r){super(Uint16Array,t,e,n,r),this.elementType="u16"}slice(t,e){return this.sliceBuffer(k,t,e)}static{this.ElementType="u16"}}class L extends y{constructor(t,e=0,n,r){super(Uint16Array,t,e,n,r),this.elementType="u16"}slice(t,e){return this.sliceBuffer(L,t,e)}static{this.ElementType="u16"}}class Z extends f{constructor(t,e=0,n,r){super(Uint32Array,t,e,n,r),this.elementType="u32"}slice(t,e){return this.sliceBuffer(Z,t,e)}static{this.ElementType="u32"}}class F extends h{constructor(t,e=0,n,r){super(Uint32Array,t,e,n,r),this.elementType="u32"}slice(t,e){return this.sliceBuffer(F,t,e)}static{this.ElementType="u32"}}class z extends d{constructor(t,e=0,n,r){super(Uint32Array,t,e,n,r),this.elementType="u32"}slice(t,e){return this.sliceBuffer(z,t,e)}static{this.ElementType="u32"}}class U extends y{constructor(t,e=0,n,r){super(Uint32Array,t,e,n,r),this.elementType="u32"}slice(t,e){return this.sliceBuffer(U,t,e)}static{this.ElementType="u32"}}class V extends f{constructor(t,e=0,n,r){super(Int8Array,t,e,n,r),this.elementType="i8"}slice(t,e){return this.sliceBuffer(V,t,e)}static{this.ElementType="i8"}}class D extends h{constructor(t,e=0,n,r){super(Int8Array,t,e,n,r),this.elementType="i8"}slice(t,e){return this.sliceBuffer(D,t,e)}static{this.ElementType="i8"}}class $ extends d{constructor(t,e=0,n,r){super(Int8Array,t,e,n,r),this.elementType="i8"}slice(t,e){return this.sliceBuffer($,t,e)}static{this.ElementType="i8"}}class G extends y{constructor(t,e=0,n,r){super(Int8Array,t,e,n,r),this.elementType="i8"}slice(t,e){return this.sliceBuffer(G,t,e)}static{this.ElementType="i8"}}class K extends f{constructor(t,e=0,n,r){super(Int16Array,t,e,n,r),this.elementType="i16"}slice(t,e){return this.sliceBuffer(K,t,e)}static{this.ElementType="i16"}}class W extends h{constructor(t,e=0,n,r){super(Int16Array,t,e,n,r),this.elementType="i16"}slice(t,e){return this.sliceBuffer(W,t,e)}static{this.ElementType="i16"}}class J extends d{constructor(t,e=0,n,r){super(Int16Array,t,e,n,r),this.elementType="i16"}slice(t,e){return this.sliceBuffer(J,t,e)}static{this.ElementType="i16"}}class H extends y{constructor(t,e=0,n,r){super(Int16Array,t,e,n,r),this.elementType="i16"}slice(t,e){return this.sliceBuffer(H,t,e)}static{this.ElementType="i16"}}class Q extends f{constructor(t,e=0,n,r){super(Int32Array,t,e,n,r),this.elementType="i32"}slice(t,e){return this.sliceBuffer(Q,t,e)}static{this.ElementType="i32"}}class tt extends h{constructor(t,e=0,n,r){super(Int32Array,t,e,n,r),this.elementType="i32"}slice(t,e){return this.sliceBuffer(tt,t,e)}static{this.ElementType="i32"}}class et extends d{constructor(t,e=0,n,r){super(Int32Array,t,e,n,r),this.elementType="i32"}slice(t,e){return this.sliceBuffer(et,t,e)}static{this.ElementType="i32"}}class nt extends y{constructor(t,e=0,n,r){super(Int32Array,t,e,n,r),this.elementType="i32"}slice(t,e){return this.sliceBuffer(nt,t,e)}static{this.ElementType="i32"}}class rt extends I{constructor(t,e=0,n,r){super(t,e,n,r)}get(t){return this.typedBuffer[t*this.typedBufferStride]/255}set(t,e){this.typedBuffer[t*this.typedBufferStride]=Math.round(255*(0,r.qE)(e,0,1))}slice(t,e){return this.sliceBuffer(rt,t,e)}}class st extends q{constructor(t,e=0,n,r){super(t,e,n,r)}getVec(t,e){return(0,o.hs)(e,super.getVec(t,e),1/255)}setVec(t,e){(0,o.jk)(at,(0,o.T9)(at,e,u.uY),u.Un),(0,o.hs)(at,at,255),(0,o.LI)(at,at),super.setVec(t,at)}get(t,e){return super.get(t,e)/255}set(t,e,n){super.set(t,e,Math.round(255*(0,r.qE)(n,0,1)))}setValues(t,e,n,r,s){(0,o.hZ)(at,e,n,r,s),this.setVec(t,at)}slice(t,e){return this.sliceBuffer(st,t,e)}}class it extends K{constructor(t,e=0,n,r){super(t,e,n,r)}get(t){return Math.max(super.get(t)/32767,-1)}set(t,e){super.set(t,Math.round(32767*(0,r.qE)(e,-1,1)))}slice(t,e){return this.sliceBuffer(it,t,e)}}class ot extends W{constructor(t,e=0,n,r){super(t,e,n,r)}getVec(t,e){return(0,s.hZ)(ut,-1,-1),(0,s.T9)(e,(0,s.hs)(e,super.getVec(t,e),1/32767),ut)}setVec(t,e){(0,s.qE)(ut,e,i.IA,i.Un),(0,s.hs)(ut,ut,32767),(0,s.LI)(ut,ut),super.setVec(t,ut)}get(t,e){return Math.max(super.get(t,e)/32767,-1)}set(t,e,n){super.set(t,e,Math.round(32767*(0,r.qE)(n,-1,1)))}setValues(t,e,n){(0,s.hZ)(ut,e,n),this.setVec(t,ut)}slice(t,e){return this.sliceBuffer(ot,t,e)}}const ut=(0,i.vt)(),at=(0,u.vt)()},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)},20498(t,e,n){n.d(e,{Bg:()=>s,SX:()=>o,pX:()=>i});let r=globalThis.Float16Array;function s(...t){return new(r??Float32Array)(...t)}function i(){return r}let o=!!r},34403(t,e,n){var r=n(79258);Math.PI;const s=r.$O.radius,i=r.$O.eccentricitySquared,o={a1:s*i,a2:s*i*s*i,a3:s*i*i/2,a4:s*i*s*i*2.5,a5:s*i+s*i*i/2,a6:1-i};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius,n.d(e,["TP",0,o])},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 s(t){return void 0!==t.points}function i(t){return void 0!==t.x&&void 0!==t.y}function o(t){return void 0!==t.paths||void 0!==t.curvePaths}function u(t){return void 0!==t.rings||void 0!==t.curveRings}function a(t){return"object"==typeof t&&"vertexAttributes"in t}function c(t){return t?i(t)?"esriGeometryPoint":o(t)?"esriGeometryPolyline":u(t)?"esriGeometryPolygon":r(t)?"esriGeometryEnvelope":s(t)?"esriGeometryMultipoint":null:null}function l(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function f(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}n.d(e,{$B:()=>c,Bi:()=>u,Pv:()=>l,Rg:()=>o,U9:()=>s,W0:()=>f,ZC:()=>r,fT:()=>i,uW:()=>a})},38419(t,e,n){n.r(e),n.d(e,{default:()=>u});var r=n(44208),s=n(75503),i=n(95696),o=n(72258);class u{async createIndex(t,e){const n=new Array;if(!t.vertexAttributes?.position)return new s.wq;const r=function(t){const{vertexAttributes:{position:e},vertexSpace:n,spatialReference:r,transform:s}=t,u=(0,o.UR)({vertexAttributes:{position:e},vertexSpace:n,spatialReference:r,transform:s},i.A.absolute,{allowBufferReuse:!0})?.position;return u?!t.components||t.components.some(t=>!t.faces)?{position:u.buffer}:{position:u.buffer,components:t.components.map(t=>t.faces)}:null}(t),u=null!=e?await e.invoke("createIndexThread",r,{transferList:n}):this.createIndexThread(r).result;return a().fromJSON(u)}createIndexThread(t){const e=a();if(!t)return{result:e.toJSON()};const n=new Float64Array(t.position);return t.components?function(t,e,n){let r=0;for(const t of n)r+=t.length/3;const s=new Array(r);let i=0;for(const t of n)for(let n=0;n<t.length;n+=3)s[i++]=c(e,3*t[n],3*t[n+1],3*t[n+2]);return t.load(s),{result:t.toJSON()}}(e,n,t.components.map(t=>new Uint32Array(t))):function(t,e){const n=new Array(e.length/9);let r=0;for(let t=0;t<e.length;t+=9)n[r++]=c(e,t,t+3,t+6);return t.load(n),{result:t.toJSON()}}(e,n)}}function a(){return new s.wq(9,(0,r.A)("esri-csp-restrictions")?t=>t:[".minX",".minY",".maxX",".maxY"])}function c(t,e,n,r){return{minX:Math.min(t[e],t[n],t[r]),maxX:Math.max(t[e],t[n],t[r]),minY:Math.min(t[e+1],t[n+1],t[r+1]),maxY:Math.max(t[e+1],t[n+1],t[r+1]),p0:[t[e],t[e+1],t[e+2]],p1:[t[n],t[n+1],t[n+2]],p2:[t[r],t[r+1],t[r+2]]}}},22141(t,e,n){n.d(e,{$5:()=>b,CN:()=>g,KM:()=>v,Mv:()=>w,X4:()=>B,gr:()=>T,qs:()=>E,si:()=>x,xA:()=>A});var r=n(34727),s=n(77690),i=n(29242),o=n(58083),u=n(9093),a=n(35522),c=n(51850),l=n(73941),f=n(48353),h=n(9762),p=(n(79258),n(21325)),d=n(28735),y=n(13030),m=n(73354),M=n(50867);function g(t,e,n,r){t.error(`Failed to project from (wkid:${e.wkid}) to (wkid:${n.wkid}).${r?" ":""}${r}`)}function B(t,e,n,r,s,i){return _(0,y.xs.fromTypedArray(t),0,y.Xm.fromTypedArray(e),n,y.Xm.fromTypedArray(r),s,y.xs.fromTypedArray(i))?i:null}function x(t,e,n,r,s,i){return _(1,y.xs.fromTypedArray(t),0,y.Xm.fromTypedArray(e),n,y.Xm.fromTypedArray(r),s,y.xs.fromTypedArray(i))?i:null}function T(t,e,n,r){return(0,h.projectBuffer)(t,e,0,n,r,0)?n:null}function b(t,e,n,r){return(0,h.projectBuffer)(t,e,0,n,r,0)?n:null}function E(t,e,n){return(0,s.Ge)(C,n),(0,m.b)(e,t,C),(0,r.or)(C)&&(0,m.n)(e,e),e}function v(t,e,n){return(0,s.z0)(C,n),(0,M.t)(e,t,C),(0,r.or)(C)&&(0,m.n)(e,e,4),e}function A(t,e,n,r,s,i){if(!_(0,y.xs.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),1,y.Xm.fromTypedArray(e),n,y.Xm.fromTypedArray(r),s,y.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let e=3;e<t.length;e+=4)i[e]=t[e];return i}function w(t,e,n,r,s,i){if(!_(1,y.xs.fromTypedArray(t,16),1,y.Xm.fromTypedArray(e),n,y.Xm.fromTypedArray(r),s,y.xs.fromTypedArray(i,16)))return null;for(let e=3;e<t.length;e+=4)i[e]=t[e];return i}function S(t,e,n,r,i){switch((0,f.l)(r,n,O,r),1===t&&(0,o.B8)(O,O),e){case 0:return(0,s.Ge)(i,O);case 1:return(0,s.z0)(i,O)}}function _(t,e,n,r,s,i,o,u){if(!e)return;const c=r.count;if(function(t){return t.isWGS84||(0,p.x1)(t)||(0,l.q8)(t)||(0,l.KQ)(t)}(s))for(let r=0;r<c;r++)i.getVec(r,R),e.getVec(r,P),(0,a.ei)(P,P,S(t,n,R,o,C)),u.setVec(r,P);else for(let s=0;s<c;s++){i.getVec(s,R),e.getVec(s,P);const c=(0,d.jg)(r.get(s,1));let l=Math.cos(c);1===n!=(0===t)&&(l=1/l),S(t,n,R,o,C),0===t?(C[0]*=l,C[1]*=l,C[2]*=l,C[3]*=l,C[4]*=l,C[5]*=l):(C[0]*=l,C[3]*=l,C[6]*=l,C[1]*=l,C[4]*=l,C[7]*=l),(0,a.ei)(P,P,C),(0,a.S8)(P,P),u.setVec(s,P)}return u}const R=(0,c.vt)(),P=(0,c.vt)(),O=(0,u.vt)(),C=(0,i.vt)();n.d(e,["JP",0,"Projection may be possible after calling projection.load()."])},72258(t,e,n){n.d(e,{UR:()=>T,p5:()=>x,xK:()=>S});var r=n(53966),s=n(34727),i=n(86211),o=n(77690),u=n(29242),a=n(58083),c=n(9093),l=n(35522),f=n(51850),h=n(73941),p=n(98764),d=n(48353),y=n(65806),m=n(27615),M=n(73354),g=n(22141);const B=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function x(t,e,{vertexSpace:n,spatialReference:r}){if("georeferenced"===n.type){const s=t;if(!(0,y.g)(e,s,r))return!1;const{origin:i}=n;return(0,l.Re)(t,s,i),!0}const s=(0,p.lO)(r),i=t;if(!(0,y.g)(e,i,s))return!1;const{origin:o}=n,u=C;if(!(0,d.l)(r,o,u,s))return!1;const c=(0,a.B8)(C,u);return null!=c&&((0,l.Z0)(t,i,c),!0)}function T(t,e,n){const{vertexSpace:r,transform:s,vertexAttributes:i}=t,u=(0,m.Hq)(r)?s:null,f=A(t.spatialReference,n,3);if((0,m.yJ)(r,e)&&(!u||(0,a.t2)(u.localMatrix,c.zK))&&w(f)){const{position:t,normal:e,tangent:r}=i,s=n?.allowBufferReuse;return{position:s?t:t.slice(),normal:s?e:e?.slice(),tangent:s?r:r?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===e.type?function({vertexAttributes:t,spatialReference:e,transform:n},{origin:r},s,i){const o=b(e,i);if(!(0,d.l)(e,r,_,o))return(0,g.CN)(B(),e,o),null;if(n&&(0,a.lw)(_,_,n.localMatrix),!(0,d.l)(e,s,R,o))return(0,g.CN)(B(),o,e),null;(0,a.B8)(R,R);const u=(0,a.lw)(_,R,_);return v(u,e,i,3),E(t,u)}(t,t.vertexSpace,e.origin,n):function({spatialReference:t,vertexAttributes:e,transform:n},{origin:r},s,i){const o=b(t,i);if(!(0,d.l)(t,r,_,o))return(0,g.CN)(B(),t,o),null;n&&(0,a.lw)(_,_,n.localMatrix),v(_,t,i,1);const u=new Float64Array(e.position.length),c=function(t,e,n,r,s){(0,M.a)(r,t,e);const i=new Float64Array(t.length);return(0,g.$5)(r,s,i,n)?i:((0,g.CN)(B(),s,n),null)}(e.position,_,t,u,o);if(!c)return null;const f=function(t,e,n,r,s,i){if(null==s)return null;const o=new Float32Array(s.length);return(0,g.qs)(s,o,i),(0,g.si)(o,t,e,n,r,o)?o:((0,g.CN)(B(),r,e),null)}(c,t,u,o,e.normal,_);if(e.normal&&!f)return null;const h=function(t,e,n,r,s,i){if(null==s)return null;const o=new Float32Array(s.length);return(0,g.KM)(s,o,i),(0,g.Mv)(o,t,e,n,r,o)?o:((0,g.CN)(B(),r,e),null)}(c,t,u,o,e.tangent,_);if(e.tangent&&!h)return null;if(s){const t=(0,l.ze)(O,s);(0,M.t)(c,c,t)}return{position:c,normal:f,tangent:h}}(t,t.vertexSpace,e.origin,n);case"georeferenced":return"local"===e.type?function({vertexAttributes:t,spatialReference:e,transform:n},{origin:r},s,i){const u=b(e,i);if(!(0,d.l)(e,s,_,u))return(0,g.CN)(B(),e,u),null;const c=1/A(e,i,2);(0,a.hs)(_,_,[c,c,c]);const l=(0,a.B8)(R,_),{position:f,normal:h,tangent:p}=function(t,e,n){if(!e)return t;if(!n){const{position:n,normal:r,tangent:s}=t;return{position:(0,M.t)(new Float64Array(n.length),n,e),tangent:s,normal:r}}const r=E(t,n.localMatrix);return(0,M.t)(r.position,r.position,e),r}(t,r,n),y=new Float64Array(f.length),m=function(t,e,n,r,s){const i=(0,g.gr)(t,e,r,s);if(!i)return(0,g.CN)(B(),e,s),null;const o=new Float64Array(i.length);return(0,M.a)(o,i,n),o}(f,e,l,y,u);if(!m)return null;const x=(0,o.Ge)(P,l),T=function(t,e,n,r,s,i,o){if(null==t)return null;const u=o??new Float32Array(t.length);return(0,g.X4)(t,e,n,r,s,u)?((0,M.b)(u,u,i),u):((0,g.CN)(B(),n,s),null)}(h,f,e,y,u,x,h!==t.normal?h:void 0);if(!T&&h)return null;const v=function(t,e,n,r,s,i,o){if(null==t)return null;const u=o??new Float32Array(t.length);return(0,g.xA)(t,e,n,r,s,u)?((0,M.b)(u,u,i,4),u):((0,g.CN)(B(),n,s),null)}(p,f,e,y,u,x,p!==t.tangent?p:void 0);return!v&&p?null:{position:m,normal:T,tangent:v}}(t,t.vertexSpace,e.origin,n):function({vertexAttributes:t,transform:e,spatialReference:n},{origin:r},s,i){const o=A(n,i,3),u=r||!w(o)?(0,a.C)(_,e?.localMatrix??c.zK):null;u&&v(u,n,i,3);const{position:f,normal:h,tangent:p}=u?E(t,u):t,d=i?.allowBufferReuse,y=d?f:new Float64Array(f.length);let m=f;if(r&&(m=(0,M.t)(y,m,r)),s){const t=(0,l.ze)(O,s);m=(0,M.t)(y,m,t)}return{position:m!==t.position||d?m:m.slice(),normal:h!==t.normal||d?h:h?.slice(),tangent:p!==t.tangent||d?p:p?.slice()}}(t,t.vertexSpace,e.origin,n)}}function b(t,e){return e?.useEllipsoid&&(0,h.B3)(t)?p.Y0:(0,p.lO)(t)}function E(t,e){const n=new Float64Array(t.position.length);(0,M.a)(n,t.position,e);const r=t.normal?new Float32Array(t.normal.length):null,s=t.tangent?new Float32Array(t.tangent.length):null;return r&&t.normal&&(0,g.qs)(t.normal,r,e),s&&t.tangent&&(0,g.KM)(t.tangent,s,e),{position:n,normal:r,tangent:s}}function v(t,e,n,r){const s=A(e,n,r);w(s)||(0,a.hs)(t,t,[s,s,s])}function A(t,e,n){const r=!!(1&n),s=!!(2&n),i=e?.sourceUnit,o=e?.targetUnit;if(!i&&!o)return 1;let u=S(i,t);r||!i||w(u)||(B().warn("source unit conversion not supported"),u=1);let a=1/S(o,t);return s||!o||w(a)||(B().warn("target unit conversion not supported"),a=1),u*a}function w(t){return(0,s.Io)(t,1)}function S(t,e){if(null==t)return 1;const n=(0,i.KX)(e);return 1/(0,i.oU)(n,"meters",t)}const _=(0,c.vt)(),R=(0,c.vt)(),P=(0,u.vt)(),O=(0,f.vt)(),C=(0,c.vt)()},27615(t,e,n){n.d(e,{CK:()=>a,Hq:()=>u,MW:()=>c,TE:()=>l,yJ:()=>f});var r=n(35522),s=n(86738),i=n(95696),o=n(18251);function u(t){return null!=t.origin}function a(t){return u(t.vertexSpace)}function c(t,e){if(!u(t))return null;const[n,r,i]=t.origin;return new s.A({x:n,y:r,z:i,spatialReference:e})}function l(t,e){const{x:n,y:r,z:s,spatialReference:u}=t,a=[n,r,s??0];return"local"===(e?.vertexSpace??function(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}(u))?new o.A({origin:a}):new i.A({origin:a})}function f(t,e){return t.type===e.type&&(t.origin===e.origin||null!=t.origin&&null!=e.origin&&(0,r.t2)(t.origin,e.origin))}},620(t,e,n){n.d(e,{L:()=>a,MX:()=>o,O_:()=>u,kL:()=>c,vA:()=>i,zH:()=>l});var r=n(48163);n(78955),(0,n(91829).vt)();class s{constructor(t){this.message=t}toString(){return`AssertException: ${this.message}`}}function i(t,e="Assertion"){if(!t){const t=new Error(e).stack;throw new s(`${e} at ${t}`)}}function o(t,e){t||(e=e||"",console.warn("Verify failed: "+e+"\n"+new Error("verify").stack))}function u(t,e,n,r){let s,i=(n[0]-t[0])/e[0],o=(r[0]-t[0])/e[0];i>o&&(s=i,i=o,o=s);let u=(n[1]-t[1])/e[1],a=(r[1]-t[1])/e[1];if(u>a&&(s=u,u=a,a=s),i>a||u>o)return!1;u>i&&(i=u),a<o&&(o=a);let c=(n[2]-t[2])/e[2],l=(r[2]-t[2])/e[2];return c>l&&(s=c,c=l,l=s),!(i>l||c>o||(l<o&&(o=l),o<0))}function a(t,e,n,s,i,o=(0,r.vt)()){const u=(s[i]-n[i])*(e[0]-t[0])-(s[0]-n[0])*(e[i]-t[i]),a=(s[0]-n[0])*(t[i]-n[i])-(s[i]-n[i])*(t[0]-n[0]);if(0===u)return!1;const c=a/u;return o[0]=t[0]+c*(e[0]-t[0]),o[1]=t[i]+c*(e[i]-t[i]),!0}function c(t,e){return Math.log(t)/Math.log(e)}function l(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[3]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[7]&&0===t[8]&&0===t[9]&&1===t[10]&&0===t[11]&&1===t[15]}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8419],{5482(t,e,n){function r(t,e,n,r){var s,i=arguments.length,o=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(s=t[u])&&(o=(i<3?s(o):i>3?s(e,n,o):s(e,n))||o);return i>3&&o&&Object.defineProperty(e,n,o),o}function s(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var r,s;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose],n&&(s=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");s&&(r=function(){try{s.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}n.d(e,{Cg:()=>r,hk:()=>o,mS:()=>s}),Object.create,Object.create;var i="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function o(t){function e(e){t.error=t.hasError?new i(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var n,r=0;return function s(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(s);if(n.dispose){var i=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(i).then(s,function(t){return e(t),s()})}else r|=1}catch(t){e(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},11006(t,e,n){function r(t,e,n,r,i){s(t,e,n||0,r||t.length-1,i||o)}function s(t,e,n,r,o){for(;r>n;){if(r-n>600){var u=r-n+1,a=e-n+1,c=Math.log(u),l=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*l*(u-l)/u)*(a-u/2<0?-1:1);s(t,e,Math.max(n,Math.floor(e-a*l/u+f)),Math.min(r,Math.floor(e+(u-a)*l/u+f)),o)}var h=t[e],p=n,d=r;for(i(t,n,e),o(t[r],h)>0&&i(t,n,r);p<d;){for(i(t,p,d),p++,d--;o(t[p],h)<0;)p++;for(;o(t[d],h)>0;)d--}0===o(t[n],h)?i(t,n,d):i(t,++d,r),d<=e&&(n=d+1),e<=d&&(r=d-1)}}function i(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function o(t,e){return t<e?-1:t>e?1:0}n.d(e,{q:()=>r})},73354(t,e,n){n.d(e,{a:()=>f,b:()=>u,c:()=>s,d:()=>o,e:()=>h,f:()=>l,l:()=>c,n:()=>p,t:()=>i}),n(44208);var r=n(72727);function s(t,e,n){i(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function i(t,e,n,s=3,i=s){const o=(0,r.k)(t.length,s,3),u=(0,r.k)(e.length,i,3),a=Math.min(o,u),c=n[0],l=n[1],f=n[2],h=n[4],p=n[5],d=n[6],y=n[8],m=n[9],M=n[10],g=n[12],B=n[13],x=n[14];let T=0,b=0;for(let n=0;n<a;n++){const n=e[T],r=e[T+1],o=e[T+2];t[b]=c*n+h*r+y*o+g,t[b+1]=l*n+p*r+m*o+B,t[b+2]=f*n+d*r+M*o+x,T+=i,b+=s}return t}function o(t,e,n){u(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function u(t,e,n,s=3,i=s){const o=(0,r.k)(t.length,s,3),u=(0,r.k)(e.length,i,3),a=Math.min(o,u),c=n[0],l=n[1],f=n[2],h=n[3],p=n[4],d=n[5],y=n[6],m=n[7],M=n[8];let g=0,B=0;for(let n=0;n<a;n++){const n=e[g],r=e[g+1],o=e[g+2];t[B]=c*n+h*r+y*o,t[B+1]=l*n+p*r+m*o,t[B+2]=f*n+d*r+M*o,g+=i,B+=s}}function a(t,e,n,r=3,s=r){const i=Math.min(t.length/r,e.length/s);let o=0,u=0;for(let a=0;a<i;a++)t[u]=n*e[o],t[u+1]=n*e[o+1],t[u+2]=n*e[o+2],o+=s,u+=r;return t}function c(t,e,n,r){l(t.typedBuffer,e.typedBuffer,n,r,t.typedBufferStride,e.typedBufferStride)}function l(t,e,n,r,s=3,i=s){const o=Math.min(t.length/s,e.length/i);let u=0,a=0;const c=1/2.2;for(let l=0;l<o;l++)t[a]=r*(n*e[u])**c,t[a+1]=r*(n*e[u+1])**c,t[a+2]=r*(n*e[u+2])**c,u+=i,a+=s}function f(t,e,n,s=3,i=s){const o=(0,r.k)(t.length,s,3),u=(0,r.k)(e.length,i,3),a=Math.min(o,u);let c=0,l=0;for(let r=0;r<a;r++)t[l]=e[c]+n[0],t[l+1]=e[c+1]+n[1],t[l+2]=e[c+2]+n[2],c+=i,l+=s;return t}function h(t,e){p(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function p(t,e,n=3,r=n){const s=Math.min(t.length/n,e.length/r);let i=0,o=0;for(let u=0;u<s;u++){const s=e[i],u=e[i+1],a=e[i+2],c=s*s+u*u+a*a;if(c>0){const e=1/Math.sqrt(c);t[o]=e*s,t[o+1]=e*u,t[o+2]=e*a}i+=r,o+=n}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:l,linearToSRGBView:c,normalize:p,normalizeView:h,scale:a,scaleView:function(t,e,n){a(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,n){const r=Math.min(t.count,e.count),s=t.typedBuffer,i=t.typedBufferStride,o=e.typedBuffer,u=e.typedBufferStride;let a=0,c=0;for(let t=0;t<r;t++)s[c]=o[a]>>n,s[c+1]=o[a+1]>>n,s[c+2]=o[a+2]>>n,a+=u,c+=i},transformMat3:u,transformMat3View:o,transformMat4:i,transformMat4View:s,translate:f},Symbol.toStringTag,{value:"Module"}))},50867(t,e,n){n.d(e,{a:()=>s,b:()=>c,l:()=>a,n:()=>o,t:()=>i}),n(44208);var r=n(72727);function s(t,e,n){i(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function i(t,e,n,s=4,i=s){const o=(0,r.k)(t.length,s,4),u=(0,r.k)(e.length,i,4),a=Math.min(o,u),c=n[0],l=n[1],f=n[2],h=n[3],p=n[4],d=n[5],y=n[6],m=n[7],M=n[8];let g=0,B=0;for(let n=0;n<a;n++){const n=e[g],r=e[g+1],o=e[g+2],u=e[g+3];t[B]=c*n+h*r+y*o,t[B+1]=l*n+p*r+m*o,t[B+2]=f*n+d*r+M*o,t[B+3]=u,g+=i,B+=s}}function o(t,e){const n=Math.min(t.count,e.count),r=t.typedBuffer,s=t.typedBufferStride,i=e.typedBuffer,o=e.typedBufferStride;for(let t=0;t<n;t++){const e=t*s,n=t*o,u=i[n],a=i[n+1],c=i[n+2],l=u*u+a*a+c*c;if(l>0){const t=1/Math.sqrt(l);r[e]=t*u,r[e+1]=t*a,r[e+2]=t*c}}}function u(t,e,n,r=4){const s=Math.min(t.length/r,e.count),i=e.typedBuffer,o=e.typedBufferStride;let u=0,a=0;for(let e=0;e<s;e++)t[a]=n*i[u],t[a+1]=n*i[u+1],t[a+2]=n*i[u+2],t[a+3]=n*i[u+3],u+=o,a+=r}function a(t,e,n,r){c(t.typedBuffer,e,n,r,t.typedBufferStride)}function c(t,e,n,r,s=4){const i=Math.min(t.length/s,e.count),o=e.typedBuffer,u=e.typedBufferStride;let a=0,c=0;const l=1/2.2;for(let e=0;e<i;e++)t[c]=r*(n*o[a])**l,t[c+1]=r*(n*o[a+1])**l,t[c+2]=r*(n*o[a+2])**l,t[c+3]=r*n*o[a+3],a+=u,c+=s}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:a,normalize:o,scale:u,scaleView:function(t,e,n){u(t.typedBuffer,e,n,t.typedBufferStride)},transformMat3:i,transformMat3View:s,transformMat4:function(t,e,n,s=4,i=s){const o=(0,r.k)(t.length,s,4),u=(0,r.k)(e.length,i,4),a=Math.min(o,u),c=n[0],l=n[1],f=n[2],h=n[3],p=n[4],d=n[5],y=n[6],m=n[7],M=n[8],g=n[9],B=n[10],x=n[11],T=n[12],b=n[13],E=n[14],v=n[15];let A=0,w=0;for(let n=0;n<a;n++){const n=e[A],r=e[A+1],o=e[A+2],u=e[A+3];t[w]=c*n+p*r+M*o+T*u,t[w+1]=l*n+d*r+g*o+b*u,t[w+2]=f*n+y*r+B*o+E*u,t[w+3]=h*n+m*r+x*o+v*u,A+=i,w+=s}},transformMat4View:function(t,e,n){const s=t.typedBuffer,i=t.typedBufferStride,o=e.typedBuffer,u=e.typedBufferStride,a=(0,r.k)(s.length,i,4),c=(0,r.k)(o.length,u,4),l=Math.min(a,c),f=n[0],h=n[1],p=n[2],d=n[3],y=n[4],m=n[5],M=n[6],g=n[7],B=n[8],x=n[9],T=n[10],b=n[11],E=n[12],v=n[13],A=n[14],w=n[15];for(let t=0;t<l;t++){const e=t*i,n=t*u,r=o[n],a=o[n+1],c=o[n+2],l=o[n+3];s[e]=f*r+y*a+B*c+E*l,s[e+1]=h*r+m*a+x*c+v*l,s[e+2]=p*r+M*a+T*c+A*l,s[e+3]=d*r+g*a+b*c+w*l}}},Symbol.toStringTag,{value:"Module"}))},69540(t,e,n){var r=n(5482),s=n(69622),i=(n(44208),n(4718)),o=(n(53966),n(97768)),u=n(88620),a=n(64108);const c=Symbol("ClonableMixin"),l=t=>{var e;const n=t;let s=class extends n{constructor(){super(...arguments),this[e]=!0}static{e=c}clone(t){const e=(0,u.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");const n=e.metadata,r=e.store,s={},a=new Map;for(const e in n){const o=n[e],u=r?.originOf(e),c=o.clonable;if(o.readOnly||!1===c||7!==u&&0!==u&&5!==u&&4!==u)continue;const l=this[e];let f=null;if("function"==typeof c)f=c(l,t);else if("reference"===c)f=l;else if(f=(0,i.TU)(l,t),null!=l&&null==f)continue;0===u?a.set(e,f):s[e]=f}const c=new(0,Object.getPrototypeOf(this).constructor)(s);if(a.size){const t=(0,u.oY)(c)?.store;if(t)for(const[e,n]of a)t.set(e,n,0)}return c}};return s=(0,r.Cg)([(0,a.$)("esri.core.Clonable")],s),s},f=l(s.A);n.d(e,["OU",0,l,"Pw",0,f])},95488(t,e,n){n.d(e,{I:()=>s});var r=n(11406);class s 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 s(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:()=>s,vt:()=>r});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:r,fromValues:function(t,e,n,r,s,i,o,u,a,c,l,f,h,p,d,y){return[t,e,n,r,s,i,o,u,a,c,l,f,h,p,d,y]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,i])},48163(t,e,n){function r(){return[0,0]}function s(t){return[t[0],t[1]]}function i(t,e){return[t,e]}function o(){return i(1,1)}function u(){return i(-1,-1)}function a(){return i(1,0)}function c(){return i(0,1)}n.d(e,{fA:()=>i,o8:()=>s,vt:()=>r});const l=o(),f=u(),h=a(),p=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:f,ONES:l,UNIT_X:h,UNIT_Y:p,ZEROS:[0,0],clone:s,create:r,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){const n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:i,negativeOnes:u,ones:o,unitX:a,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["IA",0,f,"Un",0,l])},51850(t,e,n){function r(){return[0,0,0]}function s(t){return[t[0],t[1],t[2]]}function i(t,e,n){return[t,e,n]}function o(t,e,n){return[t,e,n]}function u(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 a(){return[0,0,0]}function c(){return i(1,1,1)}function l(){return i(1,0,0)}function f(){return i(0,1,0)}function h(){return i(0,0,1)}n.d(e,{CN:()=>o,S:()=>c,Ul:()=>a,ci:()=>u,fA:()=>i,o8:()=>s,vt:()=>r});const p=[0,0,0],d=c(),y=l(),m=f(),M=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:y,UNIT_Y:m,UNIT_Z:M,ZEROS:p,clone:s,create:r,freeze:o,fromArray:u,fromValues:i,ones:c,unitX:l,unitY:f,unitZ:h,zeros:a},Symbol.toStringTag,{value:"Module"})),n.d(e,["Cb",0,M,"Cw",0,y,"JP",0,m,"Un",0,d,"uY",0,p])},91829(t,e,n){function r(){return[0,0,0,0]}function s(t,e,n,r){return[t,e,n,r]}function i(t,e,n,r){return[t,e,n,r]}function o(){return s(1,1,1,1)}function u(){return s(1,0,0,0)}function a(){return s(0,1,0,0)}function c(){return s(0,0,1,0)}function l(){return s(0,0,0,1)}n.d(e,{CN:()=>i,_Y:()=>l,fA:()=>s,vt:()=>r});const f=[0,0,0,0],h=o(),p=u(),d=a(),y=c(),m=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:m,UNIT_X:p,UNIT_Y:d,UNIT_Z:y,ZEROS:f,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:i,fromArray:function(t,e=[0,0,0,0]){const n=Math.min(4,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:s,ones:o,unitW:l,unitX:u,unitY:a,unitZ:c,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Un",0,h,"uY",0,f])},58083(t,e,n){n.d(e,{$0:()=>M,$h:()=>S,B8:()=>l,C:()=>i,D_:()=>u,N9:()=>B,O7:()=>w,Qw:()=>c,Tl:()=>h,X_:()=>E,e$:()=>d,eL:()=>y,hM:()=>g,hZ:()=>o,hs:()=>p,kN:()=>m,l:()=>v,lw:()=>f,mg:()=>a,o1:()=>A,sC:()=>b,t2:()=>O,t5:()=>R,tZ:()=>I,ut:()=>C,v3:()=>_});var r=n(51850),s=n(34304);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],t}function o(t,e,n,r,s,i,o,u,a,c,l,f,h,p,d,y,m){return t[0]=e,t[1]=n,t[2]=r,t[3]=s,t[4]=i,t[5]=o,t[6]=u,t[7]=a,t[8]=c,t[9]=l,t[10]=f,t[11]=h,t[12]=p,t[13]=d,t[14]=y,t[15]=m,t}function u(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 a(t,e){if(t===e){const n=e[1],r=e[2],s=e[3],i=e[6],o=e[7],u=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]=i,t[11]=e[14],t[12]=s,t[13]=o,t[14]=u}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 l(t,e)||u(t),t}function l(t,e){const n=e[0],r=e[1],s=e[2],i=e[3],o=e[4],u=e[5],a=e[6],c=e[7],l=e[8],f=e[9],h=e[10],p=e[11],d=e[12],y=e[13],m=e[14],M=e[15],g=n*u-r*o,B=n*a-s*o,x=n*c-i*o,T=r*a-s*u,b=r*c-i*u,E=s*c-i*a,v=l*y-f*d,A=l*m-h*d,w=l*M-p*d,S=f*m-h*y,_=f*M-p*y,R=h*M-p*m;let P=g*R-B*_+x*S+T*w-b*A+E*v;return P?(P=1/P,t[0]=(u*R-a*_+c*S)*P,t[1]=(s*_-r*R-i*S)*P,t[2]=(y*E-m*b+M*T)*P,t[3]=(h*b-f*E-p*T)*P,t[4]=(a*w-o*R-c*A)*P,t[5]=(n*R-s*w+i*A)*P,t[6]=(m*x-d*E-M*B)*P,t[7]=(l*E-h*x+p*B)*P,t[8]=(o*_-u*w+c*v)*P,t[9]=(r*w-n*_-i*v)*P,t[10]=(d*b-y*x+M*g)*P,t[11]=(f*x-l*b-p*g)*P,t[12]=(u*A-o*S-a*v)*P,t[13]=(n*S-r*A+s*v)*P,t[14]=(y*B-d*T-m*g)*P,t[15]=(l*T-f*B+h*g)*P,t):null}function f(t,e,n){const r=e[0],s=e[1],i=e[2],o=e[3],u=e[4],a=e[5],c=e[6],l=e[7],f=e[8],h=e[9],p=e[10],d=e[11],y=e[12],m=e[13],M=e[14],g=e[15];let B=n[0],x=n[1],T=n[2],b=n[3];return t[0]=B*r+x*u+T*f+b*y,t[1]=B*s+x*a+T*h+b*m,t[2]=B*i+x*c+T*p+b*M,t[3]=B*o+x*l+T*d+b*g,B=n[4],x=n[5],T=n[6],b=n[7],t[4]=B*r+x*u+T*f+b*y,t[5]=B*s+x*a+T*h+b*m,t[6]=B*i+x*c+T*p+b*M,t[7]=B*o+x*l+T*d+b*g,B=n[8],x=n[9],T=n[10],b=n[11],t[8]=B*r+x*u+T*f+b*y,t[9]=B*s+x*a+T*h+b*m,t[10]=B*i+x*c+T*p+b*M,t[11]=B*o+x*l+T*d+b*g,B=n[12],x=n[13],T=n[14],b=n[15],t[12]=B*r+x*u+T*f+b*y,t[13]=B*s+x*a+T*h+b*m,t[14]=B*i+x*c+T*p+b*M,t[15]=B*o+x*l+T*d+b*g,t}function h(t,e,n){const r=n[0],s=n[1],i=n[2];if(e===t)t[12]=e[0]*r+e[4]*s+e[8]*i+e[12],t[13]=e[1]*r+e[5]*s+e[9]*i+e[13],t[14]=e[2]*r+e[6]*s+e[10]*i+e[14],t[15]=e[3]*r+e[7]*s+e[11]*i+e[15];else{const n=e[0],o=e[1],u=e[2],a=e[3],c=e[4],l=e[5],f=e[6],h=e[7],p=e[8],d=e[9],y=e[10],m=e[11];t[0]=n,t[1]=o,t[2]=u,t[3]=a,t[4]=c,t[5]=l,t[6]=f,t[7]=h,t[8]=p,t[9]=d,t[10]=y,t[11]=m,t[12]=n*r+c*s+p*i+e[12],t[13]=o*r+l*s+d*i+e[13],t[14]=u*r+f*s+y*i+e[14],t[15]=a*r+h*s+m*i+e[15]}return t}function p(t,e,n){const r=n[0],s=n[1],i=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]*s,t[5]=e[5]*s,t[6]=e[6]*s,t[7]=e[7]*s,t[8]=e[8]*i,t[9]=e[9]*i,t[10]=e[10]*i,t[11]=e[11]*i,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function d(t,e,n,r){let o=r[0],u=r[1],a=r[2],c=Math.sqrt(o*o+u*u+a*a);if(c<=(0,s.FD)())return void i(t,e);c=1/c,o*=c,u*=c,a*=c;const l=Math.sin(n),f=Math.cos(n),h=1-f,p=e[0],d=e[1],y=e[2],m=e[3],M=e[4],g=e[5],B=e[6],x=e[7],T=e[8],b=e[9],E=e[10],v=e[11],A=o*o*h+f,w=u*o*h+a*l,S=a*o*h-u*l,_=o*u*h-a*l,R=u*u*h+f,P=a*u*h+o*l,O=o*a*h+u*l,C=u*a*h-o*l,I=a*a*h+f;t[0]=p*A+M*w+T*S,t[1]=d*A+g*w+b*S,t[2]=y*A+B*w+E*S,t[3]=m*A+x*w+v*S,t[4]=p*_+M*R+T*P,t[5]=d*_+g*R+b*P,t[6]=y*_+B*R+E*P,t[7]=m*_+x*R+v*P,t[8]=p*O+M*C+T*I,t[9]=d*O+g*C+b*I,t[10]=y*O+B*C+E*I,t[11]=m*O+x*C+v*I,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15])}function y(t,e,n){const r=Math.sin(n),s=Math.cos(n),i=e[4],o=e[5],u=e[6],a=e[7],c=e[8],l=e[9],f=e[10],h=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]=i*s+c*r,t[5]=o*s+l*r,t[6]=u*s+f*r,t[7]=a*s+h*r,t[8]=c*s-i*r,t[9]=l*s-o*r,t[10]=f*s-u*r,t[11]=h*s-a*r,t}function m(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 M(t,e,n){if(0===e)return u(t);let r=n[0],i=n[1],o=n[2],a=Math.sqrt(r*r+i*i+o*o);if(a<=(0,s.FD)())return null;a=1/a,r*=a,i*=a,o*=a;const c=Math.sin(e),l=Math.cos(e),f=1-l;return t[0]=r*r*f+l,t[1]=i*r*f+o*c,t[2]=o*r*f-i*c,t[3]=0,t[4]=r*i*f-o*c,t[5]=i*i*f+l,t[6]=o*i*f+r*c,t[7]=0,t[8]=r*o*f+i*c,t[9]=i*o*f-r*c,t[10]=o*o*f+l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function g(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 B(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 x(t,e,n){const r=e[0],s=e[1],i=e[2],o=e[3],u=r+r,a=s+s,c=i+i,l=r*u,f=r*a,h=r*c,p=s*a,d=s*c,y=i*c,m=o*u,M=o*a,g=o*c;return t[0]=1-(p+y),t[1]=f+g,t[2]=h-M,t[3]=0,t[4]=f-g,t[5]=1-(l+y),t[6]=d+m,t[7]=0,t[8]=h+M,t[9]=d-m,t[10]=1-(l+p),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const T=(0,r.vt)();function b(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function E(t,e){const n=e[0],r=e[1],s=e[2],i=e[4],o=e[5],u=e[6],a=e[8],c=e[9],l=e[10];return t[0]=Math.sqrt(n*n+r*r+s*s),t[1]=Math.sqrt(i*i+o*o+u*u),t[2]=Math.sqrt(a*a+c*c+l*l),t}function v(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 A(t,e,n,r){const s=e[0],i=e[1],o=e[2],u=e[3],a=s+s,c=i+i,l=o+o,f=s*a,h=s*c,p=s*l,d=i*c,y=i*l,m=o*l,M=u*a,g=u*c,B=u*l,x=r[0],T=r[1],b=r[2];return t[0]=(1-(d+m))*x,t[1]=(h+B)*x,t[2]=(p-g)*x,t[3]=0,t[4]=(h-B)*T,t[5]=(1-(f+m))*T,t[6]=(y+M)*T,t[7]=0,t[8]=(p+g)*b,t[9]=(y-M)*b,t[10]=(1-(f+d))*b,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,s){const i=e[0],o=e[1],u=e[2],a=e[3],c=i+i,l=o+o,f=u+u,h=i*c,p=i*l,d=i*f,y=o*l,m=o*f,M=u*f,g=a*c,B=a*l,x=a*f,T=r[0],b=r[1],E=r[2],v=s[0],A=s[1],w=s[2],S=(1-(y+M))*T,_=(p+x)*T,R=(d-B)*T,P=(p-x)*b,O=(1-(h+M))*b,C=(m+g)*b,I=(d+B)*E,j=(m-g)*E,Y=(1-(h+y))*E;return t[0]=S,t[1]=_,t[2]=R,t[3]=0,t[4]=P,t[5]=O,t[6]=C,t[7]=0,t[8]=I,t[9]=j,t[10]=Y,t[11]=0,t[12]=n[0]+v-(S*v+P*A+I*w),t[13]=n[1]+A-(_*v+O*A+j*w),t[14]=n[2]+w-(R*v+C*A+Y*w),t[15]=1,t}function S(t,e,n,r,s,i,o){const u=1/(n-e),a=1/(s-r),c=1/(i-o);return t[0]=2*i*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*i*a,t[6]=0,t[7]=0,t[8]=(n+e)*u,t[9]=(s+r)*a,t[10]=(o+i)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*i*2*c,t[15]=0,t}function _(t,e,n,r,s,i,o){const u=1/(e-n),a=1/(r-s),c=1/(i-o);return t[0]=-2*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*u,t[13]=(s+r)*a,t[14]=(o+i)*c,t[15]=1,t}function R(t,e,n,r){const i=e[0],o=e[1],a=e[2];let c=i-n[0],l=o-n[1],f=a-n[2];const h=(0,s.FD)();if(Math.abs(c)<h&&Math.abs(l)<h&&Math.abs(f)<h)return void u(t);let p=1/Math.sqrt(c*c+l*l+f*f);c*=p,l*=p,f*=p;const d=r[0],y=r[1],m=r[2];let M=y*f-m*l,g=m*c-d*f,B=d*l-y*c;p=Math.sqrt(M*M+g*g+B*B),p?(p=1/p,M*=p,g*=p,B*=p):(M=0,g=0,B=0);let x=l*B-f*g,T=f*M-c*B,b=c*g-l*M;p=Math.sqrt(x*x+T*T+b*b),p?(p=1/p,x*=p,T*=p,b*=p):(x=0,T=0,b=0),t[0]=M,t[1]=x,t[2]=c,t[3]=0,t[4]=g,t[5]=T,t[6]=l,t[7]=0,t[8]=B,t[9]=b,t[10]=f,t[11]=0,t[12]=-(M*i+g*o+B*a),t[13]=-(x*i+T*o+b*a),t[14]=-(c*i+l*o+f*a),t[15]=1}function P(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 O(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 C(t){const e=(0,s.FD)(),n=t[0],r=t[1],i=t[2],o=t[4],u=t[5],a=t[6],c=t[8],l=t[9],f=t[10];return Math.abs(1-(n*n+o*o+c*c))<=e&&Math.abs(1-(r*r+u*u+l*l))<=e&&Math.abs(1-(i*i+a*a+f*f))<=e}function I(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 j=f,Y=P;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],s=e[2],i=e[3],o=e[4],u=e[5],a=e[6],c=e[7],l=e[8],f=e[9],h=e[10],p=e[11],d=e[12],y=e[13],m=e[14],M=e[15];return t[0]=u*(h*M-p*m)-f*(a*M-c*m)+y*(a*p-c*h),t[1]=-(r*(h*M-p*m)-f*(s*M-i*m)+y*(s*p-i*h)),t[2]=r*(a*M-c*m)-u*(s*M-i*m)+y*(s*c-i*a),t[3]=-(r*(a*p-c*h)-u*(s*p-i*h)+f*(s*c-i*a)),t[4]=-(o*(h*M-p*m)-l*(a*M-c*m)+d*(a*p-c*h)),t[5]=n*(h*M-p*m)-l*(s*M-i*m)+d*(s*p-i*h),t[6]=-(n*(a*M-c*m)-o*(s*M-i*m)+d*(s*c-i*a)),t[7]=n*(a*p-c*h)-o*(s*p-i*h)+l*(s*c-i*a),t[8]=o*(f*M-p*y)-l*(u*M-c*y)+d*(u*p-c*f),t[9]=-(n*(f*M-p*y)-l*(r*M-i*y)+d*(r*p-i*f)),t[10]=n*(u*M-c*y)-o*(r*M-i*y)+d*(r*c-i*u),t[11]=-(n*(u*p-c*f)-o*(r*p-i*f)+l*(r*c-i*u)),t[12]=-(o*(f*m-h*y)-l*(u*m-a*y)+d*(u*h-a*f)),t[13]=n*(f*m-h*y)-l*(r*m-s*y)+d*(r*h-s*f),t[14]=-(n*(u*m-a*y)-o*(r*m-s*y)+d*(r*a-s*u)),t[15]=n*(u*h-a*f)-o*(r*h-s*f)+l*(r*a-s*u),t},copy:i,determinant:function(t){const e=t[0],n=t[1],r=t[2],s=t[3],i=t[4],o=t[5],u=t[6],a=t[7],c=t[8],l=t[9],f=t[10],h=t[11],p=t[12],d=t[13],y=t[14],m=t[15];return(e*o-n*i)*(f*m-h*y)-(e*u-r*i)*(l*m-h*d)+(e*a-s*i)*(l*y-f*d)+(n*u-r*o)*(c*m-h*p)-(n*a-s*o)*(c*y-f*p)+(r*a-s*u)*(c*d-l*p)},equals:function(t,e){if(t===e)return!0;const n=t[0],r=t[1],i=t[2],o=t[3],u=t[4],a=t[5],c=t[6],l=t[7],f=t[8],h=t[9],p=t[10],d=t[11],y=t[12],m=t[13],M=t[14],g=t[15],B=e[0],x=e[1],T=e[2],b=e[3],E=e[4],v=e[5],A=e[6],w=e[7],S=e[8],_=e[9],R=e[10],P=e[11],O=e[12],C=e[13],I=e[14],j=e[15],Y=(0,s.FD)();return Math.abs(n-B)<=Y*Math.max(1,Math.abs(n),Math.abs(B))&&Math.abs(r-x)<=Y*Math.max(1,Math.abs(r),Math.abs(x))&&Math.abs(i-T)<=Y*Math.max(1,Math.abs(i),Math.abs(T))&&Math.abs(o-b)<=Y*Math.max(1,Math.abs(o),Math.abs(b))&&Math.abs(u-E)<=Y*Math.max(1,Math.abs(u),Math.abs(E))&&Math.abs(a-v)<=Y*Math.max(1,Math.abs(a),Math.abs(v))&&Math.abs(c-A)<=Y*Math.max(1,Math.abs(c),Math.abs(A))&&Math.abs(l-w)<=Y*Math.max(1,Math.abs(l),Math.abs(w))&&Math.abs(f-S)<=Y*Math.max(1,Math.abs(f),Math.abs(S))&&Math.abs(h-_)<=Y*Math.max(1,Math.abs(h),Math.abs(_))&&Math.abs(p-R)<=Y*Math.max(1,Math.abs(p),Math.abs(R))&&Math.abs(d-P)<=Y*Math.max(1,Math.abs(d),Math.abs(P))&&Math.abs(y-O)<=Y*Math.max(1,Math.abs(y),Math.abs(O))&&Math.abs(m-C)<=Y*Math.max(1,Math.abs(m),Math.abs(C))&&Math.abs(M-I)<=Y*Math.max(1,Math.abs(M),Math.abs(I))&&Math.abs(g-j)<=Y*Math.max(1,Math.abs(g),Math.abs(j))},exactEquals:O,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],s=e[2],i=e[3],o=n+n,u=r+r,a=s+s,c=n*o,l=r*o,f=r*u,h=s*o,p=s*u,d=s*a,y=i*o,m=i*u,M=i*a;return t[0]=1-f-d,t[1]=l+M,t[2]=h-m,t[3]=0,t[4]=l-M,t[5]=1-c-d,t[6]=p+y,t[7]=0,t[8]=h+m,t[9]=p-y,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){const n=T,r=-e[0],s=-e[1],i=-e[2],o=e[3],u=e[4],a=e[5],c=e[6],l=e[7],f=r*r+s*s+i*i+o*o;return f>0?(n[0]=2*(u*o+l*r+a*i-c*s)/f,n[1]=2*(a*o+l*s+c*r-u*i)/f,n[2]=2*(c*o+l*i+u*s-a*r)/f):(n[0]=2*(u*o+l*r+a*i-c*s),n[1]=2*(a*o+l*s+c*r-u*i),n[2]=2*(c*o+l*i+u*s-a*r)),x(t,e,n),t},fromRotation:M,fromRotationTranslation:x,fromRotationTranslationScale:A,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:m,fromXRotation:g,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:B,frustum:S,getRotation:v,getScale:E,getTranslation:b,hasIdentityRotation:I,identity:u,invert:l,invertOrIdentity:c,isOrthoNormal:C,lookAt:R,mul:j,multiply:f,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:_,perspective:function(t,e,n,r,s){const i=1/Math.tan(e/2);let o;return t[0]=i/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,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!=s&&s!==1/0?(o=1/(r-s),t[10]=(s+r)*o,t[14]=2*s*r*o):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){const s=Math.tan(e.upDegrees*Math.PI/180),i=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),u=Math.tan(e.rightDegrees*Math.PI/180),a=2/(o+u),c=2/(s+i);return t[0]=a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(o-u)*a*.5,t[9]=(s-i)*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:y,rotateY:function(t,e,n){const r=Math.sin(n),s=Math.cos(n),i=e[0],o=e[1],u=e[2],a=e[3],c=e[8],l=e[9],f=e[10],h=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]=i*s-c*r,t[1]=o*s-l*r,t[2]=u*s-f*r,t[3]=a*s-h*r,t[8]=i*r+c*s,t[9]=o*r+l*s,t[10]=u*r+f*s,t[11]=a*r+h*s,t},rotateZ:function(t,e,n){const r=Math.sin(n),s=Math.cos(n),i=e[0],o=e[1],u=e[2],a=e[3],c=e[4],l=e[5],f=e[6],h=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]=i*s+c*r,t[1]=o*s+l*r,t[2]=u*s+f*r,t[3]=a*s+h*r,t[4]=c*s-i*r,t[5]=l*s-o*r,t[6]=f*s-u*r,t[7]=h*s-a*r,t},scale:p,set:o,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:Y,subtract:P,targetTo:function(t,e,n,r){const s=e[0],i=e[1],o=e[2],u=r[0],a=r[1],c=r[2];let l=s-n[0],f=i-n[1],h=o-n[2],p=l*l+f*f+h*h;p>0&&(p=1/Math.sqrt(p),l*=p,f*=p,h*=p);let d=a*h-c*f,y=c*l-u*h,m=u*f-a*l;return p=d*d+y*y+m*m,p>0&&(p=1/Math.sqrt(p),d*=p,y*=p,m*=p),t[0]=d,t[1]=y,t[2]=m,t[3]=0,t[4]=f*m-h*y,t[5]=h*d-l*m,t[6]=l*y-f*d,t[7]=0,t[8]=l,t[9]=f,t[10]=h,t[11]=0,t[12]=s,t[13]=i,t[14]=o,t[15]=1,t},translate:h,transpose:a},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>A,Bw:()=>i,C:()=>o,Cc:()=>w,DI:()=>b,Io:()=>g,Ln:()=>M,Om:()=>v,Qr:()=>f,Re:()=>c,S8:()=>E,T9:()=>y,WQ:()=>a,Z0:()=>S,_S:()=>p,aI:()=>Y,ei:()=>_,fw:()=>P,g7:()=>O,gL:()=>R,hG:()=>B,hZ:()=>u,hs:()=>m,jk:()=>d,lw:()=>l,m3:()=>x,oW:()=>q,t2:()=>j,tn:()=>h,ze:()=>T});var r=n(51850),s=n(34304);function i(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function u(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function a(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 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,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function h(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function p(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 y(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 m(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function M(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 g(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2];return Math.sqrt(n*n+r*r+s*s)}function B(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2];return n*n+r*r+s*s}function x(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function T(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function b(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function E(t,e){const n=e[0],r=e[1],s=e[2];let i=n*n+r*r+s*s;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function v(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function A(t,e,n){const r=e[0],s=e[1],i=e[2],o=n[0],u=n[1],a=n[2];return t[0]=s*a-i*u,t[1]=i*o-r*a,t[2]=r*u-s*o,t}function w(t,e,n,r){const s=e[0],i=e[1],o=e[2];return t[0]=s+r*(n[0]-s),t[1]=i+r*(n[1]-i),t[2]=o+r*(n[2]-o),t}function S(t,e,n){const r=e[0],s=e[1],i=e[2];return t[0]=n[0]*r+n[4]*s+n[8]*i+n[12],t[1]=n[1]*r+n[5]*s+n[9]*i+n[13],t[2]=n[2]*r+n[6]*s+n[10]*i+n[14],t}function _(t,e,n){const r=e[0],s=e[1],i=e[2];return t[0]=r*n[0]+s*n[3]+i*n[6],t[1]=r*n[1]+s*n[4]+i*n[7],t[2]=r*n[2]+s*n[5]+i*n[8],t}function R(t,e,n){return P(t,e,n[0],n[1],n[2],n[3])}function P(t,e,n,r,s,i){const o=e[0],u=e[1],a=e[2],c=r*a-s*u,l=s*o-n*a,f=n*u-r*o,h=r*f-s*l,p=s*c-n*f,d=n*l-r*c,y=2*i;return t[0]=o+c*y+2*h,t[1]=u+l*y+2*p,t[2]=a+f*y+2*d,t}function O(t,e){E(C,t),E(I,e);const n=v(C,I);return n>1?0:n<-1?Math.PI:Math.acos(n)}const C=(0,r.vt)(),I=(0,r.vt)();function j(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function Y(t,e){if(t===e)return!0;const n=t[0],r=t[1],i=t[2],o=e[0],u=e[1],a=e[2],c=(0,s.FD)();return Math.abs(n-o)<=c*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-u)<=c*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(i-a)<=c*Math.max(1,Math.abs(i),Math.abs(a))}function q(t,e,n){const r=n[0]-e[0],s=n[1]-e[1],i=n[2]-e[2];let o=r*r+s*s+i*i;return o>0?(o=1/Math.sqrt(o),t[0]=r*o,t[1]=s*o,t[2]=i*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const N=c,X=l,k=f,L=g,Z=B,F=i,z=x;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:a,angle:O,bezier:function(t,e,n,r,s,i){const o=1-i,u=o*o,a=i*i,c=u*o,l=3*i*u,f=3*a*o,h=a*i;return t[0]=e[0]*c+n[0]*l+r[0]*f+s[0]*h,t[1]=e[1]*c+n[1]*l+r[1]*f+s[1]*h,t[2]=e[2]*c+n[2]*l+r[2]*f+s[2]*h,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,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:o,cross:A,crossAndNormalize:function(t,e,n){const r=e[0],s=e[1],i=e[2],o=n[0],u=n[1],a=n[2],c=s*a-i*u,l=i*o-r*a,f=r*u-s*o,h=Math.sqrt(c*c+l*l+f*f);return t[0]=c/h,t[1]=l/h,t[2]=f/h,t},direction:q,dist:L,distance:g,div:k,divide:f,dot:v,equals:Y,exactEquals:j,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,s,i){const o=i*i,u=o*(2*i-3)+1,a=o*(i-2)+i,c=o*(i-1),l=o*(3-2*i);return t[0]=e[0]*u+n[0]*a+r[0]*c+s[0]*l,t[1]=e[1]*u+n[1]*a+r[1]*c+s[1]*l,t[2]=e[2]*u+n[2]*a+r[2]*c+s[2]*l,t},inverse:b,len:F,length:i,lerp:w,max:y,min:d,mul:X,multiply:l,negate:T,normalize:E,random:function(t,e=1){const n=s.Ov,r=2*n()*Math.PI,i=2*n()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(r)*o,t[1]=Math.sin(r)*o,t[2]=i*e,t},rotateX:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[0],i[1]=s[1]*Math.cos(r)-s[2]*Math.sin(r),i[2]=s[1]*Math.sin(r)+s[2]*Math.cos(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateY:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[2]*Math.sin(r)+s[0]*Math.cos(r),i[1]=s[1],i[2]=s[2]*Math.cos(r)-s[0]*Math.sin(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateZ:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[0]*Math.cos(r)-s[1]*Math.sin(r),i[1]=s[0]*Math.sin(r)+s[1]*Math.cos(r),i[2]=s[2],t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[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:m,scaleAndAdd:M,set:u,sign:p,sqrDist:Z,sqrLen:z,squaredDistance:B,squaredLength:x,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:N,subtract:c,transformMat3:_,transformMat4:S,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:R,transformQuatValues:P},Symbol.toStringTag,{value:"Module"})),n.d(e,["Il",0,F,"jb",0,N,"lo",0,Z,"uE",0,z,"xg",0,L])},78955(t,e,n){n.d(e,{Bw:()=>m,C:()=>s,Cc:()=>x,LI:()=>h,Om:()=>B,S8:()=>g,T9:()=>f,WQ:()=>o,Z0:()=>T,aI:()=>E,hG:()=>y,hZ:()=>i,hs:()=>p,jk:()=>l,m3:()=>M,t2:()=>b});var r=n(34304);function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function i(t,e,n,r,s){return t[0]=e,t[1]=n,t[2]=r,t[3]=s,t}function o(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}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[3]=e[3]-n[3],t}function a(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}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[3]=e[3]/n[3],t}function l(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[3]=Math.min(e[3],n[3]),t}function f(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[3]=Math.max(e[3],n[3]),t}function h(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t}function p(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}function d(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2],i=e[3]-t[3];return Math.sqrt(n*n+r*r+s*s+i*i)}function y(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2],i=e[3]-t[3];return n*n+r*r+s*s+i*i}function m(t){const e=t[0],n=t[1],r=t[2],s=t[3];return Math.sqrt(e*e+n*n+r*r+s*s)}function M(t){const e=t[0],n=t[1],r=t[2],s=t[3];return e*e+n*n+r*r+s*s}function g(t,e){const n=e[0],r=e[1],s=e[2],i=e[3];let o=n*n+r*r+s*s+i*i;return o>0&&(o=1/Math.sqrt(o),t[0]=n*o,t[1]=r*o,t[2]=s*o,t[3]=i*o),t}function B(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function x(t,e,n,r){const s=e[0],i=e[1],o=e[2],u=e[3];return t[0]=s+r*(n[0]-s),t[1]=i+r*(n[1]-i),t[2]=o+r*(n[2]-o),t[3]=u+r*(n[3]-u),t}function T(t,e,n){const r=e[0],s=e[1],i=e[2],o=e[3];return t[0]=n[0]*r+n[4]*s+n[8]*i+n[12]*o,t[1]=n[1]*r+n[5]*s+n[9]*i+n[13]*o,t[2]=n[2]*r+n[6]*s+n[10]*i+n[14]*o,t[3]=n[3]*r+n[7]*s+n[11]*i+n[15]*o,t}function b(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function E(t,e){const n=t[0],s=t[1],i=t[2],o=t[3],u=e[0],a=e[1],c=e[2],l=e[3],f=(0,r.FD)();return Math.abs(n-u)<=f*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(s-a)<=f*Math.max(1,Math.abs(s),Math.abs(a))&&Math.abs(i-c)<=f*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(o-l)<=f*Math.max(1,Math.abs(o),Math.abs(l))}const v=u,A=a,w=c,S=d,_=y,R=m,P=M;Object.freeze(Object.defineProperty({__proto__:null,add:o,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},copy:s,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:S,distance:d,div:w,divide:c,dot:B,equals:E,exactEquals:b,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},len:R,length:m,lerp:x,max:f,min:l,mul:A,multiply:a,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:g,random:function(t,e=1){const n=r.Ov;let s,i,o,u,a,c;do{s=2*n()-1,i=2*n()-1,a=s*s+i*i}while(a>=1);do{o=2*n()-1,u=2*n()-1,c=o*o+u*u}while(c>=1);const l=Math.sqrt((1-a)/c);return t[0]=e*s,t[1]=e*i,t[2]=e*o*l,t[3]=e*u*l,t},round:h,scale:p,scaleAndAdd: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},set:i,sqrDist:_,sqrLen:P,squaredDistance:y,squaredLength:M,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:v,subtract:u,transformMat4:T,transformQuat:function(t,e,n){const r=e[0],s=e[1],i=e[2],o=n[0],u=n[1],a=n[2],c=n[3],l=c*r+u*i-a*s,f=c*s+a*r-o*i,h=c*i+o*s-u*r,p=-o*r-u*s-a*i;return t[0]=l*c+p*-o+f*-a-h*-u,t[1]=f*c+p*-u+h*-o-l*-a,t[2]=h*c+p*-a+l*-u-f*-o,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},75503(t,e,n){n.d(e,{wq:()=>u});var r=n(4576),s=n(21818),i=(n(44208),n(15142)),o=n(11006);class u{constructor(t=9,e){this._compareMinX=h,this._compareMinY=p,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),T.prune(),b.prune(),E.prune(),v.prune()}all(t){a(this._data,t)}search(t,e){let n=this._data;const r=this._toBBox;if(B(t,n))for(T.clear();n;){for(let s=0,i=n.children.length;s<i;s++){const i=n.children[s],o=n.leaf?r(i):i;B(t,o)&&(n.leaf?e(i):g(t,o)?a(i,e):T.push(i))}n=T.pop()}}collides(t){let e=this._data;const n=this._toBBox;if(!B(t,e))return!1;for(T.clear();e;){for(let r=0,s=e.children.length;r<s;r++){const s=e.children[r],i=e.leaf?n(s):s;if(B(t,i)){if(e.leaf||g(t,i))return!0;T.push(s)}}e=T.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,n=t.length;e<n;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new S([]),this}remove(t){if(!t)return this;let e,n=this._data,i=null,o=0,u=!1;const a=this._toBBox(t);for(E.clear(),v.clear();n||E.length>0;){if(n||(n=E.pop(),i=E.data[E.length-1],o=v.pop()??0,u=!0),n.leaf&&(e=(0,r.qh)(n.children,(0,s.z)(t),n.children.length,n.indexHint),-1!==e))return n.children.splice(e,1),E.push(n),this._condense(E),this;u||n.leaf||!g(n,a)?i?(o++,n=i.children[o],u=!1):n=null:(E.push(n),v.push(o),o=0,i=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,e,n,r){const s=n-e+1;let i=this._maxEntries;if(s<=i){const r=new S(t.slice(e,n+1));return c(r,this._toBBox),r}r||(r=Math.ceil(Math.log(s)/Math.log(i)),i=Math.ceil(s/i**(r-1)));const o=new _([]);o.height=r;const u=Math.ceil(s/i),a=u*Math.ceil(Math.sqrt(i));x(t,e,n,a,this._compareMinX);for(let s=e;s<=n;s+=a){const e=Math.min(s+a-1,n);x(t,s,e,u,this._compareMinY);for(let n=s;n<=e;n+=u){const s=Math.min(n+u-1,e);o.children.push(this._build(t,n,s,r-1))}}return c(o,this._toBBox),o}_insert(t,e,n){const r=this._toBBox,s=n?t:r(t);E.clear();const i=function(t,e,n,r){for(;r.push(e),!0!==e.leaf&&r.length-1!==n;){let n,r=1/0,s=1/0;for(let i=0,o=e.children.length;i<o;i++){const o=e.children[i],u=d(o),a=m(t,o)-u;a<s?(s=a,r=u<r?u:r,n=o):a===s&&u<r&&(r=u,n=o)}e=n||e.children[0]}return e}(s,this._data,e,E);for(i.children.push(t),f(i,s);e>=0&&E.data[e].children.length>this._maxEntries;)this._split(E,e),e--;!function(t,e,n){for(let r=n;r>=0;r--)f(e.data[r],t)}(s,E,e)}_split(t,e){const n=t.data[e],r=n.children.length,s=this._minEntries;this._chooseSplitAxis(n,s,r);const i=this._chooseSplitIndex(n,s,r);if(!i)return;const o=n.children.splice(i,n.children.length-i),u=n.leaf?new S(o):new _(o);u.height=n.height,c(n,this._toBBox),c(u,this._toBBox),e?t.data[e-1].children.push(u):this._splitRoot(n,u)}_splitRoot(t,e){this._data=new _([t,e]),this._data.height=t.height+1,c(this._data,this._toBBox)}_chooseSplitIndex(t,e,n){let r,s,i;r=s=1/0;for(let o=e;o<=n-e;o++){const e=l(t,0,o,this._toBBox),u=l(t,o,n,this._toBBox),a=M(e,u),c=d(e)+d(u);a<r?(r=a,i=o,s=c<s?c:s):a===r&&c<s&&(s=c,i=o)}return i}_chooseSplitAxis(t,e,n){const r=t.leaf?this._compareMinX:h,s=t.leaf?this._compareMinY:p;this._allDistMargin(t,e,n,r)<this._allDistMargin(t,e,n,s)&&t.children.sort(r)}_allDistMargin(t,e,n,r){t.children.sort(r);const s=this._toBBox,i=l(t,0,e,s),o=l(t,n-e,n,s);let u=y(i)+y(o);for(let r=e;r<n-e;r++){const e=t.children[r];f(i,t.leaf?s(e):e),u+=y(i)}for(let r=n-e-1;r>=e;r--){const e=t.children[r];f(o,t.leaf?s(e):e),u+=y(o)}return u}_condense(t){for(let e=t.length-1;e>=0;e--){const n=t.data[e];if(0===n.children.length)if(e>0){const s=t.data[e-1],i=s.children;i.splice((0,r.qh)(i,n,i.length,s.indexHint),1)}else this.clear();else c(n,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function a(t,e){let n=t;for(b.clear();n;){if(!0===n.leaf)for(const t of n.children)e((0,s.z)(t));else b.pushArray(n.children);n=b.pop()??null}}function c(t,e){l(t,0,t.children.length,e,t)}function l(t,e,n,r,s){s||(s=new S([])),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(let i,o=e;o<n;o++)i=t.children[o],f(s,t.leaf?r(i):i);return s}function f(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function h(t,e){return t.minX-e.minX}function p(t,e){return t.minY-e.minY}function d(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function y(t){return t.maxX-t.minX+(t.maxY-t.minY)}function m(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function M(t,e){const n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY),s=Math.min(t.maxX,e.maxX),i=Math.min(t.maxY,e.maxY);return Math.max(0,s-n)*Math.max(0,i-r)}function g(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function B(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function x(t,e,n,r,s){const i=[e,n];for(;i.length;){const e=i.pop(),n=i.pop();if(e-n<=r)continue;const u=n+Math.ceil((e-n)/r/2)*r;(0,o.q)(t,u,n,e,s),i.push(n,u,u,e)}}const T=new i.A,b=new i.A,E=new i.A,v=new i.A({deallocator:void 0});class A{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class w extends A{constructor(){super(...arguments),this.height=1,this.indexHint=new r.vW}}class S extends w{constructor(t){super(),this.children=t,this.leaf=!0}}class _ extends w{constructor(t){super(),this.children=t,this.leaf=!1}}},48526(t,e,n){n.d(e,{A:()=>m});var r,s=n(5482),i=n(4576),o=n(4718),u=n(91429),a=n(5443),c=n(91075),l=n(86738),f=n(16930),h=n(90634),p=n(47610),d=n(56993),y=n(43937);let m=r=class extends c.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:n,hasZ:r,spatialReference:s}=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 s??=f.A.WGS84,{...t,hasM:n,hasZ:r,points:e,spatialReference:s}}(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,h.ge)(this);return t?new a.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,o.o8)(this.points)}clone(){const{points:t,spatialReference:e,hasM:n,hasZ:s}=this;return new r({points:(0,o.o8)(t),spatialReference:e.clone(),hasM:n,hasZ:s})}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,i.aI)(this.points,t.points,p.v6)}addPoint(t){return(0,d.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const 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 l.A(n)}removePoint(t){if(!this._validateInputs(t))return null;const e=new l.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,s.Cg)([(0,u.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,s.Cg)([(0,u.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],m.prototype,"points",void 0),(0,s.Cg)([(0,y.K)("points")],m.prototype,"writePoints",null),m=r=(0,s.Cg)([(0,u.$K)("esri.geometry.Multipoint")],m),m.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,n){n.d(e,{A:()=>d});var r,s=n(5482),i=n(4718),o=n(91429),u=n(5443),a=n(91075),c=n(86738),l=n(16930),f=n(90634),h=n(56993),p=n(43937);let d=r=class extends a.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:n,hasZ:r,spatialReference:s}=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 s??=l.A.WGS84,{...t,hasM:n,hasZ:r,paths:e,spatialReference:s}}(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,i.o8)(t)}get extent(){const t=(0,f.Z3)(this),{spatialReference:e}=this;return t?new u.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,i.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,i.o8)(this.paths),t.curvePaths=(0,i.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,s=this.hasM;return r&&!s?new c.A(n[0],n[1],n[2],void 0,this.spatialReference):s&&!r?new c.A(n[0],n[1],void 0,n[2],this.spatialReference):r&&s?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,h.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,h.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,s.Cg)([(0,o.MZ)({readOnly:!0})],d.prototype,"cache",null),(0,s.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],d.prototype,"curvePaths",void 0),(0,s.Cg)([(0,p.K)("curvePaths")],d.prototype,"writeCurvePaths",null),(0,s.Cg)([(0,o.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,s.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],d.prototype,"paths",void 0),(0,s.Cg)([(0,p.K)("paths")],d.prototype,"writePaths",null),d=r=(0,s.Cg)([(0,o.$K)("esri.geometry.Polyline")],d),d.prototype.toJSON.isDefaultToJSON=!0},159(t,e,n){n.d(e,{A:()=>c});var r,s=n(5482),i=n(69540),o=n(25482),u=n(91429),a=n(99157);let c=r=class extends((0,i.OU)(o.o)){constructor(t){super(t),this.steps=[]}getInverse(){const t=new r;for(let e=this.steps.length-1;e>=0;e--){const n=this.steps[e];t.steps.push(n.getInverse())}return t}};(0,s.Cg)([(0,u.MZ)({type:[a.A],nonNullable:!0,json:{name:"geoTransforms"}})],c.prototype,"steps",void 0),c=r=(0,s.Cg)([(0,u.$K)("esri.geometry.operators.support.GeographicTransformation")],c)},99157(t,e,n){n.d(e,{A:()=>a});var r,s=n(5482),i=n(69540),o=n(25482),u=n(91429);let a=r=class extends((0,i.OU)(o.o)){constructor(t){super(t),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,s.Cg)([(0,u.MZ)({json:{name:"transformForward",read:t=>!t,write:(t,e,n)=>{e[n]=!t}}})],a.prototype,"isInverse",void 0),(0,s.Cg)([(0,u.MZ)({json:{write:!0}})],a.prototype,"wkt",void 0),(0,s.Cg)([(0,u.MZ)({json:{write:!0}})],a.prototype,"wkid",void 0),a=r=(0,s.Cg)([(0,u.$K)("esri.geometry.operators.support.GeographicTransformationStep")],a)},48353(t,e,n){n.d(e,{l:()=>c});var r=n(34727),s=n(58083),i=n(51850);function o(t,e,n){const r=Math.sin(t),s=Math.cos(t),i=Math.sin(e),o=Math.cos(e),u=n;return u[0]=-r,u[4]=-i*s,u[8]=o*s,u[12]=0,u[1]=s,u[5]=-i*r,u[9]=o*r,u[13]=0,u[2]=0,u[6]=o,u[10]=i,u[14]=0,u[3]=0,u[7]=0,u[11]=0,u[15]=1,u}var u=n(49208),a=n(21325);function c(t,e,n,r){const i=(0,u.Tp)(t,r);if(null==i)return!1;const c=i.source.spatialReferenceId,d=i.dest.spatialReferenceId;if(c===d&&!l(d)&&(0!==c||(0,a.aI)(t,r)))return(0,s.kN)(n,e),!0;if(l(d)){const t=u.w5[c][10],r=u.w5[10][d];return null!=t&&null!=r&&(t(e,0,h,0),r(h,0,p,0),o(f*h[0],f*h[1],n),n[12]=p[0],n[13]=p[1],n[14]=p[2],!0)}const y=l(c);if((3===d||11===d||2===d||5===d)&&(2===c||y||3===c||5===c)){const t=u.w5[c][10],r=u.w5[10][d];return null!=t&&null!=r&&(t(e,0,h,0),r(h,0,p,0),y?function(t,e,n){o(t,e,n),(0,s.mg)(n,n)}(f*h[0],f*h[1],n):(0,s.D_)(n),n[12]=p[0],n[13]=p[1],n[14]=p[2],!0)}return!1}function l(t){return 1===t||6===t||8===t||4===t}const f=(0,r.kU)(1),h=(0,i.vt)(),p=(0,i.vt)()},9762(t,e,n){n.r(e),n.d(e,{projectBuffer:()=>s});var r=n(49208);function s(t,e,n,s,i,o,u=Math.floor(t.length/3)){const a=(0,r.jd)(e,i);if(null==a)return!1;if(a===r.pO){if(t===s&&n===o)return!0;const e=n+3*u;for(let r=n,i=o;r<e;r++,i++)s[i]=t[r]??0;return!0}const c=n+3*u;for(let e=n,r=o;e<c;e+=3,r+=3)a(t,e,s,r);return!0}},65806(t,e,n){n.d(e,{g:()=>o});var r=n(51850),s=n(91218),i=n(9762);function o(t,e,n,r){if((0,s.canProjectWithoutEngine)(t.spatialReference,n))return u[0]=t.x,u[1]=t.y,u[2]=t.z??0,(0,i.projectBuffer)(u,t.spatialReference,0,e,n,0);const o=(0,s.tryProject)(t,n,r);return!!o&&(e[0]=o.x,e[1]=o.y,e[2]=o.z??0,!0)}const u=(0,r.vt)()},49208(t,e,n){n.d(e,{Tp:()=>f,jd:()=>l,pO:()=>p});var r=n(34727),s=n(86211),i=n(73941),o=n(79258),u=n(34403),a=n(21325);const c={2:{5:p,7:null,9:null,10:p,1:T,6:null,8:null,0:null,3:y,11:m,2:p,4:w},5:{5:p,7:null,9:null,10:p,1:T,6:null,8:null,0:null,3:y,11:m,2:p,4:w},7:{5:null,7:p,9:null,10:p,1:null,6:x,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:p,10:p,1:null,6:null,8:B,0:null,3:null,11:null,2:null,4:null},3:{5:d,7:null,9:null,10:d,1:function(t,e,n,r){const s=t[e]/C,i=O-2*Math.atan(Math.exp(-t[e+1]/C)),o=C+(t[e+2]??0),u=Math.cos(i)*o;n[r]=Math.cos(s)*u,n[r+1]=Math.sin(s)*u,n[r+2]=Math.sin(i)*o},6:null,8:null,0:null,3:p,11:function(t,e,n,r){d(t,e,n,r),m(n,r,n,r)},2:d,4:function(t,e,n,r){d(t,e,n,r),w(n,r,n,r)}},4:{5:S,7:null,9:null,10:S,1:function(t,e,n,r){S(t,e,n,r),T(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){S(t,e,n,r),y(n,r,n,r)},11:function(t,e,n,r){S(t,e,n,r),m(n,r,n,r)},2:S,4:p},1:{5:A,7:null,9:null,10:A,1:p,6:null,8:null,0:null,3:function(t,e,n,r){A(t,e,n,r),y(n,r,n,r)},11:function(t,e,n,r){A(t,e,n,r),m(n,r,n,r)},2:A,4:function(t,e,n,r){A(t,e,n,r),w(n,r,n,r)}},6:{5:null,7:v,9:null,10:v,1:null,6:p,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:E,10:E,1:null,6:null,8:p,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:p,3:null,11:null,2:null,4:null},10:{5:p,7:p,9:p,10:p,1:T,6:x,8:B,0:null,3:y,11:m,2:p,4:w},11:{5:M,7:null,9:null,10:M,1:function(t,e,n,r){M(t,e,n,r),T(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){M(t,e,n,r),y(n,r,n,r)},11:p,2:M,4:function(t,e,n,r){M(t,e,n,r),w(n,r,n,r)}}};function l(t,e){return f(t,e)?.projector}function f(t,e){if(null==t||null==e)return null;if(_.source.spatialReference===t&&_.dest.spatialReference===e)return _;const n=h(t,_.source),r=h(e,_.dest);return 0===n&&0===r?(0,a.aI)(t,e)?_.projector=p:_.projector=null:_.projector=c[n][r],_}function h(t,e){return t?e.spatialReference===t?e.spatialReferenceId:(e.spatialReference=t,"metersPerUnit"in e&&(e.metersPerUnit=(0,s.GA)(t,1)),(0,i.jA)(t)?e.spatialReferenceId=1:(0,a.oT)(t)?e.spatialReferenceId=2:(0,a.K8)(t)?e.spatialReferenceId=3:(0,a.r1)(t)?e.spatialReferenceId=11:t.wkt===i.Ro.wkt?e.spatialReferenceId=4:4490===t.wkid?e.spatialReferenceId=5:t.wkt===i.FY.wkt?e.spatialReferenceId=6:t.wkt===i.LJ.wkt?e.spatialReferenceId=8:(0,i.q8)(t)?e.spatialReferenceId=7:(0,i.KQ)(t)?e.spatialReferenceId=9:e.spatialReferenceId=0):0}function p(t,e,n,r){t!==n&&(n[r++]=t[e++],n[r++]=t[e++],n[r]=t[e]??0)}function d(t,e,n,r){n[r]=P*(t[e]/C),n[r+1]=P*(O-2*Math.atan(Math.exp(-t[e+1]/C))),n[r+2]=t[e+2]??0}function y(t,e,n,s){!function(t,e,n,s,i){const o=.4999999*Math.PI,u=(0,r.qE)(R*t[e+1],-o,o),a=Math.sin(u);n[s++]=R*t[e]*i.radius,n[s++]=i.halfSemiMajorAxis*Math.log((1+a)/(1-a)),n[s]=t[e+2]??0}(t,e,n,s,o.$O)}function m(t,e,n,r){n[r]=t[e]*I,n[r+1]=t[e+1]*I,n[r+2]=t[e+2]??0}function M(t,e,n,r){n[r]=t[e]*j,n[r+1]=t[e+1]*j,n[r+2]=t[e+2]??0}function g(t,e,n,r,s){const i=s+(t[e+2]??0),o=R*t[e],u=R*t[e+1],a=Math.cos(u)*i;n[r]=Math.cos(o)*a,n[r+1]=Math.sin(o)*a,n[r+2]=Math.sin(u)*i}function B(t,e,n,r){g(t,e,n,r,o.Sw.radius)}function x(t,e,n,r){g(t,e,n,r,o.sH.radius)}function T(t,e,n,r){g(t,e,n,r,o.$O.radius)}function b(t,e,n,s,i){const o=t[e],u=t[e+1],a=t[e+2]??0,c=Math.sqrt(o*o+u*u+a*a),l=(0,r.YN)(a/(0===c?1:c)),f=Math.atan2(u,o);n[s++]=P*f,n[s++]=P*l,n[s]=c-i}function E(t,e,n,r){b(t,e,n,r,o.Sw.radius)}function v(t,e,n,r){b(t,e,n,r,o.sH.radius)}function A(t,e,n,r){b(t,e,n,r,o.$O.radius)}function w(t,e,n,r){!function(t,e,n,r,s){const i=R*t[e],o=R*t[e+1],u=t[e+2]??0,a=Math.sin(o),c=Math.cos(o),l=s.radius/Math.sqrt(1-s.eccentricitySquared*a*a);n[r++]=(l+u)*c*Math.cos(i),n[r++]=(l+u)*c*Math.sin(i),n[r++]=(l*(1-s.eccentricitySquared)+u)*a}(t,e,n,r,o.$O)}function S(t,e,n,r){const s=u.TP,i=t[e],a=t[e+1],c=t[e+2]??0;let l,f,h,p,d,y,m,M,g,B,x,T,b,E,v,A,w,S,_,R,O;l=Math.abs(c),f=i*i+a*a,h=Math.sqrt(f),p=f+c*c,d=Math.sqrt(p),R=Math.atan2(a,i),y=c*c/p,m=f/p,E=s.a2/d,v=s.a3-s.a4/d,m>.3?(M=l/d*(1+m*(s.a1+E+y*v)/d),_=Math.asin(M),B=M*M,g=Math.sqrt(1-B)):(g=h/d*(1-y*(s.a5-E-m*v)/d),_=Math.acos(g),B=1-g*g,M=Math.sqrt(B)),x=1-o.$O.eccentricitySquared*B,T=o.$O.radius/Math.sqrt(x),b=s.a6*T,E=h-T*g,v=l-b*M,w=g*E+M*v,A=g*v-M*E,S=A/(b/x+w),_+=S,O=w+A*S/2,c<0&&(_=-_),n[r++]=P*R,n[r++]=P*_,n[r]=O}const _={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:p},R=(0,r.kU)(1),P=(0,r.KJ)(1),O=.5*Math.PI,C=o.$O.radius,I=C*Math.PI/180,j=180/(C*Math.PI);n.d(e,["w5",0,c])},91218(t,e,n){n.r(e),n.d(e,{canProjectWithoutEngine:()=>D,initializeProjection:()=>G,isEqualBaseGCS:()=>$,isLoaded:()=>C,isLoadedOrLoad:()=>I,isLoadedOrLoadFor:()=>j,load:()=>q,project:()=>N,projectAsync:()=>V,projectExtent:()=>st,projectMany:()=>X,projectMultipoint:()=>H,projectOrLoad:()=>L,projectOrLoadMany:()=>Z,projectPoint:()=>W,projectPolygon:()=>nt,projectPolyline:()=>tt,projectWithoutEngine:()=>K,requiresLoad:()=>Y,test:()=>U,tryProject:()=>k,unload:()=>z});var r=n(49186),s=n(17676),i=n(62788),o=n(95488),u=n(51850),a=n(21276),c=n(73941),l=n(5443),f=n(91075),h=n(48526),p=n(86738),d=n(39829),y=n(82799),m=n(16930),M=n(98764),g=n(159),B=n(9762),x=n(49208);function T(t,e,n,r,s,i){return b[0]=t,b[1]=e,b[2]=n,(0,B.projectBuffer)(b,r,0,s,i,0)}const b=(0,u.vt)();var E=n(60408),v=n(21325),A=n(52006);let w=null,S=null,_=null,R=null,P={};const O=new o.I;function C(){return!!(S?.isLoaded()&&_?.isLoaded()&&R?.isLoaded())}function I(){return!!C()||((0,i.gc)(O),q(),!1)}function j(t,e){return!t||!e||D(t,e)||I()}function Y(t,e){return!D(t,e)&&!C()}async function q(t){null==w&&(w=Promise.all([n.e(3276).then(n.bind(n,83276)).then(t=>(S=t,S.load())),n.e(8377).then(n.bind(n,8377)).then(t=>(_=t,_.load())),n.e(2158).then(n.bind(n,12158)).then(t=>(R=t,R.load()))])),await w,(0,s.Te)(t),O.notify()}function N(t,e,n){return Array.isArray(t)?0===t.length?[]:((0,a.H)(t),X(t,t[0].spatialReference,e,n)):((0,a.f)(t),X([t],t.spatialReference,e,n)[0])}function X(t,e,n,r){if(null==e||null==n)return t;if(D(e,n,r))return t.map(t=>K(t,e,n));if(null==r?.geographicTransformation&&(0,c.jA)(e))return X(t.map(t=>K(t,e,m.A.WGS84)),m.A.WGS84,n,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,c.jA)(n))return X(t,e,m.A.WGS84).map(t=>K(t,m.A.WGS84,n));if(!C())throw new F;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:R.getTransformation(e,n,r.areaOfInterestExtent)||new g.A};else if(!r?.areaOfInterestExtent){const t=function(t,e){return[t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??"",e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??""].join()}(e,n);let s=P[t];s||(s=R.getTransformation(e,n)||new g.A,P[t]=s),r={geographicTransformation:s,zConversionDisabled:r?.zConversionDisabled}}return t[0].spatialReference||(t[0].spatialReference=e),t[0]instanceof f.A?S.executeMany(t,n,r):_.executeMany(t,n,r)}function k(t,e,n){try{return N(t,e,n)}catch(t){return null}}function L(t,e){const n=Z([t],e);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function Z(t,e,n){if(!C())for(const n of t)if(null!=n&&!(0,v.aI)(n.spatialReference,e)&&(0,v.fn)(n.spatialReference)&&(0,v.fn)(e)&&!D(n.spatialReference,e))return(0,i.gc)(O),{pending:q(),geometries:null};return{pending:null,geometries:t.map(t=>null==t?null:(0,v.aI)(t.spatialReference,e)?t:(0,v.fn)(t.spatialReference)&&(0,v.fn)(e)?N(t,e,n):null)}}class F extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function z(){w=null,S=null,_=null,R=null,P={}}const U={get loadPromise(){return w}};async function V(t,e,n){if((0,s.Te)(n),!t)return t;const r=Z(Array.isArray(t)?t:[t],e,n);if(r.pending)return await r.pending,(0,s.Te)(n),V(t,e,n);const i=r.geometries??[];return Array.isArray(t)?i:i[0]}function D(t,e,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,v.aI)(t,e)||(0,v.fn)(t)&&(0,v.fn)(e)&&!!(0,x.jd)(t,e))}function $(t,e){if((0,v.aI)(t,e))return!0;if(!(0,v.fn)(t)||!(0,v.fn)(e))return!1;const n=(0,v.oT)(t)||(0,v.K8)(t)||(0,v.x1)(t),r=(0,v.oT)(e)||(0,v.K8)(e)||(0,v.x1)(e);return n&&r}async function G(t,e,n,r){if(C())return(0,s.NO)(r);if(Array.isArray(t)){for(const{source:e,dest:n,options:s}of t)if(e&&n&&!D(e,n,s))return q(r)}else if(t&&e&&!D(t,e,n))return q(r);return(0,s.NO)(r)}function K(t,e,n){return t?(0,E.fT)(t)?J(t,e,new p.A,n,0):(0,E.ZC)(t)?it(t,e,new l.A,n,0):(0,E.Bi)(t)?rt(t,e,new d.A,n,0):(0,E.Rg)(t)?et(t,e,new y.A,n,0):(0,E.U9)(t)?Q(t,e,new h.A,n,0):null:null}function W(t,e,n=e.spatialReference,r=0){return null!=n&&null!=t.spatialReference&&null!=J(t,t.spatialReference,e,n,r)}function J(t,e,n,r,s){ct[0]=t.x,ct[1]=t.y;const i=t.z;return ct[2]=void 0!==i?i:s,(0,B.projectBuffer)(ct,e,0,ct,r,0)?(n.x=ct[0],n.y=ct[1],n.spatialReference=r,void 0!==i||(0,c.xP)(r)?(n.z=ct[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===t.m?(n.m=void 0,n.hasM=!1):(n.m=t.m,n.hasM=!0),n):null}function H(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=Q(t,t.spatialReference,e,n,r)}function Q(t,e,n,r,s){const{points:i,hasZ:o,hasM:u}=t,a=[],c=i.length,l=[];for(const t of i)l.push(t[0],t[1],o?t[2]:s);if(!(0,B.projectBuffer)(l,e,0,l,r,0,c))return null;const f=at(o,r);for(let t=0;t<c;++t){const e=3*t,n=l[e],r=l[e+1];f&&u?a.push([n,r,l[e+2],i[t][3]]):f?a.push([n,r,l[e+2]]):u?a.push([n,r,i[t][2]]):a.push([n,r])}return n.points=a,n.spatialReference=r,n.hasZ=o,n.hasM=u,n}function tt(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=et(t,t.spatialReference,e,n,r)}function et(t,e,n,r,s){const{curvePaths:i,paths:o,hasZ:u,hasM:a}=t;if(!(i?ut(i,u??!1,a??!1,e,n.curvePaths=[],r,s):ot(o,u??!1,a??!1,e,n.paths,r,s)))return null;const c=at(u,r);return n.spatialReference=r,n.hasZ=c,n.hasM=a,n}function nt(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=rt(t,t.spatialReference,e,n,r)}function rt(t,e,n,r,s){const{curveRings:i,rings:o,hasZ:u,hasM:a}=t;return(i?ut(i,u??!1,a??!1,e,n.curveRings=[],r,s):ot(o,u??!1,a??!1,e,n.rings,r,s))?(n.spatialReference=r,n.hasZ=at(u,r),n.hasM=a,n):null}function st(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=it(t,t.spatialReference,e,n,r)}function it(t,e,n,r,s){const{xmin:i,ymin:o,xmax:u,ymax:a,hasZ:c,hasM:l}=t;if(!T(i,o,c?t.zmin:s,e,ct,r))return null;const f=at(c,r);return n.xmin=ct[0],n.ymin=ct[1],f&&(n.zmin=ct[2]),T(u,a,c?t.zmax:s,e,ct,r)?(n.xmax=ct[0],n.ymax=ct[1],f&&(n.zmax=ct[2]),l&&(n.mmin=t.mmin,n.mmax=t.mmax),n.spatialReference=r,n):null}function ot(t,e,n,r,s,i,o=0){const u=new Array;for(const n of t)for(const t of n)u.push(t[0],t[1],e?t[2]:o);if(!(0,B.projectBuffer)(u,r,0,u,i,0))return!1;let a=0;s.length=0;const c=e?3:2,l=at(e,i);for(const e of t){const t=new Array;for(const r of e){const e=u.slice(a,a+=3);l||e.pop(),n&&e.push(r[c]),t.push(e)}s.push(t)}return!0}function ut(t,e,n,r,s,i,o=0){const u=new Array;for(const n of t)for(const t of n){if((0,A.FG)(t))return!1;if((0,A.aO)(t)){const[n,r]=t.c;u.push(n[0],n[1],e?n[2]:o,r[0],r[1],o);continue}if((0,A.n1)(t)){const[n,r,s]=t.b;u.push(n[0],n[1],e?n[2]:o,r[0],r[1],o,s[0],s[1],o);continue}const n=t;u.push(n[0],n[1],e?n[2]:o)}if(!(0,B.projectBuffer)(u,r,0,u,i,0))return!1;let a=0;s.length=0;const c=e?3:2,l=at(e,i);for(const e of t){const t=new Array;for(const r of e){const e=u.slice(a,a+=3);if(l||e.pop(),n&&e.push((0,A.yP)(r)[c]),(0,A.FG)(r))return!1;if((0,A.aO)(r)){const n=u[a++],r=u[a++];++a,t.push({c:[e,[n,r]]});continue}if((0,A.n1)(r)){const n=u[a++],r=u[a++];++a;const s=u[a++],i=u[a++];++a,t.push({b:[e,[n,r],[s,i]]});continue}t.push(e)}s.push(t)}return!0}function at(t,e){return t||(0,c.xP)(e)||(0,v.aI)(e,M.Y0)}const ct=(0,u.vt)()},98764(t,e,n){n.d(e,{lO:()=>l});var r=n(73941),s=n(16930),i=n(21325);const o=new s.A(r.fv),u=new s.A(r.FY),a=new s.A(r.LJ),c=new s.A(r.Ro);function l(t){const e=f.get(t);if(e)return e;let n=o;if(t)if(t===u)n=u;else if(t===a)n=a;else{const e=t.wkid,r=t.latestWkid;if(null!=e||null!=r)(0,i.tl)(e)||(0,i.tl)(r)?n=u:((0,i.ZL)(e)||(0,i.ZL)(r))&&(n=a);else{const e=t.wkt2??t.wkt;if(e){const t=e.toUpperCase();t===h?n=u:t===p&&(n=a)}}}return f.set(t,n),n}const f=new Map,h=u.wkt.toUpperCase(),p=a.wkt.toUpperCase();n.d(e,["GD",0,o,"Y0",0,c])},95696(t,e,n){n.d(e,{A:()=>c});var r,s=n(5482),i=n(69540),o=n(25482),u=n(91429),a=n(93223);let c=class extends((0,i.OU)(o.o)){static{r=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,s.Cg)([(0,a.e)({georeferenced:"georeferenced"},{readOnly:!0})],c.prototype,"type",void 0),(0,s.Cg)([(0,u.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],c.prototype,"origin",void 0),c=r=(0,s.Cg)([(0,u.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],c)},18251(t,e,n){n.d(e,{A:()=>c});var r=n(5482),s=n(69540),i=n(25482),o=n(91429),u=n(51850),a=n(93223);let c=class extends((0,s.OU)(i.o)){constructor(t){super(t),this.type="local",this.origin=(0,u.vt)()}};(0,r.Cg)([(0,a.e)({local:"local"},{readOnly:!0})],c.prototype,"type",void 0),(0,r.Cg)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,r.Cg)([(0,o.$K)("esri.geometry.support.MeshLocalVertexSpace")],c)},13030(t,e,n){n.d(e,{Y$:()=>g,XW:()=>M,qB:()=>R,Qt:()=>K,My:()=>Q,bf:()=>V,jZ:()=>A,j0:()=>w,Sx:()=>S,E$:()=>_,Qy:()=>it,h:()=>N,P:()=>Z,SL:()=>I,dy:()=>rt,ES:()=>ot,gH:()=>x,ZD:()=>B,si:()=>P,mJ:()=>W,UL:()=>tt,D6:()=>D,Yi:()=>X,An:()=>F,LC:()=>j,xs:()=>b,EC:()=>T,Xm:()=>O,Vp:()=>J,zD:()=>et,m8:()=>$,nS:()=>k,H$:()=>z,eI:()=>Y,td:()=>st,Eq:()=>v,jz:()=>E,Aj:()=>C,E7:()=>H,Y4:()=>nt,TX:()=>G,Uz:()=>L,ml:()=>U,XP:()=>q});var r=n(34727),s=n(37585),i=n(48163),o=n(78955),u=n(91829),a=n(20498);class c{static{this.ElementCount=9}constructor(t,e,n=0,r,s){this.TypedArrayConstructor=t,this.elementCount=9;const i=this.TypedArrayConstructor;void 0===r&&(r=9*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:n;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-n)/i.BYTES_PER_ELEMENT),this.typedBufferStride=r/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,n=this.count-e){const r=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,r,this.stride,r+n*this.stride)}getMat(t,e){let n=t*this.typedBufferStride;for(let t=0;t<9;t++)e[t]=this.typedBuffer[n++];return e}setMat(t,e){let n=t*this.typedBufferStride;for(let t=0;t<9;t++)this.typedBuffer[n++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,n){this.typedBuffer[t*this.typedBufferStride+e]=n}copyFrom(t,e,n){const r=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=n*e.typedBufferStride;for(let t=0;t<9;++t)r[i++]=s[o++]}get buffer(){return this.typedBuffer.buffer}}class l{static{this.ElementCount=16}constructor(t,e,n=0,r,s){this.TypedArrayConstructor=t,this.elementCount=16;const i=this.TypedArrayConstructor;void 0===r&&(r=16*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:n;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-n)/i.BYTES_PER_ELEMENT),this.typedBufferStride=r/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,n=this.count-e){const r=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,r,this.stride,r+n*this.stride)}getMat(t,e){let n=t*this.typedBufferStride;for(let t=0;t<16;t++)e[t]=this.typedBuffer[n++];return e}setMat(t,e){let n=t*this.typedBufferStride;for(let t=0;t<16;t++)this.typedBuffer[n++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,n){this.typedBuffer[t*this.typedBufferStride+e]=n}copyFrom(t,e,n){this.copyFromTypedBuffer(t,e.typedBuffer,n*e.typedBufferStride)}copyFromTypedBuffer(t,e,n){const r=this.typedBuffer;let s=t*this.typedBufferStride;for(let t=0;t<16;++t)r[s++]=e[n++]}get buffer(){return this.typedBuffer.buffer}}class f{static{this.ElementCount=1}constructor(t,e,n=0,r,s){this.TypedArrayConstructor=t,this.elementCount=1;const i=this.TypedArrayConstructor;void 0===r&&(r=i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:n;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-n)/i.BYTES_PER_ELEMENT),this.stride=r,this.typedBufferStride=r/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride)}sliceBuffer(t,e,n=this.count-e){const r=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,r,this.stride,r+n*this.stride)}get(t){return this.typedBuffer[t*this.typedBufferStride]}set(t,e){this.typedBuffer[t*this.typedBufferStride]=e}get buffer(){return this.typedBuffer.buffer}}class h{static{this.ElementCount=2}constructor(t,e,n=0,r,s){this.TypedArrayConstructor=t,this.start=n,this.elementCount=2;const i=this.TypedArrayConstructor;void 0===r&&(r=2*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:n;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-n)/i.BYTES_PER_ELEMENT),this.typedBufferStride=r/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,n=this.count-e){const r=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,r,this.stride,r+n*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,s.hZ)(e,this.typedBuffer[t],this.typedBuffer[t+1])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t]=e[1]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,n){this.typedBuffer[t*this.typedBufferStride+e]=n}setValues(t,e,n){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t]=n}copyFrom(t,e,n){const r=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=n*e.typedBufferStride;r[i++]=s[o++],r[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}var p=n(35522);class d{static{this.ElementCount=3}constructor(t,e,n=0,r,s){this.TypedArrayConstructor=t,this.elementCount=3;const i=this.TypedArrayConstructor;void 0===r&&(r=3*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:n;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-n)/i.BYTES_PER_ELEMENT),this.typedBufferStride=r/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,n=this.count-e){const r=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,r,this.stride,r+n*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,p.hZ)(e,this.typedBuffer[t],this.typedBuffer[t+1],this.typedBuffer[t+2])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t]=e[2]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,n){this.typedBuffer[t*this.typedBufferStride+e]=n}setValues(t,e,n,r){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=n,this.typedBuffer[t]=r}copyFrom(t,e,n){const r=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=n*e.typedBufferStride;r[i++]=s[o++],r[i++]=s[o++],r[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}class y{static{this.ElementCount=4}constructor(t,e,n=0,r,s){this.TypedArrayConstructor=t,this.start=n,this.elementCount=4;const i=this.TypedArrayConstructor;void 0===r&&(r=4*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:n;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-n)/i.BYTES_PER_ELEMENT),this.typedBufferStride=r/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,n=this.count-e){const r=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,r,this.stride,r+n*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,o.hZ)(e,this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t++]=e[2],this.typedBuffer[t]=e[3]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,n){this.typedBuffer[t*this.typedBufferStride+e]=n}setValues(t,e,n,r,s){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=n,this.typedBuffer[t++]=r,this.typedBuffer[t]=s}copyFrom(t,e,n){const r=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=n*e.typedBufferStride;r[i++]=s[o++],r[i++]=s[o++],r[i++]=s[o++],r[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}var m=n(620);class M extends f{constructor(t,e=0,n,r){(0,m.vA)(a.SX),super((0,a.pX)(),t,e,n,r),this.elementType="f16"}static{this.ElementType="f16"}}class g extends f{constructor(t,e=0,n,r){super(Float32Array,t,e,n,r),this.elementType="f32"}static{this.ElementType="f32"}}class B extends h{constructor(t,e=0,n,r){(0,m.vA)(a.SX),super((0,a.pX)(),t,e,n,r),this.elementType="f16"}slice(t,e){return this.sliceBuffer(B,t,e)}static{this.ElementType="f16"}}class x extends h{constructor(t,e=0,n,r){super(Float32Array,t,e,n,r),this.elementType="f32"}slice(t,e){return this.sliceBuffer(x,t,e)}static{this.ElementType="f32"}}class T extends d{constructor(t,e=0,n,r){(0,m.vA)(a.SX),super((0,a.pX)(),t,e,n,r),this.elementType="f16"}slice(t,e){return this.sliceBuffer(T,t,e)}static{this.ElementType="f16"}}class b extends d{constructor(t,e=0,n,r){super(Float32Array,t,e,n,r),this.elementType="f32"}slice(t,e){return this.sliceBuffer(b,t,e)}static fromTypedArray(t,e){return new b(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f32"}}class E extends y{constructor(t,e=0,n,r){(0,m.vA)(a.SX),super((0,a.pX)(),t,e,n,r),this.elementType="f16"}slice(t,e){return this.sliceBuffer(E,t,e)}static{this.ElementType="f16"}}class v extends y{constructor(t,e=0,n,r){super(Float32Array,t,e,n,r),this.elementType="f32"}slice(t,e){return this.sliceBuffer(v,t,e)}static{this.ElementType="f32"}}class A extends c{constructor(t,e=0,n,r){super(Float32Array,t,e,n,r),this.elementType="f32"}slice(t,e){return this.sliceBuffer(A,t,e)}static{this.ElementType="f32"}}class w extends c{constructor(t,e=0,n,r){super(Float64Array,t,e,n,r),this.elementType="f64"}slice(t,e){return this.sliceBuffer(w,t,e)}static{this.ElementType="f64"}}class S extends l{constructor(t,e=0,n,r){super(Float32Array,t,e,n,r),this.elementType="f32"}slice(t,e){return this.sliceBuffer(S,t,e)}static{this.ElementType="f32"}}class _ extends l{constructor(t,e=0,n,r){super(Float64Array,t,e,n,r),this.elementType="f64"}slice(t,e){return this.sliceBuffer(_,t,e)}static{this.ElementType="f64"}}class R extends f{constructor(t,e=0,n,r){super(Float64Array,t,e,n,r),this.elementType="f64"}slice(t,e){return this.sliceBuffer(R,t,e)}static{this.ElementType="f64"}}class P extends h{constructor(t,e=0,n,r){super(Float64Array,t,e,n,r),this.elementType="f64"}slice(t,e){return this.sliceBuffer(P,t,e)}static{this.ElementType="f64"}}class O extends d{constructor(t,e=0,n,r){super(Float64Array,t,e,n,r),this.elementType="f64"}slice(t,e){return this.sliceBuffer(O,t,e)}static fromTypedArray(t,e){return new O(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f64"}}class C extends y{constructor(t,e=0,n,r){super(Float64Array,t,e,n,r),this.elementType="f64"}slice(t,e){return this.sliceBuffer(C,t,e)}static{this.ElementType="f64"}}class I extends f{constructor(t,e=0,n,r){super(Uint8Array,t,e,n,r),this.elementType="u8"}slice(t,e){return this.sliceBuffer(I,t,e)}static{this.ElementType="u8"}}class j extends h{constructor(t,e=0,n,r){super(Uint8Array,t,e,n,r),this.elementType="u8"}slice(t,e){return this.sliceBuffer(j,t,e)}static{this.ElementType="u8"}}class Y extends d{constructor(t,e=0,n,r){super(Uint8Array,t,e,n,r),this.elementType="u8"}slice(t,e){return this.sliceBuffer(Y,t,e)}static fromTypedArray(t,e){return new Y(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="u8"}}class q extends y{constructor(t,e=0,n,r){super(Uint8Array,t,e,n,r),this.elementType="u8"}slice(t,e){return this.sliceBuffer(q,t,e)}static{this.ElementType="u8"}}class N extends f{constructor(t,e=0,n,r){super(Uint16Array,t,e,n,r),this.elementType="u16"}slice(t,e){return this.sliceBuffer(N,t,e)}static{this.ElementType="u16"}}class X extends h{constructor(t,e=0,n,r){super(Uint16Array,t,e,n,r),this.elementType="u16"}slice(t,e){return this.sliceBuffer(X,t,e)}static{this.ElementType="u16"}}class k extends d{constructor(t,e=0,n,r){super(Uint16Array,t,e,n,r),this.elementType="u16"}slice(t,e){return this.sliceBuffer(k,t,e)}static{this.ElementType="u16"}}class L extends y{constructor(t,e=0,n,r){super(Uint16Array,t,e,n,r),this.elementType="u16"}slice(t,e){return this.sliceBuffer(L,t,e)}static{this.ElementType="u16"}}class Z extends f{constructor(t,e=0,n,r){super(Uint32Array,t,e,n,r),this.elementType="u32"}slice(t,e){return this.sliceBuffer(Z,t,e)}static{this.ElementType="u32"}}class F extends h{constructor(t,e=0,n,r){super(Uint32Array,t,e,n,r),this.elementType="u32"}slice(t,e){return this.sliceBuffer(F,t,e)}static{this.ElementType="u32"}}class z extends d{constructor(t,e=0,n,r){super(Uint32Array,t,e,n,r),this.elementType="u32"}slice(t,e){return this.sliceBuffer(z,t,e)}static{this.ElementType="u32"}}class U extends y{constructor(t,e=0,n,r){super(Uint32Array,t,e,n,r),this.elementType="u32"}slice(t,e){return this.sliceBuffer(U,t,e)}static{this.ElementType="u32"}}class V extends f{constructor(t,e=0,n,r){super(Int8Array,t,e,n,r),this.elementType="i8"}slice(t,e){return this.sliceBuffer(V,t,e)}static{this.ElementType="i8"}}class D extends h{constructor(t,e=0,n,r){super(Int8Array,t,e,n,r),this.elementType="i8"}slice(t,e){return this.sliceBuffer(D,t,e)}static{this.ElementType="i8"}}class $ extends d{constructor(t,e=0,n,r){super(Int8Array,t,e,n,r),this.elementType="i8"}slice(t,e){return this.sliceBuffer($,t,e)}static{this.ElementType="i8"}}class G extends y{constructor(t,e=0,n,r){super(Int8Array,t,e,n,r),this.elementType="i8"}slice(t,e){return this.sliceBuffer(G,t,e)}static{this.ElementType="i8"}}class K extends f{constructor(t,e=0,n,r){super(Int16Array,t,e,n,r),this.elementType="i16"}slice(t,e){return this.sliceBuffer(K,t,e)}static{this.ElementType="i16"}}class W extends h{constructor(t,e=0,n,r){super(Int16Array,t,e,n,r),this.elementType="i16"}slice(t,e){return this.sliceBuffer(W,t,e)}static{this.ElementType="i16"}}class J extends d{constructor(t,e=0,n,r){super(Int16Array,t,e,n,r),this.elementType="i16"}slice(t,e){return this.sliceBuffer(J,t,e)}static{this.ElementType="i16"}}class H extends y{constructor(t,e=0,n,r){super(Int16Array,t,e,n,r),this.elementType="i16"}slice(t,e){return this.sliceBuffer(H,t,e)}static{this.ElementType="i16"}}class Q extends f{constructor(t,e=0,n,r){super(Int32Array,t,e,n,r),this.elementType="i32"}slice(t,e){return this.sliceBuffer(Q,t,e)}static{this.ElementType="i32"}}class tt extends h{constructor(t,e=0,n,r){super(Int32Array,t,e,n,r),this.elementType="i32"}slice(t,e){return this.sliceBuffer(tt,t,e)}static{this.ElementType="i32"}}class et extends d{constructor(t,e=0,n,r){super(Int32Array,t,e,n,r),this.elementType="i32"}slice(t,e){return this.sliceBuffer(et,t,e)}static{this.ElementType="i32"}}class nt extends y{constructor(t,e=0,n,r){super(Int32Array,t,e,n,r),this.elementType="i32"}slice(t,e){return this.sliceBuffer(nt,t,e)}static{this.ElementType="i32"}}class rt extends I{constructor(t,e=0,n,r){super(t,e,n,r)}get(t){return this.typedBuffer[t*this.typedBufferStride]/255}set(t,e){this.typedBuffer[t*this.typedBufferStride]=Math.round(255*(0,r.qE)(e,0,1))}slice(t,e){return this.sliceBuffer(rt,t,e)}}class st extends q{constructor(t,e=0,n,r){super(t,e,n,r)}getVec(t,e){return(0,o.hs)(e,super.getVec(t,e),1/255)}setVec(t,e){(0,o.jk)(at,(0,o.T9)(at,e,u.uY),u.Un),(0,o.hs)(at,at,255),(0,o.LI)(at,at),super.setVec(t,at)}get(t,e){return super.get(t,e)/255}set(t,e,n){super.set(t,e,Math.round(255*(0,r.qE)(n,0,1)))}setValues(t,e,n,r,s){(0,o.hZ)(at,e,n,r,s),this.setVec(t,at)}slice(t,e){return this.sliceBuffer(st,t,e)}}class it extends K{constructor(t,e=0,n,r){super(t,e,n,r)}get(t){return Math.max(super.get(t)/32767,-1)}set(t,e){super.set(t,Math.round(32767*(0,r.qE)(e,-1,1)))}slice(t,e){return this.sliceBuffer(it,t,e)}}class ot extends W{constructor(t,e=0,n,r){super(t,e,n,r)}getVec(t,e){return(0,s.hZ)(ut,-1,-1),(0,s.T9)(e,(0,s.hs)(e,super.getVec(t,e),1/32767),ut)}setVec(t,e){(0,s.qE)(ut,e,i.IA,i.Un),(0,s.hs)(ut,ut,32767),(0,s.LI)(ut,ut),super.setVec(t,ut)}get(t,e){return Math.max(super.get(t,e)/32767,-1)}set(t,e,n){super.set(t,e,Math.round(32767*(0,r.qE)(n,-1,1)))}setValues(t,e,n){(0,s.hZ)(ut,e,n),this.setVec(t,ut)}slice(t,e){return this.sliceBuffer(ot,t,e)}}const ut=(0,i.vt)(),at=(0,u.vt)()},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)},20498(t,e,n){n.d(e,{Bg:()=>s,SX:()=>o,pX:()=>i});let r=globalThis.Float16Array;function s(...t){return new(r??Float32Array)(...t)}function i(){return r}let o=!!r},34403(t,e,n){var r=n(79258);Math.PI;const s=r.$O.radius,i=r.$O.eccentricitySquared,o={a1:s*i,a2:s*i*s*i,a3:s*i*i/2,a4:s*i*s*i*2.5,a5:s*i+s*i*i/2,a6:1-i};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius,n.d(e,["TP",0,o])},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 s(t){return void 0!==t.points}function i(t){return void 0!==t.x&&void 0!==t.y}function o(t){return void 0!==t.paths||void 0!==t.curvePaths}function u(t){return void 0!==t.rings||void 0!==t.curveRings}function a(t){return"object"==typeof t&&"vertexAttributes"in t}function c(t){return t?i(t)?"esriGeometryPoint":o(t)?"esriGeometryPolyline":u(t)?"esriGeometryPolygon":r(t)?"esriGeometryEnvelope":s(t)?"esriGeometryMultipoint":null:null}function l(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function f(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}n.d(e,{$B:()=>c,Bi:()=>u,Pv:()=>l,Rg:()=>o,U9:()=>s,W0:()=>f,ZC:()=>r,fT:()=>i,uW:()=>a})},38419(t,e,n){n.r(e),n.d(e,{default:()=>u});var r=n(44208),s=n(75503),i=n(95696),o=n(72258);class u{async createIndex(t,e){const n=new Array;if(!t.vertexAttributes?.position)return new s.wq;const r=function(t){const{vertexAttributes:{position:e},vertexSpace:n,spatialReference:r,transform:s}=t,u=(0,o.UR)({vertexAttributes:{position:e},vertexSpace:n,spatialReference:r,transform:s},i.A.absolute,{allowBufferReuse:!0})?.position;return u?!t.components||t.components.some(t=>!t.faces)?{position:u.buffer}:{position:u.buffer,components:t.components.map(t=>t.faces)}:null}(t),u=null!=e?await e.invoke("createIndexThread",r,{transferList:n}):this.createIndexThread(r).result;return a().fromJSON(u)}createIndexThread(t){const e=a();if(!t)return{result:e.toJSON()};const n=new Float64Array(t.position);return t.components?function(t,e,n){let r=0;for(const t of n)r+=t.length/3;const s=new Array(r);let i=0;for(const t of n)for(let n=0;n<t.length;n+=3)s[i++]=c(e,3*t[n],3*t[n+1],3*t[n+2]);return t.load(s),{result:t.toJSON()}}(e,n,t.components.map(t=>new Uint32Array(t))):function(t,e){const n=new Array(e.length/9);let r=0;for(let t=0;t<e.length;t+=9)n[r++]=c(e,t,t+3,t+6);return t.load(n),{result:t.toJSON()}}(e,n)}}function a(){return new s.wq(9,(0,r.A)("esri-csp-restrictions")?t=>t:[".minX",".minY",".maxX",".maxY"])}function c(t,e,n,r){return{minX:Math.min(t[e],t[n],t[r]),maxX:Math.max(t[e],t[n],t[r]),minY:Math.min(t[e+1],t[n+1],t[r+1]),maxY:Math.max(t[e+1],t[n+1],t[r+1]),p0:[t[e],t[e+1],t[e+2]],p1:[t[n],t[n+1],t[n+2]],p2:[t[r],t[r+1],t[r+2]]}}},22141(t,e,n){n.d(e,{$5:()=>b,CN:()=>g,KM:()=>v,Mv:()=>w,X4:()=>B,gr:()=>T,qs:()=>E,si:()=>x,xA:()=>A});var r=n(34727),s=n(77690),i=n(29242),o=n(58083),u=n(9093),a=n(35522),c=n(51850),l=n(73941),f=n(48353),h=n(9762),p=(n(79258),n(21325)),d=n(28735),y=n(13030),m=n(73354),M=n(50867);function g(t,e,n,r){t.error(`Failed to project from (wkid:${e.wkid}) to (wkid:${n.wkid}).${r?" ":""}${r}`)}function B(t,e,n,r,s,i){return _(0,y.xs.fromTypedArray(t),0,y.Xm.fromTypedArray(e),n,y.Xm.fromTypedArray(r),s,y.xs.fromTypedArray(i))?i:null}function x(t,e,n,r,s,i){return _(1,y.xs.fromTypedArray(t),0,y.Xm.fromTypedArray(e),n,y.Xm.fromTypedArray(r),s,y.xs.fromTypedArray(i))?i:null}function T(t,e,n,r){return(0,h.projectBuffer)(t,e,0,n,r,0)?n:null}function b(t,e,n,r){return(0,h.projectBuffer)(t,e,0,n,r,0)?n:null}function E(t,e,n){return(0,s.Ge)(C,n),(0,m.b)(e,t,C),(0,r.or)(C)&&(0,m.n)(e,e),e}function v(t,e,n){return(0,s.z0)(C,n),(0,M.t)(e,t,C),(0,r.or)(C)&&(0,m.n)(e,e,4),e}function A(t,e,n,r,s,i){if(!_(0,y.xs.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),1,y.Xm.fromTypedArray(e),n,y.Xm.fromTypedArray(r),s,y.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let e=3;e<t.length;e+=4)i[e]=t[e];return i}function w(t,e,n,r,s,i){if(!_(1,y.xs.fromTypedArray(t,16),1,y.Xm.fromTypedArray(e),n,y.Xm.fromTypedArray(r),s,y.xs.fromTypedArray(i,16)))return null;for(let e=3;e<t.length;e+=4)i[e]=t[e];return i}function S(t,e,n,r,i){switch((0,f.l)(r,n,O,r),1===t&&(0,o.B8)(O,O),e){case 0:return(0,s.Ge)(i,O);case 1:return(0,s.z0)(i,O)}}function _(t,e,n,r,s,i,o,u){if(!e)return;const c=r.count;if(function(t){return t.isWGS84||(0,p.x1)(t)||(0,l.q8)(t)||(0,l.KQ)(t)}(s))for(let r=0;r<c;r++)i.getVec(r,R),e.getVec(r,P),(0,a.ei)(P,P,S(t,n,R,o,C)),u.setVec(r,P);else for(let s=0;s<c;s++){i.getVec(s,R),e.getVec(s,P);const c=(0,d.jg)(r.get(s,1));let l=Math.cos(c);1===n!=(0===t)&&(l=1/l),S(t,n,R,o,C),0===t?(C[0]*=l,C[1]*=l,C[2]*=l,C[3]*=l,C[4]*=l,C[5]*=l):(C[0]*=l,C[3]*=l,C[6]*=l,C[1]*=l,C[4]*=l,C[7]*=l),(0,a.ei)(P,P,C),(0,a.S8)(P,P),u.setVec(s,P)}return u}const R=(0,c.vt)(),P=(0,c.vt)(),O=(0,u.vt)(),C=(0,i.vt)();n.d(e,["JP",0,"Projection may be possible after calling projection.load()."])},72258(t,e,n){n.d(e,{UR:()=>T,p5:()=>x,xK:()=>S});var r=n(53966),s=n(34727),i=n(86211),o=n(77690),u=n(29242),a=n(58083),c=n(9093),l=n(35522),f=n(51850),h=n(73941),p=n(98764),d=n(48353),y=n(65806),m=n(27615),M=n(73354),g=n(22141);const B=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function x(t,e,{vertexSpace:n,spatialReference:r}){if("georeferenced"===n.type){const s=t;if(!(0,y.g)(e,s,r))return!1;const{origin:i}=n;return(0,l.Re)(t,s,i),!0}const s=(0,p.lO)(r),i=t;if(!(0,y.g)(e,i,s))return!1;const{origin:o}=n,u=C;if(!(0,d.l)(r,o,u,s))return!1;const c=(0,a.B8)(C,u);return null!=c&&((0,l.Z0)(t,i,c),!0)}function T(t,e,n){const{vertexSpace:r,transform:s,vertexAttributes:i}=t,u=(0,m.Hq)(r)?s:null,f=A(t.spatialReference,n,3);if((0,m.yJ)(r,e)&&(!u||(0,a.t2)(u.localMatrix,c.zK))&&w(f)){const{position:t,normal:e,tangent:r}=i,s=n?.allowBufferReuse;return{position:s?t:t.slice(),normal:s?e:e?.slice(),tangent:s?r:r?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===e.type?function({vertexAttributes:t,spatialReference:e,transform:n},{origin:r},s,i){const o=b(e,i);if(!(0,d.l)(e,r,_,o))return(0,g.CN)(B(),e,o),null;if(n&&(0,a.lw)(_,_,n.localMatrix),!(0,d.l)(e,s,R,o))return(0,g.CN)(B(),o,e),null;(0,a.B8)(R,R);const u=(0,a.lw)(_,R,_);return v(u,e,i,3),E(t,u)}(t,t.vertexSpace,e.origin,n):function({spatialReference:t,vertexAttributes:e,transform:n},{origin:r},s,i){const o=b(t,i);if(!(0,d.l)(t,r,_,o))return(0,g.CN)(B(),t,o),null;n&&(0,a.lw)(_,_,n.localMatrix),v(_,t,i,1);const u=new Float64Array(e.position.length),c=function(t,e,n,r,s){(0,M.t)(r,t,e);const i=new Float64Array(t.length);return(0,g.$5)(r,s,i,n)?i:((0,g.CN)(B(),s,n),null)}(e.position,_,t,u,o);if(!c)return null;const f=function(t,e,n,r,s,i){if(null==s)return null;const o=new Float32Array(s.length);return(0,g.qs)(s,o,i),(0,g.si)(o,t,e,n,r,o)?o:((0,g.CN)(B(),r,e),null)}(c,t,u,o,e.normal,_);if(e.normal&&!f)return null;const h=function(t,e,n,r,s,i){if(null==s)return null;const o=new Float32Array(s.length);return(0,g.KM)(s,o,i),(0,g.Mv)(o,t,e,n,r,o)?o:((0,g.CN)(B(),r,e),null)}(c,t,u,o,e.tangent,_);if(e.tangent&&!h)return null;if(s){const t=(0,l.ze)(O,s);(0,M.a)(c,c,t)}return{position:c,normal:f,tangent:h}}(t,t.vertexSpace,e.origin,n);case"georeferenced":return"local"===e.type?function({vertexAttributes:t,spatialReference:e,transform:n},{origin:r},s,i){const u=b(e,i);if(!(0,d.l)(e,s,_,u))return(0,g.CN)(B(),e,u),null;const c=1/A(e,i,2);(0,a.hs)(_,_,[c,c,c]);const l=(0,a.B8)(R,_),{position:f,normal:h,tangent:p}=function(t,e,n){if(!e)return t;if(!n){const{position:n,normal:r,tangent:s}=t;return{position:(0,M.a)(new Float64Array(n.length),n,e),tangent:s,normal:r}}const r=E(t,n.localMatrix);return(0,M.a)(r.position,r.position,e),r}(t,r,n),y=new Float64Array(f.length),m=function(t,e,n,r,s){const i=(0,g.gr)(t,e,r,s);if(!i)return(0,g.CN)(B(),e,s),null;const o=new Float64Array(i.length);return(0,M.t)(o,i,n),o}(f,e,l,y,u);if(!m)return null;const x=(0,o.Ge)(P,l),T=function(t,e,n,r,s,i,o){if(null==t)return null;const u=o??new Float32Array(t.length);return(0,g.X4)(t,e,n,r,s,u)?((0,M.b)(u,u,i),u):((0,g.CN)(B(),n,s),null)}(h,f,e,y,u,x,h!==t.normal?h:void 0);if(!T&&h)return null;const v=function(t,e,n,r,s,i,o){if(null==t)return null;const u=o??new Float32Array(t.length);return(0,g.xA)(t,e,n,r,s,u)?((0,M.b)(u,u,i,4),u):((0,g.CN)(B(),n,s),null)}(p,f,e,y,u,x,p!==t.tangent?p:void 0);return!v&&p?null:{position:m,normal:T,tangent:v}}(t,t.vertexSpace,e.origin,n):function({vertexAttributes:t,transform:e,spatialReference:n},{origin:r},s,i){const o=A(n,i,3),u=r||!w(o)?(0,a.C)(_,e?.localMatrix??c.zK):null;u&&v(u,n,i,3);const{position:f,normal:h,tangent:p}=u?E(t,u):t,d=i?.allowBufferReuse,y=d?f:new Float64Array(f.length);let m=f;if(r&&(m=(0,M.a)(y,m,r)),s){const t=(0,l.ze)(O,s);m=(0,M.a)(y,m,t)}return{position:m!==t.position||d?m:m.slice(),normal:h!==t.normal||d?h:h?.slice(),tangent:p!==t.tangent||d?p:p?.slice()}}(t,t.vertexSpace,e.origin,n)}}function b(t,e){return e?.useEllipsoid&&(0,h.B3)(t)?p.Y0:(0,p.lO)(t)}function E(t,e){const n=new Float64Array(t.position.length);(0,M.t)(n,t.position,e);const r=t.normal?new Float32Array(t.normal.length):null,s=t.tangent?new Float32Array(t.tangent.length):null;return r&&t.normal&&(0,g.qs)(t.normal,r,e),s&&t.tangent&&(0,g.KM)(t.tangent,s,e),{position:n,normal:r,tangent:s}}function v(t,e,n,r){const s=A(e,n,r);w(s)||(0,a.hs)(t,t,[s,s,s])}function A(t,e,n){const r=!!(1&n),s=!!(2&n),i=e?.sourceUnit,o=e?.targetUnit;if(!i&&!o)return 1;let u=S(i,t);r||!i||w(u)||(B().warn("source unit conversion not supported"),u=1);let a=1/S(o,t);return s||!o||w(a)||(B().warn("target unit conversion not supported"),a=1),u*a}function w(t){return(0,s.Io)(t,1)}function S(t,e){if(null==t)return 1;const n=(0,i.KX)(e);return 1/(0,i.oU)(n,"meters",t)}const _=(0,c.vt)(),R=(0,c.vt)(),P=(0,u.vt)(),O=(0,f.vt)(),C=(0,c.vt)()},27615(t,e,n){n.d(e,{CK:()=>a,Hq:()=>u,MW:()=>c,TE:()=>l,yJ:()=>f});var r=n(35522),s=n(86738),i=n(95696),o=n(18251);function u(t){return null!=t.origin}function a(t){return u(t.vertexSpace)}function c(t,e){if(!u(t))return null;const[n,r,i]=t.origin;return new s.A({x:n,y:r,z:i,spatialReference:e})}function l(t,e){const{x:n,y:r,z:s,spatialReference:u}=t,a=[n,r,s??0];return"local"===(e?.vertexSpace??function(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}(u))?new o.A({origin:a}):new i.A({origin:a})}function f(t,e){return t.type===e.type&&(t.origin===e.origin||null!=t.origin&&null!=e.origin&&(0,r.t2)(t.origin,e.origin))}},620(t,e,n){n.d(e,{L:()=>a,MX:()=>o,O_:()=>u,kL:()=>c,vA:()=>i,zH:()=>l});var r=n(48163);n(78955),(0,n(91829).vt)();class s{constructor(t){this.message=t}toString(){return`AssertException: ${this.message}`}}function i(t,e="Assertion"){if(!t){const t=new Error(e).stack;throw new s(`${e} at ${t}`)}}function o(t,e){t||(e=e||"",console.warn("Verify failed: "+e+"\n"+new Error("verify").stack))}function u(t,e,n,r){let s,i=(n[0]-t[0])/e[0],o=(r[0]-t[0])/e[0];i>o&&(s=i,i=o,o=s);let u=(n[1]-t[1])/e[1],a=(r[1]-t[1])/e[1];if(u>a&&(s=u,u=a,a=s),i>a||u>o)return!1;u>i&&(i=u),a<o&&(o=a);let c=(n[2]-t[2])/e[2],l=(r[2]-t[2])/e[2];return c>l&&(s=c,c=l,l=s),!(i>l||c>o||(l<o&&(o=l),o<0))}function a(t,e,n,s,i,o=(0,r.vt)()){const u=(s[i]-n[i])*(e[0]-t[0])-(s[0]-n[0])*(e[i]-t[i]),a=(s[0]-n[0])*(t[i]-n[i])-(s[i]-n[i])*(t[0]-n[0]);if(0===u)return!1;const c=a/u;return o[0]=t[0]+c*(e[0]-t[0]),o[1]=t[i]+c*(e[i]-t[i]),!0}function c(t,e){return Math.log(t)/Math.log(e)}function l(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[3]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[7]&&0===t[8]&&0===t[9]&&1===t[10]&&0===t[11]&&1===t[15]}}}]);
|