@arcgis/core 5.1.0-next.86 → 5.1.0-next.88

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 (206) hide show
  1. package/Graphic.js +1 -1
  2. package/analysis/LineOfSightAnalysisObserver.d.ts +2 -2
  3. package/analysis/LineOfSightAnalysisTarget.d.ts +2 -2
  4. package/applications/Components/arcadeUtils.d.ts +23 -0
  5. package/applications/Components/arcadeUtils.js +2 -0
  6. package/assets/esri/core/workers/RemoteClient.js +1 -1
  7. package/assets/esri/core/workers/chunks/00e9e25269d5776f8645.js +1 -0
  8. package/assets/esri/core/workers/chunks/015fc0a17b17d69cc3bb.js +1 -0
  9. package/assets/esri/core/workers/chunks/0a6df243b18acae471be.js +1 -0
  10. package/assets/esri/core/workers/chunks/0cc4b3100a7a453bd058.js +1 -0
  11. package/assets/esri/core/workers/chunks/10cf6a70bf79f04a7208.js +1 -0
  12. package/assets/esri/core/workers/chunks/{e9a42f0262fc44a79d4b.js → 164ee62f2211987ad850.js} +1 -1
  13. package/assets/esri/core/workers/chunks/169ca3724053fc046d1b.js +1 -0
  14. package/assets/esri/core/workers/chunks/206bdfd868a9ef88f3a8.js +1 -0
  15. package/assets/esri/core/workers/chunks/2343b1105bc4c1b4a086.js +1 -0
  16. package/assets/esri/core/workers/chunks/{1bad4331a43169f3cc34.js → 2549a07f403447482f4e.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{f89b7b0ccfbd1e5f9a0f.js → 3092184350d66c79f610.js} +1 -1
  18. package/assets/esri/core/workers/chunks/3469df5c4846b0cee012.js +1 -0
  19. package/assets/esri/core/workers/chunks/{26f804c92077c11c626d.js → 394812e19b6915d560b0.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{2f8b173d1dac73ba0d9e.js → 3cf77b7a61f78f9bcd62.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{edbdee69440dbfc05644.js → 3e72bd6dbfc52d956c06.js} +1 -1
  22. package/assets/esri/core/workers/chunks/3feec3d08424b94e1bcf.js +1 -0
  23. package/assets/esri/core/workers/chunks/{ce4dfc3a470230ddc9e4.js → 43f58604ba4a94a9167c.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{ff57a071156d8a7e47be.js → 456d269e3982c437010a.js} +1 -1
  25. package/assets/esri/core/workers/chunks/46b16501db6681dc467b.js +1 -0
  26. package/assets/esri/core/workers/chunks/48549d3d7bf0154c0afa.js +1 -0
  27. package/assets/esri/core/workers/chunks/{713ab619060bd5087479.js → 4baf66314f82cfa76beb.js} +182 -157
  28. package/assets/esri/core/workers/chunks/{1ab66600579fa4232d7b.js → 4dc91c2208201ba34c90.js} +1 -1
  29. package/assets/esri/core/workers/chunks/{b14c4c3f295970f731ab.js → 500be1fb7cc9efec875c.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{fc6ca7ffb9f1b875059c.js → 51716e411fad624ac21c.js} +1 -1
  31. package/assets/esri/core/workers/chunks/54c035cdc171998d0776.js +1 -0
  32. package/assets/esri/core/workers/chunks/{b23e677c33db6f9bac8a.js → 566f6319ded0634769e0.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{701b823763e941b71f4f.js → 7185486c6dc28fc367a1.js} +1 -1
  34. package/assets/esri/core/workers/chunks/752f4e0e2961fc315dca.js +1 -0
  35. package/assets/esri/core/workers/chunks/7ba67f1d7831a5576a5a.js +1 -0
  36. package/assets/esri/core/workers/chunks/{186bfde8c552e3b42302.js → 7ef51b0ebd560113ae7e.js} +1 -1
  37. package/assets/esri/core/workers/chunks/7f0f10946f05a09b5654.js +1 -0
  38. package/assets/esri/core/workers/chunks/{fce2306a1b31c6680f90.js → 7f34fa9f154f5101cb13.js} +1 -1
  39. package/assets/esri/core/workers/chunks/8178e9ba3c568d406a87.js +1 -0
  40. package/assets/esri/core/workers/chunks/83f1871d04c979fa23b7.js +1 -0
  41. package/assets/esri/core/workers/chunks/85da2987e17b6755a94e.js +1 -0
  42. package/assets/esri/core/workers/chunks/8a5a827ee557d9f9a66e.js +1 -0
  43. package/assets/esri/core/workers/chunks/9c09097e390985bbac58.js +1 -0
  44. package/assets/esri/core/workers/chunks/{618106f5fbdf88ef2278.js → a401d44a5b45c05072c2.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{d0aee7c80c5c7e23d216.js → a429355534bf6cbd8304.js} +1 -1
  46. package/assets/esri/core/workers/chunks/a432219de6a873f88776.js +1 -0
  47. package/assets/esri/core/workers/chunks/{455d08294e0f5c5509ff.js → a6b75576d598ec161cc4.js} +1 -1
  48. package/assets/esri/core/workers/chunks/{99c6bd2125f4eb6796fe.js → aae40d70eb01249c1bab.js} +1 -1
  49. package/assets/esri/core/workers/chunks/b2662bfdbd1e3623ceb9.js +1 -0
  50. package/assets/esri/core/workers/chunks/b4bac22467e96be7a974.js +1 -0
  51. package/assets/esri/core/workers/chunks/{5166f204fd078dced5db.js → baea6f86b2dbe067940e.js} +1 -1
  52. package/assets/esri/core/workers/chunks/c3e89c7c7b677bd18557.js +1 -0
  53. package/assets/esri/core/workers/chunks/cb81d524f12edcadb9bb.js +1 -0
  54. package/assets/esri/core/workers/chunks/cc0f3b9b153a0c232afe.js +1 -0
  55. package/assets/esri/core/workers/chunks/cd0c232f4e3868d91a05.js +1 -0
  56. package/assets/esri/core/workers/chunks/{bae8f2a5dfe0cfbc0688.js → d00dddc3881fa29446e1.js} +1 -1
  57. package/assets/esri/core/workers/chunks/{9bd713d96502ddc2ce25.js → d8ccc713c5ad93e7a0c3.js} +1 -1
  58. package/assets/esri/core/workers/chunks/{e66b9d00d02fc08cbb2d.js → da008d6a3afb30d18392.js} +1 -1
  59. package/assets/esri/core/workers/chunks/dde94664110ff231a52d.js +1 -0
  60. package/assets/esri/core/workers/chunks/de3e5d82502ee15b7eae.js +1 -0
  61. package/assets/esri/core/workers/chunks/defac06f9e2b43090677.js +2 -0
  62. package/assets/esri/core/workers/chunks/e6fe8b5fbe95de01453b.js +1 -0
  63. package/assets/esri/core/workers/chunks/ee7e9bca57160694b3c4.js +1 -0
  64. package/assets/esri/core/workers/chunks/f36345ebb9851ab92453.js +1 -0
  65. package/assets/esri/core/workers/chunks/{add000f51c778114c028.js → f37e4ae0e9be80210db0.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{c503c79ba5761f7abbeb.js → fa869bfe4366f7f49cca.js} +1 -1
  67. package/assets/esri/core/workers/chunks/{d8de7fe49dba9ed589df.js → fade7b878a9498382bb2.js} +1 -1
  68. package/assets/esri/core/workers/chunks/fe30e61652716fcccf16.js +2 -0
  69. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  70. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  71. package/assets/esri/libs/text/pkg/bundle_bg.wasm +0 -0
  72. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ar.json +1 -1
  73. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_bg.json +1 -1
  74. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_bs.json +1 -1
  75. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ca.json +1 -1
  76. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_cs.json +1 -1
  77. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_da.json +1 -1
  78. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_de.json +1 -1
  79. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_el.json +1 -1
  80. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_es.json +1 -1
  81. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_et.json +1 -1
  82. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_fi.json +1 -1
  83. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_fr.json +1 -1
  84. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_he.json +1 -1
  85. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_hr.json +1 -1
  86. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_hu.json +1 -1
  87. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_id.json +1 -1
  88. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_it.json +1 -1
  89. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ja.json +1 -1
  90. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ko.json +1 -1
  91. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_lt.json +1 -1
  92. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_lv.json +1 -1
  93. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_nl.json +1 -1
  94. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_no.json +1 -1
  95. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_pl.json +1 -1
  96. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_pt-BR.json +1 -1
  97. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_pt-PT.json +1 -1
  98. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ro.json +1 -1
  99. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ru.json +1 -1
  100. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sk.json +1 -1
  101. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sl.json +1 -1
  102. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sr.json +1 -1
  103. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sv.json +1 -1
  104. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_th.json +1 -1
  105. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_tr.json +1 -1
  106. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_uk.json +1 -1
  107. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_vi.json +1 -1
  108. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_zh-CN.json +1 -1
  109. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_zh-HK.json +1 -1
  110. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_zh-TW.json +1 -1
  111. package/chunks/GlobalIllumination.glsl.js +25 -17
  112. package/chunks/GlowBlur.glsl.js +11 -8
  113. package/chunks/OITBlend.glsl.js +1 -1
  114. package/chunks/bundle2.js +1 -1
  115. package/config.js +1 -1
  116. package/core/has.js +1 -1
  117. package/interfaces.d.ts +0 -3
  118. package/kernel.js +1 -1
  119. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  120. package/layers/graphics/data/QueryEngineCapabilities.js +1 -1
  121. package/layers/graphics/data/QueryEngineResult.js +1 -1
  122. package/layers/graphics/sources/OGCFeatureSource.js +1 -1
  123. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  124. package/layers/mixins/ArcGISImageService.js +1 -1
  125. package/layers/support/SubtypeSublayer.js +1 -1
  126. package/layers/support/capabilities.js +1 -1
  127. package/layers/support/layerUtils.js +1 -1
  128. package/layers/support/serviceCapabilitiesUtils.js +1 -1
  129. package/networks/CircuitManager.d.ts +33 -25
  130. package/networks/CircuitManager.js +1 -1
  131. package/networks/support/typeUtils.d.ts +4 -1
  132. package/networks/support/typeUtils.js +1 -1
  133. package/package.json +3 -3
  134. package/renderers/ClassBreaksRenderer.js +1 -1
  135. package/renderers/UniqueValueRenderer.js +1 -1
  136. package/renderers/support/scaleDependentSymbolUtils.js +2 -0
  137. package/rest/networks/circuits/queryCircuits.js +1 -1
  138. package/rest/networks/circuits/support/QueryCircuitsParameters.d.ts +21 -15
  139. package/rest/networks/circuits/support/QueryCircuitsParameters.js +1 -1
  140. package/rest/query/operations/query.js +1 -1
  141. package/rest/support/Query.js +1 -1
  142. package/support/revision.js +1 -1
  143. package/third-party-notices.txt +19 -12
  144. package/views/2d/engine/webgl/GlyphSDFCreator.js +1 -1
  145. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  146. package/views/3d/analysis/LineOfSight/LineOfSightAuthoringStore.js +2 -0
  147. package/views/3d/analysis/LineOfSight/LineOfSightAuthoringUtils.js +2 -0
  148. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  149. package/views/3d/analysis/LineOfSight/LineOfSightDrawToolRenderer.js +2 -0
  150. package/views/3d/analysis/LineOfSight/LineOfSightObserverPlugin.js +2 -0
  151. package/views/3d/analysis/LineOfSight/LineOfSightPlacementTool.js +2 -0
  152. package/views/3d/analysis/LineOfSight/LineOfSightRootPlugin.js +2 -0
  153. package/views/3d/analysis/LineOfSight/LineOfSightTargetPlugin.js +2 -0
  154. package/views/3d/analysis/LineOfSight/LineOfSightTool2.js +1 -1
  155. package/views/3d/analysis/LineOfSightAnalysisView3D.js +1 -1
  156. package/views/3d/layers/FeatureLikeLayerViewBase3D.js +1 -1
  157. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  158. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceRayMarching.glsl.js +149 -0
  159. package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterColor.glsl.js +2 -2
  160. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
  161. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  162. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationTechniqueConfiguration.js +1 -1
  163. package/views/3d/webgl-engine/effects/glow/Glow.js +1 -1
  164. package/views/3d/webgl-engine/materials/WaterTechniqueConfiguration.js +1 -1
  165. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  166. package/views/3d/webgl-engine/shaders/TerrainTechniqueConfiguration.js +1 -1
  167. package/webmap/utils.js +1 -1
  168. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  169. package/assets/esri/core/workers/chunks/0c074c46d106ca4d3bad.js +0 -1
  170. package/assets/esri/core/workers/chunks/1f16bc8c02d8c4b2f693.js +0 -1
  171. package/assets/esri/core/workers/chunks/29878b52aa12b3815230.js +0 -1
  172. package/assets/esri/core/workers/chunks/2c916b93d8a6e6b9c0d7.js +0 -1
  173. package/assets/esri/core/workers/chunks/3ea5a18b264628dc37f0.js +0 -1
  174. package/assets/esri/core/workers/chunks/41913575dd45c65d645e.js +0 -1
  175. package/assets/esri/core/workers/chunks/46e622857ba92a72a317.js +0 -1
  176. package/assets/esri/core/workers/chunks/49e8144effc299dfcd66.js +0 -1
  177. package/assets/esri/core/workers/chunks/4d0f793dee4ad919221b.js +0 -1
  178. package/assets/esri/core/workers/chunks/65ac73de5bb133c6bf89.js +0 -1
  179. package/assets/esri/core/workers/chunks/67ec1694d6e18b7c234c.js +0 -1
  180. package/assets/esri/core/workers/chunks/6e526c06825ecc6c99c0.js +0 -1
  181. package/assets/esri/core/workers/chunks/6f7aaba26773fe416ac2.js +0 -1
  182. package/assets/esri/core/workers/chunks/7acf82763aeba44049d0.js +0 -1
  183. package/assets/esri/core/workers/chunks/88eb1e4320c4ada01711.js +0 -1
  184. package/assets/esri/core/workers/chunks/8af9a78cf316581ea482.js +0 -1
  185. package/assets/esri/core/workers/chunks/96bba4d93a32ad34a1c8.js +0 -1
  186. package/assets/esri/core/workers/chunks/97719271a3e4c9f2b2c9.js +0 -1
  187. package/assets/esri/core/workers/chunks/9ea23cd4b2664c08b670.js +0 -1
  188. package/assets/esri/core/workers/chunks/a1a12552d34ea9eea130.js +0 -1
  189. package/assets/esri/core/workers/chunks/a844547bf33a8527ee9f.js +0 -2
  190. package/assets/esri/core/workers/chunks/ac5999c88c27b49cd760.js +0 -1
  191. package/assets/esri/core/workers/chunks/b575292013bceef9b015.js +0 -1
  192. package/assets/esri/core/workers/chunks/bbc27d9285162696d089.js +0 -1
  193. package/assets/esri/core/workers/chunks/bc8a74da48b08309875f.js +0 -1
  194. package/assets/esri/core/workers/chunks/cd7159600ce132e32d04.js +0 -1
  195. package/assets/esri/core/workers/chunks/ce66c551b7083913eee5.js +0 -1
  196. package/assets/esri/core/workers/chunks/cf7acf5acb6d322fd996.js +0 -1
  197. package/assets/esri/core/workers/chunks/d9c3f14eee4db7a7137b.js +0 -1
  198. package/assets/esri/core/workers/chunks/db3c484bfa607dec6050.js +0 -1
  199. package/assets/esri/core/workers/chunks/dcc719e15b2e0cce1f3b.js +0 -1
  200. package/assets/esri/core/workers/chunks/ded2f19a1685db2137f4.js +0 -2
  201. package/assets/esri/core/workers/chunks/f43d628d47eec7d530c7.js +0 -1
  202. package/assets/esri/core/workers/chunks/fae147d03ed723ab234d.js +0 -1
  203. package/assets/esri/core/workers/chunks/fcf51697c361e0075cc2.js +0 -1
  204. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceReflections.glsl.js +0 -132
  205. /package/assets/esri/core/workers/chunks/{ded2f19a1685db2137f4.js.LICENSE.txt → defac06f9e2b43090677.js.LICENSE.txt} +0 -0
  206. /package/assets/esri/core/workers/chunks/{a844547bf33a8527ee9f.js.LICENSE.txt → fe30e61652716fcccf16.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6233],{52106(e,t,n){n.d(t,{A:()=>C});var r,i,s=n(5482),o=n(37838),a=n(69540),l=n(51447),u=n(25482),c=n(4718),p=n(53966),h=n(36708),f=n(24326),d=n(91429),m=n(12195),y=n(65864),g=n(50498),b=n(55156),v=n(60950),M=n(54339),w=n(94128),x=n(33910);function I(e){if(null==e)return null;const t={};for(const n in e){const r=e[n];r&&(t[n]=r.toJSON())}return 0!==Object.keys(t).length?t:null}let C=class extends((0,a.OU)(u.o)){static{r=w.Z}static{i=this}constructor(e){super(e),this[r]=!0,this.aggregateIds=void 0,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,f.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(p.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new i({aggregateGeometries:this.aggregateGeometries,aggregateIds:this.aggregateIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,v.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const n=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[n,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const n=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",n,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,b.I)(this.origin);if(e)return(0,M.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,M.r)(this,t):null}getGlobalId(){const e=(0,b.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){const e={aggregateGeometries:I(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,m.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.aggregateIds?.length&&(e.aggregateIds=(0,c.o8)(this.aggregateIds)),e}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const n={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",n,n,e.action)}}_notifyLayer(e,t,n,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const i={graphic:this,property:e,oldValue:t,newValue:n};"origin-transform"===e&&(i.action=r),"attributes"===e&&(i.attributeName=r),this.layer.graphicChanged(i)}_watchMeshGeometryChanges(){this.addHandles([(0,h.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,h.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,s.Cg)([(0,d.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const n in e){const r=(0,y.rS)(e[n]);r&&(t[n]=r)}return 0!==Object.keys(t).length?t:null}}})],C.prototype,"aggregateGeometries",null),(0,s.Cg)([(0,d.MZ)()],C.prototype,"aggregateIds",void 0),(0,s.Cg)([(0,d.MZ)({value:null})],C.prototype,"attributes",null),(0,s.Cg)([(0,d.MZ)({value:null,types:g.yR,json:{read:y.rS}})],C.prototype,"geometry",null),(0,s.Cg)([(0,d.MZ)({type:Boolean})],C.prototype,"isAggregate",void 0),(0,s.Cg)([(0,d.MZ)({clonable:!1})],C.prototype,"layer",void 0),(0,s.Cg)([(0,d.MZ)({clonable:"reference"})],C.prototype,"origin",void 0),(0,s.Cg)([(0,d.MZ)({type:o.A,value:null})],C.prototype,"popupTemplate",null),(0,s.Cg)([(0,d.MZ)({clonable:"reference"})],C.prototype,"sourceLayer",void 0),(0,s.Cg)([(0,d.MZ)({value:null,types:x.Es})],C.prototype,"symbol",null),(0,s.Cg)([(0,d.MZ)({clonable:!1,json:{read:!1,write:!1}})],C.prototype,"_version",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,value:!0})],C.prototype,"visible",null),C=i=(0,s.Cg)([(0,d.$K)("esri.Graphic")],C)},38961(e,t,n){n.d(t,{A:()=>c});var r=n(5482),i=n(7762),s=n(36708),o=n(10107),a=n(64108),l=n(80559);let u=class extends i.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,l.fm)(()=>this._refresh(),s.OH))}destroy(){this.getCollections=null}_refresh(){const e=this.getCollections?.();if(null==e)return void this.removeAll();let t=0;for(const n of e)null!=n&&(t=this._processCollection(t,n));this.splice(t)}_createNewInstance(e){return new i.A(e)}_processCollection(e,t){if(!t)return e;const n=this.itemFilterFunction??(e=>!!e);for(const r of t)if(r){if(n(r)){const t=this.indexOf(r,e);t>=0?t!==e&&this.reorder(r,e):this.add(r,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(r);if(Array.isArray(t))for(const n of t)e=this._processCollection(e,n);else e=this._processCollection(e,t)}}return e}};(0,r.Cg)([(0,o.MZ)()],u.prototype,"getCollections",void 0),(0,r.Cg)([(0,o.MZ)()],u.prototype,"getChildrenFunction",void 0),(0,r.Cg)([(0,o.MZ)()],u.prototype,"itemFilterFunction",void 0),u=(0,r.Cg)([(0,a.$)("esri.core.CollectionFlattener")],u);const c=u},60999(e,t,n){n.d(t,{DZ:()=>d,Ke:()=>f,Tj:()=>c,UT:()=>m,aD:()=>g,jJ:()=>u});var r=n(5482),i=n(69622),s=n(97768),o=n(17676),a=n(10107),l=n(64108);function u(e,t,n){return(0,o.Lx)(e.map((e,r)=>t.apply(n,[e,r])))}async function c(e,t,n){return(await(0,o.Lx)(e.map((e,r)=>t.apply(n,[e,r])))).map(e=>e.value)}function p(e){return{ok:!0,value:e}}function h(e){return{ok:!1,error:e}}async function f(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return p(await e)}catch(e){return h(e)}}async function d(e){try{return p(await e)}catch(e){return(0,o.QP)(e),h(e)}}function m(e,t){return new y(e,t)}let y=class extends i.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:n}=this._abortController;this.promise=e(n),this.promise.then(e=>{this._result=p(e),this._cleanup()},e=>{this._result=h(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,r.Cg)([(0,a.MZ)()],y.prototype,"value",null),(0,r.Cg)([(0,a.MZ)()],y.prototype,"error",null),(0,r.Cg)([(0,a.MZ)()],y.prototype,"finished",null),(0,r.Cg)([(0,a.MZ)()],y.prototype,"promise",void 0),(0,r.Cg)([(0,a.MZ)()],y.prototype,"_result",void 0),y=(0,r.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],y);class g{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,r.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,r.hk)(t)}}}},9093(e,t,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>i,vt:()=>r,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,fromValues:function(e,t,n,r,i,s,o,a,l,u,c,p,h,f,d,m){return[e,t,n,r,i,s,o,a,l,u,c,p,h,f,d,m]}},Symbol.toStringTag,{value:"Module"}))},35522(e,t,n){n.d(t,{$A:()=>A,Bw:()=>s,C:()=>o,Cc:()=>S,DI:()=>x,Il:()=>z,Io:()=>b,Ln:()=>g,Om:()=>C,Qr:()=>p,Re:()=>u,S8:()=>I,T9:()=>m,WQ:()=>l,Z0:()=>T,_S:()=>f,aI:()=>j,ei:()=>_,fw:()=>O,g7:()=>P,gL:()=>E,hG:()=>v,hZ:()=>a,hs:()=>y,jb:()=>F,jk:()=>d,lo:()=>q,lw:()=>c,m3:()=>M,oW:()=>L,t2:()=>Z,tn:()=>h,uE:()=>G,xg:()=>$,ze:()=>w});var r=n(51850),i=n(34304);function s(e){const t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}function l(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function u(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function c(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function p(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function h(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function f(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function d(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}function m(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}function y(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function g(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e}function b(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(n*n+r*r+i*i)}function v(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return n*n+r*r+i*i}function M(e){const t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}function w(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function x(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function I(e,t){const n=t[0],r=t[1],i=t[2];let s=n*n+r*r+i*i;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function C(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function A(e,t,n){const r=t[0],i=t[1],s=t[2],o=n[0],a=n[1],l=n[2];return e[0]=i*l-s*a,e[1]=s*o-r*l,e[2]=r*a-i*o,e}function S(e,t,n,r){const i=t[0],s=t[1],o=t[2];return e[0]=i+r*(n[0]-i),e[1]=s+r*(n[1]-s),e[2]=o+r*(n[2]-o),e}function T(e,t,n){const r=t[0],i=t[1],s=t[2];return e[0]=n[0]*r+n[4]*i+n[8]*s+n[12],e[1]=n[1]*r+n[5]*i+n[9]*s+n[13],e[2]=n[2]*r+n[6]*i+n[10]*s+n[14],e}function _(e,t,n){const r=t[0],i=t[1],s=t[2];return e[0]=r*n[0]+i*n[3]+s*n[6],e[1]=r*n[1]+i*n[4]+s*n[7],e[2]=r*n[2]+i*n[5]+s*n[8],e}function E(e,t,n){return O(e,t,n[0],n[1],n[2],n[3])}function O(e,t,n,r,i,s){const o=t[0],a=t[1],l=t[2],u=r*l-i*a,c=i*o-n*l,p=n*a-r*o,h=r*p-i*c,f=i*u-n*p,d=n*c-r*u,m=2*s;return e[0]=o+u*m+2*h,e[1]=a+c*m+2*f,e[2]=l+p*m+2*d,e}function P(e,t){I(R,e),I(N,t);const n=C(R,N);return n>1?0:n<-1?Math.PI:Math.acos(n)}const R=(0,r.vt)(),N=(0,r.vt)();function Z(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function j(e,t){if(e===t)return!0;const n=e[0],r=e[1],s=e[2],o=t[0],a=t[1],l=t[2],u=(0,i.FD)();return Math.abs(n-o)<=u*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(s-l)<=u*Math.max(1,Math.abs(s),Math.abs(l))}function L(e,t,n){const r=n[0]-t[0],i=n[1]-t[1],s=n[2]-t[2];let o=r*r+i*i+s*s;return o>0?(o=1/Math.sqrt(o),e[0]=r*o,e[1]=i*o,e[2]=s*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const F=u,U=c,k=p,$=b,q=v,z=s,G=M;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:l,angle:P,bezier:function(e,t,n,r,i,s){const o=1-s,a=o*o,l=s*s,u=a*o,c=3*s*a,p=3*l*o,h=l*s;return e[0]=t[0]*u+n[0]*c+r[0]*p+i[0]*h,e[1]=t[1]*u+n[1]*c+r[1]*p+i[1]*h,e[2]=t[2]*u+n[2]*c+r[2]*p+i[2]*h,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,n=1){return e[0]=Math.min(Math.max(e[0],t),n),e[1]=Math.min(Math.max(e[1],t),n),e[2]=Math.min(Math.max(e[2],t),n),e},copy:o,cross:A,crossAndNormalize:function(e,t,n){const r=t[0],i=t[1],s=t[2],o=n[0],a=n[1],l=n[2],u=i*l-s*a,c=s*o-r*l,p=r*a-i*o,h=Math.sqrt(u*u+c*c+p*p);return e[0]=u/h,e[1]=c/h,e[2]=p/h,e},direction:L,dist:$,distance:b,div:k,divide:p,dot:C,equals:j,exactEquals:Z,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,n,r,i,s){const o=s*s,a=o*(2*s-3)+1,l=o*(s-2)+s,u=o*(s-1),c=o*(3-2*s);return e[0]=t[0]*a+n[0]*l+r[0]*u+i[0]*c,e[1]=t[1]*a+n[1]*l+r[1]*u+i[1]*c,e[2]=t[2]*a+n[2]*l+r[2]*u+i[2]*c,e},inverse:x,len:z,length:s,lerp:S,max:m,min:d,mul:U,multiply:c,negate:w,normalize:I,random:function(e,t=1){const n=i.Ov,r=2*n()*Math.PI,s=2*n()-1,o=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(r)*o,e[1]=Math.sin(r)*o,e[2]=s*t,e},rotateX:function(e,t,n,r){const i=[],s=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],s[0]=i[0],s[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),s[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},rotateY:function(e,t,n,r){const i=[],s=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],s[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),s[1]=i[1],s[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},rotateZ:function(e,t,n,r){const i=[],s=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],s[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),s[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),s[2]=i[2],e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:y,scaleAndAdd:g,set:a,sign:f,sqrDist:q,sqrLen:G,squaredDistance:v,squaredLength:M,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:F,subtract:u,transformMat3:_,transformMat4:T,transformQuat:E,transformQuatValues:O},Symbol.toStringTag,{value:"Module"}))},16494(e,t,n){n.d(t,{Nd:()=>a,W5:()=>o});var r=n(17632);const i=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((e,t)=>(e[t]=[],e),{}),s=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],o=new r.I({whiteList:i,onTagAttr:(e,t,n)=>{const r=`${t}="${n}"`;if(s.includes(t))return r},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),a=new r.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1)},159(e,t,n){n.d(t,{A:()=>u});var r,i=n(5482),s=n(69540),o=n(25482),a=n(91429),l=n(99157);let u=r=class extends((0,s.OU)(o.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new r;for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}};(0,i.Cg)([(0,a.MZ)({type:[l.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=r=(0,i.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,t,n){n.d(t,{A:()=>l});var r,i=n(5482),s=n(69540),o=n(25482),a=n(91429);let l=r=class extends((0,s.OU)(o.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,i.Cg)([(0,a.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,n)=>{t[n]=!e}}})],l.prototype,"isInverse",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkt",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkid",void 0),l=r=(0,i.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformationStep")],l)},9762(e,t,n){n.r(t),n.d(t,{projectBuffer:()=>i});var r=n(49208);function i(e,t,n,i,s,o,a=Math.floor(e.length/3)){const l=(0,r.jd)(t,s);if(null==l)return!1;if(l===r.pO){if(e===i&&n===o)return!0;const t=n+3*a;for(let r=n,s=o;r<t;r++,s++)i[s]=e[r]??0;return!0}const u=n+3*a;for(let t=n,r=o;t<u;t+=3,r+=3)l(e,t,i,r);return!0}},49208(e,t,n){n.d(t,{Tp:()=>p,jd:()=>c,pO:()=>f,w5:()=>u});var r=n(34727),i=n(86211),s=n(73941),o=n(79258),a=n(34403),l=n(21325);const u={2:{5:f,7:null,9:null,10:f,1:w,6:null,8:null,0:null,3:m,11:y,2:f,4:S},5:{5:f,7:null,9:null,10:f,1:w,6:null,8:null,0:null,3:m,11:y,2:f,4:S},7:{5:null,7:f,9:null,10:f,1:null,6:M,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:f,10:f,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:d,7:null,9:null,10:d,1:function(e,t,n,r){const i=e[t]/R,s=P-2*Math.atan(Math.exp(-e[t+1]/R)),o=R+(e[t+2]??0),a=Math.cos(s)*o;n[r]=Math.cos(i)*a,n[r+1]=Math.sin(i)*a,n[r+2]=Math.sin(s)*o},6:null,8:null,0:null,3:f,11:function(e,t,n,r){d(e,t,n,r),y(n,r,n,r)},2:d,4:function(e,t,n,r){d(e,t,n,r),S(n,r,n,r)}},4:{5:T,7:null,9:null,10:T,1:function(e,t,n,r){T(e,t,n,r),w(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){T(e,t,n,r),m(n,r,n,r)},11:function(e,t,n,r){T(e,t,n,r),y(n,r,n,r)},2:T,4:f},1:{5:A,7:null,9:null,10:A,1:f,6:null,8:null,0:null,3:function(e,t,n,r){A(e,t,n,r),m(n,r,n,r)},11:function(e,t,n,r){A(e,t,n,r),y(n,r,n,r)},2:A,4:function(e,t,n,r){A(e,t,n,r),S(n,r,n,r)}},6:{5:null,7:C,9:null,10:C,1:null,6:f,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:I,10:I,1:null,6:null,8:f,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:f,3:null,11:null,2:null,4:null},10:{5:f,7:f,9:f,10:f,1:w,6:M,8:v,0:null,3:m,11:y,2:f,4:S},11:{5:g,7:null,9:null,10:g,1:function(e,t,n,r){g(e,t,n,r),w(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){g(e,t,n,r),m(n,r,n,r)},11:f,2:g,4:function(e,t,n,r){g(e,t,n,r),S(n,r,n,r)}}};function c(e,t){return p(e,t)?.projector}function p(e,t){if(null==e||null==t)return null;if(_.source.spatialReference===e&&_.dest.spatialReference===t)return _;const n=h(e,_.source),r=h(t,_.dest);return 0===n&&0===r?(0,l.aI)(e,t)?_.projector=f:_.projector=null:_.projector=u[n][r],_}function h(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,i.GA)(e,1)),(0,s.jA)(e)?t.spatialReferenceId=1:(0,l.oT)(e)?t.spatialReferenceId=2:(0,l.K8)(e)?t.spatialReferenceId=3:(0,l.r1)(e)?t.spatialReferenceId=11:e.wkt===s.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===s.FY.wkt?t.spatialReferenceId=6:e.wkt===s.LJ.wkt?t.spatialReferenceId=8:(0,s.q8)(e)?t.spatialReferenceId=7:(0,s.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function f(e,t,n,r){e!==n&&(n[r++]=e[t++],n[r++]=e[t++],n[r]=e[t]??0)}function d(e,t,n,r){n[r]=O*(e[t]/R),n[r+1]=O*(P-2*Math.atan(Math.exp(-e[t+1]/R))),n[r+2]=e[t+2]??0}function m(e,t,n,i){!function(e,t,n,i,s){const o=.4999999*Math.PI,a=(0,r.qE)(E*e[t+1],-o,o),l=Math.sin(a);n[i++]=E*e[t]*s.radius,n[i++]=s.halfSemiMajorAxis*Math.log((1+l)/(1-l)),n[i]=e[t+2]??0}(e,t,n,i,o.$O)}function y(e,t,n,r){n[r]=e[t]*N,n[r+1]=e[t+1]*N,n[r+2]=e[t+2]??0}function g(e,t,n,r){n[r]=e[t]*Z,n[r+1]=e[t+1]*Z,n[r+2]=e[t+2]??0}function b(e,t,n,r,i){const s=i+(e[t+2]??0),o=E*e[t],a=E*e[t+1],l=Math.cos(a)*s;n[r]=Math.cos(o)*l,n[r+1]=Math.sin(o)*l,n[r+2]=Math.sin(a)*s}function v(e,t,n,r){b(e,t,n,r,o.Sw.radius)}function M(e,t,n,r){b(e,t,n,r,o.sH.radius)}function w(e,t,n,r){b(e,t,n,r,o.$O.radius)}function x(e,t,n,i,s){const o=e[t],a=e[t+1],l=e[t+2]??0,u=Math.sqrt(o*o+a*a+l*l),c=(0,r.YN)(l/(0===u?1:u)),p=Math.atan2(a,o);n[i++]=O*p,n[i++]=O*c,n[i]=u-s}function I(e,t,n,r){x(e,t,n,r,o.Sw.radius)}function C(e,t,n,r){x(e,t,n,r,o.sH.radius)}function A(e,t,n,r){x(e,t,n,r,o.$O.radius)}function S(e,t,n,r){!function(e,t,n,r,i){const s=E*e[t],o=E*e[t+1],a=e[t+2]??0,l=Math.sin(o),u=Math.cos(o),c=i.radius/Math.sqrt(1-i.eccentricitySquared*l*l);n[r++]=(c+a)*u*Math.cos(s),n[r++]=(c+a)*u*Math.sin(s),n[r++]=(c*(1-i.eccentricitySquared)+a)*l}(e,t,n,r,o.$O)}function T(e,t,n,r){const i=a.TP,s=e[t],l=e[t+1],u=e[t+2]??0;let c,p,h,f,d,m,y,g,b,v,M,w,x,I,C,A,S,T,_,E,P;c=Math.abs(u),p=s*s+l*l,h=Math.sqrt(p),f=p+u*u,d=Math.sqrt(f),E=Math.atan2(l,s),m=u*u/f,y=p/f,I=i.a2/d,C=i.a3-i.a4/d,y>.3?(g=c/d*(1+y*(i.a1+I+m*C)/d),_=Math.asin(g),v=g*g,b=Math.sqrt(1-v)):(b=h/d*(1-m*(i.a5-I-y*C)/d),_=Math.acos(b),v=1-b*b,g=Math.sqrt(v)),M=1-o.$O.eccentricitySquared*v,w=o.$O.radius/Math.sqrt(M),x=i.a6*w,I=h-w*b,C=c-x*g,S=b*I+g*C,A=b*C-g*I,T=A/(x/M+S),_+=T,P=S+A*T/2,u<0&&(_=-_),n[r++]=O*E,n[r++]=O*_,n[r]=P}const _={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:f},E=(0,r.kU)(1),O=(0,r.KJ)(1),P=.5*Math.PI,R=o.$O.radius,N=R*Math.PI/180,Z=180/(R*Math.PI)},91218(e,t,n){n.r(t),n.d(t,{canProjectWithoutEngine:()=>W,initializeProjection:()=>V,isEqualBaseGCS:()=>D,isLoaded:()=>R,isLoadedOrLoad:()=>N,isLoadedOrLoadFor:()=>Z,load:()=>L,project:()=>F,projectAsync:()=>B,projectExtent:()=>ie,projectMany:()=>U,projectMultipoint:()=>Q,projectOrLoad:()=>$,projectOrLoadMany:()=>q,projectPoint:()=>J,projectPolygon:()=>ne,projectPolyline:()=>ee,projectWithoutEngine:()=>K,requiresLoad:()=>j,test:()=>H,tryProject:()=>k,unload:()=>G});var r=n(49186),i=n(17676),s=n(62788),o=n(95488),a=n(51850),l=n(21276),u=n(73941),c=n(5443),p=n(91075),h=n(48526),f=n(86738),d=n(39829),m=n(82799),y=n(16930),g=n(98764),b=n(159),v=n(9762),M=n(49208);function w(e,t,n,r,i,s){return x[0]=e,x[1]=t,x[2]=n,(0,v.projectBuffer)(x,r,0,i,s,0)}const x=(0,a.vt)();var I=n(60408),C=n(21325),A=n(52006);let S=null,T=null,_=null,E=null,O={};const P=new o.I;function R(){return!!(T?.isLoaded()&&_?.isLoaded()&&E?.isLoaded())}function N(){return!!R()||((0,s.gc)(P),L(),!1)}function Z(e,t){return!e||!t||W(e,t)||N()}function j(e,t){return!W(e,t)&&!R()}async function L(e){null==S&&(S=Promise.all([n.e(3276).then(n.bind(n,83276)).then(e=>(T=e,T.load())),n.e(8377).then(n.bind(n,8377)).then(e=>(_=e,_.load())),n.e(2158).then(n.bind(n,12158)).then(e=>(E=e,E.load()))])),await S,(0,i.Te)(e),P.notify()}function F(e,t,n){return Array.isArray(e)?0===e.length?[]:((0,l.H)(e),U(e,e[0].spatialReference,t,n)):((0,l.f)(e),U([e],e.spatialReference,t,n)[0])}function U(e,t,n,r){if(null==t||null==n)return e;if(W(t,n,r))return e.map(e=>K(e,t,n));if(null==r?.geographicTransformation&&(0,u.jA)(t))return U(e.map(e=>K(e,t,y.A.WGS84)),y.A.WGS84,n,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,u.jA)(n))return U(e,t,y.A.WGS84).map(e=>K(e,y.A.WGS84,n));if(!R())throw new z;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:E.getTransformation(t,n,r.areaOfInterestExtent)||new b.A};else if(!r?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,n);let i=O[e];i||(i=E.getTransformation(t,n)||new b.A,O[e]=i),r={geographicTransformation:i,zConversionDisabled:r?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?T.executeMany(e,n,r):_.executeMany(e,n,r)}function k(e,t,n){try{return F(e,t,n)}catch(e){return null}}function $(e,t){const n=q([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function q(e,t,n){if(!R())for(const n of e)if(null!=n&&!(0,C.aI)(n.spatialReference,t)&&(0,C.fn)(n.spatialReference)&&(0,C.fn)(t)&&!W(n.spatialReference,t))return(0,s.gc)(P),{pending:L(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,C.aI)(e.spatialReference,t)?e:(0,C.fn)(e.spatialReference)&&(0,C.fn)(t)?F(e,t,n):null)}}class z extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function G(){S=null,T=null,_=null,E=null,O={}}const H={get loadPromise(){return S}};async function B(e,t,n){if((0,i.Te)(n),!e)return e;const r=q(Array.isArray(e)?e:[e],t,n);if(r.pending)return await r.pending,(0,i.Te)(n),B(e,t,n);const s=r.geometries??[];return Array.isArray(e)?s:s[0]}function W(e,t,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,C.aI)(e,t)||(0,C.fn)(e)&&(0,C.fn)(t)&&!!(0,M.jd)(e,t))}function D(e,t){if((0,C.aI)(e,t))return!0;if(!(0,C.fn)(e)||!(0,C.fn)(t))return!1;const n=(0,C.oT)(e)||(0,C.K8)(e)||(0,C.x1)(e),r=(0,C.oT)(t)||(0,C.K8)(t)||(0,C.x1)(t);return n&&r}async function V(e,t,n,r){if(R())return(0,i.NO)(r);if(Array.isArray(e)){for(const{source:t,dest:n,options:i}of e)if(t&&n&&!W(t,n,i))return L(r)}else if(e&&t&&!W(e,t,n))return L(r);return(0,i.NO)(r)}function K(e,t,n){return e?(0,I.fT)(e)?Y(e,t,new f.A,n,0):(0,I.ZC)(e)?se(e,t,new c.A,n,0):(0,I.Bi)(e)?re(e,t,new d.A,n,0):(0,I.Rg)(e)?te(e,t,new m.A,n,0):(0,I.U9)(e)?X(e,t,new h.A,n,0):null:null}function J(e,t,n=t.spatialReference,r=0){return null!=n&&null!=e.spatialReference&&null!=Y(e,e.spatialReference,t,n,r)}function Y(e,t,n,r,i){ue[0]=e.x,ue[1]=e.y;const s=e.z;return ue[2]=void 0!==s?s:i,(0,v.projectBuffer)(ue,t,0,ue,r,0)?(n.x=ue[0],n.y=ue[1],n.spatialReference=r,void 0!==s||(0,u.xP)(r)?(n.z=ue[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function Q(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=X(e,e.spatialReference,t,n,r)}function X(e,t,n,r,i){const{points:s,hasZ:o,hasM:a}=e,l=[],u=s.length,c=[];for(const e of s)c.push(e[0],e[1],o?e[2]:i);if(!(0,v.projectBuffer)(c,t,0,c,r,0,u))return null;const p=le(o,r);for(let e=0;e<u;++e){const t=3*e,n=c[t],r=c[t+1];p&&a?l.push([n,r,c[t+2],s[e][3]]):p?l.push([n,r,c[t+2]]):a?l.push([n,r,s[e][2]]):l.push([n,r])}return n.points=l,n.spatialReference=r,n.hasZ=o,n.hasM=a,n}function ee(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=te(e,e.spatialReference,t,n,r)}function te(e,t,n,r,i){const{curvePaths:s,paths:o,hasZ:a,hasM:l}=e;if(!(s?ae(s,a??!1,l??!1,t,n.curvePaths=[],r,i):oe(o,a??!1,l??!1,t,n.paths,r,i)))return null;const u=le(a,r);return n.spatialReference=r,n.hasZ=u,n.hasM=l,n}function ne(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=re(e,e.spatialReference,t,n,r)}function re(e,t,n,r,i){const{curveRings:s,rings:o,hasZ:a,hasM:l}=e;return(s?ae(s,a??!1,l??!1,t,n.curveRings=[],r,i):oe(o,a??!1,l??!1,t,n.rings,r,i))?(n.spatialReference=r,n.hasZ=le(a,r),n.hasM=l,n):null}function ie(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=se(e,e.spatialReference,t,n,r)}function se(e,t,n,r,i){const{xmin:s,ymin:o,xmax:a,ymax:l,hasZ:u,hasM:c}=e;if(!w(s,o,u?e.zmin:i,t,ue,r))return null;const p=le(u,r);return n.xmin=ue[0],n.ymin=ue[1],p&&(n.zmin=ue[2]),w(a,l,u?e.zmax:i,t,ue,r)?(n.xmax=ue[0],n.ymax=ue[1],p&&(n.zmax=ue[2]),c&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=r,n):null}function oe(e,t,n,r,i,s,o=0){const a=new Array;for(const n of e)for(const e of n)a.push(e[0],e[1],t?e[2]:o);if(!(0,v.projectBuffer)(a,r,0,a,s,0))return!1;let l=0;i.length=0;const u=t?3:2,c=le(t,s);for(const t of e){const e=new Array;for(const r of t){const t=a.slice(l,l+=3);c||t.pop(),n&&t.push(r[u]),e.push(t)}i.push(e)}return!0}function ae(e,t,n,r,i,s,o=0){const a=new Array;for(const n of e)for(const e of n){if((0,A.FG)(e))return!1;if((0,A.aO)(e)){const[n,r]=e.c;a.push(n[0],n[1],t?n[2]:o,r[0],r[1],o);continue}if((0,A.n1)(e)){const[n,r,i]=e.b;a.push(n[0],n[1],t?n[2]:o,r[0],r[1],o,i[0],i[1],o);continue}const n=e;a.push(n[0],n[1],t?n[2]:o)}if(!(0,v.projectBuffer)(a,r,0,a,s,0))return!1;let l=0;i.length=0;const u=t?3:2,c=le(t,s);for(const t of e){const e=new Array;for(const r of t){const t=a.slice(l,l+=3);if(c||t.pop(),n&&t.push((0,A.yP)(r)[u]),(0,A.FG)(r))return!1;if((0,A.aO)(r)){const n=a[l++],r=a[l++];++l,e.push({c:[t,[n,r]]});continue}if((0,A.n1)(r)){const n=a[l++],r=a[l++];++l;const i=a[l++],s=a[l++];++l,e.push({b:[t,[n,r],[i,s]]});continue}e.push(t)}i.push(e)}return!0}function le(e,t){return e||(0,u.xP)(t)||(0,C.aI)(t,g.Y0)}const ue=(0,a.vt)()},98764(e,t,n){n.d(t,{GD:()=>o,Y0:()=>u,lO:()=>c});var r=n(73941),i=n(16930),s=n(21325);const o=new i.A(r.fv),a=new i.A(r.FY),l=new i.A(r.LJ),u=new i.A(r.Ro);function c(e){const t=p.get(e);if(t)return t;let n=o;if(e)if(e===a)n=a;else if(e===l)n=l;else{const t=e.wkid,r=e.latestWkid;if(null!=t||null!=r)(0,s.tl)(t)||(0,s.tl)(r)?n=a:((0,s.ZL)(t)||(0,s.ZL)(r))&&(n=l);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===h?n=a:e===f&&(n=l)}}}return p.set(e,n),n}const p=new Map,h=a.wkt.toUpperCase(),f=l.wkt.toUpperCase()},4197(e,t,n){n.d(t,{Vj:()=>l,cj:()=>a,jh:()=>s,l5:()=>o});var r=n(34275),i=n(9093);function s(e){return e<=r.y9?new Array(e).fill(0):new Float64Array(e)}function o(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function a(e){return[...e]}function l(e){const t=(0,i.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},70328(e,t,n){n.d(t,{BI:()=>v,DC:()=>p,Ej:()=>f,Ie:()=>g,Jt:()=>b,Ne:()=>d,RF:()=>c,aI:()=>w,fA:()=>o,gE:()=>l,hZ:()=>y,iT:()=>h,is:()=>M,qv:()=>x,vI:()=>m,vY:()=>a,v_:()=>I,vt:()=>s,w1:()=>u}),n(35522);var r=n(5443),i=(n(19419),n(4197));function s(e=I){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,n,r,i,o,a=s()){return a[0]=e,a[1]=t,a[2]=n,a[3]=r,a[4]=i,a[5]=o,a}function a(e,t=s()){return function(e,t,n,r=s()){return y(r,x),function(e,t,n=0,r=t.length/3){let i=e[0],s=e[1],o=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<r;e++)i=Math.min(i,t[n+3*e]),s=Math.min(s,t[n+3*e+1]),o=Math.min(o,t[n+3*e+2]),a=Math.max(a,t[n+3*e]),l=Math.max(l,t[n+3*e+1]),u=Math.max(u,t[n+3*e+2]);e[0]=i,e[1]=s,e[2]=o,e[3]=a,e[4]=l,e[5]=u}(r,e,t,n),r}(e,0,e.length/3,t)}function l(e,t=(0,i.jh)(24)){const[n,r,s,o,a,l]=e;return t[0]=n,t[1]=r,t[2]=s,t[3]=n,t[4]=r,t[5]=l,t[6]=n,t[7]=a,t[8]=s,t[9]=n,t[10]=a,t[11]=l,t[12]=o,t[13]=r,t[14]=s,t[15]=o,t[16]=r,t[17]=l,t[18]=o,t[19]=a,t[20]=s,t[21]=o,t[22]=a,t[23]=l,t}function u(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new r.A(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function h(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function f(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function d(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function m(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function y(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}function g(e){return e?y(e,x):s(x)}function b(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function v(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=i,e[5]=Number.POSITIVE_INFINITY,e}function M(e){return 6===e.length}function w(e,t,n){if(null==e||null==t)return e===t;if(!M(e)||!M(t))return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const x=[1/0,1/0,1/0,-1/0,-1/0,-1/0],I=[0,0,0,0,0,0];s()},34403(e,t,n){n.d(t,{TP:()=>o});var r=n(79258);Math.PI;const i=r.$O.radius,s=r.$O.eccentricitySquared,o={a1:i*s,a2:i*s*i*s,a3:i*s*s/2,a4:i*s*i*s*2.5,a5:i*s+i*s*s/2,a6:1-s};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius},83960(e,t,n){n.d(t,{X_:()=>s,oW:()=>a,zx:()=>o});var r=n(34727),i=n(86211);function s(e,t){const n=t||e.extent,r=e.width,s=(0,i.GA)(n?.spatialReference);return n&&r?n.width/r*s*i.dy*96:0}function o(e,t,n){return function(e,t){return 0===t||(0,r.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,r.Sp)(e,t)||e>t}(e,n)}function a(e,t){return(0,r.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},50498(e,t,n){n.d(t,{Ye:()=>p,gy:()=>c,iI:()=>f,yR:()=>h});var r=n(66552),i=n(5443),s=n(91075),o=n(48526),a=n(86738),l=n(39829),u=n(82799);const c=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),p=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),h={base:s.A,key:"type",typeMap:{extent:i.A,multipoint:o.A,point:a.A,polyline:u.A,polygon:l.A}},f=new r.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0})},55156(e,t,n){n.d(t,{I:()=>i,e:()=>r});const r=Symbol("idFieldsProviderSymbol");function i(e){return(t=e)&&r in t?e[r]:void 0;var t}},51904(e,t,n){n.r(t),n.d(t,{default:()=>Ae});var r=n(5482),i=n(92602),s=n(52106),o=n(37838),a=n(11254),l=n(7762),u=n(38961),c=n(49186),p=n(66552),h=n(4718),f=n(25728),d=n(17676),m=n(36708),y=n(16494),g=n(84952),b=n(91429),v=n(56507),M=n(49422),w=n(5443),x=n(16930),I=n(83960),C=n(21325),A=n(4146),S=n(63074),T=n(34287),_=n(8303),E=n(54310),O=n(25036),P=n(82935),R=n(38458),N=n(60694),Z=n(10873),j=n(69622);const L={visible:"visibleSublayers"};let F=class extends j.A{constructor(e){super(e),this.scale=0}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.sublayers.on("change",()=>this.notifyChange("visibleSublayers")),e.on("wms-sublayer-update",e=>this.notifyChange(L[e.propertyName]))],"layer"))}get layers(){return this.visibleSublayers.filter(({name:e})=>e).map(({name:e})=>e).join()}get version(){this.commitProperty("layers");const e=this.layer;return e&&e.commitProperty("imageTransparency"),(this._get("version")||0)+1}get visibleSublayers(){const{layer:e,scale:t}=this,n=e?.sublayers,r=[],i=e=>{const{minScale:n,maxScale:s,sublayers:o,visible:a}=e;a&&(0===t||(0===n||t<=n)&&(0===s||t>=s))&&(o?o.forEach(i):r.push(e))};return n?.forEach(i),r}toJSON(){const{layer:e,layers:t}=this,{imageFormat:n,imageTransparency:r,version:i}=e;return{format:n,request:"GetMap",service:"WMS",styles:"",transparent:r?"TRUE":"FALSE",version:i,layers:t}}};(0,r.Cg)([(0,b.MZ)()],F.prototype,"layer",null),(0,r.Cg)([(0,b.MZ)({readOnly:!0})],F.prototype,"layers",null),(0,r.Cg)([(0,b.MZ)({type:Number})],F.prototype,"scale",void 0),(0,r.Cg)([(0,b.MZ)({readOnly:!0})],F.prototype,"version",null),(0,r.Cg)([(0,b.MZ)({readOnly:!0})],F.prototype,"visibleSublayers",null),F=(0,r.Cg)([(0,b.$K)("esri.layers.support.ExportWMSImageParameters")],F);var U,k=n(33446),$=n(4902),q=n(36005);let z=0,G=U=class extends((0,$.s)((0,f.M)(j.A))){constructor(e){super(e),this.description=null,this.dimensions=null,this.fullExtent=null,this.fullExtents=null,this.legendUrl=null,this.legendEnabled=!0,this.layer=null,this.maxScale=0,this.minScale=0,this.name=null,this.parent=null,this.popupEnabled=!1,this.queryable=!1,this.spatialReferences=null,this.title=null,this.addHandles([(0,m.on)(()=>this.sublayers,"after-add",({item:e})=>{e.parent=this,e.layer=this.layer},m.OH),(0,m.on)(()=>this.sublayers,"after-remove",({item:e})=>{e.layer=e.parent=null},m.OH),(0,m.wB)(()=>this.sublayers,(e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=this,t.layer=this.layer},m.OH),(0,m.wB)(()=>this.layer,e=>{if(this.sublayers)for(const t of this.sublayers)t.layer=e},m.OH)])}get id(){return this._get("id")??z++}set id(e){this._set("id",e)}readLegendUrl(e,t){return t.legendUrl??t.legendURL??null}get effectiveScaleRange(){const{minScale:e,maxScale:t}=this;return{minScale:e,maxScale:t}}get sublayers(){return this._get("sublayers")}set sublayers(e){this._set("sublayers",e)}castSublayers(e){return(0,v.dp)(l.A.ofType(U),e)}set visible(e){this._setAndNotifyLayer("visible",e)}clone(){const e=new U;return this.hasOwnProperty("description")&&(e.description=this.description),this.hasOwnProperty("fullExtent")&&(e.fullExtent=this.fullExtent.clone()),this.hasOwnProperty("fullExtents")&&(e.fullExtents=this.fullExtents?.map(e=>e.clone())??null),this.hasOwnProperty("legendUrl")&&(e.legendUrl=this.legendUrl),this.hasOwnProperty("legendEnabled")&&(e.legendEnabled=this.legendEnabled),this.hasOwnProperty("layer")&&(e.layer=this.layer),this.hasOwnProperty("name")&&(e.name=this.name),this.hasOwnProperty("parent")&&(e.parent=this.parent),this.hasOwnProperty("queryable")&&(e.queryable=this.queryable),this.hasOwnProperty("sublayers")&&(e.sublayers=this.sublayers?.map(e=>e.clone())),this.hasOwnProperty("spatialReferences")&&(e.spatialReferences=this.spatialReferences?.map(e=>e)),this.hasOwnProperty("visible")&&(e.visible=this.visible),this.hasOwnProperty("title")&&(e.title=this.title),e}_setAndNotifyLayer(e,t){const n=this.layer;this._get(e)!==t&&(this._set(e,t),n&&n.emit("wms-sublayer-update",{propertyName:e,id:this.id}))}};(0,r.Cg)([(0,b.MZ)()],G.prototype,"description",void 0),(0,r.Cg)([(0,b.MZ)({readOnly:!0})],G.prototype,"dimensions",void 0),(0,r.Cg)([(0,b.MZ)({type:w.A,json:{name:"extent"}})],G.prototype,"fullExtent",void 0),(0,r.Cg)([(0,b.MZ)()],G.prototype,"fullExtents",void 0),(0,r.Cg)([(0,b.MZ)({type:Number,json:{write:{enabled:!1,overridePolicy:()=>({ignoreOrigin:!0,enabled:!0})}}})],G.prototype,"id",null),(0,r.Cg)([(0,b.MZ)({type:String,json:{name:"legendUrl",write:{ignoreOrigin:!0}}})],G.prototype,"legendUrl",void 0),(0,r.Cg)([(0,q.w)("legendUrl",["legendUrl","legendURL"])],G.prototype,"readLegendUrl",null),(0,r.Cg)([(0,b.MZ)({type:Boolean,json:{name:"showLegend",origins:{"web-map":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],G.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,b.MZ)()],G.prototype,"layer",void 0),(0,r.Cg)([(0,b.MZ)()],G.prototype,"maxScale",void 0),(0,r.Cg)([(0,b.MZ)()],G.prototype,"minScale",void 0),(0,r.Cg)([(0,b.MZ)({readOnly:!0})],G.prototype,"effectiveScaleRange",null),(0,r.Cg)([(0,b.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],G.prototype,"name",void 0),(0,r.Cg)([(0,b.MZ)()],G.prototype,"parent",void 0),(0,r.Cg)([(0,b.MZ)({type:Boolean,json:{read:{source:"showPopup"},write:{ignoreOrigin:!0,target:"showPopup"}}})],G.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,b.MZ)({type:Boolean,json:{write:{ignoreOrigin:!0}}})],G.prototype,"queryable",void 0),(0,r.Cg)([(0,b.MZ)()],G.prototype,"sublayers",null),(0,r.Cg)([(0,b.wg)("sublayers")],G.prototype,"castSublayers",null),(0,r.Cg)([(0,b.MZ)({type:[Number],json:{read:{source:"spatialReferences"}}})],G.prototype,"spatialReferences",void 0),(0,r.Cg)([(0,b.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],G.prototype,"title",void 0),(0,r.Cg)([(0,b.MZ)({type:Boolean,value:!0,json:{read:{source:"defaultVisibility"}}})],G.prototype,"visible",null),G=U=(0,r.Cg)([(0,b.$K)("esri.layers.support.WMSSublayer")],G);var H=n(4576),B=n(92647);const W={84:4326,83:4269,27:4267};function D(e){if(!e)return null;const t={idCounter:-1};"string"==typeof e&&(e=(new DOMParser).parseFromString(e,"text/xml"));const n=e.documentElement;if("ServiceExceptionReport"===n.nodeName){const e=Array.prototype.slice.call(n.childNodes).map(e=>e.textContent).join("\r\n");throw new c.A("wmslayer:wms-capabilities-xml-is-not-valid","The server returned errors when the WMS capabilities were requested.",e)}const r=Y("Capability",n),i=Y("Service",n),s=r&&Y("Request",r);if(!r||!i||!s)return null;const o=Y("Layer",r);if(!o)return null;const a="WMS_Capabilities"===n.nodeName||"WMT_MS_Capabilities"===n.nodeName?n.getAttribute("version"):"1.3.0",l=X("Title",i,"")||X("Name",i,""),u=X("AccessConstraints",i,""),p=/^none$/i.test(u)?"":u,h=X("Abstract",i,""),f=parseInt(X("MaxWidth",i,"5000"),10),d=parseInt(X("MaxHeight",i,"5000"),10),m=ne(s,"GetMap"),y=te(s,"GetMap"),g=ie(o,a,t);if(!g)return null;let b,v=0;const M=Array.prototype.slice.call(r.childNodes),w=g.sublayers??[],x=e=>{null!=e&&w.push(e)};M.forEach(e=>{"Layer"===e.nodeName&&(0===v?b=e:1===v?(g.name&&(g.name="",x(ie(b,a,t))),x(ie(e,a,t))):x(ie(e,a,t)),v++)});const I=g.sublayers??[],C=g.fullExtents??[];0===I.length&&I.push(g),g.extent??=I[0].extent;const A=g.spatialReferences.length>0?g.spatialReferences:V(g),S=te(s,"GetFeatureInfo"),T=S?ne(s,"GetFeatureInfo"):null,_=K(I),E=g.minScale||0,O=g.maxScale||0,P=g.dimensions??[],R=_.reduce((e,t)=>e.concat(t.dimensions??[]),[]),N=P.concat(R).filter(oe);let Z=null;if(N.length){const e=N.map(e=>{const{extent:t}=e;return function(e){return Array.isArray(e)&&e.length>0&&e[0]instanceof Date}(t)?t.map(e=>e.getTime()):t?.map(e=>[e.min.getTime(),e.max.getTime()])}).flat(2).filter(H.Ru),{start:t,end:n}=e.reduce((e,t)=>({start:Math.min(e.start,t),end:Math.max(e.end,t)}),{start:1/0,end:-1/0});Z={startTimeField:null,endTimeField:null,trackIdField:void 0,timeExtent:[t,n]}}return{copyright:p,description:h,dimensions:P,extent:g.extent,fullExtents:C,featureInfoFormats:T,featureInfoUrl:S,mapUrl:y,maxWidth:f,maxHeight:d,maxScale:O,minScale:E,layers:_,spatialReferences:A,supportedImageFormatTypes:m,timeInfo:Z,title:l,version:a}}function V(e){if(e.spatialReferences.length>0)return e.spatialReferences;if(e.sublayers)for(const t of e.sublayers){const e=V(t);if(e.length>0)return e}return[]}function K(e){let t=[];for(const n of e)t.push(n),n.sublayers?.length&&(t=t.concat(K(n.sublayers)),delete n.sublayers);return t}function J(e,t,n){return t.getAttribute(e)??n}function Y(e,t){for(let n=0;n<t.childNodes.length;n++){const r=t.childNodes[n];if(se(r)&&r.nodeName===e)return r}return null}function Q(e,t){if(null==t)return[];const n=[];for(let r=0;r<t.childNodes.length;r++){const i=t.childNodes[r];se(i)&&i.nodeName===e&&n.push(i)}return n}function X(e,t,n){return Y(e,t)?.textContent??n}function ee(e,t,n){const r=parseFloat(e.getAttribute("minx")??"0"),i=parseFloat(e.getAttribute("miny")??"0"),s=parseFloat(e.getAttribute("maxx")??"0"),o=parseFloat(e.getAttribute("maxy")??"0");return{xmin:n?isNaN(i)?-Number.MAX_VALUE:i:isNaN(r)?-Number.MAX_VALUE:r,ymin:n?isNaN(r)?-Number.MAX_VALUE:r:isNaN(i)?-Number.MAX_VALUE:i,xmax:n?isNaN(o)?Number.MAX_VALUE:o:isNaN(s)?Number.MAX_VALUE:s,ymax:n?isNaN(s)?Number.MAX_VALUE:s:isNaN(o)?Number.MAX_VALUE:o,spatialReference:{wkid:t}}}function te(e,t){const n=Y(t,e);if(n){const e=Y("DCPType",n);if(e){const t=Y("HTTP",e);if(t){const e=Y("Get",t);if(e){let t=function(e,t,n){const r=Y("OnlineResource",n);return r?J("xlink:href",r,null):null}(0,0,e);if(t){const e=t.indexOf("&");return-1!==e&&e===t.length-1&&(t=t.slice(0,-1)),function(e,t){const n=[],r=(0,g.An)(e);for(const e in r.query)r.query.hasOwnProperty(e)&&(t.includes(e.toLowerCase())||n.push(e+"="+r.query[e]));return r.path+(n.length?"?"+n.join("&"):"")}(t,["service","request"])}}}}}return null}function ne(e,t){const n=Q("Operation",e);if(!n.length)return Q("Format",Y(t,e)).map(({textContent:e})=>e).filter(H.Ru);const r=[];for(const e of n)if(e.getAttribute("name")===t){const t=Q("Format",e);for(const{textContent:e}of t)null!=e&&r.push(e)}return r}function re(e,t,n){const r=Y(t,e);if(!r)return n;const{textContent:i}=r;if(null==i||""===i)return n;const s=Number(i);return isNaN(s)?n:s}function ie(e,t,n){if(!e)return null;const r=e.getAttribute("queryable")?.toLowerCase(),i="1"===r||"true"===r,s={id:n.idCounter++,fullExtents:[],parentLayerId:null,queryable:i,spatialReferences:[],sublayers:null},o=Y("LatLonBoundingBox",e),a=Y("EX_GeographicBoundingBox",e),l=o?ee(o,4326):a?{xmin:parseFloat(X("westBoundLongitude",a,"0")),ymin:parseFloat(X("southBoundLatitude",a,"0")),xmax:parseFloat(X("eastBoundLongitude",a,"0")),ymax:parseFloat(X("northBoundLatitude",a,"0")),spatialReference:{wkid:4326}}:{xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:{wkid:4326}};s.minScale=re(e,"MaxScaleDenominator",0),s.maxScale=re(e,"MinScaleDenominator",0);const u=["1.0.0","1.1.0","1.1.1"].includes(t)?"SRS":"CRS";return Array.prototype.slice.call(e.childNodes).forEach(e=>{if("Name"===e.nodeName)s.name=e.textContent||"";else if("Title"===e.nodeName)s.title=e.textContent||"";else if("Abstract"===e.nodeName)s.description=e.textContent||"";else if("BoundingBox"===e.nodeName){const n=e.getAttribute(u),r=n?.indexOf(":");if(r&&r>-1){let i=parseInt(n.slice(r+1),10);0===i||isNaN(i)||(i=W[i]??i);const o="1.3.0"===t?ee(e,i,(0,R.m)(i)):ee(e,i);o&&s.fullExtents&&s.fullExtents.push(o)}}else if(e.nodeName===u)(e.textContent?.split(" ")??[]).forEach(e=>{let t=NaN;if(e.includes(":")){const[n,r]=e.toUpperCase().split(":");"CRS"!==n&&"EPSG"!==n||(t=parseInt(r,10))}else t=parseInt(e,10);if(0!==t&&!isNaN(t)){const e=W[t]??t;s.spatialReferences.includes(e)||s.spatialReferences.push(e)}});else if("Style"!==e.nodeName||s.legendUrl){if("Layer"===e.nodeName){const r=ie(e,t,n);r&&(r.parentLayerId=s.id,s.sublayers||(s.sublayers=[]),s.sublayers.push(r))}}else{const t=Y("LegendURL",e);if(t){const e=Y("OnlineResource",t);e&&(s.legendUrl=e.getAttribute("xlink:href"))}}}),s.extent=l,s.dimensions=Q("Dimension",e).filter(e=>e.getAttribute("name")&&e.getAttribute("units")&&e.textContent).map(e=>{const t=e.getAttribute("name"),n=e.getAttribute("units"),r=e.textContent,i=e.getAttribute("unitSymbol")??void 0,s=e.getAttribute("default")??void 0,o="0"!==J("default",e,"0"),a="0"!==J("nearestValue",e,"0"),l="0"!==J("current",e,"0");return oe({name:t,units:n})?{name:"time",units:"ISO8601",extent:ue(r),default:ue(s),multipleValues:o,nearestValue:a,current:l}:function(e){return/^elevation$/i.test(e.name)&&/^(epsg|crs):\d+$/i.test(e.units)}({name:t,units:n})?{name:"elevation",units:n,extent:ae(r),unitSymbol:i,default:ae(s),multipleValues:o,nearestValue:a}:{name:t,units:n,extent:le(r),unitSymbol:i,default:le(s),multipleValues:o,nearestValue:a}}),s}function se(e){return e.nodeType===Node.ELEMENT_NODE}function oe(e){return/^time$/i.test(e.name)&&/^iso8601$/i.test(e.units)}function ae(e){if(!e)return;const t=e.includes("/"),n=e.split(",");return t?n.map(e=>{const t=e.split("/");return t.length<2?null:{min:parseFloat(t[0]),max:parseFloat(t[1]),resolution:t.length>=3&&"0"!==t[2]?parseFloat(t[2]):void 0}}).filter(H.Ru):n.map(e=>parseFloat(e))}function le(e){if(!e)return;const t=e.includes("/"),n=e.split(",");return t?n.map(e=>{const t=e.split("/");return t.length<2?null:{min:t[0],max:t[1],resolution:t.length>=3&&"0"!==t[2]?t[2]:void 0}}).filter(H.Ru):n}function ue(e){if(!e)return;const t=e.includes("/"),n=e.split(",");return t?n.map(e=>{const t=e.split("/");return t.length<2?null:{min:ce(t[0]),max:ce(t[1]),resolution:t.length>=3&&"0"!==t[2]?pe(t[2]):void 0}}).filter(H.Ru):n.map(e=>ce(e))}function ce(e){return B.c9.fromISO(e,{zone:B.mQ.utcInstance}).toJSDate()}function pe(e){const t=e.match(/(?:p(\d+y|\d+(?:\.|,)\d+y)?(\d+m|\d+(?:\.|,)\d+m)?(\d+d|\d+(?:\.|,)\d+d)?)?(?:t(\d+h|\d+(?:\.|,)\d+h)?(\d+m|\d+(?:\.|,)\d+m)?(\d+s|\d+(?:\.|,)\d+s)?)?/i);return t?{years:he(t[1]),months:he(t[2]),days:he(t[3]),hours:he(t[4]),minutes:he(t[5]),seconds:he(t[6])}:null}function he(e){if(!e)return 0;const t=e.match(/(?:\d+(?:\.|,)\d+|\d+)/);if(!t)return 0;const n=t[0].replace(",",".");return Number(n)}function fe(e){return e.toISOString().replace(/\.[0-9]{3}/,"")}function de(e){if(!e||e.isAllTime||e.isEmpty)return;const{start:t,end:n}=e;return t&&t.getTime()===n?.getTime()?`${fe(t)}`:`${t?fe(t):"0000-01-01T00:00:00Z"}/${n?fe(n):"9999-12-31T23:59:59Z"}`}const me=new Set([102100,3857,102113,900913]),ye=new Set([3395,54004]);var ge=n(79677),be=n(10184),ve=n(43937);const Me=new p.J({bmp:"image/bmp",gif:"image/gif",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml"},{ignoreUnknown:!1});function we(e){return"text/html"===e}function xe(e){return"text/plain"===e}let Ie=class extends((0,S.dM)((0,P.e)((0,E.J)((0,O.j)((0,T.q)((0,_.A)((0,f.M)(A.A)))))))){constructor(...e){super(...e),this.allSublayers=new u.A({getCollections:()=>[this.sublayers],getChildrenFunction:e=>e.sublayers}),this.customParameters=null,this.customLayerParameters=null,this.copyright=null,this.description=null,this.dimensions=null,this.fullExtent=null,this.fullExtents=null,this.featureInfoFormats=null,this.featureInfoUrl=null,this.fetchFeatureInfoFunction=null,this.imageFormat=null,this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.legendEnabled=!0,this.mapUrl=null,this.isReference=null,this.operationalLayerType="WMS",this.spatialReference=null,this.spatialReferences=null,this.sublayers=null,this.type="wms",this.version=null,this.addHandles([(0,m.on)(()=>this.sublayers,"after-add",({item:e})=>{e.parent=e.layer=this},m.OH),(0,m.on)(()=>this.sublayers,"after-remove",({item:e})=>{e.layer=e.parent=null},m.OH),(0,m.wB)(()=>this.sublayers,(e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=t.layer=this},m.OH)])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this.allSublayers.destroy()}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WMS"]},e).catch(d.QP).then(()=>this._fetchService(t)).then(()=>this._checkLayerValidity())),Promise.resolve(this)}get timeInfo(){return super.timeInfo}set timeInfo(e){super.timeInfo=e}readFullExtentFromItemOrMap(e,t){const n=t.extent;return n?new w.A({xmin:n[0][0],ymin:n[0][1],xmax:n[1][0],ymax:n[1][1]}):null}writeFullExtent(e,t){t.extent=[[e.xmin,e.ymin],[e.xmax,e.ymax]]}get featureInfoFormat(){return null==this.featureInfoFormats?null:this.featureInfoFormats.find(we)??this.featureInfoFormats.find(xe)??null}set featureInfoFormat(e){null==e?(this.revertToOrigin("featureInfoFormat","service"),this._clearOverride("featureInfoFormat")):(we(e)||xe(e))&&this._override("featureInfoFormat",e)}readImageFormat(e,t){const n=t.supportedImageFormatTypes;return n&&n.includes("image/png")?"image/png":n&&n[0]}readSpatialReferenceFromItemOrDocument(e,t){return new x.A(t.spatialReferences[0])}writeSpatialReferences(e,t){const n=this.spatialReference?.wkid;e&&n?(t.spatialReferences=e.filter(e=>e!==n),t.spatialReferences.unshift(n)):t.spatialReferences=e}readSublayersFromItemOrMap(e,t,n){return Ce(t.layers,n,t.visibleLayers)}readSublayers(e,t,n){return Ce(t.layers,n)}writeSublayers(e,t,n,r){t.layers=[];const i=new Map,s=e.flatten(({sublayers:e})=>e??[]);for(const e of s)if("number"==typeof e.parent?.id){const t=i.get(e.parent.id);null!=t?t.push(e.id):i.set(e.parent.id,[e.id])}for(const e of s){const n={sublayer:e,...r},s=e.write({parentLayerId:"number"==typeof e.parent?.id?e.parent.id:-1},n);if(i.has(e.id)&&(s.sublayerIds=i.get(e.id)),!e.sublayers&&e.name){const r=e.write({},n);delete r.id,t.layers.push(r)}}t.visibleLayers=s.filter(({visible:e,sublayers:t})=>e&&!t).map(({name:e})=>e).toArray()}set url(e){if(!e)return void this._set("url",e);const{path:t,query:n}=(0,g.An)(e);for(const e in n)/^(request|service)$/i.test(e)&&delete n[e];const r=(0,g.a6)(t,n??{});this._set("url",r)}createExportImageParameters(e,t,n,r){const i=r?.pixelRatio??1,s=(0,I.X_)({extent:e,width:t})*i,o=new F({layer:this,scale:s}),{xmin:a,ymin:l,xmax:u,ymax:c,spatialReference:p}=e,h=function(e,t){let n=e.wkid;return null==t?n:(null!=n&&t.includes(n)||!e.latestWkid||(n=e.latestWkid),null!=n&&me.has(n)?t.find(e=>me.has(e))||t.find(e=>ye.has(e))||102100:n)}(p,this.spatialReferences),f="1.3.0"===this.version&&(0,R.m)(h)?`${l},${a},${c},${u}`:`${a},${l},${u},${c}`,d=o.toJSON(),m="1.3.0"===this.version?"crs":"srs";return{bbox:f,[m]:null==h||isNaN(h)?void 0:"EPSG:"+h,...d}}async fetchImage(e,t,n,r){const i=this.mapUrl,s=this.createExportImageParameters(e,t,n,r);if(!s.layers){const e=document.createElement("canvas");return e.width=t,e.height=n,e}const o=de(r?.timeExtent),l={responseType:"image",query:this._mixCustomParameters({width:t,height:n,...s,time:o,...this.refreshParameters}),signal:r?.signal};return(0,a.A)(i??"",l).then(e=>e.data)}async fetchImageBitmap(e,t,n,r){const i=this.mapUrl??"",s=this.createExportImageParameters(e,t,n,r);if(!s.layers){const e=document.createElement("canvas");return e.width=t,e.height=n,e}const o=de(r?.timeExtent),l={responseType:"blob",query:this._mixCustomParameters({width:t,height:n,...s,time:o,...this.refreshParameters}),signal:r?.signal},{data:u}=await(0,a.A)(i,l);return(0,k.mn)(u,i,r)}fetchFeatureInfo(e,t,n,r,i){const s=(0,I.X_)({extent:e,width:t}),o=function(e){const t=e.filter(e=>e.popupEnabled&&e.name&&e.queryable);return t.length?t.map(({name:e})=>e).join():null}(new F({layer:this,scale:s}).visibleSublayers);if(null==this.featureInfoUrl||null==o)return Promise.resolve([]);if(null==this.fetchFeatureInfoFunction&&null==this.featureInfoFormat)return Promise.resolve([]);const a="1.3.0"===this.version?{I:r,J:i}:{x:r,y:i},l={query_layers:o,request:"GetFeatureInfo",info_format:this.featureInfoFormat,feature_count:25,width:t,height:n,...a},u={...this.createExportImageParameters(e,t,n),...l},c=this._mixCustomParameters(u);return null!=this.fetchFeatureInfoFunction?this.fetchFeatureInfoFunction(c):this._defaultFetchFeatureInfoFunction((0,g.a6)(this.featureInfoUrl,c))}findSublayerById(e){return this.allSublayers.find(t=>t.id===e)}findSublayerByName(e){return this.allSublayers.find(t=>t.name===e)}serviceSupportsSpatialReference(e){return(0,N.bd)(this.url)||null!=this.spatialReferences&&this.spatialReferences.some(t=>{const n=900913===t?x.A.WebMercator:new x.A({wkid:t});return(0,C.aI)(n,e)})}_defaultFetchFeatureInfoFunction(e){const t=document.createElement("iframe");t.src=(0,g.yM)(y.W5.sanitizeUrl((0,g.s2)(e))),t.style.border="none",t.style.margin="0",t.style.width="100%",t.setAttribute("sandbox","");const n=new o.A({title:this.title,content:t}),r=new s.A({sourceLayer:this,popupTemplate:n});return Promise.resolve([r])}async _fetchService(e){if(!this.resourceInfo&&this.parsedUrl?.path){const{path:t,query:n}=this.parsedUrl,{data:r}=await(0,a.A)(t,{query:{SERVICE:"WMS",REQUEST:"GetCapabilities",...n,...this.customParameters},responseType:"xml",signal:e});this.resourceInfo=D(r)}if(this.parsedUrl){const e=new g.s0(this.parsedUrl.path),{httpsDomains:t}=i.A.request;"https"!==e.scheme||e.port&&"443"!==e.port||!e.host||t.includes(e.host)||t.push(e.host)}this.read(this.resourceInfo,{origin:"service"})}_checkLayerValidity(){if(!this.allSublayers.length)throw new c.A("wmslayer:empty-layer","The layer doesn't have any sublayer")}_mixCustomParameters(e){if(!this.customLayerParameters&&!this.customParameters)return e;const t={...this.customParameters,...this.customLayerParameters};for(const n in t)e[n.toLowerCase()]=t[n];return e}};function Ce(e,t,n){e=e??[];const r=new Map;e.every(e=>null==e.id)&&(e=(0,h.o8)(e)).forEach((e,t)=>e.id=t);for(const i of e){const e=new G;e.read(i,t),n&&!n.includes(e.name)&&(e.visible=!1),r.set(e.id,e)}const i=[];for(const t of e){const e=null!=t.id?r.get(t.id):null;if(e)if(null!=t.parentLayerId&&t.parentLayerId>=0){const n=r.get(t.parentLayerId);if(!n)continue;n.sublayers||(n.sublayers=new l.A),n.sublayers.push(e)}else i.push(e)}return i}(0,r.Cg)([(0,b.MZ)({type:ge.A})],Ie.prototype,"timeExtent",void 0),(0,r.Cg)([(0,b.MZ)({type:be.A})],Ie.prototype,"timeOffset",void 0),(0,r.Cg)([(0,b.MZ)({readOnly:!0})],Ie.prototype,"allSublayers",void 0),(0,r.Cg)([(0,b.MZ)({json:{type:Object,write:!0}})],Ie.prototype,"customParameters",void 0),(0,r.Cg)([(0,b.MZ)({json:{type:Object,write:!0}})],Ie.prototype,"customLayerParameters",void 0),(0,r.Cg)([(0,b.MZ)({type:String,json:{write:!0}})],Ie.prototype,"copyright",void 0),(0,r.Cg)([(0,b.MZ)()],Ie.prototype,"description",void 0),(0,r.Cg)([(0,b.MZ)({readOnly:!0})],Ie.prototype,"dimensions",void 0),(0,r.Cg)([(0,b.MZ)({json:{type:[[Number]],read:{source:"extent"},write:{target:"extent"},origins:{"web-document":{write:{ignoreOrigin:!0}},"portal-item":{write:{ignoreOrigin:!0}}}}})],Ie.prototype,"fullExtent",void 0),(0,r.Cg)([(0,q.w)(["web-document","portal-item"],"fullExtent",["extent"])],Ie.prototype,"readFullExtentFromItemOrMap",null),(0,r.Cg)([(0,ve.K)(["web-document","portal-item"],"fullExtent",{extent:{type:[[Number]]}})],Ie.prototype,"writeFullExtent",null),(0,r.Cg)([(0,b.MZ)({type:[w.A]})],Ie.prototype,"fullExtents",void 0),(0,r.Cg)([(0,b.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],Ie.prototype,"featureInfoFormat",null),(0,r.Cg)([(0,b.MZ)({type:[String],readOnly:!0})],Ie.prototype,"featureInfoFormats",void 0),(0,r.Cg)([(0,b.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],Ie.prototype,"featureInfoUrl",void 0),(0,r.Cg)([(0,b.MZ)()],Ie.prototype,"fetchFeatureInfoFunction",void 0),(0,r.Cg)([(0,b.MZ)({type:String,json:{origins:{"web-document":{default:"image/png",type:Me.jsonValues,read:{reader:Me.read,source:"format"},write:{writer:Me.write,target:"format"}}}}})],Ie.prototype,"imageFormat",void 0),(0,r.Cg)([(0,q.w)("imageFormat",["supportedImageFormatTypes"])],Ie.prototype,"readImageFormat",null),(0,r.Cg)([(0,b.MZ)({type:Number,json:{read:{source:"maxHeight"},write:{target:"maxHeight"}}})],Ie.prototype,"imageMaxHeight",void 0),(0,r.Cg)([(0,b.MZ)({type:Number,json:{read:{source:"maxWidth"},write:{target:"maxWidth"}}})],Ie.prototype,"imageMaxWidth",void 0),(0,r.Cg)([(0,b.MZ)()],Ie.prototype,"imageTransparency",void 0),(0,r.Cg)([(0,b.MZ)(Z.fV)],Ie.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,b.MZ)({type:["show","hide","hide-children"]})],Ie.prototype,"listMode",void 0),(0,r.Cg)([(0,b.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],Ie.prototype,"mapUrl",void 0),(0,r.Cg)([(0,b.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],Ie.prototype,"isReference",void 0),(0,r.Cg)([(0,b.MZ)({type:["WMS"]})],Ie.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,b.MZ)()],Ie.prototype,"resourceInfo",void 0),(0,r.Cg)([(0,b.MZ)({type:x.A,json:{origins:{service:{read:{source:"extent.spatialReference"}}},write:!1}})],Ie.prototype,"spatialReference",void 0),(0,r.Cg)([(0,q.w)(["web-document","portal-item"],"spatialReference",["spatialReferences"])],Ie.prototype,"readSpatialReferenceFromItemOrDocument",null),(0,r.Cg)([(0,b.MZ)({type:[v.jz],json:{read:!1,origins:{service:{read:!0},"web-document":{read:!1,write:{ignoreOrigin:!0}},"portal-item":{read:!1,write:{ignoreOrigin:!0}}}}})],Ie.prototype,"spatialReferences",void 0),(0,r.Cg)([(0,ve.K)(["web-document","portal-item"],"spatialReferences")],Ie.prototype,"writeSpatialReferences",null),(0,r.Cg)([(0,b.MZ)({type:l.A.ofType(G),json:{write:{target:"layers",overridePolicy(e,t,n){if(function(e,t){return e.some(e=>{for(const n in e)if((0,M.R)(e,n,null,t))return!0;return!1})}(this.allSublayers,n))return{ignoreOrigin:!0}}}}})],Ie.prototype,"sublayers",void 0),(0,r.Cg)([(0,q.w)(["web-document","portal-item"],"sublayers",["layers","visibleLayers"])],Ie.prototype,"readSublayersFromItemOrMap",null),(0,r.Cg)([(0,q.w)("service","sublayers",["layers"])],Ie.prototype,"readSublayers",null),(0,r.Cg)([(0,ve.K)("sublayers",{layers:{type:[G]},visibleLayers:{type:[String]}})],Ie.prototype,"writeSublayers",null),(0,r.Cg)([(0,b.MZ)({json:{read:!1},readOnly:!0,value:"wms"})],Ie.prototype,"type",void 0),(0,r.Cg)([(0,b.MZ)(Z.OZ)],Ie.prototype,"url",null),(0,r.Cg)([(0,b.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],Ie.prototype,"version",void 0),Ie=(0,r.Cg)([(0,b.$K)("esri.layers.WMSLayer")],Ie);const Ae=Ie},54339(e,t,n){function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const n=[];for(const r of t.fieldNames)n.push(e.attributes[r]??null);return JSON.stringify(n)}}}function i(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const n=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(n)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}n.d(t,{W:()=>r,r:()=>i})},8303(e,t,n){n.d(t,{A:()=>w});var r=n(5482),i=n(92602),s=n(70333),o=n(11254),a=n(60999),l=n(49186),u=n(53966),c=n(97768),p=n(17676),h=n(84952),f=n(91429),d=n(77548),m=n(20655),y=n(80812),g=n(41318),b=n(10407),v=n(36005),M=n(43937);const w=e=>{const t=e;let w=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.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,n){if(t.itemId)return new y.default({id:t.itemId,portal:n?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:r}=await n.e(1204).then(n.bind(n,41204));return(0,p.Te)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:n,fullEdit:r},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",n),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let n=this.portalItem;if(!e||!n||!n.loaded||n.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=!s.id?.findCredential(this.url),i=e===n.id;if(i&&n.portal.user)return this._getUserPrivileges(n,r);let o,a;if(i)o=n.portal.url;else try{o=await(0,d.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!o||!(0,h.b8)(o,n.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(s.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const l=!0,u=!1,c=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:c}};try{if(i?await n.reload():(n=new y.default({id:e,portal:{url:o}}),await n.load(t)),n.portal.user)return this._getUserPrivileges(n,r)}catch(e){(0,p.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const n=(0,b.It)(e);return t&&(n.features.edit=!0),n}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const n=x.credential===t?x.user:await this._fetchEditingUser(e);return x.credential=t,x.user=n,null==n?.privileges||n.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const n=s.id?.findServerInfo(this.url??"");if(!n?.owningSystemUrl)return null;const r=`${n.owningSystemUrl}/sharing/rest`,i=m.A.getDefault();if(i&&i.loaded&&(0,h.S8)(i.restUrl)===(0,h.S8)(r))return i.user;const l=`${r}/community/self`,u=null!=e?e.signal:null,c=await(0,a.Ke)((0,o.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?g.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const n=t?.portal,r=this.portalItem?.id&&(this.portalItem.portal||m.A.getDefault());return n&&r&&!(0,h.ut)(r.restUrl,n.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,r.Cg)([(0,f.MZ)({type:y.default})],w.prototype,"portalItem",null),(0,r.Cg)([(0,v.w)("web-document","portalItem",["itemId"])],w.prototype,"readPortalItem",null),(0,r.Cg)([(0,M.K)("web-document","portalItem",{itemId:{type:String}})],w.prototype,"writePortalItem",null),(0,r.Cg)([(0,f.MZ)({clonable:!1})],w.prototype,"resourceReferences",void 0),(0,r.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],w.prototype,"userHasEditingPrivileges",void 0),(0,r.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],w.prototype,"userHasFullEditingPrivileges",void 0),(0,r.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],w.prototype,"userHasUpdateItemPrivileges",void 0),w=(0,r.Cg)([(0,f.$K)("esri.layers.mixins.PortalLayer")],w),w},x={credential:null,user:null}},82935(e,t,n){n.d(t,{B:()=>h,e:()=>f});var r=n(5482),i=n(91429),s=n(89317),o=n(30524),a=n(96184),l=n(73133),u=n(79677),c=n(10184),p=n(36005);const h={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:s.K}}},f=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const n=t.timeInfo.exportOptions;if(!n)return null;const r=n.timeOffset,i=l.j.fromJSON(n.timeOffsetUnits);return r&&i?new c.A({value:r,unit:i}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,o.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,r.Cg)([(0,i.MZ)({type:u.A,json:{write:!1}})],n.prototype,"timeExtent",void 0),(0,r.Cg)([(0,i.MZ)({type:c.A})],n.prototype,"timeOffset",void 0),(0,r.Cg)([(0,p.w)("service","timeOffset",["timeInfo.exportOptions"])],n.prototype,"readOffset",null),(0,r.Cg)([(0,i.MZ)({value:null,type:a.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],n.prototype,"timeInfo",null),(0,r.Cg)([(0,i.MZ)(h)],n.prototype,"useViewTime",void 0),n=(0,r.Cg)([(0,i.$K)("esri.layers.mixins.TemporalLayer")],n),n}},38458(e,t,n){n.d(t,{m:()=>i});const r=[[3819,3819],[3821,3824],[3889,3889],[3906,3906],[4001,4025],[4027,4036],[4039,4047],[4052,4055],[4074,4075],[4080,4081],[4120,4176],[4178,4185],[4188,4216],[4218,4289],[4291,4304],[4306,4319],[4322,4326],[4463,4463],[4470,4470],[4475,4475],[4483,4483],[4490,4490],[4555,4558],[4600,4646],[4657,4765],[4801,4811],[4813,4821],[4823,4824],[4901,4904],[5013,5013],[5132,5132],[5228,5229],[5233,5233],[5246,5246],[5252,5252],[5264,5264],[5324,5340],[5354,5354],[5360,5360],[5365,5365],[5370,5373],[5381,5381],[5393,5393],[5451,5451],[5464,5464],[5467,5467],[5489,5489],[5524,5524],[5527,5527],[5546,5546],[2044,2045],[2081,2083],[2085,2086],[2093,2093],[2096,2098],[2105,2132],[2169,2170],[2176,2180],[2193,2193],[2200,2200],[2206,2212],[2319,2319],[2320,2462],[2523,2549],[2551,2735],[2738,2758],[2935,2941],[2953,2953],[3006,3030],[3034,3035],[3038,3051],[3058,3059],[3068,3068],[3114,3118],[3126,3138],[3150,3151],[3300,3301],[3328,3335],[3346,3346],[3350,3352],[3366,3366],[3389,3390],[3416,3417],[3833,3841],[3844,3850],[3854,3854],[3873,3885],[3907,3910],[4026,4026],[4037,4038],[4417,4417],[4434,4434],[4491,4554],[4839,4839],[5048,5048],[5105,5130],[5253,5259],[5269,5275],[5343,5349],[5479,5482],[5518,5519],[5520,5520],[20004,20032],[20064,20092],[21413,21423],[21473,21483],[21896,21899],[22171,22177],[22181,22187],[22191,22197],[25884,25884],[27205,27232],[27391,27398],[27492,27492],[28402,28432],[28462,28492],[30161,30179],[30800,30800],[31251,31259],[31275,31279],[31281,31290],[31466,31700]];function i(e){return null!=e&&r.some(([t,n])=>e>=t&&e<=n)}},96184(e,t,n){n.d(t,{A:()=>f});var r=n(5482),i=n(69540),s=n(25482),o=n(91429),a=n(79677),l=n(10184),u=n(56400),c=n(36005),p=n(43937);function h(e,t){return l.A.fromJSON({value:e,unit:t})}let f=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?a.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?h(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?h(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,r.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],f.prototype,"cumulative",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],f.prototype,"endField",void 0),(0,r.Cg)([(0,o.MZ)({type:a.A,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"fullTimeExtent",void 0),(0,r.Cg)([(0,c.w)("fullTimeExtent",["timeExtent"])],f.prototype,"readFullTimeExtent",null),(0,r.Cg)([(0,p.K)("fullTimeExtent")],f.prototype,"writeFullTimeExtent",null),(0,r.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"hasLiveData",void 0),(0,r.Cg)([(0,o.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"interval",void 0),(0,r.Cg)([(0,c.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],f.prototype,"readInterval",null),(0,r.Cg)([(0,p.K)("interval")],f.prototype,"writeInterval",null),(0,r.Cg)([(0,o.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],f.prototype,"startField",void 0),(0,r.Cg)([(0,o.MZ)((0,u.P6)("timeReference",!0))],f.prototype,"timeZone",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"trackIdField",void 0),(0,r.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],f.prototype,"useTime",void 0),(0,r.Cg)([(0,o.MZ)({type:[Date],json:{read:!1}})],f.prototype,"stops",void 0),f=(0,r.Cg)([(0,o.$K)("esri.layers.support.TimeInfo")],f)},33446(e,t,n){n.d(t,{Cp:()=>o,mn:()=>s});var r=n(49186),i=n(17676);async function s(e,t,n){let s;try{s=await a(e,n)}catch(e){throw new r.A("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,i.Te)(n),s}async function o(e,t,n,s,o){let l;try{l=await a(e,o)}catch(e){throw new r.A("request:server",`Unable to load tile ${t}/${n}/${s}`,{error:e,level:t,row:n,col:s})}return(0,i.Te)(o),l}async function a(e,t){const n=await createImageBitmap(e,{imageOrientation:t?.imageOrientation??"none"}),r=t?.type??(e instanceof Blob?e.type.startsWith("image/")?e.type:t?.allowDeriveTypeFromData?await async function(e){return e.byteLength<2?"unknown":137===e[0]&&80===e[1]?"image/png":71===e[0]&&73===e[1]?"image/gif":66===e[0]&&77===e[1]?"image/bmp":255===e[0]&&216===e[1]?"image/jpeg":"unknown"}(await e.bytes()):void 0:void 0);return new l(n,r)}class l{constructor(e,t){this.bitmap=e,this.type=t}get isOpaque(){return"image/jpeg"===this.type}}},5757(e,t,n){n.d(t,{B:()=>i,P:()=>r});const r=Symbol("PopupTemplateInstance");function i(e){return null!=e&&"object"==typeof e&&r in e}},10407(e,t,n){n.d(t,{It:()=>f,LG:()=>o,OM:()=>u,Sm:()=>c,Y:()=>a,bK:()=>l,mm:()=>h,sQ:()=>p});var r=n(91218),i=n(16930),s=n(28735);function o(e,t){if(!a(e,t)){const n=e.typeKeywords;n?n.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,h.HOSTED_SERVICE)}function u(e,t){const n=e.typeKeywords;if(n){const e=n.indexOf(t);e>-1&&n.splice(e,1)}}function c(e,t,n){n?o(e,t):u(e,t)}async function p(e){const t=e.clone().normalize();let n;if(t.length>1)for(const e of t)n?e.width>n.width&&(n=e):n=e;else n=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const n=i.A.WGS84;return await(0,r.initializeProjection)(t,n),(0,r.project)(e,n)}(n)}const h={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function f(e){const{portal:t,isOrgItem:n,itemControl:r}=e,i=t.user?.privileges;let s=!i||i.includes("features:user:edit"),o=!!n&&!!i?.includes("features:user:fullEdit");const a="update"===r||"admin"===r;return a?o=s=!0:o&&(s=!0),{features:{edit:s,fullEdit:o},content:{updateItem:a}}}},11831(e,t,n){n.d(t,{A:()=>u});var r,i=n(5482),s=n(25482),o=n(90629),a=n(91429),l=n(5760);let u=r=class extends s.o{constructor(e){super(e),this.decoration="none",this.family="sans-serif",this.style="normal",this.weight="normal"}get size(){return this._get("size")??9}set size(e){this._set("size",e)}castSize(e){return(0,o.cr)(e)}clone(){return new r({decoration:this.decoration,family:this.family,size:this.size,style:this.style,weight:this.weight})}hash(){return`${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`}};(0,i.Cg)([(0,a.MZ)({type:l.h9,json:{default:"none",write:!0}})],u.prototype,"decoration",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"family",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:{overridePolicy:(e,t,n)=>({enabled:!n||!n.textSymbol3D})}}})],u.prototype,"size",null),(0,i.Cg)([(0,a.wg)("size")],u.prototype,"castSize",null),(0,i.Cg)([(0,a.MZ)({type:l._R,json:{default:"normal",write:!0}})],u.prototype,"style",void 0),(0,i.Cg)([(0,a.MZ)({type:l.NM,json:{default:"normal",write:!0}})],u.prototype,"weight",void 0),u=r=(0,i.Cg)([(0,a.$K)("esri.symbols.Font")],u)},68249(e,t,n){n.d(t,{A:()=>d});var r,i=n(5482),s=n(68197),o=n(4718),a=n(90629),l=n(91429),u=n(11831),c=n(20378),p=n(5760),h=n(93223),f=n(43937);let d=r=class extends c.A{constructor(...e){super(...e),this.backgroundColor=null,this.borderLineColor=null,this.borderLineSize=null,this.font=new u.A,this.horizontalAlignment="center",this.kerning=!0,this.haloColor=null,this.rightToLeft=null,this.rotated=!1,this.text="",this.type="text",this.verticalAlignment="baseline",this.angle=0,this.width=null,this.lineHeight=1}normalizeCtorArgs(e,t,n){if(e&&"string"!=typeof e)return e;const r={};return e&&(r.text=e),t&&(r.font=t),n&&(r.color=n),r}get haloSize(){return this._get("haloSize")??null}set haloSize(e){this._set("haloSize",e)}get xoffset(){return this._get("xoffset")??0}set xoffset(e){this._set("xoffset",e)}get yoffset(){return this._get("yoffset")??0}set yoffset(e){this._set("yoffset",e)}get lineWidth(){return this._get("lineWidth")??192}set lineWidth(e){this._set("lineWidth",e)}writeLineWidth(e,t,n,r){r&&"string"!=typeof r?r.origin:t[n]=e}castLineWidth(e){return(0,a.cr)(e)}writeLineHeight(e,t,n,r){r&&"string"!=typeof r?r.origin:t[n]=e}clone(){return new r({angle:this.angle,backgroundColor:(0,o.o8)(this.backgroundColor),borderLineColor:(0,o.o8)(this.borderLineColor),borderLineSize:this.borderLineSize,color:(0,o.o8)(this.color),font:this.font&&this.font.clone(),haloColor:(0,o.o8)(this.haloColor),haloSize:this.haloSize,horizontalAlignment:this.horizontalAlignment,kerning:this.kerning,lineHeight:this.lineHeight,lineWidth:this.lineWidth,rightToLeft:this.rightToLeft,rotated:this.rotated,text:this.text,verticalAlignment:this.verticalAlignment,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${this.backgroundColor?.hash()}.${this.borderLineColor}.${this.borderLineSize}.${this.color?.hash()}.${this.font&&this.font.hash()}.${this.haloColor?.hash()}.${this.haloSize}.${this.horizontalAlignment}.${this.kerning}.${this.rightToLeft}.${this.rotated}.${this.text}.${this.verticalAlignment}.${this.width}.${this.xoffset}.${this.yoffset}.${this.lineHeight}.${this.lineWidth}.${this.angle}`}};(0,i.Cg)([(0,l.MZ)({type:s.A,json:{write:!0}})],d.prototype,"backgroundColor",void 0),(0,i.Cg)([(0,l.MZ)({type:s.A,json:{write:!0}})],d.prototype,"borderLineColor",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0},cast:a.cr})],d.prototype,"borderLineSize",void 0),(0,i.Cg)([(0,l.MZ)({type:u.A,json:{write:!0}})],d.prototype,"font",void 0),(0,i.Cg)([(0,l.MZ)({...p.rM,json:{write:!0}})],d.prototype,"horizontalAlignment",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"kerning",void 0),(0,i.Cg)([(0,l.MZ)({type:s.A,json:{write:!0}})],d.prototype,"haloColor",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,cast:a.cr,json:{write:!0}})],d.prototype,"haloSize",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"rightToLeft",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"rotated",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],d.prototype,"text",void 0),(0,i.Cg)([(0,h.e)({esriTS:"text"},{readOnly:!0})],d.prototype,"type",void 0),(0,i.Cg)([(0,l.MZ)({...p.x0,json:{write:!0}})],d.prototype,"verticalAlignment",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,cast:a.cr,json:{write:!0}})],d.prototype,"xoffset",null),(0,i.Cg)([(0,l.MZ)({type:Number,cast:a.cr,json:{write:!0}})],d.prototype,"yoffset",null),(0,i.Cg)([(0,l.MZ)({type:Number,json:{read:e=>e&&-1*e,write:(e,t)=>t.angle=e&&-1*e}})],d.prototype,"angle",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],d.prototype,"width",void 0),(0,i.Cg)([(0,l.MZ)({type:Number})],d.prototype,"lineWidth",null),(0,i.Cg)([(0,f.K)("lineWidth")],d.prototype,"writeLineWidth",null),(0,i.Cg)([(0,l.wg)("lineWidth")],d.prototype,"castLineWidth",null),(0,i.Cg)([(0,l.MZ)(p.Tb)],d.prototype,"lineHeight",void 0),(0,i.Cg)([(0,f.K)("lineHeight")],d.prototype,"writeLineHeight",null),d=r=(0,i.Cg)([(0,l.$K)("esri.symbols.TextSymbol")],d)},5760(e,t,n){n.d(t,{NM:()=>a,Tb:()=>l,_R:()=>o,h9:()=>s,rM:()=>u,x0:()=>c,y7:()=>p});var r=n(34727),i=n(56507);const s=["none","underline","line-through"],o=["normal","italic","oblique"],a=["normal","lighter","bold","bolder"],l={type:Number,cast:e=>{const t=(0,i.GB)(e);return 0===t?1:(0,r.qE)(t,.1,4)},nonNullable:!0},u={type:["left","right","center"],nonNullable:!0},c={type:["baseline","top","middle","bottom"],nonNullable:!0},p=8}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3902],{49403(e,t,r){r.d(t,{Eq:()=>p,G3:()=>i,GH:()=>a,bV:()=>d,nP:()=>o,r5:()=>c,ti:()=>l,vy:()=>s,wr:()=>n});const n={esriMethodHintUNSPECIFIED:0,esriUUIDESRI:1,esriUUIDRFC4122:2},a={esriSplitPolicyType_UNSPECIFIED:0,esriSplitPolicyTypeGeometryRatio:1,esriSplitPolicyTypeDuplicate:2,esriSplitPolicyTypeDefaultValue:3},o={esriTypeUNSPECIFIED:0,esriTypeEntity:1,esriTypeRelationship:2,esriTypeBoth:4,esriTypeMetaEntityProvenance:8},i={esriMergePolicyType_UNSPECIFIED:0,esriMergePolicyTypeSumValues:1,esriMergePolicyTypeAreaWeighted:2,esriMergePolicyTypeDefaultValue:3},s={esriIdentifierInfoTypeUNSPECIFIED:0,esriIdentifierInfoTypeDatabaseNative:1,esriIdentifierInfoTypeUniformProperty:2},l={esriGraphPropertyUNSPECIFIED:0,esriGraphPropertyRegular:1,esriGraphPropertyDocumentName:2,esriGraphPropertyDocumentTitle:3,esriGraphPropertyDocumentUrl:4,esriGraphPropertyDocumentText:5,esriGraphPropertyDocumentKeywords:6,esriGraphPropertyDocumentContentType:7,esriGraphPropertyDocumentMetadata:8,esriGraphPropertyDocumentFileExtension:9,esriGraphPropertyProvenanceInstanceId:10,esriGraphPropertyProvenanceSourceType:11,esriGraphPropertyProvenanceSourceName:12,esriGraphPropertyProvenanceSource:13,esriGraphPropertyProvenanceComment:14,esriGraphPropertyProvenanceTypeName:15,esriGraphPropertyProvenancePropertyName:16},d={esriGeometryNull:0,esriGeometryPoint:1,esriGeometryMultipoint:2,esriGeometryPolyline:3,esriGeometryPolygon:4,esriGeometryEnvelope:5,esriGeometryAny:7,esriGeometryMultiPatch:9},c={esriFieldTypeSmallInteger:0,esriFieldTypeInteger:1,esriFieldTypeSingle:2,esriFieldTypeDouble:3,esriFieldTypeString:4,esriFieldTypeDate:5,esriFieldTypeOID:6,esriFieldTypeGeometry:7,esriFieldTypeBlob:8,esriFieldTypeRaster:9,esriFieldTypeGUID:10,esriFieldTypeGlobalID:11,esriFieldTypeXML:12,esriFieldTypeBigInteger:13,esriFieldTypeDateOnly:14,esriFieldTypeTimeOnly:15,esriFieldTypeTimestampOffset:16},p={Regular:0,Provenance:1,Document:2}},2645(e,t,r){r.d(t,{g:()=>n,q:()=>a});const n={upperLeft:0,lowerLeft:1},a={sqlTypeBigInt:0,sqlTypeBinary:1,sqlTypeBit:2,sqlTypeChar:3,sqlTypeDate:4,sqlTypeDecimal:5,sqlTypeDouble:6,sqlTypeFloat:7,sqlTypeGeometry:8,sqlTypeGUID:9,sqlTypeInteger:10,sqlTypeLongNVarchar:11,sqlTypeLongVarbinary:12,sqlTypeLongVarchar:13,sqlTypeNChar:14,sqlTypeNVarChar:15,sqlTypeOther:16,sqlTypeReal:17,sqlTypeSmallInt:18,sqlTypeSqlXml:19,sqlTypeTime:20,sqlTypeTimestamp:21,sqlTypeTimestamp2:22,sqlTypeTinyInt:23,sqlTypeVarbinary:24,sqlTypeVarchar:25}},45724(e,t,r){r.d(t,{I:()=>s});var n=r(2741),a=r(44208);const o="esri/rest/knowledgeGraph/wasmInterface/";let i;async function s(){if(i)return i;const e=!!(0,a.A)("wasm-simd");return i=l(e),i}async function l(e){if(e){const{default:e}=await r.e(5367).then(r.bind(r,15367));return e({locateFile:e=>(0,n.s)(o+e)})}const{default:t}=await r.e(9013).then(r.bind(r,29013));return t({locateFile:e=>(0,n.s)(o+e)})}},53902(e,t,r){r.r(t),r.d(t,{_checkAuthentication:()=>en,_esriRequestWrapper:()=>Xr,_fetchWrapper:()=>Wr,_getClientDataCacheCopy:()=>_r,_setMaxQueryParsingDurationForTesting:()=>on,_submitJobWrapper:()=>Yr,clearClientDataCache:()=>Hr,clientDataCache:()=>mr,executeAddDomain:()=>Ur,executeAddGraphFieldIndex:()=>Rr,executeAddGraphProperties:()=>xr,executeAddNamedTypes:()=>Cr,executeApplyEdits:()=>br,executeCreateReplica:()=>Vr,executeDeleteDomain:()=>zr,executeDeleteGraphFieldIndex:()=>Dr,executeDeleteGraphProperty:()=>Gr,executeDeleteNamedType:()=>Ar,executeFindPaths:()=>Or,executeFindPathsAsynchronous:()=>Lr,executeQuery:()=>Sr,executeQueryStreaming:()=>kr,executeSearch:()=>Ir,executeSearchStreaming:()=>jr,executeUnregisterReplica:()=>Qr,executeUpdateDomain:()=>Kr,executeUpdateGraphProperty:()=>Mr,executeUpdateNamedType:()=>Tr,executeUpdateSearchIndex:()=>Pr,fetchAllClientDataKeys:()=>Zr,fetchAsynchronousFindPathsResultData:()=>$r,fetchClientDataAtKeys:()=>qr,fetchKnowledgeGraph:()=>Er,fetchReplicaDefinition:()=>Jr,fetchReplicasInformation:()=>Br,kgRestServices:()=>vr,refreshDataModel:()=>Fr,refreshServiceDefinition:()=>Nr});var n,a=r(70333),o=r(11254),i=r(49186),s=r(53966),l=r(17676),d=r(91075),c=r(16930),p=r(5482),u=r(69622),y=r(91429),h=r(56507),g=r(5443);let f=n=class extends u.A{constructor(e){super(e),this.outSpatialReference=null,this.processExtent=null,this.processSpatialReference=null,this.returnColumnName=!1,this.returnFeatureCollection=!1,this.returnM=!1,this.returnZ=!1}static from(e){return(0,h.PZ)(n,e)}};(0,p.Cg)([(0,y.MZ)({type:c.A})],f.prototype,"outSpatialReference",void 0),(0,p.Cg)([(0,y.MZ)({type:g.A})],f.prototype,"processExtent",void 0),(0,p.Cg)([(0,y.MZ)({type:c.A})],f.prototype,"processSpatialReference",void 0),(0,p.Cg)([(0,y.MZ)({nonNullable:!0})],f.prototype,"returnColumnName",void 0),(0,p.Cg)([(0,y.MZ)({nonNullable:!0})],f.prototype,"returnFeatureCollection",void 0),(0,p.Cg)([(0,y.MZ)({nonNullable:!0})],f.prototype,"returnM",void 0),(0,p.Cg)([(0,y.MZ)({nonNullable:!0})],f.prototype,"returnZ",void 0),f=n=(0,p.Cg)([(0,y.$K)("esri.rest.geoprocessor.GPOptions")],f);var w=r(17136),m=r(20437),_=r(25482);let v=class extends _.o{constructor(e){super(e),this.extent=null,this.height=null,this.href=null,this.opacity=1,this.rotation=0,this.scale=null,this.visible=!0,this.width=null}};(0,p.Cg)([(0,y.MZ)({type:g.A})],v.prototype,"extent",void 0),(0,p.Cg)([(0,y.MZ)()],v.prototype,"height",void 0),(0,p.Cg)([(0,y.MZ)()],v.prototype,"href",void 0),(0,p.Cg)([(0,y.MZ)()],v.prototype,"opacity",void 0),(0,p.Cg)([(0,y.MZ)()],v.prototype,"rotation",void 0),(0,p.Cg)([(0,y.MZ)()],v.prototype,"scale",void 0),(0,p.Cg)([(0,y.MZ)()],v.prototype,"visible",void 0),(0,p.Cg)([(0,y.MZ)()],v.prototype,"width",void 0),v=(0,p.Cg)([(0,y.$K)("esri.layers.support.MapImage")],v);var b=r(2272),C=r(2073),A=r(93223);let T=class extends _.o{constructor(e){super(e),this.area=0,this.units=null}};(0,p.Cg)([(0,y.MZ)({json:{write:!0}})],T.prototype,"area",void 0),(0,p.Cg)([(0,A.e)(C.UO)],T.prototype,"units",void 0),T=(0,p.Cg)([(0,y.$K)("esri.rest.support.ArealUnit")],T);let x=class extends _.o{constructor(e){super(e),this.itemId=null,this.url=null}};(0,p.Cg)([(0,y.MZ)({type:String,json:{read:{source:"itemID"},write:{target:"itemID"}}})],x.prototype,"itemId",void 0),(0,p.Cg)([(0,y.MZ)({type:String,json:{write:!0}})],x.prototype,"url",void 0),x=(0,p.Cg)([(0,y.$K)("esri.rest.support.DataFile")],x);var G=r(22671);let M=class extends _.o{constructor(e){super(e),this.distance=0,this.units=null}};(0,p.Cg)([(0,y.MZ)({json:{write:!0}})],M.prototype,"distance",void 0),(0,p.Cg)([(0,A.e)(C.Y8)],M.prototype,"units",void 0),M=(0,p.Cg)([(0,y.$K)("esri.rest.support.LinearUnit")],M);var R=r(66552);const D="multi-value-",P=new R.J({GPArealUnit:"areal-unit",GPBoolean:"boolean",GPComposite:"composite",GPDataFile:"data-file",GPDate:"date",GPDouble:"double",GPFeatureRecordSetLayer:"feature-record-set-layer",Field:"field",GPLinearUnit:"linear-unit",GPLong:"long",GPRasterData:"raster-data",GPRasterDataLayer:"raster-data-layer",GPRecordSet:"record-set",GPString:"string",GPTimeUnit:"time-unit",GPValueTable:"value-table","GPMultiValue:GPArealUnit":`${D}areal-unit`,"GPMultiValue:GPBoolean":`${D}boolean`,"GPMultiValue:GPComposite":`${D}composite`,"GPMultiValue:GPDataFile":`${D}data-file`,"GPMultiValue:GPDate":`${D}date`,"GPMultiValue:GPDouble":`${D}double`,"GPMultiValue:GPFeatureRecordSetLayer":`${D}feature-record-set-layer`,"GPMultiValue:Field":`${D}field`,"GPMultiValue:GPLinearUnit":`${D}linear-unit`,"GPMultiValue:GPLong":`${D}long`,"GPMultiValue:GPRasterData":`${D}raster-data`,"GPMultiValue:GPRasterDataLayer":`${D}raster-data-layer`,"GPMultiValue:GPRecordSet":`${D}record-set`,"GPMultiValue:GPString":`${D}string`,"GPMultiValue:GPTimeUnit":`${D}time-unit`});let S=class extends _.o{constructor(e){super(e),this.dataType=null,this.paramName=null,this.value=null}};(0,p.Cg)([(0,A.e)(P,{ignoreUnknown:!1})],S.prototype,"dataType",void 0),(0,p.Cg)([(0,y.MZ)()],S.prototype,"paramName",void 0),(0,p.Cg)([(0,y.MZ)()],S.prototype,"value",void 0),S=(0,p.Cg)([(0,y.$K)("esri.rest.support.ParameterValue")],S);var k=r(36005);let I=class extends _.o{constructor(e){super(e),this.format=null,this.itemId=null,this.type=null,this.url=null}readType(e){return"ImageService"===e?"image-service":null}};(0,p.Cg)([(0,y.MZ)()],I.prototype,"format",void 0),(0,p.Cg)([(0,y.MZ)({json:{name:"itemID",write:!0}})],I.prototype,"itemId",void 0),(0,p.Cg)([(0,y.MZ)()],I.prototype,"type",void 0),(0,p.Cg)([(0,k.w)("type")],I.prototype,"readType",null),(0,p.Cg)([(0,y.MZ)({json:{write:!0}})],I.prototype,"url",void 0),I=(0,p.Cg)([(0,y.$K)("esri.rest.support.RasterData")],I);var j=r(73133);let Z=class extends _.o{constructor(e){super(e),this.time=0,this.units=null}};async function q(e,t){switch(e){case"time-unit":return Z.fromJSON(t);case"areal-unit":return T.fromJSON(t);case"boolean":case"double":case"long":case"string":case"value-table":return t;case"date":return new Date(t);case"data-file":return x.fromJSON(t);case"linear-unit":return M.fromJSON(t);case"feature-record-set-layer":if("url"in t)return x.fromJSON(t);if("layerDefinition"in t){const e=new(0,(await Promise.all([r.e(7632),r.e(8278),r.e(7865),r.e(6554),r.e(9953),r.e(8303),r.e(1733),r.e(1214),r.e(1956),r.e(8399),r.e(1017),r.e(4674),r.e(6606),r.e(8589),r.e(7609),r.e(5431)]).then(r.bind(r,18589))).default),{layerDefinition:n,featureSet:a}=t;return e.read({layerDefinition:n,featureSet:a},{origin:"portal-item"}),e.spatialReference=c.A.fromJSON(a.spatialReference??n.spatialReference??n.extent.spatialReference),e}return G.A.fromJSON(t);case"record-set":return"url"in t?x.fromJSON(t):G.A.fromJSON(t);case"raster-data":case"raster-data-layer":return"mapImage"in t?v.fromJSON(t.mapImage):I.fromJSON(t);case"field":return m.A.fromJSON(t)}}function E(e){return e.startsWith(D)}function F(e){return e.replace(D,"")}async function N(e){const t=P.fromJSON(e.dataType),{paramName:r}=e,n=E(t)?await async function(e,t){const r=F(e),n="composite"===r?t.map(e=>q(P.fromJSON(e.dataType),e.value)):t.map(e=>q(r,e));return Promise.all(n)}(t,e.value):await q(t,e.value);return new S({dataType:t,paramName:r,value:n})}function L(e,t,r){for(const t in e){const r=e[t];Array.isArray(r)?e[t]=JSON.stringify(r.map(e=>L({item:e},!0).item)):r instanceof Date&&(e[t]=r.getTime())}return(0,b.lF)(e,t,r)}(0,p.Cg)([(0,y.MZ)({json:{write:!0}})],Z.prototype,"time",void 0),(0,p.Cg)([(0,A.e)(j.j)],Z.prototype,"units",void 0),Z=(0,p.Cg)([(0,y.$K)("esri.rest.support.TimeUnit")],Z);var O,$=r(37807);const U=(0,R.O)()({esriJobCancelled:"job-cancelled",esriJobCancelling:"job-cancelling",esriJobDeleted:"job-deleted",esriJobDeleting:"job-deleting",esriJobTimedOut:"job-timed-out",esriJobExecuting:"job-executing",esriJobFailed:"job-failed",esriJobNew:"job-new",esriJobSubmitted:"job-submitted",esriJobSucceeded:"job-succeeded",esriJobWaiting:"job-waiting"},{ignoreUnknown:!1}),K=1e3;let z=class extends _.o{static{O=this}constructor(e){super(e),this.jobId=null,this.jobStatus=null,this.messages=null,this.progress=null,this.requestOptions=null,this.sourceUrl=null,this._cancelJobTimer=void 0,this._jobCompletionTimer=void 0}async cancelJob(e){const{jobId:t,sourceUrl:r}=this,{path:n}=(0,b.Dl)(r),a={...this.requestOptions,...e,query:{f:"json"}},i=`${n}/jobs/${t}/cancel`,{data:s}=await(0,o.A)(i,a),{messages:d,jobStatus:c,progress:p}=O.fromJSON(s);return this.set({messages:d,jobStatus:c,progress:p}),"job-cancelled"===c?this:new Promise((t,r)=>{(0,l.u7)(a.signal,()=>{this.clearCancelJobTimer(),r((0,l.NK)())}),this.clearCancelJobTimer();const n=()=>{this._cancelJobTimer||r((0,l.NK)()),this.checkJobStatus(e).then(({jobStatus:e})=>{switch(e){case"job-cancelling":default:this._cancelJobTimer=setTimeout(n,K);break;case"job-deleted":case"job-deleting":case"job-executing":case"job-failed":case"job-new":case"job-submitted":case"job-succeeded":case"job-timed-out":case"job-waiting":r(this);break;case"job-cancelled":t(this)}}).catch(e=>{r(e)})};this._cancelJobTimer=setTimeout(n,K)})}destroy(){clearInterval(this._cancelJobTimer),clearInterval(this._jobCompletionTimer)}async checkJobStatus(e){const{path:t}=(0,b.Dl)(this.sourceUrl),r={...this.requestOptions,...e,query:{...e?.query,f:"json"}},n=`${t}/jobs/${this.jobId}`,{data:a}=await(0,o.A)(n,r),{messages:i,jobStatus:s,progress:l}=O.fromJSON(a);return this.set({messages:i,jobStatus:s,progress:l}),this}async fetchResultData(e,t,r){t=f.from(t||{});const{returnColumnName:n,returnFeatureCollection:a,returnM:i,returnZ:s,outSpatialReference:l}=t,{path:d}=(0,b.Dl)(this.sourceUrl),c=L({returnColumnName:n||null,returnFeatureCollection:a||null,returnM:i||null,returnZ:s||null,outSR:l,returnType:"data",f:"json",...r?.query},null),p={...this.requestOptions,...r,query:c},u=`${d}/jobs/${this.jobId}/results/${e}`,{data:y}=await(0,o.A)(u,p);return N(y)}async fetchResultImage(e,t,r){const{path:n}=(0,b.Dl)(this.sourceUrl),a=L({...t.toJSON(),f:"json"}),i={...this.requestOptions,...r,query:a},s=`${n}/jobs/${this.jobId}/results/${e}`,{data:l}=await(0,o.A)(s,i);return N(l)}async fetchResultMapImageLayer(){const{path:e}=(0,b.Dl)(this.sourceUrl),t=e.indexOf("/GPServer/"),n=`${e.slice(0,Math.max(0,t))}/MapServer/jobs/${this.jobId}`;return new(0,(await Promise.all([r.e(8278),r.e(7865),r.e(6554),r.e(8303),r.e(1733),r.e(1214),r.e(1956),r.e(8399),r.e(4674),r.e(893),r.e(2045),r.e(2733)]).then(r.bind(r,7656))).default)({url:n})}async waitForJobCompletion(e={}){const{interval:t=K,signal:r,statusCallback:n,apiKey:a}=e;return new Promise((e,o)=>{(0,l.u7)(r,()=>{this.clearJobCompletionTimer(),o((0,l.NK)())}),this.clearJobCompletionTimer();const i=()=>{this._jobCompletionTimer||o((0,l.NK)()),this.checkJobStatus({query:{token:a}}).then(({jobStatus:r})=>{switch(r){case"job-succeeded":e(this);break;case"job-executing":case"job-new":case"job-submitted":case"job-waiting":n&&n(this),this._jobCompletionTimer=setTimeout(i,t);break;case"job-cancelled":case"job-cancelling":case"job-deleted":case"job-deleting":case"job-failed":case"job-timed-out":o(this);break;default:this._jobCompletionTimer=setTimeout(i,t)}}).catch(e=>{o(e)})};this._jobCompletionTimer=setTimeout(i,t)})}clearCancelJobTimer(){clearTimeout(this._cancelJobTimer),this._cancelJobTimer=void 0}clearJobCompletionTimer(){clearTimeout(this._jobCompletionTimer),this._jobCompletionTimer=void 0}};(0,p.Cg)([(0,y.MZ)()],z.prototype,"jobId",void 0),(0,p.Cg)([(0,A.e)(U,{ignoreUnknown:!1})],z.prototype,"jobStatus",void 0),(0,p.Cg)([(0,y.MZ)({type:[$.A]})],z.prototype,"messages",void 0),(0,p.Cg)([(0,y.MZ)()],z.prototype,"progress",void 0),(0,p.Cg)([(0,y.MZ)()],z.prototype,"requestOptions",void 0),(0,p.Cg)([(0,y.MZ)({json:{write:!0}})],z.prototype,"sourceUrl",void 0),z=O=(0,p.Cg)([(0,y.$K)("esri.rest.support.JobInfo")],z);let V=class extends u.A{constructor(e){super(e),this.headerKeys=[],this.outSpatialReference=null,this.exceededTransferLimit=!1,this.dataModelTimestamp=null}};(0,p.Cg)([(0,y.MZ)()],V.prototype,"headerKeys",void 0),(0,p.Cg)([(0,y.MZ)()],V.prototype,"outSpatialReference",void 0),(0,p.Cg)([(0,y.MZ)()],V.prototype,"exceededTransferLimit",void 0),(0,p.Cg)([(0,y.MZ)()],V.prototype,"dataModelTimestamp",void 0),V=(0,p.Cg)([(0,y.$K)("esri.rest.knowledgeGraph.GraphQueryResultHeader")],V);let J=class extends u.A{constructor(e){super(e),this.resultRows=[],this.resultHeader=new V}};(0,p.Cg)([(0,y.MZ)()],J.prototype,"resultRows",void 0),(0,p.Cg)([(0,y.MZ)()],J.prototype,"resultHeader",void 0),J=(0,p.Cg)([(0,y.$K)("esri.rest.knowledgeGraph.GraphQueryResult")],J);let B=class extends u.A{constructor(e){super(e),this.resultRowsStream=new ReadableStream,this.resultHeader=new V}};(0,p.Cg)([(0,y.MZ)()],B.prototype,"resultRowsStream",void 0),(0,p.Cg)([(0,y.MZ)()],B.prototype,"resultHeader",void 0),B=(0,p.Cg)([(0,y.$K)("esri.rest.knowledgeGraph.GraphQueryStreamingResult")],B);var Q=r(8631);let H=class extends _.o{constructor(e){super(e),this.name=null,this.unique=null,this.ascending=!0,this.description="",this.fieldNames=[]}};(0,p.Cg)([(0,y.MZ)({type:String,json:{write:!0}})],H.prototype,"name",void 0),(0,p.Cg)([(0,y.MZ)({type:Boolean,json:{write:!0}})],H.prototype,"unique",void 0),(0,p.Cg)([(0,y.MZ)({type:Boolean,json:{write:!0}})],H.prototype,"ascending",void 0),(0,p.Cg)([(0,y.MZ)({type:String,json:{write:!0}})],H.prototype,"description",void 0),(0,p.Cg)([(0,y.MZ)({type:[String],json:{write:!0}})],H.prototype,"fieldNames",void 0),H=(0,p.Cg)([(0,y.$K)("esri.rest.knowledgeGraph.FieldIndex")],H);let W=class extends _.o{constructor(e){super(e),this.name=null,this.alias=null,this.fieldType=null,this.geometryType=null,this.hasM=null,this.hasZ=null,this.nullable=null,this.editable=!0,this.required=!1,this.defaultVisibility=!0,this.systemMaintained=null,this.role="esriGraphPropertyUNSPECIFIED",this.domain=null,this.defaultValue=null}};(0,p.Cg)([(0,y.MZ)({type:String,json:{write:!0}})],W.prototype,"name",void 0),(0,p.Cg)([(0,y.MZ)({type:String,json:{write:!0}})],W.prototype,"alias",void 0),(0,p.Cg)([(0,y.MZ)({type:String,json:{write:!0}})],W.prototype,"fieldType",void 0),(0,p.Cg)([(0,y.MZ)({type:String,json:{write:!0}})],W.prototype,"geometryType",void 0),(0,p.Cg)([(0,y.MZ)({type:Boolean,json:{write:!0}})],W.prototype,"hasM",void 0),(0,p.Cg)([(0,y.MZ)({type:Boolean,json:{write:!0}})],W.prototype,"hasZ",void 0),(0,p.Cg)([(0,y.MZ)({type:Boolean,json:{write:!0}})],W.prototype,"nullable",void 0),(0,p.Cg)([(0,y.MZ)({type:Boolean,json:{write:!0}})],W.prototype,"editable",void 0),(0,p.Cg)([(0,y.MZ)({type:Boolean,json:{write:!0}})],W.prototype,"required",void 0),(0,p.Cg)([(0,y.MZ)({type:Boolean,json:{write:!0}})],W.prototype,"defaultVisibility",void 0),(0,p.Cg)([(0,y.MZ)({type:Boolean,json:{write:!0}})],W.prototype,"systemMaintained",void 0),(0,p.Cg)([(0,y.MZ)({type:String,json:{write:!0}})],W.prototype,"role",void 0),(0,p.Cg)([(0,y.MZ)({type:String,json:{write:!0}})],W.prototype,"domain",void 0),(0,p.Cg)([(0,y.MZ)({json:{write:!0}})],W.prototype,"defaultValue",void 0),W=(0,p.Cg)([(0,y.$K)("esri.rest.knowledgeGraph.GraphProperty")],W);let Y=class extends _.o{constructor(e){super(e),this.name=null,this.alias=null,this.role="Regular",this.strict=null,this.properties=[],this.fieldIndexes=[],this.type=null}};(0,p.Cg)([(0,y.MZ)({type:String,json:{write:!0}})],Y.prototype,"name",void 0),(0,p.Cg)([(0,y.MZ)({type:String,json:{write:!0}})],Y.prototype,"alias",void 0),(0,p.Cg)([(0,y.MZ)({type:String,json:{write:!0}})],Y.prototype,"role",void 0),(0,p.Cg)([(0,y.MZ)({type:Boolean,json:{write:!0}})],Y.prototype,"strict",void 0),(0,p.Cg)([(0,y.MZ)({type:[W],json:{write:!0}})],Y.prototype,"properties",void 0),(0,p.Cg)([(0,y.MZ)({type:[H],json:{write:!0}})],Y.prototype,"fieldIndexes",void 0),Y=(0,p.Cg)([(0,y.$K)("esri.rest.knowledgeGraph.GraphObjectType")],Y);let X=class extends Y{constructor(e){super(e),this.type="entity"}};X=(0,p.Cg)([(0,y.$K)("esri.rest.knowledgeGraph.EntityType")],X);let ee=class extends Y{constructor(e){super(e),this.endPoints=[],this.type="relationship"}};(0,p.Cg)([(0,y.MZ)({json:{write:!0}})],ee.prototype,"endPoints",void 0),ee=(0,p.Cg)([(0,y.$K)("esri.rest.knowledgeGraph.RelationshipType")],ee);let te=class extends _.o{constructor(e){super(e),this.value=null,this.behavior=null}};(0,p.Cg)([(0,y.MZ)({type:String,json:{write:!0}})],te.prototype,"value",void 0),(0,p.Cg)([(0,y.MZ)({type:String,json:{write:!0}})],te.prototype,"behavior",void 0),te=(0,p.Cg)([(0,y.$K)("esri.rest.knowledgeGraph.SourceTypeValueBehavior")],te);let re=class extends _.o{constructor(e){super(e),this.timestamp=null,this.spatialReference=null,this.strict=null,this.objectIdField=null,this.globalIdField=null,this.arcgisManaged=null,this.identifierInfo=null,this.searchIndexes=[],this.entityTypes=[],this.relationshipTypes=[],this.metaEntityTypes=[],this.provenanceSourceTypeValues=[],this.domains=[]}};(0,p.Cg)([(0,y.MZ)({type:Date,json:{type:Number,write:{writer:(e,t)=>{t.timestamp=e?.getTime()}}}})],re.prototype,"timestamp",void 0),(0,p.Cg)([(0,y.MZ)({type:c.A,json:{write:!0}})],re.prototype,"spatialReference",void 0),(0,p.Cg)([(0,y.MZ)({type:Boolean,json:{write:!0}})],re.prototype,"strict",void 0),(0,p.Cg)([(0,y.MZ)({type:String,json:{write:!0}})],re.prototype,"objectIdField",void 0),(0,p.Cg)([(0,y.MZ)({type:String,json:{write:!0}})],re.prototype,"globalIdField",void 0),(0,p.Cg)([(0,y.MZ)()],re.prototype,"arcgisManaged",void 0),(0,p.Cg)([(0,y.MZ)()],re.prototype,"identifierInfo",void 0),(0,p.Cg)([(0,y.MZ)()],re.prototype,"searchIndexes",void 0),(0,p.Cg)([(0,y.MZ)({type:[X],json:{write:!0}})],re.prototype,"entityTypes",void 0),(0,p.Cg)([(0,y.MZ)({type:[ee],json:{write:!0}})],re.prototype,"relationshipTypes",void 0),(0,p.Cg)([(0,y.MZ)({type:[X],json:{write:!0}})],re.prototype,"metaEntityTypes",void 0),(0,p.Cg)([(0,y.MZ)({type:[te],json:{write:!0}})],re.prototype,"provenanceSourceTypeValues",void 0),(0,p.Cg)([(0,y.MZ)({types:[Q.g],json:{write:!0}})],re.prototype,"domains",void 0),re=(0,p.Cg)([(0,y.$K)("esri.rest.knowledgeGraph.DataModel")],re);let ne=class extends _.o{constructor(e){super(e),this.capabilities=[],this.supportsSearch=!1,this.supportedQueryFormats=[],this.allowGeometryUpdates=!1,this.searchMaxRecordCount=null,this.serviceCapabilities=null,this.maxRecordCount=null,this.description="",this.copyrightText="",this.units="",this.spatialReference=null,this.currentVersion=null,this.dateFieldsTimeReference=null,this.serviceItemId="",this.supportsDocuments=!1,this.dataEditingNotSupported=!1,this.schemaEditingNotSupported=!1,this.supportsProvenance=!1}};(0,p.Cg)([(0,y.MZ)({type:[String],json:{write:!0}})],ne.prototype,"capabilities",void 0),(0,p.Cg)([(0,y.MZ)({type:Boolean,json:{write:!0}})],ne.prototype,"supportsSearch",void 0),(0,p.Cg)([(0,y.MZ)({type:[String],json:{write:!0}})],ne.prototype,"supportedQueryFormats",void 0),(0,p.Cg)([(0,y.MZ)({type:Boolean,json:{write:!0}})],ne.prototype,"allowGeometryUpdates",void 0),(0,p.Cg)([(0,y.MZ)({type:Number,json:{write:!0}})],ne.prototype,"searchMaxRecordCount",void 0),(0,p.Cg)([(0,y.MZ)({type:Object,json:{write:!0}})],ne.prototype,"serviceCapabilities",void 0),(0,p.Cg)([(0,y.MZ)({type:Number,json:{write:!0}})],ne.prototype,"maxRecordCount",void 0),(0,p.Cg)([(0,y.MZ)({type:String,json:{write:!0}})],ne.prototype,"description",void 0),(0,p.Cg)([(0,y.MZ)({type:String,json:{write:!0}})],ne.prototype,"copyrightText",void 0),(0,p.Cg)([(0,y.MZ)({type:String,json:{write:!0}})],ne.prototype,"units",void 0),(0,p.Cg)([(0,y.MZ)({type:c.A,json:{write:!0}})],ne.prototype,"spatialReference",void 0),(0,p.Cg)([(0,y.MZ)({type:Number,json:{write:!0}})],ne.prototype,"currentVersion",void 0),(0,p.Cg)([(0,y.MZ)({type:Object,json:{write:!0}})],ne.prototype,"dateFieldsTimeReference",void 0),(0,p.Cg)([(0,y.MZ)({type:String,json:{write:!0}})],ne.prototype,"serviceItemId",void 0),(0,p.Cg)([(0,y.MZ)({type:Boolean,json:{write:!0}})],ne.prototype,"supportsDocuments",void 0),(0,p.Cg)([(0,y.MZ)({type:Boolean,json:{write:!0}})],ne.prototype,"dataEditingNotSupported",void 0),(0,p.Cg)([(0,y.MZ)({type:Boolean,json:{write:!0}})],ne.prototype,"schemaEditingNotSupported",void 0),(0,p.Cg)([(0,y.MZ)({type:Boolean,json:{write:!0}})],ne.prototype,"supportsProvenance",void 0),ne=(0,p.Cg)([(0,y.$K)("esri.rest.knowledgeGraph.ServiceDefinition")],ne);let ae=class extends _.o{constructor(e){super(e),this.url=null,this.dataModel=null,this.serviceDefinition=null}};function oe(e,t,r){if(0!==e.error_code)throw new i.A(t,r,{errorCode:e.error_code,errorMessage:e.error_message})}function ie(e){return e?.error_code?new i.A("knowledgeGraphService:server-or-decoding-error",e.error_message,{errorCode:e.error_code}):void 0}function se(e,t,r,n=!1){const a=new r.ClientDataFetchRequestEncoder;a.deleteLater();for(const o of e){const e=le(o,t,r,n);a.add_client_data_fetch_request_parameter(e)}a.encode();const o=a.get_encoding_result();return oe(o.error,"knowledge-graph:fetchClientDataAtKeys-encoding-failed","Attempting to encode the fetchClientDataAtKeys failed"),structuredClone(o.get_byte_buffer())}function le(e,t,r,n){const a=new r.ClientDataKey;a.deleteLater(),a.key_string=e;const o=new r.ClientDataFetchRequestParameter;o.deleteLater(),o.set_key(a);const i=t.get(e);return i&&!n&&(o.v_tag={v_tag:i.version}),o}(0,p.Cg)([(0,y.MZ)({type:String,json:{write:!0}})],ae.prototype,"url",void 0),(0,p.Cg)([(0,y.MZ)({type:re,json:{write:!0}})],ae.prototype,"dataModel",void 0),(0,p.Cg)([(0,y.MZ)({type:ne,json:{write:!0}})],ae.prototype,"serviceDefinition",void 0),ae=(0,p.Cg)([(0,y.$K)("esri.rest.knowledgeGraph.KnowledgeGraph")],ae);var de=r(45724),ce=r(48526),pe=r(86738),ue=r(39829),ye=r(82799);const he={exclude:0,include:1};function ge(e,t){const r=new t.ArrayValue;return r.deleteLater(),e.forEach(e=>{r.add_value(me(e,t))}),r}function fe(e,t){const r=new t.ObjectValue;r.deleteLater();for(const[n,a]of Object.entries(e))r.set_key_value(n,me(a,t));return r}function we(e,t){if(e instanceof ce.A)return function(e,t){const r=new t.GeometryValue;r.deleteLater(),r.geometry_type=r.geometry_type=t.esriGeometryType.esriGeometryMultipoint,r.has_z=e.hasZ,r.has_m=e.hasM;const n=[],a=[];a[0]=e.points.length;let o=0;return e.points.forEach(e=>{e.forEach(e=>{n[o]=e,o++})}),r.coords=new Float64Array(n),r.lengths=new Uint32Array(a),r}(e,t);if(e instanceof pe.A)return function(e,t){const r=new t.GeometryValue;r.deleteLater(),r.geometry_type=t.esriGeometryType.esriGeometryPoint,r.has_z=e.hasZ,r.has_m=e.hasM;const n=[],a=[];a[0]=1,n[0]=e.x,n[1]=e.y;let o=2;return e.hasZ&&(n[o]=e.z,o++),e.hasM&&(n[o]=e.m,o++),r.coords=new Float64Array(n),r.lengths=new Uint32Array(a),r}(e,t);if(e instanceof ye.A||e instanceof ue.A)return function(e,t){const r=new t.GeometryValue;r.deleteLater(),r.has_z=e.hasZ,r.has_m=e.hasM;const n=[],a=[];let o=[];e instanceof ye.A?(r.geometry_type=t.esriGeometryType.esriGeometryPolyline,o=e.paths):e instanceof ue.A&&(r.geometry_type=t.esriGeometryType.esriGeometryPolygon,o=e.rings);let i=0,s=0;return o.forEach(e=>{let t=0;e.forEach(e=>{t++,e.forEach(e=>{n[s]=e,s++})}),a[i]=t,i++}),r.coords=new Float64Array(n),r.lengths=new Uint32Array(a),r}(e,t);throw new i.A("knowledge-graph:unsupported-geometry","Only Point, Multipoint, Polyline, and Polygon geometry are supported by ArcGIS Knowledge",{geometry:e})}function me(e,t){if(null==e)return"";if("object"!=typeof e)return e;if(e instanceof Date)return e;if(e instanceof d.A)return we(e,t);if(Array.isArray(e)){const r=new t.ArrayValue;return r.deleteLater(),e.forEach(e=>{r.add_value(me(e,t))}),r}return fe(e,t)}var _e=r(2645);function ve(e){return"lower-left"===e?_e.g.lowerLeft:_e.g.upperLeft}function be(e,t){const r=new t.EntityTypeReplicaDefinition;return r.deleteLater(),Ae(e,t,r),e.documentOptions&&(r.document_options=function(e,t){const r=e.includeConnectedDocuments?function(e,t){const r=Te(e.includeDocumentProvenance?{includeProvenance:!0,includeSourceDocuments:e.includeDocumentSourceDocuments}:{includeProvenance:!1},t),n=new t.IncludeConnectedDocuments(r);return n.deleteLater(),n}(e,t):void 0,n=new t.DocumentOptions(r);return n.deleteLater(),n}(e.documentOptions,t)),r}function Ce(e,t){const r=new t.RelationshipTypeReplicaDefinition;return r.deleteLater(),Ae(e,t,r),r}function Ae(e,t,r){if(r.type_name=e.typeName,r.open_cypher_where_clause=e.openCypherWhereClause??"",e.provenanceOptions&&(r.provenance_options=Te(e.provenanceOptions,t)),e.parameters)for(const[n,a]of Object.entries(e.parameters))void 0!==a&&r.add_parameter(n,xe(a,t));return r}function Te(e,t){const r=function(e,t){const r=new t.IncludeProvenance("includeSourceDocuments"in e&&e.includeSourceDocuments);return r.deleteLater(),r}(e,t),n=new t.ProvenanceOptions(r);return n.deleteLater(),n}function xe(e,t){if(null==e)return null;if("boolean"==typeof e||"string"==typeof e||"number"==typeof e||"bigint"==typeof e)return e;if(e instanceof Date)return e;if(e instanceof d.A)return we(e,t);if(Array.isArray(e))return ge(e,t);if("object"==typeof e)return fe(e,t);throw new i.A("knowledge-graph:replica-invalid-parameter-value","A replica parameter contains an unsupported value type",{value:e})}var Ge=r(49403);function Me(e,t){if(!e.typeName)throw new i.A("knowledge-graph:no-type-name","You must indicate the entity/relationship named object type to apply edits");if(!("originId"in e)){const r=new t.EntityValue;r.deleteLater(),r.type_name=e.typeName;for(const[n,a]of Object.entries(e.properties))r.set_key_value(n,Ie(a,t));return e.id&&r.set_id(e.id),r}if("originId"in e&&"destinationId"in e){const r=new t.RelationshipValue;r.deleteLater(),r.type_name=e.typeName;for(const[n,a]of Object.entries(e.properties))r.set_key_value(n,Ie(a,t));return e.id&&r.set_id(e.id),e.originId&&e.destinationId&&r.set_related_entity_ids(e.originId,e.destinationId),r}throw new i.A("knowledge-graph:applyEdits-encoding-failure","Could not determine the type of a named graph object passed to the encoder")}function Re(e,t){const r=new t.GraphProperty;return r.deleteLater(),r.name=e.name,r.alias=e.alias??"",r.field_type={value:Ge.r5[e.fieldType]},r.geometry_type={value:e.geometryType?Ge.bV[e.geometryType]:Ge.bV.esriGeometryNull},r.has_m=e.hasM??!1,r.has_z=e.hasZ??!1,r.nullable=e.nullable??!1,r.editable=e.editable,r.required=e.required,r.default_visibility=e.defaultVisibility,r.system_maintained=e.systemMaintained??!1,r.role={value:Ge.ti[e.role]},r.default_value=Ie(e.defaultValue,t),r.domain=e.domain??"",r}function De(e,t){const r=new t.SearchIndexProperties;r.deleteLater();for(const t of e.propertyNames)r.add_search_property_name(t);return r}function Pe(e,t,r,n){const a=new t.Domain;a.deleteLater(),a.name=e.name;const o=Ge.r5[r];a.field_type={value:o};let i=o;if(o!==Ge.r5.esriFieldTypeTimeOnly&&o!==Ge.r5.esriFieldTypeDateOnly&&o!==Ge.r5.esriFieldTypeTimestampOffset||(i=Ge.r5.esriFieldTypeString),n&&(a.merge_policy_type={value:Ge.G3[n.mergePolicy]},a.split_policy_type={value:Ge.GH[n.splitPolicy]}),"coded-value"===e.type){const r=e;a.type="codedValue";const n=new t.CodedValueDomain;n.deleteLater();for(const e of r.codedValues){const r=new t.CodedValue;r.deleteLater(),r.name=e.name,r.set_code(e.code,{value:i}),n.add_coded_value(r)}a.coded_value_domain=n}else if("range"===e.type){const r=e;a.type="range";const n=new t.RangeDomain;n.deleteLater(),n.add_value(r.minValue,{value:i}),n.add_value(r.maxValue,{value:i}),a.range_domain=n}else a.type=e.type??"unspecified";return a}function Se(e,t,r){r.name=e.name,r.alias=e.alias??"",r.role={value:Ge.Eq[e.role]},r.strict=e.strict;for(const n of e.properties){const e=Re(n,t);r.add_property(e)}return r}function ke(e,t){return e.hasOwnProperty("alias")&&(t.alias=e.alias),t}function Ie(e,t){return null==e?null:"object"!=typeof e||e instanceof Date?e:e instanceof d.A?we(e,t):null}let je=class extends u.A{constructor(e){super(e),this.decoderError=null,this.resultsCount=0,this.results=[],this.updatedKnowledgeGraph=null}};(0,p.Cg)([(0,y.MZ)()],je.prototype,"decoderError",void 0),(0,p.Cg)([(0,y.MZ)()],je.prototype,"resultsCount",void 0),(0,p.Cg)([(0,y.MZ)()],je.prototype,"results",void 0),(0,p.Cg)([(0,y.MZ)()],je.prototype,"updatedKnowledgeGraph",void 0),je=(0,p.Cg)([(0,y.$K)("esri.rest.knowledgeGraph.GraphDataModelOperationResult")],je);const Ze=je;let qe=class extends Ze{constructor(e){super(e)}};qe=(0,p.Cg)([(0,y.$K)("esri.rest.knowledgeGraph.GraphAddFieldIndexResult")],qe);const Ee=qe;let Fe=class extends Ze{constructor(e){super(e),this.entityAddResultsCount=0,this.relationshipAddResultsCount=0,this.entityAddResults=[],this.relationshipAddResults=[]}};(0,p.Cg)([(0,y.MZ)()],Fe.prototype,"entityAddResultsCount",void 0),(0,p.Cg)([(0,y.MZ)()],Fe.prototype,"relationshipAddResultsCount",void 0),(0,p.Cg)([(0,y.MZ)()],Fe.prototype,"entityAddResults",void 0),(0,p.Cg)([(0,y.MZ)()],Fe.prototype,"relationshipAddResults",void 0),Fe=(0,p.Cg)([(0,y.$K)("esri.rest.knowledgeGraph.GraphAddNamedTypesResult")],Fe);const Ne=Fe;let Le=class extends Ze{constructor(e){super(e)}};Le=(0,p.Cg)([(0,y.$K)("esri.rest.knowledgeGraph.GraphAddPropertyResult")],Le);const Oe=Le;let $e=class extends u.A{constructor(e){super(e),this.decoderError=null,this.updatedKnowledgeGraph=null}};(0,p.Cg)([(0,y.MZ)()],$e.prototype,"decoderError",void 0),(0,p.Cg)([(0,y.MZ)()],$e.prototype,"updatedKnowledgeGraph",void 0),$e=(0,p.Cg)([(0,y.$K)("esri.rest.knowledgeGraph.GraphDataModelSingletonOperationResult")],$e);const Ue=$e;let Ke=class extends Ze{constructor(e){super(e)}};Ke=(0,p.Cg)([(0,y.$K)("esri.rest.knowledgeGraph.GraphDeleteFieldIndexResult")],Ke);const ze=Ke;let Ve=class extends Ze{constructor(e){super(e)}};Ve=(0,p.Cg)([(0,y.$K)("esri.rest.knowledgeGraph.GraphDeleteNamedTypeResult")],Ve);const Je=Ve;let Be=class extends Ze{constructor(e){super(e)}};Be=(0,p.Cg)([(0,y.$K)("esri.rest.knowledgeGraph.GraphDeletePropertyResult")],Be);const Qe=Be;let He=class extends Ze{constructor(e){super(e)}};He=(0,p.Cg)([(0,y.$K)("esri.rest.knowledgeGraph.GraphUpdateNamedTypesResult")],He);const We=He;let Ye=class extends Ze{constructor(e){super(e)}};Ye=(0,p.Cg)([(0,y.$K)("esri.rest.knowledgeGraph.GraphUpdatePropertyResult")],Ye);const Xe=Ye;let et=class extends Ze{constructor(e){super(e)}};et=(0,p.Cg)([(0,y.$K)("esri.rest.knowledgeGraph.GraphUpdateSearchIndexResult")],et);const tt=et;function rt(e,t){const r=[];for(let n=0;n<t;n++){const t=e.get_result_at(n);r.push({name:t.get_name(),error:ie(t.get_error())})}return r}function nt(e){const t=e.get_results_count(),r=e.get_entity_type_add_results_count(),n=e.get_relationship_type_add_results_count(),a=new Ne({resultsCount:t,results:rt(e,t),decoderError:ie(e.error),entityAddResultsCount:r,relationshipAddResultsCount:n});for(let t=0;t<r;t++){const r=e.get_entity_type_add_results_at(t),n=r.get_name(),o=r.get_error();a.entityAddResults.push({name:n,error:ie(o)})}for(let t=0;t<n;t++){const r=e.get_relationship_type_add_results_at(t),n=r.get_name(),o=r.get_error();a.relationshipAddResults.push({name:n,error:ie(o)})}return a}function at(e){const t=e.get_results_count();return new We({resultsCount:t,results:rt(e,t),decoderError:ie(e.error)})}function ot(e){const t=e.get_results_count();return new Je({resultsCount:t,results:rt(e,t),decoderError:ie(e.error)})}function it(e){const t=e.get_results_count();return new Oe({resultsCount:t,results:rt(e,t),decoderError:ie(e.error)})}function st(e){const t=e.get_results_count();return new Qe({resultsCount:t,results:rt(e,t),decoderError:ie(e.error)})}function lt(e){const t=e.get_results_count();return new Xe({resultsCount:t,results:rt(e,t),decoderError:ie(e.error)})}function dt(e){const t=e.get_results_count();return new tt({resultsCount:t,results:rt(e,t),decoderError:ie(e.error)})}function ct(e){const t=e.get_results_count();return new Ee({resultsCount:t,results:rt(e,t),decoderError:ie(e.error)})}function pt(e){const t=e.get_results_count();return new ze({resultsCount:t,results:rt(e,t),decoderError:ie(e.error)})}function ut(e){return new Ue({decoderError:ie(e.error)})}var yt=r(93637),ht=r(64108),gt=r(39357),ft=r(53177),wt=r(76357),mt=r(41628);let _t=class extends u.A{constructor(e){super(e),this.name=null,this.supportedCategory="esriTypeUNSPECIFIED",this.analyzers=[],this.searchProperties=new Map}};(0,p.Cg)([(0,y.MZ)()],_t.prototype,"name",void 0),(0,p.Cg)([(0,y.MZ)()],_t.prototype,"supportedCategory",void 0),(0,p.Cg)([(0,y.MZ)()],_t.prototype,"analyzers",void 0),(0,p.Cg)([(0,y.MZ)()],_t.prototype,"searchProperties",void 0),_t=(0,p.Cg)([(0,y.$K)("esri.rest.knowledgeGraph.SearchIndex")],_t);let vt=!1;function bt(e){return e.deleteLater(),new X(At(e))}function Ct(e){return e.deleteLater(),new H({name:e.name,unique:e.unique,ascending:e.ascending,description:e.description,fieldNames:Pt(e.fields)})}function At(e){return{name:e.name,alias:e.alias,role:(0,yt.i7)(Ge.Eq,e.role.value),strict:e.strict,properties:St(e.properties),fieldIndexes:kt(e.field_indexes)}}function Tt(e){return e.deleteLater(),new W({alias:e.alias,name:e.name,fieldType:(0,yt.i7)(Ge.r5,e.field_type.value)??void 0,geometryType:(0,yt.i7)(Ge.bV,e.geometry_type.value)??null,hasM:e.has_m,hasZ:e.has_z,nullable:e.nullable,editable:e.editable,required:e.required,defaultVisibility:e.default_visibility,systemMaintained:e.system_maintained,role:(0,yt.i7)(Ge.ti,e.role.value),defaultValue:e.default_value,domain:e.domain})}let xt=class extends wt.A{};function Gt(e){return 2===e.get_domain_type().value?new mt.A({name:e.name,minValue:e.range_domain.value_at(0),maxValue:e.range_domain.value_at(1)}):1===e.get_domain_type().value?new ft.A({name:e.name,codedValues:Et(e)}):new xt({name:e.name})}function Mt(e){e.deleteLater();const t=At(e),r=[];for(let t=0;t<e.end_points.size();t++){const n=e.end_points.get(t);r.push({originEntityType:n.origin_entity_type,destinationEntityType:n.dest_entity_type})}return e.end_points.delete(),new ee(Object.assign({endPoints:r},t))}function Rt(e){return new te({behavior:e.behavior,value:e.value})}function Dt(e){const t=[];for(let r=0;r<e.size();r++)t.push(bt(e.get(r)));return e.delete(),t}function Pt(e){const t=[];for(let r=0;r<e.size();r++)t.push(e.get(r));return e.delete(),t}function St(e){const t=[];for(let r=0;r<e.size();r++){const n=Tt(e.get(r));"esriFieldTypeBigInteger"===n.fieldType&&(vt=!0),t.push(n)}return e.delete(),t}function kt(e){const t=[];for(let r=0;r<e.size();r++)t.push(Ct(e.get(r)));return e.delete(),t}function It(e){const t=[];for(let r=0;r<e.size();r++)t.push(Mt(e.get(r)));return e.delete(),t}function jt(e){const t=[];for(let r=0;r<e.size();r++){const n=e.get(r);n.deleteLater(),t.push(Rt(n))}return e.delete(),t}function Zt(e){const t=[];for(let r=0;r<e.size();r++){const n=new _t,a=e.get(r);n.name=a.name,n.supportedCategory=(0,yt.i7)(Ge.nP,a.supported_category.value);const o=a.analyzers.size();for(let e=0;e<o;e++)n.analyzers.push({name:a.analyzers.get(e).name});a.analyzers.delete();for(let e=0;e<a.search_properties.keys().size();e++){const t=a.search_properties.keys().get(e),r=a.search_properties.get(t),o=[];for(let e=0;e<r.property_names.size();e++)o.push(r.property_names.get(e));n.searchProperties.set(t,{propertyNames:o})}t.push(n)}return e.delete(),t}function qt(e){const t=[];for(let r=0;r<e.domains_count();r++){const n=e.domain_at(r);n.deleteLater(),t.push(Gt(n))}return t}function Et(e){const t=[];for(let r=0;r<e.coded_value_domain.coded_values_count();r++){const n=e.coded_value_domain.coded_value_at(r);n.deleteLater(),t.push(new gt.A({name:n.name,code:n.get_code()}))}return t}xt=(0,p.Cg)([(0,ht.$)("esri.rest.knowledgeGraph.wasmInterface.wasmToDataModelFactories")],xt);var Ft=r(25927),Nt=(r(77901),r(40662)),Lt=r(42095),Ot=r(23150);function $t(e,t){const r={paths:[],hasM:!1,hasZ:!1},n=Ut(e,r),{coords:a,geometry_type:o,lengths:s}=e;if(o.value!==t)throw new i.A("KnowledgeGraph:illegal-geometry-type","Illegal Geometry type for multipath conversion");let l=0;return s.forEach(e=>{const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e[t]=a[l],l++;t.push(e)}r.paths.push(t)}),r}function Ut(e,t){let r=2;return e.has_z?(t.hasZ=e.has_z,r++):t.hasZ=!1,e.has_m?(t.hasM=e.has_m,r++):t.hasM=!1,r}const Kt=()=>s.A.getLogger("esri.rest.knowledgeGraph.WasmToQueryResponseObjConstructors");function zt(e,t,r){return((e,t,r)=>{if(null==e)return null;if("object"!=typeof e)return e;if("getDate"in e)return e;if("geometry_type"in e)switch(e.geometry_type.value){case null:return null;case 1:return function(e,t){const r={spatialReference:t};let n=2;Ut(e,r);const a=e.coords;return r.x=a[0],r.y=a[1],e.has_z&&(r.z=a[n],n++),e.has_m&&(r.m=a[n]),new pe.A(r)}(e,r);case 2:return function(e,t){const r={spatialReference:t},n=Ut(e,r),a=e.lengths,o=e.coords,i=a[0];r.points=[];let s=0;for(let e=0;e<i;e++){const e=[];for(let t=0;t<n;t++)e[t]=o[s],s++;r.points.push(e)}return new ce.A(r)}(e,r);case 3:return function(e,t){const{paths:r,hasM:n,hasZ:a}=$t(e,3);return new ye.A({paths:r,hasM:n,hasZ:a,spatialReference:t})}(e,r);case 4:return function(e,t){const{paths:r,hasM:n,hasZ:a}=$t(e,4);return new ue.A({rings:r,hasM:n,hasZ:a,spatialReference:t})}(e,r);case 5:case 7:return Kt().warnOnce("Envelope and Multipatch are not supported on knowledge entities, but one of those geometry types was detected. Result interpreted as null"),null;default:return Kt().warnOnce("Unknown or blank geometry type returned - Result interpreted as null"),null}else{if(!("object_value_type"in e))return Kt().warnOnce("A decoded value came back of a type that is not supported. Result interpreted as null"),null;switch(e.object_value_type.value){case 0:return function(e,t,r){return new Nt.A(Jt(e,t,r))}(e,t,r);case 1:return Vt(e,t,r);case 2:return Bt(e,t,r);case 3:return function(e,t,r){const n=e.entity_count(),a=e.relationship_count(),o=[];for(let i=0;i<n;i++)o.push(Vt(e.get_entity_at(i),t,r)),i<a&&o.push(Bt(e.get_relationship_at(i),t,r));return new Lt.A({path:o})}(e,t,r);case 4:return function(e,t,r){const n=[],a=e.count();for(let o=0;o<a;o++){const a=e.get_value_at(o);n.push(zt(a,t,r))}return n}(e,t,r);default:return Kt().warnOnce("Unknown graph object type detected! Result interpreted as null"),null}}})(e,t,r)}function Vt(e,t,r){const n=e.type_name,a=Jt(e,t,r),o=e.get_id();return new Ft.A(Object.assign({typeName:n,id:o},a))}function Jt(e,t,r){const n={},a=e.key_count();for(let o=0;o<a;o++)n[e.get_key_at(o)]=zt(e.get_value_at(o),t,r);return{properties:n}}function Bt(e,t,r){const n=e.type_name,a=Jt(e,t,r);return new Ot.A(Object.assign({typeName:n,id:e.get_id(),originId:e.get_origin_entity_id(),destinationId:e.get_destination_entity_id()},a))}function Qt(e){const t=[];for(let r=0;r<e.get_header_keys().size();r++)t.push(e.get_header_keys().get(r));const r=new c.A(e.get_out_sr());return new V({headerKeys:t,outSpatialReference:r,exceededTransferLimit:e.exceeded_transfer_limit(),dataModelTimestamp:e.data_model_timestamp?new Date(e.data_model_timestamp):null})}let Ht=class extends u.A{constructor(e){super(e),this.asyncStatusUrl=null,this.createReplicaResult=null}};(0,p.Cg)([(0,y.MZ)()],Ht.prototype,"asyncStatusUrl",void 0),(0,p.Cg)([(0,y.MZ)()],Ht.prototype,"createReplicaResult",void 0),Ht=(0,p.Cg)([(0,y.$K)("esri.rest.knowledgeGraph.CreateReplicaResponse")],Ht);let Wt=class extends u.A{constructor(e){super(e),this.replicaName=null,this.replicaId=null,this.replicaOwner=null,this.lastSyncDate=null,this.creationDate=null,this.syncDirection=null,this.replicaFilters=null}};(0,p.Cg)([(0,y.MZ)()],Wt.prototype,"replicaName",void 0),(0,p.Cg)([(0,y.MZ)()],Wt.prototype,"replicaId",void 0),(0,p.Cg)([(0,y.MZ)()],Wt.prototype,"replicaOwner",void 0),(0,p.Cg)([(0,y.MZ)()],Wt.prototype,"lastSyncDate",void 0),(0,p.Cg)([(0,y.MZ)()],Wt.prototype,"creationDate",void 0),(0,p.Cg)([(0,y.MZ)()],Wt.prototype,"syncDirection",void 0),(0,p.Cg)([(0,y.MZ)()],Wt.prototype,"replicaFilters",void 0),Wt=(0,p.Cg)([(0,y.$K)("esri.rest.knowledgeGraph.ReplicaDefinition")],Wt);let Yt=class extends u.A{constructor(e){super(e),this.replicas=[]}};(0,p.Cg)([(0,y.MZ)()],Yt.prototype,"replicas",void 0),Yt=(0,p.Cg)([(0,y.$K)("esri.rest.knowledgeGraph.ReplicasInformationResponse")],Yt);let Xt=class extends u.A{constructor(e){super(e),this.decoderError=null,this.unregisterReplicaResults=[]}};function er(e,t){const r=[];for(let n=0;n<e;n++)r.push(t(n));return r}function tr(e){return{replicaName:e.get_replica_name(),replicaId:e.get_replica_id(),lastSyncDate:hr(e.get_last_sync_date())}}function rr(e){return{replicaId:e.get_replica_id(),error:e.has_error()?ie(e.get_error()):void 0}}function nr(e){const t=e.get_static_definition();t.deleteLater();const r=function(e){const t=[],r=[];for(let r=0;r<e.get_entity_type_replica_definition_count();r++){const n=e.get_entity_type_replica_definition_at(r);n.deleteLater(),t.push(ir(n))}for(let t=0;t<e.get_relationship_type_replica_definition_count();t++){const n=e.get_relationship_type_replica_definition_at(t);n.deleteLater(),r.push(sr(n))}return{entityTypeReplicaDefinitions:t,relationshipTypeReplicaDefinitions:r}}(t);return{transform:ar(e.transform),inputSpatialReference:new c.A(e.input_spatial_reference),staticDefinition:r}}function ar(e){return{quantizeOriginPosition:or(e.quantizeOriginPosition.value),scale:{xScale:e.scale.xScale,yScale:e.scale.yScale,mScale:e.scale.mScale,zScale:e.scale.zScale},translate:{xTranslate:e.translate.xTranslate,yTranslate:e.translate.yTranslate,mTranslate:e.translate.mTranslate,zTranslate:e.translate.zTranslate}}}function or(e){switch(e){case _e.g.lowerLeft:return"lower-left";case _e.g.upperLeft:default:return"upper-left"}}function ir(e){const t=e.document_options.get_include_connected_documents();return t?.deleteLater(),{...lr(e),documentOptions:t?dr(t):{includeConnectedDocuments:!1}}}function sr(e){return lr(e)}function lr(e){const t=e.provenance_options;return t.deleteLater(),{typeName:e.type_name,openCypherWhereClause:e.open_cypher_where_clause,provenanceOptions:cr(t)}}function dr(e){const t=e.get_provenance_options();t.deleteLater();const r=cr(t);return r.includeProvenance?{includeConnectedDocuments:!0,includeDocumentProvenance:!0,includeDocumentSourceDocuments:r.includeSourceDocuments}:{includeConnectedDocuments:!0,includeDocumentProvenance:!1}}function cr(e){const t=e.get_include_provenance();return t?{includeProvenance:!0,includeSourceDocuments:pr(t)}:{includeProvenance:!1}}function pr(e){return e.get_include_source_documents()}function ur(e,t){const r=e.value,n=t.SyncDirection;if(r===n.BIDIRECTIONAL.value)return"bidirectional";if(r===n.UPLOAD.value)return"upload";if(r===n.DOWNLOAD.value)return"download";throw new i.A("knowledge-graph:replica-invalid-sync-direction",`Unsupported replica sync direction value: ${r}`)}function yr(e){switch(e.value){case 1:return"pbf";case 2:return"spbf";case 3:return"geoparquet";case 4:return"sqlite";default:throw new i.A("knowledge-graph:replica-invalid-sync-data-format",`Unsupported replica sync data format value: ${e.value}`)}}function hr(e){return e?new Date(e):null}(0,p.Cg)([(0,y.MZ)()],Xt.prototype,"decoderError",void 0),(0,p.Cg)([(0,y.MZ)()],Xt.prototype,"unregisterReplicaResults",void 0),Xt=(0,p.Cg)([(0,y.$K)("esri.rest.knowledgeGraph.UnregisterReplicaResponse")],Xt);let gr=class extends u.A{constructor(e){super(e),this.hasError=!1,this.error=null,this.editResults=[],this.cascadeRelationshipDeleteResults=[],this.cascadeProvenanceDeleteResults=[]}};(0,p.Cg)([(0,y.MZ)()],gr.prototype,"hasError",void 0),(0,p.Cg)([(0,y.MZ)()],gr.prototype,"error",void 0),(0,p.Cg)([(0,y.MZ)()],gr.prototype,"editResults",void 0),(0,p.Cg)([(0,y.MZ)()],gr.prototype,"cascadeRelationshipDeleteResults",void 0),(0,p.Cg)([(0,y.MZ)()],gr.prototype,"cascadeProvenanceDeleteResults",void 0),gr=(0,p.Cg)([(0,y.$K)("esri.rest.knowledgeGraph.GraphApplyEditsResult")],gr);const fr=gr;function wr(e){const t=e.has_error(),r=new fr({hasError:t,error:t?ie(e.error):null}),n=e.get_edit_results_count();for(let t=0;t<n;t++){const n=e.get_edit_results_at(t);n.deleteLater();const a=e.get_edit_results_type_name_at(t),o=[],i=[],s=[],l=n.get_add_results_count(),d=n.get_update_results_count(),c=n.get_delete_results_count();for(let e=0;e<l;e++){const t=n.get_add_result_at(e);t.deleteLater(),o.push({id:t.id,error:ie(t.error)})}for(let e=0;e<d;e++){const t=n.get_update_result_at(e);t.deleteLater(),i.push({id:t.id,error:ie(t.error)})}for(let e=0;e<c;e++){const t=n.get_delete_result_at(e);t.deleteLater(),s.push({id:t.id,error:ie(t.error)})}r.editResults.push({typeName:a,adds:o,updates:i,deletes:s})}const a=e.get_cascaded_rel_deletes_count();for(let t=0;t<a;t++){const n=e.get_cascaded_rel_deletes_at(t);n.deleteLater();const a=e.get_cascaded_rel_deletes_type_name_at(t),o=[];for(let e=0;e<n.get_count();e++){const t=n.get_result_at(e);t.deleteLater(),o.push({id:t.id,originId:t.origin_id,destinationId:t.dest_id,error:ie(t.error)})}r.cascadeRelationshipDeleteResults.push({typeName:a,cascadeRelationshipDeletes:o})}if(e.has_cascading_provenance_deletes()){const t=e.get_cascading_provenance_deletes();t.deleteLater();const n=t.get_count();for(let e=0;e<n;e++){const n=t.get_result_at(e);n.deleteLater(),r.cascadeProvenanceDeleteResults.push({id:n.id,error:ie(n.error)})}}return r}const mr=new Map,_r=()=>new Map(mr.entries()),vr={fetchKnowledgeGraph:async e=>{const t=new ae({url:e}),r=[];return r.push(Fr(t)),r.push(Nr(t)),await Promise.all(r),t},refreshDataModel:async e=>{e.dataModel=await dn(e)},refreshServiceDefinition:async e=>{const t=(await(0,o.A)(e.url,{query:{f:"json"}})).data;return t.capabilities=t?.capabilities?.split(","),t.supportedQueryFormats=t?.supportedQueryFormats?.split(","),e.serviceDefinition=new ne(t),e.serviceDefinition},executeFindPathsAsynchronous:async(e,t)=>{const r=e.inKnowledgeGraphUrl.split("/rest/services");if(r.length<2)throw new i.A("knowledge-graph:invalid-tool-url","The URL for the KG Service was not correctly formatted. It should contain /rest/services/");const n=r[0],a=(await Xr(`${n}/rest/info`,{query:{f:"json"}})).data.currentVersion,o=`/rest/services/${a&&a<12?"System":"Utilities"}/KnowledgeGraphServerToolsAsync/GPServer/ServerFilteredFindPaths`;return await Yr(`${n}${o}`,{in_knowledge_graph_url:e.inKnowledgeGraphUrl,config_type:"STRING",config_string:e.config.toJSON(),result_type:"STRING"},{},t)},executeFindPaths:async(e,t)=>{const r=e.inKnowledgeGraphUrl.split("/rest/services");if(r.length<2)throw new i.A("knowledge-graph:invalid-tool-url","The URL for the KG Service was not correctly formatted. It should contain /rest/services/");const n=r[0],a=(await Xr(`${n}/rest/info`,{query:{f:"json"}})).data.currentVersion,o=`/rest/services/${a&&a<12?"System":"Utilities"}/KnowledgeGraphServerTools/GPServer/ServerFilteredFindPaths/execute`,s=await Xr(`${n}${o}`,{method:"post",query:{f:"pjson",in_knowledge_graph_url:e.inKnowledgeGraphUrl,config_type:"STRING",config_string:JSON.stringify(e.config),result_type:"STRING"},...t});if(s.data.results.length<1)throw new i.A("knowledge-graph:no-results","No results were returned from the FindPaths tool - no results returned",s);let l;for(const e of s.data.results)if("out_results_string"===e.paramName){l=e.value;break}if(!l)throw new i.A("knowledge-graph:no-results","No results were returned from the FindPaths tool - no results were returned on the expected paramater out_results_string",s);return l},fetchAsynchronousFindPathsResultData:async(e,t)=>(await e.fetchResultData("out_results_string",null,t)).value,executeQueryStreaming:async(e,t,r)=>{const n=`${e.url}/graph/query`;await en(e);const a=await rn(n,r);if(!e.serviceDefinition?.supportsProvenance&&"include"===t.provenanceBehavior)throw new i.A("knowledge-graph:provenance-not-supported","The Knowledge Graph Service definition indicated that provenance is not supported");a.data.body=await async function(e,t){const r=await(0,de.I)(),n=new r.GraphQueryRequestEncoder;if(n.deleteLater(),e.outputSpatialReference?n.output_spatial_reference={wkid:e.outputSpatialReference.wkid,latestWkid:e.outputSpatialReference.latestWkid,vcsWkid:e.outputSpatialReference.vcsWkid,latestVcsWkid:e.outputSpatialReference.latestVcsWkid,wkt:e.outputSpatialReference.wkt??""}:n.output_spatial_reference=r.SpatialReferenceUtil.WGS84(),n.open_cypher_query=e.openCypherQuery,e.bindParameters)for(const[t,a]of Object.entries(e.bindParameters))tn(t,a,n,r);if(e.bindGeometryQuantizationParameters)!function(e,t){t.input_quantization_parameters={xy_resolution:e.xyResolution,x_false_origin:e.xFalseOrigin,y_false_origin:e.yFalseOrigin,z_resolution:e.zResolution,z_false_origin:e.zFalseOrigin,m_resolution:e.mResolution,m_false_origin:e.mFalseOrigin}}(e.bindGeometryQuantizationParameters,n);else{if(t.dataModel||await Fr(t),4326!==t.dataModel?.spatialReference?.wkid)throw new i.A("knowledge-graph:SR-quantization-mismatch","If the DataModel indicates a coordinate system other than WGS84, inputQuantizationParameters must be provided to the query encoder");n.input_quantization_parameters=r.InputQuantizationUtil.WGS84_lossless()}e.outputQuantizationParameters&&function(e,t,r){if(!e.extent)throw new i.A("knowledge-graph:illegal-output-quantization","The Output quantization provided to the encoder had an illegal value as part of its extent",e.extent);if(!e.quantizeMode)throw new i.A("knowledge-graph:illegal-output-quantization","The Output quantization contained an illegal mode setting",e.quantizeMode);if(!e.tolerance)throw new i.A("knowledge-graph:illegal-output-quantization","The Output quantization contained an illegal tolerance setting",e.quantizeMode);t.output_quantization_parameters={extent:{xmax:e.extent.xmax,ymax:e.extent.ymax,xmin:e.extent.xmin,ymin:e.extent.ymin},quantize_mode:r.esriQuantizeMode[e.quantizeMode],tolerance:e.tolerance}}(e.outputQuantizationParameters,n,r),e.provenanceBehavior&&function(e,t){t.provenance_behavior={value:he[e]}}(e.provenanceBehavior,n);try{n.encode()}catch(e){throw new i.A("knowledge-graph:query-encoding-failed","Attempting to encode the query failed",{error:e})}const a=n.get_encoding_result();if(0!==a.error.error_code)throw new i.A("knowledge-graph:query-encoding-failed","Attempting to encode the query failed",{errorCode:a.error.error_code,errorMessage:a.error.error_message});return structuredClone(a.get_byte_buffer())}(t,e);const o=await Wr(a.data.url,a.data);if(e.dataModel){const t=await ln(o,e.dataModel);return new B({resultRowsStream:t.readableStream,resultHeader:t.resultHeader})}throw new i.A("knowledge-graph:undefined-data-model","The KnowledgeGraph supplied did not have a data model")},executeApplyEdits:async(e,t,r)=>{if(e.serviceDefinition?.dataEditingNotSupported||null!=e.dataModel.arcgisManaged&&!e.dataModel.arcgisManaged)throw new i.A("knowledge-graph:data-editing-not-supported","The Knowledge Graph Service definition indicated that data editing is not supported");const n=`${e.url}/graph/applyEdits`;await en(e);const a=await rn(n,r);return a.data.body=await async function(e,t){if(t.dataModel||await Fr(t),!t.dataModel)throw new i.A("knowledge-graph:data-model-undefined","Encoding could not proceed because a data model was not provided and it could not be determined from the service");const r=await(0,de.I)(),n=!!e.options?.cascadeDelete,a=!!e.options?.cascadeProvenanceDelete,o=new r.GraphApplyEditsEncoder(r.SpatialReferenceUtil.WGS84(),e.options?.inputQuantizationParameters?function(e){return{xy_resolution:e.xyResolution,x_false_origin:e.xFalseOrigin,y_false_origin:e.yFalseOrigin,z_resolution:e.zResolution,z_false_origin:e.zFalseOrigin,m_resolution:e.mResolution,m_false_origin:e.mFalseOrigin}}(e.options?.inputQuantizationParameters):r.InputQuantizationUtil.WGS84_lossless());o.deleteLater(),o.cascade_delete=n,o.cascade_delete_provenance=a;try{let t;e.entityAdds?.forEach(e=>{t=o.add_entity(Me(e,r)),oe(t,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits - an entity failed to be added to the encoder")}),e.relationshipAdds?.forEach(e=>{if(!e.originId||!e.destinationId)throw new i.A("knowledge-graph:relationship-origin-destination-missing","When adding a new relationship, you must provide both an origin and destination id on the appropriate class property");t=o.add_relationship(Me(e,r)),oe(t,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits - a relationship failed to be added to the encoder")}),e.entityUpdates?.forEach(e=>{if(!e.id)throw new i.A("knowledge-graph:entity-id-missing","When updating an entity or relationship, you must specify the id on the class level property");t=o.update_entity(Me(e,r)),oe(t,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits - an entity failed to be added to the encoder")}),e.relationshipUpdates?.forEach(e=>{if(!e.id)throw new i.A("knowledge-graph:relationship-id-missing","When updating an entity or relationship, you must specify the id on the class level property");t=o.update_relationship(Me(e,r)),oe(t,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits - a relationship failed to be added to the encoder")}),e.entityDeletes?.forEach(e=>{if(!e.typeName)throw new i.A("knowledge-graph:no-type-name","You must indicate the entity/relationship named object type to apply edits - delete");const t=o.make_delete_helper(e.typeName,!0);t.deleteLater(),e.ids?.forEach(e=>{t.delete_by_id(e)})}),e.relationshipDeletes?.forEach(e=>{if(!e.typeName)throw new i.A("knowledge-graph:no-type-name","You must indicate the entity/relationship named object type to apply edits - delete");const t=o.make_delete_helper(e.typeName,!1);e.ids?.forEach(e=>{t.delete_by_id(e)})}),o.encode()}catch(e){throw new i.A("knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits failed",{error:e})}const s=o.get_encoding_result();return oe(s.error,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits failed"),structuredClone(s.get_byte_buffer())}(t,e),async function(e){return nn(e,(await(0,de.I)()).GraphApplyEditsDecoder,wr)}(await Wr(a.data.url,a.data))},executeAddNamedTypes:async(e,t,r)=>{if(!t.newEntityTypes?.length&&!t.newRelationshipTypes?.length)throw new i.A("knowledge-graph:no-arguments","The operation to add types to the data model contained no values");const n=`${e.url}/dataModel/edit/namedTypes/add`;await en(e);const a=await rn(n,r);a.data.body=await async function(e){const t=await(0,de.I)(),r=new t.GraphNamedObjectTypeAddsRequestEncoder;r.deleteLater(),e.newEntityTypes?.forEach(e=>{r.add_entity_type(function(e,t){const r=new t.EntityType;return r.deleteLater(),Se(e,t,r)}(e,t))}),e.newRelationshipTypes?.forEach(e=>{r.add_relationship_type(function(e,t){const r=new t.RelationshipType;r.deleteLater();for(const n of e.endPoints){const e=new t.EndPoint;e.deleteLater(),e.origin_entity_type=n.originEntityType,e.dest_entity_type=n.destinationEntityType,r.add_end_point(e)}return Se(e,t,r)}(e,t))});try{r.encode()}catch(e){throw new i.A("knowledge-graph:addNamedTypes-encoding-failed","Attempting to encode the addNamedTypes failed",{error:e})}const n=r.get_encoding_result();return oe(n.error,"knowledge-graph:addNamedTypes-encoding-failed","Attempting to encode the addNamedTypes failed"),structuredClone(n.get_byte_buffer())}(t);const o=await Wr(a.data.url,a.data),s=await async function(e){return nn(e,(await(0,de.I)()).GraphNamedObjectTypeAddsResponseDecoder,nt)}(o);return s.updatedKnowledgeGraph=await Er(e.url),s},executeDeleteNamedType:async(e,t,r)=>{if(!t)throw new i.A("knowledge-graph:no-arguments","The operation to delete a named type from the data model contained no value");const n=`${e.url}/dataModel/edit/namedTypes/${t}/delete`;await en(e);const a=await rn(n,r);a.data.body="";const o=await Wr(a.data.url,a.data),s=await async function(e){return nn(e,(await(0,de.I)()).GraphNamedObjectTypeDeleteResponseDecoder,ot)}(o);return s.updatedKnowledgeGraph=await Er(e.url),s},executeUpdateNamedType:async(e,t,r,n)=>{if(!t&&!Object.keys(r).length)throw new i.A("knowledge-graph:no-arguments","The operation to update types in the data model contained missing or empty values");const a=`${e.url}/dataModel/edit/namedTypes/${t}/update`;await en(e);const o=await rn(a,n);o.data.body=await async function(e,t,r){const n=await(0,de.I)(),a=new n.GraphNamedObjectTypeUpdateRequestEncoder;if(a.deleteLater(),r.entityTypes.some(e=>e.name===t))a.update_entity_type(function(e,t){const r=new t.EntityType;return r.deleteLater(),ke(e,r)}(e,n));else{if(!r.relationshipTypes.some(e=>e.name===t))throw new i.A("knowledge-graph:updateNamedType-encoding-failed","The named type you are trying to update does not exist in the data model");a.update_relationship_type(function(e,t){const r=new t.RelationshipType;return r.deleteLater(),ke(e,r)}(e,n))}a.update_alias=e.hasOwnProperty("alias");try{a.encode()}catch(e){throw new i.A("knowledge-graph:updateNamedType-encoding-failed","Attempting to encode the updateNamedType failed",{error:e})}const o=a.get_encoding_result();return oe(o.error,"knowledge-graph:updateNamedType-encoding-failed","Attempting to encode the updateNamedType failed"),structuredClone(o.get_byte_buffer())}(r,t,e.dataModel);const s=await Wr(o.data.url,o.data),l=await async function(e){return nn(e,(await(0,de.I)()).GraphNamedObjectTypeUpdateResponseDecoder,at)}(s);return l.updatedKnowledgeGraph=await Er(e.url),l},executeAddGraphProperties:async(e,t,r,n)=>{if(!t&&!r.length)throw new i.A("knowledge-graph:no-arguments","The operation to add properties to the data model contained missing or empty values");const a=`${e.url}/dataModel/edit/namedTypes/${t}/fields/add`;await en(e);const o=await rn(a,n);o.data.body=await async function(e){const t=await(0,de.I)(),r=new t.GraphPropertyAddsRequestEncoder;r.deleteLater(),e.forEach(e=>{r.add_graph_property(Re(e,t))});try{r.encode()}catch(e){throw new i.A("knowledge-graph:addGraphProperties-encoding-failed","Attempting to encode the addGraphProperties failed",{error:e})}const n=r.get_encoding_result();return oe(n.error,"knowledge-graph:addGraphProperties-encoding-failed","Attempting to encode the addGraphProperties failed"),structuredClone(n.get_byte_buffer())}(r);const s=await Wr(o.data.url,o.data),l=await async function(e){return nn(e,(await(0,de.I)()).GraphPropertyAddsResponseDecoder,it)}(s);return l.updatedKnowledgeGraph=await Er(e.url),l},executeDeleteGraphProperty:async(e,t,r,n)=>{if(!t&&!r)throw new i.A("knowledge-graph:no-arguments","The operation to delete property contained missing or empty values");const a=`${e.url}/dataModel/edit/namedTypes/${t}/fields/delete`;await en(e);const o=await rn(a,n);o.data.body=await async function(e){const t=new((await(0,de.I)()).GraphPropertyDeleteRequestEncoder);t.deleteLater(),t.field_name=e;try{t.encode()}catch(e){throw new i.A("knowledge-graph:deleteGraphProperty-encoding-failed","Attempting to encode the deleteGraphProperty failed",{error:e})}const r=t.get_encoding_result();return oe(r.error,"knowledge-graph:deleteGraphProperty-encoding-failed","Attempting to encode the deleteGraphProperty failed"),structuredClone(r.get_byte_buffer())}(r);const s=await Wr(o.data.url,o.data),l=await async function(e){return nn(e,(await(0,de.I)()).GraphPropertyDeleteResponseDecoder,st)}(s);return l.updatedKnowledgeGraph=await Er(e.url),l},executeUpdateGraphProperty:async(e,t,r,n,a)=>{if(!t&&!r&&!Object.keys(n).length)throw new i.A("knowledge-graph:no-arguments","The operation to update properties in the data model contained missing or empty values");const o=`${e.url}/dataModel/edit/namedTypes/${t}/fields/update`;await en(e);const s=await rn(o,a);s.data.body=await async function(e,t){const r=await(0,de.I)(),n=new r.GraphPropertyUpdateRequestEncoder;n.deleteLater(),n.update_graph_property(function(e,t){const r=new t.GraphProperty;return r.deleteLater(),e.hasOwnProperty("alias")&&(r.alias=e.alias),e.hasOwnProperty("editable")&&(r.editable=e.editable),e.hasOwnProperty("required")&&(r.required=e.required),e.hasOwnProperty("defaultVisibility")&&(r.default_visibility=e.defaultVisibility),e.hasOwnProperty("defaultValue")&&(r.default_value=Ie(e.defaultValue,t)),e.hasOwnProperty("domain")&&(r.domain=e.domain),r}(t,r)),n.set_property_name(e),n.update_alias=t.hasOwnProperty("alias"),n.update_editable=t.hasOwnProperty("editable"),n.update_required=t.hasOwnProperty("required"),n.update_visible=t.hasOwnProperty("defaultVisibility"),n.update_default_value=t.hasOwnProperty("defaultValue"),n.update_domain=t.hasOwnProperty("domain");try{n.encode()}catch(e){throw new i.A("knowledge-graph:updateGraphProperty-encoding-failed","Attempting to encode the updateGraphProperty failed",{error:e})}const a=n.get_encoding_result();return oe(a.error,"knowledge-graph:updateGraphProperty-encoding-failed","Attempting to encode the updateGraphProperty failed"),structuredClone(a.get_byte_buffer())}(r,n);const l=await Wr(s.data.url,s.data),d=await async function(e){return nn(e,(await(0,de.I)()).GraphPropertyUpdateResponseDecoder,lt)}(l);return d.updatedKnowledgeGraph=await Er(e.url),d},executeAddGraphFieldIndex:async(e,t,r,n)=>{if(!t)throw new i.A("knowledge-graph:no-arguments","The operation to update search index in the data model contained missing named type");if(!r?.length)throw new i.A("knowledge-graph:no-arguments","The operation to update search index in the data model contained missing or empty field index values");const a=`${e.url}/dataModel/edit/namedTypes/${t}/indexes/add`;await en(e);const o=await rn(a,n);o.data.body=await async function(e){const t=await(0,de.I)(),r=new t.GraphIndexAddsRequestEncoder;r.deleteLater(),e.forEach(e=>{r.add_field_index(function(e,t){const r=new t.FieldIndex;r.deleteLater(),r.name=e.name,r.unique=e.unique,r.ascending=e.ascending,r.description=e.description??"";for(const t of e.fieldNames)r.add_field(t);return r}(e,t))});try{r.encode()}catch(e){throw new i.A("knowledge-graph:addGraphFieldIndex-encoding-failed","Attempting to encode the addGraphFieldIndex failed",{error:e})}const n=r.get_encoding_result();return oe(n.error,"knowledge-graph:addGraphFieldIndex-encoding-failed","Attempting to encode the addGraphFieldIndex failed"),structuredClone(n.get_byte_buffer())}(r);const s=await Wr(o.data.url,o.data),l=await async function(e){return nn(e,(await(0,de.I)()).GraphIndexAddsResponseDecoder,ct)}(s);return l.updatedKnowledgeGraph=await Er(e.url),l},executeDeleteGraphFieldIndex:async(e,t,r,n)=>{if(!t)throw new i.A("knowledge-graph:no-arguments","The operation to update search index in the data model contained missing named type");if(!r?.length)throw new i.A("knowledge-graph:no-arguments","The operation to update search index in the data model contained missing or empty field index values");const a=`${e.url}/dataModel/edit/namedTypes/${t}/indexes/delete`;await en(e);const o=await rn(a,n);o.data.body=await async function(e){const t=new((await(0,de.I)()).GraphIndexDeleteRequestEncoder);t.deleteLater(),e.forEach(e=>{t.add_index_name(e)});try{t.encode()}catch(e){throw new i.A("knowledge-graph:deleteGraphFieldIndex-encoding-failed","Attempting to encode the deleteGraphFieldIndex failed",{error:e})}const r=t.get_encoding_result();return oe(r.error,"knowledge-graph:deleteGraphFieldIndex-encoding-failed","Attempting to encode the deleteGraphFieldIndex failed"),structuredClone(r.get_byte_buffer())}(r);const s=await Wr(o.data.url,o.data),l=await async function(e){return nn(e,(await(0,de.I)()).GraphIndexDeleteResponseDecoder,pt)}(s);return l.updatedKnowledgeGraph=await Er(e.url),l},executeUpdateSearchIndex:async(e,t,r,n)=>{if(!t)throw new i.A("knowledge-graph:no-arguments","The operation to update search index in the data model contained missing named type");if(!Object.keys(r.addSearchProperties??{}).length&&!Object.keys(r.removeSearchProperties??{}).length)throw new i.A("knowledge-graph:no-arguments","The operation to update search index in the data model contained missing or empty properties values");const a=`${e.url}/dataModel/searchIndex/update`;await en(e);const o=await rn(a,n);o.data.body=await async function(e,t){const r=await(0,de.I)(),n=new r.GraphUpdateSearchIndexRequestEncoder;n.deleteLater(),t.hasOwnProperty("addSearchProperties")&&n.insert_add_search_property(e,De(t.addSearchProperties,r)),t.hasOwnProperty("removeSearchProperties")&&n.insert_delete_search_property(e,De(t.removeSearchProperties,r));try{n.encode()}catch(e){throw new i.A("knowledge-graph:updateSearchIndex-encoding-failed","Attempting to encode the updateSearchIndex failed",{error:e})}const a=n.get_encoding_result();return oe(a.error,"knowledge-graph:updateSearchIndex-encoding-failed","Attempting to encode the updateSearchIndex failed"),structuredClone(a.get_byte_buffer())}(t,r);const s=await Wr(o.data.url,o.data),l=await async function(e){return nn(e,(await(0,de.I)()).GraphUpdateSearchIndexResponseDecoder,dt)}(s);return l.updatedKnowledgeGraph=await Er(e.url),l},executeAddDomain:async(e,t,r,{mergePolicy:n="esriMergePolicyTypeDefaultValue",splitPolicy:a="esriSplitPolicyTypeDefaultValue"},o)=>{const s=`${e.url}/dataModel/domains/add`;await en(e);const l=await rn(s,o);l.data.body=await async function(e,t,r){const n=await(0,de.I)(),a=new n.GraphDomainAddRequestEncoder;a.deleteLater(),a.set_domain(Pe(e,n,t,r));try{a.encode()}catch(e){throw new i.A("knowledge-graph:addDomain-encoding-failed","Attempting to encode the domain failed",{error:e})}const o=a.get_encoding_result();return oe(o.error,"knowledge-graph:addDomain-encoding-failed","Attempting to encode the domain failed"),structuredClone(o.get_byte_buffer())}(t,r,{mergePolicy:n,splitPolicy:a});const d=await Wr(l.data.url,l.data),c=await async function(e){return nn(e,(await(0,de.I)()).GraphDomainAddResponseDecoder,ut)}(d);return c.updatedKnowledgeGraph=await Er(e.url),c},executeUpdateDomain:async(e,t,r,n,a)=>{const o=`${e.url}/dataModel/domains/${t.name}/update`;await en(e);const s=await rn(o,a);s.data.body=await async function(e,t,r){const n=await(0,de.I)(),a=new n.GraphDomainUpdateRequestEncoder;a.deleteLater(),a.set_domain(Pe(e,n,t,r)),a.update_domain=!0,r?.mergePolicy&&(a.update_merge_policy=!0),r?.splitPolicy&&(a.update_split_policy=!0);try{a.encode()}catch(e){throw new i.A("knowledge-graph:updateDomain-encoding-failed","Attempting to encode the domain failed",{error:e})}const o=a.get_encoding_result();return oe(o.error,"knowledge-graph:updateDomain-encoding-failed","Attempting to encode the domain failed"),structuredClone(o.get_byte_buffer())}(t,r,n);const l=await Wr(s.data.url,s.data),d=await async function(e){return nn(e,(await(0,de.I)()).GraphDomainUpdateResponseDecoder,ut)}(l);return d.updatedKnowledgeGraph=await Er(e.url),d},executeDeleteDomain:async(e,t,r)=>{const n=`${e.url}/dataModel/domains/${t}/delete`;if(!t)throw new i.A("knowledge-graph:no-arguments","The operation to delete a domain from the data model contained missing or empty domain name");await en(e);const a=await rn(n,r);a.data.body="";const o=await Wr(a.data.url,a.data),s=await async function(e){return nn(e,(await(0,de.I)()).GraphDomainDeleteResponseDecoder,ut)}(o);return s.updatedKnowledgeGraph=await Er(e.url),s},executeCreateReplica:async(e,t,r)=>{const n=`${e.url}/replicas/create`;await en(e);const a=await rn(n,r);return a.data.body=await async function(e){const t=function(e,t){const r=new t.CreateReplicaRequestEncoder;return r.deleteLater(),e.requestedReplicaId&&(r.replica_id=e.requestedReplicaId),e.requestedReplicaName&&(r.requested_replica_name=e.requestedReplicaName),r.sync_direction=function(e,t){const r=t.SyncDirection,n=e.toUpperCase(),a=r?.[n];if(!a)throw new i.A("knowledge-graph:replica-invalid-sync-direction",`Unsupported replica sync direction: ${e}`);return a}(e.syncDirection,t),r.sync_data_format=function(e,t){const r=t.SyncDataFormat,n=e.toUpperCase(),a=r?.[n];if(!a)throw new i.A("knowledge-graph:replica-invalid-sync-data-format",`Unsupported replica sync data format: ${e}`);return a}(e.syncDataFormat,t),r.async=!1,"reference"===e.type&&(r.reference_replica=function(e,t){const r=new t.ReferenceReplica;return r.deleteLater(),r.replica_id=e.replicaId,r}(e.referenceReplica,t)),"filter"===e.type&&(r.replica_filters=function(e,t){const r=function(e,t){const r=new t.StaticDefinition;r.deleteLater();const n=e.entityTypeReplicaDefinitions??[],a=e.relationshipTypeReplicaDefinitions??[];if(n.length<1&&a.length<1)throw new i.A("knowledge-graph:replica-invalid-static-definition","A Filter Replica static definition must include at least one entity type or relationship type replica definition");for(const e of n)r.add_entity_type_replica_definition(be(e,t));for(const e of a)r.add_relationship_type_replica_definition(Ce(e,t));return r}(e.staticDefinition,t),n=new t.ReplicaFilters(r);return n.deleteLater(),e.transform&&(n.transform=function(e){return{quantizeOriginPosition:{value:ve(e?.quantizeOriginPosition)},scale:{xScale:e.scale.xScale,yScale:e.scale.yScale,mScale:e.scale.mScale,zScale:e.scale.zScale},translate:{xTranslate:e.translate.xTranslate,yTranslate:e.translate.yTranslate,mTranslate:e.translate.mTranslate,zTranslate:e.translate.zTranslate}}}(e.transform)),e.inputSpatialReference&&(n.input_spatial_reference=e.inputSpatialReference),n}(e.replicaFilters,t)),r}(e,await(0,de.I)());try{t.encode()}catch(e){throw new i.A("knowledge-graph:createReplica-encoding-failed","Attempting to encode createReplica failed",{error:e})}const r=t.get_encoding_result();return oe(r.error,"knowledge-graph:createReplica-encoding-failed","Attempting to encode createReplica failed"),structuredClone(r.get_byte_buffer())}(t),async function(e){const t=e.headers.get("content-type");if(t?.includes("application/x-protobuf")){const t=await e.arrayBuffer(),r=new((await(0,de.I)()).CreateReplicaResponseDecoder);try{return r.decode(new Uint8Array(t)),r.has_error()&&oe(r.error,"knowledge-graph:createReplica-decoding-error","An error occurred while decoding the createReplica response"),function(e){const t=new Ht;if(e.has_async_status_url()&&(t.asyncStatusUrl=e.get_async_status_url()),e.has_create_replica_result()){const r=e.get_create_replica_result();r.deleteLater(),t.createReplicaResult=function(e){return{errors:er(e.get_error_count(),e.get_error_at),warnings:er(e.get_warning_count(),e.get_warning_at),replicaName:e.get_replica_name(),requestedReplicaName:e.get_requested_replica_name(),replicaId:e.get_replica_id(),syncDate:hr(e.get_sync_date()),replicaDataFormat:yr(e.get_replica_data_format()),replicaDataUrl:e.get_replica_data_url()}}(r)}return t}(r)}finally{r.deleteLater()}}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response for createReplica",{responseType:t,data:await e.text()})}(await Wr(a.data.url,a.data))},fetchReplicaDefinition:async(e,t,r)=>{const n=`${e.url}/replicas/${t}`,a=await(0,o.A)(n,{responseType:"array-buffer",query:{f:"pbf",...r?.query},signal:r?.signal,timeout:r?.timeout}),s=a.getHeader?.("content-type"),l=a.data;if(s?.includes("application/x-protobuf")){const e=await(0,de.I)(),t=new e.ReplicaDefinitionResponseDecoder;return t.deleteLater(),t.decode(new Uint8Array(l)),t.has_error()&&oe(t.error,"knowledge-graph:fetchReplica-decoding-error","An error occurred while decoding the replica definition response"),function(e,t){const r=e.get_replica_definition();r.deleteLater();const n=r.get_replica_filters();return n.deleteLater(),new Wt({replicaName:r.get_replica_name(),replicaId:r.get_replica_id(),replicaOwner:r.get_replica_owner(),lastSyncDate:hr(r.get_last_sync_date()),creationDate:hr(r.get_creation_date()),syncDirection:ur(r.get_sync_direction(),t),replicaFilters:nr(n)})}(t,e)}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response when fetching a replica",{responseType:s,data:a.data})},fetchReplicasInformation:async(e,t)=>{const r=`${e.url}/replicas`,n=await(0,o.A)(r,{responseType:"array-buffer",query:{f:"pbf",...t?.query},signal:t?.signal,timeout:t?.timeout}),a=n.getHeader?.("content-type"),s=n.data;if(a?.includes("application/x-protobuf")){const e=new((await(0,de.I)()).ReplicasResponseDecoder);return e.deleteLater(),e.decode(new Uint8Array(s)),e.has_error()&&oe(e.error,"knowledge-graph:fetchReplicasInformation-decoding-error","An error occurred while decoding the replicas information response"),function(e){const t=[];for(let r=0;r<e.get_replicas_count();r++){const n=e.get_replica_info_at(r);n.deleteLater(),t.push(tr(n))}return new Yt({replicas:t})}(e)}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response when fetching replicas information",{responseType:a,data:n.data})},executeUnregisterReplica:async(e,t,r)=>{if(!0===t.unregisterAll&&"replicaIds"in t)throw new i.A("knowledge-graph:no-arguments","The operation to unregister replicas cannot include replica ids when unregisterAll is true");if(!0!==t.unregisterAll){const e="replicaIds"in t?t.replicaIds:void 0;if(!Array.isArray(e)||!e.some(e=>!!e))throw new i.A("knowledge-graph:no-arguments","The operation to unregister replicas requires at least one replica id")}const n=`${e.url}/replicas/unregister`;await en(e);const a=await rn(n,r);return a.data.body=await async function(e){const t=function(e,t){const r=new t.UnregisterReplicaRequestEncoder;if(r.deleteLater(),e.unregisterAll)r.set_unregister_all();else{const{replicaIds:t=[]}=e;t.forEach(e=>r.add_replica_id(e))}return r}(e,await(0,de.I)());try{t.encode()}catch(e){throw new i.A("knowledge-graph:unregisterReplica-encoding-failed","Attempting to encode unregisterReplica failed",{error:e})}const r=t.get_encoding_result();return oe(r.error,"knowledge-graph:unregisterReplica-encoding-failed","Attempting to encode unregisterReplica failed"),structuredClone(r.get_byte_buffer())}(t),async function(e){const t=e.headers.get("content-type");if(t?.includes("application/x-protobuf")){const t=await e.arrayBuffer(),r=new((await(0,de.I)()).UnregisterReplicaResponseDecoder);try{return r.decode(new Uint8Array(t)),r.has_error()&&oe(r.error,"knowledge-graph:unregisterReplica-decoding-error","An error occurred while decoding the unregisterReplica response"),function(e){const t=[];for(let r=0;r<e.get_unregister_replica_result_count();r++){const n=e.get_unregister_replica_result_at(r);n.deleteLater(),t.push(rr(n))}return new Xt({decoderError:ie(e.error)??null,unregisterReplicaResults:t})}(r)}finally{r.deleteLater()}}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response for unregisterReplica",{responseType:t,data:await e.text()})}(await Wr(a.data.url,a.data))},executeQuery:async(e,t,r)=>{const n=`${e.url}/graph/query`,a=await(0,o.A)(n,{responseType:"array-buffer",query:{f:"pbf",openCypherQuery:t.openCypherQuery,...r?.query},signal:r?.signal,timeout:r?.timeout}),s=a.getHeader?.("content-type"),l=a.data;if(s?.includes("application/x-protobuf")){const t=new((await(0,de.I)()).GraphQueryDecoder);if(t.deleteLater(),e.dataModel){const r=sn({wasmQueryDecoder:t,newArrayBufferToParse:l,dataModel:e.dataModel});return new J({resultRows:r.resultRows,resultHeader:r.resultHeader})}throw new i.A("knowledge-graph:undefined-data-model","The KnowledgeGraph supplied did not have a data model")}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:s,data:a.data})},executeSearch:async(e,t,r)=>{const n="provenance"===t.typeCategoryFilter?"metaEntityProvenance":t.typeCategoryFilter,a=`${e.url}/graph/search`,s=await(0,o.A)(a,{responseType:"array-buffer",query:{f:"pbf",searchQuery:`"${t.searchQuery}"`,typeCategoryFilter:n,...r?.query},signal:r?.signal,timeout:r?.timeout}),l=s.getHeader?.("content-type"),d=s.data;if(l?.includes("application/x-protobuf")){const t=new((await(0,de.I)()).GraphQueryDecoder);if(t.deleteLater(),e.dataModel){const r=sn({wasmQueryDecoder:t,newArrayBufferToParse:d,dataModel:e.dataModel});return new J({resultRows:r.resultRows,resultHeader:r.resultHeader})}throw new i.A("knowledge-graph:undefined-data-model","The KnowledgeGraph supplied did not have a data model")}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:l,data:s.data})},executeSearchStreaming:async(e,t,r)=>{const n=`${e.url}/graph/search`;await en(e);const a=await rn(n,r);a.data.body=await async function(e){const t=await(0,de.I)(),r=new t.GraphSearchRequestEncoder;r.deleteLater(),r.search_query=e.searchQuery;const n="provenance"===e.typeCategoryFilter?"meta_entity_provenance":e.typeCategoryFilter;if(r.type_category_filter=t.esriNamedTypeCategory[n],!0===e.returnSearchContext&&(r.return_search_context=e.returnSearchContext),null!=e.start&&e.start>0&&(r.start_index=e.start),null!=e.num&&(r.max_num_results=e.num),null!=e.idsFilter&&Array.isArray(e.idsFilter)&&e.idsFilter.length>0)try{r.set_ids_filter(ge(e.idsFilter,t))}catch(e){throw new i.A("knowledge-graph:ids-format-error","Attempting to set ids filter failed. This is usually caused by an incorrectly formatted UUID string",{error:e})}e.namedTypesFilter?.forEach(e=>{r.add_named_type_filter(e)});try{r.encode()}catch(e){throw new i.A("knowledge-graph:search-encoding-failed","Attempting to encode the search failed",{error:e})}const a=r.get_encoding_result();if(0!==a.error.error_code)throw new i.A("knowledge-graph:search-encoding-failed","Attempting to get encoding result from the query failed",{errorCode:a.error.error_code,errorMessage:a.error.error_message});return structuredClone(a.get_byte_buffer())}(t);const o=await Wr(a.data.url,a.data);if(e.dataModel){const t=await ln(o,e.dataModel);return new B({resultRowsStream:t.readableStream,resultHeader:t.resultHeader})}throw new i.A("knowledge-graph:undefined-data-model","The KnowledgeGraph supplied did not have a data model")},fetchClientDataAtKeys:async(e,t,r={ignoreCache:!1})=>{if(!t.length)return new Map;let n=mr.get(e.url||"");n||(n=new Map,mr.set(e.url||"",n));const a=new Map(n.entries()),o=`${e.url}/clientData/fetch`;t=Array.from(new Set(t));const s=await(0,de.I)(),l=se(t,n,s,r.ignoreCache),d=await rn(o,r.requestOptions);d.data.body=l;const c=await Wr(d.data.url,d.data),p=c.headers.get("content-type");if(p?.includes("application/x-protobuf")){const e=new s.ClientDataFetchResponseDecoder;e.deleteLater();const t=await c.arrayBuffer();return e.decode(new Uint8Array(t)),e.has_error()&&oe(e.error,"knowledge-graph:fetchClientDataAtKeys-decoding-error","An error occurred while decoding the client data keys response"),function(e,t,r,n=!1){const a=new Map;for(let o=0;o<e.get_results_count();o++){const i=e.get_result_at(o);if(2!==i.get_fetch_result_case().value||0!==i.error().error_code){const e=i.get_key().key_string;r.has(e)&&t.delete(e);continue}const s=i.get_value(),l=i.get_key().key_string,d=r.get(l);let c;if(2===s.get_data_case().value&&d)c=d.value;else{if(1!==s.get_data_case().value)continue;{c=s.get_data().client_data_string;const e=i.get_value().get_v_tag().v_tag;n||t.set(l,{key:l,version:e,value:c})}}a.set(l,c)}return a}(e,n,a,r.ignoreCache)}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response when fetching client data",{responseType:p,data:c})},fetchAllClientDataKeys:async(e,t)=>{const r=`${e.url}/clientData`,n=await(0,o.A)(r,{responseType:"array-buffer",query:{f:"pbf"},signal:t?.signal,timeout:t?.timeout}),a=n.getHeader?.("content-type"),s=n.data;if(a?.includes("application/x-protobuf")){const e=new((await(0,de.I)()).ClientDataKeysResponseDecoder);return e.deleteLater(),e.decode(new Uint8Array(s)),e.has_error()&&oe(e.error,"knowledge-graph:fetchAllClientDataKeys-decoding-error","An error occurred while decoding the client data keys response"),function(e){const t=e.get_keys(),r=new Array;for(let e=0;e<t.get_keys_count();e++){const n=t.get_key_at(e);1===n.get_client_data_key_type().value&&r.push(n.key_string)}return r}(e)}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:a,data:n.data})},clearClientDataCache:()=>mr.clear(),_fetchWrapper:async(e,t)=>fetch(e,t),_submitJobWrapper:async(e,t,r,n)=>async function(e,t,r,n){return r=f.from(r||{}),async function(e,t,r,n,a){const i={},s={},l=[];return function(e,t,r){for(const n in e){const a=e[n];if(a&&"object"==typeof a&&a instanceof G.A){const{features:e}=a;r[n]=[t.length,t.length+e.length],e.forEach(e=>{t.push(e.geometry)})}}}(n,l,i),(0,w.el)(l).then(l=>{const{outSpatialReference:d,processExtent:c,processSpatialReference:p,returnColumnName:u,returnFeatureCollection:y,returnM:h,returnZ:g}=r,{path:f}=(0,b.Dl)(e);for(const e in i){const[t,r]=i[e];s[e]=l.slice(t,r)}const w=d?d.wkid||d:null,m=p?p.wkid||p:null,_="execute"===t?{returnColumnName:u||void 0,returnFeatureCollection:y||void 0,returnM:h||void 0,returnZ:g||void 0}:null,v=L({...c?{context:{extent:c,outSR:w,processSR:m}}:{"env:outSR":w,"env:processSR":m},...n,..._,f:"json"},null,s),C={...a,query:v};return(0,o.A)(`${f}/${t}`,C)})}(e,"submitJob",r,t??{},n).then(({data:t})=>{const r=z.fromJSON(t);return r.sourceUrl=e,r})}(e,t,r,n),_esriRequestWrapper:async(e,t)=>(0,o.A)(e,t)};async function br(e,t,r){return vr.executeApplyEdits(e,t,r)}async function Cr(e,t,r){return vr.executeAddNamedTypes(e,t,r)}async function Ar(e,t,r){return vr.executeDeleteNamedType(e,t,r)}async function Tr(e,t,r,n){return vr.executeUpdateNamedType(e,t,r,n)}async function xr(e,t,r,n){return vr.executeAddGraphProperties(e,t,r,n)}async function Gr(e,t,r,n){return vr.executeDeleteGraphProperty(e,t,r,n)}async function Mr(e,t,r,n,a){return vr.executeUpdateGraphProperty(e,t,r,n,a)}async function Rr(e,t,r,n){return vr.executeAddGraphFieldIndex(e,t,r,n)}async function Dr(e,t,r,n){return vr.executeDeleteGraphFieldIndex(e,t,r,n)}async function Pr(e,t,r,n){return vr.executeUpdateSearchIndex(e,t,r,n)}async function Sr(e,t,r){return vr.executeQuery(e,t,r)}async function kr(e,t,r){return vr.executeQueryStreaming(e,t,r)}async function Ir(e,t,r){return vr.executeSearch(e,t,r)}async function jr(e,t,r){return vr.executeSearchStreaming(e,t,r)}function Zr(e,t){return vr.fetchAllClientDataKeys(e,t)}function qr(e,t,r){return vr.fetchClientDataAtKeys(e,t,r)}async function Er(e){return vr.fetchKnowledgeGraph(e)}async function Fr(e){return vr.refreshDataModel(e)}async function Nr(e){return vr.refreshServiceDefinition(e)}async function Lr(e,t){return vr.executeFindPathsAsynchronous(e,t)}async function Or(e,t){return vr.executeFindPaths(e,t)}async function $r(e,t){return vr.fetchAsynchronousFindPathsResultData(e,t)}async function Ur(e,t,r,n={mergePolicy:"esriMergePolicyTypeDefaultValue",splitPolicy:"esriSplitPolicyTypeDefaultValue"},a){return vr.executeAddDomain(e,t,r,n,a)}async function Kr(e,t,r,n,a){return vr.executeUpdateDomain(e,t,r,n,a)}async function zr(e,t,r){return vr.executeDeleteDomain(e,t,r)}async function Vr(e,t,r){return vr.executeCreateReplica(e,t,r)}async function Jr(e,t,r){return vr.fetchReplicaDefinition(e,t,r)}async function Br(e,t){return vr.fetchReplicasInformation(e,t)}async function Qr(e,t,r){return vr.executeUnregisterReplica(e,t,r)}function Hr(){return vr.clearClientDataCache()}async function Wr(e,t){return vr._fetchWrapper(e,t)}async function Yr(e,t,r,n){return vr._submitJobWrapper(e,t,r,n)}async function Xr(e,t){return vr._esriRequestWrapper(e,t)}async function en(e){const t=a.id?.findCredential(e.url);t||(e.dataModel?await dn(e):await Fr(e))}function tn(e,t,r,n){null==t?r.set_param_key_value(e,""):"object"!=typeof t||t instanceof Date?r.set_param_key_value(e,t):t instanceof d.A?r.set_param_key_value(e,we(t,n)):Array.isArray(t)?r.set_param_key_value(e,ge(t,n)):r.set_param_key_value(e,fe(t,n))}async function rn(e,t){return(0,o.A)(e,{responseType:"native-request-init",method:"post",query:{f:"pbf",...t?.query},body:"x",headers:{"Content-Type":"application/octet-stream"},signal:t?.signal,timeout:t?.timeout})}async function nn(e,t,r){const n=e.headers.get("content-type");if(n?.includes("application/x-protobuf")){const n=await e.arrayBuffer(),a=new t;try{return a.decode(new Uint8Array(n)),r(a)}finally{a.deleteLater()}}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:n,data:await e.text()})}let an=50;function on(e){an=e}function sn({wasmQueryDecoder:e,newArrayBufferToParse:t,dataModel:r,decodedHeader:n,limitMaxProcessingTime:a=!1}){t&&e.push_buffer(new Uint8Array(t));const o=[];let s,l,d=0;const p=Date.now();let u=!0;for(;e.next_row();){s&&l||(s=n??Qt(e),l=s.outSpatialReference??new c.A({wkid:4326})),d||(d=e.get_header_keys().size());const t=new Array(d);for(let n=0;n<d;n++){const a=e.get_value(n);t[n]=zt(a,r,l)}if(o.push(t),a&&Date.now()-p>an){u=!1;break}}if(e.has_error())throw new i.A("knowledge-graph:stream-decoding-error","One or more result rows were not successfully decoded - inner row decoding",{errorCode:e.error.error_code,errorMessage:e.error.error_message});return{resultHeader:s,resultRows:o,parsedAllResultsFromBuffer:u}}async function ln(e,t){const r=e.headers.get("content-type");if(e.headers.get("content-length")&&s.A.getLogger("esri.rest.knowledgeGraph.knowledgeGraphService").warnOnce("Found `Content-Length` header when expecting a streaming HTTP response! Please investigate whether all intermediate HTTP proxies and/or load balancers are configured such that they don't forcefully buffer the entire response before returning it to the client. A valid HTTP streaming response should use Chunked Transfer Encoding and not have a Content Length defined."),r?.includes("application/x-protobuf")){const r=e.body?.getReader(),n=new((await(0,de.I)()).GraphQueryDecoder);let a,o,d;n.deleteLater();const c=new Promise((e,t)=>{o=e,d=t});let p=!1,u=null;const y=new ReadableStream({pull:async function e(c){if(!r){const e=new i.A("knowledge-graph:stream-decoding-error","Error reading from stream - reader is undefined");throw d(e),e}const{done:y,value:h}=u?{done:!1,value:null}:await r.read().catch(e=>{throw d(e),r.releaseLock(),e});h&&(u=h);try{if(y){let e;if(n.has_error()?e=new i.A("knowledge-graph:stream-decoding-error","One or more result rows were not successfully decoded - query stream done",{errorCode:n.error.error_code,errorMessage:n.error.error_message}):p||o(new V),r.releaseLock(),e)throw c.error(e),d(e),e;return void c.close()}const{resultHeader:s,resultRows:l,parsedAllResultsFromBuffer:g}=sn({wasmQueryDecoder:n,newArrayBufferToParse:h,dataModel:t,decodedHeader:a,limitMaxProcessingTime:!0});return g&&(u=null),!a&&s&&(a=s,o(s),p=!0),l.length>0?void c.enqueue(l):await e(c)}catch(e){throw s.A.getLogger("esri.rest.knowledgeGraph.knowledgeGraphService").error(e),d(e),r.releaseLock(),(0,l.zf)(e)?e:new i.A("knowledge-graph:unexpected-server-response","Error inside streaming data return parsing",{error:e})}}});return{readableStream:y,resultHeader:await c}}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:r,data:e.text()})}async function dn(e){const t=`${e.url}/dataModel/queryDataModel`,r=await(0,o.A)(t,{responseType:"array-buffer",query:{f:"pbf"}}),n=r.getHeader?.("content-type"),a=r.data;if(n?.includes("application/x-protobuf")){const e=(await(0,de.I)()).decode_data_model_from_protocol_buffer(new Uint8Array(a));if(!e)throw new i.A("knowledge-graph:data-model-decode-failure","The server responded to the data model query, but the response failed to be decoded. This typically occurs when the Knowledge JS API (4.26 or later) is used with an unsupported backend (11.0 or earlier)");return function(e){e.deleteLater(),vt=!1;const t=new re({timestamp:e.timestamp,spatialReference:new c.A(e.spatial_reference),strict:e.strict,objectIdField:e.objectid_property,globalIdField:e.globalid_property,arcgisManaged:e.arcgis_managed,identifierInfo:{identifierMappingInfo:{identifierInfoType:(0,yt.i7)(Ge.vy,e.identifier_info?.identifier_mapping_info?.identifier_info_type?.value),databaseNativeIdentifier:e.identifier_info?.identifier_mapping_info?.database_native_identifier,uniformPropertyIdentifier:{identifierPropertyName:e.identifier_info?.identifier_mapping_info?.uniform_property_identifier?.identifier_property_name}},identifierGenerationInfo:{uuidMethodHint:(0,yt.i7)(Ge.wr,e.identifier_info?.identifier_generation_info?.uuid_method_hint?.value)}},searchIndexes:Zt(e.search_indexes),entityTypes:Dt(e.entity_types),relationshipTypes:It(e.relationship_types),metaEntityTypes:Dt(e.meta_entity_types),provenanceSourceTypeValues:jt(e.provenance_source_type_values.value_behavior_array),domains:qt(e)});return vt&&s.A.getLogger("esri.rest.knowledgeGraph.knowledgeGraphService").warnOnce("A big integer field was detected in the retrieved data model. The `big-integer` field type is not fully supported in web clients. Please see https://developers.arcgis.com/javascript/latest/references/core/layers/support/Field/#type"),t}(e)}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:n,data:r.data})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9794],{89794(a,e,l){l.r(e),l.d(e,{GlobalIlluminationPassParameters:()=>t.G,build:()=>t.c,defaultRayMarchMaxReach:()=>t.d,defaultRayMarchMaxSteps:()=>t.b}),l(82048),l(92573),l(98619),l(70893),l(34845),l(20304),l(31821),l(58029),l(12791),l(63761),l(63907),l(65786),l(14113);var t=l(587)}}]);