@arcgis/core 4.30.0-next.20240213 → 4.30.0-next.20240215

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 (193) hide show
  1. package/TimeExtent.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/08ba549f9c4afc42a21c.js +1 -0
  4. package/assets/esri/core/workers/chunks/114afcee6a66415cd123.js +1 -0
  5. package/assets/esri/core/workers/chunks/1320562881294ce93806.js +1 -0
  6. package/assets/esri/core/workers/chunks/13451fa3e4b02ca2beb0.js +1 -0
  7. package/assets/esri/core/workers/chunks/{a384f29cb3256401962a.js → 1629a8c2085dce59cd1b.js} +1 -1
  8. package/assets/esri/core/workers/chunks/18512caeeb03b9759ab1.js +1 -0
  9. package/assets/esri/core/workers/chunks/{cc1c958aad790a44048b.js → 1ca28af7c516d8283bb0.js} +1 -1
  10. package/assets/esri/core/workers/chunks/1f8a0fb32b96e50f5909.js +1 -0
  11. package/assets/esri/core/workers/chunks/{abab3abb8ea7610d9fb8.js → 21e7a88478f5d15e0e71.js} +1 -1
  12. package/assets/esri/core/workers/chunks/24452a26b0c5322c7d2b.js +1 -0
  13. package/assets/esri/core/workers/chunks/25b88787ead0cc44cda4.js +1 -0
  14. package/assets/esri/core/workers/chunks/2649166d1a462c7f8338.js +1 -0
  15. package/assets/esri/core/workers/chunks/2c96771a365f8f70e996.js +1 -0
  16. package/assets/esri/core/workers/chunks/352e7f8d694f3f217a2d.js +1 -0
  17. package/assets/esri/core/workers/chunks/392214a3a1d712eda155.js +1 -0
  18. package/assets/esri/core/workers/chunks/397f15b5bce6838db084.js +1 -0
  19. package/assets/esri/core/workers/chunks/3bf281e979408b9363ed.js +1 -0
  20. package/assets/esri/core/workers/chunks/4edc667148d023b5b5af.js +1 -0
  21. package/assets/esri/core/workers/chunks/51e4f771bfe352967c97.js +1 -0
  22. package/assets/esri/core/workers/chunks/55cd747e06bb59d1a328.js +1 -0
  23. package/assets/esri/core/workers/chunks/5638d95e600ff271c5b1.js +1 -0
  24. package/assets/esri/core/workers/chunks/563d172caa15ea1b510d.js +1108 -0
  25. package/assets/esri/core/workers/chunks/58f088b08e12c5435dbc.js +1 -0
  26. package/assets/esri/core/workers/chunks/5aef1e898618f8dda2c9.js +1 -0
  27. package/assets/esri/core/workers/chunks/608be8ebf772aefc36a5.js +1 -0
  28. package/assets/esri/core/workers/chunks/64df2521b2814d2fb918.js +1 -0
  29. package/assets/esri/core/workers/chunks/65070fb591f6ef8313c3.js +1 -0
  30. package/assets/esri/core/workers/chunks/656ec8a14df0e4b68433.js +1 -0
  31. package/assets/esri/core/workers/chunks/6601fe99d587b9dff3c7.js +1 -0
  32. package/assets/esri/core/workers/chunks/{274e623323e24250ca46.js → 6ac424af4f2825fabceb.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{eb2d6f1ee63b40ae0736.js → 774b655498289b1b36bb.js} +1 -1
  34. package/assets/esri/core/workers/chunks/781bb63af571568358e3.js +1 -0
  35. package/assets/esri/core/workers/chunks/9e54d2cbe42f5552aaca.js +1 -0
  36. package/assets/esri/core/workers/chunks/{f03d62ab7806b68d0b62.js → 9fbf61675e2a5374f754.js} +1 -1
  37. package/assets/esri/core/workers/chunks/a5253543eae1708d11b9.js +1 -0
  38. package/assets/esri/core/workers/chunks/aa9b46bcb75c96731de3.js +1 -0
  39. package/assets/esri/core/workers/chunks/cfb8b6b5e9c21d582cf4.js +1 -0
  40. package/assets/esri/core/workers/chunks/d1b2372084c1e8c60f79.js +1 -0
  41. package/assets/esri/core/workers/chunks/{1c6914ded7db720f7bf7.js → daf6eab5dd198ca9a67b.js} +1 -1
  42. package/assets/esri/core/workers/chunks/e03edeaf3af46495449e.js +1 -0
  43. package/assets/esri/core/workers/chunks/e685214698fbc84276dd.js +1 -0
  44. package/assets/esri/core/workers/chunks/ebb294c82207f3ff9f04.js +1 -0
  45. package/assets/esri/core/workers/chunks/ec20e23aec9370df8a55.js +1 -0
  46. package/assets/esri/core/workers/chunks/{e4da908079417cc2f495.js → ee0c77889059815a31b2.js} +1 -1
  47. package/assets/esri/core/workers/chunks/f68b7bb88c444a7cbbd2.js +1 -0
  48. package/assets/esri/core/workers/chunks/f90bbebd2dc07a77ce09.js +1 -0
  49. package/assets/esri/core/workers/chunks/fa388680ff976a6b30f6.js +1 -0
  50. package/chunks/vec32.js +1 -1
  51. package/interfaces.d.ts +135 -68
  52. package/layers/WFSLayer.js +1 -1
  53. package/layers/buildingSublayers/BuildingComponentSublayer.js +1 -1
  54. package/layers/graphics/applyEditsUtils.js +1 -1
  55. package/layers/graphics/editingSupport.js +1 -1
  56. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  57. package/layers/mixins/ArcGISImageService.js +1 -1
  58. package/layers/save/featureLayerUtils.js +1 -1
  59. package/layers/support/arcgisLayers.js +1 -1
  60. package/layers/support/fetchService.js +1 -1
  61. package/layers/support/fromPortalItem.js +1 -1
  62. package/networks/Network.js +1 -1
  63. package/package.json +1 -1
  64. package/portal/Portal.js +1 -1
  65. package/portal/PortalGroup.js +1 -1
  66. package/portal/PortalUser.js +1 -1
  67. package/portal/support/geometryServiceUtils.js +1 -1
  68. package/portal/support/layersLoader.js +1 -1
  69. package/portal/support/loadUtils.js +1 -1
  70. package/portal/support/portalLayers.js +1 -1
  71. package/renderers/visualVariables/SizeVariable.js +1 -1
  72. package/rest/knowledgeGraph/wasmInterface/wasmToUpdateResponseFactories.js +1 -1
  73. package/rest/networks/support/Association.js +1 -1
  74. package/rest/places.js +1 -1
  75. package/rest/query/operations/pbfJSONFeatureSet.js +1 -1
  76. package/rest/support/ImageSampleParameters.js +1 -1
  77. package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
  78. package/smartMapping/support/adapters/SceneLayerAdapter.js +1 -1
  79. package/support/elevationInfoUtils.js +1 -1
  80. package/support/revision.js +1 -1
  81. package/symbols/cim/cimAnalyzer.js +1 -1
  82. package/symbols/cim/defaultCIMValues.js +1 -1
  83. package/symbols/cim/utils.js +1 -1
  84. package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
  85. package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
  86. package/views/2d/engine/webgl/collisions/CollisionEngine.js +1 -1
  87. package/views/2d/engine/webgl/definitions.js +1 -1
  88. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  89. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerMeshWriter.js +1 -1
  90. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
  91. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  92. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  93. package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
  94. package/views/2d/layers/features/Processor.js +1 -1
  95. package/views/2d/layers/features/processor/BinningStrategy.js +1 -1
  96. package/views/2d/layers/features/processor/ClusterStrategy.js +1 -1
  97. package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
  98. package/views/2d/layers/features/schema/processor/VisualVariablesSchema.js +1 -1
  99. package/views/2d/layers/features/sources/strategies/SnapshotLoadStrategy.js +1 -1
  100. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  101. package/views/2d/layers/features/support/DisplayIdGenerator.js +1 -1
  102. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  103. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
  104. package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
  105. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  106. package/views/3d/layers/SceneLayerView3D.js +1 -1
  107. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  108. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  109. package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
  110. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  111. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  112. package/views/3d/support/orientedBoundingBox.js +1 -1
  113. package/views/3d/terrain/OverlayFramebufferObject.js +1 -1
  114. package/views/3d/terrain/OverlayRenderer.js +1 -1
  115. package/views/3d/webgl/RenderNode.js +1 -1
  116. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  117. package/views/3d/webgl-engine/core/FBOCache.js +1 -1
  118. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeNormalTexture.glsl.js +9 -7
  119. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceConstants.js +5 -0
  120. package/views/3d/webgl-engine/core/shaderLibrary/shading/Water.glsl.js +8 -8
  121. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  122. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  123. package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
  124. package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
  125. package/views/3d/webgl-engine/lib/GLTextureMaterial.js +1 -1
  126. package/views/3d/webgl-engine/lib/ObjectAndLayerIdRenderHelper.js +1 -1
  127. package/views/draw/DrawGraphicTool.js +1 -1
  128. package/views/draw/DrawOperation.js +1 -1
  129. package/views/draw/drawSurfaces.js +1 -1
  130. package/views/interactive/snapping/SnappingManager.js +1 -1
  131. package/views/interactive/snapping/SnappingOptions.js +1 -1
  132. package/views/interactive/snapping/featureSources/FeatureServiceSnappingSource.js +1 -1
  133. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js +1 -1
  134. package/views/layers/ImageryTileLayerView.js +1 -1
  135. package/webdoc/support/webdocLoadUtils.js +1 -1
  136. package/webdoc/support/webdocSaveUtils.js +1 -1
  137. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  138. package/widgets/Editor/EditorViewModel.js +1 -1
  139. package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
  140. package/widgets/Editor/UpdateWorkflow.js +1 -1
  141. package/widgets/Editor/components/FooterActions.js +1 -1
  142. package/widgets/Editor/support/EditorItem.js +1 -1
  143. package/widgets/Editor.js +1 -1
  144. package/widgets/FeatureForm.js +1 -1
  145. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  146. package/widgets/FeatureTable/Grid/Grid.js +1 -1
  147. package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
  148. package/widgets/FeatureTable.js +1 -1
  149. package/widgets/Features/FeaturesViewModel.js +1 -1
  150. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  151. package/widgets/Print/PrintViewModel.js +1 -1
  152. package/widgets/Print.js +1 -1
  153. package/widgets/Search/support/locatorUtils.js +1 -1
  154. package/widgets/Sketch/SketchViewModel.js +1 -1
  155. package/assets/esri/core/workers/chunks/00b9e92f8df245a83921.js +0 -1
  156. package/assets/esri/core/workers/chunks/02a6c43ec17e7223fac5.js +0 -1
  157. package/assets/esri/core/workers/chunks/02ee044597c89c86b934.js +0 -1
  158. package/assets/esri/core/workers/chunks/05ebb9cec0e1826b283f.js +0 -1
  159. package/assets/esri/core/workers/chunks/143ccb14c9e915dd1412.js +0 -1
  160. package/assets/esri/core/workers/chunks/24649b410b757599a549.js +0 -1
  161. package/assets/esri/core/workers/chunks/24d19abc680b341d13bb.js +0 -1
  162. package/assets/esri/core/workers/chunks/2519b207894132d5ea91.js +0 -1
  163. package/assets/esri/core/workers/chunks/30f9b2a3417cbcfeecca.js +0 -1
  164. package/assets/esri/core/workers/chunks/42ab9c282bb267c3db03.js +0 -1
  165. package/assets/esri/core/workers/chunks/478815fc19b452d8317d.js +0 -1
  166. package/assets/esri/core/workers/chunks/49afeac45250b15b5f36.js +0 -1
  167. package/assets/esri/core/workers/chunks/50bb67f2eeace5d50673.js +0 -1
  168. package/assets/esri/core/workers/chunks/50cdc59426ba859027e2.js +0 -1
  169. package/assets/esri/core/workers/chunks/5401ec9c9fd62dcac6ec.js +0 -1
  170. package/assets/esri/core/workers/chunks/554d86df71821d671d2c.js +0 -1
  171. package/assets/esri/core/workers/chunks/58c5861d060c808813a1.js +0 -1
  172. package/assets/esri/core/workers/chunks/5dbb3ef6fdd25ac632ad.js +0 -1
  173. package/assets/esri/core/workers/chunks/61c4bb58ef9f2d99c75e.js +0 -1
  174. package/assets/esri/core/workers/chunks/6e50220f8e2d392e2855.js +0 -1
  175. package/assets/esri/core/workers/chunks/6fd8047741a0df006ddd.js +0 -1
  176. package/assets/esri/core/workers/chunks/7709248f59520aee6f51.js +0 -1
  177. package/assets/esri/core/workers/chunks/8852a64918caf80fc414.js +0 -1
  178. package/assets/esri/core/workers/chunks/8d119dc0a92ad3612daa.js +0 -1
  179. package/assets/esri/core/workers/chunks/94dfb80ab23dda92918b.js +0 -1
  180. package/assets/esri/core/workers/chunks/9ebbc75ba5c623a322aa.js +0 -1
  181. package/assets/esri/core/workers/chunks/a5babc10f47c24651d15.js +0 -1
  182. package/assets/esri/core/workers/chunks/a74c59cf5d1c4e63a4e1.js +0 -1
  183. package/assets/esri/core/workers/chunks/ada5d6fd70bd3e403442.js +0 -1
  184. package/assets/esri/core/workers/chunks/b95d69d84d60ac9828b9.js +0 -1
  185. package/assets/esri/core/workers/chunks/be562536212360943388.js +0 -1
  186. package/assets/esri/core/workers/chunks/ce823fc2d0e0095f398c.js +0 -1
  187. package/assets/esri/core/workers/chunks/d06d36815c2121484a13.js +0 -1
  188. package/assets/esri/core/workers/chunks/d5f06a7b0ea7951c8dd0.js +0 -1
  189. package/assets/esri/core/workers/chunks/ddc71fe66c7a49082920.js +0 -1
  190. package/assets/esri/core/workers/chunks/de6d54df7ae32694fd70.js +0 -1
  191. package/assets/esri/core/workers/chunks/f13c4b9692dad5802a32.js +0 -1106
  192. package/assets/esri/core/workers/chunks/f1e8f7d1a98b9e207b1b.js +0 -1
  193. package/assets/esri/core/workers/chunks/f9e9675f1c2287231653.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3632,6147],{25228:(e,t,l)=>{l.d(t,{c:()=>f});var r,i=l(41948),s=l(40504),o=l(94360),n=l(1580),a=(l(9456),l(66360),l(72052),l(33600)),u=l(12552),p=l(18996),c=l(28484);let d=r=class extends s.am{static get allTime(){return h}static get empty(){return y}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,l=this.end?.getTime()??this.end,r=e.start?.getTime()??e.start,i=e.end?.getTime()??e.end;return t===r&&l===i}expandTo(e,t=c.OX){if(this.isEmpty||this.isAllTime)return this.clone();let l=this.start;l&&(l=(0,o.aU)(l,e,t));let i=this.end;if(i){const l=(0,o.aU)(i,e,t);i=i.getTime()===l.getTime()?l:(0,o.g1)(l,1,e,t)}return new r({start:l,end:i})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return r.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,l=this.end?.getTime()??1/0,i=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let o,n;return i>=t&&i<=l?o=i:t>=i&&t<=s&&(o=t),l>=i&&l<=s?n=l:s>=t&&s<=l&&(n=s),null==o||null==n||isNaN(o)||isNaN(n)?r.empty:new r({start:o===-1/0?null:new Date(o),end:n===1/0?null:new Date(n)})}offset(e,t,l=c.OX){if(this.isEmpty||this.isAllTime)return this.clone();const i=new r,{start:s,end:n}=this;return null!=s&&(i.start=(0,o.g1)(s,e,t,l)),null!=n&&(i.end=(0,o.g1)(n,e,t,l)),i}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return h.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,l=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new r({start:t,end:l})}};(0,i._)([(0,n.qq)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,i._)([(0,a.E)("end")],d.prototype,"readEnd",null),(0,i._)([(0,p.G)("end")],d.prototype,"writeEnd",null),(0,i._)([(0,n.qq)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,i._)([(0,n.qq)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,i._)([(0,n.qq)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,i._)([(0,a.E)("start")],d.prototype,"readStart",null),(0,i._)([(0,p.G)("start")],d.prototype,"writeStart",null),d=r=(0,i._)([(0,u.c)("esri.TimeExtent")],d);const h=new d,y=new d({start:void 0,end:void 0}),f=d},8528:(e,t,l)=>{l.d(t,{c:()=>r,g:()=>i});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},32896:(e,t,l)=>{l.r(t),l.d(t,{default:()=>S});var r,i=l(41948),s=(l(60708),l(2600)),o=l(20744),n=l(26496),a=l(88264),u=l(28176),p=l(1580),c=(l(9456),l(66360),l(72052),l(33600)),d=l(12552),h=l(18996),y=l(81436),f=l(25216),m=l(66576),g=l(98768),w=l(26916),v=l(3116),q=l(80428),_=l(22108),T=l(87576),b=l(20960),E=l(95247),I=l(56156),P=l(67776);let x=r=class extends((0,f.W)((0,w.G)((0,v.I)((0,m.Y)((0,g.K)((0,n.U)(y.c))))))){constructor(...e){super(...e),this.copyright="",this.fullExtent=new E.c(-20037508.342787,-20037508.34278,20037508.34278,20037508.342787,I.c.WebMercator),this.legendEnabled=!1,this.isReference=null,this.popupEnabled=!1,this.spatialReference=I.c.WebMercator,this.subDomains=null,this.tileInfo=new T.c({size:[256,256],dpi:96,format:"png8",compressionQuality:0,origin:new P.c({x:-20037508.342787,y:20037508.342787,spatialReference:I.c.WebMercator}),spatialReference:I.c.WebMercator,lods:[new _.c({level:0,scale:591657527.591555,resolution:156543.033928}),new _.c({level:1,scale:295828763.795777,resolution:78271.5169639999}),new _.c({level:2,scale:147914381.897889,resolution:39135.7584820001}),new _.c({level:3,scale:73957190.948944,resolution:19567.8792409999}),new _.c({level:4,scale:36978595.474472,resolution:9783.93962049996}),new _.c({level:5,scale:18489297.737236,resolution:4891.96981024998}),new _.c({level:6,scale:9244648.868618,resolution:2445.98490512499}),new _.c({level:7,scale:4622324.434309,resolution:1222.99245256249}),new _.c({level:8,scale:2311162.217155,resolution:611.49622628138}),new _.c({level:9,scale:1155581.108577,resolution:305.748113140558}),new _.c({level:10,scale:577790.554289,resolution:152.874056570411}),new _.c({level:11,scale:288895.277144,resolution:76.4370282850732}),new _.c({level:12,scale:144447.638572,resolution:38.2185141425366}),new _.c({level:13,scale:72223.819286,resolution:19.1092570712683}),new _.c({level:14,scale:36111.909643,resolution:9.55462853563415}),new _.c({level:15,scale:18055.954822,resolution:4.77731426794937}),new _.c({level:16,scale:9027.977411,resolution:2.38865713397468}),new _.c({level:17,scale:4513.988705,resolution:1.19432856685505}),new _.c({level:18,scale:2256.994353,resolution:.597164283559817}),new _.c({level:19,scale:1128.497176,resolution:.298582141647617}),new _.c({level:20,scale:564.248588,resolution:.14929107082380833}),new _.c({level:21,scale:282.124294,resolution:.07464553541190416}),new _.c({level:22,scale:141.062147,resolution:.03732276770595208}),new _.c({level:23,scale:70.5310735,resolution:.01866138385297604})]}),this.type="web-tile",this.urlTemplate=null,this.wmtsInfo=null}normalizeCtorArgs(e,t){return"string"==typeof e?{urlTemplate:e,...t}:e}load(e){const t=this.loadFromPortal({supportedTypes:["WMTS"]},e).then((()=>{let e="";if(this.urlTemplate)if(this.spatialReference.equals(this.tileInfo.spatialReference)){const t=new u.iS(this.urlTemplate);!(this.subDomains&&this.subDomains.length>0)&&t.authority?.includes("{subDomain}")&&(e="is missing 'subDomains' property")}else e="spatialReference must match tileInfo.spatialReference";else e="is missing the required 'urlTemplate' property value";if(e)throw new o.c("web-tile-layer:load",`WebTileLayer (title: '${this.title}', id: '${this.id}') ${e}`)}));return this.addResolvingPromise(t),Promise.resolve(this)}get levelValues(){const e=[];if(!this.tileInfo)return null;for(const t of this.tileInfo.lods)e[t.level]=t.levelValue||t.level;return e}readSpatialReference(e,t){return e||I.c.fromJSON(t.fullExtent?.spatialReference)}get tileServers(){if(!this.urlTemplate)return null;const e=[],{urlTemplate:t,subDomains:l}=this,r=new u.iS(t),i=r.scheme?r.scheme+"://":"//",s=i+r.authority+"/",o=r.authority;if(o?.includes("{subDomain}")){if(l&&l.length>0&&o.split(".").length>1)for(const t of l)e.push(i+o.replaceAll(/\{subDomain\}/gi,t)+"/")}else e.push(s);return e.map(u.KW)}get urlPath(){if(!this.urlTemplate)return null;const e=this.urlTemplate,t=new u.iS(e),l=(t.scheme?t.scheme+"://":"//")+t.authority+"/";return e.substring(l.length)}readUrlTemplate(e,t){return e||t.templateUrl}writeUrlTemplate(e,t){(0,u.eC)(e)&&(e="https:"+e),e&&(e=e.replaceAll(/\{z\}/gi,"{level}").replaceAll(/\{x\}/gi,"{col}").replaceAll(/\{y\}/gi,"{row}"),e=(0,u.k7)(e)),t.templateUrl=e}fetchTile(e,t,l,r={}){const{signal:i}=r,o=this.getTileUrl(e,t,l),n={responseType:"image",signal:i,query:{...this.refreshParameters}};return(0,s.c)(o,n).then((e=>e.data))}async fetchImageBitmapTile(e,t,l,i={}){const{signal:o}=i;if(this.fetchTile!==r.prototype.fetchTile){const r=await this.fetchTile(e,t,l,i);return(0,q.G)(r,e,t,l,o)}const n=this.getTileUrl(e,t,l),a={responseType:"blob",signal:o,query:{...this.refreshParameters}},{data:u}=await(0,s.c)(n,a);return(0,q.G)(u,e,t,l,o)}getTileUrl(e,t,l){const{levelValues:r,tileServers:i,urlPath:s}=this;if(!r||!i||!s)return"";const o=r[e];return i[t%i.length]+(0,a.qq)(s,{level:o,z:o,col:l,x:l,row:t,y:t})}};(0,i._)([(0,p.qq)({type:String,value:"",json:{write:!0}})],x.prototype,"copyright",void 0),(0,i._)([(0,p.qq)({type:E.c,json:{write:!0},nonNullable:!0})],x.prototype,"fullExtent",void 0),(0,i._)([(0,p.qq)({readOnly:!0,json:{read:!1,write:!1}})],x.prototype,"legendEnabled",void 0),(0,i._)([(0,p.qq)({type:["show","hide"]})],x.prototype,"listMode",void 0),(0,i._)([(0,p.qq)({json:{read:!0,write:!0}})],x.prototype,"blendMode",void 0),(0,i._)([(0,p.qq)()],x.prototype,"levelValues",null),(0,i._)([(0,p.qq)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],x.prototype,"isReference",void 0),(0,i._)([(0,p.qq)({type:["WebTiledLayer"],value:"WebTiledLayer"})],x.prototype,"operationalLayerType",void 0),(0,i._)([(0,p.qq)({readOnly:!0,json:{read:!1,write:!1}})],x.prototype,"popupEnabled",void 0),(0,i._)([(0,p.qq)({type:I.c})],x.prototype,"spatialReference",void 0),(0,i._)([(0,c.E)("spatialReference",["spatialReference","fullExtent.spatialReference"])],x.prototype,"readSpatialReference",null),(0,i._)([(0,p.qq)({type:[String],json:{write:!0}})],x.prototype,"subDomains",void 0),(0,i._)([(0,p.qq)({type:T.c,json:{write:!0}})],x.prototype,"tileInfo",void 0),(0,i._)([(0,p.qq)({readOnly:!0})],x.prototype,"tileServers",null),(0,i._)([(0,p.qq)({json:{read:!1}})],x.prototype,"type",void 0),(0,i._)([(0,p.qq)()],x.prototype,"urlPath",null),(0,i._)([(0,p.qq)({type:String,json:{origins:{"portal-item":{read:{source:"url"}}}}})],x.prototype,"urlTemplate",void 0),(0,i._)([(0,c.E)("urlTemplate",["urlTemplate","templateUrl"])],x.prototype,"readUrlTemplate",null),(0,i._)([(0,h.G)("urlTemplate",{templateUrl:{type:String}})],x.prototype,"writeUrlTemplate",null),(0,i._)([(0,p.qq)({type:b.K,json:{write:!0}})],x.prototype,"wmtsInfo",void 0),x=r=(0,i._)([(0,d.c)("esri.layers.WebTileLayer")],x);const S=x},98768:(e,t,l)=>{l.d(t,{K:()=>T});var r=l(41948),i=l(6220),s=l(47620),o=l(2600),n=l(40196),a=l(20744),u=l(66360),p=l(70680),c=l(10860),d=l(28176),h=l(1580),y=(l(9456),l(72052),l(33600)),f=l(12552),m=l(18996),g=l(71068),w=l(54872),v=l(9764),q=l(53039),_=l(46940);const T=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,p.mG)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,l){if(t.itemId)return new v.default({id:t.itemId,portal:l?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:r}=await Promise.all([l.e(8828),l.e(4132)]).then(l.bind(l,94132));return(0,c.wp)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,c.mA)(e)||u.c.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,c.CE)(e),!0))))}async setUserPrivileges(e,t){if(!i.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:l,fullEdit:r},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",l),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,c.CE)(e)}}async _fetchUserPrivileges(e,t){let l=this.portalItem;if(!e||!l||!l.loaded||l.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=e===l.id;if(r&&l.portal.user)return(0,_.CI)(l);let i,o;if(r)i=l.portal.url;else try{i=await(0,g.mK)(this.url,t)}catch(e){(0,c.CE)(e)}if(!i||!(0,d.Cs)(i,l.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(s.id?.getCredential(`${i}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.CE)(e)}if(!o)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(r?await l.reload():(l=new v.default({id:e,portal:{url:i}}),await l.load(t)),l.portal.user)return(0,_.CI)(l)}catch(e){(0,c.CE)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.CE)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const l=b.credential===t?b.user:await this._fetchEditingUser(e);return b.credential=t,b.user=l,null==l?.privileges||l.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const l=s.id.findServerInfo(this.url??"");if(!l?.owningSystemUrl)return null;const r=`${l.owningSystemUrl}/sharing/rest`,i=w.c.getDefault();if(i&&i.loaded&&(0,d.k7)(i.restUrl)===(0,d.k7)(r))return i.user;const a=`${r}/community/self`,u=null!=e?e.signal:null,p=await(0,n.aG)((0,o.c)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?q.c.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const l=t?.portal,r=this.portalItem?.id&&(this.portalItem.portal||w.c.getDefault());return l&&r&&!(0,d.kF)(r.restUrl,l.restUrl)?(t.messages&&t.messages.push(new a.c("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,r._)([(0,h.qq)({type:v.default})],t.prototype,"portalItem",null),(0,r._)([(0,y.E)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,r._)([(0,m.G)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,r._)([(0,h.qq)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,r._)([(0,h.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,r._)([(0,h.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,r._)([(0,h.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,r._)([(0,f.c)("esri.layers.mixins.PortalLayer")],t),t},b={credential:null,user:null}},22108:(e,t,l)=>{l.d(t,{c:()=>p});var r,i=l(41948),s=l(40504),o=l(1580),n=l(53368),a=(l(72052),l(9456),l(12552));let u=r=class extends s.am{constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new r({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,i._)([(0,o.qq)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],u.prototype,"cols",void 0),(0,i._)([(0,o.qq)({type:n.Ab,json:{write:!0}})],u.prototype,"level",void 0),(0,i._)([(0,o.qq)({type:String,json:{write:!0}})],u.prototype,"levelValue",void 0),(0,i._)([(0,o.qq)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],u.prototype,"origin",void 0),(0,i._)([(0,o.qq)({type:Number,json:{write:!0}})],u.prototype,"resolution",void 0),(0,i._)([(0,o.qq)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],u.prototype,"rows",void 0),(0,i._)([(0,o.qq)({type:Number,json:{write:!0}})],u.prototype,"scale",void 0),u=r=(0,i._)([(0,a.c)("esri.layers.support.LOD")],u);const p=u},87576:(e,t,l)=>{l.d(t,{c:()=>E});var r,i=l(41948),s=l(14628),o=l(40504),n=l(24296),a=l(1580),u=l(53368),p=(l(72052),l(9456),l(33600)),c=l(12552),d=l(18996),h=l(67776),y=l(56156),f=l(83372),m=l(60544),g=l(29120),w=l(22108),v=l(11712);const q=new s.O({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let _=r=class extends o.am{static create(e={}){const{resolutionFactor:t=1,scales:l,size:i=256,spatialReference:s=y.c.WebMercator,numLODs:o=24}=e;if(!(0,m.U3)(s)){const e=[];if(l)for(let t=0;t<l.length;t++){const r=l[t];e.push(new w.c({level:t,scale:r,resolution:r}))}else{let t=5e-4;for(let l=o-1;l>=0;l--)e.unshift(new w.c({level:l,scale:t,resolution:t})),t*=2}return new r({dpi:96,lods:e,origin:new h.c(0,0,s),size:[i,i],spatialReference:s})}const a=(0,m.Nq)(s),u=e.origin?new h.c({x:e.origin.x,y:e.origin.y,spatialReference:s}):new h.c(a?{x:a.origin[0],y:a.origin[1],spatialReference:s}:{x:0,y:0,spatialReference:s}),p=1/(39.37*(0,n.k8)(s)*96),c=[];if(l)for(let e=0;e<l.length;e++){const t=l[e],r=t*p;c.push(new w.c({level:e,scale:t,resolution:r}))}else{let e=(0,m.Eb)(s)?512/i*591657527.5917094:256/i*591657527.591555;const l=Math.ceil(o/t);c.push(new w.c({level:0,scale:e,resolution:e*p}));for(let r=1;r<l;r++){const l=e/2**t,i=l*p;c.push(new w.c({level:r,scale:l,resolution:i})),e=l}}return new r({dpi:96,lods:c,origin:u,size:[i,i],spatialReference:s})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const l=(0,m.Nq)(e);return e.isWrappable&&!!l&&Math.abs(l.origin[0]-t.x)<=l.dx}return!1}readOrigin(e,t){return h.c.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,l=0;const r=[],i=this._levelToLOD={};e&&(t=-1/0,l=1/0,e.forEach((e=>{r.push(e.scale),t=e.scale>t?e.scale:t,l=e.scale<l?e.scale:l,i[e.level]=e}))),this._set("scales",r),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const l=Math.floor(e),r=l+1;return t[l]/(t[l]/t[r])**(e-l)}scaleToZoom(e){const t=this.scales,l=t.length-1;let r=0;for(;r<l;r++){const l=t[r],i=t[r+1];if(l<=e)return r;if(i===e)return r+1;if(l>e&&i<e)return r+Math.log(l/e)/Math.log(l/i)}return r}snapScale(e,t=.95){const l=this.scaleToZoom(e);return l%Math.floor(l)>=t?this.zoomToScale(Math.ceil(l)):this.zoomToScale(Math.floor(l))}tileAt(e,t,l,r){const i=this.lodAt(e);if(!i)return null;let s,o;if("number"==typeof t)s=t,o=l;else if((0,m.yK)(t.spatialReference,this.spatialReference))s=t.x,o=t.y,r=l;else{const e=(0,g.yU)(t,this.spatialReference);if(null==e)return null;s=e.x,o=e.y,r=l}const n=i.resolution*this.size[0],a=i.resolution*this.size[1];return r||(r=new v.g(null,0,0,0,(0,f.Su)())),r.level=e,r.row=Math.floor((this.origin.y-o)/a+.001),r.col=Math.floor((s-this.origin.x)/n+.001),this.updateTileInfo(r),r}updateTileInfo(e,t=r.ExtrapolateOptions.NONE){let l=this.lodAt(e.level);if(!l&&t===r.ExtrapolateOptions.POWER_OF_TWO){const t=this.lods[this.lods.length-1];t.level<e.level&&(l=t)}if(!l)return;const i=e.level-l.level,s=l.resolution*this.size[0]/2**i,o=l.resolution*this.size[1]/2**i;e.id=`${e.level}/${e.row}/${e.col}`,e.extent||(e.extent=(0,f.Su)()),e.extent[0]=this.origin.x+e.col*s,e.extent[1]=this.origin.y-(e.row+1)*o,e.extent[2]=e.extent[0]+s,e.extent[3]=e.extent[1]+o}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const l=this.lodAt(t.level);if(null==l)return null;const{resolution:r}=l,i=r*this.size[0],s=r*this.size[1];return e[0]=this.origin.x+t.col*i,e[1]=this.origin.y-(t.row+1)*s,e[2]=e[0]+i,e[3]=e[1]+s,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return r.fromJSON(this.write({}))}getOrCreateCompatible(e,t){if(256===this.size[0]&&256===this.size[1])return 256===e?this:null;const l=[],i=this.lods.length;for(let e=0;e<i;e++){const r=this.lods[e],i=r.resolution*t;l.push(new w.c({level:r.level,scale:r.scale,resolution:i}))}return new r({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:l})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let l=0;l<e.length;l++){const r=e[l];this._upsampleLevels[r.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/r.resolution:0},t=r}}};var T,b;(0,i._)([(0,a.qq)({type:Number,json:{write:!0}})],_.prototype,"compressionQuality",void 0),(0,i._)([(0,a.qq)({type:Number,json:{write:!0}})],_.prototype,"dpi",void 0),(0,i._)([(0,a.qq)({type:String,json:{read:q.read,write:q.write,origins:{"web-scene":{read:!1,write:!1}}}})],_.prototype,"format",void 0),(0,i._)([(0,a.qq)({readOnly:!0})],_.prototype,"isWrappable",null),(0,i._)([(0,a.qq)({type:h.c,json:{write:!0}})],_.prototype,"origin",void 0),(0,i._)([(0,p.E)("origin")],_.prototype,"readOrigin",null),(0,i._)([(0,a.qq)({type:[w.c],value:null,json:{write:!0}})],_.prototype,"lods",null),(0,i._)([(0,a.qq)({readOnly:!0})],_.prototype,"scales",void 0),(0,i._)([(0,a.qq)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],_.prototype,"size",void 0),(0,i._)([(0,p.E)("size",["rows","cols"])],_.prototype,"readSize",null),(0,i._)([(0,d.G)("size",{cols:{type:u.Ab},rows:{type:u.Ab}})],_.prototype,"writeSize",null),(0,i._)([(0,a.qq)({type:y.c,json:{write:!0}})],_.prototype,"spatialReference",void 0),_=r=(0,i._)([(0,c.c)("esri.layers.support.TileInfo")],_),(b=(T=_||(_={})).ExtrapolateOptions||(T.ExtrapolateOptions={}))[b.NONE=0]="NONE",b[b.POWER_OF_TWO=1]="POWER_OF_TWO";const E=_},11712:(e,t,l)=>{l.d(t,{g:()=>r});class r{constructor(e,t,l,r,i=void 0){this.id=e,this.level=t,this.row=l,this.col=r,this.extent=i}}},20960:(e,t,l)=>{l.d(t,{K:()=>u});var r,i=l(41948),s=l(40504),o=l(62088),n=l(1580),a=(l(9456),l(66360),l(12552));let u=r=class extends s.am{constructor(e){super(e)}clone(){return new r({customLayerParameters:(0,o.ct)(this.customLayerParameters),customParameters:(0,o.ct)(this.customParameters),layerIdentifier:this.layerIdentifier,tileMatrixSet:this.tileMatrixSet,url:this.url})}};(0,i._)([(0,n.qq)({json:{type:Object,write:!0}})],u.prototype,"customLayerParameters",void 0),(0,i._)([(0,n.qq)({json:{type:Object,write:!0}})],u.prototype,"customParameters",void 0),(0,i._)([(0,n.qq)({type:String,json:{write:!0}})],u.prototype,"layerIdentifier",void 0),(0,i._)([(0,n.qq)({type:String,json:{write:!0}})],u.prototype,"tileMatrixSet",void 0),(0,i._)([(0,n.qq)({type:String,json:{write:!0}})],u.prototype,"url",void 0),u=r=(0,i._)([(0,a.c)("esri.layer.support.WMTSLayerInfo")],u)},80428:(e,t,l)=>{l.d(t,{E:()=>s,G:()=>o});var r=l(20744),i=l(10860);async function s(e,t,l){let s;try{s=await createImageBitmap(e)}catch(e){throw new r.c("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,i.wp)(l),s}async function o(e,t,l,s,o){let n;try{n=await createImageBitmap(e)}catch(e){throw new r.c("request:server",`Unable to load tile ${t}/${l}/${s}`,{error:e,level:t,row:l,col:s})}return(0,i.wp)(o),n}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3180],{68612:(t,n,e)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,n,e,r,o,a,u,s,c){return[t,n,e,r,o,a,u,s,c]}e.d(n,{IJ:()=>a,Su:()=>r,WK:()=>o});const a=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,createView:function(t,n){return new Float64Array(t,n,9)},fromValues:o},Symbol.toStringTag,{value:"Module"}))},87104:(t,n,e)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}e.d(n,{IJ:()=>a,Su:()=>r,ct:()=>o});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:r,createView:function(t,n){return new Float64Array(t,n,16)},fromValues:function(t,n,e,r,o,a,u,s,c,i,l,f,M,h,E,I){return[t,n,e,r,o,a,u,s,c,i,l,f,M,h,E,I]}},Symbol.toStringTag,{value:"Module"}))},2620:(t,n,e)=>{function r(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}e.d(n,{IJ:()=>a,Su:()=>r,ct:()=>o});const a=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:r,createView:function(t,n){return new Float64Array(t,n,4)},fromValues:function(t,n,e,r){return[t,n,e,r]}},Symbol.toStringTag,{value:"Module"}))},85256:(t,n,e)=>{function r(){return[0,0]}function o(t,n){return[t,n]}function a(){return o(1,1)}function u(){return o(1,0)}function s(){return o(0,1)}e.d(n,{Qw:()=>c,Su:()=>r,WK:()=>o});const c=a(),i=u(),l=s();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:i,UNIT_Y:l,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:r,createView:function(t,n){return new Float64Array(t,n,2)},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:o,ones:a,unitX:u,unitY:s,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},77556:(t,n,e)=>{e.d(n,{KU:()=>f,QT:()=>E,S_:()=>s,WO:()=>a,_7:()=>c,aU:()=>l,iW:()=>i,kr:()=>o,oL:()=>u,yy:()=>M});var r=e(47364);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function a(t,n,e,r,o,a,u,s,c,i){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=a,t[5]=u,t[6]=s,t[7]=c,t[8]=i,t}function u(t,n){if(t===n){const e=n[1],r=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=e,t[5]=n[7],t[6]=r,t[7]=o}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function s(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=n[4],s=n[5],c=n[6],i=n[7],l=n[8],f=l*u-s*i,M=-l*a+s*c,h=i*a-u*c;let E=e*f+r*M+o*h;return E?(E=1/E,t[0]=f*E,t[1]=(-l*r+o*i)*E,t[2]=(s*r-o*u)*E,t[3]=M*E,t[4]=(l*e-o*c)*E,t[5]=(-s*e+o*a)*E,t[6]=h*E,t[7]=(-i*e+r*c)*E,t[8]=(u*e-r*a)*E,t):null}function c(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=n[4],s=n[5],c=n[6],i=n[7],l=n[8];return t[0]=u*l-s*i,t[1]=o*i-r*l,t[2]=r*s-o*u,t[3]=s*c-a*l,t[4]=e*l-o*c,t[5]=o*a-e*s,t[6]=a*i-u*c,t[7]=r*c-e*i,t[8]=e*u-r*a,t}function i(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],s=n[4],c=n[5],i=n[6],l=n[7],f=n[8],M=e[0],h=e[1],E=e[2],I=e[3],S=e[4],O=e[5],T=e[6],A=e[7],N=e[8];return t[0]=M*r+h*u+E*i,t[1]=M*o+h*s+E*l,t[2]=M*a+h*c+E*f,t[3]=I*r+S*u+O*i,t[4]=I*o+S*s+O*l,t[5]=I*a+S*c+O*f,t[6]=T*r+A*u+N*i,t[7]=T*o+A*s+N*l,t[8]=T*a+A*c+N*f,t}function l(t,n,e){const r=e[0],o=e[1],a=e[2];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=a*n[6],t[7]=a*n[7],t[8]=a*n[8],t}function f(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=e+e,s=r+r,c=o+o,i=e*u,l=r*u,f=r*s,M=o*u,h=o*s,E=o*c,I=a*u,S=a*s,O=a*c;return t[0]=1-f-E,t[3]=l-O,t[6]=M+S,t[1]=l+O,t[4]=1-i-E,t[7]=h-I,t[2]=M-S,t[5]=h+I,t[8]=1-i-f,t}function M(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=n[4],s=n[5],c=n[6],i=n[7],l=n[8],f=n[9],M=n[10],h=n[11],E=n[12],I=n[13],S=n[14],O=n[15],T=e*s-r*u,A=e*c-o*u,N=e*i-a*u,m=r*c-o*s,R=r*i-a*s,b=o*i-a*c,d=l*I-f*E,_=l*S-M*E,C=l*O-h*E,L=f*S-M*I,P=f*O-h*I,p=M*O-h*S;let F=T*p-A*P+N*L+m*C-R*_+b*d;return F?(F=1/F,t[0]=(s*p-c*P+i*L)*F,t[1]=(c*C-u*p-i*_)*F,t[2]=(u*P-s*C+i*d)*F,t[3]=(o*P-r*p-a*L)*F,t[4]=(e*p-o*C+a*_)*F,t[5]=(r*C-e*P-a*d)*F,t[6]=(I*b-S*R+O*m)*F,t[7]=(S*N-E*b-O*A)*F,t[8]=(E*R-I*N+O*T)*F,t):null}function h(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t}function E(t){const n=(0,r.Au)(),e=t[0],o=t[1],a=t[2],u=t[3],s=t[4],c=t[5],i=t[6],l=t[7],f=t[8];return Math.abs(1-(e*e+u*u+i*i))<=n&&Math.abs(1-(o*o+s*s+l*l))<=n&&Math.abs(1-(a*a+c*c+f*f))<=n}const I=i,S=h;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t},adjoint:c,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:function(t){const n=t[0],e=t[1],r=t[2],o=t[3],a=t[4],u=t[5],s=t[6],c=t[7],i=t[8];return n*(i*a-u*c)+e*(-i*o+u*s)+r*(c*o-a*s)},equals:function(t,n){const e=t[0],o=t[1],a=t[2],u=t[3],s=t[4],c=t[5],i=t[6],l=t[7],f=t[8],M=n[0],h=n[1],E=n[2],I=n[3],S=n[4],O=n[5],T=n[6],A=n[7],N=n[8],m=(0,r.Au)();return Math.abs(e-M)<=m*Math.max(1,Math.abs(e),Math.abs(M))&&Math.abs(o-h)<=m*Math.max(1,Math.abs(o),Math.abs(h))&&Math.abs(a-E)<=m*Math.max(1,Math.abs(a),Math.abs(E))&&Math.abs(u-I)<=m*Math.max(1,Math.abs(u),Math.abs(I))&&Math.abs(s-S)<=m*Math.max(1,Math.abs(s),Math.abs(S))&&Math.abs(c-O)<=m*Math.max(1,Math.abs(c),Math.abs(O))&&Math.abs(i-T)<=m*Math.max(1,Math.abs(i),Math.abs(T))&&Math.abs(l-A)<=m*Math.max(1,Math.abs(l),Math.abs(A))&&Math.abs(f-N)<=m*Math.max(1,Math.abs(f),Math.abs(N))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:o,fromQuat:f,fromRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=-e,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:s,isOrthoNormal:E,mul:I,multiply:i,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t},normalFromMat4:M,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],o=n[2],a=n[4],u=n[5],s=n[6],c=n[8],i=n[9],l=n[10],f=l*u-s*i,M=-l*a+s*c,h=i*a-u*c,E=e*f+r*M+o*h;if(!E)return null;const I=1/E;return t[0]=f*I,t[1]=(-l*r+o*i)*I,t[2]=(s*r-o*u)*I,t[3]=M*I,t[4]=(l*e-o*c)*I,t[5]=(-s*e+o*a)*I,t[6]=h*I,t[7]=(-i*e+r*c)*I,t[8]=(u*e-r*a)*I,t},projection:function(t,n,e){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/e,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],s=n[4],c=n[5],i=n[6],l=n[7],f=n[8],M=Math.sin(e),h=Math.cos(e);return t[0]=h*r+M*u,t[1]=h*o+M*s,t[2]=h*a+M*c,t[3]=h*u-M*r,t[4]=h*s-M*o,t[5]=h*c-M*a,t[6]=i,t[7]=l,t[8]=f,t},scale:l,scaleByVec2:function(t,n,e){const r=e[0],o=e[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:a,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:S,subtract:h,translate:function(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],s=n[4],c=n[5],i=n[6],l=n[7],f=n[8],M=e[0],h=e[1];return t[0]=r,t[1]=o,t[2]=a,t[3]=u,t[4]=s,t[5]=c,t[6]=M*r+h*u+i,t[7]=M*o+h*s+l,t[8]=M*a+h*c+f,t},transpose:u},Symbol.toStringTag,{value:"Module"}))},41512:(t,n,e)=>{e.d(n,{C0:()=>l,WO:()=>O,Wu:()=>I,fO:()=>h,iW:()=>f,sF:()=>P,yG:()=>i});var r=e(68612),o=e(2620),a=e(62484),u=e(47364),s=e(98472),c=e(74784);function i(t,n,e){e*=.5;const r=Math.sin(e);return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=Math.cos(e),t}function l(t,n){const e=2*Math.acos(n[3]),r=Math.sin(e/2);return r>(0,u.Au)()?(t[0]=n[0]/r,t[1]=n[1]/r,t[2]=n[2]/r):(t[0]=1,t[1]=0,t[2]=0),e}function f(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],s=e[0],c=e[1],i=e[2],l=e[3];return t[0]=r*l+u*s+o*i-a*c,t[1]=o*l+u*c+a*s-r*i,t[2]=a*l+u*i+r*c-o*s,t[3]=u*l-r*s-o*c-a*i,t}function M(t,n,e,r){const o=n[0],a=n[1],s=n[2],c=n[3];let i,l,f,M,h,E=e[0],I=e[1],S=e[2],O=e[3];return l=o*E+a*I+s*S+c*O,l<0&&(l=-l,E=-E,I=-I,S=-S,O=-O),1-l>(0,u.Au)()?(i=Math.acos(l),f=Math.sin(i),M=Math.sin((1-r)*i)/f,h=Math.sin(r*i)/f):(M=1-r,h=r),t[0]=M*o+h*E,t[1]=M*a+h*I,t[2]=M*s+h*S,t[3]=M*c+h*O,t}function h(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function E(t,n){const e=n[0]+n[4]+n[8];let r;if(e>0)r=Math.sqrt(e+1),t[3]=.5*r,r=.5/r,t[0]=(n[5]-n[7])*r,t[1]=(n[6]-n[2])*r,t[2]=(n[1]-n[3])*r;else{let e=0;n[4]>n[0]&&(e=1),n[8]>n[3*e+e]&&(e=2);const o=(e+1)%3,a=(e+2)%3;r=Math.sqrt(n[3*e+e]-n[3*o+o]-n[3*a+a]+1),t[e]=.5*r,r=.5/r,t[3]=(n[3*o+a]-n[3*a+o])*r,t[o]=(n[3*o+e]+n[3*e+o])*r,t[a]=(n[3*a+e]+n[3*e+a])*r}return t}function I(t,n,e,r){const o=.5*Math.PI/180;n*=o,e*=o,r*=o;const a=Math.sin(n),u=Math.cos(n),s=Math.sin(e),c=Math.cos(e),i=Math.sin(r),l=Math.cos(r);return t[0]=a*c*l-u*s*i,t[1]=u*s*l+a*c*i,t[2]=u*c*i-a*s*l,t[3]=u*c*l+a*s*i,t}const S=c.c,O=c.s,T=c.g,A=f,N=c.d,m=c.h,R=c.l,b=c.i,d=b,_=c.j,C=_,L=c.n,P=c.a,p=c.e,F=(0,a.Su)(),y=(0,a.WK)(1,0,0),g=(0,a.WK)(0,1,0),w=(0,o.Su)(),D=(0,o.Su)(),U=(0,r.Su)();Object.freeze(Object.defineProperty({__proto__:null,add:T,calculateW:function(t,n){const e=n[0],r=n[1],o=n[2];return t[0]=e,t[1]=r,t[2]=o,t[3]=Math.sqrt(Math.abs(1-e*e-r*r-o*o)),t},conjugate:h,copy:S,dot:m,equals:p,exactEquals:P,fromEuler:I,fromMat3:E,getAxisAngle:l,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=e*e+r*r+o*o+a*a,s=u?1/u:0;return t[0]=-e*s,t[1]=-r*s,t[2]=-o*s,t[3]=a*s,t},len:d,length:b,lerp:R,mul:A,multiply:f,normalize:L,random:function(t){const n=u.QR,e=n(),r=n(),o=n(),a=Math.sqrt(1-e),s=Math.sqrt(e);return t[0]=a*Math.sin(2*Math.PI*r),t[1]=a*Math.cos(2*Math.PI*r),t[2]=s*Math.sin(2*Math.PI*o),t[3]=s*Math.cos(2*Math.PI*o),t},rotateX:function(t,n,e){e*=.5;const r=n[0],o=n[1],a=n[2],u=n[3],s=Math.sin(e),c=Math.cos(e);return t[0]=r*c+u*s,t[1]=o*c+a*s,t[2]=a*c-o*s,t[3]=u*c-r*s,t},rotateY:function(t,n,e){e*=.5;const r=n[0],o=n[1],a=n[2],u=n[3],s=Math.sin(e),c=Math.cos(e);return t[0]=r*c-a*s,t[1]=o*c+u*s,t[2]=a*c+r*s,t[3]=u*c-o*s,t},rotateZ:function(t,n,e){e*=.5;const r=n[0],o=n[1],a=n[2],u=n[3],s=Math.sin(e),c=Math.cos(e);return t[0]=r*c+o*s,t[1]=o*c-r*s,t[2]=a*c+u*s,t[3]=u*c-a*s,t},rotationTo:function(t,n,e){const r=(0,s.j)(n,e);return r<-.999999?((0,s.b)(F,y,n),(0,s.C)(F)<1e-6&&(0,s.b)(F,g,n),(0,s.n)(F,F),i(t,F,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,s.b)(F,n,e),t[0]=F[0],t[1]=F[1],t[2]=F[2],t[3]=1+r,L(t,t))},scale:N,set:O,setAxes:function(t,n,e,r){const o=U;return o[0]=e[0],o[3]=e[1],o[6]=e[2],o[1]=r[0],o[4]=r[1],o[7]=r[2],o[2]=-n[0],o[5]=-n[1],o[8]=-n[2],L(t,E(t,o))},setAxisAngle:i,slerp:M,sqlerp:function(t,n,e,r,o,a){return M(w,n,o,a),M(D,e,r,a),M(t,w,D,2*a*(1-a)),t},sqrLen:C,squaredLength:_,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},51120:(t,n,e)=>{e.d(n,{y:()=>i});var r=e(53648),o=e(15008),a=e(62484);function u(t,n,e){const r=Math.sin(t),o=Math.cos(t),a=Math.sin(n),u=Math.cos(n),s=e;return s[0]=-r,s[4]=-a*o,s[8]=u*o,s[12]=0,s[1]=o,s[5]=-a*r,s[9]=u*r,s[13]=0,s[2]=0,s[6]=u,s[10]=a,s[14]=0,s[3]=0,s[7]=0,s[11]=0,s[15]=1,s}var s=e(38380),c=e(60544);function i(t,n,e,r){if(null==t||null==r)return!1;const a=(0,s.Se)(t,s.Wy),i=(0,s.Se)(r,s.mq);if(a===i&&!l(i)&&(a!==s.o3.UNKNOWN||(0,c.yK)(t,r)))return(0,o.mu)(e,n),!0;if(l(i)){const t=s.yw[a][s.o3.LON_LAT],r=s.yw[s.o3.LON_LAT][i];return null!=t&&null!=r&&(t(n,0,M,0),r(M,0,h,0),u(f*M[0],f*M[1],e),e[12]=h[0],e[13]=h[1],e[14]=h[2],!0)}if((i===s.o3.WEB_MERCATOR||i===s.o3.PLATE_CARREE||i===s.o3.WGS84)&&(a===s.o3.WGS84||a===s.o3.CGCS2000&&i===s.o3.PLATE_CARREE||a===s.o3.SPHERICAL_ECEF||a===s.o3.WEB_MERCATOR)){const t=s.yw[a][s.o3.LON_LAT],r=s.yw[s.o3.LON_LAT][i];return null!=t&&null!=r&&(t(n,0,M,0),r(M,0,h,0),a===s.o3.SPHERICAL_ECEF?function(t,n,e){u(t,n,e),(0,o.oL)(e,e)}(f*M[0],f*M[1],e):(0,o.ZX)(e),e[12]=h[0],e[13]=h[1],e[14]=h[2],!0)}return!1}function l(t){return t===s.o3.SPHERICAL_ECEF||t===s.o3.SPHERICAL_MARS_PCPF||t===s.o3.SPHERICAL_MOON_PCPF}const f=(0,r.EF)(1),M=(0,a.Su)(),h=(0,a.Su)()},82448:(t,n,e)=>{e.d(n,{_s:()=>i});var r=e(22080),o=e(56156),a=e(60544);const u=new o.c(r._),s=new o.c(r.IP),c=new o.c(r.Om);function i(t){const n=l.get(t);if(n)return n;let e=u;if(t)if(t===s)e=s;else if(t===c)e=c;else{const n=t.wkid,r=t.latestWkid;if(null!=n||null!=r)(0,a.cJ)(n)||(0,a.cJ)(r)?e=s:((0,a.C_)(n)||(0,a.C_)(r))&&(e=c);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===f?e=s:t===M&&(e=c)}}}return l.set(t,e),e}new o.c(r.MJ);const l=new Map,f=s.wkt.toUpperCase(),M=c.wkt.toUpperCase()},58632:(t,n,e)=>{e.d(n,{Su:()=>a,XX:()=>s,Oq:()=>u}),e(53648);var r=e(98472),o=e(62484);function a(t=E){return[t[0],t[1],t[2],t[3]]}function u(t){return t}function s(t,n,e,o=0,u=Math.floor(e*(1/3)),E=Math.floor(e*(2/3))){if(e<3)return!1;n(i,o);let I=u,S=!1;for(;I<e-1&&!S;)n(l,I),I++,S=!(0,r.h)(i,l);if(!S)return!1;for(I=Math.max(I,E),S=!1;I<e&&!S;)n(f,I),I++,(0,r.f)(M,i,l),(0,r.n)(M,M),(0,r.f)(h,l,f),(0,r.n)(h,h),S=!(0,r.h)(i,f)&&!(0,r.h)(l,f)&&Math.abs((0,r.j)(M,h))<c;return S?(function(t,n,e,r=a()){const o=e[0]-n[0],u=e[1]-n[1],s=e[2]-n[2],c=t[0]-n[0],i=t[1]-n[1],l=t[2]-n[2],f=u*l-s*i,M=s*c-o*l,h=o*i-u*c,E=f*f+M*M+h*h,I=Math.abs(E-1)>1e-5&&E>1e-12?1/Math.sqrt(E):1;r[0]=f*I,r[1]=M*I,r[2]=h*I,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2])}(i,l,f,t),!0):(0!==o||1!==u||2!==E)&&s(t,n,e,0,1,2)}e(74784),e(48880),e(20136),(0,o.Su)(),(0,o.Su)(),(0,o.Su)(),(0,o.Su)(),(0,o.Su)();const c=.99619469809,i=(0,o.Su)(),l=(0,o.Su)(),f=(0,o.Su)(),M=(0,o.Su)(),h=(0,o.Su)(),E=[0,0,1,0];var I,S;(S=I||(I={}))[S.NONE=0]="NONE",S[S.CLAMP=1]="CLAMP",S[S.INFINITE_MIN=4]="INFINITE_MIN",S[S.INFINITE_MAX=8]="INFINITE_MAX",I.INFINITE_MIN,I.INFINITE_MAX,I.INFINITE_MAX},48880:(t,n,e)=>{e.d(n,{i4:()=>u});var r=e(53648),o=e(98472),a=e(62484);function u(t,n){const e=(0,o.j)(t,n)/((0,o.l)(t)*(0,o.l)(n));return-(0,r.Uj)(e)}(0,a.Su)(),(0,a.Su)()},20136:(t,n,e)=>{e.d(n,{SW:()=>M,QX:()=>h,Wq:()=>f});var r=e(52324),o=e(68612),a=e(87104),u=e(2620),s=e(85256),c=e(62484),i=e(37008);class l{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.o)((()=>this._reset())),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new l(s.Su)}static createVec3f64(){return new l(c.Su)}static createVec4f64(){return new l(i.Su)}static createMat3f64(){return new l(o.Su)}static createMat4f64(){return new l(a.Su)}static createQuatf64(){return new l(u.Su)}get test(){return{length:this._items.length}}}l.createVec2f64();const f=l.createVec3f64(),M=(l.createVec4f64(),l.createMat3f64(),l.createMat4f64()),h=l.createQuatf64()},89560:(t,n,e)=>{e.d(n,{O:()=>o,Y:()=>r});class r{constructor(t,n,e=n){this.data=t,this.size=n,this.stride=e}}class o extends r{constructor(t,n,e,r=!1,o=e){super(t,e,o),this.indices=n,this.exclusive=r}}},4636:(t,n,e)=>{var r;e.d(n,{K:()=>r}),function(t){t.POSITION="position",t.NORMAL="normal",t.NORMALCOMPRESSED="normalCompressed",t.UV0="uv0",t.COLOR="color",t.SYMBOLCOLOR="symbolColor",t.SIZE="size",t.TANGENT="tangent",t.OFFSET="offset",t.PERSPECTIVEDIVIDE="perspectiveDivide",t.CENTEROFFSETANDDISTANCE="centerOffsetAndDistance",t.LENGTH="length",t.PREVPOSITION="prevPosition",t.NEXTPOSITION="nextPosition",t.SUBDIVISIONFACTOR="subdivisionFactor",t.COLORFEATUREATTRIBUTE="colorFeatureAttribute",t.SIZEFEATUREATTRIBUTE="sizeFeatureAttribute",t.OPACITYFEATUREATTRIBUTE="opacityFeatureAttribute",t.DISTANCETOSTART="distanceToStart",t.UVMAPSPACE="uvMapSpace",t.BOUNDINGRECT="boundingRect",t.UVREGION="uvRegion",t.PROFILERIGHT="profileRight",t.PROFILEUP="profileUp",t.PROFILEVERTEXANDNORMAL="profileVertexAndNormal",t.FEATUREVALUE="featureValue",t.INSTANCEMODELORIGINHI="instanceModelOriginHi",t.INSTANCEMODELORIGINLO="instanceModelOriginLo",t.INSTANCEMODEL="instanceModel",t.INSTANCEMODELNORMAL="instanceModelNormal",t.INSTANCECOLOR="instanceColor",t.INSTANCEFEATUREATTRIBUTE="instanceFeatureAttribute",t.LOCALTRANSFORM="localTransform",t.GLOBALTRANSFORM="globalTransform",t.BOUNDINGSPHERE="boundingSphere",t.MODELORIGIN="modelOrigin",t.MODELSCALEFACTORS="modelScaleFactors",t.FEATUREATTRIBUTE="featureAttribute",t.STATE="state",t.LODLEVEL="lodLevel",t.POSITION0="position0",t.POSITION1="position1",t.NORMAL2COMPRESSED="normal2Compressed",t.COMPONENTINDEX="componentIndex",t.VARIANTOFFSET="variantOffset",t.VARIANTSTROKE="variantStroke",t.VARIANTEXTENSION="variantExtension",t.SIDENESS="sideness",t.START="start",t.END="end",t.UP="up",t.EXTRUDE="extrude",t.OBJECTANDLAYERIDCOLOR="objectAndLayerIdColor",t.INSTANCEOBJECTANDLAYERIDCOLOR="instanceObjectAndLayerIdColor"}(r||(r={}))}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[387],{20480:(e,t,r)=>{r.d(t,{WW:()=>v});var a=r(6220),n=r(20744),s=r(66360),i=r(7488),o=r(48516),l=r(44048),u=r(60544),d=r(29120),c=(r(60708),r(2600)),p=r(6704),f=r(21980),h=r(28176),y=r(81976);const m=()=>s.c.getLogger("esri.geometry.support.normalizeUtils");function g(e){return"polygon"===e[0].type}function w(e){return"polyline"===e[0].type}function b(e,t,r){if(t){const t=function(e,t){if(!(e instanceof o.c||e instanceof i.c)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw m().error(e),new n.c(e)}const r=(0,l.iM)(e),a=[];for(const e of r){const r=[];a.push(r),r.push([e[0][0],e[0][1]]);for(let a=0;a<e.length-1;a++){const n=e[a][0],s=e[a][1],i=e[a+1][0],o=e[a+1][1],l=Math.sqrt((i-n)*(i-n)+(o-s)*(o-s)),u=(o-s)/l,d=(i-n)/l,c=l/t;if(c>1){for(let e=1;e<=c-1;e++){const a=e*t,i=d*a+n,o=u*a+s;r.push([i,o])}const e=(l+Math.floor(c-1)*t)/2,a=d*e+n,i=u*e+s;r.push([a,i])}r.push([i,o])}}return function(e){return"polygon"===e.type}(e)?new i.c({rings:a,spatialReference:e.spatialReference}):new o.c({paths:a,spatialReference:e.spatialReference})}(e,1e6);e=(0,d.aq)(t,!0)}return r&&(e=(0,l.wb)(e,r)),e}function F(e,t,r){if(Array.isArray(e)){const a=e[0];if(a>t){const r=(0,l.yK)(a,t);e[0]=a+r*(-2*t)}else if(a<r){const t=(0,l.yK)(a,r);e[0]=a+t*(-2*r)}}else{const a=e.x;if(a>t){const r=(0,l.yK)(a,t);e=e.clone().offset(r*(-2*t),0)}else if(a<r){const t=(0,l.yK)(a,r);e=e.clone().offset(t*(-2*r),0)}}return e}function A(e,t){let r=-1;for(let a=0;a<t.cutIndexes.length;a++){const n=t.cutIndexes[a],s=t.geometries[a],i=(0,l.iM)(s);for(let e=0;e<i.length;e++){const t=i[e];t.some((r=>{if(r[0]<180)return!0;{let r=0;for(let e=0;e<t.length;e++){const a=t[e][0];r=a>r?a:r}r=Number(r.toFixed(9));const a=-360*(0,l.yK)(r,180);for(let r=0;r<t.length;r++){const t=s.getPoint(e,r);s.setPoint(e,r,t.clone().offset(a,0))}return!0}}))}if(n===r){if(g(e))for(const t of(0,l.iM)(s))e[n]=e[n].addRing(t);else if(w(e))for(const t of(0,l.iM)(s))e[n]=e[n].addPath(t)}else r=n,e[n]=s}return e}async function v(e,t,r){if(!Array.isArray(e))return v([e],t);t&&"string"!=typeof t&&m().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof t?t:t?.url??a.default.geometryServiceUrl;let s,g,w,I,R,S,$,E,O=0;const x=[],k=[];for(const t of e)if(null!=t)if(s||(s=t.spatialReference,g=(0,u.Nq)(s),w=s.isWebMercator,S=w?102100:4326,I=l.Hh[S].maxX,R=l.Hh[S].minX,$=l.Hh[S].plus180Line,E=l.Hh[S].minus180Line),g)if("mesh"===t.type)k.push(t);else if("point"===t.type)k.push(F(t.clone(),I,R));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>F(e,I,R))),k.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,g);k.push(e.rings?new i.c(e):e)}else if(t.extent){const e=t.extent,r=(0,l.yK)(e.xmin,R)*(2*I);let a=0===r?t.clone():(0,l.wb)(t.clone(),r);e.offset(r,0),e.intersects($)&&e.xmax!==I?(O=e.xmax>O?e.xmax:O,a=b(a,w),x.push(a),k.push("cut")):e.intersects(E)&&e.xmin!==R?(O=e.xmax*(2*I)>O?e.xmax*(2*I):O,a=b(a,w,360),x.push(a),k.push("cut")):k.push(a)}else k.push(t.clone());else k.push(t);else k.push(t);let L=(0,l.yK)(O,I),M=-90;const U=L,q=new o.c;for(;L>0;){const e=360*L-180;q.addPath([[e,M],[e,-1*M]]),M*=-1,L--}if(x.length>0&&U>0){const t=A(x,await async function(e,t,r,a){const n=(0,f.UX)(e),s=t[0].spatialReference,i={...a,responseType:"json",query:{...n.query,f:"json",sr:(0,u.um)(s),target:JSON.stringify({geometryType:(0,p.Ce)(t[0]),geometries:t}),cutter:JSON.stringify(r)}},o=await(0,c.c)(n.path+"/cut",i),{cutIndexes:l,geometries:d=[]}=o.data;return{cutIndexes:l,geometries:d.map((e=>{const t=(0,p.h4)(e);return t.spatialReference=s,t}))}}(n,x,q,r)),a=[],s=[];for(let r=0;r<k.length;r++){const n=k[r];if("cut"!==n)s.push(n);else{const n=t.shift(),i=e[r];null!=i&&"polygon"===i.type&&i.rings&&i.rings.length>1&&n.rings.length>=i.rings.length?(a.push(n),s.push("simplify")):s.push(w?(0,d.w7)(n):n)}}if(!a.length)return s;const i=await async function(e,t,r){const a="string"==typeof e?(0,h.as)(e):e,n=t[0].spatialReference,s=(0,p.Ce)(t[0]),i={...r,query:{...a.query,f:"json",sr:(0,u.um)(n),geometries:JSON.stringify((0,y.y)(t))}},{data:o}=await(0,c.c)(a.path+"/simplify",i);return(0,y.Q)(o.geometries,s,n)}(n,a,r),o=[];for(let e=0;e<s.length;e++){const t=s[e];"simplify"!==t?o.push(t):o.push(w?(0,d.w7)(i.shift()):i.shift())}return o}const W=[];for(let e=0;e<k.length;e++){const t=k[e];if("cut"!==t)W.push(t);else{const e=x.shift();W.push(!0===w?(0,d.w7)(e):e)}}return W}},44048:(e,t,r)=>{r.d(t,{Hh:()=>i,iM:()=>u,wb:()=>l,yK:()=>o});var a=r(48516),n=r(56156),s=r(6704);const i={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new a.c({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.c.WebMercator}),minus180Line:new a.c({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.c.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new a.c({paths:[[[180,-180],[180,180]]],spatialReference:n.c.WGS84}),minus180Line:new a.c({paths:[[[-180,-180],[-180,180]]],spatialReference:n.c.WGS84})}};function o(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const r=u(e);for(const e of r)for(const r of e)r[0]+=t;return e}function u(e){return(0,s.Cs)(e)?e.rings:e.paths}},62768:(e,t,r)=>{r.d(t,{applyEdits:()=>v,cV:()=>b,cd:()=>A,uploadAssets:()=>x});var a=r(6444),n=r(2952),s=r(20744),i=r(62088),o=r(66360),l=r(10860),u=r(28176),d=r(63564),c=r(20480),p=r(60544),f=r(6576),h=r(564),y=r(4048),m=r(71068);function g(e){return null!=e?.applyEdits}function w(e){return"object"==typeof e&&null!=e&&"objectId"in e&&!!e.objectId}function b(e){return e.every(w)}function F(e){return"object"==typeof e&&null!=e&&"globalId"in e&&!!e.globalId}function A(e){return e.every(F)}async function v(e,t,r,a={}){let u;const c="gdbVersion"in e?e.gdbVersion:null,p=a.gdbVersion??c;if((0,f.iC)(e)&&e.url)u=(0,f.mK)(e.url,e.layerId,p,"original-and-current-features"===a.returnServiceEditsOption);else{u=(0,l.qG)(),u.promise.then((t=>{(t.addedFeatures.length||t.updatedFeatures.length||t.deletedFeatures.length||t.addedAttachments.length||t.updatedAttachments.length||t.deletedAttachments.length)&&e.emit("edits",t)}));const t={result:u.promise};e.emit("apply-edits",t)}try{const{results:l,edits:c}=await async function(e,t,r,a){if(await e.load(),!g(t))throw new s.c(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!(0,m.UX)(e))throw new s.c(`${e.type}-layer:editing-disabled`,"Editing is disabled for layer",{layer:e});const{edits:i,options:l}=await async function(e,t,r){const a=(0,m.kZ)(e),i=t&&(t.addFeatures||t.updateFeatures||t.deleteFeatures),l=t&&(t.addAttachments||t.updateAttachments||t.deleteAttachments),u=null!=e.infoFor3D;if(function(e,t,r,a,n,i){if(!e||!a&&!n)throw new s.c(`${i}:missing-parameters`,"'addFeatures', 'updateFeatures', 'deleteFeatures', 'addAttachments', 'updateAttachments' or 'deleteAttachments' parameter is required");if(!t.editing.supportsGlobalId&&r?.globalIdUsed)throw new s.c(`${i}:invalid-parameter`,"This layer does not support 'globalIdUsed' parameter. See: 'capabilities.editing.supportsGlobalId'");if(!t.editing.supportsGlobalId&&n)throw new s.c(`${i}:invalid-parameter`,"'addAttachments', 'updateAttachments' and 'deleteAttachments' are applicable only if the layer supports global ids. See: 'capabilities.editing.supportsGlobalId'");if(!r?.globalIdUsed&&n)throw new s.c(`${i}:invalid-parameter`,"When 'addAttachments', 'updateAttachments' or 'deleteAttachments' is specified, globalIdUsed should be set to true")}(t,a,r,!!i,!!l,`${e.type}-layer`),!a.data.isVersioned&&r?.gdbVersion)throw new s.c(`${e.type}-layer:invalid-parameter`,"'gdbVersion' is applicable only if the layer supports versioned data. See: 'capabilities.data.isVersioned'");if(!a.editing.supportsRollbackOnFailure&&r?.rollbackOnFailureEnabled)throw new s.c(`${e.type}-layer:invalid-parameter`,"This layer does not support 'rollbackOnFailureEnabled' parameter. See: 'capabilities.editing.supportsRollbackOnFailure'");const c={...r};if(null!=c.rollbackOnFailureEnabled||a.editing.supportsRollbackOnFailure||(c.rollbackOnFailureEnabled=!0),c.rollbackOnFailureEnabled||"original-and-current-features"!==c.returnServiceEditsOption||(!1===c.rollbackOnFailureEnabled&&o.c.getLogger("esri.layers.graphics.editingSupport").warn(`${e.type}-layer:invalid-parameter`,"'original-and-current-features' is valid for 'returnServiceEditsOption' only when 'rollBackOnFailure' is true, but 'rollBackOnFailure' was set to false. 'rollBackOnFailure' has been overwritten and set to true."),c.rollbackOnFailureEnabled=!0),!a.editing.supportsReturnServiceEditsInSourceSpatialReference&&c.returnServiceEditsInSourceSR)throw new s.c(`${e.type}-layer:invalid-parameter`,"This layer does not support 'returnServiceEditsInSourceSR' parameter. See: 'capabilities.editing.supportsReturnServiceEditsInSourceSpatialReference'");if(c.returnServiceEditsInSourceSR&&"original-and-current-features"!==c.returnServiceEditsOption)throw new s.c(`${e.type}-layer:invalid-parameter`,"'returnServiceEditsInSourceSR' is valid only when 'returnServiceEditsOption' is set to 'original-and-current-features'");const p=function(e,t,r){const a=function(e){return{addFeatures:Array.from(e?.addFeatures??[]),updateFeatures:Array.from(e?.updateFeatures??[]),deleteFeatures:e&&n.c.isCollection(e.deleteFeatures)?e.deleteFeatures.toArray():e.deleteFeatures||[],addAttachments:e.addAttachments||[],updateAttachments:e.updateAttachments||[],deleteAttachments:e.deleteAttachments||[]}}(e);if(a.addFeatures?.length&&!t.operations.supportsAdd)throw new s.c(`${r}:unsupported-operation`,"Layer does not support adding features.");if(a.updateFeatures?.length&&!t.operations.supportsUpdate)throw new s.c(`${r}:unsupported-operation`,"Layer does not support updating features.");if(a.deleteFeatures?.length&&!t.operations.supportsDelete)throw new s.c(`${r}:unsupported-operation`,"Layer does not support deleting features.");return a.addFeatures=a.addFeatures.map(E),a.updateFeatures=a.updateFeatures.map(E),a.addAssetFeatures=[],a}(t,a,`${e.type}-layer`),f=r?.globalIdUsed||u,h=e.fields.filter((e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8));if(f){const{globalIdField:t}=e;if(null==t)throw new s.c(`${e.type}-layer:invalid-parameter`,"Layer does not specify a global id field.");p.addFeatures.forEach((e=>function(e,t){const{attributes:r}=e;null==r[t]&&(r[t]=(0,d.cf)())}(e,t)))}return p.addFeatures.forEach((t=>function(e,t,r,a){I(e,t,r,a),R(e,t)}(t,e,f,h))),p.updateFeatures.forEach((t=>function(e,t,r,a){I(e,t,r,a),R(e,t);const n=(0,m.kZ)(t);if("geometry"in e&&null!=e.geometry&&!n?.editing.supportsGeometryUpdate)throw new s.c(`${t.type}-layer:unsupported-operation`,"Layer does not support geometry updates.")}(t,e,f,h))),p.deleteFeatures.forEach((t=>function(e,t,r,a){I(e,t,r,a)}(t,e,f,h))),p.addAttachments.forEach((t=>S(t,e))),p.updateAttachments.forEach((t=>S(t,e))),u&&await async function(e,t){if(null==t.infoFor3D)return;const{infoFor3D:r}=t,a=(0,y.me)("model/gltf-binary",r.supportedFormats)??(0,y.If)("glb",r.supportedFormats);if(!a||!r.editFormats.includes(a))throw new s.c(`${t.type}-layer:binary-gltf-asset-not-supported`,"3DObjectFeatureLayer requires binary glTF (.glb) support for updating mesh geometry.");e.addAssetFeatures??=[];const{addAssetFeatures:n}=e;for(const t of e.addFeatures??[])O(t)&&n.push(t);for(const t of e.updateFeatures??[])O(t)&&n.push(t)}(p,e),{edits:await $(p),options:c}}(e,r,a);return i.addFeatures?.length||i.updateFeatures?.length||i.deleteFeatures?.length||i.addAttachments?.length||i.updateAttachments?.length||i.deleteAttachments?.length?{edits:i,results:await t.applyEdits(i,l)}:{edits:i,results:{addFeatureResults:[],updateFeatureResults:[],deleteFeatureResults:[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}}(e,t,r,a),p=e=>e.filter((e=>!e.error)).map(i.ct),f={edits:c,addedFeatures:p(l.addFeatureResults),updatedFeatures:p(l.updateFeatureResults),deletedFeatures:p(l.deleteFeatureResults),addedAttachments:p(l.addAttachmentResults),updatedAttachments:p(l.updateAttachmentResults),deletedAttachments:p(l.deleteAttachmentResults),exceededTransferLimit:!1,historicMoment:l.editMoment?new Date(l.editMoment):null,globalIdToObjectId:a.globalIdToObjectId};return l.editedFeatureResults?.length&&(f.editedFeatures=l.editedFeatureResults),u.resolve(f),l}catch(e){throw u.reject(e),e}}function I(e,t,r,a){if(r){if("attributes"in e&&!e.attributes[t.globalIdField])throw new s.c(`${t.type}-layer:invalid-parameter`,`Feature should have '${t.globalIdField}' when 'globalIdUsed' is true`);if(!("attributes"in e)&&!e.globalId)throw new s.c(`${t.type}-layer:invalid-parameter`,"`'globalId' of the feature should be passed when 'globalIdUsed' is true")}if(a.length&&"attributes"in e)for(const r of a){const a=e.attributes[r.name];if(void 0!==a&&!(0,h.mS)(r,a))throw new s.c(`${t.type}-layer:invalid-parameter`,`Big-integer field '${r.name}' of the feature must be less than ${Number.MAX_SAFE_INTEGER}`,{feature:e})}if("geometry"in e&&null!=e.geometry){if(e.geometry.hasZ&&!1===t.capabilities?.data.supportsZ)throw new s.c(`${t.type}-layer:z-unsupported`,"Layer does not support z values while feature has z values.");if(e.geometry.hasM&&!1===t.capabilities?.data.supportsM)throw new s.c(`${t.type}-layer:m-unsupported`,"Layer does not support m values while feature has m values.")}}function R(e,t){if("geometry"in e&&"mesh"===e.geometry?.type&&null!=t.infoFor3D){const{geometry:r}=e,{spatialReference:a,vertexSpace:n}=r,i="local"===n.type,o=a.isGeographic,l=a.isWebMercator,u=t.spatialReference,d=(0,p.yK)(u,a);if(!(i&&(o||l)||!i&&!o&&d))throw new s.c(`${t.type}-layer:mesh-unsupported`,`Uploading a mesh with a ${n.type} vertex space and a spatial reference wkid:${a.wkid} to a layer with spatial reference wkid:${u?.wkid??"unknown"} is not supported`)}}function S(e,t){const{feature:r,attachment:a}=e;if(!r||"attributes"in r&&!r.attributes[t.globalIdField])throw new s.c(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to a feature with 'globalId'");if(!("attributes"in r)&&!r.globalId)throw new s.c(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to 'globalId' of the parent feature");if(!a.globalId)throw new s.c(`${t.type}-layer:invalid-parameter`,"Attachment should have 'globalId'");if(!a.data&&!a.uploadId)throw new s.c(`${t.type}-layer:invalid-parameter`,"Attachment should have 'data' or 'uploadId'");if(!(a.data instanceof File&&a.data.name||a.name))throw new s.c(`${t.type}-layer:invalid-parameter`,"'name' is required when attachment is specified as Base64 encoded string using 'data'");if(!t.capabilities?.editing.supportsUploadWithItemId&&a.uploadId)throw new s.c(`${t.type}-layer:invalid-parameter`,"This layer does not support 'uploadId' parameter. See: 'capabilities.editing.supportsUploadWithItemId'");if("string"==typeof a.data){const e=(0,u.nV)(a.data);if(e&&!e.isBase64)throw new s.c(`${t.type}-layer:invalid-parameter`,"Attachment 'data' should be a Blob, File or Base64 encoded string")}}async function $(e){const t=e.addFeatures??[],r=e.updateFeatures??[],a=t.concat(r).map((e=>e.geometry)),n=await(0,c.WW)(a),s=t.length,i=r.length;return n.slice(0,s).forEach(((e,r)=>t[r].geometry=e)),n.slice(s,s+i).forEach(((e,t)=>r[t].geometry=e)),e}function E(e){const t=new a.c;return e.attributes||(e.attributes={}),t.geometry=e.geometry,t.attributes=e.attributes,t}function O(e){return"mesh"===e?.geometry?.type}function x(e,t,r,a){if(!g(t))throw new s.c(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!t.uploadAssets)throw new s.c(`${e.type}-layer:no-asset-upload-support`,"Layer source does not support uploadAssets capability",{layer:e});return t.uploadAssets(r,a)}},81976:(e,t,r)=>{r.d(t,{Q:()=>s,y:()=>n});var a=r(6704);function n(e){return{geometryType:(0,a.Ce)(e[0]),geometries:e.map((e=>e.toJSON()))}}function s(e,t,r){const n=(0,a.uG)(t);return e.map((e=>{const t=n.fromJSON(e);return t.spatialReference=r,t}))}},21980:(e,t,r)=>{r.d(t,{OW:()=>o,UX:()=>i,sR:()=>s}),r(6220),r(47620);var a=r(62088),n=r(28176);function s(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function i(e){return"string"==typeof e?(0,n.as)(e):(0,a.ct)(e)}function o(e,t,r){const a={};for(const n in e){if("declaredClass"===n)continue;const s=e[n];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))a[n]=s.map((e=>o({item:e},t,r).item));else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(r?.[n]);a[n]=t?e:JSON.stringify(e)}else a[n]=t?s:JSON.stringify(s);else a[n]=s}return a}r(20572)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8256],{44728:(e,t,r)=>{r.d(t,{c:()=>d});var i,n,o=r(46988),s=r(53648),l=r(53368);function a(e){return(0,s.qk)((0,l.Wu)(e),0,255)}function u(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}function c(e,t){const r=e.toString(16).padStart(2,"0");return t?r.substring(0,1):r}class p{static blendColors(e,t,r,i=new p){return i.r=Math.round(e.r+(t.r-e.r)*r),i.g=Math.round(e.g+(t.g-e.g)*r),i.b=Math.round(e.b+(t.b-e.b)*r),i.a=e.a+(t.a-e.a)*r,i._sanitize()}static fromRgb(e,t){const r=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(r){const e=r[2].split(/\s*,\s*/),i=r[1];if("rgb"===i&&3===e.length||"rgba"===i&&4===e.length){const r=e[0];if("%"===r.charAt(r.length-1)){const r=e.map((e=>2.56*parseFloat(e)));return 4===e.length&&(r[3]=parseFloat(e[3])),p.fromArray(r,t)}return p.fromArray(e.map((e=>parseFloat(e))),t)}if("hsl"===i&&3===e.length||"hsla"===i&&4===e.length)return p.fromArray((0,o.ec)(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])),t)}return null}static fromHex(e,t=new p){if("#"!==e[0]||isNaN(Number(`0x${e.substring(1)}`)))return null;switch(e.length){case 4:case 5:{const r=parseInt(e.substring(1,2),16),i=parseInt(e.substring(2,3),16),n=parseInt(e.substring(3,4),16),o=5===e.length?15:parseInt(e.substring(4),16);return p.fromArray([r+16*r,i+16*i,n+16*n,(o+16*o)/255],t)}case 7:case 9:{const r=parseInt(e.substring(1,3),16),i=parseInt(e.substring(3,5),16),n=parseInt(e.substring(5,7),16),o=7===e.length?255:parseInt(e.substring(7),16);return p.fromArray([r,i,n,o/255],t)}default:return null}}static fromArray(e,t=new p){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,o.kv)(e)?(0,o.SQ)(e):null;return r&&p.fromArray(r,t)||p.fromRgb(e,t)||p.fromHex(e,t)}static fromJSON(e){return null!=e?new p([e[0],e[1],e[2],(e[3]??255)/255]):void 0}static toUnitRGB(e){return null!=e?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return null!=e?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?p.fromString(e,this):Array.isArray(e)?p.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof p||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,i=3===r||4===r,n=4===r||8===r,o=`#${c(this.r,i)}${c(this.g,i)}${c(this.b,i)}${n?c(Math.round(255*this.a),i):""}`;return t?o.toUpperCase():o}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=p.AlphaMode.ALWAYS){const t=a(this.r),r=a(this.g),i=a(this.b);return e===p.AlphaMode.ALWAYS||1!==this.a?[t,r,i,a(255*this.a)]:[t,r,i]}clone(){return new p(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=Math.round(u(this.r,0,255)),this.g=Math.round(u(this.g,0,255)),this.b=Math.round(u(this.b,0,255)),this.a=u(this.a,0,1),this}_set(e,t,r,i){this.r=e,this.g=t,this.b=r,this.a=i}}p.prototype.declaredClass="esri.Color",(n=(i=p||(p={})).AlphaMode||(i.AlphaMode={}))[n.ALWAYS=0]="ALWAYS",n[n.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const d=p},25228:(e,t,r)=>{r.d(t,{c:()=>m});var i,n=r(41948),o=r(40504),s=r(94360),l=r(1580),a=(r(9456),r(66360),r(72052),r(33600)),u=r(12552),c=r(18996),p=r(28484);let d=i=class extends o.am{static get allTime(){return h}static get empty(){return y}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===i&&r===n}expandTo(e,t=p.OX){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,s.aU)(r,e,t));let n=this.end;if(n){const r=(0,s.aU)(n,e,t);n=n.getTime()===r.getTime()?r:(0,s.g1)(r,1,e,t)}return new i({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,o=e.end?.getTime()??1/0;let s,l;return n>=t&&n<=r?s=n:t>=n&&t<=o&&(s=t),r>=n&&r<=o?l=r:o>=t&&o<=r&&(l=o),null==s||null==l||isNaN(s)||isNaN(l)?i.empty:new i({start:s===-1/0?null:new Date(s),end:l===1/0?null:new Date(l)})}offset(e,t,r=p.OX){if(this.isEmpty||this.isAllTime)return this.clone();const n=new i,{start:o,end:l}=this;return null!=o&&(n.start=(0,s.g1)(o,e,t,r)),null!=l&&(n.end=(0,s.g1)(l,e,t,r)),n}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return h.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,n._)([(0,l.qq)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,n._)([(0,a.E)("end")],d.prototype,"readEnd",null),(0,n._)([(0,c.G)("end")],d.prototype,"writeEnd",null),(0,n._)([(0,l.qq)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,n._)([(0,l.qq)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,n._)([(0,l.qq)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,n._)([(0,a.E)("start")],d.prototype,"readStart",null),(0,n._)([(0,c.G)("start")],d.prototype,"writeStart",null),d=i=(0,n._)([(0,u.c)("esri.TimeExtent")],d);const h=new d,y=new d({start:void 0,end:void 0}),m=d},3856:(e,t,r)=>{r.d(t,{m:()=>p,q:()=>c});var i=r(41948),n=r(43780),o=(r(9456),r(62088)),s=(r(66360),r(70680)),l=r(71448),a=r(20916),u=r(12552);const c=e=>{let t=class extends e{clone(){const e=(0,a.m6)(this);(0,s.EN)(e,"unable to clone instance of non-accessor class");const t=e.metadata,r=e.store,i={},n=new Map;for(const e in t){const s=t[e],a=r?.originOf(e),u=s.clonable;if(s.readOnly||!1===u||a!==l.sT.USER&&a!==l.sT.DEFAULTS&&a!==l.sT.WEB_MAP&&a!==l.sT.WEB_SCENE)continue;const c=this[e];let p=null;p="function"==typeof u?u(c):"reference"===u?c:(0,o.gx)(c),null!=c&&null==p||(a===l.sT.DEFAULTS?n.set(e,p):i[e]=p)}const u=new(0,Object.getPrototypeOf(this).constructor)(i);if(n.size){const e=(0,a.m6)(u)?.store;if(e)for(const[t,r]of n)e.set(t,r,l.sT.DEFAULTS)}return u}};return t=(0,i._)([(0,u.c)("esri.core.Clonable")],t),t};let p=class extends(c(n.c)){};p=(0,i._)([(0,u.c)("esri.core.Clonable")],p)},27368:(e,t,r)=>{r.d(t,{sD:()=>s});var i=r(53648);class n{constructor(e,t){this.min=e,this.max=t,this.range=t-e}ndiff(e,t=0){return Math.ceil((e-t)/this.range)*this.range+t}_normalize(e,t,r,i=0,n=!1){return(r-=i)<e?r+=this.ndiff(e-r):r>t&&(r-=this.ndiff(r-t)),n&&r===t&&(r=e),r+i}normalize(e,t=0,r=!1){return this._normalize(this.min,this.max,e,t,r)}clamp(e,t=0){return(0,i.qk)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+this.ndiff(e-t,r)}minimalMonotonic(e,t,r){return this._normalize(e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);const r=(t=this.normalize(t))-e,i=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(i)?r:i}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function o(e){for(const t in e){const r=e[t];r instanceof Function&&(e[t]=r.bind(e))}return e}o(new n(0,2*Math.PI)),o(new n(-Math.PI,Math.PI));const s=o(new n(0,360))},22156:(e,t,r)=>{r.d(t,{MR:()=>s,qm:()=>l});var i=r(41948),n=r(12552);let o=0;const s=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return t=(0,i._)([(0,n.c)("esri.core.Identifiable")],t),t},l=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:o++})}};return t=(0,i._)([(0,n.c)("esri.core.NumericIdentifiable")],t),t};let a=class extends(s(class{})){};a=(0,i._)([(0,n.c)("esri.core.Identifiable")],a)},77380:(e,t,r)=>{r.d(t,{I:()=>m,Y:()=>i});const i={Base64:0,Hex:1,String:2,Raw:3},n=8,o=(1<<n)-1;function s(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function l(e){const t=[];for(let r=0,i=e.length*n;r<i;r+=n)t[r>>5]|=(e.charCodeAt(r/n)&o)<<r%32;return t}function a(e){const t=[];for(let r=0,i=32*e.length;r<i;r+=n)t.push(String.fromCharCode(e[r>>5]>>>r%32&o));return t.join("")}function u(e,t,r,i,n,o){return s(function(e,t){return e<<t|e>>>32-t}(s(s(t,e),s(i,o)),n),r)}function c(e,t,r,i,n,o,s){return u(t&r|~t&i,e,t,n,o,s)}function p(e,t,r,i,n,o,s){return u(t&i|r&~i,e,t,n,o,s)}function d(e,t,r,i,n,o,s){return u(t^r^i,e,t,n,o,s)}function h(e,t,r,i,n,o,s){return u(r^(t|~i),e,t,n,o,s)}function y(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let r=1732584193,i=-271733879,n=-1732584194,o=271733878;for(let t=0;t<e.length;t+=16){const l=r,a=i,u=n,y=o;r=c(r,i,n,o,e[t],7,-680876936),o=c(o,r,i,n,e[t+1],12,-389564586),n=c(n,o,r,i,e[t+2],17,606105819),i=c(i,n,o,r,e[t+3],22,-1044525330),r=c(r,i,n,o,e[t+4],7,-176418897),o=c(o,r,i,n,e[t+5],12,1200080426),n=c(n,o,r,i,e[t+6],17,-1473231341),i=c(i,n,o,r,e[t+7],22,-45705983),r=c(r,i,n,o,e[t+8],7,1770035416),o=c(o,r,i,n,e[t+9],12,-1958414417),n=c(n,o,r,i,e[t+10],17,-42063),i=c(i,n,o,r,e[t+11],22,-1990404162),r=c(r,i,n,o,e[t+12],7,1804603682),o=c(o,r,i,n,e[t+13],12,-40341101),n=c(n,o,r,i,e[t+14],17,-1502002290),i=c(i,n,o,r,e[t+15],22,1236535329),r=p(r,i,n,o,e[t+1],5,-165796510),o=p(o,r,i,n,e[t+6],9,-1069501632),n=p(n,o,r,i,e[t+11],14,643717713),i=p(i,n,o,r,e[t],20,-373897302),r=p(r,i,n,o,e[t+5],5,-701558691),o=p(o,r,i,n,e[t+10],9,38016083),n=p(n,o,r,i,e[t+15],14,-660478335),i=p(i,n,o,r,e[t+4],20,-405537848),r=p(r,i,n,o,e[t+9],5,568446438),o=p(o,r,i,n,e[t+14],9,-1019803690),n=p(n,o,r,i,e[t+3],14,-187363961),i=p(i,n,o,r,e[t+8],20,1163531501),r=p(r,i,n,o,e[t+13],5,-1444681467),o=p(o,r,i,n,e[t+2],9,-51403784),n=p(n,o,r,i,e[t+7],14,1735328473),i=p(i,n,o,r,e[t+12],20,-1926607734),r=d(r,i,n,o,e[t+5],4,-378558),o=d(o,r,i,n,e[t+8],11,-2022574463),n=d(n,o,r,i,e[t+11],16,1839030562),i=d(i,n,o,r,e[t+14],23,-35309556),r=d(r,i,n,o,e[t+1],4,-1530992060),o=d(o,r,i,n,e[t+4],11,1272893353),n=d(n,o,r,i,e[t+7],16,-155497632),i=d(i,n,o,r,e[t+10],23,-1094730640),r=d(r,i,n,o,e[t+13],4,681279174),o=d(o,r,i,n,e[t],11,-358537222),n=d(n,o,r,i,e[t+3],16,-722521979),i=d(i,n,o,r,e[t+6],23,76029189),r=d(r,i,n,o,e[t+9],4,-640364487),o=d(o,r,i,n,e[t+12],11,-421815835),n=d(n,o,r,i,e[t+15],16,530742520),i=d(i,n,o,r,e[t+2],23,-995338651),r=h(r,i,n,o,e[t],6,-198630844),o=h(o,r,i,n,e[t+7],10,1126891415),n=h(n,o,r,i,e[t+14],15,-1416354905),i=h(i,n,o,r,e[t+5],21,-57434055),r=h(r,i,n,o,e[t+12],6,1700485571),o=h(o,r,i,n,e[t+3],10,-1894986606),n=h(n,o,r,i,e[t+10],15,-1051523),i=h(i,n,o,r,e[t+1],21,-2054922799),r=h(r,i,n,o,e[t+8],6,1873313359),o=h(o,r,i,n,e[t+15],10,-30611744),n=h(n,o,r,i,e[t+6],15,-1560198380),i=h(i,n,o,r,e[t+13],21,1309151649),r=h(r,i,n,o,e[t+4],6,-145523070),o=h(o,r,i,n,e[t+11],10,-1120210379),n=h(n,o,r,i,e[t+2],15,718787259),i=h(i,n,o,r,e[t+9],21,-343485551),r=s(r,l),i=s(i,a),n=s(n,u),o=s(o,y)}return[r,i,n,o]}function m(e,t=i.Hex){const r=t||i.Base64,o=y(l(e),e.length*n);switch(r){case i.Raw:return o;case i.Hex:return function(e){const t="0123456789abcdef",r=[];for(let i=0,n=4*e.length;i<n;i++)r.push(t.charAt(e[i>>2]>>i%4*8+4&15)+t.charAt(e[i>>2]>>i%4*8&15));return r.join("")}(o);case i.String:return a(o);case i.Base64:return function(e){const t=[];for(let r=0,i=4*e.length;r<i;r+=3){const i=(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 n=0;n<4;n++)8*r+6*n>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>6*(3-n)&63))}return t.join("")}(o)}}},90636:(e,t,r)=>{r.d(t,{O:()=>h});var i=r(20744),n=r(77380),o=r(4644),s=r(28176),l=r(63564),a=r(44296),u=r(71448),c=r(1580),p=r(73960),d=r(91952);function h(e){const t=e?.origins??[void 0];return(r,i)=>{const n=function(e,t,r){if("resource"===e?.type)return function(e,t,r){const i=(0,a.EF)(t,r);return{type:String,read:(e,t,r)=>{const n=(0,d.r)(e,t,r);return i.type===String?n:"function"==typeof i.type?new i.type({url:n}):void 0},write:{writer(t,n,l,a){if(!a?.resources)return"string"==typeof t?void(n[l]=(0,d.t)(t,a)):void(n[l]=t.write({},a));const c=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),h=(0,d.t)(c,{...a,verifyItemRelativeUrls:a?.verifyItemRelativeUrls?{writtenUrls:a.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},d.M.NO),f=i.type!==String&&(!(0,o.w)(this)||a?.origin&&this.originIdOf(r)>(0,u.CQ)(a.origin)),v={object:this,propertyName:r,value:t,targetUrl:h,dest:n,targetPropertyName:l,context:a,params:e};a?.portalItem&&h&&!(0,s.ic)(h)?f&&e?.contentAddressed?y(v):f?function(e){const{context:t,targetUrl:r,params:i,value:n,dest:o,targetPropertyName:l}=e;if(!t.portalItem)return;const a=t.portalItem.resourceFromPath(r),u=g(n,r,t),c=(0,p.e)(u),d=(0,s.wt)(a.path),h=i?.compress??!1;c===d?(t.resources&&m({...e,resource:a,content:u,compress:h,updates:t.resources.toUpdate}),o[l]=r):y(e)}(v):function({context:e,targetUrl:t,dest:r,targetPropertyName:i}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),r[i]=t)}(v):a?.portalItem&&(null==h||null!=(0,d.i)(h)||(0,s.ue)(h)||f)?y(v):n[l]=h}}}}(e,t,r);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=d.b;return{read:e,write:t}}}}(e,r,i);for(const e of t){const t=(0,c.aq)(r,e,i);for(const e in n)t[e]=n[e]}}}function y(e){const{targetUrl:t,params:r,value:o,context:a,dest:u,targetPropertyName:c}=e;if(!a.portalItem)return;const h=(0,d.p)(t),y=g(o,t,a);if(r?.contentAddressed&&"json"!==y.type)return void a.messages?.push(new i.c("persistable:contentAddressingUnsupported",`Property "${c}" is trying to serializing a resource with content of type ${y.type} with content addressing. Content addressing is only supported for json resources.`,{content:y}));const f=r?.contentAddressed&&"json"===y.type?(0,n.I)(y.jsonString):h?.filename??(0,l.g1)(),v=(0,s.kn)(r?.prefix??h?.prefix,f),b=`${v}.${(0,p.e)(y)}`;if(r?.contentAddressed&&a.resources&&"json"===y.type){const e=a.resources.toKeep.find((({resource:e})=>e.path===b))??a.resources.toAdd.find((({resource:e})=>e.path===b));if(e)return void(u[c]=e.resource.itemRelativeUrl)}const q=a.portalItem.resourceFromPath(b);(0,s.ue)(t)&&a.resources&&a.resources.pendingOperations.push((0,s.SW)(t).then((e=>{q.path=`${v}.${(0,p.e)({type:"blob",blob:e})}`,u[c]=q.itemRelativeUrl})).catch((()=>{})));const S=r?.compress??!1;a.resources&&m({...e,resource:q,content:y,compress:S,updates:a.resources.toAdd}),u[c]=q.itemRelativeUrl}function m({object:e,propertyName:t,updates:r,resource:i,content:n,compress:o}){r.push({resource:i,content:n,compress:o,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function g(e,t,r){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(r))}}},68612:(e,t,r)=>{function i(){return[1,0,0,0,1,0,0,0,1]}function n(e,t,r,i,n,o,s,l,a){return[e,t,r,i,n,o,s,l,a]}r.d(t,{IJ:()=>o,Su:()=>i,WK:()=>n});const o=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:function(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8]]},create:i,createView:function(e,t){return new Float64Array(e,t,9)},fromValues:n},Symbol.toStringTag,{value:"Module"}))},2620:(e,t,r)=>{function i(){return[0,0,0,1]}function n(e){return[e[0],e[1],e[2],e[3]]}r.d(t,{IJ:()=>o,Su:()=>i,ct:()=>n});const o=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:n,create:i,createView:function(e,t){return new Float64Array(e,t,4)},fromValues:function(e,t,r,i){return[e,t,r,i]}},Symbol.toStringTag,{value:"Module"}))},41512:(e,t,r)=>{r.d(t,{C0:()=>c,WO:()=>f,Wu:()=>m,fO:()=>h,iW:()=>p,sF:()=>T,yG:()=>u});var i=r(68612),n=r(2620),o=r(62484),s=r(47364),l=r(98472),a=r(74784);function u(e,t,r){r*=.5;const i=Math.sin(r);return e[0]=i*t[0],e[1]=i*t[1],e[2]=i*t[2],e[3]=Math.cos(r),e}function c(e,t){const r=2*Math.acos(t[3]),i=Math.sin(r/2);return i>(0,s.Au)()?(e[0]=t[0]/i,e[1]=t[1]/i,e[2]=t[2]/i):(e[0]=1,e[1]=0,e[2]=0),r}function p(e,t,r){const i=t[0],n=t[1],o=t[2],s=t[3],l=r[0],a=r[1],u=r[2],c=r[3];return e[0]=i*c+s*l+n*u-o*a,e[1]=n*c+s*a+o*l-i*u,e[2]=o*c+s*u+i*a-n*l,e[3]=s*c-i*l-n*a-o*u,e}function d(e,t,r,i){const n=t[0],o=t[1],l=t[2],a=t[3];let u,c,p,d,h,y=r[0],m=r[1],g=r[2],f=r[3];return c=n*y+o*m+l*g+a*f,c<0&&(c=-c,y=-y,m=-m,g=-g,f=-f),1-c>(0,s.Au)()?(u=Math.acos(c),p=Math.sin(u),d=Math.sin((1-i)*u)/p,h=Math.sin(i*u)/p):(d=1-i,h=i),e[0]=d*n+h*y,e[1]=d*o+h*m,e[2]=d*l+h*g,e[3]=d*a+h*f,e}function h(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e}function y(e,t){const r=t[0]+t[4]+t[8];let i;if(r>0)i=Math.sqrt(r+1),e[3]=.5*i,i=.5/i,e[0]=(t[5]-t[7])*i,e[1]=(t[6]-t[2])*i,e[2]=(t[1]-t[3])*i;else{let r=0;t[4]>t[0]&&(r=1),t[8]>t[3*r+r]&&(r=2);const n=(r+1)%3,o=(r+2)%3;i=Math.sqrt(t[3*r+r]-t[3*n+n]-t[3*o+o]+1),e[r]=.5*i,i=.5/i,e[3]=(t[3*n+o]-t[3*o+n])*i,e[n]=(t[3*n+r]+t[3*r+n])*i,e[o]=(t[3*o+r]+t[3*r+o])*i}return e}function m(e,t,r,i){const n=.5*Math.PI/180;t*=n,r*=n,i*=n;const o=Math.sin(t),s=Math.cos(t),l=Math.sin(r),a=Math.cos(r),u=Math.sin(i),c=Math.cos(i);return e[0]=o*a*c-s*l*u,e[1]=s*l*c+o*a*u,e[2]=s*a*u-o*l*c,e[3]=s*a*c+o*l*u,e}const g=a.c,f=a.s,v=a.g,b=p,q=a.d,S=a.h,w=a.l,_=a.i,x=_,j=a.j,V=j,I=a.n,T=a.a,A=a.e,N=(0,o.Su)(),M=(0,o.WK)(1,0,0),R=(0,o.WK)(0,1,0),z=(0,n.Su)(),F=(0,n.Su)(),D=(0,i.Su)();Object.freeze(Object.defineProperty({__proto__:null,add:v,calculateW:function(e,t){const r=t[0],i=t[1],n=t[2];return e[0]=r,e[1]=i,e[2]=n,e[3]=Math.sqrt(Math.abs(1-r*r-i*i-n*n)),e},conjugate:h,copy:g,dot:S,equals:A,exactEquals:T,fromEuler:m,fromMat3:y,getAxisAngle:c,identity:function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e},invert:function(e,t){const r=t[0],i=t[1],n=t[2],o=t[3],s=r*r+i*i+n*n+o*o,l=s?1/s:0;return e[0]=-r*l,e[1]=-i*l,e[2]=-n*l,e[3]=o*l,e},len:x,length:_,lerp:w,mul:b,multiply:p,normalize:I,random:function(e){const t=s.QR,r=t(),i=t(),n=t(),o=Math.sqrt(1-r),l=Math.sqrt(r);return e[0]=o*Math.sin(2*Math.PI*i),e[1]=o*Math.cos(2*Math.PI*i),e[2]=l*Math.sin(2*Math.PI*n),e[3]=l*Math.cos(2*Math.PI*n),e},rotateX:function(e,t,r){r*=.5;const i=t[0],n=t[1],o=t[2],s=t[3],l=Math.sin(r),a=Math.cos(r);return e[0]=i*a+s*l,e[1]=n*a+o*l,e[2]=o*a-n*l,e[3]=s*a-i*l,e},rotateY:function(e,t,r){r*=.5;const i=t[0],n=t[1],o=t[2],s=t[3],l=Math.sin(r),a=Math.cos(r);return e[0]=i*a-o*l,e[1]=n*a+s*l,e[2]=o*a+i*l,e[3]=s*a-n*l,e},rotateZ:function(e,t,r){r*=.5;const i=t[0],n=t[1],o=t[2],s=t[3],l=Math.sin(r),a=Math.cos(r);return e[0]=i*a+n*l,e[1]=n*a-i*l,e[2]=o*a+s*l,e[3]=s*a-o*l,e},rotationTo:function(e,t,r){const i=(0,l.j)(t,r);return i<-.999999?((0,l.b)(N,M,t),(0,l.C)(N)<1e-6&&(0,l.b)(N,R,t),(0,l.n)(N,N),u(e,N,Math.PI),e):i>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):((0,l.b)(N,t,r),e[0]=N[0],e[1]=N[1],e[2]=N[2],e[3]=1+i,I(e,e))},scale:q,set:f,setAxes:function(e,t,r,i){const n=D;return n[0]=r[0],n[3]=r[1],n[6]=r[2],n[1]=i[0],n[4]=i[1],n[7]=i[2],n[2]=-t[0],n[5]=-t[1],n[8]=-t[2],I(e,y(e,n))},setAxisAngle:u,slerp:d,sqlerp:function(e,t,r,i,n,o){return d(z,t,n,o),d(F,r,i,o),d(e,z,F,2*o*(1-o)),e},sqrLen:V,squaredLength:j,str:function(e){return"quat("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"}},Symbol.toStringTag,{value:"Module"}))},63564:(e,t,r)=>{r.d(t,{Mr:()=>s,cf:()=>o,g1:()=>n});const i="randomUUID"in crypto;function n(){if(i)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 o(){return`{${n().toUpperCase()}}`}function s(){return`{${n()}}`}},13819:(e,t,r)=>{r.d(t,{c:()=>b});var i,n=r(41948),o=r(92400),s=r(14628),l=r(40504),a=r(24296),u=r(69504),c=r(1580),p=(r(9456),r(66360),r(33600)),d=r(12552),h=r(18996);const y=(0,s.w)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=y.jsonValues.slice();(0,o.sH)(m,"orthometric");const g=(0,s.w)()({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 f=i=class extends l.am{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return y.write(e,t,r)}readHeightModel(e,t,r){return y.read(e)||(r?.messages&&r.messages.push(function(e,t){return new u.c("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return g.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,a.oG)(e)||g.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({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,a._2)(t);return new i({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 i;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new u.c("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,n._)([(0,c.qq)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal"}}}})],f.prototype,"heightModel",void 0),(0,n._)([(0,h.G)("web-scene","heightModel")],f.prototype,"writeHeightModel",null),(0,n._)([(0,p.E)(["web-scene","service"],"heightModel")],f.prototype,"readHeightModel",null),(0,n._)([(0,c.qq)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g.jsonValues,write:g.write}}}})],f.prototype,"heightUnit",void 0),(0,n._)([(0,p.E)("web-scene","heightUnit")],f.prototype,"readHeightUnit",null),(0,n._)([(0,p.E)("service","heightUnit")],f.prototype,"readHeightUnitService",null),(0,n._)([(0,c.qq)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],f.prototype,"vertCRS",void 0),(0,n._)([(0,p.E)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],f.prototype,"readVertCRS",null),f=i=(0,n._)([(0,d.c)("esri.geometry.HeightModelInfo")],f);const b=f},81436:(e,t,r)=>{r.d(t,{c:()=>b});var i=r(41948),n=(r(60708),r(2600)),o=r(20744),s=r(77860),l=r(22156),a=r(95800),u=r(66360),c=r(10860),p=r(28176),d=r(1580),h=(r(9456),r(72052),r(12552)),y=r(6220),m=r(95247),g=r(56156);let f=0,v=class extends(s.c.EventedMixin((0,l.MR)(a.c))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new m.c(-180,-90,180,90,g.c.WGS84),this.id=Date.now().toString(16)+"-layer-"+f++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=g.c.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await r.e(9232).then(r.bind(r,69232))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await r.e(2259).then(r.bind(r,12259));try{return await i(t)}catch(e){const r=t?.portalItem,i=r?.id||"unset",n=r?.portal?.url||y.default.portalUrl;throw u.c.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,c.mA)(e)||u.c.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,p.as)(this.url)}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.c)(e,{query:{f:"json"},responseType:"json"})).data;throw new o.c("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,d.qq)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,i._)([(0,d.qq)({type:m.c})],v.prototype,"fullExtent",void 0),(0,i._)([(0,d.qq)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,i._)([(0,d.qq)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,i._)([(0,d.qq)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,i._)([(0,d.qq)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,i._)([(0,d.qq)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,i._)([(0,d.qq)({clonable:!1})],v.prototype,"parent",void 0),(0,i._)([(0,d.qq)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,i._)([(0,d.qq)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,i._)([(0,d.qq)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,i._)([(0,d.qq)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,i._)([(0,d.qq)({type:g.c})],v.prototype,"spatialReference",void 0),(0,i._)([(0,d.qq)({type:String})],v.prototype,"title",void 0),(0,i._)([(0,d.qq)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,i._)([(0,d.qq)()],v.prototype,"url",void 0),(0,i._)([(0,d.qq)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,i._)([(0,h.c)("esri.layers.Layer")],v);const b=v},59496:(e,t,r)=>{r.r(t),r.d(t,{default:()=>$e});var i=r(41948),n=r(82692),o=r(2952),s=r(20744),l=r(66360),a=r(26496),u=r(10860),c=r(1580),p=r(53368),d=(r(72052),r(9456),r(33600)),h=r(12552),y=r(98472),m=r(62484),g=r(95247),f=r(81436),v=r(38724),b=r(16660),q=r(28584),S=r(66576),w=r(98768),_=r(3116),x=r(87072),j=r(48212),V=r(21488),I=r(600),T=r(3856),A=r(27368),N=r(40504),M=r(90636),R=r(41512),z=r(2620),F=r(47364);const D=(0,m.Su)(),P=(0,z.Su)(),E=(0,z.Su)(),O=(0,z.Su)(),U=(0,m.WK)(0,0,1),L=(0,m.WK)(0,1,0),C=(0,m.WK)(1,0,0);function k(e){(0,y.c)(D,e),(0,y.n)(D,D);const t=Math.atan2(D[1],D[0]),r=(0,R.yG)((0,z.Su)(),U,-t);(0,y.r)(D,D,r);const i=-1*Math.atan2(D[2],D[0]);return[(0,F.Yf)(t)+270,(0,F.Yf)(i)+90]}function B(e,t){return(0,R.yG)(E,U,(0,F.Af)(e-270)),(0,R.yG)(O,L,(0,F.Af)(t-90)),(0,R.iW)(P,E,O),(0,y.c)(D,C),(0,y.r)(D,D,P),(0,y.n)(D,D),[D[0],D[1],D[2]]}var W=r(33392);let $=class extends((0,T.q)(N.am)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=k(this.normal);return A.sD.normalize((0,p.Oe)(e),0,!0)}set orientation(e){const t=B(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=k(this.normal);return A.sD.normalize((0,p.Oe)(t),0,!0)}set tilt(e){const t=B(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};(0,i._)([(0,c.qq)({type:Boolean,json:{write:!0}})],$.prototype,"enabled",void 0),(0,i._)([(0,c.qq)({type:String,json:{write:!0}})],$.prototype,"label",void 0),(0,i._)([(0,c.qq)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,W.W)((e=>A.sD.normalize((0,p.Oe)(e),0,!0)))],$.prototype,"orientation",null),(0,i._)([(0,c.qq)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,W.W)((e=>A.sD.normalize((0,p.Oe)(e),0,!0)))],$.prototype,"tilt",null),(0,i._)([(0,c.qq)({type:[Number],json:{write:!0}})],$.prototype,"normal",void 0),(0,i._)([(0,c.qq)({type:[Number],json:{write:!0}})],$.prototype,"point",void 0),$=(0,i._)([(0,h.c)("esri.layers.voxel.VoxelSlice")],$);const G=$;var H=r(91952);let J=class extends((0,T.q)(N.am)){constructor(){super(...arguments),this.enabled=!0,this.href=null,this.id=null,this.label="",this.normal=null,this.point=null,this.sizeInPixel=null,this.slices=null,this.timeId=0,this.variableId=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=k(this.normal);return A.sD.normalize((0,p.Oe)(e),0,!0)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=k(this.normal);return A.sD.normalize((0,p.Oe)(t),0,!0)}};(0,i._)([(0,c.qq)({type:Boolean,json:{default:!0,write:!0}})],J.prototype,"enabled",void 0),(0,i._)([(0,c.qq)({type:String,json:{origins:{service:{read:H.r}},write:{enabled:!0,isRequired:!0}}}),(0,M.O)({origins:["web-scene"],type:"resource",prefix:"sections",compress:!0})],J.prototype,"href",void 0),(0,i._)([(0,c.qq)({type:p.Ab,json:{write:{enabled:!0,isRequired:!0}}})],J.prototype,"id",void 0),(0,i._)([(0,c.qq)({type:String,json:{write:!0}})],J.prototype,"label",void 0),(0,i._)([(0,c.qq)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],J.prototype,"orientation",null),(0,i._)([(0,c.qq)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],J.prototype,"tilt",null),(0,i._)([(0,c.qq)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],J.prototype,"normal",void 0),(0,i._)([(0,c.qq)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],J.prototype,"point",void 0),(0,i._)([(0,c.qq)({type:[p.Ab],json:{write:{enabled:!0,isRequired:!0}}})],J.prototype,"sizeInPixel",void 0),(0,i._)([(0,c.qq)({type:[G],json:{write:!0}})],J.prototype,"slices",void 0),(0,i._)([(0,c.qq)({type:p.Ab,json:{default:0,write:!0}})],J.prototype,"timeId",void 0),(0,i._)([(0,c.qq)({type:p.Ab,json:{write:{enabled:!0,isRequired:!0}}})],J.prototype,"variableId",void 0),J=(0,i._)([(0,h.c)("esri.layers.voxel.VoxelSection")],J);const K=J;let Y=class extends N.am{constructor(){super(...arguments),this.diffuseFactor=.5,this.specularFactor=.5}};(0,i._)([(0,c.qq)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],Y.prototype,"diffuseFactor",void 0),(0,i._)([(0,c.qq)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],Y.prototype,"specularFactor",void 0),Y=(0,i._)([(0,h.c)("esri.layers.voxel.VoxelSimpleShading")],Y);const Q=Y;let X=class extends N.am{constructor(){super(...arguments),this.continuity=null,this.hasNoData=!1,this.noData=0,this.offset=0,this.scale=1,this.type=null}};(0,i._)([(0,c.qq)({type:["discrete","continuous"],json:{write:!0}})],X.prototype,"continuity",void 0),(0,i._)([(0,c.qq)({type:Boolean,json:{write:!0}})],X.prototype,"hasNoData",void 0),(0,i._)([(0,c.qq)({type:Number,json:{write:!0}})],X.prototype,"noData",void 0),(0,i._)([(0,c.qq)({type:Number,json:{write:!0}})],X.prototype,"offset",void 0),(0,i._)([(0,c.qq)({type:Number,json:{write:!0}})],X.prototype,"scale",void 0),(0,i._)([(0,c.qq)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],X.prototype,"type",void 0),X=(0,i._)([(0,h.c)("esri.layers.voxel.VoxelFormat")],X);const Z=X;let ee=class extends N.am{constructor(){super(...arguments),this.id=null,this.description="",this.name=null,this.originalFormat=null,this.renderingFormat=null,this.unit="",this.volumeId=0,this.type=null}};(0,i._)([(0,c.qq)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],ee.prototype,"id",void 0),(0,i._)([(0,c.qq)({type:String,json:{write:!0}})],ee.prototype,"description",void 0),(0,i._)([(0,c.qq)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],ee.prototype,"name",void 0),(0,i._)([(0,c.qq)({type:Z,json:{write:!0}})],ee.prototype,"originalFormat",void 0),(0,i._)([(0,c.qq)({type:Z,json:{write:{enabled:!0,isRequired:!0}}})],ee.prototype,"renderingFormat",void 0),(0,i._)([(0,c.qq)({type:String,json:{write:!0}})],ee.prototype,"unit",void 0),(0,i._)([(0,c.qq)({type:Number,json:{write:!0}})],ee.prototype,"volumeId",void 0),(0,i._)([(0,c.qq)({type:["stc-hot-spot-results","stc-cluster-outlier-results","stc-estimated-bin","generic-nearest-interpolated"],json:{write:!0}})],ee.prototype,"type",void 0),ee=(0,i._)([(0,h.c)("esri.layers.voxel.VoxelVariable")],ee);const te=ee;var re=r(62088),ie=r(44728);let ne=class extends((0,T.q)(N.am)){constructor(){super(...arguments),this.color=ie.c.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label="",this.colorLocked=!1}};(0,i._)([(0,c.qq)({type:ie.c,json:{type:[p.Ab],write:{enabled:!0,isRequired:!0}}})],ne.prototype,"color",void 0),(0,i._)([(0,c.qq)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],ne.prototype,"value",void 0),(0,i._)([(0,c.qq)({type:Boolean,json:{default:!0,write:!0}})],ne.prototype,"enabled",void 0),(0,i._)([(0,c.qq)({type:String,json:{write:!0}})],ne.prototype,"label",void 0),(0,i._)([(0,c.qq)({type:Boolean,json:{default:!1,write:!0}})],ne.prototype,"colorLocked",void 0),ne=(0,i._)([(0,h.c)("esri.layers.voxel.VoxelIsosurface")],ne);const oe=ne;var se=r(30604),le=r(53648);let ae=class extends((0,T.q)(N.am)){constructor(){super(...arguments),this.color=null,this.position=0}};(0,i._)([(0,c.qq)({type:ie.c,json:{type:[p.Ab],write:{enabled:!0,isRequired:!0}}})],ae.prototype,"color",void 0),(0,i._)([(0,c.qq)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],ae.prototype,"position",void 0),ae=(0,i._)([(0,h.c)("esri.layers.voxel.VoxelColorStop")],ae);const ue=ae;let ce=class extends((0,T.q)(N.am)){constructor(){super(...arguments),this.opacity=1,this.position=0}};(0,i._)([(0,c.qq)({type:Number,json:{name:"alpha",write:{enabled:!0,isRequired:!0}}})],ce.prototype,"opacity",void 0),(0,i._)([(0,c.qq)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],ce.prototype,"position",void 0),ce=(0,i._)([(0,h.c)("esri.layers.voxel.VoxelOpacityStop")],ce);const pe=ce;let de=class extends((0,T.q)(N.am)){constructor(){super(...arguments),this.enabled=!1,this.range=null}};(0,i._)([(0,c.qq)({type:Boolean,json:{default:!1,write:!0}})],de.prototype,"enabled",void 0),(0,i._)([(0,c.qq)({type:[Number],json:{write:!0}})],de.prototype,"range",void 0),de=(0,i._)([(0,h.c)("esri.layers.voxel.VoxelRangeFilter")],de);const he=de;var ye,me;(me=ye||(ye={}))[me.Color=1]="Color",me[me.Alpha=2]="Alpha",me[me.Both=3]="Both";let ge=class extends((0,T.q)(N.am)){constructor(e){super(e),this.interpolation=null,this.stretchRange=null,this.rangeFilter=null,this._colorMapSize=256,this.colorStops=new(o.c.ofType(ue)),this.opacityStops=new(o.c.ofType(pe))}set colorStops(e){this._set("colorStops",(0,se.q)(e,this._get("colorStops"),o.c.ofType(ue)))}set opacityStops(e){this._set("opacityStops",(0,se.q)(e,this._get("opacityStops"),o.c.ofType(pe)))}getPreviousNext(e,t,r){let i=e;for(;--i>0&&t[i].type!==r&&t[i].type!==ye.Both;);let n=e;const o=t.length;for(;++n<o&&t[n].type!==r&&t[n].type!==ye.Both;);return[i,n]}get rasterizedTransferFunction(){const e=[];if(this.colorStops.length<2)return e;const t=[],r=[];for(const t of this.colorStops){if(!t.color)return e;r.push({color:{r:t.color.r,g:t.color.g,b:t.color.b,a:Math.round(255*(1-t.color.a))},position:t.position,type:ye.Color})}if(0===this.opacityStops.length)for(const e of r)t.push({color:e.color,position:e.position});else{for(const e of this.opacityStops){const t=(0,le.qk)(e.position,0,1),i=Math.round(255*(0,le.qk)(1-e.opacity,0,1));let n=!1;for(const e of r)if(e.type===ye.Color&&Math.abs(e.position-t)<1e-5){e.color.a=i,e.type=ye.Both,n=!0;break}n||r.push({color:{r:0,g:0,b:0,a:i},position:e.position,type:ye.Alpha})}r.sort(((e,t)=>e.position<t.position?-1:1));const e=r.length;for(let t=0;t<e;++t){const i=r[t];if(i.type!==ye.Both)if(i.type===ye.Color){const[n,o]=this.getPreviousNext(t,r,ye.Alpha);if(-1!==n&&o!==e){const e=(i.position-r[n].position)/(r[o].position-r[n].position);i.color.a=Math.round((0,le.Cq)(r[n].color.a,r[o].color.a,e))}else i.color.a=-1!==n?r[n].color.a:r[o].color.a}else{const[n,o]=this.getPreviousNext(t,r,ye.Color);if(-1!==n&&o!==e){const e=(i.position-r[n].position)/(r[o].position-r[n].position),t=r[n].color,s=r[o].color;ve.forEach((r=>{i.color[r]=Math.round((0,le.Cq)(t[r],s[r],e))}))}else-1!==n?ve.forEach((e=>{i.color[e]=r[n].color[e]})):ve.forEach((e=>{i.color[e]=r[o].color[e]}))}}for(const e of r)t.push({color:e.color,position:e.position})}t[0].position=0,t[t.length-1].position=1;let i=0,n=1;for(let r=0;r<this._colorMapSize;++r){const o=r/this._colorMapSize;for(;o>t[n].position;)i=n++;const s=(o-t[i].position)/(t[n].position-t[i].position),l=t[i].color,a=t[n].color,u=new ie.c;ve.forEach((e=>{u[e]=Math.round((0,le.Cq)(l[e],a[e],s))})),u.a=(0,le.qk)(1-(0,le.Cq)(l.a,a.a,s)/255,0,1),e.push(u)}return e}getColorForContinuousDataValue(e,t){const r=this.rasterizedTransferFunction;if(this.colorStops.length<2||!Array.isArray(this.stretchRange)||this.stretchRange.length<2||r.length<256)return null;let i=this.stretchRange[0],n=this.stretchRange[1];if(i>n){const e=i;i=n,n=e}e=(0,le.qk)(e,i,n);const o=r[Math.round((e-i)/(n-i)*(this._colorMapSize-1))].clone();return t||(o.a=1),o}};(0,i._)([(0,c.qq)({type:["linear","nearest"],json:{write:!0}})],ge.prototype,"interpolation",void 0),(0,i._)([(0,c.qq)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],ge.prototype,"stretchRange",void 0),(0,i._)([(0,c.qq)({type:o.c.ofType(ue),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.colorStops&&this.colorStops.length>0}}}}})],ge.prototype,"colorStops",null),(0,i._)([(0,c.qq)({type:o.c.ofType(pe),json:{read:{source:"alphaStops"},write:{enabled:!0,target:"alphaStops",overridePolicy(){return{enabled:!!this.opacityStops&&this.opacityStops.length>0}}}}})],ge.prototype,"opacityStops",null),(0,i._)([(0,c.qq)({type:he,json:{write:!0}})],ge.prototype,"rangeFilter",void 0),(0,i._)([(0,c.qq)({type:[ie.c],clonable:!1,json:{read:!1}})],ge.prototype,"rasterizedTransferFunction",null),ge=(0,i._)([(0,h.c)("esri.layers.voxel.VoxelTransferFunctionStyle")],ge);const fe=ge,ve=["r","g","b"];let be=class extends((0,T.q)(N.am)){constructor(){super(...arguments),this.color=ie.c.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label=""}};(0,i._)([(0,c.qq)({type:ie.c,json:{type:[p.Ab],write:{enabled:!0,isRequired:!0}}})],be.prototype,"color",void 0),(0,i._)([(0,c.qq)({type:p.Ab,json:{write:{enabled:!0,isRequired:!0}}})],be.prototype,"value",void 0),(0,i._)([(0,c.qq)({type:Boolean,json:{default:!0,write:!0}})],be.prototype,"enabled",void 0),(0,i._)([(0,c.qq)({type:String,json:{write:!0}})],be.prototype,"label",void 0),be=(0,i._)([(0,h.c)("esri.layers.voxel.VoxelUniqueValue")],be);const qe=be;var Se;let we=Se=class extends N.am{constructor(e){super(e),this.variableId=0,this.label="",this.transferFunction=null,this.uniqueValues=null,this.isosurfaces=null,this.uniqueValues=new(o.c.ofType(qe)),this.isosurfaces=new(o.c.ofType(oe))}clone(){return new Se({variableId:this.variableId,label:this.label,transferFunction:(0,re.ct)(this.transferFunction),uniqueValues:(0,re.ct)(this.uniqueValues),isosurfaces:(0,re.ct)(this.isosurfaces)})}};(0,i._)([(0,c.qq)({type:p.Ab,json:{write:{enabled:!0,isRequired:!0}}})],we.prototype,"variableId",void 0),(0,i._)([(0,c.qq)({type:String,json:{write:!0}})],we.prototype,"label",void 0),(0,i._)([(0,c.qq)({type:fe,json:{write:{enabled:!0,overridePolicy(){return{enabled:!this.uniqueValues||this.uniqueValues.length<1}}}}})],we.prototype,"transferFunction",void 0),(0,i._)([(0,c.qq)({type:o.c.ofType(qe),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.uniqueValues&&this.uniqueValues.length>0}}}}})],we.prototype,"uniqueValues",void 0),(0,i._)([(0,c.qq)({type:o.c.ofType(oe),json:{write:{enabled:!0,overridePolicy(){const e=!this.uniqueValues||this.uniqueValues.length<1,t=!!this.isosurfaces&&this.isosurfaces.length>0;return{enabled:e&&t}}}}})],we.prototype,"isosurfaces",void 0),we=Se=(0,i._)([(0,h.c)("esri.layers.voxel.VoxelVariableStyle")],we);const _e=we;var xe=r(67776),je=r(56156),Ve=r(60544);let Ie=class extends N.am{constructor(){super(...arguments),this.values=null}};(0,i._)([(0,c.qq)({type:[Number],json:{write:!0}})],Ie.prototype,"values",void 0),Ie=(0,i._)([(0,h.c)("esri.layers.voxel.VoxelIrregularSpacing")],Ie);const Te=Ie;let Ae=class extends N.am{constructor(){super(...arguments),this.scale=1,this.offset=0}};(0,i._)([(0,c.qq)({type:Number,json:{write:!0}})],Ae.prototype,"scale",void 0),(0,i._)([(0,c.qq)({type:Number,json:{write:!0}})],Ae.prototype,"offset",void 0),Ae=(0,i._)([(0,h.c)("esri.layers.voxel.VoxelRegularSpacing")],Ae);const Ne=Ae;let Me=class extends N.am{constructor(){super(...arguments),this.irregularSpacing=null,this.isPositiveUp=!0,this.isWrappedDateLine=!1,this.label=null,this.name=null,this.quantity=null,this.regularSpacing=null,this.size=0,this.unit=null}get isRegular(){return(null==this.irregularSpacing||void 0===this.irregularSpacing)&&null!==this.regularSpacing}getRange(){return this.isRegular?[this.regularSpacing.offset,this.regularSpacing.offset+this.regularSpacing.scale*(this.size-1)]:Array.isArray(this.irregularSpacing?.values)&&this.irregularSpacing.values.length>1?[this.irregularSpacing.values[0],this.irregularSpacing.values[this.irregularSpacing.values.length-1]]:[0,0]}};(0,i._)([(0,c.qq)({type:Te,json:{write:!0}})],Me.prototype,"irregularSpacing",void 0),(0,i._)([(0,c.qq)({type:Boolean,json:{write:!0}})],Me.prototype,"isPositiveUp",void 0),(0,i._)([(0,c.qq)({type:Boolean,json:{write:!0}})],Me.prototype,"isWrappedDateLine",void 0),(0,i._)([(0,c.qq)({type:String,json:{write:!0}})],Me.prototype,"label",void 0),(0,i._)([(0,c.qq)({type:String,json:{write:!0}})],Me.prototype,"name",void 0),(0,i._)([(0,c.qq)({type:String,json:{write:!0}})],Me.prototype,"quantity",void 0),(0,i._)([(0,c.qq)({type:Ne,json:{write:!0}})],Me.prototype,"regularSpacing",void 0),(0,i._)([(0,c.qq)({type:Number,json:{write:!0}})],Me.prototype,"size",void 0),(0,i._)([(0,c.qq)({type:String,json:{write:!0}})],Me.prototype,"unit",void 0),(0,i._)([(0,c.qq)({type:Boolean,json:{read:!1}})],Me.prototype,"isRegular",null),Me=(0,i._)([(0,h.c)("esri.layers.voxel.VoxelDimension")],Me);const Re=Me;let ze=class extends N.am{constructor(e){super(e),this.id=0,this.dimensions=null,this.spatialReference=je.c.WGS84}get zDimension(){if(!this.dimensions)return-1;if(!Array.isArray(this.dimensions))return-1;if(4!==this.dimensions.length)return-1;for(let e=2;e<4;++e)if(this.dimensions[e].size>0)return e;return-1}get isValid(){return!(!this.dimensions||!Array.isArray(this.dimensions)||4!==this.dimensions.length||this.dimensions[0].size<1||this.dimensions[1].size<1||-1===this.zDimension||this.dimensions[this.zDimension].size<1)}get originInLayerSpace3D(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),r=this.dimensions[2],i=r.isRegular?r.getRange():[0,r.size];return[e[0],t[0],i[0]]}get voxelSizeInLayerSpaceSigned(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),r=this.dimensions[2],i=r.isRegular?r.getRange():[0,r.size],n=[this.sizeInVoxels[0],this.sizeInVoxels[1],this.sizeInVoxels[2]];for(let e=0;e<3;++e)n[e]<2?n[e]=1:n[e]-=1;return r.isRegular&&!r.isPositiveUp&&(n[2]*=-1),[(e[1]-e[0])/n[0],(t[1]-t[0])/n[1],(i[1]-i[0])/n[2]]}get volumeType(){if(this.isValid){const e=this.dimensions[2].size>0,t=this.dimensions[3].size>0;if(!e&&t)return"xyt";if(e&&t)return"xyzt"}return"xyz"}get sizeInVoxels(){if(!this.isValid)return[0,0,0];const e=this.zDimension;return[this.dimensions[0].size,this.dimensions[1].size,this.dimensions[e].size]}computeVoxelSpaceLocation(e){if(!this.isValid)return[0,0,0];if("xyt"===this.volumeType)return l.c.getLogger(this).error("computeVoxelSpacePosition cannot be used with XYT volumes."),[0,0,0];if(!(0,Ve.yK)(this.spatialReference,e.spatialReference))return l.c.getLogger(this).error("pos argument should have the same spatial reference as the VoxelLayer."),[0,0,0];const t=(0,m.WK)(e.x,e.y,e.z??0);(0,y.f)(t,t,this.originInLayerSpace3D),(0,y.G)(t,t,this.voxelSizeInLayerSpaceSigned);const r=this.dimensions[this.zDimension];if(!r.isRegular&&Array.isArray(r.irregularSpacing?.values)&&r.irregularSpacing.values.length>1){const i=e.z??0,n=r.irregularSpacing.values,o=r.isPositiveUp?1:-1,s=n.reduce(((e,t)=>Math.abs(o*t-i)<Math.abs(o*e-i)?t:e));for(let e=0;e<n.length;++e)if(n[e]===s){t[2]=e;break}}return[t[0],t[1],t[2]]}computeLayerSpaceLocation(e){if(!this.isValid)return new xe.c({x:0,y:0,spatialReference:this.spatialReference});const t=(0,m.eu)(e);if((0,y.A)(t,t,this.voxelSizeInLayerSpaceSigned),(0,y.g)(t,t,this.originInLayerSpace3D),"xyt"===this.volumeType)return new xe.c({x:t[0],y:t[1],spatialReference:this.spatialReference});const r=this.dimensions[this.zDimension];return r.isRegular||Array.isArray(r.irregularSpacing?.values)&&(e[2]<0?t[2]=r.irregularSpacing.values[0]:e[2]<r.irregularSpacing.values.length?t[2]=r.irregularSpacing.values[e[2]]:t[2]=r.irregularSpacing.values[r.irregularSpacing.values.length-1],r.isPositiveUp||(t[2]*=-1)),new xe.c({x:t[0],y:t[1],z:t[2],spatialReference:this.spatialReference})}};(0,i._)([(0,c.qq)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],ze.prototype,"id",void 0),(0,i._)([(0,c.qq)({type:[Re],json:{write:{enabled:!0,isRequired:!0}}})],ze.prototype,"dimensions",void 0),(0,i._)([(0,c.qq)({type:je.c,json:{read:{enabled:!1}}})],ze.prototype,"spatialReference",void 0),(0,i._)([(0,c.qq)({type:Number,json:{read:!1}})],ze.prototype,"zDimension",null),(0,i._)([(0,c.qq)({type:[Boolean],json:{read:!1}})],ze.prototype,"isValid",null),(0,i._)([(0,c.qq)({type:[Number],json:{read:!1}})],ze.prototype,"originInLayerSpace3D",null),(0,i._)([(0,c.qq)({type:[Number],json:{read:!1}})],ze.prototype,"voxelSizeInLayerSpaceSigned",null),(0,i._)([(0,c.qq)({type:["xyz","xyzt","xyt"],json:{read:{enabled:!1}}})],ze.prototype,"volumeType",null),(0,i._)([(0,c.qq)({type:[Number],json:{read:!1}})],ze.prototype,"sizeInVoxels",null),ze=(0,i._)([(0,h.c)("esri.layers.voxel.VoxelVolume")],ze);const Fe=ze;var De;let Pe=De=class extends N.am{constructor(){super(...arguments),this.apronWidth=1,this.brickSize=[32,32,32],this.maxLodLevel=0,this.nodeSize=[4,4,4]}isValid(){const e=new De;return e.apronWidth===this.apronWidth&&e.maxLodLevel===this.maxLodLevel&&!!this.brickSize&&!!this.nodeSize&&!(!Array.isArray(this.brickSize)||!Array.isArray(this.nodeSize))&&3===this.brickSize.length&&3===this.nodeSize.length&&32===this.brickSize[0]&&32===this.brickSize[1]&&32===this.brickSize[2]&&4===this.nodeSize[0]&&4===this.nodeSize[1]&&4===this.nodeSize[2]}};(0,i._)([(0,c.qq)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Pe.prototype,"apronWidth",void 0),(0,i._)([(0,c.qq)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Pe.prototype,"brickSize",void 0),(0,i._)([(0,c.qq)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Pe.prototype,"maxLodLevel",void 0),(0,i._)([(0,c.qq)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Pe.prototype,"nodeSize",void 0),Pe=De=(0,i._)([(0,h.c)("esri.layers.voxel.VoxelVolumeIndex")],Pe);const Ee=Pe;let Oe=class extends((0,T.q)(N.am)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=k(this.normal);return A.sD.normalize((0,p.Oe)(e),0,!0)}set orientation(e){const t=B(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=k(this.normal);return A.sD.normalize((0,p.Oe)(t),0,!0)}set tilt(e){const t=B(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};(0,i._)([(0,c.qq)({type:Boolean,json:{default:!0,write:!0}})],Oe.prototype,"enabled",void 0),(0,i._)([(0,c.qq)({type:String,json:{write:!0}})],Oe.prototype,"label",void 0),(0,i._)([(0,c.qq)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,W.W)((e=>A.sD.normalize((0,p.Oe)(e),0,!0)))],Oe.prototype,"orientation",null),(0,i._)([(0,c.qq)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,W.W)((e=>A.sD.normalize((0,p.Oe)(e),0,!0)))],Oe.prototype,"tilt",null),(0,i._)([(0,c.qq)({type:[Number],json:{write:!0}})],Oe.prototype,"normal",void 0),(0,i._)([(0,c.qq)({type:[Number],json:{write:!0}})],Oe.prototype,"point",void 0),Oe=(0,i._)([(0,h.c)("esri.layers.voxel.VoxelDynamicSection")],Oe);const Ue=Oe;var Le;let Ce=Le=class extends N.am{constructor(e){super(e),this.volumeId=0,this.verticalExaggeration=1,this.exaggerationMode="scale-height",this.verticalOffset=0,this.slices=new(o.c.ofType(G)),this.dynamicSections=new(o.c.ofType(Ue))}set slices(e){this._set("slices",(0,se.q)(e,this._get("slices"),o.c.ofType(G)))}set dynamicSections(e){this._set("dynamicSections",(0,se.q)(e,this._get("dynamicSections"),o.c.ofType(Ue)))}clone(){return new Le({volumeId:this.volumeId,verticalExaggeration:this.verticalExaggeration,exaggerationMode:this.exaggerationMode,verticalOffset:this.verticalOffset,slices:(0,re.ct)(this.slices),dynamicSections:(0,re.ct)(this.dynamicSections)})}};(0,i._)([(0,c.qq)({type:p.Ab,json:{write:{enabled:!0,isRequired:!0}}})],Ce.prototype,"volumeId",void 0),(0,i._)([(0,c.qq)({type:Number,json:{default:1,write:!0}})],Ce.prototype,"verticalExaggeration",void 0),(0,i._)([(0,c.qq)({type:["scale-position","scale-height"],json:{default:"scale-height",write:!0}})],Ce.prototype,"exaggerationMode",void 0),(0,i._)([(0,c.qq)({type:Number,json:{default:0,write:!0}})],Ce.prototype,"verticalOffset",void 0),(0,i._)([(0,c.qq)({type:o.c.ofType(G),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.slices&&this.slices.length>0}}}}})],Ce.prototype,"slices",null),(0,i._)([(0,c.qq)({type:o.c.ofType(Ue),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.dynamicSections&&this.dynamicSections.length>0}}}}})],Ce.prototype,"dynamicSections",null),Ce=Le=(0,i._)([(0,h.c)("esri.layers.voxel.VoxelVolumeStyle")],Ce);const ke=Ce;var Be=r(65548);let We=class extends((0,x.G6)((0,b.u)((0,S.Y)((0,w.K)((0,_.I)((0,a.U)((0,q.G)((0,v.C)(f.c))))))))){constructor(e){super(e),this.serviceRoot="",this.operationalLayerType="Voxel",this.legendEnabled=!0,this.title=null,this.sections=null,this.currentVariableId=0,this.volumeStyles=null,this.renderMode="volume",this.variableStyles=null,this.enableSlices=!0,this.enableSections=!0,this.enableDynamicSections=!0,this.enableIsosurfaces=!0,this.shading=new Q,this.opacity=1,this.variables=new o.c,this.volumes=new o.c,this.index=null,this.minScale=0,this.maxScale=0,this.type="voxel",this.version={major:Number.NaN,minor:Number.NaN,versionString:""},this.fullExtent=null,this.popupEnabled=!1,this.test=null,this.volumeStyles=new(o.c.ofType(ke)),this.variableStyles=new(o.c.ofType(_e)),this.sections=new(o.c.ofType(K))}normalizeCtorArgs(e){return e?.constantUpscaling&&(this.test={constantUpscaling:!0},delete e.constantUpscaling),e}set url(e){this._set("url",(0,j.oR)(e,l.c.getLogger(this)))}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(u.CE).then((()=>this._fetchService(t))).then((()=>this.serviceRoot=this.url));return this.addResolvingPromise(r),Promise.resolve(this)}read(e,t){super.read(e,t);for(const e of this.volumes)e.spatialReference=this.spatialReference}readVersion(e,t){return super.parseVersionString(e)}validateLayer(e){if(e.layerType&&e.layerType!==this.operationalLayerType)throw new s.c("voxel-layer:layer-type-not-supported","VoxelLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor)||this.version.major<3)throw new s.c("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"});if(this.version.major>3)throw new s.c("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"})}readFullExtent(e,t,r){if(null!=e&&"object"==typeof e){const i=g.c.fromJSON(e,r);if(0===i.zmin&&0===i.zmax&&Array.isArray(t.volumes)){const e=Fe.fromJSON(t.volumes[0]);if(e.isValid&&"xyt"!==e.volumeType){const t=e.dimensions[2];if(t.isRegular){let e=t.regularSpacing.offset,r=t.regularSpacing.offset+t.regularSpacing.scale*(t.size-1);if(e>r){const t=e;e=r,r=t}i.zmin=e,i.zmax=r}}}return i}return null}get voxelFields(){const e=[new I.c({name:"Voxel.ServiceValue",alias:"Value",domain:null,editable:!1,length:128,type:"string"}),new I.c({name:"Voxel.ServiceVariableLabel",alias:"Variable",domain:null,editable:!1,length:128,type:"string"}),new I.c({name:"Voxel.Position",alias:"Voxel Position",domain:null,editable:!1,length:128,type:"string"})],t=this.getVolume(null);if(null!=t){if("xyzt"===t.volumeType||"xyt"===t.volumeType){const t=new I.c({name:"Voxel.ServiceLocalTime",alias:"Local Time",domain:null,editable:!1,length:128,type:"string"});e.push(t);const r=new I.c({name:"Voxel.ServiceNativeTime",alias:"Native Time",domain:null,editable:!1,length:128,type:"string"});e.push(r)}if("xyt"!==t.volumeType){const t=new I.c({name:"Voxel.ServiceDepth",alias:"Depth",domain:null,editable:!1,length:128,type:"string"});e.push(t)}}return e}get popupTemplate(){return this.loaded?this.createPopupTemplate():null}get defaultPopupTemplate(){return this.createPopupTemplate()}createPopupTemplate(e){const t=this.voxelFields,r=this.title;return(0,Be.Ap)({fields:t,title:r},e)}getConfiguration(){const e={layerType:this.operationalLayerType,version:this.version.versionString,name:this.title,spatialReference:this.spatialReference,fullExtent:this.fullExtent,volumes:this.volumes.toJSON(),variables:this.variables.toJSON(),index:this.index?.toJSON(),sections:this.getSections(),style:{volumeStyles:this.getVolumeStyles(),currentVariableId:this.currentVariableId,renderMode:this.renderMode,variableStyles:this.getVariableStyles(),enableSections:this.enableSections,enableDynamicSections:this.enableDynamicSections,enableIsosurfaces:this.enableIsosurfaces,enableSlices:this.enableSlices,shading:this.shading}};return e.index&&this.index?.isValid()?JSON.stringify(e):""}getVariableStyle(e){let t=-1;if(t=null!=e?e:this.currentVariableId,!this.variableStyles||-1===t)return null;const r=this.variableStyles.findIndex((e=>e.variableId===t));return r<0?null:this.variableStyles.at(r)}getVariable(e){let t=-1;if(t=null!=e?e:this.currentVariableId,!this.variables||-1===t)return null;const r=this.variables.findIndex((e=>e.id===t));return r<0?null:this.variables.at(r)}getVolume(e){const t=this.getVariable(e);return null!=t?this.volumes.find((({id:e})=>e===t.volumeId)):null}getVolumeStyle(e){const t=this.getVariable(e);return null!=t?this.volumeStyles.find((({volumeId:e})=>e===t.volumeId)):null}getColorForContinuousDataValue(e,t,r){const i=this.getVariable(e);if(null==i||"continuous"!==i.renderingFormat?.continuity)return null;if(!this.variableStyles)return null;const n=this.variableStyles.findIndex((t=>t.variableId===e));if(n<0)return null;const o=this.variableStyles.at(n);return o?.transferFunction?o.transferFunction.getColorForContinuousDataValue(t,r):null}getSections(){const e=[];for(const t of this.sections)e.push(new K({enabled:t.enabled,href:t.href,id:t.id,label:t.label,normal:t.normal,point:t.point,sizeInPixel:t.sizeInPixel,slices:t.slices,timeId:t.timeId,variableId:t.variableId}));return e}getVariableStyles(){const e=[];for(const t of this.variableStyles){const r=this._getVariable(t);if(null!=r){const i=t.clone();i.isosurfaces.length>4&&(i.isosurfaces=i.isosurfaces.slice(0,3),l.c.getLogger(this).error("A maximum of 4 isosurfaces are supported for Voxel Layers."));for(const e of i.isosurfaces)if(!e.colorLocked){const t=this.getColorForContinuousDataValue(i.variableId,e.value,!1);null===t||t.equals(e.color)||(e.color=t)}if("continuous"===r.renderingFormat.continuity)(null===i.transferFunction||i.transferFunction.colorStops.length<2)&&l.c.getLogger(this).error(`VoxelVariableStyle for variable ${r.id} is invalid. At least 2 color stops are required in the transferFunction for continuous Voxel Layer variables.`),null!==i.transferFunction&&(Array.isArray(i.transferFunction.stretchRange)&&2===i.transferFunction.stretchRange.length||(l.c.getLogger(this).error(`VoxelVariableStyle for variable ${r.id} is invalid. The stretchRange of the transferFunction for continuous Voxel Layer variables must be of the form [minimumDataValue, maximumDataValue].`),i.transferFunction.stretchRange=[0,1],i.transferFunction.colorStops.removeAll()));else if("discrete"===r.renderingFormat.continuity)if(0===t.uniqueValues.length)l.c.getLogger(this).error(`VoxelVariableStyle for variable ${r.id} is invalid. Unique values are required for discrete Voxel Layer variables.`);else for(const e of t.uniqueValues)null!==e.label&&void 0!==e.label||null===e.value||void 0===e.value||(e.label=e.value.toString());e.push(i)}else l.c.getLogger(this).error(`VoxelVariable ID=${t.variableId} doesn't exist, VoxelVariableStyle for this VoxelVariable will be ignored.`)}return e}getVolumeStyles(){const e=[];for(const t of this.volumeStyles){const r=this._getVolumeFromVolumeId(t.volumeId);if(null!=r){const i=t.clone();for(const e of i.slices)this._isPlaneValid(e,[0,1,r.zDimension],r.dimensions)||(e.enabled=!1,e.label="invalid");for(const e of i.dynamicSections)this._isPlaneValid(e,[0,1,r.zDimension],r.dimensions)||(e.enabled=!1,e.label="invalid");e.push(i)}else l.c.getLogger(this).error(`VoxelVolume ID=${t.volumeId} doesn't exist, VoxelVolumeStyle for this VoxelVolume will be ignored.`)}return e}_getVariable(e){const t=e.variableId;for(const e of this.variables)if(e.id===t)return e;return null}_getVolumeFromVolumeId(e){for(const t of this.volumes)if(t.id===e)return t;return null}_isPlaneValid(e,t,r){if(!e.point)return!1;if(!Array.isArray(e.point)||3!==e.point.length)return!1;if(!e.normal)return!1;if(!Array.isArray(e.normal)||3!==e.normal.length)return!1;const i=(0,m.WK)(e.normal[0],e.normal[1],e.normal[2]);return(0,y.n)(i,i),!(Math.abs(i[0])+Math.abs(i[1])+Math.abs(i[2])<1e-6||(e.normal[0]=i[0],e.normal[1]=i[1],e.normal[2]=i[2],0))}};(0,i._)([(0,c.qq)({type:["Voxel"]})],We.prototype,"operationalLayerType",void 0),(0,i._)([(0,c.qq)(V.Uj)],We.prototype,"legendEnabled",void 0),(0,i._)([(0,c.qq)({json:{write:!0}})],We.prototype,"title",void 0),(0,i._)([(0,c.qq)(V.qW)],We.prototype,"url",null),(0,i._)([(0,c.qq)({type:o.c.ofType(K),json:{origins:{"web-scene":{name:"layerDefinition.sections",write:!0}}}})],We.prototype,"sections",void 0),(0,i._)([(0,c.qq)({type:p.Ab,json:{origins:{"web-scene":{name:"layerDefinition.style.currentVariableId",write:{enabled:!0,isRequired:!0,ignoreOrigin:!0}},service:{name:"style.currentVariableId"}}}})],We.prototype,"currentVariableId",void 0),(0,i._)([(0,c.qq)({type:o.c.ofType(ke),json:{origins:{"web-scene":{name:"layerDefinition.style.volumeStyles",write:!0},service:{name:"style.volumeStyles"}}}})],We.prototype,"volumeStyles",void 0),(0,i._)([(0,c.qq)({type:["volume","surfaces"],json:{origins:{"web-scene":{name:"layerDefinition.style.renderMode",write:!0},service:{name:"style.renderMode"}}}})],We.prototype,"renderMode",void 0),(0,i._)([(0,c.qq)({type:o.c.ofType(_e),json:{origins:{"web-scene":{name:"layerDefinition.style.variableStyles",write:!0},service:{name:"style.variableStyles"}}}})],We.prototype,"variableStyles",void 0),(0,i._)([(0,c.qq)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSlices",write:!0},service:{name:"style.enableSlices"}}}})],We.prototype,"enableSlices",void 0),(0,i._)([(0,c.qq)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSections",write:!0},service:{name:"style.enableSections"}}}})],We.prototype,"enableSections",void 0),(0,i._)([(0,c.qq)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableDynamicSections",write:!0},service:{name:"style.enableDynamicSections"}}}})],We.prototype,"enableDynamicSections",void 0),(0,i._)([(0,c.qq)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableIsosurfaces",write:!0},service:{name:"style.enableIsosurfaces"}}}})],We.prototype,"enableIsosurfaces",void 0),(0,i._)([(0,c.qq)({type:Q,json:{origins:{"web-scene":{name:"layerDefinition.style.shading",write:!0},service:{name:"style.shading"}}}})],We.prototype,"shading",void 0),(0,i._)([(0,c.qq)({type:["show","hide"]})],We.prototype,"listMode",void 0),(0,i._)([(0,c.qq)({type:Number,range:{min:0,max:1},nonNullable:!0,json:{read:!1,write:!1,origins:{"web-scene":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],We.prototype,"opacity",void 0),(0,i._)([(0,c.qq)({type:o.c.ofType(te)})],We.prototype,"variables",void 0),(0,i._)([(0,c.qq)({type:o.c.ofType(Fe)})],We.prototype,"volumes",void 0),(0,i._)([(0,c.qq)({type:Ee})],We.prototype,"index",void 0),(0,i._)([(0,c.qq)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],We.prototype,"minScale",void 0),(0,i._)([(0,c.qq)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],We.prototype,"maxScale",void 0),(0,i._)([(0,c.qq)({json:{read:!1},readOnly:!0})],We.prototype,"type",void 0),(0,i._)([(0,c.qq)({readOnly:!0,json:{name:"serviceVersion"}})],We.prototype,"version",void 0),(0,i._)([(0,d.E)("service","version")],We.prototype,"readVersion",null),(0,i._)([(0,c.qq)({type:g.c})],We.prototype,"fullExtent",void 0),(0,i._)([(0,d.E)("service","fullExtent",["fullExtent"])],We.prototype,"readFullExtent",null),(0,i._)([(0,c.qq)({readOnly:!0,clonable:!1,json:{read:!1}})],We.prototype,"voxelFields",null),(0,i._)([(0,c.qq)({type:Boolean,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,ignoreOrigin:!0,writer(e,t,r){t[r]=!e}},origins:{"portal-item":{default:!0},"web-scene":{default:!0}}}})],We.prototype,"popupEnabled",void 0),(0,i._)([(0,c.qq)({type:n.c,json:{read:!1}})],We.prototype,"popupTemplate",null),(0,i._)([(0,c.qq)({readOnly:!0})],We.prototype,"defaultPopupTemplate",null),We=(0,i._)([(0,h.c)("esri.layers.VoxelLayer")],We);const $e=We},28584:(e,t,r)=>{r.d(t,{G:()=>s});var i=r(41948),n=r(1580),o=(r(9456),r(66360),r(72052),r(12552));const s=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i._)([(0,n.qq)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,i._)([(0,o.c)("esri.layers.mixins.CustomParametersMixin")],t),t}},98768:(e,t,r)=>{r.d(t,{K:()=>w});var i=r(41948),n=r(6220),o=r(47620),s=r(2600),l=r(40196),a=r(20744),u=r(66360),c=r(70680),p=r(10860),d=r(28176),h=r(1580),y=(r(9456),r(72052),r(33600)),m=r(12552),g=r(18996),f=r(71068),v=r(54872),b=r(9764),q=r(53039),S=r(46940);const w=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.mG)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new b.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:i}=await Promise.all([r.e(8828),r.e(4132)]).then(r.bind(r,94132));return(0,p.wp)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,p.mA)(e)||u.c.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.CE)(e),!0))))}async setUserPrivileges(e,t){if(!n.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,p.CE)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=e===r.id;if(i&&r.portal.user)return(0,S.CI)(r);let n,s;if(i)n=r.portal.url;else try{n=await(0,f.mK)(this.url,t)}catch(e){(0,p.CE)(e)}if(!n||!(0,d.Cs)(n,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;s=await(o.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.CE)(e)}if(!s)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(i?await r.reload():(r=new b.default({id:e,portal:{url:n}}),await r.load(t)),r.portal.user)return(0,S.CI)(r)}catch(e){(0,p.CE)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.CE)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?o.id?.findCredential(this.url):null;if(!t)return!0;const r=_.credential===t?_.user:await this._fetchEditingUser(e);return _.credential=t,_.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=o.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=v.c.getDefault();if(n&&n.loaded&&(0,d.k7)(n.restUrl)===(0,d.k7)(i))return n.user;const a=`${i}/community/self`,u=null!=e?e.signal:null,c=await(0,l.aG)((0,s.c)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?q.c.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||v.c.getDefault());return r&&i&&!(0,d.kF)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new a.c("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,i._)([(0,h.qq)({type:b.default})],t.prototype,"portalItem",null),(0,i._)([(0,y.E)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,g.G)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,h.qq)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,h.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,h.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,h.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,m.c)("esri.layers.mixins.PortalLayer")],t),t},_={credential:null,user:null}},3116:(e,t,r)=>{r.d(t,{I:()=>s});var i=r(41948),n=r(1580),o=(r(9456),r(66360),r(72052),r(12552));const s=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&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,i._)([(0,n.qq)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,i._)([(0,n.qq)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,i._)([(0,n.qq)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,i._)([(0,o.c)("esri.layers.mixins.ScaleRangeLayer")],t),t}},600:(e,t,r)=>{r.d(t,{c:()=>g});var i,n=r(41948),o=r(14628),s=r(40504),l=r(1580),a=r(53368),u=(r(72052),r(9456),r(9968)),c=r(33600),p=r(12552),d=r(89812),h=r(36408);const y=new o.O({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=i=class extends s.am{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?y.fromJSON(r.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,n._)([(0,l.qq)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,n._)([(0,l.qq)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,n._)([(0,l.qq)()],m.prototype,"description",void 0),(0,n._)([(0,c.E)("description")],m.prototype,"readDescription",null),(0,n._)([(0,l.qq)({types:d.i2,json:{read:{reader:d.h4},write:!0}})],m.prototype,"domain",void 0),(0,n._)([(0,l.qq)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,n._)([(0,l.qq)({type:a.Ab,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],m.prototype,"length",void 0),(0,n._)([(0,l.qq)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,n._)([(0,l.qq)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,n._)([(0,u.G)(h.M)],m.prototype,"type",void 0),(0,n._)([(0,l.qq)()],m.prototype,"valueType",void 0),(0,n._)([(0,c.E)("valueType",["description"])],m.prototype,"readValueType",null),(0,n._)([(0,l.qq)({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=i=(0,n._)([(0,p.c)("esri.layers.support.Field")],m);const g=m},89812:(e,t,r)=>{r.d(t,{h4:()=>x,i2:()=>_}),r(9456);var i,n=r(41948),o=r(62088),s=r(1580),l=(r(66360),r(9968)),a=r(12552),u=r(40504);r(72052);let c=i=class extends u.am{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,n._)([(0,s.qq)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,n._)([(0,s.qq)({type:[String,Number],json:{write:!0}})],c.prototype,"code",void 0),c=i=(0,n._)([(0,a.c)("esri.layers.support.CodedValue")],c);const p=new(r(14628).O)({inherited:"inherited",codedValue:"coded-value",range:"range"});let d=class extends u.am{constructor(e){super(e),this.name=null,this.type=null}};(0,n._)([(0,s.qq)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,n._)([(0,l.G)(p)],d.prototype,"type",void 0),d=(0,n._)([(0,a.c)("esri.layers.support.Domain")],d);const h=d;var y;let m=y=class extends h{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new y({codedValues:(0,o.ct)(this.codedValues),name:this.name})}};(0,n._)([(0,s.qq)({type:[c],json:{write:!0}})],m.prototype,"codedValues",void 0),(0,n._)([(0,l.G)({codedValue:"coded-value"})],m.prototype,"type",void 0),m=y=(0,n._)([(0,a.c)("esri.layers.support.CodedValueDomain")],m);const g=m;var f;r(20744);let v=f=class extends h{constructor(e){super(e),this.type="inherited"}clone(){return new f}};(0,n._)([(0,l.G)({inherited:"inherited"})],v.prototype,"type",void 0),v=f=(0,n._)([(0,a.c)("esri.layers.support.InheritedDomain")],v);const b=v;var q;let S=q=class extends h{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new q({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,n._)([(0,s.qq)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]}}}})],S.prototype,"maxValue",void 0),(0,n._)([(0,s.qq)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]}}}})],S.prototype,"minValue",void 0),(0,n._)([(0,l.G)({range:"range"})],S.prototype,"type",void 0),S=q=(0,n._)([(0,a.c)("esri.layers.support.RangeDomain")],S);const w=S,_={key:"type",base:h,typeMap:{range:S,"coded-value":g,inherited:b}};function x(e){if(!e?.type)return null;switch(e.type){case"range":return w.fromJSON(e);case"codedValue":return g.fromJSON(e);case"inherited":return b.fromJSON(e)}return null}},36408:(e,t,r)=>{r.d(t,{M:()=>i});const i=new(r(14628).O)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},73960:(e,t,r)=>{r.d(t,{e:()=>n});var i=r(28176);function n(e){return o[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,i.wt)(e);return a[t]||s}(e.url)}(e)]||l}const o={},s="text/plain",l=o[s],a={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 a)o[a[e]]=e},65548:(e,t,r)=>{r.d(t,{Ap:()=>u});var i=r(82692),n=r(564),o=r(3739),s=(r(73312),r(67300),r(18480),r(72944)),l=(r(53568),r(15024),r(63116),r(13428)),a=r(76992);function u({displayField:e,editFieldsInfo:t,fields:r,objectIdField:a,title:u},h){if(!r)return null;const m=function(e,t){const r=t?.visibleFieldNames;return function(e,t){const r=e;return t&&(e=e.filter((e=>!t.includes(e.type)))),e===r&&(e=e.slice()),e.sort(p),e}(e.fields??[],t?.ignoreFieldTypes||y).map((t=>new l.c({fieldName:t.name,isEditable:(0,n.Yn)(t,e),label:t.alias,format:d(t),visible:c(t,{...e,visibleFieldNames:r})})))}({editFieldsInfo:t,fields:r,objectIdField:a},h);if(!m.length)return null;const g=function(e){const t=(0,n.G2)(e),{titleBase:r}=e;return t?`${r}: {${t.trim()}}`:r??""}({titleBase:u,fields:r,displayField:e}),f=[new s.c,new o.c];return new i.c({title:g,content:f,fieldInfos:m})}const c=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,n.iY)(e,t);function p(e,t){return"oid"===e.type?-1:"oid"===t.type?1:h(e)?-1:h(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function d(e){switch(e.type){case"small-integer":case"integer":case"single":return new a.c({digitSeparator:!0,places:0});case"double":return new a.c({digitSeparator:!0,places:2});case"string":return(0,n.Gm)(e.name)?new a.c({digitSeparator:!0,places:0}):null;default:return null}}function h(e){return"name"===(e.name&&e.name.toLowerCase())||"name"===(e.alias&&e.alias.toLowerCase())}const y=["geometry","blob","raster","guid","xml"]}}]);