@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
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5468],{34888:(e,t,r)=>{r.d(t,{ED:()=>o,_M:()=>n});class n{constructor(e=null,t={},r,n){this.geometry=e,this.attributes=t,this.centroid=r,this.objectId=n,this.displayId=0,this.geohashX=0,this.geohashY=0}weakClone(){const e=new n(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e.geohashX=this.geohashX,e.geohashY=this.geohashY,e}clone(){const e=this.geometry?.clone(),t=new n(e,{...this.attributes},this.centroid?.clone(),this.objectId);return t.displayId=this.displayId,t.geohashX=this.geohashX,t.geohashY=this.geohashY,t}}function o(e){return!!e.geometry?.coords?.length}},90412:(e,t,r)=>{r.d(t,{c:()=>n});class n{constructor(){this.objectIdFieldName=null,this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new n;return e.objectIdFieldName=this.objectIdFieldName,e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},97088:(e,t,r)=>{r.d(t,{C:()=>E,C_:()=>re,G0:()=>z,GE:()=>Z,Ij:()=>ne,M$:()=>D,Oo:()=>ie,Sk:()=>oe,Uh:()=>V,WY:()=>H,Y5:()=>j,a:()=>x,i:()=>R,i6:()=>B,iC:()=>K,m:()=>W,od:()=>U,qw:()=>Q,ui:()=>J,w3:()=>$,ye:()=>A});var n=r(20744),o=r(66360),s=r(70680),i=r(77048),a=r(83372),u=r(6704),c=r(34888),l=r(90412),h=r(85152);function d(e,t){return e?t?4:3:t?3:2}const f=()=>o.c.getLogger("esri.layers.graphics.featureConversionUtils"),m={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0,esriGeometryEnvelope:0},y=(e,t,r,n,o,s)=>{e[r]=o,e[r+1]=s},p=(e,t,r,n,o,s)=>{e[r]=o,e[r+1]=s,e[r+2]=t[n+2]},g=(e,t,r,n,o,s)=>{e[r]=o,e[r+1]=s,e[r+2]=t[n+3]},_=(e,t,r,n,o,s)=>{e[r]=o,e[r+1]=s,e[r+2]=t[n+2],e[r+3]=t[n+3]};function b(e,t,r,n){if(e){if(r)return t&&n?_:p;if(t&&n)return g}else if(t&&n)return p;return y}function w({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}function F({scale:e,translate:t},r){return Math.round((t[1]-r)/e[1])}function I({scale:e,translate:t},r,n){return r*e[n]+t[n]}function x(e,t,r){return e?t?r?q(e):M(e):r?C(e):G(e):null}function G(e){const t=e.coords;return{x:t[0],y:t[1]}}function P(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e}function M(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2]}}function S(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e}function C(e){const t=e.coords;return{x:t[0],y:t[1],m:t[2]}}function T(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.m,e}function q(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2],m:t[3]}}function v(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e.coords[3]=t.m,e}function N(e,t){return e&&t?v:e?S:t?T:P}function D(e,t,r=N(null!=t.z,null!=t.m)){return r(e,t)}function R(e,t,r){if(null==e)return null;const n=d(t,r),o=[];for(let t=0;t<e.coords.length;t+=n){const r=[];for(let o=0;o<n;o++)r.push(e.coords[t+o]);o.push(r)}return t?r?{points:o,hasZ:t,hasM:r}:{points:o,hasZ:t}:r?{points:o,hasM:r}:{points:o}}function O(e,t,r=d(t.hasZ,t.hasM)){e.lengths[0]=t.points.length;const n=e.coords;let o=0;for(const e of t.points)for(let t=0;t<r;t++)n[o++]=e[t];return e}function Z(e,t,r){if(!e)return null;const n=d(t,r),{coords:o,lengths:s}=e,i=[];let a=0;for(const e of s){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e.push(o[a++]);t.push(e)}i.push(t)}return t?r?{paths:i,hasZ:t,hasM:r}:{paths:i,hasZ:t}:r?{paths:i,hasM:r}:{paths:i}}function k(e,t,r=d(t.hasZ,t.hasM)){const{lengths:n,coords:o}=e;let s=0;for(const e of t.paths){for(const t of e)for(let e=0;e<r;e++)o[s++]=t[e];n.push(e.length)}return e}function j(e,t,r){if(!e)return null;const n=d(t,r),{coords:o,lengths:s}=e,i=[];let a=0;for(const e of s){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e.push(o[a++]);t.push(e)}i.push(t)}return t?r?{rings:i,hasZ:t,hasM:r}:{rings:i,hasZ:t}:r?{rings:i,hasM:r}:{rings:i}}function V(e,t,r=t.hasZ,n=t.hasM){return function(e,t,r,n){const o=d(r,n),{lengths:s,coords:i}=e;let a=0;ae(e);for(const e of t){for(const t of e)for(let e=0;e<o;e++)i[a++]=t[e];s.push(e.length)}return e}(e,t.rings,r,n)}const Y=[],L=[];function A(e,t,r,n,o){Y[0]=e;const[s]=U(L,Y,t,r,n,o);return ue(Y),ue(L),s}function U(e,t,r,o,s,i){if(ue(e),!r){for(const r of t){const t=i?r.attributes[i]:void 0;e.push(new c._M(null,r.attributes,null,t))}return e}switch(r){case"esriGeometryPoint":return function(e,t,r,n,o){const s=N(r,n);for(const{geometry:r,attributes:n}of t){const t=null!=r?s(new h.c,r):null;e.push(new c._M(t,n,null,o?n[o]:void 0))}return e}(e,t,o,s,i);case"esriGeometryMultipoint":return function(e,t,r,n,o){const s=d(r,n);for(const{geometry:r,attributes:n}of t){const t=null!=r?O(new h.c,r,s):null;e.push(new c._M(t,n,null,o?n[o]:void 0))}return e}(e,t,o,s,i);case"esriGeometryPolyline":return function(e,t,r,n,o){const s=d(r,n);for(const{geometry:r,attributes:n,centroid:i}of t){const t=null!=r?k(new h.c,r,s):null,a=null!=i?D(new h.c,i):null;e.push(new c._M(t,n,a,o?n[o]:void 0))}return e}(e,t,o,s,i);case"esriGeometryPolygon":return function(e,t,r,n,o){for(const{geometry:s,centroid:i,attributes:a}of t){const t=null!=s?V(new h.c,s,r,n):null,u=o?a[o]:void 0;null!=i?e.push(new c._M(t,a,P(new h.c,i),u)):e.push(new c._M(t,a,null,u))}return e}(e,t,o,s,i);default:f().error("convertToFeatureSet:unknown-geometry",new n.c(`Unable to parse unknown geometry type '${r}'`)),ue(e)}return e}function z(e,t,r,n){L[0]=e,X(Y,L,t,r,n);const o=Y[0];return ue(Y),ue(L),o}function E(e,t,r){if(null==e)return null;const o=new h.c;return"hasZ"in e&&null==t&&(t=e.hasZ),"hasM"in e&&null==r&&(r=e.hasM),(0,u._x)(e)?N(null!=t?t:null!=e.z,null!=r?r:null!=e.m)(o,e):(0,u.Cs)(e)?V(o,e,t,r):(0,u.cZ)(e)?k(o,e,d(t,r)):(0,u._)(e)?O(o,e,d(t,r)):void f().error("convertFromGeometry:unknown-geometry",new n.c(`Unable to parse unknown geometry type '${e}'`))}function Q(e,t,r,o){const s=e&&("coords"in e?e:e.geometry);if(null==s)return null;switch(t){case"esriGeometryPoint":{let e=G;return r&&o?e=q:r?e=M:o&&(e=C),e(s)}case"esriGeometryMultipoint":return R(s,r,o);case"esriGeometryPolyline":return Z(s,r,o);case"esriGeometryPolygon":return j(s,r,o);default:return f().error("convertToGeometry:unknown-geometry",new n.c(`Unable to parse unknown geometry type '${t}'`)),null}}function X(e,t,r,o,s){if(ue(e),null==r)return function(e,t){for(const r of t)e.push({attributes:r.attributes});return e}(e,t);switch(r){case"esriGeometryPoint":return function(e,t,r,n){let o=G;r&&n?o=q:r?o=M:n&&(o=C);for(const r of t){const{geometry:t,attributes:n}=r,s=null!=t?o(t):null;e.push({attributes:n,geometry:s})}return e}(e,t,o,s);case"esriGeometryMultipoint":return function(e,t,r,n){for(const{geometry:o,attributes:s}of t)e.push({attributes:s,geometry:null!=o?R(o,r,n):null});return e}(e,t,o,s);case"esriGeometryPolyline":return function(e,t,r,n){for(const{geometry:o,attributes:s}of t)e.push({attributes:s,geometry:null!=o?Z(o,r,n):null});return e}(e,t,o,s);case"esriGeometryPolygon":return function(e,t,r,n){for(const{geometry:o,attributes:s,centroid:i}of t){const t=null!=o?j(o,r,n):null;if(null!=i){const r=G(i);e.push({attributes:s,centroid:r,geometry:t})}else e.push({attributes:s,geometry:t})}return e}(e,t,o,s);default:f().error("convertToFeatureSet:unknown-geometry",new n.c(`Unable to parse unknown geometry type '${r}'`))}return e}function B(e){const{objectIdFieldName:t,spatialReference:r,transform:n,fields:o,hasM:s,hasZ:i,features:a,geometryType:u,exceededTransferLimit:c,uniqueIdField:l,queryGeometry:h,queryGeometryType:d}=e,f={features:X([],a,u,i,s),fields:o,geometryType:u,objectIdFieldName:t,spatialReference:r,uniqueIdField:l,queryGeometry:Q(h,d,!1,!1)};return n&&(f.transform=n),c&&(f.exceededTransferLimit=c),s&&(f.hasM=s),i&&(f.hasZ=i),f}function J(e,t){const r=new l.c,{hasM:o,hasZ:s,features:i,objectIdFieldName:a,spatialReference:u,geometryType:c,exceededTransferLimit:h,transform:d,fields:m}=e;return m&&(r.fields=m),r.geometryType=c??null,r.objectIdFieldName=a??t??null,r.spatialReference=u??null,r.objectIdFieldName?(i&&U(r.features,i,c,s,o,r.objectIdFieldName),h&&(r.exceededTransferLimit=h),o&&(r.hasM=o),s&&(r.hasZ=s),d&&(r.transform=d),r):(f().error(new n.c("optimized-features:invalid-objectIdFieldName","objectIdFieldName is missing")),r)}function $(e){const{transform:t,features:r,hasM:n,hasZ:o}=e;if(!t)return e;for(const e of r)null!=e.geometry&&ne(e.geometry,e.geometry,n,o,t),null!=e.centroid&&ne(e.centroid,e.centroid,n,o,t);return e.transform=null,e}function W(e,t){const{geometryType:r,features:n,hasM:o,hasZ:s}=t;if(!e)return t;for(let t=0;t<n.length;t++){const i=n[t],a=i.weakClone();a.geometry=new h.c,K(a.geometry,i.geometry,o,s,r,e),i.centroid&&(a.centroid=new h.c,K(a.centroid,i.centroid,o,s,"esriGeometryPoint",e)),n[t]=a}return t.transform=e,t}function K(e,t,r,n,o,s,i=r,a=n){if(ae(e),!t?.coords.length)return null;const u=m[o],{coords:c,lengths:l}=t,h=d(r,n),f=d(r&&i,n&&a),y=b(r,n,i,a);if(!l.length)return y(e.coords,c,0,0,w(s,c[0]),F(s,c[1])),ae(e,h,0),e;let p,g,_,I,x=0,G=0,P=G;for(const t of l){if(t<u)continue;let r=0;G=P,_=p=w(s,c[x]),I=g=F(s,c[x+1]),y(e.coords,c,G,x,_,I),r++,x+=h,G+=f;for(let n=1;n<t;n++,x+=h)_=w(s,c[x]),I=F(s,c[x+1]),_===p&&I===g||(y(e.coords,c,G,x,_-p,I-g),G+=f,r++,p=_,g=I);r>=u&&(e.lengths.push(r),P=G)}return ue(e.coords,P),e.coords.length?e:null}function H(e,t,r,n,o,s,i=r,a=n){if(ae(e),!t?.coords.length)return null;const u=m[o],{coords:c,lengths:l}=t,h=d(r,n),f=d(r&&i,n&&a),y=b(r,n,i,a);if(!l.length)return y(e.coords,c,0,0,c[0],c[1]),ae(e,h,0),e;let p=0;const g=s*s;for(const t of l){if(t<u){p+=t*h;continue}const r=e.coords.length/f,n=p,o=p+(t-1)*h;y(e.coords,c,e.coords.length,n,c[n],c[n+1]),te(e.coords,c,h,g,y,n,o),y(e.coords,c,e.coords.length,o,c[o],c[o+1]);const s=e.coords.length/f-r;s>=u?e.lengths.push(s):ue(e.coords,r*f),p+=t*h}return e.coords.length?e:null}function ee(e,t,r,n){const o=e[t],s=e[t+1],i=e[r],a=e[r+1],u=e[n],c=e[n+1];let l=i,h=a,d=u-l,f=c-h;if(0!==d||0!==f){const e=((o-l)*d+(s-h)*f)/(d*d+f*f);e>1?(l=u,h=c):e>0&&(l+=d*e,h+=f*e)}return d=o-l,f=s-h,d*d+f*f}function te(e,t,r,n,o,s,i){let a,u=n,c=0;for(let e=s+r;e<i;e+=r)a=ee(t,e,s,i),a>u&&(c=e,u=a);u>n&&(c-s>r&&te(e,t,r,n,o,s,c),o(e,t,e.length,c,t[c],t[c+1]),i-c>r&&te(e,t,r,n,o,c,i))}function re(e,t,r,n){if(!t?.coords?.length)return null;const o=d(r,n);let s=Number.POSITIVE_INFINITY,u=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY;if(t&&t.coords){const e=t.coords;for(let t=0;t<e.length;t+=o){const r=e[t],n=e[t+1];s=Math.min(s,r),c=Math.max(c,r),u=Math.min(u,n),l=Math.max(l,n)}}return(0,i.is)(e)?(0,i.qy)(e,s,u,c,l):(0,a.WK)(s,u,c,l,e),e}function ne(e,t,r,n,o){const{coords:i,lengths:a}=t,u=d(r,n);if(!i.length)return e!==t&&ae(e),e;(0,s.EN)(o);const{originPosition:c,scale:l,translate:h}=o,f=ce;f.originPosition=c;const m=f.scale;m[0]=l[0]??1,m[1]=-(l[1]??1),m[2]=l[2]??1,m[3]=l[3]??1;const y=f.translate;if(y[0]=h[0]??0,y[1]=h[1]??0,y[2]=h[2]??0,y[3]=h[3]??0,!a.length){for(let t=0;t<u;++t)e.coords[t]=I(f,i[t],t);return e!==t&&ae(e,u,0),e}let p=0;for(let t=0;t<a.length;t++){const r=a[t];e.lengths[t]=r;for(let t=0;t<u;++t)e.coords[p+t]=I(f,i[p+t],t);let n=e.coords[p],o=e.coords[p+1];p+=u;for(let t=1;t<r;t++,p+=u){n+=i[p]*m[0],o+=i[p+1]*m[1],e.coords[p]=n,e.coords[p+1]=o;for(let t=2;t<u;++t)e.coords[p+t]=I(f,i[p+t],t)}}return e!==t&&ae(e,i.length,a.length),e}function oe(e,t,r,n,o,s){if(ae(e),e.lengths.push(...t.lengths),r===o&&n===s)for(let r=0;r<t.coords.length;r++)e.coords.push(t.coords[r]);else{const i=d(r,n),a=b(r,n,o,s),u=t.coords;for(let t=0;t<u.length;t+=i)a(e.coords,u,e.coords.length,t,u[t],u[t+1])}return e}function se(e,t,r,n){let o=0,s=e[n*t],i=e[n*(t+1)];for(let a=1;a<r;a++){const r=s+e[n*(t+a)],u=i+e[n*(t+a)+1],c=(r-s)*(u+i);s=r,i=u,o+=c}return.5*o}function ie(e,t){const{coords:r,lengths:n}=e;let o=0,s=0;for(let e=0;e<n.length;e++){const i=n[e];s+=se(r,o,i,t),o+=i}return Math.abs(s)}function ae(e,t=0,r=0){ue(e.lengths,r),ue(e.coords,t)}function ue(e,t=0){e.length!==t&&(e.length=t)}const ce={originPosition:"lowerLeft",scale:[1,1,1,1],translate:[0,0,0,0]}},95468:(e,t,r)=>{r.d(t,{c:()=>x});var n=r(41948),o=r(43780),s=r(20744),i=r(9456),a=r(10860),u=r(28176),c=r(1580),l=(r(66360),r(72052),r(12552)),h=r(4048),d=r(88204),f=r(21980),m=r(46788),y=(r(60708),r(32848)),p=r(95776),g=r(95247),_=r(819),b=r(99944),w=r(49132),F=r(59500);let I=class extends o.c{constructor(e){super(e),this.dynamicDataSource=null,this.fieldsIndex=null,this.gdbVersion=null,this.infoFor3D=null,this.pbfSupported=!1,this.queryAttachmentsSupported=!1,this.sourceSpatialReference=null,this.url=null}get parsedUrl(){return(0,u.as)(this.url)}async execute(e,t){const r=await this.executeJSON(e,t);return this.featureSetFromJSON(e,r,t)}async executeJSON(e,t){const r=this._normalizeQuery(e),n=null!=e.outStatistics?.[0],o=(0,i.c)("featurelayer-pbf-statistics"),s=!n||o;let a;if(this.pbfSupported&&s)try{a=await(0,w.S)(this.url,r,t)}catch(e){if("query:parsing-pbf"!==e.name)throw e;this.pbfSupported=!1}return this.pbfSupported&&s||(a=await(0,b.E)(this.url,r,t)),this._normalizeFields(a.fields),a}async featureSetFromJSON(e,t,n){if(!this._queryIs3DObjectFormat(e)||null==this.infoFor3D||!t.features)return F.c.fromJSON(t);const{meshFeatureSetFromJSON:o}=await(0,a.Yv)(Promise.all([r.e(3180),r.e(9904),r.e(4716),r.e(456)]).then(r.bind(r,12784)),n);return o(e,this.infoFor3D,t)}executeForCount(e,t){return(0,m._)(this.url,this._normalizeQuery(e),t)}executeForExtent(e,t){return async function(e,t,r){const n=(0,f.UX)(e),o=await(0,y.A7)(n,p.c.from(t),{...r}),s=o.data.extent;return!s||isNaN(s.xmin)||isNaN(s.ymin)||isNaN(s.xmax)||isNaN(s.ymax)?{count:o.data.count,extent:null}:{count:o.data.count,extent:g.c.fromJSON(s)}}(this.url,this._normalizeQuery(e),t)}executeForIds(e,t){return(0,_.g)(this.url,this._normalizeQuery(e),t)}async executeRelationshipQuery(e,t){const[{default:n},{executeRelationshipQuery:o}]=await(0,a.Yv)(Promise.all([r.e(8648).then(r.bind(r,18648)),r.e(1644).then(r.bind(r,1644))]),t);return e=n.from(e),(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),o(this.url,e,t)}async executeRelationshipQueryForCount(e,t){const[{default:n},{executeRelationshipQueryForCount:o}]=await(0,a.Yv)(Promise.all([r.e(8648).then(r.bind(r,18648)),r.e(1644).then(r.bind(r,1644))]),t);return e=n.from(e),(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),o(this.url,e,t)}async executeAttachmentQuery(e,t){const{executeAttachmentQuery:n,fetchAttachments:o,processAttachmentQueryResult:s}=await(0,a.Yv)(r.e(2024).then(r.bind(r,82024)),t),i=(0,f.UX)(this.url);return s(i,await(this.queryAttachmentsSupported?n(i,e,t):o(i,e,t)))}async executeTopFeaturesQuery(e,t){const{executeTopFeaturesQuery:n}=await(0,a.Yv)(r.e(3395).then(r.bind(r,93395)),t);return n(this.parsedUrl,e,this.sourceSpatialReference,t)}async executeForTopIds(e,t){const{executeForTopIds:n}=await(0,a.Yv)(r.e(4296).then(r.bind(r,84296)),t);return n(this.parsedUrl,e,t)}async executeForTopExtents(e,t){const{executeForTopExtents:n}=await(0,a.Yv)(r.e(2008).then(r.bind(r,22008)),t);return n(this.parsedUrl,e,t)}async executeForTopCount(e,t){const{executeForTopCount:n}=await(0,a.Yv)(r.e(6796).then(r.bind(r,76796)),t);return n(this.parsedUrl,e,t)}_normalizeQuery(e){let t=p.c.from(e);t.sourceSpatialReference=t.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(t=t===e?t.clone():t,t.gdbVersion=e.gdbVersion||this.gdbVersion,t.dynamicDataSource=e.dynamicDataSource?d.U.from(e.dynamicDataSource):this.dynamicDataSource);const{infoFor3D:r}=this;if(null!=r&&this._queryIs3DObjectFormat(e)){t=t===e?t.clone():t,t.formatOf3DObjects=null;const{supportedFormats:n,queryFormats:o}=r,i=(0,h.me)("model/gltf-binary",n)??(0,h.If)("glb",n),a=(0,h.me)("model/gltf+json",n)??(0,h.If)("gltf",n);for(const e of o){if(e===i){t.formatOf3DObjects=e;break}e!==a||t.formatOf3DObjects||(t.formatOf3DObjects=e)}if(!t.formatOf3DObjects)throw new s.c("query:unsupported-3d-query-formats","Could not find any supported 3D object query format. Only supported formats are 3D_glb and 3D_gltf");if(null==t.outFields||!t.outFields.includes("*")){t=t===e?t.clone():t,null==t.outFields&&(t.outFields=[]);const{originX:n,originY:o,originZ:s,translationX:i,translationY:a,translationZ:u,scaleX:c,scaleY:l,scaleZ:h,rotationX:d,rotationY:f,rotationZ:m,rotationDeg:y}=r.transformFieldRoles;t.outFields.push(n,o,s,i,a,u,c,l,h,d,f,m,y)}}return t}_normalizeFields(e){if(null!=this.fieldsIndex&&null!=e)for(const t of e){const e=this.fieldsIndex.get(t.name);e&&Object.assign(t,e.toJSON())}}_queryIs3DObjectFormat(e){return null!=this.infoFor3D&&!0===e.returnGeometry&&"xyFootprint"!==e.multipatchOption&&!e.outStatistics}};(0,n._)([(0,c.qq)({type:d.U})],I.prototype,"dynamicDataSource",void 0),(0,n._)([(0,c.qq)()],I.prototype,"fieldsIndex",void 0),(0,n._)([(0,c.qq)()],I.prototype,"gdbVersion",void 0),(0,n._)([(0,c.qq)()],I.prototype,"infoFor3D",void 0),(0,n._)([(0,c.qq)({readOnly:!0})],I.prototype,"parsedUrl",null),(0,n._)([(0,c.qq)()],I.prototype,"pbfSupported",void 0),(0,n._)([(0,c.qq)()],I.prototype,"queryAttachmentsSupported",void 0),(0,n._)([(0,c.qq)()],I.prototype,"sourceSpatialReference",void 0),(0,n._)([(0,c.qq)({type:String})],I.prototype,"url",void 0),I=(0,n._)([(0,l.c)("esri.tasks.QueryTask")],I);const x=I},4048:(e,t,r)=>{r.d(t,{If:()=>a,K0:()=>c,Mn:()=>m,kD:()=>s,me:()=>i,sz:()=>o,w$:()=>u});const n=[["binary","application/octet-stream","bin",""]];function o(e,t){return null!=h(t.name,e?.supportedFormats??[])}function s(e,t){if(!e)return!1;const r=c(t,e.supportedFormats??[]);return null!=r&&e.editFormats.includes(r)}function i(e,t){return d(function(e,t){const r=e.toLowerCase();return l(t).find((e=>f(e)===r))}(e,t))}function a(e,t){return d(h(e,t))}function u(e,t){return f(function(e,t){return l(t).find((t=>d(t)===e))}(e,t))}function c(e,t){return a(e.name,t)??i(e.type,t)}function l(e){return[...n,...e]}function h(e,t){const r=e.toLowerCase();return l(t).find((e=>function(e){return e?.[2].split(",").map((e=>e.toLowerCase()))??[]}(e).some((e=>r.endsWith(e)))))}function d(e){return e?.[0]}function f(e){return e?.[1].toLowerCase()}function m(e){return e.tables?.find((e=>"assetMaps"===e.role))}},46788:(e,t,r)=>{r.d(t,{_:()=>i});var n=r(21980),o=r(32848),s=r(95776);async function i(e,t,r){const i=(0,n.UX)(e);return(0,o.WE)(i,s.c.from(t),{...r}).then((e=>e.data.count))}},819:(e,t,r)=>{r.d(t,{g:()=>i});var n=r(21980),o=r(32848),s=r(95776);async function i(e,t,r){const i=(0,n.UX)(e);return(0,o.Qn)(i,s.c.from(t),{...r}).then((e=>e.data.objectIds))}},99944:(e,t,r)=>{r.d(t,{E:()=>u,c:()=>a});var n=r(21980),o=r(32848),s=r(59500),i=r(95776);async function a(e,t,r){const n=await u(e,t,r);return s.c.fromJSON(n)}async function u(e,t,r){const s=(0,n.UX)(e),a={...r},u=i.c.from(t),{data:c}=await(0,o.EL)(s,u,u.sourceSpatialReference,a);return c}},49132:(e,t,r)=>{r.d(t,{S:()=>p});var n=r(21980),o=r(70680),s=r(37924),i=r(97088);function a(e,t){return t}function u(e,t,r,n){switch(r){case 0:return d(e,t+n,0);case 1:return"lowerLeft"===e.originPosition?d(e,t+n,1):function({translate:e,scale:t},r,n){return e[n]-r*t[n]}(e,t+n,1)}}function c(e,t,r,n){return 2===r?d(e,t,2):u(e,t,r,n)}function l(e,t,r,n){return 2===r?0===t?0:d(e,t,2):u(e,t,r,n)}function h(e,t,r,n){return 3===r?0===t?0:d(e,t,3):c(e,t,r,n)}function d({translate:e,scale:t},r,n){return e[n]+r*t[n]}class f{constructor(e){this._options=e,this.geometryTypes=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],this._previousCoordinate=[0,0],this._transform=null,this._applyTransform=a,this._lengths=[],this._currentLengthIndex=0,this._toAddInCurrentPath=0,this._vertexDimension=0,this._mValueOffset=null,this._coordinateBuffer=null,this._coordinateBufferPtr=0,this._attributesConstructor=class{}}createFeatureResult(){return{fields:[],features:[]}}finishFeatureResult(e){if(this._options.applyTransform&&(e.transform=null),this._attributesConstructor=class{},this._coordinateBuffer=null,this._lengths.length=0,!e.hasZ)return;const t=(0,s.O)(e.geometryType,this._options.sourceSpatialReference,e.spatialReference);if(null!=t)for(const r of e.features)t(r.geometry)}createSpatialReference(){return{}}addField(e,t){const r=e.fields;(0,o.EN)(r),r.push(t);const n=r.map((e=>e.name));this._attributesConstructor=function(){for(const e of n)this[e]=null}}addFeature(e,t){e.features.push(t)}prepareFeatures(e){switch(this._transform=e.transform,this._options.applyTransform&&e.transform&&(this._applyTransform=this._deriveApplyTransform(e)),this._mValueOffset=null,this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&(this._mValueOffset=this._vertexDimension,this._vertexDimension++),e.geometryType){case"esriGeometryPoint":this.addCoordinate=(e,t,r)=>this.addCoordinatePoint(e,t,r),this.createGeometry=e=>this.createPointGeometry(e);break;case"esriGeometryPolygon":this.addCoordinate=(e,t,r)=>this._addCoordinatePolygon(e,t,r),this.createGeometry=e=>this._createPolygonGeometry(e);break;case"esriGeometryPolyline":this.addCoordinate=(e,t,r)=>this._addCoordinatePolyline(e,t,r),this.createGeometry=e=>this._createPolylineGeometry(e);break;case"esriGeometryMultipoint":this.addCoordinate=(e,t,r)=>this._addCoordinateMultipoint(e,t,r),this.createGeometry=e=>this._createMultipointGeometry(e)}}createFeature(){return this._lengths.length=0,this._currentLengthIndex=0,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,{attributes:new this._attributesConstructor}}allocateCoordinates(){}addLength(e,t,r){0===this._lengths.length&&(this._toAddInCurrentPath=t),this._lengths.push(t)}addQueryGeometry(e,t){const{queryGeometry:r,queryGeometryType:n}=t,o=(0,i.Ij)(r.clone(),r,!1,!1,this._transform),s=(0,i.qw)(o,n,!1,!1);e.queryGeometryType=n,e.queryGeometry={...s}}createPointGeometry(e){const t={x:0,y:0,spatialReference:e.spatialReference};return e.hasZ&&(t.z=0),e.hasM&&(t.m=0),t}addCoordinatePoint(e,t,r){const n=this._transform;switch(t=this._applyTransform(n,t,r,0),r){case 0:e.x=t;break;case 1:e.y=t;break;case 2:"z"in e?e.z=t:e.m=t;break;case 3:e.m=t}}_transformPathLikeValue(e,t){let r=0;t<=1&&(r=this._previousCoordinate[t],this._previousCoordinate[t]+=e);const n=this._transform;return null===this._mValueOffset||0!==e||t%this._mValueOffset?this._applyTransform(n,e,t,r):0}_addCoordinatePolyline(e,t,r){this._dehydratedAddPointsCoordinate(e.paths,t,r)}_addCoordinatePolygon(e,t,r){this._dehydratedAddPointsCoordinate(e.rings,t,r)}_addCoordinateMultipoint(e,t,r){0===r&&e.points.push([]);const n=this._transformPathLikeValue(t,r);e.points[e.points.length-1].push(n)}_createPolygonGeometry(e){return{rings:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createPolylineGeometry(e){return{paths:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createMultipointGeometry(e){return{points:[],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_dehydratedAddPointsCoordinate(e,t,r){0===r&&0==this._toAddInCurrentPath--&&(e.push([]),this._toAddInCurrentPath=this._lengths[++this._currentLengthIndex]-1,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0);const n=this._transformPathLikeValue(t,r),o=e[e.length-1];0===r&&(this._coordinateBufferPtr=0,this._coordinateBuffer=new Array(this._vertexDimension),o.push(this._coordinateBuffer)),this._coordinateBuffer[this._coordinateBufferPtr++]=n}_deriveApplyTransform(e){const{hasZ:t,hasM:r}=e;return t&&r?h:t?c:r?l:u}}var m=r(32848),y=(r(59500),r(95776));async function p(e,t,r){const o=(0,n.UX)(e),s={...r},i=y.c.from(t),a=!i.quantizationParameters,{data:u}=await(0,m.aA)(o,i,new f({sourceSpatialReference:i.sourceSpatialReference,applyTransform:a}),s);return u}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5468],{34888:(e,t,r)=>{r.d(t,{ED:()=>o,_M:()=>n});class n{constructor(e=null,t={},r,n){this.geometry=e,this.attributes=t,this.centroid=r,this.objectId=n,this.displayId=0,this.geohashX=0,this.geohashY=0}weakClone(){const e=new n(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e.geohashX=this.geohashX,e.geohashY=this.geohashY,e}clone(){const e=this.geometry?.clone(),t=new n(e,{...this.attributes},this.centroid?.clone(),this.objectId);return t.displayId=this.displayId,t.geohashX=this.geohashX,t.geohashY=this.geohashY,t}}function o(e){return!!e.geometry?.coords?.length}},90412:(e,t,r)=>{r.d(t,{c:()=>n});class n{constructor(){this.objectIdFieldName=null,this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new n;return e.objectIdFieldName=this.objectIdFieldName,e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},97088:(e,t,r)=>{r.d(t,{C:()=>E,C_:()=>re,G0:()=>z,GE:()=>Z,Ij:()=>ne,M$:()=>D,Oo:()=>ie,Sk:()=>oe,Uh:()=>V,WY:()=>H,Y5:()=>j,a:()=>x,i:()=>R,i6:()=>B,iC:()=>K,m:()=>W,od:()=>U,qw:()=>Q,ui:()=>J,w3:()=>$,ye:()=>A});var n=r(20744),o=r(66360),s=r(70680),i=r(77048),a=r(83372),u=r(6704),c=r(34888),l=r(90412),h=r(85152);function d(e,t){return e?t?4:3:t?3:2}const f=()=>o.c.getLogger("esri.layers.graphics.featureConversionUtils"),m={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0,esriGeometryEnvelope:0},y=(e,t,r,n,o,s)=>{e[r]=o,e[r+1]=s},p=(e,t,r,n,o,s)=>{e[r]=o,e[r+1]=s,e[r+2]=t[n+2]},g=(e,t,r,n,o,s)=>{e[r]=o,e[r+1]=s,e[r+2]=t[n+3]},_=(e,t,r,n,o,s)=>{e[r]=o,e[r+1]=s,e[r+2]=t[n+2],e[r+3]=t[n+3]};function b(e,t,r,n){if(e){if(r)return t&&n?_:p;if(t&&n)return g}else if(t&&n)return p;return y}function w({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}function F({scale:e,translate:t},r){return Math.round((t[1]-r)/e[1])}function I({scale:e,translate:t},r,n){return r*e[n]+t[n]}function x(e,t,r){return e?t?r?q(e):M(e):r?C(e):G(e):null}function G(e){const t=e.coords;return{x:t[0],y:t[1]}}function P(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e}function M(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2]}}function S(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e}function C(e){const t=e.coords;return{x:t[0],y:t[1],m:t[2]}}function T(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.m,e}function q(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2],m:t[3]}}function v(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e.coords[3]=t.m,e}function N(e,t){return e&&t?v:e?S:t?T:P}function D(e,t,r=N(null!=t.z,null!=t.m)){return r(e,t)}function R(e,t,r){if(null==e)return null;const n=d(t,r),o=[];for(let t=0;t<e.coords.length;t+=n){const r=[];for(let o=0;o<n;o++)r.push(e.coords[t+o]);o.push(r)}return t?r?{points:o,hasZ:t,hasM:r}:{points:o,hasZ:t}:r?{points:o,hasM:r}:{points:o}}function O(e,t,r=d(t.hasZ,t.hasM)){e.lengths[0]=t.points.length;const n=e.coords;let o=0;for(const e of t.points)for(let t=0;t<r;t++)n[o++]=e[t];return e}function Z(e,t,r){if(!e)return null;const n=d(t,r),{coords:o,lengths:s}=e,i=[];let a=0;for(const e of s){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e.push(o[a++]);t.push(e)}i.push(t)}return t?r?{paths:i,hasZ:t,hasM:r}:{paths:i,hasZ:t}:r?{paths:i,hasM:r}:{paths:i}}function k(e,t,r=d(t.hasZ,t.hasM)){const{lengths:n,coords:o}=e;let s=0;for(const e of t.paths){for(const t of e)for(let e=0;e<r;e++)o[s++]=t[e];n.push(e.length)}return e}function j(e,t,r){if(!e)return null;const n=d(t,r),{coords:o,lengths:s}=e,i=[];let a=0;for(const e of s){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e.push(o[a++]);t.push(e)}i.push(t)}return t?r?{rings:i,hasZ:t,hasM:r}:{rings:i,hasZ:t}:r?{rings:i,hasM:r}:{rings:i}}function V(e,t,r=t.hasZ,n=t.hasM){return function(e,t,r,n){const o=d(r,n),{lengths:s,coords:i}=e;let a=0;ae(e);for(const e of t){for(const t of e)for(let e=0;e<o;e++)i[a++]=t[e];s.push(e.length)}return e}(e,t.rings,r,n)}const Y=[],L=[];function A(e,t,r,n,o){Y[0]=e;const[s]=U(L,Y,t,r,n,o);return ue(Y),ue(L),s}function U(e,t,r,o,s,i){if(ue(e),!r){for(const r of t){const t=i?r.attributes[i]:void 0;e.push(new c._M(null,r.attributes,null,t))}return e}switch(r){case"esriGeometryPoint":return function(e,t,r,n,o){const s=N(r,n);for(const{geometry:r,attributes:n}of t){const t=null!=r?s(new h.c,r):null;e.push(new c._M(t,n,null,o?n[o]:void 0))}return e}(e,t,o,s,i);case"esriGeometryMultipoint":return function(e,t,r,n,o){const s=d(r,n);for(const{geometry:r,attributes:n}of t){const t=null!=r?O(new h.c,r,s):null;e.push(new c._M(t,n,null,o?n[o]:void 0))}return e}(e,t,o,s,i);case"esriGeometryPolyline":return function(e,t,r,n,o){const s=d(r,n);for(const{geometry:r,attributes:n,centroid:i}of t){const t=null!=r?k(new h.c,r,s):null,a=null!=i?D(new h.c,i):null;e.push(new c._M(t,n,a,o?n[o]:void 0))}return e}(e,t,o,s,i);case"esriGeometryPolygon":return function(e,t,r,n,o){for(const{geometry:s,centroid:i,attributes:a}of t){const t=null!=s?V(new h.c,s,r,n):null,u=o?a[o]:void 0;null!=i?e.push(new c._M(t,a,P(new h.c,i),u)):e.push(new c._M(t,a,null,u))}return e}(e,t,o,s,i);default:f().error("convertToFeatureSet:unknown-geometry",new n.c(`Unable to parse unknown geometry type '${r}'`)),ue(e)}return e}function z(e,t,r,n){L[0]=e,X(Y,L,t,r,n);const o=Y[0];return ue(Y),ue(L),o}function E(e,t,r){if(null==e)return null;const o=new h.c;return"hasZ"in e&&null==t&&(t=e.hasZ),"hasM"in e&&null==r&&(r=e.hasM),(0,u._x)(e)?N(null!=t?t:null!=e.z,null!=r?r:null!=e.m)(o,e):(0,u.Cs)(e)?V(o,e,t,r):(0,u.cZ)(e)?k(o,e,d(t,r)):(0,u._)(e)?O(o,e,d(t,r)):void f().error("convertFromGeometry:unknown-geometry",new n.c(`Unable to parse unknown geometry type '${e}'`))}function Q(e,t,r,o){const s=e&&("coords"in e?e:e.geometry);if(null==s)return null;switch(t){case"esriGeometryPoint":{let e=G;return r&&o?e=q:r?e=M:o&&(e=C),e(s)}case"esriGeometryMultipoint":return R(s,r,o);case"esriGeometryPolyline":return Z(s,r,o);case"esriGeometryPolygon":return j(s,r,o);default:return f().error("convertToGeometry:unknown-geometry",new n.c(`Unable to parse unknown geometry type '${t}'`)),null}}function X(e,t,r,o,s){if(ue(e),null==r)return function(e,t){for(const r of t)e.push({attributes:r.attributes});return e}(e,t);switch(r){case"esriGeometryPoint":return function(e,t,r,n){let o=G;r&&n?o=q:r?o=M:n&&(o=C);for(const r of t){const{geometry:t,attributes:n}=r,s=null!=t?o(t):null;e.push({attributes:n,geometry:s})}return e}(e,t,o,s);case"esriGeometryMultipoint":return function(e,t,r,n){for(const{geometry:o,attributes:s}of t)e.push({attributes:s,geometry:null!=o?R(o,r,n):null});return e}(e,t,o,s);case"esriGeometryPolyline":return function(e,t,r,n){for(const{geometry:o,attributes:s}of t)e.push({attributes:s,geometry:null!=o?Z(o,r,n):null});return e}(e,t,o,s);case"esriGeometryPolygon":return function(e,t,r,n){for(const{geometry:o,attributes:s,centroid:i}of t){const t=null!=o?j(o,r,n):null;if(null!=i){const r=G(i);e.push({attributes:s,centroid:r,geometry:t})}else e.push({attributes:s,geometry:t})}return e}(e,t,o,s);default:f().error("convertToFeatureSet:unknown-geometry",new n.c(`Unable to parse unknown geometry type '${r}'`))}return e}function B(e){const{objectIdFieldName:t,spatialReference:r,transform:n,fields:o,hasM:s,hasZ:i,features:a,geometryType:u,exceededTransferLimit:c,uniqueIdField:l,queryGeometry:h,queryGeometryType:d}=e,f={features:X([],a,u,i,s),fields:o,geometryType:u,objectIdFieldName:t,spatialReference:r,uniqueIdField:l,queryGeometry:Q(h,d,!1,!1)};return n&&(f.transform=n),c&&(f.exceededTransferLimit=c),s&&(f.hasM=s),i&&(f.hasZ=i),f}function J(e,t){const r=new l.c,{hasM:o,hasZ:s,features:i,objectIdFieldName:a,spatialReference:u,geometryType:c,exceededTransferLimit:h,transform:d,fields:m}=e;return m&&(r.fields=m),r.geometryType=c??null,r.objectIdFieldName=a??t??null,r.spatialReference=u??null,r.objectIdFieldName?(i&&U(r.features,i,c,s,o,r.objectIdFieldName),h&&(r.exceededTransferLimit=h),o&&(r.hasM=o),s&&(r.hasZ=s),d&&(r.transform=d),r):(f().error(new n.c("optimized-features:invalid-objectIdFieldName","objectIdFieldName is missing")),r)}function $(e){const{transform:t,features:r,hasM:n,hasZ:o}=e;if(!t)return e;for(const e of r)null!=e.geometry&&ne(e.geometry,e.geometry,n,o,t),null!=e.centroid&&ne(e.centroid,e.centroid,n,o,t);return e.transform=null,e}function W(e,t){const{geometryType:r,features:n,hasM:o,hasZ:s}=t;if(!e)return t;for(let t=0;t<n.length;t++){const i=n[t],a=i.weakClone();a.geometry=new h.c,K(a.geometry,i.geometry,o,s,r,e),i.centroid&&(a.centroid=new h.c,K(a.centroid,i.centroid,o,s,"esriGeometryPoint",e)),n[t]=a}return t.transform=e,t}function K(e,t,r,n,o,s,i=r,a=n){if(ae(e),!t?.coords.length)return null;const u=m[o],{coords:c,lengths:l}=t,h=d(r,n),f=d(r&&i,n&&a),y=b(r,n,i,a);if(!l.length)return y(e.coords,c,0,0,w(s,c[0]),F(s,c[1])),ae(e,h,0),e;let p,g,_,I,x=0,G=0,P=G;for(const t of l){if(t<u)continue;let r=0;G=P,_=p=w(s,c[x]),I=g=F(s,c[x+1]),y(e.coords,c,G,x,_,I),r++,x+=h,G+=f;for(let n=1;n<t;n++,x+=h)_=w(s,c[x]),I=F(s,c[x+1]),_===p&&I===g||(y(e.coords,c,G,x,_-p,I-g),G+=f,r++,p=_,g=I);r>=u&&(e.lengths.push(r),P=G)}return ue(e.coords,P),e.coords.length?e:null}function H(e,t,r,n,o,s,i=r,a=n){if(ae(e),!t?.coords.length)return null;const u=m[o],{coords:c,lengths:l}=t,h=d(r,n),f=d(r&&i,n&&a),y=b(r,n,i,a);if(!l.length)return y(e.coords,c,0,0,c[0],c[1]),ae(e,h,0),e;let p=0;const g=s*s;for(const t of l){if(t<u){p+=t*h;continue}const r=e.coords.length/f,n=p,o=p+(t-1)*h;y(e.coords,c,e.coords.length,n,c[n],c[n+1]),te(e.coords,c,h,g,y,n,o),y(e.coords,c,e.coords.length,o,c[o],c[o+1]);const s=e.coords.length/f-r;s>=u?e.lengths.push(s):ue(e.coords,r*f),p+=t*h}return e.coords.length?e:null}function ee(e,t,r,n){const o=e[t],s=e[t+1],i=e[r],a=e[r+1],u=e[n],c=e[n+1];let l=i,h=a,d=u-l,f=c-h;if(0!==d||0!==f){const e=((o-l)*d+(s-h)*f)/(d*d+f*f);e>1?(l=u,h=c):e>0&&(l+=d*e,h+=f*e)}return d=o-l,f=s-h,d*d+f*f}function te(e,t,r,n,o,s,i){let a,u=n,c=0;for(let e=s+r;e<i;e+=r)a=ee(t,e,s,i),a>u&&(c=e,u=a);u>n&&(c-s>r&&te(e,t,r,n,o,s,c),o(e,t,e.length,c,t[c],t[c+1]),i-c>r&&te(e,t,r,n,o,c,i))}function re(e,t,r,n){if(!t?.coords?.length)return null;const o=d(r,n);let s=Number.POSITIVE_INFINITY,u=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY;if(t&&t.coords){const e=t.coords;for(let t=0;t<e.length;t+=o){const r=e[t],n=e[t+1];s=Math.min(s,r),c=Math.max(c,r),u=Math.min(u,n),l=Math.max(l,n)}}return(0,i.is)(e)?(0,i.qy)(e,s,u,c,l):(0,a.WK)(s,u,c,l,e),e}function ne(e,t,r,n,o){const{coords:i,lengths:a}=t,u=d(r,n);if(!i.length)return e!==t&&ae(e),e;(0,s.EN)(o);const{originPosition:c,scale:l,translate:h}=o,f=ce;f.originPosition=c;const m=f.scale;m[0]=l[0]??1,m[1]=-(l[1]??1),m[2]=l[2]??1,m[3]=l[3]??1;const y=f.translate;if(y[0]=h[0]??0,y[1]=h[1]??0,y[2]=h[2]??0,y[3]=h[3]??0,!a.length){for(let t=0;t<u;++t)e.coords[t]=I(f,i[t],t);return e!==t&&ae(e,u,0),e}let p=0;for(let t=0;t<a.length;t++){const r=a[t];e.lengths[t]=r;for(let t=0;t<u;++t)e.coords[p+t]=I(f,i[p+t],t);let n=e.coords[p],o=e.coords[p+1];p+=u;for(let t=1;t<r;t++,p+=u){n+=i[p]*m[0],o+=i[p+1]*m[1],e.coords[p]=n,e.coords[p+1]=o;for(let t=2;t<u;++t)e.coords[p+t]=I(f,i[p+t],t)}}return e!==t&&ae(e,i.length,a.length),e}function oe(e,t,r,n,o,s){if(ae(e),e.lengths.push(...t.lengths),r===o&&n===s)for(let r=0;r<t.coords.length;r++)e.coords.push(t.coords[r]);else{const i=d(r,n),a=b(r,n,o,s),u=t.coords;for(let t=0;t<u.length;t+=i)a(e.coords,u,e.coords.length,t,u[t],u[t+1])}return e}function se(e,t,r,n){let o=0,s=e[n*t],i=e[n*(t+1)];for(let a=1;a<r;a++){const r=s+e[n*(t+a)],u=i+e[n*(t+a)+1],c=(r-s)*(u+i);s=r,i=u,o+=c}return.5*o}function ie(e,t){const{coords:r,lengths:n}=e;let o=0,s=0;for(let e=0;e<n.length;e++){const i=n[e];s+=se(r,o,i,t),o+=i}return Math.abs(s)}function ae(e,t=0,r=0){ue(e.lengths,r),ue(e.coords,t)}function ue(e,t=0){e.length!==t&&(e.length=t)}const ce={originPosition:"lowerLeft",scale:[1,1,1,1],translate:[0,0,0,0]}},95468:(e,t,r)=>{r.d(t,{c:()=>x});var n=r(41948),o=r(43780),s=r(20744),i=r(9456),a=r(10860),u=r(28176),c=r(1580),l=(r(66360),r(72052),r(12552)),h=r(4048),d=r(88204),f=r(21980),m=r(46788),y=(r(60708),r(32848)),p=r(95776),g=r(95247),_=r(819),b=r(99944),w=r(49132),F=r(59500);let I=class extends o.c{constructor(e){super(e),this.dynamicDataSource=null,this.fieldsIndex=null,this.gdbVersion=null,this.infoFor3D=null,this.pbfSupported=!1,this.queryAttachmentsSupported=!1,this.sourceSpatialReference=null,this.url=null}get parsedUrl(){return(0,u.as)(this.url)}async execute(e,t){const r=await this.executeJSON(e,t);return this.featureSetFromJSON(e,r,t)}async executeJSON(e,t){const r=this._normalizeQuery(e),n=null!=e.outStatistics?.[0],o=(0,i.c)("featurelayer-pbf-statistics"),s=!n||o;let a;if(this.pbfSupported&&s)try{a=await(0,w.S)(this.url,r,t)}catch(e){if("query:parsing-pbf"!==e.name)throw e;this.pbfSupported=!1}return this.pbfSupported&&s||(a=await(0,b.E)(this.url,r,t)),this._normalizeFields(a.fields),a}async featureSetFromJSON(e,t,n){if(!this._queryIs3DObjectFormat(e)||null==this.infoFor3D||!t.features)return F.c.fromJSON(t);const{meshFeatureSetFromJSON:o}=await(0,a.Yv)(Promise.all([r.e(3180),r.e(9904),r.e(4716),r.e(456)]).then(r.bind(r,12784)),n);return o(e,this.infoFor3D,t)}executeForCount(e,t){return(0,m._)(this.url,this._normalizeQuery(e),t)}executeForExtent(e,t){return async function(e,t,r){const n=(0,f.UX)(e),o=await(0,y.A7)(n,p.c.from(t),{...r}),s=o.data.extent;return!s||isNaN(s.xmin)||isNaN(s.ymin)||isNaN(s.xmax)||isNaN(s.ymax)?{count:o.data.count,extent:null}:{count:o.data.count,extent:g.c.fromJSON(s)}}(this.url,this._normalizeQuery(e),t)}executeForIds(e,t){return(0,_.g)(this.url,this._normalizeQuery(e),t)}async executeRelationshipQuery(e,t){const[{default:n},{executeRelationshipQuery:o}]=await(0,a.Yv)(Promise.all([r.e(8648).then(r.bind(r,18648)),r.e(1644).then(r.bind(r,1644))]),t);return e=n.from(e),(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),o(this.url,e,t)}async executeRelationshipQueryForCount(e,t){const[{default:n},{executeRelationshipQueryForCount:o}]=await(0,a.Yv)(Promise.all([r.e(8648).then(r.bind(r,18648)),r.e(1644).then(r.bind(r,1644))]),t);return e=n.from(e),(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),o(this.url,e,t)}async executeAttachmentQuery(e,t){const{executeAttachmentQuery:n,fetchAttachments:o,processAttachmentQueryResult:s}=await(0,a.Yv)(r.e(2024).then(r.bind(r,82024)),t),i=(0,f.UX)(this.url);return s(i,await(this.queryAttachmentsSupported?n(i,e,t):o(i,e,t)))}async executeTopFeaturesQuery(e,t){const{executeTopFeaturesQuery:n}=await(0,a.Yv)(r.e(3395).then(r.bind(r,93395)),t);return n(this.parsedUrl,e,this.sourceSpatialReference,t)}async executeForTopIds(e,t){const{executeForTopIds:n}=await(0,a.Yv)(r.e(4296).then(r.bind(r,84296)),t);return n(this.parsedUrl,e,t)}async executeForTopExtents(e,t){const{executeForTopExtents:n}=await(0,a.Yv)(r.e(2008).then(r.bind(r,22008)),t);return n(this.parsedUrl,e,t)}async executeForTopCount(e,t){const{executeForTopCount:n}=await(0,a.Yv)(r.e(6796).then(r.bind(r,76796)),t);return n(this.parsedUrl,e,t)}_normalizeQuery(e){let t=p.c.from(e);t.sourceSpatialReference=t.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(t=t===e?t.clone():t,t.gdbVersion=e.gdbVersion||this.gdbVersion,t.dynamicDataSource=e.dynamicDataSource?d.U.from(e.dynamicDataSource):this.dynamicDataSource);const{infoFor3D:r}=this;if(null!=r&&this._queryIs3DObjectFormat(e)){t=t===e?t.clone():t,t.formatOf3DObjects=null;const{supportedFormats:n,queryFormats:o}=r,i=(0,h.me)("model/gltf-binary",n)??(0,h.If)("glb",n),a=(0,h.me)("model/gltf+json",n)??(0,h.If)("gltf",n);for(const e of o){if(e===i){t.formatOf3DObjects=e;break}e!==a||t.formatOf3DObjects||(t.formatOf3DObjects=e)}if(!t.formatOf3DObjects)throw new s.c("query:unsupported-3d-query-formats","Could not find any supported 3D object query format. Only supported formats are 3D_glb and 3D_gltf");if(null==t.outFields||!t.outFields.includes("*")){t=t===e?t.clone():t,null==t.outFields&&(t.outFields=[]);const{originX:n,originY:o,originZ:s,translationX:i,translationY:a,translationZ:u,scaleX:c,scaleY:l,scaleZ:h,rotationX:d,rotationY:f,rotationZ:m,rotationDeg:y}=r.transformFieldRoles;t.outFields.push(n,o,s,i,a,u,c,l,h,d,f,m,y)}}return t}_normalizeFields(e){if(null!=this.fieldsIndex&&null!=e)for(const t of e){const e=this.fieldsIndex.get(t.name);e&&Object.assign(t,e.toJSON())}}_queryIs3DObjectFormat(e){return null!=this.infoFor3D&&!0===e.returnGeometry&&"xyFootprint"!==e.multipatchOption&&!e.outStatistics}};(0,n._)([(0,c.qq)({type:d.U})],I.prototype,"dynamicDataSource",void 0),(0,n._)([(0,c.qq)()],I.prototype,"fieldsIndex",void 0),(0,n._)([(0,c.qq)()],I.prototype,"gdbVersion",void 0),(0,n._)([(0,c.qq)()],I.prototype,"infoFor3D",void 0),(0,n._)([(0,c.qq)({readOnly:!0})],I.prototype,"parsedUrl",null),(0,n._)([(0,c.qq)()],I.prototype,"pbfSupported",void 0),(0,n._)([(0,c.qq)()],I.prototype,"queryAttachmentsSupported",void 0),(0,n._)([(0,c.qq)()],I.prototype,"sourceSpatialReference",void 0),(0,n._)([(0,c.qq)({type:String})],I.prototype,"url",void 0),I=(0,n._)([(0,l.c)("esri.tasks.QueryTask")],I);const x=I},4048:(e,t,r)=>{r.d(t,{If:()=>a,K0:()=>c,Mn:()=>m,kD:()=>s,me:()=>i,sz:()=>o,w$:()=>u});const n=[["binary","application/octet-stream","bin",""]];function o(e,t){return null!=h(t.name,e?.supportedFormats??[])}function s(e,t){if(!e)return!1;const r=c(t,e.supportedFormats??[]);return null!=r&&e.editFormats.includes(r)}function i(e,t){return d(function(e,t){const r=e.toLowerCase();return l(t).find((e=>f(e)===r))}(e,t))}function a(e,t){return d(h(e,t))}function u(e,t){return f(function(e,t){return l(t).find((t=>d(t)===e))}(e,t))}function c(e,t){return a(e.name,t)??i(e.type,t)}function l(e){return[...n,...e]}function h(e,t){const r=e.toLowerCase();return l(t).find((e=>function(e){return e?.[2].split(",").map((e=>e.toLowerCase()))??[]}(e).some((e=>r.endsWith(e)))))}function d(e){return e?.[0]}function f(e){return e?.[1].toLowerCase()}function m(e){return e.tables?.find((e=>"assetMaps"===e.role))}},46788:(e,t,r)=>{r.d(t,{_:()=>i});var n=r(21980),o=r(32848),s=r(95776);async function i(e,t,r){const i=(0,n.UX)(e);return(0,o.WE)(i,s.c.from(t),{...r}).then((e=>e.data.count))}},819:(e,t,r)=>{r.d(t,{g:()=>i});var n=r(21980),o=r(32848),s=r(95776);async function i(e,t,r){const i=(0,n.UX)(e);return(0,o.Qn)(i,s.c.from(t),{...r}).then((e=>e.data.objectIds))}},99944:(e,t,r)=>{r.d(t,{E:()=>u,c:()=>a});var n=r(21980),o=r(32848),s=r(59500),i=r(95776);async function a(e,t,r){const n=await u(e,t,r);return s.c.fromJSON(n)}async function u(e,t,r){const s=(0,n.UX)(e),a={...r},u=i.c.from(t),{data:c}=await(0,o.EL)(s,u,u.sourceSpatialReference,a);return c}},49132:(e,t,r)=>{r.d(t,{S:()=>p});var n=r(21980),o=r(70680),s=r(37924),i=r(97088);function a(e,t){return t}function u(e,t,r,n){switch(r){case 0:return d(e,t+n,0);case 1:return"lowerLeft"===e.originPosition?d(e,t+n,1):function({translate:e,scale:t},r,n){return e[n]-r*t[n]}(e,t+n,1)}}function c(e,t,r,n){return 2===r?d(e,t,2):u(e,t,r,n)}function l(e,t,r,n){return 2===r?0===t?0:d(e,t,3):u(e,t,r,n)}function h(e,t,r,n){return 3===r?0===t?0:d(e,t,3):c(e,t,r,n)}function d({translate:e,scale:t},r,n){return e[n]+r*t[n]}class f{constructor(e){this._options=e,this.geometryTypes=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],this._previousCoordinate=[0,0],this._transform=null,this._applyTransform=a,this._lengths=[],this._currentLengthIndex=0,this._toAddInCurrentPath=0,this._vertexDimension=0,this._mValueOffset=null,this._coordinateBuffer=null,this._coordinateBufferPtr=0,this._attributesConstructor=class{}}createFeatureResult(){return{fields:[],features:[]}}finishFeatureResult(e){if(this._options.applyTransform&&(e.transform=null),this._attributesConstructor=class{},this._coordinateBuffer=null,this._lengths.length=0,!e.hasZ)return;const t=(0,s.O)(e.geometryType,this._options.sourceSpatialReference,e.spatialReference);if(null!=t)for(const r of e.features)t(r.geometry)}createSpatialReference(){return{}}addField(e,t){const r=e.fields;(0,o.EN)(r),r.push(t);const n=r.map((e=>e.name));this._attributesConstructor=function(){for(const e of n)this[e]=null}}addFeature(e,t){e.features.push(t)}prepareFeatures(e){switch(this._transform=e.transform,this._options.applyTransform&&e.transform&&(this._applyTransform=this._deriveApplyTransform(e)),this._mValueOffset=null,this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&(this._mValueOffset=this._vertexDimension,this._vertexDimension++),e.geometryType){case"esriGeometryPoint":this.addCoordinate=(e,t,r)=>this.addCoordinatePoint(e,t,r),this.createGeometry=e=>this.createPointGeometry(e);break;case"esriGeometryPolygon":this.addCoordinate=(e,t,r)=>this._addCoordinatePolygon(e,t,r),this.createGeometry=e=>this._createPolygonGeometry(e);break;case"esriGeometryPolyline":this.addCoordinate=(e,t,r)=>this._addCoordinatePolyline(e,t,r),this.createGeometry=e=>this._createPolylineGeometry(e);break;case"esriGeometryMultipoint":this.addCoordinate=(e,t,r)=>this._addCoordinateMultipoint(e,t,r),this.createGeometry=e=>this._createMultipointGeometry(e)}}createFeature(){return this._lengths.length=0,this._currentLengthIndex=0,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,{attributes:new this._attributesConstructor}}allocateCoordinates(){}addLength(e,t,r){0===this._lengths.length&&(this._toAddInCurrentPath=t),this._lengths.push(t)}addQueryGeometry(e,t){const{queryGeometry:r,queryGeometryType:n}=t,o=(0,i.Ij)(r.clone(),r,!1,!1,this._transform),s=(0,i.qw)(o,n,!1,!1);e.queryGeometryType=n,e.queryGeometry={...s}}createPointGeometry(e){const t={x:0,y:0,spatialReference:e.spatialReference};return e.hasZ&&(t.z=0),e.hasM&&(t.m=0),t}addCoordinatePoint(e,t,r){const n=this._transform;switch(t=this._applyTransform(n,t,r,0),r){case 0:e.x=t;break;case 1:e.y=t;break;case 2:"z"in e?e.z=t:e.m=t;break;case 3:e.m=t}}_transformPathLikeValue(e,t){let r=0;t<=1&&(r=this._previousCoordinate[t],this._previousCoordinate[t]+=e);const n=this._transform;return null===this._mValueOffset||0!==e||t%this._mValueOffset?this._applyTransform(n,e,t,r):0}_addCoordinatePolyline(e,t,r){this._dehydratedAddPointsCoordinate(e.paths,t,r)}_addCoordinatePolygon(e,t,r){this._dehydratedAddPointsCoordinate(e.rings,t,r)}_addCoordinateMultipoint(e,t,r){0===r&&e.points.push([]);const n=this._transformPathLikeValue(t,r);e.points[e.points.length-1].push(n)}_createPolygonGeometry(e){return{rings:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createPolylineGeometry(e){return{paths:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createMultipointGeometry(e){return{points:[],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_dehydratedAddPointsCoordinate(e,t,r){0===r&&0==this._toAddInCurrentPath--&&(e.push([]),this._toAddInCurrentPath=this._lengths[++this._currentLengthIndex]-1,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0);const n=this._transformPathLikeValue(t,r),o=e[e.length-1];0===r&&(this._coordinateBufferPtr=0,this._coordinateBuffer=new Array(this._vertexDimension),o.push(this._coordinateBuffer)),this._coordinateBuffer[this._coordinateBufferPtr++]=n}_deriveApplyTransform(e){const{hasZ:t,hasM:r}=e;return t&&r?h:t?c:r?l:u}}var m=r(32848),y=(r(59500),r(95776));async function p(e,t,r){const o=(0,n.UX)(e),s={...r},i=y.c.from(t),a=!i.quantizationParameters,{data:u}=await(0,m.aA)(o,i,new f({sourceSpatialReference:i.sourceSpatialReference,applyTransform:a}),s);return u}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2259],{3615:(e,a,t)=>{t.d(a,{q:()=>n});var r=t(66668);class n{constructor(){this._serviceMetadatas=new Map,this._itemDatas=new Map}async fetchServiceMetadata(e,a){const t=this._serviceMetadatas.get(e);if(t)return t;const n=await(0,r.S)(e,a);return this._serviceMetadatas.set(e,n),n}async fetchItemData(e){const{id:a}=e;if(!a)return null;const{_itemDatas:t}=this;if(t.has(a))return t.get(a);const r=await e.fetchData();return t.set(a,r),r}async fetchCustomParameters(e,a){const t=await this.fetchItemData(e);return t&&"object"==typeof t&&(a?a(t):t.customParameters)||null}}},50420:(e,a,t)=>{t.d(a,{S:()=>u});var r=t(47620),n=t(2600),s=t(20744),i=t(10860),l=t(48212),c=t(54872),o=t(9764);async function u(e,a){const t=(0,l.K0)(e);if(!t)throw new s.c("invalid-url","Invalid scene service url");const u={...a,sceneServerUrl:t.url.path,layerId:t.sublayer??void 0};if(u.sceneLayerItem??=await async function(e){const a=(await y(e)).serviceItemId;if(!a)return null;const t=new o.default({id:a,apiKey:e.apiKey}),s=await async function(e){const a=r.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;const t=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const a=(await(0,n.c)(t,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,i.CE)(e)}return null}(e);null!=s&&(t.portal=new c.c({url:s}));try{return t.load({signal:e.signal})}catch(e){return(0,i.CE)(e),null}}(u),null==u.sceneLayerItem)return d(u.sceneServerUrl.replace("/SceneServer","/FeatureServer"),u);const f=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{const t=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find((e=>"Feature Service"===e.type))||null;if(!t)return null;const r=new o.default({portal:t.portal,id:t.id});return await r.load(),r}catch(e){return(0,i.CE)(e),null}}(u);if(!f?.url)throw new s.c("related-service-not-found","Could not find feature service through portal item relationship");u.featureServiceItem=f;const m=await d(f.url,u);return m.portalItem=f,m}async function y(e){if(e.rootDocument)return e.rootDocument;const a={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{const t=await(0,n.c)(e.sceneServerUrl,a);e.rootDocument=t.data}catch{e.rootDocument={}}return e.rootDocument}async function d(e,a){const t=(0,l.K0)(e);if(!t)throw new s.c("invalid-feature-service-url","Invalid feature service url");const r=t.url.path,i=a.layerId;if(null==i)return{serverUrl:r};const c=y(a),o=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,u=(o?.layers?.[0]||o?.tables?.[0])?.customParameters,d=e=>{const t={query:{f:"json",...u},responseType:"json",authMode:e,signal:a.signal};return(0,n.c)(r,t)},f=d("anonymous").catch((()=>d("no-prompt"))),[m,w]=await Promise.all([f,c]),h=w?.layers,p=m.data&&m.data.layers;if(!Array.isArray(p))throw new Error("expected layers array");if(Array.isArray(h)){for(let e=0;e<Math.min(h.length,p.length);e++)if(h[e].id===i)return{serverUrl:r,layerId:p[e].id}}else if(null!=i&&i<p.length)return{serverUrl:r,layerId:p[i].id};throw new Error("could not find matching associated sublayer")}},13608:(e,a,t)=>{t.d(a,{I:()=>s,w:()=>d});var r=t(66668);const n=new Set(["Catalog Layer","Feature Layer","Oriented Imagery Layer"]);async function s(e,a){const{loadContext:t,...n}=a||{},s=t?await t.fetchServiceMetadata(e,n):await(0,r.S)(e,n);y(s),c(s);const i={serviceJSON:s};if((s.currentVersion??0)<10.5)return i;const l=`${e}/layers`,o=t?await t.fetchServiceMetadata(l,n):await(0,r.S)(l,n);return y(o),c(o),i.layersJSON={layers:o.layers,tables:o.tables},i}function i(e){const{type:a}=e;return!!a&&n.has(a)}function l(e){return"Table"===e.type}function c(e){e.layers=e.layers?.filter(i),e.tables=e.tables?.filter(l)}function o(e){e.type||="Feature Layer"}function u(e){e.type||="Table"}function y(e){e.layers?.forEach(o),e.tables?.forEach(u)}function d(e){switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer"}return"FeatureLayer"}},83928:(e,a,t)=>{t.d(a,{q:()=>r});const r={BingMapsLayer:async()=>(await Promise.all([t.e(5612),t.e(5156),t.e(3912)]).then(t.bind(t,48388))).default,BuildingSceneLayer:async()=>(await Promise.all([t.e(5612),t.e(5156),t.e(2692),t.e(7988),t.e(8980),t.e(5472),t.e(5864),t.e(1744),t.e(5776),t.e(236),t.e(8976),t.e(9512),t.e(2664),t.e(6556),t.e(672),t.e(3180),t.e(9644),t.e(8344),t.e(9420),t.e(7064),t.e(5928)]).then(t.bind(t,10948))).default,CatalogLayer:async()=>(await Promise.all([t.e(5612),t.e(5156),t.e(2692),t.e(7988),t.e(8980),t.e(5472),t.e(5864),t.e(1744),t.e(5776),t.e(236),t.e(8976),t.e(2664),t.e(2848),t.e(5468),t.e(572),t.e(8772)]).then(t.bind(t,20324))).default,CSVLayer:async()=>(await Promise.all([t.e(5612),t.e(5156),t.e(2692),t.e(7988),t.e(8980),t.e(5472),t.e(5864),t.e(1744),t.e(5776),t.e(236),t.e(8976),t.e(9512),t.e(2664),t.e(6556),t.e(672),t.e(2292)]).then(t.bind(t,79468))).default,DimensionLayer:async()=>(await Promise.all([t.e(5612),t.e(7832)]).then(t.bind(t,28320))).default,ElevationLayer:async()=>(await Promise.all([t.e(5612),t.e(2968),t.e(8380)]).then(t.bind(t,47104))).default,FeatureLayer:async()=>(await Promise.all([t.e(5612),t.e(5156),t.e(2692),t.e(7988),t.e(8980),t.e(5472),t.e(5864),t.e(1744),t.e(5776),t.e(236),t.e(8976),t.e(9512),t.e(2664),t.e(6556),t.e(672),t.e(3645)]).then(t.bind(t,672))).default,GeoJSONLayer:async()=>(await Promise.all([t.e(5612),t.e(5156),t.e(2692),t.e(7988),t.e(8980),t.e(5472),t.e(5864),t.e(1744),t.e(5776),t.e(236),t.e(8976),t.e(9512),t.e(6584)]).then(t.bind(t,92768))).default,GeoRSSLayer:async()=>(await Promise.all([t.e(5612),t.e(5156),t.e(7988),t.e(5472),t.e(8404)]).then(t.bind(t,43984))).default,GroupLayer:async()=>(await Promise.all([t.e(5612),t.e(7456)]).then(t.bind(t,44080))).default,ImageryLayer:async()=>(await Promise.all([t.e(5612),t.e(5156),t.e(2692),t.e(7988),t.e(8980),t.e(5472),t.e(5864),t.e(1744),t.e(5776),t.e(2848),t.e(6128),t.e(9884),t.e(2124)]).then(t.bind(t,7896))).default,ImageryTileLayer:async()=>(await Promise.all([t.e(5612),t.e(5156),t.e(2692),t.e(7988),t.e(8980),t.e(5472),t.e(5864),t.e(1744),t.e(6128),t.e(9884),t.e(7048),t.e(5496)]).then(t.bind(t,82744))).default,IntegratedMeshLayer:async()=>(await Promise.all([t.e(5612),t.e(9644),t.e(7024)]).then(t.bind(t,96584))).default,KMLLayer:async()=>(await Promise.all([t.e(5612),t.e(5156),t.e(2692),t.e(7988),t.e(8980),t.e(5472),t.e(5864),t.e(1744),t.e(236),t.e(1312)]).then(t.bind(t,53688))).default,LineOfSightLayer:async()=>(await Promise.all([t.e(5612),t.e(3536)]).then(t.bind(t,91884))).default,LinkChartLayer:async()=>(await Promise.all([t.e(5156),t.e(2692),t.e(7988),t.e(8980),t.e(5472),t.e(5864),t.e(1744),t.e(5776),t.e(236),t.e(9512),t.e(3220),t.e(1512),t.e(6680),t.e(8080)]).then(t.bind(t,54192))).default,MapImageLayer:async()=>(await Promise.all([t.e(5612),t.e(5156),t.e(2692),t.e(7988),t.e(8980),t.e(5472),t.e(5864),t.e(1744),t.e(5776),t.e(236),t.e(8976),t.e(2848),t.e(5468),t.e(7804),t.e(3089)]).then(t.bind(t,3089))).default,MapNotesLayer:async()=>(await Promise.all([t.e(5612),t.e(5156),t.e(2692),t.e(7988),t.e(8980),t.e(5472),t.e(5864),t.e(1744),t.e(5776),t.e(236),t.e(8976),t.e(9512),t.e(2664),t.e(6556),t.e(672),t.e(8528)]).then(t.bind(t,37784))).default,MediaLayer:async()=>(await Promise.all([t.e(5612),t.e(2364)]).then(t.bind(t,66664))).default,OGCFeatureLayer:async()=>(await Promise.all([t.e(5612),t.e(5156),t.e(2692),t.e(7988),t.e(8980),t.e(5472),t.e(5864),t.e(1744),t.e(5776),t.e(236),t.e(8976),t.e(9512),t.e(4384),t.e(8224)]).then(t.bind(t,56288))).default,OpenStreetMapLayer:async()=>(await Promise.all([t.e(5612),t.e(5156),t.e(3632),t.e(1244)]).then(t.bind(t,1244))).default,OrientedImageryLayer:async()=>(await Promise.all([t.e(5612),t.e(5156),t.e(2692),t.e(7988),t.e(8980),t.e(5472),t.e(5864),t.e(1744),t.e(5776),t.e(236),t.e(8976),t.e(9512),t.e(2664),t.e(6556),t.e(672),t.e(8640)]).then(t.bind(t,75432))).default,PointCloudLayer:async()=>(await Promise.all([t.e(5612),t.e(2692),t.e(9644),t.e(2296)]).then(t.bind(t,21680))).default,RouteLayer:async()=>(await Promise.all([t.e(5612),t.e(2692),t.e(7988),t.e(8980),t.e(5472),t.e(5864),t.e(1744),t.e(236),t.e(8520)]).then(t.bind(t,40900))).default,SceneLayer:async()=>(await Promise.all([t.e(5612),t.e(2692),t.e(7988),t.e(8980),t.e(5472),t.e(5864),t.e(1744),t.e(5776),t.e(236),t.e(8976),t.e(3180),t.e(9644),t.e(9904),t.e(8344),t.e(9420),t.e(4716),t.e(7064),t.e(712)]).then(t.bind(t,3688))).default,StreamLayer:async()=>(await Promise.all([t.e(5612),t.e(5156),t.e(2692),t.e(7988),t.e(8980),t.e(5472),t.e(5864),t.e(1744),t.e(5776),t.e(236),t.e(8976),t.e(9512),t.e(1136)]).then(t.bind(t,18e3))).default,SubtypeGroupLayer:async()=>(await Promise.all([t.e(5612),t.e(5156),t.e(2692),t.e(7988),t.e(8980),t.e(5472),t.e(5864),t.e(1744),t.e(5776),t.e(236),t.e(8976),t.e(2664),t.e(6556),t.e(5368),t.e(8792)]).then(t.bind(t,8444))).default,TileLayer:async()=>(await Promise.all([t.e(5612),t.e(5156),t.e(2692),t.e(7988),t.e(8980),t.e(5472),t.e(5864),t.e(1744),t.e(5776),t.e(236),t.e(8976),t.e(2848),t.e(5468),t.e(2968),t.e(7804),t.e(0)]).then(t.bind(t,5e4))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([t.e(5612),t.e(7752)]).then(t.bind(t,71316))).default,UnknownLayer:async()=>(await t.e(4203).then(t.bind(t,56584))).default,UnsupportedLayer:async()=>(await t.e(2456).then(t.bind(t,12456))).default,VectorTileLayer:async()=>(await Promise.all([t.e(5612),t.e(8980),t.e(2968),t.e(1272),t.e(7936)]).then(t.bind(t,65632))).default,VoxelLayer:async()=>(await Promise.all([t.e(5612),t.e(2692),t.e(9644),t.e(8256)]).then(t.bind(t,59496))).default,WFSLayer:async()=>(await Promise.all([t.e(5612),t.e(5156),t.e(2692),t.e(7988),t.e(8980),t.e(5472),t.e(5864),t.e(1744),t.e(5776),t.e(236),t.e(8976),t.e(9512),t.e(4808),t.e(2612)]).then(t.bind(t,53440))).default,WMSLayer:async()=>(await Promise.all([t.e(5612),t.e(5156),t.e(2692),t.e(7988),t.e(5472),t.e(7052)]).then(t.bind(t,85024))).default,WMTSLayer:async()=>(await Promise.all([t.e(5612),t.e(5156),t.e(3632),t.e(4832)]).then(t.bind(t,54832))).default,WebTileLayer:async()=>(await Promise.all([t.e(5612),t.e(5156),t.e(3632)]).then(t.bind(t,32896))).default}},67632:(e,a,t)=>{t.d(a,{AX:()=>l,_W:()=>c,eW:()=>i,k1:()=>y,mg:()=>o,oD:()=>d,qe:()=>u,qi:()=>s});var r=t(50420),n=t(13608);function s(e){const a={id:e.id,name:e.name},t=(0,n.w)(e.type);return"FeatureLayer"!==t&&(a.layerType=t),a}async function i(e,a,t){if(null==e?.layers||null==e?.tables){const r=await t.fetchServiceMetadata(a,{customParameters:l(e)?.customParameters});(e=e||{}).layers=e.layers||r?.layers?.map(s),e.tables=e.tables||r?.tables?.map(s)}return e}function l(e){if(!e)return null;const{layers:a,tables:t}=e;return a?.length?a[0]:t?.length?t[0]:null}function c(e,a){return null==a?null:[...e.layers||[],...e.tables||[]].find((e=>e.id===a))}function o(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}function u(e){switch(e){case"CatalogLayer":return"CatalogLayer";case"OrientedImageryLayer":return"OrientedImageryLayer";case"SubtypeGroupLayer":return"SubtypeGroupLayer"}return"FeatureLayer"}function y(e){const a=[];return e?.layers?.forEach((e=>{"SubtypeGroupLayer"===e.layerType&&a.push(e.id)})),a}async function d(e,a,t){if(!e?.url)return a??{};if(a??={},!a.layers){const r=await t.fetchServiceMetadata(e.url);a.layers=r.layers?.map(s)}const{serverUrl:n,portalItem:i}=await(0,r.S)(e.url,{sceneLayerItem:e,customParameters:l(a)?.customParameters}).catch((()=>({serverUrl:null,portalItem:null})));if(null==n)return a.tables=[],a;if(!a.tables&&i){const e=await i.fetchData();if(e?.tables)a.tables=e.tables.map(s);else{const r=await t.fetchServiceMetadata(n,{customParameters:l(e)?.customParameters});a.tables=r?.tables?.map(s)}}if(a.tables)for(const e of a.tables)e.url=`${n}/${e.id}`;return a}},12259:(e,a,t)=>{t.d(a,{fromItem:()=>d,q:()=>f});var r=t(20744),n=t(50420),s=t(13608),i=t(3615),l=t(71068),c=t(83928),o=t(9764),u=t(67632),y=t(46940);async function d(e){let{portalItem:a}=e;!a||a instanceof o.default||(a=new o.default(a));const t=await async function(e){await e.load();const a=new i.q;return async function(e){const a=e.className,t=c.q[a];return{constructor:await t(),properties:e.properties}}(await f(e,a))}(a);return new(0,t.constructor)({portalItem:a,...t.properties})}async function f(e,a){switch(e.type){case"3DTiles Service":return{className:"IntegratedMesh3DTilesLayer"};case"CSV":return{className:"CSVLayer"};case"Feature Collection":return async function(e){await e.load();const a=(0,y._S)(e,"Map Notes"),t=(0,y._S)(e,"Markup");if(a||t)return{className:"MapNotesLayer"};if((0,y._S)(e,"Route Layer"))return{className:"RouteLayer"};const r=await e.fetchData();return 1===(0,u.mg)(r)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Feature Service":return async function(e,a){const t=await m(e,a);if("object"==typeof t){const{sourceJSON:e,className:a}=t,r={sourceJSON:e};return null!=t.id&&(r.layerId=t.id),{className:a||"FeatureLayer",properties:r}}return{className:"GroupLayer"}}(e,a);case"Feed":case"Stream Service":return{className:"StreamLayer"};case"GeoJson":return{className:"GeoJSONLayer"};case"Group Layer":return{className:"GroupLayer"};case"Image Service":return async function(e,a){await e.load();const t=e.typeKeywords?.map((e=>e.toLowerCase()))??[];if(t.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(t.includes("tiled imagery"))return{className:"ImageryTileLayer"};const r=await a.fetchItemData(e),n=r?.layerType;if("ArcGISTiledImageServiceLayer"===n)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===n)return{className:"ImageryLayer"};const s=await a.fetchServiceMetadata(e.url,{customParameters:await a.fetchCustomParameters(e)}),i=s.cacheType?.toLowerCase(),l=s.capabilities?.toLowerCase().includes("tilesonly");return"map"===i||l?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e,a);case"KML":return{className:"KMLLayer"};case"Map Service":return async function(e,a){return await async function(e,a){const{tileInfo:t}=await a.fetchServiceMetadata(e.url,{customParameters:await a.fetchCustomParameters(e)});return t}(e,a)?{className:"TileLayer"}:{className:"MapImageLayer"}}(e,a);case"Media Layer":return{className:"MediaLayer"};case"Scene Service":return async function(e,a){const t=await m(e,a,(async()=>{try{if(!e.url)return[];const{serverUrl:t}=await(0,n.S)(e.url,{sceneLayerItem:e}),r=await a.fetchServiceMetadata(t);return r?.tables??[]}catch{return[]}}));if("object"==typeof t){const r={};let n;if(null!=t.id?(r.layerId=t.id,n=`${e.url}/layers/${t.id}`):n=e.url,e.typeKeywords?.length)for(const a of Object.keys(l.Wr))if(e.typeKeywords.includes(a))return{className:l.Wr[a]};const s=await a.fetchServiceMetadata(n,{customParameters:await a.fetchCustomParameters(e,(e=>(0,u.AX)(e)?.customParameters))});return{className:l.Wr[s?.layerType]||"SceneLayer",properties:r}}if(!1===t){const t=await a.fetchServiceMetadata(e.url);if("Voxel"===t?.layerType)return{className:"VoxelLayer"}}return{className:"GroupLayer"}}(e,a);case"Vector Tile Service":return{className:"VectorTileLayer"};case"WFS":return{className:"WFSLayer"};case"WMS":return{className:"WMSLayer"};case"WMTS":return{className:"WMTSLayer"};default:throw new r.c("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type})}}async function m(e,a,t){const{url:r,type:n}=e,i="Feature Service"===n;if(!r)return{};if(/\/\d+$/.test(r)){if(i){const t=await a.fetchServiceMetadata(r,{customParameters:await a.fetchCustomParameters(e,(e=>(0,u.AX)(e)?.customParameters))});return{id:t.id,className:(0,s.w)(t.type),sourceJSON:t}}return{}}await e.load();let l=await a.fetchItemData(e);if(i){const e=await(0,u.eW)(l,r,a),t=w(e);if("object"==typeof t){const a=(0,u._W)(e,t.id);t.className=(0,u.qe)(a?.layerType)}return t}if("Scene Service"===n&&(l=await(0,u.oD)(e,l,a)),(0,u.mg)(l)>0)return w(l);const c=await a.fetchServiceMetadata(r);return t&&(c.tables=await t()),w(c)}function w(e){return 1===(0,u.mg)(e)&&{id:(0,u.AX)(e)?.id}}},66668:(e,a,t)=>{t.d(a,{S:()=>n});var r=t(2600);async function n(e,a){const{data:t}=await(0,r.c)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}});return t}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5076,6147],{25228:(e,t,r)=>{r.d(t,{c:()=>y});var n,i=r(41948),s=r(40504),a=r(94360),o=r(1580),l=(r(9456),r(66360),r(72052),r(33600)),u=r(12552),c=r(18996),p=r(28484);let f=n=class extends s.am{static get allTime(){return d}static get empty(){return h}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(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new n({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,n=e.start?.getTime()??e.start,i=e.end?.getTime()??e.end;return t===n&&r===i}expandTo(e,t=p.OX){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,a.aU)(r,e,t));let i=this.end;if(i){const r=(0,a.aU)(i,e,t);i=i.getTime()===r.getTime()?r:(0,a.g1)(r,1,e,t)}return new n({start:r,end:i})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return n.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,i=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let a,o;return i>=t&&i<=r?a=i:t>=i&&t<=s&&(a=t),r>=i&&r<=s?o=r:s>=t&&s<=r&&(o=s),null==a||null==o||isNaN(a)||isNaN(o)?n.empty:new n({start:a===-1/0?null:new Date(a),end:o===1/0?null:new Date(o)})}offset(e,t,r=p.OX){if(this.isEmpty||this.isAllTime)return this.clone();const i=new n,{start:s,end:o}=this;return null!=s&&(i.start=(0,a.g1)(s,e,t,r)),null!=o&&(i.end=(0,a.g1)(o,e,t,r)),i}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return d.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 n({start:t,end:r})}};(0,i._)([(0,o.qq)({type:Date,json:{write:{allowNull:!0}}})],f.prototype,"end",void 0),(0,i._)([(0,l.E)("end")],f.prototype,"readEnd",null),(0,i._)([(0,c.G)("end")],f.prototype,"writeEnd",null),(0,i._)([(0,o.qq)({readOnly:!0,json:{read:!1}})],f.prototype,"isAllTime",null),(0,i._)([(0,o.qq)({readOnly:!0,json:{read:!1}})],f.prototype,"isEmpty",null),(0,i._)([(0,o.qq)({type:Date,json:{write:{allowNull:!0}}})],f.prototype,"start",void 0),(0,i._)([(0,l.E)("start")],f.prototype,"readStart",null),(0,i._)([(0,c.G)("start")],f.prototype,"writeStart",null),f=n=(0,i._)([(0,u.c)("esri.TimeExtent")],f);const d=new f,h=new f({start:void 0,end:void 0}),y=f},8528:(e,t,r)=>{r.d(t,{c:()=>n,g:()=>i});var n="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}},83536:(e,t,r)=>{r.d(t,{c:()=>u});var n=r(41948),i=r(2952),s=(r(40196),r(20744),r(66360),r(37176),r(41168)),a=r(1580),o=r(12552);let l=class extends i.c{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,s.ox)((()=>this._refresh())))}destroy(){this.getCollections=null}_refresh(){const e=null!=this.getCollections?this.getCollections():null;if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t,this.length)}_createNewInstance(e){return new i.c(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const n of t)if(n){if(r(n)){const t=this.indexOf(n,e);t>=0?t!==e&&this.reorder(n,e):this.add(n,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(n);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,n._)([(0,a.qq)()],l.prototype,"getCollections",void 0),(0,n._)([(0,a.qq)()],l.prototype,"getChildrenFunction",void 0),(0,n._)([(0,a.qq)()],l.prototype,"itemFilterFunction",void 0),l=(0,n._)([(0,o.c)("esri.core.CollectionFlattener")],l);const u=l},57896:(e,t,r)=>{r.d(t,{Eq:()=>f,KG:()=>g,_8:()=>m,_I:()=>u,aE:()=>l,du:()=>y,on:()=>p}),r(40196),r(2952);var n=r(60976),i=r(38912),s=r(70680),a=r(10860),o=r(37176);function l(e,t,r={}){return c(e,t,r,d)}function u(e,t,r={}){return c(e,t,r,h)}function c(e,t,r={},n){let i=null;const a=r.once?(e,r)=>{n(e)&&((0,s.oR)(i),t(e,r))}:(e,r)=>{n(e)&&t(e,r)};if(i=(0,o.M9)(e,a,r.sync,r.equals),r.initial){const t=e();a(t,t)}return i}function p(e,t,r,a={}){let o=null,u=null,c=null;function p(){o&&u&&(u.remove(),a.onListenerRemove?.(o),o=null,u=null)}function f(e){a.once&&a.once&&(0,s.oR)(c),r(e)}const d=l(e,((e,r)=>{p(),(0,n.sh)(e)&&(o=e,u=(0,n.on)(e,t,f),a.onListenerAdd?.(e))}),{sync:a.sync,initial:!0});return c=(0,i.uU)((()=>{d.remove(),p()})),c}function f(e,t){return function(e,t,r){if((0,a.wv)(r))return Promise.reject((0,a.Uh)());const n=e();if(t?.(n))return Promise.resolve(n);let o=null;function l(){o=(0,s.oR)(o)}return new Promise(((n,s)=>{o=(0,i.Ip)([(0,a.wD)(r,(()=>{l(),s((0,a.Uh)())})),c(e,(e=>{l(),n(e)}),{sync:!1,once:!0},t??d)])}))}(e,h,t)}function d(e){return!0}function h(e){return!!e}r(41168);const y={sync:!0},m={initial:!0},g={sync:!0,initial:!0}},44080:(e,t,r)=>{r.r(t),r.d(t,{default:()=>U});var n=r(41948),i=r(83536),s=r(79152),a=r(66360),o=r(26496),l=r(10860),u=r(57896),c=r(1580),p=(r(9456),r(72052),r(20916)),f=r(33600),d=r(12552),h=r(18996),y=r(71448),m=r(81436),g=r(25216),v=r(66576),b=r(98768),w=r(3116),_=r(83928),A=r(9764),x=r(2952),q=r(30604);function E(e,t,r){let n,i;if(e)for(let s=0,a=e.length;s<a;s++){if(n=e.at(s),n?.[t]===r)return n;if("group"===n?.type&&(i=E(n.layers,t,r),i))return i}}const S=e=>{let t=class extends e{constructor(...e){super(...e),this.layers=new x.c;const t=e=>{e.parent=this,this.layerAdded(e),"elevation"!==e.type&&"base-elevation"!==e.type||a.c.getLogger(this).error(`Layer 'title:${e.title}, id:${e.id}' of type '${e.type}' is not supported as an operational layer and will therefore be ignored.`)},r=e=>{e.parent=null,this.layerRemoved(e)};this.addHandles([this.layers.on("before-add",(e=>(e=>{e.parent&&"remove"in e.parent&&e.parent.remove(e)})(e.item))),this.layers.on("after-add",(e=>t(e.item))),this.layers.on("after-remove",(e=>r(e.item)))])}destroy(){const e=this.layers.toArray();for(const t of e)t.destroy();this.layers.destroy()}set layers(e){this._set("layers",(0,q.q)(e,this._get("layers")))}add(e,t){const r=this.layers;if(t=r.getNextIndex(t),e instanceof m.c){const n=e;n.parent===this?this.reorder(n,t):r.add(n,t)}else(0,l.eW)(e)?e.then((e=>{this.destroyed||this.add(e,t)})):a.c.getLogger(this).error("#add()","The item being added is not a Layer or a Promise that resolves to a Layer.")}addMany(e,t){const r=this.layers;let n=r.getNextIndex(t);e.slice().forEach((e=>{e.parent!==this?(r.add(e,n),n+=1):this.reorder(e,n)}))}findLayerById(e){return E(this.layers,"id",e)}findLayerByUid(e){return E(this.layers,"uid",e)}remove(e){return this.layers.remove(e)}removeMany(e){return this.layers.removeMany(e)}removeAll(){return this.layers.removeAll()}reorder(e,t){return this.layers.reorder(e,t)}layerAdded(e){}layerRemoved(e){}};return(0,n._)([(0,c.qq)()],t.prototype,"layers",null),t=(0,n._)([(0,d.c)("esri.support.LayersMixin")],t),t};function I(e,t,r){if(e)for(let n=0,i=e.length;n<i;n++){const i=e.at(n);if(i[t]===r)return i;if("group"===i?.type){const e=I(i.tables,t,r);if(e)return e}}}const C=e=>{let t=class extends e{constructor(...e){super(...e),this.tables=new x.c,this.addHandles([this.tables.on("after-add",(e=>{const t=e.item;t.parent&&t.parent!==this&&"tables"in t.parent&&t.parent.tables.remove(t),t.parent=this,"feature"!==t.type&&a.c.getLogger(this).error(`Layer 'title:${t.title}, id:${t.id}' of type '${t.type}' is not supported as a table and will therefore be ignored.`)})),this.tables.on("after-remove",(e=>{e.item.parent=null}))])}destroy(){const e=this.tables.toArray();for(const t of e)t.destroy();this.tables.destroy()}set tables(e){this._set("tables",(0,q.q)(e,this._get("tables")))}findTableById(e){return I(this.tables,"id",e)}findTableByUid(e){return I(this.tables,"uid",e)}};return(0,n._)([(0,c.qq)()],t.prototype,"tables",null),t=(0,n._)([(0,d.c)("esri.support.TablesMixin")],t),t},T=Symbol("WebScene");var P=r(8616),L=r(13448),O=r(14812);let F=class extends((0,g.W)((0,w.I)((0,v.Y)((0,b.K)(C(S((0,o.U)(m.c)))))))){constructor(e){var t;super(e),this.allLayers=new i.c({getCollections:()=>[this.layers],getChildrenFunction:e=>"layers"in e?e.layers:null}),this.allTables=(t=this,new i.c({getCollections:()=>[t.tables,t.layers],getChildrenFunction:e=>{const t=[];return"tables"in e&&t.push(e.tables),"layers"in e&&t.push(e.layers),t},itemFilterFunction:e=>{const t=e.parent;return!!t&&"tables"in t&&t.tables.includes(e)}})),this.fullExtent=void 0,this.operationalLayerType="GroupLayer",this.spatialReference=void 0,this.type="group",this._debouncedSaveOperations=(0,l.Cu)((async(e,t,n)=>{const{save:i,saveAs:s}=await r.e(9864).then(r.bind(r,89864));switch(e){case P.U.SAVE:return i(this,t);case P.U.SAVE_AS:return s(this,n,t)}}))}initialize(){this._enforceVisibility(this.visibilityMode,this.visible),this.addHandles([(0,u.aE)((()=>{let e=this.parent;for(;e&&"parent"in e&&e.parent;)e=e.parent;return e&&T in e}),(e=>{const t="prevent-adding-tables";this.removeHandles(t),e&&(this.tables.removeAll(),this.addHandles((0,u.on)((()=>this.tables),"before-add",(e=>{e.preventDefault(),a.c.getLogger(this).errorOnce("tables","tables in group layers in a webscene are not supported. Please move the tables from the group layer to the webscene if you want to persist them.")})),t))}),u.KG),(0,u.aE)((()=>this.visible),this._onVisibilityChange.bind(this),u.du)])}destroy(){this.allLayers.destroy(),this.allTables.destroy()}get sourceIsPortalItem(){return this.portalItem&&this.originIdOf("portalItem")===y.sT.USER}_writeLayers(e,t,r,n){const i=[];if(!e)return i;e.forEach((e=>{const t=(0,O.WW)(e,n.webmap?n.webmap.getLayerJSONFromResourceInfo(e):null,n);t?.layerType&&i.push(t)})),t.layers=i}set portalItem(e){this._set("portalItem",e)}readPortalItem(e,t,r){const{itemId:n,layerType:i}=t;if("GroupLayer"===i&&n)return new A.default({id:n,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}set visibilityMode(e){const t=this._get("visibilityMode")!==e;this._set("visibilityMode",e),t&&this._enforceVisibility(e,this.visible)}async beforeSave(){return(0,L.W)(this)}load(e){const t=this.loadFromPortal({supportedTypes:["Feature Service","Feature Collection","Group Layer","Scene Service"],layerModuleTypeMap:_.q},e).catch((e=>{if((0,l.CE)(e),this.sourceIsPortalItem)throw e}));return this.addResolvingPromise(t),Promise.resolve(this)}async loadAll(){return(0,s.A)(this,(e=>{e(this.layers,this.tables)}))}async save(e){return this._debouncedSaveOperations(P.U.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations(P.U.SAVE_AS,t,e)}layerAdded(e){e.visible&&"exclusive"===this.visibilityMode?this._turnOffOtherLayers(e):"inherited"===this.visibilityMode&&(e.visible=this.visible),this.hasHandles(e.uid)?console.error(`Layer read to Grouplayer: uid=${e.uid}`):this.addHandles((0,u.aE)((()=>e.visible),(t=>this._onChildVisibilityChange(e,t)),u.du),e.uid)}layerRemoved(e){this.removeHandles(e.uid),this._enforceVisibility(this.visibilityMode,this.visible)}_turnOffOtherLayers(e){this.layers.forEach((t=>{t!==e&&(t.visible=!1)}))}_enforceVisibility(e,t){if(!(0,p.m6)(this).initialized)return;const r=this.layers;let n=r.find((e=>e.visible));switch(e){case"exclusive":r.length&&!n&&(n=r.at(0),n.visible=!0),this._turnOffOtherLayers(n);break;case"inherited":r.forEach((e=>{e.visible=t}))}}_onVisibilityChange(e){"inherited"===this.visibilityMode&&this.layers.forEach((t=>{t.visible=e}))}_onChildVisibilityChange(e,t){switch(this.visibilityMode){case"exclusive":t?this._turnOffOtherLayers(e):this._isAnyLayerVisible()||(e.visible=!0);break;case"inherited":e.visible=this.visible}}_isAnyLayerVisible(){return this.layers.some((e=>e.visible))}};(0,n._)([(0,c.qq)({readOnly:!0,dependsOn:[]})],F.prototype,"allLayers",void 0),(0,n._)([(0,c.qq)({readOnly:!0})],F.prototype,"allTables",void 0),(0,n._)([(0,c.qq)({json:{read:!0,write:!0}})],F.prototype,"blendMode",void 0),(0,n._)([(0,c.qq)()],F.prototype,"fullExtent",void 0),(0,n._)([(0,c.qq)({readOnly:!0})],F.prototype,"sourceIsPortalItem",null),(0,n._)([(0,c.qq)({json:{read:!1,write:{ignoreOrigin:!0}}})],F.prototype,"layers",void 0),(0,n._)([(0,h.G)("layers")],F.prototype,"_writeLayers",null),(0,n._)([(0,c.qq)({type:["GroupLayer"]})],F.prototype,"operationalLayerType",void 0),(0,n._)([(0,c.qq)({json:{origins:{"web-map":{read:!1,write:{overridePolicy(e,t,r){return{enabled:"Group Layer"===e?.type&&r?.initiator!==this}}}},"web-scene":{read:!1,write:!1}}}})],F.prototype,"portalItem",null),(0,n._)([(0,f.E)("web-map","portalItem",["itemId"])],F.prototype,"readPortalItem",null),(0,n._)([(0,h.G)("web-map","portalItem",{itemId:{type:String}})],F.prototype,"writePortalItem",null),(0,n._)([(0,c.qq)()],F.prototype,"spatialReference",void 0),(0,n._)([(0,c.qq)({json:{read:!1},readOnly:!0,value:"group"})],F.prototype,"type",void 0),(0,n._)([(0,c.qq)({type:["independent","inherited","exclusive"],value:"independent",json:{write:!0,origins:{"web-map":{type:["independent","exclusive"],write:(e,t,r)=>{"inherited"!==e&&(t[r]=e)}}}}})],F.prototype,"visibilityMode",null),F=(0,n._)([(0,d.c)("esri.layers.GroupLayer")],F);const U=F},24676:(e,t,r)=>{r.d(t,{gH:()=>E,GA:()=>S});var n,i,s=r(20744),a=r(58820),o=r(46988),l=r(65604),u=(r(8528),r(14644)),c={exports:{}};i=function(){function e(t,r,n,i){var s=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(s,e.prototype),s.expected=r,s.found=n,s.location=i,s.name="SyntaxError",s}function t(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,e+(r+=r.repeat(t)).slice(0,t))}return function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(e,Error),e.prototype.format=function(e){var r="Error: "+this.message;if(this.location){var n,i=null;for(n=0;n<e.length;n++)if(e[n].source===this.location.source){i=e[n].text.split(/\r\n|\n|\r/g);break}var s=this.location.start,a=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(s):s,o=this.location.source+":"+a.line+":"+a.column;if(i){var l=this.location.end,u=t("",a.line.toString().length," "),c=i[s.line-1],p=(s.line===l.line?l.column:c.length+1)-s.column||1;r+="\n --\x3e "+o+"\n"+u+" |\n"+a.line+" | "+c+"\n"+u+" | "+t("",s.column-1," ")+t("",p,"^")}else r+="\n at "+o}return r},e.buildMessage=function(e,t){var r={literal:function(e){return'"'+i(e.text)+'"'},class:function(e){var t=e.parts.map((function(e){return Array.isArray(e)?s(e[0])+"-"+s(e[1]):s(e)}));return"["+(e.inverted?"^":"")+t.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(e){return e.description}};function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function i(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function s(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function a(e){return r[e.type](e)}return"Expected "+function(e){var t,r,n=e.map(a);if(n.sort(),n.length>0){for(t=1,r=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+function(e){return e?'"'+i(e)+'"':"end of input"}(t)+" found."},{SyntaxError:e,parse:function(t,r){var n,i={},s=(r=void 0!==r?r:{}).grammarSource,a={start:Be},o=Be,l="none",u=")",c=",",p="(",f="%",d="px",h="cm",y="mm",m="in",g="pt",v="pc",b="deg",w="rad",_="grad",A="turn",x="#",q=".",E="e",S=/^[ \t\n\r]/,I=/^[a-z\-]/,C=/^[0-9a-fA-F]/,T=/^[+\-]/,P=/^[0-9]/,L=Ne("none"),O=je("none",!1),F=je(")",!1),U=je(",",!1),$=Ne("whitespace"),M=He([" ","\t","\n","\r"],!1,!1),R=Ne("function"),k=je("(",!1),j=Ne("identifier"),H=He([["a","z"],"-"],!1,!1),N=Ne("percentage"),G=je("%",!1),V=Ne("length"),D=je("px",!1),B=je("cm",!1),z=je("mm",!1),W=je("in",!1),K=je("pt",!1),J=je("pc",!1),X=Ne("angle"),Q=je("deg",!1),Y=je("rad",!1),Z=je("grad",!1),ee=je("turn",!1),te=Ne("number"),re=Ne("color"),ne=je("#",!1),ie=He([["0","9"],["a","f"],["A","F"]],!1,!1),se=He(["+","-"],!1,!1),ae=He([["0","9"]],!1,!1),oe=je(".",!1),le=je("e",!1),ue=function(){return[]},ce=function(e,t){return{type:"function",name:e,parameters:t||[]}},pe=function(e,t){return t.length>0?function(e,t,r){return[e].concat(function(e,t){return e.map((function(e){return e[3]}))}(t))}(e,t):[e]},fe=function(e){return{type:"quantity",value:e.value,unit:e.unit}},de=function(e){return{type:"color",colorType:e.type,value:e.value}},he=function(e){return e},ye=function(){return ke()},me=function(e){return{value:e,unit:"%"}},ge=function(e){return{value:e,unit:"px"}},ve=function(e){return{value:e,unit:"cm"}},be=function(e){return{value:e,unit:"mm"}},we=function(e){return{value:e,unit:"in"}},_e=function(e){return{value:e,unit:"pt"}},Ae=function(e){return{value:e,unit:"pc"}},xe=function(e){return{value:e,unit:"deg"}},qe=function(e){return{value:e,unit:"rad"}},Ee=function(e){return{value:e,unit:"grad"}},Se=function(e){return{value:e,unit:"turn"}},Ie=function(e){return{value:e,unit:null}},Ce=function(){return{type:"hex",value:ke()}},Te=function(e){return{type:"function",value:e}},Pe=function(){return{type:"named",value:ke()}},Le=function(){return parseFloat(ke())},Oe=0,Fe=0,Ue=[{line:1,column:1}],$e=0,Me=[],Re=0;if("startRule"in r){if(!(r.startRule in a))throw new Error("Can't start parsing from rule \""+r.startRule+'".');o=a[r.startRule]}function ke(){return t.substring(Fe,Oe)}function je(e,t){return{type:"literal",text:e,ignoreCase:t}}function He(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function Ne(e){return{type:"other",description:e}}function Ge(e){var r,n=Ue[e];if(n)return n;for(r=e-1;!Ue[r];)r--;for(n={line:(n=Ue[r]).line,column:n.column};r<e;)10===t.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return Ue[e]=n,n}function Ve(e,t,r){var n=Ge(e),i=Ge(t),a={source:s,start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:i.line,column:i.column}};return r&&s&&"function"==typeof s.offset&&(a.start=s.offset(a.start),a.end=s.offset(a.end)),a}function De(e){Oe<$e||(Oe>$e&&($e=Oe,Me=[]),Me.push(e))}function Be(){var e;return(e=ze())===i&&(e=function(){var e,t;if(e=[],(t=We())!==i)for(;t!==i;)e.push(t),t=We();else e=i;return e}()),e}function ze(){var e,r;return Re++,e=Oe,Je(),t.substr(Oe,4)===l?(r=l,Oe+=4):(r=i,0===Re&&De(O)),r!==i?(Je(),Fe=e,e=ue()):(Oe=e,e=i),Re--,e===i&&0===Re&&De(L),e}function We(){var e,r,n,s;return e=Oe,Je(),(r=function(){var e,r,n;return Re++,e=Oe,(r=Xe())!==i?(40===t.charCodeAt(Oe)?(n=p,Oe++):(n=i,0===Re&&De(k)),n!==i?(Fe=e,e=he(r)):(Oe=e,e=i)):(Oe=e,e=i),Re--,e===i&&(r=i,0===Re&&De(R)),e}())!==i?(Je(),(n=function(){var e,r,n,s,a,o,l,u;if(e=Oe,(r=Ke())!==i){for(n=[],s=Oe,a=Je(),44===t.charCodeAt(Oe)?(o=c,Oe++):(o=i,0===Re&&De(U)),o===i&&(o=null),l=Je(),(u=Ke())!==i?s=a=[a,o,l,u]:(Oe=s,s=i);s!==i;)n.push(s),s=Oe,a=Je(),44===t.charCodeAt(Oe)?(o=c,Oe++):(o=i,0===Re&&De(U)),o===i&&(o=null),l=Je(),(u=Ke())!==i?s=a=[a,o,l,u]:(Oe=s,s=i);Fe=e,e=pe(r,n)}else Oe=e,e=i;return e}())===i&&(n=null),Je(),41===t.charCodeAt(Oe)?(s=u,Oe++):(s=i,0===Re&&De(F)),s!==i?(Je(),Fe=e,e=ce(r,n)):(Oe=e,e=i)):(Oe=e,e=i),e}function Ke(){var e,t;return e=Oe,(t=Qe())===i&&(t=Ye())===i&&(t=Ze())===i&&(t=function(){var e,t;return Re++,e=Oe,Je(),(t=tt())!==i?(Fe=e,e=Ie(t)):(Oe=e,e=i),Re--,e===i&&0===Re&&De(te),e}()),t!==i&&(Fe=e,t=fe(t)),(e=t)===i&&(e=Oe,(t=et())!==i&&(Fe=e,t=de(t)),e=t),e}function Je(){var e,r;for(Re++,e=[],S.test(t.charAt(Oe))?(r=t.charAt(Oe),Oe++):(r=i,0===Re&&De(M));r!==i;)e.push(r),S.test(t.charAt(Oe))?(r=t.charAt(Oe),Oe++):(r=i,0===Re&&De(M));return Re--,r=i,0===Re&&De($),e}function Xe(){var e,r,n;if(Re++,e=Oe,r=[],I.test(t.charAt(Oe))?(n=t.charAt(Oe),Oe++):(n=i,0===Re&&De(H)),n!==i)for(;n!==i;)r.push(n),I.test(t.charAt(Oe))?(n=t.charAt(Oe),Oe++):(n=i,0===Re&&De(H));else r=i;return r!==i&&(Fe=e,r=ye()),Re--,(e=r)===i&&(r=i,0===Re&&De(j)),e}function Qe(){var e,r,n;return Re++,e=Oe,Je(),(r=tt())!==i?(37===t.charCodeAt(Oe)?(n=f,Oe++):(n=i,0===Re&&De(G)),n!==i?(Fe=e,e=me(r)):(Oe=e,e=i)):(Oe=e,e=i),Re--,e===i&&0===Re&&De(N),e}function Ye(){var e,r,n;return Re++,e=Oe,Je(),(r=tt())!==i?(t.substr(Oe,2)===d?(n=d,Oe+=2):(n=i,0===Re&&De(D)),n!==i?(Fe=e,e=ge(r)):(Oe=e,e=i)):(Oe=e,e=i),e===i&&(e=Oe,Je(),(r=tt())!==i?(t.substr(Oe,2)===h?(n=h,Oe+=2):(n=i,0===Re&&De(B)),n!==i?(Fe=e,e=ve(r)):(Oe=e,e=i)):(Oe=e,e=i),e===i&&(e=Oe,Je(),(r=tt())!==i?(t.substr(Oe,2)===y?(n=y,Oe+=2):(n=i,0===Re&&De(z)),n!==i?(Fe=e,e=be(r)):(Oe=e,e=i)):(Oe=e,e=i),e===i&&(e=Oe,Je(),(r=tt())!==i?(t.substr(Oe,2)===m?(n=m,Oe+=2):(n=i,0===Re&&De(W)),n!==i?(Fe=e,e=we(r)):(Oe=e,e=i)):(Oe=e,e=i),e===i&&(e=Oe,Je(),(r=tt())!==i?(t.substr(Oe,2)===g?(n=g,Oe+=2):(n=i,0===Re&&De(K)),n!==i?(Fe=e,e=_e(r)):(Oe=e,e=i)):(Oe=e,e=i),e===i&&(e=Oe,Je(),(r=tt())!==i?(t.substr(Oe,2)===v?(n=v,Oe+=2):(n=i,0===Re&&De(J)),n!==i?(Fe=e,e=Ae(r)):(Oe=e,e=i)):(Oe=e,e=i)))))),Re--,e===i&&0===Re&&De(V),e}function Ze(){var e,r,n;return Re++,e=Oe,(r=tt())!==i?(t.substr(Oe,3)===b?(n=b,Oe+=3):(n=i,0===Re&&De(Q)),n!==i?(Fe=e,e=xe(r)):(Oe=e,e=i)):(Oe=e,e=i),e===i&&(e=Oe,(r=tt())!==i?(t.substr(Oe,3)===w?(n=w,Oe+=3):(n=i,0===Re&&De(Y)),n!==i?(Fe=e,e=qe(r)):(Oe=e,e=i)):(Oe=e,e=i),e===i&&(e=Oe,(r=tt())!==i?(t.substr(Oe,4)===_?(n=_,Oe+=4):(n=i,0===Re&&De(Z)),n!==i?(Fe=e,e=Ee(r)):(Oe=e,e=i)):(Oe=e,e=i),e===i&&(e=Oe,(r=tt())!==i?(t.substr(Oe,4)===A?(n=A,Oe+=4):(n=i,0===Re&&De(ee)),n!==i?(Fe=e,e=Se(r)):(Oe=e,e=i)):(Oe=e,e=i)))),Re--,e===i&&(r=i,0===Re&&De(X)),e}function et(){var e,r,n,s;if(Re++,e=Oe,35===t.charCodeAt(Oe)?(r=x,Oe++):(r=i,0===Re&&De(ne)),r!==i){if(n=[],C.test(t.charAt(Oe))?(s=t.charAt(Oe),Oe++):(s=i,0===Re&&De(ie)),s!==i)for(;s!==i;)n.push(s),C.test(t.charAt(Oe))?(s=t.charAt(Oe),Oe++):(s=i,0===Re&&De(ie));else n=i;n!==i?(Fe=e,e=Ce()):(Oe=e,e=i)}else Oe=e,e=i;return e===i&&(e=Oe,(r=We())!==i&&(Fe=e,r=Te(r)),(e=r)===i&&(e=Oe,(r=Xe())!==i&&(Fe=e,r=Pe()),e=r)),Re--,e===i&&(r=i,0===Re&&De(re)),e}function tt(){var e,r,n,s,a,o,l;for(e=Oe,T.test(t.charAt(Oe))?(t.charAt(Oe),Oe++):0===Re&&De(se),r=Oe,n=[],P.test(t.charAt(Oe))?(s=t.charAt(Oe),Oe++):(s=i,0===Re&&De(ae));s!==i;)n.push(s),P.test(t.charAt(Oe))?(s=t.charAt(Oe),Oe++):(s=i,0===Re&&De(ae));if(46===t.charCodeAt(Oe)?(s=q,Oe++):(s=i,0===Re&&De(oe)),s!==i){if(a=[],P.test(t.charAt(Oe))?(o=t.charAt(Oe),Oe++):(o=i,0===Re&&De(ae)),o!==i)for(;o!==i;)a.push(o),P.test(t.charAt(Oe))?(o=t.charAt(Oe),Oe++):(o=i,0===Re&&De(ae));else a=i;a!==i?r=n=[n,s,a]:(Oe=r,r=i)}else Oe=r,r=i;if(r===i)if(r=[],P.test(t.charAt(Oe))?(n=t.charAt(Oe),Oe++):(n=i,0===Re&&De(ae)),n!==i)for(;n!==i;)r.push(n),P.test(t.charAt(Oe))?(n=t.charAt(Oe),Oe++):(n=i,0===Re&&De(ae));else r=i;if(r!==i){if(n=Oe,101===t.charCodeAt(Oe)?(s=E,Oe++):(s=i,0===Re&&De(le)),s!==i){if(T.test(t.charAt(Oe))?(a=t.charAt(Oe),Oe++):(a=i,0===Re&&De(se)),a===i&&(a=null),o=[],P.test(t.charAt(Oe))?(l=t.charAt(Oe),Oe++):(l=i,0===Re&&De(ae)),l!==i)for(;l!==i;)o.push(l),P.test(t.charAt(Oe))?(l=t.charAt(Oe),Oe++):(l=i,0===Re&&De(ae));else o=i;o!==i?n=s=[s,a,o]:(Oe=n,n=i)}else Oe=n,n=i;n===i&&(n=null),Fe=e,e=Le()}else Oe=e,e=i;return e}if((n=o())!==i&&Oe===t.length)return n;throw n!==i&&Oe<t.length&&De({type:"end"}),function(t,r,n){return new e(e.buildMessage(t,r),t,r,n)}(Me,$e<t.length?t.charAt($e):null,$e<t.length?Ve($e,$e+1):Ve($e,$e))}}},(n=c).exports&&(n.exports=i());var p=c.exports;function f(e){if(!e||0===e.length)return null;if("string"==typeof e){const t=d(e);return t&&0!==t.length?t:null}const t=e.map((e=>{if(!Number.isFinite(e.scale)||e.scale<=0)throw new s.c("effect:invalid-scale","scale must be finite and greater than 0",{stop:e});return{scale:e.scale,effects:d(e.value)}}));t.sort(((e,t)=>t.effects.length-e.effects.length));for(let e=0;e<t.length-1;e++){if(!(0,u.w1)(t[e].effects,t[e+1].effects))throw new s.c("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:t[e].effects,b:t[e+1].effects});(0,u.A1)(t[e].effects,t[e+1].effects)}return t.sort(((e,t)=>t.scale-e.scale)),t}function d(e){let t;if(!e)return[];try{t=p.parse(e)}catch(t){throw new s.c("effect:invalid-syntax","Invalid effect syntax",{value:e,error:t})}return t.map((e=>function(e){try{switch(e.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(e){let t=1;return h(e.parameters,1),1===e.parameters.length&&(t=b(e.parameters[0])),new l.M7(e.name,t)}(e);case"opacity":return function(e){let t=1;return h(e.parameters,1),1===e.parameters.length&&(t=b(e.parameters[0])),new l.Ez(t)}(e);case"hue-rotate":return function(e){let t=0;return h(e.parameters,1),1===e.parameters.length&&(t=function(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=g[e.unit]))throw new s.c("effect:type-error",`Expected <angle>, Actual: ${y(e)}`,{term:e})}(e),e.value*g[e.unit]||0}(e.parameters[0])),new l.C8(t)}(e);case"blur":return function(e){let t=0;return h(e.parameters,1),1===e.parameters.length&&(t=w(e.parameters[0]),m(t,e.parameters[0])),new l.o1(t)}(e);case"drop-shadow":return function(e){const t=[];let r=null;for(const n of e.parameters)if("color"===n.type){if(t.length&&Object.freeze(t),r)throw new s.c("effect:type-error","Accepts only one color",{});r=_(n)}else{const e=w(n);if(Object.isFrozen(t))throw new s.c("effect:type-error","<length> parameters not consecutive",{lengths:t});t.push(e),3===t.length&&m(e,n)}if(t.length<2||t.length>3)throw new s.c("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${t.length}}`,{lengths:t});return new l.of(t[0],t[1],t[2]||0,r||A("black"))}(e);case"bloom":return function(e){let t=1,r=0,n=0;return h(e.parameters,3),e.parameters[0]&&(t=b(e.parameters[0])),e.parameters[1]&&(r=w(e.parameters[1]),m(r,e.parameters[1])),e.parameters[2]&&(n=b(e.parameters[2])),new l.qC(t,r,n)}(e)}}catch(t){throw t.details.filter=e,t}throw new s.c("effect:unknown-effect",`Effect '${e.name}' is not supported`,{effect:e})}(e)))}function h(e,t){if(e.length>t)throw new s.c("effect:type-error",`Function supports up to ${t} parameters, Actual: ${e.length}`,{parameters:e})}function y(e){if("color"===e.type)return"<color>";if(e.unit){if(e.unit in v)return"<length>";if(e.unit in g)return"<angle>";if("%"===e.unit)return"<percentage>"}return"<double>"}function m(e,t){if(e<0)throw new s.c("effect:type-error",`Negative values are not allowed, Actual: ${e}`,{term:t})}const g={deg:1,grad:.9,rad:180/Math.PI,turn:360},v={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function b(e){!function(e){if("quantity"!==e.type||null!==e.unit&&"%"!==e.unit)throw new s.c("effect:type-error",`Expected <double> or <percentage>, Actual: ${y(e)}`,{term:e})}(e);const t=e.value;return m(t,e),"%"===e.unit?.01*t:t}function w(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=v[e.unit]))throw new s.c("effect:type-error",`Expected <length>, Actual: ${y(e)}`,{term:e})}(e),e.value*v[e.unit]||0}function _(e){switch(e.colorType){case"hex":return(0,o.yU)(e.value);case"named":return A(e.value);case"function":return function(e){if(h(e.parameters,4),x.test(e.name))return[b(e.parameters[0]),b(e.parameters[1]),b(e.parameters[2]),e.parameters[3]?b(e.parameters[3]):1];if(q.test(e.name))return(0,o.ec)(function(e){return function(e){if("quantity"!==e.type||null!==e.unit)throw new s.c("effect:type-error",`Expected <double>, Actual: ${y(e)}`,{term:e})}(e),m(e.value,e),e.value}(e.parameters[0]),b(e.parameters[1]),b(e.parameters[2]),e.parameters[3]?b(e.parameters[3]):1);throw new s.c("effect:syntax-error",`Invalid color function '${e.name}'`,{colorFunction:e})}(e.value)}}function A(e){if(!(0,o.kv)(e))throw new s.c("effect:unknown-color",`color '${e}' isn't valid`,{namedColor:e});return(0,o.uO)(e)}const x=/^rgba?/i,q=/^hsla?/i;function E(e,t,r){try{return function(e){if(!e||0===e.length)return null;if(function(e){const t=e[0];return!!t&&"scale"in t}(e)){const t=[];for(const r of e)t.push({scale:r.scale,value:I(r.value)});return t}return I(e)}(e)}catch(e){r?.messages?.push(e)}return null}function S(e,t,r,n){try{const n=function(e){const t=f(e);return t?(0,u.Ub)(t)?t.map((e=>e.toJSON())):t.map((({scale:e,effects:t})=>({scale:e,value:t.map((e=>e.toJSON()))}))):null}(e);(0,a.qQ)(r,n,t)}catch(e){n.messages&&n.messages.push(e)}}function I(e){if(!e?.length)return"";const t=[];for(const r of e){let e=[];switch(r.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":e=[C(r,"amount")];break;case"blur":e=[C(r,"radius","pt")];break;case"hue-rotate":e=[C(r,"angle","deg")];break;case"drop-shadow":e=[C(r,"xoffset","pt"),C(r,"yoffset","pt"),C(r,"blurRadius","pt"),T(r,"color")];break;case"bloom":e=[C(r,"strength"),C(r,"radius","pt"),C(r,"threshold")]}const n=`${r.type}(${e.filter(Boolean).join(" ")})`;f(n),t.push(n)}return t.join(" ")}function C(e,t,r){if(null==e[t])throw new s.c("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});return r?e[t]+r:""+e[t]}function T(e,t){if(null==e[t])throw new s.c("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});const r=e[t];return`rgba(${r[0]||0}, ${r[1]||0}, ${r[2]||0}, ${r[3]/255||0})`}},25216:(e,t,r)=>{r.d(t,{W:()=>l});var n=r(41948),i=r(1580),s=(r(9456),r(66360),r(72052),r(12552)),a=r(24676);const o={read:{reader:a.gH},write:{allowNull:!0,writer:a.GA}},l=e=>{let t=class extends e{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,n._)([(0,i.qq)({type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:!0},"portal-item":{read:!0,write:!0}}}})],t.prototype,"blendMode",void 0),(0,n._)([(0,i.qq)({json:{read:!1,write:!1,origins:{"web-map":o,"portal-item":o}}})],t.prototype,"effect",void 0),t=(0,n._)([(0,s.c)("esri.layers.mixins.BlendLayer")],t),t}},98768:(e,t,r)=>{r.d(t,{K:()=>A});var n=r(41948),i=r(6220),s=r(47620),a=r(2600),o=r(40196),l=r(20744),u=r(66360),c=r(70680),p=r(10860),f=r(28176),d=r(1580),h=(r(9456),r(72052),r(33600)),y=r(12552),m=r(18996),g=r(71068),v=r(54872),b=r(9764),w=r(53039),_=r(46940);const A=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:n}=await Promise.all([r.e(8828),r.e(4132)]).then(r.bind(r,94132));return(0,p.wp)(t),await n({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(!i.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:n},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",n),this._set("userHasUpdateItemPrivileges",i)}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 n=e===r.id;if(n&&r.portal.user)return(0,_.CI)(r);let i,a;if(n)i=r.portal.url;else try{i=await(0,g.mK)(this.url,t)}catch(e){(0,p.CE)(e)}if(!i||!(0,f.Cs)(i,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(s.id?.getCredential(`${i}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.CE)(e)}if(!a)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(n?await r.reload():(r=new b.default({id:e,portal:{url:i}}),await r.load(t)),r.portal.user)return(0,_.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?s.id?.findCredential(this.url):null;if(!t)return!0;const r=x.credential===t?x.user:await this._fetchEditingUser(e);return x.credential=t,x.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=s.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const n=`${r.owningSystemUrl}/sharing/rest`,i=v.c.getDefault();if(i&&i.loaded&&(0,f.k7)(i.restUrl)===(0,f.k7)(n))return i.user;const l=`${n}/community/self`,u=null!=e?e.signal:null,c=await(0,o.aG)((0,a.c)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?w.c.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,n=this.portalItem?.id&&(this.portalItem.portal||v.c.getDefault());return r&&n&&!(0,f.kF)(n.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.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,n._)([(0,d.qq)({type:b.default})],t.prototype,"portalItem",null),(0,n._)([(0,h.E)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,n._)([(0,m.G)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,n._)([(0,d.qq)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,n._)([(0,d.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,n._)([(0,d.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,n._)([(0,d.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,n._)([(0,y.c)("esri.layers.mixins.PortalLayer")],t),t},x={credential:null,user:null}},3116:(e,t,r)=>{r.d(t,{I:()=>a});var n=r(41948),i=r(1580),s=(r(9456),r(66360),r(72052),r(12552));const a=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,n._)([(0,i.qq)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,n._)([(0,i.qq)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,n._)([(0,i.qq)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,n._)([(0,s.c)("esri.layers.mixins.ScaleRangeLayer")],t),t}},8616:(e,t,r)=>{var n;r.d(t,{U:()=>n}),function(e){e[e.SAVE=0]="SAVE",e[e.SAVE_AS=1]="SAVE_AS"}(n||(n={}))},13448:(e,t,r)=>{r.d(t,{W:()=>i,e:()=>a});var n=r(20744);async function i(e){const t=[];for(const r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){const e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}const s=new Set(["layer:unsupported","property:unsupported","symbol:unsupported","symbol-layer:unsupported","url:unsupported"]);function a(e,t,r){let i=(e.messages??[]).filter((({type:e})=>"error"===e)).map((({name:e,message:t,details:r})=>new n.c(e,t,r)));if(e.blockedRelativeUrls&&(i=i.concat(e.blockedRelativeUrls.map((e=>new n.c("url:unsupported",`Relative url '${e}' is not supported`))))),r){const{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:n}=r;e&&(i=i.filter((({name:e})=>!(s.has(e)||t.includes(e))))),n&&(i=i.filter((e=>"web-document-write:property-required"!==e.name)))}if(i.length>0)throw new n.c(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:i})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7456,6147,5076],{25228:(e,t,r)=>{r.d(t,{c:()=>y});var n,i=r(41948),s=r(40504),a=r(94360),o=r(1580),l=(r(9456),r(66360),r(72052),r(33600)),u=r(12552),c=r(18996),p=r(28484);let d=n=class extends s.am{static get allTime(){return f}static get empty(){return h}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(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new n({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,n=e.start?.getTime()??e.start,i=e.end?.getTime()??e.end;return t===n&&r===i}expandTo(e,t=p.OX){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,a.aU)(r,e,t));let i=this.end;if(i){const r=(0,a.aU)(i,e,t);i=i.getTime()===r.getTime()?r:(0,a.g1)(r,1,e,t)}return new n({start:r,end:i})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return n.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,i=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let a,o;return i>=t&&i<=r?a=i:t>=i&&t<=s&&(a=t),r>=i&&r<=s?o=r:s>=t&&s<=r&&(o=s),null==a||null==o||isNaN(a)||isNaN(o)?n.empty:new n({start:a===-1/0?null:new Date(a),end:o===1/0?null:new Date(o)})}offset(e,t,r=p.OX){if(this.isEmpty||this.isAllTime)return this.clone();const i=new n,{start:s,end:o}=this;return null!=s&&(i.start=(0,a.g1)(s,e,t,r)),null!=o&&(i.end=(0,a.g1)(o,e,t,r)),i}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return f.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 n({start:t,end:r})}};(0,i._)([(0,o.qq)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,i._)([(0,l.E)("end")],d.prototype,"readEnd",null),(0,i._)([(0,c.G)("end")],d.prototype,"writeEnd",null),(0,i._)([(0,o.qq)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,i._)([(0,o.qq)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,i._)([(0,o.qq)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,i._)([(0,l.E)("start")],d.prototype,"readStart",null),(0,i._)([(0,c.G)("start")],d.prototype,"writeStart",null),d=n=(0,i._)([(0,u.c)("esri.TimeExtent")],d);const f=new d,h=new d({start:void 0,end:void 0}),y=d},8528:(e,t,r)=>{r.d(t,{c:()=>n,g:()=>i});var n="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}},83536:(e,t,r)=>{r.d(t,{c:()=>u});var n=r(41948),i=r(2952),s=(r(40196),r(20744),r(66360),r(37176),r(41168)),a=r(1580),o=r(12552);let l=class extends i.c{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,s.ox)((()=>this._refresh())))}destroy(){this.getCollections=null}_refresh(){const e=null!=this.getCollections?this.getCollections():null;if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t,this.length)}_createNewInstance(e){return new i.c(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const n of t)if(n){if(r(n)){const t=this.indexOf(n,e);t>=0?t!==e&&this.reorder(n,e):this.add(n,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(n);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,n._)([(0,a.qq)()],l.prototype,"getCollections",void 0),(0,n._)([(0,a.qq)()],l.prototype,"getChildrenFunction",void 0),(0,n._)([(0,a.qq)()],l.prototype,"itemFilterFunction",void 0),l=(0,n._)([(0,o.c)("esri.core.CollectionFlattener")],l);const u=l},22156:(e,t,r)=>{r.d(t,{MR:()=>a,qm:()=>o});var n=r(41948),i=r(12552);let s=0;const a=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return t=(0,n._)([(0,i.c)("esri.core.Identifiable")],t),t},o=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:s++})}};return t=(0,n._)([(0,i.c)("esri.core.NumericIdentifiable")],t),t};let l=class extends(a(class{})){};l=(0,n._)([(0,i.c)("esri.core.Identifiable")],l)},57896:(e,t,r)=>{r.d(t,{Eq:()=>d,KG:()=>g,_8:()=>m,_I:()=>u,aE:()=>l,du:()=>y,on:()=>p}),r(40196),r(2952);var n=r(60976),i=r(38912),s=r(70680),a=r(10860),o=r(37176);function l(e,t,r={}){return c(e,t,r,f)}function u(e,t,r={}){return c(e,t,r,h)}function c(e,t,r={},n){let i=null;const a=r.once?(e,r)=>{n(e)&&((0,s.oR)(i),t(e,r))}:(e,r)=>{n(e)&&t(e,r)};if(i=(0,o.M9)(e,a,r.sync,r.equals),r.initial){const t=e();a(t,t)}return i}function p(e,t,r,a={}){let o=null,u=null,c=null;function p(){o&&u&&(u.remove(),a.onListenerRemove?.(o),o=null,u=null)}function d(e){a.once&&a.once&&(0,s.oR)(c),r(e)}const f=l(e,((e,r)=>{p(),(0,n.sh)(e)&&(o=e,u=(0,n.on)(e,t,d),a.onListenerAdd?.(e))}),{sync:a.sync,initial:!0});return c=(0,i.uU)((()=>{f.remove(),p()})),c}function d(e,t){return function(e,t,r){if((0,a.wv)(r))return Promise.reject((0,a.Uh)());const n=e();if(t?.(n))return Promise.resolve(n);let o=null;function l(){o=(0,s.oR)(o)}return new Promise(((n,s)=>{o=(0,i.Ip)([(0,a.wD)(r,(()=>{l(),s((0,a.Uh)())})),c(e,(e=>{l(),n(e)}),{sync:!1,once:!0},t??f)])}))}(e,h,t)}function f(e){return!0}function h(e){return!!e}r(41168);const y={sync:!0},m={initial:!0},g={sync:!0,initial:!0}},44080:(e,t,r)=>{r.r(t),r.d(t,{default:()=>F});var n=r(41948),i=r(83536),s=r(79152),a=r(66360),o=r(26496),l=r(10860),u=r(57896),c=r(1580),p=(r(9456),r(72052),r(20916)),d=r(33600),f=r(12552),h=r(18996),y=r(71448),m=r(81436),g=r(25216),v=r(66576),b=r(98768),w=r(3116),_=r(83928),q=r(9764),A=r(2952),x=r(30604);function E(e,t,r){let n,i;if(e)for(let s=0,a=e.length;s<a;s++){if(n=e.at(s),n?.[t]===r)return n;if("group"===n?.type&&(i=E(n.layers,t,r),i))return i}}const S=e=>{let t=class extends e{constructor(...e){super(...e),this.layers=new A.c;const t=e=>{e.parent=this,this.layerAdded(e),"elevation"!==e.type&&"base-elevation"!==e.type||a.c.getLogger(this).error(`Layer 'title:${e.title}, id:${e.id}' of type '${e.type}' is not supported as an operational layer and will therefore be ignored.`)},r=e=>{e.parent=null,this.layerRemoved(e)};this.addHandles([this.layers.on("before-add",(e=>(e=>{e.parent&&"remove"in e.parent&&e.parent.remove(e)})(e.item))),this.layers.on("after-add",(e=>t(e.item))),this.layers.on("after-remove",(e=>r(e.item)))])}destroy(){const e=this.layers.toArray();for(const t of e)t.destroy();this.layers.destroy()}set layers(e){this._set("layers",(0,x.q)(e,this._get("layers")))}add(e,t){const r=this.layers;if(t=r.getNextIndex(t),e instanceof m.c){const n=e;n.parent===this?this.reorder(n,t):r.add(n,t)}else(0,l.eW)(e)?e.then((e=>{this.destroyed||this.add(e,t)})):a.c.getLogger(this).error("#add()","The item being added is not a Layer or a Promise that resolves to a Layer.")}addMany(e,t){const r=this.layers;let n=r.getNextIndex(t);e.slice().forEach((e=>{e.parent!==this?(r.add(e,n),n+=1):this.reorder(e,n)}))}findLayerById(e){return E(this.layers,"id",e)}findLayerByUid(e){return E(this.layers,"uid",e)}remove(e){return this.layers.remove(e)}removeMany(e){return this.layers.removeMany(e)}removeAll(){return this.layers.removeAll()}reorder(e,t){return this.layers.reorder(e,t)}layerAdded(e){}layerRemoved(e){}};return(0,n._)([(0,c.qq)()],t.prototype,"layers",null),t=(0,n._)([(0,f.c)("esri.support.LayersMixin")],t),t};function I(e,t,r){if(e)for(let n=0,i=e.length;n<i;n++){const i=e.at(n);if(i[t]===r)return i;if("group"===i?.type){const e=I(i.tables,t,r);if(e)return e}}}const C=e=>{let t=class extends e{constructor(...e){super(...e),this.tables=new A.c,this.addHandles([this.tables.on("after-add",(e=>{const t=e.item;t.parent&&t.parent!==this&&"tables"in t.parent&&t.parent.tables.remove(t),t.parent=this,"feature"!==t.type&&a.c.getLogger(this).error(`Layer 'title:${t.title}, id:${t.id}' of type '${t.type}' is not supported as a table and will therefore be ignored.`)})),this.tables.on("after-remove",(e=>{e.item.parent=null}))])}destroy(){const e=this.tables.toArray();for(const t of e)t.destroy();this.tables.destroy()}set tables(e){this._set("tables",(0,x.q)(e,this._get("tables")))}findTableById(e){return I(this.tables,"id",e)}findTableByUid(e){return I(this.tables,"uid",e)}};return(0,n._)([(0,c.qq)()],t.prototype,"tables",null),t=(0,n._)([(0,f.c)("esri.support.TablesMixin")],t),t},P=Symbol("WebScene");var L=r(8616),T=r(13448),U=r(14812);let O=class extends((0,g.W)((0,w.I)((0,v.Y)((0,b.K)(C(S((0,o.U)(m.c)))))))){constructor(e){var t;super(e),this.allLayers=new i.c({getCollections:()=>[this.layers],getChildrenFunction:e=>"layers"in e?e.layers:null}),this.allTables=(t=this,new i.c({getCollections:()=>[t.tables,t.layers],getChildrenFunction:e=>{const t=[];return"tables"in e&&t.push(e.tables),"layers"in e&&t.push(e.layers),t},itemFilterFunction:e=>{const t=e.parent;return!!t&&"tables"in t&&t.tables.includes(e)}})),this.fullExtent=void 0,this.operationalLayerType="GroupLayer",this.spatialReference=void 0,this.type="group",this._debouncedSaveOperations=(0,l.Cu)((async(e,t,n)=>{const{save:i,saveAs:s}=await r.e(9864).then(r.bind(r,89864));switch(e){case L.U.SAVE:return i(this,t);case L.U.SAVE_AS:return s(this,n,t)}}))}initialize(){this._enforceVisibility(this.visibilityMode,this.visible),this.addHandles([(0,u.aE)((()=>{let e=this.parent;for(;e&&"parent"in e&&e.parent;)e=e.parent;return e&&P in e}),(e=>{const t="prevent-adding-tables";this.removeHandles(t),e&&(this.tables.removeAll(),this.addHandles((0,u.on)((()=>this.tables),"before-add",(e=>{e.preventDefault(),a.c.getLogger(this).errorOnce("tables","tables in group layers in a webscene are not supported. Please move the tables from the group layer to the webscene if you want to persist them.")})),t))}),u.KG),(0,u.aE)((()=>this.visible),this._onVisibilityChange.bind(this),u.du)])}destroy(){this.allLayers.destroy(),this.allTables.destroy()}get sourceIsPortalItem(){return this.portalItem&&this.originIdOf("portalItem")===y.sT.USER}_writeLayers(e,t,r,n){const i=[];if(!e)return i;e.forEach((e=>{const t=(0,U.WW)(e,n.webmap?n.webmap.getLayerJSONFromResourceInfo(e):null,n);t?.layerType&&i.push(t)})),t.layers=i}set portalItem(e){this._set("portalItem",e)}readPortalItem(e,t,r){const{itemId:n,layerType:i}=t;if("GroupLayer"===i&&n)return new q.default({id:n,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}set visibilityMode(e){const t=this._get("visibilityMode")!==e;this._set("visibilityMode",e),t&&this._enforceVisibility(e,this.visible)}async beforeSave(){return(0,T.W)(this)}load(e){const t=this.loadFromPortal({supportedTypes:["Feature Service","Feature Collection","Group Layer","Scene Service"],layerModuleTypeMap:_.q},e).catch((e=>{if((0,l.CE)(e),this.sourceIsPortalItem)throw e}));return this.addResolvingPromise(t),Promise.resolve(this)}async loadAll(){return(0,s.A)(this,(e=>{e(this.layers,this.tables)}))}async save(e){return this._debouncedSaveOperations(L.U.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations(L.U.SAVE_AS,t,e)}layerAdded(e){e.visible&&"exclusive"===this.visibilityMode?this._turnOffOtherLayers(e):"inherited"===this.visibilityMode&&(e.visible=this.visible),this.hasHandles(e.uid)?console.error(`Layer read to Grouplayer: uid=${e.uid}`):this.addHandles((0,u.aE)((()=>e.visible),(t=>this._onChildVisibilityChange(e,t)),u.du),e.uid)}layerRemoved(e){this.removeHandles(e.uid),this._enforceVisibility(this.visibilityMode,this.visible)}_turnOffOtherLayers(e){this.layers.forEach((t=>{t!==e&&(t.visible=!1)}))}_enforceVisibility(e,t){if(!(0,p.m6)(this).initialized)return;const r=this.layers;let n=r.find((e=>e.visible));switch(e){case"exclusive":r.length&&!n&&(n=r.at(0),n.visible=!0),this._turnOffOtherLayers(n);break;case"inherited":r.forEach((e=>{e.visible=t}))}}_onVisibilityChange(e){"inherited"===this.visibilityMode&&this.layers.forEach((t=>{t.visible=e}))}_onChildVisibilityChange(e,t){switch(this.visibilityMode){case"exclusive":t?this._turnOffOtherLayers(e):this._isAnyLayerVisible()||(e.visible=!0);break;case"inherited":e.visible=this.visible}}_isAnyLayerVisible(){return this.layers.some((e=>e.visible))}};(0,n._)([(0,c.qq)({readOnly:!0,dependsOn:[]})],O.prototype,"allLayers",void 0),(0,n._)([(0,c.qq)({readOnly:!0})],O.prototype,"allTables",void 0),(0,n._)([(0,c.qq)({json:{read:!0,write:!0}})],O.prototype,"blendMode",void 0),(0,n._)([(0,c.qq)()],O.prototype,"fullExtent",void 0),(0,n._)([(0,c.qq)({readOnly:!0})],O.prototype,"sourceIsPortalItem",null),(0,n._)([(0,c.qq)({json:{read:!1,write:{ignoreOrigin:!0}}})],O.prototype,"layers",void 0),(0,n._)([(0,h.G)("layers")],O.prototype,"_writeLayers",null),(0,n._)([(0,c.qq)({type:["GroupLayer"]})],O.prototype,"operationalLayerType",void 0),(0,n._)([(0,c.qq)({json:{origins:{"web-map":{read:!1,write:{overridePolicy(e,t,r){return{enabled:"Group Layer"===e?.type&&r?.initiator!==this}}}},"web-scene":{read:!1,write:!1}}}})],O.prototype,"portalItem",null),(0,n._)([(0,d.E)("web-map","portalItem",["itemId"])],O.prototype,"readPortalItem",null),(0,n._)([(0,h.G)("web-map","portalItem",{itemId:{type:String}})],O.prototype,"writePortalItem",null),(0,n._)([(0,c.qq)()],O.prototype,"spatialReference",void 0),(0,n._)([(0,c.qq)({json:{read:!1},readOnly:!0,value:"group"})],O.prototype,"type",void 0),(0,n._)([(0,c.qq)({type:["independent","inherited","exclusive"],value:"independent",json:{write:!0,origins:{"web-map":{type:["independent","exclusive"],write:(e,t,r)=>{"inherited"!==e&&(t[r]=e)}}}}})],O.prototype,"visibilityMode",null),O=(0,n._)([(0,f.c)("esri.layers.GroupLayer")],O);const F=O},81436:(e,t,r)=>{r.d(t,{c:()=>b});var n=r(41948),i=(r(60708),r(2600)),s=r(20744),a=r(77860),o=r(22156),l=r(95800),u=r(66360),c=r(10860),p=r(28176),d=r(1580),f=(r(9456),r(72052),r(12552)),h=r(6220),y=r(95247),m=r(56156);let g=0,v=class extends(a.c.EventedMixin((0,o.MR)(l.c))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new y.c(-180,-90,180,90,m.c.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.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:n}=await r.e(2259).then(r.bind(r,12259));try{return await n(t)}catch(e){const r=t?.portalItem,n=r?.id||"unset",i=r?.portal?.url||h.default.portalUrl;throw u.c.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+i+"', id: '"+n+"')",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,i.c)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.c("layer:no-attribution-data","Layer does not have attribution data")}};(0,n._)([(0,d.qq)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,n._)([(0,d.qq)({type:y.c})],v.prototype,"fullExtent",void 0),(0,n._)([(0,d.qq)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,n._)([(0,d.qq)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,n._)([(0,d.qq)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,n._)([(0,d.qq)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,n._)([(0,d.qq)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,n._)([(0,d.qq)({clonable:!1})],v.prototype,"parent",void 0),(0,n._)([(0,d.qq)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,n._)([(0,d.qq)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,n._)([(0,d.qq)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,n._)([(0,d.qq)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,n._)([(0,d.qq)({type:m.c})],v.prototype,"spatialReference",void 0),(0,n._)([(0,d.qq)({type:String})],v.prototype,"title",void 0),(0,n._)([(0,d.qq)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,n._)([(0,d.qq)()],v.prototype,"url",void 0),(0,n._)([(0,d.qq)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,n._)([(0,f.c)("esri.layers.Layer")],v);const b=v},24676:(e,t,r)=>{r.d(t,{gH:()=>E,GA:()=>S});var n,i,s=r(20744),a=r(58820),o=r(46988),l=r(65604),u=(r(8528),r(14644)),c={exports:{}};i=function(){function e(t,r,n,i){var s=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(s,e.prototype),s.expected=r,s.found=n,s.location=i,s.name="SyntaxError",s}function t(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,e+(r+=r.repeat(t)).slice(0,t))}return function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(e,Error),e.prototype.format=function(e){var r="Error: "+this.message;if(this.location){var n,i=null;for(n=0;n<e.length;n++)if(e[n].source===this.location.source){i=e[n].text.split(/\r\n|\n|\r/g);break}var s=this.location.start,a=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(s):s,o=this.location.source+":"+a.line+":"+a.column;if(i){var l=this.location.end,u=t("",a.line.toString().length," "),c=i[s.line-1],p=(s.line===l.line?l.column:c.length+1)-s.column||1;r+="\n --\x3e "+o+"\n"+u+" |\n"+a.line+" | "+c+"\n"+u+" | "+t("",s.column-1," ")+t("",p,"^")}else r+="\n at "+o}return r},e.buildMessage=function(e,t){var r={literal:function(e){return'"'+i(e.text)+'"'},class:function(e){var t=e.parts.map((function(e){return Array.isArray(e)?s(e[0])+"-"+s(e[1]):s(e)}));return"["+(e.inverted?"^":"")+t.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(e){return e.description}};function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function i(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function s(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function a(e){return r[e.type](e)}return"Expected "+function(e){var t,r,n=e.map(a);if(n.sort(),n.length>0){for(t=1,r=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+function(e){return e?'"'+i(e)+'"':"end of input"}(t)+" found."},{SyntaxError:e,parse:function(t,r){var n,i={},s=(r=void 0!==r?r:{}).grammarSource,a={start:Be},o=Be,l="none",u=")",c=",",p="(",d="%",f="px",h="cm",y="mm",m="in",g="pt",v="pc",b="deg",w="rad",_="grad",q="turn",A="#",x=".",E="e",S=/^[ \t\n\r]/,I=/^[a-z\-]/,C=/^[0-9a-fA-F]/,P=/^[+\-]/,L=/^[0-9]/,T=De("none"),U=Ne("none",!1),O=Ne(")",!1),F=Ne(",",!1),M=De("whitespace"),$=ke([" ","\t","\n","\r"],!1,!1),R=De("function"),j=Ne("(",!1),N=De("identifier"),k=ke([["a","z"],"-"],!1,!1),D=De("percentage"),H=Ne("%",!1),G=De("length"),V=Ne("px",!1),B=Ne("cm",!1),W=Ne("mm",!1),z=Ne("in",!1),K=Ne("pt",!1),J=Ne("pc",!1),X=De("angle"),Q=Ne("deg",!1),Y=Ne("rad",!1),Z=Ne("grad",!1),ee=Ne("turn",!1),te=De("number"),re=De("color"),ne=Ne("#",!1),ie=ke([["0","9"],["a","f"],["A","F"]],!1,!1),se=ke(["+","-"],!1,!1),ae=ke([["0","9"]],!1,!1),oe=Ne(".",!1),le=Ne("e",!1),ue=function(){return[]},ce=function(e,t){return{type:"function",name:e,parameters:t||[]}},pe=function(e,t){return t.length>0?function(e,t,r){return[e].concat(function(e,t){return e.map((function(e){return e[3]}))}(t))}(e,t):[e]},de=function(e){return{type:"quantity",value:e.value,unit:e.unit}},fe=function(e){return{type:"color",colorType:e.type,value:e.value}},he=function(e){return e},ye=function(){return je()},me=function(e){return{value:e,unit:"%"}},ge=function(e){return{value:e,unit:"px"}},ve=function(e){return{value:e,unit:"cm"}},be=function(e){return{value:e,unit:"mm"}},we=function(e){return{value:e,unit:"in"}},_e=function(e){return{value:e,unit:"pt"}},qe=function(e){return{value:e,unit:"pc"}},Ae=function(e){return{value:e,unit:"deg"}},xe=function(e){return{value:e,unit:"rad"}},Ee=function(e){return{value:e,unit:"grad"}},Se=function(e){return{value:e,unit:"turn"}},Ie=function(e){return{value:e,unit:null}},Ce=function(){return{type:"hex",value:je()}},Pe=function(e){return{type:"function",value:e}},Le=function(){return{type:"named",value:je()}},Te=function(){return parseFloat(je())},Ue=0,Oe=0,Fe=[{line:1,column:1}],Me=0,$e=[],Re=0;if("startRule"in r){if(!(r.startRule in a))throw new Error("Can't start parsing from rule \""+r.startRule+'".');o=a[r.startRule]}function je(){return t.substring(Oe,Ue)}function Ne(e,t){return{type:"literal",text:e,ignoreCase:t}}function ke(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function De(e){return{type:"other",description:e}}function He(e){var r,n=Fe[e];if(n)return n;for(r=e-1;!Fe[r];)r--;for(n={line:(n=Fe[r]).line,column:n.column};r<e;)10===t.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return Fe[e]=n,n}function Ge(e,t,r){var n=He(e),i=He(t),a={source:s,start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:i.line,column:i.column}};return r&&s&&"function"==typeof s.offset&&(a.start=s.offset(a.start),a.end=s.offset(a.end)),a}function Ve(e){Ue<Me||(Ue>Me&&(Me=Ue,$e=[]),$e.push(e))}function Be(){var e;return(e=We())===i&&(e=function(){var e,t;if(e=[],(t=ze())!==i)for(;t!==i;)e.push(t),t=ze();else e=i;return e}()),e}function We(){var e,r;return Re++,e=Ue,Je(),t.substr(Ue,4)===l?(r=l,Ue+=4):(r=i,0===Re&&Ve(U)),r!==i?(Je(),Oe=e,e=ue()):(Ue=e,e=i),Re--,e===i&&0===Re&&Ve(T),e}function ze(){var e,r,n,s;return e=Ue,Je(),(r=function(){var e,r,n;return Re++,e=Ue,(r=Xe())!==i?(40===t.charCodeAt(Ue)?(n=p,Ue++):(n=i,0===Re&&Ve(j)),n!==i?(Oe=e,e=he(r)):(Ue=e,e=i)):(Ue=e,e=i),Re--,e===i&&(r=i,0===Re&&Ve(R)),e}())!==i?(Je(),(n=function(){var e,r,n,s,a,o,l,u;if(e=Ue,(r=Ke())!==i){for(n=[],s=Ue,a=Je(),44===t.charCodeAt(Ue)?(o=c,Ue++):(o=i,0===Re&&Ve(F)),o===i&&(o=null),l=Je(),(u=Ke())!==i?s=a=[a,o,l,u]:(Ue=s,s=i);s!==i;)n.push(s),s=Ue,a=Je(),44===t.charCodeAt(Ue)?(o=c,Ue++):(o=i,0===Re&&Ve(F)),o===i&&(o=null),l=Je(),(u=Ke())!==i?s=a=[a,o,l,u]:(Ue=s,s=i);Oe=e,e=pe(r,n)}else Ue=e,e=i;return e}())===i&&(n=null),Je(),41===t.charCodeAt(Ue)?(s=u,Ue++):(s=i,0===Re&&Ve(O)),s!==i?(Je(),Oe=e,e=ce(r,n)):(Ue=e,e=i)):(Ue=e,e=i),e}function Ke(){var e,t;return e=Ue,(t=Qe())===i&&(t=Ye())===i&&(t=Ze())===i&&(t=function(){var e,t;return Re++,e=Ue,Je(),(t=tt())!==i?(Oe=e,e=Ie(t)):(Ue=e,e=i),Re--,e===i&&0===Re&&Ve(te),e}()),t!==i&&(Oe=e,t=de(t)),(e=t)===i&&(e=Ue,(t=et())!==i&&(Oe=e,t=fe(t)),e=t),e}function Je(){var e,r;for(Re++,e=[],S.test(t.charAt(Ue))?(r=t.charAt(Ue),Ue++):(r=i,0===Re&&Ve($));r!==i;)e.push(r),S.test(t.charAt(Ue))?(r=t.charAt(Ue),Ue++):(r=i,0===Re&&Ve($));return Re--,r=i,0===Re&&Ve(M),e}function Xe(){var e,r,n;if(Re++,e=Ue,r=[],I.test(t.charAt(Ue))?(n=t.charAt(Ue),Ue++):(n=i,0===Re&&Ve(k)),n!==i)for(;n!==i;)r.push(n),I.test(t.charAt(Ue))?(n=t.charAt(Ue),Ue++):(n=i,0===Re&&Ve(k));else r=i;return r!==i&&(Oe=e,r=ye()),Re--,(e=r)===i&&(r=i,0===Re&&Ve(N)),e}function Qe(){var e,r,n;return Re++,e=Ue,Je(),(r=tt())!==i?(37===t.charCodeAt(Ue)?(n=d,Ue++):(n=i,0===Re&&Ve(H)),n!==i?(Oe=e,e=me(r)):(Ue=e,e=i)):(Ue=e,e=i),Re--,e===i&&0===Re&&Ve(D),e}function Ye(){var e,r,n;return Re++,e=Ue,Je(),(r=tt())!==i?(t.substr(Ue,2)===f?(n=f,Ue+=2):(n=i,0===Re&&Ve(V)),n!==i?(Oe=e,e=ge(r)):(Ue=e,e=i)):(Ue=e,e=i),e===i&&(e=Ue,Je(),(r=tt())!==i?(t.substr(Ue,2)===h?(n=h,Ue+=2):(n=i,0===Re&&Ve(B)),n!==i?(Oe=e,e=ve(r)):(Ue=e,e=i)):(Ue=e,e=i),e===i&&(e=Ue,Je(),(r=tt())!==i?(t.substr(Ue,2)===y?(n=y,Ue+=2):(n=i,0===Re&&Ve(W)),n!==i?(Oe=e,e=be(r)):(Ue=e,e=i)):(Ue=e,e=i),e===i&&(e=Ue,Je(),(r=tt())!==i?(t.substr(Ue,2)===m?(n=m,Ue+=2):(n=i,0===Re&&Ve(z)),n!==i?(Oe=e,e=we(r)):(Ue=e,e=i)):(Ue=e,e=i),e===i&&(e=Ue,Je(),(r=tt())!==i?(t.substr(Ue,2)===g?(n=g,Ue+=2):(n=i,0===Re&&Ve(K)),n!==i?(Oe=e,e=_e(r)):(Ue=e,e=i)):(Ue=e,e=i),e===i&&(e=Ue,Je(),(r=tt())!==i?(t.substr(Ue,2)===v?(n=v,Ue+=2):(n=i,0===Re&&Ve(J)),n!==i?(Oe=e,e=qe(r)):(Ue=e,e=i)):(Ue=e,e=i)))))),Re--,e===i&&0===Re&&Ve(G),e}function Ze(){var e,r,n;return Re++,e=Ue,(r=tt())!==i?(t.substr(Ue,3)===b?(n=b,Ue+=3):(n=i,0===Re&&Ve(Q)),n!==i?(Oe=e,e=Ae(r)):(Ue=e,e=i)):(Ue=e,e=i),e===i&&(e=Ue,(r=tt())!==i?(t.substr(Ue,3)===w?(n=w,Ue+=3):(n=i,0===Re&&Ve(Y)),n!==i?(Oe=e,e=xe(r)):(Ue=e,e=i)):(Ue=e,e=i),e===i&&(e=Ue,(r=tt())!==i?(t.substr(Ue,4)===_?(n=_,Ue+=4):(n=i,0===Re&&Ve(Z)),n!==i?(Oe=e,e=Ee(r)):(Ue=e,e=i)):(Ue=e,e=i),e===i&&(e=Ue,(r=tt())!==i?(t.substr(Ue,4)===q?(n=q,Ue+=4):(n=i,0===Re&&Ve(ee)),n!==i?(Oe=e,e=Se(r)):(Ue=e,e=i)):(Ue=e,e=i)))),Re--,e===i&&(r=i,0===Re&&Ve(X)),e}function et(){var e,r,n,s;if(Re++,e=Ue,35===t.charCodeAt(Ue)?(r=A,Ue++):(r=i,0===Re&&Ve(ne)),r!==i){if(n=[],C.test(t.charAt(Ue))?(s=t.charAt(Ue),Ue++):(s=i,0===Re&&Ve(ie)),s!==i)for(;s!==i;)n.push(s),C.test(t.charAt(Ue))?(s=t.charAt(Ue),Ue++):(s=i,0===Re&&Ve(ie));else n=i;n!==i?(Oe=e,e=Ce()):(Ue=e,e=i)}else Ue=e,e=i;return e===i&&(e=Ue,(r=ze())!==i&&(Oe=e,r=Pe(r)),(e=r)===i&&(e=Ue,(r=Xe())!==i&&(Oe=e,r=Le()),e=r)),Re--,e===i&&(r=i,0===Re&&Ve(re)),e}function tt(){var e,r,n,s,a,o,l;for(e=Ue,P.test(t.charAt(Ue))?(t.charAt(Ue),Ue++):0===Re&&Ve(se),r=Ue,n=[],L.test(t.charAt(Ue))?(s=t.charAt(Ue),Ue++):(s=i,0===Re&&Ve(ae));s!==i;)n.push(s),L.test(t.charAt(Ue))?(s=t.charAt(Ue),Ue++):(s=i,0===Re&&Ve(ae));if(46===t.charCodeAt(Ue)?(s=x,Ue++):(s=i,0===Re&&Ve(oe)),s!==i){if(a=[],L.test(t.charAt(Ue))?(o=t.charAt(Ue),Ue++):(o=i,0===Re&&Ve(ae)),o!==i)for(;o!==i;)a.push(o),L.test(t.charAt(Ue))?(o=t.charAt(Ue),Ue++):(o=i,0===Re&&Ve(ae));else a=i;a!==i?r=n=[n,s,a]:(Ue=r,r=i)}else Ue=r,r=i;if(r===i)if(r=[],L.test(t.charAt(Ue))?(n=t.charAt(Ue),Ue++):(n=i,0===Re&&Ve(ae)),n!==i)for(;n!==i;)r.push(n),L.test(t.charAt(Ue))?(n=t.charAt(Ue),Ue++):(n=i,0===Re&&Ve(ae));else r=i;if(r!==i){if(n=Ue,101===t.charCodeAt(Ue)?(s=E,Ue++):(s=i,0===Re&&Ve(le)),s!==i){if(P.test(t.charAt(Ue))?(a=t.charAt(Ue),Ue++):(a=i,0===Re&&Ve(se)),a===i&&(a=null),o=[],L.test(t.charAt(Ue))?(l=t.charAt(Ue),Ue++):(l=i,0===Re&&Ve(ae)),l!==i)for(;l!==i;)o.push(l),L.test(t.charAt(Ue))?(l=t.charAt(Ue),Ue++):(l=i,0===Re&&Ve(ae));else o=i;o!==i?n=s=[s,a,o]:(Ue=n,n=i)}else Ue=n,n=i;n===i&&(n=null),Oe=e,e=Te()}else Ue=e,e=i;return e}if((n=o())!==i&&Ue===t.length)return n;throw n!==i&&Ue<t.length&&Ve({type:"end"}),function(t,r,n){return new e(e.buildMessage(t,r),t,r,n)}($e,Me<t.length?t.charAt(Me):null,Me<t.length?Ge(Me,Me+1):Ge(Me,Me))}}},(n=c).exports&&(n.exports=i());var p=c.exports;function d(e){if(!e||0===e.length)return null;if("string"==typeof e){const t=f(e);return t&&0!==t.length?t:null}const t=e.map((e=>{if(!Number.isFinite(e.scale)||e.scale<=0)throw new s.c("effect:invalid-scale","scale must be finite and greater than 0",{stop:e});return{scale:e.scale,effects:f(e.value)}}));t.sort(((e,t)=>t.effects.length-e.effects.length));for(let e=0;e<t.length-1;e++){if(!(0,u.w1)(t[e].effects,t[e+1].effects))throw new s.c("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:t[e].effects,b:t[e+1].effects});(0,u.A1)(t[e].effects,t[e+1].effects)}return t.sort(((e,t)=>t.scale-e.scale)),t}function f(e){let t;if(!e)return[];try{t=p.parse(e)}catch(t){throw new s.c("effect:invalid-syntax","Invalid effect syntax",{value:e,error:t})}return t.map((e=>function(e){try{switch(e.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(e){let t=1;return h(e.parameters,1),1===e.parameters.length&&(t=b(e.parameters[0])),new l.M7(e.name,t)}(e);case"opacity":return function(e){let t=1;return h(e.parameters,1),1===e.parameters.length&&(t=b(e.parameters[0])),new l.Ez(t)}(e);case"hue-rotate":return function(e){let t=0;return h(e.parameters,1),1===e.parameters.length&&(t=function(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=g[e.unit]))throw new s.c("effect:type-error",`Expected <angle>, Actual: ${y(e)}`,{term:e})}(e),e.value*g[e.unit]||0}(e.parameters[0])),new l.C8(t)}(e);case"blur":return function(e){let t=0;return h(e.parameters,1),1===e.parameters.length&&(t=w(e.parameters[0]),m(t,e.parameters[0])),new l.o1(t)}(e);case"drop-shadow":return function(e){const t=[];let r=null;for(const n of e.parameters)if("color"===n.type){if(t.length&&Object.freeze(t),r)throw new s.c("effect:type-error","Accepts only one color",{});r=_(n)}else{const e=w(n);if(Object.isFrozen(t))throw new s.c("effect:type-error","<length> parameters not consecutive",{lengths:t});t.push(e),3===t.length&&m(e,n)}if(t.length<2||t.length>3)throw new s.c("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${t.length}}`,{lengths:t});return new l.of(t[0],t[1],t[2]||0,r||q("black"))}(e);case"bloom":return function(e){let t=1,r=0,n=0;return h(e.parameters,3),e.parameters[0]&&(t=b(e.parameters[0])),e.parameters[1]&&(r=w(e.parameters[1]),m(r,e.parameters[1])),e.parameters[2]&&(n=b(e.parameters[2])),new l.qC(t,r,n)}(e)}}catch(t){throw t.details.filter=e,t}throw new s.c("effect:unknown-effect",`Effect '${e.name}' is not supported`,{effect:e})}(e)))}function h(e,t){if(e.length>t)throw new s.c("effect:type-error",`Function supports up to ${t} parameters, Actual: ${e.length}`,{parameters:e})}function y(e){if("color"===e.type)return"<color>";if(e.unit){if(e.unit in v)return"<length>";if(e.unit in g)return"<angle>";if("%"===e.unit)return"<percentage>"}return"<double>"}function m(e,t){if(e<0)throw new s.c("effect:type-error",`Negative values are not allowed, Actual: ${e}`,{term:t})}const g={deg:1,grad:.9,rad:180/Math.PI,turn:360},v={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function b(e){!function(e){if("quantity"!==e.type||null!==e.unit&&"%"!==e.unit)throw new s.c("effect:type-error",`Expected <double> or <percentage>, Actual: ${y(e)}`,{term:e})}(e);const t=e.value;return m(t,e),"%"===e.unit?.01*t:t}function w(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=v[e.unit]))throw new s.c("effect:type-error",`Expected <length>, Actual: ${y(e)}`,{term:e})}(e),e.value*v[e.unit]||0}function _(e){switch(e.colorType){case"hex":return(0,o.yU)(e.value);case"named":return q(e.value);case"function":return function(e){if(h(e.parameters,4),A.test(e.name))return[b(e.parameters[0]),b(e.parameters[1]),b(e.parameters[2]),e.parameters[3]?b(e.parameters[3]):1];if(x.test(e.name))return(0,o.ec)(function(e){return function(e){if("quantity"!==e.type||null!==e.unit)throw new s.c("effect:type-error",`Expected <double>, Actual: ${y(e)}`,{term:e})}(e),m(e.value,e),e.value}(e.parameters[0]),b(e.parameters[1]),b(e.parameters[2]),e.parameters[3]?b(e.parameters[3]):1);throw new s.c("effect:syntax-error",`Invalid color function '${e.name}'`,{colorFunction:e})}(e.value)}}function q(e){if(!(0,o.kv)(e))throw new s.c("effect:unknown-color",`color '${e}' isn't valid`,{namedColor:e});return(0,o.uO)(e)}const A=/^rgba?/i,x=/^hsla?/i;function E(e,t,r){try{return function(e){if(!e||0===e.length)return null;if(function(e){const t=e[0];return!!t&&"scale"in t}(e)){const t=[];for(const r of e)t.push({scale:r.scale,value:I(r.value)});return t}return I(e)}(e)}catch(e){r?.messages?.push(e)}return null}function S(e,t,r,n){try{const n=function(e){const t=d(e);return t?(0,u.Ub)(t)?t.map((e=>e.toJSON())):t.map((({scale:e,effects:t})=>({scale:e,value:t.map((e=>e.toJSON()))}))):null}(e);(0,a.qQ)(r,n,t)}catch(e){n.messages&&n.messages.push(e)}}function I(e){if(!e?.length)return"";const t=[];for(const r of e){let e=[];switch(r.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":e=[C(r,"amount")];break;case"blur":e=[C(r,"radius","pt")];break;case"hue-rotate":e=[C(r,"angle","deg")];break;case"drop-shadow":e=[C(r,"xoffset","pt"),C(r,"yoffset","pt"),C(r,"blurRadius","pt"),P(r,"color")];break;case"bloom":e=[C(r,"strength"),C(r,"radius","pt"),C(r,"threshold")]}const n=`${r.type}(${e.filter(Boolean).join(" ")})`;d(n),t.push(n)}return t.join(" ")}function C(e,t,r){if(null==e[t])throw new s.c("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});return r?e[t]+r:""+e[t]}function P(e,t){if(null==e[t])throw new s.c("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});const r=e[t];return`rgba(${r[0]||0}, ${r[1]||0}, ${r[2]||0}, ${r[3]/255||0})`}},25216:(e,t,r)=>{r.d(t,{W:()=>l});var n=r(41948),i=r(1580),s=(r(9456),r(66360),r(72052),r(12552)),a=r(24676);const o={read:{reader:a.gH},write:{allowNull:!0,writer:a.GA}},l=e=>{let t=class extends e{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,n._)([(0,i.qq)({type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:!0},"portal-item":{read:!0,write:!0}}}})],t.prototype,"blendMode",void 0),(0,n._)([(0,i.qq)({json:{read:!1,write:!1,origins:{"web-map":o,"portal-item":o}}})],t.prototype,"effect",void 0),t=(0,n._)([(0,s.c)("esri.layers.mixins.BlendLayer")],t),t}},98768:(e,t,r)=>{r.d(t,{K:()=>q});var n=r(41948),i=r(6220),s=r(47620),a=r(2600),o=r(40196),l=r(20744),u=r(66360),c=r(70680),p=r(10860),d=r(28176),f=r(1580),h=(r(9456),r(72052),r(33600)),y=r(12552),m=r(18996),g=r(71068),v=r(54872),b=r(9764),w=r(53039),_=r(46940);const q=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:n}=await Promise.all([r.e(8828),r.e(4132)]).then(r.bind(r,94132));return(0,p.wp)(t),await n({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(!i.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:n},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",n),this._set("userHasUpdateItemPrivileges",i)}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 n=e===r.id;if(n&&r.portal.user)return(0,_.CI)(r);let i,a;if(n)i=r.portal.url;else try{i=await(0,g.mK)(this.url,t)}catch(e){(0,p.CE)(e)}if(!i||!(0,d.Cs)(i,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(s.id?.getCredential(`${i}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.CE)(e)}if(!a)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(n?await r.reload():(r=new b.default({id:e,portal:{url:i}}),await r.load(t)),r.portal.user)return(0,_.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?s.id?.findCredential(this.url):null;if(!t)return!0;const r=A.credential===t?A.user:await this._fetchEditingUser(e);return A.credential=t,A.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=s.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const n=`${r.owningSystemUrl}/sharing/rest`,i=v.c.getDefault();if(i&&i.loaded&&(0,d.k7)(i.restUrl)===(0,d.k7)(n))return i.user;const l=`${n}/community/self`,u=null!=e?e.signal:null,c=await(0,o.aG)((0,a.c)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?w.c.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,n=this.portalItem?.id&&(this.portalItem.portal||v.c.getDefault());return r&&n&&!(0,d.kF)(n.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.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,n._)([(0,f.qq)({type:b.default})],t.prototype,"portalItem",null),(0,n._)([(0,h.E)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,n._)([(0,m.G)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,n._)([(0,f.qq)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,n._)([(0,f.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,n._)([(0,f.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,n._)([(0,f.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,n._)([(0,y.c)("esri.layers.mixins.PortalLayer")],t),t},A={credential:null,user:null}},3116:(e,t,r)=>{r.d(t,{I:()=>a});var n=r(41948),i=r(1580),s=(r(9456),r(66360),r(72052),r(12552));const a=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,n._)([(0,i.qq)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,n._)([(0,i.qq)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,n._)([(0,i.qq)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,n._)([(0,s.c)("esri.layers.mixins.ScaleRangeLayer")],t),t}},8616:(e,t,r)=>{var n;r.d(t,{U:()=>n}),function(e){e[e.SAVE=0]="SAVE",e[e.SAVE_AS=1]="SAVE_AS"}(n||(n={}))},13448:(e,t,r)=>{r.d(t,{W:()=>i,e:()=>a});var n=r(20744);async function i(e){const t=[];for(const r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){const e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}const s=new Set(["layer:unsupported","property:unsupported","symbol:unsupported","symbol-layer:unsupported","url:unsupported"]);function a(e,t,r){let i=(e.messages??[]).filter((({type:e})=>"error"===e)).map((({name:e,message:t,details:r})=>new n.c(e,t,r)));if(e.blockedRelativeUrls&&(i=i.concat(e.blockedRelativeUrls.map((e=>new n.c("url:unsupported",`Relative url '${e}' is not supported`))))),r){const{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:n}=r;e&&(i=i.filter((({name:e})=>!(s.has(e)||t.includes(e))))),n&&(i=i.filter((e=>"web-document-write:property-required"!==e.name)))}if(i.length>0)throw new n.c(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:i})}}}]);
package/chunks/vec32.js CHANGED
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
4
  */
5
- import{create as t}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{getEpsilon as n,RANDOM as a}from"../core/libs/gl-matrix-2/math/common.js";function s(t){const n=t[0],a=t[1],s=t[2];return Math.sqrt(n*n+a*a+s*s)}function r(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function o(t,n,a,s){return t[0]=n,t[1]=a,t[2]=s,t}function u(t,n,a){return t[0]=n[0]+a[0],t[1]=n[1]+a[1],t[2]=n[2]+a[2],t}function e(t,n,a){return t[0]=n[0]-a[0],t[1]=n[1]-a[1],t[2]=n[2]-a[2],t}function c(t,n,a){return t[0]=n[0]*a[0],t[1]=n[1]*a[1],t[2]=n[2]*a[2],t}function i(t,n,a){return t[0]=n[0]/a[0],t[1]=n[1]/a[1],t[2]=n[2]/a[2],t}function h(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t}function M(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t}function f(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function l(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function m(t,n,a){return t[0]=Math.min(n[0],a[0]),t[1]=Math.min(n[1],a[1]),t[2]=Math.min(n[2],a[2]),t}function b(t,n,a){return t[0]=Math.max(n[0],a[0]),t[1]=Math.max(n[1],a[1]),t[2]=Math.max(n[2],a[2]),t}function d(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t}function g(t,n,a){return t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a,t}function q(t,n,a,s){return t[0]=n[0]+a[0]*s,t[1]=n[1]+a[1]*s,t[2]=n[2]+a[2]*s,t}function x(t,n){const a=n[0]-t[0],s=n[1]-t[1],r=n[2]-t[2];return Math.sqrt(a*a+s*s+r*r)}function p(t,n){const a=n[0]-t[0],s=n[1]-t[1],r=n[2]-t[2];return a*a+s*s+r*r}function v(t){const n=t[0],a=t[1],s=t[2];return n*n+a*a+s*s}function j(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function y(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function z(t,n){const a=n[0],s=n[1],r=n[2];let o=a*a+s*s+r*r;return o>0&&(o=1/Math.sqrt(o),t[0]=n[0]*o,t[1]=n[1]*o,t[2]=n[2]*o),t}function P(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function _(t,n,a){const s=n[0],r=n[1],o=n[2],u=a[0],e=a[1],c=a[2];return t[0]=r*c-o*e,t[1]=o*u-s*c,t[2]=s*e-r*u,t}function A(t,n,a,s){const r=n[0],o=n[1],u=n[2];return t[0]=r+s*(a[0]-r),t[1]=o+s*(a[1]-o),t[2]=u+s*(a[2]-u),t}function D(t,n,a,s,r,o){const u=o*o,e=u*(2*o-3)+1,c=u*(o-2)+o,i=u*(o-1),h=u*(3-2*o);return t[0]=n[0]*e+a[0]*c+s[0]*i+r[0]*h,t[1]=n[1]*e+a[1]*c+s[1]*i+r[1]*h,t[2]=n[2]*e+a[2]*c+s[2]*i+r[2]*h,t}function I(t,n,a,s,r,o){const u=1-o,e=u*u,c=o*o,i=e*u,h=3*o*e,M=3*c*u,f=c*o;return t[0]=n[0]*i+a[0]*h+s[0]*M+r[0]*f,t[1]=n[1]*i+a[1]*h+s[1]*M+r[1]*f,t[2]=n[2]*i+a[2]*h+s[2]*M+r[2]*f,t}function L(t,n){n=n||1;const s=a,r=2*s()*Math.PI,o=2*s()-1,u=Math.sqrt(1-o*o)*n;return t[0]=Math.cos(r)*u,t[1]=Math.sin(r)*u,t[2]=o*n,t}function O(t,n,a){const s=n[0],r=n[1],o=n[2];return t[0]=a[0]*s+a[4]*r+a[8]*o+a[12],t[1]=a[1]*s+a[5]*r+a[9]*o+a[13],t[2]=a[2]*s+a[6]*r+a[10]*o+a[14],t}function S(t,n,a){const s=n[0],r=n[1],o=n[2];return t[0]=s*a[0]+r*a[3]+o*a[6],t[1]=s*a[1]+r*a[4]+o*a[7],t[2]=s*a[2]+r*a[5]+o*a[8],t}function E(t,n,a){const s=a[0],r=a[1],o=a[2],u=a[3],e=n[0],c=n[1],i=n[2],h=r*i-o*c,M=o*e-s*i,f=s*c-r*e,l=r*f-o*M,m=o*h-s*f,b=s*M-r*h,d=2*u;return t[0]=e+h*d+2*l,t[1]=c+M*d+2*m,t[2]=i+f*d+2*b,t}function Q(t,n,a,s){const r=[],o=[];return r[0]=n[0]-a[0],r[1]=n[1]-a[1],r[2]=n[2]-a[2],o[0]=r[0],o[1]=r[1]*Math.cos(s)-r[2]*Math.sin(s),o[2]=r[1]*Math.sin(s)+r[2]*Math.cos(s),t[0]=o[0]+a[0],t[1]=o[1]+a[1],t[2]=o[2]+a[2],t}function T(t,n,a,s){const r=[],o=[];return r[0]=n[0]-a[0],r[1]=n[1]-a[1],r[2]=n[2]-a[2],o[0]=r[2]*Math.sin(s)+r[0]*Math.cos(s),o[1]=r[1],o[2]=r[2]*Math.cos(s)-r[0]*Math.sin(s),t[0]=o[0]+a[0],t[1]=o[1]+a[1],t[2]=o[2]+a[2],t}function k(t,n,a,s){const r=[],o=[];return r[0]=n[0]-a[0],r[1]=n[1]-a[1],r[2]=n[2]-a[2],o[0]=r[0]*Math.cos(s)-r[1]*Math.sin(s),o[1]=r[0]*Math.sin(s)+r[1]*Math.cos(s),o[2]=r[2],t[0]=o[0]+a[0],t[1]=o[1]+a[1],t[2]=o[2]+a[2],t}function w(t,n){r(B,t),r(C,n),z(B,B),z(C,C);const a=P(B,C);return a>1?0:a<-1?Math.PI:Math.acos(a)}const B=t(),C=t();function F(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function G(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function H(t,a){if(t===a)return!0;const s=t[0],r=t[1],o=t[2],u=a[0],e=a[1],c=a[2],i=n();return Math.abs(s-u)<=i*Math.max(1,Math.abs(s),Math.abs(u))&&Math.abs(r-e)<=i*Math.max(1,Math.abs(r),Math.abs(e))&&Math.abs(o-c)<=i*Math.max(1,Math.abs(o),Math.abs(c))}function J(t,n,a){const s=a[0]-n[0],r=a[1]-n[1],o=a[2]-n[2];let u=s*s+r*r+o*o;return u>0?(u=1/Math.sqrt(u),t[0]=s*u,t[1]=r*u,t[2]=o*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const K=e,N=c,R=i,U=x,X=p,Y=s,Z=v,V=Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:u,angle:w,bezier:I,ceil:h,copy:r,cross:_,direction:J,dist:U,distance:x,div:R,divide:i,dot:P,equals:H,exactEquals:G,floor:M,hermite:D,inverse:y,len:Y,length:s,lerp:A,max:b,min:m,mul:N,multiply:c,negate:j,normalize:z,random:L,rotateX:Q,rotateY:T,rotateZ:k,round:d,scale:g,scaleAndAdd:q,set:o,sign:l,sqrDist:X,sqrLen:Z,squaredDistance:p,squaredLength:v,str:F,sub:K,subtract:e,transformMat3:S,transformMat4:O,transformQuat:E},Symbol.toStringTag,{value:"Module"}));export{c as A,b as B,Y as C,J as D,j as E,H as F,i as G,V as H,M as I,k as J,h as K,d as L,y as M,D as N,I as O,L as P,Q,T as R,F as S,N as T,R as U,p as a,_ as b,r as c,w as d,O as e,e as f,u as g,G as h,g as i,P as j,A as k,s as l,U as m,z as n,v as o,x as p,q,E as r,o as s,S as t,f as u,X as v,Z as w,m as x,K as y,l as z};
5
+ import{create as t}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{getEpsilon as n,RANDOM as a}from"../core/libs/gl-matrix-2/math/common.js";function s(t){const n=t[0],a=t[1],s=t[2];return Math.sqrt(n*n+a*a+s*s)}function r(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function o(t,n,a,s){return t[0]=n,t[1]=a,t[2]=s,t}function u(t,n,a){return t[0]=n[0]+a[0],t[1]=n[1]+a[1],t[2]=n[2]+a[2],t}function e(t,n,a){return t[0]=n[0]-a[0],t[1]=n[1]-a[1],t[2]=n[2]-a[2],t}function c(t,n,a){return t[0]=n[0]*a[0],t[1]=n[1]*a[1],t[2]=n[2]*a[2],t}function i(t,n,a){return t[0]=n[0]/a[0],t[1]=n[1]/a[1],t[2]=n[2]/a[2],t}function h(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t}function M(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t}function f(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function l(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function m(t,n,a){return t[0]=Math.min(n[0],a[0]),t[1]=Math.min(n[1],a[1]),t[2]=Math.min(n[2],a[2]),t}function b(t,n,a){return t[0]=Math.max(n[0],a[0]),t[1]=Math.max(n[1],a[1]),t[2]=Math.max(n[2],a[2]),t}function d(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t}function g(t,n,a){return t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a,t}function q(t,n,a,s){return t[0]=n[0]+a[0]*s,t[1]=n[1]+a[1]*s,t[2]=n[2]+a[2]*s,t}function x(t,n){const a=n[0]-t[0],s=n[1]-t[1],r=n[2]-t[2];return Math.sqrt(a*a+s*s+r*r)}function p(t,n){const a=n[0]-t[0],s=n[1]-t[1],r=n[2]-t[2];return a*a+s*s+r*r}function v(t){const n=t[0],a=t[1],s=t[2];return n*n+a*a+s*s}function j(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function y(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function z(t,n){const a=n[0],s=n[1],r=n[2];let o=a*a+s*s+r*r;return o>0&&(o=1/Math.sqrt(o),t[0]=n[0]*o,t[1]=n[1]*o,t[2]=n[2]*o),t}function P(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function _(t,n,a){const s=n[0],r=n[1],o=n[2],u=a[0],e=a[1],c=a[2];return t[0]=r*c-o*e,t[1]=o*u-s*c,t[2]=s*e-r*u,t}function A(t,n,a,s){const r=n[0],o=n[1],u=n[2];return t[0]=r+s*(a[0]-r),t[1]=o+s*(a[1]-o),t[2]=u+s*(a[2]-u),t}function D(t,n,a,s,r,o){const u=o*o,e=u*(2*o-3)+1,c=u*(o-2)+o,i=u*(o-1),h=u*(3-2*o);return t[0]=n[0]*e+a[0]*c+s[0]*i+r[0]*h,t[1]=n[1]*e+a[1]*c+s[1]*i+r[1]*h,t[2]=n[2]*e+a[2]*c+s[2]*i+r[2]*h,t}function I(t,n,a,s,r,o){const u=1-o,e=u*u,c=o*o,i=e*u,h=3*o*e,M=3*c*u,f=c*o;return t[0]=n[0]*i+a[0]*h+s[0]*M+r[0]*f,t[1]=n[1]*i+a[1]*h+s[1]*M+r[1]*f,t[2]=n[2]*i+a[2]*h+s[2]*M+r[2]*f,t}function L(t,n){n=n||1;const s=a,r=2*s()*Math.PI,o=2*s()-1,u=Math.sqrt(1-o*o)*n;return t[0]=Math.cos(r)*u,t[1]=Math.sin(r)*u,t[2]=o*n,t}function O(t,n,a){const s=n[0],r=n[1],o=n[2];return t[0]=a[0]*s+a[4]*r+a[8]*o+a[12],t[1]=a[1]*s+a[5]*r+a[9]*o+a[13],t[2]=a[2]*s+a[6]*r+a[10]*o+a[14],t}function S(t,n,a){const s=n[0],r=n[1],o=n[2];return t[0]=s*a[0]+r*a[3]+o*a[6],t[1]=s*a[1]+r*a[4]+o*a[7],t[2]=s*a[2]+r*a[5]+o*a[8],t}function E(t,n,a){const s=a[0],r=a[1],o=a[2],u=a[3],e=n[0],c=n[1],i=n[2],h=r*i-o*c,M=o*e-s*i,f=s*c-r*e,l=r*f-o*M,m=o*h-s*f,b=s*M-r*h,d=2*u;return t[0]=e+h*d+2*l,t[1]=c+M*d+2*m,t[2]=i+f*d+2*b,t}function Q(t,n,a,s){const r=[],o=[];return r[0]=n[0]-a[0],r[1]=n[1]-a[1],r[2]=n[2]-a[2],o[0]=r[0],o[1]=r[1]*Math.cos(s)-r[2]*Math.sin(s),o[2]=r[1]*Math.sin(s)+r[2]*Math.cos(s),t[0]=o[0]+a[0],t[1]=o[1]+a[1],t[2]=o[2]+a[2],t}function T(t,n,a,s){const r=[],o=[];return r[0]=n[0]-a[0],r[1]=n[1]-a[1],r[2]=n[2]-a[2],o[0]=r[2]*Math.sin(s)+r[0]*Math.cos(s),o[1]=r[1],o[2]=r[2]*Math.cos(s)-r[0]*Math.sin(s),t[0]=o[0]+a[0],t[1]=o[1]+a[1],t[2]=o[2]+a[2],t}function k(t,n,a,s){const r=[],o=[];return r[0]=n[0]-a[0],r[1]=n[1]-a[1],r[2]=n[2]-a[2],o[0]=r[0]*Math.cos(s)-r[1]*Math.sin(s),o[1]=r[0]*Math.sin(s)+r[1]*Math.cos(s),o[2]=r[2],t[0]=o[0]+a[0],t[1]=o[1]+a[1],t[2]=o[2]+a[2],t}function w(t,n){z(B,t),z(C,n);const a=P(B,C);return a>1?0:a<-1?Math.PI:Math.acos(a)}const B=t(),C=t();function F(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function G(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function H(t,a){if(t===a)return!0;const s=t[0],r=t[1],o=t[2],u=a[0],e=a[1],c=a[2],i=n();return Math.abs(s-u)<=i*Math.max(1,Math.abs(s),Math.abs(u))&&Math.abs(r-e)<=i*Math.max(1,Math.abs(r),Math.abs(e))&&Math.abs(o-c)<=i*Math.max(1,Math.abs(o),Math.abs(c))}function J(t,n,a){const s=a[0]-n[0],r=a[1]-n[1],o=a[2]-n[2];let u=s*s+r*r+o*o;return u>0?(u=1/Math.sqrt(u),t[0]=s*u,t[1]=r*u,t[2]=o*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const K=e,N=c,R=i,U=x,X=p,Y=s,Z=v,V=Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:u,angle:w,bezier:I,ceil:h,copy:r,cross:_,direction:J,dist:U,distance:x,div:R,divide:i,dot:P,equals:H,exactEquals:G,floor:M,hermite:D,inverse:y,len:Y,length:s,lerp:A,max:b,min:m,mul:N,multiply:c,negate:j,normalize:z,random:L,rotateX:Q,rotateY:T,rotateZ:k,round:d,scale:g,scaleAndAdd:q,set:o,sign:l,sqrDist:X,sqrLen:Z,squaredDistance:p,squaredLength:v,str:F,sub:K,subtract:e,transformMat3:S,transformMat4:O,transformQuat:E},Symbol.toStringTag,{value:"Module"}));export{c as A,b as B,Y as C,J as D,j as E,H as F,i as G,V as H,M as I,k as J,h as K,d as L,y as M,D as N,I as O,L as P,Q,T as R,F as S,N as T,R as U,p as a,_ as b,r as c,w as d,O as e,e as f,u as g,G as h,g as i,P as j,A as k,s as l,U as m,z as n,v as o,x as p,q,E as r,o as s,S as t,f as u,X as v,Z as w,m as x,K as y,l as z};