@arcgis/core 4.34.0-next.93 → 4.34.0-next.94

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 (165) hide show
  1. package/analysis/ElevationProfile/ElevationProfileDisplayUnits.d.ts +4 -0
  2. package/analysis/ElevationProfile/{ElevationProfileUnits.js → ElevationProfileDisplayUnits.js} +1 -1
  3. package/analysis/ElevationProfile/ElevationProfileUnits.d.ts +1 -1
  4. package/analysis/ElevationProfile/ElevationProfileViewOptions.js +1 -1
  5. package/analysis/ElevationProfileAnalysis.js +1 -1
  6. package/assets/esri/core/workers/RemoteClient.js +1 -1
  7. package/assets/esri/core/workers/chunks/{db5a985ccc6b7d0ad855.js → 176f56de787bf486be9f.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{ad67e5eb4b8c0c14cea6.js → 1fc7df018c8f802565a6.js} +1 -1
  9. package/assets/esri/core/workers/chunks/20f4c6d8b310ecab97be.js +1 -0
  10. package/assets/esri/core/workers/chunks/25639559336109ff3df1.js +1 -0
  11. package/assets/esri/core/workers/chunks/26081b6486c623735657.js +1 -0
  12. package/assets/esri/core/workers/chunks/2698f656405876f4bd20.js +1 -0
  13. package/assets/esri/core/workers/chunks/{4660798b3b45dcb5cecb.js → 2b9c9a35a6e1f56920b5.js} +2 -2
  14. package/assets/esri/core/workers/chunks/98381404f2d99a1f9341.js +1 -0
  15. package/assets/esri/core/workers/chunks/{992b1389710d716d3450.js → a410dcf80d17a2383337.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{d9d86cf0500fa29d1d43.js → a98b284b147258629947.js} +1 -1
  17. package/assets/esri/core/workers/chunks/b1ccbc2fef7f7e5e04f7.js +1 -0
  18. package/assets/esri/core/workers/chunks/c4641c2c130c7b8bcdee.js +1 -0
  19. package/assets/esri/core/workers/chunks/c9159ebf930af3f336f3.js +1 -0
  20. package/assets/esri/core/workers/chunks/{8de9e50de0ac66ae1573.js → ce2fcaa21d6efcdf4da5.js} +1 -1
  21. package/assets/esri/core/workers/chunks/d2df6e685d6cffc5f486.js +1 -0
  22. package/assets/esri/core/workers/chunks/{c27783ce7ea51a5e49c5.js → e153b61560a7a869db63.js} +1 -1
  23. package/assets/esri/core/workers/chunks/e2c293331515f3bd0355.js +1 -0
  24. package/assets/esri/core/workers/chunks/ec7b156425f25d231078.js +1 -0
  25. package/assets/esri/core/workers/chunks/fb456e7425e09df17d8c.js +1 -0
  26. package/assets/esri/core/workers/chunks/{f6806780ca2aa591475a.js → fe1dcf9f81da4adbb1fe.js} +1 -1
  27. package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
  28. package/chunks/WaterSurface.glsl.js +0 -1
  29. package/chunks/bundle.js +1 -1
  30. package/colorUtils.js +1 -1
  31. package/config.js +1 -1
  32. package/interfaces.d.ts +229 -97
  33. package/kernel.js +1 -1
  34. package/layers/GaussianSplatLayer.js +1 -1
  35. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  36. package/layers/graphics/dehydratedFeatureComparison.js +1 -1
  37. package/layers/orientedImagery/transformations/imageToWorld.js +1 -1
  38. package/layers/support/rasterDatasets/InMemoryRaster.js +1 -1
  39. package/networks/UtilityNetwork.js +1 -1
  40. package/networks/support/NetworkSystemLayers.js +1 -1
  41. package/package.json +2 -1
  42. package/popup/content/AttachmentsContent.js +1 -1
  43. package/portal/schemas/definitions.js +1 -1
  44. package/rest/knowledgeGraphService.js +1 -1
  45. package/support/revision.js +1 -1
  46. package/views/2d/analysis/ElevationProfile/ElevationProfileInputVisualization2D.js +1 -1
  47. package/views/2d/analysis/ElevationProfile/ElevationProfileLineVisualization2D.js +1 -1
  48. package/views/2d/analysis/ElevationProfileAnalysisView2D.js +1 -1
  49. package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
  50. package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
  51. package/views/3d/analysis/ElevationProfile/ElevationProfileInputVisualization3D.js +1 -1
  52. package/views/3d/analysis/ElevationProfile/ElevationProfileLineSceneComputation.js +1 -1
  53. package/views/3d/analysis/ElevationProfile/ElevationProfileLineVisualization3D.js +1 -1
  54. package/views/3d/analysis/ElevationProfileAnalysisView3D.js +1 -1
  55. package/views/3d/layers/FlowSubView3D.js +1 -1
  56. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  57. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  58. package/views/3d/support/GaussianSplatSortWorker.js +1 -1
  59. package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
  60. package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
  61. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechnique.js +1 -1
  62. package/views/3d/webgl-engine/effects/blit/Blit.js +1 -1
  63. package/views/3d/webgl-engine/effects/transparency/OITBlendTechnique.js +1 -1
  64. package/views/3d/webgl-engine/lib/CompositingHelper.js +1 -1
  65. package/views/3d/webgl-engine/shaders/GaussianSplatDepthCompositionTechnique.js +1 -1
  66. package/views/PopupView.js +1 -1
  67. package/views/View.js +1 -1
  68. package/views/View2D.js +1 -1
  69. package/views/analysis/ElevationProfile/ElevationProfileChart.js +1 -1
  70. package/views/analysis/ElevationProfile/ElevationProfileController.js +1 -1
  71. package/views/analysis/ElevationProfile/ElevationProfileHoveredPointsVisualization.js +1 -1
  72. package/views/analysis/ElevationProfile/ElevationProfileLineComputation.js +1 -1
  73. package/views/analysis/ElevationProfile/ElevationProfileLineInputComputation.js +1 -1
  74. package/views/analysis/ElevationProfile/ElevationProfileResult.js +1 -1
  75. package/views/analysis/ElevationProfile/ElevationProfileTool.js +1 -1
  76. package/views/analysis/ElevationProfile/elevationProfileGeometryUtils.js +1 -1
  77. package/views/analysis/ElevationProfile/elevationProfileInputVisualizationUtils.js +1 -1
  78. package/views/interactive/snapping/LineSnapper.js +1 -1
  79. package/views/interactive/snapping/ParallelLineSnapper.js +1 -1
  80. package/views/interactive/snapping/RightAngleSnapper.js +1 -1
  81. package/views/interactive/snapping/RightAngleTriangleSnapper.js +1 -1
  82. package/views/interactive/snapping/snappingUtils.js +1 -1
  83. package/views/popupAdapter.js +5 -0
  84. package/views/webgl/ContextState.js +1 -1
  85. package/views/webgl/RenderingContext.js +1 -1
  86. package/views/webgl/enums.js +1 -1
  87. package/widgets/Attachments/AttachmentsViewModel.js +1 -1
  88. package/widgets/Attachments.js +1 -1
  89. package/widgets/ElevationProfile/support/chartUtils.js +1 -1
  90. package/widgets/Feature/FeatureMedia/chartCommon.js +1 -1
  91. package/widgets/Feature/FeatureMedia/pieChart.js +1 -1
  92. package/widgets/Feature/FeatureMedia/xyChart.js +1 -1
  93. package/widgets/Feature/FeatureViewModel.js +1 -1
  94. package/widgets/FeatureTable/support/ColumnTemplateBase.js +1 -1
  95. package/widgets/FeatureTable/support/TableTemplate.js +1 -1
  96. package/widgets/Features/FeaturesViewModel.js +1 -1
  97. package/widgets/Legend/LegendViewModel.js +1 -1
  98. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  99. package/widgets/Legend.js +1 -1
  100. package/widgets/Search/SearchResultRenderer.js +1 -1
  101. package/widgets/Search/SearchViewModel.js +1 -1
  102. package/widgets/Search.js +1 -1
  103. package/widgets/support/chartUtilsAm5.js +1 -1
  104. package/assets/esri/core/workers/chunks/0b24a6c06d1becbb6815.js +0 -1
  105. package/assets/esri/core/workers/chunks/19f1bfe815896d4983af.js +0 -1
  106. package/assets/esri/core/workers/chunks/22c3a21bc9f32c429c48.js +0 -1
  107. package/assets/esri/core/workers/chunks/3b2ef975831eb75b40fb.js +0 -1
  108. package/assets/esri/core/workers/chunks/5eb7f6f5121c8830c561.js +0 -1
  109. package/assets/esri/core/workers/chunks/6c3b585b9cb6bb640fb0.js +0 -1
  110. package/assets/esri/core/workers/chunks/8b9a50cfaa5a7df02dad.js +0 -1
  111. package/assets/esri/core/workers/chunks/8ff2daef892881ff2019.js +0 -1
  112. package/assets/esri/core/workers/chunks/a6a2d4602dfeb62e0ecc.js +0 -1
  113. package/assets/esri/core/workers/chunks/c95e6bef8c97cf647869.js +0 -1
  114. package/assets/esri/core/workers/chunks/ce175801937e80e3c487.js +0 -1
  115. package/assets/esri/core/workers/chunks/d71836cf70b9604832f1.js +0 -1
  116. package/chunks/Button.js +0 -5
  117. package/chunks/ColorSet.js +0 -5
  118. package/chunks/DefaultTheme.js +0 -5
  119. package/chunks/LineSeries.js +0 -5
  120. package/chunks/ResponsiveTheme.js +0 -5
  121. package/chunks/Theme.js +0 -5
  122. package/chunks/Tick.js +0 -5
  123. package/chunks/Tooltip.js +0 -5
  124. package/chunks/ar.js +0 -5
  125. package/chunks/bg_BG.js +0 -5
  126. package/chunks/bs_BA.js +0 -5
  127. package/chunks/ca_ES.js +0 -5
  128. package/chunks/chartUtilsAm5.js +0 -5
  129. package/chunks/cs_CZ.js +0 -5
  130. package/chunks/da_DK.js +0 -5
  131. package/chunks/de_CH.js +0 -5
  132. package/chunks/de_DE.js +0 -5
  133. package/chunks/el_GR.js +0 -5
  134. package/chunks/en_CA.js +0 -5
  135. package/chunks/en_US.js +0 -5
  136. package/chunks/es_ES.js +0 -5
  137. package/chunks/et_EE.js +0 -5
  138. package/chunks/fi_FI.js +0 -5
  139. package/chunks/fr_FR.js +0 -5
  140. package/chunks/he_IL.js +0 -5
  141. package/chunks/hr_HR.js +0 -5
  142. package/chunks/hu_HU.js +0 -5
  143. package/chunks/id_ID.js +0 -5
  144. package/chunks/it_IT.js +0 -5
  145. package/chunks/ja_JP.js +0 -5
  146. package/chunks/ko_KR.js +0 -5
  147. package/chunks/lt_LT.js +0 -5
  148. package/chunks/lv_LV.js +0 -5
  149. package/chunks/nb_NO.js +0 -5
  150. package/chunks/nl_NL.js +0 -5
  151. package/chunks/pl_PL.js +0 -5
  152. package/chunks/pt_BR.js +0 -5
  153. package/chunks/pt_PT.js +0 -5
  154. package/chunks/ro_RO.js +0 -5
  155. package/chunks/ru_RU.js +0 -5
  156. package/chunks/sk_SK.js +0 -5
  157. package/chunks/sl_SL.js +0 -5
  158. package/chunks/sr_RS.js +0 -5
  159. package/chunks/sv_SE.js +0 -5
  160. package/chunks/th_TH.js +0 -5
  161. package/chunks/tr_TR.js +0 -5
  162. package/chunks/uk_UA.js +0 -5
  163. package/chunks/vi_VN.js +0 -5
  164. package/chunks/zh_Hans.js +0 -5
  165. package/chunks/zh_Hant.js +0 -5
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5845],{159:(n,t,e)=>{e.d(t,{A:()=>u});var r,o=e(31635),i=e(65008),l=e(10107),a=(e(44208),e(53966),e(87811),e(40608)),s=e(99157);let u=r=class extends i.A{constructor(n){super(n),this.steps=[]}getInverse(){const n=new r;for(let t=this.steps.length-1;t>=0;t--){const e=this.steps[t];n.steps.push(e.getInverse())}return n}};(0,o.Cg)([(0,l.MZ)({type:[s.A],nonNullable:!0})],u.prototype,"steps",void 0),u=r=(0,o.Cg)([(0,a.$)("esri.geometry.operators.support.GeographicTransformation")],u)},9093:(n,t,e)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(n){return[n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8],n[9],n[10],n[11],n[12],n[13],n[14],n[15]]}e.d(t,{o8:()=>o,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:o,create:r,fromValues:function(n,t,e,r,o,i,l,a,s,u,c,f,h,p,d,m){return[n,t,e,r,o,i,l,a,s,u,c,f,h,p,d,m]}},Symbol.toStringTag,{value:"Module"}))},9762:(n,t,e)=>{e.r(t),e.d(t,{projectBuffer:()=>o});var r=e(37539);function o(n,t,e,o,i,l,a=Math.floor(n.length/3)){const s=(0,r.jd)(t,i);if(null==s)return!1;if(s===r.pO){if(n===o&&e===l)return!0;const t=e+3*a;for(let r=e,i=l;r<t;r++,i++)o[i]=n[r];return!0}const u=e+3*a;for(let t=e,r=l;t<u;t+=3,r+=3)s(n,t,o,r);return!0}},11006:(n,t,e)=>{function r(n,t,e,r,i){o(n,t,e||0,r||n.length-1,i||l)}function o(n,t,e,r,l){for(;r>e;){if(r-e>600){var a=r-e+1,s=t-e+1,u=Math.log(a),c=.5*Math.exp(2*u/3),f=.5*Math.sqrt(u*c*(a-c)/a)*(s-a/2<0?-1:1);o(n,t,Math.max(e,Math.floor(t-s*c/a+f)),Math.min(r,Math.floor(t+(a-s)*c/a+f)),l)}var h=n[t],p=e,d=r;for(i(n,e,t),l(n[r],h)>0&&i(n,e,r);p<d;){for(i(n,p,d),p++,d--;l(n[p],h)<0;)p++;for(;l(n[d],h)>0;)d--}0===l(n[e],h)?i(n,e,d):i(n,++d,r),d<=t&&(e=d+1),t<=d&&(r=d-1)}}function i(n,t,e){var r=n[t];n[t]=n[e],n[e]=r}function l(n,t){return n<t?-1:n>t?1:0}e.d(t,{q:()=>r})},18251:(n,t,e)=>{e.d(t,{A:()=>c});var r=e(31635),o=e(69540),i=e(25482),l=e(10107),a=(e(44208),e(53966),e(87811),e(93223)),s=e(40608),u=e(51850);let c=class extends((0,o.OU)(i.o)){constructor(n){super(n),this.type="local",this.origin=(0,u.vt)()}};(0,r.Cg)([(0,a.e)({local:"local"},{readOnly:!0})],c.prototype,"type",void 0),(0,r.Cg)([(0,l.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,r.Cg)([(0,s.$)("esri.geometry.support.MeshLocalVertexSpace")],c)},22141:(n,t,e)=>{e.d(t,{$5:()=>b,CN:()=>M,JP:()=>y,KM:()=>A,Mv:()=>R,X4:()=>x,gr:()=>v,qs:()=>_,si:()=>w,xA:()=>S});var r=e(34727),o=e(77690),i=e(29242),l=e(58083),a=e(9093),s=e(38954),u=e(51850),c=e(48353),f=e(9762),h=(e(79258),e(21325)),p=e(28735),d=e(13030),m=e(73354),g=e(65686);const y="Projection may be possible after calling projection.load().";function M(n,t,e,r){n.error(`Failed to project from (wkid:${t.wkid}) to (wkid:${e.wkid}).${r?" ":""}${r}`)}function x(n,t,e,r,o,i){return B(0,d.xs.fromTypedArray(n),0,d.Xm.fromTypedArray(t),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function w(n,t,e,r,o,i){return B(1,d.xs.fromTypedArray(n),0,d.Xm.fromTypedArray(t),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function v(n,t,e,r){return(0,f.projectBuffer)(n,t,0,e,r,0)?e:null}function b(n,t,e,r){return(0,f.projectBuffer)(n,t,0,e,r,0)?e:null}function _(n,t,e){return(0,o.Ge)(T,e),(0,m.b)(t,n,T),(0,r.or)(T)&&(0,m.n)(t,t),t}function A(n,t,e){return(0,o.z0)(T,e),(0,g.t)(t,n,T),(0,r.or)(T)&&(0,m.n)(t,t,4),t}function S(n,t,e,r,o,i){if(!B(0,d.xs.fromTypedArray(n,4*Float32Array.BYTES_PER_ELEMENT),1,d.Xm.fromTypedArray(t),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let t=3;t<n.length;t+=4)i[t]=n[t];return i}function R(n,t,e,r,o,i){if(!B(1,d.xs.fromTypedArray(n,16),1,d.Xm.fromTypedArray(t),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,16)))return null;for(let t=3;t<n.length;t+=4)i[t]=n[t];return i}function k(n,t,e,r,i){switch((0,c.l)(r,e,O,r),1===n&&(0,l.B8)(O,O),t){case 0:return(0,o.Ge)(i,O);case 1:return(0,o.z0)(i,O)}}function B(n,t,e,r,o,i,l,a){if(!t)return;const u=r.count;if(function(n){return n.isWGS84||(0,h.x1)(n)||(0,h.q8)(n)||(0,h.KQ)(n)}(o))for(let r=0;r<u;r++)i.getVec(r,j),t.getVec(r,I),(0,s.o)(I,I,k(n,e,j,l,T)),a.setVec(r,I);else for(let o=0;o<u;o++){i.getVec(o,j),t.getVec(o,I);const u=(0,p.jg)(r.get(o,1));let c=Math.cos(u);1===e!=(0===n)&&(c=1/c),k(n,e,j,l,T),0===n?(T[0]*=c,T[1]*=c,T[2]*=c,T[3]*=c,T[4]*=c,T[5]*=c):(T[0]*=c,T[3]*=c,T[6]*=c,T[1]*=c,T[4]*=c,T[7]*=c),(0,s.o)(I,I,T),(0,s.n)(I,I),a.setVec(o,I)}return a}const j=(0,u.vt)(),I=(0,u.vt)(),O=(0,a.vt)(),T=(0,i.vt)()},27615:(n,t,e)=>{e.d(t,{CK:()=>s,Hq:()=>a,MW:()=>u,TE:()=>c,yJ:()=>f});var r=e(38954),o=e(86738),i=e(95696),l=e(18251);function a(n){return null!=n.origin}function s(n){return a(n.vertexSpace)}function u(n,t){if(!a(n))return null;const[e,r,i]=n.origin;return new o.A({x:e,y:r,z:i,spatialReference:t})}function c(n,t){const{x:e,y:r,z:o,spatialReference:a}=n,s=[e,r,o??0];return"local"===(t?.vertexSpace??function(n){return n.isGeographic||n.isWebMercator?"local":"georeferenced"}(a))?new l.A({origin:s}):new i.A({origin:s})}function f(n,t){return n.type===t.type&&(n.origin===t.origin||null!=n.origin&&null!=t.origin&&(0,r.q)(n.origin,t.origin))}},31635:(n,t,e)=>{function r(n,t,e,r){var o,i=arguments.length,l=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(l=(i<3?o(l):i>3?o(t,e,l):o(t,e))||l);return i>3&&l&&Object.defineProperty(t,e,l),l}function o(n,t,e){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r,o;if(e){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],e&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(n){return Promise.reject(n)}}),n.stack.push({value:t,dispose:r,async:e})}else e&&n.stack.push({async:!0});return t}e.d(t,{Cg:()=>r,hk:()=>l,mS:()=>o}),Object.create,Object.create;var i="function"==typeof SuppressedError?SuppressedError:function(n,t,e){var r=new Error(e);return r.name="SuppressedError",r.error=n,r.suppressed=t,r};function l(n){function t(t){n.error=n.hasError?new i(t,n.error,"An error was suppressed during disposal."):t,n.hasError=!0}var e,r=0;return function o(){for(;e=n.stack.pop();)try{if(!e.async&&1===r)return r=0,n.stack.push(e),Promise.resolve().then(o);if(e.dispose){var i=e.dispose.call(e.value);if(e.async)return r|=2,Promise.resolve(i).then(o,function(n){return t(n),o()})}else r|=1}catch(n){t(n)}if(1===r)return n.hasError?Promise.reject(n.error):Promise.resolve();if(n.hasError)throw n.error}()}},37539:(n,t,e)=>{e.d(t,{pO:()=>m,jd:()=>h,Tp:()=>p,w5:()=>f});var r=e(34727),o=e(83047),i=e(73941),l=e(79258);Math.PI;const a=l.$O.radius,s=l.$O.eccentricitySquared,u={a1:a*s,a2:a*s*a*s,a3:a*s*s/2,a4:a*s*a*s*2.5,a5:a*s+a*s*s/2,a6:1-s};l.$O.radius,l.$O.flattening,l.Sw.radius,l.Sw.flattening,l.sH.radius,l.sH.flattening,l.sH.radius;var c=e(21325);const f={2:{5:m,7:null,9:null,10:m,1:_,6:null,8:null,0:null,3:y,11:M,2:m,4:B},5:{5:m,7:null,9:null,10:m,1:_,6:null,8:null,0:null,3:y,11:M,2:m,4:B},7:{5:null,7:m,9:null,10:m,1:null,6:b,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:m,10:m,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:g,7:null,9:null,10:g,1:function(n,t,e,r){const o=n[t]/Y,i=X-2*Math.atan(Math.exp(-n[t+1]/Y)),l=Y+n[t+2],a=Math.cos(i)*l;e[r]=Math.cos(o)*a,e[r+1]=Math.sin(o)*a,e[r+2]=Math.sin(i)*l},6:null,8:null,0:null,3:m,11:function(n,t,e,r){g(n,t,e,r),M(e,r,e,r)},2:g,4:function(n,t,e,r){g(n,t,e,r),B(e,r,e,r)}},4:{5:j,7:null,9:null,10:j,1:function(n,t,e,r){j(n,t,e,r),_(e,r,e,r)},6:null,8:null,0:null,3:function(n,t,e,r){j(n,t,e,r),y(e,r,e,r)},11:function(n,t,e,r){j(n,t,e,r),M(e,r,e,r)},2:j,4:m},1:{5:k,7:null,9:null,10:k,1:m,6:null,8:null,0:null,3:function(n,t,e,r){k(n,t,e,r),y(e,r,e,r)},11:function(n,t,e,r){k(n,t,e,r),M(e,r,e,r)},2:k,4:function(n,t,e,r){k(n,t,e,r),B(e,r,e,r)}},6:{5:null,7:R,9:null,10:R,1:null,6:m,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:S,10:S,1:null,6:null,8:m,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:m,3:null,11:null,2:null,4:null},10:{5:m,7:m,9:m,10:m,1:_,6:b,8:v,0:null,3:y,11:M,2:m,4:B},11:{5:x,7:null,9:null,10:x,1:function(n,t,e,r){x(n,t,e,r),_(e,r,e,r)},6:null,8:null,0:null,3:function(n,t,e,r){x(n,t,e,r),y(e,r,e,r)},11:m,2:x,4:function(n,t,e,r){x(n,t,e,r),B(e,r,e,r)}}};function h(n,t){return p(n,t)?.projector}function p(n,t){if(null==n||null==t)return null;if(I.source.spatialReference===n&&I.dest.spatialReference===t)return I;const e=d(n,I.source),r=d(t,I.dest);return 0===e&&0===r?(0,c.aI)(n,t)?I.projector=m:I.projector=null:I.projector=f[e][r],I}function d(n,t){return n?t.spatialReference===n?t.spatialReferenceId:(t.spatialReference=n,"metersPerUnit"in t&&(t.metersPerUnit=(0,o.GA)(n,1)),(0,i.jA)(n)?t.spatialReferenceId=1:(0,c.oT)(n)?t.spatialReferenceId=2:(0,c.K8)(n)?t.spatialReferenceId=3:(0,c.r1)(n)?t.spatialReferenceId=11:n.wkt===i.Ro.wkt?t.spatialReferenceId=4:4490===n.wkid?t.spatialReferenceId=5:n.wkt===i.FY.wkt?t.spatialReferenceId=6:n.wkt===i.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(n)?t.spatialReferenceId=7:(0,c.KQ)(n)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function m(n,t,e,r){n!==e&&(e[r++]=n[t++],e[r++]=n[t++],e[r]=n[t])}function g(n,t,e,r){e[r]=T*(n[t]/Y),e[r+1]=T*(X-2*Math.atan(Math.exp(-n[t+1]/Y))),e[r+2]=n[t+2]}function y(n,t,e,o){!function(n,t,e,o,i){const l=.4999999*Math.PI,a=(0,r.qE)(O*n[t+1],-l,l),s=Math.sin(a);e[o++]=O*n[t]*i.radius,e[o++]=i.halfSemiMajorAxis*Math.log((1+s)/(1-s)),e[o]=n[t+2]}(n,t,e,o,l.$O)}function M(n,t,e,r){e[r]=n[t]*q,e[r+1]=n[t+1]*q,e[r+2]=n[t+2]}function x(n,t,e,r){e[r]=n[t]*P,e[r+1]=n[t+1]*P,e[r+2]=n[t+2]}function w(n,t,e,r,o){const i=o+n[t+2],l=O*n[t+1],a=O*n[t],s=Math.cos(l)*i;e[r]=Math.cos(a)*s,e[r+1]=Math.sin(a)*s,e[r+2]=Math.sin(l)*i}function v(n,t,e,r){w(n,t,e,r,l.Sw.radius)}function b(n,t,e,r){w(n,t,e,r,l.sH.radius)}function _(n,t,e,r){w(n,t,e,r,l.$O.radius)}function A(n,t,e,o,i){const l=n[t],a=n[t+1],s=n[t+2],u=Math.sqrt(l*l+a*a+s*s),c=(0,r.YN)(s/(0===u?1:u)),f=Math.atan2(a,l);e[o++]=T*f,e[o++]=T*c,e[o]=u-i}function S(n,t,e,r){A(n,t,e,r,l.Sw.radius)}function R(n,t,e,r){A(n,t,e,r,l.sH.radius)}function k(n,t,e,r){A(n,t,e,r,l.$O.radius)}function B(n,t,e,r){!function(n,t,e,r,o){const i=O*n[t],l=O*n[t+1],a=n[t+2],s=Math.sin(l),u=Math.cos(l),c=o.radius/Math.sqrt(1-o.eccentricitySquared*s*s);e[r++]=(c+a)*u*Math.cos(i),e[r++]=(c+a)*u*Math.sin(i),e[r++]=(c*(1-o.eccentricitySquared)+a)*s}(n,t,e,r,l.$O)}function j(n,t,e,r){const o=u,i=n[t],a=n[t+1],s=n[t+2];let c,f,h,p,d,m,g,y,M,x,w,v,b,_,A,S,R,k,B,j,I;c=Math.abs(s),f=i*i+a*a,h=Math.sqrt(f),p=f+s*s,d=Math.sqrt(p),j=Math.atan2(a,i),m=s*s/p,g=f/p,_=o.a2/d,A=o.a3-o.a4/d,g>.3?(y=c/d*(1+g*(o.a1+_+m*A)/d),B=Math.asin(y),x=y*y,M=Math.sqrt(1-x)):(M=h/d*(1-m*(o.a5-_-g*A)/d),B=Math.acos(M),x=1-M*M,y=Math.sqrt(x)),w=1-l.$O.eccentricitySquared*x,v=l.$O.radius/Math.sqrt(w),b=o.a6*v,_=h-v*M,A=c-b*y,R=M*_+y*A,S=M*A-y*_,k=S/(b/w+R),B+=k,I=R+S*k/2,s<0&&(B=-B),e[r++]=T*j,e[r++]=T*B,e[r]=I}const I={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:m},O=(0,r.kU)(1),T=(0,r.KJ)(1),X=.5*Math.PI,Y=l.$O.radius,q=Y*Math.PI/180,P=180/(Y*Math.PI)},38419:(n,t,e)=>{e.r(t),e.d(t,{default:()=>a});var r=e(44208),o=e(75503),i=e(95696),l=e(72258);class a{async createIndex(n,t){const e=new Array;if(!n.vertexAttributes?.position)return new o.wq;const r=function(n){const{vertexAttributes:{position:t},vertexSpace:e,spatialReference:r,transform:o}=n,a=(0,l.UR)({vertexAttributes:{position:t},vertexSpace:e,spatialReference:r,transform:o},i.A.absolute,{allowBufferReuse:!0})?.position;return a?!n.components||n.components.some(n=>!n.faces)?{position:a.buffer}:{position:a.buffer,components:n.components.map(n=>n.faces)}:null}(n),a=null!=t?await t.invoke("createIndexThread",r,{transferList:e}):this.createIndexThread(r).result;return s().fromJSON(a)}createIndexThread(n){const t=s();if(!n)return{result:t.toJSON()};const e=new Float64Array(n.position);return n.components?function(n,t,e){let r=0;for(const n of e)r+=n.length/3;const o=new Array(r);let i=0;for(const n of e)for(let e=0;e<n.length;e+=3)o[i++]=u(t,3*n[e],3*n[e+1],3*n[e+2]);return n.load(o),{result:n.toJSON()}}(t,e,n.components.map(n=>new Uint32Array(n))):function(n,t){const e=new Array(t.length/9);let r=0;for(let n=0;n<t.length;n+=9)e[r++]=u(t,n,n+3,n+6);return n.load(e),{result:n.toJSON()}}(t,e)}}function s(){return new o.wq(9,(0,r.A)("esri-csp-restrictions")?n=>n:[".minX",".minY",".maxX",".maxY"])}function u(n,t,e,r){return{minX:Math.min(n[t],n[e],n[r]),maxX:Math.max(n[t],n[e],n[r]),minY:Math.min(n[t+1],n[e+1],n[r+1]),maxY:Math.max(n[t+1],n[e+1],n[r+1]),p0:[n[t],n[t+1],n[t+2]],p1:[n[e],n[e+1],n[e+2]],p2:[n[r],n[r+1],n[r+2]]}}},38954:(n,t,e)=>{e.d(t,{A:()=>d,B:()=>p,C:()=>c,D:()=>f,E:()=>X,F:()=>N,H:()=>E,a:()=>Y,b:()=>y,c:()=>l,d:()=>u,e:()=>A,f:()=>s,g:()=>g,h:()=>S,i:()=>a,j:()=>M,k:()=>w,l:()=>i,m:()=>R,n:()=>_,o:()=>B,q:()=>T,r:()=>b,s:()=>x,t:()=>k,u:()=>v,v:()=>j,w:()=>h,x:()=>C,y:()=>z,z:()=>m});var r=e(51850),o=e(34304);function i(n){const t=n[0],e=n[1],r=n[2];return Math.sqrt(t*t+e*e+r*r)}function l(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n}function a(n,t,e,r){return n[0]=t,n[1]=e,n[2]=r,n}function s(n,t,e){return n[0]=t[0]+e[0],n[1]=t[1]+e[1],n[2]=t[2]+e[2],n}function u(n,t,e){return n[0]=t[0]-e[0],n[1]=t[1]-e[1],n[2]=t[2]-e[2],n}function c(n,t,e){return n[0]=t[0]*e[0],n[1]=t[1]*e[1],n[2]=t[2]*e[2],n}function f(n,t,e){return n[0]=t[0]/e[0],n[1]=t[1]/e[1],n[2]=t[2]/e[2],n}function h(n,t){return n[0]=Math.abs(t[0]),n[1]=Math.abs(t[1]),n[2]=Math.abs(t[2]),n}function p(n,t){return n[0]=Math.sign(t[0]),n[1]=Math.sign(t[1]),n[2]=Math.sign(t[2]),n}function d(n,t,e){return n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.min(t[2],e[2]),n}function m(n,t,e){return n[0]=Math.max(t[0],e[0]),n[1]=Math.max(t[1],e[1]),n[2]=Math.max(t[2],e[2]),n}function g(n,t,e){return n[0]=t[0]*e,n[1]=t[1]*e,n[2]=t[2]*e,n}function y(n,t,e,r){return n[0]=t[0]+e[0]*r,n[1]=t[1]+e[1]*r,n[2]=t[2]+e[2]*r,n}function M(n,t){const e=t[0]-n[0],r=t[1]-n[1],o=t[2]-n[2];return Math.sqrt(e*e+r*r+o*o)}function x(n,t){const e=t[0]-n[0],r=t[1]-n[1],o=t[2]-n[2];return e*e+r*r+o*o}function w(n){const t=n[0],e=n[1],r=n[2];return t*t+e*e+r*r}function v(n,t){return n[0]=-t[0],n[1]=-t[1],n[2]=-t[2],n}function b(n,t){return n[0]=1/t[0],n[1]=1/t[1],n[2]=1/t[2],n}function _(n,t){const e=t[0],r=t[1],o=t[2];let i=e*e+r*r+o*o;return i>0&&(i=1/Math.sqrt(i),n[0]=t[0]*i,n[1]=t[1]*i,n[2]=t[2]*i),n}function A(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]}function S(n,t,e){const r=t[0],o=t[1],i=t[2],l=e[0],a=e[1],s=e[2];return n[0]=o*s-i*a,n[1]=i*l-r*s,n[2]=r*a-o*l,n}function R(n,t,e,r){const o=t[0],i=t[1],l=t[2];return n[0]=o+r*(e[0]-o),n[1]=i+r*(e[1]-i),n[2]=l+r*(e[2]-l),n}function k(n,t,e){const r=t[0],o=t[1],i=t[2];return n[0]=e[0]*r+e[4]*o+e[8]*i+e[12],n[1]=e[1]*r+e[5]*o+e[9]*i+e[13],n[2]=e[2]*r+e[6]*o+e[10]*i+e[14],n}function B(n,t,e){const r=t[0],o=t[1],i=t[2];return n[0]=r*e[0]+o*e[3]+i*e[6],n[1]=r*e[1]+o*e[4]+i*e[7],n[2]=r*e[2]+o*e[5]+i*e[8],n}function j(n,t,e){const r=e[0],o=e[1],i=e[2],l=e[3],a=t[0],s=t[1],u=t[2],c=o*u-i*s,f=i*a-r*u,h=r*s-o*a,p=o*h-i*f,d=i*c-r*h,m=r*f-o*c,g=2*l;return n[0]=a+c*g+2*p,n[1]=s+f*g+2*d,n[2]=u+h*g+2*m,n}const I=(0,r.vt)(),O=(0,r.vt)();function T(n,t){return n[0]===t[0]&&n[1]===t[1]&&n[2]===t[2]}function X(n,t,e){const r=e[0]-t[0],o=e[1]-t[1],i=e[2]-t[2];let l=r*r+o*o+i*i;return l>0?(l=1/Math.sqrt(l),n[0]=r*l,n[1]=o*l,n[2]=i*l,n):(n[0]=0,n[1]=0,n[2]=0,n)}const Y=u,q=c,P=f,N=M,C=x,E=i,z=w;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:s,angle:function(n,t){_(I,n),_(O,t);const e=A(I,O);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(n,t,e,r,o,i){const l=1-i,a=l*l,s=i*i,u=a*l,c=3*i*a,f=3*s*l,h=s*i;return n[0]=t[0]*u+e[0]*c+r[0]*f+o[0]*h,n[1]=t[1]*u+e[1]*c+r[1]*f+o[1]*h,n[2]=t[2]*u+e[2]*c+r[2]*f+o[2]*h,n},ceil:function(n,t){return n[0]=Math.ceil(t[0]),n[1]=Math.ceil(t[1]),n[2]=Math.ceil(t[2]),n},clamp:function(n,t=0,e=1){return n[0]=Math.min(Math.max(n[0],t),e),n[1]=Math.min(Math.max(n[1],t),e),n[2]=Math.min(Math.max(n[2],t),e),n},copy:l,cross:S,crossAndNormalize:function(n,t,e){const r=t[0],o=t[1],i=t[2],l=e[0],a=e[1],s=e[2],u=o*s-i*a,c=i*l-r*s,f=r*a-o*l,h=Math.sqrt(u*u+c*c+f*f);return n[0]=u/h,n[1]=c/h,n[2]=f/h,n},direction:X,dist:N,distance:M,div:P,divide:f,dot:A,equals:function(n,t){if(n===t)return!0;const e=n[0],r=n[1],i=n[2],l=t[0],a=t[1],s=t[2],u=(0,o.FD)();return Math.abs(e-l)<=u*Math.max(1,Math.abs(e),Math.abs(l))&&Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-s)<=u*Math.max(1,Math.abs(i),Math.abs(s))},exactEquals:T,floor:function(n,t){return n[0]=Math.floor(t[0]),n[1]=Math.floor(t[1]),n[2]=Math.floor(t[2]),n},hermite:function(n,t,e,r,o,i){const l=i*i,a=l*(2*i-3)+1,s=l*(i-2)+i,u=l*(i-1),c=l*(3-2*i);return n[0]=t[0]*a+e[0]*s+r[0]*u+o[0]*c,n[1]=t[1]*a+e[1]*s+r[1]*u+o[1]*c,n[2]=t[2]*a+e[2]*s+r[2]*u+o[2]*c,n},inverse:b,len:E,length:i,lerp:R,max:m,min:d,mul:q,multiply:c,negate:v,normalize:_,random:function(n,t=1){const e=o.Ov,r=2*e()*Math.PI,i=2*e()-1,l=Math.sqrt(1-i*i)*t;return n[0]=Math.cos(r)*l,n[1]=Math.sin(r)*l,n[2]=i*t,n},rotateX:function(n,t,e,r){const o=[],i=[];return o[0]=t[0]-e[0],o[1]=t[1]-e[1],o[2]=t[2]-e[2],i[0]=o[0],i[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),i[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),n[0]=i[0]+e[0],n[1]=i[1]+e[1],n[2]=i[2]+e[2],n},rotateY:function(n,t,e,r){const o=[],i=[];return o[0]=t[0]-e[0],o[1]=t[1]-e[1],o[2]=t[2]-e[2],i[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),i[1]=o[1],i[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),n[0]=i[0]+e[0],n[1]=i[1]+e[1],n[2]=i[2]+e[2],n},rotateZ:function(n,t,e,r){const o=[],i=[];return o[0]=t[0]-e[0],o[1]=t[1]-e[1],o[2]=t[2]-e[2],i[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),i[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),i[2]=o[2],n[0]=i[0]+e[0],n[1]=i[1]+e[1],n[2]=i[2]+e[2],n},round:function(n,t){return n[0]=Math.round(t[0]),n[1]=Math.round(t[1]),n[2]=Math.round(t[2]),n},scale:g,scaleAndAdd:y,set:a,sign:p,sqrDist:C,sqrLen:z,squaredDistance:x,squaredLength:w,str:function(n){return"vec3("+n[0]+", "+n[1]+", "+n[2]+")"},sub:Y,subtract:u,transformMat3:B,transformMat4:k,transformQuat:j},Symbol.toStringTag,{value:"Module"}))},40876:(n,t,e)=>{e.d(t,{Eq:()=>p,G1:()=>m,TS:()=>i,Tf:()=>M,V6:()=>o,Vm:()=>d,ay:()=>s,c1:()=>g,c4:()=>l,j5:()=>u,lT:()=>f,oW:()=>c});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 o(n){return!!r[n]||!!r[n.toLowerCase()]}function i(n){return r[n]??r[n.toLowerCase()]}function l(n){return[...i(n)]}function a(n,t,e){e<0&&++e,e>1&&--e;const r=6*e;return r<1?n+(t-n)*r:2*e<1?t:3*e<2?n+(t-n)*(2/3-e)*6:n}function s(n,t,e,r=1){const o=(n%360+360)%360/360,i=e<=.5?e*(t+1):e+t-e*t,l=2*e-i;return[Math.round(255*a(l,i,o+1/3)),Math.round(255*a(l,i,o)),Math.round(255*a(l,i,o-1/3)),r]}function u(n){const t=n.length>5,e=t?8:4,r=(1<<e)-1,o=t?1:17,i=t?9===n.length:5===n.length;let l=Number("0x"+n.slice(1));if(isNaN(l))return null;const a=[0,0,0,1];let s;return i&&(s=l&r,l>>=e,a[3]=o*s/255),s=l&r,l>>=e,a[2]=o*s,s=l&r,l>>=e,a[1]=o*s,s=l&r,l>>=e,a[0]=o*s,a}function c(n){if(!n.startsWith("#")||isNaN(Number(`0x${n.slice(1)}`)))return null;switch(n.length){case 4:case 5:{const t=parseInt(n.slice(1,2),16),e=parseInt(n.slice(2,3),16),r=parseInt(n.slice(3,4),16),o=4===n.length?15:parseInt(n.slice(4),16);return[t+16*t,e+16*e,r+16*r,(o+16*o)/255]}case 7:case 9:return[parseInt(n.slice(1,3),16),parseInt(n.slice(3,5),16),parseInt(n.slice(5,7),16),(7===n.length?255:parseInt(n.slice(7),16))/255];default:return null}}function f(n){const t=n.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const n=t[2].split(/\s*,\s*/),e=t[1];if("rgb"===e&&3===n.length||"rgba"===e&&4===n.length){if(n[0].endsWith("%")){const t=n.map(n=>2.56*parseFloat(n));return 4===n.length&&(t[3]=parseFloat(n[3])),h(t)}return h(n.map(n=>parseFloat(n)))}if("hsl"===e&&3===n.length||"hsla"===e&&4===n.length)return s(parseFloat(n[0]),parseFloat(n[1])/100,parseFloat(n[2])/100,parseFloat(n[3]??"1"))}return null}function h(n){return n[0]=g(n[0]),n[1]=g(n[1]),n[2]=g(n[2]),n[3]=4===n.length?m(n[3]):1,n}function p(n){let t=o(n)?i(n):null;return t??=f(n),t??=c(n),t}function d(n){const t=p(n);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function m(n){return y(n,0,1)}function g(n){return Math.round(y(n,0,255))}function y(n,t,e){return n=Number(n),isNaN(n)?e:n<t?t:n>e?e:n}const M=2.2},48163:(n,t,e)=>{function r(){return[0,0]}function o(n){return[n[0],n[1]]}function i(n,t){return[n,t]}function l(){return i(1,1)}function a(){return i(1,0)}function s(){return i(0,1)}e.d(t,{Un:()=>u,fA:()=>i,o8:()=>o,vt:()=>r});const u=l(),c=a(),f=s();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:c,UNIT_Y:f,ZEROS:[0,0],clone:o,create:r,freeze:function(n,t){return[n,t]},fromArray:function(n,t=[0,0]){const e=Math.min(2,n.length);for(let r=0;r<e;++r)t[r]=n[r];return t},fromValues:i,ones:l,unitX:a,unitY:s,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48353:(n,t,e)=>{e.d(t,{l:()=>u});var r=e(34727),o=e(58083),i=e(51850);function l(n,t,e){const r=Math.sin(n),o=Math.cos(n),i=Math.sin(t),l=Math.cos(t),a=e;return a[0]=-r,a[4]=-i*o,a[8]=l*o,a[12]=0,a[1]=o,a[5]=-i*r,a[9]=l*r,a[13]=0,a[2]=0,a[6]=l,a[10]=i,a[14]=0,a[3]=0,a[7]=0,a[11]=0,a[15]=1,a}var a=e(37539),s=e(21325);function u(n,t,e,r){const i=(0,a.Tp)(n,r);if(null==i)return!1;const u=i.source.spatialReferenceId,d=i.dest.spatialReferenceId;if(u===d&&!c(d)&&(0!==u||(0,s.aI)(n,r)))return(0,o.kN)(e,t),!0;if(c(d)){const n=a.w5[u][10],r=a.w5[10][d];return null!=n&&null!=r&&(n(t,0,h,0),r(h,0,p,0),l(f*h[0],f*h[1],e),e[12]=p[0],e[13]=p[1],e[14]=p[2],!0)}const m=c(u);if((3===d||11===d||2===d||5===d)&&(2===u||m||3===u||5===u)){const n=a.w5[u][10],r=a.w5[10][d];return null!=n&&null!=r&&(n(t,0,h,0),r(h,0,p,0),m?function(n,t,e){l(n,t,e),(0,o.mg)(e,e)}(f*h[0],f*h[1],e):(0,o.D_)(e),e[12]=p[0],e[13]=p[1],e[14]=p[2],!0)}return!1}function c(n){return 1===n||6===n||8===n||4===n}const f=(0,r.kU)(1),h=(0,i.vt)(),p=(0,i.vt)()},51850:(n,t,e)=>{function r(){return[0,0,0]}function o(n){return[n[0],n[1],n[2]]}function i(n,t,e){return[n,t,e]}function l(n,t,e){return[n,t,e]}function a(n,t=[0,0,0]){const e=Math.min(3,n.length);for(let r=0;r<e;++r)t[r]=n[r];return t}function s(){return i(1,1,1)}function u(){return i(1,0,0)}function c(){return i(0,1,0)}function f(){return i(0,0,1)}e.d(t,{CN:()=>l,Cb:()=>g,Cw:()=>d,JP:()=>m,Un:()=>p,ci:()=>a,fA:()=>i,o8:()=>o,uY:()=>h,vt:()=>r});const h=[0,0,0],p=s(),d=u(),m=c(),g=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:p,UNIT_X:d,UNIT_Y:m,UNIT_Z:g,ZEROS:h,clone:o,create:r,freeze:l,fromArray:a,fromValues:i,ones:s,unitX:u,unitY:c,unitZ:f,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},62815:(n,t,e)=>{e.d(t,{N:()=>l});var r=e(83047),o=e(73941),i=e(21325);function l(n,t,e){if(null==t||null==e||e.vcsWkid||(0,i.aI)(t,e)||(0,o.xP)(t)||(0,o.xP)(e))return null;const l=(0,r.G9)(t)/(0,r.G9)(e);if(1===l)return null;switch(n){case"point":case"esriGeometryPoint":return n=>function(n,t){null!=n?.z&&(n.z*=t)}(n,l);case"polyline":case"esriGeometryPolyline":return n=>function(n,t){if(n)for(const e of n.paths)for(const n of e)n.length>2&&(n[2]*=t)}(n,l);case"polygon":case"esriGeometryPolygon":return n=>function(n,t){if(n)for(const e of n.rings)for(const n of e)n.length>2&&(n[2]*=t)}(n,l);case"multipoint":case"esriGeometryMultipoint":return n=>function(n,t){if(n)for(const e of n.points)e.length>2&&(e[2]*=t)}(n,l);case"extent":case"esriGeometryEnvelope":return n=>function(n,t){n&&null!=n.zmin&&null!=n.zmax&&(n.zmin*=t,n.zmax*=t)}(n,l);default:return null}}},65806:(n,t,e)=>{e.d(t,{g:()=>l});var r=e(51850),o=e(91218),i=e(9762);function l(n,t,e,r){if((0,o.canProjectWithoutEngine)(n.spatialReference,e)){a[0]=n.x,a[1]=n.y;const o=n.z;return a[2]=o??r??0,(0,i.projectBuffer)(a,n.spatialReference,0,t,e,0)}const l=(0,o.tryProjectWithZConversion)(n,e);return!!l&&(t[0]=l?.x,t[1]=l?.y,t[2]=l?.z??r??0,!0)}const a=(0,r.vt)()},69540:(n,t,e)=>{e.d(t,{OU:()=>c,Pw:()=>f});var r=e(31635),o=e(65008),i=(e(44208),e(4718)),l=(e(53966),e(97768)),a=e(88620),s=e(40608);const u=Symbol("ClonableMixin"),c=n=>{var t;const e=n;let o=class extends e{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(n){const t=(0,a.oY)(this);(0,l.Lw)(t,"unable to clone instance of non-accessor class");const e=t.metadata,r=t.store,o={},s=new Map;for(const t in e){const l=e[t],a=r?.originOf(t),u=l.clonable;if(l.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;const c=this[t];let f=null;if("function"==typeof u)f=u(c,n);else if("reference"===u)f=c;else if(f=(0,i.TU)(c,n),null!=c&&null==f)continue;0===a?s.set(t,f):o[t]=f}const u=new(0,Object.getPrototypeOf(this).constructor)(o);if(s.size){const n=(0,a.oY)(u)?.store;if(n)for(const[t,e]of s)n.set(t,e,0)}return u}};return o=(0,r.Cg)([(0,s.$)("esri.core.Clonable")],o),o},f=c(o.A)},72258:(n,t,e)=>{e.d(t,{UR:()=>v,p5:()=>w,xK:()=>k});var r=e(53966),o=e(34727),i=e(83047),l=e(77690),a=e(29242),s=e(58083),u=e(9093),c=e(38954),f=e(51850),h=e(98764),p=e(48353),d=e(65806),m=e(27615),g=e(21325),y=e(73354),M=e(22141);const x=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function w(n,t,{vertexSpace:e,spatialReference:r}){if("georeferenced"===e.type){const o=n;if(!(0,d.g)(t,o,r))return!1;const{origin:i}=e;return(0,c.d)(n,o,i),!0}const o=(0,h.lO)(r),i=n;if(!(0,d.g)(t,i,o))return!1;const{origin:l}=e,a=T;if(!(0,p.l)(r,l,a,o))return!1;const u=(0,s.B8)(T,a);return null!=u&&((0,c.t)(n,i,u),!0)}function v(n,t,e){const{vertexSpace:r,transform:o,vertexAttributes:i}=n,a=(0,m.Hq)(r)?o:null,f=S(n.spatialReference,e,3);if((0,m.yJ)(r,t)&&(!a||(0,s.t2)(a.localMatrix,u.zK))&&R(f)){const{position:n,normal:t,tangent:r}=i,o=e?.allowBufferReuse;return{position:o?n:n.slice(),normal:o?t:t?.slice(),tangent:o?r:r?.slice()}}switch(n.vertexSpace.type){case"local":return"local"===t.type?function({vertexAttributes:n,spatialReference:t,transform:e},{origin:r},o,i){const l=b(t,i);if(!(0,p.l)(t,r,B,l))return(0,M.CN)(x(),t,l),null;if(e&&(0,s.lw)(B,B,e.localMatrix),!(0,p.l)(t,o,j,l))return(0,M.CN)(x(),l,t),null;(0,s.B8)(j,j);const a=(0,s.lw)(B,j,B);return A(a,t,i,3),_(n,a)}(n,n.vertexSpace,t.origin,e):function({spatialReference:n,vertexAttributes:t,transform:e},{origin:r},o,i){const l=b(n,i);if(!(0,p.l)(n,r,B,l))return(0,M.CN)(x(),n,l),null;e&&(0,s.lw)(B,B,e.localMatrix),A(B,n,i,1);const a=new Float64Array(t.position.length),u=function(n,t,e,r,o){(0,y.t)(r,n,t);const i=new Float64Array(n.length);return(0,M.$5)(r,o,i,e)?i:((0,M.CN)(x(),o,e),null)}(t.position,B,n,a,l);if(!u)return null;const f=function(n,t,e,r,o,i){if(null==o)return null;const l=new Float32Array(o.length);return(0,M.qs)(o,l,i),(0,M.si)(l,n,t,e,r,l)?l:((0,M.CN)(x(),r,t),null)}(u,n,a,l,t.normal,B);if(t.normal&&!f)return null;const h=function(n,t,e,r,o,i){if(null==o)return null;const l=new Float32Array(o.length);return(0,M.KM)(o,l,i),(0,M.Mv)(l,n,t,e,r,l)?l:((0,M.CN)(x(),r,t),null)}(u,n,a,l,t.tangent,B);if(t.tangent&&!h)return null;if(o){const n=(0,c.u)(O,o);(0,y.a)(u,u,n)}return{position:u,normal:f,tangent:h}}(n,n.vertexSpace,t.origin,e);case"georeferenced":return"local"===t.type?function({vertexAttributes:n,spatialReference:t,transform:e},{origin:r},o,i){const a=b(t,i);if(!(0,p.l)(t,o,B,a))return(0,M.CN)(x(),t,a),null;const u=1/S(t,i,2);(0,s.hs)(B,B,[u,u,u]);const c=(0,s.B8)(j,B),{position:f,normal:h,tangent:d}=function(n,t,e){if(!t)return n;if(!e){const{position:e,normal:r,tangent:o}=n;return{position:(0,y.a)(new Float64Array(e.length),e,t),tangent:o,normal:r}}const r=_(n,e.localMatrix);return(0,y.a)(r.position,r.position,t),r}(n,r,e),m=new Float64Array(f.length),g=function(n,t,e,r,o){const i=(0,M.gr)(n,t,r,o);if(!i)return(0,M.CN)(x(),t,o),null;const l=new Float64Array(i.length);return(0,y.t)(l,i,e),l}(f,t,c,m,a);if(!g)return null;const w=(0,l.Ge)(I,c),v=function(n,t,e,r,o,i,l){if(null==n)return null;const a=l??new Float32Array(n.length);return(0,M.X4)(n,t,e,r,o,a)?((0,y.b)(a,a,i),a):((0,M.CN)(x(),e,o),null)}(h,f,t,m,a,w,h!==n.normal?h:void 0);if(!v&&h)return null;const A=function(n,t,e,r,o,i,l){if(null==n)return null;const a=l??new Float32Array(n.length);return(0,M.xA)(n,t,e,r,o,a)?((0,y.b)(a,a,i,4),a):((0,M.CN)(x(),e,o),null)}(d,f,t,m,a,w,d!==n.tangent?d:void 0);return!A&&d?null:{position:g,normal:v,tangent:A}}(n,n.vertexSpace,t.origin,e):function({vertexAttributes:n,transform:t,spatialReference:e},{origin:r},o,i){const l=S(e,i,3),a=r||!R(l)?(0,s.C)(B,t?.localMatrix??u.zK):null;a&&A(a,e,i,3);const{position:f,normal:h,tangent:p}=a?_(n,a):n,d=i?.allowBufferReuse,m=d?f:new Float64Array(f.length);let g=f;if(r&&(g=(0,y.a)(m,g,r)),o){const n=(0,c.u)(O,o);g=(0,y.a)(m,g,n)}return{position:g!==n.position||d?g:g.slice(),normal:h!==n.normal||d?h:h?.slice(),tangent:p!==n.tangent||d?p:p?.slice()}}(n,n.vertexSpace,t.origin,e)}}function b(n,t){return t?.useEllipsoid&&(0,g.B3)(n)?h.Y0:(0,h.lO)(n)}function _(n,t){const e=new Float64Array(n.position.length);(0,y.t)(e,n.position,t);const r=n.normal?new Float32Array(n.normal.length):null,o=n.tangent?new Float32Array(n.tangent.length):null;return r&&n.normal&&(0,M.qs)(n.normal,r,t),o&&n.tangent&&(0,M.KM)(n.tangent,o,t),{position:e,normal:r,tangent:o}}function A(n,t,e,r){const o=S(t,e,r);R(o)||(0,s.hs)(n,n,[o,o,o])}function S(n,t,e){const r=!!(1&e),o=!!(2&e),i=t?.sourceUnit,l=t?.targetUnit;if(!i&&!l)return 1;let a=k(i,n);r||!i||R(a)||(x().warn("source unit conversion not supported"),a=1);let s=1/k(l,n);return o||!l||R(s)||(x().warn("target unit conversion not supported"),s=1),a*s}function R(n){return(0,o.Io)(n,1)}function k(n,t){if(null==n)return 1;const e=(0,i.KX)(t);return 1/(0,i.oU)(e,"meters",n)}const B=(0,u.vt)(),j=(0,u.vt)(),I=(0,a.vt)(),O=(0,f.vt)(),T=(0,u.vt)()},73354:(n,t,e)=>{e.d(t,{a:()=>f,b:()=>a,c:()=>l,d:()=>o,e:()=>h,f:()=>c,l:()=>u,n:()=>p,t:()=>i});var r=e(40876);function o(n,t,e){i(n.typedBuffer,t.typedBuffer,e,n.typedBufferStride,t.typedBufferStride)}function i(n,t,e,r=3,o=r){if(n.length/r!==Math.ceil(t.length/o))return n;const i=n.length/r,l=e[0],a=e[1],s=e[2],u=e[4],c=e[5],f=e[6],h=e[8],p=e[9],d=e[10],m=e[12],g=e[13],y=e[14];let M=0,x=0;for(let e=0;e<i;e++){const e=t[M],i=t[M+1],w=t[M+2];n[x]=l*e+u*i+h*w+m,n[x+1]=a*e+c*i+p*w+g,n[x+2]=s*e+f*i+d*w+y,M+=o,x+=r}return n}function l(n,t,e){a(n.typedBuffer,t.typedBuffer,e,n.typedBufferStride,t.typedBufferStride)}function a(n,t,e,r=3,o=r){if(n.length/r!==Math.ceil(t.length/o))return;const i=n.length/r,l=e[0],a=e[1],s=e[2],u=e[3],c=e[4],f=e[5],h=e[6],p=e[7],d=e[8];let m=0,g=0;for(let e=0;e<i;e++){const e=t[m],i=t[m+1],y=t[m+2];n[g]=l*e+u*i+h*y,n[g+1]=a*e+c*i+p*y,n[g+2]=s*e+f*i+d*y,m+=o,g+=r}}function s(n,t,e,r=3,o=r){const i=Math.min(n.length/r,t.length/o);let l=0,a=0;for(let s=0;s<i;s++)n[a]=e*t[l],n[a+1]=e*t[l+1],n[a+2]=e*t[l+2],l+=o,a+=r;return n}function u(n,t,e,r){c(n.typedBuffer,t.typedBuffer,e,r,n.typedBufferStride,t.typedBufferStride)}function c(n,t,e,o,i=3,l=i){const a=Math.min(n.length/i,t.length/l);let s=0,u=0;const c=1/r.Tf;for(let r=0;r<a;r++)n[u]=o*(e*t[s])**c,n[u+1]=o*(e*t[s+1])**c,n[u+2]=o*(e*t[s+2])**c,s+=l,u+=i}function f(n,t,e,r=3,o=r){const i=n.length/r;if(i!==Math.ceil(t.length/o))return n;let l=0,a=0;for(let s=0;s<i;s++)n[a]=t[l]+e[0],n[a+1]=t[l+1]+e[1],n[a+2]=t[l+2]+e[2],l+=o,a+=r;return n}function h(n,t){p(n.typedBuffer,t.typedBuffer,n.typedBufferStride,t.typedBufferStride)}function p(n,t,e=3,r=e){const o=Math.min(n.length/e,t.length/r);let i=0,l=0;for(let a=0;a<o;a++){const o=t[i],a=t[i+1],s=t[i+2],u=o*o+a*a+s*s;if(u>0){const t=1/Math.sqrt(u);n[l]=t*o,n[l+1]=t*a,n[l+2]=t*s}i+=r,l+=e}}e(44208),e(53966),Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:u,normalize:p,normalizeView:h,scale:s,scaleView:function(n,t,e){s(n.typedBuffer,t.typedBuffer,e,n.typedBufferStride,t.typedBufferStride)},shiftRight:function(n,t,e){const r=Math.min(n.count,t.count),o=n.typedBuffer,i=n.typedBufferStride,l=t.typedBuffer,a=t.typedBufferStride;let s=0,u=0;for(let n=0;n<r;n++)o[u]=l[s]>>e,o[u+1]=l[s+1]>>e,o[u+2]=l[s+2]>>e,s+=a,u+=i},transformMat3:a,transformMat3View:l,transformMat4:i,transformMat4View:o,translate:f},Symbol.toStringTag,{value:"Module"}))},75503:(n,t,e)=>{e.d(t,{EC:()=>S,wq:()=>a});var r=e(4576),o=e(21818),i=(e(44208),e(15142)),l=e(11006);class a{constructor(n=9,t){this._compareMinX=h,this._compareMinY=p,this._toBBox=n=>n,this._maxEntries=Math.max(4,n||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),v.prune(),b.prune(),_.prune(),A.prune()}all(n){s(this._data,n)}search(n,t){let e=this._data;const r=this._toBBox;if(x(n,e))for(v.clear();e;){for(let o=0,i=e.children.length;o<i;o++){const i=e.children[o],l=e.leaf?r(i):i;x(n,l)&&(e.leaf?t(i):M(n,l)?s(i,t):v.push(i))}e=v.pop()}}collides(n){let t=this._data;const e=this._toBBox;if(!x(n,t))return!1;for(v.clear();t;){for(let r=0,o=t.children.length;r<o;r++){const o=t.children[r],i=t.leaf?e(o):o;if(x(n,i)){if(t.leaf||M(n,i))return!0;v.push(o)}}t=v.pop()}return!1}load(n){if(!n.length)return this;if(n.length<this._minEntries){for(let t=0,e=n.length;t<e;t++)this.insert(n[t]);return this}let t=this._build(n.slice(),0,n.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const n=this._data;this._data=t,t=n}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(n){return n&&this._insert(n,this._data.height-1),this}clear(){return this._data=new k([]),this}remove(n){if(!n)return this;let t,e=this._data,i=null,l=0,a=!1;const s=this._toBBox(n);for(_.clear(),A.clear();e||_.length>0;){if(e||(e=_.pop(),i=_.data[_.length-1],l=A.pop()??0,a=!0),e.leaf&&(t=(0,r.qh)(e.children,(0,o.zI)(n),e.children.length,e.indexHint),-1!==t))return e.children.splice(t,1),_.push(e),this._condense(_),this;a||e.leaf||!M(e,s)?i?(l++,e=i.children[l],a=!1):e=null:(_.push(e),A.push(l),l=0,i=e,e=e.children[0])}return this}toJSON(){return this._data}fromJSON(n){return this._data=n,this}_build(n,t,e,r){const o=e-t+1;let i=this._maxEntries;if(o<=i){const r=new k(n.slice(t,e+1));return u(r,this._toBBox),r}r||(r=Math.ceil(Math.log(o)/Math.log(i)),i=Math.ceil(o/i**(r-1)));const l=new B([]);l.height=r;const a=Math.ceil(o/i),s=a*Math.ceil(Math.sqrt(i));w(n,t,e,s,this._compareMinX);for(let o=t;o<=e;o+=s){const t=Math.min(o+s-1,e);w(n,o,t,a,this._compareMinY);for(let e=o;e<=t;e+=a){const o=Math.min(e+a-1,t);l.children.push(this._build(n,e,o,r-1))}}return u(l,this._toBBox),l}_insert(n,t,e){const r=this._toBBox,o=e?n:r(n);_.clear();const i=function(n,t,e,r){for(;r.push(t),!0!==t.leaf&&r.length-1!==e;){let e,r=1/0,o=1/0;for(let i=0,l=t.children.length;i<l;i++){const l=t.children[i],a=d(l),s=g(n,l)-a;s<o?(o=s,r=a<r?a:r,e=l):s===o&&a<r&&(r=a,e=l)}t=e||t.children[0]}return t}(o,this._data,t,_);for(i.children.push(n),f(i,o);t>=0&&_.data[t].children.length>this._maxEntries;)this._split(_,t),t--;!function(n,t,e){for(let r=e;r>=0;r--)f(t.data[r],n)}(o,_,t)}_split(n,t){const e=n.data[t],r=e.children.length,o=this._minEntries;this._chooseSplitAxis(e,o,r);const i=this._chooseSplitIndex(e,o,r);if(!i)return;const l=e.children.splice(i,e.children.length-i),a=e.leaf?new k(l):new B(l);a.height=e.height,u(e,this._toBBox),u(a,this._toBBox),t?n.data[t-1].children.push(a):this._splitRoot(e,a)}_splitRoot(n,t){this._data=new B([n,t]),this._data.height=n.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(n,t,e){let r,o,i;r=o=1/0;for(let l=t;l<=e-t;l++){const t=c(n,0,l,this._toBBox),a=c(n,l,e,this._toBBox),s=y(t,a),u=d(t)+d(a);s<r?(r=s,i=l,o=u<o?u:o):s===r&&u<o&&(o=u,i=l)}return i}_chooseSplitAxis(n,t,e){const r=n.leaf?this._compareMinX:h,o=n.leaf?this._compareMinY:p;this._allDistMargin(n,t,e,r)<this._allDistMargin(n,t,e,o)&&n.children.sort(r)}_allDistMargin(n,t,e,r){n.children.sort(r);const o=this._toBBox,i=c(n,0,t,o),l=c(n,e-t,e,o);let a=m(i)+m(l);for(let r=t;r<e-t;r++){const t=n.children[r];f(i,n.leaf?o(t):t),a+=m(i)}for(let r=e-t-1;r>=t;r--){const t=n.children[r];f(l,n.leaf?o(t):t),a+=m(l)}return a}_condense(n){for(let t=n.length-1;t>=0;t--){const e=n.data[t];if(0===e.children.length)if(t>0){const o=n.data[t-1],i=o.children;i.splice((0,r.qh)(i,e,i.length,o.indexHint),1)}else this.clear();else u(e,this._toBBox)}}_initFormat(n){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(n[0])),this._compareMinY=new Function("a","b",t.join(n[1])),this._toBBox=new Function("a","return {minX: a"+n[0]+", minY: a"+n[1]+", maxX: a"+n[2]+", maxY: a"+n[3]+"};")}}function s(n,t){let e=n;for(b.clear();e;){if(!0===e.leaf)for(const n of e.children)t((0,o.zI)(n));else b.pushArray(e.children);e=b.pop()??null}}function u(n,t){c(n,0,n.children.length,t,n)}function c(n,t,e,r,o){o||(o=new k([])),o.minX=1/0,o.minY=1/0,o.maxX=-1/0,o.maxY=-1/0;for(let i,l=t;l<e;l++)i=n.children[l],f(o,n.leaf?r(i):i);return o}function f(n,t){n.minX=Math.min(n.minX,t.minX),n.minY=Math.min(n.minY,t.minY),n.maxX=Math.max(n.maxX,t.maxX),n.maxY=Math.max(n.maxY,t.maxY)}function h(n,t){return n.minX-t.minX}function p(n,t){return n.minY-t.minY}function d(n){return(n.maxX-n.minX)*(n.maxY-n.minY)}function m(n){return n.maxX-n.minX+(n.maxY-n.minY)}function g(n,t){return(Math.max(t.maxX,n.maxX)-Math.min(t.minX,n.minX))*(Math.max(t.maxY,n.maxY)-Math.min(t.minY,n.minY))}function y(n,t){const e=Math.max(n.minX,t.minX),r=Math.max(n.minY,t.minY),o=Math.min(n.maxX,t.maxX),i=Math.min(n.maxY,t.maxY);return Math.max(0,o-e)*Math.max(0,i-r)}function M(n,t){return n.minX<=t.minX&&n.minY<=t.minY&&t.maxX<=n.maxX&&t.maxY<=n.maxY}function x(n,t){return t.minX<=n.maxX&&t.minY<=n.maxY&&t.maxX>=n.minX&&t.maxY>=n.minY}function w(n,t,e,r,o){const i=[t,e];for(;i.length;){const t=i.pop(),e=i.pop();if(t-e<=r)continue;const a=e+Math.ceil((t-e)/r/2)*r;(0,l.q)(n,a,e,t,o),i.push(e,a,a,t)}}const v=new i.A,b=new i.A,_=new i.A,A=new i.A({deallocator:void 0});class S{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class R extends S{constructor(){super(...arguments),this.height=1,this.indexHint=new r.vW}}class k extends R{constructor(n){super(),this.children=n,this.leaf=!0}}class B extends R{constructor(n){super(),this.children=n,this.leaf=!1}}},91218:(n,t,e)=>{e.r(t),e.d(t,{canProjectWithoutEngine:()=>Z,initializeProjection:()=>$,isEqualBaseGCS:()=>G,isLoaded:()=>I,isLoadedOrLoad:()=>O,isLoadedOrLoadFor:()=>T,load:()=>Y,project:()=>q,projectExtent:()=>en,projectMany:()=>P,projectMultipoint:()=>J,projectOrLoad:()=>N,projectOrLoadMany:()=>C,projectPoint:()=>W,projectPolygon:()=>nn,projectPolyline:()=>H,projectWithZConversion:()=>L,projectWithoutEngine:()=>V,requiresLoad:()=>X,test:()=>F,tryProjectWithZConversion:()=>U,unload:()=>z});var r=e(49186),o=e(74887),i=e(62788),l=e(95488),a=e(51850),s=e(21276),u=e(73941),c=e(5443),f=e(91075),h=e(48526),p=e(86738),d=e(39829),m=e(82799),g=e(16930),y=e(159),M=e(9762),x=e(37539);function w(n,t,e,r,o,i){return v[0]=n,v[1]=t,v[2]=e,(0,M.projectBuffer)(v,r,0,o,i,0)}const v=(0,a.vt)();var b=e(21325),_=e(62815);let A=null,S=null,R=null,k=null,B={};const j=new l.I;function I(){return!!(S?.isLoaded()&&R?.isLoaded()&&k?.isLoaded())}function O(){return!!I()||((0,i.gc)(j),Y(),!1)}function T(n,t){return!n||!t||Z(n,t)||O()}function X(n,t){return!Z(n,t)&&!I()}async function Y(n){null==A&&(A=Promise.all([e.e(3276).then(e.bind(e,83276)).then(n=>(S=n,S.load())),e.e(8377).then(e.bind(e,8377)).then(n=>(R=n,R.load())),e.e(2158).then(e.bind(e,12158)).then(n=>(k=n,k.load()))])),await A,(0,o.Te)(n),j.notify()}function q(n,t,e){return Array.isArray(n)?0===n.length?[]:((0,s.H)(n),P(n,n[0].spatialReference,t,e)):((0,s.f)(n),P([n],n.spatialReference,t,e)[0])}function P(n,t,e,r){if(null==t||null==e)return n;if(Z(t,e,r))return n.map(n=>V(n,t,e));if(null==r?.geographicTransformation&&(0,u.jA)(t))return n.map(n=>V(n,t,g.A.WGS84)).map(n=>U(n,e));if(null==r?.geographicTransformation&&(0,u.jA)(e))return n.map(n=>U(n,g.A.WGS84)).map(n=>V(n,g.A.WGS84,e));if(!I())throw new E;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:k.getTransformation(t,e,r.areaOfInterestExtent)||new y.A};else if(!r?.areaOfInterestExtent){const n=function(n,t){return[n.wkid?.toString()??"-1",n.wkt?.toString()??"",n.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,e);let o=B[n];o||(o=k.getTransformation(t,e)||new y.A,B[n]=o),r={geographicTransformation:o}}return n[0].spatialReference||(n[0].spatialReference=t),n[0]instanceof f.A?S.executeMany(n,e,r):R.executeMany(n,e,r)}function N(n,t){const e=C([n],t);return null!=e.pending?{pending:e.pending,geometry:null}:null!=e.geometries?{pending:null,geometry:e.geometries[0]}:{pending:null,geometry:null}}function C(n,t){if(!I())for(const e of n)if(null!=e&&!(0,b.aI)(e.spatialReference,t)&&(0,b.fn)(e.spatialReference)&&(0,b.fn)(t)&&!Z(e.spatialReference,t))return(0,i.gc)(j),{pending:Y(),geometries:null};return{pending:null,geometries:n.map(n=>null==n?null:(0,b.aI)(n.spatialReference,t)?n:(0,b.fn)(n.spatialReference)&&(0,b.fn)(t)?U(n,t):null)}}class E extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function z(){A=null,S=null,R=null,k=null,B={}}const F={get loadPromise(){return A}};function U(n,t){try{const e=q(n,t);if(null==e)return null;"xmin"in n&&"xmin"in e&&(e.zmin=n.zmin,e.zmax=n.zmax);const r=(0,_.N)(e.type,n.spatialReference,t);return null!=r&&r(e),e}catch(n){if(!(n instanceof E))throw n;return null}}async function L(n,t,e){const r=n.spatialReference;return null!=r&&null!=t&&await $(r,t,null,e),U(n,t)}function Z(n,t,e){return!(e?.areaOfInterestExtent||e?.extendedParams||e?.geographicTransformation)&&(!!(0,b.aI)(n,t)||(0,b.fn)(n)&&(0,b.fn)(t)&&!!(0,x.jd)(n,t))}function G(n,t){if((0,b.aI)(n,t))return!0;if(!(0,b.fn)(n)||!(0,b.fn)(t))return!1;const e=(0,b.oT)(n)||(0,b.K8)(n)||(0,b.x1)(n),r=(0,b.oT)(t)||(0,b.K8)(t)||(0,b.x1)(t);return e&&r}async function $(n,t,e,r){if(I())return(0,o.NO)(r);if(Array.isArray(n)){for(const{source:t,dest:e,options:o}of n)if(t&&e&&!Z(t,e,o))return Y(r)}else if(n&&t&&!Z(n,t,e))return Y(r);return(0,o.NO)(r)}function V(n,t,e){return n?"x"in n?D(n,t,new p.A,e,0):"xmin"in n?rn(n,t,new c.A,e,0):"rings"in n?tn(n,t,new d.A,e,0):"paths"in n?Q(n,t,new m.A,e,0):"points"in n?K(n,t,new h.A,e,0):null:null}function W(n,t,e=t.spatialReference,r=0){return null!=e&&null!=n.spatialReference&&null!=D(n,n.spatialReference,t,e,r)}function D(n,t,e,r,o){ln[0]=n.x,ln[1]=n.y;const i=n.z;return ln[2]=void 0!==i?i:o,(0,M.projectBuffer)(ln,t,0,ln,r,0)?(e.x=ln[0],e.y=ln[1],e.spatialReference=r,void 0!==i||(0,u.xP)(r)?(e.z=ln[2],e.hasZ=!0):(e.z=void 0,e.hasZ=!1),void 0===n.m?(e.m=void 0,e.hasM=!1):(e.m=n.m,e.hasM=!0),e):null}function J(n,t,e=t.spatialReference,r=0){return null!=n.spatialReference&&null!=e&&null!=K(n,n.spatialReference,t,e,r)}function K(n,t,e,r,o){const{points:i,hasZ:l,hasM:a}=n,s=[],c=i.length,f=[];for(const n of i)f.push(n[0],n[1],l?n[2]:o);if(!(0,M.projectBuffer)(f,t,0,f,r,0,c))return null;const h=l||(0,u.xP)(r);for(let n=0;n<c;++n){const t=3*n,e=f[t],r=f[t+1];h&&a?s.push([e,r,f[t+2],i[n][3]]):h?s.push([e,r,f[t+2]]):a?s.push([e,r,i[n][2]]):s.push([e,r])}return e.points=s,e.spatialReference=r,e.hasZ=l,e.hasM=a,e}function H(n,t,e=t.spatialReference,r=0){return null!=n.spatialReference&&null!=e&&null!=Q(n,n.spatialReference,t,e,r)}function Q(n,t,e,r,o){const{paths:i,hasZ:l,hasM:a}=n,s=[];if(!on(i,l??!1,a??!1,t,s,r,o))return null;const c=l||(0,u.xP)(r);return e.paths=s,e.spatialReference=r,e.hasZ=c,e.hasM=a,e}function nn(n,t,e=t.spatialReference,r=0){return null!=n.spatialReference&&null!=e&&null!=tn(n,n.spatialReference,t,e,r)}function tn(n,t,e,r,o){const{rings:i,hasZ:l,hasM:a}=n,s=[];if(!on(i,l??!1,a??!1,t,s,r,o))return null;const c=l||(0,u.xP)(r);return e.rings=s,e.spatialReference=r,e.hasZ=c,e.hasM=a,e}function en(n,t,e=t.spatialReference,r=0){return null!=n.spatialReference&&null!=e&&null!=rn(n,n.spatialReference,t,e,r)}function rn(n,t,e,r,o){const{xmin:i,ymin:l,xmax:a,ymax:s,hasZ:c,hasM:f}=n;if(!w(i,l,c?n.zmin:o,t,ln,r))return null;const h=c||(0,u.xP)(r);return e.xmin=ln[0],e.ymin=ln[1],h&&(e.zmin=ln[2]),w(a,s,c?n.zmax:o,t,ln,r)?(e.xmax=ln[0],e.ymax=ln[1],h&&(e.zmax=ln[2]),f&&(e.mmin=n.mmin,e.mmax=n.mmax),e.spatialReference=r,e):null}function on(n,t,e,r,o,i,l=0){const a=new Array;for(const e of n)for(const n of e)a.push(n[0],n[1],t?n[2]:l);if(!(0,M.projectBuffer)(a,r,0,a,i,0))return!1;let s=0;o.length=0;const c=t||(0,u.xP)(i);for(const t of n){const n=new Array;for(const r of t)c&&e?n.push([a[s++],a[s++],a[s++],r[3]]):c?n.push([a[s++],a[s++],a[s++]]):e?(n.push([a[s++],a[s++],r[2]]),s++):(n.push([a[s++],a[s++]]),s++);o.push(n)}return!0}const ln=(0,a.vt)()},93223:(n,t,e)=>{e.d(t,{e:()=>i});var r=e(66552),o=e(10107);function i(n,t={}){const e=n instanceof r.J?n:new r.J(n,t),{alwaysWriteDefaults:i,default:l,ignoreUnknown:a=!0,name:s,nonNullable:u,readOnly:c=!1}=t;return(0,o.MZ)({type:a?e.apiValues:String,json:{type:e.jsonValues,default:l,name:s,read:!c&&{reader:e.read},write:{writer:e.write,alwaysWriteDefaults:i}},nonNullable:u,readOnly:c})}},95488:(n,t,e)=>{e.d(t,{I:()=>o});var r=e(11406);class o extends r.T{notify(){const n=this._observers;if(n&&n.length>0){const t=n.slice();for(const n of t)n.onInvalidated(),n.onCommitted()}}}},95696:(n,t,e)=>{e.d(t,{A:()=>c});var r,o=e(31635),i=e(69540),l=e(25482),a=e(10107),s=(e(44208),e(53966),e(87811),e(93223)),u=e(40608);let c=class extends((0,i.OU)(l.o)){static{r=this}constructor(n){super(n),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,o.Cg)([(0,s.e)({georeferenced:"georeferenced"},{readOnly:!0})],c.prototype,"type",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],c.prototype,"origin",void 0),c=r=(0,o.Cg)([(0,u.$)("esri.geometry.support.MeshGeoreferencedVertexSpace")],c)},98764:(n,t,e)=>{e.d(t,{Y0:()=>u,lO:()=>c});var r=e(73941),o=e(16930),i=e(21325);const l=new o.A(r.fv),a=new o.A(r.FY),s=new o.A(r.LJ),u=new o.A(r.Ro);function c(n){const t=f.get(n);if(t)return t;let e=l;if(n)if(n===a)e=a;else if(n===s)e=s;else{const t=n.wkid,r=n.latestWkid;if(null!=t||null!=r)(0,i.tl)(t)||(0,i.tl)(r)?e=a:((0,i.ZL)(t)||(0,i.ZL)(r))&&(e=s);else{const t=n.wkt2??n.wkt;if(t){const n=t.toUpperCase();n===h?e=a:n===p&&(e=s)}}}return f.set(n,e),e}const f=new Map,h=a.wkt.toUpperCase(),p=s.wkt.toUpperCase()},99157:(n,t,e)=>{e.d(t,{A:()=>s});var r,o=e(31635),i=e(65008),l=e(10107),a=(e(44208),e(53966),e(87811),e(40608));let s=r=class extends i.A{constructor(n){super(n),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,o.Cg)([(0,l.MZ)()],s.prototype,"isInverse",void 0),(0,o.Cg)([(0,l.MZ)()],s.prototype,"wkt",void 0),(0,o.Cg)([(0,l.MZ)()],s.prototype,"wkid",void 0),s=r=(0,o.Cg)([(0,a.$)("esri.geometry.operators.support.GeographicTransformationStep")],s)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4038],{51530:(e,t,s)=>{s.d(t,{KB:()=>a,Xi:()=>r,pn:()=>o,x3:()=>n});var i=s(44208);class r{constructor(e){this.data=e,this.type="encoded-mesh-texture",this.encoding="image/ktx2"}}function n(e){return"encoded-mesh-texture"===e?.type}async function a(e){const t=new Blob([e]),s=await t.text();return JSON.parse(s)}async function o(e,t){if("image/ktx2"===t)return new r(e);const s=new Blob([e],{type:t});let n=URL.createObjectURL(s);switch(t){case"image/jpeg":n+="#.jpg";break;case"image/png":n+="#.png"}const a=new Image;if((0,i.A)("esri-iPhone"))return new Promise((e,t)=>{const s=()=>{r(),e(a)},i=e=>{r(),t(e)},r=()=>{URL.revokeObjectURL(n),a.removeEventListener("load",s),a.removeEventListener("error",i)};a.addEventListener("load",s),a.addEventListener("error",i),a.src=n});try{a.src=n,await a.decode()}catch(e){console.warn("Failed decoding HTMLImageElement")}return URL.revokeObjectURL(n),a}},63907:(e,t,s)=>{s.d(t,{CQ:()=>p,Fq:()=>_,H0:()=>n,SB:()=>c,WR:()=>i,XN:()=>a,iE:()=>o,ld:()=>h,nI:()=>d,pe:()=>r,r6:()=>f,vt:()=>u,yI:()=>l});const i={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},r={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},n={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},a=Object.values(n),o={DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},c={DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},h={FLOAT:r.FLOAT,UNSIGNED_BYTE:r.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:r.BYTE,UNSIGNED_SHORT:r.UNSIGNED_SHORT,SHORT:r.SHORT,UNSIGNED_INT:r.UNSIGNED_INT,INT:r.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269},u={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},f=36064,l=36065,_=36066,d=33306,p={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}},84038:(e,t,s)=>{s.r(t),s.d(t,{exportGLTF:()=>v,modelNameGlb:()=>z,modelNameGltf:()=>P,toBinaryGLTF:()=>V});var i=s(74887),r=s(4576);class n{constructor(){this.copyright="",this.defaultScene=0,this.generator="",this._scenes=[]}addScene(e){if(this._scenes.includes(e))throw new Error("Scene already added");this._scenes.push(e)}removeScene(e){(0,r.TF)(this._scenes,e)}forEachScene(e){this._scenes.forEach(e)}}class a{static{this.HEADER_SIZE=12}static{this.CHUNK_HEADER_SIZE=8}static{this.MAGIC=1179937895}static{this.VERSION=2}constructor(e,t){if(!e)throw new Error("GLB requires a JSON gltf chunk");this._length=a.HEADER_SIZE,this._length+=a.CHUNK_HEADER_SIZE;const s=function(e){return(new TextEncoder).encode(e).buffer}(e);if(this._length+=o(s.byteLength,4),t&&(this._length+=a.CHUNK_HEADER_SIZE,this._length+=t.byteLength,t.byteLength%4))throw new Error("Expected BIN chunk length to be divisible by 4 at this point");this.buffer=new ArrayBuffer(this._length),this._outView=new DataView(this.buffer),this._writeHeader();const i=this._writeChunk(s,12,1313821514,32);t&&this._writeChunk(t,i,5130562)}_writeHeader(){this._outView.setUint32(0,a.MAGIC,!0),this._outView.setUint32(4,a.VERSION,!0),this._outView.setUint32(8,this._length,!0)}_writeChunk(e,t,s,i=0){const r=o(e.byteLength,4);for(this._outView.setUint32(t,r,!0),this._outView.setUint32(t+=4,s,!0),function(e,t,s,i,r){new Uint8Array(e,s,r).set(new Uint8Array(t,0,r),0)}(this._outView.buffer,e,t+=4,0,e.byteLength),t+=e.byteLength;t%4;)i&&this._outView.setUint8(t,i),t++;return t}}function o(e,t){return t*Math.ceil(e/t)}var c=s(40876),h=s(53966),u=s(91869),f=s(34727),l=s(67026),_=s(82534),d=s(38954),p=s(51850),m=s(80882),g=s(72258),T=s(63907);class E{constructor(e,t,s,i,r){this._buffer=e,this._componentType=s,this._dataType=i,this._data=[],this._isFinalized=!1,this._accessorIndex=-1,this._accessorAttribute=null,this._accessorMin=null,this._accessorMax=null,t.bufferViews||(t.bufferViews=[]),this.index=t.bufferViews.length,this._bufferView={buffer:e.index,byteLength:-1,target:r};const n=this._getElementSize();n>=4&&34963!==r&&(this._bufferView.byteStride=n),t.bufferViews.push(this._bufferView),this._numComponentsForDataType=this._calculateNumComponentsForDataType()}push(e){const t=this._data.length;if(this._data.push(e),this._accessorIndex>=0){const s=t%this._numComponentsForDataType,i=this._accessorMin[s];this._accessorMin[s]="number"!=typeof i?e:Math.min(i,e);const r=this._accessorMax[s];this._accessorMax[s]="number"!=typeof r?e:Math.max(r,e)}}get dataSize(){return this._data.length*this._sizeComponentType()}get byteSize(){return e=this.dataSize,4*Math.ceil(e/4);var e}getByteOffset(){if(!this._isFinalized)throw new Error("Cannot get BufferView offset until it is finalized");return this._buffer.getByteOffset(this)}get byteOffset(){if(!this._isFinalized)throw new Error("Cannot get BufferView offset until it is finalized");return this._buffer.getByteOffset(this)}_createTypedArray(e,t){switch(this._componentType){case T.pe.BYTE:return new Int8Array(e,t);case T.pe.FLOAT:return new Float32Array(e,t);case T.pe.SHORT:return new Int16Array(e,t);case T.pe.UNSIGNED_BYTE:return new Uint8Array(e,t);case T.pe.UNSIGNED_INT:return new Uint32Array(e,t);case T.pe.UNSIGNED_SHORT:return new Uint16Array(e,t)}}writeOutToBuffer(e,t){this._createTypedArray(e,t).set(this._data)}writeAsync(e){if(this._asyncWritePromise)throw new Error("Can't write multiple bufferView values asynchronously");return this._asyncWritePromise=e.then(e=>{const t=new Uint8Array(e);for(let e=0;e<t.length;++e)this._data.push(t[e]);delete this._asyncWritePromise}),this._asyncWritePromise}startAccessor(e){if(this._accessorIndex>=0)throw new Error("Accessor was started without ending the previous one");this._accessorIndex=this._data.length,this._accessorAttribute=e;const t=this._numComponentsForDataType;this._accessorMin=new Array(t),this._accessorMax=new Array(t)}endAccessor(){if(this._accessorIndex<0)throw new Error("An accessor was not started, but was attempted to be ended");const e=this._getElementSize(),t=this._numComponentsForDataType,s=(this._data.length-this._accessorIndex)/t;if(s%1)throw new Error("An accessor was ended with missing component values");for(let e=0;e<this._accessorMin.length;++e)"number"!=typeof this._accessorMin[e]&&(this._accessorMin[e]=0),"number"!=typeof this._accessorMax[e]&&(this._accessorMax[e]=0);const i={byteOffset:e*(this._accessorIndex/t),componentType:this._componentType,count:s,type:this._dataType,min:this._accessorMin,max:this._accessorMax,name:this._accessorAttribute};switch(this._accessorAttribute){case"TEXCOORD_0":case"TEXCOORD_1":case"COLOR_0":case"WEIGHTS_0":switch(this._componentType){case T.pe.UNSIGNED_BYTE:case T.pe.UNSIGNED_SHORT:i.normalized=!0}}return this._accessorIndex=-1,this._accessorAttribute=null,this._accessorMin=null,this._accessorMax=null,i}get finalized(){return this._finalizedPromise?this._finalizedPromise:this._isFinalized?this._finalizedPromise=Promise.resolve():this._finalizedPromise=new Promise(e=>this._finalizedPromiseResolve=e)}async finalize(){const e=this._bufferView,t=this._buffer.getViewFinalizePromises(this);this._asyncWritePromise&&t.push(this._asyncWritePromise),await Promise.allSettled(t),this._isFinalized=!0,e.byteOffset=this.getByteOffset(),e.byteLength=this.dataSize,this._finalizedPromiseResolve&&this._finalizedPromiseResolve()}_getElementSize(){return this._sizeComponentType()*this._numComponentsForDataType}_sizeComponentType(){switch(this._componentType){case T.pe.BYTE:case T.pe.UNSIGNED_BYTE:return 1;case T.pe.SHORT:case T.pe.UNSIGNED_SHORT:return 2;case T.pe.UNSIGNED_INT:case T.pe.FLOAT:return 4}}_calculateNumComponentsForDataType(){switch(this._dataType){case"SCALAR":return 1;case"VEC2":return 2;case"VEC3":return 3;case"VEC4":case"MAT2":return 4;case"MAT3":return 9;case"MAT4":return 16}}}class w{constructor(e){this._gltf=e,this._bufferViews=[],this._isFinalized=!1,e.buffers||(e.buffers=[]),this.index=e.buffers.length;const t={byteLength:-1};e.buffers.push(t),this._buffer=t}addBufferView(e,t,s){if(this._finalizePromise)throw new Error("Cannot add buffer view after fiinalizing buffer");const i=new E(this,this._gltf,e,t,s);return this._bufferViews.push(i),i}getByteOffset(e){let t=0;for(const s of this._bufferViews){if(s===e)return t;t+=s.byteSize}throw new Error("Given bufferView was not present in this buffer")}getViewFinalizePromises(e){const t=[];for(const s of this._bufferViews){if(e&&s===e)return t;t.push(s.finalized)}return t}getArrayBuffer(){if(!this._isFinalized)throw new Error("Cannot get ArrayBuffer from Buffer before it is finalized");const e=this._getTotalSize(),t=new ArrayBuffer(e);let s=0;for(const e of this._bufferViews)e.writeOutToBuffer(t,s),s+=e.byteSize;return t}finalize(){if(this._finalizePromise)throw new Error(`Buffer ${this.index} was already finalized`);return this._finalizePromise=Promise.allSettled(this.getViewFinalizePromises()).then(()=>{this._isFinalized=!0;const e=this.getArrayBuffer();this._buffer.byteLength=e.byteLength,this._buffer.uri=e}),this._gltf.extras.promises.push(this._finalizePromise),this._finalizePromise}_getTotalSize(){let e=0;for(const t of this._bufferViews)e+=t.byteSize;return e}}function R(e,t){null==t.normal&&(t.normal=new Float32Array(t.position.length));const{position:s,normal:i}=t,r=e.length/3;for(let t=0;t<r;++t){const r=3*e[3*t],n=3*e[3*t+1],a=3*e[3*t+2],o=(0,d.i)(S,s[r],s[r+1],s[r+2]),c=(0,d.i)(b,s[n],s[n+1],s[n+2]),h=(0,d.i)(A,s[a],s[a+1],s[a+2]),u=(0,d.d)(c,c,o),f=(0,d.d)(h,h,o),l=(0,d.h)(u,u,f);i[r]+=l[0],i[r+1]+=l[1],i[r+2]+=l[2],i[n]+=l[0],i[n+1]+=l[1],i[n+2]+=l[2],i[a]+=l[0],i[a+1]+=l[1],i[a+2]+=l[2]}for(let e=0;e<i.length;e+=3)(0,d.i)(N,i[e],i[e+1],i[e+2]),(0,d.n)(N,N),i[e]=N[0],i[e+1]=N[1],i[e+2]=N[2]}const S=(0,p.vt)(),b=(0,p.vt)(),A=(0,p.vt)(),N=(0,p.vt)();s(44208);var y=s(49186),I=s(84952);async function x(e,t){const s=O(e);if(null==s)throw new y.A("imageToArrayBuffer","Unsupported image type");const r=function(e){if(!(e instanceof HTMLImageElement))return"image/png";const t=e.src;if((0,I.DB)(t)){const e=(0,I.r$)(t);return"image/jpeg"===e?.mediaType?e.mediaType:"image/png"}return/\.png$/i.test(t)?"image/png":/\.(jpg|jpeg)$/i.test(t)?"image/jpeg":"image/png"}(e),n=await new Promise(e=>s.toBlob(e,r));if((0,i.Te)(t),!n)throw new y.A("imageToArrayBuffer","Failed to encode image");const a=await n.arrayBuffer();return(0,i.Te)(t),{data:a,type:r}}function O(e){if(e instanceof HTMLCanvasElement)return e;if(e instanceof HTMLVideoElement)return null;const t=document.createElement("canvas");t.width=e.width,t.height=e.height;const s=t.getContext("2d");return e instanceof HTMLImageElement?s.drawImage(e,0,0,e.width,e.height):e instanceof ImageData&&s.putImageData(e,0,0),t}var C=s(51530);const B=()=>h.A.getLogger("esri.geometry.support.meshUtils.exporters.gltf.gltf");class G{constructor(e,t){this.options=t,this._materialMap=new Array,this._imageMap=new Map,this._textureMap=new Map,this.gltf={asset:{version:"2.0",copyright:e.copyright,generator:e.generator},extras:{output:t.output,binChunkBuffer:null,promises:[]}},this._addScenes(e)}_addScenes(e){this.gltf.scene=e.defaultScene;const t=this.gltf.extras,s=2===t.output.buffer||2===t.output.image;s&&(t.binChunkBuffer=new w(this.gltf)),e.forEachScene(e=>{this._addScene(e)}),s&&t.binChunkBuffer.finalize()}_addScene(e){this.gltf.scenes||(this.gltf.scenes=[]);const t={};e.name&&(t.name=e.name),e.forEachNode(e=>{t.nodes||(t.nodes=[]),t.nodes.push(...this._addNodes(e))}),this.gltf.scenes.push(t)}_addNodes(e){this.gltf.nodes||(this.gltf.nodes=[]);const t={};e.name&&(t.name=e.name);const s=e.translation;(0,d.q)(s,p.uY)||(t.translation=(0,p.o8)(s));const i=e.rotation;(0,l.t2)(i,_.zK)||(t.rotation=(0,_.o8)(i));const r=e.scale;(0,d.q)(r,p.Un)||(t.scale=(0,p.o8)(r));const n=this.gltf.nodes.length;if(this.gltf.nodes.push(t),e.mesh&&e.mesh.vertexAttributes.position){const s=this._createMeshes(e.mesh),i=[n];if(1===s.length)this._addMesh(t,s[0]);else for(const e of s){const t={};this._addMesh(t,e),i.push(this.gltf.nodes.length),this.gltf.nodes.push(t)}return i}return e.forEachNode(e=>{t.children||(t.children=[]),t.children.push(...this._addNodes(e))}),[n]}_addMesh(e,t){this.gltf.meshes??=[];const s=this.gltf.meshes.length;this.gltf.meshes.push(t),e.mesh=s}_createMeshes(e){const t=this.gltf.extras,s=2===t.output.buffer;let i;i=s?t.binChunkBuffer:new w(this.gltf);const r=this.options.origin,n=e.vertexSpace.clone();n.origin=[r.x,r.y,r.z??0];const a=(0,g.UR)({vertexAttributes:e.vertexAttributes,vertexSpace:e.vertexSpace,transform:this.options?.ignoreLocalTransform?null:e.transform,spatialReference:e.spatialReference},n,{targetUnit:this.options.unitConversionDisabled?void 0:"meters"});if(!a)return[];(function(e,t){if(e.components)for(const s of e.components)s.faces&&"smooth"===s.shading&&R(s.faces,t)})(e,a),M(a);const{position:o,normal:c,tangent:h}=a,{uv:u,color:f}=e.vertexAttributes,l=i.addBufferView(T.pe.FLOAT,"VEC3",34962);let _,d,p,m;c&&(_=i.addBufferView(T.pe.FLOAT,"VEC3",34962)),u&&(d=i.addBufferView(T.pe.FLOAT,"VEC2",34962)),h&&(p=i.addBufferView(T.pe.FLOAT,"VEC4",34962)),f&&(m=i.addBufferView(T.pe.FLOAT,"VEC4",34962)),l.startAccessor("POSITION"),_&&_.startAccessor("NORMAL"),d&&d.startAccessor("TEXCOORD_0"),p&&p.startAccessor("TANGENT"),m&&m.startAccessor("COLOR_0");const E=a.position.length/3;for(let e=0;e<E;++e)l.push(o[3*e]),l.push(o[3*e+1]),l.push(o[3*e+2]),_&&null!=c&&(_.push(c[3*e]),_.push(c[3*e+1]),_.push(c[3*e+2])),d&&null!=u&&(d.push(u[2*e]),d.push(u[2*e+1])),p&&null!=h&&(p.push(h[4*e]),p.push(h[4*e+1]),p.push(h[4*e+2]),p.push(h[4*e+3])),m&&null!=f&&(m.push(D(f[4*e]/255)),m.push(D(f[4*e+1]/255)),m.push(D(f[4*e+2]/255)),m.push(f[4*e+3]/255));const S=l.endAccessor(),b=this._addAccessor(l.index,S);let A,N,y,I,x;if(_){const e=_.endAccessor();A=this._addAccessor(_.index,e)}if(d){const e=d.endAccessor();N=this._addAccessor(d.index,e)}if(p){const e=p.endAccessor();y=this._addAccessor(p.index,e)}if(m){const e=m.endAccessor();I=this._addAccessor(m.index,e)}const O=[];return e.components&&e.components.length>0&&e.components[0].faces?(x=i.addBufferView(T.pe.UNSIGNED_INT,"SCALAR",34963),this._addMeshVertexIndexed(x,e.components,O,b,A,N,y,I)):this._addMeshVertexNonIndexed(e.components,O,b,A,N,y,I),l.finalize(),_?.finalize(),d?.finalize(),p?.finalize(),x?.finalize(),m?.finalize(),s||i.finalize(),O}_addMaterial(e){if(null==e)return;const t=this._materialMap.indexOf(e);if(-1!==t)return t;this.gltf.materials||(this.gltf.materials=[]);const s={};switch(e.alphaMode){case"mask":s.alphaMode="MASK";break;case"auto":case"blend":s.alphaMode="BLEND"}s.alphaCutoff=e.alphaCutoff,e.doubleSided&&(s.doubleSided=e.doubleSided),s.pbrMetallicRoughness={};const i=e=>{const t=e.toRgba();return t[0]=D(t[0]/255),t[1]=D(t[1]/255),t[2]=D(t[2]/255),t};if(null!=e.color&&(s.pbrMetallicRoughness.baseColorFactor=i(e.color)),null!=e.colorTexture&&(s.pbrMetallicRoughness.baseColorTexture=this._createTextureInfo(e.colorTexture,e.colorTextureTransform)),null!=e.normalTexture&&(s.normalTexture=this._createTextureInfo(e.normalTexture,e.normalTextureTransform)),e instanceof m.A){if(null!=e.emissiveTexture&&(s.emissiveTexture=this._createTextureInfo(e.emissiveTexture,e.emissiveTextureTransform)),null!=e.emissiveColor){const t=i(e.emissiveColor);s.emissiveFactor=[t[0],t[1],t[2]]}null!=e.occlusionTexture&&(s.occlusionTexture=this._createTextureInfo(e.occlusionTexture,e.occlusionTextureTransform)),null!=e.metallicRoughnessTexture&&(s.pbrMetallicRoughness.metallicRoughnessTexture=this._createTextureInfo(e.metallicRoughnessTexture,e.metallicRoughnessTextureTransform)),s.pbrMetallicRoughness.metallicFactor=e.metallic,s.pbrMetallicRoughness.roughnessFactor=e.roughness}else s.pbrMetallicRoughness.metallicFactor=1,s.pbrMetallicRoughness.roughnessFactor=1,B().warnOnce("Meshes exported to GLTF without MeshMaterialMetallicRoughness material will appear different when imported back.");const r=this.gltf.materials.length;return this.gltf.materials.push(s),this._materialMap.push(e),r}_createTextureInfo(e,t){const s={index:this._addTexture(e)};return t?(s.extensions||(s.extensions={}),s.extensions.KHR_texture_transform={scale:t.scale,offset:t.offset,rotation:(0,f.kU)(t.rotation)},s):s}_addTexture(e){const t=this.gltf.textures??[];return this.gltf.textures=t,(0,u.tE)(this._textureMap,e,()=>{const s={sampler:this._addSampler(e),source:this._addImage(e)},i=t.length;return t.push(s),i})}_addImage(e){const t=this._imageMap.get(e);if(null!=t)return t;this.gltf.images||(this.gltf.images=[]);const s={};if(e.url)s.uri=e.url;else{const t=e.data;s.extras=t;for(let e=0;e<this.gltf.images.length;++e)if(t===this.gltf.images[e].extras)return e;const i=this.gltf.extras;switch(i.output.image){case 2:{const e=i.binChunkBuffer.addBufferView(T.pe.UNSIGNED_BYTE,"SCALAR");if((0,C.x3)(t))null!=t.data&&e.writeOutToBuffer(t.data.buffer,0);else{const r=x(t,this.options.signal).then(({data:e,type:t})=>(s.mimeType=t,e));i.promises.push(e.writeAsync(r).then(()=>e.finalize()))}s.bufferView=e.index;break}case 1:if((0,C.x3)(t)){B().warnOnce("Image export for basis compressed textures not available.");break}s.uri=function(e){const t=O(e);return null!=t?t.toDataURL():""}(t);break;default:if((0,C.x3)(t)){B().warnOnce("Image export for basis compressed textures not available.");break}i.promises.push(x(t,this.options.signal).then(({data:e,type:t})=>{s.uri=e,s.mimeType=t}))}}const i=this.gltf.images.length;return this.gltf.images.push(s),this._imageMap.set(e,i),i}_addSampler(e){this.gltf.samplers||(this.gltf.samplers=[]);let t=10497,s=10497;if("string"==typeof e.wrap)switch(e.wrap){case"clamp":t=33071,s=33071;break;case"mirror":t=33648,s=33648}else{switch(e.wrap.vertical){case"clamp":s=33071;break;case"mirror":s=33648}switch(e.wrap.horizontal){case"clamp":t=33071;break;case"mirror":t=33648}}const i={wrapS:t,wrapT:s};for(let e=0;e<this.gltf.samplers.length;++e)if(JSON.stringify(i)===JSON.stringify(this.gltf.samplers[e]))return e;const r=this.gltf.samplers.length;return this.gltf.samplers.push(i),r}_addAccessor(e,t){this.gltf.accessors||(this.gltf.accessors=[]);const s={bufferView:e,byteOffset:t.byteOffset,componentType:t.componentType,count:t.count,type:t.type,min:t.min,max:t.max,name:t.name};t.normalized&&(s.normalized=!0);const i=this.gltf.accessors.length;return this.gltf.accessors.push(s),i}_addMeshVertexIndexed(e,t,s,i,r,n,a,o){const c=new Map;for(const h of t){if(e.startAccessor("INDICES"),h.faces)for(let t=0;t<h.faces.length;++t)e.push(h.faces[t]);const t=e.endAccessor(),u={attributes:{POSITION:i},indices:this._addAccessor(e.index,t),material:this._addMaterial(h.material)};r&&"flat"!==h.shading&&(u.attributes.NORMAL=r),n&&(u.attributes.TEXCOORD_0=n),a&&"flat"!==h.shading&&(u.attributes.TANGENT=a),o&&(u.attributes.COLOR_0=o);const f=c.get(h.name);if(f)f.primitives.push(u);else{const e={name:h.name,primitives:[u]};c.set(h.name,e),s.push(e)}}}_addMeshVertexNonIndexed(e,t,s,i,r,n,a){const o={primitives:[]};t.push(o);const c={attributes:{POSITION:s}};i&&(c.attributes.NORMAL=i),r&&(c.attributes.TEXCOORD_0=r),n&&(c.attributes.TANGENT=n),a&&(c.attributes.COLOR_0=a),e&&(c.material=this._addMaterial(e[0].material)),o.primitives.push(c)}}function M({position:e,normal:t,tangent:s}){U(e,3),U(t,3),U(s,4)}function U(e,t){if(null!=e)for(let s=1,i=2;s<e.length;s+=t,i+=t){const t=e[s],r=e[i];e[s]=r,e[i]=-t}}function D(e){return e**c.Tf}class L{constructor(e){this.mesh=e,this.name="",this.translation=(0,p.vt)(),this.rotation=(0,_.vt)(),this.scale=(0,p.o8)(p.Un),this._nodes=[]}addNode(e){if(this._nodes.includes(e))throw new Error("Node already added");this._nodes.push(e)}forEachNode(e){this._nodes.forEach(e)}set rotationAngles(e){(0,l.A6)(this.rotation,e[0],e[1],e[2])}}class F{constructor(){this.name="",this._nodes=[]}addNode(e){if(this._nodes.includes(e))throw new Error("Node already added");this._nodes.push(e)}forEachNode(e){this._nodes.forEach(e)}}const P="model.gltf",z="model.glb";async function v(e,t){const s=new G(e,t).gltf,r=s.extras.promises;let n=1,o=1,c=null;await Promise.allSettled(r),(0,i.Te)(t.signal);const h=t.jsonSpacing??4,u=new Map,f=JSON.stringify(s,(e,s)=>{if("extras"!==e){if(s instanceof ArrayBuffer){if(function(e){if(e.byteLength<8)return!1;const t=new Uint8Array(e);return 137===t[0]&&80===t[1]&&78===t[2]&&71===t[3]&&13===t[4]&&10===t[5]&&26===t[6]&&10===t[7]}(s))switch(t.output?.image){case 1:case 2:break;default:{const e=`img${o}.png`;return o++,u.set(e,s),e}}switch(t.output?.buffer){case 1:return function(e){const t=[],s=new Uint8Array(e);for(let e=0;e<s.length;e++)t.push(String.fromCharCode(s[e]));return"data:application/octet-stream;base64,"+btoa(t.join(""))}(s);case 2:if(c)throw new Error("Already encountered an ArrayBuffer, there should only be one in the GLB format.");return void(c=s);default:{const e=`data${n}.bin`;return n++,u.set(e,s),e}}}return s}},h);return 2===t.output?.buffer||2===t.output?.image?u.set(z,new a(f,c).buffer):u.set(P,f),u}async function V(e,t){const s=new n,i=new F;return s.addScene(i),i.addNode(new L(e)),await async function(e,t){const s=(await v(e,{output:{buffer:2,image:2},jsonSpacing:0,...t})).get(z);if(!(s&&s instanceof ArrayBuffer))throw new Error("failed to export to glb");return s}(s,{origin:e.origin,...t})}}}]);