@arcgis/core 6.0.0-next.15 → 6.0.0-next.17

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 (439) hide show
  1. package/analysis/LineOfSightAnalysis.d.ts +49 -32
  2. package/analysis/LineOfSightAnalysisObserver.d.ts +19 -3
  3. package/analysis/LineOfSightAnalysisTarget.d.ts +19 -3
  4. package/analysis/Viewshed.d.ts +23 -3
  5. package/analysis/ViewshedAnalysis.d.ts +33 -13
  6. package/arcade/geometry/operatorsWorkerConnection.js +1 -1
  7. package/assets/esri/core/workers/RemoteClient.js +1 -1
  8. package/assets/esri/core/workers/chunks/00d66e3fba5ab4d2aa3c.js +1 -0
  9. package/assets/esri/core/workers/chunks/{d994bcf0a65d1c07160f.js → 0320cbd825f9a4222042.js} +1 -1
  10. package/assets/esri/core/workers/chunks/14d5d219e7fe017f23f0.js +1 -0
  11. package/assets/esri/core/workers/chunks/164c8eeefa8232b2b191.js +2 -0
  12. package/assets/esri/core/workers/chunks/164e74d586297946a717.js +1 -0
  13. package/assets/esri/core/workers/chunks/1967b9c96045a5802d08.js +1 -0
  14. package/assets/esri/core/workers/chunks/{1bca39e0e651426bdbb5.js → 1b1d3f6916d2cb751435.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{ed6e9d7f71bfd2691717.js → 1c77de1e79860f8d2228.js} +1 -1
  16. package/assets/esri/core/workers/chunks/1e40a26dcce4d1dadc28.js +1 -0
  17. package/assets/esri/core/workers/chunks/{261fea092ee7d27608a0.js → 20a2124cbe43e5527c40.js} +1 -1
  18. package/assets/esri/core/workers/chunks/237a1f68a0efbfe5b77c.js +1 -0
  19. package/assets/esri/core/workers/chunks/{3418877328f4f0830300.js → 24dac4970526a4e0ae63.js} +1 -1
  20. package/assets/esri/core/workers/chunks/26ceb0ff8d93dbb9b84f.js +1 -0
  21. package/assets/esri/core/workers/chunks/2853606099602f73d379.js +1 -0
  22. package/assets/esri/core/workers/chunks/2981e904ab62f3ed80d0.js +2 -0
  23. package/assets/esri/core/workers/chunks/2acf2952cef69e382a35.js +1 -0
  24. package/assets/esri/core/workers/chunks/32cc59e126df8c96a0cf.js +2 -0
  25. package/assets/esri/core/workers/chunks/{4df6cb1bee5d0720a43e.js → 34e0a8a3a2beea50f4f5.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{481589c3eddad6e026ad.js → 369780276b2755361f7d.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{1e0d2715d603f48a7e0b.js → 370aad23df597db80d65.js} +1 -1
  28. package/assets/esri/core/workers/chunks/3e30b96a8c75bd5b9ae2.js +1 -0
  29. package/assets/esri/core/workers/chunks/{25f19fc929f25ddd628c.js → 42753cf4965a94bc91ca.js} +1 -1
  30. package/assets/esri/core/workers/chunks/42d44c7d532df5ee70e9.js +1 -0
  31. package/assets/esri/core/workers/chunks/42e985a576d7aaeed0cf.js +1 -0
  32. package/assets/esri/core/workers/chunks/{6400446b7615b97c3521.js → 45f826554499c38968c6.js} +1 -1
  33. package/assets/esri/core/workers/chunks/48cc58890fddbcf69cef.js +1 -0
  34. package/assets/esri/core/workers/chunks/494bd434fee9032e1d02.js +1 -0
  35. package/assets/esri/core/workers/chunks/{33e4ff228a8c81b99022.js → 4abd3753cd9b80e4d937.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{b564ec4e03478f5659db.js → 4c240ca50f70bf30813f.js} +1 -1
  37. package/assets/esri/core/workers/chunks/4c389472b8cdb0c55154.js +1 -0
  38. package/assets/esri/core/workers/chunks/4e4f747de424941a0bfa.js +1 -0
  39. package/assets/esri/core/workers/chunks/{70d3055f15d8b0cf4074.js → 532e9cda8ac3601d8892.js} +1 -1
  40. package/assets/esri/core/workers/chunks/5529831dd891382c79df.js +1 -0
  41. package/assets/esri/core/workers/chunks/{953ba13299e7aa92c1a0.js → 564565246dae080f5e6c.js} +1 -1
  42. package/assets/esri/core/workers/chunks/576248e9ae2654569420.js +1 -0
  43. package/assets/esri/core/workers/chunks/{2145a512d269d64036b0.js → 58c3ae6030def2ed5f31.js} +1 -1
  44. package/assets/esri/core/workers/chunks/5a19a9c3e01d3d415188.js +1 -0
  45. package/assets/esri/core/workers/chunks/5a830bc35adbedd33783.js +1 -0
  46. package/assets/esri/core/workers/chunks/{eb04e1717a1002cda3ab.js → 5b91e2dffdc84c006539.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{aeaaff7a4b1a99540f52.js → 5cb26bbaa08114aec5ce.js} +1 -1
  48. package/assets/esri/core/workers/chunks/603fdbbe9534c614928f.js +1 -0
  49. package/assets/esri/core/workers/chunks/{4e6f40cbdb8c508e6df1.js → 60f92eb03c6e17ab4747.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{67ebc5a3d46b254b725c.js → 612345f17f5eeb99ea8f.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{1b077c92345ffb5916c2.js → 65c98f3449044fa4fd79.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{2bd4ee083ca4ad221f8b.js → 65cb5e39c467a35621ca.js} +1 -1
  53. package/assets/esri/core/workers/chunks/661c6324529dd17b297e.js +1 -0
  54. package/assets/esri/core/workers/chunks/67a35155b8b4d36f171e.js +1 -0
  55. package/assets/esri/core/workers/chunks/68dd1fd2025c7125ead1.js +1 -0
  56. package/assets/esri/core/workers/chunks/{89e76de5ae3328d821a4.js → 69f6d5997b8ff1326e39.js} +1 -1
  57. package/assets/esri/core/workers/chunks/{ae31fd416bbb41a81392.js → 6ad309154fe84210d23c.js} +1 -1
  58. package/assets/esri/core/workers/chunks/{a40b6d8b5c73e06e14d4.js → 6c255c029d67423e4dac.js} +1 -1
  59. package/assets/esri/core/workers/chunks/7446d0dfebf93e86c098.js +1 -0
  60. package/assets/esri/core/workers/chunks/{688f2dbf784e66082308.js → 74c866e0b66e61751861.js} +1 -1
  61. package/assets/esri/core/workers/chunks/784d6c6949284ed6e10b.js +1 -0
  62. package/assets/esri/core/workers/chunks/{3ffda5bf0b91700dc308.js → 78643f116677950ea29a.js} +1 -1
  63. package/assets/esri/core/workers/chunks/{916b363c342b61ba5461.js → 787c1a8bda7d745633f2.js} +1 -1
  64. package/assets/esri/core/workers/chunks/{e2190361247f35b02b32.js → 7b5cd150a4d0139850be.js} +1 -1
  65. package/assets/esri/core/workers/chunks/7bbfe9ff352afc566367.js +1 -0
  66. package/assets/esri/core/workers/chunks/7d2cbc767c336d15e4d5.js +1 -0
  67. package/assets/esri/core/workers/chunks/{ac5a6603f7fa78d3e4c8.js → 7e8611cb709f105946f5.js} +1 -1
  68. package/assets/esri/core/workers/chunks/{05cd33d41d91f8d09633.js → 7fb7493f483cd9878bfa.js} +1 -1
  69. package/assets/esri/core/workers/chunks/{590e6c70206122e4cc3c.js → 844eedda8f749972f707.js} +2 -2
  70. package/assets/esri/core/workers/chunks/{acfa03c65ba3ca6c5685.js → 8715661a838361d4211a.js} +1 -1
  71. package/assets/esri/core/workers/chunks/{601e1d020b8115497944.js → 8a485130781b49dbf608.js} +1 -1
  72. package/assets/esri/core/workers/chunks/{0ccab50877b24f862d6e.js → 8ac2098ecdc40ad41055.js} +1 -1
  73. package/assets/esri/core/workers/chunks/{a655ebdb4bf0660615a2.js → 8b4e9fd88c0c313416d4.js} +1 -1
  74. package/assets/esri/core/workers/chunks/{4e544de61f07ca660236.js → 8c12269d26f5a4c753cb.js} +1 -1
  75. package/assets/esri/core/workers/chunks/{46b4fb6a7fe4877b0efc.js → 94baa354e50c03b82b25.js} +2 -2
  76. package/assets/esri/core/workers/chunks/9503eedfdda55fc5adab.js +1 -0
  77. package/assets/esri/core/workers/chunks/950d4578dc450467404c.js +1 -0
  78. package/assets/esri/core/workers/chunks/{68be3fb88ca61f82fb90.js → 95dbbddac6581b9d671f.js} +1 -1
  79. package/assets/esri/core/workers/chunks/98be2f621801e230aa01.js +1 -0
  80. package/assets/esri/core/workers/chunks/999c23da883eb11cb29e.js +1 -0
  81. package/assets/esri/core/workers/chunks/9b6929faf649e81265fb.js +1 -0
  82. package/assets/esri/core/workers/chunks/9d61740ef8bdcc162be1.js +1 -0
  83. package/assets/esri/core/workers/chunks/{fafb92ca2c5e4b0b2c23.js → a09d2e1e2540921e4717.js} +1 -1
  84. package/assets/esri/core/workers/chunks/a35c69a4751d28c39907.js +1 -0
  85. package/assets/esri/core/workers/chunks/{3b3e519f15ed52c83f0c.js → a49fe94933b65b4b64f8.js} +1 -1
  86. package/assets/esri/core/workers/chunks/{1819c45655c836b9a8d7.js → a4d3944700f1cc240176.js} +1 -1
  87. package/assets/esri/core/workers/chunks/{ec8b7476eac4718eb0ac.js → a504a5e06cb89a620799.js} +1 -1
  88. package/assets/esri/core/workers/chunks/a596779eaeec7310671d.js +1 -0
  89. package/assets/esri/core/workers/chunks/{d5d0fe8e198ff5a902ee.js → a5c8f9f5be4ef5063b42.js} +1 -1
  90. package/assets/esri/core/workers/chunks/{900181f68449d8f82eeb.js → aa1ac7954e4f0fefe15b.js} +1 -1
  91. package/assets/esri/core/workers/chunks/{90bdf86f553e2742d67c.js → ab1660f5f8a5268c2fac.js} +1 -1
  92. package/assets/esri/core/workers/chunks/ac24b4370dc7194a3107.js +1 -0
  93. package/assets/esri/core/workers/chunks/{b8337492e2b753aefac4.js → ace41659a5ca0e5abfc3.js} +1 -1
  94. package/assets/esri/core/workers/chunks/ae0563d573baf91e01f7.js +1 -0
  95. package/assets/esri/core/workers/chunks/{3c0ed15b544df6fb0903.js → b48952e1fb4cb7360dd0.js} +1 -1
  96. package/assets/esri/core/workers/chunks/b5e7475cc5fbf31289d3.js +1 -0
  97. package/assets/esri/core/workers/chunks/b686cd74975da09b9c91.js +2 -0
  98. package/assets/esri/core/workers/chunks/{aa36c3a9bbaa086e3757.js → b8fd7c3b36981261378b.js} +1 -1
  99. package/assets/esri/core/workers/chunks/bd046399e05e759e0bc2.js +1 -0
  100. package/assets/esri/core/workers/chunks/bd46a04a9ee4ea9e6ef1.js +2 -0
  101. package/assets/esri/core/workers/chunks/{f3da30d7300b92bd8bb0.js → befa32b9e7b3fbdd431e.js} +1 -1
  102. package/assets/esri/core/workers/chunks/bfb39590c548188f5052.js +1 -0
  103. package/assets/esri/core/workers/chunks/c4ddac23bd649d24f3f2.js +1 -0
  104. package/assets/esri/core/workers/chunks/cddc3e285f763ccf33c2.js +1 -0
  105. package/assets/esri/core/workers/chunks/d08ff41e2a9bcd58b64a.js +1 -0
  106. package/assets/esri/core/workers/chunks/d62afb71f4ece4283994.js +1 -0
  107. package/assets/esri/core/workers/chunks/dc1761cba0454fda3cf9.js +1 -0
  108. package/assets/esri/core/workers/chunks/{0f617980c7dd9ad0444f.js → dd0310184fe4832755a8.js} +1 -1
  109. package/assets/esri/core/workers/chunks/dfa5f1311806473e473f.js +1 -0
  110. package/assets/esri/core/workers/chunks/{4ac1d3e49e242e373a92.js → e0650b1408197d3ac862.js} +1 -1
  111. package/assets/esri/core/workers/chunks/{3ff6d1ed3c0f1285f3e7.js → e0d9dc97985561320bd4.js} +1 -1
  112. package/assets/esri/core/workers/chunks/eaddffcc7004101fc230.js +1 -0
  113. package/assets/esri/core/workers/chunks/eb2652ec48faa78de3c5.js +1 -0
  114. package/assets/esri/core/workers/chunks/eca44e53bcee9b08d70a.js +1 -0
  115. package/assets/esri/core/workers/chunks/f00458654c7c34c369ef.js +1 -0
  116. package/assets/esri/core/workers/chunks/f3cd610084e3f4d8656b.js +1 -0
  117. package/assets/esri/core/workers/chunks/f47fe4433b05fca5c3ad.js +1 -0
  118. package/assets/esri/core/workers/chunks/f7bfa3d33b05b250ce33.js +1 -0
  119. package/assets/esri/core/workers/chunks/f91bc1cb1014e05be763.js +1 -0
  120. package/assets/esri/core/workers/chunks/{19676b2c5f8b0a5ee680.js → facd1ff23203fed67686.js} +1 -1
  121. package/assets/esri/core/workers/chunks/{634523cc7757da9020e4.js → fb70ab267a08e24b710f.js} +1 -1
  122. package/assets/esri/core/workers/chunks/fc139f251dc0523074e7.js +1 -0
  123. package/assets/esri/core/workers/chunks/{40a584cb952e94326e9e.js → fcb86d24fc7e0666b564.js} +1 -1
  124. package/assets/esri/themes/base/widgets/_Weather.scss +1 -0
  125. package/assets/esri/themes/dark/main.css +1 -1
  126. package/assets/esri/themes/light/main.css +1 -1
  127. package/assets/esri/themes/light/view.css +1 -1
  128. package/chunks/Distance2DCalculator-DjIp2uQi.js +1 -1
  129. package/chunks/Envelope.js +1 -1
  130. package/chunks/MultiPathImpl.js +1 -1
  131. package/chunks/OperatorGeodeticArea.js +1 -1
  132. package/chunks/OperatorShapePreservingLength.js +1 -1
  133. package/chunks/OperatorShapePreservingProject.js +1 -1
  134. package/chunks/UnitFactory.js +1 -1
  135. package/chunks/basis_encoder.js +1 -1
  136. package/chunks/basis_transcoder.js +1 -1
  137. package/chunks/index.js +1 -1
  138. package/chunks/lclayout.js +1 -1
  139. package/chunks/lerc-wasm.js +1 -1
  140. package/config.d.ts +2 -0
  141. package/config.js +1 -1
  142. package/core/accessorSupport/DefaultsStore.js +1 -1
  143. package/core/accessorSupport/MultiOriginStore.js +1 -1
  144. package/core/accessorSupport/Store.js +1 -1
  145. package/core/accessorSupport/decorators/reader.js +1 -1
  146. package/core/accessorSupport/decorators/writer.js +1 -1
  147. package/core/sql/WhereGrammar.js +2 -2
  148. package/core/workers/WorkerOwner.js +1 -1
  149. package/core/workers/workerFactory.js +1 -1
  150. package/core/workers/workers.js +2 -2
  151. package/core/workers.d.ts +9 -0
  152. package/editing/sharedTemplates/executor/builders/equallySpaced.js +1 -1
  153. package/form/elements/inputs/DynamicChoiceInput.d.ts +4 -2
  154. package/geometry/Mesh.js +1 -1
  155. package/geometry/operators/gx/operatorAlphaShape.js +1 -1
  156. package/geometry/operators/gx/operatorOffset.js +1 -1
  157. package/geometry/operators/gx/operatorPolygonSlicer.js +1 -1
  158. package/geometry/operators/support/jsonConverter.js +1 -1
  159. package/geometry/support/curves/bezierCurveUtils.js +1 -1
  160. package/geometry/support/curves/ellipticArc7Utils.js +1 -1
  161. package/geometry/support/meshUtils/merge.js +1 -1
  162. package/geometry/support/meshUtils/rotate.js +1 -1
  163. package/geometry/support/polygonExtentClipping.js +1 -1
  164. package/identity/Credential.js +1 -1
  165. package/kernel.js +1 -1
  166. package/layers/AnnotationFeatureLayer.d.ts +2 -2
  167. package/layers/AnnotationFeatureLayer.js +1 -1
  168. package/layers/CatalogLayer.d.ts +2 -2
  169. package/layers/CatalogLayer.js +1 -1
  170. package/layers/DimensionFeatureLayer.d.ts +2 -2
  171. package/layers/DimensionFeatureLayer.js +1 -1
  172. package/layers/ElevationLayer.js +1 -1
  173. package/layers/FeatureLayer.d.ts +4 -4
  174. package/layers/FeatureLayer.js +1 -1
  175. package/layers/GeoJSONLayer.d.ts +1 -1
  176. package/layers/ImageryTileLayer.js +1 -1
  177. package/layers/LineOfSightLayer.d.ts +10 -8
  178. package/layers/SceneLayer.js +1 -1
  179. package/layers/SubtypeGroupLayer.d.ts +2 -2
  180. package/layers/SubtypeGroupLayer.js +1 -1
  181. package/layers/ViewshedLayer.d.ts +1 -1
  182. package/layers/VoxelLayer.js +1 -1
  183. package/layers/WMSLayer.js +1 -1
  184. package/layers/effects/parser.js +3 -3
  185. package/layers/geospatialPDF/GeospatialPDFFrame.js +1 -1
  186. package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +9 -9
  187. package/layers/geospatialPDF/GeospatialPDFWorkerClient.js +1 -1
  188. package/layers/geospatialPDF/LGIDictMapFrame.js +1 -1
  189. package/layers/geospatialPDF/ViewportMeasureFrame.js +1 -1
  190. package/layers/geospatialPDF/geospatialPDFParserUtils.js +1 -1
  191. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  192. package/layers/graphics/data/QueryEngineResult.js +1 -1
  193. package/layers/graphics/sources/connections/WebSocketConnection.js +1 -1
  194. package/layers/graphics/sources/parquet/FileProvider.js +1 -1
  195. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  196. package/layers/mixins/{FeatureLayerReload.d.ts → ReloadableLayer.d.ts} +5 -3
  197. package/layers/mixins/ReloadableLayer.js +2 -0
  198. package/layers/raster/datasets/BaseRaster.js +1 -1
  199. package/layers/raster/datasets/GeospatialPDFRaster.js +1 -1
  200. package/layers/raster/datasets/ImageAuxRaster.js +2 -2
  201. package/layers/raster/datasets/ImageServerRaster.js +1 -1
  202. package/layers/raster/datasets/InMemoryRaster.js +1 -1
  203. package/layers/raster/datasets/MRFRaster.js +1 -1
  204. package/layers/raster/datasets/TIFFRaster.js +1 -1
  205. package/layers/raster/datasets/WCSRaster.js +1 -1
  206. package/layers/raster/formats/ElevationCodec.js +2 -0
  207. package/layers/raster/formats/ImageCanvasDecoder.js +1 -1
  208. package/layers/raster/formats/Lerc.js +1 -1
  209. package/layers/raster/formats/RasterCodec.js +1 -1
  210. package/layers/raster/formats/TiffDecoder.js +1 -1
  211. package/layers/raster/formats/Zlib.js +1 -1
  212. package/layers/raster/functions/stretchUtils.js +1 -1
  213. package/layers/raster/functions/vectorFieldUtils.js +1 -1
  214. package/layers/support/FieldsIndex.js +1 -1
  215. package/layers/support/LercWorker.js +1 -1
  216. package/layers/support/RasterWorker.js +1 -1
  217. package/layers/support/TileInfo.d.ts +1 -1
  218. package/layers/support/TileInfo.js +1 -1
  219. package/layers/support/featureReductionProperties.js +1 -1
  220. package/layers/support/kmlUtils.js +1 -1
  221. package/layers/support/layerOriginUtils.js +1 -1
  222. package/layers/video/VideoController.js +10 -10
  223. package/libs/maquette/projection.js +1 -1
  224. package/networks/UtilityNetworkTraceAnalysis.js +1 -1
  225. package/package.json +6 -6
  226. package/popup/FeatureModel.js +1 -1
  227. package/popup/FeaturesModel.js +1 -1
  228. package/portal/Portal.js +1 -1
  229. package/request/process.js +1 -1
  230. package/request/types.d.ts +7 -0
  231. package/rest/knowledgeGraphService.js +1 -1
  232. package/rest/networks/trace.js +1 -1
  233. package/rest/query/executeQuery.js +1 -1
  234. package/smartMapping/raster/renderers/shadedRelief.js +1 -1
  235. package/smartMapping/renderers/univariateColorSize.js +1 -1
  236. package/smartMapping/statistics/support/statsWorker.js +1 -1
  237. package/smartMapping/statistics/support/utils.js +1 -1
  238. package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
  239. package/smartMapping/support/adapters/FeatureLayerBinningAdapter.js +1 -1
  240. package/smartMapping/support/adapters/InMemoryLayerAdapter.js +1 -1
  241. package/smartMapping/support/adapters/OGCFeatureLayerAdapter.js +1 -1
  242. package/smartMapping/support/adapters/SceneLayerAdapter.js +1 -1
  243. package/smartMapping/support/adapters/support/utils.js +1 -1
  244. package/smartMapping/support/clusterUtils.js +1 -1
  245. package/statistics/utils.js +1 -1
  246. package/symbols/cim/CIMCursor.js +1 -1
  247. package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
  248. package/symbols/cim/cimAnalyzer.js +1 -1
  249. package/symbols/support/ElevationInfo.d.ts +4 -3
  250. package/time/TimeExtent.d.ts +1 -1
  251. package/undoredo/support/Services.js +1 -1
  252. package/views/2d/engine/vectorTiles/buckets/SymbolBucket.js +2 -2
  253. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  254. package/views/2d/grid/GridView2D.js +1 -1
  255. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  256. package/views/2d/layers/features/sources/strategies/FeatureHybridTileLoadStrategy.js +1 -1
  257. package/views/2d/layers/features/sources/strategies/FeaturePagedTileLoadStrategy.js +1 -1
  258. package/views/2d/layers/features/sources/strategies/FeatureSnapshotLoadStrategy.js +1 -1
  259. package/views/2d/viewpointUtils.js +1 -1
  260. package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
  261. package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
  262. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  263. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  264. package/views/3d/analysis/LineOfSight/types.d.ts +14 -3
  265. package/views/3d/analysis/LineOfSightAnalysisView3D.d.ts +39 -13
  266. package/views/3d/analysis/Viewshed/ViewshedEditTool.js +1 -1
  267. package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
  268. package/views/3d/analysis/Viewshed/types.d.ts +7 -0
  269. package/views/3d/analysis/ViewshedAnalysisView3D.d.ts +43 -15
  270. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementTool.js +1 -1
  271. package/views/3d/input/handlers/KeyboardNavigation.js +1 -1
  272. package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
  273. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  274. package/views/3d/interactive/editingTools/transform/ExtentTransformTool.js +1 -1
  275. package/views/3d/interactive/editingTools/transform/ScaleRotateTransform.js +1 -1
  276. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js +1 -1
  277. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DTool.js +1 -1
  278. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  279. package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
  280. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  281. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  282. package/views/3d/layers/graphics/Graphics3DElevationAlignment.js +1 -1
  283. package/views/3d/layers/graphics/Graphics3DGraphic.js +1 -1
  284. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  285. package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
  286. package/views/3d/layers/graphics/SpatialIndex2D.js +1 -1
  287. package/views/3d/layers/i3s/I3SNode.js +1 -1
  288. package/views/3d/layers/i3s/I3SUtil.js +1 -1
  289. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  290. package/views/3d/layers/i3s/LayerElevationProvider.js +1 -1
  291. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  292. package/views/3d/layers/support/FeatureTileFetcher3DDebugger.js +1 -1
  293. package/views/3d/layers/support/ImageHighlightHelper3D.js +1 -1
  294. package/views/3d/layers/support/MediaLayerInteraction.js +1 -1
  295. package/views/3d/layers/support/StageLayerElevationProvider.js +1 -1
  296. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  297. package/views/3d/state/utils/navigationUtils.js +1 -1
  298. package/views/3d/support/elevationUpdateExtentUtils.js +1 -1
  299. package/views/3d/support/elevationUpdateUtils.js +1 -1
  300. package/views/3d/support/pointsOfInterest/Focus.js +1 -1
  301. package/views/3d/support/sphereExtentUtils.js +2 -0
  302. package/views/3d/terrain/OverlayFramebufferObject.js +1 -1
  303. package/views/3d/terrain/OverlayRenderer.js +1 -1
  304. package/views/3d/terrain/PatchRenderData.js +1 -1
  305. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  306. package/views/3d/webgl-engine/lib/ManagedTexture.js +1 -1
  307. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  308. package/views/3d/webgl-engine/lib/ViewshedShadowMap.js +1 -1
  309. package/views/3d/webgl-engine/materials/internal/MaterialUtil.js +1 -1
  310. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  311. package/views/3d/webgl-engine/materials/renderers/PerBufferData.js +1 -1
  312. package/views/SceneView.js +1 -1
  313. package/views/ToolViewManager.js +1 -1
  314. package/views/View.js +1 -1
  315. package/views/analysis/ElevationProfile/ElevationProfileTool.js +1 -1
  316. package/views/draw/DrawOperation.js +1 -1
  317. package/views/draw/support/InteractiveHandle.js +1 -1
  318. package/views/draw/support/Reshape.js +1 -1
  319. package/views/draw/support/createUtils.js +1 -1
  320. package/views/draw/support/editingSessionUtils.js +1 -1
  321. package/views/draw/support/managers/InteractiveHandleManager.js +1 -1
  322. package/views/interactive/SegmentLabels.js +1 -1
  323. package/views/interactive/editGeometry/EditGeometry.js +1 -1
  324. package/views/interactive/editGeometry/EditGeometryOperations.js +1 -1
  325. package/views/interactive/editGeometry/operations/SetAllVertexPositions.js +1 -1
  326. package/views/interactive/editGeometry/operations/UndoGroup.js +1 -1
  327. package/views/interactive/options/TooltipOptions.d.ts +2 -0
  328. package/views/interactive/sketch/SketchTooltipOptions.d.ts +2 -0
  329. package/views/interactive/sketch/constraintUtils.js +1 -1
  330. package/views/interactive/snapping/SnappingDragPipelineStep.js +1 -1
  331. package/views/interactive/snapping/SnappingManagerPool.js +1 -1
  332. package/views/interactive/snapping/allLayerSnapping.js +1 -1
  333. package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
  334. package/views/layers/LayerView.js +1 -1
  335. package/views/layers/LineOfSightLayerView.d.ts +35 -13
  336. package/views/layers/SketchLayerView.d.ts +1 -0
  337. package/views/layers/ViewshedLayerView.d.ts +36 -12
  338. package/views/webgl/Program.js +1 -1
  339. package/views/webgl/Texture.js +1 -1
  340. package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.d.ts +2 -1
  341. package/widgets/BasemapToggle/BasemapToggleViewModel.d.ts +2 -0
  342. package/widgets/BasemapToggle/BasemapToggleViewModel.js +1 -1
  343. package/widgets/Directions.js +1 -1
  344. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.d.ts +2 -1
  345. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  346. package/widgets/Editor/legacy/CreateFeaturesWorkflow.js +1 -1
  347. package/widgets/ElevationProfile/components/Statistics.js +1 -1
  348. package/widgets/ElevationProfile/support/chartUtils.js +1 -1
  349. package/widgets/Expand/ExpandViewModel.d.ts +2 -0
  350. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  351. package/widgets/FeatureTable/support/GroupColumnTemplate.js +1 -1
  352. package/widgets/FeatureTable/support/TableTemplate.js +1 -1
  353. package/widgets/Fullscreen/FullscreenViewModel.d.ts +3 -1
  354. package/widgets/Home/HomeViewModel.d.ts +2 -0
  355. package/widgets/OrientedImageryViewer.js +1 -1
  356. package/widgets/Print.js +1 -1
  357. package/widgets/Sketch/SketchViewModel.js +1 -1
  358. package/widgets/Slice.js +1 -1
  359. package/widgets/Swipe/SwipeViewModel.d.ts +2 -0
  360. package/widgets/Swipe/types.d.ts +9 -2
  361. package/widgets/TimeSlider/TimeSliderViewModel.d.ts +9 -5
  362. package/widgets/TimeSlider/types.d.ts +7 -0
  363. package/widgets/TimeSlider.d.ts +2 -3
  364. package/widgets/TimeSlider.js +1 -1
  365. package/widgets/Track/TrackViewModel.d.ts +4 -0
  366. package/widgets/Track/types.d.ts +1 -0
  367. package/widgets/UtilityNetworkTraceAnalysis/UtilityNetworkTraceAnalysisViewModel.js +1 -1
  368. package/widgets/support/SelectionList/SelectionListViewModel.js +1 -1
  369. package/widgets/support/SelectionList.js +1 -1
  370. package/widgets/support/Selector3D/selectorUtils.js +1 -1
  371. package/widgets/support/componentsUtils.js +1 -1
  372. package/assets/esri/core/workers/chunks/0050916e462e3c9e0627.js +0 -1
  373. package/assets/esri/core/workers/chunks/024b44c0c8876627f904.js +0 -1
  374. package/assets/esri/core/workers/chunks/02c5d027bdaee67869cf.js +0 -1
  375. package/assets/esri/core/workers/chunks/03261b9451e293a0fac8.js +0 -1
  376. package/assets/esri/core/workers/chunks/0c8c01097847617261b9.js +0 -1
  377. package/assets/esri/core/workers/chunks/0d931c7579b6409a696d.js +0 -1
  378. package/assets/esri/core/workers/chunks/12c154342fff876f2f1e.js +0 -1
  379. package/assets/esri/core/workers/chunks/1e11d2e97d17685b878a.js +0 -1
  380. package/assets/esri/core/workers/chunks/1f339247b68b061ab0a4.js +0 -1
  381. package/assets/esri/core/workers/chunks/21ddb26526bcb2b122c3.js +0 -1
  382. package/assets/esri/core/workers/chunks/2eae542fe7f0f6576ac1.js +0 -1
  383. package/assets/esri/core/workers/chunks/34cbaf844730ac2d92c2.js +0 -2
  384. package/assets/esri/core/workers/chunks/3c301a689c7853c9fa67.js +0 -2
  385. package/assets/esri/core/workers/chunks/3f946c13ad97fbed867b.js +0 -1
  386. package/assets/esri/core/workers/chunks/444e5f214abce3d607cd.js +0 -1
  387. package/assets/esri/core/workers/chunks/46a7da93a63663878583.js +0 -1
  388. package/assets/esri/core/workers/chunks/4a1e23e021bac37a88ab.js +0 -1
  389. package/assets/esri/core/workers/chunks/4c4117e28ea358a32088.js +0 -1
  390. package/assets/esri/core/workers/chunks/54b18559280a7d2a8d93.js +0 -1
  391. package/assets/esri/core/workers/chunks/59b216b60464611742d4.js +0 -1
  392. package/assets/esri/core/workers/chunks/604f0f4150fb79ee54c8.js +0 -1
  393. package/assets/esri/core/workers/chunks/6299be5e7e26bf3c6859.js +0 -1
  394. package/assets/esri/core/workers/chunks/62ac588f7dd1d24d0c9d.js +0 -1
  395. package/assets/esri/core/workers/chunks/62c8c9ad09e0166207fd.js +0 -1
  396. package/assets/esri/core/workers/chunks/62d6e101e9bd9557a410.js +0 -1
  397. package/assets/esri/core/workers/chunks/6558488ea96620439f34.js +0 -1
  398. package/assets/esri/core/workers/chunks/665e31c494d2af505acc.js +0 -1
  399. package/assets/esri/core/workers/chunks/6f4e6022a52de0c54aab.js +0 -1
  400. package/assets/esri/core/workers/chunks/7267b17de212207142c9.js +0 -1
  401. package/assets/esri/core/workers/chunks/745a153d0cd34faa124e.js +0 -1
  402. package/assets/esri/core/workers/chunks/7572c2bc5062e66f6330.js +0 -1
  403. package/assets/esri/core/workers/chunks/76ab353d80d786777161.js +0 -2
  404. package/assets/esri/core/workers/chunks/7ef182e24cad50815b4e.js +0 -1
  405. package/assets/esri/core/workers/chunks/8293600f94553afc8c38.js +0 -1
  406. package/assets/esri/core/workers/chunks/8431ca60ad33d594e323.js +0 -1
  407. package/assets/esri/core/workers/chunks/8483c50ed8f280fd74bb.js +0 -1
  408. package/assets/esri/core/workers/chunks/876f7633c15f1e31078d.js +0 -1
  409. package/assets/esri/core/workers/chunks/8ca9648eacb894283513.js +0 -1
  410. package/assets/esri/core/workers/chunks/8cb716f110d164030309.js +0 -1
  411. package/assets/esri/core/workers/chunks/91ebb2ccab1889eb7e81.js +0 -1
  412. package/assets/esri/core/workers/chunks/94e427040edb469d58ad.js +0 -1
  413. package/assets/esri/core/workers/chunks/9ce91a909eccc4dfe388.js +0 -1
  414. package/assets/esri/core/workers/chunks/9e1a3b6a08c96dcefdde.js +0 -1
  415. package/assets/esri/core/workers/chunks/9e3e442a9874ed23a043.js +0 -1
  416. package/assets/esri/core/workers/chunks/ad76f7ab2f3e6d5a5b3c.js +0 -1
  417. package/assets/esri/core/workers/chunks/aff32980d91dab07dfb7.js +0 -1
  418. package/assets/esri/core/workers/chunks/b49df4ebd4be1181b0f9.js +0 -2
  419. package/assets/esri/core/workers/chunks/b557824bc1fa163d72a3.js +0 -2
  420. package/assets/esri/core/workers/chunks/bbf993dba74850bbf9d7.js +0 -1
  421. package/assets/esri/core/workers/chunks/d8f1cefcad02d7353d4b.js +0 -1
  422. package/assets/esri/core/workers/chunks/d938987344bce83cc660.js +0 -1
  423. package/assets/esri/core/workers/chunks/ddf0671976648f621269.js +0 -1
  424. package/assets/esri/core/workers/chunks/de02f60258e6985ef676.js +0 -1
  425. package/assets/esri/core/workers/chunks/e10b57aefcc89671116e.js +0 -1
  426. package/assets/esri/core/workers/chunks/e65dfa19f030ec298437.js +0 -1
  427. package/assets/esri/core/workers/chunks/ed8786fed345718ed684.js +0 -1
  428. package/assets/esri/core/workers/chunks/f122c18af10e56f9ec2b.js +0 -1
  429. package/assets/esri/core/workers/chunks/f92364afaefbac7e8f77.js +0 -1
  430. package/assets/esri/core/workers/chunks/fc44227c1756f65b95df.js +0 -1
  431. package/assets/esri/core/workers/chunks/fd9663952d5a94f3a83f.js +0 -1
  432. package/assets/esri/core/workers/chunks/fe9879ecd69ac4329291.js +0 -1
  433. package/layers/mixins/FeatureLayerReload.js +0 -2
  434. /package/assets/esri/core/workers/chunks/{b557824bc1fa163d72a3.js.LICENSE.txt → 164c8eeefa8232b2b191.js.LICENSE.txt} +0 -0
  435. /package/assets/esri/core/workers/chunks/{b49df4ebd4be1181b0f9.js.LICENSE.txt → 2981e904ab62f3ed80d0.js.LICENSE.txt} +0 -0
  436. /package/assets/esri/core/workers/chunks/{34cbaf844730ac2d92c2.js.LICENSE.txt → 32cc59e126df8c96a0cf.js.LICENSE.txt} +0 -0
  437. /package/assets/esri/core/workers/chunks/{590e6c70206122e4cc3c.js.LICENSE.txt → 844eedda8f749972f707.js.LICENSE.txt} +0 -0
  438. /package/assets/esri/core/workers/chunks/{3c301a689c7853c9fa67.js.LICENSE.txt → b686cd74975da09b9c91.js.LICENSE.txt} +0 -0
  439. /package/assets/esri/core/workers/chunks/{76ab353d80d786777161.js.LICENSE.txt → bd46a04a9ee4ea9e6ef1.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4844,8768],{80200(e,t,r){r.d(t,{d:()=>p});const i={Base64:0,Hex:1,String:2,Raw:3};function s(e,t){let r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function n(e,t,r,i,n,a){return s(function(e,t){return e<<t|e>>>32-t}(s(s(t,e),s(i,a)),n),r)}function a(e,t,r,i,s,a,o){return n(t&r|~t&i,e,t,s,a,o)}function o(e,t,r,i,s,a,o){return n(t&i|r&~i,e,t,s,a,o)}function l(e,t,r,i,s,a,o){return n(t^r^i,e,t,s,a,o)}function u(e,t,r,i,s,a,o){return n(r^(t|~i),e,t,s,a,o)}function d(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let r=1732584193,i=-271733879,n=-1732584194,d=271733878;for(let t=0;t<e.length;t+=16){let p=r,c=i,h=n,f=d;r=a(r,i,n,d,e[t],7,-680876936),d=a(d,r,i,n,e[t+1],12,-389564586),n=a(n,d,r,i,e[t+2],17,606105819),i=a(i,n,d,r,e[t+3],22,-1044525330),r=a(r,i,n,d,e[t+4],7,-176418897),d=a(d,r,i,n,e[t+5],12,1200080426),n=a(n,d,r,i,e[t+6],17,-1473231341),i=a(i,n,d,r,e[t+7],22,-45705983),r=a(r,i,n,d,e[t+8],7,1770035416),d=a(d,r,i,n,e[t+9],12,-1958414417),n=a(n,d,r,i,e[t+10],17,-42063),i=a(i,n,d,r,e[t+11],22,-1990404162),r=a(r,i,n,d,e[t+12],7,1804603682),d=a(d,r,i,n,e[t+13],12,-40341101),n=a(n,d,r,i,e[t+14],17,-1502002290),i=a(i,n,d,r,e[t+15],22,1236535329),r=o(r,i,n,d,e[t+1],5,-165796510),d=o(d,r,i,n,e[t+6],9,-1069501632),n=o(n,d,r,i,e[t+11],14,643717713),i=o(i,n,d,r,e[t],20,-373897302),r=o(r,i,n,d,e[t+5],5,-701558691),d=o(d,r,i,n,e[t+10],9,38016083),n=o(n,d,r,i,e[t+15],14,-660478335),i=o(i,n,d,r,e[t+4],20,-405537848),r=o(r,i,n,d,e[t+9],5,568446438),d=o(d,r,i,n,e[t+14],9,-1019803690),n=o(n,d,r,i,e[t+3],14,-187363961),i=o(i,n,d,r,e[t+8],20,1163531501),r=o(r,i,n,d,e[t+13],5,-1444681467),d=o(d,r,i,n,e[t+2],9,-51403784),n=o(n,d,r,i,e[t+7],14,1735328473),i=o(i,n,d,r,e[t+12],20,-1926607734),r=l(r,i,n,d,e[t+5],4,-378558),d=l(d,r,i,n,e[t+8],11,-2022574463),n=l(n,d,r,i,e[t+11],16,1839030562),i=l(i,n,d,r,e[t+14],23,-35309556),r=l(r,i,n,d,e[t+1],4,-1530992060),d=l(d,r,i,n,e[t+4],11,1272893353),n=l(n,d,r,i,e[t+7],16,-155497632),i=l(i,n,d,r,e[t+10],23,-1094730640),r=l(r,i,n,d,e[t+13],4,681279174),d=l(d,r,i,n,e[t],11,-358537222),n=l(n,d,r,i,e[t+3],16,-722521979),i=l(i,n,d,r,e[t+6],23,76029189),r=l(r,i,n,d,e[t+9],4,-640364487),d=l(d,r,i,n,e[t+12],11,-421815835),n=l(n,d,r,i,e[t+15],16,530742520),i=l(i,n,d,r,e[t+2],23,-995338651),r=u(r,i,n,d,e[t],6,-198630844),d=u(d,r,i,n,e[t+7],10,1126891415),n=u(n,d,r,i,e[t+14],15,-1416354905),i=u(i,n,d,r,e[t+5],21,-57434055),r=u(r,i,n,d,e[t+12],6,1700485571),d=u(d,r,i,n,e[t+3],10,-1894986606),n=u(n,d,r,i,e[t+10],15,-1051523),i=u(i,n,d,r,e[t+1],21,-2054922799),r=u(r,i,n,d,e[t+8],6,1873313359),d=u(d,r,i,n,e[t+15],10,-30611744),n=u(n,d,r,i,e[t+6],15,-1560198380),i=u(i,n,d,r,e[t+13],21,1309151649),r=u(r,i,n,d,e[t+4],6,-145523070),d=u(d,r,i,n,e[t+11],10,-1120210379),n=u(n,d,r,i,e[t+2],15,718787259),i=u(i,n,d,r,e[t+9],21,-343485551),r=s(r,p),i=s(i,c),n=s(n,h),d=s(d,f)}return[r,i,n,d]}function p(e,t=i.Hex){let r=t||i.Base64,s=d(function(e){let t=[];for(let r=0,i=8*e.length;r<i;r+=8)t[r>>5]|=(255&e.charCodeAt(r/8))<<r%32;return t}(e),8*e.length);switch(r){case i.Raw:return s;case i.Hex:return function(e){let t="0123456789abcdef",r=[];for(let i=0,s=4*e.length;i<s;i++)r.push(t.charAt(e[i>>2]>>i%4*8+4&15)+t.charAt(e[i>>2]>>i%4*8&15));return r.join("")}(s);case i.String:return function(e){let t=[];for(let r=0,i=32*e.length;r<i;r+=8)t.push(String.fromCharCode(e[r>>5]>>>r%32&255));return t.join("")}(s);case i.Base64:return function(e){let t=[];for(let r=0,i=4*e.length;r<i;r+=3){let i=(e[r>>2]>>r%4*8&255)<<16|(e[r+1>>2]>>(r+1)%4*8&255)<<8|e[r+2>>2]>>(r+2)%4*8&255;for(let s=0;s<4;s++)8*r+6*s>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>6*(3-s)&63))}return t.join("")}(s)}}r.d(t,["T",0,i])},87024(e,t,r){r.d(t,{P:()=>h});var i=r(49186),s=r(80200),n=r(76553),a=r(84952),o=r(13069),l=r(96156),u=r(35666),d=r(10107),p=r(85648),c=r(97159);function h(e){let t=e?.origins??[void 0];return(r,i)=>{let s=function(e,t,r){if("resource"===e?.type)return function(e,t,r){let i=(0,l.z4)(t,r);return{type:String,read:(e,t,r)=>{let s=(0,c.r)(e,t,r);return i.type===String?s:"function"==typeof i.type?new i.type({url:s}):void 0},write:{isRequired:i.json?.write?.isRequired,writer(t,s,o,l){if(!l?.resources)return"string"==typeof t?void(s[o]=(0,c.t)(t,l)):void(s[o]=t.write({},l));let d=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),h=(0,c.t)(d,{...l,verifyItemRelativeUrls:l?.verifyItemRelativeUrls?{writtenUrls:l.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),m=i.type!==String&&(!(0,n.H)(this)||l?.origin&&this.originIdOf(r)>(0,u.aB)(l.origin)),v={object:this,propertyName:r,value:t,targetUrl:h,dest:s,targetPropertyName:o,context:l,params:e};l?.portalItem&&h&&!(0,a.oP)(h)?m&&e?.contentAddressed?f(v):m?function(e){let{context:t,targetUrl:r,params:i,value:s,dest:n,targetPropertyName:o}=e;if(!t.portalItem)return;let l=t.portalItem.resourceFromPath(r),u=g(s,r,t),d=(0,p.n)(u),c=(0,a.Zo)(l.path),h=i?.compress??!1;d===c?(t.resources&&y({...e,resource:l,content:u,compress:h,updates:t.resources.toUpdate}),n[o]=r):f(e)}(v):function({context:e,targetUrl:t,dest:r,targetPropertyName:i}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),r[i]=t)}(v):l?.portalItem&&(null==h||null!=(0,c.i)(h)||(0,a.w8)(h)||m)?f(v):s[o]=h}}}}(e,t,r);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{let{read:e,write:t}=c.b;return{read:e,write:t}}}}(e,r,i);for(let e of t){let t=(0,d.rM)(r,e,i);for(let e in s)t[e]=s[e]}}}function f(e){let{targetUrl:t,params:r,value:n,context:l,dest:u,targetPropertyName:d}=e;if(!l.portalItem)return;let h=(0,c.p)(t),f=g(n,t,l);if(r?.contentAddressed&&"json"!==f.type)return void l.messages?.push(new i.A("persistable:contentAddressingUnsupported",`Property "${d}" is trying to serializing a resource with content of type ${f.type} with content addressing. Content addressing is only supported for json resources.`,{content:f}));let m=r?.contentAddressed&&"json"===f.type?(0,s.d)(f.jsonString):h?.filename??(0,o.lk)(),v=r?.prefix??h?.prefix,w=(0,a.fj)(v,m),b=`${w}.${(0,p.n)(f)}`;if(r?.contentAddressed&&l.resources&&"json"===f.type){let e=l.resources.toKeep.find(({resource:e})=>e.path===b)??l.resources.toAdd.find(({resource:e})=>e.path===b);if(e)return void(u[d]=e.resource.itemRelativeUrl)}let M=l.portalItem.resourceFromPath(b);(0,a.w8)(t)&&l.resources&&l.resources.pendingOperations.push((0,a.tk)(t).then(e=>{M.path=`${w}.${(0,p.n)({type:"blob",blob:e})}`,u[d]=M.itemRelativeUrl}).catch(()=>{}));let I=r?.compress??!1;l.resources&&y({...e,resource:M,content:f,compress:I,updates:l.resources.toAdd}),u[d]=M.itemRelativeUrl}function y({object:e,propertyName:t,updates:r,resource:i,content:s,compress:n}){r.push({resource:i,content:s,compress:n,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function g(e,t,r){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(r))}}},48163(e,t,r){function i(){return[0,0]}function s(e){return[e[0],e[1]]}function n(e,t){return[e,t]}function a(){return n(1,1)}function o(){return n(-1,-1)}function l(){return n(1,0)}function u(){return n(0,1)}r.d(t,{fA:()=>n,o8:()=>s,vt:()=>i});const d=a(),p=o(),c=l(),h=u();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:p,ONES:d,UNIT_X:c,UNIT_Y:h,ZEROS:[0,0],clone:s,create:i,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){let r=Math.min(2,e.length);for(let i=0;i<r;++i)t[i]=e[i];return t},fromValues:n,negativeOnes:o,ones:a,unitX:l,unitY:u,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["IA",0,p,"Un",0,d])},58083(e,t,r){r.d(t,{$0:()=>m,$h:()=>x,B8:()=>d,C:()=>n,D_:()=>o,N9:()=>w,O7:()=>C,Qw:()=>u,Tl:()=>c,X_:()=>A,e$:()=>f,eL:()=>y,hM:()=>v,hZ:()=>a,hs:()=>h,kN:()=>g,l:()=>F,lw:()=>p,mg:()=>l,o1:()=>S,sC:()=>I,t2:()=>P,t5:()=>L,tZ:()=>_,ut:()=>O});var i=r(51850),s=r(34304);function n(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function a(e,t,r,i,s,n,a,o,l,u,d,p,c,h,f,y,g){return e[0]=t,e[1]=r,e[2]=i,e[3]=s,e[4]=n,e[5]=a,e[6]=o,e[7]=l,e[8]=u,e[9]=d,e[10]=p,e[11]=c,e[12]=h,e[13]=f,e[14]=y,e[15]=g,e}function o(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function l(e,t){if(e===t){let r=t[1],i=t[2],s=t[3],n=t[6],a=t[7],o=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=i,e[9]=n,e[11]=t[14],e[12]=s,e[13]=a,e[14]=o}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function u(e,t){return d(e,t)||o(e),e}function d(e,t){let r=t[0],i=t[1],s=t[2],n=t[3],a=t[4],o=t[5],l=t[6],u=t[7],d=t[8],p=t[9],c=t[10],h=t[11],f=t[12],y=t[13],g=t[14],m=t[15],v=r*o-i*a,w=r*l-s*a,b=r*u-n*a,M=i*l-s*o,I=i*u-n*o,A=s*u-n*l,F=d*y-p*f,S=d*g-c*f,C=d*m-h*f,x=p*g-c*y,L=p*m-h*y,j=c*m-h*g,P=v*j-w*L+b*x+M*C-I*S+A*F;return P?(P=1/P,e[0]=(o*j-l*L+u*x)*P,e[1]=(s*L-i*j-n*x)*P,e[2]=(y*A-g*I+m*M)*P,e[3]=(c*I-p*A-h*M)*P,e[4]=(l*C-a*j-u*S)*P,e[5]=(r*j-s*C+n*S)*P,e[6]=(g*b-f*A-m*w)*P,e[7]=(d*A-c*b+h*w)*P,e[8]=(a*L-o*C+u*F)*P,e[9]=(i*C-r*L-n*F)*P,e[10]=(f*I-y*b+m*v)*P,e[11]=(p*b-d*I-h*v)*P,e[12]=(o*S-a*x-l*F)*P,e[13]=(r*x-i*S+s*F)*P,e[14]=(y*w-f*M-g*v)*P,e[15]=(d*M-p*w+c*v)*P,e):null}function p(e,t,r){let i=t[0],s=t[1],n=t[2],a=t[3],o=t[4],l=t[5],u=t[6],d=t[7],p=t[8],c=t[9],h=t[10],f=t[11],y=t[12],g=t[13],m=t[14],v=t[15],w=r[0],b=r[1],M=r[2],I=r[3];return e[0]=w*i+b*o+M*p+I*y,e[1]=w*s+b*l+M*c+I*g,e[2]=w*n+b*u+M*h+I*m,e[3]=w*a+b*d+M*f+I*v,w=r[4],b=r[5],M=r[6],I=r[7],e[4]=w*i+b*o+M*p+I*y,e[5]=w*s+b*l+M*c+I*g,e[6]=w*n+b*u+M*h+I*m,e[7]=w*a+b*d+M*f+I*v,w=r[8],b=r[9],M=r[10],I=r[11],e[8]=w*i+b*o+M*p+I*y,e[9]=w*s+b*l+M*c+I*g,e[10]=w*n+b*u+M*h+I*m,e[11]=w*a+b*d+M*f+I*v,w=r[12],b=r[13],M=r[14],I=r[15],e[12]=w*i+b*o+M*p+I*y,e[13]=w*s+b*l+M*c+I*g,e[14]=w*n+b*u+M*h+I*m,e[15]=w*a+b*d+M*f+I*v,e}function c(e,t,r){let i=r[0],s=r[1],n=r[2];if(t===e)e[12]=t[0]*i+t[4]*s+t[8]*n+t[12],e[13]=t[1]*i+t[5]*s+t[9]*n+t[13],e[14]=t[2]*i+t[6]*s+t[10]*n+t[14],e[15]=t[3]*i+t[7]*s+t[11]*n+t[15];else{let r=t[0],a=t[1],o=t[2],l=t[3],u=t[4],d=t[5],p=t[6],c=t[7],h=t[8],f=t[9],y=t[10],g=t[11];e[0]=r,e[1]=a,e[2]=o,e[3]=l,e[4]=u,e[5]=d,e[6]=p,e[7]=c,e[8]=h,e[9]=f,e[10]=y,e[11]=g,e[12]=r*i+u*s+h*n+t[12],e[13]=a*i+d*s+f*n+t[13],e[14]=o*i+p*s+y*n+t[14],e[15]=l*i+c*s+g*n+t[15]}return e}function h(e,t,r){let i=r[0],s=r[1],n=r[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*s,e[5]=t[5]*s,e[6]=t[6]*s,e[7]=t[7]*s,e[8]=t[8]*n,e[9]=t[9]*n,e[10]=t[10]*n,e[11]=t[11]*n,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function f(e,t,r,i){let a=i[0],o=i[1],l=i[2],u=Math.sqrt(a*a+o*o+l*l);if(u<=(0,s.FD)())return void n(e,t);u=1/u,a*=u,o*=u,l*=u;let d=Math.sin(r),p=Math.cos(r),c=1-p,h=t[0],f=t[1],y=t[2],g=t[3],m=t[4],v=t[5],w=t[6],b=t[7],M=t[8],I=t[9],A=t[10],F=t[11],S=a*a*c+p,C=o*a*c+l*d,x=l*a*c-o*d,L=a*o*c-l*d,j=o*o*c+p,P=l*o*c+a*d,O=a*l*c+o*d,_=o*l*c-a*d,T=l*l*c+p;e[0]=h*S+m*C+M*x,e[1]=f*S+v*C+I*x,e[2]=y*S+w*C+A*x,e[3]=g*S+b*C+F*x,e[4]=h*L+m*j+M*P,e[5]=f*L+v*j+I*P,e[6]=y*L+w*j+A*P,e[7]=g*L+b*j+F*P,e[8]=h*O+m*_+M*T,e[9]=f*O+v*_+I*T,e[10]=y*O+w*_+A*T,e[11]=g*O+b*_+F*T,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15])}function y(e,t,r){let i=Math.sin(r),s=Math.cos(r),n=t[4],a=t[5],o=t[6],l=t[7],u=t[8],d=t[9],p=t[10],c=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=n*s+u*i,e[5]=a*s+d*i,e[6]=o*s+p*i,e[7]=l*s+c*i,e[8]=u*s-n*i,e[9]=d*s-a*i,e[10]=p*s-o*i,e[11]=c*s-l*i,e}function g(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function m(e,t,r){if(0===t)return o(e);let i=r[0],n=r[1],a=r[2],l=Math.sqrt(i*i+n*n+a*a);if(l<=(0,s.FD)())return null;l=1/l,i*=l,n*=l,a*=l;let u=Math.sin(t),d=Math.cos(t),p=1-d;return e[0]=i*i*p+d,e[1]=n*i*p+a*u,e[2]=a*i*p-n*u,e[3]=0,e[4]=i*n*p-a*u,e[5]=n*n*p+d,e[6]=a*n*p+i*u,e[7]=0,e[8]=i*a*p+n*u,e[9]=n*a*p-i*u,e[10]=a*a*p+d,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function v(e,t){let r=Math.sin(t),i=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function w(e,t){let r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function b(e,t,r){let i=t[0],s=t[1],n=t[2],a=t[3],o=i+i,l=s+s,u=n+n,d=i*o,p=i*l,c=i*u,h=s*l,f=s*u,y=n*u,g=a*o,m=a*l,v=a*u;return e[0]=1-(h+y),e[1]=p+v,e[2]=c-m,e[3]=0,e[4]=p-v,e[5]=1-(d+y),e[6]=f+g,e[7]=0,e[8]=c+m,e[9]=f-g,e[10]=1-(d+h),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}const M=(0,i.vt)();function I(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e}function A(e,t){let r=t[0],i=t[1],s=t[2],n=t[4],a=t[5],o=t[6],l=t[8],u=t[9],d=t[10];return e[0]=Math.sqrt(r*r+i*i+s*s),e[1]=Math.sqrt(n*n+a*a+o*o),e[2]=Math.sqrt(l*l+u*u+d*d),e}function F(e,t){let r=t[0]+t[5]+t[10],i=0;return r>0?(i=2*Math.sqrt(r+1),e[3]=.25*i,e[0]=(t[6]-t[9])/i,e[1]=(t[8]-t[2])/i,e[2]=(t[1]-t[4])/i):t[0]>t[5]&&t[0]>t[10]?(i=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/i,e[0]=.25*i,e[1]=(t[1]+t[4])/i,e[2]=(t[8]+t[2])/i):t[5]>t[10]?(i=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/i,e[0]=(t[1]+t[4])/i,e[1]=.25*i,e[2]=(t[6]+t[9])/i):(i=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/i,e[0]=(t[8]+t[2])/i,e[1]=(t[6]+t[9])/i,e[2]=.25*i),e}function S(e,t,r,i){let s=t[0],n=t[1],a=t[2],o=t[3],l=s+s,u=n+n,d=a+a,p=s*l,c=s*u,h=s*d,f=n*u,y=n*d,g=a*d,m=o*l,v=o*u,w=o*d,b=i[0],M=i[1],I=i[2];return e[0]=(1-(f+g))*b,e[1]=(c+w)*b,e[2]=(h-v)*b,e[3]=0,e[4]=(c-w)*M,e[5]=(1-(p+g))*M,e[6]=(y+m)*M,e[7]=0,e[8]=(h+v)*I,e[9]=(y-m)*I,e[10]=(1-(p+f))*I,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}function C(e,t,r,i,s){let n=t[0],a=t[1],o=t[2],l=t[3],u=n+n,d=a+a,p=o+o,c=n*u,h=n*d,f=n*p,y=a*d,g=a*p,m=o*p,v=l*u,w=l*d,b=l*p,M=i[0],I=i[1],A=i[2],F=s[0],S=s[1],C=s[2],x=(1-(y+m))*M,L=(h+b)*M,j=(f-w)*M,P=(h-b)*I,O=(1-(c+m))*I,_=(g+v)*I,T=(f+w)*A,R=(g-v)*A,Z=(1-(c+y))*A;return e[0]=x,e[1]=L,e[2]=j,e[3]=0,e[4]=P,e[5]=O,e[6]=_,e[7]=0,e[8]=T,e[9]=R,e[10]=Z,e[11]=0,e[12]=r[0]+F-(x*F+P*S+T*C),e[13]=r[1]+S-(L*F+O*S+R*C),e[14]=r[2]+C-(j*F+_*S+Z*C),e[15]=1,e}function x(e,t,r,i,s,n,a){let o=1/(r-t),l=1/(s-i),u=1/(n-a);return e[0]=2*n*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*n*l,e[6]=0,e[7]=0,e[8]=(r+t)*o,e[9]=(s+i)*l,e[10]=(a+n)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=a*n*2*u,e[15]=0,e}function L(e,t,r,i){let n=t[0],a=t[1],l=t[2],u=n-r[0],d=a-r[1],p=l-r[2],c=(0,s.FD)();if(Math.abs(u)<c&&Math.abs(d)<c&&Math.abs(p)<c)return void o(e);let h=1/Math.sqrt(u*u+d*d+p*p);u*=h,d*=h,p*=h;let f=i[0],y=i[1],g=i[2],m=y*p-g*d,v=g*u-f*p,w=f*d-y*u;h=Math.sqrt(m*m+v*v+w*w),h?(h=1/h,m*=h,v*=h,w*=h):(m=0,v=0,w=0);let b=d*w-p*v,M=p*m-u*w,I=u*v-d*m;h=Math.sqrt(b*b+M*M+I*I),h?(h=1/h,b*=h,M*=h,I*=h):(b=0,M=0,I=0),e[0]=m,e[1]=b,e[2]=u,e[3]=0,e[4]=v,e[5]=M,e[6]=d,e[7]=0,e[8]=w,e[9]=I,e[10]=p,e[11]=0,e[12]=-(m*n+v*a+w*l),e[13]=-(b*n+M*a+I*l),e[14]=-(u*n+d*a+p*l),e[15]=1}function j(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e[9]=t[9]-r[9],e[10]=t[10]-r[10],e[11]=t[11]-r[11],e[12]=t[12]-r[12],e[13]=t[13]-r[13],e[14]=t[14]-r[14],e[15]=t[15]-r[15],e}function P(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function O(e){let t=(0,s.FD)(),r=e[0],i=e[1],n=e[2],a=e[4],o=e[5],l=e[6],u=e[8],d=e[9],p=e[10];return Math.abs(1-(r*r+a*a+u*u))<=t&&Math.abs(1-(i*i+o*o+d*d))<=t&&Math.abs(1-(n*n+l*l+p*p))<=t}function _(e){return 1===e[0]&&0===e[1]&&0===e[2]&&0===e[4]&&1===e[5]&&0===e[6]&&0===e[8]&&0===e[9]&&1===e[10]}const T=p,R=j;Object.freeze(Object.defineProperty({__proto__:null,add:function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e[9]=t[9]+r[9],e[10]=t[10]+r[10],e[11]=t[11]+r[11],e[12]=t[12]+r[12],e[13]=t[13]+r[13],e[14]=t[14]+r[14],e[15]=t[15]+r[15],e},adjoint:function(e,t){let r=t[0],i=t[1],s=t[2],n=t[3],a=t[4],o=t[5],l=t[6],u=t[7],d=t[8],p=t[9],c=t[10],h=t[11],f=t[12],y=t[13],g=t[14],m=t[15];return e[0]=o*(c*m-h*g)-p*(l*m-u*g)+y*(l*h-u*c),e[1]=-(i*(c*m-h*g)-p*(s*m-n*g)+y*(s*h-n*c)),e[2]=i*(l*m-u*g)-o*(s*m-n*g)+y*(s*u-n*l),e[3]=-(i*(l*h-u*c)-o*(s*h-n*c)+p*(s*u-n*l)),e[4]=-(a*(c*m-h*g)-d*(l*m-u*g)+f*(l*h-u*c)),e[5]=r*(c*m-h*g)-d*(s*m-n*g)+f*(s*h-n*c),e[6]=-(r*(l*m-u*g)-a*(s*m-n*g)+f*(s*u-n*l)),e[7]=r*(l*h-u*c)-a*(s*h-n*c)+d*(s*u-n*l),e[8]=a*(p*m-h*y)-d*(o*m-u*y)+f*(o*h-u*p),e[9]=-(r*(p*m-h*y)-d*(i*m-n*y)+f*(i*h-n*p)),e[10]=r*(o*m-u*y)-a*(i*m-n*y)+f*(i*u-n*o),e[11]=-(r*(o*h-u*p)-a*(i*h-n*p)+d*(i*u-n*o)),e[12]=-(a*(p*g-c*y)-d*(o*g-l*y)+f*(o*c-l*p)),e[13]=r*(p*g-c*y)-d*(i*g-s*y)+f*(i*c-s*p),e[14]=-(r*(o*g-l*y)-a*(i*g-s*y)+f*(i*l-s*o)),e[15]=r*(o*c-l*p)-a*(i*c-s*p)+d*(i*l-s*o),e},copy:n,determinant:function(e){let t=e[0],r=e[1],i=e[2],s=e[3],n=e[4],a=e[5],o=e[6],l=e[7],u=e[8],d=e[9],p=e[10],c=e[11],h=e[12],f=e[13],y=e[14],g=e[15];return(t*a-r*n)*(p*g-c*y)-(t*o-i*n)*(d*g-c*f)+(t*l-s*n)*(d*y-p*f)+(r*o-i*a)*(u*g-c*h)-(r*l-s*a)*(u*y-p*h)+(i*l-s*o)*(u*f-d*h)},equals:function(e,t){if(e===t)return!0;let r=e[0],i=e[1],n=e[2],a=e[3],o=e[4],l=e[5],u=e[6],d=e[7],p=e[8],c=e[9],h=e[10],f=e[11],y=e[12],g=e[13],m=e[14],v=e[15],w=t[0],b=t[1],M=t[2],I=t[3],A=t[4],F=t[5],S=t[6],C=t[7],x=t[8],L=t[9],j=t[10],P=t[11],O=t[12],_=t[13],T=t[14],R=t[15],Z=(0,s.FD)();return Math.abs(r-w)<=Z*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(i-b)<=Z*Math.max(1,Math.abs(i),Math.abs(b))&&Math.abs(n-M)<=Z*Math.max(1,Math.abs(n),Math.abs(M))&&Math.abs(a-I)<=Z*Math.max(1,Math.abs(a),Math.abs(I))&&Math.abs(o-A)<=Z*Math.max(1,Math.abs(o),Math.abs(A))&&Math.abs(l-F)<=Z*Math.max(1,Math.abs(l),Math.abs(F))&&Math.abs(u-S)<=Z*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(d-C)<=Z*Math.max(1,Math.abs(d),Math.abs(C))&&Math.abs(p-x)<=Z*Math.max(1,Math.abs(p),Math.abs(x))&&Math.abs(c-L)<=Z*Math.max(1,Math.abs(c),Math.abs(L))&&Math.abs(h-j)<=Z*Math.max(1,Math.abs(h),Math.abs(j))&&Math.abs(f-P)<=Z*Math.max(1,Math.abs(f),Math.abs(P))&&Math.abs(y-O)<=Z*Math.max(1,Math.abs(y),Math.abs(O))&&Math.abs(g-_)<=Z*Math.max(1,Math.abs(g),Math.abs(_))&&Math.abs(m-T)<=Z*Math.max(1,Math.abs(m),Math.abs(T))&&Math.abs(v-R)<=Z*Math.max(1,Math.abs(v),Math.abs(R))},exactEquals:P,frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2+e[9]**2+e[10]**2+e[11]**2+e[12]**2+e[13]**2+e[14]**2+e[15]**2)},fromQuat:function(e,t){let r=t[0],i=t[1],s=t[2],n=t[3],a=r+r,o=i+i,l=s+s,u=r*a,d=i*a,p=i*o,c=s*a,h=s*o,f=s*l,y=n*a,g=n*o,m=n*l;return e[0]=1-p-f,e[1]=d+m,e[2]=c-g,e[3]=0,e[4]=d-m,e[5]=1-u-f,e[6]=h+y,e[7]=0,e[8]=c+g,e[9]=h-y,e[10]=1-u-p,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromQuat2:function(e,t){let r=M,i=-t[0],s=-t[1],n=-t[2],a=t[3],o=t[4],l=t[5],u=t[6],d=t[7],p=i*i+s*s+n*n+a*a;return p>0?(r[0]=2*(o*a+d*i+l*n-u*s)/p,r[1]=2*(l*a+d*s+u*i-o*n)/p,r[2]=2*(u*a+d*n+o*s-l*i)/p):(r[0]=2*(o*a+d*i+l*n-u*s),r[1]=2*(l*a+d*s+u*i-o*n),r[2]=2*(u*a+d*n+o*s-l*i)),b(e,t,r),e},fromRotation:m,fromRotationTranslation:b,fromRotationTranslationScale:S,fromRotationTranslationScaleOrigin:C,fromScaling:function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromTranslation:g,fromXRotation:v,fromYRotation:function(e,t){let r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromZRotation:w,frustum:x,getRotation:F,getScale:A,getTranslation:I,hasIdentityRotation:_,identity:o,invert:d,invertOrIdentity:u,isOrthoNormal:O,lookAt:L,mul:T,multiply:p,multiplyScalar:function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e[9]=t[9]*r,e[10]=t[10]*r,e[11]=t[11]*r,e[12]=t[12]*r,e[13]=t[13]*r,e[14]=t[14]*r,e[15]=t[15]*r,e},multiplyScalarAndAdd:function(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e[3]=t[3]+r[3]*i,e[4]=t[4]+r[4]*i,e[5]=t[5]+r[5]*i,e[6]=t[6]+r[6]*i,e[7]=t[7]+r[7]*i,e[8]=t[8]+r[8]*i,e[9]=t[9]+r[9]*i,e[10]=t[10]+r[10]*i,e[11]=t[11]+r[11]*i,e[12]=t[12]+r[12]*i,e[13]=t[13]+r[13]*i,e[14]=t[14]+r[14]*i,e[15]=t[15]+r[15]*i,e},ortho:function(e,t,r,i,s,n,a){let o=1/(t-r),l=1/(i-s),u=1/(n-a);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*o,e[13]=(s+i)*l,e[14]=(a+n)*u,e[15]=1,e},perspective:function(e,t,r,i,s){let n,a=1/Math.tan(t/2);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=s&&s!==1/0?(n=1/(i-s),e[10]=(s+i)*n,e[14]=2*s*i*n):(e[10]=-1,e[14]=-2*i),e},perspectiveFromFieldOfView:function(e,t,r,i){let s=Math.tan(t.upDegrees*Math.PI/180),n=Math.tan(t.downDegrees*Math.PI/180),a=Math.tan(t.leftDegrees*Math.PI/180),o=Math.tan(t.rightDegrees*Math.PI/180),l=2/(a+o),u=2/(s+n);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-(a-o)*l*.5,e[9]=(s-n)*u*.5,e[10]=i/(r-i),e[11]=-1,e[12]=0,e[13]=0,e[14]=i*r/(r-i),e[15]=0,e},rotate:f,rotateX:y,rotateY:function(e,t,r){let i=Math.sin(r),s=Math.cos(r),n=t[0],a=t[1],o=t[2],l=t[3],u=t[8],d=t[9],p=t[10],c=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=n*s-u*i,e[1]=a*s-d*i,e[2]=o*s-p*i,e[3]=l*s-c*i,e[8]=n*i+u*s,e[9]=a*i+d*s,e[10]=o*i+p*s,e[11]=l*i+c*s,e},rotateZ:function(e,t,r){let i=Math.sin(r),s=Math.cos(r),n=t[0],a=t[1],o=t[2],l=t[3],u=t[4],d=t[5],p=t[6],c=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=n*s+u*i,e[1]=a*s+d*i,e[2]=o*s+p*i,e[3]=l*s+c*i,e[4]=u*s-n*i,e[5]=d*s-a*i,e[6]=p*s-o*i,e[7]=c*s-l*i,e},scale:h,set:a,str:function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},sub:R,subtract:j,targetTo:function(e,t,r,i){let s=t[0],n=t[1],a=t[2],o=i[0],l=i[1],u=i[2],d=s-r[0],p=n-r[1],c=a-r[2],h=d*d+p*p+c*c;h>0&&(h=1/Math.sqrt(h),d*=h,p*=h,c*=h);let f=l*c-u*p,y=u*d-o*c,g=o*p-l*d;return h=f*f+y*y+g*g,h>0&&(h=1/Math.sqrt(h),f*=h,y*=h,g*=h),e[0]=f,e[1]=y,e[2]=g,e[3]=0,e[4]=p*g-c*y,e[5]=c*f-d*g,e[6]=d*y-p*f,e[7]=0,e[8]=d,e[9]=p,e[10]=c,e[11]=0,e[12]=s,e[13]=n,e[14]=a,e[15]=1,e},translate:c,transpose:l},Symbol.toStringTag,{value:"Module"}))},54239(e,t,r){r.d(t,{A:()=>m});var i,s=r(32198),n=r(4576),a=r(66552),o=r(25482),l=r(86211),u=r(67076),d=r(91429),p=r(97348),c=r(43937),h=r(36005);const f=(0,a.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),y=f.jsonValues.slice();(0,n.Xy)(y,"orthometric");const g=(0,a.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let m=i=class extends o.o{constructor(e){super(e),this.origin=0,this.associatedSpatialReference=null,this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}read(e,t){super.read(e,t),("service"===t?.origin||"web-scene"===t?.origin)&&(this.origin="service"===t.origin?2:1,this.associatedSpatialReference=null)}writeHeightModel(e,t,r){return f.write(e,t,r)}readHeightModel(e,t,r){return f.read(e)||(r?.messages&&r.messages.push(function(e,t){return new u.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return g.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.LA)(e)||g.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS,origin:this.origin,associatedSpatialReference:this.associatedSpatialReference})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static fromSpatialReference(e){let{latestVcsWkid:t,vcsWkid:r}=e;if(!r)return null;let s=(null==t?null:p.B.get(t))??p.B.get(r);return s?new i({heightModel:0===s.type?"gravity-related-height":"ellipsoidal",heightUnit:(0,l.LA)(s.unit.name),vertCRS:s.datum,origin:3,associatedSpatialReference:e}):null}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;let t=new i;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new u.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,s.Cg)([(0,d.MZ)()],m.prototype,"origin",void 0),(0,s.Cg)([(0,d.MZ)()],m.prototype,"associatedSpatialReference",void 0),(0,s.Cg)([(0,d.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:y,default:"ellipsoidal",write:{isRequired:!0,alwaysWriteDefaults:!0}}}}})],m.prototype,"heightModel",void 0),(0,s.Cg)([(0,c.K)("web-scene","heightModel")],m.prototype,"writeHeightModel",null),(0,s.Cg)([(0,h.w)(["web-scene","service"],"heightModel")],m.prototype,"readHeightModel",null),(0,s.Cg)([(0,d.MZ)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g.jsonValues,write:{writer:g.write,isRequired:!0}}}}})],m.prototype,"heightUnit",void 0),(0,s.Cg)([(0,h.w)("web-scene","heightUnit")],m.prototype,"readHeightUnit",null),(0,s.Cg)([(0,h.w)("service","heightUnit")],m.prototype,"readHeightUnitService",null),(0,s.Cg)([(0,d.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],m.prototype,"vertCRS",void 0),(0,s.Cg)([(0,h.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],m.prototype,"readVertCRS",null),m=i=(0,s.Cg)([(0,d.$K)("esri.geometry.HeightModelInfo")],m)},73836(e,t,r){r.d(t,{A:()=>h});var i=r(32198),s=r(69540),n=r(25482),a=r(91429),o=r(58083),l=r(9093),u=r(67026),d=r(82534),p=r(51850),c=r(24770);let h=class extends((0,s.OU)(n.o)){constructor(e){super(e),this.translation=(0,p.vt)(),this.rotationAxis=(0,p.ci)(c.up),this.rotationAngle=0,this.scale=(0,p.fA)(1,1,1)}get rotation(){return(0,c.i4)(this.rotationAxis,this.rotationAngle)}set rotation(e){this.rotationAxis=(0,p.o8)((0,c.yo)(e)),this.rotationAngle=(0,c.g7)(e)}get localMatrix(){let e=(0,l.vt)();return(0,u.x8)(f,(0,c.yo)(this.rotation),(0,c.$I)(this.rotation)),(0,o.o1)(e,f,this.translation,this.scale),e}get localMatrixInverse(){return(0,o.B8)((0,l.vt)(),this.localMatrix)}equals(e){return this===e||null!=e&&(0,o.t2)(this.localMatrix,e.localMatrix)}};(0,i.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"translation",void 0),(0,i.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"rotationAxis",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],h.prototype,"rotationAngle",void 0),(0,i.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"scale",void 0),(0,i.Cg)([(0,a.MZ)()],h.prototype,"rotation",null),(0,i.Cg)([(0,a.MZ)()],h.prototype,"localMatrix",null),(0,i.Cg)([(0,a.MZ)()],h.prototype,"localMatrixInverse",null),h=(0,i.Cg)([(0,a.$K)("esri.geometry.support.MeshTransform")],h);const f=(0,d.vt)()},24770(e,t,r){r.d(t,{$I:()=>g,AU:()=>h,g7:()=>y,i4:()=>d,ui:()=>p,vt:()=>u,yo:()=>f});var i=r(34727),s=r(58083),n=r(67026),a=r(82534),o=r(35522),l=r(51850);function u(e=v){return[e[0],e[1],e[2],e[3]]}function d(e,t,r=u()){return(0,o.C)(r,e),r[3]=t,r}function p(e,t=u()){let r=(0,s.l)(w,e);return m(t,(0,i.KJ)((0,n.Xd)(t,r))),t}function c(e,t,r=u()){return(0,n.x8)(w,e,g(e)),(0,n.x8)(b,t,g(t)),(0,n.lw)(w,b,w),m(r,(0,i.KJ)((0,n.Xd)(r,w)))}function h(e,t,r,i=u()){return d(l.Cw,e,M),d(l.JP,t,I),d(l.Cb,r,A),c(M,I,M),c(M,A,i),i}function f(e){return e}function y(e){return e[3]}function g(e){return(0,i.kU)(e[3])}function m(e,t){return e[3]=t,e}const v=[0,0,1,0],w=(0,a.vt)(),b=(0,a.vt)(),M=(u(),u()),I=u(),A=u();r.d(t,["up",0,v])},2e4(e,t,r){r.r(t),r.d(t,{default:()=>Ze});var i=r(32198),s=r(52106),n=r(37838),a=r(69540),o=r(7762),l=r(49186),u=r(36563),d=r(53966),p=r(97768),c=r(25728),h=r(17676),f=r(36708),y=r(91429),g=r(88620),m=r(86738),v=r(99917),w=r(41910),b=r(55156),M=r(60950),I=r(89808),A=r(99959);const F=Symbol("isSceneGraphicOrigin");var S;class C extends A.A{get[(S=F,M.ym)](){return this.layer}get[b.e](){return this.layer}get[I.Q](){return this.layer}get[w.e7](){return this.layer}constructor(e){super(),this[S]=!0,this.type="scene",this.layer=e}get id(){return this.layer.id}}var x=r(4146),L=r(55726),j=r(52136),P=r(18768),O=r(69208),_=r(47685),T=r(34287),R=r(8303),Z=r(25036),E=r(58947),U=r(82935),$=r(60694),q=r(92009),D=r(4071),N=r(10873),k=r(15426),H=r(67202),V=r(17036),G=r(95466),K=r(30524),Q=r(50805),z=r(20557),J=r(46499),B=r(39383),W=r(37352),X=r(2976),Y=r(86390),ee=r(25482);let te=class extends ee.o{constructor(){super(...arguments),this.name=null,this.field=null,this.currentRangeExtent=null,this.fullRangeExtent=null,this.type="rangeInfo"}};(0,i.Cg)([(0,y.MZ)({type:String,json:{read:!0,write:{isRequired:!0}}})],te.prototype,"name",void 0),(0,i.Cg)([(0,y.MZ)({type:String,json:{read:!0,write:{isRequired:!0}}})],te.prototype,"field",void 0),(0,i.Cg)([(0,y.MZ)({type:[Number],json:{read:!0,write:!0}})],te.prototype,"currentRangeExtent",void 0),(0,i.Cg)([(0,y.MZ)({type:[Number],json:{read:!0,write:!0}})],te.prototype,"fullRangeExtent",void 0),(0,i.Cg)([(0,y.MZ)({type:["rangeInfo"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],te.prototype,"type",void 0),te=(0,i.Cg)([(0,y.$K)("esri.layers.support.RangeInfo")],te);var re,ie=r(56507),se=r(4718),ne=r(87024),ae=r(67076),oe=r(39829);let le=re=class extends((0,ee.T)(o.A.ofType(oe.A))){constructor(e){super(e)}clone(){return new re(this.items.map(e=>e.clone()))}write(e,t){return this.toJSON(t)}toJSON(e){let t=e?.layer?.spatialReference;return t?this.toArray().map(r=>{if(!t.equals(r.spatialReference)){if(!(0,v.canProjectWithoutEngine)(r.spatialReference,t))return e?.messages?.push(new ae.A("scenefilter:unsupported","Scene filters with incompatible spatial references are not supported",{modification:this,spatialReference:e.layer.spatialReference,context:e})),null;let i=new oe.A;(0,v.projectPolygon)(r,i,t),r=i}let i=r.toJSON(e);return delete i.spatialReference,i}).filter(e=>null!=e):this.toArray().map(t=>t.toJSON(e))}static fromJSON(e,t){let r=new re;return e.forEach(e=>r.add(oe.A.fromJSON(e,t))),r}};le=re=(0,i.Cg)([(0,y.$K)("esri.layers.support.PolygonCollection")],le);const ue=le;var de,pe=r(97159),ce=r(36005);let he=de=class extends ee.o{constructor(e){super(e),this.spatialRelationship="disjoint",this.geometries=new ue,this._geometriesSource=null}initialize(){this.addHandles((0,f.on)(()=>this.geometries,"after-changes",()=>this.geometries=this.geometries,f.OH))}readGeometries(e,t,r){Array.isArray(e)?this.geometries=ue.fromJSON(e,r):("web-scene"===r.origin||"portal-item"===r.origin)&&(this._geometriesSource={url:(0,pe.f)(e,r),context:r})}async loadGeometries(e,t){if(null==this._geometriesSource)return;let{url:r,context:i}=this._geometriesSource,s=await(0,ie.A)(r,{responseType:"json",signal:t?.signal}),n=e.toJSON(),a=s.data.map(e=>({...e,spatialReference:n}));this.geometries=ue.fromJSON(a,i),this._geometriesSource=null}clone(){let e=new de({geometries:(0,se.o8)(this.geometries),spatialRelationship:this.spatialRelationship});return e._geometriesSource=this._geometriesSource,e}};(0,i.Cg)([(0,y.MZ)({type:["disjoint","contains"],nonNullable:!0,json:{write:{isRequired:!0}}})],he.prototype,"spatialRelationship",void 0),(0,i.Cg)([(0,y.MZ)({type:ue,nonNullable:!0,json:{write:!0,origins:{"web-scene":{write:{isRequired:!0}}}}}),(0,ne.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"geometries",contentAddressed:!0})],he.prototype,"geometries",void 0),(0,i.Cg)([(0,ce.w)(["web-scene","portal-item","service"],"geometries")],he.prototype,"readGeometries",null),he=de=(0,i.Cg)([(0,y.$K)("esri.layers.support.SceneFilter")],he);const fe=he;function ye({associatedLayer:e,serviceUpdateTimeStamp:t}){let r=e?.editingInfo?.lastEditDate,i=e?.serverGens,s=null!=r,n=null!=t,a=s&&n&&t.lastUpdate!==r.getTime();return s&&(a||!n&&i?.minServerGen!==i?.serverGen)}var ge=r(84952);let me=class extends ee.o{constructor(){super(...arguments),this.endTimeField=null,this.startTimeField=null}};(0,i.Cg)([(0,y.MZ)({type:String})],me.prototype,"endTimeField",void 0),(0,i.Cg)([(0,y.MZ)({type:String})],me.prototype,"startTimeField",void 0),me=(0,i.Cg)([(0,y.$K)("esri.layers.support.SceneServiceTimeInfo")],me);var ve=r(96184),we=r(8947),be=r(41214),Me=r(97552),Ie=r(24212),Ae=r(30291);async function Fe(e){let{BlobReader:t,ZipReader:i,BlobWriter:s}=await Promise.all([r.e(3120),r.e(9588)]).then(()=>r(9588)),n=[];return(await new i(new t(e)).getEntries()).forEach(e=>{if(e.directory||/^__MACOS/i.test(e.filename))return;let t=new s;n.push(e.getData(t).then(t=>new File([t],e.filename)))}),Promise.all(n)}var Se=r(79677),Ce=r(10184),xe=r(66480),Le=r(45671),je=r(78553);const Pe=new Set(["3DObject","Point"]),Oe=(0,V.p)();let _e=class extends((0,_.w6)((0,E.w6)((0,P.b)((0,T.q)((0,R.A)((0,Z.j)((0,c.M)((0,O.d)((0,j.p)((0,a.OU)(x.A))))))))))){constructor(...e){super(...e),this.featureReduction=null,this.rangeInfos=null,this.operationalLayerType="ArcGISSceneServiceLayer",this.type="scene",this.fields=null,this.graphicOrigin=new C(this),this.floorInfo=null,this.outFields=null,this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.excludeObjectIds=new o.A,this.definitionExpression=null,this.filter=null,this.path=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.priority=null,this.semantic=null,this.cachedDrawingInfo={color:!1},this.popupEnabled=!0,this.popupTemplate=null,this.attributeTableTemplate=null,this.objectIdField=null,this.globalIdField=null,this._fieldUsageInfo={},this.screenSizePerspectiveEnabled=!0,this.serviceItemId=void 0,this.serviceTimeInfo=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._set("renderer",null),this.associatedLayer=(0,p.pR)(this.associatedLayer)}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){let r=this.getField(e)?.domain??null;return this.associatedLayer?(0,k.Vq)(this.associatedLayer,e,t,r):r}getFeatureType(e){return e&&this.associatedLayer?this.associatedLayer.getFeatureType(e):null}get types(){return this.associatedLayer?.types??[]}get typeIdField(){return this.associatedLayer?.typeIdField??null}get templates(){return this.associatedLayer?.templates??null}get formTemplate(){return this.associatedLayer?.formTemplate??null}get fieldsIndex(){return new G.A(this.fields)}readNodePages(e,t,r){return"Point"===t.layerType&&(e=t.pointNodePages),"object"==typeof e&&e?Q.W4.fromJSON(e,r):null}set elevationInfo(e){this._set("elevationInfo",e),this.loaded&&this._validateElevationInfo()}get effectiveCapabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.effectiveCapabilities)}get effectiveEditingEnabled(){return null!=this.associatedLayer&&(0,k.C$)(this.associatedLayer)}get geometryType(){return Re[this.profile]||"mesh"}set renderer(e){(0,K.yp)(e,this.fieldsIndex),this._set("renderer",e)}readCachedDrawingInfo(e){return"object"==typeof e&&e||(e={}),e.color??(e.color=!1),e}get capabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.capabilities)}_capabilitiesFromAssociatedFeatureLayer(e){e??=D.P;let{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsRollbackOnFailure:s,supportsUploadWithItemId:n,supportsGeometryUpdate:a,supportsReturnServiceEditsInSourceSpatialReference:o},data:{supportsZ:l,supportsM:u,isVersioned:d,supportsAttachment:p},operations:{supportsEditing:c,supportsAdd:h,supportsUpdate:f,supportsDelete:y,supportsQuery:g,supportsQueryAttachments:m,supportsAsyncConvert3D:v},attachment:w}=e,b=e.operations.supportsChangeTracking,M=!!this.associatedLayer?.infoFor3D;return{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsReturnServiceEditsInSourceSpatialReference:o,supportsRollbackOnFailure:s,supportsGeometryUpdate:M&&a,supportsUploadWithItemId:n},data:{supportsAttachment:p,supportsZ:l,supportsM:u,isVersioned:d,queryFormats:e.data.queryFormats,sourceFormats:e.data.sourceFormats},operations:{supportsQuery:g,supportsQueryAttachments:m,supportsEditing:c&&b,supportsAdd:M&&h&&b,supportsDelete:M&&y&&b,supportsUpdate:f&&b,supportsAsyncConvert3D:v},attachment:w}}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.associatedLayer?.editingEnabled??!1}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get infoFor3D(){return this.associatedLayer?.infoFor3D??null}get relationships(){return this.associatedLayer?.relationships}get defaultPopupTemplate(){return this.associatedLayer||this.attributeStorageInfo?this.createPopupTemplate():null}readObjectIdField(e,t){return!e&&t.fields&&t.fields.some(t=>("esriFieldTypeOID"===t.type&&(e=t.name),!!e)),e||void 0}readGlobalIdField(e,t){return!e&&t.fields&&t.fields.some(t=>("esriFieldTypeGlobalID"===t.type&&(e=t.name),!!e)),e||void 0}get displayField(){return this.associatedLayer?.displayField??null}readProfile(e,t){let r=t.store.profile;return null!=r&&Te[r]?Te[r]:(d.A.getLogger(this).error("Unknown or missing profile",{profile:r,layer:this}),"mesh-pyramids")}get useViewTime(){return this.associatedLayer?.useViewTime??!0}set useViewTime(e){this._override("useViewTime",e)}get timeInfo(){let e=this.associatedLayer?.timeInfo;if(null==e)return null;let t=e.clone();return(0,K.sv)(t,this.fieldsIndex),t}set timeInfo(e){(0,K.sv)(e,this.fieldsIndex),this._override("timeInfo",e)}get timeExtent(){return this.associatedLayer?.timeExtent}set timeExtent(e){this._override("timeExtent",e)}get timeOffset(){return this.associatedLayer?.timeOffset}set timeOffset(e){this._override("timeOffset",e)}get datesInUnknownTimezone(){return this.associatedLayer?.datesInUnknownTimezone??!1}set datesInUnknownTimezone(e){this._override("datesInUnknownTimezone",e)}load(e){return this.addResolvingPromise(this._load(e)),Promise.resolve(this)}async _load(e){let t=e?.signal;await this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(h.QP),await this._fetchService(t),await Promise.all([this._fetchIndexAndUpdateExtent(this.nodePages,t),this._setAssociatedFeatureLayer(t),this._loadFilterGeometries()]),this._validateElevationInfo(),this._applyAssociatedLayerOverrides(),this._populateFieldUsageInfo(),await this.loadTimeInfoFromService(e),await(0,we.L)(this,{origin:"service"},t),(0,K.yp)(this.renderer,this.fieldsIndex),await this.finishLoadEditablePortalLayer(e)}async beforeSave(){null!=this.filter&&(this.filter=this.filter.clone(),await this.load())}async _loadFilterGeometries(){if(this.filter)try{await this.filter.loadGeometries(this.spatialReference)}catch(e){d.A.getLogger(this).error("#_loadFilterGeometries()",this,"Failed to load filter geometries. Geometry filter will not be applied for this layer.",{error:e}),this.filter=null}}createQuery(){let e=new Me.A;"mesh"===this.geometryType?this.capabilities.query.supportsReturnMesh&&(e.returnGeometry=!0):(e.returnGeometry=!0,e.returnZ=!0);let{timeOffset:t,timeExtent:r}=this;return e.timeExtent=null!=t&&null!=r?r.offset(-t.value,t.unit):r||null,e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e.outFields=["*"],e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryExtent(e||this.createQuery(),t))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatureCount(e||this.createQuery(),t))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatures(e||this.createQuery(),t)).then(e=>{if(e?.features)for(let t of e.features)t.layer=this,t.sourceLayer=this,t.origin=this.graphicOrigin;return e})}async queryModels(e,t){let[i,{queryModels:s}]=await Promise.all([this._getAssociatedLayerForQuery(),Promise.all([r.e(893),r.e(2387)]).then(()=>r(41653))]);return s(this,i,e,t)}async queryModel(e,t){let[i,{queryModel:s}]=await Promise.all([this._getAssociatedLayerForQuery(),Promise.all([r.e(893),r.e(2387)]).then(()=>r(41653))]);return s(this,i,e,t)}async queryRelatedFeatures(e,t){if(await this.load(),!this.associatedLayer)throw new l.A("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeatures(e,t)}async queryRelatedFeaturesCount(e,t){if(await this.load(),!this.associatedLayer)throw new l.A("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeaturesCount(e,t)}async queryCachedAttributes(e,t){let r=(0,K.hL)(this.fieldsIndex,await(0,Le.TO)(this,(0,Le.D8)(this)));return(0,xe.s1)(this.parsedUrl?.path??"",this.attributeStorageInfo??[],e,t,r,this.apiKey,this.customParameters)}async queryCachedFeature(e,t){let r=await this.queryCachedAttributes(e,[t]);if(!r||0===r.length)throw new l.A("scenelayer:feature-not-in-cached-data","Feature not found in cached data");let i=new s.A;return i.attributes=r[0],i.layer=this,i.sourceLayer=this,i.origin=this.graphicOrigin,i}queryObjectIds(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryObjectIds(e||this.createQuery(),t))}queryAttachments(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryAttachments(e,t))}getFieldUsageInfo(e){let t={supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1};return this.loaded?this._fieldUsageInfo[e]||t:(d.A.getLogger(this).error("#getFieldUsageInfo()","Unavailable until layer is loaded"),t)}createPopupTemplate(e){return(0,Ae.tn)(this,e)}_getAssociatedLayerForQuery(){let e=this.associatedLayer;return e?.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),!this.associatedLayer)throw new l.A("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new l.A("scenelayer:query-not-available","SceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}hasCachedStatistics(e){return null!=this.statisticsInfo&&this.statisticsInfo.some(t=>t.name===e)}async queryCachedStatistics(e,t){return await this.load(t),await this.fetchStatistics(e,t)}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"},e)}async save(){return this._debouncedSaveOperations(0,{getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"})}async applyEdits(e,t){let{applyEdits:i}=await r.e(6247).then(()=>r(78628)),s=t;await this.load();let n=this.associatedLayer;if(!n)throw new l.A(`${this.type}-layer:not-editable`,"Service is not editable");await n.load();let{globalIdField:a}=n,o=!!n.infoFor3D,u=s?.globalIdUsed??!0;if(o&&null==a)throw new l.A(`${this.type}-layer:not-editable`,"Valid globalIdField expected on editable SceneLayer");if(o&&!u)throw new l.A(`${this.type}-layer:globalid-required`,"globalIdUsed must not be false for SceneLayer editing as globalIds are required.");return(0,$.Wo)(n.url)&&o&&null!=e.deleteFeatures&&null!=a&&(s={...s,globalIdToObjectId:await(0,k.GA)(n,e.deleteFeatures,a)}),i(this,n.source,e,s)}async uploadAssets(e,t){if(await this.load(),null==this.associatedLayer)throw new l.A(`${this.type}-layer:not-editable`,"Service is not editable");return await this.associatedLayer.load(),this.associatedLayer.uploadAssets(e,t)}async convertMesh(e,t){t??={};let i=e=>{throw d.A.getLogger(this).error(".convertMesh()",e.message),e};await this.load(t),this.infoFor3D||i(new l.A("invalid:layer","SceneLayer has no capability for mesh conversion"));let s=await this.extractAndFilterFiles(e);(0,h.Te)(t);let n=s.reduce((e,t)=>(0,z.oF)(this.infoFor3D,t)?e+1:e,0);0===n&&i(new L.VP),n>1&&i(new L.XQ);let a=this.spatialReference,o=t.origin,u=await(0,v.projectAsync)(o??t.defaultOrigin??new m.A({x:0,y:0,z:0,spatialReference:a}),a,t),p=a.isGeographic?"local":"georeferenced",{createWithExternalSource:c}=await Promise.all([r.e(2258),r.e(118),r.e(3354)]).then(()=>r(40118));(0,h.Te)(t);let f=c(u,{type:"client",files:s},{vertexSpace:p,transform:(0,Y.Z)(a),unitConversionDisabled:!0}),[y]=await this.uploadAssets([f],{...t,useAssetOrigin:!o});return y}async extractAndFilterFiles(e){await this.load();let t=this.infoFor3D;return t?(await async function(e){let t=[];for(let r of e)r.name.toLowerCase().endsWith(".zip")?t.push(Fe(r)):t.push(Promise.resolve(r));return(await Promise.all(t)).flat()}(e)).filter(e=>(0,z.fu)(t,e)):e}validateLayer(e){if(e.layerType&&!Pe.has(e.layerType))throw new l.A("scenelayer:layer-type-not-supported","SceneLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new l.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});if(this.version.major>2)throw new l.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});!function(e,t){let r=!1,i=!1;if(null==e)r=!0,i=!0;else{let s=t&&t.isGeographic;switch(e){case"east-north-up":case"earth-centered":r=!0,i=s;break;case"vertex-reference-frame":r=!0,i=!s;break;default:r=!1}}if(!r)throw new l.A("scenelayer:unsupported-normal-reference-frame","Normal reference frame is invalid.");if(!i)throw new l.A("scenelayer:incompatible-normal-reference-frame","Normal reference frame is incompatible with layer spatial reference.")}(this.normalReferenceFrame,this.spatialReference)}get isUsedAsGroundLayer(){return!1}_getTypeKeywords(){let e=[];if("points"===this.profile)e.push("Point");else{if("mesh-pyramids"!==this.profile)throw new l.A("scenelayer:unknown-profile","SceneLayer:save() encountered an unknown SceneLayer profile: "+this.profile);e.push("3DObject")}return e}_populateFieldUsageInfo(){if(this._fieldUsageInfo={},this.fields)for(let e of this.fields){let t=!!this.attributeStorageInfo?.some(t=>t.name===e.name),r=!!this.associatedLayer?.fields?.some(t=>t&&e.name===t.name),i={supportsLabelingInfo:t,supportsRenderer:t,supportsPopupTemplate:t||r,supportsLayerQuery:r};this._fieldUsageInfo[e.name]=i}}_applyAssociatedLayerOverrides(){this._applyAssociatedLayerFieldsOverrides(),this._applyAssociatedLayerPropertyOverrides(),this._applyAssociatedLayerExtentOverride(),this._applyAssociatedLayerPrivileges()}_applyAssociatedLayerFieldsOverrides(){if(!this.associatedLayer?.fields)return;let e=null;for(let t of this.associatedLayer.fields){let r=this.getField(t.name);r?(!r.domain&&t.domain&&(r.domain=t.domain.clone()),r.editable=t.editable,r.nullable=t.nullable,r.length=t.length):(e||=this.fields?this.fields.slice():[],e.push(t.clone()))}e&&this._set("fields",e)}_applyAssociatedLayerPropertyOverrides(){if(!this.associatedLayer)return;let e=["popupTemplate","popupEnabled","attributeTableTemplate"],t=(0,g.oY)(this);for(let r=0;r<e.length;r++){let i=e[r],s=this.originIdOf(i),n=this.associatedLayer.originIdOf(i);s<n&&(2===n||3===n)&&t.setAtOrigin(i,this.associatedLayer[i],n)}}_applyAssociatedLayerExtentOverride(){let e=this.associatedLayer?.getAtOrigin("fullExtent","service");null!=this.associatedLayer?.infoFor3D&&e&&(0,$.Wo)(this.associatedLayer?.url)&&ye(this)&&(0,g.oY)(this).setAtOrigin("fullExtent",e.clone(),2)}_applyAssociatedLayerPrivileges(){let e=this.associatedLayer;e&&(this._set("userHasEditingPrivileges",e.userHasEditingPrivileges),this._set("userHasFullEditingPrivileges",e.userHasFullEditingPrivileges),this._set("userHasUpdateItemPrivileges",e.userHasUpdateItemPrivileges))}async _setAssociatedFeatureLayer(e){if(["mesh-pyramids","points"].includes(this.profile))try{let{serverUrl:t,layerId:r,portalItem:i}=await(0,q.L)(`${this.url}/layers/${this.layerId}`,{sceneLayerItem:this.portalItem,customParameters:this.customParameters,apiKey:this.apiKey,signal:e}),s=await X.U.FeatureLayer();this.associatedLayer=new s({url:t,customParameters:this.customParameters,apiKey:this.apiKey,layerId:r,portalItem:i}),await this.associatedLayer.load()}catch(e){(0,h.zf)(e)||this._logWarningOnPopupEnabled().catch(()=>{})}}async _logWarningOnPopupEnabled(){let e=new AbortController;this.addHandles((0,u.rE)(e));try{await(0,f.C_)(()=>this.popupEnabled&&null!=this.popupTemplate,e.signal)}catch(e){return void(0,h.jH)(e)}let t=`this SceneLayer: ${this.title}`;null==this.attributeStorageInfo?d.A.getLogger(this).warn(`Associated FeatureLayer could not be loaded and no binary attributes found. Popups will not work on ${t}`):d.A.getLogger(this).info(`Associated FeatureLayer could not be loaded. Falling back to binary attributes for Popups on ${t}`)}_validateElevationInfo(){let e=this.elevationInfo;"mesh-pyramids"===this.profile&&(0,Ie.XF)(d.A.getLogger(this),(0,Ie.$7)("Mesh scene layers","relative-to-scene",e)),(0,Ie.XF)(d.A.getLogger(this),(0,Ie.tW)("Scene layers",e))}async fetchStatistics(e,t){return await async function({fieldName:e,statisticsInfo:t,errorContext:r,fieldsIndex:i,path:s,customParameters:n,apiKey:a,signal:o}){if(null==t)throw new l.A(`${r}:no-cached-statistics`,"Cached statistics are not available for this layer");let u=i.get(e);if(null==u)throw new l.A(`${r}:field-unexisting`,`Field '${e}' does not exist on the layer`);let d=t.find(e=>e.name===u.name);if(null==d)throw new l.A(`${r}:no-cached-statistics`,"Cached statistics for this attribute are not available");let p=(0,ge.fj)(s,d.href),{data:c}=await(0,ie.A)(p,{query:{f:"json",...n,token:a},responseType:"json",signal:o});return c}({fieldName:e,statisticsInfo:this.statisticsInfo,errorContext:"scenelayer",fieldsIndex:this.fieldsIndex,path:this.parsedUrl?.path??"",customParameters:this.customParameters,apiKey:this.apiKey,signal:t?.signal})}async loadTimeInfoFromService(e){let{serviceTimeInfo:t}=this;if(null==t)return;let{startTimeField:r,endTimeField:i}=t;if(null==r&&null==i||ye({associatedLayer:this.associatedLayer,serviceUpdateTimeStamp:this.serviceUpdateTimeStamp}))return;let s=async t=>{let i=null;try{i=(await this.fetchStatistics(t,e))?.stats}catch{}if(null==i)return null;let{minTimeStr:s,min:n,maxTimeStr:a,max:o}=i,l=t===r?s??n:a??o;return null==l?null:new Date(l)},[n,a]=await Promise.all([s(r),s(i)]);if(null!=r&&null==n||null!=i&&null==a)return;let o=new Se.A({start:n,end:a});this.setAtOrigin("timeInfo",new ve.A({endField:i,startField:r,fullTimeExtent:o}),"service")}};(0,i.Cg)([(0,y.MZ)({types:{key:"type",base:null,typeMap:{selection:H.A}},json:{origins:{"web-scene":{name:"layerDefinition.featureReduction",write:{allowNull:!0}},"portal-item":{name:"layerDefinition.featureReduction",write:{allowNull:!0}}}}})],_e.prototype,"featureReduction",void 0),(0,i.Cg)([(0,y.MZ)({type:[te],json:{read:!1,origins:{"web-scene":{name:"layerDefinition.rangeInfos",write:!0},"portal-item":{name:"layerDefinition.rangeInfos",write:!0}}},clonable:!1})],_e.prototype,"rangeInfos",void 0),(0,i.Cg)([(0,y.MZ)({json:{read:!1}})],_e.prototype,"associatedLayer",void 0),(0,i.Cg)([(0,y.MZ)({type:["show","hide"]})],_e.prototype,"listMode",void 0),(0,i.Cg)([(0,y.MZ)({type:["ArcGISSceneServiceLayer"]})],_e.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,y.MZ)({json:{read:!1},readOnly:!0})],_e.prototype,"type",void 0),(0,i.Cg)([(0,y.MZ)({...Oe.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],_e.prototype,"fields",void 0),(0,i.Cg)([(0,y.MZ)()],_e.prototype,"types",null),(0,i.Cg)([(0,y.MZ)()],_e.prototype,"typeIdField",null),(0,i.Cg)([(0,y.MZ)()],_e.prototype,"templates",null),(0,i.Cg)([(0,y.MZ)()],_e.prototype,"formTemplate",null),(0,i.Cg)([(0,y.MZ)({readOnly:!0})],_e.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,y.MZ)({readOnly:!0,clonable:!1})],_e.prototype,"fieldsIndex",null),(0,i.Cg)([(0,y.MZ)({type:W.A,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],_e.prototype,"floorInfo",void 0),(0,i.Cg)([(0,y.MZ)(Oe.outFields)],_e.prototype,"outFields",void 0),(0,i.Cg)([(0,y.MZ)({type:Q.W4,readOnly:!0,json:{read:!1},clonable:!1})],_e.prototype,"nodePages",void 0),(0,i.Cg)([(0,ce.w)("service","nodePages",["nodePages","pointNodePages"])],_e.prototype,"readNodePages",null),(0,i.Cg)([(0,y.MZ)({type:[Q.uV],readOnly:!0,clonable:!1})],_e.prototype,"materialDefinitions",void 0),(0,i.Cg)([(0,y.MZ)({type:[Q.Ot],readOnly:!0,clonable:!1})],_e.prototype,"textureSetDefinitions",void 0),(0,i.Cg)([(0,y.MZ)({type:[Q.L0],readOnly:!0,clonable:!1})],_e.prototype,"geometryDefinitions",void 0),(0,i.Cg)([(0,y.MZ)({readOnly:!0})],_e.prototype,"serviceUpdateTimeStamp",void 0),(0,i.Cg)([(0,y.MZ)({readOnly:!0})],_e.prototype,"attributeStorageInfo",void 0),(0,i.Cg)([(0,y.MZ)({readOnly:!0})],_e.prototype,"statisticsInfo",void 0),(0,i.Cg)([(0,y.MZ)({type:o.A.ofType(Number),nonNullable:!0,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.excludeObjectIds",write:{enabled:!0}}})],_e.prototype,"excludeObjectIds",void 0),(0,i.Cg)([(0,y.MZ)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],_e.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,y.MZ)({type:fe,json:{name:"layerDefinition.polygonFilter",write:{enabled:!0,allowNull:!0},origins:{service:{read:!1,write:!1}}}})],_e.prototype,"filter",void 0),(0,i.Cg)([(0,y.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],_e.prototype,"path",void 0),(0,i.Cg)([(0,y.MZ)(N.Yj)],_e.prototype,"elevationInfo",null),(0,i.Cg)([(0,y.MZ)({readOnly:!0,json:{read:!1}})],_e.prototype,"effectiveCapabilities",null),(0,i.Cg)([(0,y.MZ)({readOnly:!0})],_e.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,y.MZ)({type:String})],_e.prototype,"geometryType",null),(0,i.Cg)([(0,y.MZ)(N.kF)],_e.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,y.MZ)({type:[J.A],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:{reader:B.w},write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:B.w},write:!0}})],_e.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,y.MZ)(N.fV)],_e.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,y.MZ)({type:Number,json:{origins:{"web-document":{default:1,write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}},read:{source:["opacity","layerDefinition.drawingInfo.transparency"],reader(e,t){if("number"==typeof e&&e>=0&&e<=1)return e;let r=t.layerDefinition?.drawingInfo?.transparency;return void 0===r?void 0:(0,je.D)(r)}}},"portal-item":{write:!0},service:{read:!1}}}})],_e.prototype,"opacity",void 0),(0,i.Cg)([(0,y.MZ)({type:["Low","High"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],_e.prototype,"priority",void 0),(0,i.Cg)([(0,y.MZ)({type:["Labels"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],_e.prototype,"semantic",void 0),(0,i.Cg)([(0,y.MZ)({types:be.XJ,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],_e.prototype,"renderer",null),(0,i.Cg)([(0,y.MZ)({json:{read:!1}})],_e.prototype,"cachedDrawingInfo",void 0),(0,i.Cg)([(0,ce.w)("service","cachedDrawingInfo")],_e.prototype,"readCachedDrawingInfo",null),(0,i.Cg)([(0,y.MZ)({readOnly:!0,json:{read:!1}})],_e.prototype,"capabilities",null),(0,i.Cg)([(0,y.MZ)({type:Boolean,json:{read:!1}})],_e.prototype,"editingEnabled",null),(0,i.Cg)([(0,y.MZ)({readOnly:!0,json:{write:!1,read:!1}})],_e.prototype,"infoFor3D",null),(0,i.Cg)([(0,y.MZ)({readOnly:!0,json:{write:!1,read:!1}})],_e.prototype,"relationships",null),(0,i.Cg)([(0,y.MZ)(N.M6)],_e.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,y.MZ)({type:n.A,json:{name:"popupInfo",write:!0}})],_e.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,y.MZ)({readOnly:!0,json:{read:!1}})],_e.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,y.MZ)(N.zQ)],_e.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,y.MZ)({type:String,json:{read:!1}})],_e.prototype,"objectIdField",void 0),(0,i.Cg)([(0,ce.w)("service","objectIdField",["objectIdField","fields"])],_e.prototype,"readObjectIdField",null),(0,i.Cg)([(0,y.MZ)({type:String,json:{read:!1}})],_e.prototype,"globalIdField",void 0),(0,i.Cg)([(0,ce.w)("service","globalIdField",["globalIdField","fields"])],_e.prototype,"readGlobalIdField",null),(0,i.Cg)([(0,y.MZ)({readOnly:!0,type:String,json:{read:!1}})],_e.prototype,"displayField",null),(0,i.Cg)([(0,y.MZ)({type:String,json:{read:!1}})],_e.prototype,"profile",void 0),(0,i.Cg)([(0,ce.w)("service","profile",["store.profile"])],_e.prototype,"readProfile",null),(0,i.Cg)([(0,y.MZ)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],_e.prototype,"normalReferenceFrame",void 0),(0,i.Cg)([(0,y.MZ)(N.PY)],_e.prototype,"screenSizePerspectiveEnabled",void 0),(0,i.Cg)([(0,y.MZ)({json:{read:!1,origins:{service:{read:!0}}}})],_e.prototype,"serviceItemId",void 0),(0,i.Cg)([(0,y.MZ)(U.B)],_e.prototype,"useViewTime",null),(0,i.Cg)([(0,y.MZ)((0,N.U$)({disableServiceOrigin:!0,webDocumentOrigin:"web-scene"}))],_e.prototype,"timeInfo",null),(0,i.Cg)([(0,y.MZ)({type:Se.A,json:{read:!1,write:!1}})],_e.prototype,"timeExtent",null),(0,i.Cg)([(0,y.MZ)({type:Ce.A,json:{read:!1,write:!1}})],_e.prototype,"timeOffset",null),(0,i.Cg)([(0,y.MZ)({type:Boolean,nonNullable:!0,json:{read:!1,write:!1}})],_e.prototype,"datesInUnknownTimezone",null),(0,i.Cg)([(0,y.MZ)({type:me,readOnly:!0,json:{read:{source:"timeInfo"}},clonable:!1})],_e.prototype,"serviceTimeInfo",void 0),(0,i.Cg)([(0,y.MZ)()],_e.prototype,"isUsedAsGroundLayer",null),_e=(0,i.Cg)([(0,y.$K)("esri.layers.SceneLayer")],_e);const Te={"mesh-pyramids":"mesh-pyramids",meshpyramids:"mesh-pyramids","features-meshes":"mesh-pyramids",points:"points","features-points":"points",lines:"lines","features-lines":"lines",polygons:"polygons","features-polygons":"polygons"},Re={"mesh-pyramids":"mesh",points:"point"},Ze=_e},55726(e,t,r){r.d(t,{$1:()=>u,H2:()=>h,MT:()=>f,VP:()=>y,WF:()=>d,Wt:()=>a,XQ:()=>g,hK:()=>c,nS:()=>p,uh:()=>o,xY:()=>l});var i=r(49186);const s="upload-assets",n=()=>Error();class a extends i.A{constructor(){super(`${s}:unsupported`,"Layer does not support asset uploads.",n())}}class o extends i.A{constructor(){super(`${s}:no-glb-support`,"Layer does not support glb.",n())}}class l extends i.A{constructor(){super(`${s}:no-supported-source`,"No supported external source found",n())}}class u extends i.A{constructor(){super(`${s}:not-base-64`,"Expected gltf data in base64 format after conversion.",n())}}class d extends i.A{constructor(){super(`${s}:unable-to-prepare-options`,"Unable to prepare uploadAsset request options.",n())}}class p extends i.A{constructor(e,t){super(`${s}:bad-response`,`Bad response. Uploaded ${e} items and received ${t} results.`,n())}}class c extends i.A{constructor(e,t){super(`${s}-layer:upload-failed`,`Failed to upload mesh file ${e}. Error code: ${t?.code??"-1"}. Error message: ${t?.messages??"unknown"}`,n())}}class h extends i.A{constructor(e){super(`${s}-layer:unsupported-format`,`The service allowed us to upload an asset of FormatID ${e}, but it does not list it in its supported formats.`,n())}}class f extends i.A{constructor(){super(`${s}:convert3D-failed`,"convert3D failed.")}}class y extends i.A{constructor(){super("invalid-input:no-model","No supported model found")}}class g extends i.A{constructor(){super("invalid-input:multiple-models","Multiple supported models found")}}},18768(e,t,r){var i=r(32198),s=r(53966),n=r(91429),a=r(60694);r.d(t,["b",0,e=>{let t=e,r=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){let e=(0,a.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.Jf)(e,s.A.getLogger(this)))}};return(0,i.Cg)([(0,n.MZ)()],r.prototype,"title",null),(0,i.Cg)([(0,n.MZ)({type:String})],r.prototype,"url",null),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.ArcGISService")],r),r}])},69208(e,t,r){var i=r(32198),s=r(91429);r.d(t,["d",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,i.Cg)([(0,s.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}])},47685(e,t,r){r.d(t,{Mk:()=>h,Zk:()=>p});var i=r(32198),s=r(65529),n=r(4718),a=r(91429),o=r(20816);const l=new s.bk;function u(e){return l.on("apply-edits",new WeakRef(e))}function d(e){return l.on("update-moment",new WeakRef(e))}function p(e,t,r=null,i=!1){let s=Promise.withResolvers();return i=null==t||i,l.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:r,mayReceiveServiceEdits:i,result:s.promise}),s}const c=Symbol();function h(e){return"object"==typeof e&&!!e&&c in e}function f(e){return"object"==typeof e&&!!e&&"gdbVersion"in e}function y(e,t,r){let i=new URL(e).host,s=o.Z3.get(i),n=e=>!e||e===s;return n(t)&&n(r)||t===r}r.d(t,["w6",0,e=>{var t;let r=e,s=class extends r{static{t=c}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{let{serviceUrl:t,layerId:r,gdbVersion:i,mayReceiveServiceEdits:s,result:a}=e,o=t===this.url,l=null!=r&&null!=this.layerId&&r===this.layerId,u=null!=r&&this.relationships?.some(e=>e.relatedTableId===r),d=f(this),p=f(this)&&y(t,i,this.gdbVersion);if(!o||d&&!p||!l&&!u&&!s)return;let c=a.then(e=>{if(this.lastEditsEventDate=new Date,l&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,n.o8)(e)),e;let r=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(r){let{adds:t,updates:i,deletes:s}=r.editedFeatures,a={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],deletedFeatures:s?s.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],updatedFeatures:i?i.map(({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return this.emit("edits",a),a}let s={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,s.historicMoment)&&this.emit("edits",s),s}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));c.catch(()=>{}),this.emit("apply-edits",{result:c})},this._updateMomentHandler=e=>{let{serviceUrl:t,gdbVersion:r,moment:i}=e,s=t===this.url,n=f(this),a=f(this)&&y(t,r,this.gdbVersion),o=f(this)&&!y(t,this.gdbVersion,null);s&&n&&a&&o&&"historicMoment"in this&&this.historicMoment!==i&&(this.historicMoment=i)},this.when().then(()=>{this.addHandles(u(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(d(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,r){return"historicMoment"in this&&this.historicMoment!==r&&(0,o.w5)(e,t)}};return(0,i.Cg)([(0,a.MZ)()],s.prototype,"lastEditsEventDate",void 0),s=(0,i.Cg)([(0,a.$K)("esri.layers.mixins.EditBusLayer")],s),s}])},85707(e,t,r){var i=r(32198),s=r(91429),n=r(54239);r.d(t,["a",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.heightModelInfo=null}read(e,t){super.read(e,t),"service"===t?.origin&&2===this.heightModelInfo?.origin&&(this.heightModelInfo.associatedSpatialReference=this.getAtOrigin("spatialReference","service"))}};return(0,i.Cg)([(0,s.MZ)({readOnly:!0,type:n.A})],r.prototype,"heightModelInfo",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.HeightModelInfoMixin")],r),r}])},8303(e,t,r){var i=r(32198),s=r(92602),n=r(70333),a=r(56507),o=r(60999),l=r(49186),u=r(36563),d=r(53966),p=r(97768),c=r(17676),h=r(84952),f=r(91429),y=r(77548),g=r(20655),m=r(80812),v=r(41318),w=r(10407),b=r(26121),M=r(36005),I=r(43937);const A={credential:null,user:null};r.d(t,["A",0,e=>{let t=e,F=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,p.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new m.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{let{load:i}=await r.e(1204).then(()=>r(41204));return(0,c.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,c.zf)(e)||d.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e,t){if(!this.loaded||!this.portalItem?.id)return!1;let i=t?.signal?null:new AbortController;try{let{reload:s}=await r.e(1204).then(()=>r(41204));return i&&this.addHandles((0,u.rE)(i),"reloadFromPortal"),await s({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t?.signal?t:{signal:i.signal})}catch(e){throw(0,c.zf)(e)||d.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{i&&this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,c.QP)(e),!0)))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{let{features:{edit:r,fullEdit:i},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,c.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);let i,s,a=!n.id?.findCredential(this.url),o=e===r.id;if(o&&r.portal.user)return this._getUserPrivileges(r,a);if(o)i=r.portal.url;else try{i=await(0,y.wI)(this.url,t)}catch(e){(0,c.QP)(e)}if(!i||!(0,h.b8)(i,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{let e=null==t?null:t.signal;s=await(n.id?.getCredential(`${i}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.QP)(e)}if(!s)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(o?await r.reload():(r=new m.default({id:e,portal:{url:i}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,a)}catch(e){(0,c.QP)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}_getUserPrivileges(e,t){let r=(0,w.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){let t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;let 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){let t=this.portalItem?.portal?.user;if(t)return t;let r=n.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;let i=`${r.owningSystemUrl}/sharing/rest`,s=g.A.getDefault();if(s&&s.loaded&&(0,h.S8)(s.restUrl)===(0,h.S8)(i))return s.user;let l=`${i}/community/self`,u=null==e?null:e.signal,d=await(0,o.Ke)((0,a.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return d.ok?v.A.fromJSON(d.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){return(0,b.wN)(this.portalItem,t)?(t?.messages?.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,f.MZ)({type:m.default})],F.prototype,"portalItem",null),(0,i.Cg)([(0,M.w)("web-document","portalItem",["itemId"])],F.prototype,"readPortalItem",null),(0,i.Cg)([(0,I.K)("web-document","portalItem",{itemId:{type:String}})],F.prototype,"writePortalItem",null),(0,i.Cg)([(0,f.MZ)({clonable:!1})],F.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],F.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],F.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],F.prototype,"userHasUpdateItemPrivileges",void 0),F=(0,i.Cg)([(0,f.$K)("esri.layers.mixins.PortalLayer")],F),F}])},25036(e,t,r){var i=r(32198),s=r(91429),n=r(83960);r.d(t,["j",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){let e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&(0,n.RH)(e,t.effectiveScaleRange);let r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i.Cg)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",null),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.ScaleRangeLayer")],r),r}])},82935(e,t,r){var i=r(32198),s=r(91429),n=r(30524),a=r(96184),o=r(73133),l=r(79677),u=r(10184),d=r(36005);const p={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"}}};r.d(t,["B",0,p,"e",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){let r=t.timeInfo.exportOptions;if(!r)return null;let i=r.timeOffset,s=o.j.fromJSON(r.timeOffsetUnits);return i&&s?new u.A({value:i,unit:s}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,n.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,s.MZ)({type:l.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,s.MZ)({type:u.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,d.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,s.MZ)({value:null,type:a.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,s.MZ)(p)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},67202(e,t,r){r.d(t,{A:()=>o});var i,s=r(32198),n=r(25482),a=r(91429);let o=i=class extends n.o{constructor(e){super(e),this.type="selection"}clone(){return new i}};(0,s.Cg)([(0,a.MZ)({type:["selection"],readOnly:!0,json:{write:!0}})],o.prototype,"type",void 0),o=i=(0,s.Cg)([(0,a.$K)("esri.layers.support.FeatureReductionSelection")],o)},37352(e,t,r){r.d(t,{A:()=>l});var i,s=r(32198),n=r(7762),a=r(25482),o=r(91429);let l=i=class extends a.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new n.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,s.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"floorField",void 0),(0,s.Cg)([(0,o.MZ)({json:{read:!1,write:!1}})],l.prototype,"viewAllMode",void 0),(0,s.Cg)([(0,o.MZ)({json:{read:!1,write:!1}})],l.prototype,"viewAllLevelIds",void 0),l=i=(0,s.Cg)([(0,o.$K)("esri.layers.support.LayerFloorInfo")],l)},17036(e,t,r){r.d(t,{p:()=>l});var i=r(44208),s=r(53966),n=r(20437),a=r(95466),o=r(30524);function l(){return{fields:{type:[n.A],value:null,set:function(e){if(e&&(0,i.A)("big-integer-warning-enabled")){let t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){let e=t.map(e=>`'${e.name}'`).join(", ");s.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${2**53-1} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return a.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){let e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(let t of e)this.fieldsIndex?.has(t)||s.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e});return(0,o.DB)(this.fieldsIndex,e)}}}}},20557(e,t,r){r.d(t,{Fm:()=>l,Hz:()=>g,JQ:()=>y,JZ:()=>S,ND:()=>v,R_:()=>a,U9:()=>f,_h:()=>b,be:()=>p,fE:()=>h,fu:()=>s,nr:()=>m,oF:()=>n,qv:()=>F,rP:()=>c,rq:()=>u,z$:()=>d});const i=[["binary","application/octet-stream","bin",""]];function s(e,t){return null!=M(t.name,e?.supportedFormats??[])}function n(e,t){if(!e)return!1;let r=u(t,e.supportedFormats??[]);return null!=r&&e.editFormats.includes(r)}function a(e,t){return I(function(e,t){let r=e.toLowerCase();return w(t).find(e=>A(e)===r)}(e,t))}function o(e,t){return I(M(e,t))}function l(e,t){return A(b(e,t))}function u(e,t){return o(e.name,t)??a(e.type,t)}function d(e,t,r){return a(e,r)??o(t,r)}function p(e,t){if(!e||!b(e,t))return;let r=/^3d_(.+)$/iu.exec(e)?.[1]?.toLowerCase();return r||void 0}function c(e,t){return(e??[]).map(e=>p(e,t)).filter(e=>!!e)}function h(e,t){return I(t.find(r=>p(I(r),t)===e))}function f({supportedFormats:e}){return d("model/gltf-binary","glb",e)}function y(e){let t=f(e);return null!=t&&e.editFormats.includes(t)}function g(e){if(!e)return null;let t=f(e),r=function({supportedFormats:e}){return d("model/gltf+json","gltf",e)}(e),i=null;for(let s of e.queryFormats){if(s===t)return s;s===r&&(i=s)}return i}function m({supportedFormats:e}){return d("application/esri3do-SR_world","wld",e)}function v({supportedFormats:e}){return d("application/esri3do-SR_prj","prj",e)}function w(e){return[...i,...e]}function b(e,t){return w(t).find(t=>I(t)===e)}function M(e,t){let r=e.toLowerCase();return w(t).find(e=>F(e).some(e=>r.endsWith(e)))}function I(e){return e?.[0]}function A(e){return e?.[1].toLowerCase()}function F(e){return e?.[2].split(",").map(e=>e.toLowerCase())??[]}function S(e){return e.tables?.find(e=>"assetMaps"===e.role)}},86390(e,t,r){r.d(t,{Z:()=>n});var i=r(86211),s=r(73836);function n(e){let t=1/(0,i.GA)(e,1);return 1===t?void 0:new s.A({scale:[t,t,t]})}},73179(e,t,r){r.d(t,{b:()=>l,h:()=>u});var i=r(4718),s=r(53966),n=r(84952),a=r(60694),o=r(10873);function l(e){let{nonStandardUrlAllowed:t=!1,separator:r}=e??{},n=(0,i.o8)(o.OZ),l=n.json?.write;return"object"==typeof l&&l&&(l.writer=function(e,t,i,s){(0,a.LS)(this,e,r,t,s)}),{...n,set:function(e){if(null==e)return void this._set("url",e);let r=(0,a.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:s.A.getLogger(this)});this._set("url",r.url),null!=r.layerId&&this._set("layerId",r.layerId)}}}function u(e,t){let{separator:r}=t??{},i=(0,n.An)(e.url);return null!=i&&(null==e.dynamicDataSource?null!=e.layerId&&(i.path=(0,n.fj)(i.path,r??"",e.layerId.toString())):i.path=(0,n.fj)(i.path,"dynamicLayer")),i}},85648(e,t,r){r.d(t,{n:()=>s});var i=r(84952);function s(e){return n[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){let t=(0,i.Zo)(e);return l[t]||a}(e.url)}(e)]||o}const n={},a="text/plain",o=n[a],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(let e in l)n[l[e]]=e},8947(e,t,r){r.d(t,{L:()=>a});var i=r(60999),s=r(17676),n=r(67076);async function a(e,t,r){let a=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(a&&"unique-value"===a.type&&a.styleOrigin){let o=await(0,i.Ke)(a.populateFromStyle());if((0,s.Te)(r),!1===o.ok){let r=o.error;t?.messages&&t.messages.push(new n.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t?.origin)}}}},20816(e,t,r){r.d(t,{We:()=>o,ZJ:()=>l,w5:()=>u});var i=r(56507);const s=(0,r(13069).vD)(),n=new Map,a=new Map;async function o(e,t,r){if(!e||!r)return!1;if(!t)return!0;let s=new URL(e).host,a=n.get(s);if(!a){let t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");a=(await(0,i.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return a===t}async function l(e,t,i=!1){if(!e||!t)return!0;let n=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),o=a.get(n)?.entries();if(o)for(let[e,a]of o)if(a.name===t){let t=!a.stack?.hasForwardEdits();if(!t&&i){let[{deleteForwardEdits:t},{default:i}]=await Promise.all([r.e(2186).then(()=>r(32186)),r.e(2558).then(()=>r(32558))]),o=await t(n,e,new i({sessionId:s,moment:a.moment}));return o.success&&a.stack?.clearForwardEdits(),o.success}return t}return!0}function u(e,t){if(!e)return!1;let r=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),i=a.get(r)?.entries();if(i)for(let[e,r]of i)if(r.name===t)return"edit"===r.lockType;return!1}new Map,r.d(t,["TA",0,s,"Z3",0,n])},45671(e,t,r){r.d(t,{D8:()=>n,TO:()=>s});var i=r(30524);async function s(e,t=e.popupTemplate){if(null==t)return[];let r=await t.getRequiredFields(e.fieldsIndex),{lastEditInfoEnabled:s}=t,{objectIdField:n,typeIdField:a,globalIdField:o,relationships:l}=e;if(r.includes("*"))return["*"];let u=s?(0,i.eX)(e):[],d=(0,i.DB)(e.fieldsIndex,[...r,...u]);return a&&d.push(a),d&&n&&e.fieldsIndex?.has(n)&&!d.includes(n)&&d.push(n),d&&o&&e.fieldsIndex?.has(o)&&!d.includes(o)&&d.push(o),l?.forEach(t=>{let{keyField:r}=t;d&&r&&e.fieldsIndex?.has(r)&&!d.includes(r)&&d.push(r)}),d}function n(e,t){return!e||"object"!=typeof e||t?.checkPopupEnabled&&"popupEnabled"in e&&!e.popupEnabled?null:"popupTemplate"in e&&e.popupTemplate?e.popupTemplate:null!=t&&t.defaultPopupTemplateEnabled&&"defaultPopupTemplate"in e&&e.defaultPopupTemplate?e.defaultPopupTemplate:null}},26121(e,t,r){r.d(t,{I6:()=>d,ci:()=>u,dL:()=>l,wN:()=>p});var i=r(49186),s=r(84952),n=r(77548),a=r(20655),o=r(59923);async function l(e){let t=[];for(let r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){let e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}function u(e,t,r){let s=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:r})=>new i.A(e,t,r));if(e.blockedRelativeUrls&&(s=s.concat(e.blockedRelativeUrls.map(e=>(0,o.GL)("url",`Relative url '${e}' is not supported`)))),r){let{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:i}=r;e&&(s=s.filter(({name:e})=>!(o.MG.has(e)||t.includes(e)))),i&&(s=s.filter(e=>"web-document-write:property-required"!==e.name))}if(s.length>0)throw new i.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:s})}function d(e){return(0,n.qd)(e).some(e=>!!e.charts?.length)}function p(e,t){let r=t?.portal,i=e?.id&&(e.portal||a.A.getDefault());return!!r&&!!i&&!(0,s.ut)(i.restUrl,r.restUrl)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9321],{49321(r,e,t){t.r(e),t.d(e,{default:()=>n});var n=(()=>{var r=typeof document<"u"?document.currentScript?.src:void 0;return function(e={}){var t,n,a=e,o=new Promise((r,e)=>{t=r,n=e}),s="object"==typeof window,i=typeof WorkerGlobalScope<"u";"object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node&&process.type;var u,l,c=Object.assign({},a),p="";(s||i)&&(i?p=self.location.href:typeof document<"u"&&document.currentScript&&(p=document.currentScript.src),r&&(p=r),p=p.startsWith("blob:")?"":p.substr(0,p.replace(/[?#].*/,"").lastIndexOf("/")+1),i&&(l=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),u=async r=>{var e=await fetch(r,{credentials:"same-origin"});if(e.ok)return e.arrayBuffer();throw Error(e.status+" : "+e.url)});var h=a.print||console.log.bind(console),f=a.printErr||console.error.bind(console);Object.assign(a,c),c=null,a.arguments&&a.arguments,a.thisProgram&&a.thisProgram;var d,v,y,m,g,$,b,C,T,w=a.wasmBinary,P=!1;function A(){var r=d.buffer;a.HEAP8=v=new Int8Array(r),a.HEAP16=m=new Int16Array(r),a.HEAPU8=y=new Uint8Array(r),a.HEAPU16=g=new Uint16Array(r),a.HEAP32=$=new Int32Array(r),a.HEAPU32=b=new Uint32Array(r),a.HEAPF32=C=new Float32Array(r),a.HEAPF64=T=new Float64Array(r)}var W=[],F=[],_=[];function k(r){W.unshift(r)}function S(r){_.unshift(r)}var E=0,O=null;function R(r){a.onAbort?.(r),f(r="Aborted("+r+")"),P=!0,r+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(r);throw n(e),e}var j,D=r=>r.startsWith("data:application/octet-stream;base64,");async function V(r,e,t){if(!r&&"function"==typeof WebAssembly.instantiateStreaming&&!D(e)&&"function"==typeof fetch)try{var n=fetch(e,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(n,t)}catch(r){f(`wasm streaming compile failed: ${r}`),f("falling back to ArrayBuffer instantiation")}return async function(r,e){try{var t=await async function(r){if(!w)try{var e=await u(r);return new Uint8Array(e)}catch{}return function(r){if(r==j&&w)return new Uint8Array(w);if(l)return l(r);throw"both async and sync fetching of the wasm failed"}(r)}(r);return await WebAssembly.instantiate(t,e)}catch(r){f(`failed to asynchronously prepare wasm: ${r}`),R(r)}}(e,t)}var x=r=>{for(;r.length>0;)r.shift()(a)};a.noExitRuntime;class U{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){b[this.ptr+4>>2]=r}get_type(){return b[this.ptr+4>>2]}set_destructor(r){b[this.ptr+8>>2]=r}get_destructor(){return b[this.ptr+8>>2]}set_caught(r){r=+!!r,v[this.ptr+12]=r}get_caught(){return 0!=v[this.ptr+12]}set_rethrown(r){r=+!!r,v[this.ptr+13]=r}get_rethrown(){return 0!=v[this.ptr+13]}init(r,e){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(e)}set_adjusted_ptr(r){b[this.ptr+16>>2]=r}get_adjusted_ptr(){return b[this.ptr+16>>2]}}var I={},H=r=>{for(;r.length;){var e=r.pop();r.pop()(e)}};function M(r){return this.fromWireType(b[r>>2])}var B,N,z,G={},L={},q={},J=r=>{throw new B(r)},K=(r,e,t)=>{function n(e){var n=t(e);n.length!==r.length&&J("Mismatched type converter count");for(var a=0;a<r.length;++a)Q(r[a],n[a])}r.forEach(r=>q[r]=e);var a=Array(e.length),o=[],s=0;e.forEach((r,e)=>{L.hasOwnProperty(r)?a[e]=L[r]:(o.push(r),G.hasOwnProperty(r)||(G[r]=[]),G[r].push(()=>{a[e]=L[r],++s===o.length&&n(a)}))}),0===o.length&&n(a)},X=r=>{for(var e="",t=r;y[t];)e+=N[y[t++]];return e},Z=r=>{throw new z(r)};function Q(r,e,t={}){return function(r,e,t={}){var n=e.name;if(r||Z(`type "${n}" must have a positive integer typeid pointer`),L.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;Z(`Cannot register type '${n}' twice`)}if(L[r]=e,delete q[r],G.hasOwnProperty(r)){var a=G[r];delete G[r],a.forEach(r=>r())}}(r,e,t)}var Y=r=>({count:r.count,deleteScheduled:r.deleteScheduled,preservePointerOnDelete:r.preservePointerOnDelete,ptr:r.ptr,ptrType:r.ptrType,smartPtr:r.smartPtr,smartPtrType:r.smartPtrType}),rr=r=>{Z(function(r){return r.$$.ptrType.registeredClass.name}(r)+" instance already deleted")},er=!1,tr=r=>{},nr=r=>{--r.count.value,0===r.count.value&&(r=>{r.smartPtr?r.smartPtrType.rawDestructor(r.smartPtr):r.ptrType.registeredClass.rawDestructor(r.ptr)})(r)},ar=(r,e,t)=>{if(e===t)return r;if(void 0===t.baseClass)return null;var n=ar(r,e,t.baseClass);return null===n?null:t.downcast(n)},or={},sr={},ir=(r,e)=>(e.ptrType&&e.ptr||J("makeClassHandle requires ptr and ptrType"),!!e.smartPtrType!=!!e.smartPtr&&J("Both smartPtrType and smartPtr must be specified"),e.count={value:1},ur(Object.create(r,{$$:{value:e,writable:!0}})));var ur=r=>typeof FinalizationRegistry>"u"?(ur=r=>r,r):(er=new FinalizationRegistry(r=>{nr(r.$$)}),ur=r=>{var e=r.$$;if(e.smartPtr){var t={$$:e};er.register(r,t,r)}return r},tr=r=>er.unregister(r),ur(r));function lr(){}var cr=(r,e)=>Object.defineProperty(e,"name",{value:r}),pr=(r,e,t)=>{if(void 0===r[e].overloadTable){var n=r[e];r[e]=function(...n){return r[e].overloadTable.hasOwnProperty(n.length)||Z(`Function '${t}' called with an invalid number of arguments (${n.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[n.length].apply(this,n)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},hr=(r,e,t)=>{a.hasOwnProperty(r)?((void 0===t||void 0!==a[r].overloadTable&&void 0!==a[r].overloadTable[t])&&Z(`Cannot register public name '${r}' twice`),pr(a,r,r),a[r].overloadTable.hasOwnProperty(t)&&Z(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),a[r].overloadTable[t]=e):(a[r]=e,a[r].argCount=t)};function fr(r,e,t,n,a,o,s,i){this.name=r,this.constructor=e,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=a,this.getActualType=o,this.upcast=s,this.downcast=i,this.pureVirtualFunctions=[]}var dr=(r,e,t)=>{for(;e!==t;)e.upcast||Z(`Expected null or instance of ${t.name}, got an instance of ${e.name}`),r=e.upcast(r),e=e.baseClass;return r};function vr(r,e){if(null===e)return this.isReference&&Z(`null is not a valid ${this.name}`),0;e.$$||Z(`Cannot pass "${Ur(e)}" as a ${this.name}`),e.$$.ptr||Z(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=e.$$.ptrType.registeredClass;return dr(e.$$.ptr,t,this.registeredClass)}function yr(r,e){var t;if(null===e)return this.isReference&&Z(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),null!==r&&r.push(this.rawDestructor,t),t):0;e&&e.$$||Z(`Cannot pass "${Ur(e)}" as a ${this.name}`),e.$$.ptr||Z(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&e.$$.ptrType.isConst&&Z(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);var n=e.$$.ptrType.registeredClass;if(t=dr(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===e.$$.smartPtr&&Z("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?t=e.$$.smartPtr:Z(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)t=e.$$.smartPtr;else{var a=e.clone();t=this.rawShare(t,jr.toHandle(()=>a.delete())),null!==r&&r.push(this.rawDestructor,t)}break;default:Z("Unsupporting sharing policy")}return t}function mr(r,e){if(null===e)return this.isReference&&Z(`null is not a valid ${this.name}`),0;e.$$||Z(`Cannot pass "${Ur(e)}" as a ${this.name}`),e.$$.ptr||Z(`Cannot pass deleted object as a pointer of type ${this.name}`),e.$$.ptrType.isConst&&Z(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);var t=e.$$.ptrType.registeredClass;return dr(e.$$.ptr,t,this.registeredClass)}function gr(r,e,t,n,a,o,s,i,u,l,c){this.name=r,this.registeredClass=e,this.isReference=t,this.isConst=n,this.isSmartPointer=a,this.pointeeType=o,this.sharingPolicy=s,this.rawGetPointee=i,this.rawConstructor=u,this.rawShare=l,this.rawDestructor=c,a||void 0!==e.baseClass?this.toWireType=yr:n?(this.toWireType=vr,this.destructorFunction=null):(this.toWireType=mr,this.destructorFunction=null)}var $r,br,Cr=(r,e,t)=>{a.hasOwnProperty(r)||J("Replacing nonexistent public symbol"),void 0!==a[r].overloadTable&&void 0!==t?a[r].overloadTable[t]=e:(a[r]=e,a[r].argCount=t)},Tr=[],wr=r=>{var e=Tr[r];return e||(r>=Tr.length&&(Tr.length=r+1),Tr[r]=e=$r.get(r)),e},Pr=(r,e,t=[])=>r.includes("j")?((r,e,t)=>(r=r.replace(/p/g,"i"),(0,a["dynCall_"+r])(e,...t)))(r,e,t):wr(e)(...t),Ar=(r,e)=>{var t=(r=X(r)).includes("j")?((r,e)=>(...t)=>Pr(r,e,t))(r,e):wr(e);return"function"!=typeof t&&Z(`unknown function pointer with signature ${r}: ${e}`),t},Wr=r=>{var e=le(r),t=X(e);return pe(e),t},Fr=(r,e)=>{var t=[],n={};throw e.forEach(function r(e){n[e]||L[e]||(q[e]?q[e].forEach(r):(t.push(e),n[e]=!0))}),new br(`${r}: `+t.map(Wr).join([", "]))},_r=(r,e)=>{for(var t=[],n=0;n<r;n++)t.push(b[e+4*n>>2]);return t};function kr(r,e,t,n,a,o){var s=e.length;s<2&&Z("argTypes array size mismatch! Must at least get return value and 'this' types!");var i=null!==e[1]&&null!==t,u=function(r){for(var e=1;e<r.length;++e)if(null!==r[e]&&void 0===r[e].destructorFunction)return!0;return!1}(e),l="void"!==e[0].name,c=s-2,p=Array(c),h=[],f=[];return cr(r,function(...r){var t;f.length=0,h.length=i?2:1,h[0]=a,i&&(t=e[1].toWireType(f,this),h[1]=t);for(var o=0;o<c;++o)p[o]=e[o+2].toWireType(f,r[o]),h.push(p[o]);return function(r){if(u)H(f);else for(var n=i?1:2;n<e.length;n++){var a=1===n?t:p[n-2];null!==e[n].destructorFunction&&e[n].destructorFunction(a)}if(l)return e[0].fromWireType(r)}(n(...h))})}var Sr=r=>{let e=(r=r.trim()).indexOf("(");return-1===e?r:r.substr(0,e)},Er=[],Or=[],Rr=r=>{r>9&&0===--Or[r+1]&&(Or[r]=void 0,Er.push(r))},jr={toValue:r=>(r||Z("Cannot use deleted val. handle = "+r),Or[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{let e=Er.pop()||Or.length;return Or[e]=r,Or[e+1]=1,e}}}},Dr={name:"emscripten::val",fromWireType:r=>{var e=jr.toValue(r);return Rr(r),e},toWireType:(r,e)=>jr.toHandle(e),argPackAdvance:8,readValueFromPointer:M,destructorFunction:null},Vr=(r,e,t)=>{switch(e){case 1:return t?function(r){return this.fromWireType(v[r])}:function(r){return this.fromWireType(y[r])};case 2:return t?function(r){return this.fromWireType(m[r>>1])}:function(r){return this.fromWireType(g[r>>1])};case 4:return t?function(r){return this.fromWireType($[r>>2])}:function(r){return this.fromWireType(b[r>>2])};default:throw TypeError(`invalid integer width (${e}): ${r}`)}},xr=(r,e)=>{var t=L[r];return void 0===t&&Z(`${e} has unknown type ${Wr(r)}`),t},Ur=r=>{if(null===r)return"null";var e=typeof r;return"object"===e||"array"===e||"function"===e?r.toString():""+r},Ir=(r,e)=>{switch(e){case 4:return function(r){return this.fromWireType(C[r>>2])};case 8:return function(r){return this.fromWireType(T[r>>3])};default:throw TypeError(`invalid float width (${e}): ${r}`)}},Hr=(r,e,t)=>{switch(e){case 1:return t?r=>v[r]:r=>y[r];case 2:return t?r=>m[r>>1]:r=>g[r>>1];case 4:return t?r=>$[r>>2]:r=>b[r>>2];default:throw TypeError(`invalid integer width (${e}): ${r}`)}},Mr=typeof TextDecoder<"u"?new TextDecoder:void 0,Br=(r,e=0,t=NaN)=>{for(var n=e+t,a=e;r[a]&&!(a>=n);)++a;if(a-e>16&&r.buffer&&Mr)return Mr.decode(r.subarray(e,a));for(var o="";e<a;){var s=r[e++];if(128&s){var i=63&r[e++];if(192==(224&s))o+=String.fromCharCode((31&s)<<6|i);else{var u=63&r[e++];if((s=224==(240&s)?(15&s)<<12|i<<6|u:(7&s)<<18|i<<12|u<<6|63&r[e++])<65536)o+=String.fromCharCode(s);else{var l=s-65536;o+=String.fromCharCode(55296|l>>10,56320|1023&l)}}}else o+=String.fromCharCode(s)}return o},Nr=(r,e)=>r?Br(y,r,e):"",zr=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,Gr=(r,e)=>{for(var t=r,n=t>>1,a=n+e/2;!(n>=a)&&g[n];)++n;if((t=n<<1)-r>32&&zr)return zr.decode(y.subarray(r,t));for(var o="",s=0;!(s>=e/2);++s){var i=m[r+2*s>>1];if(0==i)break;o+=String.fromCharCode(i)}return o},Lr=(r,e,t)=>{if(t??=2147483647,t<2)return 0;for(var n=e,a=(t-=2)<2*r.length?t/2:r.length,o=0;o<a;++o){var s=r.charCodeAt(o);m[e>>1]=s,e+=2}return m[e>>1]=0,e-n},qr=r=>2*r.length,Jr=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var a=$[r+4*t>>2];if(0==a)break;if(++t,a>=65536){var o=a-65536;n+=String.fromCharCode(55296|o>>10,56320|1023&o)}else n+=String.fromCharCode(a)}return n},Kr=(r,e,t)=>{if(t??=2147483647,t<4)return 0;for(var n=e,a=n+t-4,o=0;o<r.length;++o){var s=r.charCodeAt(o);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&r.charCodeAt(++o)),$[e>>2]=s,(e+=4)+4>a)break}return $[e>>2]=0,e-n},Xr=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e},Zr=(r,e,t)=>{var n=[],a=r.toWireType(n,t);return n.length&&(b[e>>2]=jr.toHandle(n)),a},Qr={},Yr=r=>{var e=Qr[r];return void 0===e?X(r):e},re=[],ee=Reflect.construct,te=(r,e)=>Math.ceil(r/e)*e,ne=r=>{var e=(r-d.buffer.byteLength+65535)/65536|0;try{return d.grow(e),A(),1}catch{}},ae=[null,[],[]],oe=(r,e)=>{var t=ae[r];0===e||10===e?((1===r?h:f)(Br(t)),t.length=0):t.push(e)};B=a.InternalError=class extends Error{constructor(r){super(r),this.name="InternalError"}},(()=>{for(var r=Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);N=r})(),z=a.BindingError=class extends Error{constructor(r){super(r),this.name="BindingError"}},Object.assign(lr.prototype,{isAliasOf(r){if(!(this instanceof lr&&r instanceof lr))return!1;var e=this.$$.ptrType.registeredClass,t=this.$$.ptr;r.$$=r.$$;for(var n=r.$$.ptrType.registeredClass,a=r.$$.ptr;e.baseClass;)t=e.upcast(t),e=e.baseClass;for(;n.baseClass;)a=n.upcast(a),n=n.baseClass;return e===n&&t===a},clone(){if(this.$$.ptr||rr(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var r=ur(Object.create(Object.getPrototypeOf(this),{$$:{value:Y(this.$$)}}));return r.$$.count.value+=1,r.$$.deleteScheduled=!1,r},delete(){this.$$.ptr||rr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Z("Object already scheduled for deletion"),tr(this),nr(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||rr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Z("Object already scheduled for deletion"),this.$$.deleteScheduled=!0,this}}),Object.assign(gr.prototype,{getPointee(r){return this.rawGetPointee&&(r=this.rawGetPointee(r)),r},destructor(r){this.rawDestructor?.(r)},argPackAdvance:8,readValueFromPointer:M,fromWireType:function(r){var e=this.getPointee(r);if(!e)return this.destructor(r),null;var t=((r,e)=>(e=((r,e)=>{for(void 0===e&&Z("ptr should not be undefined");r.baseClass;)e=r.upcast(e),r=r.baseClass;return e})(r,e),sr[e]))(this.registeredClass,e);if(void 0!==t){if(0===t.$$.count.value)return t.$$.ptr=e,t.$$.smartPtr=r,t.clone();var n=t.clone();return this.destructor(r),n}function a(){return this.isSmartPointer?ir(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:r}):ir(this.registeredClass.instancePrototype,{ptrType:this,ptr:r})}var o=or[this.registeredClass.getActualType(e)];if(!o)return a.call(this);var s=this.isConst?o.constPointerType:o.pointerType,i=ar(e,this.registeredClass,s.registeredClass);return null===i?a.call(this):this.isSmartPointer?ir(s.registeredClass.instancePrototype,{ptrType:s,ptr:i,smartPtrType:this,smartPtr:r}):ir(s.registeredClass.instancePrototype,{ptrType:s,ptr:i})}}),br=a.UnboundTypeError=((r,e)=>{var t=cr(e,function(r){this.name=e,this.message=r;var t=Error(r).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},t})(Error,"UnboundTypeError"),Or.push(0,1,void 0,1,null,1,!0,1,!1,1),a.count_emval_handles=()=>Or.length/2-5-Er.length;var se,ie={I:(r,e,t)=>{throw new U(r).init(e,t),r},A:()=>R(""),r:r=>{var e=I[r];delete I[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,o=a.map(r=>r.getterReturnType).concat(a.map(r=>r.setterArgumentType));K([r],o,r=>{var o={};return a.forEach((e,t)=>{var n=e.fieldName,s=r[t],i=e.getter,u=e.getterContext,l=r[t+a.length],c=e.setter,p=e.setterContext;o[n]={read:r=>s.fromWireType(i(u,r)),write:(r,e)=>{var t=[];c(p,r,l.toWireType(t,e)),H(t)}}}),[{name:e.name,fromWireType:r=>{var e={};for(var t in o)e[t]=o[t].read(r);return n(r),e},toWireType:(r,e)=>{for(var a in o)if(!(a in e))throw TypeError(`Missing field: "${a}"`);var s=t();for(a in o)o[a].write(s,e[a]);return null!==r&&r.push(n,s),s},argPackAdvance:8,readValueFromPointer:M,destructorFunction:n}]})},z:(r,e,t,n,a)=>{},G:(r,e,t,n)=>{Q(r,{name:e=X(e),fromWireType:function(r){return!!r},toWireType:function(r,e){return e?t:n},argPackAdvance:8,readValueFromPointer:function(r){return this.fromWireType(y[r])},destructorFunction:null})},v:(r,e,t,n,a,o,s,i,u,l,c,p,h)=>{c=X(c),o=Ar(a,o),i&&=Ar(s,i),l&&=Ar(u,l),h=Ar(p,h);var f=(r=>{var e=(r=r.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return e>=48&&e<=57?`_${r}`:r})(c);hr(f,function(){Fr(`Cannot construct ${c} due to unbound types`,[n])}),K([r,e,t],n?[n]:[],e=>{var t,a;e=e[0],a=n?(t=e.registeredClass).instancePrototype:lr.prototype;var s=cr(c,function(...r){if(Object.getPrototypeOf(this)!==u)throw new z("Use 'new' to construct "+c);if(void 0===p.constructor_body)throw new z(c+" has no accessible constructor");var e=p.constructor_body[r.length];if(void 0===e)throw new z(`Tried to invoke ctor of ${c} with invalid number of parameters (${r.length}) - expected (${Object.keys(p.constructor_body).toString()}) parameters instead!`);return e.apply(this,r)}),u=Object.create(a,{constructor:{value:s}});s.prototype=u;var p=new fr(c,s,u,h,t,o,i,l);p.baseClass&&(p.baseClass.__derivedClasses??=[],p.baseClass.__derivedClasses.push(p));var d=new gr(c,p,!0,!1,!1),v=new gr(c+"*",p,!1,!1,!1),y=new gr(c+" const*",p,!1,!0,!1);return or[r]={pointerType:v,constPointerType:y},Cr(f,s),[d,v,y]})},u:(r,e,t,n,a,o)=>{var s=_r(e,t);a=Ar(n,a),K([],[r],r=>{var t=`constructor ${(r=r[0]).name}`;if(void 0===r.registeredClass.constructor_body&&(r.registeredClass.constructor_body=[]),void 0!==r.registeredClass.constructor_body[e-1])throw new z(`Cannot register multiple constructors with identical number of parameters (${e-1}) for class '${r.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return r.registeredClass.constructor_body[e-1]=()=>{Fr(`Cannot construct ${r.name} due to unbound types`,s)},K([],s,n=>(n.splice(1,0,null),r.registeredClass.constructor_body[e-1]=kr(t,n,null,a,o),[])),[]})},b:(r,e,t,n,a,o,s,i,u,l)=>{var c=_r(t,n);e=X(e),e=Sr(e),o=Ar(a,o),K([],[r],r=>{var n=`${(r=r[0]).name}.${e}`;function a(){Fr(`Cannot call ${n} due to unbound types`,c)}e.startsWith("@@")&&(e=Symbol[e.substring(2)]),i&&r.registeredClass.pureVirtualFunctions.push(e);var u=r.registeredClass.instancePrototype,l=u[e];return void 0===l||void 0===l.overloadTable&&l.className!==r.name&&l.argCount===t-2?(a.argCount=t-2,a.className=r.name,u[e]=a):(pr(u,e,n),u[e].overloadTable[t-2]=a),K([],c,a=>{var i=kr(n,a,r,o,s);return void 0===u[e].overloadTable?(i.argCount=t-2,u[e]=i):u[e].overloadTable[t-2]=i,[]}),[]})},h:(r,e,t)=>{r=X(r),K([],[e],e=>(e=e[0],a[r]=e.fromWireType(t),[]))},E:r=>Q(r,Dr),q:(r,e,t,n)=>{function a(){}e=X(e),a.values={},Q(r,{name:e,constructor:a,fromWireType:function(r){return this.constructor.values[r]},toWireType:(r,e)=>e.value,argPackAdvance:8,readValueFromPointer:Vr(e,t,n),destructorFunction:null}),hr(e,a)},a:(r,e,t)=>{var n=xr(r,"enum");e=X(e);var a=n.constructor,o=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:cr(`${n.name}_${e}`,function(){})}});a.values[t]=o,a[e]=o},x:(r,e,t)=>{Q(r,{name:e=X(e),fromWireType:r=>r,toWireType:(r,e)=>e,argPackAdvance:8,readValueFromPointer:Ir(e,t),destructorFunction:null})},e:(r,e,t,n,a,o,s,i)=>{var u=_r(e,t);r=X(r),r=Sr(r),a=Ar(n,a),hr(r,function(){Fr(`Cannot call ${r} due to unbound types`,u)},e-1),K([],u,t=>{var n=[t[0],null].concat(t.slice(1));return Cr(r,kr(r,n,null,a,o),e-1),[]})},i:(r,e,t,n,a)=>{e=X(e);var o=r=>r;if(0===n){var s=32-8*t;o=r=>r<<s>>>s}var i=e.includes("unsigned");Q(r,{name:e,fromWireType:o,toWireType:i?function(r,e){return this.name,e>>>0}:function(r,e){return this.name,e},argPackAdvance:8,readValueFromPointer:Hr(e,t,0!==n),destructorFunction:null})},f:(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function a(r){var e=b[r>>2],t=b[r+4>>2];return new n(v.buffer,t,e)}Q(r,{name:t=X(t),fromWireType:a,argPackAdvance:8,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},F:(r,e)=>{Q(r,{name:e=X(e),fromWireType(r){for(var e,t=b[r>>2],n=r+4,a=n,o=0;o<=t;++o){var s=n+o;if(o==t||0==y[s]){var i=Nr(a,s-a);void 0===e?e=i:(e+="\0",e+=i),a=s+1}}return pe(r),e},toWireType(r,e){e instanceof ArrayBuffer&&(e=new Uint8Array(e));var t,n="string"==typeof e;n||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||Z("Cannot pass non-string to std::string"),t=n?(r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e})(e):e.length;var a=ce(4+t+1),o=a+4;if(b[a>>2]=t,n)((r,e,t)=>{((r,e,t,n)=>{if(!(n>0))return 0;for(var a=t+n-1,o=0;o<r.length;++o){var s=r.charCodeAt(o);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&r.charCodeAt(++o)),s<=127){if(t>=a)break;e[t++]=s}else if(s<=2047){if(t+1>=a)break;e[t++]=192|s>>6,e[t++]=128|63&s}else if(s<=65535){if(t+2>=a)break;e[t++]=224|s>>12,e[t++]=128|s>>6&63,e[t++]=128|63&s}else{if(t+3>=a)break;e[t++]=240|s>>18,e[t++]=128|s>>12&63,e[t++]=128|s>>6&63,e[t++]=128|63&s}}e[t]=0})(r,y,e,t)})(e,o,t+1);else if(n)for(var s=0;s<t;++s){var i=e.charCodeAt(s);i>255&&(pe(o),Z("String has UTF-16 code units that do not fit in 8 bits")),y[o+s]=i}else for(s=0;s<t;++s)y[o+s]=e[s];return null!==r&&r.push(pe,a),a},argPackAdvance:8,readValueFromPointer:M,destructorFunction(r){pe(r)}})},t:(r,e,t)=>{var n,a,o,s;t=X(t),2===e?(n=Gr,a=Lr,s=qr,o=r=>g[r>>1]):4===e&&(n=Jr,a=Kr,s=Xr,o=r=>b[r>>2]),Q(r,{name:t,fromWireType:r=>{for(var t,a=b[r>>2],s=r+4,i=0;i<=a;++i){var u=r+4+i*e;if(i==a||0==o(u)){var l=n(s,u-s);void 0===t?t=l:(t+="\0",t+=l),s=u+e}}return pe(r),t},toWireType:(r,n)=>{"string"!=typeof n&&Z(`Cannot pass non-string to C++ string type ${t}`);var o=s(n),i=ce(4+o+e);return b[i>>2]=o/e,a(n,i+4,o+e),null!==r&&r.push(pe,i),i},argPackAdvance:8,readValueFromPointer:M,destructorFunction(r){pe(r)}})},s:(r,e,t,n,a,o)=>{I[r]={name:X(e),rawConstructor:Ar(t,n),rawDestructor:Ar(a,o),fields:[]}},c:(r,e,t,n,a,o,s,i,u,l)=>{I[r].fields.push({fieldName:X(e),getterReturnType:t,getter:Ar(n,a),getterContext:o,setterArgumentType:s,setter:Ar(i,u),setterContext:l})},H:(r,e)=>{Q(r,{isVoid:!0,name:e=X(e),argPackAdvance:0,fromWireType:()=>{},toWireType:(r,e)=>{}})},D:(r,e,t)=>y.copyWithin(r,e,e+t),n:(r,e,t)=>(r=jr.toValue(r),e=xr(e,"emval::as"),Zr(e,t,r)),j:(r,e,t,n,a)=>(r=re[r])(e=jr.toValue(e),e[t=Yr(t)],n,a),d:Rr,k:(r,e,t)=>{var n=((r,e)=>{for(var t=Array(r),n=0;n<r;++n)t[n]=xr(b[e+4*n>>2],"parameter "+n);return t})(r,e),a=n.shift();r--;var o=Array(r);return(r=>{var e=re.length;return re.push(r),e})(cr(`methodCaller<(${n.map(r=>r.name).join(", ")}) => ${a.name}>`,(e,s,i,u)=>{for(var l=0,c=0;c<r;++c)o[c]=n[c].readValueFromPointer(u+l),l+=n[c].argPackAdvance;return Zr(a,i,1===t?ee(s,o):s.apply(e,o))}))},o:(r,e)=>(r=jr.toValue(r),e=jr.toValue(e),jr.toHandle(r[e])),l:r=>{r>9&&(Or[r+1]+=1)},p:r=>jr.toHandle(Yr(r)),g:r=>{H(jr.toValue(r)),Rr(r)},m:(r,e)=>{var t=(r=xr(r,"_emval_take_value")).readValueFromPointer(e);return jr.toHandle(t)},B:r=>{var e=y.length,t=2147483648;if((r>>>=0)>t)return!1;for(var n=1;n<=4;n*=2){var a=e*(1+.2/n);if(a=Math.min(a,r+100663296),ne(Math.min(t,te(Math.max(r,a),65536))))return!0}return!1},C:r=>52,y:function(r,e,t,n,a){return 70},w:(r,e,t,n)=>{for(var a=0,o=0;o<t;o++){var s=b[e>>2],i=b[e+4>>2];e+=8;for(var u=0;u<i;u++)oe(r,y[s+u]);a+=i}return b[n>>2]=a,0}};!async function(){function r(r,e){return se=r.exports,d=se.J,A(),$r=se.N,function(r){F.unshift(r)}(se.K),function(){if(E--,a.monitorRunDependencies?.(E),0==E&&O){var r=O;O=null,r()}}(),se}E++,a.monitorRunDependencies?.(E);var e={a:ie};if(a.instantiateWasm)try{return a.instantiateWasm(e,r)}catch(r){f(`Module.instantiateWasm callback failed with error: ${r}`),n(r)}j??=function(){var r="basis_transcoder.wasm";return D(r)?r:function(r){return a.locateFile?a.locateFile(r,p):p+r}(r)}();try{var t=await V(w,j,e);return function(e){r(e.instance)}(t),t}catch(r){return void n(r)}}();var ue,le=r=>(le=se.L)(r),ce=r=>(ce=se.M)(r),pe=r=>(pe=se.O)(r);function he(){function r(){ue||(ue=!0,a.calledRun=!0,!P&&(x(F),t(a),a.onRuntimeInitialized?.(),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)S(a.postRun.shift());x(_)}()))}E>0||(function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)k(a.preRun.shift());x(W)}(),E>0)||(a.setStatus?(a.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>a.setStatus(""),1),r()},1)):r())}if(a.dynCall_jiji=(r,e,t,n,o)=>(a.dynCall_jiji=se.P)(r,e,t,n,o),O=function r(){ue||he(),ue||(O=r)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return he(),o}})()}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4805],{69540(e,t,r){var s=r(32198),i=r(69622),n=(r(44208),r(4718)),a=(r(53966),r(97768)),o=r(88620),l=r(64108);const h=Symbol("ClonableMixin"),u=e=>{var t;let r=e,i=class extends r{constructor(){super(...arguments),this[t]=!0}static{t=h}clone(e){let t=(0,o.oY)(this);(0,a.Lw)(t,"unable to clone instance of non-accessor class");let r=t.metadata,s=t.store,i={},l=new Map;for(let t in r){let a=r[t],o=s?.originOf(t),h=a.clonable;if(a.readOnly||!1===h||7!==o&&0!==o&&5!==o&&4!==o)continue;let u=this[t],d=null;if("function"==typeof h)d=h(u,e);else if("reference"===h)d=u;else if(d=(0,n.TU)(u,e),null!=u&&null==d)continue;0===o?l.set(t,d):i[t]=d}let h=new(0,Object.getPrototypeOf(this).constructor)(i);if(l.size){let e=(0,o.oY)(h)?.store;if(e)for(let[t,r]of l)e.set(t,r,0)}return h}};return i=(0,s.Cg)([(0,l.$)("esri.core.Clonable")],i),i},d=u(i.A);r.d(t,["OU",0,u,"Pw",0,d])},7762(e,t,r){var s,i=r(32198),n=r(98291),a=r(4576),o=r(65529),l=r(36563),h=r(4718),u=r(53966),d=r(93687),c=r(76030),f=r(78888),p=r(62788),m=r(10107),g=r(7695),_=r(64108),y=r(95488),v=r(12195);class x{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class b{constructor(e,t,r,s,i){this.target=e,this.added=t,this.removed=r,this.start=s,this.deleteCount=i}}const I=new d.A(()=>new x,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function M(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function C(e){return e?e instanceof P?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function S(e){if(e?.length)return e[0]}function w(e,t,r,s){let i=Math.min(e.length-r,t.length-s),n=0;for(;n<i&&e[r+n]===t[s+n];)n++;return n}function T(e,t,r,s){t&&t.forEach((t,i,n)=>{e.push(t),T(e,r.call(s,t,i,n),r,s)})}const A=new Set,F=new Set,O=new Set,E=new Map;let N=0,P=s=class extends o.nJ{static ofType(e){if(!e)return s;if(E.has(e))return E.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(let r in e.typeMap){let s=e.typeMap[r].prototype.declaredClass;t?t+=` | ${s}`:t=s}let r=class extends s{};return(0,i.Cg)([(0,g.u)({Type:e,ensureType:"function"==typeof e?(0,f.dp)(e):(0,f.aq)(e)})],r.prototype,"itemType",void 0),r=(0,i.Cg)([(0,_.$)(`esri.core.Collection<${t}>`)],r),E.set(e,r),r}static isCollection(e){return null!=e&&e instanceof s}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new y.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:N++})}normalizeCtorArgs(e){return e?(0,a.yc)(e)||e instanceof s?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(e){e>this._length?u.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(e,Math.max(0,this._length-e))}get items(){return(0,p.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,C(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,l.hA)();if("change"===e){let e=this._chgListeners,r={removed:!1,callback:t};return e.push(r),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,l.hA)(()=>{r.removed=!0,e.splice(e.indexOf(r),1)})}return super.on(e,t)}once(e,t){let r="deref"in t?()=>t.deref():()=>t,s=this.on(e,e=>{r()?.call(null,e),s.remove()});return s}add(e,t){if((0,p.gc)(this._observable),this._emitBeforeChanges(1))return this;let r=this.getNextIndex(t??null);return this._splice(r,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,p.gc)(this._observable),!e?.length||this._emitBeforeChanges(1))return this;let r=this.getNextIndex(t);return this._splice(r,0,C(e)),this._emitAfterChanges(1),this}at(e){if((0,p.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];let e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,p.gc)(this._observable),this._createNewInstance({items:this._items.map(h.o8)})}concat(...e){(0,p.gc)(this._observable);let t=e.map(C);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let r=this._splice(0,this.length),s=r.length;for(let i=0;i<s;i++)e.call(t,r[i],i,r);this._emitAfterChanges(2)}destroyAll(){this.drain(M)}destroyMany(e){let t=this.removeMany(e);return t.forEach(M),t}every(e,t){return(0,p.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,p.gc)(this._observable);let r=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:r})}find(e,t){return(0,p.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,p.gc)(this._observable),this._items.findIndex(e,t)}findLast(e,t){return(0,p.gc)(this._observable),this._items.findLast(e,t)}findLastIndex(e,t){return(0,p.gc)(this._observable),this._items.findLastIndex(e,t)}flatten(e,t){(0,p.gc)(this._observable);let r=[];return T(r,this,e,t),new s(r)}forEach(e,t){return(0,p.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,p.gc)(this._observable),this._items[e]}getNextIndex(e){(0,p.gc)(this._observable);let t=this.length;return e??=t,e<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,p.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,p.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,p.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,p.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,p.gc)(this._observable);let r=this._items.map(e,t);return new s({items:r})}reorder(e,t=this.length-1){(0,p.gc)(this._observable);let r=this.indexOf(e);if(-1!==r){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(4))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let e=S(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,p.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,p.gc)(this._observable);let r=this._items;return 2===arguments.length?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){(0,p.gc)(this._observable);let r=this._items;return 2===arguments.length?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return(0,p.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,p.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;let t=S(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,p.gc)(this._observable),!e?.length||this._emitBeforeChanges(2))return[];let t=e instanceof s?e.toArray():e,r=this._items,i=[],n=t.length;for(let e=0;e<n;e++){let s=t[e],n=r.indexOf(s);if(n>-1){let s=1+w(t,r,e+1,n+1),a=this._splice(n,s);a&&a.length>0&&i.push.apply(i,a),e+=s-1}}return this._emitAfterChanges(2),i}reverse(){if((0,p.gc)(this._observable),this._emitBeforeChanges(4))return this;let e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let e=S(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,p.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,p.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;let t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){let t=this.length-1;for(let r=0;r<t;r++)if(e(this.items[r],this.items[r+1])>0)return!0;return!1}splice(e,t,...r){(0,p.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;let s=(t?2:0)|!!r.length;if(this._emitBeforeChanges(s))return[];let i=this._splice(e,t,r)||[];return this._emitAfterChanges(s),i}toArray(){return(0,p.gc)(this._observable),this._items.slice()}toJSON(e){return(0,p.gc)(this._observable),this.toArray().map(t=>(0,v.W)(t)?t.toJSON(e):t)}toLocaleString(){return(0,p.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,p.gc)(this._observable),this._items.toString()}unshift(...e){return(0,p.gc)(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){let s,i,n=this._items,a=this.itemType;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,c._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(i=n.splice(e,t),this.hasEventListener("before-remove")){let t=I.acquire();t.target=this,t.cancellable=!0;for(let r=0,a=i.length;r<a;r++)s=i[r],t.reset(s),this.emit("before-remove",t),t.defaultPrevented&&(i.splice(r,1),n.splice(e,0,s),e+=1,--r,--a);I.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){let e=I.acquire();e.target=this,e.cancellable=!1;let t=i.length;for(let r=0;r<t;r++)e.reset(i[r]),this.emit("after-remove",e);I.release(e)}}if(r?.length){if(a){let e=[];for(let t of r){let r=a.ensureType(t);(null!=r||null==t)&&e.push(r)}r=e}let t=this.hasEventListener("before-add"),s=this.hasEventListener("after-add"),i=e===this.length;if(t||s){let a=I.acquire();a.target=this,a.cancellable=!0;let o=I.acquire();o.target=this,o.cancellable=!1;for(let l of r)t?(a.reset(l),this.emit("before-add",a),a.defaultPrevented||(i?n.push(l):n.splice(e++,0,l),this._length=n.length,s&&(o.reset(l),this.emit("after-add",o)))):(i?n.push(l):n.splice(e++,0,l),this._length=n.length,o.reset(l),this.emit("after-add",o));I.release(o),I.release(a)}else{if(i)for(let e of r)n.push(e);else n.splice(e,0,...r);this._length=n.length}}if((r?.length||i?.length)&&this._notifyChangeEvent(r,i),this.hasEventListener("after-splice")){let s=new b(this,r,i,e,t);this.emit("after-splice",s)}return i}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){let r=I.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,I.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){let t=I.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),I.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&=(this._timer.remove(),null),this._updating=!1,!this._notifications)return;let e=this._notifications;this._notifications=null;for(let t of e){let e=t.changes;A.clear(),F.clear(),O.clear();for(let{added:t,removed:r}of e){if(t)if(0===O.size&&0===F.size)for(let e of t)A.add(e);else for(let e of t)F.has(e)?(O.add(e),F.delete(e)):O.has(e)||A.add(e);if(r)if(0===O.size&&0===A.size)for(let e of r)F.add(e);else for(let e of r)A.has(e)?A.delete(e):(O.delete(e),F.add(e))}let r=n.A.acquire();A.forEach(e=>{r.push(e)});let s=n.A.acquire();F.forEach(e=>{s.push(e)});let i=this._items,a=t.items,o=n.A.acquire();if(O.forEach(e=>{a.indexOf(e)!==i.indexOf(e)&&o.push(e)}),t.listeners&&(r.length||s.length||o.length)){let e={target:this,added:r,removed:s,moved:o},i=t.listeners.length;for(let r=0;r<i;r++){let s=t.listeners[r];s.removed||s.callback.call(this,e)}}n.A.release(r),n.A.release(s),n.A.release(o)}A.clear(),F.clear(),O.clear()}};(0,i.Cg)([(0,m.MZ)()],P.prototype,"_updating",void 0),(0,i.Cg)([(0,m.MZ)()],P.prototype,"_length",void 0),(0,i.Cg)([(0,m.MZ)()],P.prototype,"length",null),(0,i.Cg)([(0,m.MZ)()],P.prototype,"items",null),(0,i.Cg)([(0,m.MZ)({readOnly:!0})],P.prototype,"updating",null),P=s=(0,i.Cg)([(0,_.$)("esri.core.Collection")],P);const R=P;r.d(t,["A",0,R])},9775(e,t,r){r.d(t,{A:()=>n});var s=r(62788),i=r(95488);class n{constructor(e=e=>e.values().next().value){this._peeker=e,this._observable=new i.I,this._items=new Set}get length(){return(0,s.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let e;for(e of this._items);return e}peek(){if(0!==this.length)return this._peeker(this._items)}push(e){this.contains(e)||(this._items.add(e),this._observable.notify())}contains(e){return(0,s.gc)(this._observable),this._items.has(e)}pop(){if(0===this.length)return;let e=this.peek();return this._items.delete(e),this._observable.notify(),e}popLast(){if(0===this.length)return;let e=this.last();return this._items.delete(e),this._observable.notify(),e}remove(e){this.contains(e)&&(this._items.delete(e),this._observable.notify())}filter(e){let t=this.length;return this._items.forEach(t=>{e(t)||this._items.delete(t)}),t!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,s.gc)(this._observable),yield*this._items}}},563(e,t,r){r.d(t,{QueueProcessor:()=>h,SharedConcurrency:()=>d});var s=r(97768),i=r(17676),n=r(9775),a=r(32587),o=r(76030),l=r(44794);class h{constructor(e){this._schedule=null,this._deferreds=new a.A,this._controllers=new a.A,this._processingItems=new a.A,this._pausedSignal=(0,l.v)(!1),this.process=e.process,this.concurrency=e.concurrency,this.sharedConcurrency=e.sharedConcurrency??c,this._queue=new n.A(e.peeker)}destroy(){this.clear(),this._schedule=(0,s.xt)(this._schedule)}get updating(){return this.running}get length(){return this._processingItems.size+this._queue.length}get running(){return!this._pausedSignal.value&&this._queue.length>0&&!this.full}get full(){return this._processingItems.size>=this.concurrency||this.sharedConcurrency.full}abort(e){this._controllers.get(e)?.abort()}clear(){this._queue.clear();let e=Array.from(this._controllers.values());this._controllers.clear(),e.forEach(e=>e.abort()),this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear(),this._cancelNext()}forEach(e){this._deferreds.forEach((t,r)=>e(r))}_get(e){return this._deferreds.get(e)?.promise}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(e,t){let r=this._get(e);if(r)return r;let s=new AbortController,n=Promise.withResolvers(),a=t?(0,i.u7)(t,()=>s.abort()):null,o=(0,i.NY)(s.signal,()=>{let t=this._processingItems.get(e);t&&t.controller.abort(),l(),n.reject((0,i.NK)())}),l=()=>{o.remove(),a?.remove(),this._removeItem(e),this._queue.remove(e),this._scheduleNext()};return this._deferreds.set(e,n),this._controllers.set(e,s),n.promise.then(l,l),this._queue.push(e),this._scheduleNext(),n.promise}last(){return this._queue.last()}reset(){let e=Array.from(this._processingItems.values());this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear();for(let t of e)this._queue.push(t.item),t.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){let e=[];for(;this._queue.length;)e.push(this._queue.pop());return this.clear(),e}_removeItem(e){this._deferreds.delete(e),this._controllers.delete(e),this._processingItems.has(e)&&(this._processingItems.delete(e),--this.sharedConcurrency.current.value)}_scheduleNext(){this._pausedSignal.value||this._schedule||(this._schedule=(0,o._)(()=>{this._schedule=null,this._next()}))}_next(){for(;this._queue.length>0&&this._processingItems.size<this.concurrency&&!this.sharedConcurrency.full;)this._process(this._queue.pop())}_cancelNext(){this._schedule&&=(this._schedule.remove(),null)}_processResult(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).resolve(t))}_processError(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).reject(t))}_canProcessFulfillment(e){return!(!this._deferreds.get(e.item)||this._processingItems.get(e.item)!==e)}_process(e){if(null==e)return;let t,r=new AbortController,s=new u(e,r);this._processingItems.set(e,s),this.sharedConcurrency.current.value+=1;try{t=this.process(e,r.signal)}catch(e){this._processError(s,e)}(0,i.$X)(t)?(s.promise=t,t.then(e=>this._processResult(s,e),e=>this._processError(s,e))):this._processResult(s,t)}}class u{constructor(e,t){this.item=e,this.controller=t,this.promise=null}}class d{constructor(e){this.limit=e,this.current=(0,l.v)(0)}get full(){return this.current.value>=this.limit}}const c=new d(1/0)},32587(e,t,r){r.d(t,{A:()=>n});var s=r(62788),i=r(95488);class n{constructor(e){this._observable=new i.I,this._notifyPending=!1,this._batchDepth=0,this._map=new Map(e)}get size(){return(0,s.gc)(this._observable),this._map.size}batch(e){try{this._batchDepth++,e()}finally{this._batchDepth--,this._notifyPending&&0===this._batchDepth&&(this._notifyPending=!1,this._notify())}}clear(){this._map.size>0&&(this._map.clear(),this._notify())}delete(e){let t=this._map.delete(e);return t&&this._notify(),t}entries(){return(0,s.gc)(this._observable),this._map.entries()}forEach(e,t){(0,s.gc)(this._observable),this._map.forEach((r,s)=>e.call(t,r,s,this),t)}get(e){return(0,s.gc)(this._observable),this._map.get(e)}has(e){return(0,s.gc)(this._observable),this._map.has(e)}keys(){return(0,s.gc)(this._observable),this._map.keys()}set(e,t){return this._map.set(e,t),this._notify(),this}transformValues(e,t=this._map.keys()){this.batch(()=>{for(let r of t){if(!this._map.has(r))continue;let t=this._map.get(r),s=e(t,r);s!==t&&this.set(r,s)}})}values(){return(0,s.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,s.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}_notify(){this._batchDepth>0?this._notifyPending=!0:this._observable.notify()}}},7695(e,t,r){function s(e){return(t,r)=>{t[r]=e}}r.d(t,{u:()=>s})},48163(e,t,r){function s(){return[0,0]}function i(e){return[e[0],e[1]]}function n(e,t){return[e,t]}function a(){return n(1,1)}function o(){return n(-1,-1)}function l(){return n(1,0)}function h(){return n(0,1)}r.d(t,{fA:()=>n,o8:()=>i,vt:()=>s});const u=a(),d=o(),c=l(),f=h();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:d,ONES:u,UNIT_X:c,UNIT_Y:f,ZEROS:[0,0],clone:i,create:s,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){let r=Math.min(2,e.length);for(let s=0;s<r;++s)t[s]=e[s];return t},fromValues:n,negativeOnes:o,ones:a,unitX:l,unitY:h,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["IA",0,d,"Un",0,u])},36708(e,t,r){r.d(t,{C_:()=>c,on:()=>d,wB:()=>l,z7:()=>h});var s=r(37955),i=r(36563),n=r(97768),a=r(17676),o=r(14012);function l(e,t,r={}){return u(e,t,r,f)}function h(e,t,r={}){return u(e,t,r,p)}function u(e,t,r={},s){let i=null,a=r.once?(e,r)=>{s(e)&&((0,n.xt)(i),t(e,r))}:(e,r)=>{s(e)&&t(e,r)};if(i=(0,o.Cn)(e,a,r.sync,r.equals),r.initial){let t=e();a(t,t)}return i}function d(e,t,r,a={}){let o=null,h=null,u=null;function d(){o&&h&&(h.remove(),a.onListenerRemove?.(o),o=null,h=null)}function c(e){a.once&&a.once&&(0,n.xt)(u),r(e)}let f=l(e,(e,r)=>{d(),(0,s.wb)(e)&&(o=e,h=(0,s.on)(e,t,c),a.onListenerAdd?.(e))},{sync:a.sync,initial:!0});return u=(0,i.hA)(()=>{f.remove(),d()}),u}function c(e,t){return function(e,t,r){if((0,a.G4)(r))return Promise.reject((0,a.NK)());let s=e();if(t?.(s))return Promise.resolve(s);let o=null;function l(){o=(0,n.xt)(o)}return new Promise((s,n)=>{o=(0,i.vE)([(0,a.u7)(r,()=>{l(),n((0,a.NK)())}),u(e,e=>{l(),s(e)},{sync:!1,once:!0},t??f)])})}(e,p,t)}function f(e){return!0}function p(e){return!!e}r(80559),r.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},44794(e,t,r){r.d(t,{v:()=>o});var s=r(4718),i=r(62788),n=r(95488);class a{constructor(e,t){this._observable=new n.I,this._value=e,this._equalityFunction=t}get value(){return(0,i.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function o(e,t=s.gh){return new a(e,t)}},88930(e,t,r){r.d(t,{S1:()=>o,VW:()=>l,lL:()=>h,rb:()=>u,t:()=>d});var s=r(97770),i=(r(98623),r(34747));const n=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,a={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function o(e,t,r,n="system"){if("unknown"===r)return e;let a=new i.oh((0,s.wj)(n)),o=i.c9.fromJSDate(e,{zone:a}),l="decades"===r||"centuries"===r?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),o.plus({[l]:t}).toJSDate()}function l(e,t,r="milliseconds"){let s=e.getTime(),i=d(t,r,"milliseconds");return new Date(s+i)}function h(e,t,r="system"){let{unit:n}=t,a=Math.max(1,Math.trunc(t.value)),o=new i.oh((0,s.wj)(r)),l=i.c9.fromJSDate(e,{zone:o}),h=e=>e-e%a;switch(n){case"milliseconds":return l.startOf("second").plus({millisecond:h(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:h(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:h(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:h(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:h(l.day-1)}).toJSDate();case"weeks":{let e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:h(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:h(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{let e=l.startOf("year"),t=("decades"===n?10:"centuries"===n?100:1)*a,r=e.year-e.year%t;return e.set({year:r}).toJSDate()}case"unknown":return e}}function u(e){let t=n.exec(e);if(!t)return null;let{hh:r,mm:s,ss:i,ms:o}=t.groups;return Number(r)*a.hours+Number(s)*a.minutes+Number(i||0)*a.seconds+Number(o||0)}function d(e,t,r){return 0===e?0:e*a[t]/a[r]}},87992(e,t,r){r.d(t,{JR:()=>C,ME:()=>b,MY:()=>w,NO:()=>x,Nh:()=>M,V2:()=>E,_s:()=>N,e6:()=>R,gh:()=>I,jm:()=>S,tr:()=>k,uX:()=>m});var s=r(32198),i=r(16930),n=r(19419),a=r(60408),o=r(21325),l=r(513),h=r(50954),u=r(79567),d=r(52006),c=r(49663),f=r(46068),p=r(92722);class m{constructor({type:e,spatialReference:t,vertexCount:r,vertexXY:s,vertexZ:i,vertexM:n,partCount:a,partOffsets:o,partFlags:l,segmentFlags:h,segmentIndices:u,segmentParams:d,segmentCountArc:c,segmentCountBezier:f}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=r,this.vertexXY=s,this.vertexZ=i,this.vertexM=n,this.partCount=a,this.partOffsets=o,this.partFlags=l,this.segmentFlags=h,this.segmentIndices=u,this.segmentParams=d,this.segmentCountArc=c,this.segmentCountBezier=f}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){let{segmentCount:e,segmentCountArc:t,segmentCountBezier:r}=this;return e&&e-t-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?64+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){let{type:e,vertexCount:t,partCount:r,hasZ:s,hasM:i,segmentCountArc:n,segmentCountBezier:a}=this,o=E(e,t,r,s,i,this.hasCurves(),n,a);o.spatialReference=this.spatialReference;let{vertexXY:l,vertexZ:h,vertexM:u}=this;if(o.vertexXY.set(l.subarray(0,2*t),0),o.vertexZ?.set(h.subarray(0,t),0),o.vertexM?.set(u.subarray(0,t),0),this.isMultipart()){let{partOffsets:e,partFlags:t}=this;o.partFlags.set(t.subarray(0,r+1)),o.partOffsets.set(e.subarray(0,r+1))}if(this.hasCurves()){let{segmentFlags:e,segmentIndices:r,segmentParams:s,segmentParamCount:i}=this;o.segmentFlags.set(e.subarray(0,t),0),o.segmentIndices.set(r.subarray(0,t),0),o.segmentParams.set(s.subarray(0,i),0)}return o}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,o.aI)(this.spatialReference,e.spatialReference)||this.vertexCount!==e.vertexCount||this.partCount!==e.partCount||this.hasZ!==e.hasZ||this.hasM!==e.hasM||this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;let r=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,r)=>Math.abs(e-r)>t||isNaN(e)!==isNaN(r);for(let t=0;t<this.vertexCount;++t)if(r(this.vertexXY[2*t],e.vertexXY[2*t])||r(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves()){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(r(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return this.isMultipart()?new g(this):[][Symbol.iterator]()}}class g{constructor(e){this.geometry=e,this.value=new _(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class _{constructor(e){this.geometry=e,this.index=-1,this._readVertex=F(e),this._segments=new y(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){let e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class y{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this.value=new v(e.geometry)}get _partIsClosed(){return!!(1&this._part.geometry.partFlags?.[this._part.index])}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;let e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._partIsClosed?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){let{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._partIsClosed?1:2),this.value.indexOfStartVertex=this._partStart-1}}class v{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=F(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){let e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;let t=this.geometry.segmentParams,r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){let e=t[r++],s=t[r++],i=t[r++],n=t[r++];return{b:[this.end,[e,s],[i,n]]}}let s=t[r++],i=t[r++],n=t[r++],a=t[r++],o=t[r++],l=t[r++];r++,r++;let h=t[r++],u=t[r++];if(!(4&s)&&1===n)return{c:[this.end,[h,u]]};let d=2&s?0:1,c=1&s?0:1;return{a:[this.end,[o,l],d,c,a,i,n]}}}function x(e,t){let r={stack:[],error:void 0,hasError:!1};try{return t??=(0,n.Ie)(),(0,s.mS)(r,new T(e,["vertexZ","vertexM","spatialReference"]),!1),(0,n.bx)(t,function(e){let t,{vertexCount:r,vertexXY:i,vertexZ:a,vertexM:o}=e,l=A(e);if(e.hasCurves()){let r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new T(e,["vertexZ","vertexM"]),!1);let i=(0,n.Ie)();for(let t of e.parts){let e=t.startVertex;for(let{curve:r}of t.segments)(0,u.e)(i,e,r),e=(0,d.yP)(r)}let[a,o,h,c]=i;t={xmin:a,ymin:o,xmax:h,ymax:c,spatialReference:l}}catch(e){r.error=e,r.hasError=!0}finally{(0,s.hk)(r)}}else{let e,s,n,a;e=s=1/0,n=a=-1/0;for(let t=0;t<r;++t){let r=i[2*t],o=i[2*t+1];e=Math.min(e,r),n=Math.max(n,r),s=Math.min(s,o),a=Math.max(a,o)}t={xmin:e,ymin:s,xmax:n,ymax:a,spatialReference:l}}if(a){let e=1/0,r=-1/0;for(let t of a)e=Math.min(e,t),r=Math.max(r,t);t.zmin=e,t.zmax=r}if(o){let e=1/0,r=-1/0;for(let t of o)e=Math.min(e,t),r=Math.max(r,t);t.mmin=e,t.mmax=r}return t}(e)),t}catch(e){r.error=e,r.hasError=!0}finally{(0,s.hk)(r)}}function b(e){let t,r,s;if((0,a.fT)(e)){s="point";let{x:i,y:n,z:a,m:o}=e,l=[i,n];null!=a&&l.push(a),null!=o&&l.push(o),r=[[l]],t=1}else(0,a.U9)(e)?(s="multipoint",r=[e.points],t=e.points.length):(0,a.Rg)(e)?(s="polyline",r=e.curvePaths??e.paths,t=r.reduce((e,t)=>e+t.length,0)):(s="polygon",r=e.curveRings??e.rings,t=r.reduce((e,t)=>(0===t.length||(e+=t.length,O(t[0],(0,d.yP)(t.at(-1)))&&--e),e),0));let i=E(s,t,s.includes("point")?0:r.length,(0,a.Pv)(e),(0,a.W0)(e),(0,d.Ed)(e)),{hasZ:n,hasM:o,vertexXY:l,vertexZ:h,vertexM:u}=i;function c(e){l[2*p]=e[0],l[2*p+1]=e[1],n&&(h[p]=e[2]),o&&(u[p]=e[f]),++p}i.spatialReference=e.spatialReference??void 0;let f=i.hasZ?3:2,p=0;if(!i.isMultipart()){if(!n&&!o){for(let[e,t]of r[0])l[2*p]=e,l[2*p+1]=t,++p;return i}for(let e of r[0])c(e);return i}let m="polygon"===s,{partOffsets:g}=i,_=0;if(!(0,d.Ed)(e)){for(let e of r){if(g[_++]=p,0===e.length)continue;let t=e.length;if(m&&O(e[0],e.at(-1))&&--t,n||o)for(let r=0;r<t;++r)c(e[r]);else for(let r=0;r<t;++r){let[t,s]=e[r];l[2*p]=t,l[2*p+1]=s,++p}}return g[_]=p,i}function y(e){let t=v+e;if(t<=(i.segmentParams?.length??0))return;let r=t*B;r=20*Math.ceil(r/20);let s=i.segmentParams;i.segmentParams=new Float64Array(r),null!=s&&i.segmentParams.set(s)}let v=0;for(let e of r){if(i.partOffsets[_++]=p,0===e.length)continue;let t=e[0],r=t;for(let t=1;t<e.length;++t){let s=e[t];c(r);let n=p-1;(0,d.wY)(s)?(y(10),++i.segmentCountArc,v=N(r,s,i,n,v),r=s.a[0]):(0,d.DA)(s)?(y(10),++i.segmentCountArc,v=P(r,s,i,n,v),r=s.a[0]):(0,d.aO)(s)?(y(10),++i.segmentCountArc,v=R(r,s,i,n,v),r=s.c[0]):(0,d.n1)(s)?(y(4),++i.segmentCountBezier,v=k(0,s,i,n,v),r=s.b[0]):r=s}m&&O(t,r)||c(r)}return i.partOffsets[_]=p,i}function I(e){let t=F(e),{vertexCount:r,partCount:s,hasZ:i,hasM:n}=e,a=A(e),o=0;if(!e.isMultipart()){if("point"===e.type){let[t,r]=e.vertexXY;return{x:t,y:r,z:e.vertexZ?.[0],m:e.vertexM?.[0],spatialReference:a}}let s=[];for(;o<r;)s.push(t(o++));return{points:s,spatialReference:a,hasZ:i,hasM:n}}if(!e.hasCurves()){let r=[];for(let i=0;i<s;++i){let s=!!(1&e.partFlags[i]),n=e.partOffsets[i+1],a=[];for(;o<n;)a.push(t(o++));s&&a.length>0&&a.push([...a[0]]),r.push(a)}return"polygon"===e.type?{rings:r,hasZ:i,hasM:n,spatialReference:a}:{paths:r,hasZ:i,hasM:n,spatialReference:a}}let l=[];for(let{segments:t,startVertex:r}of e.parts){let e=[r];for(let{curve:r}of t)e.push(r);l.push(e)}return"polygon"===e.type?{rings:[],curveRings:l,hasZ:i,hasM:n,spatialReference:a}:{paths:[],curvePaths:l,hasZ:i,hasM:n,spatialReference:a}}function M(e,{lengths:t,coords:r,hasZ:s,hasM:i},n){let a=e.includes("point")?0:t.length,o="polygon"===e,l="point"===e?1:t.reduce((e,t)=>e+t,0)-(o?a:0);s??=!1,i??=!1;let h=E(e,l,a,s,i,!1,0,0);if(h.spatialReference=n??void 0,!h.isMultipart()){for(let e=0,t=0;e<l;++e)h.vertexXY[2*e]=r[t++],h.vertexXY[2*e+1]=r[t++],s&&(h.vertexZ[e]=r[t++]),i&&(h.vertexM[e]=r[t++]);return h}let u=2+Number(s)+Number(i),d=0,c=0;h.partOffsets[0]=0;for(let e of t){let t=h.partOffsets[c],n=t+e-Number(o);h.partOffsets[++c]=n;for(let e=t;e<n;++e)h.vertexXY[2*e]=r[d++],h.vertexXY[2*e+1]=r[d++],s&&(h.vertexZ[e]=r[d++]),i&&(h.vertexM[e]=r[d++]);o&&(d+=u)}return h}function C({type:e,vertexCount:t,vertexXY:r,vertexZ:s,vertexM:i,partCount:n,partOffsets:a,partFlags:o,hasZ:l,hasM:h}){let u=new p.A([],[],l,h);n=Math.max(n,1);let d=0;for(let e=0;e<n;++e){let n=a?.[e+1]??t,c=u.coords.length;for(let e=d;e<n;++e)u.coords.push(r[2*e],r[2*e+1]),l&&u.coords.push(s[e]),h&&u.coords.push(i[e]);if(o&&1&o[e]){let e=d;u.coords.push(r[2*e],r[2*e+1]),l&&u.coords.push(s[e]),h&&u.coords.push(i[e])}u.lengths.push((u.coords.length-c)/u.stride),d=n}return"point"===e&&(u.lengths.length=0),u}function S(...e){let t=new Set;for(let r of e){if(!r)continue;let e=[r.vertexXY,r.vertexZ,r.vertexM,r.partOffsets,r.partFlags,r.segmentFlags,r.segmentIndices,r.segmentParams];for(let r of e){let e=r?.buffer;e&&t.add(e)}}return Array.from(t)}function w(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;let t=e.getText()||void 0,r=e.isCustomWkid()?0:e.getOldID();if(r<=0)return{wkt:t};let s=e.getLatestID();(s<=0||s===r)&&(s=void 0);let i=e.getVCS();if(null==i)return{wkid:r,latestWkid:s,wkt:t};let n=i.isCustomWkid()?0:i.getOldID();if(n<=0)return{wkt:t};let a=e.getLatestVerticalID();return(a<=0||a===n)&&(a=void 0),{wkid:r,wkt:t,latestWkid:s,vcsWkid:n,latestVcsWkid:a}}(e.getSpatialReference()),e=e.getGeometry()),new m({...e.toFlatGeometry(),spatialReference:t})}class T{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(let r of t)e[r]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function A({spatialReference:e}){return e instanceof i.A?e.toJSON():e}function F({vertexXY:e,vertexZ:t,vertexM:r}){return t?r?s=>[e[2*s],e[2*s+1],t[s],r[s]]:r=>[e[2*r],e[2*r+1],t[r]]:r?t=>[e[2*t],e[2*t+1],r[t]]:t=>[e[2*t],e[2*t+1]]}function O(e,t){return e.every((e,r)=>e===t[r])}function E(e,t,r,s,i,n,a,o){a??=0,o??=0;let l=new m({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o}),h=2*Float64Array.BYTES_PER_ELEMENT*t;s&&(h+=Float64Array.BYTES_PER_ELEMENT*t),i&&(h+=Float64Array.BYTES_PER_ELEMENT*t),l.isMultipart()&&(h+=(r+1)*Int32Array.BYTES_PER_ELEMENT,h+=(r+1)*Int8Array.BYTES_PER_ELEMENT),n&&(h+=t*Int8Array.BYTES_PER_ELEMENT,h+=t*Int32Array.BYTES_PER_ELEMENT,h+=l.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);let u=new ArrayBuffer(h),d=0;return l.vertexXY=new Float64Array(u,d,2*t),d+=l.vertexXY.byteLength,s&&(l.vertexZ=new Float64Array(u,d,t),d+=l.vertexZ.byteLength),i&&(l.vertexM=new Float64Array(u,d,t),d+=l.vertexM.byteLength),n&&(l.segmentParams=new Float64Array(u,d,l.segmentParamCount),d+=l.segmentParams.byteLength,l.segmentIndices=new Int32Array(u,d,t),l.segmentIndices.fill(Z),d+=l.segmentIndices.byteLength),l.isMultipart()&&(l.partOffsets=new Int32Array(u,d,r+1),d+=l.partOffsets.byteLength,l.partFlags=new Int8Array(u,d,r+1),d+=l.partFlags.byteLength,"polygon"===l.type&&l.partFlags.subarray(0,r).fill(1)),n&&(l.segmentFlags=new Int8Array(u,d,t),l.segmentFlags.fill(1),d+=l.segmentFlags.byteLength),l}function N(e,t,{segmentFlags:r,segmentIndices:s,segmentParams:i},n,a){r[n]=4,s[n]=a;let[o,[l,h],u,d,c,p,m]=t.a,g=4;d||(g|=1),u||(g|=2);let _=(0,f.SW)(e,t),[y,v]=(0,f.Uk)(_,.5);return i[a++]=g,i[a++]=p,i[a++]=m,i[a++]=c,i[a++]=l,i[a++]=h,i[a++]=_.u2-_.u1,i[a++]=_.u1,i[a++]=y,i[a++]=v,a}function P(e,t,{segmentFlags:r,segmentIndices:s,segmentParams:i},n,a){r[n]=4,s[n]=a;let o=(0,c.io)(e,t);return D(o,4,...(0,l.mq)(o,.5),i,a)}function R(e,t,{segmentFlags:r,segmentIndices:s,segmentParams:i},n,a){return r[n]=4,s[n]=a,D((0,h.pM)(e,t),0,...t.c[1],i,a)}function D(e,t,r,s,i,n){let{cx:a,cy:o,thetaStart:l,thetaEnd:h,radius:u}=e;return l>h||(t|=1),Math.abs(h-l)<=Math.PI||(t|=2),i[n++]=t,i[n++]=u,i[n++]=1,i[n++]=0,i[n++]=a,i[n++]=o,i[n++]=h-l,i[n++]=l,i[n++]=r,i[n++]=s,n}function k(e,{b:[t,[r,s],[i,n]]},{segmentFlags:a,segmentIndices:o,segmentParams:l},h,u){return a[h]=2,o[h]=u,l[u++]=r,l[u++]=s,l[u++]=i,l[u++]=n,u}const B=1.61803,Z=-1},48526(e,t,r){r.d(t,{A:()=>g});var s,i=r(32198),n=r(4576),a=r(4718),o=r(91429),l=r(5443),h=r(91075),u=r(86738),d=r(16930),c=r(90634),f=r(47610),p=r(56993),m=r(43937);let g=s=class extends h.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:r,hasZ:s,spatialReference:i}=e;switch(t??=[],t?.at(0)?.length){case 4:s??=!0,r??=!0;break;case 3:s??=!0!==r,r??=!s;break;default:s??=!1,r??=!1}return i??=d.A.WGS84,{...e,hasM:r,hasZ:s,points:t,spatialReference:i}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let e=(0,c.ge)(this);return e?new l.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,a.o8)(this.points)}clone(){let{points:e,spatialReference:t,hasM:r,hasZ:i}=this;return new s({points:(0,a.o8)(e),spatialReference:t.clone(),hasM:r,hasZ:i})}equals(e){if(this===e)return!0;if(null==e)return!1;let t=this.spatialReference,r=e.spatialReference;return!(null!=t!=(null!=r)||null!=t&&null!=r&&!t.equals(r))&&(0,n.aI)(this.points,e.points,f.v6)}addPoint(e){return(0,p.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;let t=this.points[e],r={x:t[0],y:t[1],spatialReference:this.spatialReference},s=2;return this.hasZ&&(r.z=t[2],s=3),this.hasM&&(r.m=t[s]),new u.A(r)}removePoint(e){if(!this._validateInputs(e))return null;let t=new u.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)&&((0,p.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points")),this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],g.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],g.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],g.prototype,"points",void 0),(0,i.Cg)([(0,m.K)("points")],g.prototype,"writePoints",null),g=s=(0,i.Cg)([(0,o.$K)("esri.geometry.Multipoint")],g),g.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,r){r.d(t,{A:()=>p});var s,i=r(32198),n=r(4718),a=r(91429),o=r(5443),l=r(91075),h=r(86738),u=r(16930),d=r(90634),c=r(56993),f=r(43937);let p=s=class extends l.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:r,hasZ:s,spatialReference:i}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:s??=!0,r??=!0;break;case 3:s??=!0!==r,r??=!s;break;default:s??=!1,r??=!1}return i??=u.A.WGS84,{...e,hasM:r,hasZ:s,paths:t,spatialReference:i}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,n.o8)(e)}get extent(){let e=(0,d.Z3)(this),{spatialReference:t}=this;return e?new o.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,n.o8)(this.paths)}addPath(e){if(!e)return;let t=this.paths,r=t.length;if(function(e){return!Array.isArray(e[0])}(e)){let s=[];for(let t=0,r=e.length;t<r;t++)s[t]=e[t].toArray();t[r]=s}else t[r]=e.slice();return this.notifyChange("paths"),this}clone(){let e=new s;return e.spatialReference=this.spatialReference,e.paths=(0,n.o8)(this.paths),e.curvePaths=(0,n.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;let r=this.paths[e][t],s=this.hasZ,i=this.hasM;return s&&!i?new h.A(r[0],r[1],r[2],void 0,this.spatialReference):i&&!s?new h.A(r[0],r[1],void 0,r[2],this.spatialReference):s&&i?new h.A(r[0],r[1],r[2],r[3],this.spatialReference):new h.A(r[0],r[1],this.spatialReference)}insertPoint(e,t,r){return this._validateInputs(e,t,!0)&&((0,c.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e].splice(t,0,r),this.notifyChange("paths")),this}removePath(e){if(!this._validateInputs(e,null))return null;let t=this.paths.splice(e,1)[0],r=this.spatialReference,s=t.map(e=>new h.A(e,r));return this.notifyChange("paths"),s}removePoint(e,t){if(!this._validateInputs(e,t))return null;let r=new h.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),r}setPoint(e,t,r){return this._validateInputs(e,t)&&((0,c.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e][t]=r,this.notifyChange("paths")),this}_validateInputs(e,t,r=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){let s=this.paths[e];if(r&&(t<0||t>s.length)||!r&&(t<0||t>=s.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],p.prototype,"cache",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],p.prototype,"curvePaths",void 0),(0,i.Cg)([(0,f.K)("curvePaths")],p.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],p.prototype,"extent",null),(0,i.Cg)([(0,a.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],p.prototype,"paths",void 0),(0,i.Cg)([(0,f.K)("paths")],p.prototype,"writePaths",null),p=s=(0,i.Cg)([(0,a.$K)("esri.geometry.Polyline")],p),p.prototype.toJSON.isDefaultToJSON=!0},60408(e,t,r){function s(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function i(e){return void 0!==e.points}function n(e){return void 0!==e.x&&void 0!==e.y}function a(e){return void 0!==e.paths||void 0!==e.curvePaths}function o(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function h(e){return e?n(e)?"esriGeometryPoint":a(e)?"esriGeometryPolyline":o(e)?"esriGeometryPolygon":s(e)?"esriGeometryEnvelope":i(e)?"esriGeometryMultipoint":null:null}function u(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function d(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}r.d(t,{$B:()=>h,Bi:()=>o,Pv:()=>u,Rg:()=>a,U9:()=>i,W0:()=>d,ZC:()=>s,fT:()=>n,uW:()=>l})},65864(e,t,r){r.d(t,{rS:()=>u,xD:()=>c});var s=r(5443),i=r(91075),n=r(48526),a=r(86738),o=r(39829),l=r(82799),h=r(60408);function u(e){return null==e?null:e instanceof i.A?e:(0,h.fT)(e)?a.A.fromJSON(e):(0,h.Rg)(e)?l.A.fromJSON(e):(0,h.Bi)(e)?o.A.fromJSON(e):(0,h.U9)(e)?n.A.fromJSON(e):(0,h.ZC)(e)?s.A.fromJSON(e):null}const d={esriGeometryPoint:a.A,esriGeometryPolyline:l.A,esriGeometryPolygon:o.A,esriGeometryEnvelope:s.A,esriGeometryMultipoint:n.A,esriGeometryMultiPatch:o.A};function c(e){return e&&d[e]||null}},97770(e,t,r){r.d(t,{Ey:()=>O,F8:()=>F,J2:()=>S,Yq:()=>T,_m:()=>w,iS:()=>A,wj:()=>E});var s=r(66552),i=r(73444),n=r(98623),a=r(34747);const o={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},h={timeZone:"UTC"},u={year:"numeric",month:"numeric",day:"numeric"},d={year:"numeric",month:"long",day:"numeric"},c={year:"numeric",month:"short",day:"numeric"},f={year:"numeric",month:"long",weekday:"long",day:"numeric"},p={hour:"numeric",minute:"numeric"},m={...p,second:"numeric"},g={hourCycle:"h23"},_={...p,...g},y={...m,...g},v={"short-date":u,"short-date-short-time":{...u,...p},"short-date-short-time-24":{...u,..._},"short-date-long-time":{...u,...m},"short-date-long-time-24":{...u,...y},"short-date-le":u,"short-date-le-short-time":{...u,...p},"short-date-le-short-time-24":{...u,..._},"short-date-le-long-time":{...u,...m},"short-date-le-long-time-24":{...u,...y},"long-month-day-year":d,"long-month-day-year-short-time":{...d,...p},"long-month-day-year-short-time-24":{...d,..._},"long-month-day-year-long-time":{...d,...m},"long-month-day-year-long-time-24":{...d,...y},"day-short-month-year":c,"day-short-month-year-short-time":{...c,...p},"day-short-month-year-short-time-24":{...c,..._},"day-short-month-year-long-time":{...c,...m},"day-short-month-year-long-time-24":{...c,...y},"long-date":f,"long-date-short-time":{...f,...p},"long-date-short-time-24":{...f,..._},"long-date-long-time":{...f,...m},"long-date-long-time-24":{...f,...y},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":p,"long-time":m},x=(0,s.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),b={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function I(){let e=(0,i.lR)();return(e&&b[e])??(0,i.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:e})=>"month"===e)?.value.toLowerCase()&&(b.bs="sr-Latn-CS");let M=new WeakMap;const C=v["short-date-short-time"];function S(e){return v[e]}function w(e){let{dateStyle:t,timeStyle:r,hour12:s,year:i,month:n}=e,a={};return t?a.dateStyle=t:i&&(a.year=i,a.month=n||void 0),r&&!a.year&&(a.timeStyle=r,a.hour12="auto"===s?void 0:"always"===s),a}function T(e,t=C){return function(e){let t=M.get(e);if(!t){let r=I(),s=E(e.timeZone??"system"),i={...e,timeZone:s};t=new Intl.DateTimeFormat(r,i),M.set(e,t)}return t}(t).format(e)}function A(e,t=C){return T(new Date(e),{...t,...h,...l})}function F(e,t=C){return T(new Date(`1970-01-01T${e}Z`),{...t,...h,...o})}function O(e,t=C){let r=a.c9.fromISO(e,{setZone:!0});if(!r.isValid)return e;if(t.timeZone)return T(r.toJSDate(),t);let s=0===r.offset?"UTC":t.timeZone,i={...t,timeZone:s};return r.toLocaleString(i,{locale:I()})}function E(e){switch(e){case"system":return n.N;case n.L:return"UTC";default:return e}}(0,i.Ml)(()=>{M=new WeakMap}),r.d(t,["_v",0,x])},73444(e,t,r){r.d(t,{JK:()=>l,Ml:()=>g,QC:()=>d,lR:()=>u,oQ:()=>p});var s=r(36563);let i;r(44208);const n=globalThis.esriConfig?.locale,a=globalThis.document?.documentElement;function o(){let e=a?.getAttribute("lang"),t=globalThis.navigator?.language;return n??e??t??"en"}function l(){return void 0===i&&(i=o()),i}const h=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function u(e=l()){return c(e)?.language}function d(e=l()){let t=c(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function c(e=l()){return h.exec(e)?.groups}const f=[];function p(e){return f.push(e),(0,s.hA)(()=>{f.splice(f.indexOf(e),1)})}new Map;const m=[];function g(e){return m.push(e),(0,s.hA)(()=>m.splice(m.indexOf(e),1))}function _(){let e=o();i!==e&&([...m].forEach(t=>t(e)),i=e,[...f].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",_),a&&new MutationObserver(()=>{_()}).observe(a,{attributeFilter:["lang"]})},64714(e,t,r){r.d(t,{F0:()=>o,Vx:()=>u,e2:()=>c,f:()=>m});var s=r(44208),i=r(4718),n=r(99352),a=r(93470);function o(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?a.Cb:"esriGeometryPolyline"===e?a.yM:a.WR}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let h=1;function u(e,t){if((0,s.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let r="";t&&(r+=`this${d(t)} = null;`);for(let t in e)r+=`this${d(t)} = ${JSON.stringify(e[t])};`;let s=Function(`\n return class AttributesClass$${h++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new s}catch{return()=>t?{[t]:null,...e}:{...e}}}function d(e){return l.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,i.o8)(e)}}]}const f={...n.F,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!1,supportsDistance:!1,supportsExtent:!1,supportsQuantization:!1,supportsQueryGeometry:!1,supportsDisjointSpatialRelationship:!1},p={...n.P,supportedStatistics:{...n.P.supportedStatistics,envelope:!1,centroid:!1,convexHull:!1}};function m(e,t,r=!1){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:r?f:n.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:r?p:n.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},17754(e,t,r){r.d(t,{gE:()=>n,wY:()=>i,xb:()=>a});const s=2**32;function i(e){return Math.floor(e/s)%65536}function n(e){return e%s}function a(e,t){return e*s+t}},39357(e,t,r){r.d(t,{A:()=>o});var s,i=r(32198),n=r(25482),a=r(91429);let o=s=class extends n.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new s({name:this.name,code:this.code})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:{isRequired:!0}}})],o.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],o.prototype,"code",void 0),o=s=(0,i.Cg)([(0,a.$K)("esri.layers.support.CodedValue")],o)},53177(e,t,r){r.d(t,{A:()=>u});var s,i=r(32198),n=r(4718),a=r(91429),o=r(39357),l=r(76357),h=r(93223);let u=class extends l.A{static{s=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){let r=String(e);this.codedValues.some(e=>(String(e.code)===r&&(t=e.name),!!t))}return t}clone(){return new s({codedValues:(0,n.o8)(this.codedValues),name:this.name})}};(0,i.Cg)([(0,a.MZ)({type:[o.A],json:{write:{isRequired:!0}}})],u.prototype,"codedValues",void 0),(0,i.Cg)([(0,h.e)({codedValue:"coded-value"})],u.prototype,"type",void 0),u=s=(0,i.Cg)([(0,a.$K)("esri.layers.support.CodedValueDomain")],u)},76357(e,t,r){r.d(t,{A:()=>h});var s=r(32198),i=r(66552),n=r(25482),a=r(91429),o=r(93223);const l=new i.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let h=class extends n.o{constructor(e){super(e),this.name=null,this.type=null}};(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,s.Cg)([(0,o.e)(l),(0,a.MZ)({json:{write:{isRequired:!0}}})],h.prototype,"type",void 0),h=(0,s.Cg)([(0,a.$K)("esri.layers.support.Domain")],h)},20437(e,t,r){r.d(t,{A:()=>p});var s,i=r(32198),n=r(66552),a=r(25482),o=r(91429),l=r(78888),h=r(8631),u=r(98453),d=r(36005),c=r(93223);const f=new n.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",marginOfError:"margin-of-error",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier",url:"url"});let p=class extends a.o{static{s=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch{}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch{}return r?f.fromJSON(r.fieldValueType):null}clone(){return new s({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],p.prototype,"alias",void 0),(0,i.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],p.prototype,"defaultValue",void 0),(0,i.Cg)([(0,o.MZ)()],p.prototype,"description",void 0),(0,i.Cg)([(0,d.w)("description")],p.prototype,"readDescription",null),(0,i.Cg)([(0,o.MZ)({types:h.g,json:{read:{reader:h.r},write:!0}})],p.prototype,"domain",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],p.prototype,"editable",void 0),(0,i.Cg)([(0,o.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],p.prototype,"length",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],p.prototype,"nullable",void 0),(0,i.Cg)([(0,c.e)(u.m)],p.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)()],p.prototype,"valueType",void 0),(0,i.Cg)([(0,d.w)("valueType",["description"])],p.prototype,"readValueType",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{read:!1}})],p.prototype,"visible",void 0),p=s=(0,i.Cg)([(0,o.$K)("esri.layers.support.Field")],p)},95466(e,t,r){r.d(t,{A:()=>h});var s=r(49186),i=r(53966),n=r(12195),a=r(30524),o=r(98623),l=r(56400);class h{static fromJSON(e){return new h(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new h(e.fields??[],d(e))}static fromLayerJSON(e){return new h(e.fields??[],d(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;let r=[];for(let e of this.fields){let t=e?.name,s=(0,a.GZ)(t);if(t&&s){let i=(0,a.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(i,e),this._normalizedFieldsMap.set(s,e),r.push(`${i}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),!(0,a.te)(e)&&!(0,a.Xz)(e)&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}r.sort(),this.uid=r.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(let e of this.fields)(0,a.te)(e)||(0,a.Xz)(e)||e.nullable||void 0!==(0,a.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,a.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){let t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(i.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new s.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):u.has(t.type)?o.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,n.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const u=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function d(e){let t=new Map;if(!e.fields)return t;let r=!0===e.datesInUnknownTimezone,{timeInfo:s,editFieldsInfo:i}=e,n=(s?"startField"in s?s.startField:s.startTimeField:"")??"",h=(s?"endField"in s?s.endField:s.endTimeField:"")??"",d=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,l.ZS)(e.dateFieldsTimeReference):null,c=i?function(e){return"timeZone"in e}(i)?i.timeZone??d:i.dateFieldsTimeReference?(0,l.ZS)(i.dateFieldsTimeReference):d??"UTC":null,f=s?function(e){return"timeZone"in e}(s)?s.timeZone??d:s.timeReference?(0,l.ZS)(s.timeReference):d:null,p=new Map([[(0,a.NF)(i?.creationDateField??""),c],[(0,a.NF)(i?.editDateField??""),c],[(0,a.NF)(n),f],[(0,a.NF)(h),f]]);for(let{name:s,type:i}of e.fields)if(u.has(i))t.set(s,o.L);else if("date"!==i&&"esriFieldTypeDate"!==i)t.set(s,null);else if(r)t.set(s,o.L);else{let e=p.get((0,a.NF)(s??""))??d;t.set(s,e)}return t}},41628(e,t,r){r.d(t,{A:()=>l});var s,i=r(32198),n=r(91429),a=r(76357),o=r(93223);let l=class extends a.A{static{s=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new s({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i.Cg)([(0,n.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]},isRequired:!0}}})],l.prototype,"maxValue",void 0),(0,i.Cg)([(0,n.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]},isRequired:!0}}})],l.prototype,"minValue",void 0),(0,i.Cg)([(0,o.e)({range:"range"})],l.prototype,"type",void 0),l=s=(0,i.Cg)([(0,n.$K)("esri.layers.support.RangeDomain")],l)},8631(e,t,r){r.d(t,{r:()=>c,g:()=>d});var s,i=r(53177),n=r(76357),a=r(32198),o=r(91429),l=r(93223);let h=class extends n.A{static{s=this}constructor(e){super(e),this.type="inherited"}clone(){return new s}};(0,a.Cg)([(0,l.e)({inherited:"inherited"})],h.prototype,"type",void 0),h=s=(0,a.Cg)([(0,o.$K)("esri.layers.support.InheritedDomain")],h);var u=r(41628);const d={key:"type",base:n.A,typeMap:{range:u.A,"coded-value":i.A,inherited:h}};function c(e){if(!e?.type)return null;switch(e.type){case"range":return u.A.fromJSON(e);case"codedValue":return i.A.fromJSON(e);case"inherited":return h.fromJSON(e)}return null}},98453(e,t,r){const s=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"});r.d(t,["m",0,s])},50115(e,t,r){r.d(t,{OP:()=>a,V4:()=>i,rZ:()=>n}),r(44208);var s=r(53966);function i(e,t,r){if(null==e)return null;let i=t.readArcadeFeature();t.contextTimeZone=r.$view?.timeZone;try{return e.evaluate(i,r)}catch(e){return s.A.getLogger("esri.views.2d.support.arcadeOnDemand").warn("Feature arcade evaluation failed:",e),null}}function n(e){return null==e||e===1/0||e===-1/0||"number"==typeof e&&isNaN(e)}function a(e,t,r,s){if(null==e)return s??null;let i=t.readArcadeFeature();t.contextTimeZone=r.$view?.timeZone;let a=e.evaluate(i,r);return n(a)?s??null:a}},30661(e,t,r){r.d(t,{Z:()=>n});var s=r(43334),i=r(8446);class n{static{this.Shared=new n}getObjectId(e){return e.getObjectId()}getAttributes(e){return e.readAttributes()}getAttribute(e,t){return e.readAttribute(t)}getAttributeAsTimestamp(e,t){return e.readAttributeAsTimestamp(t)}cloneWithGeometry(e,t,r){let n=e.readAttributes(),a=new s.Om(t,n,null,e.getObjectId(),e.getDisplayId()),o=i.K.fromOptimizedFeatures([a],e.metadata);return o.setIndex(0),o}getGeometry(e){return e.readGeometryWorldSpace()}getCentroid(e,t){return e.readCentroidForDisplay()}}},63664(e,t,r){r.d(t,{B:()=>s});class s{constructor(e){this._statistics=e}get statistics(){return this._statistics}}},38976(e,t,r){r.d(t,{n:()=>s});class s{constructor(e){this.options=e}get hash(){return this.options.hash}}},92029(e,t,r){r.d(t,{o:()=>n});var s=r(50115);const i=Math.PI/180;class n{static create(e){return new n(e.map(e=>function(e){switch(e.statisticType){case"min":return new o(e);case"max":return new l(e);case"avg":return new u(e);case"avg_angle":return new d(e);case"sum":case"count":return new h(e);case"mode":return new c(e)}}(e)))}constructor(e){this._statistics=e}static get estimatedMemory(){return 160}values(){return this._statistics.values()}insert(e,t){for(let r of this._statistics)r.insert(e,t)}merge(e){for(let t=0;t<this._statistics.length;t++){let r=this._statistics[t],s=e._statistics[t];if(r.field.name!==s.field.name)throw Error("InternalError: Tried to merge incompatible statistics");r.merge(s)}}clone(){return new n(this._statistics.map(e=>e.clone()))}}class a{constructor(e){this.field=e}insert(e,t){if(!this.field.computed)return;let r=this.field.computed.read(e,t);(0,s.rZ)(r)||this._insertValue(r)}}class o extends a{constructor(){super(...arguments),this.type="min",this.value=Number.MAX_VALUE}_insertValue(e){this.value=Math.min(this.value,e)}merge(e){this.value=Math.min(this.value,e.value)}clone(){let e=new o(this.field);return e.value=this.value,e}}class l extends a{constructor(){super(...arguments),this.type="max",this.value=Number.MIN_VALUE}_insertValue(e){this.value=Math.max(this.value,e)}merge(e){this.value=Math.max(this.value,e.value)}clone(){let e=new l(this.field);return e.value=this.value,e}}class h extends a{constructor(){super(...arguments),this.type="sum",this.value=0}_insertValue(e){this.value+=e}merge(e){this.value+=e.value}clone(){let e=new h(this.field);return e.value=this.value,e}}class u extends a{constructor(){super(...arguments),this.type="avg",this._total=0,this._count=0}get value(){return this._total/this._count}_insertValue(e){this._total+=e,this._count+=1}merge(e){this._total+=e._total,this._count+=e._count}clone(){let e=new u(this.field);return e._total=this._total,e._count=this._count,e}}class d extends a{constructor(){super(...arguments),this.type="avg_angle",this._x=0,this._y=0,this._count=0}get value(){let e=this._x/this._count,t=this._y/this._count;return 180/Math.PI*Math.atan2(t,e)}_insertValue(e){this._x+=Math.cos(e*i),this._y+=Math.sin(e*i),this._count+=1}merge(e){this._x+=e._x,this._y+=e._y,this._count+=e._count}clone(){let e=new d(this.field);return e._x=this._x,e._y=this._y,e._count=this._count,e}}class c extends a{constructor(){super(...arguments),this._frequencies=new Map}get value(){let e,t=0;for(let[r,s]of this._frequencies.entries())s>t&&(t=s,e=r);return e}_insertValue(e){let t=this._frequencies.get(e);null==t?this._frequencies.set(e,1):this._frequencies.set(e,t+1)}merge(e){for(let[t,r]of e._frequencies.entries()){let e=this._frequencies.get(t);null==e?this._frequencies.set(t,r):this._frequencies.set(t,e+r)}}clone(){let e=new c(this.field);return e._frequencies=new Map(this._frequencies),e}}},75538(e,t,r){r.d(t,{L:()=>o});var s=r(90708),i=r(92722),n=r(63664),a=r(92029);class o extends n.B{static createId(e,t){return`${e}.${t}`}static create(e,t,r,s){return new o(e,t,a.o.create(r),s)}constructor(e,t,r,s){super(r),this.gridX=e,this.gridY=t,this._worldUnitsPerCell=s,this._count=0,this._xWorldTotal=0,this._yWorldTotal=0,this._objectIds=[new Set]}get id(){return o.createId(this.gridX,this.gridY)}get containedObjectIds(){return this._objectIds}get count(){return this._count}get firstObjectId(){return this._objectIds[0].values().next().value}get centroidXWorld(){return this._xWorldTotal/this._count}get centroidYWorld(){return this._yWorldTotal/this._count}get usedMemory(){return 48}clone(){let e=new o(this.gridX,this.gridY,this._statistics.clone(),this._worldUnitsPerCell);return e._count=this._count,e._xWorldTotal=this._xWorldTotal,e._yWorldTotal=this._yWorldTotal,e._firstFeatureAttributes=this._firstFeatureAttributes,e._objectIds=this._objectIds.map(e=>new Set(e)),e}insert(e,t){let r=0,s=0;if("esriGeometryPoint"===e.geometryType)r=e.readXWorldSpace(),s=e.readYWorldSpace();else{let t=e.readCentroidWorldSpace();if(null==t)return;[r,s]=t.coords}this._firstFeatureAttributes=0===this._count?e.readAttributes():null,this._count+=1,this._xWorldTotal+=r,this._yWorldTotal+=s,this._statistics.insert(e,t),this._objectIds[0].add(e.getObjectId())}merge(e){0!==e._count&&(this._count+=e._count,this._firstFeatureAttributes=e._firstFeatureAttributes,this._xWorldTotal+=e._xWorldTotal,this._yWorldTotal+=e._yWorldTotal,this._statistics.merge(e._statistics),this._objectIds.push(...e._objectIds))}getCentroidX(e){return null==e?this.centroidXWorld:(0,s.IE)(e,this.centroidXWorld)}getCentroidY(e){return null==e?this.centroidYWorld:(0,s.B2)(e,this.centroidYWorld)}getGeometry(e,t){let r=this.gridX*this._worldUnitsPerCell,n=this.gridY*this._worldUnitsPerCell,a=new i.A([4],[r,n,r+this._worldUnitsPerCell,n,r+this._worldUnitsPerCell,n+this._worldUnitsPerCell,r,n+this._worldUnitsPerCell]);return null==t?a:(0,s.Nl)(a,"esriGeometryPolygon",t)}getCentroid(e){let t=new i.A([],[this.centroidXWorld,this.centroidYWorld]);return null==e?t:(0,s.Nl)(t,"esriGeometryPoint",e)}getGeometricCentroid(e,t){let r=this.gridX*this._worldUnitsPerCell+.5*this._worldUnitsPerCell,n=this.gridY*this._worldUnitsPerCell+.5*this._worldUnitsPerCell,a=new i.A([],[r,n]);return null==t?a:(0,s.Nl)(a,"esriGeometryPoint",t)}getAttributes(){let e={aggregateId:this.id};for(let t of this._statistics.values())e[t.field.name]=t.value;return null==this._firstFeatureAttributes?e:{...e,...this._firstFeatureAttributes}}}},24506(e,t,r){r.d(t,{H:()=>u,p:()=>h});var s=r(91869),i=r(86211),n=r(38976),a=r(75538);class o{static createId(e,t){return`${e}.${t}`}constructor(e,t){this.gridX=e,this.gridY=t,this._indices=[],this.id=o.createId(e,t)}push(e){this._indices.push(e)}}var l=r(9012);function h(e,t){return 39.37*(0,i.GA)(e)*96/t}class u extends n.n{constructor(e,t){super(e),this._reader=t,this._cells=new Map,this._pixelsPerMapUnit=h(e.inner.spatialReference,e.inner.scale),this.insert(this._reader)}get worldUnitsPerCell(){return 1*this.options.inner.cellSize/this._pixelsPerMapUnit}insert(e){let t=e.getCursor();for(;t.next();){let e=t,{featureFilter:r,sqlOptions:s,cellSize:i}=this.options.inner;if(null!==r&&!r.check(e,s))continue;let n=0,a=0;if("esriGeometryPoint"===e.geometryType)n=e.readXWorldSpace(),a=e.readYWorldSpace();else{let t=e.readCentroidWorldSpace();if(null==t)continue;[n,a]=t.coords}let o=n*this._pixelsPerMapUnit,l=a*this._pixelsPerMapUnit,h=Math.floor(o/i),u=Math.floor(l/i);this._getCellOrCreate(h,u).push(t.getIndex())}}get usedMemory(){return 0}forEachInCell(e,t){let r=this._cells.get(e);if(r)for(let e of r._indices)this._reader.setIndex(e),t(this._reader)}put(e,t){let{arcadeContextInfo:r,scale:i,fields:n}=this.options.inner,o=(0,l.N)(i,r);this._cells.forEach(r=>{let i=null;for(let l of r._indices){this._reader.setIndex(l);let h=this._reader.getObjectId();t.has(h)||(i??=(0,s.tE)(e,r.id,()=>a.L.create(r.gridX,r.gridY,n,this.worldUnitsPerCell)),i.insert(this._reader,o),t.add(h))}})}putBounded(e,t,r,i){let{arcadeContextInfo:n,scale:o,cellSize:h,fields:u}=this.options.inner,d=(0,l.N)(o,n),[c,f,p,m]=[r.xmin,r.ymin,r.xmax,r.ymax],g=Math.floor(c*this._pixelsPerMapUnit/h),_=Math.floor(f*this._pixelsPerMapUnit/h),y=Math.ceil(p*this._pixelsPerMapUnit/h),v=Math.ceil(m*this._pixelsPerMapUnit/h);for(let r=_;r<=v;r++)for(let i=g;i<=y;i++){let n=a.L.createId(i,r),o=this._cells.get(n);if(!o)continue;let l=null;for(let n of o._indices){this._reader.setIndex(n);let h=this._reader.getObjectId();t.has(h)||(l??=(0,s.tE)(e,o.id,()=>a.L.create(i,r,u,this.worldUnitsPerCell)),l.insert(this._reader,d),t.add(h))}}}_getCellOrCreate(e,t){let r=o.createId(e,t),s=this._cells.get(r);return s||(s=new o(e,t),this._cells.set(r,s)),s}}},70300(e,t,r){r.d(t,{K:()=>X});var s=r(11006);function i(e,t){if(!(this instanceof i))return new i(e,t);this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this.toBBox=t:this._initFormat(t)),this.clear()}function n(e,t,r){if(!r)return t.indexOf(e);for(var s=0;s<t.length;s++)if(r(e,t[s]))return s;return-1}function a(e,t){o(e,0,e.children.length,t,e)}function o(e,t,r,s,i){i||=_(null),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var n,a=t;a<r;a++)n=e.children[a],l(i,e.leaf?s(n):n);return i}function l(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function h(e,t){return e.minX-t.minX}function u(e,t){return e.minY-t.minY}function d(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function c(e){return e.maxX-e.minX+(e.maxY-e.minY)}function f(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function p(e,t){var r=Math.max(e.minX,t.minX),s=Math.max(e.minY,t.minY),i=Math.min(e.maxX,t.maxX),n=Math.min(e.maxY,t.maxY);return Math.max(0,i-r)*Math.max(0,n-s)}function m(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function g(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function _(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function y(e,t,r,i,n){for(var a,o=[t,r];o.length;)!((r=o.pop())-(t=o.pop())<=i)&&(a=t+Math.ceil((r-t)/i/2)*i,(0,s.q)(e,a,t,r,n),o.push(t,a,a,r))}i.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,r=[],s=this.toBBox;if(!g(e,t))return r;for(var i,n,a,o,l=[];t;){for(i=0,n=t.children.length;i<n;i++)a=t.children[i],g(e,o=t.leaf?s(a):a)&&(t.leaf?r.push(a):m(e,o)?this._all(a,r):l.push(a));t=l.pop()}return r},collides:function(e){var t=this.data,r=this.toBBox;if(!g(e,t))return!1;for(var s,i,n,a,o=[];t;){for(s=0,i=t.children.length;s<i;s++)if(n=t.children[s],g(e,a=t.leaf?r(n):n)){if(t.leaf||m(e,a))return!0;o.push(n)}t=o.pop()}return!1},load:function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0,r=e.length;t<r;t++)this.insert(e[t]);return this}var s=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===s.height)this._splitRoot(this.data,s);else{if(this.data.height<s.height){var i=this.data;this.data=s,s=i}this._insert(s,this.data.height-s.height-1,!0)}else this.data=s;return this},insert:function(e){return null!=e&&this._insert(e,this.data.height-1),this},clear:function(){return this.data=_([]),this},remove:function(e,t){if(null==e)return this;for(var r,s,i,a,o=this.data,l=this.toBBox(e),h=[],u=[];o||h.length;){if(o||(o=h.pop(),s=h[h.length-1],r=u.pop(),a=!0),o.leaf&&-1!==(i=n(e,o.children,t)))return o.children.splice(i,1),h.push(o),this._condense(h),this;a||o.leaf||!m(o,l)?s?(r++,o=s.children[r],a=!1):o=null:(h.push(o),u.push(r),r=0,s=o,o=o.children[0])}return this},toBBox:function(e){return e},compareMinX:h,compareMinY:u,toJSON:function(){return this.data},fromJSON:function(e){return this.data=e,this},_all:function(e,t){for(var r=[];e;)e.leaf?t.push.apply(t,e.children):r.push.apply(r,e.children),e=r.pop();return t},_build:function(e,t,r,s){var i,n=r-t+1,o=this._maxEntries;if(n<=o)return a(i=_(e.slice(t,r+1)),this.toBBox),i;s||(s=Math.ceil(Math.log(n)/Math.log(o)),o=Math.ceil(n/o**(s-1))),(i=_([])).leaf=!1,i.height=s;var l,h,u,d,c=Math.ceil(n/o),f=c*Math.ceil(Math.sqrt(o));for(y(e,t,r,f,this.compareMinX),l=t;l<=r;l+=f)for(y(e,l,u=Math.min(l+f-1,r),c,this.compareMinY),h=l;h<=u;h+=c)d=Math.min(h+c-1,u),i.children.push(this._build(e,h,d,s-1));return a(i,this.toBBox),i},_chooseSubtree:function(e,t,r,s){for(var i,n,a,o,l,h,u,c;s.push(t),!t.leaf&&s.length-1!==r;){for(u=c=1/0,i=0,n=t.children.length;i<n;i++)l=d(a=t.children[i]),(h=f(e,a)-l)<c?(c=h,u=l<u?l:u,o=a):h===c&&l<u&&(u=l,o=a);t=o||t.children[0]}return t},_insert:function(e,t,r){var s=this.toBBox,i=r?e:s(e),n=[],a=this._chooseSubtree(i,this.data,t,n);for(a.children.push(e),l(a,i);t>=0&&n[t].children.length>this._maxEntries;)this._split(n,t),t--;this._adjustParentBBoxes(i,n,t)},_split:function(e,t){var r=e[t],s=r.children.length,i=this._minEntries;this._chooseSplitAxis(r,i,s);var n=this._chooseSplitIndex(r,i,s),o=_(r.children.splice(n,r.children.length-n));o.height=r.height,o.leaf=r.leaf,a(r,this.toBBox),a(o,this.toBBox),t?e[t-1].children.push(o):this._splitRoot(r,o)},_splitRoot:function(e,t){this.data=_([e,t]),this.data.height=e.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,r){var s,i,n,a,l,h,u,c=h=1/0;for(s=t;s<=r-t;s++)a=p(i=o(e,0,s,this.toBBox),n=o(e,s,r,this.toBBox)),l=d(i)+d(n),a<c?(c=a,u=s,h=l<h?l:h):a===c&&l<h&&(h=l,u=s);return u},_chooseSplitAxis:function(e,t,r){var s=e.leaf?this.compareMinX:h,i=e.leaf?this.compareMinY:u;this._allDistMargin(e,t,r,s)<this._allDistMargin(e,t,r,i)&&e.children.sort(s)},_allDistMargin:function(e,t,r,s){e.children.sort(s);for(var i,n=this.toBBox,a=o(e,0,t,n),h=o(e,r-t,r,n),u=c(a)+c(h),d=t;d<r-t;d++)i=e.children[d],l(a,e.leaf?n(i):i),u+=c(a);for(d=r-t-1;d>=t;d--)i=e.children[d],l(h,e.leaf?n(i):i),u+=c(h);return u},_adjustParentBBoxes:function(e,t,r){for(var s=r;s>=0;s--)l(t[s],e)},_condense:function(e){for(var t,r=e.length-1;r>=0;r--)0===e[r].children.length?r>0?(t=e[r-1].children).splice(t.indexOf(e[r]),1):this.clear():a(e[r],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=Function("a","b",t.join(e[0])),this.compareMinY=Function("a","b",t.join(e[1])),this.toBBox=Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}};var v=r(70328);class x{static fromReader(e){let t=[],r=e.copy(),s=(0,v.vt)();for(;r.next();)r.getBounds(s)&&t.push(r.getIndex());let n=i(9,e=>(r.setIndex(e),{minX:r.getBoundsXMin(),minY:r.getBoundsYMin(),maxX:r.getBoundsXMax(),maxY:r.getBoundsYMax()}));return n.load(t),new x(n,t.length)}constructor(e,t){this._index=e,this._size=t}get usedMemory(){return 16*this._size}search(e){let t={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]};return this._index.search(t)}}var b=r(91869),I=(r(44208),r(34727)),M=(r(37585),r(48163)),C=r(39829),S=r(16930),w=r(19419),T=r(79258),A=r(90708),F=r(31464);function O(e,t,r,s){if(s.isWebMercator){let s=(0,I.KJ)(e/T.$O.radius),i=s-360*Math.floor((s+180)/360),n=[0,0];return E(n,0,(0,I.KJ)(Math.PI/2-2*Math.atan(Math.exp(-t/T.$O.radius))),i,r),n}let i=(0,F.Cv)({x:e,y:t},s,S.A.WGS84);if(!i)return null;let n=[0,0];return E(n,0,i.y,i.x,r),n}function E(e,t,r,s,i){i%2&&(i+=1);let n=0,a=0,o=-90,l=90,h=-180,u=180;for(let e=0;e<i/2;e++){for(let t=0;t<5;t++){let r=(h+u)/2,i=+(s>r);n|=i<<29-(t+5*e),h=(1-i)*h+i*r,u=(1-i)*r+i*u}for(let t=0;t<5;t++){let s=(o+l)/2,i=+(r>s);a|=i<<29-(t+5*e),o=(1-i)*o+i*s,l=(1-i)*s+i*l}}e[2*t]=n,e[2*t+1]=a}(0,M.vt)(),(0,M.vt)();var N=r(63664),P=r(92029);class R extends N.B{static create(e,t,r,s){let i=P.o.create(e),n=Array(32);for(let e=0;e<n.length;e++)n[e]=null;return new R(i,t,r,s,n)}constructor(e,t,r,s,i){super(e),this.xNode=t,this.yNode=r,this.depth=s,this.children=i,this._objectIds=[new Set],this._count=0,this._xWorldTotal=0,this._yWorldTotal=0,this._xGeohashTotal=0,this._yGeohashTotal=0,this.next=null}static get estimatedMemory(){let e=0;return e+=64,e+=512,e+=P.o.estimatedMemory,e}get id(){return`${this.xNode}.${this.yNode}`}get containedObjectIds(){return this._objectIds}get count(){return this._count}clone(){let e=new R(this._statistics.clone(),this.xNode,this.yNode,this.depth,this.children);return e._count=this._count,e._xWorldTotal=this._xWorldTotal,e._yWorldTotal=this._yWorldTotal,e._xGeohashTotal=this._xGeohashTotal,e._yGeohashTotal=this._yGeohashTotal,e.next=this.next,e._objectIds=this._objectIds.map(e=>new Set(e)),e}insert(e,t,r,s){let i=0,n=0;if("esriGeometryPoint"===e.geometryType)i=e.readXWorldSpace(),n=e.readYWorldSpace();else{let t=e.readCentroidWorldSpace();if(null==t)return;[i,n]=t.coords}let a=O(i,n,t,r);a&&(this._count+=1,this._xWorldTotal+=i,this._yWorldTotal+=n,this._xGeohashTotal+=a[0],this._yGeohashTotal+=a[1],this._statistics.insert(e,s),this._objectIds[0].add(e.getObjectId()))}merge(e){0!==e._count&&(this._count+=e._count,this._xWorldTotal+=e._xWorldTotal,this._yWorldTotal+=e._yWorldTotal,this._xGeohashTotal+=e._xWorldTotal,this._yGeohashTotal+=e._yWorldTotal,this._statistics.merge(e._statistics),this._objectIds.push(...e._objectIds))}getCentroid(e){throw Error("getCentroid not supported for GeohashNode")}getGeometry(e,t){let[r,s,i,n]=this._getLngLatBounds(),a=(0,F.Cv)({rings:[[[r,s],[r,n],[i,n],[i,s],[r,s]]]},S.A.WGS84,e),o=(0,A.Ye)(a);return null==t?o:(0,A.Nl)(o,"esriGeometryPolygon",t,!1,!1)}getGeometricCentroid(e,t){let[r,s,i,n]=this._getLngLatBounds(),a={x:(r+i)/2,y:(s+n)/2},o=(0,F.Cv)(a,S.A.WGS84,e),l=(0,A.qN)(o);return null==t?l:(0,A.Nl)(l,"esriGeometryPoint",t,!1,!1)}getAttributes(){let e={aggregateId:this.id};for(let t of this._statistics.values())e[t.field.name]=t.value;return e.aggregateCount=this._count,e}find(e,t,r,s,i,n){if(s>=r)return this;let a=1-s%2,o=3*a+2*(1-a),l=2*a+3*(1-a),h=30-i-o,u=30-n-l,d=((e&7*a+3*(1-a)<<h)>>h)+((t&3*a+7*(1-a)<<u)>>u)*(8*a+4*(1-a)),c=this.children[d];return null==c?null:c.find(e,t,r,s+1,i+o,n+l)}_getLngLatBounds(){let e=this.depth,t=Math.ceil(e/2),r=Math.floor(e/2),s=30-(3*t+2*r),i=30-(2*t+3*r);return function(e,t){let r=-90,s=90,i=-180,n=180;for(let a=0;a<t;a++){let t=Math.ceil((a+1)/2),o=Math.floor((a+1)/2),l=1-a%2,h=30-(3*t+2*o),u=30-(2*t+3*o),d=2*l+3*(1-l),c=(7*l+3*(1-l)<<h&e.geohashX)>>h,f=(3*l+7*(1-l)<<u&e.geohashY)>>u;for(let e=3*l+2*(1-l)-1;e>=0;e--){let t=(i+n)/2,r=c&1<<e?1:0;i=(1-r)*i+r*t,n=(1-r)*t+r*n}for(let e=d-1;e>=0;e--){let t=(r+s)/2,i=f&1<<e?1:0;r=(1-i)*r+i*t,s=(1-i)*t+i*s}}return[i,r,n,s]}({geohashX:this.xNode<<s,geohashY:this.yNode<<i},this.depth)}}class D{static create(e,t,r){let s=Array(32);for(let e=0;e<s.length;e++)s[e]=null;return new D(e,t,r,s)}constructor(e,t,r,s){this.xNode=e,this.yNode=t,this.depth=r,this.children=s,this.indices=[],this.next=null}static get estimatedMemory(){let e=0;return e+=64,e+=512,e+=64,640}get id(){return`${this.xNode}.${this.yNode}`}get count(){return this.indices.length}insert(e){this.indices.push(e)}find(e,t,r,s,i,n){if(s>=r)return this;let a=1-s%2,o=3*a+2*(1-a),l=2*a+3*(1-a),h=30-i-o,u=30-n-l,d=((e&7*a+3*(1-a)<<h)>>h)+((t&3*a+7*(1-a)<<u)>>u)*(8*a+4*(1-a)),c=this.children[d];return null==c?null:c.find(e,t,r,s+1,i+o,n+l)}}class k{constructor(){this._size=0,this._depth=0,this._root=D.create(0,0,0)}destroy(){}get size(){return this._size}get depth(){return this._depth}get usedMemory(){return this._size*D.estimatedMemory}find(e,t,r){return this._root.find(e,t,r,0,0,0)}insert(e,t,r,s){let i=this._root,n=0,a=0,o=0;for(;null!==i;){if(i.insert(e.getIndex()),n>=s)return;let l=Math.ceil((n+1)/2),h=Math.floor((n+1)/2),u=1-n%2,d=30-(3*l+2*h),c=30-(2*l+3*h),f=(t&7*u+3*(1-u)<<d)>>d,p=(r&3*u+7*(1-u)<<c)>>c,m=f+p*(8*u+4*(1-u));a=a<<3*u+2*(1-u)|f,o=o<<2*u+3*(1-u)|p,i.children[m]??(i.children[m]=D.create(a,o,n+1),this._depth=Math.max(this._depth,n+1),this._size+=1),n+=1,i=i.children[m]}}forEachInBounds(e,t){let{geohashBounds:r,level:s}=e,i=this._root;for(;null!==i;){let e=i.depth,n=i.xNode,a=i.yNode;if(e>=s){t(i),i=i.next;continue}let o=Math.ceil((e+1)/2),l=Math.floor((e+1)/2),h=1-e%2,u=30-(3*o+2*l),d=30-(2*o+3*l),c=~((1<<u)-1),f=~((1<<d)-1),p=(r.xLL&c)>>u,m=(r.yLL&f)>>d,g=(r.xTR&c)>>u,_=(r.yTR&f)>>d,y=n<<3*h+2*(1-h),v=a<<2*h+3*(1-h),x=y+8*h+4*(1-h),b=v+4*h+8*(1-h),I=Math.max(y,p),M=Math.max(v,m),C=Math.min(x,g),S=Math.min(b,_),w=null,T=null;for(let e=M;e<=S;e++)for(let t=I;t<=C;t++){let r=t-y+(e-v)*(8*h+4*(1-h)),s=i.children[r];s&&(w||(w=s,w.next=i.next),T&&(T.next=s),T=s,s.next=i.next)}i=w||i.next}}}var B=r(38976),Z=r(9012);class Y extends B.n{constructor(e,t){super(e),this._reader=t,this._tree=new k,this.insert(this._reader)}get usedMemory(){return this._tree.usedMemory}forEachInCell(e,t){throw Error("Not supported.")}insert(e){let t=e.getCursor(),{featureFilter:r,sqlOptions:s,geohashLevel:i,spatialReference:n}=this.options.inner;for(;t.next();){let e=t;if(null!==r&&!r.check(e,s))continue;let a=0,o=0;if("esriGeometryPoint"===e.geometryType)a=e.readXWorldSpace(),o=e.readYWorldSpace();else{let t=e.readCentroidWorldSpace();if(null==t)continue;[a,o]=t.coords}let l=O(a,o,i,n);l&&this._tree.insert(e,l[0],l[1],i)}}put(e,t){throw Error("Not supported.")}putBounded(e,t,r,s){let{arcadeContextInfo:i,scale:n,geohashLevel:a,spatialReference:o,fields:l}=this.options.inner,h=(0,Z.N)(n,i),u=function(e,t,r,s){let i=[e.xmin,e.ymin,e.xmax,e.ymax],n=C.A.fromExtent((0,w.w1)(i,s)),a=(0,F.Cv)(n,s,S.A.WGS84,{extendedParams:{densificationStep:64*t}});if(!a)return null;let o=(0,A.Ye)(a,!1,!1),l=o.coords.filter((e,t)=>!(t%2)),h=o.coords.filter((e,t)=>t%2),u=Math.min(...l),d=Math.min(...h),c=Math.max(...l),f=Math.max(...h),p=O(u,d,r,S.A.WGS84),m=O(c,f,r,S.A.WGS84);return p&&m?{bounds:i,geohashBounds:{xLL:p[0],yLL:p[1],xTR:m[0],yTR:m[1]},level:r}:null}(r,s,a,o);null!=u&&this._tree.forEachInBounds(u,r=>{let s=null;for(let i of r.indices){this._reader.setIndex(i);let n=this._reader.getObjectId();t.has(n)||(s??=(0,b.tE)(e,r.id,()=>R.create(l,r.xNode,r.yNode,r.depth)),s.insert(this._reader,a,o,h),t.add(n))}})}}var W=r(24506),G=r(52350);class X{size(){return this.reader.getSize()}get fields(){return this.reader.fields}invalidate(){this._spatialIndex=null,this._gridIndex=null,this._geohashIndex=null}get usedMemory(){let e=0;return e+=this.reader.underlyingMemory,this._gridIndex&&(e+=this._gridIndex.usedMemory),this._geohashIndex&&(e+=this._geohashIndex.usedMemory),this._spatialIndex&&(e+=this._spatialIndex.usedMemory),e}getObjectIds(){let e=this.reader.getCursor(),t=[];for(;e.next();)t.push(e.getObjectId());return t}registerOverrides(e){this.reader.registerOverrides(e),this.invalidate()}queryFeaturesInBounds(e){let t=this._getSpatialIndex().search(e);return G.e.from(this.reader,t)}getGridIndex(e){return e.hash!==this._gridIndex?.hash&&(this._gridIndex=new W.H(e,this.reader.copy())),this._gridIndex}getGeohashIndex(e){return e.hash!==this._geohashIndex?.hash&&(this._geohashIndex=new Y(e,this.reader.copy())),this._geohashIndex}_getSpatialIndex(){return this._spatialIndex||=x.fromReader(this.reader),this._spatialIndex}}},28923(e,t,r){r.d(t,{j:()=>i});var s=r(70300);class i extends s.K{constructor(e,t,r,s,i=0){super(),this._reader=e,this._queryJSON=t,this._page=r,this._end=s,this.fileIndex=i,this.chunkId=`${this.fileIndex}.${this._page}${this.end?"e":""}`,this.normalizedChunkId=this.chunkId}get reader(){return this._reader}get first(){return 0===this._page}get end(){return this._end}get queryInfo(){return{type:"snapshot",chunkId:this.chunkId,queryJSON:this._queryJSON,page:this._page,size:this.size(),end:this.end}}get lodInfo(){return null}getTileReader(e){let t=this.queryFeaturesInBounds(e.bounds);return t.setTransformForDisplay(e.transform),t}}},5162(e,t,r){r.d(t,{HJ:()=>a,Im:()=>u,KN:()=>l});var s=r(39516),i=r(70300),n=r(8446);class a{static async create(e){let{metadata:t,definitionExpression:r}=e,i=r?await(0,s.GP)(r,t.fieldsIndex):null;return new a(t,i,r)}constructor(e,t,r){this.metadata=e,this._clause=t,this._definitionExpression=r}get hash(){return this._definitionExpression}testFeature(e){return null==this._clause||this._clause.testFeature(e)}}class o{constructor(){this.modified=new Map,this.removed=new Set}modify(e){this.modified.set(e.objectId,e),this.removed.has(e.objectId)&&this.removed.delete(e.objectId)}remove(e){this.modified.delete(e),this.removed.add(e)}get isEmpty(){return 0===this.modified.size&&0===this.removed.size}applyWhereClause(e){let t=new o;for(let[r,s]of this.modified)e.testFeature(s)?t.modified.set(r,s):t.removed.add(s.objectId);for(let e of this.removed)t.removed.add(e);return t}}class l extends i.K{constructor(e){super(),this._reader=e,this.chunkId="override",this.normalizedChunkId="override"}static fromFeatures(e,t){let r=n.K.fromOptimizedFeatures(e,t);return new l(r)}get reader(){return this._reader}get queryInfo(){return{}}get first(){return!1}get end(){return!1}get lodInfo(){return null}getTileReader(e){if(!this._reader.getSize())return null;let t=this.queryFeaturesInBounds(e.bounds);return t.setTransformForDisplay(e.transform),t}}class h{constructor(e,t){this.inner=e,this.isWeak=t,this.lastWeak=null}get isStrong(){return!this.isWeak}}class u{constructor(e){this._parameters=e,this._overrides=new Map,this._update=new o,this._lastCleanup=0}update(e){this._parameters=e}hasOverride(e){return this._overrides.has(e)}onChunkInsert(e){if(this._overrides.size){let t=e.reader.getCursor();for(;t.next();){let e=t.getObjectId(),r=this._overrides.get(e);if(r?.lastWeak&&(r.lastWeak=null),r?.isWeak){let e=t.readOptimizedFeatureWorldSpace();e.attributes={...r.inner?.attributes??{},...e.attributes},r.inner=e,this._update.modify(e),this.invalidate()}}}e.registerOverrides(this)}apply(e,t){let{updateWeak:r,removeWeak:s,update:i,remove:n,release:a}=e.commands;this.invalidate();for(let e of r){let t=new h(e,!0),r=this._overrides.get(e.objectId);r?.isStrong?r.lastWeak=t:(this._overrides.set(e.objectId,t),this._update.modify(e))}for(let e of i){let t=new h(e,!1),r=this._overrides.get(e.objectId);t.lastWeak=r?.isWeak?r:r?.lastWeak??null,this._overrides.set(e.objectId,t),this._update.modify(e)}for(let e of s){let t=new h(null,!0),r=this._overrides.get(e);r?.isStrong?r.lastWeak=t:(this._overrides.set(e,t),this._update.remove(e))}for(let e of n){let t=new h(null,!1),r=this._overrides.get(e);t.lastWeak=r?.isWeak?r:r?.lastWeak??null,this._overrides.set(e,t),this._update.remove(e)}if(a.length){let e=new Set;for(let t of a){let r=this._overrides.get(t);r?.lastWeak?(this._overrides.set(t,r.lastWeak),null==r.lastWeak.inner?this._update.remove(t):this._update.modify(r.lastWeak.inner)):r&&!r.isWeak&&(this._overrides.delete(t),e.add(t))}t.forEachUnsafe(t=>{let r=t.getObjectId();e.has(r)&&(this._update.modify(t.readOptimizedFeatureWorldSpace()),e.delete(r))});for(let t of e.values())this._update.remove(t)}}clearWeakOverrides(){for(let[e,t]of this._overrides.entries())t.isWeak&&this._overrides.delete(e);this.invalidate()}cleanup(e){if(this._overrides.size<1e4)return;let t=performance.now();if(t-this._lastCleanup<1e3)return;this._lastCleanup=t;let r=this._getWeakDeletions();if(!(r.size<1e4)){for(let t of e){let e=t.reader.withoutOverrides().getCursor();for(;e.next();){let t=e.getObjectId();r.delete(t)}}for(let e of r)this._overrides.delete(e);r.size&&this.invalidate()}}takeOverrideUpdate(){let e=this._update;return e.isEmpty?null:(this._update=new o,e.applyWhereClause(this._parameters))}asChunk(){let e=this._parameters;if(this._lastOverrideParametersHash!==e.hash&&(this._lastOverrideParametersHash=e.hash,this._chunk=null),!this._chunk){let t=[];for(let r of this._overrides.values())null!=r.inner&&e.testFeature(r.inner)&&t.push(r.inner);this._chunk=l.fromFeatures(t,e.metadata)}return this._chunk}invalidate(){this._chunk=null}putWeakObjectIdsFromGlobalIds(e,t,r){for(let[s,i]of this._overrides.entries())if(i.isWeak&&null!=i.inner){let n=i.inner.attributes[r];n&&t.has(n)&&!e.has(n)&&e.set(n,s)}else if(null!=i.lastWeak&&null!=i.lastWeak.inner){let n=i.lastWeak.inner.attributes[r];n&&t.has(n)&&!e.has(n)&&e.set(n,s)}}_getWeakDeletions(){let e=new Set;for(let[t,r]of this._overrides.entries())r.isWeak&&null==r.inner&&e.add(t);return e}}},44320(e,t,r){r.d(t,{I:()=>l});var s=r(65529),i=r(44208),n=r(70328),a=r(30661),o=r(5162);class l{constructor(){this._chunks=new Map,this._chunksToRemove=[],this.events=new s.bk,this.featureAdapter=new a.Z}destroy(){this.clear()}clear(){for(let e of this._chunks.values())this._chunksToRemove.push(e);this._chunks.clear(),this._overrides?.clearWeakOverrides()}get usedMemory(){let e=0;for(let t of this._chunks.values())e+=t.usedMemory;return e}async update(e){if(this._overrides){let t=await o.HJ.create(e);this._overrides.update(t)}this._postQueryFilter=e.postQueryFilter;for(let{reader:e}of this.insertedChunks())e.applyPostQueryFilter(this._postQueryFilter);this._schema=e}*chunks(){this._overrides&&(yield this._overrides.asChunk()),yield*this._chunks.values()}insertedChunks(){return this._chunks.values()}insert(e){(0,i.A)("esri-2d-update-debug")&&console.debug(`Chunk[${e.chunkId}] SourceChunkStore.insert`),this._overrides?.onChunkInsert(e),this._chunks.set(e.chunkId,e),this._postQueryFilter&&e.reader.applyPostQueryFilter(this._postQueryFilter),this.events.emit("changed")}remove(e){(0,i.A)("esri-2d-update-debug")&&console.debug(`Chunk[${e.chunkId}] SourceChunkStore.remove`),this._chunks.delete(e.chunkId),this._chunksToRemove.push(e)}removeById(e){(0,i.A)("esri-2d-update-debug")&&console.debug(`Chunk[${e}] SourceChunkStore.remove`);let t=this._chunks.get(e);this._chunks.delete(e),t&&this._chunksToRemove.push(t)}cleanup(){let e=this._chunksToRemove;return this._chunksToRemove=[],this._overrides?.cleanup(this._chunks.values()),e}async applyOverride(e){if(null==this._overrides){let e=await o.HJ.create(this._schema);this._overrides=new o.Im(e);for(let e of this._chunks.values())this._overrides.onChunkInsert(e)}this._overrides.apply(e,this),this.events.emit("changed");for(let e of this._chunks.values())e.invalidate()}takeOverrideUpdate(){return this._overrides?.takeOverrideUpdate()}refresh(){this.events.emit("refresh")}forEach(e){let t=new Set;for(let r of this.chunks()){let s=r.reader.getCursor();for(;s.next();){let r=s.getObjectId();t.has(r)||(e(s.copy()),t.add(r))}}}forEachUnsafe(e){let t=new Set;for(let r of this.chunks()){let s=r.reader.getCursor();for(;s.next();){let r=s.getObjectId();t.has(r)||(e(s),t.add(r))}}}mapObjectIdsFromGlobalIds(e,t){let r=new Map,s=new Set(e);return this._overrides?.putWeakObjectIdsFromGlobalIds(r,s,t),this._forEachUnsafeIgnoreOverrides(e=>{let i=e.readAttribute(t);if(i&&s.has(i)&&!r.has(i)){let t=e.getObjectId();r.set(i,t)}}),r}forEachInBounds(e,t){let r=new Set;for(let s of this.chunks()){let i=s.queryFeaturesInBounds(e);for(;i.next();){let e=i.getObjectId();r.has(e)||(t(i.copy()),r.add(e))}}}forEachBounds(e,t){let r=(0,n.vt)();for(let s of e)s.getBounds(r)&&t(r)}_forEachUnsafeIgnoreOverrides(e){let t=new Set;for(let r of this._chunks.values()){let s=r.reader.withoutOverrides().getCursor();for(;s.next();){let r=s.getObjectId();t.has(r)||(e(s),t.add(r))}}}}},35258(e,t,r){r.d(t,{i:()=>n});var s=r(16930),i=r(95466);class n{static minimal(e,t,r=[],s=!1,a=!1){return new n({geometryType:e,hasZ:s,hasM:a,fieldsIndex:new i.A(r).toJSON(),featureIdInfo:{type:"object-id",fieldName:t},subtypes:null,subtypeField:null,types:null,globalIdField:null,spatialReference:null,outSpatialReference:null,attributeSpatialReference:null,timeInfo:null,timeReferenceUnknownClient:null,dateFieldsTimeZone:null,typeIdField:null,layerType:void 0})}static createFeature(e){return new n(e)}constructor(e){let t;this._options=e,this._fieldsIndex=i.A.fromJSON(e.fieldsIndex),e.spatialReference&&(this._spatialReference=e.spatialReference instanceof s.A?e.spatialReference:s.A.fromJSON(e.spatialReference)),e.outSpatialReference&&(this._outSpatialReference=e.outSpatialReference instanceof s.A?e.outSpatialReference:s.A.fromJSON(e.outSpatialReference)),e.attributeSpatialReference&&(this._attributeSpatialReference=e.attributeSpatialReference instanceof s.A?e.attributeSpatialReference:s.A.fromJSON(e.attributeSpatialReference)),"object-id"===e.featureIdInfo.type&&(t=e.featureIdInfo.fieldName),this._arcadeSchema={fields:this.fieldsIndex.fields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,objectIdField:t,globalIdField:this._options.globalIdField,spatialReference:this._spatialReference,timeInfo:this._options.timeInfo,typeIdField:this._options.typeIdField??void 0,types:this._options.types??void 0,subtypeField:this._options.subtypeField,subtypes:this._options.subtypes??void 0,datesInUnknownTimezone:this._options.timeReferenceUnknownClient??void 0,dateFieldsTimeZone:this._options.dateFieldsTimeZone??void 0}}get fieldsIndex(){return this._fieldsIndex}get geometryType(){return"esriGeometryMultiPatch"===this._options.geometryType?"esriGeometryPolygon":this._options.geometryType}get hasZ(){return this._options.hasZ}get hasM(){return this._options.hasM}get serviceGeometryType(){return this._options.geometryType}get subtypeField(){return this._options.subtypeField}get timeInfo(){return this._options.timeInfo}get featureIdInfo(){return this._options.featureIdInfo}get globalIdField(){return this._options.globalIdField}get arcadeSchema(){return this._arcadeSchema}get spatialReference(){return this._spatialReference}get outSpatialReference(){return this._outSpatialReference}get attributeSpatialReference(){return this._attributeSpatialReference}get timeReferenceUnknownClient(){return this._options.timeReferenceUnknownClient}get layerType(){return this._options.layerType}weakCloneWithAdditionalFields(e){let t=this._fieldsIndex.toJSON();return t.fields.push(...e),new n({fieldsIndex:t,geometryType:this.geometryType,hasZ:this.hasZ,hasM:this.hasM,globalIdField:this.globalIdField,featureIdInfo:this.featureIdInfo,spatialReference:this.spatialReference,attributeSpatialReference:this.attributeSpatialReference,outSpatialReference:this.outSpatialReference,subtypeField:this.subtypeField,subtypes:this._options.subtypes,timeInfo:this.timeInfo,timeReferenceUnknownClient:this.timeReferenceUnknownClient,dateFieldsTimeZone:this._options.dateFieldsTimeZone,typeIdField:this._options.typeIdField,types:this._options.types,layerType:this._options.layerType})}weakCloneWithResolvedSpatialReference(){return new n({fieldsIndex:this._fieldsIndex.toJSON(),geometryType:this.geometryType,hasZ:this.hasZ,hasM:this.hasM,globalIdField:this.globalIdField,featureIdInfo:this.featureIdInfo,spatialReference:this.outSpatialReference,outSpatialReference:this.outSpatialReference,attributeSpatialReference:this.attributeSpatialReference,subtypeField:this.subtypeField,subtypes:this._options.subtypes,timeInfo:this.timeInfo,timeReferenceUnknownClient:this.timeReferenceUnknownClient,dateFieldsTimeZone:this._options.dateFieldsTimeZone,typeIdField:this._options.typeIdField,types:this._options.types,layerType:this._options.layerType})}}},97633(e,t,r){r.d(t,{P:()=>i});var s=r(73250);class i{constructor(e){this._valid=s.y.create(e),this._data=Array(e)}get usedMemory(){let e=this._valid.usedMemory;if(this._data.length>0){let t="string"==typeof this._data[0]?64:16;e+=this._data.length*t}return e}has(e){return this._valid.has(e)}set(e,t){this._valid.set(e),this._data[e]=t}get(e){return this._data[e]}}},17155(e,t,r){r.d(t,{Y:()=>D});var s=r(66131),i=r(54639),n=r(87992),a=r(65864),o=r(90708),l=r(92722);class h{constructor(e,t,r,s){this._geometry=e,this._type=t,this._hasZ=r,this._hasM=s}toJsonGeometry(){return(0,o.zv)(l.A.fromJSON(this._geometry),function(e){switch(e){case"point":return"esriGeometryPoint";case"multipoint":return"esriGeometryMultipoint";case"polyline":return"esriGeometryPolyline";case"polygon":return"esriGeometryPolygon";case"extent":return"esriGeometryEnvelope";default:throw Error(`Unexpected type: ${e}`)}}(this._type),this._hasZ,this._hasM)}toAccessorGeometry(e){let t=this.toJsonGeometry();return t.spatialReference=e,(0,a.rS)(t)}toGxGeometry(e){return e.fromFlatGeometry((0,n.Nh)(this._type,this._geometry,null))}}var u=r(44208),d=r(69397),c=r(44729),f=r(15032),p=r(36745),m=r(70328),g=r(78957),_=r(62577),y=r(62815),v=r(27647),x=r(43334),b=r(98623),I=r(97633);const M=(0,u.A)("featurelayer-simplify-thresholds")??[.5,.5,.5,.5],C=M[0],S=M[1],w=M[2],T=M[3],A=(0,u.A)("featurelayer-simplify-payload-size-factors")??[1,2,4],F=A[0],O=A[1],E=A[2],N=(0,u.A)("featurelayer-simplify-mobile-factor")??2,P=(0,u.A)("esri-mobile"),R=4294967295;class D{constructor(e){this.metadata=e,this.type="FeatureSetReader",this._overrides=null,this._postQueryFilteredIds=new Set,this._joined=[],this._objectIdToIndex=null,this._boundsBuffer=[],this._deleted=new Set,this._caches=new Map,this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}destroy(){}[Symbol.dispose](){this.destroy()}get geometryDensity(){return{sampleCount:0,densePairCount:0}}getAreaSimplificationThreshold(e,t){let r=1,s=P?N:1;t>4e6?r=E*s:t>1e6?r=O*s:t>5e5?r=F*s:t>1e5&&(r=s);let i=0;return e>4e3?i=T*r:e>2e3?i=w*r:e>100?i=S:e>15&&(i=C),i}getBounds(e){!function(e,t){if(!(e.length>t))for(;e.length<=t;)e.push(0)}(this._boundsBuffer,4*this.getIndex()+4);let t=this.getBoundsXMin();if(t===R||!isFinite(t))return!1;if(0===this.getBoundsXMin()){let t=this.readGeometryWorldSpace();if(t?.isPoint&&0===t.coords[0]&&0===t.coords[1])return(0,m.BI)(e,0,0,0,0),!0;if(!t)return this.setBoundsXMin(R),!1;let r=1/0,s=1/0,i=-1/0,n=-1/0;return t.forEachVertex((e,t)=>{r=Math.min(r,e),s=Math.min(s,t),i=Math.max(i,e),n=Math.max(n,t)}),this.setBoundsXMin(r),this.setBoundsYMin(s),this.setBoundsXMax(i),this.setBoundsYMax(n),(0,m.BI)(e,r,s,i,n),!0}let r=this.getBoundsXMin(),s=this.getBoundsYMin(),i=this.getBoundsXMax(),n=this.getBoundsYMax();return(0,m.BI)(e,r,s,i,n),!0}getBoundsXMin(){return this._boundsBuffer[4*this.getIndex()]}setBoundsXMin(e){this._boundsBuffer[4*this.getIndex()]=e}getBoundsYMin(){return this._boundsBuffer[4*this.getIndex()+1]}setBoundsYMin(e){this._boundsBuffer[4*this.getIndex()+1]=e}getBoundsXMax(){return this._boundsBuffer[4*this.getIndex()+2]}setBoundsXMax(e){this._boundsBuffer[4*this.getIndex()+2]=e}getBoundsYMax(){return this._boundsBuffer[4*this.getIndex()+3]}setBoundsYMax(e){this._boundsBuffer[4*this.getIndex()+3]=e}readAttributeAsTimestamp(e){let t=this.readAttribute(e);return"string"==typeof t?new Date(t).getTime():"number"==typeof t||null==t?t:null}readAttribute(e,t=!1){let r=this._readAttribute(e,t);if(void 0!==r)return r;for(let r of this._joined){r.setIndex(this.getIndex());let s=r._readAttribute(e,t);if(void 0!==s)return s}}readAttributes(){let e=this._readAttributes();for(let t of this._joined){t.setIndex(this.getIndex());let r=t._readAttributes();for(let t of Object.keys(r))e[t]=r[t]}return e}joinAttributes(e){this._joined.push(e)}registerOverrides(e){this._overrides=e}withoutOverrides(){let e=this.copy();return e._overrides=null,e}readOptimizedFeatureWorldSpace(){let e=this.readGeometryWorldSpace(),t=this.readAttributes(),r=this.readCentroidWorldSpace();return new x.Om(e,t,r,this.getObjectId(),this.getDisplayId())}readLegacyFeatureForDisplay(){let e=this.readCentroidForDisplay();return{attributes:this.readAttributes(),geometry:this.readLegacyGeometryForDisplay(),centroid:(e&&{x:e.coords[0],y:e.coords[1]})??null}}readLegacyFeatureWorldSpace(){let e=this.readCentroidWorldSpace();return{attributes:this.readAttributes(),geometry:this._readLegacyGeometryWorldSpace(),centroid:(e&&{x:e.coords[0],y:e.coords[1]})??null}}readLegacyGeometryForDisplay(){let e=this.readGeometryForDisplay();return(0,o.zv)(e,this.geometryType,!1,!1)}readXForDisplay(){return this._readX()}readYForDisplay(){return this._readY()}readXWorldSpace(){let e=this._readX(),t=this.getInTransform();return null==t?e:e*t.scale[0]+t.translate[0]}readYWorldSpace(){let e=this._readY(),t=this.getInTransform();return null==t?e:t.translate[1]-e*t.scale[1]}readGeometryForDisplay(){let e=this._readGeometryDeltaDecoded(!0);if(!e){let e=this._createDeltaQuantizedGeometryFromServerCentroid();return e?e.deltaDecode():null}return e}readGeometryForDisplayTransformed(e){let t=this.readGeometryForDisplay();if(t&&"esriGeometryPolyline"===this.metadata.geometryType&&(t=(0,o.kz)(t,this.metadata.geometryType,e.scale[0])),t&&=(0,o.Nl)(t,this.metadata.geometryType,e,t.hasZ,t.hasM,!0),!t){let t=this.readCentroidForDisplay();if(!t)return null;let r=(0,_.IE)(e,t.coords[0]),s=(0,_.B2)(e,t.coords[1]);return this._createDeltaQuantizedExtrudedGeometry(r,s).deltaDecode()}return t}_transformToWorldSpace(e){if(!e)return null;e=e.clone();let t=this.getInTransform();t&&(0,o.aQ)(e,t);let r=(0,y.d)(this.metadata.spatialReference,this.metadata.outSpatialReference);if(e.hasZ&&1!==r){let{stride:t,coords:s}=e;for(let e=2;e<s.length;e+=t)s[e]*=r}return e}readGeometryWorldSpace(){let e=this._readGeometry();return e||=this._createDeltaQuantizedGeometryFromServerCentroid(),this._transformToWorldSpace(e)}readCentroidForDisplay(){let e=this.readGeometryForDisplay();return e?this._computeDisplayCentroid(e):this._readServerCentroid()}readCentroidWorldSpace(){let e=this.readGeometryForDisplay(),t=e?this._computeDisplayCentroid(e):this._readServerCentroid();return this._transformToWorldSpace(t)}setCache(e){let t=this._caches.get(e);t??(t=new I.P(this.getSize()),this._caches.set(e,t)),this._activeCache=t}setCachedValue(e){this._activeCache.set(this.getIndex(),e)}hasCachedValue(){return this._activeCache.has(this.getIndex())}getCachedValue(){return this._activeCache.get(this.getIndex())}delete(){this._deleted.add(this.getObjectId())}getByReferenceVertexCount(){return null}get underlyingMemory(){let e=0;e+=(0,d.Qf)(this._boundsBuffer);for(let t of this._caches.values())e+=t.usedMemory;return e}getDisplayTransform(){return null}_readGeometryDeltaDecoded(e){let t=this._readGeometry(e);if("esriGeometryPoint"===this.geometryType||!t)return t;let r=this.getInTransform();if(!t||!r)return t;let s=r.scale[2]??1,i=r.translate[2]??0,n=r.scale[3]??1,a=r.translate[3]??0,{hasZ:o,hasM:l,stride:h,size:u,coords:d}=t,c=o&&(1!==s||0!==i),f=l&&(1!==n||0!==a);if(c||f){let e=o?3:2;for(let t=0,r=h*u;t<r;t+=h)c&&(d[t+2]=s*d[t+2]+i),f&&(d[t+e]=n*d[t+e]+a)}return t.deltaDecode()}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this.fields.has(e)||this._joined.some(t=>t.hasField(e))}geometry(){let e,t=this.readGeometryWorldSpace();if(null==t)return null;switch(this.geometryType){case"esriGeometryPoint":e="point";break;case"esriGeometryMultipoint":e="multipoint";break;case"esriGeometryPolyline":e="polyline";break;case"esriGeometryPolygon":e="polygon";break;default:throw Error(`Unexpected geometry type: ${this.geometryType}`)}return function(e,t,r){let s=t.hasZ??!1,n=t.hasM??!1;return i.R.of(e,r,s,n,new h(t,e,s,n))}(e,{lengths:t.lengths,coords:t.coords,hasZ:this.hasZ,hasM:this.hasM},this.metadata.outSpatialReference)}autocastArcadeDate(e,t){return t&&t instanceof Date?this.isUnknownDateTimeField(e)?s.lY.unknownDateJSToArcadeDate(t):s.lY.dateJSAndZoneToArcadeDate(t,this.contextTimeZone??"system"):t}isUnknownDateTimeField(e){return this.metadata.fieldsIndex.getTimeZone(e)===b.L}field(e){let t=this.fields.get(e);if(t)switch(t.type){case"date-only":case"esriFieldTypeDateOnly":return c.n.fromReader(this.readAttribute(e,!1));case"time-only":case"esriFieldTypeTimeOnly":return f.k.fromReader(this.readAttribute(e,!1));case"esriFieldTypeTimestampOffset":case"timestamp-offset":return s.lY.fromReaderAsTimeStampOffset(this.readAttribute(e,!1));case"date":case"esriFieldTypeDate":return this.autocastArcadeDate(e,this.readAttribute(e,!0));default:return this.readAttribute(e,!1)}for(let r of this._joined)if(r.setIndex(this.getIndex()),t=r.fields.get(e),t)switch(t.type){case"date-only":case"esriFieldTypeDateOnly":return c.n.fromReader(r._readAttribute(e,!1));case"time-only":case"esriFieldTypeTimeOnly":return f.k.fromReader(r._readAttribute(e,!1));case"esriFieldTypeTimestampOffset":case"timestamp-offset":return s.lY.fromReaderAsTimeStampOffset(r._readAttribute(e,!1));case"date":case"esriFieldTypeDate":return this.autocastArcadeDate(e,r._readAttribute(e,!0));default:return this.readAttribute(e,!1)}throw Error(`Field ${e} does not exist`)}setField(e,t){throw Error("Unable to update feature attribute values, feature is readonly")}keys(){return this.fields.fields.map(e=>e.name)}isEmpty(){return this.fields.fields.length<=0&&null==this.geometry()}castToText(e=!1){if(!e)return JSON.stringify(this.readLegacyFeatureForDisplay());let t=this.readLegacyFeatureForDisplay();if(!t)return JSON.stringify(null);let r={geometry:t.geometry,attributes:{...t.attributes}};for(let e in r.attributes){let t=r.attributes[e];t instanceof Date&&(r.attributes[e]=t.getTime())}return JSON.stringify(r)}gdbVersion(){return null}fullSchema(){return this.metadata.arcadeSchema}castAsJson(){return{attributes:this._readAttributes(),geometry:this.geometry()?.castAsJson()??null}}castAsJsonAsync(){return Promise.resolve(this.castAsJson())}applyPostQueryFilter(e){if(this._postQueryFilteredIds.clear(),!e)return;let t=this.getCursor();for(;t.next();)e.check(t,{currentUser:null})||this._postQueryFilteredIds.add(t.getObjectId())}_getExists(){let e=this.getObjectId();return!this._deleted.has(e)&&(this._overrides?!this._overrides.hasOverride(e):!this._postQueryFilteredIds.has(e))}_computeDisplayCentroid(e){if(null==this.getInTransform())return(0,v.Q)(e);let t=p.z.fromOptimized(e,this.geometryType);t.yFactor*=-1;let r=(0,g.d)(t);return r?isNaN(r[0])||isNaN(r[1])?(0,v.Q)(e):(r[1]*=-1,new l.A([],r)):null}copyInto(e){e._joined=this._joined,e._overrides=this._overrides,e._objectIdToIndex=this._objectIdToIndex,e._boundsBuffer=this._boundsBuffer,e._activeCache=this._activeCache,e._caches=this._caches,e._contextTimeZone=this._contextTimeZone,e._postQueryFilteredIds=this._postQueryFilteredIds,e._deleted=this._deleted}_readLegacyGeometryWorldSpace(){let e=this.readGeometryWorldSpace();return(0,o.zv)(e,this.geometryType,!1,!1)}_createDeltaQuantizedGeometryFromServerCentroid(){let e=this._readServerCentroid();if(!e)return null;let[t,r]=e.coords;return this._createDeltaQuantizedExtrudedGeometry(t,r)}_createDeltaQuantizedExtrudedGeometry(e,t){return"esriGeometryPolyline"===this.geometryType?this._createDeltaQuantizedExtrudedLine(e,t):this._createDeltaQuantizedExtrudedQuad(e,t)}_createDeltaQuantizedExtrudedQuad(e,t){return new l.A([5],[e-1,t,1,-1,1,1,-1,1,-1,-1])}_createDeltaQuantizedExtrudedLine(e,t){return new l.A([2],[e-1,t+1,1,-1])}}},52350(e,t,r){r.d(t,{e:()=>a});var s=r(62577),i=r(90708),n=r(17155);class a extends n.Y{static from(e,t){if(e instanceof this){let r=new Set(t),s=e._indices.filter(e=>r.has(e)),i=e.copy();return i._indices=s,i._currentIndex=-1,i}return new a(e.copy(),t)}constructor(e,t){super(e.metadata),this._currentIndex=-1,this._displayTransform=null,this._reader=e,this._indices=t}setTransformForDisplay(e){let t=this._reader.getInTransform();if(null==t)return void(this._displayTransform=(0,s.Q1)(e));let r=(0,s.Q1)(t),i=(0,s.Q1)(e),[n,a]=r.scale,[o,l]=r.translate,[h,u]=i.scale,[d,c]=i.translate,f=n/h,p=a/u,m=(o-d)/h,g=(l-c)/u;this._displayTransform={originPosition:"lowerLeft",scale:[1/f,1/p,1,1],translate:[-m/f,-g/p,0,0]}}getInTransform(){return this._reader.getInTransform()}getDisplayTransform(){return this._displayTransform}get fields(){return this._reader.fields}get hasNext(){return this._currentIndex+1<this._indices.length}getSize(){return this._indices.length}getCursor(){return this.copy()}copy(){let e=new a(this._reader.copy(),this._indices);return e._currentIndex=this._currentIndex,e._displayTransform=this._displayTransform,e._processorAttributes=this._processorAttributes,e}get contextTimeZone(){return this._reader.contextTimeZone}set contextTimeZone(e){this._reader.contextTimeZone=e}get usedMemory(){return 32+this._reader.usedMemory}setProcessorAttributes(e){this._processorAttributes=Object.assign(this._processorAttributes??{},e)}_nextIndex(){return++this._currentIndex<this._indices.length&&(this._reader.setIndex(this._indices[this._currentIndex]),!0)}next(){for(;this._nextIndex()&&!this._reader._getExists(););return this._currentIndex<this._indices.length}readXForDisplay(){return this._displayTransform?(0,s.IE)(this._displayTransform,this._reader.readXForDisplay()):this._reader.readXForDisplay()}readYForDisplay(){return this._displayTransform?(0,s.B2)(this._displayTransform,this._reader.readYForDisplay()):this._reader.readYForDisplay()}readGeometryForDisplay(){return this._displayTransform?this._reader.readGeometryForDisplayTransformed(this._displayTransform):this._reader.readGeometryForDisplay()}readCentroidForDisplay(){let e=this._reader.readCentroidForDisplay()?.clone();if(e){let[t,r]=e.coords;this._displayTransform&&(e.coords[0]=(0,s.IE)(this._displayTransform,t),e.coords[1]=(0,s.B2)(this._displayTransform,r))}return e}get geometryType(){return this._reader.geometryType}get hasFeatures(){return this._reader.hasFeatures}get exceededTransferLimit(){return this._reader.exceededTransferLimit}get hasZ(){return this._reader.hasZ}get hasM(){return this._reader.hasM}readAttribute(e,t=!1){let r=this._reader.readAttribute(e,t);return null==r&&this._processorAttributes?this._processorAttributes[e]:r}readAttributes(){return{...this._processorAttributes,...this._reader.readAttributes()}}joinAttributes(e){return this._reader.joinAttributes(e)}getBounds(e){return this._reader.getBounds(e)}getAttributeHash(){return this._reader.getAttributeHash()}getObjectId(){return this._reader.getObjectId()}getDisplayId(){return this._reader.getDisplayId()}setDisplayId(e){return this._reader.setDisplayId(e)}setIndex(e){return this._reader.setIndex(e)}getIndex(){return this._reader.getIndex()}readXWorldSpace(){return this._reader.readXWorldSpace()}readYWorldSpace(){return this._reader.readYWorldSpace()}_readX(){return this._reader.readXForDisplay()}_readY(){return this._reader.readYForDisplay()}_readServerCentroid(){return this._reader._readServerCentroid()}readLegacyFeatureForDisplay(){let e=this.readCentroidForDisplay();return{attributes:this.readAttributes(),geometry:this.readLegacyGeometryForDisplay(),centroid:(e&&{x:e.coords[0],y:e.coords[1]})??null}}readLegacyGeometryForDisplay(){let e=this.readGeometryForDisplay();return(0,i.zv)(e,this.geometryType,!1,!1)}readGeometryArea(){return this._displayTransform?this._reader.readGeometryForDisplayTransformed(this._displayTransform)?.area()??0:this._reader.readGeometryArea()}readGeometryWorldSpace(){return this._reader.readGeometryWorldSpace()}_readGeometry(){return this._reader._readGeometry()}get geometryDensity(){return this._reader.geometryDensity}_readAttribute(e,t){throw Error("Error: Should not be called. Underlying _reader should be used instead")}_readAttributes(){throw Error("Error: Should not be called. Underlying _reader should be used instead")}readArcadeFeature(){return this._reader.readArcadeFeature()}geometry(){return this._reader.geometry()}field(e){return this._reader.field(e)}hasField(e){return this._reader.hasField(e)}setField(e,t){return this._reader.setField(e,t)}keys(){return this._reader.keys()}castToText(e=!1){return this._reader.castToText(e)}}},8446(e,t,r){r.d(t,{K:()=>d});var s=r(44208),i=r(90708),n=r(43334),a=r(95466),o=r(17155);const l=(0,s.A)("featurelayer-snapping-density-sample-interval"),h=(0,s.A)("featurelayer-snapping-density-max-vertices-per-feature"),u=(0,s.A)("featurelayer-snapping-density-max-distance")**2;class d extends o.Y{static fromFeatures(e,t){let{geometryType:r,hasZ:s,hasM:n,featureIdInfo:a}=t,o=(0,i.Di)([],e,r,s,n,a);for(let t=0;t<o.length;t++)o[t].displayId=e[t].displayId;return d.fromOptimizedFeatures(o,t)}static fromFeatureSet(e,t){let r=(0,i.q3)(e,t.featureIdInfo);return d.fromOptimizedFeatureSet(r,t)}static fromOptimizedFeatureSet(e,t){let r=d.fromOptimizedFeatures(e.features,t,e.transform);return r._exceededTransferLimit=e.exceededTransferLimit,r._fieldsIndex=new a.A(e.fields),r}static fromOptimizedFeatures(e,t,r){let s=new d(e,t);return s._fieldsIndex=t.fieldsIndex,s._transform=r,r&&("esriGeometryPolyline"===s.geometryType||"esriGeometryPolygon"===s.geometryType)&&(s._geometryDensity=function(e){let t={sampleCount:0,densePairCount:0};for(let r=0;r<e.length;r+=l){let s=e[r].geometry;if(!s)continue;let{coords:i,lengths:n,stride:a}=s,o=Math.min(n[0]??0,h);for(let e=1;e<o;e++){let r=e*a;t.sampleCount++;let s=i[r],n=i[r+1];s*s+n*n<=u&&t.densePairCount++}}return t}(e)),s}static empty(e){return new d([],e)}constructor(e,t){super(t),this._geometryDensity={sampleCount:0,densePairCount:0},this._featureIndex=-1,this._exceededTransferLimit=!1,this._fieldsIndex=null,this._hasZ=!1,this._hasM=!1,this._geometryType=t.geometryType,this._hasZ=t.hasZ,this._hasM=t.hasM,this._features=e}get fields(){return this._fieldsIndex}get geometryType(){return this._geometryType}get hasFeatures(){return!!this._features.length}get hasNext(){return this._featureIndex+1<this._features.length}get exceededTransferLimit(){return this._exceededTransferLimit}get hasZ(){return this._hasZ}get hasM(){return this._hasM}get geometryDensity(){return this._geometryDensity}get _current(){return this._features[this._featureIndex]}get usedMemory(){return this._current.usedMemory}getSize(){return this._features.length}getCursor(){return this.copy()}getInTransform(){return this._transform}getAttributeHash(){let e="";for(let t in this._current.attributes)e+=this._current.attributes[t];return e}getIndex(){return this._featureIndex}setIndex(e){this._featureIndex=e}getObjectId(){return this._current?.objectId}getDisplayId(){return this._current.displayId}setDisplayId(e){this._current.displayId=e}getByReferenceVertexCount(){return this._current.vertexCount}copy(){let e=new d(this._features,this.metadata);return this.copyInto(e),e}next(){for(;++this._featureIndex<this._features.length&&!this._getExists(););return this._featureIndex<this._features.length}readGeometryArea(){return(0,n.N3)(this._current)?(0,i.Rk)(this._current.geometry,2):0}_readX(){return(0,n.N3)(this._current)?this._current.geometry.coords[0]:0}_readY(){return(0,n.N3)(this._current)?this._current.geometry.coords[1]:0}_readGeometry(){return(0,n.N3)(this._current)?this._current.geometry??null:null}_readServerCentroid(){return this._current.centroid}_readAttribute(e,t){if(!this._fieldsIndex){let t=this._current.attributes[e];if(void 0!==t)return t;let r=e.toLowerCase();for(let e in this._current.attributes)if(e.toLowerCase()===r)return this._current.attributes[e];return}let r=this._fieldsIndex.get(e);if(!r)return;let s=this._current.attributes[r.name];return null==s?s:t&&this.fields.isDateField(e)?new Date(s):s}_readAttributes(){return this._current.attributes}copyInto(e){super.copyInto(e),e._featureIndex=this._featureIndex,e._transform=this._transform,e._fieldsIndex=this._fieldsIndex,e._geometryDensity=this._geometryDensity}}},16630(e,t,r){r.d(t,{s:()=>l}),r(44208);var s=r(70328),i=r(53929),n=r(92722),a=r(17754),o=r(17155);class l extends o.Y{constructor(e,t,r,s,i,n=new Uint32Array(r.size()),a,o,l){if(super(e),this._indexMap=t,this._inner=r,this._fileId=s,this._transform=i,this._displayIds=n,this._points=a,this._rowIds=o,this._emptyNumberValue=l,this._index=-1,this.usedMemory=32,this._size=this._inner.size(),this._coordinateStride=this._inner.coordinateStride(),this._rowIds||=this._inner.readIdsUnsafe().slice(),!this._points&&"esriGeometryPoint"===this.geometryType){let e=this._inner.readPointCoordsQuantizedUnsafe()?.slice();e?(this._emptyNumberValue=-32768,this._points=e):(this._emptyNumberValue=NaN,this._points=this._inner.readPointCoordsUnsafe()?.slice())}e.featureIdInfo.type}destroy(){super.destroy(),this._inner.free()}get fields(){return this.metadata.fieldsIndex}get geometryType(){return this.metadata.geometryType}get hasFeatures(){return!0}get hasNext(){throw Error("Method not implemented.")}get exceededTransferLimit(){return!1}get hasZ(){return this._inner.hasZ()}get hasM(){return this._inner.hasM()}async updateFields(e,t,r,s){let i=this._inner.rowGroup(),n=new Uint32Array(this._inner.readIdsUnsafe()),a=await e.createPatch(t,i,n,r,s);this._inner.insertPatchBytes(new Uint8Array(a))}getInTransform(){return this._transform}getSize(){return this._size}getCursor(){return this.copy()}getAttributeHash(){let e="";for(let t of this.fields.fields)e+=this._readAttribute(t.name,!1)+".";return e}getObjectId(){let e=this._rowIds[this._index];return(0,a.xb)(this._fileId,e)}getDisplayId(){return this._displayIds[this._index]}setDisplayId(e){this._displayIds[this._index]=e}setIndex(e){this._index=e}getBoundsXMin(){return this._inner.boundsXMin(this._index)}getBoundsYMin(){return this._inner.boundsYMin(this._index)}getBoundsXMax(){return this._inner.boundsXMax(this._index)}getBoundsYMax(){return this._inner.boundsYMax(this._index)}getBounds(e){let t=this._inner.boundsXMin(this._index);return!!Number.isFinite(t)&&((0,s.BI)(e,t,this._inner.boundsYMin(this._index),this._inner.boundsXMax(this._index),this._inner.boundsYMax(this._index)),!0)}setBoundsXMin(e){throw Error("InternalError: Setting bounds is unsupported")}setBoundsYMin(e){throw Error("InternalError: Setting bounds is unsupported")}setBoundsXMax(e){throw Error("InternalError: Setting bounds is unsupported")}setBoundsYMax(e){throw Error("InternalError: Setting bounds is unsupported")}getIndex(){return this._index}next(){for(;++this._index<this._size&&!this._getExists(););return this._index<this._size}readGeometryArea(){return this.readGeometryForDisplay()?.area()??0}copy(){let e=new l(this.metadata,this._indexMap,this._inner,this._fileId,this._transform,this._displayIds,this._points,this._rowIds,this._emptyNumberValue);return this.copyInto(e),e}copyInto(e){super.copyInto(e),e._index=this._index}_readGeometry(e){let t=this._inner.readCoordsUnsafe(this._index),r=this._inner.readLengthsUnsafe(this._index);return t&&r?new n.A(r,t,this.hasZ,this.hasM):null}_readX(){if(this._points){let e=this._points[this._coordinateStride*this._index];return e===this._emptyNumberValue?NaN:e}throw Error("InternalError: readX only supported for points")}_readY(){if(this._points){let e=this._points[this._coordinateStride*this._index+1];return e===this._emptyNumberValue?NaN:e}throw Error("InternalError: readY only supported for points")}_readServerCentroid(){return null}_readAttribute(e,t){let r=this.fields.get(e);if(!r)return;let s=this._indexMap[r.name];return null==s?this.getObjectId():(0,i.ae)(this._inner,this._index,s,r.type,t)}_readAttributes(){let e={};for(let t of this.metadata.fieldsIndex.fields){if(null==this._indexMap[t.name])continue;let r=this._readAttribute(t.name,!1);void 0!==r&&(e[t.name]=r)}return e.__OBJECTID=this.getObjectId(),e}}},73250(e,t,r){r.d(t,{y:()=>i});var s=r(69397);class i{static fromBuffer(e,t){return new i(e,t)}static create(e,t=4294967295){let r=new Uint32Array(Math.ceil(e/32));return new i(r,t)}constructor(e,t){this._mask=0,this._buf=e,this._mask=t}_getIndex(e){return Math.floor(e/32)}get usedMemory(){return(0,s.Qf)(this._buf)}has(e){let t=this._mask&e;return!!(this._buf[this._getIndex(t)]&1<<t%32)}hasRange(e,t){let r=e,s=t;for(;r%32&&r!==s;){if(this.has(r))return!0;r++}for(;s%32&&r!==s;){if(this.has(r))return!0;s--}if(r===s)return!1;for(let e=r/32;e!==s/32;e++)if(this._buf[e])return!0;return!1}set(e){let t=this._mask&e,r=this._getIndex(t),s=1<<t%32;this._buf[r]|=s}setRange(e,t){let r=e,s=t;for(;r%32&&r!==s;)this.set(r++);for(;s%32&&r!==s;)this.set(s--);if(r!==s)for(let e=r/32;e!==s/32;e++)this._buf[e]=4294967295}unset(e){let t=this._mask&e,r=this._getIndex(t),s=1<<t%32;this._buf[r]&=4294967295^s}resize(e){let t=this._buf,r=new Uint32Array(Math.ceil(e/32));r.set(t),this._buf=r}or(e){for(let t=0;t<this._buf.length;t++)this._buf[t]|=e._buf[t];return this}and(e){for(let t=0;t<this._buf.length;t++)this._buf[t]&=e._buf[t];return this}xor(e){for(let t=0;t<this._buf.length;t++)this._buf[t]^=e._buf[t];return this}ior(e){for(let t=0;t<this._buf.length;t++)this._buf[t]|=~e._buf[t];return this}iand(e){for(let t=0;t<this._buf.length;t++)this._buf[t]&=~e._buf[t];return this}ixor(e){for(let t=0;t<this._buf.length;t++)this._buf[t]^=~e._buf[t];return this}any(){for(let e=0;e<this._buf.length;e++)if(this._buf[e])return!0;return!1}copy(e){for(let t=0;t<this._buf.length;t++)this._buf[t]=e._buf[t];return this}clone(){return new i(this._buf.slice(),this._mask)}clear(){for(let e=0;e<this._buf.length;e++)this._buf[e]=0;return this}forEachSet(e){for(let t=0;t<this._buf.length;t++){let r=this._buf[t],s=32*t;if(r)for(;r;)1&r&&e(s),r>>>=1,s++}}countSet(){let e=0;return this.forEachSet(t=>{e++}),e}}},9012(e,t,r){function s(e,{timeZone:t,timeExtent:r}){return{$view:{scale:e,timeZone:t,timeProperties:{currentStart:r?.start,currentEnd:r?.end}}}}r.d(t,{N:()=>s})}}]);