@arcgis/core 5.1.0-next.21 → 5.1.0-next.23

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 (183) hide show
  1. package/analysis/VolumeMeasurement/VolumeMeasurementCutFillOptions.d.ts +1 -0
  2. package/analysis/VolumeMeasurement/VolumeMeasurementDisplayUnits.d.ts +1 -0
  3. package/analysis/VolumeMeasurement/VolumeMeasurementInputUnits.d.ts +1 -0
  4. package/analysis/VolumeMeasurementAnalysis.d.ts +3 -2
  5. package/assets/esri/core/workers/RemoteClient.js +1 -1
  6. package/assets/esri/core/workers/chunks/03d11c7056fea763cbac.js +1 -0
  7. package/assets/esri/core/workers/chunks/05e5b9082c0a396df7e5.js +1 -0
  8. package/assets/esri/core/workers/chunks/08445fcba84ed7c23b3f.js +1 -0
  9. package/assets/esri/core/workers/chunks/0c706cdff6eac940eaab.js +1 -0
  10. package/assets/esri/core/workers/chunks/10a8612e7b2c74a8ce9a.js +1 -0
  11. package/assets/esri/core/workers/chunks/{2ddb8bb00b3af83ebd7c.js → 14792047c5519dd89828.js} +1 -1
  12. package/assets/esri/core/workers/chunks/1a1e57267306c07e5bdb.js +1 -0
  13. package/assets/esri/core/workers/chunks/1bb5aa1e3693e0c68b18.js +1 -0
  14. package/assets/esri/core/workers/chunks/1cd091fa567fc4026356.js +1 -0
  15. package/assets/esri/core/workers/chunks/{3ed7f19f77a11fa4d047.js → 2063b49607a03f7718ee.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{74a6d840813ac29b0bda.js → 209acb3ad16c99bb506c.js} +1 -1
  17. package/assets/esri/core/workers/chunks/21decfc1e477fb769204.js +1 -0
  18. package/assets/esri/core/workers/chunks/21e04705cad9fef1b01b.js +1 -0
  19. package/assets/esri/core/workers/chunks/23cb0611abe1031c513c.js +1 -0
  20. package/assets/esri/core/workers/chunks/285f3b07de852bfc1604.js +1 -0
  21. package/assets/esri/core/workers/chunks/2c61a53962093a331225.js +1 -0
  22. package/assets/esri/core/workers/chunks/2ecfd6edab796194bf88.js +1 -0
  23. package/assets/esri/core/workers/chunks/2f23af31b1190754ce13.js +1 -0
  24. package/assets/esri/core/workers/chunks/31eb59eae4c89b76e302.js +1 -0
  25. package/assets/esri/core/workers/chunks/3e61e7805dc6ff284831.js +1 -0
  26. package/assets/esri/core/workers/chunks/4150774059d67a8def74.js +1 -0
  27. package/assets/esri/core/workers/chunks/416c57df61fbd193078b.js +1 -0
  28. package/assets/esri/core/workers/chunks/46d28a0c20263012faff.js +1 -0
  29. package/assets/esri/core/workers/chunks/{43c8b1473695574c663e.js → 4754610760f3f634adf9.js} +2 -2
  30. package/assets/esri/core/workers/chunks/{f5cebeaad3e7d87d7997.js → 4fc6dd1423075e145b29.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{3861644c06cfebe8f40c.js → 527547fa10d52cb3a7b1.js} +2 -2
  32. package/assets/esri/core/workers/chunks/5480d4cc342a2669a8ab.js +1 -0
  33. package/assets/esri/core/workers/chunks/{e8495c655a0a4f534636.js → 551fee27bf3abf0c41fd.js} +1 -1
  34. package/assets/esri/core/workers/chunks/576995021660e8b34705.js +1 -0
  35. package/assets/esri/core/workers/chunks/57e375d8a8db9fa57193.js +1 -0
  36. package/assets/esri/core/workers/chunks/5cbc12545f42a32fb960.js +1 -0
  37. package/assets/esri/core/workers/chunks/61ebbae0773fccc1f2bf.js +1 -0
  38. package/assets/esri/core/workers/chunks/63c297b6b7438f49e7ee.js +1 -0
  39. package/assets/esri/core/workers/chunks/{53f8c1d56ef3b24d2226.js → 6c853fd89f0e9f102c6e.js} +1 -1
  40. package/assets/esri/core/workers/chunks/{946698d9cefffdb63082.js → 6e32e7b2ea2ea1a1fc04.js} +1 -1
  41. package/assets/esri/core/workers/chunks/6f12854c5846edfe3239.js +1 -0
  42. package/assets/esri/core/workers/chunks/{b586f1021a27c5e1551a.js → 7189e03cc24f5c10865a.js} +2 -2
  43. package/assets/esri/core/workers/chunks/7c417d2bf432e4055b3d.js +30 -0
  44. package/assets/esri/core/workers/chunks/8021cb732f8136d87048.js +1 -0
  45. package/assets/esri/core/workers/chunks/84124c1a41a96192f81c.js +1 -0
  46. package/assets/esri/core/workers/chunks/845bbd82ddacbb62ad28.js +1 -0
  47. package/assets/esri/core/workers/chunks/868c8a152cb1452b9a94.js +1 -0
  48. package/assets/esri/core/workers/chunks/879ce85c50b0348056b2.js +1 -0
  49. package/assets/esri/core/workers/chunks/87a7d405a0b9a541d7f2.js +1 -0
  50. package/assets/esri/core/workers/chunks/9522430d34d29c1ffb1a.js +1 -0
  51. package/assets/esri/core/workers/chunks/9647f3983f955da21093.js +1 -0
  52. package/assets/esri/core/workers/chunks/9694b4b85168a38ca24b.js +1 -0
  53. package/assets/esri/core/workers/chunks/{83d913dab3c2b0d6a7cc.js → 9736299a4ac0e21f08a7.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{e7bee85f28d7ec03825a.js → 973e3743cb7fdaa27f80.js} +1 -1
  55. package/assets/esri/core/workers/chunks/9b2d0d36ee6c04c347df.js +1 -0
  56. package/assets/esri/core/workers/chunks/{2662750d5761ed2d0eb7.js → 9e7eea56e96f012f9ff4.js} +1 -1
  57. package/assets/esri/core/workers/chunks/{3f812b0a28afb47aaaf0.js → a35d1be700ebd3109397.js} +2 -2
  58. package/assets/esri/core/workers/chunks/a4a4ce33de6432ba4dc3.js +1 -0
  59. package/assets/esri/core/workers/chunks/{aece665144aed2065ffc.js → a78ac951c00f090d9024.js} +1 -1
  60. package/assets/esri/core/workers/chunks/{0debabe324c873066885.js → aa3bdfd00f666c6cc521.js} +1 -1
  61. package/assets/esri/core/workers/chunks/{db5bbc240a1b8cd5af52.js → abc2471cfa9430ca5645.js} +1 -1
  62. package/assets/esri/core/workers/chunks/b2a67fe89f6505498bc3.js +1 -0
  63. package/assets/esri/core/workers/chunks/b4254fcb2051c873f2ba.js +1 -0
  64. package/assets/esri/core/workers/chunks/{a53fa34681efff8fc024.js → b859d98fa1c39f8e4099.js} +1 -1
  65. package/assets/esri/core/workers/chunks/c09bc36347e8eb9fff00.js +1 -0
  66. package/assets/esri/core/workers/chunks/c2cda93905f0a49a6931.js +1 -0
  67. package/assets/esri/core/workers/chunks/{3d0aa5f2db79c022243e.js → c794f7be868e53ca4a8c.js} +1 -1
  68. package/assets/esri/core/workers/chunks/cada79c174027f7a0df8.js +1 -0
  69. package/assets/esri/core/workers/chunks/d10c65cde3565d399275.js +1 -0
  70. package/assets/esri/core/workers/chunks/d44217de4c73475f9c66.js +1 -0
  71. package/assets/esri/core/workers/chunks/d587b7842091affdaac3.js +1 -0
  72. package/assets/esri/core/workers/chunks/d70678598f4080adfb39.js +1 -0
  73. package/assets/esri/core/workers/chunks/dad9c25f1b7cacf7b052.js +1 -0
  74. package/assets/esri/core/workers/chunks/{0facd2c143a04cc7c4ff.js → deee88e3f1641c6ef5db.js} +1 -1
  75. package/assets/esri/core/workers/chunks/e063cce778944fe97dd3.js +1 -0
  76. package/assets/esri/core/workers/chunks/e37e7ae2de974cef9a90.js +1 -0
  77. package/assets/esri/core/workers/chunks/e44ed205f74df34adb8b.js +1 -0
  78. package/assets/esri/core/workers/chunks/e6220c1fa887e21ffbbd.js +1 -0
  79. package/assets/esri/core/workers/chunks/{13d1cb50232ae761425b.js → eaeb95be8d4032513247.js} +2 -2
  80. package/assets/esri/core/workers/chunks/{93515f52d9b5fa12bd04.js → eb4934d3a3b82316c7c6.js} +1 -1
  81. package/assets/esri/core/workers/chunks/{bfeab15d7ac9a2559fe5.js → f1c1f7583fa13dff9b5c.js} +1 -1
  82. package/assets/esri/core/workers/chunks/f27bbb4e26297d3c68de.js +1 -0
  83. package/assets/esri/core/workers/chunks/f4480636a910eaa4c531.js +1 -0
  84. package/assets/esri/core/workers/chunks/{5b991b0d4ca257291cb0.js → f5c5a9e771074f780fc8.js} +1 -1
  85. package/assets/esri/core/workers/chunks/f82a95c46f0d579d5bf5.js +1 -0
  86. package/assets/esri/core/workers/chunks/fb3a42cdd0d3105ec551.js +1 -0
  87. package/config.js +1 -1
  88. package/core/MultiOriginJSONSupport.d.ts +1 -1
  89. package/core/ReadOnlyMultiOriginJSONSupport.d.ts +5 -4
  90. package/geometry/FlatGeometry.js +1 -1
  91. package/kernel.js +1 -1
  92. package/layers/FeatureLayer.d.ts +7 -9
  93. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  94. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  95. package/layers/graphics/data/QueryEngineResult.js +1 -1
  96. package/layers/raster/datasets/MRFRaster.js +1 -1
  97. package/layers/support/SceneModification.js +1 -1
  98. package/package.json +2 -2
  99. package/renderers/VectorFieldRenderer.js +1 -1
  100. package/support/revision.js +1 -1
  101. package/symbols/cim/SDFHelper.js +1 -1
  102. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  103. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementError.d.ts +1 -0
  104. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementResult.d.ts +1 -0
  105. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.d.ts +1 -0
  106. package/views/3d/layers/Lyr3DWorker.js +1 -1
  107. package/views/3d/layers/SceneLayerWorkerHandle.js +1 -1
  108. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  109. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  110. package/views/3d/layers/graphics/polygonUtils.js +1 -1
  111. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorTechnique.js +1 -1
  112. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  113. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  114. package/views/SelectionManager.d.ts +9 -9
  115. package/views/SelectionManager.js +1 -1
  116. package/views/layers/FeatureLikeLayerView.d.ts +24 -24
  117. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  118. package/widgets/Editor/workflowUtils.js +1 -1
  119. package/widgets/FeatureTemplates.d.ts +1 -1
  120. package/widgets/FeatureTemplates.js +1 -1
  121. package/widgets/Sketch/support/sketchUtils.js +1 -1
  122. package/assets/esri/core/workers/chunks/026c00ee272c64e53daf.js +0 -1
  123. package/assets/esri/core/workers/chunks/0883c4e63424d6746ada.js +0 -1
  124. package/assets/esri/core/workers/chunks/0987cb20148f65222b44.js +0 -1
  125. package/assets/esri/core/workers/chunks/0a1f88cf16bcbb53b371.js +0 -1
  126. package/assets/esri/core/workers/chunks/0ca405ca26676137a4be.js +0 -1
  127. package/assets/esri/core/workers/chunks/0ce968c89c35535da63e.js +0 -1
  128. package/assets/esri/core/workers/chunks/144c719d5ba9e3a30961.js +0 -1
  129. package/assets/esri/core/workers/chunks/1503ca177e2466ec0e87.js +0 -1
  130. package/assets/esri/core/workers/chunks/1597d7b380d510ff5252.js +0 -1
  131. package/assets/esri/core/workers/chunks/1880c3b293cdfa804625.js +0 -1
  132. package/assets/esri/core/workers/chunks/1bea32b02d35ddb9b118.js +0 -1
  133. package/assets/esri/core/workers/chunks/1d78ec98eef7fef08f86.js +0 -1
  134. package/assets/esri/core/workers/chunks/1e6271524602e159dbad.js +0 -1
  135. package/assets/esri/core/workers/chunks/1f96d597ba736e088168.js +0 -1
  136. package/assets/esri/core/workers/chunks/26e41b08efe77d247409.js +0 -1
  137. package/assets/esri/core/workers/chunks/297b58f29c496923e1f3.js +0 -1
  138. package/assets/esri/core/workers/chunks/2a2a9fa62969644ea200.js +0 -1
  139. package/assets/esri/core/workers/chunks/2b296378d21e4e3c11d4.js +0 -1
  140. package/assets/esri/core/workers/chunks/2cbcf34cf896a438999b.js +0 -1
  141. package/assets/esri/core/workers/chunks/394b645d51e7bf799382.js +0 -1
  142. package/assets/esri/core/workers/chunks/50ab9a3f8bbb268fae59.js +0 -1
  143. package/assets/esri/core/workers/chunks/5b2dd164dd84fd1ca4f7.js +0 -1
  144. package/assets/esri/core/workers/chunks/62c228ca16fdc7a2c695.js +0 -1
  145. package/assets/esri/core/workers/chunks/639202a461b17840a13f.js +0 -1
  146. package/assets/esri/core/workers/chunks/693d269637135047a0c4.js +0 -1
  147. package/assets/esri/core/workers/chunks/6a14ec2d2de6778a4e7a.js +0 -1
  148. package/assets/esri/core/workers/chunks/6d3467997b5d01630b08.js +0 -1
  149. package/assets/esri/core/workers/chunks/6dfcb0c804e63e87e311.js +0 -1
  150. package/assets/esri/core/workers/chunks/778ab9e4c3928b0d7d74.js +0 -1
  151. package/assets/esri/core/workers/chunks/8012fdc49a7a10982f78.js +0 -1
  152. package/assets/esri/core/workers/chunks/85e0fd618625a639387f.js +0 -1
  153. package/assets/esri/core/workers/chunks/86465d4bb185d7460087.js +0 -1
  154. package/assets/esri/core/workers/chunks/87e7378b242debbfd575.js +0 -1
  155. package/assets/esri/core/workers/chunks/90b19e60c056f32623e7.js +0 -1
  156. package/assets/esri/core/workers/chunks/9461f7225c42cf15a114.js +0 -1
  157. package/assets/esri/core/workers/chunks/978649cb6df99ee728be.js +0 -1
  158. package/assets/esri/core/workers/chunks/9f5f4da954228d876219.js +0 -1
  159. package/assets/esri/core/workers/chunks/a2323c957c8b2fe225b4.js +0 -1
  160. package/assets/esri/core/workers/chunks/a36a33f43610c3cd985b.js +0 -1
  161. package/assets/esri/core/workers/chunks/a381932eef77f4d80292.js +0 -1
  162. package/assets/esri/core/workers/chunks/b089947c9a492c96ca27.js +0 -1
  163. package/assets/esri/core/workers/chunks/b6e4c35b76379088035c.js +0 -1
  164. package/assets/esri/core/workers/chunks/b96dce64bdd7487e862a.js +0 -1
  165. package/assets/esri/core/workers/chunks/c4a78ab84186c7be599a.js +0 -1
  166. package/assets/esri/core/workers/chunks/c9d600dc6b6b5aafff1c.js +0 -1
  167. package/assets/esri/core/workers/chunks/ca33847a997ccfe8ddc2.js +0 -1
  168. package/assets/esri/core/workers/chunks/cca19c9564be2d02a277.js +0 -1
  169. package/assets/esri/core/workers/chunks/ccc2f2b3db008d8a495f.js +0 -1
  170. package/assets/esri/core/workers/chunks/d9f900975ac915a0f24f.js +0 -1
  171. package/assets/esri/core/workers/chunks/dd5d66f067e2386e0514.js +0 -1
  172. package/assets/esri/core/workers/chunks/eb4ffb72c9360062141c.js +0 -1
  173. package/assets/esri/core/workers/chunks/ebae903845643d60b44a.js +0 -1
  174. package/assets/esri/core/workers/chunks/ebb0372e8da0f75c09dd.js +0 -1
  175. package/assets/esri/core/workers/chunks/f349f64f683620bdf9b5.js +0 -30
  176. package/assets/esri/core/workers/chunks/f6fb87092bdf6bbf0769.js +0 -1
  177. package/assets/esri/core/workers/chunks/f76c2b09e6ba9d107898.js +0 -1
  178. package/assets/esri/core/workers/chunks/fcf962f3dec6b5440983.js +0 -1
  179. /package/assets/esri/core/workers/chunks/{43c8b1473695574c663e.js.LICENSE.txt → 4754610760f3f634adf9.js.LICENSE.txt} +0 -0
  180. /package/assets/esri/core/workers/chunks/{3861644c06cfebe8f40c.js.LICENSE.txt → 527547fa10d52cb3a7b1.js.LICENSE.txt} +0 -0
  181. /package/assets/esri/core/workers/chunks/{b586f1021a27c5e1551a.js.LICENSE.txt → 7189e03cc24f5c10865a.js.LICENSE.txt} +0 -0
  182. /package/assets/esri/core/workers/chunks/{3f812b0a28afb47aaaf0.js.LICENSE.txt → a35d1be700ebd3109397.js.LICENSE.txt} +0 -0
  183. /package/assets/esri/core/workers/chunks/{13d1cb50232ae761425b.js.LICENSE.txt → eaeb95be8d4032513247.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[671],{35522(t,e,n){n.d(e,{$A:()=>w,Bw:()=>o,C:()=>s,Cc:()=>R,DI:()=>_,Il:()=>D,Io:()=>M,Ln:()=>y,Om:()=>S,Qr:()=>h,Re:()=>u,S8:()=>v,T9:()=>m,WQ:()=>l,Z0:()=>I,_S:()=>d,aI:()=>U,ei:()=>E,gL:()=>C,hG:()=>A,hZ:()=>a,hs:()=>g,jb:()=>P,jk:()=>p,lo:()=>z,lw:()=>c,m3:()=>b,oW:()=>L,t2:()=>k,tn:()=>f,uE:()=>O,xg:()=>Z,ze:()=>x});var r=n(51850),i=n(34304);function o(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function c(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function h(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function f(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function d(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function p(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function m(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function g(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function y(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function M(t,e){const n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}function A(t,e){const n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function b(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function x(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function _(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function v(t,e){const n=e[0],r=e[1],i=e[2];let o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t}function S(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function w(t,e,n){const r=e[0],i=e[1],o=e[2],s=n[0],a=n[1],l=n[2];return t[0]=i*l-o*a,t[1]=o*s-r*l,t[2]=r*a-i*s,t}function R(t,e,n,r){const i=e[0],o=e[1],s=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=s+r*(n[2]-s),t}function I(t,e,n){const r=e[0],i=e[1],o=e[2];return t[0]=n[0]*r+n[4]*i+n[8]*o+n[12],t[1]=n[1]*r+n[5]*i+n[9]*o+n[13],t[2]=n[2]*r+n[6]*i+n[10]*o+n[14],t}function E(t,e,n){const r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}function C(t,e,n){const r=n[0],i=n[1],o=n[2],s=n[3],a=e[0],l=e[1],u=e[2],c=i*u-o*l,h=o*a-r*u,f=r*l-i*a,d=i*f-o*h,p=o*c-r*f,m=r*h-i*c,g=2*s;return t[0]=a+c*g+2*d,t[1]=l+h*g+2*p,t[2]=u+f*g+2*m,t}const T=(0,r.vt)(),j=(0,r.vt)();function k(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function U(t,e){if(t===e)return!0;const n=t[0],r=t[1],o=t[2],s=e[0],a=e[1],l=e[2],u=(0,i.FD)();return Math.abs(n-s)<=u*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(o-l)<=u*Math.max(1,Math.abs(o),Math.abs(l))}function L(t,e,n){const r=n[0]-e[0],i=n[1]-e[1],o=n[2]-e[2];let s=r*r+i*i+o*o;return s>0?(s=1/Math.sqrt(s),t[0]=r*s,t[1]=i*s,t[2]=o*s,t):(t[0]=0,t[1]=0,t[2]=0,t)}const P=u,W=c,q=h,Z=M,z=A,D=o,O=b;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:l,angle:function(t,e){v(T,t),v(j,e);const n=S(T,j);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,r,i,o){const s=1-o,a=s*s,l=o*o,u=a*s,c=3*o*a,h=3*l*s,f=l*o;return t[0]=e[0]*u+n[0]*c+r[0]*h+i[0]*f,t[1]=e[1]*u+n[1]*c+r[1]*h+i[1]*f,t[2]=e[2]*u+n[2]*c+r[2]*h+i[2]*f,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:s,cross:w,crossAndNormalize:function(t,e,n){const r=e[0],i=e[1],o=e[2],s=n[0],a=n[1],l=n[2],u=i*l-o*a,c=o*s-r*l,h=r*a-i*s,f=Math.sqrt(u*u+c*c+h*h);return t[0]=u/f,t[1]=c/f,t[2]=h/f,t},direction:L,dist:Z,distance:M,div:q,divide:h,dot:S,equals:U,exactEquals:k,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,i,o){const s=o*o,a=s*(2*o-3)+1,l=s*(o-2)+o,u=s*(o-1),c=s*(3-2*o);return t[0]=e[0]*a+n[0]*l+r[0]*u+i[0]*c,t[1]=e[1]*a+n[1]*l+r[1]*u+i[1]*c,t[2]=e[2]*a+n[2]*l+r[2]*u+i[2]*c,t},inverse:_,len:D,length:o,lerp:R,max:m,min:p,mul:W,multiply:c,negate:x,normalize:v,random:function(t,e=1){const n=i.Ov,r=2*n()*Math.PI,o=2*n()-1,s=Math.sqrt(1-o*o)*e;return t[0]=Math.cos(r)*s,t[1]=Math.sin(r)*s,t[2]=o*e,t},rotateX:function(t,e,n,r){const i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateY:function(t,e,n,r){const i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateZ:function(t,e,n,r){const i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:g,scaleAndAdd:y,set:a,sign:d,sqrDist:z,sqrLen:O,squaredDistance:A,squaredLength:b,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:P,subtract:u,transformMat3:E,transformMat4:I,transformQuat:C},Symbol.toStringTag,{value:"Module"}))},56512(t,e,n){function r(t){let e,n,r=[],i=!1;return function(...o){return i&&e===this&&function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(t[n]!==e[n])return!1;return!0}(o,r)||(n=t.apply(this,o),e=this,r=o,i=!0),n}}n.d(e,{B:()=>r})},76553(t,e,n){function r(t){return t&&"getAtOrigin"in t&&"originOf"in t}n.d(e,{H:()=>r})},13069(t,e,n){n.d(e,{AG:()=>a,lk:()=>i,vD:()=>s,yS:()=>o});const r="randomUUID"in crypto;function i(){if(r)return crypto.randomUUID();const t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const e=e=>t[e].toString(16).padStart(4,"0");return e(0)+e(1)+"-"+e(2)+"-"+e(3)+"-"+e(4)+"-"+e(5)+e(6)+e(7)}function o(){return`{${i().toUpperCase()}}`}function s(){return`{${i()}}`}function a(t){const e=t.toUpperCase();return t.startsWith("{")?e:`{${e}}`}},65806(t,e,n){n.d(e,{g:()=>s});var r=n(51850),i=n(91218),o=n(9762);function s(t,e,n,r){if((0,i.canProjectWithoutEngine)(t.spatialReference,n))return a[0]=t.x,a[1]=t.y,a[2]=t.z??0,(0,o.projectBuffer)(a,t.spatialReference,0,e,n,0);const s=(0,i.tryProject)(t,n,r);return!!s&&(e[0]=s.x,e[1]=s.y,e[2]=s.z??0,!0)}const a=(0,r.vt)()},27993(t,e,n){n.d(e,{F:()=>a});var r=n(91218),i=n(16930),o=n(9762),s=n(65806);function a(t,e,n,i){return!(null==e||null==i||t.length<2)&&((0,r.canProjectWithoutEngine)(e,i)?(0,o.projectBuffer)(t,e,0,n,i,0,1):(l.x=t[0],l.y=t[1],l.z=t[2],l.spatialReference=e,(0,s.g)(l,n,i)))}const l={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:i.A.WGS84,type:"point"}},61528(t,e,n){n.r(e),n.d(e,{default:()=>U});var r=n(5482),i=n(11254),o=n(49186),s=n(44208),a=n(53966),l=n(25728),u=n(74887),c=n(36708),h=n(91429),f=n(87024),d=n(5443),p=n(16930),m=n(4146),g=n(52136),y=n(18768),M=n(69208),A=n(16131),b=n(8303),x=n(25036),_=n(10873),v=n(58325),S=n(88546),w=n(20655),R=n(24212),I=n(97159),E=n(16215),C=n(72772),T=n(98697),j=n(36005);let k=class extends((0,y.b)((0,A.q)((0,b.A)((0,x.j)((0,l.M)((0,M.d)((0,g.p)(m.A)))))))){readModifications(t,e,n){this._modificationsSource={url:(0,I.f)(t,n),context:n}}initialize(){this.addHandles((0,c.on)(()=>this.modifications,"after-changes",()=>this.modifications=this.modifications,c.OH))}constructor(t){super(t),this.operationalLayerType="IntegratedMesh3DTilesLayer",this.modifications=null,this._modificationsSource=null,this.spatialReference=S.Zx,this.fullExtent=S.zq,this.url=null,this.type="integrated-mesh-3dtiles",this.path=null,this.minScale=0,this.maxScale=0,this._rootTilesetJSON=null,this._rootTileset=null,this._key=null,this._session=null,this._rootRequestPromise=null,this.queryElevationCallback=null}set elevationInfo(t){null!=t&&"absolute-height"!==t.mode||this._set("elevationInfo",t),this._validateElevationInfo(t)}async load(t){return this.addResolvingPromise(this._doLoad(t)),this}get rootTilesetJSON(){return this._rootTilesetJSON}get rootTileset(){return this._rootTileset}get key(){return this._key}get session(){return this._session}_findSessionParameter(t){const e=[t];for(;e?.length>0;){const t=e.pop();if(!t)return;for(const[n,r]of Object.entries(t)){if("uri"===n)try{const t=new URL("https://tmp"+r).searchParams.get("session");if(t)return t}catch(t){}"object"==typeof r&&null!==r&&e.push(r)}}return null}async requestRootAndSession(t){const e=(t,e)=>new o.A("3dtiles-init:"+t,e);return this._rootRequestPromise||(this._rootRequestPromise=new Promise((n,r)=>{this.url||r(e("url-missing","Layer url missing")),this._key=this.customParameters?this.customParameters.key:null,new Promise((t,n)=>{if(this.replacesTerrain&&!this._key){const r=this.portalItem?.portal||this.parent?.portalItem?.portal||w.A.getDefault();r.signIn().then(()=>{r.g3dTilesEnabled?(0,i.A)(r.restUrl+"/portals/self/modules/g3dtiles",{responseType:"json",query:{f:"json"}}).then(e=>{this._key=e.data.keyString,t()},()=>n(e("g3dtiles-key-error","Error fetching Google 3D Tiles key from portal"))):n(e("g3dTilesEnabled-false","Google 3D Tiles are not enabled on Portal "+r.url))},()=>n(e("sign-in-failed","Error signing in to Portal")))}else t()}).then(()=>{(0,i.A)(this.url,{query:this._key?{key:this._key,token:this.apiKey}:{token:this.apiKey},responseType:"array-buffer",signal:t}).then(t=>{try{this._rootTilesetJSON=JSON.parse((new TextDecoder).decode(t.data))}catch(t){return void r(e("root-parse-failed","Error parsing root tile, details: "+t))}this._rootTilesetJSON?(this._session=this._findSessionParameter(this._rootTilesetJSON),this._rootTileset=t.data,this.fullExtent=(0,S.uB)(this._rootTilesetJSON),n(),this._rootRequestPromise=null):r(e("root-is-null","Root tile is null."))},t=>{(0,u.QP)(t),r(e("root-load-failed","Error loading root tile")),this._rootRequestPromise=null,a.A.getLogger("IntegratedMesh3DTilesLayer").error("Layer loading failed",t)})},t=>r(t))})),this._rootRequestPromise}async _doLoad(t){const e=null!=t?t.signal:null;if(this.isUsedAsGroundLayer&&!(0,s.A)("enable-feature:basemap-groundlayers"))throw new o.A("3dtiles-init:not-supported-in-groundlayers","Layer is not supported in basemap.");try{await this.loadFromPortal({supportedTypes:["3DTiles Service"],validateItem:t=>{if(t.typeKeywords?.includes("IntegratedMesh"))return!0;throw new o.A("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service containing IntegratedMesh"})}},t)}catch(t){(0,u.QP)(t)}if(null!=this._modificationsSource){const e=await v.A.fromUrl(this._modificationsSource.url,this.spatialReference,t);if(e&&e.length>0){await(0,C.initialize)();try{const t=(0,T.Ir)(null,e.toArray(),this.spatialReference),n=(0,C.switchMeshModificationPolygonVCSSync)({modifications:t,inVCS:115700});n.success&&n.modifications&&(0,T.cm)(n.modifications,e)}catch(t){a.A.getLogger(this).error("convert-mesh-modification-z-error","Error when converting:",t)}null!=this._modificationsSource&&this.setAtOrigin("modifications",e,this._modificationsSource.context.origin),this._modificationsSource=null}}await this.requestRootAndSession(e)}async beforeSave(){if(null==this._modificationsSource){const{modifications:t}=this;return void(t&&t.length>0&&await(0,C.initialize)())}await this.load().then(()=>{},()=>{})}get hasAttributionData(){return!1}_validateElevationInfo(t){const e="Integrated mesh 3d tiles layers";(0,R.XF)(a.A.getLogger(this),(0,R.B)(e,"absolute-height",t)),(0,R.XF)(a.A.getLogger(this),(0,R.tW)(e,t))}get replacesTerrain(){return!!(0,s.A)("enable-feature:basemap-groundlayers")&&this.hasGoogleUrl&&this.isUsedAsGroundLayer}get isUsedAsGroundLayer(){return(0,E.S)(this.parent)}get hasGoogleUrl(){return!!this.url?.match(/.+\.googleapis.com/)}};(0,r.Cg)([(0,h.MZ)({type:["IntegratedMesh3DTilesLayer"]})],k.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,h.MZ)({type:v.A,clonable:t=>t.clone()}),(0,f.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],k.prototype,"modifications",void 0),(0,r.Cg)([(0,j.w)(["web-scene","portal-item"],"modifications")],k.prototype,"readModifications",null),(0,r.Cg)([(0,h.MZ)({type:p.A})],k.prototype,"spatialReference",void 0),(0,r.Cg)([(0,h.MZ)({type:d.A})],k.prototype,"fullExtent",void 0),(0,r.Cg)([(0,h.MZ)(_.Yj)],k.prototype,"elevationInfo",null),(0,r.Cg)([(0,h.MZ)({type:["show","hide"]})],k.prototype,"listMode",void 0),(0,r.Cg)([(0,h.MZ)(_.OZ)],k.prototype,"url",void 0),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],k.prototype,"type",void 0),(0,r.Cg)([(0,h.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],k.prototype,"path",void 0),(0,r.Cg)([(0,h.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],k.prototype,"minScale",void 0),(0,r.Cg)([(0,h.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],k.prototype,"maxScale",void 0),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],k.prototype,"hasAttributionData",null),(0,r.Cg)([(0,h.MZ)()],k.prototype,"replacesTerrain",null),(0,r.Cg)([(0,h.MZ)()],k.prototype,"isUsedAsGroundLayer",null),(0,r.Cg)([(0,h.MZ)()],k.prototype,"hasGoogleUrl",null),k=(0,r.Cg)([(0,h.$K)("esri.layers.IntegratedMesh3DTilesLayer")],k);const U=k},52136(t,e,n){n.d(e,{p:()=>o});var r=n(5482),i=n(91429);const o=t=>{const e=t;let n=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(t){null!=t?this._override("apiKey",t):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,r.Cg)([(0,i.MZ)({type:String})],n.prototype,"apiKey",null),n=(0,r.Cg)([(0,i.$K)("esri.layers.mixins.APIKeyMixin")],n),n}},88546(t,e,n){n.d(e,{Zx:()=>h,_8:()=>g,uB:()=>y,zq:()=>f});var r=n(34727),i=n(35522),o=n(51850),s=n(73941),a=n(5443),l=n(54239),u=n(16930),c=n(9762);const h=new u.A({wkid:4326,vcsWkid:115700}),f=new a.A(-180,-90,180,90,h);function d(t,e){if(!Array.isArray(t)||t.length<e)return!1;for(const e of t)if("number"!=typeof e)return!1;return!0}const p=7645211,m={xmin:-180,ymin:-90,zmin:-450,xmax:180,ymax:90,zmax:8850};function g(t){return!(!(t.extensions?.ESRI_crs?.wkid||t.extensions?.ESRI_crs?.latestWkid||t.extensions?.ESRI_crs?.wkt)||!t.root?.extensions?.ESRI_crs?.boundingVolume?.box&&!t.root?.extensions?.ESRI_crs?.boundingVolume?.sphere)}function y(t,e=!1){let n=new u.A({wkid:4326,vcsWkid:115700}),l=t.root?.boundingVolume,h=!1,f=t?.root?.transform;if(e&&(t.extensions?.ESRI_crs?.wkid||t.extensions?.ESRI_crs?.latestWkid||t.extensions?.ESRI_crs?.wkt)&&(t.root?.extensions?.ESRI_crs?.boundingVolume?.box||t.root?.extensions?.ESRI_crs?.boundingVolume?.sphere))n=new u.A(t.extensions?.ESRI_crs),l=t.root?.extensions?.ESRI_crs?.boundingVolume,f=t.root?.transform,h=!0;else if(!l)return new a.A(-180,-90,180,90,n);if(l.box){const t=l?.box;if(t[3]>p&&t[7]>p&&t[11]>p)return new a.A({...m,spatialReference:n})}const g=(0,o.vt)();if(!h&&l.region&&d(l.region,6)){const t=l.region,e=(0,r.KJ)(t[0]),i=(0,r.KJ)(t[1]),o=t[4],s=(0,r.KJ)(t[2]),u=(0,r.KJ)(t[3]),c=t[5];return new a.A({xmin:e,ymin:i,zmin:o,xmax:s,ymax:u,zmax:c,spatialReference:n})}if(l.sphere&&d(l.sphere,4)){const t=l.sphere,e=(0,o.fA)(t[0],t[1],t[2]),r=t[3]/Math.sqrt(3),p=(0,o.vt)();(0,i.Re)(p,e,(0,o.fA)(r,r,r));const m=(0,o.vt)();if((0,i.WQ)(m,e,(0,o.fA)(r,r,r)),f&&d(f,16)){const t=f;(0,i.Z0)(g,p,t),(0,i.C)(p,g),(0,i.Z0)(g,m,t),(0,i.C)(m,g)}h||((0,c.projectBuffer)(p,s.Ro,0,p,u.A.WGS84,0),(0,c.projectBuffer)(m,s.Ro,0,m,u.A.WGS84,0));const y=(0,o.vt)(),M=(0,o.vt)();return(0,i.jk)(y,p,m),(0,i.T9)(M,p,m),new a.A({xmin:y[0],ymin:y[1],zmin:y[2],xmax:M[0],ymax:M[1],zmax:M[2],spatialReference:n})}if(l.box&&d(l.box,12)){const t=l.box,e=(0,o.fA)(t[0],t[1],t[2]),r=(0,o.fA)(t[3],t[4],t[5]),p=(0,o.fA)(t[6],t[7],t[8]),m=(0,o.fA)(t[9],t[10],t[11]),g=[];for(let t=0;t<8;++t)g.push((0,o.vt)());if((0,i.WQ)(g[0],e,r),(0,i.WQ)(g[0],g[0],p),(0,i.WQ)(g[0],g[0],m),(0,i.jb)(g[1],e,r),(0,i.WQ)(g[1],g[1],p),(0,i.WQ)(g[1],g[1],m),(0,i.WQ)(g[2],e,r),(0,i.jb)(g[2],g[2],p),(0,i.WQ)(g[2],g[2],m),(0,i.jb)(g[3],e,r),(0,i.jb)(g[3],g[3],p),(0,i.WQ)(g[3],g[3],m),(0,i.WQ)(g[4],e,r),(0,i.WQ)(g[4],g[4],p),(0,i.jb)(g[4],g[4],m),(0,i.jb)(g[5],e,r),(0,i.WQ)(g[5],g[5],p),(0,i.jb)(g[5],g[5],m),(0,i.WQ)(g[6],e,r),(0,i.jb)(g[6],g[6],p),(0,i.jb)(g[6],g[6],m),(0,i.jb)(g[7],e,r),(0,i.jb)(g[7],g[7],p),(0,i.jb)(g[7],g[7],m),f&&d(f,16)){const t=f;for(let e=0;e<8;++e)(0,i.Z0)(g[e],g[e],t)}const y=(0,o.fA)(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE),M=(0,o.fA)(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE);for(let t=0;t<8;++t)h||(0,c.projectBuffer)(g[t],s.Ro,0,g[t],u.A.WGS84,0),(0,i.jk)(M,M,g[t]),(0,i.T9)(y,y,g[t]);return new a.A({xmin:M[0],ymin:M[1],zmin:M[2],xmax:y[0],ymax:y[1],zmax:y[2],spatialReference:n})}return new a.A(-180,-90,180,90,n)}new Map([[5773,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM96_Geoid"})],[3855,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM2008_Geoid"})],[115700,new l.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"WGS_1984"})],[115701,new l.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"ETRS_1989"})],[6360,new l.A({heightModel:"gravity-related-height",heightUnit:"us-feet",vertCRS:"NAVD88_height_(ftUS)"})],[7837,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"DHHN2016_(height)"})],[5709,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"NAP"})]])},24212(t,e,n){n.d(e,{$7:()=>a,B:()=>s,XF:()=>u,tW:()=>l,w7:()=>o});var r=n(56512),i=n(86211);function o(t,e){return function(t,e){return e?.mode?e.mode:function(t){return t?c:h}(t).mode}(null==t||(t.hasZ??!1),e)}function s(t,e,n){return n&&n.mode!==e?`${t} only support ${e} elevation mode`:null}function a(t,e,n){return n?.mode===e?`${t} do not support ${e} elevation mode`:null}function l(t,e){return null!=e?.featureExpressionInfo&&"0"!==e.featureExpressionInfo.expression?`${t} do not support featureExpressionInfo`:null}function u(t,e){e&&t.warn(".elevationInfo=",e)}n(16271),(0,r.B)((t,e,n)=>{if(!t)return 0;if("decimal-degrees"===e)return 0;const r="unknown"!==e&&e?e:"meters",o=(0,i.mq)(n);return o?(0,i.oU)(t,r,o):0});const c={mode:"absolute-height",offset:0},h={mode:"on-the-ground",offset:null}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[923,3304,6061,7992,9397],{61691(t,e,r){r.d(e,{G:()=>n});class n{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},85181(t,e,r){r.d(e,{O:()=>s});var n=r(15756);class s extends n.n{getOperatorType(){return 9}execute(t,e,r,s){return(0,n.r)(t,e,r,32,s)}}},76061(t,e,r){r.d(e,{S:()=>s});var n=r(61691);class s extends n.G{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},9093(t,e,r){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}r.d(e,{o8:()=>s,vt:()=>n,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:n,fromValues:function(t,e,r,n,s,i,o,a,h,u,c,l,f,g,m,x){return[t,e,r,n,s,i,o,a,h,u,c,l,f,g,m,x]}},Symbol.toStringTag,{value:"Module"}))},69397(t,e,r){r.d(e,{Qf:()=>h,Qh:()=>o,RS:()=>s,Ul:()=>g,lM:()=>i,qK:()=>c});var n=r(34275);const s=16;function i(t){if(!t)return 0;let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=a(t[r],!1));return e}function o(t){if(!t)return 0;if("number"==typeof t[0])return h(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return u(t,8);let r=l;for(let n=0;n<e;n++)r+=a(t[n]);return r}(t);let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=a(t[r]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?o(t):c;case"string":return function(t){return 32+t.length}(t);case"number":return s;case"boolean":return 4;default:return 8}}function h(...t){return t.reduce((t,e)=>t+(e?(0,n.iu)(e)?e.byteLength+f:Array.isArray(e)?u(e,s):0:0),0)}function u(t,e){return l+t.length*e}const c=32,l=16,f=145,g=64},87992(t,e,r){r.d(e,{JR:()=>O,ME:()=>E,MY:()=>A,NO:()=>C,Nh:()=>_,V2:()=>F,_s:()=>R,e6:()=>Y,gh:()=>I,tr:()=>N,uX:()=>d});var n=r(5482),s=r(69397),i=r(16930),o=(r(70328),r(19419)),a=r(60408),h=r(21325),u=r(513),c=r(50954),l=r(79567),f=r(52006),g=r(49663),m=r(46068),x=r(92722);class d{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:n,vertexZ:s,vertexM:i,partCount:o,partOffsets:a,partFlags:h,segmentFlags:u,segmentIndices:c,segmentParams:l,segmentCountArc:f,segmentCountBezier:g}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=n,this.vertexZ=s,this.vertexM=i,this.partCount=o,this.partOffsets=a,this.partFlags=h,this.segmentFlags=u,this.segmentIndices=c,this.segmentParams=l,this.segmentCountArc=f,this.segmentCountBezier=g}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return null!=this.segmentFlags}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?s.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:r,hasZ:n,hasM:s,segmentCountArc:i,segmentCountBezier:o}=this,a=F(t,e,r,n,s,this.hasCurves(),i,o);a.spatialReference=this.spatialReference;const{vertexXY:h,vertexZ:u,vertexM:c}=this;if(a.vertexXY.set(h.subarray(0,2*e),0),a.vertexZ?.set(u.subarray(0,e),0),a.vertexM?.set(c.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;a.partFlags.set(e.subarray(0,r+1)),a.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:n,segmentParamCount:s}=this;a.segmentFlags.set(t.subarray(0,e),0),a.segmentIndices.set(r.subarray(0,e),0),a.segmentParams.set(n.subarray(0,s),0)}return a}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,h.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new p(this):[][Symbol.iterator]()}}class p{constructor(t){this.geometry=t,this.value=new y(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class y{constructor(t){this.geometry=t,this.index=-1,this._readVertex=b(t),this._segments=new v(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class v{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new M(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class M{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=b(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],n=e[r++],s=e[r++],i=e[r++];return{b:[this.end,[t,n],[s,i]]}}const n=e[r++],s=e[r++],i=e[r++],o=e[r++],a=e[r++],h=e[r++];r++,r++;const u=e[r++],c=e[r++];if(!Boolean(4&n)&&1===i)return{c:[this.end,[u,c]]};const l=2&n?0:1,f=1&n?0:1;return{a:[this.end,[a,h],l,f,o,s,i]}}}function C(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,o.Ie)(),(0,n.mS)(r,new P(t,["vertexZ","vertexM","spatialReference"]),!1),(0,o.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:s,vertexZ:i,vertexM:a}=t,h=S(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(r,new P(t,["vertexZ","vertexM"]),!1);const s=(0,o.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,l.e)(s,t,r),t=(0,f.yP)(r)}const[i,a,u,c]=s;e={xmin:i,ymin:a,xmax:u,ymax:c,spatialReference:h}}catch(t){r.error=t,r.hasError=!0}finally{(0,n.hk)(r)}}else{let t,n,i,o;t=n=1/0,i=o=-1/0;for(let e=0;e<r;++e){const r=s[2*e],a=s[2*e+1];t=Math.min(t,r),i=Math.max(i,r),n=Math.min(n,a),o=Math.max(o,a)}e={xmin:t,ymin:n,xmax:i,ymax:o,spatialReference:h}}if(i){let t=1/0,r=-1/0;for(const e of i)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(a){let t=1/0,r=-1/0;for(const e of a)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,n.hk)(r)}}function E(t){let e,r,n;if((0,a.fT)(t)){n="point";const{x:s,y:i,z:o,m:a}=t,h=[s,i];null!=o&&h.push(o),null!=a&&h.push(a),r=[[h]],e=1}else(0,a.U9)(t)?(n="multipoint",r=[t.points],e=t.points.length):(0,a.Rg)(t)?(n="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(n="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,w(e[0],(0,f.yP)(e.at(-1)))&&--t),t),0));const s=F(n,e,n.includes("point")?0:r.length,(0,a.Pv)(t),(0,a.W0)(t),(0,f.Ed)(t)),{hasZ:i,hasM:o,vertexXY:h,vertexZ:u,vertexM:c}=s;function l(t){h[2*m]=t[0],h[2*m+1]=t[1],i&&(u[m]=t[2]),o&&(c[m]=t[g]),++m}s.spatialReference=t.spatialReference??void 0;const g=s.hasZ?3:2;let m=0;if(!s.isMultipart()){if(!i&&!o){for(const[t,e]of r[0])h[2*m]=t,h[2*m+1]=e,++m;return s}for(const t of r[0])l(t);return s}const x="polygon"===n,{partOffsets:d}=s;let p=0;if(!s.hasCurves()){for(const t of r){if(d[p++]=m,0===t.length)continue;let e=t.length;if(x&&w(t[0],t.at(-1))&&--e,i||o)for(let r=0;r<e;++r)l(t[r]);else for(let r=0;r<e;++r){const[e,n]=t[r];h[2*m]=e,h[2*m+1]=n,++m}}return d[p]=m,s}function y(t){const e=v+t;if(e<=(s.segmentParams?.length??0))return;let r=e*T;r=20*Math.ceil(r/20);const n=s.segmentParams;s.segmentParams=new Float64Array(r),null!=n&&s.segmentParams.set(n)}let v=0;for(const t of r){if(s.partOffsets[p++]=m,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const n=t[e];l(r);const i=m-1;(0,f.wY)(n)?(y(10),++s.segmentCountArc,v=R(r,n,s,i,v),r=n.a[0]):(0,f.DA)(n)?(y(10),++s.segmentCountArc,v=Z(r,n,s,i,v),r=n.a[0]):(0,f.aO)(n)?(y(10),++s.segmentCountArc,v=Y(r,n,s,i,v),r=n.c[0]):(0,f.n1)(n)?(y(4),++s.segmentCountBezier,v=N(0,n,s,i,v),r=n.b[0]):r=n}x&&w(e,r)||l(r)}return s.partOffsets[p]=m,s}function I(t){const e=b(t),{vertexCount:r,partCount:n,hasZ:s,hasM:i}=t,o=S(t);if("point"===t.type){const[e,r]=t.vertexXY,n=t.vertexZ?.[0],s=t.vertexM?.[0];return{x:e,y:r,z:n,m:s,spatialReference:o}}let a=0;if("multipoint"===t.type){const t=[];for(;a<r;)t.push(e(a++));return{points:t,spatialReference:o,hasZ:s,hasM:i}}const h="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let s=0;s<n;++s){const n=t.partOffsets[s+1],i=new Array;for(;a<n;)i.push(e(a++));h&&i.length>0&&i.push(i[0]),r.push(i)}return h?{rings:r,hasZ:s,hasM:i,spatialReference:o}:{paths:r,hasZ:s,hasM:i,spatialReference:o}}const u=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);u.push(t)}return h?{rings:[],curveRings:u,hasZ:s,hasM:i,spatialReference:o}:{paths:[],curvePaths:u,hasZ:s,hasM:i,spatialReference:o}}function _(t,{lengths:e,coords:r,hasZ:n,hasM:s},i){const o=t.includes("point")?0:e.length,a="polygon"===t,h="point"===t?1:e.reduce((t,e)=>t+e,0)-(a?o:0);n??=!1,s??=!1;const u=F(t,h,o,n,s,!1,0,0);if(u.spatialReference=i??void 0,!u.isMultipart()){for(let t=0,e=0;t<h;++t)u.vertexXY[2*t]=r[e++],u.vertexXY[2*t+1]=r[e++],n&&(u.vertexZ[t]=r[e++]),s&&(u.vertexM[t]=r[e++]);return u}const c=2+Number(n)+Number(s);let l=0,f=0;u.partOffsets[0]=0;for(const t of e){const e=u.partOffsets[f],i=e+t-Number(a);u.partOffsets[++f]=i;for(let t=e;t<i;++t)u.vertexXY[2*t]=r[l++],u.vertexXY[2*t+1]=r[l++],n&&(u.vertexZ[t]=r[l++]),s&&(u.vertexM[t]=r[l++]);a&&(l+=c)}return u}function O({type:t,vertexCount:e,vertexXY:r,vertexZ:n,vertexM:s,partCount:i,partOffsets:o,hasZ:a,hasM:h}){const u=new x.A([],[],a,h);i=Math.max(i,1);const c="polygon"===t;let l=0;for(let t=0;t<i;++t){const i=o?.[t+1]??e,f=u.coords.length;for(let t=l;t<i;++t)u.coords.push(r[2*t],r[2*t+1]),a&&u.coords.push(n[t]),h&&u.coords.push(s[t]);if(c){const t=l;u.coords.push(r[2*t],r[2*t+1]),a&&u.coords.push(n[t]),h&&u.coords.push(s[t])}u.lengths.push((u.coords.length-f)/u.stride),l=i}return"point"===t&&(u.lengths.length=0),u}function A(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let n=t.getLatestID();(n<=0||n===r)&&(n=void 0);const s=t.getVCS();if(null==s)return{wkid:r,latestWkid:n,wkt:e};const i=s.isCustomWkid()?0:s.getOldID();if(i<=0)return{wkt:e};let o=t.getLatestVerticalID();return(o<=0||o===i)&&(o=void 0),{wkid:r,wkt:e,latestWkid:n,vcsWkid:i,latestVcsWkid:o}}(t.getSpatialReference()),t=t.getGeometry()),new d({...t.toFlatGeometry(),spatialReference:e})}class P{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function S({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function b({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?n=>[t[2*n],t[2*n+1],e[n],r[n]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function w(t,e){return t.every((t,r)=>t===e[r])}function F(t,e,r,n,s,i,o,a){o??=0,a??=0;const h=new d({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:o,segmentCountBezier:a});let u=2*Float64Array.BYTES_PER_ELEMENT*e;n&&(u+=Float64Array.BYTES_PER_ELEMENT*e),s&&(u+=Float64Array.BYTES_PER_ELEMENT*e),h.isMultipart()&&(u+=(r+1)*Int32Array.BYTES_PER_ELEMENT,u+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(u+=e*Int8Array.BYTES_PER_ELEMENT,u+=e*Int32Array.BYTES_PER_ELEMENT,u+=h.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const c=new ArrayBuffer(u);let l=0;return h.vertexXY=new Float64Array(c,l,2*e),l+=h.vertexXY.byteLength,n&&(h.vertexZ=new Float64Array(c,l,e),l+=h.vertexZ.byteLength),s&&(h.vertexM=new Float64Array(c,l,e),l+=h.vertexM.byteLength),i&&(h.segmentParams=new Float64Array(c,l,h.segmentParamCount),l+=h.segmentParams.byteLength,h.segmentIndices=new Int32Array(c,l,e),h.segmentIndices.fill(X),l+=h.segmentIndices.byteLength),h.isMultipart()&&(h.partOffsets=new Int32Array(c,l,r+1),l+=h.partOffsets.byteLength,h.partFlags=new Int8Array(c,l,r+1),l+=h.partFlags.byteLength,"polygon"===h.type&&h.partFlags.subarray(0,r).fill(1)),i&&(h.segmentFlags=new Int8Array(c,l,e),h.segmentFlags.fill(1),l+=h.segmentFlags.byteLength),h}function R(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,o){r[i]=4,n[i]=o;const[a,[h,u],c,l,f,g,x]=e.a;let d=4;l||(d|=1),c||(d|=2);const p=(0,m.SW)(t,e),[y,v]=(0,m.Uk)(p,.5);return s[o++]=d,s[o++]=g,s[o++]=x,s[o++]=f,s[o++]=h,s[o++]=u,s[o++]=p.u2-p.u1,s[o++]=p.u1,s[o++]=y,s[o++]=v,o}function Z(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,o){r[i]=4,n[i]=o;const a=(0,g.i)(t,e);return V(a,4,...(0,u.mq)(a,.5),s,o)}function Y(t,e,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,o){return r[i]=4,n[i]=o,V((0,c.pM)(t,e),0,...e.c[1],s,o)}function V(t,e,r,n,s,i){const{cx:o,cy:a,thetaStart:h,thetaEnd:u,radius:c}=t;return h>u||(e|=1),Math.abs(u-h)<=Math.PI||(e|=2),s[i++]=e,s[i++]=c,s[i++]=1,s[i++]=0,s[i++]=o,s[i++]=a,s[i++]=u-h,s[i++]=h,s[i++]=r,s[i++]=n,i}function N(t,{b:[e,[r,n],[s,i]]},{segmentFlags:o,segmentIndices:a,segmentParams:h},u,c){return o[u]=2,a[u]=c,h[c++]=r,h[c++]=n,h[c++]=s,h[c++]=i,c}const T=1.61803,X=-1},46178(t,e,r){r.r(e),r.d(e,{execute:()=>o});var n=r(85181),s=r(83299);const i=new n.O;function o(t,e){const r=(0,s.fromGeometry)(t);return i.execute(r.getGeometry(),(0,s.fromGeometryToGXGeometry)(e),r.getSpatialReference(),null)}},4197(t,e,r){r.d(e,{Vj:()=>u,cj:()=>h,jh:()=>i,l5:()=>a,xm:()=>o});var n=r(34275),s=r(9093);function i(t){return t<=n.y9?new Array(t).fill(0):new Float64Array(t)}function o(t){return((0,n.iu)(t)?t.byteLength/8:t.length)<=n.y9?Array.from(t):new Float64Array(t)}function a(t,e,r){return Array.isArray(t)?t.slice(e,e+r):t.subarray(e,e+r)}function h(t){return[...t]}function u(t){const e=(0,s.vt)();for(let r=0;r<16;++r)e[r]=t[r];return e}},70328(t,e,r){r.d(e,{BI:()=>v,DC:()=>l,Ej:()=>g,Ie:()=>p,Jt:()=>y,Ne:()=>m,RF:()=>c,aI:()=>C,fA:()=>o,gE:()=>h,hZ:()=>d,iT:()=>f,is:()=>M,qv:()=>E,vI:()=>x,vY:()=>a,v_:()=>I,vt:()=>i,w1:()=>u});var n=r(5443),s=(r(19419),r(4197));function i(t=I){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,e,r,n,s,o,a=i()){return a[0]=t,a[1]=e,a[2]=r,a[3]=n,a[4]=s,a[5]=o,a}function a(t,e=i()){return function(t,e,r,n=i()){return d(n,E),function(t,e,r=0,n=e.length/3){let s=t[0],i=t[1],o=t[2],a=t[3],h=t[4],u=t[5];for(let t=0;t<n;t++)s=Math.min(s,e[r+3*t]),i=Math.min(i,e[r+3*t+1]),o=Math.min(o,e[r+3*t+2]),a=Math.max(a,e[r+3*t]),h=Math.max(h,e[r+3*t+1]),u=Math.max(u,e[r+3*t+2]);t[0]=s,t[1]=i,t[2]=o,t[3]=a,t[4]=h,t[5]=u}(n,t,e,r),n}(t,0,t.length/3,e)}function h(t,e=(0,s.jh)(24)){const[r,n,i,o,a,h]=t;return e[0]=r,e[1]=n,e[2]=i,e[3]=r,e[4]=n,e[5]=h,e[6]=r,e[7]=a,e[8]=i,e[9]=r,e[10]=a,e[11]=h,e[12]=o,e[13]=n,e[14]=i,e[15]=o,e[16]=n,e[17]=h,e[18]=o,e[19]=a,e[20]=i,e[21]=o,e[22]=a,e[23]=h,e}function u(t,e){const r=isFinite(t[2])||isFinite(t[5]);return new n.A(r?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function c(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function g(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function m(t,e,r=t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r!==t&&(r[3]=t[3],r[4]=t[4],r[5]=t[5]),r}function x(t,e,r=t){return r[3]=e[0],r[4]=e[1],r[5]=e[2],r!==t&&(r[0]=t[0],r[1]=t[1],r[2]=t[2]),t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function p(t){return t?d(t,E):i(E)}function y(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function v(t,e,r,n,s){return t[0]=e,t[1]=r,t[2]=Number.NEGATIVE_INFINITY,t[3]=n,t[4]=s,t[5]=Number.POSITIVE_INFINITY,t}function M(t){return 6===t.length}function C(t,e,r){if(null==t||null==e)return t===e;if(!M(t)||!M(e))return!1;if(r){for(let n=0;n<t.length;n++)if(!r(t[n],e[n]))return!1}else for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}const E=[1/0,1/0,1/0,-1/0,-1/0,-1/0],I=[0,0,0,0,0,0];i()},92722(t,e,r){r.d(e,{A:()=>s});var n=r(69397);class s{constructor(t=[],e=[],r=!1,n=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=n}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:n}){return new s(t,e,r||!1,n||!1)}static fromRect([t,e,r,n]){const i=r-t,o=n-e;return new s([5],[t,e,i,0,0,o,-i,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,n.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const r of this.lengths){if(r<3)continue;const{stride:n}=this;let s=this.coords[n*e],i=this.coords[n*e+1];for(let o=1;o<r;o+=1){const r=n*(e+o),a=this.coords[r],h=this.coords[r+1];t+=-.5*(a-s)*(h+i),s=a,i=h}e+=r}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:r}=this;for(const n of this.lengths){for(let s=0;s<n;s++){const n=r*(e+s);t(this.coords[n],this.coords[n+1])}e+=n}}deltaDecode(){const t=this.clone(),{coords:e,lengths:r}=t;let n=0;const{stride:s}=this;for(const t of r){for(let r=1;r<t;r++){const t=s*(n+r);e[t]+=e[t-s],e[t+1]+=e[t+1-s]}n+=t}return t}clone(t){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:r,size:n}=this,i=this.coords.slice(0,n*r);return t?(t.set(i),new s(e,t)):new s(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const r=new Array(e*t);for(let e=0,n=0;e<r.length;e+=t)r[n++]=this.coords[e],r[n++]=this.coords[e+1];return new s(this.lengths,r,!1,!1)}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[926,1695],{99719(e,t,r){r.d(t,{x:()=>n});class n{}},92400(e,t,r){r.d(t,{CU:()=>l,UQ:()=>o,fF:()=>i,o6:()=>s});var n=r(74887);class i{constructor(){}}function s(e,t,r){if(e instanceof i&&!(e instanceof l)){const n=new l;return n.fn=e,n.parameterEvaluator=r,n.context=t,n}return e}class o extends i{constructor(e){super(),this.fn=e}createFunction(e){return(...t)=>this.fn(e,{preparsed:!0,arguments:t})}call(e,t){return this.fn(e,t)}marshalledCall(e,t,r,o){return o(e,t,(t,a,u)=>{u=u.map(t=>t instanceof i&&!(t instanceof l)?s(t,e,o):t);const c=this.call(r,{args:u});return(0,n.$X)(c)?c.then(e=>s(e,r,o)):c})}}class l extends i{constructor(){super(...arguments),this.fn=null,this.context=null}createFunction(e){return this.fn.createFunction(this.context)}call(e,t){return this.fn.marshalledCall(e,t,this.context,this.parameterEvaluator)}marshalledCall(e,t,r){return this.fn.marshalledCall(e,t,this.context,this.parameterEvaluator)}}},93818(e,t,r){r.d(t,{A:()=>n});class n{constructor(e=[]){this._elements=e}length(){return this._elements.length}get(e){return this._elements[e]}toArray(){return this.slice()}slice(e=0,t=this.length()){const r=[];for(let n=e;n<t;n++)r.push(this.get(n));return r}}},7335(e,t,r){r.d(t,{A:()=>s});var n=r(93818),i=r(7320);class s extends n.A{constructor(e,t,r,n,i){super(e),this._lazyPath=[],this._hasZ=!1,this._hasM=!1,this._hasZ=r,this._hasM=n,this._spRef=t,this._cacheId=i}get(e){if(void 0===this._lazyPath[e]){const t=this._elements[e];if(void 0===t)return;this._lazyPath[e]=new i.A(t,this._spRef,this._hasZ,this._hasM,this._cacheId,e)}return this._lazyPath[e]}equalityTest(e){return e===this||null!==e&&e instanceof s!=0&&e.getUniqueHash()===this.getUniqueHash()}getUniqueHash(){return this._cacheId.toString()}}},7320(e,t,r){r.d(t,{A:()=>s});var n=r(93818),i=r(86738);class s extends n.A{constructor(e,t,r,n,i,s){super(e),this._lazyPt=[],this._hasZ=!1,this._hasM=!1,this._spRef=t,this._hasZ=r,this._hasM=n,this._cacheId=i,this._partId=s}get(e){if(void 0===this._lazyPt[e]){const t=this._elements[e];if(void 0===t)return;const r=new i.A(t[0],t[1],this._spRef);this._hasZ&&(r.z=t[2]),this._hasM&&(r.m=this._hasZ?t[3]:t[2]),r.cache._arcadeCacheId=this._cacheId.toString()+"-"+this._partId.toString()+"-"+e.toString(),this._lazyPt[e]=r}return this._lazyPt[e]}equalityTest(e){return e===this||null!==e&&e instanceof s!=0&&e.getUniqueHash()===this.getUniqueHash()}getUniqueHash(){return this._cacheId.toString()+"-"+this._partId.toString()}}},6800(e,t,r){r.d(t,{G:()=>a,y:()=>o});var n=r(99719),i=r(78878),s=r(54218);function o(e){l=e}let l;function a(e){return null===e?null:(0,i.e)(e)?e.clone():(0,i.d)(e)?e:(0,i.h)(e)?e.clone():(0,i.j)(e)?e.toArray().map(e=>a(e)):(0,s.cy)(e)?e.map(e=>a(e)):(0,i.k)(e)?l.createFromArcadeFeature(e):(0,i.l)(e)||(0,i.m)(e)?e:(0,i.n)(e)||"esri.arcade.Attachment"===e?.declaredClass?e.deepClone():("esri.arcade.Portal"===e?.declaredClass||(0,i.o)(e)||e instanceof n.x||(0,i.i)(e),e)}},33325(e,t,r){r.d(t,{$P:()=>c,At:()=>v,JB:()=>S,Lk:()=>p,Qi:()=>C,eB:()=>b,eg:()=>y,f0:()=>h,gO:()=>f,ik:()=>m,ke:()=>a,nE:()=>u,rX:()=>d,yT:()=>g});var n=r(66131),i=r(44729),s=r(15032),o=r(20437),l=r(92647);function a(e){return o.A.fromJSON(e.toJSON())}function u(e){return e.toJSON?e.toJSON():e}function c(e){return e instanceof Date}function p(e){return e instanceof l.c9}function d(e){return e instanceof n.lY}function h(e){return e instanceof i.n}function y(e){return e instanceof s.k}const f=1e3,m={point:"point",polygon:"polygon",polyline:"polyline",multipoint:"multipoint",extent:"extent",esriGeometryPoint:"point",esriGeometryPolygon:"polygon",esriGeometryPolyline:"polyline",esriGeometryMultipoint:"multipoint",esriGeometryEnvelope:"extent",envelope:"extent"},g={point:"esriGeometryPoint",polygon:"esriGeometryPolygon",polyline:"esriGeometryPolyline",multipoint:"esriGeometryMultipoint",extent:"esriGeometryEnvelope",esriGeometryPoint:"esriGeometryPoint",esriGeometryPolygon:"esriGeometryPolygon",esriGeometryPolyline:"esriGeometryPolyline",esriGeometryMultipoint:"esriGeometryMultipoint",esriGeometryEnvelope:"esriGeometryEnvelope",envelope:"esriGeometryEnvelope"},v={"small-integer":"esriFieldTypeSmallInteger",integer:"esriFieldTypeInteger",long:"esriFieldTypeLong",single:"esriFieldTypeSingle",double:"esriFieldTypeDouble",string:"esriFieldTypeString",date:"esriFieldTypeDate","date-only":"esriFieldTypeDateOnly","time-only":"esriFieldTypeTimeOnly","timestamp-offset":"esriFieldTypeTimestampOffset",oid:"esriFieldTypeOID",geometry:"esriFieldTypeGeometry",blob:"esriFieldTypeBlob",raster:"esriFieldTypeRaster",guid:"esriFieldTypeGUID","global-id":"esriFieldTypeGlobalID",xml:"esriFieldTypeXML","big-integer":"esriFieldTypeBigInteger",esriFieldTypeSmallInteger:"esriFieldTypeSmallInteger",esriFieldTypeInteger:"esriFieldTypeInteger",esriFieldTypeLong:"esriFieldTypeLong",esriFieldTypeSingle:"esriFieldTypeSingle",esriFieldTypeDouble:"esriFieldTypeDouble",esriFieldTypeString:"esriFieldTypeString",esriFieldTypeDate:"esriFieldTypeDate",esriFieldTypeDateOnly:"esriFieldTypeDateOnly",esriFieldTypeTimeOnly:"esriFieldTypeTimeOnly",esriFieldTypeTimestampOffset:"esriFieldTypeTimestampOffset",esriFieldTypeOID:"esriFieldTypeOID",esriFieldTypeGeometry:"esriFieldTypeGeometry",esriFieldTypeBlob:"esriFieldTypeBlob",esriFieldTypeRaster:"esriFieldTypeRaster",esriFieldTypeGUID:"esriFieldTypeGUID",esriFieldTypeGlobalID:"esriFieldTypeGlobalID",esriFieldTypeXML:"esriFieldTypeXML",esriFieldTypeBigInteger:"esriFieldTypeBigInteger"};function C(e){return void 0===e?"":e=(e=(e=e.replace(/\/featureserver\/[0-9]*/i,"/FeatureServer")).replace(/\/mapserver\/[0-9]*/i,"/MapServer")).split("?")[0]}function S(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const r="boolean"==typeof t.cycles&&t.cycles,n=t.cmp&&(i=t.cmp,function(e){return function(t,r){const n={key:t,value:e[t]},s={key:r,value:e[r]};return i(n,s)}});var i;const s=[];return function e(t){if(t?.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===t)return;if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);let i,o;if(Array.isArray(t)){for(o="[",i=0;i<t.length;i++)i&&(o+=","),o+=e(t[i])||"null";return o+"]"}if(null===t)return"null";if(s.includes(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const l=s.push(t)-1,a=Object.keys(t).sort(n?.(t));for(o="",i=0;i<a.length;i++){const r=a[i],n=e(t[r]);n&&(o&&(o+=","),o+=JSON.stringify(r)+":"+n)}return s.splice(l,1),"{"+o+"}"}(e)}function b(e){switch(e.type){case"catalog-footprint":case"catalog":case"csv":case"feature":case"geojson":case"knowledge-graph-sublayer":case"oriented-imagery":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}},78878(e,t,r){r.d(t,{$:()=>G,A:()=>x,B:()=>te,C:()=>Te,D:()=>ve,E:()=>we,F:()=>Ne,G:()=>Pe,H:()=>ge,I:()=>_,J:()=>E,K:()=>je,L:()=>re,M:()=>J,N:()=>_e,O:()=>R,P:()=>me,Q:()=>oe,R:()=>P,S:()=>ne,T:()=>Re,U:()=>Be,V:()=>ke,W:()=>Qe,X:()=>Ue,Y:()=>Ce,Z:()=>j,_:()=>Q,a:()=>Ge,a0:()=>Le,a1:()=>de,a2:()=>Ee,a3:()=>De,a4:()=>Me,a5:()=>Se,a6:()=>be,b:()=>Je,c:()=>ce,d:()=>q,e:()=>Y,f:()=>W,g:()=>X,h:()=>k,i:()=>I,j:()=>H,k:()=>B,l:()=>V,m:()=>L,n:()=>$,o:()=>z,p:()=>Ke,q:()=>U,r:()=>fe,s:()=>pe,t:()=>he,u:()=>ae,v:()=>F,w:()=>ue,x:()=>xe,y:()=>K,z:()=>D});var n=r(92602),i=r(70333),s=r(66131),o=r(99719),l=r(85935),a=r(92400),u=r(93818),c=r(7335),p=r(7320),d=r(33325),h=r(14607),y=r(44729),f=r(15032),m=r(5443),g=r(91075),v=r(48526),C=r(86738),S=r(39829),b=r(82799),M=r(16930),Z=r(95108),A=r(65864),T=r(73444),O=r(54218),w=r(92647),N=r(94128);class P{constructor(e){this.value=e}}class _{constructor(e){this.value=e}}const F={type:"VOID"},D=Symbol("BREAK"),x=Symbol("CONTINUE");function G(e,t,r){return""===t||null==t||t===r||t===r?e:e=e.split(t).join(r)}function I(e){return e instanceof a.fF}function J(e){return e instanceof o.x}function q(e){return!!((0,O.Kg)(e)||(0,O.Et)(e)||Y(e)||W(e)||X(e)||(0,O.Lm)(e)||null===e||e===F)}function E(e,t){return void 0===e?t:e}function R(e){return null==e?"":(0,O.cy)(e)||H(e)?"Array":Y(e)?"Date":X(e)?"Time":W(e)?"DateOnly":(0,O.Kg)(e)?"String":(0,O.Lm)(e)?"Boolean":(0,O.Et)(e)?"Number":"esri.arcade.Attachment"===e?.declaredClass?"Attachment":"esri.arcade.Portal"===e?.declaredClass?"Portal":"esri.arcade.Dictionary"===e?.declaredClass?"Dictionary":z(e)?"KnowledgeGraph":e instanceof o.x?"Module":B(e)?"Feature":e instanceof C.A?"Point":e instanceof S.A?"Polygon":e instanceof b.A?"Polyline":e instanceof v.A?"Multipoint":e instanceof m.A?"Extent":I(e)?"Function":L(e)?"FeatureSet":V(e)?"FeatureSetCollection":j(e)?"Voxel":Q(e)?"Pixel":e===F?"":"number"==typeof e&&isNaN(e)?"Number":"Unrecognized Type"}function U(e){return e===F}function k(e){return e instanceof g.A}function B(e){return"esri.arcade.Feature"===e?.arcadeDeclaredClass}function j(e){return"esri.arcade.Voxel"===e?.arcadeDeclaredClass}function Q(e){return"esri.arcade.Pixel"===e?.arcadeDeclaredClass}function L(e){return"esri.arcade.featureset.support.FeatureSet"===e?.declaredRootClass}function $(e){return"esri.arcade.Dictionary"===e?.declaredClass}function K(e){return $(e)||B(e)||j(e)||Q(e)}function V(e){return"esri.arcade.featureSetCollection"===e?.declaredRootClass}function z(e){return"esri.rest.knowledgeGraph.KnowledgeGraph"===e?.declaredClass}function H(e){return e instanceof u.A}function Y(e){return e instanceof s.lY}function W(e){return e instanceof y.n}function X(e){return e instanceof f.k}function ee(e){return null!=e&&"object"==typeof e}function te(e,t,r,n,i){if(e.length<t||e.length>r)throw new l.D$(n,"WrongNumberOfParameters",i)}function re(e){return null==e||U(e)||""===e}function ne(e){return e<0?-Math.round(-e):Math.round(e)}function ie(e,t){return isNaN(e)||null==t||""===t?e.toString():(t=G(t,"‰",""),t=G(t,"¤",""),(0,h.GP)(e,{pattern:t}))}function se(e,t){return null==t||""===t?e.toISOString(!0):e.toFormat(oe(t),{locale:(0,T.JK)(),numberingSystem:"latn"})}function oe(e,t=!1){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let r="";const n=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|Z{1,5}|.)/g;for(const i of e.match(n)||[])switch(i){case"D":r+="d";break;case"DD":r+="dd";break;case"DDD":r+="o";break;case"d":r+="c";break;case"ddd":r+="ccc";break;case"dddd":r+="cccc";break;case"M":r+="L";break;case"MM":r+="LL";break;case"MMM":r+="LLL";break;case"MMMM":r+="LLLL";break;case"YY":r+="yy";break;case"Y":case"YYYY":r+="yyyy";break;case"Q":r+="q";break;case"Z":r+="Z";break;case"ZZ":r+="ZZ";break;case"ZZZ":r+="ZZZ";break;case"ZZZZ":r+=t?"[ZZZZ]":"ZZZZ";break;case"ZZZZZ":r+=t?"[ZZZZZ]":"ZZZZZ";break;case"S":r+="'S'";break;case"SS":r+="'SS'";break;case"SSS":r+="u";break;case"A":case"a":r+="a";break;case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":case"X":case"x":r+=i;break;default:i.length>=2&&i.startsWith("[")&&i.endsWith("]")?r+=`'${i.slice(1,-1)}'`:r+=`'${i}'`}return r}function le(e,t,r){switch(r){case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}return!1}function ae(e,t,r){if(null===e){if(null===t||t===F)return le(null,null,r);if((0,O.Et)(t))return le(0,t,r);if((0,O.Kg)(t))return le(0,fe(t),r);if((0,O.Lm)(t))return le(0,fe(t),r);if(Y(t))return le(0,t.toNumber(),r);if(X(t))return le(e,t.toNumber(),r);if(W(t))return le(e,t.toNumber(),r)}if(e===F){if(null===t||t===F)return le(null,null,r);if((0,O.Et)(t))return le(0,t,r);if((0,O.Kg)(t))return le(0,fe(t),r);if((0,O.Lm)(t))return le(0,fe(t),r);if(Y(t))return le(0,t.toNumber(),r);if(X(t))return le(e,t.toNumber(),r);if(W(t))return le(e,t.toNumber(),r)}else if((0,O.Et)(e)){if((0,O.Et)(t))return le(e,t,r);if((0,O.Lm)(t))return le(e,fe(t),r);if(null===t||t===F)return le(e,0,r);if((0,O.Kg)(t))return le(e,fe(t),r);if(Y(t))return le(e,t.toNumber(),r);if(X(t))return le(e,t.toNumber(),r);if(W(t))return le(e,t.toNumber(),r)}else if((0,O.Kg)(e)){if((0,O.Kg)(t))return le(pe(e),pe(t),r);if(Y(t))return le(fe(e),t.toNumber(),r);if(X(t))return le(fe(e),t.toNumber(),r);if(W(t))return le(fe(e),t.toNumber(),r);if((0,O.Et)(t))return le(fe(e),t,r);if(null===t||t===F)return le(fe(e),0,r);if((0,O.Lm)(t))return le(fe(e),fe(t),r)}else if(Y(e)){if(Y(t))return e.timeZone!==t.timeZone&&(e.isUnknownTimeZone?e=s.lY.arcadeDateAndZoneToArcadeDate(e,t.timeZone):t.isUnknownTimeZone&&(t=s.lY.arcadeDateAndZoneToArcadeDate(t,e.timeZone))),le(e.toNumber(),t.toNumber(),r);if(null===t||t===F)return le(e.toNumber(),0,r);if((0,O.Et)(t))return le(e.toNumber(),t,r);if((0,O.Lm)(t))return le(e.toNumber(),fe(t),r);if((0,O.Kg)(t))return le(e.toNumber(),fe(t),r);if(X(t))throw new l.D$(null,"CannotCompareDateAndTime",null);if(W(t))return le(e.toNumber(),t.toNumber(),r)}else if((0,O.Lm)(e)){if((0,O.Lm)(t))return le(e,t,r);if((0,O.Et)(t))return le(fe(e),fe(t),r);if(Y(t))return le(fe(e),t.toNumber(),r);if(X(t))return le(fe(e),t.toNumber(),r);if(W(t))return le(fe(e),t.toNumber(),r);if(null===t||t===F)return le(fe(e),0,r);if((0,O.Kg)(t))return le(fe(e),fe(t),r)}else if(W(e)){if(Y(t))return le(e.toNumber(),t.toNumber(),r);if(null===t||t===F)return le(e.toNumber(),0,r);if((0,O.Et)(t))return le(e.toNumber(),t,r);if((0,O.Lm)(t))return le(e.toNumber(),fe(t),r);if((0,O.Kg)(t))return le(e.toNumber(),fe(t),r);if(X(t))throw new l.D$(null,"CannotCompareDateAndTime",null);if(W(t))return le(e.toNumber(),t.toNumber(),r)}else if(X(e)){if(Y(t))throw new l.D$(null,"CannotCompareDateAndTime",null);if(null===t||t===F)return le(e.toNumber(),0,r);if((0,O.Et)(t))return le(e.toNumber(),t,r);if((0,O.Lm)(t))return le(e.toNumber(),fe(t),r);if((0,O.Kg)(t))return le(e.toNumber(),fe(t),r);if(X(t))return le(e.toNumber(),t.toNumber(),r);if(W(t))throw new l.D$(null,"CannotCompareDateAndTime",null)}return!!ue(e,t)&&("<="===r||">="===r)}function ue(e,t){if(e===t)return!0;if(null===e&&t===F||null===t&&e===F)return!0;if(Y(e)&&Y(t))return e.equals(t);if(X(e)&&X(t))return e.equals(t);if(W(e)&&W(t))return e.equals(t);if(e instanceof c.A)return e.equalityTest(t);if(e instanceof p.A)return e.equalityTest(t);if(e instanceof C.A&&t instanceof C.A){const r=e.cache._arcadeCacheId,n=t.cache._arcadeCacheId;if(null!=r)return r===n}if(ee(e)&&ee(t)){if(e._arcadeCacheId===t._arcadeCacheId&&void 0!==e._arcadeCacheId&&null!==e._arcadeCacheId)return!0;if(e._underlyingGraphic===t._underlyingGraphic&&void 0!==e._underlyingGraphic&&null!==e._underlyingGraphic)return!0}return!1}function ce(e,{useNumbersForDates:t}){let r="";for(const n in e){""!==r&&(r+=",");const i=e[n];null==i?r+=JSON.stringify(n)+":null":(0,O.Lm)(i)||(0,O.Et)(i)||(0,O.Kg)(i)?r+=JSON.stringify(n)+":"+JSON.stringify(i):k(i)?r+=JSON.stringify(n)+":"+he(i):X(i)||W(i)?r+=`${JSON.stringify(n)}:${JSON.stringify(i.toString())}`:H(i)||Array.isArray(i)?r+=JSON.stringify(n)+":"+he(i,null,t):Y(i)?r+=t?JSON.stringify(n)+":"+JSON.stringify(i.getTime()):JSON.stringify(n)+":"+i.stringify():null!==i&&"object"==typeof i&&"castToText"in i&&(r+=JSON.stringify(n)+":"+i.castToText(t))}return"{"+r+"}"}function pe(e,t){if((0,O.Kg)(e))return e;if(null===e)return"";if((0,O.Et)(e))return ie(e,t);if((0,O.Lm)(e))return e.toString();if(Y(e))return se(e,t);if(X(e))return e.toFormat(t);if(W(e))return e.toFormat(t);if(e instanceof g.A)return JSON.stringify(e.toJSON());if((0,O.cy)(e)){const t=[];for(let r=0;r<e.length;r++)t[r]=ye(e[r]);return"["+t.join(",")+"]"}if(e instanceof u.A){const t=[];for(let r=0;r<e.length();r++)t[r]=ye(e.get(r));return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText():I(e)?"object, Function":e===F?"":J(e)?"object, Module":""}function de(e){const t=[];if(e instanceof u.A){for(let r=0;r<e.length();r++)t[r]=fe(e.get(r));return t}if(!(0,O.cy)(e))return null;for(let r=0;r<e.length;r++)t[r]=fe(e[r]);return t}function he(e,t,r=!1){if((0,O.Kg)(e))return e;if(null===e)return"";if((0,O.Et)(e))return ie(e,t);if((0,O.Lm)(e))return e.toString();if(Y(e))return se(e,t);if(X(e))return e.toFormat(t);if(W(e))return e.toFormat(t);if(e instanceof g.A)return e instanceof m.A?'{"xmin":'+e.xmin.toString()+',"ymin":'+e.ymin.toString()+","+(e.hasZ?'"zmin":'+e.zmin.toString()+",":"")+(e.hasM?'"mmin":'+e.mmin.toString()+",":"")+'"xmax":'+e.xmax.toString()+',"ymax":'+e.ymax.toString()+","+(e.hasZ?'"zmax":'+e.zmax.toString()+",":"")+(e.hasM?'"mmax":'+e.mmax.toString()+",":"")+'"spatialReference":'+Ae(e.spatialReference)+"}":Ae(e.toJSON(),(e,t)=>e.key===t.key?0:"spatialReference"===e.key?1:"spatialReference"===t.key||e.key<t.key?-1:e.key>t.key?1:0);if((0,O.cy)(e)){const t=[];for(let n=0;n<e.length;n++)t[n]=ye(e[n],r);return"["+t.join(",")+"]"}if(e instanceof u.A){const t=[];for(let n=0;n<e.length();n++)t[n]=ye(e.get(n),r);return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText(r):I(e)?"object, Function":e===F?"":J(e)?"object, Module":""}function ye(e,t=!1){if(null===e)return"null";if((0,O.Lm)(e)||(0,O.Kg)(e))return JSON.stringify(e);if((0,O.Et)(e))return e.toString();if(e instanceof g.A)return he(e,null,t);if(e instanceof u.A)return he(e,null,t);if(Array.isArray(e))return he(e,null,t);if(Y(e))return t?JSON.stringify(e.getTime()):JSON.stringify(se(e,""));if(X(e))return JSON.stringify(e.toString());if(W(e))return JSON.stringify(e.toString());if(null!==e&&"object"==typeof e){if("castToText"in e)return e.castToText(t)}else if(e===F)return"null";return"null"}function fe(e,t){return(0,O.Et)(e)?e:null===e||""===e?0:Y(e)||W(e)||X(e)?NaN:(0,O.Lm)(e)?e?1:0:(0,O.cy)(e)||""===e||void 0===e?NaN:void 0!==t&&(0,O.Kg)(e)?(t=G(t,"‰",""),t=G(t,"¤",""),(0,h.qg)(e,{pattern:t})):e===F?0:Number(e)}function me(e,t){if(Y(e))return e;if((0,O.Kg)(e)){const r=function(e,t){const r=/ (\d\d)/,n=(0,s.mT)(t);let i=w.c9.fromISO(e,{zone:n});return i.isValid||r.test(e)&&(e=e.replace(r,"T$1"),i=w.c9.fromISO(e,{zone:t}),i.isValid)?i:null}(e,t);if(r)return s.lY.dateTimeToArcadeDate(r)}return null}function ge(e){return(0,O.Lm)(e)?e:(0,O.Kg)(e)?"true"===(e=e.toLowerCase()):!!(0,O.Et)(e)&&0!==e&&!isNaN(e)}function ve(e,t){return null==e?null:(null!==e.spatialReference&&void 0!==e.spatialReference||(e.spatialReference=t),e)}function Ce(e){if(null===e)return null;if(e instanceof C.A)return"NaN"===e.x||null===e.x||isNaN(e.x)?null:e;if(e instanceof S.A){if(0===(e.curveRings??e.rings).length)return null;for(const t of e.curveRings??e.rings)if(t.length>0)return e;return null}if(e instanceof b.A){if(0===(e.curvePaths??e.paths).length)return null;for(const t of e.curvePaths??e.paths)if(t.length>0)return e;return null}return e instanceof v.A?0===e.points.length?null:e:e instanceof m.A?"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)?null:e:null}function Se(e,t){if(!e)return t;if(!e.domain)return t;let r=null,n=null;if(Y(t))r=t.toNumber();else if(W(t))r=t.toString();else if(X(t))r=t.toStorageString();else if("string"===e.field.type||"esriFieldTypeString"===e.field.type)r=pe(t);else{if(null==t)return null;if(""===t)return t;r=fe(t)}for(let t=0;t<e.domain.codedValues.length;t++){const i=e.domain.codedValues[t];i.code===r&&(n=i)}return null===n?pe(t):n.name}function be(e,t){if(!e)return t;if(!e.domain)return t;let r=null;const n=pe(t);for(let t=0;t<e.domain.codedValues.length;t++){const i=e.domain.codedValues[t];i.name===n&&(r=i)}return null===r?t:r.code}function Me(e,t,r=null,n=null){if(!t)return null;if(!t.fields)return null;let i,s,o=null;for(let r=0;r<t.fields.length;r++){const n=t.fields[r];n.name.toLowerCase()===e.toString().toLowerCase()&&(o=n)}if(null===o)throw new l.D$(null,"FieldNotFound",null,{key:e});let a=t.typeIdField,u="id",c=t.types;if(t.subtypeField&&(a=t.subtypeField,u="code",c=t.subtypes??[]),null===n&&r&&a)n=r.hasField(a)?r.field(a):null;else if(a&&null!==n){let e=!1;for(const t of c||[])if(n===t[u]){e=!0;break}if(!e)for(const t of c||[])if(n===t.name){n=t[u],e=!0;break}e||(n=null,r&&a&&(n=r.hasField(a)?r.field(a):null))}return null!=n&&c.some(e=>e[u]===n&&(i=e.domains?.[o.name],i&&"inherited"===i.type&&(i=Ze(o.name,t),s=!0),!0)),s||i||(i=Ze(e,t)),{field:o,domain:i}}function Ze(e,t){let r;return t.fields.some(t=>(t.name.toLowerCase()===e.toLowerCase()&&(r=t.domain),!!r)),r}function Ae(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const r="boolean"==typeof t.cycles&&t.cycles,n=t.cmp&&(i=t.cmp,function(e){return function(t,r){const n={key:t,value:e[t]},s={key:r,value:e[r]};return i(n,s)}});var i;const s=[];return function e(t){if(t?.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===t)return;if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);let i,o;if(Array.isArray(t)){for(o="[",i=0;i<t.length;i++)i&&(o+=","),o+=e(t[i])||"null";return o+"]"}if(null===t)return"null";if(s.includes(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const l=s.push(t)-1,a=Object.keys(t).sort(n?.(t));for(o="",i=0;i<a.length;i++){const r=a[i],n=e(t[r]);n&&(o&&(o+=","),o+=JSON.stringify(r)+":"+n)}return s.splice(l,1),"{"+o+"}"}(e)}function Te(e){if(null===e)return null;const t=[];for(const r of e)B(r)?t.push(r.geometry()):t.push(r);return t}function Oe(e,t){if(!(t instanceof C.A))throw new l.D$(null,"InvalidParameter",null);e.push(t.hasZ?t.hasM?[t.x,t.y,t.z,t.m]:[t.x,t.y,t.z]:[t.x,t.y])}function we(e,t){if((0,O.cy)(e)||H(e)){let r=!1,n=!1,i=[],s=t;if((0,O.cy)(e)){for(const t of e)Oe(i,t);i.length>0&&(s=e[0].spatialReference,r=e[0].hasZ,n=e[0].hasM)}else if(e instanceof p.A)i=e._elements,i.length>0&&(r=e._hasZ,n=e._hasM,s=e.get(0).spatialReference);else{if(!H(e))throw new l.D$(null,"InvalidParameter",null);for(const t of e.toArray())Oe(i,t);i.length>0&&(s=e.get(0).spatialReference,r=!0===e.get(0).hasZ,n=!0===e.get(0).hasM)}return 0===i.length?null:((0,Z.$3)(i)||(i=i.slice().reverse()),new S.A({rings:[i],spatialReference:s,hasZ:r,hasM:n}))}return e}function Ne(e,t){if((0,O.cy)(e)||H(e)){let r=!1,n=!1,i=[],s=t;if((0,O.cy)(e)){for(const t of e)Oe(i,t);i.length>0&&(s=e[0].spatialReference,r=!0===e[0].hasZ,n=!0===e[0].hasM)}else if(e instanceof p.A)i=e._elements,i.length>0&&(r=e._hasZ,n=e._hasM,s=e.get(0).spatialReference);else if(H(e)){for(const t of e.toArray())Oe(i,t);i.length>0&&(s=e.get(0).spatialReference,r=!0===e.get(0).hasZ,n=!0===e.get(0).hasM)}return 0===i.length?null:new b.A({paths:[i],spatialReference:s,hasZ:r,hasM:n})}return e}function Pe(e,t){if((0,O.cy)(e)||H(e)){let r=!1,n=!1,i=[],s=t;if((0,O.cy)(e)){for(const t of e)Oe(i,t);i.length>0&&(s=e[0].spatialReference,r=!0===e[0].hasZ,n=!0===e[0].hasM)}else if(e instanceof p.A)i=e._elements,i.length>0&&(r=e._hasZ,n=e._hasM,s=e.get(0).spatialReference);else if(H(e)){for(const t of e.toArray())Oe(i,t);i.length>0&&(s=e.get(0).spatialReference,r=!0===e.get(0).hasZ,n=!0===e.get(0).hasM)}return 0===i.length?null:new v.A({points:i,spatialReference:s,hasZ:r,hasM:n})}return e}function _e(e,t=!0){if(null==e)return[];if((0,O.cy)(e)){const r=[];for(const n of e){const e=pe(n);(t||""!==e)&&r.push(e)}return r}if(H(e)){const r=[];for(let n=0;n<e.length();n++){const i=pe(e.get(n));(t||""!==i)&&r.push(i)}return r}if(q(e)){const r=pe(e);if(t||""!==r)return[r]}return[]}let Fe=0;function De(){return Fe++,Fe%100==0?(Fe=0,new Promise(e=>{setTimeout(()=>{e()},0)})):Promise.resolve()}function xe(e,t,r){switch(r){case"&":return e&t;case"|":return e|t;case"^":return e^t;case"<<":return e<<t;case">>":return e>>t;case">>>":return e>>>t}}function Ge(e,t=null){return null==e?null:(0,O.Lm)(e)||(0,O.Et)(e)||(0,O.Kg)(e)?e:e instanceof g.A?!0===t?.keepGeometryType?e:e.toJSON():e instanceof u.A?e.toArray().map(e=>Ge(e,t)):Array.isArray(e)?e.map(e=>Ge(e,t)):(0,O.$P)(e)?e:Y(e)?e.toJSDate():X(e)?e.toString():W(e)?e.toJSDate():null!==e&&"object"==typeof e&&void 0!==e.castAsJson?e.castAsJson(t):null}async function Ie(e,t,r,n,i){const s=await Je(e,t,r);i[n]=s}async function Je(e,t=null,r=null){if(e instanceof u.A&&(e=e.toArray()),null==e)return null;if(q(e)||e instanceof g.A||(0,O.$P)(e)||Y(e))return Ge(e,r);if(Array.isArray(e)){const n=[],i=[];for(const s of e)null===s||q(s)||s instanceof g.A||(0,O.$P)(s)||Y(s)?i.push(Ge(s,r)):(i.push(null),n.push(Ie(s,t,r,i.length-1,i)));return n.length>0&&await Promise.all(n),i}return null!==e&&"object"==typeof e&&void 0!==e.castAsJsonAsync?e.castAsJsonAsync(t,r):null}function qe(e){return Ee(e)?e.parent:e}function Ee(e){return e&&"declaredClass"in e&&"esri.layers.support.SubtypeSublayer"===e.declaredClass}function Re(e,t,r){const n=qe(e.fullSchema());return null===n?null:n.fields?Me(t,n,e,r):null}function Ue(e){const t=qe(e.fullSchema());return null===t?null:t.fields?t.subtypeField?{subtypeField:t.subtypeField,subtypes:t.subtypes?t.subtypes.map(e=>({name:e.name,code:e.code})):[]}:t.typeIdField?{subtypeField:t.typeIdField,subtypes:t.types?t.types.map(e=>({name:e.name,code:e.id})):[]}:null:null}function ke(e,t,r,n){const i=qe(e.fullSchema());if(null===i)return null;if(!i.fields)return null;const s=Me(t,i,e,n);if(void 0===r)try{r=e.field(t)}catch(e){return null}return Se(s,r)}function Be(e,t,r,n){const i=qe(e.fullSchema());if(null===i)return null;if(!i.fields)return null;if(void 0===r){try{r=e.field(t)}catch(e){return null}return r}return be(Me(t,i,e,n),r)}function je(e){return e?.timeZone??"system"}function Qe(e){const t=qe(e.fullSchema());if(null===t)return null;if(!t.fields)return null;const r=[];for(const e of t.fields)r.push((0,d.nE)(e));return{objectIdField:t.objectIdField,globalIdField:t.globalIdField??"",geometryType:void 0===d.yT[t.geometryType]?"":d.yT[t.geometryType],fields:r}}function Le(e,t){const r=s.lY.systemTimeZoneCanonicalName;return"system"===e&&(e=r),{version:$e,engineVersion:i.rE,timeZone:e,userTimeZone:r,spatialReference:t instanceof M.A?t.toJSON():t,application:n.A.applicationName??"",engine:"web",locale:(0,T.JK)()}}const $e="1.35",Ke=Object.freeze(Object.defineProperty({__proto__:null,ImplicitResult:_,ReturnResult:P,absRound:ne,arcadeVersion:$e,autoCastArrayOfPointsToMultiPoint:Pe,autoCastArrayOfPointsToPolygon:we,autoCastArrayOfPointsToPolyline:Ne,autoCastFeatureToGeometry:Te,binaryOperator:xe,breakResult:D,castAsJson:Ge,castAsJsonAsync:Je,castRecordToText:ce,continueResult:x,defaultExecutingContext:Le,defaultTimeZone:je,defaultUndefined:E,equalityTest:ue,featureDomainCodeLookup:Be,featureDomainValueLookup:ke,featureFullDomain:Re,featureSchema:Qe,featureSubtypes:Ue,fixNullGeometry:Ce,fixSpatialReference:ve,formatDate:se,formatNumber:ie,getDomain:Me,getDomainCode:be,getDomainValue:Se,getType:R,greaterThanLessThan:ae,isArray:O.cy,isBoolean:O.Lm,isDate:Y,isDateOnly:W,isDictionary:$,isDictionaryLike:K,isEmpty:re,isFeature:B,isFeatureSet:L,isFeatureSetCollection:V,isFunctionParameter:I,isGeometry:k,isGraphic:N.D,isImmutableArray:H,isInteger:O.Fq,isJsDate:O.$P,isKnowledgeGraph:z,isModule:J,isNumber:O.Et,isObject:ee,isPixel:Q,isSimpleType:q,isString:O.Kg,isSubtypeGrouplayer:function(e){return e&&"declaredClass"in e&&"esri.layers.SubtypeGroupLayer"===e.declaredClass},isSubtypeSublayer:Ee,isTime:X,isVoid:U,isVoxel:j,multiReplace:G,parseGeometryFromJson:function(e,t){const r=JSON.parse(e);return r&&!r.spatialReference&&(r.spatialReference=t),(0,A.rS)(r)},pcCheck:te,stableStringify:Ae,standardiseDateFormat:oe,tick:De,toBoolean:ge,toDate:me,toNumber:fe,toNumberArray:de,toString:pe,toStringArray:_e,toStringExplicit:he,voidOperation:F},Symbol.toStringTag,{value:"Module"}))},92474(e,t,r){r.d(t,{WV:()=>d,Zm:()=>y,x_:()=>h});var n=r(5482),i=r(49186),s=r(97768),o=r(61893),l=r(74887),a=r(67076),u=r(10107),c=r(64108);const p="loaded",d=e=>{const t=e;let r=class extends t{constructor(...e){super(...e),this._loadController=null,this.loadError=null,this.loadStatus="not-loaded",this._set("loadWarnings",[]),this.addResolvingPromise(new Promise(e=>{const t=this.load.bind(this);this.load=r=>{const n=new Promise((e,t)=>{const n=(0,l.NY)(r,t);this.destroyed&&t(new i.A("load:instance-destroyed",`Instance of '${this.declaredClass||this.constructor.name}' is already destroyed`,{instance:this})),this.when(e,t).finally(()=>{n&&n.remove()})});if("not-loaded"===this.loadStatus){this._set("loadStatus","loading");const e=this._loadController=new AbortController;t({signal:e.signal})}return e(),n}})),this.when(()=>{this._set("loadStatus",p),this._loadController=null},e=>{this.destroyed||(this._set("loadStatus","failed"),this._set("loadError",e),this._loadController=null)})}destroy(){this._loadController&&(this._loadController=(0,s.DC)(this._loadController),this._promiseProps.abort()),this._set("loadError",null),this._set("loadWarnings",[])}get loaded(){return this.loadStatus===p}get loadWarnings(){return this._get("loadWarnings")}load(e){return null}cancelLoad(){return this.isFulfilled()||(this._set("loadError",new i.A("load:cancelled","Cancelled")),this._loadController?.abort(),this._promiseProps.abort()),this}};return(0,n.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"loaded",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"loadError",void 0),(0,n.Cg)([(0,u.MZ)({clonable:!1})],r.prototype,"loadStatus",void 0),(0,n.Cg)([(0,u.MZ)({type:[a.A],readOnly:!0})],r.prototype,"loadWarnings",null),r=(0,n.Cg)([(0,c.$)("esri.core.Loadable")],r),r},h=d(o.Z);function y(e){return!(!e||!e.load)}},61893(e,t,r){r.d(t,{Z:()=>c,g:()=>u});var n=r(5482),i=r(69622),s=r(36563),o=r(74887),l=r(64108);class a{constructor(){this._resolver=(0,o.Tw)(),this._status=0,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=1,this._cleanUp()},()=>{this._status=2,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(e){this._resolvingPromises.push(e),this._tryResolve()}isResolved(){return 1===this._status}isRejected(){return 2===this._status}isFulfilled(){return 0!==this._status}abort(){this._resolver.reject((0,o.NK)())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;const e=(0,o.Tw)(),t=[...this._resolvingPromises,e.promise],r=this._allPromise=Promise.all(t);r.then(()=>{this.isFulfilled()||this._allPromise!==r||this._resolver.resolve()},e=>{this.isFulfilled()||this._allPromise!==r||(0,o.zf)(e)||this._resolver.reject(e)}),e.resolve()}}const u=e=>{const t=e;let r=class extends t{constructor(...e){super(...e),this._promiseProps=new a,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(e,t){return this._promiseProps.promise.then(()=>this).then(e,t)}catch(e){return this.when(null,e)}addResolvingPromise(e){e&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in e?e.when():e)}addResolvingTask(e){e&&!this._promiseProps.isFulfilled()&&(this.addHandles((0,s.rE)(e)),this._promiseProps.addResolvingPromise(e.promise))}};return r=(0,n.Cg)([(0,l.$)("esri.core.Promise")],r),r},c=u(i.A)},14607(e,t,r){r.d(t,{B:()=>u,GP:()=>l,qg:()=>c});var n=r(799),i=r(73444);const s={ar:[".",","],bg:[","," "],bs:[",","."],ca:[",","."],cs:[","," "],da:[",","."],de:[",","."],"de-ch":[".","’"],el:[",","."],en:[".",","],"en-au":[".",","],es:[",","."],"es-mx":[".",","],et:[","," "],fi:[","," "],fr:[","," "],"fr-ch":[","," "],he:[".",","],hi:[".",",","#,##,##0.###"],hr:[",","."],hu:[","," "],id:[",","."],it:[",","."],"it-ch":[".","’"],ja:[".",","],ko:[".",","],lt:[","," "],lv:[","," "],mk:[",","."],nb:[","," "],nl:[",","."],no:[","," "],pl:[","," "],pt:[",","."],"pt-pt":[","," "],ro:[",","."],ru:[","," "],sk:[","," "],sl:[",","."],sr:[",","."],sv:[","," "],th:[".",","],tr:[",","."],uk:[","," "],vi:[",","."],zh:[".",","]};function o(e=(0,i.JK)()){let t=(e=e.toLowerCase())in s;if(!t){const r=e.split("-");r.length>1&&r[0]in s&&(e=r[0],t=!0),t||(e="en")}const[r,n,o="#,##0.###"]=s[e];return{decimal:r,group:n,pattern:o}}function l(e,t){const r=o((t={...t}).locale);t.customs=r;const n=t.pattern||r.pattern;return isNaN(e)||Math.abs(e)===1/0?null:function(e,t,r){const n=(r=r||{}).customs.group,i=r.customs.decimal,s=t.split(";"),o=s[0];if((t=s[e<0?1:0]||"-"+o).includes("%"))e*=100;else if(t.includes("‰"))e*=1e3;else{if(t.includes("¤"))throw new Error("currency notation not supported");if(t.includes("E"))throw new Error("exponential notation not supported")}const l=a,u=o.match(l);if(!u)throw new Error("unable to find a number expression in pattern: "+t);return!1===r.fractional&&(r.places=0),t.replace(l,function(e,t,r){!0===(r=r||{}).places&&(r.places=0),r.places===1/0&&(r.places=6);const n=t.split("."),i="string"==typeof r.places&&r.places.indexOf(",");let s=r.places;i?s=r.places.slice(i+1):+s>=0||(s=(n[1]||[]).length),r.round<0||(e=Number(e.toFixed(Number(s))));const o=String(Math.abs(e)).split("."),l=o[1]||"";if(n[1]||r.places){i&&(r.places=r.places.slice(0,Math.max(0,i)));const e=void 0!==r.places?r.places:n[1]&&n[1].lastIndexOf("0")+1;+e>l.length&&(o[1]=l.padEnd(Number(e),"0")),+s<l.length&&(o[1]=l.slice(0,Math.max(0,Number(s))))}else o[1]&&o.pop();const a=n[0].replace(",","");let u=a.indexOf("0");-1!==u&&(u=a.length-u,u>o[0].length&&(o[0]=o[0].padStart(u,"0")),a.includes("#")||(o[0]=o[0].slice(-u)));let c,p,d=n[0].lastIndexOf(",");if(-1!==d){c=n[0].length-d-1;const e=n[0].slice(0,d);d=e.lastIndexOf(","),-1!==d&&(p=e.length-d-1)}const h=[];for(let e=o[0];e;){const t=e.length-c;h.push(t>0?e.slice(Math.max(0,t)):e),e=t>0?e.slice(0,t):"",p&&(c=p,p=void 0)}return o[0]=h.reverse().join(r.group||","),o.join(r.decimal||".")}(e,u[0],{decimal:i,group:n,places:r.places,round:r.round}))}(e,n,t)}const a=/[#0,]*[#0](?:\.0*#*)?/;function u(e){const t=o((e=e||{}).locale),r=e.pattern||t.pattern,i=t.group,s=t.decimal;let l=1;if(r.includes("%"))l/=100;else if(r.includes("‰"))l/=1e3;else if(r.includes("¤"))throw new Error("currency notation not supported");const u=r.split(";");1===u.length&&u.push("-"+u[0]);const c=d(u,t=>(t="(?:"+(0,n.Cj)(t,".")+")").replace(a,t=>{const r={signed:!1,separator:e.strict?i:[i,""],fractional:e.fractional,decimal:s,exponent:!1},n=t.split(".");let o=e.places;1===n.length&&1!==l&&(n[1]="###"),1===n.length||0===o?r.fractional=!1:(void 0===o&&(o=e.pattern?n[1].lastIndexOf("0")+1:1/0),o&&null==e.fractional&&(r.fractional=!0),!e.places&&+o<n[1].length&&(o+=","+n[1].length),r.places=o);const a=n[0].split(",");return a.length>1&&(r.groupSize=a.pop().length,a.length>1&&(r.groupSize2=a.pop().length)),"("+function(e){"places"in(e=e||{})||(e.places=1/0),"string"!=typeof e.decimal&&(e.decimal="."),"fractional"in e&&!String(e.places).startsWith("0")||(e.fractional=[!0,!1]),"exponent"in e||(e.exponent=[!0,!1]),"eSigned"in e||(e.eSigned=[!0,!1]);const t=p(e),r=d(e.fractional,t=>{let r="";return t&&0!==e.places&&(r="\\"+e.decimal,e.places===1/0?r="(?:"+r+"\\d+)?":r+="\\d{"+e.places+"}"),r},!0);let n=t+r;return r&&(n="(?:(?:"+n+")|(?:"+r+"))"),n+d(e.exponent,t=>t?"([eE]"+p({signed:e.eSigned})+")":"")}(r)+")"}),!0);return{regexp:c.replaceAll(/[\xa0 ]/g,"[\\s\\xa0]"),group:i,decimal:s,factor:l}}function c(e,t){const r=u(t),n=new RegExp("^"+r.regexp+"$").exec(e);if(!n)return NaN;let i=n[1];if(!n[1]){if(!n[2])return NaN;i=n[2],r.factor*=-1}return i=i.replaceAll(new RegExp("["+r.group+"\\s\\xa0]","g"),"").replace(r.decimal,"."),Number(i)*r.factor}function p(e){return"signed"in(e=e||{})||(e.signed=[!0,!1]),"separator"in e?"groupSize"in e||(e.groupSize=3):e.separator="",d(e.signed,e=>e?"[-+]":"",!0)+d(e.separator,t=>{if(!t)return"(?:\\d+)";" "===(t=(0,n.Cj)(t))?t="\\s":" "===t&&(t="\\s\\xa0");const r=e.groupSize,i=e.groupSize2;if(i){const e="(?:0|[1-9]\\d{0,"+(i-1)+"}(?:["+t+"]\\d{"+i+"})*["+t+"]\\d{"+r+"})";return r-i>0?"(?:"+e+"|(?:0|[1-9]\\d{0,"+(r-1)+"}))":e}return"(?:0|[1-9]\\d{0,"+(r-1)+"}(?:["+t+"]\\d{"+r+"})*)"},!0)}const d=(e,t,r)=>{if(!Array.isArray(e))return t(e);const n=[];for(let r=0;r<e.length;r++)n.push(t(e[r]));return h(n.join("|"),Boolean(r))},h=(e,t)=>"("+(t?"?:":"")+e+")"},60408(e,t,r){function n(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function i(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function l(e){return void 0!==e.rings||void 0!==e.curveRings}function a(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?s(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":l(e)?"esriGeometryPolygon":n(e)?"esriGeometryEnvelope":i(e)?"esriGeometryMultipoint":null:null}function c(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function p(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}r.d(t,{$B:()=>u,Bi:()=>l,Pv:()=>c,Rg:()=>o,U9:()=>i,W0:()=>p,ZC:()=>n,fT:()=>s,uW:()=>a})},65864(e,t,r){r.d(t,{rS:()=>c,xD:()=>d});var n=r(5443),i=r(91075),s=r(48526),o=r(86738),l=r(39829),a=r(82799),u=r(60408);function c(e){return null==e?null:e instanceof i.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?a.A.fromJSON(e):(0,u.Bi)(e)?l.A.fromJSON(e):(0,u.U9)(e)?s.A.fromJSON(e):(0,u.ZC)(e)?n.A.fromJSON(e):null}const p={esriGeometryPoint:o.A,esriGeometryPolyline:a.A,esriGeometryPolygon:l.A,esriGeometryEnvelope:n.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:l.A};function d(e){return e&&p[e]||null}},39357(e,t,r){r.d(t,{A:()=>l});var n,i=r(5482),s=r(25482),o=r(91429);let l=n=class extends s.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new n({name:this.name,code:this.code})}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],l.prototype,"code",void 0),l=n=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValue")],l)},53177(e,t,r){r.d(t,{A:()=>c});var n,i=r(5482),s=r(4718),o=r(91429),l=r(39357),a=r(76357),u=r(93223);let c=class extends a.A{static{n=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some(e=>(String(e.code)===r&&(t=e.name),!!t))}return t}clone(){return new n({codedValues:(0,s.o8)(this.codedValues),name:this.name})}};(0,i.Cg)([(0,o.MZ)({type:[l.A],json:{write:{isRequired:!0}}})],c.prototype,"codedValues",void 0),(0,i.Cg)([(0,u.e)({codedValue:"coded-value"})],c.prototype,"type",void 0),c=n=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValueDomain")],c)},76357(e,t,r){r.d(t,{A:()=>u});var n=r(5482),i=r(66552),s=r(25482),o=r(91429),l=r(93223);const a=new i.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends s.o{constructor(e){super(e),this.name=null,this.type=null}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,n.Cg)([(0,l.e)(a),(0,o.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),u=(0,n.Cg)([(0,o.$K)("esri.layers.support.Domain")],u)},20437(e,t,r){r.d(t,{A:()=>y});var n,i=r(5482),s=r(66552),o=r(25482),l=r(91429),a=r(56507),u=r(8631),c=r(98453),p=r(36005),d=r(93223);const h=new s.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let y=class extends o.o{static{n=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?h.fromJSON(r.fieldValueType):null}clone(){return new n({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],y.prototype,"alias",void 0),(0,i.Cg)([(0,l.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],y.prototype,"defaultValue",void 0),(0,i.Cg)([(0,l.MZ)()],y.prototype,"description",void 0),(0,i.Cg)([(0,p.w)("description")],y.prototype,"readDescription",null),(0,i.Cg)([(0,l.MZ)({types:u.g,json:{read:{reader:u.r},write:!0}})],y.prototype,"domain",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"editable",void 0),(0,i.Cg)([(0,l.MZ)({type:a.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],y.prototype,"length",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],y.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"nullable",void 0),(0,i.Cg)([(0,d.e)(c.m)],y.prototype,"type",void 0),(0,i.Cg)([(0,l.MZ)()],y.prototype,"valueType",void 0),(0,i.Cg)([(0,p.w)("valueType",["description"])],y.prototype,"readValueType",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{read:!1}})],y.prototype,"visible",void 0),y=n=(0,i.Cg)([(0,l.$K)("esri.layers.support.Field")],y)},41628(e,t,r){r.d(t,{A:()=>a});var n,i=r(5482),s=r(91429),o=r(76357),l=r(93223);let a=class extends o.A{static{n=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new n({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]},isRequired:!0}}})],a.prototype,"maxValue",void 0),(0,i.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]},isRequired:!0}}})],a.prototype,"minValue",void 0),(0,i.Cg)([(0,l.e)({range:"range"})],a.prototype,"type",void 0),a=n=(0,i.Cg)([(0,s.$K)("esri.layers.support.RangeDomain")],a)},8631(e,t,r){r.d(t,{r:()=>d,g:()=>p});var n,i=r(53177),s=r(76357),o=r(5482),l=r(91429),a=r(93223);let u=class extends s.A{static{n=this}constructor(e){super(e),this.type="inherited"}clone(){return new n}};(0,o.Cg)([(0,a.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=n=(0,o.Cg)([(0,l.$K)("esri.layers.support.InheritedDomain")],u);var c=r(41628);const p={key:"type",base:s.A,typeMap:{range:c.A,"coded-value":i.A,inherited:u}};function d(e){if(!e?.type)return null;switch(e.type){case"range":return c.A.fromJSON(e);case"codedValue":return i.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},98453(e,t,r){r.d(t,{m:()=>n});const n=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},20655(e,t,r){r.d(t,{A:()=>N});var n=r(5482),i=r(92602),s=r(70333),o=r(11254),l=r(49186),a=r(44208),u=r(25482),c=r(92474),p=r(97768),d=r(74887),h=r(91429),y=r(56507),f=r(5443),m=r(73444);let g;var v=r(96360),C=r(16405),S=r(69622);let b=class extends S.A{constructor(e){super(e),this.nextQueryParams=null,this.queryParams=null,this.results=null,this.total=null}};(0,n.Cg)([(0,h.MZ)()],b.prototype,"nextQueryParams",void 0),(0,n.Cg)([(0,h.MZ)()],b.prototype,"queryParams",void 0),(0,n.Cg)([(0,h.MZ)()],b.prototype,"results",void 0),(0,n.Cg)([(0,h.MZ)()],b.prototype,"total",void 0),b=(0,n.Cg)([(0,h.$K)("esri.portal.PortalQueryResult")],b);var M,Z=r(41318),A=r(926),T=r(36005);let O;const w={PortalGroup:()=>Promise.resolve({default:v.A}),PortalItem:()=>r.e(812).then(r.bind(r,80812)),PortalUser:()=>Promise.resolve({default:Z.A})};let N=class extends((0,u.T)(c.x_)){static{M=this}static{this.AUTH_MODE_ANONYMOUS="anonymous"}static{this.AUTH_MODE_AUTO="auto"}static{this.AUTH_MODE_IMMEDIATE="immediate"}static{this.AUTH_MODE_NO_PROMPT="no-prompt"}constructor(e){super(e),this._esriIdCredentialCreateHandle=null,this.access=null,this.allSSL=!1,this.authMode="auto",this.authorizedCrossOriginDomains=null,this.basemapGalleryGroupQuery=null,this.basemapGalleryGroupQuery3D=null,this.g3DTilesGalleryGroupQuery=null,this.g3dTilesEnabled=null,this.bingKey=null,this.canListApps=!1,this.canListData=!1,this.canListPreProvisionedItems=!1,this.canProvisionDirectPurchase=!1,this.canSearchPublic=!0,this.canShareBingPublic=!1,this.canSharePublic=!1,this.canSignInArcGIS=!1,this.canSignInIDP=!1,this.colorSetsGroupQuery=null,this.commentsEnabled=!1,this.created=null,this.culture=null,this.customBaseUrl=null,this.default3DBasemapQuery=null,this.defaultBasemap=null,this.defaultDevBasemap=null,this.defaultExtent=null,this.defaultVectorBasemap=null,this.description=null,this.devBasemapGalleryGroupQuery=null,this.eueiEnabled=null,this.featuredGroups=null,this.featuredItemsGroupQuery=null,this.galleryTemplatesGroupQuery=null,this.layoutGroupQuery=null,this.livingAtlasGroupQuery=null,this.hasCategorySchema=!1,this.hasClassificationSchema=!1,this.helperServices=null,this.homePageFeaturedContent=null,this.homePageFeaturedContentCount=null,this.httpPort=null,this.httpsPort=null,this.id=null,this.ipCntryCode=null,this.isPortal=!1,this.isReadOnly=!1,this.layerTemplatesGroupQuery=null,this.maxTokenExpirationMinutes=null,this.modified=null,this.name=null,this.portalHostname=null,this.portalMode=null,this.portalProperties=null,this.region=null,this.recycleBinEnabled=!1,this.rotatorPanels=null,this.showHomePageDescription=!1,this.sourceJSON=null,this.supportsHostedServices=!1,this.symbolSetsGroupQuery=null,this.templatesGroupQuery=null,this.units=null,this.url=i.A.portalUrl,this.urlKey=null,this.user=null,this.use3dBasemaps=!0,this.useDefault3dBasemap=!1,this.useStandardizedQuery=!1,this.useVectorBasemaps=!1,this.vectorBasemapGalleryGroupQuery=null}normalizeCtorArgs(e){return"string"==typeof e?{url:e}:e}destroy(){P.unregister(this),this.defaultBasemap=(0,p.pR)(this.defaultBasemap),this.defaultDevBasemap=(0,p.pR)(this.defaultDevBasemap),this.defaultVectorBasemap=(0,p.pR)(this.defaultVectorBasemap),this._esriIdCredentialCreateHandle=(0,p.xt)(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(e){if(e)for(const t of e)i.A.request.trustedServers.includes(t)||i.A.request.trustedServers.push(t);return e}readDefaultBasemap(e){return this._readBasemap(e)}readDefaultDevBasemap(e){return this._readBasemap(e)}readDefaultVectorBasemap(e){return this._readBasemap(e)}get extraQuery(){const e=this.user?.orgId,t=!e||this.canSearchPublic;return this.id&&!t?` AND orgid:${this.id}`:null}get hasAPIKey(){return(0,A.Jn)(this.restUrl)}get isOrganization(){return!!this.access}get itemPageUrl(){return this.url?`${this.url}/home/item.html`:null}get loaded(){return super.loaded}get restUrl(){let e=this.url;if(e){const t=e.indexOf("/sharing");e=t>0?e.slice(0,t):this.url.replace(/\/+$/,""),e+="/sharing/rest"}return e}get thumbnailUrl(){const e=this.restUrl,t=this.thumbnail;return e&&t?this._normalizeSSL(e+"/portals/self/resources/"+t):null}readUrlKey(e){return e?e.toLowerCase():e}readUser(e){let t=null;return e&&(t=Z.A.fromJSON(e),t.portal=this),t}load(e){const t=Promise.all([r.e(812),r.e(3116)]).then(r.bind(r,83116)).then(({default:t})=>{(0,d.Te)(e),O=t}).then(()=>this.sourceJSON?this.sourceJSON:this.fetchSelf(this.authMode,!1,e)).then(e=>{if(!this.hasAPIKey&&s.id){const e=s.id;this.credential=e.findCredential(this.restUrl),this.credential||this.authMode!==M.AUTH_MODE_AUTO&&this.authMode!==M.AUTH_MODE_NO_PROMPT||(this._esriIdCredentialCreateHandle?.remove(),this._esriIdCredentialCreateHandle=e.on("credential-create",function(e){const t=s.id;return()=>{const r=e.deref();r&&t.findCredential(r.restUrl)&&r.signIn().catch(()=>{})}}(new WeakRef(this))),P.register(this,this._esriIdCredentialCreateHandle,this))}this.sourceJSON=e,this.read(e)});return this.addResolvingPromise(t),Promise.resolve(this)}async createElevationLayers(){await this.load();const e=this._getHelperService("defaultElevationLayers"),t=(await Promise.all([r.e(1218),r.e(3508),r.e(9953),r.e(812),r.e(9186),r.e(2369),r.e(7716)]).then(r.bind(r,62369))).default;return e?e.map(e=>new t({id:e.id,url:e.url})):[]}async fetchBasemaps(e,t){const r=await this._fetchBasemaps(e,t);if(!0===t?.include3d&&!1!==this.use3dBasemaps){if(this.g3dTilesEnabled&&this.g3DTilesGalleryGroupQuery&&(0,a.A)("enable-feature:basemap-groundlayers")){const e=await this._fetchBasemaps3D(this.g3DTilesGalleryGroupQuery,t);r.unshift(...e)}const n=await this._fetchBasemaps3D(e,t);r.unshift(...n)}return r}async fetchDefault3DBasemap(e){if(!this.useDefault3dBasemap||!this.default3DBasemapQuery||"none"===this.default3DBasemapQuery)return null;const t=new C.A;t.query=this.default3DBasemapQuery,t.disableExtraQuery=!0;const r=(await this.queryItems(t,e)).results.find(e=>"Web Scene"===e.type);return r?new O({portalItem:r}):null}fetchCategorySchema(e){return this.hasCategorySchema?this.request(this.restUrl+"/portals/self/categorySchema",e).then(e=>e.categorySchema):(0,d.G4)(e)?Promise.reject((0,d.NK)()):Promise.resolve([])}async fetchClassificationSchema(e){return this.hasClassificationSchema?this.request(this.restUrl+"/portals/self/classification/classificationSchema",e).then(e=>e.classificationSchema):null}fetchFeaturedGroups(e){const t=this.featuredGroups,r=new C.A({num:100,sortField:"title"});if(t?.length){const n=[];for(const e of t)n.push(`(title:"${e.title}" AND owner:${e.owner})`);return r.query=n.join(" OR "),this.queryGroups(r,e).then(e=>e.results)}return(0,d.G4)(e)?Promise.reject((0,d.NK)()):Promise.resolve([])}fetchRegions(e){const t=this.user?.culture||this.culture||(0,m.JK)();return this.request(this.restUrl+"/portals/regions",{...e,query:{culture:t}})}fetchSettings(e){const t=this.user?.culture||this.culture||(0,m.JK)();return this.request(this.restUrl+"/portals/self/settings",{...e,query:{culture:t}})}static getDefault(){return g&&!g.destroyed||(g=new M),g}queryGroups(e,t){return this.queryPortal("/community/groups",e,"PortalGroup",t)}queryItems(e,t){return this.queryPortal("/search",e,"PortalItem",t)}queryUsers(e,t){return e.sortField||(e.sortField="username"),this.queryPortal("/community/users",e,"PortalUser",t)}fetchSelf(e=this.authMode,t=!1,r){const n=this.restUrl+"/portals/self",i={authMode:e,query:{culture:(0,m.JK)().toLowerCase()},withCredentials:!0,...r};return"auto"===i.authMode&&(i.authMode="no-prompt"),t&&(i.query.default=!0),this.request(n,i)}queryPortal(e,t,r,n){const i=(0,y.dp)(C.A,t),s=t=>this.request(this.restUrl+e,{...i.toRequestOptions(this),...n}).then(e=>{const r=i.clone();return r.start=e.nextStart,new b({nextQueryParams:r,queryParams:i,total:e.total,results:M._resultsToTypedArray(t,{portal:this},e,n)})}).then(e=>Promise.all(e.results.map(t=>"function"==typeof t.when?t.when():e)).then(()=>e,t=>((0,d.QP)(t),e)));return r&&w[r]?w[r]().then(({default:e})=>((0,d.Te)(n),s(e))):s()}signIn(){if(this.hasAPIKey)return this.load().then(()=>{if(!this.user)throw new l.A("portal:not-authenticated","Unable to authenticate user. Portal.user is missing")});if(this.authMode===M.AUTH_MODE_ANONYMOUS||this.authMode===M.AUTH_MODE_NO_PROMPT&&!s.id)return Promise.reject(new l.A("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if("failed"===this.loadStatus)return Promise.reject(this.loadError);const e=e=>Promise.resolve().then(()=>"not-loaded"===this.loadStatus?(e||(this.authMode="immediate"),this.load().then(()=>null)):"loading"===this.loadStatus?this.load().then(()=>this.credential?null:(this.credential=e,this.fetchSelf("immediate"))):this.user&&this.credential===e?null:(this.credential=e,this.fetchSelf("immediate"))).then(e=>{e&&(this.sourceJSON=e,this.read(e))});return s.id?s.id.getCredential(this.restUrl,{prompt:this.authMode!==M.AUTH_MODE_NO_PROMPT}).then(t=>e(t)):e(this.credential)}normalizeUrl(e){const t=this.credential?.token;return this._normalizeSSL(t?e+(e.includes("?")?"&":"?")+"token="+t:e)}requestToTypedArray(e,t,r){return this.request(e,t).then(e=>{const t=M._resultsToTypedArray(r,{portal:this},e);return Promise.all(t.map(t=>"function"==typeof t.when?t.when():e)).then(()=>t,()=>t)})}request(e,t={}){const r={f:"json",...t.query},{authMode:n=(this.authMode===M.AUTH_MODE_ANONYMOUS||this.authMode===M.AUTH_MODE_NO_PROMPT?this.authMode:"auto"),body:i=null,cacheBust:s=!1,method:l="auto",responseType:a="json",signal:u}=t,c={authMode:n,body:i,cacheBust:s,method:l,query:r,responseType:a,timeout:0,signal:u};return t.withCredentials&&(c.withCredentials=!0),(0,o.A)(this._normalizeSSL(e),c).then(e=>e.data)}toJSON(){throw new l.A("internal:not-yet-implemented","Portal.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");return new M({sourceJSON:e})}_getHelperService(e){const t=this.helperServices?.[e];if(!t)throw new l.A("portal:service-not-found",`The \`helperServices\` do not include an entry named "${e}"`);return t}async _fetchBasemaps(e,t){const r=new C.A;r.query=e||((0,A.Dd)()?this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery),r.disableExtraQuery=!0;const n=await this.queryGroups(r,t);if(!n.total)return[];const i=n.results[0];r.num=100,r.query='type:"Web Map" -type:"Web Application"',r.sortField=i.sortField||"name",r.sortOrder=i.sortOrder||"desc";const s=await i.queryItems(r,t);return s.total?s.results.filter(e=>"Web Map"===e.type).map(e=>new O({portalItem:e})):[]}async _fetchBasemaps3D(e,t){const r=e||this.basemapGalleryGroupQuery3D;if(!r)return[];if((0,A.Dd)())return[];const n=new C.A({query:r,disableExtraQuery:!0}),i=await this.queryGroups(n,t);if(!i.total)return[];const s=i.results[0];n.num=100,n.query='type:"Web Scene"',n.sortField=s.sortField||"name",n.sortOrder=s.sortOrder||"desc";const o=await s.queryItems(n,t);return o.total?o.results.filter(e=>"Web Scene"===e.type).map(e=>new O({portalItem:e})):[]}_normalizeSSL(e){return e.replace(/^http:/i,"https:").replace(":7080",":7443")}_readBasemap(e){if(e){const t=O.fromJSON(e);return t.portalItem={portal:this},t}return null}static _resultsToTypedArray(e,t,r,n){let i;if(r){const s=null!=n?n.signal:null;i=r.listings||r.notifications||r.userInvitations||r.tags||r.items||r.groups||r.comments||r.provisions||r.results||r.relatedItems||r,(e||t)&&(i=i.map(r=>{const n=Object.assign(e?e.fromJSON(r):r,t);return"function"==typeof n.load&&n.load(s),n}))}else i=[];return i}};(0,n.Cg)([(0,h.MZ)()],N.prototype,"access",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"allSSL",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"authMode",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"authorizedCrossOriginDomains",void 0),(0,n.Cg)([(0,T.w)("authorizedCrossOriginDomains")],N.prototype,"readAuthorizedCrossOriginDomains",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"basemapGalleryGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)({json:{name:"3DBasemapGalleryGroupQuery"}})],N.prototype,"basemapGalleryGroupQuery3D",void 0),(0,n.Cg)([(0,h.MZ)({json:{name:"g3DTilesGalleryGroupQuery"}})],N.prototype,"g3DTilesGalleryGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)({json:{name:"g3dTilesEnabled"}})],N.prototype,"g3dTilesEnabled",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"bingKey",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"canListApps",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"canListData",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"canListPreProvisionedItems",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"canProvisionDirectPurchase",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"canSearchPublic",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"canShareBingPublic",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"canSharePublic",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"canSignInArcGIS",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"canSignInIDP",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"colorSetsGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"commentsEnabled",void 0),(0,n.Cg)([(0,h.MZ)({type:Date})],N.prototype,"created",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"credential",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"culture",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"currentVersion",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"customBaseUrl",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"default3DBasemapQuery",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"defaultBasemap",void 0),(0,n.Cg)([(0,T.w)("defaultBasemap")],N.prototype,"readDefaultBasemap",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"defaultDevBasemap",void 0),(0,n.Cg)([(0,T.w)("defaultDevBasemap")],N.prototype,"readDefaultDevBasemap",null),(0,n.Cg)([(0,h.MZ)({type:f.A})],N.prototype,"defaultExtent",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"defaultVectorBasemap",void 0),(0,n.Cg)([(0,T.w)("defaultVectorBasemap")],N.prototype,"readDefaultVectorBasemap",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"description",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"devBasemapGalleryGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"eueiEnabled",void 0),(0,n.Cg)([(0,h.MZ)({readOnly:!0})],N.prototype,"extraQuery",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"featuredGroups",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"featuredItemsGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"galleryTemplatesGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"layoutGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"livingAtlasGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)({readOnly:!0})],N.prototype,"hasAPIKey",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"hasCategorySchema",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"hasClassificationSchema",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"helpBase",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"helperServices",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"helpMap",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"homePageFeaturedContent",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"homePageFeaturedContentCount",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"httpPort",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"httpsPort",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"id",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"ipCntryCode",void 0),(0,n.Cg)([(0,h.MZ)({readOnly:!0})],N.prototype,"isOrganization",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"isPortal",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"isReadOnly",void 0),(0,n.Cg)([(0,h.MZ)({readOnly:!0})],N.prototype,"itemPageUrl",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"layerTemplatesGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"maxTokenExpirationMinutes",void 0),(0,n.Cg)([(0,h.MZ)({type:Date})],N.prototype,"modified",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"name",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"portalHostname",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"portalMode",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"portalProperties",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"region",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"recycleBinEnabled",void 0),(0,n.Cg)([(0,h.MZ)({readOnly:!0})],N.prototype,"restUrl",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"rotatorPanels",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"showHomePageDescription",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"sourceJSON",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"staticImagesUrl",void 0),(0,n.Cg)([(0,h.MZ)({json:{name:"2DStylesGroupQuery"}})],N.prototype,"stylesGroupQuery2d",void 0),(0,n.Cg)([(0,h.MZ)({json:{name:"stylesGroupQuery"}})],N.prototype,"stylesGroupQuery3d",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"supportsHostedServices",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"symbolSetsGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"templatesGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"thumbnail",void 0),(0,n.Cg)([(0,h.MZ)({readOnly:!0})],N.prototype,"thumbnailUrl",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"units",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"url",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"urlKey",void 0),(0,n.Cg)([(0,T.w)("urlKey")],N.prototype,"readUrlKey",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"user",void 0),(0,n.Cg)([(0,T.w)("user")],N.prototype,"readUser",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"use3dBasemaps",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"useDefault3dBasemap",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"useStandardizedQuery",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"useVectorBasemaps",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"vectorBasemapGalleryGroupQuery",void 0),N=M=(0,n.Cg)([(0,h.$K)("esri.portal.Portal")],N);const P=new FinalizationRegistry(e=>{e.remove()})},96360(e,t,r){r.d(t,{A:()=>c});var n,i=r(5482),s=r(49186),o=r(25482),l=r(91429),a=r(56507),u=r(16405);let c=n=class extends o.o{constructor(e){super(e),this.access=null,this.created=null,this.description=null,this.id=null,this.isInvitationOnly=!1,this.modified=null,this.owner=null,this.portal=null,this.snippet=null,this.sortField=null,this.sortOrder=null,this.sourceJSON=null,this.tags=null,this.title=null}get thumbnailUrl(){const e=this.url,t=this.thumbnail;return e&&t&&this.portal?this.portal?.normalizeUrl(`${e}/info/${t}?f=json`):null}get url(){const e=this.portal?.restUrl;return e?e+"/community/groups/"+this.id:null}fetchCategorySchema(e){return this.portal.request(this.url+"/categorySchema",e).then(t=>{const r=t.categorySchema||[];return r.some(e=>"contentCategorySetsGroupQuery.LivingAtlas"===e.source)?this._fetchCategorySchemaSet("LivingAtlas",e):r})}fetchMembers(e){return this.portal.request(this.url+"/users",e)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}toJSON(){throw new s.A("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");const t=new n({sourceJSON:e});return t.read(e),t}queryItems(e,t){let r=(0,a.dp)(u.A,e);const n=this.portal;return parseFloat(n.currentVersion)>5?(r=r||new u.A,n.queryPortal(`/content/groups/${this.id}/search`,r,"PortalItem",t)):(r=r?r.clone():new u.A,r.query="group:"+this.id+(r.query?" "+r.query:""),n.queryItems(r,t))}_fetchCategorySchemaSet(e,t){const r=this.portal;return r.fetchSelf(r.authMode,!0,t).then(e=>{const n=e.contentCategorySetsGroupQuery;if(n){const e=new u.A({disableExtraQuery:!0,num:1,query:n});return r.queryGroups(e,t)}throw new s.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found")}).then(r=>{if(r.total){const n=r.results[0],i=new u.A({num:1,query:`typekeywords:"${e}"`});return n.queryItems(i,t)}throw new s.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery group not found")}).then(e=>e.total?e.results[0].fetchData("json",t).then(e=>{const t=e?.categorySchema;return t?.length?t:[]}):[])}};(0,i.Cg)([(0,l.MZ)()],c.prototype,"access",void 0),(0,i.Cg)([(0,l.MZ)({type:Date})],c.prototype,"created",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"description",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"id",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"isInvitationOnly",void 0),(0,i.Cg)([(0,l.MZ)({type:Date})],c.prototype,"modified",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"owner",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"portal",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"snippet",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"sortField",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"sortOrder",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"tags",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"thumbnail",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0})],c.prototype,"thumbnailUrl",null),(0,i.Cg)([(0,l.MZ)()],c.prototype,"title",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0})],c.prototype,"url",null),c=n=(0,i.Cg)([(0,l.$K)("esri.portal.PortalGroup")],c)},16405(e,t,r){r.d(t,{A:()=>h});var n,i=r(5482),s=r(69622),o=r(66552),l=r(4718),a=r(91429),u=r(5443),c=r(16930),p=r(28735);const d=new o.J({avgRating:"avg-rating",numRatings:"num-ratings",numComments:"num-comments",numViews:"num-views"});let h=n=class extends s.A{constructor(e){super(e),this.categories=null,this.disableExtraQuery=!1,this.extent=null,this.filter=null,this.num=10,this.query=null,this.sortField=null,this.start=1}get sortOrder(){return this._get("sortOrder")||"asc"}set sortOrder(e){"asc"!==e&&"desc"!==e||this._set("sortOrder",e)}clone(){return new n({categories:this.categories?(0,l.o8)(this.categories):null,disableExtraQuery:this.disableExtraQuery,extent:this.extent?this.extent.clone():null,filter:this.filter,num:this.num,query:this.query,sortField:this.sortField,sortOrder:this.sortOrder,start:this.start})}toRequestOptions(e,t){let r=[];this.categories&&(r=this.categories.map(e=>Array.isArray(e)?JSON.stringify(e):e));let n="";if(this.extent){const e=(0,p.Cv)(this.extent,c.A.WGS84);null!=e&&(n=`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`)}let i=this.query;!this.disableExtraQuery&&e.extraQuery&&(i="("+i+")"+e.extraQuery);const s={categories:r,bbox:n,q:i,filter:this.filter,num:this.num,sortField:null,sortOrder:null,start:this.start};return this.sortField&&(s.sortField=this.sortField.split(",").map(e=>d.toJSON(e.trim())).join(","),s.sortOrder=this.sortOrder),{query:{...t,...s}}}};(0,i.Cg)([(0,a.MZ)()],h.prototype,"categories",void 0),(0,i.Cg)([(0,a.MZ)()],h.prototype,"disableExtraQuery",void 0),(0,i.Cg)([(0,a.MZ)({type:u.A})],h.prototype,"extent",void 0),(0,i.Cg)([(0,a.MZ)()],h.prototype,"filter",void 0),(0,i.Cg)([(0,a.MZ)()],h.prototype,"num",void 0),(0,i.Cg)([(0,a.MZ)()],h.prototype,"query",void 0),(0,i.Cg)([(0,a.MZ)()],h.prototype,"sortField",void 0),(0,i.Cg)([(0,a.MZ)()],h.prototype,"sortOrder",null),(0,i.Cg)([(0,a.MZ)()],h.prototype,"start",void 0),h=n=(0,i.Cg)([(0,a.$K)("esri.portal.PortalQueryParams")],h)},41318(e,t,r){r.d(t,{A:()=>c});var n=r(5482),i=r(49186),s=r(25482),o=r(91429);let l=class extends s.o{constructor(e){super(e),this.created=null,this.id=null,this.portal=null,this.title=null,this.username=null}get url(){const e=this.portal?.restUrl;return e?`${e}/content/users/${this.username}/${this.id}`:null}toJSON(){throw new i.A("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")}};(0,n.Cg)([(0,o.MZ)({type:Date})],l.prototype,"created",void 0),(0,n.Cg)([(0,o.MZ)()],l.prototype,"id",void 0),(0,n.Cg)([(0,o.MZ)()],l.prototype,"portal",void 0),(0,n.Cg)([(0,o.MZ)()],l.prototype,"title",void 0),(0,n.Cg)([(0,o.MZ)({readOnly:!0})],l.prototype,"url",null),(0,n.Cg)([(0,o.MZ)()],l.prototype,"username",void 0),l=(0,n.Cg)([(0,o.$K)("esri.portal.PortalFolder")],l);var a,u=r(96360);let c=a=class extends s.o{constructor(e){super(e),this.access=null,this.created=null,this.culture=null,this.description=null,this.email=null,this.fullName=null,this.id=null,this.modified=null,this.orgId=null,this.portal=null,this.preferredView=null,this.privileges=null,this.region=null,this.role=null,this.roleId=null,this.sourceJSON=null,this.units=null,this.username=null,this.userLicenseTypeId=null,this.userType=null}get thumbnailUrl(){const e=this.url,t=this.thumbnail;return e&&t?this.portal.normalizeUrl(`${e}/info/${t}?f=json`):null}get userContentUrl(){const e=this.portal?.restUrl;return e?`${e}/content/users/${this.id}`:null}get url(){const e=this.portal?.restUrl;return e?`${e}/community/users/${this.id}`:null}addItem(e){const t=e&&e.item,r=e?.data,n=e?.folder,i={method:"post"};t&&(i.query=t.createPostQuery(),null!=r&&("string"==typeof r?i.query.text=r:"object"==typeof r&&(i.query.text=JSON.stringify(r))));let s=this.userContentUrl;return n&&(s+="/"+("string"==typeof n?n:n.id)),this.portal.request(s+"/addItem",i).then(e=>(t.id=e.id,t.portal=this.portal,t.loaded?t.reload():t.load()))}async deleteItem(e,t=!1){let r=this.userContentUrl;e.ownerFolder&&(r+="/"+e.ownerFolder);const n=t?{permanentDelete:!0}:{};await this.portal.request(r+`/items/${e.id}/delete`,{method:"post",query:n}),e.id=null,e.portal=null}async deleteItems(e,t=!1){e=e.slice();const r=this.userContentUrl+"/deleteItems",n=[],s=e.map(e=>e.id);if(s.length){const o={method:"post",query:{items:s.join(","),permanentDelete:t}},l=await this.portal.request(r,o);for(const t of l.results){const r=e.find(e=>t.itemId===e.id),s=t.success;let o=null;s?(r.id=null,r.portal=null):t.error&&(o=new i.A("portal:delete-item-failed",t.error.message,t.error)),n.push({item:r,success:s,error:o})}}return n}fetchFolders(){return this.portal.request(this.userContentUrl??"",{query:{num:1}}).then(e=>{let t;return t=e&&e.folders?e.folders.map(e=>{const t=l.fromJSON(e);return t.portal=this.portal,t}):[],t})}fetchGroups(){return this.portal.request(this.url??"").then(e=>{let t;return t=e&&e.groups?e.groups.map(e=>{const t=u.A.fromJSON(e);return t.portal=this.portal,t}):[],t})}async fetchItems(e){e??={};let t=this.userContentUrl??"";e.folder&&(t+="/"+e.folder.id);const{default:n}=await r.e(812).then(r.bind(r,80812)),i={folders:!1,inRecycleBin:!!e.inRecycleBin||null,foldersContent:!(e.folder||!e.includeSubfolderItems)||null,num:e.num||10,start:e.start||1,sortField:e.sortField||"created",sortOrder:e.sortOrder||"asc"},s=await this.portal.request(t,{query:i});let o;return s?.items?(o=s.items.map(e=>{const t=n.fromJSON(e);return t.portal=this.portal,t}),await Promise.all(o.map(e=>e.load())),{items:o,nextStart:s.nextStart,total:s.total}):{items:[],nextStart:-1,total:0}}fetchTags(){return this.portal.request(this.url+"/tags").then(e=>e.tags)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}queryFavorites(e){return this.favGroupId?(this._favGroup||(this._favGroup=new u.A({id:this.favGroupId,portal:this.portal})),this._favGroup.queryItems(e)):Promise.reject(new i.A("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))}async restoreItem(e,t){const r=this.userContentUrl,n=t?{folderID:"string"==typeof t?t:t.id}:null;await this.portal.request(r+`/items/${e.id}/restore`,{method:"post",query:n})}toJSON(){throw new i.A("internal:not-yet-implemented","PortalUser.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");const t=new a({sourceJSON:e});return t.read(e),t}};(0,n.Cg)([(0,o.MZ)()],c.prototype,"access",void 0),(0,n.Cg)([(0,o.MZ)({type:Date})],c.prototype,"created",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"culture",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"description",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"email",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"favGroupId",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"fullName",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"id",void 0),(0,n.Cg)([(0,o.MZ)({type:Date})],c.prototype,"modified",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"orgId",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"portal",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"preferredView",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"privileges",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"region",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"role",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"roleId",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"sourceJSON",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"thumbnail",void 0),(0,n.Cg)([(0,o.MZ)({readOnly:!0})],c.prototype,"thumbnailUrl",null),(0,n.Cg)([(0,o.MZ)()],c.prototype,"units",void 0),(0,n.Cg)([(0,o.MZ)({readOnly:!0})],c.prototype,"userContentUrl",null),(0,n.Cg)([(0,o.MZ)({readOnly:!0})],c.prototype,"url",null),(0,n.Cg)([(0,o.MZ)()],c.prototype,"username",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"userLicenseTypeId",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"userType",void 0),c=a=(0,n.Cg)([(0,o.$K)("esri.portal.PortalUser")],c)},2272(e,t,r){r.d(t,{Dl:()=>u,gf:()=>p,jV:()=>a,lF:()=>c});var n=r(92602),i=r(70333),s=r(4718),o=r(84952),l=r(926);function a(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,o.An)(e):(0,s.o8)(e)}function c(e,t,r){const n={};for(const i in e){if("declaredClass"===i)continue;const s=e[i];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))n[i]=s.map(e=>c(e));else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(r?.[i]);n[i]=t?e:JSON.stringify(e)}else n[i]=t?s:JSON.stringify(s);else n[i]=s}return n}async function p(e,t,s){const o=function(e,t){return e?t&&(0,l.Qc)(e)?t:(0,l.getApiKey)(e)??i.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!i.id&&n.A.request.useIdentity&&await Promise.all([r.e(7632),r.e(6928),r.e(148)]).then(r.bind(r,50148));const a=await i.id.getCredential(e,s);return a?.token}},926(e,t,r){r.d(t,{Dd:()=>d,Jn:()=>h,Qc:()=>y,getApiKey:()=>c,getSessionToken:()=>p});var n=r(92602),i=r(11254),s=r(84952);const o=/^https?:\/\/(i?basemaps|basemapstyles)-api\.arcgis\.com\//i,l=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"]),a=new Map;let u=null;function c(e){if(!y(e))return null;const t=t=>t instanceof RegExp?t.test(e):"string"==typeof t&&e.startsWith(t),r=n.A.apiKeys;if(Array.isArray(r.scopes))for(const e of r.scopes)if(Array.isArray(e.urls)){if(e.urls.some(t))return e.token}else if(t(e.urls))return e.token;return r.basemapStyles&&o.test(e)?r.basemapStyles:n.A.apiKey&&/^https?:\/\/.+\.arcgis\.com(\/|$)/i.test(e)?n.A.apiKey:null}async function p(e){if(!n.A.sessions?.basemap?.enabled||!o.test(e))return null;const t=c(e);if(!t)return null;u&&await u;const{styleFamily:r="arcgis",autoRefresh:s,duration:l=43200}=n.A.sessions.basemap,p=`${t}:${r}`,d=a.get(p);if(d&&(!s||d.endTime>Date.now()))return d.sessionToken;let h;u=(0,i.A)("https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/sessions/start",{cacheBust:!0,query:{durationSeconds:l,styleFamily:r,token:t}});try{h=(await u).data,h.endTime-=5e3,a.set(p,h)}finally{u=null}return h.sessionToken}function d(){return null!=n.A.apiKey||null!=n.A.apiKeys.basemapStyles}function h(e,t){return t?y(e):null!=c(e)}function y(e){const t=(0,s.$z)(e,!0);return!!t&&!l.has(t)&&!e.endsWith("/sharing/rest/generateToken")}},94128(e,t,r){r.d(t,{D:()=>i,Z:()=>n});const n=Symbol("GraphicInstance");function i(e){return null!=e&&"object"==typeof e&&n in e}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[926,1695],{99719(e,t,r){r.d(t,{x:()=>n});class n{}},92400(e,t,r){r.d(t,{CU:()=>l,UQ:()=>o,fF:()=>i,o6:()=>s});var n=r(74887);class i{constructor(){}}function s(e,t,r){if(e instanceof i&&!(e instanceof l)){const n=new l;return n.fn=e,n.parameterEvaluator=r,n.context=t,n}return e}class o extends i{constructor(e){super(),this.fn=e}createFunction(e){return(...t)=>this.fn(e,{preparsed:!0,arguments:t})}call(e,t){return this.fn(e,t)}marshalledCall(e,t,r,o){return o(e,t,(t,a,u)=>{u=u.map(t=>t instanceof i&&!(t instanceof l)?s(t,e,o):t);const c=this.call(r,{args:u});return(0,n.$X)(c)?c.then(e=>s(e,r,o)):c})}}class l extends i{constructor(){super(...arguments),this.fn=null,this.context=null}createFunction(e){return this.fn.createFunction(this.context)}call(e,t){return this.fn.marshalledCall(e,t,this.context,this.parameterEvaluator)}marshalledCall(e,t,r){return this.fn.marshalledCall(e,t,this.context,this.parameterEvaluator)}}},93818(e,t,r){r.d(t,{A:()=>n});class n{constructor(e=[]){this._elements=e}length(){return this._elements.length}get(e){return this._elements[e]}toArray(){return this.slice()}slice(e=0,t=this.length()){const r=[];for(let n=e;n<t;n++)r.push(this.get(n));return r}}},7335(e,t,r){r.d(t,{A:()=>s});var n=r(93818),i=r(7320);class s extends n.A{constructor(e,t,r,n,i){super(e),this._lazyPath=[],this._hasZ=!1,this._hasM=!1,this._hasZ=r,this._hasM=n,this._spRef=t,this._cacheId=i}get(e){if(void 0===this._lazyPath[e]){const t=this._elements[e];if(void 0===t)return;this._lazyPath[e]=new i.A(t,this._spRef,this._hasZ,this._hasM,this._cacheId,e)}return this._lazyPath[e]}equalityTest(e){return e===this||null!==e&&e instanceof s!=0&&e.getUniqueHash()===this.getUniqueHash()}getUniqueHash(){return this._cacheId.toString()}}},7320(e,t,r){r.d(t,{A:()=>s});var n=r(93818),i=r(86738);class s extends n.A{constructor(e,t,r,n,i,s){super(e),this._lazyPt=[],this._hasZ=!1,this._hasM=!1,this._spRef=t,this._hasZ=r,this._hasM=n,this._cacheId=i,this._partId=s}get(e){if(void 0===this._lazyPt[e]){const t=this._elements[e];if(void 0===t)return;const r=new i.A(t[0],t[1],this._spRef);this._hasZ&&(r.z=t[2]),this._hasM&&(r.m=this._hasZ?t[3]:t[2]),r.cache._arcadeCacheId=this._cacheId.toString()+"-"+this._partId.toString()+"-"+e.toString(),this._lazyPt[e]=r}return this._lazyPt[e]}equalityTest(e){return e===this||null!==e&&e instanceof s!=0&&e.getUniqueHash()===this.getUniqueHash()}getUniqueHash(){return this._cacheId.toString()+"-"+this._partId.toString()}}},6800(e,t,r){r.d(t,{G:()=>a,y:()=>o});var n=r(99719),i=r(78878),s=r(54218);function o(e){l=e}let l;function a(e){return null===e?null:(0,i.e)(e)?e.clone():(0,i.d)(e)?e:(0,i.h)(e)?e.clone():(0,i.j)(e)?e.toArray().map(e=>a(e)):(0,s.cy)(e)?e.map(e=>a(e)):(0,i.k)(e)?l.createFromArcadeFeature(e):(0,i.l)(e)||(0,i.m)(e)?e:(0,i.n)(e)||"esri.arcade.Attachment"===e?.declaredClass?e.deepClone():("esri.arcade.Portal"===e?.declaredClass||(0,i.o)(e)||e instanceof n.x||(0,i.i)(e),e)}},33325(e,t,r){r.d(t,{$P:()=>c,At:()=>v,JB:()=>S,Lk:()=>p,Qi:()=>C,eB:()=>b,eg:()=>y,f0:()=>h,gO:()=>f,ik:()=>m,ke:()=>a,nE:()=>u,rX:()=>d,yT:()=>g});var n=r(66131),i=r(44729),s=r(15032),o=r(20437),l=r(92647);function a(e){return o.A.fromJSON(e.toJSON())}function u(e){return e.toJSON?e.toJSON():e}function c(e){return e instanceof Date}function p(e){return e instanceof l.c9}function d(e){return e instanceof n.lY}function h(e){return e instanceof i.n}function y(e){return e instanceof s.k}const f=1e3,m={point:"point",polygon:"polygon",polyline:"polyline",multipoint:"multipoint",extent:"extent",esriGeometryPoint:"point",esriGeometryPolygon:"polygon",esriGeometryPolyline:"polyline",esriGeometryMultipoint:"multipoint",esriGeometryEnvelope:"extent",envelope:"extent"},g={point:"esriGeometryPoint",polygon:"esriGeometryPolygon",polyline:"esriGeometryPolyline",multipoint:"esriGeometryMultipoint",extent:"esriGeometryEnvelope",esriGeometryPoint:"esriGeometryPoint",esriGeometryPolygon:"esriGeometryPolygon",esriGeometryPolyline:"esriGeometryPolyline",esriGeometryMultipoint:"esriGeometryMultipoint",esriGeometryEnvelope:"esriGeometryEnvelope",envelope:"esriGeometryEnvelope"},v={"small-integer":"esriFieldTypeSmallInteger",integer:"esriFieldTypeInteger",long:"esriFieldTypeLong",single:"esriFieldTypeSingle",double:"esriFieldTypeDouble",string:"esriFieldTypeString",date:"esriFieldTypeDate","date-only":"esriFieldTypeDateOnly","time-only":"esriFieldTypeTimeOnly","timestamp-offset":"esriFieldTypeTimestampOffset",oid:"esriFieldTypeOID",geometry:"esriFieldTypeGeometry",blob:"esriFieldTypeBlob",raster:"esriFieldTypeRaster",guid:"esriFieldTypeGUID","global-id":"esriFieldTypeGlobalID",xml:"esriFieldTypeXML","big-integer":"esriFieldTypeBigInteger",esriFieldTypeSmallInteger:"esriFieldTypeSmallInteger",esriFieldTypeInteger:"esriFieldTypeInteger",esriFieldTypeLong:"esriFieldTypeLong",esriFieldTypeSingle:"esriFieldTypeSingle",esriFieldTypeDouble:"esriFieldTypeDouble",esriFieldTypeString:"esriFieldTypeString",esriFieldTypeDate:"esriFieldTypeDate",esriFieldTypeDateOnly:"esriFieldTypeDateOnly",esriFieldTypeTimeOnly:"esriFieldTypeTimeOnly",esriFieldTypeTimestampOffset:"esriFieldTypeTimestampOffset",esriFieldTypeOID:"esriFieldTypeOID",esriFieldTypeGeometry:"esriFieldTypeGeometry",esriFieldTypeBlob:"esriFieldTypeBlob",esriFieldTypeRaster:"esriFieldTypeRaster",esriFieldTypeGUID:"esriFieldTypeGUID",esriFieldTypeGlobalID:"esriFieldTypeGlobalID",esriFieldTypeXML:"esriFieldTypeXML",esriFieldTypeBigInteger:"esriFieldTypeBigInteger"};function C(e){return void 0===e?"":e=(e=(e=e.replace(/\/featureserver\/[0-9]*/i,"/FeatureServer")).replace(/\/mapserver\/[0-9]*/i,"/MapServer")).split("?")[0]}function S(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const r="boolean"==typeof t.cycles&&t.cycles,n=t.cmp&&(i=t.cmp,function(e){return function(t,r){const n={key:t,value:e[t]},s={key:r,value:e[r]};return i(n,s)}});var i;const s=[];return function e(t){if(t?.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===t)return;if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);let i,o;if(Array.isArray(t)){for(o="[",i=0;i<t.length;i++)i&&(o+=","),o+=e(t[i])||"null";return o+"]"}if(null===t)return"null";if(s.includes(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const l=s.push(t)-1,a=Object.keys(t).sort(n?.(t));for(o="",i=0;i<a.length;i++){const r=a[i],n=e(t[r]);n&&(o&&(o+=","),o+=JSON.stringify(r)+":"+n)}return s.splice(l,1),"{"+o+"}"}(e)}function b(e){switch(e.type){case"catalog-footprint":case"catalog":case"csv":case"feature":case"geojson":case"knowledge-graph-sublayer":case"oriented-imagery":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}},78878(e,t,r){r.d(t,{$:()=>G,A:()=>x,B:()=>te,C:()=>Te,D:()=>ve,E:()=>we,F:()=>Ne,G:()=>Pe,H:()=>ge,I:()=>_,J:()=>E,K:()=>je,L:()=>re,M:()=>J,N:()=>_e,O:()=>R,P:()=>me,Q:()=>oe,R:()=>P,S:()=>ne,T:()=>Re,U:()=>Be,V:()=>ke,W:()=>Qe,X:()=>Ue,Y:()=>Ce,Z:()=>j,_:()=>Q,a:()=>Ge,a0:()=>Le,a1:()=>de,a2:()=>Ee,a3:()=>De,a4:()=>Me,a5:()=>Se,a6:()=>be,b:()=>Je,c:()=>ce,d:()=>q,e:()=>Y,f:()=>W,g:()=>X,h:()=>k,i:()=>I,j:()=>H,k:()=>B,l:()=>V,m:()=>L,n:()=>$,o:()=>z,p:()=>Ke,q:()=>U,r:()=>fe,s:()=>pe,t:()=>he,u:()=>ae,v:()=>F,w:()=>ue,x:()=>xe,y:()=>K,z:()=>D});var n=r(92602),i=r(70333),s=r(66131),o=r(99719),l=r(85935),a=r(92400),u=r(93818),c=r(7335),p=r(7320),d=r(33325),h=r(14607),y=r(44729),f=r(15032),m=r(5443),g=r(91075),v=r(48526),C=r(86738),S=r(39829),b=r(82799),M=r(16930),Z=r(95108),A=r(65864),T=r(73444),O=r(54218),w=r(92647),N=r(94128);class P{constructor(e){this.value=e}}class _{constructor(e){this.value=e}}const F={type:"VOID"},D=Symbol("BREAK"),x=Symbol("CONTINUE");function G(e,t,r){return""===t||null==t||t===r||t===r?e:e=e.split(t).join(r)}function I(e){return e instanceof a.fF}function J(e){return e instanceof o.x}function q(e){return!!((0,O.Kg)(e)||(0,O.Et)(e)||Y(e)||W(e)||X(e)||(0,O.Lm)(e)||null===e||e===F)}function E(e,t){return void 0===e?t:e}function R(e){return null==e?"":(0,O.cy)(e)||H(e)?"Array":Y(e)?"Date":X(e)?"Time":W(e)?"DateOnly":(0,O.Kg)(e)?"String":(0,O.Lm)(e)?"Boolean":(0,O.Et)(e)?"Number":"esri.arcade.Attachment"===e?.declaredClass?"Attachment":"esri.arcade.Portal"===e?.declaredClass?"Portal":"esri.arcade.Dictionary"===e?.declaredClass?"Dictionary":z(e)?"KnowledgeGraph":e instanceof o.x?"Module":B(e)?"Feature":e instanceof C.A?"Point":e instanceof S.A?"Polygon":e instanceof b.A?"Polyline":e instanceof v.A?"Multipoint":e instanceof m.A?"Extent":I(e)?"Function":L(e)?"FeatureSet":V(e)?"FeatureSetCollection":j(e)?"Voxel":Q(e)?"Pixel":e===F?"":"number"==typeof e&&isNaN(e)?"Number":"Unrecognized Type"}function U(e){return e===F}function k(e){return e instanceof g.A}function B(e){return"esri.arcade.Feature"===e?.arcadeDeclaredClass}function j(e){return"esri.arcade.Voxel"===e?.arcadeDeclaredClass}function Q(e){return"esri.arcade.Pixel"===e?.arcadeDeclaredClass}function L(e){return"esri.arcade.featureset.support.FeatureSet"===e?.declaredRootClass}function $(e){return"esri.arcade.Dictionary"===e?.declaredClass}function K(e){return $(e)||B(e)||j(e)||Q(e)}function V(e){return"esri.arcade.featureSetCollection"===e?.declaredRootClass}function z(e){return"esri.rest.knowledgeGraph.KnowledgeGraph"===e?.declaredClass}function H(e){return e instanceof u.A}function Y(e){return e instanceof s.lY}function W(e){return e instanceof y.n}function X(e){return e instanceof f.k}function ee(e){return null!=e&&"object"==typeof e}function te(e,t,r,n,i){if(e.length<t||e.length>r)throw new l.D$(n,"WrongNumberOfParameters",i)}function re(e){return null==e||U(e)||""===e}function ne(e){return e<0?-Math.round(-e):Math.round(e)}function ie(e,t){return isNaN(e)||null==t||""===t?e.toString():(t=G(t,"‰",""),t=G(t,"¤",""),(0,h.GP)(e,{pattern:t}))}function se(e,t){return null==t||""===t?e.toISOString(!0):e.toFormat(oe(t),{locale:(0,T.JK)(),numberingSystem:"latn"})}function oe(e,t=!1){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let r="";const n=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|Z{1,5}|.)/g;for(const i of e.match(n)||[])switch(i){case"D":r+="d";break;case"DD":r+="dd";break;case"DDD":r+="o";break;case"d":r+="c";break;case"ddd":r+="ccc";break;case"dddd":r+="cccc";break;case"M":r+="L";break;case"MM":r+="LL";break;case"MMM":r+="LLL";break;case"MMMM":r+="LLLL";break;case"YY":r+="yy";break;case"Y":case"YYYY":r+="yyyy";break;case"Q":r+="q";break;case"Z":r+="Z";break;case"ZZ":r+="ZZ";break;case"ZZZ":r+="ZZZ";break;case"ZZZZ":r+=t?"[ZZZZ]":"ZZZZ";break;case"ZZZZZ":r+=t?"[ZZZZZ]":"ZZZZZ";break;case"S":r+="'S'";break;case"SS":r+="'SS'";break;case"SSS":r+="u";break;case"A":case"a":r+="a";break;case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":case"X":case"x":r+=i;break;default:i.length>=2&&i.startsWith("[")&&i.endsWith("]")?r+=`'${i.slice(1,-1)}'`:r+=`'${i}'`}return r}function le(e,t,r){switch(r){case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}return!1}function ae(e,t,r){if(null===e){if(null===t||t===F)return le(null,null,r);if((0,O.Et)(t))return le(0,t,r);if((0,O.Kg)(t))return le(0,fe(t),r);if((0,O.Lm)(t))return le(0,fe(t),r);if(Y(t))return le(0,t.toNumber(),r);if(X(t))return le(e,t.toNumber(),r);if(W(t))return le(e,t.toNumber(),r)}if(e===F){if(null===t||t===F)return le(null,null,r);if((0,O.Et)(t))return le(0,t,r);if((0,O.Kg)(t))return le(0,fe(t),r);if((0,O.Lm)(t))return le(0,fe(t),r);if(Y(t))return le(0,t.toNumber(),r);if(X(t))return le(e,t.toNumber(),r);if(W(t))return le(e,t.toNumber(),r)}else if((0,O.Et)(e)){if((0,O.Et)(t))return le(e,t,r);if((0,O.Lm)(t))return le(e,fe(t),r);if(null===t||t===F)return le(e,0,r);if((0,O.Kg)(t))return le(e,fe(t),r);if(Y(t))return le(e,t.toNumber(),r);if(X(t))return le(e,t.toNumber(),r);if(W(t))return le(e,t.toNumber(),r)}else if((0,O.Kg)(e)){if((0,O.Kg)(t))return le(pe(e),pe(t),r);if(Y(t))return le(fe(e),t.toNumber(),r);if(X(t))return le(fe(e),t.toNumber(),r);if(W(t))return le(fe(e),t.toNumber(),r);if((0,O.Et)(t))return le(fe(e),t,r);if(null===t||t===F)return le(fe(e),0,r);if((0,O.Lm)(t))return le(fe(e),fe(t),r)}else if(Y(e)){if(Y(t))return e.timeZone!==t.timeZone&&(e.isUnknownTimeZone?e=s.lY.arcadeDateAndZoneToArcadeDate(e,t.timeZone):t.isUnknownTimeZone&&(t=s.lY.arcadeDateAndZoneToArcadeDate(t,e.timeZone))),le(e.toNumber(),t.toNumber(),r);if(null===t||t===F)return le(e.toNumber(),0,r);if((0,O.Et)(t))return le(e.toNumber(),t,r);if((0,O.Lm)(t))return le(e.toNumber(),fe(t),r);if((0,O.Kg)(t))return le(e.toNumber(),fe(t),r);if(X(t))throw new l.D$(null,"CannotCompareDateAndTime",null);if(W(t))return le(e.toNumber(),t.toNumber(),r)}else if((0,O.Lm)(e)){if((0,O.Lm)(t))return le(e,t,r);if((0,O.Et)(t))return le(fe(e),fe(t),r);if(Y(t))return le(fe(e),t.toNumber(),r);if(X(t))return le(fe(e),t.toNumber(),r);if(W(t))return le(fe(e),t.toNumber(),r);if(null===t||t===F)return le(fe(e),0,r);if((0,O.Kg)(t))return le(fe(e),fe(t),r)}else if(W(e)){if(Y(t))return le(e.toNumber(),t.toNumber(),r);if(null===t||t===F)return le(e.toNumber(),0,r);if((0,O.Et)(t))return le(e.toNumber(),t,r);if((0,O.Lm)(t))return le(e.toNumber(),fe(t),r);if((0,O.Kg)(t))return le(e.toNumber(),fe(t),r);if(X(t))throw new l.D$(null,"CannotCompareDateAndTime",null);if(W(t))return le(e.toNumber(),t.toNumber(),r)}else if(X(e)){if(Y(t))throw new l.D$(null,"CannotCompareDateAndTime",null);if(null===t||t===F)return le(e.toNumber(),0,r);if((0,O.Et)(t))return le(e.toNumber(),t,r);if((0,O.Lm)(t))return le(e.toNumber(),fe(t),r);if((0,O.Kg)(t))return le(e.toNumber(),fe(t),r);if(X(t))return le(e.toNumber(),t.toNumber(),r);if(W(t))throw new l.D$(null,"CannotCompareDateAndTime",null)}return!!ue(e,t)&&("<="===r||">="===r)}function ue(e,t){if(e===t)return!0;if(null===e&&t===F||null===t&&e===F)return!0;if(Y(e)&&Y(t))return e.equals(t);if(X(e)&&X(t))return e.equals(t);if(W(e)&&W(t))return e.equals(t);if(e instanceof c.A)return e.equalityTest(t);if(e instanceof p.A)return e.equalityTest(t);if(e instanceof C.A&&t instanceof C.A){const r=e.cache._arcadeCacheId,n=t.cache._arcadeCacheId;if(null!=r)return r===n}if(ee(e)&&ee(t)){if(e._arcadeCacheId===t._arcadeCacheId&&void 0!==e._arcadeCacheId&&null!==e._arcadeCacheId)return!0;if(e._underlyingGraphic===t._underlyingGraphic&&void 0!==e._underlyingGraphic&&null!==e._underlyingGraphic)return!0}return!1}function ce(e,{useNumbersForDates:t}){let r="";for(const n in e){""!==r&&(r+=",");const i=e[n];null==i?r+=JSON.stringify(n)+":null":(0,O.Lm)(i)||(0,O.Et)(i)||(0,O.Kg)(i)?r+=JSON.stringify(n)+":"+JSON.stringify(i):k(i)?r+=JSON.stringify(n)+":"+he(i):X(i)||W(i)?r+=`${JSON.stringify(n)}:${JSON.stringify(i.toString())}`:H(i)||Array.isArray(i)?r+=JSON.stringify(n)+":"+he(i,null,t):Y(i)?r+=t?JSON.stringify(n)+":"+JSON.stringify(i.getTime()):JSON.stringify(n)+":"+i.stringify():null!==i&&"object"==typeof i&&"castToText"in i&&(r+=JSON.stringify(n)+":"+i.castToText(t))}return"{"+r+"}"}function pe(e,t){if((0,O.Kg)(e))return e;if(null===e)return"";if((0,O.Et)(e))return ie(e,t);if((0,O.Lm)(e))return e.toString();if(Y(e))return se(e,t);if(X(e))return e.toFormat(t);if(W(e))return e.toFormat(t);if(e instanceof g.A)return JSON.stringify(e.toJSON());if((0,O.cy)(e)){const t=[];for(let r=0;r<e.length;r++)t[r]=ye(e[r]);return"["+t.join(",")+"]"}if(e instanceof u.A){const t=[];for(let r=0;r<e.length();r++)t[r]=ye(e.get(r));return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText():I(e)?"object, Function":e===F?"":J(e)?"object, Module":""}function de(e){const t=[];if(e instanceof u.A){for(let r=0;r<e.length();r++)t[r]=fe(e.get(r));return t}if(!(0,O.cy)(e))return null;for(let r=0;r<e.length;r++)t[r]=fe(e[r]);return t}function he(e,t,r=!1){if((0,O.Kg)(e))return e;if(null===e)return"";if((0,O.Et)(e))return ie(e,t);if((0,O.Lm)(e))return e.toString();if(Y(e))return se(e,t);if(X(e))return e.toFormat(t);if(W(e))return e.toFormat(t);if(e instanceof g.A)return e instanceof m.A?'{"xmin":'+e.xmin.toString()+',"ymin":'+e.ymin.toString()+","+(e.hasZ?'"zmin":'+e.zmin.toString()+",":"")+(e.hasM?'"mmin":'+e.mmin.toString()+",":"")+'"xmax":'+e.xmax.toString()+',"ymax":'+e.ymax.toString()+","+(e.hasZ?'"zmax":'+e.zmax.toString()+",":"")+(e.hasM?'"mmax":'+e.mmax.toString()+",":"")+'"spatialReference":'+Ae(e.spatialReference)+"}":Ae(e.toJSON(),(e,t)=>e.key===t.key?0:"spatialReference"===e.key?1:"spatialReference"===t.key||e.key<t.key?-1:e.key>t.key?1:0);if((0,O.cy)(e)){const t=[];for(let n=0;n<e.length;n++)t[n]=ye(e[n],r);return"["+t.join(",")+"]"}if(e instanceof u.A){const t=[];for(let n=0;n<e.length();n++)t[n]=ye(e.get(n),r);return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText(r):I(e)?"object, Function":e===F?"":J(e)?"object, Module":""}function ye(e,t=!1){if(null===e)return"null";if((0,O.Lm)(e)||(0,O.Kg)(e))return JSON.stringify(e);if((0,O.Et)(e))return e.toString();if(e instanceof g.A)return he(e,null,t);if(e instanceof u.A)return he(e,null,t);if(Array.isArray(e))return he(e,null,t);if(Y(e))return t?JSON.stringify(e.getTime()):JSON.stringify(se(e,""));if(X(e))return JSON.stringify(e.toString());if(W(e))return JSON.stringify(e.toString());if(null!==e&&"object"==typeof e){if("castToText"in e)return e.castToText(t)}else if(e===F)return"null";return"null"}function fe(e,t){return(0,O.Et)(e)?e:null===e||""===e?0:Y(e)||W(e)||X(e)?NaN:(0,O.Lm)(e)?e?1:0:(0,O.cy)(e)||""===e||void 0===e?NaN:void 0!==t&&(0,O.Kg)(e)?(t=G(t,"‰",""),t=G(t,"¤",""),(0,h.qg)(e,{pattern:t})):e===F?0:Number(e)}function me(e,t){if(Y(e))return e;if((0,O.Kg)(e)){const r=function(e,t){const r=/ (\d\d)/,n=(0,s.mT)(t);let i=w.c9.fromISO(e,{zone:n});return i.isValid||r.test(e)&&(e=e.replace(r,"T$1"),i=w.c9.fromISO(e,{zone:t}),i.isValid)?i:null}(e,t);if(r)return s.lY.dateTimeToArcadeDate(r)}return null}function ge(e){return(0,O.Lm)(e)?e:(0,O.Kg)(e)?"true"===(e=e.toLowerCase()):!!(0,O.Et)(e)&&0!==e&&!isNaN(e)}function ve(e,t){return null==e?null:(null!==e.spatialReference&&void 0!==e.spatialReference||(e.spatialReference=t),e)}function Ce(e){if(null===e)return null;if(e instanceof C.A)return"NaN"===e.x||null===e.x||isNaN(e.x)?null:e;if(e instanceof S.A){if(0===(e.curveRings??e.rings).length)return null;for(const t of e.curveRings??e.rings)if(t.length>0)return e;return null}if(e instanceof b.A){if(0===(e.curvePaths??e.paths).length)return null;for(const t of e.curvePaths??e.paths)if(t.length>0)return e;return null}return e instanceof v.A?0===e.points.length?null:e:e instanceof m.A?"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)?null:e:null}function Se(e,t){if(!e)return t;if(!e.domain)return t;let r=null,n=null;if(Y(t))r=t.toNumber();else if(W(t))r=t.toString();else if(X(t))r=t.toStorageString();else if("string"===e.field.type||"esriFieldTypeString"===e.field.type)r=pe(t);else{if(null==t)return null;if(""===t)return t;r=fe(t)}for(let t=0;t<e.domain.codedValues.length;t++){const i=e.domain.codedValues[t];i.code===r&&(n=i)}return null===n?pe(t):n.name}function be(e,t){if(!e)return t;if(!e.domain)return t;let r=null;const n=pe(t);for(let t=0;t<e.domain.codedValues.length;t++){const i=e.domain.codedValues[t];i.name===n&&(r=i)}return null===r?t:r.code}function Me(e,t,r=null,n=null){if(!t)return null;if(!t.fields)return null;let i,s,o=null;for(let r=0;r<t.fields.length;r++){const n=t.fields[r];n.name.toLowerCase()===e.toString().toLowerCase()&&(o=n)}if(null===o)throw new l.D$(null,"FieldNotFound",null,{key:e});let a=t.typeIdField,u="id",c=t.types;if(t.subtypeField&&(a=t.subtypeField,u="code",c=t.subtypes??[]),null===n&&r&&a)n=r.hasField(a)?r.field(a):null;else if(a&&null!==n){let e=!1;for(const t of c||[])if(n===t[u]){e=!0;break}if(!e)for(const t of c||[])if(n===t.name){n=t[u],e=!0;break}e||(n=null,r&&a&&(n=r.hasField(a)?r.field(a):null))}return null!=n&&c.some(e=>e[u]===n&&(i=e.domains?.[o.name],i&&"inherited"===i.type&&(i=Ze(o.name,t),s=!0),!0)),s||i||(i=Ze(e,t)),{field:o,domain:i}}function Ze(e,t){let r;return t.fields.some(t=>(t.name.toLowerCase()===e.toLowerCase()&&(r=t.domain),!!r)),r}function Ae(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const r="boolean"==typeof t.cycles&&t.cycles,n=t.cmp&&(i=t.cmp,function(e){return function(t,r){const n={key:t,value:e[t]},s={key:r,value:e[r]};return i(n,s)}});var i;const s=[];return function e(t){if(t?.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===t)return;if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);let i,o;if(Array.isArray(t)){for(o="[",i=0;i<t.length;i++)i&&(o+=","),o+=e(t[i])||"null";return o+"]"}if(null===t)return"null";if(s.includes(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const l=s.push(t)-1,a=Object.keys(t).sort(n?.(t));for(o="",i=0;i<a.length;i++){const r=a[i],n=e(t[r]);n&&(o&&(o+=","),o+=JSON.stringify(r)+":"+n)}return s.splice(l,1),"{"+o+"}"}(e)}function Te(e){if(null===e)return null;const t=[];for(const r of e)B(r)?t.push(r.geometry()):t.push(r);return t}function Oe(e,t){if(!(t instanceof C.A))throw new l.D$(null,"InvalidParameter",null);e.push(t.hasZ?t.hasM?[t.x,t.y,t.z,t.m]:[t.x,t.y,t.z]:[t.x,t.y])}function we(e,t){if((0,O.cy)(e)||H(e)){let r=!1,n=!1,i=[],s=t;if((0,O.cy)(e)){for(const t of e)Oe(i,t);i.length>0&&(s=e[0].spatialReference,r=e[0].hasZ,n=e[0].hasM)}else if(e instanceof p.A)i=e._elements,i.length>0&&(r=e._hasZ,n=e._hasM,s=e.get(0).spatialReference);else{if(!H(e))throw new l.D$(null,"InvalidParameter",null);for(const t of e.toArray())Oe(i,t);i.length>0&&(s=e.get(0).spatialReference,r=!0===e.get(0).hasZ,n=!0===e.get(0).hasM)}return 0===i.length?null:((0,Z.$3)(i)||(i=i.slice().reverse()),new S.A({rings:[i],spatialReference:s,hasZ:r,hasM:n}))}return e}function Ne(e,t){if((0,O.cy)(e)||H(e)){let r=!1,n=!1,i=[],s=t;if((0,O.cy)(e)){for(const t of e)Oe(i,t);i.length>0&&(s=e[0].spatialReference,r=!0===e[0].hasZ,n=!0===e[0].hasM)}else if(e instanceof p.A)i=e._elements,i.length>0&&(r=e._hasZ,n=e._hasM,s=e.get(0).spatialReference);else if(H(e)){for(const t of e.toArray())Oe(i,t);i.length>0&&(s=e.get(0).spatialReference,r=!0===e.get(0).hasZ,n=!0===e.get(0).hasM)}return 0===i.length?null:new b.A({paths:[i],spatialReference:s,hasZ:r,hasM:n})}return e}function Pe(e,t){if((0,O.cy)(e)||H(e)){let r=!1,n=!1,i=[],s=t;if((0,O.cy)(e)){for(const t of e)Oe(i,t);i.length>0&&(s=e[0].spatialReference,r=!0===e[0].hasZ,n=!0===e[0].hasM)}else if(e instanceof p.A)i=e._elements,i.length>0&&(r=e._hasZ,n=e._hasM,s=e.get(0).spatialReference);else if(H(e)){for(const t of e.toArray())Oe(i,t);i.length>0&&(s=e.get(0).spatialReference,r=!0===e.get(0).hasZ,n=!0===e.get(0).hasM)}return 0===i.length?null:new v.A({points:i,spatialReference:s,hasZ:r,hasM:n})}return e}function _e(e,t=!0){if(null==e)return[];if((0,O.cy)(e)){const r=[];for(const n of e){const e=pe(n);(t||""!==e)&&r.push(e)}return r}if(H(e)){const r=[];for(let n=0;n<e.length();n++){const i=pe(e.get(n));(t||""!==i)&&r.push(i)}return r}if(q(e)){const r=pe(e);if(t||""!==r)return[r]}return[]}let Fe=0;function De(){return Fe++,Fe%100==0?(Fe=0,new Promise(e=>{setTimeout(()=>{e()},0)})):Promise.resolve()}function xe(e,t,r){switch(r){case"&":return e&t;case"|":return e|t;case"^":return e^t;case"<<":return e<<t;case">>":return e>>t;case">>>":return e>>>t}}function Ge(e,t=null){return null==e?null:(0,O.Lm)(e)||(0,O.Et)(e)||(0,O.Kg)(e)?e:e instanceof g.A?!0===t?.keepGeometryType?e:e.toJSON():e instanceof u.A?e.toArray().map(e=>Ge(e,t)):Array.isArray(e)?e.map(e=>Ge(e,t)):(0,O.$P)(e)?e:Y(e)?e.toJSDate():X(e)?e.toString():W(e)?e.toJSDate():null!==e&&"object"==typeof e&&void 0!==e.castAsJson?e.castAsJson(t):null}async function Ie(e,t,r,n,i){const s=await Je(e,t,r);i[n]=s}async function Je(e,t=null,r=null){if(e instanceof u.A&&(e=e.toArray()),null==e)return null;if(q(e)||e instanceof g.A||(0,O.$P)(e)||Y(e))return Ge(e,r);if(Array.isArray(e)){const n=[],i=[];for(const s of e)null===s||q(s)||s instanceof g.A||(0,O.$P)(s)||Y(s)?i.push(Ge(s,r)):(i.push(null),n.push(Ie(s,t,r,i.length-1,i)));return n.length>0&&await Promise.all(n),i}return null!==e&&"object"==typeof e&&void 0!==e.castAsJsonAsync?e.castAsJsonAsync(t,r):null}function qe(e){return Ee(e)?e.parent:e}function Ee(e){return e&&"declaredClass"in e&&"esri.layers.support.SubtypeSublayer"===e.declaredClass}function Re(e,t,r){const n=qe(e.fullSchema());return null===n?null:n.fields?Me(t,n,e,r):null}function Ue(e){const t=qe(e.fullSchema());return null===t?null:t.fields?t.subtypeField?{subtypeField:t.subtypeField,subtypes:t.subtypes?t.subtypes.map(e=>({name:e.name,code:e.code})):[]}:t.typeIdField?{subtypeField:t.typeIdField,subtypes:t.types?t.types.map(e=>({name:e.name,code:e.id})):[]}:null:null}function ke(e,t,r,n){const i=qe(e.fullSchema());if(null===i)return null;if(!i.fields)return null;const s=Me(t,i,e,n);if(void 0===r)try{r=e.field(t)}catch(e){return null}return Se(s,r)}function Be(e,t,r,n){const i=qe(e.fullSchema());if(null===i)return null;if(!i.fields)return null;if(void 0===r){try{r=e.field(t)}catch(e){return null}return r}return be(Me(t,i,e,n),r)}function je(e){return e?.timeZone??"system"}function Qe(e){const t=qe(e.fullSchema());if(null===t)return null;if(!t.fields)return null;const r=[];for(const e of t.fields)r.push((0,d.nE)(e));return{objectIdField:t.objectIdField,globalIdField:t.globalIdField??"",geometryType:void 0===d.yT[t.geometryType]?"":d.yT[t.geometryType],fields:r}}function Le(e,t){const r=s.lY.systemTimeZoneCanonicalName;return"system"===e&&(e=r),{version:$e,engineVersion:i.rE,timeZone:e,userTimeZone:r,spatialReference:t instanceof M.A?t.toJSON():t,application:n.A.applicationName??"",engine:"web",locale:(0,T.JK)()}}const $e="1.35",Ke=Object.freeze(Object.defineProperty({__proto__:null,ImplicitResult:_,ReturnResult:P,absRound:ne,arcadeVersion:$e,autoCastArrayOfPointsToMultiPoint:Pe,autoCastArrayOfPointsToPolygon:we,autoCastArrayOfPointsToPolyline:Ne,autoCastFeatureToGeometry:Te,binaryOperator:xe,breakResult:D,castAsJson:Ge,castAsJsonAsync:Je,castRecordToText:ce,continueResult:x,defaultExecutingContext:Le,defaultTimeZone:je,defaultUndefined:E,equalityTest:ue,featureDomainCodeLookup:Be,featureDomainValueLookup:ke,featureFullDomain:Re,featureSchema:Qe,featureSubtypes:Ue,fixNullGeometry:Ce,fixSpatialReference:ve,formatDate:se,formatNumber:ie,getDomain:Me,getDomainCode:be,getDomainValue:Se,getType:R,greaterThanLessThan:ae,isArray:O.cy,isBoolean:O.Lm,isDate:Y,isDateOnly:W,isDictionary:$,isDictionaryLike:K,isEmpty:re,isFeature:B,isFeatureSet:L,isFeatureSetCollection:V,isFunctionParameter:I,isGeometry:k,isGraphic:N.D,isImmutableArray:H,isInteger:O.Fq,isJsDate:O.$P,isKnowledgeGraph:z,isModule:J,isNumber:O.Et,isObject:ee,isPixel:Q,isSimpleType:q,isString:O.Kg,isSubtypeGrouplayer:function(e){return e&&"declaredClass"in e&&"esri.layers.SubtypeGroupLayer"===e.declaredClass},isSubtypeSublayer:Ee,isTime:X,isVoid:U,isVoxel:j,multiReplace:G,parseGeometryFromJson:function(e,t){const r=JSON.parse(e);return r&&!r.spatialReference&&(r.spatialReference=t),(0,A.rS)(r)},pcCheck:te,stableStringify:Ae,standardiseDateFormat:oe,tick:De,toBoolean:ge,toDate:me,toNumber:fe,toNumberArray:de,toString:pe,toStringArray:_e,toStringExplicit:he,voidOperation:F},Symbol.toStringTag,{value:"Module"}))},92474(e,t,r){r.d(t,{WV:()=>d,Zm:()=>y,x_:()=>h});var n=r(5482),i=r(49186),s=r(97768),o=r(61893),l=r(74887),a=r(67076),u=r(10107),c=r(64108);const p="loaded",d=e=>{const t=e;let r=class extends t{constructor(...e){super(...e),this._loadController=null,this.loadError=null,this.loadStatus="not-loaded",this._set("loadWarnings",[]),this.addResolvingPromise(new Promise(e=>{const t=this.load.bind(this);this.load=r=>{const n=new Promise((e,t)=>{const n=(0,l.NY)(r,t);this.destroyed&&t(new i.A("load:instance-destroyed",`Instance of '${this.declaredClass||this.constructor.name}' is already destroyed`,{instance:this})),this.when(e,t).finally(()=>{n&&n.remove()})});if("not-loaded"===this.loadStatus){this._set("loadStatus","loading");const e=this._loadController=new AbortController;t({signal:e.signal})}return e(),n}})),this.when(()=>{this._set("loadStatus",p),this._loadController=null},e=>{this.destroyed||(this._set("loadStatus","failed"),this._set("loadError",e),this._loadController=null)})}destroy(){this._loadController&&(this._loadController=(0,s.DC)(this._loadController),this._promiseProps.abort()),this._set("loadError",null),this._set("loadWarnings",[])}get loaded(){return this.loadStatus===p}get loadWarnings(){return this._get("loadWarnings")}load(e){return null}cancelLoad(){return this.isFulfilled()||(this._set("loadError",new i.A("load:cancelled","Cancelled")),this._loadController?.abort(),this._promiseProps.abort()),this}};return(0,n.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"loaded",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"loadError",void 0),(0,n.Cg)([(0,u.MZ)({clonable:!1})],r.prototype,"loadStatus",void 0),(0,n.Cg)([(0,u.MZ)({type:[a.A],readOnly:!0})],r.prototype,"loadWarnings",null),r=(0,n.Cg)([(0,c.$)("esri.core.Loadable")],r),r},h=d(o.Z);function y(e){return!(!e||!e.load)}},61893(e,t,r){r.d(t,{Z:()=>c,g:()=>u});var n=r(5482),i=r(69622),s=r(36563),o=r(74887),l=r(64108);class a{constructor(){this._resolver=(0,o.Tw)(),this._status=0,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=1,this._cleanUp()},()=>{this._status=2,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(e){this._resolvingPromises.push(e),this._tryResolve()}isResolved(){return 1===this._status}isRejected(){return 2===this._status}isFulfilled(){return 0!==this._status}abort(){this._resolver.reject((0,o.NK)())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;const e=(0,o.Tw)(),t=[...this._resolvingPromises,e.promise],r=this._allPromise=Promise.all(t);r.then(()=>{this.isFulfilled()||this._allPromise!==r||this._resolver.resolve()},e=>{this.isFulfilled()||this._allPromise!==r||(0,o.zf)(e)||this._resolver.reject(e)}),e.resolve()}}const u=e=>{const t=e;let r=class extends t{constructor(...e){super(...e),this._promiseProps=new a,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(e,t){return this._promiseProps.promise.then(()=>this).then(e,t)}catch(e){return this.when(null,e)}addResolvingPromise(e){e&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in e?e.when():e)}addResolvingTask(e){e&&!this._promiseProps.isFulfilled()&&(this.addHandles((0,s.rE)(e)),this._promiseProps.addResolvingPromise(e.promise))}};return r=(0,n.Cg)([(0,l.$)("esri.core.Promise")],r),r},c=u(i.A)},14607(e,t,r){r.d(t,{B:()=>u,GP:()=>l,qg:()=>c});var n=r(799),i=r(73444);const s={ar:[".",","],bg:[","," "],bs:[",","."],ca:[",","."],cs:[","," "],da:[",","."],de:[",","."],"de-ch":[".","’"],el:[",","."],en:[".",","],"en-au":[".",","],es:[",","."],"es-mx":[".",","],et:[","," "],fi:[","," "],fr:[","," "],"fr-ch":[","," "],he:[".",","],hi:[".",",","#,##,##0.###"],hr:[",","."],hu:[","," "],id:[",","."],it:[",","."],"it-ch":[".","’"],ja:[".",","],ko:[".",","],lt:[","," "],lv:[","," "],mk:[",","."],nb:[","," "],nl:[",","."],no:[","," "],pl:[","," "],pt:[",","."],"pt-pt":[","," "],ro:[",","."],ru:[","," "],sk:[","," "],sl:[",","."],sr:[",","."],sv:[","," "],th:[".",","],tr:[",","."],uk:[","," "],vi:[",","."],zh:[".",","]};function o(e=(0,i.JK)()){let t=(e=e.toLowerCase())in s;if(!t){const r=e.split("-");r.length>1&&r[0]in s&&(e=r[0],t=!0),t||(e="en")}const[r,n,o="#,##0.###"]=s[e];return{decimal:r,group:n,pattern:o}}function l(e,t){const r=o((t={...t}).locale);t.customs=r;const n=t.pattern||r.pattern;return isNaN(e)||Math.abs(e)===1/0?null:function(e,t,r){const n=(r=r||{}).customs.group,i=r.customs.decimal,s=t.split(";"),o=s[0];if((t=s[e<0?1:0]||"-"+o).includes("%"))e*=100;else if(t.includes("‰"))e*=1e3;else{if(t.includes("¤"))throw new Error("currency notation not supported");if(t.includes("E"))throw new Error("exponential notation not supported")}const l=a,u=o.match(l);if(!u)throw new Error("unable to find a number expression in pattern: "+t);return!1===r.fractional&&(r.places=0),t.replace(l,function(e,t,r){!0===(r=r||{}).places&&(r.places=0),r.places===1/0&&(r.places=6);const n=t.split("."),i="string"==typeof r.places&&r.places.indexOf(",");let s=r.places;i?s=r.places.slice(i+1):+s>=0||(s=(n[1]||[]).length),r.round<0||(e=Number(e.toFixed(Number(s))));const o=String(Math.abs(e)).split("."),l=o[1]||"";if(n[1]||r.places){i&&(r.places=r.places.slice(0,Math.max(0,i)));const e=void 0!==r.places?r.places:n[1]&&n[1].lastIndexOf("0")+1;+e>l.length&&(o[1]=l.padEnd(Number(e),"0")),+s<l.length&&(o[1]=l.slice(0,Math.max(0,Number(s))))}else o[1]&&o.pop();const a=n[0].replace(",","");let u=a.indexOf("0");-1!==u&&(u=a.length-u,u>o[0].length&&(o[0]=o[0].padStart(u,"0")),a.includes("#")||(o[0]=o[0].slice(-u)));let c,p,d=n[0].lastIndexOf(",");if(-1!==d){c=n[0].length-d-1;const e=n[0].slice(0,d);d=e.lastIndexOf(","),-1!==d&&(p=e.length-d-1)}const h=[];for(let e=o[0];e;){const t=e.length-c;h.push(t>0?e.slice(Math.max(0,t)):e),e=t>0?e.slice(0,t):"",p&&(c=p,p=void 0)}return o[0]=h.reverse().join(r.group||","),o.join(r.decimal||".")}(e,u[0],{decimal:i,group:n,places:r.places,round:r.round}))}(e,n,t)}const a=/[#0,]*[#0](?:\.0*#*)?/;function u(e){const t=o((e=e||{}).locale),r=e.pattern||t.pattern,i=t.group,s=t.decimal;let l=1;if(r.includes("%"))l/=100;else if(r.includes("‰"))l/=1e3;else if(r.includes("¤"))throw new Error("currency notation not supported");const u=r.split(";");1===u.length&&u.push("-"+u[0]);const c=d(u,t=>(t="(?:"+(0,n.Cj)(t,".")+")").replace(a,t=>{const r={signed:!1,separator:e.strict?i:[i,""],fractional:e.fractional,decimal:s,exponent:!1},n=t.split(".");let o=e.places;1===n.length&&1!==l&&(n[1]="###"),1===n.length||0===o?r.fractional=!1:(void 0===o&&(o=e.pattern?n[1].lastIndexOf("0")+1:1/0),o&&null==e.fractional&&(r.fractional=!0),!e.places&&+o<n[1].length&&(o+=","+n[1].length),r.places=o);const a=n[0].split(",");return a.length>1&&(r.groupSize=a.pop().length,a.length>1&&(r.groupSize2=a.pop().length)),"("+function(e){"places"in(e=e||{})||(e.places=1/0),"string"!=typeof e.decimal&&(e.decimal="."),"fractional"in e&&!String(e.places).startsWith("0")||(e.fractional=[!0,!1]),"exponent"in e||(e.exponent=[!0,!1]),"eSigned"in e||(e.eSigned=[!0,!1]);const t=p(e),r=d(e.fractional,t=>{let r="";return t&&0!==e.places&&(r="\\"+e.decimal,e.places===1/0?r="(?:"+r+"\\d+)?":r+="\\d{"+e.places+"}"),r},!0);let n=t+r;return r&&(n="(?:(?:"+n+")|(?:"+r+"))"),n+d(e.exponent,t=>t?"([eE]"+p({signed:e.eSigned})+")":"")}(r)+")"}),!0);return{regexp:c.replaceAll(/[\xa0 ]/g,"[\\s\\xa0]"),group:i,decimal:s,factor:l}}function c(e,t){const r=u(t),n=new RegExp("^"+r.regexp+"$").exec(e);if(!n)return NaN;let i=n[1];if(!n[1]){if(!n[2])return NaN;i=n[2],r.factor*=-1}return i=i.replaceAll(new RegExp("["+r.group+"\\s\\xa0]","g"),"").replace(r.decimal,"."),Number(i)*r.factor}function p(e){return"signed"in(e=e||{})||(e.signed=[!0,!1]),"separator"in e?"groupSize"in e||(e.groupSize=3):e.separator="",d(e.signed,e=>e?"[-+]":"",!0)+d(e.separator,t=>{if(!t)return"(?:\\d+)";" "===(t=(0,n.Cj)(t))?t="\\s":" "===t&&(t="\\s\\xa0");const r=e.groupSize,i=e.groupSize2;if(i){const e="(?:0|[1-9]\\d{0,"+(i-1)+"}(?:["+t+"]\\d{"+i+"})*["+t+"]\\d{"+r+"})";return r-i>0?"(?:"+e+"|(?:0|[1-9]\\d{0,"+(r-1)+"}))":e}return"(?:0|[1-9]\\d{0,"+(r-1)+"}(?:["+t+"]\\d{"+r+"})*)"},!0)}const d=(e,t,r)=>{if(!Array.isArray(e))return t(e);const n=[];for(let r=0;r<e.length;r++)n.push(t(e[r]));return h(n.join("|"),Boolean(r))},h=(e,t)=>"("+(t?"?:":"")+e+")"},60408(e,t,r){function n(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function i(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function l(e){return void 0!==e.rings||void 0!==e.curveRings}function a(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?s(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":l(e)?"esriGeometryPolygon":n(e)?"esriGeometryEnvelope":i(e)?"esriGeometryMultipoint":null:null}function c(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function p(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}r.d(t,{$B:()=>u,Bi:()=>l,Pv:()=>c,Rg:()=>o,U9:()=>i,W0:()=>p,ZC:()=>n,fT:()=>s,uW:()=>a})},65864(e,t,r){r.d(t,{rS:()=>c,xD:()=>d});var n=r(5443),i=r(91075),s=r(48526),o=r(86738),l=r(39829),a=r(82799),u=r(60408);function c(e){return null==e?null:e instanceof i.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?a.A.fromJSON(e):(0,u.Bi)(e)?l.A.fromJSON(e):(0,u.U9)(e)?s.A.fromJSON(e):(0,u.ZC)(e)?n.A.fromJSON(e):null}const p={esriGeometryPoint:o.A,esriGeometryPolyline:a.A,esriGeometryPolygon:l.A,esriGeometryEnvelope:n.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:l.A};function d(e){return e&&p[e]||null}},39357(e,t,r){r.d(t,{A:()=>l});var n,i=r(5482),s=r(25482),o=r(91429);let l=n=class extends s.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new n({name:this.name,code:this.code})}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],l.prototype,"code",void 0),l=n=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValue")],l)},53177(e,t,r){r.d(t,{A:()=>c});var n,i=r(5482),s=r(4718),o=r(91429),l=r(39357),a=r(76357),u=r(93223);let c=class extends a.A{static{n=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some(e=>(String(e.code)===r&&(t=e.name),!!t))}return t}clone(){return new n({codedValues:(0,s.o8)(this.codedValues),name:this.name})}};(0,i.Cg)([(0,o.MZ)({type:[l.A],json:{write:{isRequired:!0}}})],c.prototype,"codedValues",void 0),(0,i.Cg)([(0,u.e)({codedValue:"coded-value"})],c.prototype,"type",void 0),c=n=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValueDomain")],c)},76357(e,t,r){r.d(t,{A:()=>u});var n=r(5482),i=r(66552),s=r(25482),o=r(91429),l=r(93223);const a=new i.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends s.o{constructor(e){super(e),this.name=null,this.type=null}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,n.Cg)([(0,l.e)(a),(0,o.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),u=(0,n.Cg)([(0,o.$K)("esri.layers.support.Domain")],u)},20437(e,t,r){r.d(t,{A:()=>y});var n,i=r(5482),s=r(66552),o=r(25482),l=r(91429),a=r(56507),u=r(8631),c=r(98453),p=r(36005),d=r(93223);const h=new s.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let y=class extends o.o{static{n=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?h.fromJSON(r.fieldValueType):null}clone(){return new n({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],y.prototype,"alias",void 0),(0,i.Cg)([(0,l.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],y.prototype,"defaultValue",void 0),(0,i.Cg)([(0,l.MZ)()],y.prototype,"description",void 0),(0,i.Cg)([(0,p.w)("description")],y.prototype,"readDescription",null),(0,i.Cg)([(0,l.MZ)({types:u.g,json:{read:{reader:u.r},write:!0}})],y.prototype,"domain",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"editable",void 0),(0,i.Cg)([(0,l.MZ)({type:a.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],y.prototype,"length",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],y.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"nullable",void 0),(0,i.Cg)([(0,d.e)(c.m)],y.prototype,"type",void 0),(0,i.Cg)([(0,l.MZ)()],y.prototype,"valueType",void 0),(0,i.Cg)([(0,p.w)("valueType",["description"])],y.prototype,"readValueType",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{read:!1}})],y.prototype,"visible",void 0),y=n=(0,i.Cg)([(0,l.$K)("esri.layers.support.Field")],y)},41628(e,t,r){r.d(t,{A:()=>a});var n,i=r(5482),s=r(91429),o=r(76357),l=r(93223);let a=class extends o.A{static{n=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new n({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]},isRequired:!0}}})],a.prototype,"maxValue",void 0),(0,i.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]},isRequired:!0}}})],a.prototype,"minValue",void 0),(0,i.Cg)([(0,l.e)({range:"range"})],a.prototype,"type",void 0),a=n=(0,i.Cg)([(0,s.$K)("esri.layers.support.RangeDomain")],a)},8631(e,t,r){r.d(t,{r:()=>d,g:()=>p});var n,i=r(53177),s=r(76357),o=r(5482),l=r(91429),a=r(93223);let u=class extends s.A{static{n=this}constructor(e){super(e),this.type="inherited"}clone(){return new n}};(0,o.Cg)([(0,a.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=n=(0,o.Cg)([(0,l.$K)("esri.layers.support.InheritedDomain")],u);var c=r(41628);const p={key:"type",base:s.A,typeMap:{range:c.A,"coded-value":i.A,inherited:u}};function d(e){if(!e?.type)return null;switch(e.type){case"range":return c.A.fromJSON(e);case"codedValue":return i.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},98453(e,t,r){r.d(t,{m:()=>n});const n=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},20655(e,t,r){r.d(t,{A:()=>N});var n=r(5482),i=r(92602),s=r(70333),o=r(11254),l=r(49186),a=r(44208),u=r(25482),c=r(92474),p=r(97768),d=r(74887),h=r(91429),y=r(56507),f=r(5443),m=r(73444);let g;var v=r(96360),C=r(16405),S=r(69622);let b=class extends S.A{constructor(e){super(e),this.nextQueryParams=null,this.queryParams=null,this.results=null,this.total=null}};(0,n.Cg)([(0,h.MZ)()],b.prototype,"nextQueryParams",void 0),(0,n.Cg)([(0,h.MZ)()],b.prototype,"queryParams",void 0),(0,n.Cg)([(0,h.MZ)()],b.prototype,"results",void 0),(0,n.Cg)([(0,h.MZ)()],b.prototype,"total",void 0),b=(0,n.Cg)([(0,h.$K)("esri.portal.PortalQueryResult")],b);var M,Z=r(41318),A=r(926),T=r(36005);let O;const w={PortalGroup:()=>Promise.resolve({default:v.A}),PortalItem:()=>r.e(812).then(r.bind(r,80812)),PortalUser:()=>Promise.resolve({default:Z.A})};let N=class extends((0,u.T)(c.x_)){static{M=this}static{this.AUTH_MODE_ANONYMOUS="anonymous"}static{this.AUTH_MODE_AUTO="auto"}static{this.AUTH_MODE_IMMEDIATE="immediate"}static{this.AUTH_MODE_NO_PROMPT="no-prompt"}constructor(e){super(e),this._esriIdCredentialCreateHandle=null,this.access=null,this.allSSL=!1,this.authMode="auto",this.authorizedCrossOriginDomains=null,this.basemapGalleryGroupQuery=null,this.basemapGalleryGroupQuery3D=null,this.g3DTilesGalleryGroupQuery=null,this.g3dTilesEnabled=null,this.bingKey=null,this.canListApps=!1,this.canListData=!1,this.canListPreProvisionedItems=!1,this.canProvisionDirectPurchase=!1,this.canSearchPublic=!0,this.canShareBingPublic=!1,this.canSharePublic=!1,this.canSignInArcGIS=!1,this.canSignInIDP=!1,this.colorSetsGroupQuery=null,this.commentsEnabled=!1,this.created=null,this.culture=null,this.customBaseUrl=null,this.default3DBasemapQuery=null,this.defaultBasemap=null,this.defaultDevBasemap=null,this.defaultExtent=null,this.defaultVectorBasemap=null,this.description=null,this.devBasemapGalleryGroupQuery=null,this.eueiEnabled=null,this.featuredGroups=null,this.featuredItemsGroupQuery=null,this.galleryTemplatesGroupQuery=null,this.layoutGroupQuery=null,this.livingAtlasGroupQuery=null,this.hasCategorySchema=!1,this.hasClassificationSchema=!1,this.helperServices=null,this.homePageFeaturedContent=null,this.homePageFeaturedContentCount=null,this.httpPort=null,this.httpsPort=null,this.id=null,this.ipCntryCode=null,this.isPortal=!1,this.isReadOnly=!1,this.layerTemplatesGroupQuery=null,this.maxTokenExpirationMinutes=null,this.modified=null,this.name=null,this.portalHostname=null,this.portalMode=null,this.portalProperties=null,this.region=null,this.recycleBinEnabled=!1,this.rotatorPanels=null,this.showHomePageDescription=!1,this.sourceJSON=null,this.supportsHostedServices=!1,this.symbolSetsGroupQuery=null,this.templatesGroupQuery=null,this.units=null,this.url=i.A.portalUrl,this.urlKey=null,this.user=null,this.use3dBasemaps=!0,this.useDefault3dBasemap=!1,this.useStandardizedQuery=!1,this.useVectorBasemaps=!1,this.vectorBasemapGalleryGroupQuery=null}normalizeCtorArgs(e){return"string"==typeof e?{url:e}:e}destroy(){P.unregister(this),this.defaultBasemap=(0,p.pR)(this.defaultBasemap),this.defaultDevBasemap=(0,p.pR)(this.defaultDevBasemap),this.defaultVectorBasemap=(0,p.pR)(this.defaultVectorBasemap),this._esriIdCredentialCreateHandle=(0,p.xt)(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(e){if(e)for(const t of e)i.A.request.trustedServers.includes(t)||i.A.request.trustedServers.push(t);return e}readDefaultBasemap(e){return this._readBasemap(e)}readDefaultDevBasemap(e){return this._readBasemap(e)}readDefaultVectorBasemap(e){return this._readBasemap(e)}get extraQuery(){const e=this.user?.orgId,t=!e||this.canSearchPublic;return this.id&&!t?` AND orgid:${this.id}`:null}get hasAPIKey(){return(0,A.Jn)(this.restUrl)}get isOrganization(){return!!this.access}get itemPageUrl(){return this.url?`${this.url}/home/item.html`:null}get loaded(){return super.loaded}get restUrl(){let e=this.url;if(e){const t=e.indexOf("/sharing");e=t>0?e.slice(0,t):this.url.replace(/\/+$/,""),e+="/sharing/rest"}return e}get thumbnailUrl(){const e=this.restUrl,t=this.thumbnail;return e&&t?this._normalizeSSL(e+"/portals/self/resources/"+t):null}readUrlKey(e){return e?e.toLowerCase():e}readUser(e){let t=null;return e&&(t=Z.A.fromJSON(e),t.portal=this),t}load(e){const t=Promise.all([r.e(812),r.e(3116)]).then(r.bind(r,83116)).then(({default:t})=>{(0,d.Te)(e),O=t}).then(()=>this.sourceJSON?this.sourceJSON:this.fetchSelf(this.authMode,!1,e)).then(e=>{if(!this.hasAPIKey&&s.id){const e=s.id;this.credential=e.findCredential(this.restUrl),this.credential||this.authMode!==M.AUTH_MODE_AUTO&&this.authMode!==M.AUTH_MODE_NO_PROMPT||(this._esriIdCredentialCreateHandle?.remove(),this._esriIdCredentialCreateHandle=e.on("credential-create",function(e){const t=s.id;return()=>{const r=e.deref();r&&t.findCredential(r.restUrl)&&r.signIn().catch(()=>{})}}(new WeakRef(this))),P.register(this,this._esriIdCredentialCreateHandle,this))}this.sourceJSON=e,this.read(e)});return this.addResolvingPromise(t),Promise.resolve(this)}async createElevationLayers(){await this.load();const e=this._getHelperService("defaultElevationLayers"),t=(await Promise.all([r.e(1218),r.e(3508),r.e(9953),r.e(812),r.e(9186),r.e(2369),r.e(7716)]).then(r.bind(r,62369))).default;return e?e.map(e=>new t({id:e.id,url:e.url})):[]}async fetchBasemaps(e,t){const r=await this._fetchBasemaps(e,t);if(!0===t?.include3d&&!1!==this.use3dBasemaps){if(this.g3dTilesEnabled&&this.g3DTilesGalleryGroupQuery&&(0,a.A)("enable-feature:basemap-groundlayers")){const e=await this._fetchBasemaps3D(this.g3DTilesGalleryGroupQuery,t);r.unshift(...e)}const n=await this._fetchBasemaps3D(e,t);r.unshift(...n)}return r}async fetchDefault3DBasemap(e){if(!this.useDefault3dBasemap||!this.default3DBasemapQuery||"none"===this.default3DBasemapQuery)return null;const t=new C.A;t.query=this.default3DBasemapQuery,t.disableExtraQuery=!0;const r=(await this.queryItems(t,e)).results.find(e=>"Web Scene"===e.type);return r?new O({portalItem:r}):null}fetchCategorySchema(e){return this.hasCategorySchema?this.request(this.restUrl+"/portals/self/categorySchema",e).then(e=>e.categorySchema):(0,d.G4)(e)?Promise.reject((0,d.NK)()):Promise.resolve([])}async fetchClassificationSchema(e){return this.hasClassificationSchema?this.request(this.restUrl+"/portals/self/classification/classificationSchema",e).then(e=>e.classificationSchema):null}fetchFeaturedGroups(e){const t=this.featuredGroups,r=new C.A({num:100,sortField:"title"});if(t?.length){const n=[];for(const e of t)n.push(`(title:"${e.title}" AND owner:${e.owner})`);return r.query=n.join(" OR "),this.queryGroups(r,e).then(e=>e.results)}return(0,d.G4)(e)?Promise.reject((0,d.NK)()):Promise.resolve([])}fetchRegions(e){const t=this.user?.culture||this.culture||(0,m.JK)();return this.request(this.restUrl+"/portals/regions",{...e,query:{culture:t}})}fetchSettings(e){const t=this.user?.culture||this.culture||(0,m.JK)();return this.request(this.restUrl+"/portals/self/settings",{...e,query:{culture:t}})}static getDefault(){return g&&!g.destroyed||(g=new M),g}queryGroups(e,t){return this.queryPortal("/community/groups",e,"PortalGroup",t)}queryItems(e,t){return this.queryPortal("/search",e,"PortalItem",t)}queryUsers(e,t){return e.sortField||(e.sortField="username"),this.queryPortal("/community/users",e,"PortalUser",t)}fetchSelf(e=this.authMode,t=!1,r){const n=this.restUrl+"/portals/self",i={authMode:e,query:{culture:(0,m.JK)().toLowerCase()},withCredentials:!0,...r};return"auto"===i.authMode&&(i.authMode="no-prompt"),t&&(i.query.default=!0),this.request(n,i)}queryPortal(e,t,r,n){const i=(0,y.dp)(C.A,t),s=t=>this.request(this.restUrl+e,{...i.toRequestOptions(this),...n}).then(e=>{const r=i.clone();return r.start=e.nextStart,new b({nextQueryParams:r,queryParams:i,total:e.total,results:M._resultsToTypedArray(t,{portal:this},e,n)})}).then(e=>Promise.all(e.results.map(t=>"function"==typeof t.when?t.when():e)).then(()=>e,t=>((0,d.QP)(t),e)));return r&&w[r]?w[r]().then(({default:e})=>((0,d.Te)(n),s(e))):s()}signIn(){if(this.hasAPIKey)return this.load().then(()=>{if(!this.user)throw new l.A("portal:not-authenticated","Unable to authenticate user. Portal.user is missing")});if(this.authMode===M.AUTH_MODE_ANONYMOUS||this.authMode===M.AUTH_MODE_NO_PROMPT&&!s.id)return Promise.reject(new l.A("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if("failed"===this.loadStatus)return Promise.reject(this.loadError);const e=e=>Promise.resolve().then(()=>"not-loaded"===this.loadStatus?(e||(this.authMode="immediate"),this.load().then(()=>null)):"loading"===this.loadStatus?this.load().then(()=>this.credential?null:(this.credential=e,this.fetchSelf("immediate"))):this.user&&this.credential===e?null:(this.credential=e,this.fetchSelf("immediate"))).then(e=>{e&&(this.sourceJSON=e,this.read(e))});return s.id?s.id.getCredential(this.restUrl,{prompt:this.authMode!==M.AUTH_MODE_NO_PROMPT}).then(t=>e(t)):e(this.credential)}normalizeUrl(e){const t=this.credential?.token;return this._normalizeSSL(t?e+(e.includes("?")?"&":"?")+"token="+t:e)}requestToTypedArray(e,t,r){return this.request(e,t).then(e=>{const t=M._resultsToTypedArray(r,{portal:this},e);return Promise.all(t.map(t=>"function"==typeof t.when?t.when():e)).then(()=>t,()=>t)})}request(e,t={}){const r={f:"json",...t.query},{authMode:n=(this.authMode===M.AUTH_MODE_ANONYMOUS||this.authMode===M.AUTH_MODE_NO_PROMPT?this.authMode:"auto"),body:i=null,cacheBust:s=!1,method:l="auto",responseType:a="json",signal:u}=t,c={authMode:n,body:i,cacheBust:s,method:l,query:r,responseType:a,timeout:0,signal:u};return t.withCredentials&&(c.withCredentials=!0),(0,o.A)(this._normalizeSSL(e),c).then(e=>e.data)}toJSON(){throw new l.A("internal:not-yet-implemented","Portal.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");return new M({sourceJSON:e})}_getHelperService(e){const t=this.helperServices?.[e];if(!t)throw new l.A("portal:service-not-found",`The \`helperServices\` do not include an entry named "${e}"`);return t}async _fetchBasemaps(e,t){const r=new C.A;r.query=e||((0,A.Dd)()?this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery),r.disableExtraQuery=!0;const n=await this.queryGroups(r,t);if(!n.total)return[];const i=n.results[0];r.num=100,r.query='type:"Web Map" -type:"Web Application"',r.sortField=i.sortField||"name",r.sortOrder=i.sortOrder||"desc";const s=await i.queryItems(r,t);return s.total?s.results.filter(e=>"Web Map"===e.type).map(e=>new O({portalItem:e})):[]}async _fetchBasemaps3D(e,t){const r=e||this.basemapGalleryGroupQuery3D;if(!r)return[];if((0,A.Dd)())return[];const n=new C.A({query:r,disableExtraQuery:!0}),i=await this.queryGroups(n,t);if(!i.total)return[];const s=i.results[0];n.num=100,n.query='type:"Web Scene"',n.sortField=s.sortField||"name",n.sortOrder=s.sortOrder||"desc";const o=await s.queryItems(n,t);return o.total?o.results.filter(e=>"Web Scene"===e.type).map(e=>new O({portalItem:e})):[]}_normalizeSSL(e){return e.replace(/^http:/i,"https:").replace(":7080",":7443")}_readBasemap(e){if(e){const t=O.fromJSON(e);return t.portalItem={portal:this},t}return null}static _resultsToTypedArray(e,t,r,n){let i;if(r){const s=null!=n?n.signal:null;i=r.listings||r.notifications||r.userInvitations||r.tags||r.items||r.groups||r.comments||r.provisions||r.results||r.relatedItems||r,(e||t)&&(i=i.map(r=>{const n=Object.assign(e?e.fromJSON(r):r,t);return"function"==typeof n.load&&n.load(s),n}))}else i=[];return i}};(0,n.Cg)([(0,h.MZ)()],N.prototype,"access",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"allSSL",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"authMode",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"authorizedCrossOriginDomains",void 0),(0,n.Cg)([(0,T.w)("authorizedCrossOriginDomains")],N.prototype,"readAuthorizedCrossOriginDomains",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"basemapGalleryGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)({json:{name:"3DBasemapGalleryGroupQuery"}})],N.prototype,"basemapGalleryGroupQuery3D",void 0),(0,n.Cg)([(0,h.MZ)({json:{name:"g3DTilesGalleryGroupQuery"}})],N.prototype,"g3DTilesGalleryGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)({json:{name:"g3dTilesEnabled"}})],N.prototype,"g3dTilesEnabled",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"bingKey",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"canListApps",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"canListData",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"canListPreProvisionedItems",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"canProvisionDirectPurchase",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"canSearchPublic",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"canShareBingPublic",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"canSharePublic",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"canSignInArcGIS",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"canSignInIDP",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"colorSetsGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"commentsEnabled",void 0),(0,n.Cg)([(0,h.MZ)({type:Date})],N.prototype,"created",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"credential",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"culture",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"currentVersion",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"customBaseUrl",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"default3DBasemapQuery",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"defaultBasemap",void 0),(0,n.Cg)([(0,T.w)("defaultBasemap")],N.prototype,"readDefaultBasemap",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"defaultDevBasemap",void 0),(0,n.Cg)([(0,T.w)("defaultDevBasemap")],N.prototype,"readDefaultDevBasemap",null),(0,n.Cg)([(0,h.MZ)({type:f.A})],N.prototype,"defaultExtent",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"defaultVectorBasemap",void 0),(0,n.Cg)([(0,T.w)("defaultVectorBasemap")],N.prototype,"readDefaultVectorBasemap",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"description",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"devBasemapGalleryGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"eueiEnabled",void 0),(0,n.Cg)([(0,h.MZ)({readOnly:!0})],N.prototype,"extraQuery",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"featuredGroups",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"featuredItemsGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"galleryTemplatesGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"layoutGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"livingAtlasGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)({readOnly:!0})],N.prototype,"hasAPIKey",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"hasCategorySchema",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"hasClassificationSchema",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"helpBase",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"helperServices",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"helpMap",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"homePageFeaturedContent",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"homePageFeaturedContentCount",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"httpPort",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"httpsPort",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"id",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"ipCntryCode",void 0),(0,n.Cg)([(0,h.MZ)({readOnly:!0})],N.prototype,"isOrganization",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"isPortal",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"isReadOnly",void 0),(0,n.Cg)([(0,h.MZ)({readOnly:!0})],N.prototype,"itemPageUrl",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"layerTemplatesGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"maxTokenExpirationMinutes",void 0),(0,n.Cg)([(0,h.MZ)({type:Date})],N.prototype,"modified",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"name",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"portalHostname",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"portalMode",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"portalProperties",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"region",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"recycleBinEnabled",void 0),(0,n.Cg)([(0,h.MZ)({readOnly:!0})],N.prototype,"restUrl",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"rotatorPanels",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"showHomePageDescription",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"sourceJSON",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"staticImagesUrl",void 0),(0,n.Cg)([(0,h.MZ)({json:{name:"2DStylesGroupQuery"}})],N.prototype,"stylesGroupQuery2d",void 0),(0,n.Cg)([(0,h.MZ)({json:{name:"stylesGroupQuery"}})],N.prototype,"stylesGroupQuery3d",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"supportsHostedServices",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"symbolSetsGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"templatesGroupQuery",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"thumbnail",void 0),(0,n.Cg)([(0,h.MZ)({readOnly:!0})],N.prototype,"thumbnailUrl",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"units",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"url",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"urlKey",void 0),(0,n.Cg)([(0,T.w)("urlKey")],N.prototype,"readUrlKey",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"user",void 0),(0,n.Cg)([(0,T.w)("user")],N.prototype,"readUser",null),(0,n.Cg)([(0,h.MZ)()],N.prototype,"use3dBasemaps",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"useDefault3dBasemap",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"useStandardizedQuery",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"useVectorBasemaps",void 0),(0,n.Cg)([(0,h.MZ)()],N.prototype,"vectorBasemapGalleryGroupQuery",void 0),N=M=(0,n.Cg)([(0,h.$K)("esri.portal.Portal")],N);const P=new FinalizationRegistry(e=>{e.remove()})},96360(e,t,r){r.d(t,{A:()=>c});var n,i=r(5482),s=r(49186),o=r(25482),l=r(91429),a=r(56507),u=r(16405);let c=n=class extends o.o{constructor(e){super(e),this.access=null,this.created=null,this.description=null,this.id=null,this.isInvitationOnly=!1,this.modified=null,this.owner=null,this.portal=null,this.snippet=null,this.sortField=null,this.sortOrder=null,this.sourceJSON=null,this.tags=null,this.title=null}get thumbnailUrl(){const e=this.url,t=this.thumbnail;return e&&t&&this.portal?this.portal?.normalizeUrl(`${e}/info/${t}?f=json`):null}get url(){const e=this.portal?.restUrl;return e?e+"/community/groups/"+this.id:null}fetchCategorySchema(e){return this.portal.request(this.url+"/categorySchema",e).then(t=>{const r=t.categorySchema||[];return r.some(e=>"contentCategorySetsGroupQuery.LivingAtlas"===e.source)?this._fetchCategorySchemaSet("LivingAtlas",e):r})}fetchMembers(e){return this.portal.request(this.url+"/users",e)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}toJSON(){throw new s.A("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");const t=new n({sourceJSON:e});return t.read(e),t}queryItems(e,t){let r=(0,a.dp)(u.A,e);const n=this.portal;return parseFloat(n.currentVersion)>5?(r=r||new u.A,n.queryPortal(`/content/groups/${this.id}/search`,r,"PortalItem",t)):(r=r?r.clone():new u.A,r.query="group:"+this.id+(r.query?" "+r.query:""),n.queryItems(r,t))}_fetchCategorySchemaSet(e,t){const r=this.portal;return r.fetchSelf(r.authMode,!0,t).then(e=>{const n=e.contentCategorySetsGroupQuery;if(n){const e=new u.A({disableExtraQuery:!0,num:1,query:n});return r.queryGroups(e,t)}throw new s.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found")}).then(r=>{if(r.total){const n=r.results[0],i=new u.A({num:1,query:`typekeywords:"${e}"`});return n.queryItems(i,t)}throw new s.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery group not found")}).then(e=>e.total?e.results[0].fetchData("json",t).then(e=>{const t=e?.categorySchema;return t?.length?t:[]}):[])}};(0,i.Cg)([(0,l.MZ)()],c.prototype,"access",void 0),(0,i.Cg)([(0,l.MZ)({type:Date})],c.prototype,"created",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"description",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"id",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"isInvitationOnly",void 0),(0,i.Cg)([(0,l.MZ)({type:Date})],c.prototype,"modified",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"owner",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"portal",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"snippet",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"sortField",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"sortOrder",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"tags",void 0),(0,i.Cg)([(0,l.MZ)()],c.prototype,"thumbnail",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0})],c.prototype,"thumbnailUrl",null),(0,i.Cg)([(0,l.MZ)()],c.prototype,"title",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0})],c.prototype,"url",null),c=n=(0,i.Cg)([(0,l.$K)("esri.portal.PortalGroup")],c)},16405(e,t,r){r.d(t,{A:()=>h});var n,i=r(5482),s=r(69622),o=r(66552),l=r(4718),a=r(91429),u=r(5443),c=r(16930),p=r(28735);const d=new o.J({avgRating:"avg-rating",numRatings:"num-ratings",numComments:"num-comments",numViews:"num-views"});let h=n=class extends s.A{constructor(e){super(e),this.categories=null,this.disableExtraQuery=!1,this.extent=null,this.filter=null,this.num=10,this.query=null,this.sortField=null,this.start=1}get sortOrder(){return this._get("sortOrder")||"asc"}set sortOrder(e){"asc"!==e&&"desc"!==e||this._set("sortOrder",e)}clone(){return new n({categories:this.categories?(0,l.o8)(this.categories):null,disableExtraQuery:this.disableExtraQuery,extent:this.extent?this.extent.clone():null,filter:this.filter,num:this.num,query:this.query,sortField:this.sortField,sortOrder:this.sortOrder,start:this.start})}toRequestOptions(e,t){let r=[];this.categories&&(r=this.categories.map(e=>Array.isArray(e)?JSON.stringify(e):e));let n="";if(this.extent){const e=(0,p.Cv)(this.extent,c.A.WGS84);null!=e&&(n=`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`)}let i=this.query;!this.disableExtraQuery&&e.extraQuery&&(i="("+i+")"+e.extraQuery);const s={categories:r,bbox:n,q:i,filter:this.filter,num:this.num,sortField:null,sortOrder:null,start:this.start};return this.sortField&&(s.sortField=this.sortField.split(",").map(e=>d.toJSON(e.trim())).join(","),s.sortOrder=this.sortOrder),{query:{...t,...s}}}};(0,i.Cg)([(0,a.MZ)()],h.prototype,"categories",void 0),(0,i.Cg)([(0,a.MZ)()],h.prototype,"disableExtraQuery",void 0),(0,i.Cg)([(0,a.MZ)({type:u.A})],h.prototype,"extent",void 0),(0,i.Cg)([(0,a.MZ)()],h.prototype,"filter",void 0),(0,i.Cg)([(0,a.MZ)()],h.prototype,"num",void 0),(0,i.Cg)([(0,a.MZ)()],h.prototype,"query",void 0),(0,i.Cg)([(0,a.MZ)()],h.prototype,"sortField",void 0),(0,i.Cg)([(0,a.MZ)()],h.prototype,"sortOrder",null),(0,i.Cg)([(0,a.MZ)()],h.prototype,"start",void 0),h=n=(0,i.Cg)([(0,a.$K)("esri.portal.PortalQueryParams")],h)},41318(e,t,r){r.d(t,{A:()=>c});var n=r(5482),i=r(49186),s=r(25482),o=r(91429);let l=class extends s.o{constructor(e){super(e),this.created=null,this.id=null,this.portal=null,this.title=null,this.username=null}get url(){const e=this.portal?.restUrl;return e?`${e}/content/users/${this.username}/${this.id}`:null}toJSON(){throw new i.A("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")}};(0,n.Cg)([(0,o.MZ)({type:Date})],l.prototype,"created",void 0),(0,n.Cg)([(0,o.MZ)()],l.prototype,"id",void 0),(0,n.Cg)([(0,o.MZ)()],l.prototype,"portal",void 0),(0,n.Cg)([(0,o.MZ)()],l.prototype,"title",void 0),(0,n.Cg)([(0,o.MZ)({readOnly:!0})],l.prototype,"url",null),(0,n.Cg)([(0,o.MZ)()],l.prototype,"username",void 0),l=(0,n.Cg)([(0,o.$K)("esri.portal.PortalFolder")],l);var a,u=r(96360);let c=a=class extends s.o{constructor(e){super(e),this.access=null,this.created=null,this.culture=null,this.description=null,this.email=null,this.fullName=null,this.id=null,this.modified=null,this.orgId=null,this.portal=null,this.preferredView=null,this.privileges=null,this.region=null,this.role=null,this.roleId=null,this.sourceJSON=null,this.units=null,this.username=null,this.userLicenseTypeId=null,this.userType=null}get thumbnailUrl(){const e=this.url,t=this.thumbnail;return e&&t?this.portal.normalizeUrl(`${e}/info/${t}?f=json`):null}get userContentUrl(){const e=this.portal?.restUrl;return e?`${e}/content/users/${this.id}`:null}get url(){const e=this.portal?.restUrl;return e?`${e}/community/users/${this.id}`:null}addItem(e){const t=e&&e.item,r=e?.data,n=e?.folder,i={method:"post"};t&&(i.query=t.createPostQuery(),null!=r&&("string"==typeof r?i.query.text=r:"object"==typeof r&&(i.query.text=JSON.stringify(r))));let s=this.userContentUrl;return n&&(s+="/"+("string"==typeof n?n:n.id)),this.portal.request(s+"/addItem",i).then(e=>(t.id=e.id,t.portal=this.portal,t.loaded?t.reload():t.load()))}async deleteItem(e,t=!1){let r=this.userContentUrl;e.ownerFolder&&(r+="/"+e.ownerFolder);const n=t?{permanentDelete:!0}:{};await this.portal.request(r+`/items/${e.id}/delete`,{method:"post",query:n}),e.id=null,e.portal=null}async deleteItems(e,t=!1){e=e.slice();const r=this.userContentUrl+"/deleteItems",n=[],s=e.map(e=>e.id);if(s.length){const o={method:"post",query:{items:s.join(","),permanentDelete:t}},l=await this.portal.request(r,o);for(const t of l.results){const r=e.find(e=>t.itemId===e.id),s=t.success;let o=null;s?(r.id=null,r.portal=null):t.error&&(o=new i.A("portal:delete-item-failed",t.error.message,t.error)),n.push({item:r,success:s,error:o})}}return n}fetchFolders(){return this.portal.request(this.userContentUrl??"",{query:{num:1}}).then(e=>{let t;return t=e&&e.folders?e.folders.map(e=>{const t=l.fromJSON(e);return t.portal=this.portal,t}):[],t})}fetchGroups(){return this.portal.request(this.url??"").then(e=>{let t;return t=e&&e.groups?e.groups.map(e=>{const t=u.A.fromJSON(e);return t.portal=this.portal,t}):[],t})}async fetchItems(e){e??={};let t=this.userContentUrl??"";e.folder&&(t+="/"+e.folder.id);const{default:n}=await r.e(812).then(r.bind(r,80812)),i={folders:!1,inRecycleBin:!!e.inRecycleBin||null,foldersContent:!(e.folder||!e.includeSubfolderItems)||null,num:e.num||10,start:e.start||1,sortField:e.sortField||"created",sortOrder:e.sortOrder||"asc"},s=await this.portal.request(t,{query:i});let o;return s?.items?(o=s.items.map(e=>{const t=n.fromJSON(e);return t.portal=this.portal,t}),await Promise.all(o.map(e=>e.load())),{items:o,nextStart:s.nextStart,total:s.total}):{items:[],nextStart:-1,total:0}}fetchTags(){return this.portal.request(this.url+"/tags").then(e=>e.tags)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}queryFavorites(e){return this.favGroupId?(this._favGroup||(this._favGroup=new u.A({id:this.favGroupId,portal:this.portal})),this._favGroup.queryItems(e)):Promise.reject(new i.A("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))}async restoreItem(e,t){const r=this.userContentUrl,n=t?{folderID:"string"==typeof t?t:t.id}:null;await this.portal.request(r+`/items/${e.id}/restore`,{method:"post",query:n})}toJSON(){throw new i.A("internal:not-yet-implemented","PortalUser.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");const t=new a({sourceJSON:e});return t.read(e),t}};(0,n.Cg)([(0,o.MZ)()],c.prototype,"access",void 0),(0,n.Cg)([(0,o.MZ)({type:Date})],c.prototype,"created",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"culture",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"description",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"email",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"favGroupId",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"fullName",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"id",void 0),(0,n.Cg)([(0,o.MZ)({type:Date})],c.prototype,"modified",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"orgId",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"portal",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"preferredView",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"privileges",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"region",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"role",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"roleId",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"sourceJSON",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"thumbnail",void 0),(0,n.Cg)([(0,o.MZ)({readOnly:!0})],c.prototype,"thumbnailUrl",null),(0,n.Cg)([(0,o.MZ)()],c.prototype,"units",void 0),(0,n.Cg)([(0,o.MZ)({readOnly:!0})],c.prototype,"userContentUrl",null),(0,n.Cg)([(0,o.MZ)({readOnly:!0})],c.prototype,"url",null),(0,n.Cg)([(0,o.MZ)()],c.prototype,"username",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"userLicenseTypeId",void 0),(0,n.Cg)([(0,o.MZ)()],c.prototype,"userType",void 0),c=a=(0,n.Cg)([(0,o.$K)("esri.portal.PortalUser")],c)},2272(e,t,r){r.d(t,{Dl:()=>u,gf:()=>p,jV:()=>a,lF:()=>c});var n=r(92602),i=r(70333),s=r(4718),o=r(84952),l=r(926);function a(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,o.An)(e):(0,s.o8)(e)}function c(e,t,r){const n={};for(const i in e){if("declaredClass"===i)continue;const s=e[i];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))n[i]=s.map(e=>c(e));else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(r?.[i]);n[i]=t?e:JSON.stringify(e)}else n[i]=t?s:JSON.stringify(s);else n[i]=s}return n}async function p(e,t,s){const o=function(e,t){return e?t&&(0,l.Qc)(e)?t:(0,l.getApiKey)(e)??i.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!i.id&&n.A.request.useIdentity&&await Promise.all([r.e(7632),r.e(6618),r.e(148)]).then(r.bind(r,50148));const a=await i.id.getCredential(e,s);return a?.token}},926(e,t,r){r.d(t,{Dd:()=>d,Jn:()=>h,Qc:()=>y,getApiKey:()=>c,getSessionToken:()=>p});var n=r(92602),i=r(11254),s=r(84952);const o=/^https?:\/\/(i?basemaps|basemapstyles)-api\.arcgis\.com\//i,l=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"]),a=new Map;let u=null;function c(e){if(!y(e))return null;const t=t=>t instanceof RegExp?t.test(e):"string"==typeof t&&e.startsWith(t),r=n.A.apiKeys;if(Array.isArray(r.scopes))for(const e of r.scopes)if(Array.isArray(e.urls)){if(e.urls.some(t))return e.token}else if(t(e.urls))return e.token;return r.basemapStyles&&o.test(e)?r.basemapStyles:n.A.apiKey&&/^https?:\/\/.+\.arcgis\.com(\/|$)/i.test(e)?n.A.apiKey:null}async function p(e){if(!n.A.sessions?.basemap?.enabled||!o.test(e))return null;const t=c(e);if(!t)return null;u&&await u;const{styleFamily:r="arcgis",autoRefresh:s,duration:l=43200}=n.A.sessions.basemap,p=`${t}:${r}`,d=a.get(p);if(d&&(!s||d.endTime>Date.now()))return d.sessionToken;let h;u=(0,i.A)("https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/sessions/start",{cacheBust:!0,query:{durationSeconds:l,styleFamily:r,token:t}});try{h=(await u).data,h.endTime-=5e3,a.set(p,h)}finally{u=null}return h.sessionToken}function d(){return null!=n.A.apiKey||null!=n.A.apiKeys.basemapStyles}function h(e,t){return t?y(e):null!=c(e)}function y(e){const t=(0,s.$z)(e,!0);return!!t&&!l.has(t)&&!e.endsWith("/sharing/rest/generateToken")}},94128(e,t,r){r.d(t,{D:()=>i,Z:()=>n});const n=Symbol("GraphicInstance");function i(e){return null!=e&&"object"==typeof e&&n in e}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5804,9697],{46130(e,t,r){r.d(t,{v:()=>s});var o=r(76553);function s(e){e?.writtenProperties&&e.writtenProperties.forEach(({target:e,propName:t,newOrigin:r})=>{(0,o.H)(e)&&r&&e.originOf(t)!==r&&e.updateOrigin(t,r)})}},56512(e,t,r){function o(e){let t,r,o=[],s=!1;return function(...n){return s&&t===this&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(e[r]!==t[r])return!1;return!0}(n,o)||(r=e.apply(this,n),t=this,o=n,s=!0),r}}r.d(t,{B:()=>o})},76553(e,t,r){function o(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>o})},13069(e,t,r){r.d(t,{AG:()=>a,lk:()=>s,vD:()=>i,yS:()=>n});const o="randomUUID"in crypto;function s(){if(o)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function n(){return`{${s().toUpperCase()}}`}function i(){return`{${s()}}`}function a(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},65806(e,t,r){r.d(t,{g:()=>i});var o=r(51850),s=r(91218),n=r(9762);function i(e,t,r,o){if((0,s.canProjectWithoutEngine)(e.spatialReference,r))return a[0]=e.x,a[1]=e.y,a[2]=e.z??0,(0,n.projectBuffer)(a,e.spatialReference,0,t,r,0);const i=(0,s.tryProject)(e,r,o);return!!i&&(t[0]=i.x,t[1]=i.y,t[2]=i.z??0,!0)}const a=(0,o.vt)()},27993(e,t,r){r.d(t,{F:()=>a});var o=r(91218),s=r(16930),n=r(9762),i=r(65806);function a(e,t,r,s){return!(null==t||null==s||e.length<2)&&((0,o.canProjectWithoutEngine)(t,s)?(0,n.projectBuffer)(e,t,0,r,s,0,1):(l.x=e[0],l.y=e[1],l.z=e[2],l.spatialReference=t,(0,i.g)(l,r,s)))}const l={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:s.A.WGS84,type:"point"}},52136(e,t,r){r.d(t,{p:()=>n});var o=r(5482),s=r(91429);const n=e=>{const t=e;let r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,o.Cg)([(0,s.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,o.Cg)([(0,s.$K)("esri.layers.mixins.APIKeyMixin")],r),r}},58947(e,t,r){r.d(t,{w6:()=>C,qM:()=>A});var o=r(5482),s=r(11254),n=r(49186),i=r(53966),a=r(74887),l=r(91429),p=r(46130),c=r(5443),u=r(54239),d=r(16930),y=r(60694),h=r(10873),f=r(83898),m=r(73179);var g=r(20655),v=r(80812),w=r(88788),S=r(91682),x=r(26121),I=r(36005);const C=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.spatialReference=null,this.fullExtent=null,this.heightModelInfo=null,this.minScale=0,this.maxScale=0,this.version={major:Number.NaN,minor:Number.NaN,versionString:""},this.copyright=null,this.sublayerTitleMode="item-title",this.title=null,this.layerId=null,this.url=null,this.indexInfo=null,this._debouncedSaveOperations=(0,a.sg)(async(e,t,r)=>{switch(e){case 0:return this._save(t);case 1:return this._saveAs(r,t)}})}readSpatialReference(e,t){return M(t)}readFullExtent(e,t,r){if(null!=e&&"object"==typeof e){const o=null==e.spatialReference?{...e,spatialReference:M(t)}:e;return c.A.fromJSON(o,r)}const o=t.store,s=M(t);return null==s||null==o?.extent||!Array.isArray(o.extent)||o.extent.some(e=>e<b)?null:new c.A({xmin:o.extent[0],ymin:o.extent[1],xmax:o.extent[2],ymax:o.extent[3],spatialReference:s})}parseVersionString(e){const t={major:Number.NaN,minor:Number.NaN,versionString:e},r=e.split(".");return r.length>=2&&(t.major=parseInt(r[0],10),t.minor=parseInt(r[1],10)),t}readVersion(e,t){const r=t.store,o=null!=r.version?r.version.toString():"";return this.parseVersionString(o)}readTitlePortalItem(e){return"item-title"!==this.sublayerTitleMode?void 0:e}readTitleService(e,t){if("item-title"===this.sublayerTitleMode)return this.url?(0,y.yG)(this.url,t.name):t.name;let r=t.name;if(!r&&this.url){const e=(0,y.qg)(this.url);null!=e&&(r=e.title)}const o=this.portalItem?.title;return"item-title-and-service-name"===this.sublayerTitleMode&&o&&(r=o+" - "+r),(0,y.cr)(r)}get parsedUrl(){return(0,m.h)(this,{separator:"layers"})}async _fetchIndexAndUpdateExtent(e,t){this.indexInfo=(0,f.F)(this.parsedUrl?.path??"",this.rootNode,e,this.customParameters,this.apiKey,i.A.getLogger(this),t);const{fullExtent:r}=this;null==r||r.hasZ||this._updateExtent(r,await this.indexInfo)}_updateExtent(e,t){if("page"===t?.type){const r=t.rootIndex%t.pageSize,o=t.rootPage?.nodes?.[r];A(e,o?.obb)}else if("node"===t?.type){const r=t.rootNode?.mbs;if(!Array.isArray(r)||4!==r.length||r[0]<b)return;const o=r[2],s=r[3];e.zmin=o-s,e.zmax=o+s}}async _fetchService(e){if(null==this.url)throw new n.A("sceneservice:url-not-set","Scene service can not be loaded without valid portal item or url");if(null==this.layerId&&/SceneServer\/*$/i.test(this.url)){const t=await this._fetchFirstLayerId(e);null!=t&&(this.layerId=t)}return this._fetchServiceLayer(e)}async _fetchFirstLayerId(e){const t=await(0,s.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e});if(t.data&&Array.isArray(t.data.layers)&&t.data.layers.length>0)return t.data.layers[0].id}async _fetchServiceLayer(e){const t=await(0,s.A)(this.parsedUrl?.path??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e});t.ssl&&this.url&&(this.url=this.url.replace(/^http:/i,"https:"));let r=!1;if(t.data.layerType&&"Voxel"===t.data.layerType&&(r=!0),r)return this._fetchVoxelServiceLayer();const o=t.data;this.read(o,this._getServiceContext()),this.validateLayer(o)}async _fetchVoxelServiceLayer(e){const t=(await(0,s.A)(this.parsedUrl?.path+"/layer",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e})).data;this.read(t,this._getServiceContext()),this.validateLayer(t)}_getServiceContext(){return{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}}async _ensureLoadBeforeSave(){await this.load(),"beforeSave"in this&&"function"==typeof this.beforeSave&&await this.beforeSave()}validateLayer(e){}async _saveAs(e,t){const r={...P,...t};let o=v.default.from(e);if(!o)throw new n.A("sceneservice:portal-item-required","_saveAs() requires a portal item to save to");o.id&&(o=o.clone(),o.id=null);const s=o.portal||g.A.getDefault();await this._ensureLoadBeforeSave(),o.type=Z,o.portal=s;const i=(0,w.m)(o,"portal-item",!0),a={layers:[this.write({},i)]};return await Promise.all(i.resources.pendingOperations??[]),await this._validateAgainstJSONSchema(a,i,r),this.url&&(o.url=this.url),o.title||(o.title=this.title),R(o,r,1),await s.signIn(),await s.user.addItem({item:o,folder:r?.folder,data:a}),await(0,S.r)(this.resourceReferences,i),this.portalItem=o,(0,p.v)(i),i.portalItem=o,o}async _save(e){const t={...P,...e};if(!this.portalItem)throw new n.A("sceneservice:portal-item-not-set","Portal item to save to has not been set on this SceneService");if(this.portalItem.type!==Z)throw new n.A("sceneservice:portal-item-wrong-type",`Portal item needs to have type "${Z}"`);await this._ensureLoadBeforeSave();const r=(0,w.m)(this.portalItem,"portal-item",!0),o={layers:[this.write({},r)]};return await Promise.all(r.resources.pendingOperations??[]),await this._validateAgainstJSONSchema(o,r,t),this.url&&(this.portalItem.url=this.url),this.portalItem.title||(this.portalItem.title=this.title),R(this.portalItem,t,0),await(0,S.S)(this.portalItem,o,this.resourceReferences,r),(0,p.v)(r),this.portalItem}async _validateAgainstJSONSchema(e,t,r){const o=r?.validationOptions;(0,x.ci)(t,{errorName:"sceneservice:save"},{ignoreUnsupported:o?.ignoreUnsupported,supplementalUnsupportedErrors:["scenemodification:unsupported"]});const s=o?.enabled,a=null;if(s&&a){const t=(await a()).validate(e,r.portalItemLayerType);if(!t.length)return;const s=`Layer item did not validate:\n${t.join("\n")}`;if(i.A.getLogger(this).error(`_validateAgainstJSONSchema(): ${s}`),"throw"===o.failPolicy){const e=t.map(e=>new n.A("sceneservice:schema-validation",e));throw new n.A("sceneservice-validate:error","Failed to save layer item due to schema validation, see `details.errors`.",{validationErrors:e})}}}};return(0,o.Cg)([(0,l.MZ)(h.id)],r.prototype,"id",void 0),(0,o.Cg)([(0,l.MZ)({type:d.A})],r.prototype,"spatialReference",void 0),(0,o.Cg)([(0,I.w)("spatialReference",["spatialReference","store.indexCRS","store.geographicCRS"])],r.prototype,"readSpatialReference",null),(0,o.Cg)([(0,l.MZ)({type:c.A})],r.prototype,"fullExtent",void 0),(0,o.Cg)([(0,I.w)("fullExtent",["fullExtent","store.extent","spatialReference","store.indexCRS","store.geographicCRS"])],r.prototype,"readFullExtent",null),(0,o.Cg)([(0,l.MZ)({readOnly:!0,type:u.A})],r.prototype,"heightModelInfo",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:{source:"minScale"},write:!1}}}})],r.prototype,"minScale",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:{source:"maxScale"},write:!1}}}})],r.prototype,"maxScale",void 0),(0,o.Cg)([(0,l.MZ)({readOnly:!0})],r.prototype,"version",void 0),(0,o.Cg)([(0,I.w)("version",["store.version"])],r.prototype,"readVersion",null),(0,o.Cg)([(0,l.MZ)({type:String,json:{read:{source:"copyrightText"}}})],r.prototype,"copyright",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{read:!1}})],r.prototype,"sublayerTitleMode",void 0),(0,o.Cg)([(0,l.MZ)({type:String})],r.prototype,"title",void 0),(0,o.Cg)([(0,I.w)("portal-item","title")],r.prototype,"readTitlePortalItem",null),(0,o.Cg)([(0,I.w)("service","title",["name"])],r.prototype,"readTitleService",null),(0,o.Cg)([(0,l.MZ)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{write:{target:"id",isRequired:!0,ignoreOrigin:!0},read:!1}}}})],r.prototype,"layerId",void 0),(0,o.Cg)([(0,l.MZ)((0,m.b)({separator:"layers"}))],r.prototype,"url",void 0),(0,o.Cg)([(0,l.MZ)({readOnly:!0})],r.prototype,"parsedUrl",null),(0,o.Cg)([(0,l.MZ)({readOnly:!0})],r.prototype,"store",void 0),(0,o.Cg)([(0,l.MZ)({type:String,readOnly:!0,json:{read:{source:"store.rootNode"}}})],r.prototype,"rootNode",void 0),r=(0,o.Cg)([(0,l.$K)("esri.layers.mixins.SceneService")],r),r},b=-1e38;function M(e){if(null!=e.spatialReference)return d.A.fromJSON(e.spatialReference);const t=e.store,r=t.indexCRS||t.geographicCRS,o=r&&parseInt(r.slice(r.lastIndexOf("/")+1),10);return null!=o?new d.A(o):null}function A(e,t){if(null==t?.center||null==t.halfSize)throw new n.A("sceneservice:invalid-node-page","Invalid node page.");if(t.center[0]<b)return;const r=t.halfSize,o=t.center[2],s=Math.sqrt(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]);e.zmin=o-s,e.zmax=o+s}function R(e,t,r){e.typeKeywords||(e.typeKeywords=[]);const o=t.getTypeKeywords();for(const t of o)e.typeKeywords.push(t);e.typeKeywords&&(e.typeKeywords=e.typeKeywords.filter((e,t,r)=>r.indexOf(e)===t),1===r&&(e.typeKeywords=e.typeKeywords.filter(e=>"Hosted Service"!==e)))}const Z="Scene Service",P={getTypeKeywords:()=>[],portalItemLayerType:"unknown",validationOptions:{enabled:!0,ignoreUnsupported:!1,failPolicy:"throw"}}},83898(e,t,r){r.d(t,{F:()=>n});var o=r(11254),s=r(49186);async function n(e,t,r,n,i,a,l){let p=null;if(null!=r){const t=`${e}/nodepages/`,s=t+Math.floor(r.rootIndex/r.nodesPerPage);try{return{type:"page",rootPage:(await(0,o.A)(s,{query:{f:"json",...n,token:i},responseType:"json",signal:l})).data,rootIndex:r.rootIndex,pageSize:r.nodesPerPage,lodMetric:r.lodSelectionMetricType,urlPrefix:t}}catch(e){null!=a&&a.warn("#fetchIndexInfo()","Failed to load root node page. Falling back to node documents.",s,e),p=e}}if(!t)return null;const c=t?.split("/").pop(),u=`${e}/nodes/`,d=u+c;try{return{type:"node",rootNode:(await(0,o.A)(d,{query:{f:"json",...n,token:i},responseType:"json",signal:l})).data,urlPrefix:u}}catch(e){throw new s.A("sceneservice:root-node-missing","Root node missing.",{pageError:p,nodeError:e,url:d})}}},50805(e,t,r){r.d(t,{L0:()=>m,Ot:()=>d,W4:()=>a,uV:()=>c});var o=r(5482),s=r(25482),n=r(91429),i=r(93223);let a=class extends s.o{constructor(){super(...arguments),this.nodesPerPage=null,this.rootIndex=0,this.lodSelectionMetricType=null}};(0,o.Cg)([(0,n.MZ)({type:Number})],a.prototype,"nodesPerPage",void 0),(0,o.Cg)([(0,n.MZ)({type:Number})],a.prototype,"rootIndex",void 0),(0,o.Cg)([(0,n.MZ)({type:String})],a.prototype,"lodSelectionMetricType",void 0),a=(0,o.Cg)([(0,n.$K)("esri.layers.support.I3SLayerDefinitions.I3SNodePageDefinition")],a);let l=class extends s.o{constructor(){super(...arguments),this.factor=1}};(0,o.Cg)([(0,n.MZ)({type:Number,json:{read:{source:"textureSetDefinitionId"}}})],l.prototype,"id",void 0),(0,o.Cg)([(0,n.MZ)({type:Number})],l.prototype,"factor",void 0),l=(0,o.Cg)([(0,n.$K)("esri.layers.support.I3SLayerDefinitions.I3SMaterialTexture")],l);let p=class extends s.o{constructor(){super(...arguments),this.baseColorFactor=[1,1,1,1],this.baseColorTexture=null,this.metallicRoughnessTexture=null,this.metallicFactor=1,this.roughnessFactor=1}};(0,o.Cg)([(0,n.MZ)({type:[Number]})],p.prototype,"baseColorFactor",void 0),(0,o.Cg)([(0,n.MZ)({type:l})],p.prototype,"baseColorTexture",void 0),(0,o.Cg)([(0,n.MZ)({type:l})],p.prototype,"metallicRoughnessTexture",void 0),(0,o.Cg)([(0,n.MZ)({type:Number})],p.prototype,"metallicFactor",void 0),(0,o.Cg)([(0,n.MZ)({type:Number})],p.prototype,"roughnessFactor",void 0),p=(0,o.Cg)([(0,n.$K)("esri.layers.support.I3SLayerDefinitions.I3SMaterialPBRMetallicRoughness")],p);let c=class extends s.o{constructor(){super(...arguments),this.alphaMode="opaque",this.alphaCutoff=.25,this.doubleSided=!1,this.cullFace="none",this.normalTexture=null,this.occlusionTexture=null,this.emissiveTexture=null,this.emissiveFactor=null,this.pbrMetallicRoughness=null}};(0,o.Cg)([(0,i.e)({opaque:"opaque",mask:"mask",blend:"blend"})],c.prototype,"alphaMode",void 0),(0,o.Cg)([(0,n.MZ)({type:Number})],c.prototype,"alphaCutoff",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean})],c.prototype,"doubleSided",void 0),(0,o.Cg)([(0,i.e)({none:"none",back:"back",front:"front"})],c.prototype,"cullFace",void 0),(0,o.Cg)([(0,n.MZ)({type:l})],c.prototype,"normalTexture",void 0),(0,o.Cg)([(0,n.MZ)({type:l})],c.prototype,"occlusionTexture",void 0),(0,o.Cg)([(0,n.MZ)({type:l})],c.prototype,"emissiveTexture",void 0),(0,o.Cg)([(0,n.MZ)({type:[Number]})],c.prototype,"emissiveFactor",void 0),(0,o.Cg)([(0,n.MZ)({type:p})],c.prototype,"pbrMetallicRoughness",void 0),c=(0,o.Cg)([(0,n.$K)("esri.layers.support.I3SLayerDefinitions.I3SMaterialDefinition")],c);let u=class extends s.o{};(0,o.Cg)([(0,n.MZ)({type:String,json:{read:{source:["name","index"],reader:(e,t)=>null!=e?e:`${t.index}`}}})],u.prototype,"name",void 0),(0,o.Cg)([(0,i.e)({jpg:"jpg",png:"png",dds:"dds","ktx-etc2":"ktx-etc2",ktx2:"ktx2",basis:"basis"})],u.prototype,"format",void 0),u=(0,o.Cg)([(0,n.$K)("esri.layers.support.I3SLayerDefinitions.I3STextureFormat")],u);let d=class extends s.o{constructor(){super(...arguments),this.atlas=!1}};(0,o.Cg)([(0,n.MZ)({type:[u]})],d.prototype,"formats",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean})],d.prototype,"atlas",void 0),d=(0,o.Cg)([(0,n.$K)("esri.layers.support.I3SLayerDefinitions.I3STextureSetDefinition")],d);let y=class extends s.o{};(0,o.Cg)([(0,i.e)({Float32:"Float32",UInt64:"UInt64",UInt32:"UInt32",UInt16:"UInt16",UInt8:"UInt8"})],y.prototype,"type",void 0),(0,o.Cg)([(0,n.MZ)({type:Number})],y.prototype,"component",void 0),y=(0,o.Cg)([(0,n.$K)("esri.layers.support.I3SLayerDefinitions.I3SGeometryAttribute")],y);let h=class extends s.o{};(0,o.Cg)([(0,i.e)({draco:"draco"})],h.prototype,"encoding",void 0),(0,o.Cg)([(0,n.MZ)({type:[String]})],h.prototype,"attributes",void 0),h=(0,o.Cg)([(0,n.$K)("esri.layers.support.I3SLayerDefinitions.I3SGeometryCompressedAttributes")],h);let f=class extends s.o{constructor(){super(...arguments),this.offset=0}};(0,o.Cg)([(0,n.MZ)({type:Number})],f.prototype,"offset",void 0),(0,o.Cg)([(0,n.MZ)({type:y})],f.prototype,"position",void 0),(0,o.Cg)([(0,n.MZ)({type:y})],f.prototype,"normal",void 0),(0,o.Cg)([(0,n.MZ)({type:y})],f.prototype,"uv0",void 0),(0,o.Cg)([(0,n.MZ)({type:y})],f.prototype,"color",void 0),(0,o.Cg)([(0,n.MZ)({type:y})],f.prototype,"uvRegion",void 0),(0,o.Cg)([(0,n.MZ)({type:y})],f.prototype,"featureId",void 0),(0,o.Cg)([(0,n.MZ)({type:y})],f.prototype,"faceRange",void 0),(0,o.Cg)([(0,n.MZ)({type:h})],f.prototype,"compressedAttributes",void 0),f=(0,o.Cg)([(0,n.$K)("esri.layers.support.I3SLayerDefinitions.I3SGeometryBuffer")],f);let m=class extends s.o{};(0,o.Cg)([(0,i.e)({triangle:"triangle"})],m.prototype,"topology",void 0),(0,o.Cg)([(0,n.MZ)()],m.prototype,"geometryBuffers",void 0),m=(0,o.Cg)([(0,n.$K)("esri.layers.support.I3SLayerDefinitions.I3SGeometryDefinition")],m)},88788(e,t,r){r.d(t,{m:()=>i,v:()=>n});var o=r(84952),s=r(20655);function n(e,t){return{...a(e,t),readResourcePaths:[]}}function i(e,t,r){const s=(0,o.An)(e.itemUrl);return{...a(e,t),messages:[],writtenProperties:[],blockedRelativeUrls:[],verifyItemRelativeUrls:s?{rootPath:s.path,writtenUrls:[]}:null,resources:r?{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}:null}}function a(e,t){return{origin:t,url:(0,o.An)(e.itemUrl),portal:e.portal||s.A.getDefault(),portalItem:e}}},15804(e,t,r){r.d(t,{addOrUpdateResources:()=>a,bg:()=>d,cL:()=>u,fetchResources:()=>i,removeAllResources:()=>p,removeResource:()=>l});var o=r(11254),s=r(49186),n=r(84952);async function i(e,t={},r){await e.load(r);const o=(0,n.fj)(e.itemUrl,"resources"),{start:s=1,num:i=10,sortOrder:a="asc",sortField:l="resource"}=t,p={query:{start:s,num:i,sortOrder:a,sortField:l,token:e.apiKey},signal:r?.signal},c=await e.portal.request(o,p);return{total:c.total,nextStart:c.nextStart,resources:c.resources.map(({created:t,size:r,resource:o})=>({created:new Date(t),size:r,resource:e.resourceFromPath(o)}))}}async function a(e,t,r,o){const i=new Map;for(const{resource:e,content:o,compress:n,access:a}of t){if(!e.hasPath())throw new s.A(`portal-item-resource-${r}:invalid-path`,"Resource does not have a valid path");const[t,l]=c(e.path),p=`${t}/${n??""}/${a??""}`;i.has(p)||i.set(p,{prefix:t,compress:n,access:a,files:[]}),i.get(p).files.push({fileName:l,content:o})}await e.load(o);const a=(0,n.fj)(e.userItemUrl,"add"===r?"addResources":"updateResources");for(const{prefix:t,compress:r,access:s,files:n}of i.values()){const i=25;for(let l=0;l<n.length;l+=i){const p=n.slice(l,l+i),c=new FormData;t&&"."!==t&&c.append("resourcesPrefix",t),r&&c.append("compress","true"),s&&c.append("access",s);let u=0;for(const{fileName:e,content:t}of p)c.append("file"+ ++u,t,e);c.append("f","json"),await e.portal.request(a,{method:"post",body:c,signal:o?.signal})}}}async function l(e,t,r){if(!t.hasPath())throw new s.A("portal-item-resources-remove:invalid-path","Resource does not have a valid path");await e.load(r);const o=(0,n.fj)(e.userItemUrl,"removeResources");await e.portal.request(o,{method:"post",query:{resource:t.path},signal:r?.signal}),t.portalItem=null}async function p(e,t){await e.load(t);const r=(0,n.fj)(e.userItemUrl,"removeResources");return e.portal.request(r,{method:"post",query:{deleteAll:!0},signal:t?.signal})}function c(e){const t=e.lastIndexOf("/");return-1===t?[".",e]:[e.slice(0,t),e.slice(t+1)]}async function u(e){return"blob"===e.type?e.blob:"json"===e.type?new Blob([e.jsonString],{type:"application/json"}):(await(0,o.A)(e.url,{responseType:"blob"})).data}function d(e,t){if(!e.hasPath())return null;const[r,,o]=function(e){const[t,r]=function(e){const t=(0,n.Zo)(e);return null==t?[e,""]:[e.slice(0,e.length-t.length-1),`.${t}`]}(e),[o,s]=c(t);return[o,s,r]}(e.path);return e.portalItem.resourceFromPath((0,n.fj)(r,t+o))}},24212(e,t,r){r.d(t,{$7:()=>a,B:()=>i,XF:()=>p,tW:()=>l,w7:()=>n});var o=r(56512),s=r(86211);function n(e,t){return function(e,t){return t?.mode?t.mode:function(e){return e?c:u}(e).mode}(null==e||(e.hasZ??!1),t)}function i(e,t,r){return r&&r.mode!==t?`${e} only support ${t} elevation mode`:null}function a(e,t,r){return r?.mode===t?`${e} do not support ${t} elevation mode`:null}function l(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function p(e,t){t&&e.warn(".elevationInfo=",t)}r(16271),(0,o.B)((e,t,r)=>{if(!e)return 0;if("decimal-degrees"===t)return 0;const o="unknown"!==t&&t?t:"meters",n=(0,s.mq)(r);return n?(0,s.oU)(e,o,n):0});const c={mode:"absolute-height",offset:0},u={mode:"on-the-ground",offset:null}},91682(e,t,r){r.d(t,{S:()=>l,r:()=>a});var o=r(49186),s=r(74887),n=r(13069),i=r(15804);async function a(e,t,r){const o=await p(e,t,r);await c(o,t,r)}async function l(e,t,r,o,s){const n=await p(r,o,s);await e.update({data:t}),await c(n,o,s)}async function p(e,t,a){if(!t?.resources)return;const l=t.portalItem===e.portalItem?new Set(e.paths):new Set;e.paths.length=0,e.portalItem=t.portalItem;const p=new Set(t.resources.toKeep.map(e=>e.resource.path)),c=new Set,u=[];p.forEach(t=>{l.delete(t),e.paths.push(t)});const d=[],y=[],h=[];for(const r of t.resources.toUpdate)if(l.delete(r.resource.path),p.has(r.resource.path)||c.has(r.resource.path)){const{resource:t,content:o,finish:s}=r,a=(0,i.bg)(t,(0,n.lk)());e.paths.push(a.path),d.push({resource:a,content:await(0,i.cL)(o),compress:r.compress}),s&&h.push(()=>s(a))}else{e.paths.push(r.resource.path),y.push({resource:r.resource,content:await(0,i.cL)(r.content),compress:r.compress});const t=r.finish;t&&h.push(()=>t(r.resource)),c.add(r.resource.path)}for(const r of t.resources.toAdd)if(e.paths.push(r.resource.path),l.has(r.resource.path))l.delete(r.resource.path);else{d.push({resource:r.resource,content:await(0,i.cL)(r.content),compress:r.compress});const e=r.finish;e&&h.push(()=>e(r.resource))}if(d.length||y.length){const{addOrUpdateResources:e}=await Promise.resolve().then(r.bind(r,15804));await e(t.portalItem,d,"add",a),await e(t.portalItem,y,"update",a)}if(h.forEach(e=>e()),0===u.length)return l;const f=await(0,s.Ol)(u);if((0,s.Te)(a),f.length>0)throw new o.A("save:resources","Failed to save one or more resources",{errors:f});return l}async function c(e,t,r){if(!e||!t.portalItem)return;const o=[];for(const s of e){const e=t.portalItem.resourceFromPath(s);o.push(e.portalItem.removeResource(e,r))}await(0,s.Lx)(o)}},26121(e,t,r){r.d(t,{ci:()=>i,dL:()=>n});var o=r(49186),s=(r(77548),r(59923));async function n(e){const t=[];for(const r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){const e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}function i(e,t,r){let n=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:r})=>new o.A(e,t,r));if(e.blockedRelativeUrls&&(n=n.concat(e.blockedRelativeUrls.map(e=>(0,s.GL)("url",`Relative url '${e}' is not supported`)))),r){const{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:o}=r;e&&(n=n.filter(({name:e})=>!(s.MG.has(e)||t.includes(e)))),o&&(n=n.filter(e=>"web-document-write:property-required"!==e.name))}if(n.length>0)throw new o.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:n})}}}]);