@arcgis/core 5.1.0-next.47 → 5.1.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.
Files changed (133) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/{521a671182b0f79e3624.js → 193775b3b7de8f5dc578.js} +1 -1
  3. package/assets/esri/core/workers/chunks/{c0ecb68387e342dddf58.js → 25509953f19fbc4949a1.js} +1 -1
  4. package/assets/esri/core/workers/chunks/2669a7195f1de21a9cf3.js +1 -0
  5. package/assets/esri/core/workers/chunks/330da3828eefd8d72d3f.js +1 -0
  6. package/assets/esri/core/workers/chunks/36425d29aaa5852cb41d.js +1 -0
  7. package/assets/esri/core/workers/chunks/440a650ed0867a16f559.js +1 -0
  8. package/assets/esri/core/workers/chunks/{aa367ca7f8326fd67881.js → 4afddb66242438b38df0.js} +1 -1
  9. package/assets/esri/core/workers/chunks/5344919fc6e8050450f1.js +1 -0
  10. package/assets/esri/core/workers/chunks/53c149bca42595b7dd1e.js +1 -0
  11. package/assets/esri/core/workers/chunks/{6afdaa6c4555c467dca7.js → 54420b66fd53d6e19ba5.js} +1 -1
  12. package/assets/esri/core/workers/chunks/74814678942a47fd48fb.js +1 -0
  13. package/assets/esri/core/workers/chunks/797bf402489b3677a5f7.js +1 -0
  14. package/assets/esri/core/workers/chunks/{5c830cce32710d70dfa6.js → 7dba4121cdd20dbc4b20.js} +1 -1
  15. package/assets/esri/core/workers/chunks/947a715b608c8affd812.js +1 -0
  16. package/assets/esri/core/workers/chunks/{867c0cd99a005a3d8e08.js → 9f7b5749f3ceca8d5978.js} +12 -9
  17. package/assets/esri/core/workers/chunks/aa69cbaa38b49677ddff.js +1 -0
  18. package/assets/esri/core/workers/chunks/{beb53b372d356800f333.js → ab414a60808ea05a63e6.js} +1 -1
  19. package/assets/esri/core/workers/chunks/b98dd9fc9a7e3ff6bd49.js +1 -0
  20. package/assets/esri/core/workers/chunks/cb8c17daec7055bf99cc.js +1 -0
  21. package/assets/esri/core/workers/chunks/{a9f35127c3f5bf42036b.js → de359f89e03da18999fc.js} +1 -1
  22. package/chunks/Fog.glsl.js +3 -3
  23. package/chunks/GlowComposition.glsl.js +5 -3
  24. package/config.js +1 -1
  25. package/core/has.js +1 -1
  26. package/core/workers/Connection.js +1 -1
  27. package/core/workers/WorkerHandle.js +1 -1
  28. package/core/workers/workers.js +1 -1
  29. package/geometry/support/curves/bezierCurveUtils.js +1 -1
  30. package/kernel.js +1 -1
  31. package/layers/Lyr3DWorkerHandle.js +1 -1
  32. package/layers/OrientedImageryLayer.d.ts +152 -0
  33. package/layers/graphics/data/QueryEngineResult.js +1 -1
  34. package/layers/mixins/ArcGISCachedService.js +1 -1
  35. package/layers/mixins/ArcGISMapService.js +1 -1
  36. package/layers/support/RasterJobHandler.js +1 -1
  37. package/layers/support/layerUtils.js +1 -1
  38. package/package.json +1 -1
  39. package/smartMapping/statistics/support/statsWorker.js +1 -1
  40. package/support/revision.js +1 -1
  41. package/time/TimeExtent.d.ts +34 -0
  42. package/time/TimeInterval.d.ts +15 -0
  43. package/views/2d/engine/vectorTiles/TileHandler.js +1 -1
  44. package/views/2d/engine/vectorTiles/TileHandler3D.js +1 -1
  45. package/views/2d/engine/vectorTiles/TileManager.js +1 -1
  46. package/views/2d/engine/vectorTiles/VTLPainter3D.js +1 -1
  47. package/views/2d/engine/vectorTiles/VectorTile.js +1 -1
  48. package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
  49. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderCircle.js +1 -1
  50. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderFill.js +1 -1
  51. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderIcon.js +1 -1
  52. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderLine.js +1 -1
  53. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderText.js +1 -1
  54. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueCircle.js +1 -1
  55. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueFill.js +1 -1
  56. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueLine.js +1 -1
  57. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueSymbol.js +1 -1
  58. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  59. package/views/2d/engine/webgl/util/Fader.js +2 -0
  60. package/views/2d/layers/VectorTileLayerView2D.js +1 -1
  61. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementVisualization.js +1 -1
  62. package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
  63. package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementVisualization.js +1 -1
  64. package/views/3d/analysis/Slice/SliceTool.js +1 -1
  65. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillVisualization.js +1 -1
  66. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  67. package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
  68. package/views/3d/interactive/visualElements/MeasurementAreaVisualElement.js +1 -1
  69. package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
  70. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  71. package/views/3d/layers/FlowSubView3D.js +1 -1
  72. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  73. package/views/3d/layers/SceneLayerWorkerHandle.js +1 -1
  74. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  75. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  76. package/views/3d/layers/i3s/Intersector.js +1 -1
  77. package/views/3d/layers/support/patternUtils.js +1 -1
  78. package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
  79. package/views/3d/support/gaussianSplatting/GaussianSplatFadeHelper.js +1 -1
  80. package/views/3d/support/gaussianSplatting/GaussianSplatFadeTexture.js +1 -1
  81. package/views/3d/support/gaussianSplatting/GaussianSplatOrderTexture.js +1 -1
  82. package/views/3d/support/gaussianSplatting/GaussianSplatTextureAtlas.js +1 -1
  83. package/views/3d/terrain/TerrainRenderer.js +1 -1
  84. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechnique.js +1 -1
  85. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  86. package/views/3d/webgl-engine/effects/fog/Fog.glsl.js +1 -1
  87. package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
  88. package/views/3d/webgl-engine/effects/fog/FogTechniqueConfiguration.js +1 -1
  89. package/views/3d/webgl-engine/effects/glow/GlowComposition.glsl.js +1 -1
  90. package/views/3d/webgl-engine/effects/glow/GlowRenderNode.js +1 -1
  91. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  92. package/views/3d/webgl-engine/lib/OrderIndependentTransparency.js +1 -1
  93. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  94. package/views/3d/webgl-engine/lib/intersectorUtilsConversions.js +1 -1
  95. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  96. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  97. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  98. package/views/3d/webgl-engine/materials/PathTechnique.js +1 -1
  99. package/views/3d/webgl-engine/materials/PathTechniqueConfiguration.js +1 -1
  100. package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
  101. package/views/3d/webgl-engine/materials/PolygonOffset.js +2 -0
  102. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  103. package/views/3d/webgl-engine/materials/SlicePlaneMaterial.js +1 -1
  104. package/views/3d/webgl-engine/materials/TriangleMaterial.js +1 -1
  105. package/views/3d/webgl-engine/materials/TriangleTechniqueConfiguration.js +1 -1
  106. package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
  107. package/views/3d/webgl-engine/shaders/DefaultMaterialTechniqueConfiguration.js +1 -1
  108. package/views/3d/webgl-engine/shaders/Dithering.glsl.js +4 -0
  109. package/views/3d/webgl-engine/shaders/HUDMaterialTechnique.js +1 -1
  110. package/views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js +11 -10
  111. package/views/3d/webgl-engine/shaders/PatternTechnique.js +1 -1
  112. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  113. package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
  114. package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechnique.js +1 -1
  115. package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechniqueConfiguration.js +1 -1
  116. package/views/SceneView.d.ts +2 -1
  117. package/views/SceneView.js +1 -1
  118. package/views/draw/plugins/FreehandSegmentPlugin.js +1 -1
  119. package/views/support/LayerViewManager.js +1 -1
  120. package/views/types.d.ts +33 -2
  121. package/widgets/Sketch/support/PluginManager.js +1 -1
  122. package/assets/esri/core/workers/chunks/0601c316da0256a60538.js +0 -1
  123. package/assets/esri/core/workers/chunks/13d55e3c9aea04116eaa.js +0 -1
  124. package/assets/esri/core/workers/chunks/1a6a77902dd8c84e059a.js +0 -1
  125. package/assets/esri/core/workers/chunks/54c1d31e1efab765ee7a.js +0 -1
  126. package/assets/esri/core/workers/chunks/5b515b5741733bcb4645.js +0 -1
  127. package/assets/esri/core/workers/chunks/7f07f490c6fcc794c8d9.js +0 -1
  128. package/assets/esri/core/workers/chunks/970d971551e42f7ae08d.js +0 -1
  129. package/assets/esri/core/workers/chunks/abcb39ad1e2d54710766.js +0 -1
  130. package/assets/esri/core/workers/chunks/c2aa3b1344b42a904234.js +0 -1
  131. package/assets/esri/core/workers/chunks/cf5e4cf9b1aa37eeb6b0.js +0 -1
  132. package/assets/esri/core/workers/chunks/e63046a9567d84228644.js +0 -1
  133. package/assets/esri/core/workers/chunks/f4ec2dcdc4bbf7dbcc94.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2772,8635],{80200(e,t,r){r.d(t,{T:()=>s,d:()=>p});const s={Base64:0,Hex:1,String:2,Raw:3};function i(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function n(e,t,r,s,n,o){return i(function(e,t){return e<<t|e>>>32-t}(i(i(t,e),i(s,o)),n),r)}function o(e,t,r,s,i,o,a){return n(t&r|~t&s,e,t,i,o,a)}function a(e,t,r,s,i,o,a){return n(t&s|r&~s,e,t,i,o,a)}function l(e,t,r,s,i,o,a){return n(t^r^s,e,t,i,o,a)}function c(e,t,r,s,i,o,a){return n(r^(t|~s),e,t,i,o,a)}function u(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let r=1732584193,s=-271733879,n=-1732584194,u=271733878;for(let t=0;t<e.length;t+=16){const p=r,h=s,d=n,g=u;r=o(r,s,n,u,e[t],7,-680876936),u=o(u,r,s,n,e[t+1],12,-389564586),n=o(n,u,r,s,e[t+2],17,606105819),s=o(s,n,u,r,e[t+3],22,-1044525330),r=o(r,s,n,u,e[t+4],7,-176418897),u=o(u,r,s,n,e[t+5],12,1200080426),n=o(n,u,r,s,e[t+6],17,-1473231341),s=o(s,n,u,r,e[t+7],22,-45705983),r=o(r,s,n,u,e[t+8],7,1770035416),u=o(u,r,s,n,e[t+9],12,-1958414417),n=o(n,u,r,s,e[t+10],17,-42063),s=o(s,n,u,r,e[t+11],22,-1990404162),r=o(r,s,n,u,e[t+12],7,1804603682),u=o(u,r,s,n,e[t+13],12,-40341101),n=o(n,u,r,s,e[t+14],17,-1502002290),s=o(s,n,u,r,e[t+15],22,1236535329),r=a(r,s,n,u,e[t+1],5,-165796510),u=a(u,r,s,n,e[t+6],9,-1069501632),n=a(n,u,r,s,e[t+11],14,643717713),s=a(s,n,u,r,e[t],20,-373897302),r=a(r,s,n,u,e[t+5],5,-701558691),u=a(u,r,s,n,e[t+10],9,38016083),n=a(n,u,r,s,e[t+15],14,-660478335),s=a(s,n,u,r,e[t+4],20,-405537848),r=a(r,s,n,u,e[t+9],5,568446438),u=a(u,r,s,n,e[t+14],9,-1019803690),n=a(n,u,r,s,e[t+3],14,-187363961),s=a(s,n,u,r,e[t+8],20,1163531501),r=a(r,s,n,u,e[t+13],5,-1444681467),u=a(u,r,s,n,e[t+2],9,-51403784),n=a(n,u,r,s,e[t+7],14,1735328473),s=a(s,n,u,r,e[t+12],20,-1926607734),r=l(r,s,n,u,e[t+5],4,-378558),u=l(u,r,s,n,e[t+8],11,-2022574463),n=l(n,u,r,s,e[t+11],16,1839030562),s=l(s,n,u,r,e[t+14],23,-35309556),r=l(r,s,n,u,e[t+1],4,-1530992060),u=l(u,r,s,n,e[t+4],11,1272893353),n=l(n,u,r,s,e[t+7],16,-155497632),s=l(s,n,u,r,e[t+10],23,-1094730640),r=l(r,s,n,u,e[t+13],4,681279174),u=l(u,r,s,n,e[t],11,-358537222),n=l(n,u,r,s,e[t+3],16,-722521979),s=l(s,n,u,r,e[t+6],23,76029189),r=l(r,s,n,u,e[t+9],4,-640364487),u=l(u,r,s,n,e[t+12],11,-421815835),n=l(n,u,r,s,e[t+15],16,530742520),s=l(s,n,u,r,e[t+2],23,-995338651),r=c(r,s,n,u,e[t],6,-198630844),u=c(u,r,s,n,e[t+7],10,1126891415),n=c(n,u,r,s,e[t+14],15,-1416354905),s=c(s,n,u,r,e[t+5],21,-57434055),r=c(r,s,n,u,e[t+12],6,1700485571),u=c(u,r,s,n,e[t+3],10,-1894986606),n=c(n,u,r,s,e[t+10],15,-1051523),s=c(s,n,u,r,e[t+1],21,-2054922799),r=c(r,s,n,u,e[t+8],6,1873313359),u=c(u,r,s,n,e[t+15],10,-30611744),n=c(n,u,r,s,e[t+6],15,-1560198380),s=c(s,n,u,r,e[t+13],21,1309151649),r=c(r,s,n,u,e[t+4],6,-145523070),u=c(u,r,s,n,e[t+11],10,-1120210379),n=c(n,u,r,s,e[t+2],15,718787259),s=c(s,n,u,r,e[t+9],21,-343485551),r=i(r,p),s=i(s,h),n=i(n,d),u=i(u,g)}return[r,s,n,u]}function p(e,t=s.Hex){const r=t||s.Base64,i=u(function(e){const t=[];for(let r=0,s=8*e.length;r<s;r+=8)t[r>>5]|=(255&e.charCodeAt(r/8))<<r%32;return t}(e),8*e.length);switch(r){case s.Raw:return i;case s.Hex:return function(e){const t="0123456789abcdef",r=[];for(let s=0,i=4*e.length;s<i;s++)r.push(t.charAt(e[s>>2]>>s%4*8+4&15)+t.charAt(e[s>>2]>>s%4*8&15));return r.join("")}(i);case s.String:return function(e){const t=[];for(let r=0,s=32*e.length;r<s;r+=8)t.push(String.fromCharCode(e[r>>5]>>>r%32&255));return t.join("")}(i);case s.Base64:return function(e){const t=[];for(let r=0,s=4*e.length;r<s;r+=3){const s=(e[r>>2]>>r%4*8&255)<<16|(e[r+1>>2]>>(r+1)%4*8&255)<<8|e[r+2>>2]>>(r+2)%4*8&255;for(let i=0;i<4;i++)8*r+6*i>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(s>>6*(3-i)&63))}return t.join("")}(i)}}},87024(e,t,r){r.d(t,{P:()=>d});var s=r(49186),i=r(80200),n=r(76553),o=r(84952),a=r(13069),l=r(96156),c=r(35666),u=r(10107),p=r(85648),h=r(97159);function d(e){const t=e?.origins??[void 0];return(r,s)=>{const i=function(e,t,r){if("resource"===e?.type)return function(e,t,r){const s=(0,l.z4)(t,r);return{type:String,read:(e,t,r)=>{const i=(0,h.r)(e,t,r);return s.type===String?i:"function"==typeof s.type?new s.type({url:i}):void 0},write:{isRequired:s.json?.write?.isRequired,writer(t,i,a,l){if(!l?.resources)return"string"==typeof t?void(i[a]=(0,h.t)(t,l)):void(i[a]=t.write({},l));const u=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),d=(0,h.t)(u,{...l,verifyItemRelativeUrls:l?.verifyItemRelativeUrls?{writtenUrls:l.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),y=s.type!==String&&(!(0,n.H)(this)||l?.origin&&this.originIdOf(r)>(0,c.aB)(l.origin)),v={object:this,propertyName:r,value:t,targetUrl:d,dest:i,targetPropertyName:a,context:l,params:e};l?.portalItem&&d&&!(0,o.oP)(d)?y&&e?.contentAddressed?g(v):y?function(e){const{context:t,targetUrl:r,params:s,value:i,dest:n,targetPropertyName:a}=e;if(!t.portalItem)return;const l=t.portalItem.resourceFromPath(r),c=m(i,r,t),u=(0,p.n)(c),h=(0,o.Zo)(l.path),d=s?.compress??!1;u===h?(t.resources&&f({...e,resource:l,content:c,compress:d,updates:t.resources.toUpdate}),n[a]=r):g(e)}(v):function({context:e,targetUrl:t,dest:r,targetPropertyName:s}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),r[s]=t)}(v):l?.portalItem&&(null==d||null!=(0,h.i)(d)||(0,o.w8)(d)||y)?g(v):i[a]=d}}}}(e,t,r);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=h.b;return{read:e,write:t}}}}(e,r,s);for(const e of t){const t=(0,u.rM)(r,e,s);for(const e in i)t[e]=i[e]}}}function g(e){const{targetUrl:t,params:r,value:n,context:l,dest:c,targetPropertyName:u}=e;if(!l.portalItem)return;const d=(0,h.p)(t),g=m(n,t,l);if(r?.contentAddressed&&"json"!==g.type)return void l.messages?.push(new s.A("persistable:contentAddressingUnsupported",`Property "${u}" is trying to serializing a resource with content of type ${g.type} with content addressing. Content addressing is only supported for json resources.`,{content:g}));const y=r?.contentAddressed&&"json"===g.type?(0,i.d)(g.jsonString):d?.filename??(0,a.lk)(),v=(0,o.fj)(r?.prefix??d?.prefix,y),w=`${v}.${(0,p.n)(g)}`;if(r?.contentAddressed&&l.resources&&"json"===g.type){const e=l.resources.toKeep.find(({resource:e})=>e.path===w)??l.resources.toAdd.find(({resource:e})=>e.path===w);if(e)return void(c[u]=e.resource.itemRelativeUrl)}const _=l.portalItem.resourceFromPath(w);(0,o.w8)(t)&&l.resources&&l.resources.pendingOperations.push((0,o.tk)(t).then(e=>{_.path=`${v}.${(0,p.n)({type:"blob",blob:e})}`,c[u]=_.itemRelativeUrl}).catch(()=>{}));const S=r?.compress??!1;l.resources&&f({...e,resource:_,content:g,compress:S,updates:l.resources.toAdd}),c[u]=_.itemRelativeUrl}function f({object:e,propertyName:t,updates:r,resource:s,content:i,compress:n}){r.push({resource:s,content:i,compress:n,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function m(e,t,r){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(r))}}},60999(e,t,r){r.d(t,{DZ:()=>g,Ke:()=>d,Tj:()=>u,UT:()=>f,aD:()=>y,jJ:()=>c});var s=r(5482),i=r(69622),n=r(97768),o=r(17676),a=r(10107),l=r(64108);function c(e,t,r){return(0,o.Lx)(e.map((e,s)=>t.apply(r,[e,s])))}async function u(e,t,r){return(await(0,o.Lx)(e.map((e,s)=>t.apply(r,[e,s])))).map(e=>e.value)}function p(e){return{ok:!0,value:e}}function h(e){return{ok:!1,error:e}}async function d(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return p(await e)}catch(e){return h(e)}}async function g(e){try{return p(await e)}catch(e){return(0,o.QP)(e),h(e)}}function f(e,t){return new m(e,t)}let m=class extends i.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,n.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=p(e),this._cleanup()},e=>{this._result=h(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,n.xt)(this._abortHandle),this._abortController=null}};(0,s.Cg)([(0,a.MZ)()],m.prototype,"value",null),(0,s.Cg)([(0,a.MZ)()],m.prototype,"error",null),(0,s.Cg)([(0,a.MZ)()],m.prototype,"finished",null),(0,s.Cg)([(0,a.MZ)()],m.prototype,"promise",void 0),(0,s.Cg)([(0,a.MZ)()],m.prototype,"_result",void 0),m=(0,s.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],m);class y{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,s.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,s.hk)(t)}}}},13069(e,t,r){r.d(t,{AG:()=>a,lk:()=>i,vD:()=>o,yS:()=>n});const s="randomUUID"in crypto;function i(){if(s)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function n(){return`{${i().toUpperCase()}}`}function o(){return`{${i()}}`}function a(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},83027(e,t,r){r.d(t,{h:()=>s});const s=r(29953).ho},35982(e,t,r){r.d(t,{B:()=>l});var s=r(4576),i=r(36563),n=r(53966),o=r(17676),a=r(83027);class l{constructor(e,t,r,s,i={}){this._mainMethod=t,this._transferLists=r,this._listeners=[],this._promise=(0,a.h)(e,{...i,schedule:s}).then(e=>{if(void 0===this._thread){this._thread=e,this._promise=null,i.hasInitialize&&this.broadcast({},"initialize");for(const e of this._listeners)this._connectListener(e)}else e.close()}),this._promise.catch(t=>n.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`))}on(e,t){const r={removed:!1,eventName:e,callback:t,threadHandle:null};return this._listeners.push(r),this._connectListener(r),(0,i.hA)(()=>{r.removed=!0,(0,s.TF)(this._listeners,r),this._thread&&null!=r.threadHandle&&r.threadHandle.remove()})}[Symbol.dispose](){this.destroy()}destroy(){this._thread&&(this._thread.close(),this._thread=null),this._promise=null,this._listeners.length=0,this._transferLists={}}invoke(e,t,r){return this.invokeMethod(this._mainMethod,e,t,r)}invokeMethod(e,t,r,s){if(this._thread){const i=this._transferLists[e],n=i?i(t):[];return this._thread.invoke(e,t,{transferList:n,signal:r,jobPriority:s})}return this._promise?this._promise.then(()=>((0,o.Te)(r),this.invokeMethod(e,t,r))):Promise.reject(null)}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then(c):this._promise?this._promise.then(()=>this.broadcast(e,t)):Promise.reject()}get promise(){return this._promise}_connectListener(e){this._thread&&this._thread.on(e.eventName,e.callback).then(t=>{e.removed||(e.threadHandle=t)})}}function c(){}},54239(e,t,r){r.d(t,{A:()=>m});var s,i=r(5482),n=r(4576),o=r(66552),a=r(25482),l=r(86211),c=r(67076),u=r(91429),p=r(43937),h=r(36005);const d=(0,o.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),g=d.jsonValues.slice();(0,n.Xy)(g,"orthometric");const f=(0,o.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let m=s=class extends a.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return d.write(e,t,r)}readHeightModel(e,t,r){return d.read(e)||(r?.messages&&r.messages.push(function(e,t){return new c.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return f.read(e)||(r?.messages&&r.messages.push(y(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.LA)(e)||f.read(e)||(r?.messages&&r.messages.push(y(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new s({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.k1)(t);return new s({heightModel:e.heightModel,heightUnit:r??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new s;return t.read(e,{origin:"web-scene"}),t}};function y(e,t){return new c.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,i.Cg)([(0,u.MZ)({type:d.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g,default:"ellipsoidal",write:{isRequired:!0}}}}})],m.prototype,"heightModel",void 0),(0,i.Cg)([(0,p.K)("web-scene","heightModel")],m.prototype,"writeHeightModel",null),(0,i.Cg)([(0,h.w)(["web-scene","service"],"heightModel")],m.prototype,"readHeightModel",null),(0,i.Cg)([(0,u.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:{writer:f.write,isRequired:!0}}}}})],m.prototype,"heightUnit",void 0),(0,i.Cg)([(0,h.w)("web-scene","heightUnit")],m.prototype,"readHeightUnit",null),(0,i.Cg)([(0,h.w)("service","heightUnit")],m.prototype,"readHeightUnitService",null),(0,i.Cg)([(0,u.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],m.prototype,"vertCRS",void 0),(0,i.Cg)([(0,h.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],m.prototype,"readVertCRS",null),m=s=(0,i.Cg)([(0,u.$K)("esri.geometry.HeightModelInfo")],m)},52136(e,t,r){r.d(t,{p:()=>n});var s=r(5482),i=r(91429);const n=e=>{const t=e;let r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,s.Cg)([(0,i.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,s.Cg)([(0,i.$K)("esri.layers.mixins.APIKeyMixin")],r),r}},18768(e,t,r){r.d(t,{b:()=>a});var s=r(5482),i=r(53966),n=r(91429),o=r(60694);const a=e=>{const t=e;let r=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,o.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,o.Jf)(e,i.A.getLogger(this)))}};return(0,s.Cg)([(0,n.MZ)()],r.prototype,"title",null),(0,s.Cg)([(0,n.MZ)({type:String})],r.prototype,"url",null),r=(0,s.Cg)([(0,n.$K)("esri.layers.mixins.ArcGISService")],r),r}},69208(e,t,r){r.d(t,{d:()=>n});var s=r(5482),i=r(91429);const n=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,s.Cg)([(0,i.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,s.Cg)([(0,i.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}},8303(e,t,r){r.d(t,{A:()=>S});var s=r(5482),i=r(92602),n=r(70333),o=r(11254),a=r(60999),l=r(49186),c=r(53966),u=r(97768),p=r(17676),h=r(84952),d=r(91429),g=r(77548),f=r(20655),m=r(80812),y=r(41318),v=r(10407),w=r(36005),_=r(43937);const S=e=>{const t=e;let S=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,u.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new m.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:s}=await r.e(1204).then(r.bind(r,41204));return(0,p.Te)(t),await s({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||c.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:s},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",s),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const s=!n.id?.findCredential(this.url),i=e===r.id;if(i&&r.portal.user)return this._getUserPrivileges(r,s);let o,a;if(i)o=r.portal.url;else try{o=await(0,g.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!o||!(0,h.b8)(o,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(n.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const l=!0,c=!1,u=!1;if(!a)return{features:{edit:l,fullEdit:c},content:{updateItem:u}};try{if(i?await r.reload():(r=new m.default({id:e,portal:{url:o}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,s)}catch(e){(0,p.QP)(e)}return{features:{edit:l,fullEdit:c},content:{updateItem:u}}}_getUserPrivileges(e,t){const r=(0,v.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;const r=b.credential===t?b.user:await this._fetchEditingUser(e);return b.credential=t,b.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=n.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const s=`${r.owningSystemUrl}/sharing/rest`,i=f.A.getDefault();if(i&&i.loaded&&(0,h.S8)(i.restUrl)===(0,h.S8)(s))return i.user;const l=`${s}/community/self`,c=null!=e?e.signal:null,u=await(0,a.Ke)((0,o.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:c}));return u.ok?y.A.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,s=this.portalItem?.id&&(this.portalItem.portal||f.A.getDefault());return r&&s&&!(0,h.ut)(s.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,s.Cg)([(0,d.MZ)({type:m.default})],S.prototype,"portalItem",null),(0,s.Cg)([(0,w.w)("web-document","portalItem",["itemId"])],S.prototype,"readPortalItem",null),(0,s.Cg)([(0,_.K)("web-document","portalItem",{itemId:{type:String}})],S.prototype,"writePortalItem",null),(0,s.Cg)([(0,d.MZ)({clonable:!1})],S.prototype,"resourceReferences",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasEditingPrivileges",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasFullEditingPrivileges",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasUpdateItemPrivileges",void 0),S=(0,s.Cg)([(0,d.$K)("esri.layers.mixins.PortalLayer")],S),S},b={credential:null,user:null}},25036(e,t,r){r.d(t,{j:()=>n});var s=r(5482),i=r(91429);const n=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,s.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0),(0,s.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0),(0,s.Cg)([(0,i.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",null),r=(0,s.Cg)([(0,i.$K)("esri.layers.mixins.ScaleRangeLayer")],r),r}},58325(e,t,r){r.d(t,{A:()=>_});var s,i=r(5482),n=r(11254),o=r(7762),a=r(25482),l=r(84952),c=r(91429),u=r(4718),p=r(67076),h=r(87024),d=r(39829),g=r(91218),f=r(72772),m=r(98697),y=r(43937);let v=s=class extends a.o{constructor(e){super(e),this.geometry=null,this.type="clip"}writeGeometry(e,t,r,s){if(s.layer?.spatialReference&&115700===s.layer?.spatialReference.vcsWkid)this._write3DTilesModificationGeometry(e,t,r,s);else if(s.layer?.spatialReference&&!s.layer.spatialReference.equals(this.geometry.spatialReference)){if(!(0,g.canProjectWithoutEngine)(e.spatialReference,s.layer.spatialReference))return void(s?.messages&&s.messages.push(new p.A("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:s.layer.spatialReference,context:s})));const i=new d.A;(0,g.projectPolygon)(e,i,s.layer.spatialReference),t[r]=i.toJSON(s)}else t[r]=e.toJSON(s)}_write3DTilesModificationGeometry(e,t,r,s){if(s.layer?.spatialReference&&115700===s.layer?.spatialReference.vcsWkid){let e=!0;if((0,f.isInitialized)()){const i=(0,m.Ir)(null,[this],s.layer?.spatialReference);if(i.length>1){const n=(0,f.switchMeshModificationPolygonVCSSync)({modifications:i,inVCS:5773});if(n.success&&n.modifications){const i=[this.clone()];(0,m.H1)(n.modifications,i),1===i.length&&i[0].geometry&&(t[r]=i[0].geometry.toJSON(s),e=!1)}}}e&&s?.messages&&s.messages.push(new p.A("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:s.layer.spatialReference,context:s}))}}clone(){return new s({geometry:(0,u.o8)(this.geometry),type:this.type})}};var w;(0,i.Cg)([(0,c.MZ)({type:d.A}),(0,h.P)()],v.prototype,"geometry",void 0),(0,i.Cg)([(0,y.K)(["web-scene","portal-item"],"geometry")],v.prototype,"writeGeometry",null),(0,i.Cg)([(0,c.MZ)({type:["clip","mask","replace"],nonNullable:!0}),(0,h.P)()],v.prototype,"type",void 0),v=s=(0,i.Cg)([(0,c.$K)("esri.layers.support.SceneModification")],v);let _=w=class extends((0,a.T)(o.A.ofType(v))){constructor(e){super(e),this.url=null}clone(){return new w({url:this.url,items:this.items.map(e=>e.clone())})}toJSON(e){return this.toArray().map(t=>t.toJSON(e)).filter(e=>!!e.geometry)}static fromJSON(e,t){const r=new w;for(const s of e)r.add(v.fromJSON(s,t));return r}static async fromUrl(e,t,r){const s={url:(0,l.An)(e),origin:"service"},i=await(0,n.A)(e,{responseType:"json",signal:r?.signal}),o=t.toJSON(),a=[];for(const e of i.data)a.push(v.fromJSON({...e,geometry:{spatialReference:o,...e.geometry}},s));return new w({url:e,items:a})}};(0,i.Cg)([(0,c.MZ)({type:String})],_.prototype,"url",void 0),_=w=(0,i.Cg)([(0,c.$K)("esri.layers.support.SceneModifications")],_)},10407(e,t,r){r.d(t,{It:()=>d,LG:()=>o,OM:()=>c,Sm:()=>u,Y:()=>a,bK:()=>l,mm:()=>h,sQ:()=>p});var s=r(91218),i=r(16930),n=r(28735);function o(e,t){if(!a(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,h.HOSTED_SERVICE)}function c(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function u(e,t,r){r?o(e,t):c(e,t)}async function p(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,n.ci)(e);const r=i.A.WGS84;return await(0,s.initializeProjection)(t,r),(0,s.project)(e,r)}(r)}const h={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function d(e){const{portal:t,isOrgItem:r,itemControl:s}=e,i=t.user?.privileges;let n=!i||i.includes("features:user:edit"),o=!!r&&!!i?.includes("features:user:fullEdit");const a="update"===s||"admin"===s;return a?o=n=!0:o&&(n=!0),{features:{edit:n,fullEdit:o},content:{updateItem:a}}}},85648(e,t,r){r.d(t,{n:()=>i});var s=r(84952);function i(e){return n[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,s.Zo)(e);return l[t]||o}(e.url)}(e)]||a}const n={},o="text/plain",a=n[o],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in l)n[l[e]]=e},72772(e,t,r){r.r(t),r.d(t,{addSpatialReferenceInfo:()=>l,destroyWasm:()=>u,initialize:()=>p,isInitialized:()=>h,process:()=>a,switchMeshModificationPolygonVCSSync:()=>c});var s=r(2741);function i(e){return(0,s.s)(`esri/libs/lyr3d/${e}`)}let n,o;async function a(e){await p();const t={status:1,error:"",jobDescJson:"",data:new Uint8Array(0),missingInputUrls:[]};if(e.inputs.length<1)return{result:t,transferList:[]};const r={ptrs:[],sizes:[]};for(const t of e.inputs){const e=o._malloc(t.byteLength);new Uint8Array(o.HEAPU8.buffer,e,t.byteLength).set(new Uint8Array(t)),r.ptrs.push(e),r.sizes.push(t.byteLength)}const s=o.process(e.jobDescJson,e.id,r,e.isMissingResourceCase);t.status=s.status,t.missingInputUrls=s.missingInputUrls.slice();const i=0===s.status&&s.data,n=2===t.status&&t.missingInputUrls.length>0;t.jobDescJson=s.jobDescJson.slice(),t.error=s.error.slice(),i?t.data=s.data.slice():n&&(t.originalInputs=e.inputs.slice());for(let e=0;e<r.ptrs.length;++e)o._free(r.ptrs[e]);const a=[];if(i)a.push(t.data.buffer);else if(n)for(const t of e.inputs)a.push(t);return{result:t,transferList:a}}async function l(e){await p(),o.add_spatial_reference_info(e.sr,e.isGCS,e.toMetersXY,e.toMetersZ)}function c(e){if(!o)return{success:!1,modifications:null};const t=o._malloc(8*e.modifications.length),r=new Float64Array(o.HEAPF64.buffer,t,e.modifications.length);r.set(e.modifications);const s=o.switch_mesh_modification_polygon_vcs(t,e.modifications.length,e.inVCS);let i=null;return s&&(i=r.slice()),o._free(t),{success:s,modifications:i}}function u(){o&&(o.uninitialize_lyr3d_worker_wasm(),o=null)}function p(){return o?Promise.resolve():(n||(n=new Promise(e=>r.e(2343).then(r.bind(r,2343)).then(({default:t})=>{const r=t({locateFile:i,onRuntimeInitialized:()=>e(r)})})).catch(e=>{throw e}).then(e=>{o=e,o.initialize_lyr3d_worker_wasm(),n=null})),n)}function h(){return null!==o}},98697(e,t,r){r.d(t,{H1:()=>g,Ir:()=>d,_b:()=>c,sQ:()=>u});var s=r(53966),i=r(15142),n=r(51850),o=r(35982),a=r(91218),l=r(27993);class c{constructor(e,t,r,s,i,n){this.layout=e,this.interleavedVertexData=t,this.indices=r,this.hasColors=s,this.hasModifications=i,this.positionData=n}}class u{constructor(e,t,r,s,i,n,o){this.componentOffsets=e,this.featureIds=t,this.anchorIds=r,this.anchors=s,this.transformedGeometry=i,this.globalTrafo=n,this.obb=o}}o.B;const p=new i.A({deallocator:null}),h=(0,n.vt)();function d(e,t,r){p.clear();let i=1/0,n=1/0,o=-1/0,c=-1/0,u=!1;for(const e of t){const t="clip"===e.type?2:"mask"===e.type?1:0,d=e.geometry;let g=e=>e;if(d.spatialReference){if(!(0,a.canProjectWithoutEngine)(d.spatialReference,r)){s.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:d});continue}g=e=>((0,l.F)(e,d.spatialReference,h,r),h)}u=u||1===t;const f=d.rings.length,m=d.rings.some(e=>e.length<3);if(0===f||m)s.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-invalid-polygon","Ignoring invalid modification polygon (no rings or rings with less than 3 vertices).",{polygon:d});else{p.push(t),p.push(f);for(const e of d.rings){p.push(e.length);for(const t of e){const e=g(t);p.push(e[0]),p.push(e[1]),p.push(e[2]??0),i=Math.min(i,e[0]),n=Math.min(n,e[1]),o=Math.max(o,e[0]),c=Math.max(c,e[1])}}}}if(null!=e)if(u){const t=1e-4;p.push(2),p.push(2),p.push(4),p.push(i-t),p.push(n-t),p.push(0),p.push(o+t),p.push(n-t),p.push(0),p.push(o+t),p.push(c+t),p.push(0),p.push(i-t),p.push(c+t),p.push(0),p.push(4),p.push(e[0]),p.push(e[1]),p.push(0),p.push(e[2]),p.push(e[1]),p.push(0),p.push(e[2]),p.push(e[3]),p.push(0),p.push(e[0]),p.push(e[3]),p.push(0)}else p.push(1),p.push(1),p.push(4),p.push(e[0]),p.push(e[1]),p.push(0),p.push(e[2]),p.push(e[1]),p.push(0),p.push(e[2]),p.push(e[3]),p.push(0),p.push(e[0]),p.push(e[3]),p.push(0);p.push(3);const d=new Float64Array(p.length);for(let e=0;e<p.length;++e)d[e]=p.at(e);return d}function g(e,t){let r=0;for(const s of t){const t=s.geometry,i=t.rings.length,n=t.rings.some(e=>e.length<3);if(0!==i&&!n){r+=1,r+=1;for(let s=0;s<t.rings.length;++s){const i=t.rings[s];r+=1;for(let n=0;n<i.length;++n){const i=[e[r+0],e[r+1],e[r+2]];r+=3,t.setPoint(s,n,i)}}}}}},78553(e,t,r){r.d(t,{D:()=>n,p:()=>i});var s=r(56507);function i(e){const t=(0,s.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function n(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3354,4757],{73354(e,t,n){n.d(t,{a:()=>f,b:()=>l,c:()=>s,d:()=>i,e:()=>h,f:()=>d,l:()=>c,n:()=>m,t:()=>o});var r=n(40876),a=(n(44208),n(72727));function i(e,t,n){o(e.typedBuffer,t.typedBuffer,n,e.typedBufferStride,t.typedBufferStride)}function o(e,t,n,r=3,i=r){const o=(0,a.k)(e.length,r,3),s=(0,a.k)(t.length,i,3),l=Math.min(o,s),u=n[0],c=n[1],d=n[2],f=n[4],h=n[5],m=n[6],p=n[8],g=n[9],y=n[10],T=n[12],S=n[13],M=n[14];let A=0,b=0;for(let n=0;n<l;n++){const n=t[A],a=t[A+1],o=t[A+2];e[b]=u*n+f*a+p*o+T,e[b+1]=c*n+h*a+g*o+S,e[b+2]=d*n+m*a+y*o+M,A+=i,b+=r}return e}function s(e,t,n){l(e.typedBuffer,t.typedBuffer,n,e.typedBufferStride,t.typedBufferStride)}function l(e,t,n,r=3,i=r){const o=(0,a.k)(e.length,r,3),s=(0,a.k)(t.length,i,3),l=Math.min(o,s),u=n[0],c=n[1],d=n[2],f=n[3],h=n[4],m=n[5],p=n[6],g=n[7],y=n[8];let T=0,S=0;for(let n=0;n<l;n++){const n=t[T],a=t[T+1],o=t[T+2];e[S]=u*n+f*a+p*o,e[S+1]=c*n+h*a+g*o,e[S+2]=d*n+m*a+y*o,T+=i,S+=r}}function u(e,t,n,r=3,a=r){const i=Math.min(e.length/r,t.length/a);let o=0,s=0;for(let l=0;l<i;l++)e[s]=n*t[o],e[s+1]=n*t[o+1],e[s+2]=n*t[o+2],o+=a,s+=r;return e}function c(e,t,n,r){d(e.typedBuffer,t.typedBuffer,n,r,e.typedBufferStride,t.typedBufferStride)}function d(e,t,n,a,i=3,o=i){const s=Math.min(e.length/i,t.length/o);let l=0,u=0;const c=1/r.Tf;for(let r=0;r<s;r++)e[u]=a*(n*t[l])**c,e[u+1]=a*(n*t[l+1])**c,e[u+2]=a*(n*t[l+2])**c,l+=o,u+=i}function f(e,t,n,r=3,i=r){const o=(0,a.k)(e.length,r,3),s=(0,a.k)(t.length,i,3),l=Math.min(o,s);let u=0,c=0;for(let a=0;a<l;a++)e[c]=t[u]+n[0],e[c+1]=t[u+1]+n[1],e[c+2]=t[u+2]+n[2],u+=i,c+=r;return e}function h(e,t){m(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function m(e,t,n=3,r=n){const a=Math.min(e.length/n,t.length/r);let i=0,o=0;for(let s=0;s<a;s++){const a=t[i],s=t[i+1],l=t[i+2],u=a*a+s*s+l*l;if(u>0){const t=1/Math.sqrt(u);e[o]=t*a,e[o+1]=t*s,e[o+2]=t*l}i+=r,o+=n}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:d,linearToSRGBView:c,normalize:m,normalizeView:h,scale:u,scaleView:function(e,t,n){u(e.typedBuffer,t.typedBuffer,n,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,n){const r=Math.min(e.count,t.count),a=e.typedBuffer,i=e.typedBufferStride,o=t.typedBuffer,s=t.typedBufferStride;let l=0,u=0;for(let e=0;e<r;e++)a[u]=o[l]>>n,a[u+1]=o[l+1]>>n,a[u+2]=o[l+2]>>n,l+=s,u+=i},transformMat3:l,transformMat3View:s,transformMat4:o,transformMat4View:i,translate:f},Symbol.toStringTag,{value:"Module"}))},40876(e,t,n){n.d(t,{Eq:()=>h,G1:()=>p,TS:()=>i,Tf:()=>T,V6:()=>a,Vm:()=>m,ay:()=>l,c1:()=>g,c4:()=>o,j5:()=>u,lT:()=>d,oW:()=>c,xV:()=>M});const r={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function a(e){return!!r[e]||!!r[e.toLowerCase()]}function i(e){return r[e]??r[e.toLowerCase()]}function o(e){return[...i(e)]}function s(e,t,n){n<0&&++n,n>1&&--n;const r=6*n;return r<1?e+(t-e)*r:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function l(e,t,n,r=1){const a=(e%360+360)%360/360,i=n<=.5?n*(t+1):n+t-n*t,o=2*n-i;return[Math.round(255*s(o,i,a+1/3)),Math.round(255*s(o,i,a)),Math.round(255*s(o,i,a-1/3)),r]}function u(e){const t=e.length>5,n=t?8:4,r=(1<<n)-1,a=t?1:17,i=t?9===e.length:5===e.length;let o=Number("0x"+e.slice(1));if(isNaN(o))return null;const s=[0,0,0,1];let l;return i&&(l=o&r,o>>=n,s[3]=a*l/255),l=o&r,o>>=n,s[2]=a*l,l=o&r,o>>=n,s[1]=a*l,l=o&r,o>>=n,s[0]=a*l,s}function c(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const t=parseInt(e.slice(1,2),16),n=parseInt(e.slice(2,3),16),r=parseInt(e.slice(3,4),16),a=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,n+16*n,r+16*r,(a+16*a)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function d(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),n=t[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){if(e[0].endsWith("%")){const t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),f(t)}return f(e.map(e=>parseFloat(e)))}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return l(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function f(e){return e[0]=g(e[0]),e[1]=g(e[1]),e[2]=g(e[2]),e[3]=4===e.length?p(e[3]):1,e}function h(e){let t=a(e)?i(e):null;return t??=d(e),t??=c(e),t}function m(e){const t=h(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function p(e){return y(e,0,1)}function g(e){return Math.round(y(e,0,255))}function y(e,t,n){return e=Number(e),isNaN(e)?n:e<t?t:e>n?n:e}const T=2.2,S=1/T;function M(e){return e**S}},69540(e,t,n){n.d(t,{OU:()=>c,Pw:()=>d});var r=n(5482),a=n(69622),i=(n(44208),n(4718)),o=(n(53966),n(97768)),s=n(88620),l=n(64108);const u=Symbol("ClonableMixin"),c=e=>{var t;const n=e;let a=class extends n{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){const t=(0,s.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const n=t.metadata,r=t.store,a={},l=new Map;for(const t in n){const o=n[t],s=r?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||7!==s&&0!==s&&5!==s&&4!==s)continue;const c=this[t];let d=null;if("function"==typeof u)d=u(c,e);else if("reference"===u)d=c;else if(d=(0,i.TU)(c,e),null!=c&&null==d)continue;0===s?l.set(t,d):a[t]=d}const u=new(0,Object.getPrototypeOf(this).constructor)(a);if(l.size){const e=(0,s.oY)(u)?.store;if(e)for(const[t,n]of l)e.set(t,n,0)}return u}};return a=(0,r.Cg)([(0,l.$)("esri.core.Clonable")],a),a},d=c(a.A)},95488(e,t,n){n.d(t,{I:()=>a});var r=n(11406);class a extends r.T{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},9093(e,t,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function a(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>a,vt:()=>r,zK:()=>i});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:a,create:r,fromValues:function(e,t,n,r,a,i,o,s,l,u,c,d,f,h,m,p){return[e,t,n,r,a,i,o,s,l,u,c,d,f,h,m,p]}},Symbol.toStringTag,{value:"Module"}))},51850(e,t,n){function r(){return[0,0,0]}function a(e){return[e[0],e[1],e[2]]}function i(e,t,n){return[e,t,n]}function o(e,t,n){return[e,t,n]}function s(e,t=[0,0,0]){const n=Math.min(3,e.length);for(let r=0;r<n;++r)t[r]=e[r];return t}function l(){return i(1,1,1)}function u(){return i(1,0,0)}function c(){return i(0,1,0)}function d(){return i(0,0,1)}n.d(t,{CN:()=>o,Cb:()=>g,Cw:()=>m,JP:()=>p,Un:()=>h,ci:()=>s,fA:()=>i,o8:()=>a,uY:()=>f,vt:()=>r});const f=[0,0,0],h=l(),m=u(),p=c(),g=d();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_X:m,UNIT_Y:p,UNIT_Z:g,ZEROS:f,clone:a,create:r,freeze:o,fromArray:s,fromValues:i,ones:l,unitX:u,unitY:c,unitZ:d,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},34304(e,t,n){n.d(t,{DF:()=>l,FD:()=>a,Ov:()=>i,ct:()=>u});let r=1e-6;function a(){return r}const i=Math.random,o=Math.PI/180,s=180/Math.PI;function l(e){return e*o}function u(e){return e*s}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:i,equals:function(e,t){return Math.abs(e-t)<=r*Math.max(1,Math.abs(e),Math.abs(t))},getEpsilon:a,setEpsilon:function(e){r=e},toDegree:u,toRadian:l},Symbol.toStringTag,{value:"Module"}))},35522(e,t,n){n.d(t,{$A:()=>v,Bw:()=>i,C:()=>o,Cc:()=>R,DI:()=>b,Il:()=>D,Io:()=>T,Ln:()=>y,Om:()=>_,Qr:()=>d,Re:()=>u,S8:()=>w,T9:()=>p,WQ:()=>l,Z0:()=>E,_S:()=>h,aI:()=>P,ei:()=>C,gL:()=>I,hG:()=>S,hZ:()=>s,hs:()=>g,jb:()=>O,jk:()=>m,lo:()=>j,lw:()=>c,m3:()=>M,oW:()=>G,t2:()=>k,tn:()=>f,uE:()=>F,xg:()=>U,ze:()=>A});var r=n(51850),a=n(34304);function i(e){const t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function s(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}function l(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function u(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function c(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function d(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function f(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function h(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function m(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}function p(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}function g(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function y(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e}function T(e,t){const n=t[0]-e[0],r=t[1]-e[1],a=t[2]-e[2];return Math.sqrt(n*n+r*r+a*a)}function S(e,t){const n=t[0]-e[0],r=t[1]-e[1],a=t[2]-e[2];return n*n+r*r+a*a}function M(e){const t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}function A(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function b(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function w(e,t){const n=t[0],r=t[1],a=t[2];let i=n*n+r*r+a*a;return i>0&&(i=1/Math.sqrt(i),e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i),e}function _(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function v(e,t,n){const r=t[0],a=t[1],i=t[2],o=n[0],s=n[1],l=n[2];return e[0]=a*l-i*s,e[1]=i*o-r*l,e[2]=r*s-a*o,e}function R(e,t,n,r){const a=t[0],i=t[1],o=t[2];return e[0]=a+r*(n[0]-a),e[1]=i+r*(n[1]-i),e[2]=o+r*(n[2]-o),e}function E(e,t,n){const r=t[0],a=t[1],i=t[2];return e[0]=n[0]*r+n[4]*a+n[8]*i+n[12],e[1]=n[1]*r+n[5]*a+n[9]*i+n[13],e[2]=n[2]*r+n[6]*a+n[10]*i+n[14],e}function C(e,t,n){const r=t[0],a=t[1],i=t[2];return e[0]=r*n[0]+a*n[3]+i*n[6],e[1]=r*n[1]+a*n[4]+i*n[7],e[2]=r*n[2]+a*n[5]+i*n[8],e}function I(e,t,n){const r=n[0],a=n[1],i=n[2],o=n[3],s=t[0],l=t[1],u=t[2],c=a*u-i*l,d=i*s-r*u,f=r*l-a*s,h=a*f-i*d,m=i*c-r*f,p=r*d-a*c,g=2*o;return e[0]=s+c*g+2*h,e[1]=l+d*g+2*m,e[2]=u+f*g+2*p,e}const N=(0,r.vt)(),x=(0,r.vt)();function k(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function P(e,t){if(e===t)return!0;const n=e[0],r=e[1],i=e[2],o=t[0],s=t[1],l=t[2],u=(0,a.FD)();return Math.abs(n-o)<=u*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-s)<=u*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-l)<=u*Math.max(1,Math.abs(i),Math.abs(l))}function G(e,t,n){const r=n[0]-t[0],a=n[1]-t[1],i=n[2]-t[2];let o=r*r+a*a+i*i;return o>0?(o=1/Math.sqrt(o),e[0]=r*o,e[1]=a*o,e[2]=i*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const O=u,L=c,B=d,U=T,j=S,D=i,F=M;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:l,angle:function(e,t){w(N,e),w(x,t);const n=_(N,x);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(e,t,n,r,a,i){const o=1-i,s=o*o,l=i*i,u=s*o,c=3*i*s,d=3*l*o,f=l*i;return e[0]=t[0]*u+n[0]*c+r[0]*d+a[0]*f,e[1]=t[1]*u+n[1]*c+r[1]*d+a[1]*f,e[2]=t[2]*u+n[2]*c+r[2]*d+a[2]*f,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,n=1){return e[0]=Math.min(Math.max(e[0],t),n),e[1]=Math.min(Math.max(e[1],t),n),e[2]=Math.min(Math.max(e[2],t),n),e},copy:o,cross:v,crossAndNormalize:function(e,t,n){const r=t[0],a=t[1],i=t[2],o=n[0],s=n[1],l=n[2],u=a*l-i*s,c=i*o-r*l,d=r*s-a*o,f=Math.sqrt(u*u+c*c+d*d);return e[0]=u/f,e[1]=c/f,e[2]=d/f,e},direction:G,dist:U,distance:T,div:B,divide:d,dot:_,equals:P,exactEquals:k,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,n,r,a,i){const o=i*i,s=o*(2*i-3)+1,l=o*(i-2)+i,u=o*(i-1),c=o*(3-2*i);return e[0]=t[0]*s+n[0]*l+r[0]*u+a[0]*c,e[1]=t[1]*s+n[1]*l+r[1]*u+a[1]*c,e[2]=t[2]*s+n[2]*l+r[2]*u+a[2]*c,e},inverse:b,len:D,length:i,lerp:R,max:p,min:m,mul:L,multiply:c,negate:A,normalize:w,random:function(e,t=1){const n=a.Ov,r=2*n()*Math.PI,i=2*n()-1,o=Math.sqrt(1-i*i)*t;return e[0]=Math.cos(r)*o,e[1]=Math.sin(r)*o,e[2]=i*t,e},rotateX:function(e,t,n,r){const a=[],i=[];return a[0]=t[0]-n[0],a[1]=t[1]-n[1],a[2]=t[2]-n[2],i[0]=a[0],i[1]=a[1]*Math.cos(r)-a[2]*Math.sin(r),i[2]=a[1]*Math.sin(r)+a[2]*Math.cos(r),e[0]=i[0]+n[0],e[1]=i[1]+n[1],e[2]=i[2]+n[2],e},rotateY:function(e,t,n,r){const a=[],i=[];return a[0]=t[0]-n[0],a[1]=t[1]-n[1],a[2]=t[2]-n[2],i[0]=a[2]*Math.sin(r)+a[0]*Math.cos(r),i[1]=a[1],i[2]=a[2]*Math.cos(r)-a[0]*Math.sin(r),e[0]=i[0]+n[0],e[1]=i[1]+n[1],e[2]=i[2]+n[2],e},rotateZ:function(e,t,n,r){const a=[],i=[];return a[0]=t[0]-n[0],a[1]=t[1]-n[1],a[2]=t[2]-n[2],i[0]=a[0]*Math.cos(r)-a[1]*Math.sin(r),i[1]=a[0]*Math.sin(r)+a[1]*Math.cos(r),i[2]=a[2],e[0]=i[0]+n[0],e[1]=i[1]+n[1],e[2]=i[2]+n[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:g,scaleAndAdd:y,set:s,sign:h,sqrDist:j,sqrLen:F,squaredDistance:S,squaredLength:M,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:O,subtract:u,transformMat3:C,transformMat4:E,transformQuat:I},Symbol.toStringTag,{value:"Module"}))},3330(e,t,n){n.d(t,{GB:()=>a,Qo:()=>o,Y4:()=>i});var r=n(92647);class a{static{this.instance=r.mQ.parseSpecifier("UTC")}}function i(e){return e instanceof r.bo?e===a.instance:"unknown"===e?.toString().toLowerCase()}function o(e){return i(e)?a.instance:e}},83027(e,t,n){n.d(t,{h:()=>r});const r=n(29953).ho},35982(e,t,n){n.d(t,{B:()=>l});var r=n(4576),a=n(36563),i=n(53966),o=n(17676),s=n(83027);class l{constructor(e,t,n,r,a={}){this._mainMethod=t,this._transferLists=n,this._listeners=[],this._promise=(0,s.h)(e,{...a,schedule:r}).then(e=>{if(void 0===this._thread){this._thread=e,this._promise=null,a.hasInitialize&&this.broadcast({},"initialize");for(const e of this._listeners)this._connectListener(e)}else e.close()}),this._promise.catch(t=>i.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`))}on(e,t){const n={removed:!1,eventName:e,callback:t,threadHandle:null};return this._listeners.push(n),this._connectListener(n),(0,a.hA)(()=>{n.removed=!0,(0,r.TF)(this._listeners,n),this._thread&&null!=n.threadHandle&&n.threadHandle.remove()})}[Symbol.dispose](){this.destroy()}destroy(){this._thread&&(this._thread.close(),this._thread=null),this._promise=null,this._listeners.length=0,this._transferLists={}}invoke(e,t,n){return this.invokeMethod(this._mainMethod,e,t,n)}invokeMethod(e,t,n,r){if(this._thread){const a=this._transferLists[e],i=a?a(t):[];return this._thread.invoke(e,t,{transferList:i,signal:n,jobPriority:r})}return this._promise?this._promise.then(()=>((0,o.Te)(n),this.invokeMethod(e,t,n))):Promise.reject(null)}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then(u):this._promise?this._promise.then(()=>this.broadcast(e,t)):Promise.reject()}get promise(){return this._promise}_connectListener(e){this._thread&&this._thread.on(e.eventName,e.callback).then(t=>{e.removed||(e.threadHandle=t)})}}function u(){}},91075(e,t,n){n.d(t,{A:()=>l});var r=n(5482),a=n(25482),i=n(91429),o=n(16930),s=n(36005);let l=class extends a.o{constructor(...e){super(...e),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=o.A.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(e,t){if(e instanceof o.A)return e;if(null!=e){const n=new o.A;return n.read(e,t),n}return e}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(e){return this.cache[e]}setCacheValue(e,t){this.cache[e]=t}};(0,r.Cg)([(0,i.MZ)()],l.prototype,"type",void 0),(0,r.Cg)([(0,i.MZ)({readOnly:!0})],l.prototype,"cache",null),(0,r.Cg)([(0,i.MZ)({readOnly:!0})],l.prototype,"extent",null),(0,r.Cg)([(0,i.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],l.prototype,"hasM",void 0),(0,r.Cg)([(0,i.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],l.prototype,"hasZ",void 0),(0,r.Cg)([(0,i.MZ)({type:o.A,json:{write:!0},value:o.A.WGS84})],l.prototype,"spatialReference",void 0),(0,r.Cg)([(0,s.w)("spatialReference")],l.prototype,"readSpatialReference",null),l=(0,r.Cg)([(0,i.$K)("esri.geometry.Geometry")],l)},86738(e,t,n){n.d(t,{A:()=>S});var r=n(5482),a=n(69622),i=n(53966),o=n(91429),s=n(56507),l=n(91075),u=n(16930),c=n(21325),d=n(28735);function f({x:e,y:t,spatialReference:n},r=[0,0]){if(n){if((0,c.K8)(n))return(0,d.tD)(e,t,r);if((0,c.EA)(n))return r[0]=e,r[1]=t,r}return null}const h=[0,0];var m,p=n(43937),g=n(36005);const y=[0,0];function T(e){return e&&("esri.geometry.SpatialReference"===e.declaredClass||null!=e.wkid)}let S=m=class extends l.A{static copy(e,t){t._set("x",e._get("x")),t._set("y",e._get("y")),t._set("z",e._get("z")),t._set("m",e._get("m"));const n=e._get("spatialReference");t._set("spatialReference",a.A.isFrozen(n)?n:n.clone())}constructor(...e){super(...e),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(e,t,n,r,a){let o;if(Array.isArray(e))o=e,a=t,e=o[0],t=o[1],n=o[2],r=o[3];else if(e&&"object"==typeof e){if(o=e,e=null!=o.x?o.x:o.longitude,t=null!=o.y?o.y:o.latitude,n=o.z,r=o.m,(a=o.spatialReference)&&"esri.geometry.SpatialReference"!==a.declaredClass&&(a=new u.A(a)),null!=o.longitude||null!=o.latitude)if(null==o.longitude)i.A.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(null==o.latitude)i.A.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!o.declaredClass&&a?.isWebMercator){const n=(0,d.je)(o.longitude,o.latitude,y);e=n[0],t=n[1]}}else T(n)?(a=n,n=null):T(r)&&(a=r,r=null);const s={x:e,y:t};return null==s.x&&null!=s.y?i.A.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):null==s.y&&null!=s.x&&i.A.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),null!=a&&(s.spatialReference=a),null!=n&&(s.z=n),null!=r&&(s.m=r),s}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return void 0!==this.m}set hasM(e){e!==(void 0!==this._get("m"))&&(this._set("m",e?0:void 0),this._set("hasM",e))}get hasZ(){return void 0!==this.z}set hasZ(e){e!==(void 0!==this._get("z"))&&(this._set("z",e?0:void 0),this._set("hasZ",e))}get latitude(){return f(this,h)?.[1]??null}set latitude(e){const{spatialReference:t,x:n}=this;null!=e&&t&&(t.isWebMercator?this._set("y",(0,d.je)(n,e,y)[1]):t.isGeographic&&this._set("y",e),this._set("latitude",e))}get longitude(){return f(this,h)?.[0]??null}set longitude(e){const{y:t,spatialReference:n}=this;null!=e&&n&&(n.isWebMercator?this._set("x",(0,d.je)(e,t,y)[0]):n.isGeographic&&this._set("x",e),this._set("longitude",e))}writeX(e,t,n){t[n]=isNaN(e)?"NaN":e}readX(e){return"string"==typeof e?NaN:e}clone(){const e=new m;return e.x=this.x,e.y=this.y,e.z=this.z,e.m=this.m,e.spatialReference=this.spatialReference,e}copy(e){return m.copy(e,this),this}equals(e){if(null==e)return!1;const{x:t,y:n,z:r,m:a,spatialReference:i}=this,{z:o,m:s}=e;let{x:l,y:u,spatialReference:c}=e;if(!i.equals(c))if(i.isWebMercator&&c.isWGS84)[l,u]=(0,d.je)(l,u),c=i;else{if(!i.isWGS84||!c.isWebMercator)return!1;[l,u]=(0,d.tD)(l,u),c=i}return t===l&&n===u&&r===o&&a===s&&i.wkid===c.wkid}offset(e,t,n){return this.x+=e,this.y+=t,null!=n&&(this.z=(this.z??0)+n),this}normalize(){if(!this.spatialReference)return this;const e=(0,c.Vp)(this.spatialReference);if(!e)return this;let t=this.x;const[n,r]=e.valid,a=2*r;let i;return t>r?(i=Math.ceil(Math.abs(t-r)/a),t-=i*a):t<n&&(i=Math.ceil(Math.abs(t-n)/a),t+=i*a),this._set("x",t),this}distance(e){return function(e,t){const n=e.x-t.x,r=e.y-t.y,a=null!=e.z&&null!=t.z?e.z-t.z:0;return Math.sqrt(n*n+r*r+a*a)}(this,e)}toArray(){const e=this.hasZ,t=this.hasM;return e&&t?[this.x,this.y,this.z,this.m]:e?[this.x,this.y,this.z]:t?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(e){return this.write({},e)}};(0,r.Cg)([(0,o.MZ)({readOnly:!0})],S.prototype,"cache",null),(0,r.Cg)([(0,o.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],S.prototype,"hasM",null),(0,r.Cg)([(0,o.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],S.prototype,"hasZ",null),(0,r.Cg)([(0,o.MZ)({type:Number})],S.prototype,"latitude",null),(0,r.Cg)([(0,o.MZ)({type:Number})],S.prototype,"longitude",null),(0,r.Cg)([(0,o.MZ)({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),(0,o.wg)(e=>isNaN(e)?e:(0,s.GB)(e))],S.prototype,"x",void 0),(0,r.Cg)([(0,p.K)("x")],S.prototype,"writeX",null),(0,r.Cg)([(0,g.w)("x")],S.prototype,"readX",null),(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],S.prototype,"y",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],S.prototype,"z",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],S.prototype,"m",void 0),S=m=(0,r.Cg)([(0,o.$K)("esri.geometry.Point")],S),S.prototype.toJSON.isDefaultToJSON=!0},21276(e,t,n){n.d(t,{H:()=>i,f:()=>a});var r=n(49186);function a(e){if(e&&"object"==typeof e&&"type"in e&&"mesh"===e.type)throw new r.A("internal:mesh","Mesh geometries are not supported for this operation")}function i(e){e.forEach(a)}},159(e,t,n){n.d(t,{A:()=>u});var r,a=n(5482),i=n(69540),o=n(25482),s=n(91429),l=n(99157);let u=r=class extends((0,i.OU)(o.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new r;for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}};(0,a.Cg)([(0,s.MZ)({type:[l.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=r=(0,a.Cg)([(0,s.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,t,n){n.d(t,{A:()=>l});var r,a=n(5482),i=n(69540),o=n(25482),s=n(91429);let l=r=class extends((0,i.OU)(o.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,a.Cg)([(0,s.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,n)=>{t[n]=!e}}})],l.prototype,"isInverse",void 0),(0,a.Cg)([(0,s.MZ)({json:{write:!0}})],l.prototype,"wkt",void 0),(0,a.Cg)([(0,s.MZ)({json:{write:!0}})],l.prototype,"wkid",void 0),l=r=(0,a.Cg)([(0,s.$K)("esri.geometry.operators.support.GeographicTransformationStep")],l)},9762(e,t,n){n.r(t),n.d(t,{projectBuffer:()=>a});var r=n(49208);function a(e,t,n,a,i,o,s=Math.floor(e.length/3)){const l=(0,r.jd)(t,i);if(null==l)return!1;if(l===r.pO){if(e===a&&n===o)return!0;const t=n+3*s;for(let r=n,i=o;r<t;r++,i++)a[i]=e[r]??0;return!0}const u=n+3*s;for(let t=n,r=o;t<u;t+=3,r+=3)l(e,t,a,r);return!0}},65806(e,t,n){n.d(t,{g:()=>o});var r=n(51850),a=n(91218),i=n(9762);function o(e,t,n,r){if((0,a.canProjectWithoutEngine)(e.spatialReference,n))return s[0]=e.x,s[1]=e.y,s[2]=e.z??0,(0,i.projectBuffer)(s,e.spatialReference,0,t,n,0);const o=(0,a.tryProject)(e,n,r);return!!o&&(t[0]=o.x,t[1]=o.y,t[2]=o.z??0,!0)}const s=(0,r.vt)()},27993(e,t,n){n.d(t,{F:()=>s});var r=n(91218),a=n(16930),i=n(9762),o=n(65806);function s(e,t,n,a){return!(null==t||null==a||e.length<2)&&((0,r.canProjectWithoutEngine)(t,a)?(0,i.projectBuffer)(e,t,0,n,a,0,1):(l.x=e[0],l.y=e[1],l.z=e[2],l.spatialReference=t,(0,o.g)(l,n,a)))}const l={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:a.A.WGS84,type:"point"}},49208(e,t,n){n.d(t,{Tp:()=>d,jd:()=>c,pO:()=>h,w5:()=>u});var r=n(34727),a=n(86211),i=n(73941),o=n(79258),s=n(34403),l=n(21325);const u={2:{5:h,7:null,9:null,10:h,1:A,6:null,8:null,0:null,3:p,11:g,2:h,4:R},5:{5:h,7:null,9:null,10:h,1:A,6:null,8:null,0:null,3:p,11:g,2:h,4:R},7:{5:null,7:h,9:null,10:h,1:null,6:M,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:h,10:h,1:null,6:null,8:S,0:null,3:null,11:null,2:null,4:null},3:{5:m,7:null,9:null,10:m,1:function(e,t,n,r){const a=e[t]/k,i=x-2*Math.atan(Math.exp(-e[t+1]/k)),o=k+(e[t+2]??0),s=Math.cos(i)*o;n[r]=Math.cos(a)*s,n[r+1]=Math.sin(a)*s,n[r+2]=Math.sin(i)*o},6:null,8:null,0:null,3:h,11:function(e,t,n,r){m(e,t,n,r),g(n,r,n,r)},2:m,4:function(e,t,n,r){m(e,t,n,r),R(n,r,n,r)}},4:{5:E,7:null,9:null,10:E,1:function(e,t,n,r){E(e,t,n,r),A(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){E(e,t,n,r),p(n,r,n,r)},11:function(e,t,n,r){E(e,t,n,r),g(n,r,n,r)},2:E,4:h},1:{5:v,7:null,9:null,10:v,1:h,6:null,8:null,0:null,3:function(e,t,n,r){v(e,t,n,r),p(n,r,n,r)},11:function(e,t,n,r){v(e,t,n,r),g(n,r,n,r)},2:v,4:function(e,t,n,r){v(e,t,n,r),R(n,r,n,r)}},6:{5:null,7:_,9:null,10:_,1:null,6:h,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:w,10:w,1:null,6:null,8:h,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:h,3:null,11:null,2:null,4:null},10:{5:h,7:h,9:h,10:h,1:A,6:M,8:S,0:null,3:p,11:g,2:h,4:R},11:{5:y,7:null,9:null,10:y,1:function(e,t,n,r){y(e,t,n,r),A(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){y(e,t,n,r),p(n,r,n,r)},11:h,2:y,4:function(e,t,n,r){y(e,t,n,r),R(n,r,n,r)}}};function c(e,t){return d(e,t)?.projector}function d(e,t){if(null==e||null==t)return null;if(C.source.spatialReference===e&&C.dest.spatialReference===t)return C;const n=f(e,C.source),r=f(t,C.dest);return 0===n&&0===r?(0,l.aI)(e,t)?C.projector=h:C.projector=null:C.projector=u[n][r],C}function f(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,a.GA)(e,1)),(0,i.jA)(e)?t.spatialReferenceId=1:(0,l.oT)(e)?t.spatialReferenceId=2:(0,l.K8)(e)?t.spatialReferenceId=3:(0,l.r1)(e)?t.spatialReferenceId=11:e.wkt===i.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===i.FY.wkt?t.spatialReferenceId=6:e.wkt===i.LJ.wkt?t.spatialReferenceId=8:(0,i.q8)(e)?t.spatialReferenceId=7:(0,i.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function h(e,t,n,r){e!==n&&(n[r++]=e[t++],n[r++]=e[t++],n[r]=e[t]??0)}function m(e,t,n,r){n[r]=N*(e[t]/k),n[r+1]=N*(x-2*Math.atan(Math.exp(-e[t+1]/k))),n[r+2]=e[t+2]??0}function p(e,t,n,a){!function(e,t,n,a,i){const o=.4999999*Math.PI,s=(0,r.qE)(I*e[t+1],-o,o),l=Math.sin(s);n[a++]=I*e[t]*i.radius,n[a++]=i.halfSemiMajorAxis*Math.log((1+l)/(1-l)),n[a]=e[t+2]??0}(e,t,n,a,o.$O)}function g(e,t,n,r){n[r]=e[t]*P,n[r+1]=e[t+1]*P,n[r+2]=e[t+2]??0}function y(e,t,n,r){n[r]=e[t]*G,n[r+1]=e[t+1]*G,n[r+2]=e[t+2]??0}function T(e,t,n,r,a){const i=a+(e[t+2]??0),o=I*e[t],s=I*e[t+1],l=Math.cos(s)*i;n[r]=Math.cos(o)*l,n[r+1]=Math.sin(o)*l,n[r+2]=Math.sin(s)*i}function S(e,t,n,r){T(e,t,n,r,o.Sw.radius)}function M(e,t,n,r){T(e,t,n,r,o.sH.radius)}function A(e,t,n,r){T(e,t,n,r,o.$O.radius)}function b(e,t,n,a,i){const o=e[t],s=e[t+1],l=e[t+2]??0,u=Math.sqrt(o*o+s*s+l*l),c=(0,r.YN)(l/(0===u?1:u)),d=Math.atan2(s,o);n[a++]=N*d,n[a++]=N*c,n[a]=u-i}function w(e,t,n,r){b(e,t,n,r,o.Sw.radius)}function _(e,t,n,r){b(e,t,n,r,o.sH.radius)}function v(e,t,n,r){b(e,t,n,r,o.$O.radius)}function R(e,t,n,r){!function(e,t,n,r,a){const i=I*e[t],o=I*e[t+1],s=e[t+2]??0,l=Math.sin(o),u=Math.cos(o),c=a.radius/Math.sqrt(1-a.eccentricitySquared*l*l);n[r++]=(c+s)*u*Math.cos(i),n[r++]=(c+s)*u*Math.sin(i),n[r++]=(c*(1-a.eccentricitySquared)+s)*l}(e,t,n,r,o.$O)}function E(e,t,n,r){const a=s.TP,i=e[t],l=e[t+1],u=e[t+2]??0;let c,d,f,h,m,p,g,y,T,S,M,A,b,w,_,v,R,E,C,I,x;c=Math.abs(u),d=i*i+l*l,f=Math.sqrt(d),h=d+u*u,m=Math.sqrt(h),I=Math.atan2(l,i),p=u*u/h,g=d/h,w=a.a2/m,_=a.a3-a.a4/m,g>.3?(y=c/m*(1+g*(a.a1+w+p*_)/m),C=Math.asin(y),S=y*y,T=Math.sqrt(1-S)):(T=f/m*(1-p*(a.a5-w-g*_)/m),C=Math.acos(T),S=1-T*T,y=Math.sqrt(S)),M=1-o.$O.eccentricitySquared*S,A=o.$O.radius/Math.sqrt(M),b=a.a6*A,w=f-A*T,_=c-b*y,R=T*w+y*_,v=T*_-y*w,E=v/(b/M+R),C+=E,x=R+v*E/2,u<0&&(C=-C),n[r++]=N*I,n[r++]=N*C,n[r]=x}const C={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:h},I=(0,r.kU)(1),N=(0,r.KJ)(1),x=.5*Math.PI,k=o.$O.radius,P=k*Math.PI/180,G=180/(k*Math.PI)},91218(e,t,n){n.r(t),n.d(t,{canProjectWithoutEngine:()=>W,initializeProjection:()=>Y,isEqualBaseGCS:()=>$,isLoaded:()=>k,isLoadedOrLoad:()=>P,isLoadedOrLoadFor:()=>G,load:()=>L,project:()=>B,projectAsync:()=>q,projectExtent:()=>ae,projectMany:()=>U,projectMultipoint:()=>X,projectOrLoad:()=>D,projectOrLoadMany:()=>F,projectPoint:()=>K,projectPolygon:()=>ne,projectPolyline:()=>ee,projectWithoutEngine:()=>V,requiresLoad:()=>O,test:()=>H,tryProject:()=>j,unload:()=>Z});var r=n(49186),a=n(17676),i=n(62788),o=n(95488),s=n(51850),l=n(21276),u=n(73941),c=n(5443),d=n(91075),f=n(48526),h=n(86738),m=n(39829),p=n(82799),g=n(16930),y=n(98764),T=n(159),S=n(9762),M=n(49208);function A(e,t,n,r,a,i){return b[0]=e,b[1]=t,b[2]=n,(0,S.projectBuffer)(b,r,0,a,i,0)}const b=(0,s.vt)();var w=n(60408),_=n(21325),v=n(52006);let R=null,E=null,C=null,I=null,N={};const x=new o.I;function k(){return!!(E?.isLoaded()&&C?.isLoaded()&&I?.isLoaded())}function P(){return!!k()||((0,i.gc)(x),L(),!1)}function G(e,t){return!e||!t||W(e,t)||P()}function O(e,t){return!W(e,t)&&!k()}async function L(e){null==R&&(R=Promise.all([n.e(3276).then(n.bind(n,83276)).then(e=>(E=e,E.load())),n.e(8377).then(n.bind(n,8377)).then(e=>(C=e,C.load())),n.e(2158).then(n.bind(n,12158)).then(e=>(I=e,I.load()))])),await R,(0,a.Te)(e),x.notify()}function B(e,t,n){return Array.isArray(e)?0===e.length?[]:((0,l.H)(e),U(e,e[0].spatialReference,t,n)):((0,l.f)(e),U([e],e.spatialReference,t,n)[0])}function U(e,t,n,r){if(null==t||null==n)return e;if(W(t,n,r))return e.map(e=>V(e,t,n));if(null==r?.geographicTransformation&&(0,u.jA)(t))return U(e.map(e=>V(e,t,g.A.WGS84)),g.A.WGS84,n,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,u.jA)(n))return U(e,t,g.A.WGS84).map(e=>V(e,g.A.WGS84,n));if(!k())throw new z;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:I.getTransformation(t,n,r.areaOfInterestExtent)||new T.A};else if(!r?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,n);let a=N[e];a||(a=I.getTransformation(t,n)||new T.A,N[e]=a),r={geographicTransformation:a,zConversionDisabled:r?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof d.A?E.executeMany(e,n,r):C.executeMany(e,n,r)}function j(e,t,n){try{return B(e,t,n)}catch(e){return null}}function D(e,t){const n=F([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function F(e,t,n){if(!k())for(const n of e)if(null!=n&&!(0,_.aI)(n.spatialReference,t)&&(0,_.fn)(n.spatialReference)&&(0,_.fn)(t)&&!W(n.spatialReference,t))return(0,i.gc)(x),{pending:L(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,_.aI)(e.spatialReference,t)?e:(0,_.fn)(e.spatialReference)&&(0,_.fn)(t)?B(e,t,n):null)}}class z extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function Z(){R=null,E=null,C=null,I=null,N={}}const H={get loadPromise(){return R}};async function q(e,t,n){if((0,a.Te)(n),!e)return e;const r=F(Array.isArray(e)?e:[e],t,n);if(r.pending)return await r.pending,(0,a.Te)(n),q(e,t,n);const i=r.geometries??[];return Array.isArray(e)?i:i[0]}function W(e,t,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,_.aI)(e,t)||(0,_.fn)(e)&&(0,_.fn)(t)&&!!(0,M.jd)(e,t))}function $(e,t){if((0,_.aI)(e,t))return!0;if(!(0,_.fn)(e)||!(0,_.fn)(t))return!1;const n=(0,_.oT)(e)||(0,_.K8)(e)||(0,_.x1)(e),r=(0,_.oT)(t)||(0,_.K8)(t)||(0,_.x1)(t);return n&&r}async function Y(e,t,n,r){if(k())return(0,a.NO)(r);if(Array.isArray(e)){for(const{source:t,dest:n,options:a}of e)if(t&&n&&!W(t,n,a))return L(r)}else if(e&&t&&!W(e,t,n))return L(r);return(0,a.NO)(r)}function V(e,t,n){return e?(0,w.fT)(e)?J(e,t,new h.A,n,0):(0,w.ZC)(e)?ie(e,t,new c.A,n,0):(0,w.Bi)(e)?re(e,t,new m.A,n,0):(0,w.Rg)(e)?te(e,t,new p.A,n,0):(0,w.U9)(e)?Q(e,t,new f.A,n,0):null:null}function K(e,t,n=t.spatialReference,r=0){return null!=n&&null!=e.spatialReference&&null!=J(e,e.spatialReference,t,n,r)}function J(e,t,n,r,a){ue[0]=e.x,ue[1]=e.y;const i=e.z;return ue[2]=void 0!==i?i:a,(0,S.projectBuffer)(ue,t,0,ue,r,0)?(n.x=ue[0],n.y=ue[1],n.spatialReference=r,void 0!==i||(0,u.xP)(r)?(n.z=ue[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function X(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=Q(e,e.spatialReference,t,n,r)}function Q(e,t,n,r,a){const{points:i,hasZ:o,hasM:s}=e,l=[],u=i.length,c=[];for(const e of i)c.push(e[0],e[1],o?e[2]:a);if(!(0,S.projectBuffer)(c,t,0,c,r,0,u))return null;const d=le(o,r);for(let e=0;e<u;++e){const t=3*e,n=c[t],r=c[t+1];d&&s?l.push([n,r,c[t+2],i[e][3]]):d?l.push([n,r,c[t+2]]):s?l.push([n,r,i[e][2]]):l.push([n,r])}return n.points=l,n.spatialReference=r,n.hasZ=o,n.hasM=s,n}function ee(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=te(e,e.spatialReference,t,n,r)}function te(e,t,n,r,a){const{curvePaths:i,paths:o,hasZ:s,hasM:l}=e;if(!(i?se(i,s??!1,l??!1,t,n.curvePaths=[],r,a):oe(o,s??!1,l??!1,t,n.paths,r,a)))return null;const u=le(s,r);return n.spatialReference=r,n.hasZ=u,n.hasM=l,n}function ne(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=re(e,e.spatialReference,t,n,r)}function re(e,t,n,r,a){const{curveRings:i,rings:o,hasZ:s,hasM:l}=e;return(i?se(i,s??!1,l??!1,t,n.curveRings=[],r,a):oe(o,s??!1,l??!1,t,n.rings,r,a))?(n.spatialReference=r,n.hasZ=le(s,r),n.hasM=l,n):null}function ae(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=ie(e,e.spatialReference,t,n,r)}function ie(e,t,n,r,a){const{xmin:i,ymin:o,xmax:s,ymax:l,hasZ:u,hasM:c}=e;if(!A(i,o,u?e.zmin:a,t,ue,r))return null;const d=le(u,r);return n.xmin=ue[0],n.ymin=ue[1],d&&(n.zmin=ue[2]),A(s,l,u?e.zmax:a,t,ue,r)?(n.xmax=ue[0],n.ymax=ue[1],d&&(n.zmax=ue[2]),c&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=r,n):null}function oe(e,t,n,r,a,i,o=0){const s=new Array;for(const n of e)for(const e of n)s.push(e[0],e[1],t?e[2]:o);if(!(0,S.projectBuffer)(s,r,0,s,i,0))return!1;let l=0;a.length=0;const u=t?3:2,c=le(t,i);for(const t of e){const e=new Array;for(const r of t){const t=s.slice(l,l+=3);c||t.pop(),n&&t.push(r[u]),e.push(t)}a.push(e)}return!0}function se(e,t,n,r,a,i,o=0){const s=new Array;for(const n of e)for(const e of n){if((0,v.FG)(e))return!1;if((0,v.aO)(e)){const[n,r]=e.c;s.push(n[0],n[1],t?n[2]:o,r[0],r[1],o);continue}if((0,v.n1)(e)){const[n,r,a]=e.b;s.push(n[0],n[1],t?n[2]:o,r[0],r[1],o,a[0],a[1],o);continue}const n=e;s.push(n[0],n[1],t?n[2]:o)}if(!(0,S.projectBuffer)(s,r,0,s,i,0))return!1;let l=0;a.length=0;const u=t?3:2,c=le(t,i);for(const t of e){const e=new Array;for(const r of t){const t=s.slice(l,l+=3);if(c||t.pop(),n&&t.push((0,v.yP)(r)[u]),(0,v.FG)(r))return!1;if((0,v.aO)(r)){const n=s[l++],r=s[l++];++l,e.push({c:[t,[n,r]]});continue}if((0,v.n1)(r)){const n=s[l++],r=s[l++];++l;const a=s[l++],i=s[l++];++l,e.push({b:[t,[n,r],[a,i]]});continue}e.push(t)}a.push(e)}return!0}function le(e,t){return e||(0,u.xP)(t)||(0,_.aI)(t,y.Y0)}const ue=(0,s.vt)()},98764(e,t,n){n.d(t,{GD:()=>o,Y0:()=>u,lO:()=>c});var r=n(73941),a=n(16930),i=n(21325);const o=new a.A(r.fv),s=new a.A(r.FY),l=new a.A(r.LJ),u=new a.A(r.Ro);function c(e){const t=d.get(e);if(t)return t;let n=o;if(e)if(e===s)n=s;else if(e===l)n=l;else{const t=e.wkid,r=e.latestWkid;if(null!=t||null!=r)(0,i.tl)(t)||(0,i.tl)(r)?n=s:((0,i.ZL)(t)||(0,i.ZL)(r))&&(n=l);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===f?n=s:e===h&&(n=l)}}}return d.set(e,n),n}const d=new Map,f=s.wkt.toUpperCase(),h=l.wkt.toUpperCase()},4197(e,t,n){n.d(t,{Vj:()=>u,cj:()=>l,jh:()=>i,l5:()=>s,xm:()=>o});var r=n(34275),a=n(9093);function i(e){return e<=r.y9?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,r.iu)(e)?e.byteLength/8:e.length)<=r.y9?Array.from(e):new Float64Array(e)}function s(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function l(e){return[...e]}function u(e){const t=(0,a.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},95696(e,t,n){n.d(t,{A:()=>u});var r,a=n(5482),i=n(69540),o=n(25482),s=n(91429),l=n(93223);let u=class extends((0,i.OU)(o.o)){static{r=this}constructor(e){super(e),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,a.Cg)([(0,l.e)({georeferenced:"georeferenced"},{readOnly:!0})],u.prototype,"type",void 0),(0,a.Cg)([(0,s.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],u.prototype,"origin",void 0),u=r=(0,a.Cg)([(0,s.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],u)},18251(e,t,n){n.r(t),n.d(t,{default:()=>u});var r=n(5482),a=n(69540),i=n(25482),o=n(91429),s=n(51850),l=n(93223);let u=class extends((0,a.OU)(i.o)){constructor(e){super(e),this.type="local",this.origin=(0,s.vt)()}};(0,r.Cg)([(0,l.e)({local:"local"},{readOnly:!0})],u.prototype,"type",void 0),(0,r.Cg)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,r.Cg)([(0,o.$K)("esri.geometry.support.MeshLocalVertexSpace")],u)},72727(e,t,n){function r(e,t,n){if(t<=0)return 0;const r=e-n;return r<0?0:Math.floor(r/t)+1}n.d(t,{k:()=>r}),n(53966)},34403(e,t,n){n.d(t,{TP:()=>o});var r=n(79258);Math.PI;const a=r.$O.radius,i=r.$O.eccentricitySquared,o={a1:a*i,a2:a*i*a*i,a3:a*i*i/2,a4:a*i*a*i*2.5,a5:a*i+a*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},60408(e,t,n){function r(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function a(e){return void 0!==e.points}function i(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function s(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?i(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":s(e)?"esriGeometryPolygon":r(e)?"esriGeometryEnvelope":a(e)?"esriGeometryMultipoint":null:null}function c(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function d(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}n.d(t,{$B:()=>u,Bi:()=>s,Pv:()=>c,Rg:()=>o,U9:()=>a,W0:()=>d,ZC:()=>r,fT:()=>i,uW:()=>l})},28735(e,t,n){n.d(t,{Cv:()=>g,Gh:()=>S,ci:()=>M,je:()=>y,jg:()=>d,tD:()=>T,y7:()=>p,yw:()=>c});var r=n(4718),a=n(21276),i=n(16930),o=n(79258),s=n(21325);function l(e){return 57.29577951308232*e}function u(e){return.017453292519943*e}function c(e){return e/o.$O.radius}function d(e){return Math.PI/2-2*Math.atan(Math.exp(-e/o.$O.radius))}function f(e){return null!=e.wkid||null!=e.wkt}const h=[0,0];function m(e,t,n,r,a){const i=e,o=a;if(o.spatialReference=n,"x"in i&&"x"in o)[o.x,o.y]=t(i.x,i.y,h,r);else if("xmin"in i&&"xmin"in o)[o.xmin,o.ymin]=t(i.xmin,i.ymin,h,r),[o.xmax,o.ymax]=t(i.xmax,i.ymax,h,r);else if("paths"in i&&"paths"in o||"rings"in i&&"rings"in o){const e="paths"in i?i.paths:i.rings,n=[];let a;for(let i=0;i<e.length;i++){const o=e[i];a=[],n.push(a);for(let e=0;e<o.length;e++)a.push(t(o[e][0],o[e][1],[0,0],r)),o[e].length>2&&a[e].push(o[e][2]),o[e].length>3&&a[e].push(o[e][3])}"paths"in o?o.paths=n:o.rings=n}else if("points"in i&&"points"in o){const e=i.points,n=[];for(let a=0;a<e.length;a++)n[a]=t(e[a][0],e[a][1],[0,0],r),e[a].length>2&&n[a].push(e[a][2]),e[a].length>3&&n[a].push(e[a][3]);o.points=n}return a}function p(e,t){const n=e&&(f(e)?e:e.spatialReference),r=t&&(f(t)?t:t.spatialReference);return!(e&&"type"in e&&"mesh"===e.type||t&&"type"in t&&"mesh"===t.type||!n||!r)&&(!!(0,s.aI)(r,n)||(0,s.K8)(r)&&(0,s.oT)(n)||(0,s.K8)(n)&&(0,s.oT)(r))}function g(e,t){if(null==e)return null;const n=e.spatialReference,a=t&&(f(t)?t:t.spatialReference);return p(n,a)?(0,s.aI)(n,a)?(0,r.o8)(e):(0,s.K8)(a)?m(e,y,i.A.WebMercator,!1,(0,r.o8)(e)):(0,s.oT)(a)?m(e,T,i.A.WGS84,!1,(0,r.o8)(e)):null:null}function y(e,t,n=[0,0]){t>89.99999?t=89.99999:t<-89.99999&&(t=-89.99999);const r=u(t);return n[0]=u(e)*o.$O.radius,n[1]=o.$O.halfSemiMajorAxis*Math.log((1+Math.sin(r))/(1-Math.sin(r))),n}function T(e,t,n=[0,0],r=!1){if(e===s.Mc[0])n[0]=-180;else if(e===s.Mc[1])n[0]=180;else{const t=l(e/o.$O.radius);n[0]=r?t:t-360*Math.floor((t+180)/360)}return n[1]=l(Math.PI/2-2*Math.atan(Math.exp(-t/o.$O.radius))),n}function S(e,t=!1,n=(0,r.o8)(e)){return(0,a.f)(e),(0,a.f)(n),m(e,y,i.A.WebMercator,t,n)}function M(e,t=!1,n=(0,r.o8)(e)){return(0,a.f)(e),(0,a.f)(n),m(e,T,i.A.WGS84,t,n)}},97770(e,t,n){n.d(t,{Ey:()=>k,F8:()=>x,J2:()=>E,Yq:()=>I,_m:()=>C,_v:()=>M,iS:()=>N,wj:()=>P});var r=n(66552),a=n(73444),i=n(98623),o=(n(56400),n(92647));const s={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},u={timeZone:i.n$},c={year:"numeric",month:"numeric",day:"numeric"},d={year:"numeric",month:"long",day:"numeric"},f={year:"numeric",month:"short",day:"numeric"},h={year:"numeric",month:"long",weekday:"long",day:"numeric"},m={hour:"numeric",minute:"numeric"},p={...m,second:"numeric"},g={hourCycle:"h23"},y={...m,...g},T={...p,...g},S={"short-date":c,"short-date-short-time":{...c,...m},"short-date-short-time-24":{...c,...y},"short-date-long-time":{...c,...p},"short-date-long-time-24":{...c,...T},"short-date-le":c,"short-date-le-short-time":{...c,...m},"short-date-le-short-time-24":{...c,...y},"short-date-le-long-time":{...c,...p},"short-date-le-long-time-24":{...c,...T},"long-month-day-year":d,"long-month-day-year-short-time":{...d,...m},"long-month-day-year-short-time-24":{...d,...y},"long-month-day-year-long-time":{...d,...p},"long-month-day-year-long-time-24":{...d,...T},"day-short-month-year":f,"day-short-month-year-short-time":{...f,...m},"day-short-month-year-short-time-24":{...f,...y},"day-short-month-year-long-time":{...f,...p},"day-short-month-year-long-time-24":{...f,...T},"long-date":h,"long-date-short-time":{...h,...m},"long-date-short-time-24":{...h,...y},"long-date-long-time":{...h,...p},"long-date-long-time-24":{...h,...T},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":m,"long-time":p},M=(0,r.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),A={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},b=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),w=b.find(({type:e})=>"month"===e)?.value.toLowerCase();function _(){const e=(0,a.lR)();return(e&&A[e])??(0,a.QC)()}"mart"!==w&&(A.bs="sr-Latn-CS");let v=new WeakMap;const R=S["short-date-short-time"];function E(e){return S[e]}function C(e){const{dateStyle:t,timeStyle:n,hour12:r,year:a,month:i}=e,o={};return t?o.dateStyle=t:a&&(o.year=a,o.month=i||void 0),n&&!o.year&&(o.timeStyle=n,o.hour12="auto"===r?void 0:"always"===r),o}function I(e,t=R){return function(e){let t=v.get(e);if(!t){const n=_(),r=P(e.timeZone??i.qU),a={...e,timeZone:r};t=new Intl.DateTimeFormat(n,a),v.set(e,t)}return t}(t).format(e)}function N(e,t=R){return I(new Date(e),{...t,...u,...l})}function x(e,t=R){return I(new Date(`1970-01-01T${e}Z`),{...t,...u,...s})}function k(e,t=R){const n=o.c9.fromISO(e,{setZone:!0});if(!n.isValid)return e;if(t.timeZone)return I(n.toJSDate(),t);const r=0===n.offset?i.n$:t.timeZone,a={...t,timeZone:r};return n.toLocaleString(a,{locale:_()})}function P(e){switch(e){case i.qU:return i.N5;case i.L5:return i.n$;default:return e}}(0,a.Ml)(()=>{v=new WeakMap})},73444(e,t,n){n.d(t,{JK:()=>l,Ml:()=>g,QC:()=>d,lR:()=>c,oQ:()=>m});var r=n(36563);let a;n(44208);const i=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function s(){const e=o?.getAttribute("lang"),t=globalThis.navigator?.language;return i??e??t??"en"}function l(){return void 0===a&&(a=s()),a}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function c(e=l()){return f(e)?.language}function d(e=l()){const t=f(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function f(e=l()){return u.exec(e)?.groups}const h=[];function m(e){return h.push(e),(0,r.hA)(()=>{h.splice(h.indexOf(e),1)})}new Map;const p=[];function g(e){return p.push(e),(0,r.hA)(()=>p.splice(p.indexOf(e),1))}function y(){const e=s();a!==e&&([...p].forEach(t=>t(e)),a=e,[...h].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",y),o&&new MutationObserver(()=>{y()}).observe(o,{attributeFilter:["lang"]})},10838(e,t,n){n.d(t,{ao:()=>d,ud:()=>f,xO:()=>h});var r=n(49186),a=n(36563),i=n(73444);const o={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:"no",nl:!0,no:!0,nn:"no",pl:!0,pt:"pt-BR","pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,zh:"zh-CN","zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function s(e){if(function(e){return e in o}(e)){const t=o[e];return!0===t?e:t}return null}const l=[],u=new Map;function c(e){for(const t of u.keys())m(e.pattern,t)&&u.delete(t)}function d(e){return l.includes(e)||(c(e),l.unshift(e)),(0,a.hA)(()=>{const t=l.indexOf(e);t>-1&&(l.splice(t,1),c(e))})}async function f(e){const t=(0,i.JK)();u.has(e)||u.set(e,async function(e,t){const n=[];for(const r of l)if(m(r.pattern,e))try{return await r.fetchMessageBundle(e,t)}catch(e){n.push(e)}if(n.length)throw new r.A("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:n});throw new r.A("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const n=u.get(e);return n&&await p.add(n),n}function h(e){const t=(0,i.lR)(e);return t?s(e)??s(t):null}function m(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,i.Ml)(()=>{u.clear()});const p=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then(()=>this._decrease(),()=>this._decrease()),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=Promise.withResolvers())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},98623(e,t,n){n.d(t,{L5:()=>a,N5:()=>o,n$:()=>i,qU:()=>r});const r="system",a="unknown",i="UTC",o=Intl.DateTimeFormat().resolvedOptions().timeZone},56400(e,t,n){n.d(t,{ZS:()=>u,S3:()=>h,hv:()=>c,wr:()=>d,P6:()=>l});var r=n(91869),a=n(3330),i=n(98623);const o=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Bishkek"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var s=n(92647);function l(e,t=!1){return{json:{read:{source:e,reader:(t,n)=>n[e]?u(n[e]):null},write:!!t&&{allowNull:!0,writer(t,n){n[e]=t?function(e){return{timeZoneIANA:e}}(t):null}}}}}function u(e,t=i.qU){return e?function(e){return"timeZoneIANA"in e}(e)?e.timeZoneIANA:function(e,t=i.qU){if(!e||!o.has(e.timeZone))return t;const n=o.get(e.timeZone);return function(e){return e.startsWith("UTC")}(e.timeZone)||e.respectsDaylightSaving?n:function(e){const t=s.c9.local().setZone(e),n=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return 0===n?"Etc/UTC":`Etc/GMT${s.mQ.instance(-n).formatOffset(0,"narrow")}`}(n)}(e,t):t}function c(e,t,n,r,a){if(t&&"date"===a)return{timeZone:i.n$,timeZoneName:void 0};const o=r.hour,s=n===i.L5;return{timeZone:s?"timestamp-offset"===a?void 0:e??i.n$:n,timeZoneName:s&&o?"shortOffset":void 0}}function d(e){const t=new Set(["etc/utc","etc/gmt","gmt"]),n=new Set(Intl.supportedValuesOf("timeZone").map(e=>e.toLowerCase()));return e===i.qU||e===i.L5||t.has(e.toLowerCase())||n.has(e.toLowerCase())}const f=new Map;function h(e){return e===i.L5?a.GB.instance:e===i.n$||"Etc/UTC"===e?s.mQ.utcInstance:(0,r.tE)(f,e,()=>s.oh.create(e))}},18003(e,t,n){n.r(t),n.d(t,{destroyContext:()=>x,dracoDecompressPointCloudData:()=>v,filterObbsForModifications:()=>R,filterObbsForModificationsSync:()=>B,initialize:()=>D,interpretObbModificationResults:()=>L,process:()=>_,project:()=>I,setLegacySchema:()=>C,setModifications:()=>E,setModificationsSync:()=>G,test:()=>z,transformNormals:()=>N});var r=n(34727),a=n(77690),i=n(29242),o=n(16930),s=n(4197),l=n(95696),u=n(18251),c=n(73354),d=n(2741);let f;var h=n(35522),m=n(51850),p=n(10614),g=n(63907),y=n(74038);class T{constructor(e,t){this.data=e,this.indices=t}}function S(e,t,n,r,a){if(!r||n.some(({name:e})=>"normal"===e)||n.some(({name:e})=>"normalCompressed"===e)){const r=new T(e.slice().buffer,t);if(a){const e=n[0].stride,t=r.data.byteLength/e;for(const i of n)if("normalCompressed"===i.name){const{offset:n}=i,o=new Int16Array(r.data),s=(0,m.vt)();for(let r=0;r<t;++r)(0,p.Tz)(s,o,r,e/2,n/2),(0,h.ei)(s,s,a),(0,p.aT)(o,r,s[0],s[1],s[2],e/2,n/2)}else if("normal"===i.name){const{offset:n}=i,o=new Float32Array(r.data),s=(0,m.vt)();for(let r=0;r<t;++r){const t=(r*e+n)/4;s[0]=o[t],s[1]=o[t+1],s[2]=o[t+2],(0,h.ei)(s,s,a),o[t]=s[0],o[t+1]=s[1],o[t+2]=s[2]}}}return r}const i=n[0].stride,o=i/4,s=new Float32Array(e.buffer,e.byteOffset,e.byteLength/4),l=t.length/3,u=e.byteLength/i,{faceNormals:c,faceAreas:d,faceEdges:f,edgeFaces:S,vertexFaces:A,vertexFaceCountAndOffset:w}=function(e,t,n,r,a,i){const o=new Float32Array(3*a),s=new Float32Array(a),l=new Uint32Array(3*a),u=new Int32Array(3*a*2),c=3*a,d=new Uint32Array(c),f=new Uint32Array(2*n);for(let e=0;e<a;++e){const t=3*e;for(let e=0;e<3;++e)++f[2*r[t+e]]}{let e=0;for(let t=0;t<n;++t)f[2*t+1]=e,e+=f[2*t];for(let e=0;e<a;++e){const t=3*e;for(let n=0;n<3;++n)d[f[2*r[t+n]+1]++]=e}for(let e=0;e<n;++e)f[2*e+1]-=f[2*e]}let h=0;{const a=new Uint32Array(2*c*2),d=new Uint32Array(2*n);for(let e=0;e<n;++e){const t=2*f[2*e+1]*2;d[2*e]=t,d[2*e+1]=t}const m=(e,t,n)=>{const r=Math.min(e,t),i=Math.max(e,t),o=e<t?0:1,s=d[2*r],l=d[2*r+1];let c=-1;for(let e=s;e<l;e+=2)if(a[e]===i){c=a[e+1];break}return-1===c&&(c=h++,a[l]=i,a[l+1]=c,d[2*r+1]+=2,u[2*c+(1-o)]=-1),u[2*c+o]=n,c};for(let n=0;n<r.length;n+=3){const a=r[n],u=a*t,c=e[u],d=e[u+1],f=e[u+2],h=r[n+1],p=h*t,g=e[p],y=e[p+1],T=e[p+2],S=r[n+2],M=S*t,A=c-g,b=d-y,w=f-T,_=c-e[M],v=d-e[M+1],R=f-e[M+2],E=b*R-w*v,C=w*_-A*R,I=A*v-b*_,N=Math.sqrt(E*E+C*C+I*I)||1,x=n/3;s[x]=.5*N;const k=1/N;if(i){const e=i[0]*E+i[3]*C+i[6]*I,t=i[1]*E+i[4]*C+i[7]*I,n=i[2]*E+i[5]*C+i[8]*I;o[3*x]=e*k,o[3*x+1]=t*k,o[3*x+2]=n*k}else o[3*x]=E*k,o[3*x+1]=C*k,o[3*x+2]=I*k;const P=m(a,h,x),G=m(h,S,x),O=m(S,a,x);l[3*x]=P,l[3*x+1]=G,l[3*x+2]=O}}return{faceNormals:o,faceAreas:s,faceEdges:l,vertexFaces:d,vertexFaceCountAndOffset:f,edgeFaces:u}}(s,o,u,t,l,a);M(t,l,c,d,f,S);const _=i+4;n.forEach(e=>e.stride=_),n.push(new y._("normalCompressed",2,g.pe.SHORT,i,_,!0));const v=3*l,R=_/4,E=new Float32Array(v*R),C=new(v<256?Uint8Array:v<65536?Uint16Array:Uint32Array)(t);let I=u;const N=new Int16Array(E.buffer),x=i/2,k=_/2;let P=0,G=0;const O=new Uint32Array(l);let L=0;for(let e=0;e<u;++e){const t=e*R,n=e*o;for(let e=0;e<o;++e)E[t+e]=s[n+e];P=w[2*e+1],G=P+w[2*e];let r=e;for(;P<G;){{const e=A[--G],t=c[3*e],n=c[3*e+1],a=c[3*e+2];L=0,O[L++]=e;for(let e=P;e<G;++e){const r=A[e],i=c[3*r],o=c[3*r+1],s=c[3*r+2];Math.abs(1-(t*i+n*o+a*s))<b&&(O[L++]=r,e<G-1&&(A[e]=A[--G]))}let i=0,o=0,s=0;if(1===L)i=t,o=n,s=a;else{for(let e=0;e<L;++e){const t=O[e],n=d[t];i+=c[3*t]*n,o+=c[3*t+1]*n,s+=c[3*t+2]*n}const e=Math.sqrt(i*i+o*o+s*s)||1;i/=e,o/=e,s/=e}(0,p.aT)(N,r,i,o,s,k,x)}if(r!==e)for(let t=0;t<L;++t){const n=O[t];for(let t=3*n;t<3*n+3;++t)C[t]===e&&(C[t]=r)}if(P>=G)break;r=I++;const t=r*R;for(let e=0;e<o;++e)E[t+e]=s[n+e]}}const B=I<v?E.slice(0,I*R).buffer:E.buffer;return new T(B,C)}function M(e,t,n,r,a,i){const o=new Uint8Array(t),s=new Uint32Array(t),l=new Uint32Array(3*t);let u=0;const c=new Uint32Array(t);let d=0;for(let t=0;t<e.length;t+=3){const e=t/3;if(1===o[e])continue;o[e]=1;const f=n[3*e],h=n[3*e+1],m=n[3*e+2];for(d=0,c[d++]=e,l[0]=a[3*e],l[1]=a[3*e+1],l[2]=a[3*e+2],u=3,s[e]=e+1;u>0;){const t=l[--u];for(let r=0;r<2;++r){const p=i[2*t+r];if(-1===p||s[p]===e+1)continue;s[p]=e+1;const g=n[3*p],y=n[3*p+1],T=n[3*p+2];if(Math.abs(1-(f*g+h*y+m*T))<A){c[d++]=p,o[p]=1;for(let e=0;e<3;++e){const n=a[3*p+e];n!==t&&(l[u++]=n)}}}}if(d>1){let e=0,t=0,a=0,i=0;for(let o=0;o<d;++o){const s=c[o],l=r[s];e+=l,t+=n[3*s]*l,a+=n[3*s+1]*l,i+=n[3*s+2]*l}const o=Math.sqrt(t*t+a*a+i*i)||1;t/=o,a/=o,i/=o;for(let o=0;o<d;++o){const s=c[o];n[3*s]=t,n[3*s+1]=a,n[3*s+2]=i,r[s]=e}}}}const A=.04,b=.8;var w=n(98697);async function _(e){P=await F();const t=[e.geometryBuffer];return{result:O(P,e,t),transferList:t}}async function v(e){P=await F();const t=[e.geometryBuffer],{geometryBuffer:n}=e,r=n.byteLength,a=P._malloc(r),i=new Uint8Array(P.HEAPU8.buffer,a,r);i.set(new Uint8Array(n));const o=P.dracoDecompressPointCloudData(a,i.byteLength);if(P._free(a),o.error.length>0)throw new Error(`i3s.wasm: ${o.error}`);const s=o.featureIds?.length>0?o.featureIds.slice():null,l=o.positions.slice();return s&&t.push(s.buffer),t.push(l.buffer),{result:{positions:l,featureIds:s},transferList:t}}async function R(e){await F(),B(e);const t={buffer:e.buffer};return{result:t,transferList:[t.buffer]}}async function E(e){await F(),G(e)}async function C(e){P=await F(),P.setLegacySchema(e.context,e.jsonSchema)}async function I(e){const{localMatrix:t,origin:r,positions:a,vertexSpace:i}=e,c=o.A.fromJSON(e.inSpatialReference),d=o.A.fromJSON(e.outSpatialReference),f=t?(0,s.Vj)(t):void 0,h=(0,s.cj)(r);let m;const[{projectBuffer:p},{initializeProjection:g}]=await Promise.all([Promise.resolve().then(n.bind(n,9762)),Promise.resolve().then(n.bind(n,91218))]);await g(c,d);const y=[0,0,0];if(!p(h,c,0,y,d,0))throw new Error("Failed to project");if("georeferenced"===i.type&&null==i.origin){if(m=new Float64Array(a.length),!p(a,c,0,m,d,0,m.length/3))throw new Error("Failed to project")}else{const e="georeferenced"===i.type?l.A.fromJSON(i):u.default.fromJSON(i),{projectMeshVertexPositions:t}=await Promise.all([n.e(6269),n.e(6860),n.e(7836)]).then(n.bind(n,74594)),r=t({vertexAttributes:{position:a},transform:f?{localMatrix:f}:void 0,vertexSpace:e,spatialReference:c},d);if(!r)throw new Error("Failed to project");m=r}const T=m.length,[S,M,A]=y;for(let e=0;e<T;e+=3)m[e]-=S,m[e+1]-=M,m[e+2]-=A;return{result:{projected:m,original:a,projectedOrigin:y},transferList:[m.buffer,a.buffer]}}async function N({normalMatrix:e,normals:t}){const n=new Float32Array(t.length);return(0,c.b)(n,t,e),(0,r.or)(e)&&(0,c.n)(n,n),{result:{transformed:n,original:t},transferList:[n.buffer,t.buffer]}}function x(e){U(e)}let k,P;function G(e){if(!P)return;const t=e.modifications,n=P._malloc(8*t.length),r=new Float64Array(P.HEAPU8.buffer,n,t.length);for(let e=0;e<t.length;++e)r[e]=t[e];P.setModifications(e.context,n,t.length,e.isGeodetic),P._free(n)}function O(e,t,n){const{context:r,globalTrafo:o,mbs:s,obbData:l,layouts:u,needNormals:c,computeNormals:d,elevationOffset:f,geometryBuffer:h,geometryDescriptor:m,indexToVertexProjector:p,vertexToRenderProjector:g,normalReferenceFrame:y}=t,T=e._malloc(h.byteLength),M=e._malloc(33*Float64Array.BYTES_PER_ELEMENT),A=new Uint8Array(e.HEAPU8.buffer,T,h.byteLength);A.set(new Uint8Array(h));const b=new Float64Array(e.HEAPU8.buffer,M,33);j(b,[NaN,NaN,NaN],0);let _=3;j(b,o,_),_+=16,j(b,s.center,_),_+=3,b[_++]=s.radius,l&&j(b,l,_++);const v={isDraco:!1,isLegacy:!1,color:u.some(e=>e.some(e=>"color"===e.name)),normal:c&&u.some(e=>e.some(e=>"normalCompressed"===e.name)),uv0:u.some(e=>e.some(e=>"uv0"===e.name)),uvRegion:u.some(e=>e.some(e=>"uvRegion"===e.name)),featureIndex:m.featureIndex},R=e.process(r,!!l,T,A.byteLength,m,v,M,f,p,g,y);if(e._free(M),e._free(T),R.error.length>0)throw new Error(`i3s.wasm: ${R.error}`);if(R.discarded)return null;const E=R.componentOffsets.length>0?R.componentOffsets.slice():null,C=R.featureIds.length>0?R.featureIds.slice():null,I=R.anchorIds.length>0?Array.from(R.anchorIds):null,N=R.anchors.length>0?Array.from(R.anchors):null,x=1===R.indicesType?new Uint16Array(R.indices.buffer,R.indices.byteOffset,R.indices.byteLength/2).slice():new Uint32Array(R.indices.buffer,R.indices.byteOffset,R.indices.byteLength/4).slice(),k=u[0].slice(),P=(0,a.z0)((0,i.vt)(),o),G=S(R.interleavedVertedData,x,k,d&&!v.normal,P),O=R.positions.slice(),{buffer:L,byteOffset:B,byteLength:U}=R.positionIndices,D=1===R.positionIndicesType?new Uint16Array(L,B,U/2).slice():new Uint32Array(L,B,U/4).slice(),F=new w._b(k,G.data,G.indices,R.hasColors,R.hasModifications,{data:O,indices:D});return C&&n.push(C.buffer),E&&n.push(E.buffer),n.push(G.data),n.push(G.indices.buffer),n.push(O.buffer),n.push(D.buffer),new w.sQ(E,C,I,N,F,o,R.obb)}function L(e){return 0===e?0:1===e?1:2===e?2:3}function B(e){if(!P)return;const{context:t,buffer:n}=e,r=P._malloc(n.byteLength),a=n.byteLength/Float64Array.BYTES_PER_ELEMENT,i=new Float64Array(P.HEAPU8.buffer,r,a),o=new Float64Array(n);i.set(o),P.filterOBBs(t,r,a),o.set(i),P._free(r)}function U(e){0===P?.destroy(e)&&(P=null,k=null,f=null)}function j(e,t,n){for(let r=0;r<t.length;++r)e[r+n]=t[r]}async function D(){P||await F()}async function F(){return P||(P=await(k??=(f??=(async()=>{const e=await n.e(2980).then(n.bind(n,82980));return await e.default({locateFile:e=>(0,d.s)(`esri/libs/i3s/${e}`)})})(),f))),P}const z={transform:(e,t)=>P&&O(P,e,t),destroy:U}},98697(e,t,n){n.d(t,{H1:()=>m,Ir:()=>h,_b:()=>u,sQ:()=>c});var r=n(53966),a=n(15142),i=n(51850),o=n(35982),s=n(91218),l=n(27993);class u{constructor(e,t,n,r,a,i){this.layout=e,this.interleavedVertexData=t,this.indices=n,this.hasColors=r,this.hasModifications=a,this.positionData=i}}class c{constructor(e,t,n,r,a,i,o){this.componentOffsets=e,this.featureIds=t,this.anchorIds=n,this.anchors=r,this.transformedGeometry=a,this.globalTrafo=i,this.obb=o}}o.B;const d=new a.A({deallocator:null}),f=(0,i.vt)();function h(e,t,n){d.clear();let a=1/0,i=1/0,o=-1/0,u=-1/0,c=!1;for(const e of t){const t="clip"===e.type?2:"mask"===e.type?1:0,h=e.geometry;let m=e=>e;if(h.spatialReference){if(!(0,s.canProjectWithoutEngine)(h.spatialReference,n)){r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:h});continue}m=e=>((0,l.F)(e,h.spatialReference,f,n),f)}c=c||1===t;const p=h.rings.length,g=h.rings.some(e=>e.length<3);if(0===p||g)r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-invalid-polygon","Ignoring invalid modification polygon (no rings or rings with less than 3 vertices).",{polygon:h});else{d.push(t),d.push(p);for(const e of h.rings){d.push(e.length);for(const t of e){const e=m(t);d.push(e[0]),d.push(e[1]),d.push(e[2]??0),a=Math.min(a,e[0]),i=Math.min(i,e[1]),o=Math.max(o,e[0]),u=Math.max(u,e[1])}}}}if(null!=e)if(c){const t=1e-4;d.push(2),d.push(2),d.push(4),d.push(a-t),d.push(i-t),d.push(0),d.push(o+t),d.push(i-t),d.push(0),d.push(o+t),d.push(u+t),d.push(0),d.push(a-t),d.push(u+t),d.push(0),d.push(4),d.push(e[0]),d.push(e[1]),d.push(0),d.push(e[2]),d.push(e[1]),d.push(0),d.push(e[2]),d.push(e[3]),d.push(0),d.push(e[0]),d.push(e[3]),d.push(0)}else d.push(1),d.push(1),d.push(4),d.push(e[0]),d.push(e[1]),d.push(0),d.push(e[2]),d.push(e[1]),d.push(0),d.push(e[2]),d.push(e[3]),d.push(0),d.push(e[0]),d.push(e[3]),d.push(0);d.push(3);const h=new Float64Array(d.length);for(let e=0;e<d.length;++e)h[e]=d.at(e);return h}function m(e,t){let n=0;for(const r of t){const t=r.geometry,a=t.rings.length,i=t.rings.some(e=>e.length<3);if(0!==a&&!i){n+=1,n+=1;for(let r=0;r<t.rings.length;++r){const a=t.rings[r];n+=1;for(let i=0;i<a.length;++i){const a=[e[n+0],e[n+1],e[n+2]];n+=3,t.setPoint(r,i,a)}}}}}},10614(e,t,n){n.d(t,{Tz:()=>o,aT:()=>i});var r=n(34727),a=n(35522);function i(e,t,n,r,a,i=2,o=0){const l=1/(Math.abs(n)+Math.abs(r)+Math.abs(a)),u=n*l,c=r*l,d=a<=0?(u>=0?1:-1)*(1-Math.abs(c)):u,f=a<=0?(c>=0?1:-1)*(1-Math.abs(u)):c,h=t*i+o;e[h]=s(d),e[h+1]=s(f)}function o(e,t,n,r=2,i=0){const o=n*r+i,s=l(t[o]),u=l(t[o+1]),c=1-Math.abs(s)-Math.abs(u);return e[2]=c,c<0?(e[0]=(s>=0?1:-1)*(1-Math.abs(u)),e[1]=(u>=0?1:-1)*(1-Math.abs(s))):(e[0]=s,e[1]=u),(0,a.S8)(e,e)}function s(e){return(0,r.qE)(Math.round(32767*e),-32767,32767)}function l(e){return(0,r.qE)(e/32767,-1,1)}n(51850)},74038(e,t,n){n.d(t,{_:()=>r});class r{constructor(e,t,n,r,a,i=!1,o=0,s=!1){this.name=e,this.count=t,this.type=n,this.offset=r,this.stride=a,this.normalized=i,this.divisor=o,this.integer=s}}},63907(e,t,n){n.d(t,{$0:()=>f,C5:()=>d,CQ:()=>y,H0:()=>i,SB:()=>l,WR:()=>r,XN:()=>o,iE:()=>s,ld:()=>u,nI:()=>m,pe:()=>a,r6:()=>h,uH:()=>g,vt:()=>c,xL:()=>p});const r={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},a={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},i={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},o=Object.values(i),s={DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},l={DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},u={FLOAT:a.FLOAT,UNSIGNED_BYTE:a.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:a.BYTE,UNSIGNED_SHORT:a.UNSIGNED_SHORT,SHORT:a.SHORT,UNSIGNED_INT:a.UNSIGNED_INT,INT:a.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269},c={Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12},d=1029,f=0,h=36064,m=33306,p=36096,g=36128,y={COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497}}}]);