@arcgis/core 5.2.0-next.95 → 5.2.0-next.96

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 (530) hide show
  1. package/applications/WebEditor/geometryUtils.d.ts +1 -1
  2. package/arcade/arcadeAsyncRuntime.js +1 -1
  3. package/arcade/arcadeCompiler.js +1 -1
  4. package/arcade/arcadeRuntime.js +1 -1
  5. package/arcade/containerUtils.js +1 -1
  6. package/arcade/functions/track.js +1 -1
  7. package/arcgisGlobal.d.ts +2 -0
  8. package/assets/components/assets/icon/aiAgent16.json +1 -0
  9. package/assets/components/assets/icon/aiAgent24.json +1 -0
  10. package/assets/components/assets/icon/aiAgent32.json +1 -0
  11. package/assets/components/assets/icon/aiAgents16.json +1 -0
  12. package/assets/components/assets/icon/aiAgents24.json +1 -0
  13. package/assets/components/assets/icon/aiAgents32.json +1 -0
  14. package/assets/components/assets/icon/explodeGeometry16.json +1 -0
  15. package/assets/components/assets/icon/explodeGeometry24.json +1 -0
  16. package/assets/components/assets/icon/explodeGeometry32.json +1 -0
  17. package/assets/components/assets/icon/integration16.json +1 -0
  18. package/assets/components/assets/icon/integration24.json +1 -0
  19. package/assets/components/assets/icon/integration32.json +1 -0
  20. package/assets/components/assets/icon/spatiotemporalCatalog16.json +1 -0
  21. package/assets/components/assets/icon/spatiotemporalCatalog24.json +1 -0
  22. package/assets/components/assets/icon/spatiotemporalCatalog32.json +1 -0
  23. package/assets/components/assets/input-time-zone/t9n/messages.de.json +1 -1
  24. package/assets/esri/core/workers/RemoteClient.js +1 -1
  25. package/assets/esri/core/workers/chunks/000f91a18c22377f8525.js +1 -0
  26. package/assets/esri/core/workers/chunks/{05662a663f761dd3dea5.js → 006146ad6d4a5cbf1a1f.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{bd1a7e95a797e1ed4a7b.js → 013c17e07756fa465845.js} +1 -1
  28. package/assets/esri/core/workers/chunks/014eaccf2c2d357981f0.js +1 -0
  29. package/assets/esri/core/workers/chunks/{f253875feb11883deb84.js → 04d4cd66485b622403d0.js} +1 -1
  30. package/assets/esri/core/workers/chunks/05eb064f9b543890ae24.js +1 -0
  31. package/assets/esri/core/workers/chunks/05fbd1f373cfa3724f0c.js +1 -0
  32. package/assets/esri/core/workers/chunks/{26737d061c7cfbbab95c.js → 0809a55a2f9be07cc5a9.js} +1 -1
  33. package/assets/esri/core/workers/chunks/0930738f43ce09b2ed2d.js +1 -0
  34. package/assets/esri/core/workers/chunks/{691434d4c6a38e63d819.js → 0a242e76bc293b0ad04b.js} +1 -1
  35. package/assets/esri/core/workers/chunks/0a4092578dc7578bcf76.js +1 -0
  36. package/assets/esri/core/workers/chunks/0e11bee9b56a7f51b012.js +1 -0
  37. package/assets/esri/core/workers/chunks/0e65869a5dd5a3917da7.js +1 -0
  38. package/assets/esri/core/workers/chunks/0ffb5a1275d07dcd9115.js +1 -0
  39. package/assets/esri/core/workers/chunks/{e370a3337b3c90240e73.js → 105da965fc90604eb6bf.js} +1 -1
  40. package/assets/esri/core/workers/chunks/1082bb0858585bd4fa21.js +2 -0
  41. package/assets/esri/core/workers/chunks/{5235b9c21ac4156c2375.js → 10f4c5533f50c3693318.js} +1 -1
  42. package/assets/esri/core/workers/chunks/1201bb22a2bfd7d7ecba.js +1 -0
  43. package/assets/esri/core/workers/chunks/16f55c5d642a23c2547e.js +1 -0
  44. package/assets/esri/core/workers/chunks/{09e01fd1c199be0c8e03.js → 16ffbe484f6cd4736f79.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{1bf967c68d0c795d3fb4.js → 19a4907fc93ae8b817e9.js} +1 -1
  46. package/assets/esri/core/workers/chunks/{f74c7cbe4bd12f73ae90.js → 19d7339f20f3008c4893.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{a8aa8cb60b30f0983e7e.js → 1a9f17781e0a3bc5106f.js} +1 -1
  48. package/assets/esri/core/workers/chunks/{bf7875fda48b15271a10.js → 1bef7097fe5e402539ea.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{fa377112ef3b78f6ed18.js → 1de1cc0ed0f169a58aff.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{0549e2badf511e27aa54.js → 1e3b07cf0e608431a277.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{2e51764c8aa31096cb2a.js → 20feca2fdd304b3e9664.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{4c73c2f4331351e2a50c.js → 22ff018342860249b3eb.js} +1 -1
  53. package/assets/esri/core/workers/chunks/248df6fda489a9de5852.js +1 -0
  54. package/assets/esri/core/workers/chunks/279b16727d4b515eca44.js +1 -0
  55. package/assets/esri/core/workers/chunks/2b10d6597af3eeec5396.js +1 -0
  56. package/assets/esri/core/workers/chunks/2bd4b536e329112591c4.js +1 -0
  57. package/assets/esri/core/workers/chunks/2c01477b69c38f691e19.js +1 -0
  58. package/assets/esri/core/workers/chunks/2e2349387a2b9903f13c.js +2 -0
  59. package/assets/esri/core/workers/chunks/{4d700cb028f6306b163e.js → 32aa1529e84b839d051d.js} +1 -1
  60. package/assets/esri/core/workers/chunks/33041e50ea02d99480b0.js +1 -0
  61. package/assets/esri/core/workers/chunks/{5d7a5aa608ed6192b016.js → 349982635e921e838030.js} +1 -1
  62. package/assets/esri/core/workers/chunks/35d0a7597473d46866de.js +1 -0
  63. package/assets/esri/core/workers/chunks/374d726fdd0a9848cea5.js +1 -0
  64. package/assets/esri/core/workers/chunks/379f5ca5372d834af497.js +1 -0
  65. package/assets/esri/core/workers/chunks/37ae52c71bf9c70fbb92.js +1 -0
  66. package/assets/esri/core/workers/chunks/{05393b23ab24126d4236.js → 38bc5d09ae07f486d457.js} +1 -1
  67. package/assets/esri/core/workers/chunks/3bafa01ca01a67d09432.js +1 -0
  68. package/assets/esri/core/workers/chunks/3c7901ea007c9615ba54.js +1 -0
  69. package/assets/esri/core/workers/chunks/4047208f9559e06d7102.js +1 -0
  70. package/assets/esri/core/workers/chunks/4049e9b86c8e27a7ff12.js +1 -0
  71. package/assets/esri/core/workers/chunks/411bbdecba340df11d95.js +2 -0
  72. package/assets/esri/core/workers/chunks/42b5533f94ebcdc4befe.js +1 -0
  73. package/assets/esri/core/workers/chunks/44ca13c874b5aa0ed5a0.js +1 -0
  74. package/assets/esri/core/workers/chunks/4717831effb1ac6d5f5d.js +1 -0
  75. package/assets/esri/core/workers/chunks/{5edf77618ca51819d7c4.js → 476535cfb06ced74d611.js} +2 -2
  76. package/assets/esri/core/workers/chunks/486f1277fe834c0fc4c1.js +1 -0
  77. package/assets/esri/core/workers/chunks/48ade66f1685a1aaffba.js +1 -0
  78. package/assets/esri/core/workers/chunks/4d13c1a04788e5222678.js +1 -0
  79. package/assets/esri/core/workers/chunks/{cc3186dcbbf5edff8b9e.js → 4d7f6c92041d52cc8732.js} +1 -1
  80. package/assets/esri/core/workers/chunks/{595edbc1e9bba47d5676.js → 4f89da01b67b66a92c01.js} +1 -1
  81. package/assets/esri/core/workers/chunks/507bbcde2b39321b50a4.js +1 -0
  82. package/assets/esri/core/workers/chunks/{9b8e33985310f281f084.js → 56a5b65961e722f5cae9.js} +1 -1
  83. package/assets/esri/core/workers/chunks/5830deda121e4c95d199.js +1 -0
  84. package/assets/esri/core/workers/chunks/{b102ae764c14d8b32ace.js → 58a52adc42fbe5cd12c6.js} +1 -1
  85. package/assets/esri/core/workers/chunks/{b0e25ccb5a1e57a82628.js → 58b93f13316196d2e97d.js} +1 -1
  86. package/assets/esri/core/workers/chunks/58f98bd89b644cfdafae.js +1 -0
  87. package/assets/esri/core/workers/chunks/5a8658e4ef5163e8ab3b.js +1 -0
  88. package/assets/esri/core/workers/chunks/5aa3e1e9c701c7fef6e4.js +1 -0
  89. package/assets/esri/core/workers/chunks/5bb8d9d887dd4211afd2.js +1 -0
  90. package/assets/esri/core/workers/chunks/5d7625eb9997cd0dff09.js +1 -0
  91. package/assets/esri/core/workers/chunks/5e56a004b4407b8066eb.js +1 -0
  92. package/assets/esri/core/workers/chunks/5efc66be4576c6f67064.js +1 -0
  93. package/assets/esri/core/workers/chunks/60b1af54e7fc20fd9588.js +1 -0
  94. package/assets/esri/core/workers/chunks/6134a2c6983792787184.js +1 -0
  95. package/assets/esri/core/workers/chunks/6319413b89e23f671487.js +1 -0
  96. package/assets/esri/core/workers/chunks/{1b311ff39dede07865df.js → 633454b27c34f9ec7940.js} +1 -1
  97. package/assets/esri/core/workers/chunks/63c43ebf46964c283b4d.js +1 -0
  98. package/assets/esri/core/workers/chunks/65d3638ded62c5606ae3.js +1 -0
  99. package/assets/esri/core/workers/chunks/{aa0ef4493a7e9bed159f.js → 662f4b39ec44c68e0733.js} +1 -1
  100. package/assets/esri/core/workers/chunks/680bef5e8237cc3bdd84.js +1 -0
  101. package/assets/esri/core/workers/chunks/6835f959952f70972fce.js +1 -0
  102. package/assets/esri/core/workers/chunks/{ddf284648a73b6993737.js → 68d823697c298122ee08.js} +1 -1
  103. package/assets/esri/core/workers/chunks/6aaefd61505027267c9b.js +1 -0
  104. package/assets/esri/core/workers/chunks/6ceb17eada151230abf7.js +1 -0
  105. package/assets/esri/core/workers/chunks/6df29716f75696434807.js +1 -0
  106. package/assets/esri/core/workers/chunks/6e804bd6bb4b0ee44fa9.js +1 -0
  107. package/assets/esri/core/workers/chunks/{ee77999df3785468b2b6.js → 6f6e8b7e6e2c856e4ed1.js} +1 -1
  108. package/assets/esri/core/workers/chunks/{8ea28a4b1afe8bb2d313.js → 7091bbdc36f1f03f14b3.js} +1 -1
  109. package/assets/esri/core/workers/chunks/7608de0d942b4c16b2f6.js +1 -0
  110. package/assets/esri/core/workers/chunks/{4b6f433022a6822706cb.js → 762817d30474c15142b4.js} +1 -1
  111. package/assets/esri/core/workers/chunks/762e9a15b2638475a2b4.js +1 -0
  112. package/assets/esri/core/workers/chunks/79088d5c9c2e6a780929.js +1 -0
  113. package/assets/esri/core/workers/chunks/{f3d57c5b9dffd12e45b4.js → 7c3a89c12ea32a071ad4.js} +1 -1
  114. package/assets/esri/core/workers/chunks/7c67596c0792282afdfc.js +1 -0
  115. package/assets/esri/core/workers/chunks/7cef6e5f39137e74bbc3.js +1 -0
  116. package/assets/esri/core/workers/chunks/{87e0ceb1a64ab08e679a.js → 7fd54fa2f91cdab44ab3.js} +1 -1
  117. package/assets/esri/core/workers/chunks/822a5020afbca21df7f7.js +1 -0
  118. package/assets/esri/core/workers/chunks/8599d2f2eb0fbb4a8bf5.js +1 -0
  119. package/assets/esri/core/workers/chunks/862f7090ba4a56c07093.js +1 -0
  120. package/assets/esri/core/workers/chunks/{97c7dfd29ad4c2966cb4.js → 88252899a5291ad29710.js} +1 -1
  121. package/assets/esri/core/workers/chunks/8837fbcc0d484659b79c.js +1 -0
  122. package/assets/esri/core/workers/chunks/8dcc7749de3391710864.js +1 -0
  123. package/assets/esri/core/workers/chunks/900dad076347443b3ad9.js +1 -0
  124. package/assets/esri/core/workers/chunks/{f8f7b86bbd62106bc3d4.js → 925f83be3c1eb4b5c6af.js} +1 -1
  125. package/assets/esri/core/workers/chunks/{a4a22149077c7780481c.js → 9378ce457b02717304e6.js} +1 -1
  126. package/assets/esri/core/workers/chunks/93a7cf23f73b23fc7802.js +1 -0
  127. package/assets/esri/core/workers/chunks/93c1d1e7c0935242071e.js +1 -0
  128. package/assets/esri/core/workers/chunks/{fddcb8be714ad18ad0c8.js → 970b33947bf61fccd461.js} +1 -1
  129. package/assets/esri/core/workers/chunks/97aaff86e06380a68df8.js +1 -0
  130. package/assets/esri/core/workers/chunks/9bc7df2b8ae0ed443d13.js +1 -0
  131. package/assets/esri/core/workers/chunks/9cc14a41d4a90f6d626e.js +1 -0
  132. package/assets/esri/core/workers/chunks/9e514a58b1165e273202.js +1 -0
  133. package/assets/esri/core/workers/chunks/9fe1db0762ab3326eab4.js +1 -0
  134. package/assets/esri/core/workers/chunks/{a5bb19d2b7d7db22222b.js → a10188c4d1904965898a.js} +1 -1
  135. package/assets/esri/core/workers/chunks/a2288d44cba34d947613.js +1 -0
  136. package/assets/esri/core/workers/chunks/a26916de4c105859621e.js +1 -0
  137. package/assets/esri/core/workers/chunks/a322afbb48898ce35851.js +1 -0
  138. package/assets/esri/core/workers/chunks/a34cadd486e7fcc79063.js +1 -0
  139. package/assets/esri/core/workers/chunks/{cefb70d633c220cbedf9.js → a4dc1a80ed6604d71722.js} +1 -1
  140. package/assets/esri/core/workers/chunks/{6baae3e856d904fef9b1.js → a8f70cece5ce2b095cdd.js} +1 -1
  141. package/assets/esri/core/workers/chunks/ab332bd411d6c7d4190c.js +1 -0
  142. package/assets/esri/core/workers/chunks/{777f2fdf1f4b9f243893.js → ab3a6ce7bc2a27b92469.js} +1 -1
  143. package/assets/esri/core/workers/chunks/abd2f8fae6b918fbdd6d.js +1 -0
  144. package/assets/esri/core/workers/chunks/{b13d2da33ec07e9d41ff.js → b0da2b089a89d643df1e.js} +1 -1
  145. package/assets/esri/core/workers/chunks/{65f4ca7201e7267bfc81.js → b5fcf4165ac72654742d.js} +1 -1
  146. package/assets/esri/core/workers/chunks/b82b523b6837ed1f28d3.js +2 -0
  147. package/assets/esri/core/workers/chunks/{527b87fddf33bb5d519e.js → ba77a8892cb23c7a297d.js} +1 -1
  148. package/assets/esri/core/workers/chunks/bb8089929ded0613d8e7.js +1 -0
  149. package/assets/esri/core/workers/chunks/bc7ca87d3bfe8a4aec81.js +1 -0
  150. package/assets/esri/core/workers/chunks/bc9b96a539f28afcb8cb.js +1 -0
  151. package/assets/esri/core/workers/chunks/{2d07d5a9ec67c39ef10c.js → bd4f29d2681e5596591a.js} +1 -1
  152. package/assets/esri/core/workers/chunks/bf9eba555aebca2c132b.js +1 -0
  153. package/assets/esri/core/workers/chunks/{903c7bd079888f65fef1.js → c3fbd81bb5820e48038f.js} +1 -1
  154. package/assets/esri/core/workers/chunks/c9df18e9ff7367a004b6.js +1 -0
  155. package/assets/esri/core/workers/chunks/ca8061e0a6d78d646ebf.js +1 -0
  156. package/assets/esri/core/workers/chunks/cc73ac8404615dc392d2.js +1 -0
  157. package/assets/esri/core/workers/chunks/{e823c9ccb7bc348d8824.js → ccb26860518dce6d01c0.js} +1 -1
  158. package/assets/esri/core/workers/chunks/cded34b161fcc790e672.js +1 -0
  159. package/assets/esri/core/workers/chunks/{1bf5c0a4bc5a960a3fa2.js → d1d4979e9dcabe5e4619.js} +1 -1
  160. package/assets/esri/core/workers/chunks/d2865c604849ce79183f.js +1 -0
  161. package/assets/esri/core/workers/chunks/{9b81bd62a2c72f592db1.js → d826f6d32b4c5885276a.js} +1 -1
  162. package/assets/esri/core/workers/chunks/d92540d3ffc4af980dd8.js +1 -0
  163. package/assets/esri/core/workers/chunks/dc7853795439ae77ace9.js +1 -0
  164. package/assets/esri/core/workers/chunks/{1f047dd747e7c1916dc7.js → dd55737fba0a8fe68101.js} +3 -3
  165. package/assets/esri/core/workers/chunks/dd8d19eb6b8e955c8067.js +1 -0
  166. package/assets/esri/core/workers/chunks/dda269a088275c823b40.js +1 -0
  167. package/assets/esri/core/workers/chunks/{7b70d6fdfa7a19ffffb0.js → de95dee8db92cf8f796f.js} +1 -1
  168. package/assets/esri/core/workers/chunks/e1c8767143f9f9d1f049.js +1 -0
  169. package/assets/esri/core/workers/chunks/{2cf2f2842c19be84ab4d.js → e6cb31c727f799c1297c.js} +1 -1
  170. package/assets/esri/core/workers/chunks/e934ef66d130c212c05b.js +1 -0
  171. package/assets/esri/core/workers/chunks/{7c56446184abcd14678b.js → ea77654c8964cc39b9a6.js} +1 -1
  172. package/assets/esri/core/workers/chunks/eb167f9f6132a6348d2e.js +1 -0
  173. package/assets/esri/core/workers/chunks/ed5ac1efd3cba49be756.js +1 -0
  174. package/assets/esri/core/workers/chunks/ef24fd6c0322e5de9fdf.js +2 -0
  175. package/assets/esri/core/workers/chunks/f219ba010c480bb75684.js +1 -0
  176. package/assets/esri/core/workers/chunks/fbf2d90240d36f8b423f.js +1 -0
  177. package/assets/esri/core/workers/chunks/{4ee99e654dad6f09abee.js → fc042b9936686785c39e.js} +1 -1
  178. package/assets/esri/core/workers/chunks/fc1658eae7b312502fab.js +1 -0
  179. package/assets/esri/core/workers/chunks/{af6b9fd77b1792fbb66e.js → fd4d124c5bf810d9e352.js} +1 -1
  180. package/assets/esri/core/workers/chunks/ffa35ecc681ec1c4739a.js +1 -0
  181. package/assets/esri/core/workers/chunks/ffca0b2333e760b66d3a.js +1 -0
  182. package/config.js +1 -1
  183. package/editing/sharedTemplates/executor/builders/bufferLineToPolygon.js +1 -1
  184. package/editing/sharedTemplates/executor/builders/bufferPointToPolygon.js +1 -1
  185. package/editing/sharedTemplates/executor/builders/bufferPolygonToPolygon.js +1 -1
  186. package/editing/sharedTemplates/executor/builders/pointAtIntersectionVerticesOfLine.js +1 -1
  187. package/editing/sharedTemplates/executor/builders/support/offsetUtils.js +1 -1
  188. package/editing/sharedTemplates/executor/support/createPresetServiceEdit.js +1 -1
  189. package/geometry/Polygon.js +1 -1
  190. package/geometry/geometryEngine.d.ts +36 -36
  191. package/geometry/operators/affineTransformOperator.d.ts +30 -1
  192. package/geometry/operators/affineTransformOperator.js +1 -1
  193. package/geometry/operators/alphaShapeOperator.d.ts +49 -5
  194. package/geometry/operators/alphaShapeOperator.js +1 -1
  195. package/geometry/operators/areaOperator.d.ts +28 -4
  196. package/geometry/operators/areaOperator.js +1 -1
  197. package/geometry/operators/autoCompleteOperator.d.ts +25 -2
  198. package/geometry/operators/autoCompleteOperator.js +1 -1
  199. package/geometry/operators/boundaryOperator.d.ts +40 -2
  200. package/geometry/operators/boundaryOperator.js +1 -1
  201. package/geometry/operators/bufferOperator.d.ts +51 -6
  202. package/geometry/operators/bufferOperator.js +1 -1
  203. package/geometry/operators/centroidOperator.d.ts +23 -2
  204. package/geometry/operators/centroidOperator.js +1 -1
  205. package/geometry/operators/clipOperator.d.ts +34 -2
  206. package/geometry/operators/clipOperator.js +1 -1
  207. package/geometry/operators/containsOperator.d.ts +32 -2
  208. package/geometry/operators/containsOperator.js +1 -1
  209. package/geometry/operators/convexHullOperator.d.ts +47 -4
  210. package/geometry/operators/convexHullOperator.js +1 -1
  211. package/geometry/operators/crossesOperator.d.ts +35 -2
  212. package/geometry/operators/crossesOperator.js +1 -1
  213. package/geometry/operators/cutOperator.d.ts +23 -2
  214. package/geometry/operators/cutOperator.js +1 -1
  215. package/geometry/operators/densifyOperator.d.ts +61 -6
  216. package/geometry/operators/densifyOperator.js +1 -1
  217. package/geometry/operators/differenceOperator.d.ts +34 -2
  218. package/geometry/operators/differenceOperator.js +1 -1
  219. package/geometry/operators/disjointOperator.d.ts +33 -2
  220. package/geometry/operators/disjointOperator.js +1 -1
  221. package/geometry/operators/distanceOperator.d.ts +29 -4
  222. package/geometry/operators/distanceOperator.js +1 -1
  223. package/geometry/operators/equalsOperator.d.ts +32 -2
  224. package/geometry/operators/equalsOperator.js +1 -1
  225. package/geometry/operators/extendOperator.d.ts +29 -3
  226. package/geometry/operators/extendOperator.js +1 -1
  227. package/geometry/operators/generalizeOperator.d.ts +46 -5
  228. package/geometry/operators/generalizeOperator.js +1 -1
  229. package/geometry/operators/geodesicBufferOperator.d.ts +71 -7
  230. package/geometry/operators/geodesicBufferOperator.js +1 -1
  231. package/geometry/operators/geodesicProximityOperator.d.ts +106 -14
  232. package/geometry/operators/geodesicProximityOperator.js +1 -1
  233. package/geometry/operators/geodeticAreaOperator.d.ts +51 -5
  234. package/geometry/operators/geodeticAreaOperator.js +1 -1
  235. package/geometry/operators/geodeticDensifyOperator.d.ts +65 -6
  236. package/geometry/operators/geodeticDensifyOperator.js +1 -1
  237. package/geometry/operators/geodeticDistanceOperator.d.ts +52 -5
  238. package/geometry/operators/geodeticDistanceOperator.js +1 -1
  239. package/geometry/operators/geodeticLengthOperator.d.ts +51 -5
  240. package/geometry/operators/geodeticLengthOperator.js +1 -1
  241. package/geometry/operators/geodeticUtilsOperator.d.ts +79 -9
  242. package/geometry/operators/geodeticUtilsOperator.js +1 -1
  243. package/geometry/operators/graphicBufferOperator.d.ts +47 -4
  244. package/geometry/operators/graphicBufferOperator.js +1 -1
  245. package/geometry/operators/integrateOperator.d.ts +24 -2
  246. package/geometry/operators/integrateOperator.js +1 -1
  247. package/geometry/operators/intersectionOperator.d.ts +88 -3
  248. package/geometry/operators/intersectionOperator.js +1 -1
  249. package/geometry/operators/intersectsOperator.d.ts +32 -2
  250. package/geometry/operators/intersectsOperator.js +1 -1
  251. package/geometry/operators/isNearOperator.d.ts +31 -4
  252. package/geometry/operators/isNearOperator.js +1 -1
  253. package/geometry/operators/json/bufferOperator.js +1 -1
  254. package/geometry/operators/json/containsOperator.js +1 -1
  255. package/geometry/operators/json/convexHullOperator.js +1 -1
  256. package/geometry/operators/json/crossesOperator.js +1 -1
  257. package/geometry/operators/json/disjointOperator.js +1 -1
  258. package/geometry/operators/json/generalizeOperator.js +1 -1
  259. package/geometry/operators/json/geodesicBufferOperator.js +1 -1
  260. package/geometry/operators/json/graphicBufferOperator.js +1 -1
  261. package/geometry/operators/json/intersectionOperator.js +1 -1
  262. package/geometry/operators/json/intersectsOperator.js +1 -1
  263. package/geometry/operators/json/lengthOperator.js +1 -1
  264. package/geometry/operators/json/offsetOperator.js +1 -1
  265. package/geometry/operators/json/overlapsOperator.js +1 -1
  266. package/geometry/operators/json/projectOperator.js +1 -1
  267. package/geometry/operators/json/simplifyOperator.js +1 -1
  268. package/geometry/operators/json/simplifyOperatorOGC.js +1 -1
  269. package/geometry/operators/json/touchesOperator.js +1 -1
  270. package/geometry/operators/json/unionOperator.js +1 -1
  271. package/geometry/operators/json/withinOperator.js +1 -1
  272. package/geometry/operators/labelPointOperator.d.ts +32 -2
  273. package/geometry/operators/labelPointOperator.js +1 -1
  274. package/geometry/operators/lengthOperator.d.ts +28 -4
  275. package/geometry/operators/lengthOperator.js +1 -1
  276. package/geometry/operators/linesToPolygonsOperator.d.ts +23 -2
  277. package/geometry/operators/linesToPolygonsOperator.js +1 -1
  278. package/geometry/operators/locateBetweenOperator.d.ts +28 -2
  279. package/geometry/operators/locateBetweenOperator.js +1 -1
  280. package/geometry/operators/minimumBoundingCircleOperator.d.ts +38 -4
  281. package/geometry/operators/minimumBoundingCircleOperator.js +1 -1
  282. package/geometry/operators/multiPartToSinglePartOperator.d.ts +33 -4
  283. package/geometry/operators/multiPartToSinglePartOperator.js +1 -1
  284. package/geometry/operators/offsetOperator.d.ts +50 -5
  285. package/geometry/operators/offsetOperator.js +1 -1
  286. package/geometry/operators/overlapsOperator.d.ts +33 -2
  287. package/geometry/operators/overlapsOperator.js +1 -1
  288. package/geometry/operators/polygonOverlayOperator.d.ts +31 -5
  289. package/geometry/operators/polygonOverlayOperator.js +1 -1
  290. package/geometry/operators/polygonSlicerOperator.d.ts +72 -10
  291. package/geometry/operators/polygonSlicerOperator.js +1 -1
  292. package/geometry/operators/projectOperator.d.ts +63 -3
  293. package/geometry/operators/projectOperator.js +1 -1
  294. package/geometry/operators/proximityOperator.d.ts +71 -9
  295. package/geometry/operators/proximityOperator.js +1 -1
  296. package/geometry/operators/relateOperator.d.ts +41 -2
  297. package/geometry/operators/relateOperator.js +1 -1
  298. package/geometry/operators/reshapeOperator.d.ts +28 -2
  299. package/geometry/operators/reshapeOperator.js +1 -1
  300. package/geometry/operators/shapePreservingProjectOperator.d.ts +64 -6
  301. package/geometry/operators/shapePreservingProjectOperator.js +1 -1
  302. package/geometry/operators/simplifyOGCOperator.d.ts +72 -6
  303. package/geometry/operators/simplifyOGCOperator.js +1 -1
  304. package/geometry/operators/simplifyOperator.d.ts +72 -4
  305. package/geometry/operators/simplifyOperator.js +1 -1
  306. package/geometry/operators/singlePartToMultiPartOperator.js +1 -1
  307. package/geometry/operators/support/Transformation.d.ts +17 -11
  308. package/geometry/operators/support/jsonConverter.js +1 -1
  309. package/geometry/operators/symmetricDifferenceOperator.d.ts +33 -2
  310. package/geometry/operators/symmetricDifferenceOperator.js +1 -1
  311. package/geometry/operators/touchesOperator.d.ts +32 -2
  312. package/geometry/operators/touchesOperator.js +1 -1
  313. package/geometry/operators/types.d.ts +4 -1
  314. package/geometry/operators/unionOperator.d.ts +33 -2
  315. package/geometry/operators/unionOperator.js +1 -1
  316. package/geometry/operators/withinOperator.d.ts +32 -2
  317. package/geometry/operators/withinOperator.js +1 -1
  318. package/geometry/projectionUtils.js +1 -1
  319. package/geometry/support/geometryUtils.js +1 -1
  320. package/geometry/support/normalizeUtils.d.ts +5 -3
  321. package/geometry/support/normalizeUtils.js +1 -1
  322. package/interfaces.d.ts +202 -202
  323. package/kernel.js +1 -1
  324. package/layers/graphics/data/QueryEngineResult.js +1 -1
  325. package/layers/graphics/data/queryUtils.js +1 -1
  326. package/layers/graphics/data/spatialQuerySupport.js +1 -1
  327. package/layers/graphics/sources/support/sourceUtils.js +1 -1
  328. package/layers/mixins/ArcGISImageService.js +1 -1
  329. package/layers/mixins/TiledImagery.js +1 -1
  330. package/layers/orientedImagery/transformations/updateElevationUtils.js +1 -1
  331. package/layers/raster/datasets/FunctionRaster.js +1 -1
  332. package/layers/raster/datasets/pixelReader.js +1 -1
  333. package/layers/raster/functions/clipUtils.js +1 -1
  334. package/layers/raster/functions/rasterProjectionHelper.js +1 -1
  335. package/layers/support/Sublayer.js +1 -1
  336. package/layers/video/videoUtils.js +1 -1
  337. package/package.json +4 -4
  338. package/popup/FeatureContentCollection.d.ts +3 -3
  339. package/popup/FeatureContentCollection.js +1 -1
  340. package/smartMapping/support/adapters/InMemoryLayerAdapter.js +1 -1
  341. package/support/revision.js +1 -1
  342. package/support/tests/serviceMockDependencies.js +1 -1
  343. package/support/tests/setupServiceMocksMesh.js +1 -1
  344. package/symbols/cim/CIMEffects.js +1 -1
  345. package/symbols/cim/effects/EffectBuffer.js +1 -1
  346. package/symbols/cim/effects/EffectControlMeasureLine.js +1 -1
  347. package/symbols/cim/effects/EffectDonut.js +1 -1
  348. package/symbols/cim/effects/EffectEnclosingPolygon.js +1 -1
  349. package/symbols/cim/effects/EffectOffset.js +1 -1
  350. package/symbols/cim/effects/EffectTaperedPolygon.js +1 -1
  351. package/views/2d/analysis/AreaMeasurement/AreaMeasurementController.js +1 -1
  352. package/views/2d/analysis/DistanceMeasurement/DistanceMeasurementController.js +1 -1
  353. package/views/2d/engine/webgl/Overlay.js +1 -1
  354. package/views/2d/engine/webgl/VideoScreenRenderer.js +1 -1
  355. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  356. package/views/2d/layers/TileLayerView2D.js +1 -1
  357. package/views/2d/layers/support/RouteLayerWaypointVisualization.js +1 -1
  358. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  359. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementController.js +1 -1
  360. package/views/3d/layers/ElevationLayerView3D.js +1 -1
  361. package/views/3d/layers/ElevationLayerView3DModifications.js +1 -1
  362. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  363. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  364. package/views/3d/layers/i3s/I3SMeshViewFilter.js +1 -1
  365. package/views/MapView.d.ts +3 -3
  366. package/views/VideoView.js +1 -1
  367. package/views/View2D.d.ts +22 -22
  368. package/views/analysis/ElevationProfile/elevationProfileGeometryUtils.js +1 -1
  369. package/views/draw/DrawTool.js +1 -1
  370. package/views/draw/support/createUtils.js +1 -1
  371. package/views/layers/SceneLayerView.js +1 -1
  372. package/views/support/GeometryWorker.js +1 -1
  373. package/views/support/imageReprojection.js +1 -1
  374. package/views/video/VideoOperationalDataView.js +1 -1
  375. package/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js +1 -1
  376. package/widgets/BatchAttributeForm/expressions/ExpressionsModel.js +1 -1
  377. package/widgets/BatchAttributeForm/expressions/expressionUtils.js +1 -1
  378. package/widgets/BatchAttributeForm/inputs/support/DynamicChoiceController.js +1 -1
  379. package/widgets/BatchAttributeForm/templates/FieldElementTemplate.js +1 -1
  380. package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
  381. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DTool.js +1 -1
  382. package/widgets/Editor/support/mergeFeaturesUtils.js +1 -1
  383. package/widgets/Editor/support/splitFeatureUtils.js +1 -1
  384. package/widgets/ElevationProfile/support/ElevationProfileView.js +1 -1
  385. package/widgets/ElevationProfile/support/InputRepresentation2D.js +1 -1
  386. package/widgets/ElevationProfile/support/InputRepresentation3D.js +1 -1
  387. package/widgets/ElevationProfile/support/geometryUtils.js +1 -1
  388. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationItemList.js +1 -1
  389. package/widgets/Features/FeaturesViewModel.js +1 -1
  390. package/widgets/Features.js +1 -1
  391. package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
  392. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  393. package/widgets/OrientedImageryViewer/adapters/view/MapViewAdapter.js +1 -1
  394. package/widgets/OrientedImageryViewer/components/ImageViewerViewModel.js +1 -1
  395. package/widgets/OrientedImageryViewer/components/OrientedImageryVideoViewModel.js +1 -1
  396. package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  397. package/widgets/OrientedImageryViewer/support/panConstraint.js +1 -1
  398. package/widgets/OrientedImageryViewer/support/superimposeUtils.js +1 -1
  399. package/widgets/OrientedImageryViewer/videoViewerUtils.js +1 -1
  400. package/widgets/Print.js +1 -1
  401. package/widgets/Search/SearchViewModel.js +1 -1
  402. package/widgets/Search/support/layerSearchUtils.js +1 -1
  403. package/widgets/Search/support/locatorUtils.js +1 -1
  404. package/widgets/UtilityNetworkTrace/support/GeometryHandler.js +1 -1
  405. package/widgets/support/FilterBuilder/FilterBuilderViewModel.d.ts +104 -0
  406. package/widgets/support/FilterBuilder/FilterBuilderViewModel.js +1 -1
  407. package/widgets/support/FilterBuilder.js +1 -1
  408. package/widgets/support/FilterCondition/FilterConditionViewModel.d.ts +145 -0
  409. package/widgets/support/FilterCondition/FilterConditionViewModel.js +1 -1
  410. package/widgets/support/FilterCondition/types.d.ts +20 -0
  411. package/widgets/support/ItemList.js +1 -1
  412. package/widgets/support/SelectionList/FeatureItem.d.ts +17 -68
  413. package/widgets/support/SelectionList/FeatureItem.js +1 -1
  414. package/widgets/support/SelectionList/GroupLayerItem.d.ts +12 -50
  415. package/widgets/support/SelectionList/GroupLayerItem.js +1 -1
  416. package/widgets/support/SelectionList/ItemBase.d.ts +14 -44
  417. package/widgets/support/SelectionList/ItemBase.js +1 -1
  418. package/widgets/support/SelectionList/LayerItem.d.ts +10 -56
  419. package/widgets/support/SelectionList/LayerItem.js +1 -1
  420. package/widgets/support/SelectionList/types.d.ts +4 -4
  421. package/widgets/support/Selector2D/selectorUtils.js +1 -1
  422. package/assets/esri/core/workers/chunks/090ea7a131f8f60203ed.js +0 -1
  423. package/assets/esri/core/workers/chunks/0b4a7209b99227a842ad.js +0 -1
  424. package/assets/esri/core/workers/chunks/0be98adfef79fc5036f0.js +0 -1
  425. package/assets/esri/core/workers/chunks/0d2e2d90a4e4a28e2c0c.js +0 -1
  426. package/assets/esri/core/workers/chunks/0d7763d39a5a8586a0ae.js +0 -1
  427. package/assets/esri/core/workers/chunks/0d95f72e1c07ab867d21.js +0 -1
  428. package/assets/esri/core/workers/chunks/0dbbac7a2378728571a7.js +0 -1
  429. package/assets/esri/core/workers/chunks/0df9864ecebe6a2b973f.js +0 -1
  430. package/assets/esri/core/workers/chunks/104d74bc36c28c519396.js +0 -1
  431. package/assets/esri/core/workers/chunks/1670e9867efde4d7a6d6.js +0 -1
  432. package/assets/esri/core/workers/chunks/1c803eef9a8fdabc61e3.js +0 -2
  433. package/assets/esri/core/workers/chunks/1e192ac0533a5c0b5a7a.js +0 -1
  434. package/assets/esri/core/workers/chunks/1fe077f57a087c0e9119.js +0 -1
  435. package/assets/esri/core/workers/chunks/20f7b5fe64a217cb3d3d.js +0 -1
  436. package/assets/esri/core/workers/chunks/212222b64039d436b9a6.js +0 -1
  437. package/assets/esri/core/workers/chunks/24944b625ed8dcd904f0.js +0 -1
  438. package/assets/esri/core/workers/chunks/2b6d261fe79fe186fb22.js +0 -1
  439. package/assets/esri/core/workers/chunks/2bc3e7f394386fa75447.js +0 -1
  440. package/assets/esri/core/workers/chunks/30af0f7c4cfa541c9efd.js +0 -1
  441. package/assets/esri/core/workers/chunks/30d816bdeea00f6fa1ca.js +0 -1
  442. package/assets/esri/core/workers/chunks/35d46c2f658a8e92d913.js +0 -1
  443. package/assets/esri/core/workers/chunks/36e35a8067b18f59cc05.js +0 -1
  444. package/assets/esri/core/workers/chunks/3869dca884d7ca6488f5.js +0 -1
  445. package/assets/esri/core/workers/chunks/3f5234120d3a14186c1c.js +0 -1
  446. package/assets/esri/core/workers/chunks/45c1c90ac6c14657f3ff.js +0 -1
  447. package/assets/esri/core/workers/chunks/4a40b894ec89b0a4f9bf.js +0 -1
  448. package/assets/esri/core/workers/chunks/5165d367328ac7badf47.js +0 -1
  449. package/assets/esri/core/workers/chunks/5168bd8ab6233dc9c32a.js +0 -1
  450. package/assets/esri/core/workers/chunks/545bec045167c433af8f.js +0 -1
  451. package/assets/esri/core/workers/chunks/5782c0362a1799ceef41.js +0 -1
  452. package/assets/esri/core/workers/chunks/59598023c0aea62a6297.js +0 -1
  453. package/assets/esri/core/workers/chunks/59f0a2bd40b033ce77e4.js +0 -1
  454. package/assets/esri/core/workers/chunks/5af16937904c06fb06f6.js +0 -1
  455. package/assets/esri/core/workers/chunks/5b8591486f33627f5389.js +0 -1
  456. package/assets/esri/core/workers/chunks/6057a79c68c33ee4a193.js +0 -1
  457. package/assets/esri/core/workers/chunks/607acd9f615f87e14075.js +0 -1
  458. package/assets/esri/core/workers/chunks/62ee6c247f783acabb74.js +0 -1
  459. package/assets/esri/core/workers/chunks/63127e3b22e7eac6003d.js +0 -2
  460. package/assets/esri/core/workers/chunks/6564f17c4700dc8d9c0e.js +0 -2
  461. package/assets/esri/core/workers/chunks/678585509706755c0434.js +0 -2
  462. package/assets/esri/core/workers/chunks/691e9cc541cfaebe1776.js +0 -1
  463. package/assets/esri/core/workers/chunks/6a2d890640b2cd6c5ccb.js +0 -1
  464. package/assets/esri/core/workers/chunks/6b84982dfaf084a61b93.js +0 -1
  465. package/assets/esri/core/workers/chunks/6cbc30b31f0bb39c73ca.js +0 -1
  466. package/assets/esri/core/workers/chunks/6f01bd01b13662eb3bd7.js +0 -1
  467. package/assets/esri/core/workers/chunks/74cd9df85c4560bb8e52.js +0 -1
  468. package/assets/esri/core/workers/chunks/75bddfe2be64379db8fd.js +0 -1
  469. package/assets/esri/core/workers/chunks/7cf903db44f3647c8fd4.js +0 -1
  470. package/assets/esri/core/workers/chunks/7ddb5800777fbecee3a8.js +0 -1
  471. package/assets/esri/core/workers/chunks/7eae9053065d3d38e54e.js +0 -1
  472. package/assets/esri/core/workers/chunks/80f38ab2b7ae61e6f301.js +0 -1
  473. package/assets/esri/core/workers/chunks/854f42f16fdb40000aae.js +0 -1
  474. package/assets/esri/core/workers/chunks/87094044458b0ea5cb0f.js +0 -2
  475. package/assets/esri/core/workers/chunks/88f03352a4dc6184ea1f.js +0 -1
  476. package/assets/esri/core/workers/chunks/909ee7d2a0eec773037a.js +0 -1
  477. package/assets/esri/core/workers/chunks/91ac9328afff8a51bd96.js +0 -1
  478. package/assets/esri/core/workers/chunks/9246e2468528650bdc7c.js +0 -1
  479. package/assets/esri/core/workers/chunks/92a6559a6999b26362d7.js +0 -1
  480. package/assets/esri/core/workers/chunks/94ddfe165ac25aef8229.js +0 -1
  481. package/assets/esri/core/workers/chunks/9509bef285929c52c244.js +0 -1
  482. package/assets/esri/core/workers/chunks/99966339b061eb9945b8.js +0 -1
  483. package/assets/esri/core/workers/chunks/99f627938dbf0152fc02.js +0 -1
  484. package/assets/esri/core/workers/chunks/9df38cadebf8e6fd746c.js +0 -1
  485. package/assets/esri/core/workers/chunks/9e2b3754a76e0dd4a94a.js +0 -1
  486. package/assets/esri/core/workers/chunks/a0565137027c83108953.js +0 -1
  487. package/assets/esri/core/workers/chunks/a0eb882a5a81d25b9153.js +0 -1
  488. package/assets/esri/core/workers/chunks/a785e827f0215a73103d.js +0 -1
  489. package/assets/esri/core/workers/chunks/abe7670db06b27c0c8c8.js +0 -1
  490. package/assets/esri/core/workers/chunks/b19cff0e43fab2632660.js +0 -1
  491. package/assets/esri/core/workers/chunks/b333de4dea14c5db0a4d.js +0 -1
  492. package/assets/esri/core/workers/chunks/b6af90be328ebda26b8d.js +0 -1
  493. package/assets/esri/core/workers/chunks/b7c0da9d255d5e48320d.js +0 -1
  494. package/assets/esri/core/workers/chunks/bd7d87d175ba933ab2ce.js +0 -1
  495. package/assets/esri/core/workers/chunks/be0417df35a7d99af675.js +0 -1
  496. package/assets/esri/core/workers/chunks/c30b6bbabd05e4976fba.js +0 -1
  497. package/assets/esri/core/workers/chunks/c35553d07ad169910742.js +0 -1
  498. package/assets/esri/core/workers/chunks/c5c2fed38e0ccf84f1fa.js +0 -1
  499. package/assets/esri/core/workers/chunks/c88bfa51d2a8a024fc24.js +0 -1
  500. package/assets/esri/core/workers/chunks/ca36d85a47179d95f2fc.js +0 -1
  501. package/assets/esri/core/workers/chunks/d0cf9ff48f051adbd455.js +0 -1
  502. package/assets/esri/core/workers/chunks/d1304d414b1fa725168a.js +0 -1
  503. package/assets/esri/core/workers/chunks/d24125a791247019e2ca.js +0 -1
  504. package/assets/esri/core/workers/chunks/d26be8313526ecea9c68.js +0 -1
  505. package/assets/esri/core/workers/chunks/d2cb3d5ef0a9285afb78.js +0 -1
  506. package/assets/esri/core/workers/chunks/d4b0012ae1d3b8a9ba01.js +0 -1
  507. package/assets/esri/core/workers/chunks/e018cbd97e6e0e4ca5c4.js +0 -1
  508. package/assets/esri/core/workers/chunks/e39bccc000c768120a32.js +0 -1
  509. package/assets/esri/core/workers/chunks/e4380706b629729f2212.js +0 -1
  510. package/assets/esri/core/workers/chunks/ea1877ce00da3b585a30.js +0 -1
  511. package/assets/esri/core/workers/chunks/ea5ee1b12b43594592a0.js +0 -1
  512. package/assets/esri/core/workers/chunks/ea91c57a0b31f3f65ee5.js +0 -1
  513. package/assets/esri/core/workers/chunks/eafc591e1a98000d54ef.js +0 -1
  514. package/assets/esri/core/workers/chunks/ef851a2cff76fd211c07.js +0 -1
  515. package/assets/esri/core/workers/chunks/f3e53be08ab9dbdf17ae.js +0 -1
  516. package/assets/esri/core/workers/chunks/f53010adb70463b75bb9.js +0 -1
  517. package/assets/esri/core/workers/chunks/f5a058a0ce006bce2a2a.js +0 -1
  518. package/assets/esri/core/workers/chunks/f5f5b54cab722abe88e0.js +0 -1
  519. package/assets/esri/core/workers/chunks/f60ed579981913d44675.js +0 -1
  520. package/assets/esri/core/workers/chunks/f6f56f3e011dcef90bbb.js +0 -1
  521. package/assets/esri/core/workers/chunks/f83c3597e9332bd991eb.js +0 -1
  522. package/assets/esri/core/workers/chunks/f9a4387f850d85c44ca5.js +0 -1
  523. package/assets/esri/core/workers/chunks/fdd0e6d9927d3c43b0d3.js +0 -1
  524. package/geometry/operators/importUtils.js +0 -2
  525. /package/assets/esri/core/workers/chunks/{1c803eef9a8fdabc61e3.js.LICENSE.txt → 1082bb0858585bd4fa21.js.LICENSE.txt} +0 -0
  526. /package/assets/esri/core/workers/chunks/{87094044458b0ea5cb0f.js.LICENSE.txt → 2e2349387a2b9903f13c.js.LICENSE.txt} +0 -0
  527. /package/assets/esri/core/workers/chunks/{678585509706755c0434.js.LICENSE.txt → 411bbdecba340df11d95.js.LICENSE.txt} +0 -0
  528. /package/assets/esri/core/workers/chunks/{5edf77618ca51819d7c4.js.LICENSE.txt → 476535cfb06ced74d611.js.LICENSE.txt} +0 -0
  529. /package/assets/esri/core/workers/chunks/{6564f17c4700dc8d9c0e.js.LICENSE.txt → b82b523b6837ed1f28d3.js.LICENSE.txt} +0 -0
  530. /package/assets/esri/core/workers/chunks/{63127e3b22e7eac6003d.js.LICENSE.txt → ef24fd6c0322e5de9fdf.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3543,7367],{93543(e,n,t){t.r(n),t.d(n,{executeScript:()=>he,extend:()=>pe,prepareScript:()=>me});var r=t(48938),a=t(99719),o=t(72888),i=t(17433),s=t(67862),c=t(11484),l=t(66395),u=t(85935),f=t(93833),d=t(92400),w=t(78878),p=t(19157),y=t(3367),m=t(63680),h=t(81113),g=t(32091),b=t(87367),v=t(21593),D=t(36770),R=t(78767),$=t(47346),x=t(29304),S=t(4730),I=t(53966),C=t(16930),F=t(94128),A=t(54218);const k=()=>I.A.getLogger("esri.arcade.arcadeAsyncRuntime"),G=Symbol("debugInfo"),N=Symbol("uninitialized");function E(e){if(e===N)throw new u.D$("InvalidIdentifier",null)}function J(e){return E(e),e}function P(e,n){const t=(0,r.X)(n);if(null!==e.localScope){const n=e.localScope[t];if(void 0!==n)return{scope:e.localScope,id:t,var:n}}const a=e.globalScope[t];if(void 0!==a)return{scope:e.globalScope,id:t,var:a};throw new u.D$("InvalidIdentifier",n)}function O(e,n,t="InvalidIdentifier"){const a=(0,r.X)(n);if(null!==e.localScope){const n=e.localScope[a];if(void 0!==n)return E(n),n.value}const o=e.globalScope[a];if(void 0!==o)return E(o),o.value;throw new u.D$(t,n)}const L=function(){};async function M(e,n){const t=[];for(let r=0;r<n.arguments.length;r++)t.push(await K(e,n.arguments[r]));return t}async function H(e,n,t){return!0===n.preparsed?t(e,null,n.arguments):t(e,n,await M(e,n))}L.prototype=Object.freeze(Object.create(null));class U extends d.fF{constructor(e,n,t,r,a){super(),this.definition=e,this.context=n,this._params=t,this._locals=r,this._debugInfo=a}get debugName(){return this.definition.id.name}createFunction(e){return(...n)=>{const t=new L;t[G]=this._debugInfo;const r={spatialReference:this.context.spatialReference,console:this.context.console,lrucache:this.context.lrucache,timeZone:this.context.timeZone??null,exports:this.context.exports,libraryResolver:this.context.libraryResolver,interceptor:this.context.interceptor,services:this.context.services,abortSignal:this.context.abortSignal,localScope:t,depthCounter:{depth:e.depthCounter.depth+1},globalScope:this.context.globalScope,contextScopeDebugInfo:this.context.contextScopeDebugInfo,track:this.context.track};if(r.depthCounter.depth>64)throw new u.D$("MaximumCallDepth",null);return j(r,this.definition.body,this._params,this._locals,n,null)}}call(e,n){return _(e,n,(t,r,a)=>{const o=new L;o[G]=this._debugInfo;const i={spatialReference:e.spatialReference,services:e.services,console:e.console,libraryResolver:e.libraryResolver,exports:e.exports,lrucache:e.lrucache,timeZone:e.timeZone??null,interceptor:e.interceptor,localScope:o,abortSignal:e.abortSignal,globalScope:e.globalScope,contextScopeDebugInfo:e.contextScopeDebugInfo,depthCounter:{depth:e.depthCounter.depth+1},track:e.track};if(i.depthCounter.depth>64)throw new u.D$("MaximumCallDepth",n);return j(i,this.definition.body,this._params,this._locals,a,n)})}marshalledCall(e,n,t,r){return r(e,n,async(a,o,i)=>{const s=new L;s[G]=this._debugInfo;const c={spatialReference:e.spatialReference,services:e.services,globalScope:t.globalScope,contextScopeDebugInfo:t.contextScopeDebugInfo,depthCounter:{depth:e.depthCounter.depth+1},libraryResolver:e.libraryResolver,exports:e.exports,console:e.console,abortSignal:e.abortSignal,lrucache:e.lrucache,timeZone:e.timeZone??null,interceptor:e.interceptor,localScope:s,track:e.track};return i=i.map(n=>!(0,w.i)(n)||n instanceof d.CU?n:(0,d.o6)(n,e,r)),(0,d.o6)(await j(c,this.definition.body,this._params,this._locals,i,n),t,r)})}}async function j(e,n,t,r,a,o){if(t.length!==a.length)throw new u.D$("WrongNumberOfParameters",o);if(null!=e.localScope){for(let n=0;n<t.length;n++)e.localScope[t[n]]={value:a[n]};for(const n of r)e.localScope[n]=N}const i=await X(e,n);if(i instanceof w.R)return i.value;if(i===w.C)throw new u.D$("UnexpectedToken",o);if(i===w.D)throw new u.D$("UnexpectedToken",o);return i instanceof w.I?i.value:i}class B extends a.x{constructor(e){super(),this.moduleGlobalContext=e}global(e){const n=(0,r.X)(e);if(!this.moduleGlobalContext.exports.has(n))throw new u.D$("ModuleExportNotFound",null);const t=this.moduleGlobalContext.globalScope[n];if(E(t),(0,w.i)(t.value)&&!(t.value instanceof d.CU)){const e=new d.CU;return e.fn=t.value,e.parameterEvaluator=H,e.context=this.moduleGlobalContext,this.moduleGlobalContext.globalScope[n]={value:e},e}return t.value}setGlobal(e,n){if((0,w.i)(n))throw new u.D$("AssignModuleFunction",null);const t=(0,r.X)(e);if(!this.moduleGlobalContext.exports.has(t))throw new u.D$("ModuleExportNotFound",null);this.moduleGlobalContext.globalScope[t]={value:n}}hasGlobal(e){return this.moduleGlobalContext.exports.has((0,r.X)(e))}static async load(e,n){const{globals:t,exports:a}=(0,i.aU)(n),s=new we;null!=e.contextScopeDebugInfo&&(s[G]={declaredNames:t});for(const e of t.keys())e in s||(s[e]=N);const c=e.spatialReference??C.A.WebMercator,l={lrucache:e.lrucache,interceptor:e.interceptor,services:e.services,console:e.console??ye,abortSignal:e.abortSignal??r._,timeZone:e.timeZone??null,spatialReference:c,track:null,depthCounter:{depth:1},libraryResolver:new o.a(e.libraryResolver._moduleSingletons,n.loadedModules),exports:a,localScope:null,globalScope:s,contextScopeDebugInfo:null!=e.contextScopeDebugInfo?{declaredNames:new Map}:null};return await Y(l,n),new B(l)}}async function _(e,n,t){return!0===n.preparsed?t(e,null,n.arguments):t(e,n,await M(e,n))}function Z(e,n,t){const r=new Map;if(n)for(const[a,o]of n.declaredNames){const n=e[a];r.set(o,null==n||n===N?null:(0,c.R)(n.value,t))}else for(const n of Object.getOwnPropertyNames(e)){const a=e[n];r.set(n,a===N?null:(0,c.R)(a.value,t))}return r}function z(e){return e instanceof U?`ƒ ${e.debugName}(${e.definition.params.map(e=>e.name).join(", ")})`:(0,c.h)(e)}function q(e,n){const t=e.services?.debugger;if(null==t)return;const r={renderFunction:z,defaultTimeZone:e.timeZone??"system"};return t.pause(n,{profile:null!=e.contextScopeDebugInfo?Z(e.globalScope,e.contextScopeDebugInfo,r):new Map,globals:Z(e.globalScope,e.globalScope[G],r),locals:null==e.localScope?null:Z(e.localScope,e.localScope[G],r)})}async function K(e,n){n.breakpoint&&await q(e,n.breakpoint);try{switch(n.type){case"UpdateExpression":return await async function(e,n){const t=n.argument;if("CallExpression"===t.type)throw new u.D$("NeverReach",n);if("MemberExpression"===t.type){const r=await K(e,t.object);let a,o;if(!0===t.computed)a=await K(e,t.property);else{if("Identifier"!==t.property.type)throw new u.D$("Unrecognized",n);a=t.property.name}if((0,A.cy)(r)){if(!(0,A.Et)(a))throw new u.D$("ArrayAccessMustBeNumber",n);if(a<0&&(a=r.length+a),a<0||a>=r.length)throw new u.D$("OutOfBounds",n);o=(0,w.v)(r[a]),r[a]="++"===n.operator?o+1:o-1}else if(r instanceof l.A){if(!1===(0,A.Kg)(a))throw new u.D$("KeyAccessorMustBeString",n);if(!0!==r.hasField(a))throw new u.D$("FieldNotFound",n,{key:a});o=(0,w.v)(r.field(a)),r.setField(a,"++"===n.operator?o+1:o-1)}else if(r instanceof B){if(!1===(0,A.Kg)(a))throw new u.D$("ModuleAccessorMustBeString",n);if(!0!==r.hasGlobal(a))throw new u.D$("ModuleExportNotFound",n);o=(0,w.v)(r.global(a)),r.setGlobal(a,"++"===n.operator?o+1:o-1)}else{if(!(0,w.h)(r))throw(0,w.g)(r)?new u.D$("Immutable",n):new u.D$("InvalidParameter",n);if(!1===(0,A.Kg)(a))throw new u.D$("KeyAccessorMustBeString",n);if(!0!==r.hasField(a))throw new u.D$("FieldNotFound",n,{key:a});o=(0,w.v)(r.field(a)),r.setField(a,"++"===n.operator?o+1:o-1)}return!1===n.prefix?o:"++"===n.operator?o+1:o-1}const r=P(e,t),a=(0,w.v)(J(r.var).value),o="++"===n.operator?a+1:a-1;return r.scope[r.id]={value:o},!1===n.prefix?a:"++"===n.operator?a+1:a-1}(e,n);case"AssignmentExpression":return await async function(e,n){const t=n.left;if("MemberExpression"===t.type){const r=await K(e,t.object);let a;if(!0===t.computed)a=await K(e,t.property);else{if("Identifier"!==t.property.type)throw new u.D$("InvalidIdentifier",n);a=t.property.name}const o=await K(e,n.right);if((0,A.cy)(r)){if(!(0,A.Et)(a))throw new u.D$("ArrayAccessMustBeNumber",n);if(a<0&&(a=r.length+a),a<0||a>r.length)throw new u.D$("OutOfBounds",n);if(a===r.length){if("="!==n.operator)throw new u.D$("OutOfBounds",n);r[a]=Q(o,n.operator,r[a],n)}else r[a]=Q(o,n.operator,r[a],n)}else if(r instanceof l.A){if(!1===(0,A.Kg)(a))throw new u.D$("KeyAccessorMustBeString",n);if(!0===r.hasField(a))r.setField(a,Q(o,n.operator,r.field(a),n));else{if("="!==n.operator)throw new u.D$("FieldNotFound",n,{key:a});r.setField(a,Q(o,n.operator,null,n))}}else if(r instanceof B){if(!1===(0,A.Kg)(a))throw new u.D$("KeyAccessorMustBeString",n);if(!0!==r.hasGlobal(a))throw new u.D$("ModuleExportNotFound",n);r.setGlobal(a,Q(o,n.operator,r.global(a),n))}else{if(!(0,w.h)(r))throw(0,w.g)(r)?new u.D$("Immutable",n):new u.D$("InvalidParameter",n);if(!1===(0,A.Kg)(a))throw new u.D$("KeyAccessorMustBeString",n);if(!0===r.hasField(a))r.setField(a,Q(o,n.operator,r.field(a),n));else{if("="!==n.operator)throw new u.D$("FieldNotFound",n,{key:a});r.setField(a,Q(o,n.operator,null,n))}}return w.x}const r=P(e,t),a=await K(e,n.right);return r.scope[r.id]={value:Q(a,n.operator,"="!==n.operator?J(r.var).value:null,n)},w.x}(e,n);case"TemplateLiteral":return await async function(e,n){let t="",r=0;for(const a of n.quasis)if(t+=a.value?a.value.cooked:"",!1===a.tail){if(n.expressions[r]){const a=await K(e,n.expressions[r]);if((0,w.i)(a))throw new u.D$("NoFunctionInTemplateLiteral",n);t+=(0,w.w)(a)}r++}return t}(e,n);case"Identifier":return oe(e,n);case"MemberExpression":return await async function(e,n){return te(e,await K(e,n.object),n)}(e,n);case"Literal":return n.value;case"CallExpression":return await async function(e,n){let t;if("Identifier"===n.callee.type){const r=n.callee;r.breakpoint&&await q(e,r.breakpoint),t=O(e,n.callee,"FunctionNotFound")}else t=await K(e,n.callee);return ie(e,t,n)}(e,n);case"UnaryExpression":return await async function(e,n){const t=await K(e,n.argument);if((0,A.Lm)(t)){if("!"===n.operator)return!t;if("-"===n.operator)return-1*(0,w.v)(t);if("+"===n.operator)return 1*(0,w.v)(t);if("~"===n.operator)return~(0,w.v)(t);throw new u.D$("UnsupportUnaryOperator",n)}if("-"===n.operator)return-1*(0,w.v)(t);if("+"===n.operator)return 1*(0,w.v)(t);if("~"===n.operator)return~(0,w.v)(t);throw new u.D$("UnsupportUnaryOperator",n)}(e,n);case"BinaryExpression":return await async function(e,n){const t=await K(e,n.left),r=await K(e,n.right);switch(n.operator){case"|":case"<<":case">>":case">>>":case"^":case"&":return(0,w.A)((0,w.v)(t),(0,w.v)(r),n.operator);case"==":return(0,w.z)(t,r);case"!=":return!(0,w.z)(t,r);case"<":case">":case"<=":case">=":return(0,w.y)(t,r,n.operator);case"+":return(0,A.Kg)(t)||(0,A.Kg)(r)?(0,w.w)(t)+(0,w.w)(r):(0,w.v)(t)+(0,w.v)(r);case"-":return(0,w.v)(t)-(0,w.v)(r);case"*":return(0,w.v)(t)*(0,w.v)(r);case"/":return(0,w.v)(t)/(0,w.v)(r);case"%":return(0,w.v)(t)%(0,w.v)(r);default:throw n.operator,new u.D$("UnsupportedOperator",n)}}(e,n);case"LogicalExpression":return await async function(e,n){const t=await K(e,n.left);if(!(0,A.Lm)(t))throw new u.D$("LogicalExpressionOnlyBoolean",n);switch(n.operator){case"||":{if(!0===t)return t;const r=await K(e,n.right);if((0,A.Lm)(r))return r;throw new u.D$("LogicExpressionOrAnd",n)}case"&&":{if(!1===t)return t;const r=await K(e,n.right);if((0,A.Lm)(r))return r;throw new u.D$("LogicExpressionOrAnd",n)}default:throw n.operator,new u.D$("LogicExpressionOrAnd",n)}}(e,n);case"ArrayExpression":return await async function(e,n){const t=[];for(let r=0;r<n.elements.length;r++)t.push(await K(e,n.elements[r]));for(let e=0;e<t.length;e++){if((0,w.i)(t[e]))throw new u.D$("NoFunctionInArray",n);t[e]===w.x&&(t[e]=null)}return t}(e,n);case"ObjectExpression":return await async function(e,n){const t=[];for(let r=0;r<n.properties.length;r++){const a=n.properties[r],o=await K(e,a.value),i="Identifier"===a.key.type?a.key.name:await K(e,a.key);t[r]={key:i,value:o}}const r=Object.create(null),a=new Map;for(let e=0;e<t.length;e++){const o=t[e];if((0,w.i)(o.value))throw new u.D$("NoFunctionInDictionary",n);if(!1===(0,A.Kg)(o.key))throw new u.D$("KeyMustBeString",n);let i=o.key.toString();const s=i.toLowerCase();a.has(s)?i=a.get(s):a.set(s,i),o.value===w.x?r[i]=null:r[i]=o.value}const o=new l.A(r);return o.immutable=!1,o}(e,n);case"MemberAccessChainExpression":return await async function(e,n){const t=(0,i.YZ)(n);let r=await K(e,t.root);for(const n of t.sections){const t=await ae(e,r,n.checked);if(null==t)return null;r=await re(e,t,n.unchecked)}return r}(e,n);case"SafeMemberExpression":throw k().error("SafeMemberExpression outside of MemberAccessChainExpression"),new u.D$("Unrecognized",n);default:throw new u.D$("Unrecognized",n)}}catch(e){throw(0,u.i2)(e,n)}}async function X(e,n){n.breakpoint&&await q(e,n.breakpoint);try{switch(n.type){case"ImportDeclaration":return await async function(e,n){const t=P(e,n.specifiers[0].local),r=e.libraryResolver;if(null==r)throw k().error("Internal error: module loader not initialized"),new u.D$("NeverReach",n);const a=r.loadLibrary(t.id);let o;return r._moduleSingletons?.has(a.uri)?o=r._moduleSingletons.get(a.uri):(o=await B.load(e,a.syntax),r._moduleSingletons?.set(a.uri,o)),t.scope[t.id]={value:o},w.x}(e,n);case"ExportNamedDeclaration":return await async function(e,n){return await X(e,n.declaration),w.x}(e,n);case"VariableDeclaration":return await async function(e,n){for(const t of n.declarations)await ne(e,t);return w.x}(e,n);case"BlockStatement":return await Y(e,n);case"FunctionDeclaration":return await async function(e,n){if(null!=e.localScope)throw k().error("Function declarations are only valid in global scope."),new u.D$("NeverReach",n);const t=(0,r.X)(n.id);if(!(t in e.globalScope))throw k().error(`Function "${t}" not declared.`),new u.D$("NeverReach",n);const a=(0,i.SV)(n),o=n.params.map(e=>(0,r.X)(e)),s=Array.from(a.keys()).filter(e=>!o.includes(e));let c=null;return null!=e.contextScopeDebugInfo&&(c={declaredNames:new Map([...n.params.map(e=>[(0,r.X)(e),e.name]),...a])}),e.globalScope[t]={value:new U(n,e,o,s,c)},w.x}(e,n);case"ReturnStatement":return await async function(e,n){if(null===n.argument)return new w.R(w.x);const t=await K(e,n.argument);return new w.R(t)}(e,n);case"IfStatement":return await async function(e,n){const t=await K(e,n.test);if(!0===t)return X(e,n.consequent);if(!1===t)return null!==n.alternate?X(e,n.alternate):w.x;throw new u.D$("BooleanConditionRequired",n)}(e,n);case"ExpressionStatement":return await async function(e,n){const t=await K(e,n.expression);return t===w.x?w.x:new w.I(t)}(e,n);case"ForStatement":return await async function(e,n){try{for(null!==n.init&&("VariableDeclaration"===n.init.type?await X(e,n.init):await K(e,n.init));;){if(null!==n.test){const t=await K(e,n.test);if(!0===e.abortSignal?.aborted)throw new u.D$("Cancelled",n);if(!1===t)break;if(!0!==t)throw new u.D$("BooleanConditionRequired",n)}const t=await X(e,n.body);if(t===w.C)break;if(t instanceof w.R)return t;null!==n.update&&await K(e,n.update)}return w.x}catch(e){throw e}}(e,n);case"WhileStatement":return await async function(e,n){let t=await K(e,n.test);if(!1===t)return w.x;if(!0!==t)throw new u.D$("BooleanConditionRequired",n);for(;!0===t;){const r=await X(e,n.body);if(r===w.C)break;if(r instanceof w.R)return r;if(t=await K(e,n.test),!0!==t&&!1!==t)throw new u.D$("BooleanConditionRequired",n)}return w.x}(e,n);case"ForInStatement":return await async function(e,n){const t=await K(e,n.right);"VariableDeclaration"===n.left.type&&await X(e,n.left);const r=P(e,"VariableDeclaration"===n.left.type?n.left.declarations[0].id:n.left);return(0,A.cy)(t)||(0,A.Kg)(t)?await T(e,n,t,r):(0,w.g)(t)?await W(e,n,t,r):t instanceof l.A||(0,w.B)(t)?await T(e,n,t.keys(),r,"k"):(0,w.k)(t)?await V(e,n,t,r):(0,w.d)(t)?await T(e,n,(0,s.T)(t),r,"k"):w.x}(e,n);case"ForOfStatement":return await async function(e,n){const t=await K(e,n.right);"VariableDeclaration"===n.left.type&&await X(e,n.left);const r=P(e,"VariableDeclaration"===n.left.type?n.left.declarations[0].id:n.left);return(0,A.cy)(t)||(0,A.Kg)(t)?await T(e,n,t,r,"k"):(0,w.g)(t)?await W(e,n,t,r,"k"):t instanceof l.A||(0,w.B)(t)?await async function(e,n,t,r){for(const a of t.keys()){const o=t.field(a);r.scope[r.id]={value:l.A.containerEntry(a,o)};const i=await X(e,n.body);if(i===w.C)break;if(i instanceof w.R)return i}return w.x}(e,n,t,r):(0,w.k)(t)?await V(e,n,t,r):(0,w.d)(t)?await async function(e,n,t,r){for(const a of(0,s.T)(t)){const o=(0,s.Ny)(t,a);r.scope[r.id]={value:l.A.containerEntry(a,o)};const i=await X(e,n.body);if(i===w.C)break;if(i instanceof w.R)return i}return w.x}(e,n,t,r):w.x}(e,n);case"BreakStatement":return w.C;case"EmptyStatement":return w.x;case"ContinueStatement":return w.D;default:throw new u.D$("Unrecognized",n)}}catch(e){throw(0,u.i2)(e,n)}}async function T(e,n,t,r,a="i"){const o=t.length;for(let i=0;i<o;i++){if("k"===a){if(i>=t.length)throw new u.D$("OutOfBounds",n);r.scope[r.id]={value:t[i]}}else r.scope[r.id]={value:i};const o=await X(e,n.body);if(o===w.C)break;if(o instanceof w.R)return o}return w.x}async function W(e,n,t,r,a="i"){const o=t.length();for(let i=0;i<o;i++){r.scope[r.id]="k"===a?{value:t.get(i)}:{value:i};const o=await X(e,n.body);if(o===w.C)break;if(o instanceof w.R)return o}return w.x}async function V(e,n,t,r){e:for await(const a of await t.queryAll(e.abortSignal))for(const o of a){r.scope[r.id]={value:f.Xj.createFromGraphicLikeObject(o.geometry,o.attributes,t,e.timeZone)};const a=await X(e,n.body);if(a===w.C)break e;if(a instanceof w.R)return a}return w.x}function Q(e,n,t,r){switch(n){case"=":return e===w.x?null:e;case"/=":return(0,w.v)(t)/(0,w.v)(e);case"*=":return(0,w.v)(t)*(0,w.v)(e);case"-=":return(0,w.v)(t)-(0,w.v)(e);case"+=":return(0,A.Kg)(t)||(0,A.Kg)(e)?(0,w.w)(t)+(0,w.w)(e):(0,w.v)(t)+(0,w.v)(e);case"%=":return(0,w.v)(t)%(0,w.v)(e);default:throw new u.D$("UnsupportedOperator",r)}}async function Y(e,n){return ee(e,n,0)}async function ee(e,n,t){if(t>=n.body.length)return w.x;const r=await X(e,n.body[t]);return r instanceof w.R||r===w.C||r===w.D||t===n.body.length-1?r:ee(e,n,t+1)}async function ne(e,n){n.breakpoint&&await q(e,n.breakpoint);let t=null;t=null===n.init?null:await K(e,n.init),t===w.x&&(t=null);const r=P(e,n.id);r.scope[r.id]={value:t}}async function te(e,n,t){const r=t.computed?await K(e,t.property):t.property.name;return(0,s.Xf)(n,r)}async function re(e,n,t){for(const r of t)switch(r.type){case"MemberExpression":n=await te(e,n,r);break;case"CallExpression":n=await ie(e,n,r);break;default:throw new u.D$("Unrecognized",r)}return n}async function ae(e,n,t){const r=t.computed?await K(e,t.property):t.property.name;return(0,s.c$)(n,r)}function oe(e,n){return O(e,n)}async function ie(e,n,t){if((0,w.i)(n))return n.call(e,t);throw new u.D$("CallNonFunction",t)}async function se(e,n){(0,w.E)(null===n.arguments?[]:n.arguments,3,3,n);const t=await K(e,n.arguments[0]);if(!1===(0,A.Lm)(t))throw new u.D$("BooleanConditionRequired",n);return K(e,t?n.arguments[1]:n.arguments[2])}async function ce(e,n){(0,w.E)(null===n.arguments?[]:n.arguments,2,3,n);const t=await K(e,n.arguments[0]);if(3===n.arguments.length){const r=await K(e,n.arguments[1]),a=(0,s.jd)(t,r);return null!=a&&""!==a?a:K(e,n.arguments[2])}return null==t||""===t?K(e,n.arguments[1]):t}async function le(e,n){if(n.arguments.length<2)throw new u.D$("WrongNumberOfParameters",n);if(2===n.arguments.length)return K(e,n.arguments[1]);if((n.arguments.length-1)%2==0)throw new u.D$("WrongNumberOfParameters",n);return ue(e,n,1,await K(e,n.arguments[0]))}async function ue(e,n,t,r){const a=await K(e,n.arguments[t]);if((0,w.z)(a,r))return K(e,n.arguments[t+1]);const o=n.arguments.length-t;return 1===o?K(e,n.arguments[t]):2===o?null:3===o?K(e,n.arguments[t+2]):ue(e,n,t+2,r)}async function fe(e,n){if(n.arguments.length<3)throw new u.D$("WrongNumberOfParameters",n);if(n.arguments.length%2==0)throw new u.D$("WrongNumberOfParameters",n);const t=await K(e,n.arguments[0]);if(!1===(0,A.Lm)(t))throw new u.D$("BooleanConditionRequired",n.arguments[0]);return de(e,n,0,t)}async function de(e,n,t,r){if(!0===r)return K(e,n.arguments[t+1]);if(3===n.arguments.length-t)return K(e,n.arguments[t+2]);const a=await K(e,n.arguments[t+2]);if(!1===(0,A.Lm)(a))throw new u.D$("ModuleExportNotFound",n.arguments[t+2]);return de(e,n,t+2,a)}const we=function(){const e=Object.create(null);(0,h.d)(e,H),(0,x.d)(e,H),(0,g.d)(e,H,oe),(0,D.d)(e,H),(0,v.d)(e,H),(0,$.d)(e,H),(0,S.dW)(e,H),(0,b.registerFunctions)({functions:e,compiled:!1,signatures:null,evaluateIdentifier:null,mode:"async",standardFunction:H,standardFunctionAsync:_}),e.iif=se,e.defaultvalue=ce,e.decode=le,e.when=fe;const n=function(){this.textformatting={value:l.A.textFormatting()}};(n.prototype=Object.create(null)).infinity=Object.freeze({value:Number.POSITIVE_INFINITY}),n.prototype.nan=Object.freeze({value:Number.NaN}),n.prototype.pi=Object.freeze({value:Math.PI});for(const[t,r]of Object.entries(e))n.prototype[t]=Object.freeze({value:new d.UQ(r,t)});return n}();function pe(e){const n={mode:"async",compiled:!1,functions:Object.create(null),signatures:[],standardFunction:H,standardFunctionAsync:_,evaluateIdentifier:oe};for(let t=0;t<e.length;t++)e[t].registerFunctions(n);for(const[e,t]of Object.entries(n.functions))we.prototype[e]=Object.freeze({value:new d.UQ(t,e)});for(let e=0;e<n.signatures.length;e++)(0,p.WC)(n.signatures[e],"async")}function ye(e){console.log(e)}function me(e,n){const t=new Set(Object.keys(n?.vars||{}).map(e=>(0,r.X)(e))),a=new Set(Object.keys(n?.customfunctions||{}).map(e=>(0,r.X)(e))),{globals:s,exports:c}=(0,i.aU)(e);let l=null;if(n?.breakpoints){for(const[t,r]of(0,i.ti)(n.breakpoints,e))t.breakpoint=r;l={declaredNames:new Map(Object.keys(n?.vars||{}).map(e=>[(0,r.X)(e),e]).filter(([e])=>!s.has(e)))}}return async n=>{const i=n.spatialReference??C.A.WebMercator;let p=null;e.usesModules&&(p=new o.a(new Map,e.loadedModules));const y=new we;null!=l&&(y[G]={declaredNames:s});for(const e of a)null!=n.customfunctions&&e in n.customfunctions?y[e]={value:new d.UQ(n.customfunctions[e],e)}:y[e]=N;for(const e of t){if(null==n.vars||!(e in n.vars)){e in y||(y[e]=N);continue}const t=n.vars[e]??null;(0,F.D)(t)?y[e]={value:f.Xj.createFromGraphic(t,n.timeZone??null)}:y[e]={value:t}}for(const e of s.keys())e in y||(y[e]=N);const m={lrucache:n.lrucache,interceptor:n.interceptor,services:n.services,console:n.console??ye,abortSignal:n.abortSignal??r._,timeZone:n.timeZone??null,spatialReference:i,track:n.track,depthCounter:{depth:1},libraryResolver:p,exports:c,localScope:null,globalScope:y,contextScopeDebugInfo:l},h=await Y(m,e);if(h instanceof w.R||h instanceof w.I){const e=h.value;if((0,w.u)(e))return null;if((0,w.i)(e))throw new u.D$("IllegalResult",null);return e}if((0,w.u)(h))return null;if(h===w.C)throw new u.D$("IllegalResult",null);if(h===w.D)throw new u.D$("IllegalResult",null);throw new u.D$("NeverReach",null)}}function he(e,n){return me(e,n)(n)}pe([m.A]),pe([y.A]),pe([R.P])},87367(e,n,t){t.r(n),t.d(n,{registerFunctions:()=>b});var r=t(47609),a=t(67862),o=t(66395),i=t(85935),s=t(54639),c=t(78878),l=t(80672),u=t(38222),f=t(98919),d=t(71163),w=t(36983),p=t(70333),y=t(11254);async function m(e,n,t){const r=p.id?.findCredential(e.restUrl);if(!r)return null;if("loaded"===e.loadStatus&&""===n&&e.user?.sourceJSON&&!1===t)return e.user.sourceJSON;const a={responseType:"json",query:{f:"json"}};if(t&&(a.query.returnUserLicenseTypeExtensions=!0),""===n){const n=await(0,y.A)(e.restUrl+"/community/self",a);if(n.data){const e=n.data;if(e?.username)return e}return null}const o=await(0,y.A)(e.restUrl+"/community/users/"+n,a);if(o.data){const e=o.data;return e.error?null:e}return null}var h=t(54218);function g(e){if(null==e)return e;switch(typeof e){case"string":case"number":return e;default:throw new i.D$("InvalidParameter",null)}}function b(e){"async"===e.mode&&(e.functions.disjoint=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>(r=(0,c.H)(r),(0,f.ZL)(r,t),null===r[0]||null===r[1]||(0,d.C)("disjoint",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,s.b)(r[0].spatialReference)])))},e.functions.intersects=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>(r=(0,c.H)(r),(0,f.ZL)(r,t),null!==r[0]&&null!==r[1]&&(0,d.C)("intersects",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,s.b)(r[0].spatialReference)])))},e.functions.touches=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>(r=(0,c.H)(r),(0,f.ZL)(r,t),null!==r[0]&&null!==r[1]&&(0,d.C)("touches",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,s.b)(r[0].spatialReference)])))},e.functions.crosses=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>(r=(0,c.H)(r),(0,f.ZL)(r,t),null!==r[0]&&null!==r[1]&&(0,d.C)("crosses",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,s.b)(r[0].spatialReference)])))},e.functions.within=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>(r=(0,c.H)(r),(0,f.ZL)(r,t),null!==r[0]&&null!==r[1]&&(0,d.C)("within",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,s.b)(r[0].spatialReference)])))},e.functions.contains=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>(r=(0,c.H)(r),(0,f.ZL)(r,t),null!==r[0]&&null!==r[1]&&(0,d.C)("contains",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,s.b)(r[0].spatialReference)])))},e.functions.overlaps=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>(r=(0,c.H)(r),(0,f.ZL)(r,t),null!==r[0]&&null!==r[1]&&(0,d.C)("overlaps",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,s.b)(r[0].spatialReference)])))},e.functions.equals=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>((0,c.E)(r,2,2,t),r[0]===r[1]||((0,c.d)(r[0])&&(0,c.d)(r[1])?(0,d.C)("equals",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,s.b)(r[0].spatialReference)]):((0,c.f)(r[0])&&(0,c.f)(r[1])||!!((0,c.r)(r[0])&&(0,c.r)(r[1])||(0,c.q)(r[0])&&(0,c.q)(r[1])))&&r[0].equals(r[1]))))},e.functions.relate=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,3,3,t),(0,c.d)(r[0])&&(0,c.d)(r[1]))return(0,d.C)("relate",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,s.b)(r[0].spatialReference),(0,c.w)(r[2])]);if((0,c.d)(r[0])&&null===r[1])return!1;if((0,c.d)(r[1])&&null===r[0])return!1;if(null===r[0]&&null===r[1])return!1;throw new i.D$("InvalidParameter",t)})},e.functions.intersection=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>(r=(0,c.H)(r),(0,f.ZL)(r,t),null===r[0]||null===r[1]?null:(0,w.R)(await(0,d.C)("intersection",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,s.b)(r[0].spatialReference)]),r[0].spatialReference)))},e.functions.union=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(0===(r=(0,c.H)(r)).length)throw new i.D$("WrongNumberOfParameters",t);const a=[];if(1===r.length)if((0,h.cy)(r[0])){for(const e of(0,c.H)(r[0]))if(null!==e){if(!(0,c.d)(e))throw new i.D$("InvalidParameter",t);a.push(e)}}else{if(!(0,c.g)(r[0])){if((0,c.d)(r[0]))return r[0].clone();if(null===r[0])return null;throw new i.D$("InvalidParameter",t)}for(const e of(0,c.H)(r[0].toArray()))if(null!==e){if(!(0,c.d)(e))throw new i.D$("InvalidParameter",t);a.push(e)}}else for(const e of r)if(null!==e){if(!(0,c.d)(e))throw new i.D$("InvalidParameter",t);a.push(e)}if(0===a.length)return null;const o=a[0].spatialReference;return(0,w.R)(await(0,d.C)("union",[a.map(e=>e.asJsonGeometry()),(0,s.b)(o)]),o)})},e.functions.difference=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>(r=(0,c.H)(r),(0,f.ZL)(r,t),null===r[0]?null:null===r[1]?r[0].clone():(0,w.R)(await(0,d.C)("difference",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,s.b)(r[0].spatialReference)]),r[0].spatialReference)))},e.functions.symmetricdifference=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>(r=(0,c.H)(r),(0,f.ZL)(r,t),null===r[0]&&null===r[1]?null:null===r[0]?r[1]?.clone()??null:null===r[1]?r[0]?.clone()??null:(0,w.R)(await(0,d.C)("symmetricDifference",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,s.b)(r[0].spatialReference)]),r[0].spatialReference)))},e.functions.clip=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,2,2,t),!(0,c.J)(r[1])&&null!==r[1])throw new i.D$("InvalidParameter",t);if(null===r[0])return null;if(!(0,c.d)(r[0]))throw new i.D$("InvalidParameter",t);return null===r[1]?null:(0,w.R)(await(0,d.C)("clip",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,s.b)(r[0].spatialReference)]),r[0].spatialReference)})},e.functions.cut=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,2,2,t),!(0,c.K)(r[1])&&null!==r[1])throw new i.D$("InvalidParameter",t);if(null===r[0])return[];if(!(0,c.d)(r[0]))throw new i.D$("InvalidParameter",t);if(null===r[1])return[r[0].clone()];const a=r[0].spatialReference;return(await(0,d.C)("cut",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,s.b)(r[0].spatialReference)])).map(e=>(0,w.R)(e,a)).filter(e=>null!=e)})},e.functions.area=function(n,t){return e.standardFunctionAsync(n,t,async(e,r,a)=>{if((0,c.E)(a,1,2,t),a=(0,c.H)(a),(0,c.k)(a[0])){const e=await a[0].sumArea(g(a[1]),null,n.abortSignal);if(n.abortSignal.aborted)throw new i.D$("Cancelled",t);return e}let o=a[0];if(((0,h.cy)(o)||(0,c.g)(o))&&(o=(0,u.zt)(a[0],n.spatialReference)),null===o)return 0;if(!(0,c.d)(o))throw new i.D$("InvalidParameter",t);return(0,d.C)("area",[o.asJsonGeometry(),(0,s.b)(o.spatialReference),g(a[1])])})},e.functions.areageodetic=function(n,t){return e.standardFunctionAsync(n,t,async(e,r,a)=>{(0,c.E)(a,1,3,t);let o=(a=(0,c.H)(a))[0];((0,h.cy)(o)||(0,c.g)(o))&&(o=(0,u.zt)(o,n.spatialReference));const l=g(a[1]),w=(0,f.qr)(a[2]);if((0,c.k)(o)){const e=await o.sumArea(l,w,n.abortSignal);if(n.abortSignal.aborted)throw new i.D$("Cancelled",t);return e}if(null==o)return 0;if(!(0,c.d)(o))throw new i.D$("InvalidParameter",t);return(0,d.C)("geodeticArea",[o.asJsonGeometry(),(0,s.b)(o.spatialReference),l,w])})},e.functions.length=function(n,t){return e.standardFunctionAsync(n,t,async(e,r,a)=>{if((0,c.E)(a,1,2,t),a=(0,c.H)(a),(0,c.k)(a[0])){const e=await a[0].sumLength(g(a[1]),null,n.abortSignal);if(n.abortSignal.aborted)throw new i.D$("Cancelled",t);return e}let o=a[0];if(((0,h.cy)(a[0])||(0,c.g)(a[0]))&&(o=(0,u.X1)(a[0],n.spatialReference)),null===o)return 0;if(!(0,c.d)(o))throw new i.D$("InvalidParameter",t);return(0,d.C)("length",[o.asJsonGeometry(),(0,s.b)(o.spatialReference),g(a[1])])})},e.functions.length3d=function(n,r){return e.standardFunctionAsync(n,r,async(e,a,o)=>{if((0,c.E)(o,1,2,r),null===(o=(0,c.H)(o))[0])return 0;let l=o[0];if(((0,h.cy)(o[0])||(0,c.g)(o[0]))&&(l=(0,u.X1)(o[0],n.spatialReference)),null===l)return 0;if(!(0,c.d)(l))throw new i.D$("InvalidParameter",r);if(!0===l.hasZ){const{convertFromSpatialReferenceUnit:e,toLengthUnit:n}=await Promise.resolve().then(t.bind(t,40547)),r=(0,f.UI)(l);return e(l.spatialReference,n(o[1]),r)}return(0,d.C)("length",[l.asJsonGeometry(),(0,s.b)(l.spatialReference),g(o[1])])})},e.functions.lengthgeodetic=function(n,t){return e.standardFunctionAsync(n,t,async(e,r,a)=>{(0,c.E)(a,1,3,t);let o=(a=(0,c.H)(a))[0];((0,h.cy)(a[0])||(0,c.g)(a[0]))&&(o=(0,u.X1)(a[0],n.spatialReference));const l=g(a[1]),w=(0,f.qr)(a[2]);if((0,c.k)(o)){const e=await o.sumLength(l,w,n.abortSignal);if(n.abortSignal.aborted)throw new i.D$("Cancelled",t);return e}if(null===o)return 0;if(!(0,c.d)(o))throw new i.D$("InvalidParameter",t);return(0,d.C)("geodeticLength",[o.asJsonGeometry(),(0,s.b)(o.spatialReference),l,w])})},e.functions.distance=function(n,t){return e.standardFunctionAsync(n,t,async(e,r,a)=>{a=(0,c.H)(a),(0,c.E)(a,2,3,t);let o=a[0];if(((0,h.cy)(a[0])||(0,c.g)(a[0]))&&(o=(0,u.yg)(a[0],n.spatialReference)),!(0,c.d)(o))throw new i.D$("InvalidParameter",t);let l=a[1];if(((0,h.cy)(a[1])||(0,c.g)(a[1]))&&(l=(0,u.yg)(a[1],n.spatialReference)),!(0,c.d)(l))throw new i.D$("InvalidParameter",t);return(0,d.C)("distance",[o.asJsonGeometry(),l.asJsonGeometry(),(0,s.b)(o.spatialReference),g(a[2])])})},e.functions.distancegeodetic=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{r=(0,c.H)(r),(0,c.E)(r,2,4,t);const a=r[0];if(!(0,c.L)(a))throw new i.D$("InvalidParameter",t);const o=r[1];if(!(0,c.L)(o))throw new i.D$("InvalidParameter",t);return(0,d.C)("geodeticDistance",[a.asJsonGeometry(),o.asJsonGeometry(),(0,s.b)(a.spatialReference),g(r[2]),(0,f.qr)(r[3])])})},e.functions.densify=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,2,3,t),null===r[0])return null;if(!(0,c.d)(r[0]))throw new i.D$("InvalidParameter",t);const a=(0,c.v)(r[1]);if(isNaN(a))throw new i.D$("InvalidParameter",t);if(a<=0)throw new i.D$("InvalidParameter",t);switch(r[0].type){case"polygon":case"polyline":case"extent":return(0,w.R)(await(0,d.C)("densify",[r[0].asJsonGeometry(),(0,s.b)(r[0].spatialReference),a,g(r[2])]),r[0].spatialReference);default:return r[0]}})},e.functions.densifygeodetic=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{r=(0,c.H)(r),(0,c.E)(r,2,4,t);const a=r[0];if(null==a)return null;if(!(0,c.d)(a))throw new i.D$("InvalidParameter",t);const o=(0,c.v)(r[1]);if(isNaN(o))throw new i.D$("InvalidParameter",t);if(o<=0)throw new i.D$("InvalidParameter",t);const l=g(r[2]),u=(0,f.qr)(r[3]);switch(a.type){case"polygon":case"polyline":case"extent":return(0,w.R)(await(0,d.C)("geodeticDensify",[a.asJsonGeometry(),(0,s.b)(a.spatialReference),o,l,u]),a.spatialReference);default:return a}})},e.functions.generalize=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,2,4,t),null===r[0])return null;if(!(0,c.d)(r[0]))throw new i.D$("InvalidParameter",t);const a=(0,c.v)(r[1]);if(isNaN(a))throw new i.D$("InvalidParameter",t);const o=(0,c.M)((0,c.N)(r[2],!0));return(0,w.R)(await(0,d.C)("generalize",[r[0].asJsonGeometry(),(0,s.b)(r[0].spatialReference),a,g(r[3]),o]),r[0].spatialReference)})},e.functions.buffer=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,2,3,t),null===r[0])return null;if(!(0,c.d)(r[0]))throw new i.D$("InvalidParameter",t);const a=(0,c.v)(r[1]);if(isNaN(a))throw new i.D$("InvalidParameter",t);return 0===a?r[0].clone():(0,w.R)(await(0,d.C)("buffer",[r[0].asJsonGeometry(),(0,s.b)(r[0].spatialReference),a,g(r[2])]),r[0].spatialReference)})},e.functions.buffergeodetic=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{r=(0,c.H)(r),(0,c.E)(r,2,4,t);const a=r[0];if(null==a)return null;if(!(0,c.d)(a))throw new i.D$("InvalidParameter",t);const o=(0,c.v)(r[1]);if(isNaN(o))throw new i.D$("InvalidParameter",t);if(0===o)return a.clone();const l=g(r[2]),u=(0,f.qr)(r[3]);return(0,w.R)(await(0,d.C)("geodesicBuffer",[a.asJsonGeometry(),(0,s.b)(a.spatialReference),o,l,u]),a.spatialReference)})},e.functions.offset=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{r=(0,c.H)(r),(0,c.E)(r,2,6,t);const a=r[0];if(null===a)return null;if(!(0,c.d)(a)||"polygon"!==a.type&&"polyline"!==a.type)throw new i.D$("InvalidParameter",t);const o=(0,c.v)(r[1]);if(isNaN(o))throw new i.D$("InvalidParameter",t);const l=r[2],u=(0,f.ug)(r[3]),p=(0,c.v)((0,c.N)(r[4],10));if(isNaN(p))throw new i.D$("InvalidParameter",t);const y=(0,c.v)((0,c.N)(r[5],0));if(isNaN(y))throw new i.D$("InvalidParameter",t);return(0,w.R)(await(0,d.C)("offset",[a.asJsonGeometry(),(0,s.b)(a.spatialReference),o,g(l),u,p,y]),a.spatialReference)})},e.functions.rotate=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{r=(0,c.H)(r),(0,c.E)(r,2,3,t);const a=r[0];if(null===a)return null;if(!(0,c.d)(a))throw new i.D$("InvalidParameter",t);const o=(0,c.v)(r[1]);if(!Number.isFinite(o))throw new i.D$("InvalidParameter",t);const s=r[2];if(null!=s&&!(0,c.L)(s))throw new i.D$("InvalidParameter",t);const l=s?.asJsonLikeGeometry();return(0,w.R)(await(0,d.C)("rotate",[a.asJsonGeometry(),o,l?.x,l?.y]),a.spatialReference)})},e.functions.centroid=function(n,t){return e.standardFunctionAsync(n,t,async(e,r,a)=>{if(a=(0,c.H)(a),(0,c.E)(a,1,2,t),null===a[0])return null;const o=(0,f.Hz)(a[1]);let s=a[0];if(((0,h.cy)(a[0])||(0,c.g)(a[0]))&&(s="geometric"===o?(0,u.yg)(a[0],n.spatialReference):(0,u.zt)(a[0],n.spatialReference),null===s))return null;if(!(0,c.d)(s))throw new i.D$("InvalidParameter",t);return(0,w.p)("point","geometric"===o?await(0,d.C)("centroid",[s.asJsonGeometry()]):await(0,d.C)("labelPoint",[s.asJsonGeometry()]),s.spatialReference)})},e.functions.measuretocoordinate=function(n,t){return e.standardFunctionAsync(n,t,f.Cd)},e.functions.pointtocoordinate=function(n,t){return e.standardFunctionAsync(n,t,f.kr)},e.functions.distancetocoordinate=function(n,t){return e.standardFunctionAsync(n,t,f.Bn)},e.functions.multiparttosinglepart=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,1,1,t),null===r[0])return null;if(!(0,c.d)(r[0]))throw new i.D$("InvalidParameter",t);const a=r[0].spatialReference;return(await(0,d.C)("multiPartToSinglePart",[r[0].asJsonGeometry(),(0,s.b)(r[0].spatialReference)])).map(e=>(0,w.R)(e,a)).filter(e=>null!=e)})},e.functions.isselfintersecting=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,t)=>{(0,c.E)(t,1,1,n);let r=(t=(0,c.H)(t))[0];return((0,h.cy)(t[0])||(0,c.g)(t[0]))&&(r=(0,u.X1)(t[0],e.spatialReference)),!!(0,c.d)(r)&&await(0,d.C)("isSelfIntersecting",[r.asJsonGeometry(),(0,s.b)(r.spatialReference)])})},e.functions.issimple=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,1,1,t),null===r[0])return!0;if(!(0,c.d)(r[0]))throw new i.D$("InvalidParameter",t);return(0,d.C)("isSimple",[r[0].asJsonGeometry(),(0,s.b)(r[0].spatialReference)])})},e.functions.simplify=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,1,1,t),null===r[0])return null;if(!(0,c.d)(r[0]))throw new i.D$("InvalidParameter",t);return(0,w.R)(await(0,d.C)("simplify",[r[0].asJsonGeometry(),(0,s.b)(r[0].spatialReference)]),r[0].spatialReference)})},e.functions.convexhull=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,1,1,t),null===r[0])return null;if(!(0,c.d)(r[0]))throw new i.D$("InvalidParameter",t);return(0,w.R)(await(0,d.C)("convexHull",[r[0].asJsonGeometry()]),r[0].spatialReference)})},e.functions.getuser=function(n,t){return e.standardFunctionAsync(n,t,async(e,o,s)=>{(0,c.E)(s,0,2,t);let u=(0,c.N)(s[1],""),f=!0===u;if(u=!0===u||!1===u?"":(0,c.w)(u),0===s.length||s[0]instanceof r.A){const e=(0,l.RI)(n,s.length>0?s[0]:null),t=await m(e,u,f);return null!=t?(0,a.Tg)(JSON.parse(JSON.stringify(t))):null}let d=null;if((0,c.k)(s[0])&&(d=s[0]),d){if(f=!1,u)return null;await d.load();const e=await d.getOwningSystemUrl();if(!e){if(!u){const e=await d.getIdentityUser();return null!=e?(0,a.Tg)({username:e}):null}return null}const t=(0,l.RI)(n,new r.A(e)),o=await m(t,u,f);return null!=o?(0,a.Tg)(JSON.parse(JSON.stringify(o))):null}throw new i.D$("InvalidParameter",t)})},e.functions.nearestcoordinate=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,2,2,t),null==r[0]||null==r[1])return null;if(!(0,c.d)(r[0]))throw new i.D$("InvalidParameter",t);if(!(0,c.L)(r[1]))throw new i.D$("InvalidParameter",t);const a=await(0,d.C)("getNearestCoordinate",[r[0].asJsonGeometry(),r[1].asJsonGeometry()]);return null==a?null:o.A.createMutable({__proto__:null,coordinate:(0,w.p)("point",a.coordinate,r[0].spatialReference),distance:a.distance,sideOfLine:a.sideOfLine})})},e.functions.nearestvertex=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,2,2,t),null==r[0]||null==r[1])return null;if(!(0,c.d)(r[0]))throw new i.D$("InvalidParameter",t);if(!(0,c.L)(r[1]))throw new i.D$("InvalidParameter",t);const a=await(0,d.C)("getNearestVertex",[r[0].asJsonGeometry(),r[1].asJsonGeometry()]);return null==a?null:o.A.createMutable({__proto__:null,coordinate:(0,w.p)("point",a.coordinate,r[0].spatialReference),distance:a.distance,sideOfLine:a.sideOfLine})})})}},71163(e,n,t){t.d(n,{C:()=>c});var r=t(29953);let a,o,i=!1;function s(){return a??=(0,r.ho)("arcadeGeometryOperatorsWorker").then(e=>{o=e,i=!0,a=void 0})}async function c(e,n){return i?o.apply("invokeGeometryOp",[e,n]):(await s(),c(e,n))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[224,7843,8955],{20774(e,t,n){n.d(t,{a:()=>k});var a=n(77843),s=n(31257);const o=(0,a.aK)((e,t)=>{t.onConnected(()=>{m(e)}),t.onDisconnected(()=>{!function(e){if(!e)return;if(p.delete(e),document.removeEventListener(i,u.get(e)),document.removeEventListener(c,b.get(e)),u.delete(e),b.delete(e),!e.labelEl)return;const t=d.get(e.labelEl);1===t.length&&(e.labelEl.removeEventListener(l,h.get(e.labelEl)),h.delete(e.labelEl)),d.set(e.labelEl,t.filter(t=>t!==e).sort(g)),e.labelEl=void 0}(e)})}),l="calciteInternalLabelClick",i="calciteInternalLabelConnected",c="calciteInternalLabelDisconnected",r="calcite-label",d=new WeakMap,h=new WeakMap,u=new WeakMap,b=new WeakMap,p=new Set;function m(e){if(!e)return;const t=(e=>{const{id:t}=e,n=t&&(0,s.t)(e,{selector:`${r}[for="${t}"]`});if(n)return n;const a=(0,s.c)(e,r);return!a||function(e,t){let n;const a="custom-element-ancestor-check",s=a=>{a.stopImmediatePropagation();const s=a.composedPath();n=s.slice(s.indexOf(t),s.indexOf(e))};return e.addEventListener(a,s,{once:!0}),t.dispatchEvent(new CustomEvent(a,{composed:!0,bubbles:!0})),e.removeEventListener(a,s),n.filter(n=>n!==t&&n!==e).filter(e=>e.tagName?.includes("-")).length>0}(a,e)?null:a})(e.el);if(t&&h.has(t)&&t===e.labelEl||!t&&p.has(e))return;const n=y.bind(e);if(t){e.labelEl=t;const a=d.get(t)||[];a.push(e),d.set(t,a.sort(g)),h.has(e.labelEl)||(h.set(e.labelEl,f),e.labelEl.addEventListener(l,f)),p.delete(e),document.removeEventListener(i,u.get(e)),b.set(e,n),document.addEventListener(c,n)}else p.has(e)||(n(),document.removeEventListener(c,b.get(e)))}function g(e,t){return(0,s.u)(e.el,t.el)?-1:1}function f(e){const t=e.detail.sourceEvent.target,n=d.get(this),a=n.find(e=>e.el===t);if(a&&n.includes(a))return;const s=n[0];s.disabled||s.onLabelClick(e)}function v(){p.has(this)&&m(this)}function y(){p.add(this);const e=u.get(this)||v.bind(this);u.set(this,e),document.addEventListener(i,e)}async function k(e){if(await e.componentOnReady(),d.has(e))return;const t=e.for&&e.ownerDocument?.getElementById(e.for);t&&requestAnimationFrame(()=>{for(const e of p)if(e.el===t){m(e);break}})}n.d(t,["b",0,c,"l",0,i,"u",0,o])},68955(e,t,n){n.r(t),n.d(t,{Label:()=>r});var a=n(57805),s=n(58933),o=n(42054),l=n(90824),i=n(20774);const c=s.AH`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}:host([alignment=start]){text-align:start}:host([alignment=end]){text-align:end}:host([alignment=center]){text-align:center}:host([scale=s]) .container{gap:.25rem;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);margin-block-end:var(--calcite-label-margin-bottom, .5rem)}:host([scale=m]) .container{gap:.5rem;font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base);margin-block-end:var(--calcite-label-margin-bottom, .75rem)}:host([scale=l]) .container{gap:.5rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);margin-block-end:var(--calcite-label-margin-bottom, 1rem)}:host .container{margin-inline:0px;margin-block-start:0px;inline-size:100%;line-height:1.375;color:var(--calcite-color-text-1);color:var(--calcite-label-text-color, var(--calcite-color-text-1))}:host([layout=block]) .container,:host([layout=default]) .container{display:flex;flex-direction:column}:host([layout=inline]) .container,:host([layout=inline-space-between]) .container{display:flex;flex-direction:row;align-items:center;gap:.5rem}:host([layout=inline][scale=l]) .container{gap:.75rem}:host([layout=inline-space-between]) .container{justify-content:space-between}:host([disabled])>.container{opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted(*[disabled]),:host([disabled]) ::slotted(*[disabled] *){--tw-bg-opacity: 1}:host([disabled]) ::slotted(calcite-input-message:not([active])){--tw-bg-opacity: 0}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`;class r extends o.WF{constructor(){super(),this.alignment="start",this.layout="default",this.scale="m",this.calciteInternalLabelClick=(0,l.b)({bubbles:!1,cancelable:!1}),this.listen("click",this.labelClickHandler)}static{this.properties={alignment:[3,{},{reflect:!0}],for:[3,{},{reflect:!0}],layout:[3,{},{reflect:!0}],scale:[3,{},{reflect:!0}]}}static{this.styles=c}connectedCallback(){super.connectedCallback(),document.dispatchEvent(new CustomEvent(i.l))}willUpdate(e){e.has("for")&&(0,i.a)(this.el)}disconnectedCallback(){super.disconnectedCallback(),document.dispatchEvent(new CustomEvent(i.b))}labelClickHandler(e){"Range"===window.getSelection()?.type||e.defaultPrevented||this.calciteInternalLabelClick.emit({sourceEvent:e})}render(){return s.qy`<div class=${(0,o.CP)("container")}><slot></slot></div>`}}(0,a.c)("calcite-label",r)},77843(e,t,n){n.d(t,{Dk:()=>v,aK:()=>y,yr:()=>$,jH:()=>C,oW:()=>w});var a=n(90824),s=n(40523);var o=n(58933),l=n(39061),i=n(44613);const c=e=>{const t=(0,l.g)(e,"lang",globalThis.navigator?.language||u);return{lang:t,t9nLocale:f(t)}},r=async(e,t,n=e.localName.split("-").slice(1).join("-"))=>{const{lang:a,t9nLocale:s}=c(e),o=`${t}/${n}/t9n`;return{lang:a,t9nLocale:s,t9nStrings:null===n?{}:await p(s,o,"messages.")}},d="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),h=new Set(d),u="en",b={pt:"pt-BR",nb:"no",nn:"no",zh:"zh-CN"},p=async(e,t,n="")=>{const a=`${t}/${n}`,s=`${a}${e}.json`;return m[s]??=g(e,a),await m[s]},m={},g=async(e,t)=>{const n=`${t}${e}.json`;try{const e=await fetch(n);if(e.ok)return await e.json()}catch(e){return(0,i.Rm)("error","intl",`An unknown error occurred while fetching localization strings at ${n}`,{detail:{error:e}}),{}}return e===u?{}:await g(u,t)},f=e=>{const[t,n]=e.split("-"),a=t.toLowerCase();let s=a;return n&&(s=`${a}-${n.toUpperCase()}`),s=b[s]??s,h.has(s)?s:n?f(a):u},v=e=>x(void 0,e),y=e=>t=>x(t,e);class k extends a.C{constructor(e,t){super(e);const n=this.exports;try{(0,s.s)(this.component);const e=t(this.component,this),a=this.exports!==n;if((0,s.i)(e)){a||this.setProvisionalExports(e);const t=e.then(e=>{this.exports=e,super.catchUpLifecycle()}).catch(e=>{this.P.reject(e)});this.onLoad(async()=>await t)}else a&&void 0===e||(this.exports=e),queueMicrotask(()=>super.catchUpLifecycle())}catch(e){this.P.reject(e)}}catchUpLifecycle(){}}const x=(E=k,(...e)=>{const t=(0,s.b)(),n=new E(...e),o=n.exports;(0,s.a)(t.at(-1));const l=n.component.manager;l.W(n,o),n.watchExports(l.W.bind(l,n)),(0,s.f)(n);const i=[n.component,...t].reverse();return(0,a.a)(i,e=>void 0===e?void 0:((e,{host:t,key:n,isReactive:a},o)=>{const l=t,i=l[n]!==e.exports,c=l[n]!==o,r=o!==e.exports;if(i&&!c&&r&&(l[n]=e.exports),t===e.component){if(a){const t=e.component.manager;c&&t.W(e,l[n]),e.onUpdate(a=>{if(a.has(n)){const a=l[n];a!==e.exports&&t.W(e,a)}})}e.O=a?void 0:n}const d=e.component.constructor.elementProperties.get(n)?.readOnly;e.watchExports(()=>{l[n]!==e.exports&&(d?(0,s.c)(()=>{l[n]=e.exports}):l[n]=e.exports)})})(n,e,o),o)});var E;const w=(e,t)=>new L(e,t);class L extends a.C{#e;#t;#n;constructor(e,t){super(),o.S$||(this.#t=e,this.#n=t,this.#e=new MutationObserver(n=>{n.forEach(n=>{e.includes(n.attributeName)&&t.call(this.component,this.component.el.getAttribute(n.attributeName),n.oldValue,n.attributeName)})}))}hostConnected(){this.#t.forEach(e=>{this.component.el.hasAttribute(e)&&this.#n.call(this.component,this.component.el.getAttribute(e),null,e)}),this.#e.observe(this.component.el,{attributes:!0,attributeOldValue:!0,attributeFilter:this.#t})}hostDisconnected(){this.#e.disconnect()}}const C=()=>v((e,t)=>{t.exports="ltr",t.onLifecycle(()=>{const n=()=>{const n=(0,l.g)(e.el,"dir","ltr");t.exports="rtl"===n?"rtl":"ltr"};return n(),(0,l.o)(e.el,["dir"],n)})}),$=e=>(t={})=>v((n,a)=>{const s=c(n.el),o={_lang:s.lang,_t9nLocale:s.t9nLocale,_loading:!0},d=n;a.onLifecycle(()=>((e,t,n,a)=>{let s;const o=()=>r(e,t(),a).then(e=>{s?.lang===e.lang&&s.t9nLocale===e.t9nLocale&&s.t9nStrings===e.t9nStrings||n(e),s=e}).catch(e=>{(0,i.Rm)("error","intl","Error updating component locale state",{detail:{error:e}})});return queueMicrotask(o),(0,l.o)(e,["lang"],o)})(n.el,()=>e("./assets"),({t9nLocale:e,t9nStrings:t,lang:s})=>{const o={...t,_lang:s,_t9nLocale:e,_loading:!1};a.exports=o;const l=t.componentLabel;"string"==typeof l&&"label"in n&&null==n.label&&(n.label??=l),h(d.messageOverrides)},t.name));const h=e=>{const t=a.exports,n=t._original??t,s=z(n,e);e&&(s._original=n),a.exports=s};return"messageOverrides"in d&&a.onUpdate(e=>{e.has("messageOverrides")&&h(d.messageOverrides)}),t.blocking?(a.setProvisionalExports(o,!1),a.ready):o}),z=(e,t)=>{if(!t)return e;const n={...e};return Object.entries(t).forEach(([t,a])=>{void 0!==e[t]&&(n[t]="object"==typeof a?z(e[t],a):a??e[t])}),n}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1474],{52106(e,t,r){r.d(t,{A:()=>C});var i,n,s=r(32198),o=r(37838),a=r(69540),l=r(51447),u=r(25482),p=r(53966),c=r(36708),y=r(24326),h=r(91429),m=r(12195),d=r(65864),f=r(50498),g=r(55156),v=r(60950),b=r(54339),x=r(94128),M=r(33910);const w=Symbol("meshGeometryHandles");function S(e){if(null==e)return null;const t={};for(const r in e){const i=e[r];i&&(t[r]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let C=class extends((0,a.OU)(u.o)){static{i=x.Z}static{n=this}constructor(e){super(e),this[i]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,y.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(p.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new n({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,v.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,g.I)(this.origin);if(e)return(0,b.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,b.r)(this,t):null}getGlobalId(){const e=(0,g.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){const e={aggregateGeometries:S(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,m.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const n={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(n.action=i),"attributes"===e&&(n.attributeName=i),this.layer.graphicChanged(n)}_watchMeshGeometryChanges(){this.removeHandles(w);const e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,c.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,c.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],w)}};(0,s.Cg)([(0,h.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const i=(0,d.rS)(e[r]);i&&(t[r]=i)}return 0!==Object.keys(t).length?t:null}}})],C.prototype,"aggregateGeometries",null),(0,s.Cg)([(0,h.MZ)({value:null})],C.prototype,"attributes",null),(0,s.Cg)([(0,h.MZ)({value:null,types:f.yR,json:{read:d.rS}})],C.prototype,"geometry",null),(0,s.Cg)([(0,h.MZ)()],C.prototype,"distance",void 0),(0,s.Cg)([(0,h.MZ)({type:Boolean})],C.prototype,"isAggregate",void 0),(0,s.Cg)([(0,h.MZ)({clonable:!1})],C.prototype,"layer",void 0),(0,s.Cg)([(0,h.MZ)({clonable:"reference"})],C.prototype,"origin",void 0),(0,s.Cg)([(0,h.MZ)({type:o.A,value:null})],C.prototype,"popupTemplate",null),(0,s.Cg)([(0,h.MZ)({clonable:"reference"})],C.prototype,"sourceLayer",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],C.prototype,"statisticsAggregatedIds",void 0),(0,s.Cg)([(0,h.MZ)({value:null,types:M.Es})],C.prototype,"symbol",null),(0,s.Cg)([(0,h.MZ)({clonable:!1,json:{read:!1,write:!1}})],C.prototype,"_version",void 0),(0,s.Cg)([(0,h.MZ)({type:Boolean,value:!0})],C.prototype,"visible",null),C=n=(0,s.Cg)([(0,h.$K)("esri.Graphic")],C)},19334(e,t,r){r.d(t,{e:()=>o});var i=r(54639),n=r(14112);class s{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry.toJSON()}toAccessorGeometry(e){return this._geometry}toGxGeometry(e){return e.fromAccessorGeometry(this._geometry)}}function o(e){if(null==e)return null;switch(e.type){case"point":if((0,n.e6)(e))return null;break;case"polygon":if((0,n.Wq)(e))return null;break;case"polyline":if((0,n.IY)(e))return null;break;case"multipoint":if((0,n.DG)(e))return null;break;case"extent":if((0,n.As)(e))return null;break;default:return null}const t=i.R.of(e.type,e.spatialReference,e.hasZ,e.hasM,new s(e));return t.asAccessorGeometry(),t}},36983(e,t,r){r.d(t,{R:()=>u,p:()=>p});var i=r(54639),n=r(14112),s=r(16930),o=r(60408),a=r(65864);class l{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry}toAccessorGeometry(e){const t=(0,a.rS)(this._geometry);return t.spatialReference=e,t}toGxGeometry(e){return e.fromJsonGeometry(this._geometry)}}function u(e,t){if(null==e||"object"!=typeof e)return null;let r=t;if("spatialReference"in e&&(e.spatialReference instanceof s.A?r=e.spatialReference:"object"==typeof e.spatialReference&&null!=e.spatialReference&&(r=new s.A,r.read(e.spatialReference))),null==r)throw new Error("Spatial reference required");return(0,o.fT)(e)?p("point",e,r):(0,o.Rg)(e)?p("polyline",e,r):(0,o.Bi)(e)?p("polygon",e,r):(0,o.U9)(e)?p("multipoint",e,r):(0,o.ZC)(e)?p("extent",e,r):null}function p(e,t,r){if(null==t)return null;let s=!1,o=!1;switch(e){case"point":if((0,n.e6)(t))return null;s=void 0!==t.z,o=void 0!==t.m;break;case"polygon":if((0,n.Wq)(t))return null;s=!0===t.hasZ,o=!0===t.hasM;break;case"polyline":if((0,n.IY)(t))return null;s=!0===t.hasZ,o=!0===t.hasM;break;case"multipoint":if((0,n.DG)(t))return null;s=!0===t.hasZ,o=!0===t.hasM;break;case"extent":if((0,n.As)(t))return null;s=null!=t.zmin&&null!=t.zmax,o=null!=t.mmin&&null!=t.mmax;break;default:throw new Error("Unsupported geometry type: "+t.type)}return i.R.of(e,r,s,o,new l(t))}},14112(e,t,r){function i(e){return"NaN"===e.x||null===e.x||isNaN(e.x)}function n(e){if(0===(e.curveRings??e.rings).length)return!0;for(const t of e.curveRings??e.rings)if(t.length>0)return!1;return!0}function s(e){if(0===(e.curvePaths??e.paths).length)return!0;for(const t of e.curvePaths??e.paths)if(t.length>0)return!1;return!0}function o(e){return 0===e.points.length}function a(e){return"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)}r.d(t,{As:()=>a,DG:()=>o,IY:()=>s,Wq:()=>n,e6:()=>i})},69052(e,t,r){r.d(t,{hr:()=>n});var i=r(34727);class n{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return s(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,i.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+o(this.range,e-t,r)}minimalMonotonic(e,t,r){return s(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);const r=(t=this.normalize(t))-e,i=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(i)?r:i}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function s(e,t,r,i,n=0,s=!1){return(i-=n)<t?i+=o(e,t-i):i>r&&(i-=o(e,i-r)),s&&i===r&&(i=t),i+n}function o(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const a=new n(0,2*Math.PI),l=(new n(-Math.PI,Math.PI),new n(0,360));r.d(t,["ie",0,l,"uC",0,a])},93146(e,t,r){r.d(t,{z:()=>n});class i{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return null==this._promise&&(this._promise=this._import().then(async e=>(this.module=e,e))),this._promise}}function n(e){return new i(async()=>{const t=await e();return!1===t.isLoaded?.()&&await t.load(),t})}},52039(e,t,r){r.d(t,{O7:()=>c,el:()=>l});var i=r(69052),n=(r(49186),r(17676)),s=(r(5443),r(39829),r(82799),r(16930)),o=r(93146),a=(r(80754),r(21325));async function l(e,t,r){Array.isArray(e)||(e=[e]),null!=t&&"object"==typeof t&&"authMode"in t&&(r=t);let i=null;for(const t of e)i??=t?.spatialReference;if(!i)return e;const s=(0,a.Vp)(i);if(!s)return e;const[o,l]=s.valid;let c=!1;for(const t of e){if(!t)continue;if("point"===t.type){c||=t.x>=l,c||=t.x<=o;continue}const{extent:e}=t;if(null==e){c=!0;break}c||=e.xmin>=l,c||=e.xmin<=o,c||=e.xmax>=l,c||=e.xmax<=o}if(!c)return e;const[{foldInto360Range:y},h]=await(0,n.qr)(Promise.all([u.getImportPromise(),p.getImportPromise()]),r),m=h.fromSpatialReference(i);return e.map(e=>{if(null==e||"mesh"===e.type)return e;const t=h.fromGeometry(e),r=h.toGeometry(y(t,m),i);return"extent"===e.type&&1===r?.rings.length?r.extent:r})}const u=(0,o.z)(()=>r.e(4144).then(r.bind(r,4144))),p=(0,o.z)(()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(r.bind(r,78125)));function c(e,t,r){const i=(0,a.Vp)(r);if(null==i)return e;const[n,s]=i.valid,o=2*s;let l=0,u=0;t>s?l=Math.ceil(Math.abs(t-s)/o):t<n&&(l=-Math.ceil(Math.abs(t-n)/o)),e>s?u=Math.ceil(Math.abs(e-s)/o):e<n&&(u=-Math.ceil(Math.abs(e-n)/o));let p=e+(l-u)*o;const c=p-t;return c>s?p-=o:c<n&&(p+=o),p}function y(e){const t=(0,a.Vp)(e);if(null==t)return null;const[r,n]=t.valid;return new i.hr(r,n)}const h=y(s.A.WGS84);y(s.A.WebMercator),r.d(t,["Y_",0,h])},80754(e,t,r){r.d(t,{kS:()=>u,kd:()=>l});var i=r(82799),n=r(16930),s=r(60408),o=r(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator}),minus180Line:new i.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.A({paths:[[[180,-180],[180,180]]],spatialReference:n.A.WGS84}),minus180Line:new i.A({paths:[[[-180,-180],[-180,180]]],spatialReference:n.A.WGS84})}};function l(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){if((0,o.Ed)(e))for(const r of function(e){return(0,s.Bi)(e)?e.curveRings:e.curvePaths}(e))for(const e of r){if((0,o.aO)(e)){const[r,i]=e.c;r[0]+=t,i[0]+=t;continue}if((0,o.FG)(e)){const[r,i]=e.a;r[0]+=t,i[0]+=t;continue}if((0,o.n1)(e)){const[r,i,n]=e.b;r[0]+=t,i[0]+=t,n[0]+=t;continue}e[0]+=t}for(const r of function(e){return(0,s.Bi)(e)?e.rings:e.paths}(e))for(const e of r)e[0]+=t;return e}r.d(t,["j7",0,a])},55156(e,t,r){r.d(t,{I:()=>n});const i=Symbol("idFieldsProviderSymbol");function n(e){return(t=e)&&i in t?e[i]:void 0;var t}r.d(t,["e",0,i])},7656(e,t,r){r.r(t),r.d(t,{default:()=>U});var i=r(32198),n=r(11254),s=r(7762),o=r(49186),a=r(81583),l=r(34727),u=r(25728),p=r(17676),c=r(91429),y=r(56507),h=r(35666),m=r(5443),d=r(83960),f=r(21325),g=r(4146),v=r(52136),b=r(98534),x=r(18768),M=r(63074),w=r(69208),S=r(34287),C=r(8303),I=r(54310),A=r(25036),T=r(91921),Z=r(82935),O=r(10873),_=r(69622),N=r(39516);function P(e,t){return"floorInfo"in t&&t.floorInfo?.floorField?function(e,t){if(!e?.length)return null;const r=e.filter(e=>""!==e).map(e=>`'${e}'`);return r.push("''"),`${t} IN (${r.join(",")}) OR ${t} IS NULL`}(e,t.floorInfo.floorField):null}var L=r(63389);const R={visible:"visibleSublayers",definitionExpression:"layerDefs",labelingInfo:"hasDynamicLayers",labelsVisible:"hasDynamicLayers",opacity:"hasDynamicLayers",minScale:"visibleSublayers",maxScale:"visibleSublayers",renderer:"hasDynamicLayers",source:"hasDynamicLayers"};let j=class extends _.A{constructor(e){super(e),this.floors=null,this.scale=0}destroy(){this.layer=null}get dynamicLayers(){if(!this.hasDynamicLayers)return null;const e=this.visibleSublayers.map(e=>{const t=P(this.floors,e);return e.toExportImageJSON(t)});return e.length?JSON.stringify(e):null}get hasDynamicLayers(){return this.layer&&(0,L.Sk)(this.visibleSublayers,this.layer.serviceSublayers,this.layer.gdbVersion)}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.allSublayers.on("change",()=>this.notifyChange("visibleSublayers")),e.on("sublayer-update",e=>this.notifyChange(R[e.propertyName]))],"layer"))}get layers(){const e=this.visibleSublayers;return e?e.length?"show:"+e.map(e=>e.id).join(","):"show:-1":null}get layerDefs(){const e=!!this.floors?.length,t=this.visibleSublayers.filter(t=>null!=t.definitionExpression||e&&null!=t.floorInfo);return t.length?JSON.stringify(t.reduce((e,t)=>{const r=P(this.floors,t),i=(0,N.mA)(r,t.definitionExpression);return null!=i&&(e[t.id]=i),e},{})):null}get version(){this.commitProperty("layers"),this.commitProperty("layerDefs"),this.commitProperty("dynamicLayers");const e=this.layer;return e&&(e.commitProperty("dpi"),e.commitProperty("imageFormat"),e.commitProperty("imageTransparency"),e.commitProperty("gdbVersion")),(this._get("version")||0)+1}get visibleSublayers(){const e=[];if(!this.layer)return e;const t=this.layer.sublayers,r=this.scale,i=t=>{t.visible&&(0===r||(0,d.zx)(r,t.minScale,t.maxScale))&&(t.sublayers?t.sublayers.forEach(i):e.unshift(t))};t?.forEach(i);const n=this._get("visibleSublayers");return!n||n.length!==e.length||n.some((t,r)=>e[r]!==t)?e:n}toJSON(){const e=this.layer;let t={dpi:e.dpi,format:e.imageFormat,transparent:e.imageTransparency,gdbVersion:e.gdbVersion||null};return this.hasDynamicLayers&&this.dynamicLayers?t.dynamicLayers=this.dynamicLayers:t={...t,layers:this.layers,layerDefs:this.layerDefs},t}};(0,i.Cg)([(0,c.MZ)({readOnly:!0})],j.prototype,"dynamicLayers",null),(0,i.Cg)([(0,c.MZ)()],j.prototype,"floors",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],j.prototype,"hasDynamicLayers",null),(0,i.Cg)([(0,c.MZ)()],j.prototype,"layer",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],j.prototype,"layers",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],j.prototype,"layerDefs",null),(0,i.Cg)([(0,c.MZ)({type:Number})],j.prototype,"scale",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],j.prototype,"version",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],j.prototype,"visibleSublayers",null),j=(0,i.Cg)([(0,c.$K)("esri.layers.support.ExportImageParameters")],j);var F=r(33446),G=r(15775),J=r(91908),E=r(88625),z=r(79677),k=r(56400),D=r(36005),q=r(43937);let V=class extends((0,M.dM)((0,Z.e)((0,A.j)((0,T.I)((0,b.V)((0,x.b)((0,S.q)((0,C.A)((0,u.M)((0,I.J)((0,v.p)((0,w.d)(g.A))))))))))))){constructor(...e){super(...e),this._exportImageParameters=new j({layer:this}),this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.dpi=96,this.elevationInfo=new E.A({mode:"on-the-ground"}),this.gdbVersion=null,this.imageFormat="png24",this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.isReference=null,this.labelsVisible=!1,this.operationalLayerType="ArcGISMapServiceLayer",this.preferredTimeZone=null,this.sourceJSON=null,this.sublayers=null,this.type="map-image",this.url=null,this._debouncedSaveOperations=(0,p.sg)(async(e,t,i)=>{const{save:n,saveAs:s}=await r.e(390).then(r.bind(r,10390));switch(e){case 0:return n(this,t);case 1:return s(this,i,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(p.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}destroy(){this._exportImageParameters.destroy()}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.includes("PNG32")?"png32":"png24"}get loaded(){return super.loaded}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}writeSublayers(e,t,r,i){if(!this.loaded||!e)return;const n=e.slice().reverse().flatten(({sublayers:e})=>e&&e.toArray().reverse()).toArray();let s=!1;const o=(0,h.aB)(i.origin);let a;if(this.capabilities?.operations.supportsExportMap&&this.capabilities?.exportMap?.supportsDynamicLayers)if(3===o){const e=this.createSublayersForOrigin("service").sublayers;s=(0,L.Zx)(n,e,2)}else if(o>3){const e=this.createSublayersForOrigin("portal-item");s=(0,L.Zx)(n,e.sublayers,(0,h.aB)(e.origin)),a=e.originWithPartialOverrides}const l=[],u={writeSublayerStructure:s,...i,minimumWritableOrigin:a};let p=s||this.hasVisibleLayersForOrigin(o);n.forEach(e=>{const t=e.write({},u);l.push(t),p=p||"user"===e.originOf("visible")}),l.some(e=>Object.keys(e).length>1)&&(t.layers=l),p&&(t.visibleLayers=n.filter(e=>e.visible).map(e=>e.id))}createExportImageParameters(e,t,r,i){const n=i?.pixelRatio??1;e&&this.version>=10&&(e=e.clone().shiftCentralMeridian()),this._exportImageParameters.floors=i?.floors??null,this._exportImageParameters.scale=i?.scale??(0,d.X_)({extent:e,width:t})*n;const s=this._exportImageParameters.toJSON(),o=!i?.rotation||this.version<10.3?{}:{rotation:-i.rotation},a=e?.spatialReference,u=(0,f.YX)(a);let p=this._exportImageParameters.scale/(0,d.X_)({extent:e,width:t});p=(0,l.Sp)(p,n)?n:p,s.dpi*=p;const c={};if(i?.timeExtent){const{start:e,end:t}=i.timeExtent.toJSON();c.time=e&&t&&e===t?""+e:`${e??"null"},${t??"null"}`}else this.timeInfo&&!this.timeInfo.hasLiveData&&(c.time="null,null");return{bbox:e?e.xmin+","+e.ymin+","+e.xmax+","+e.ymax:void 0,bboxSR:u,imageSR:u,size:t+","+r,mapScale:this._exportImageParameters.scale,...s,...o,...c}}async fetchImage(e,t,r,i){const{data:n}=await this._fetchImage("image",e,t,r,i);return n}async fetchImageBitmap(e,t,r,i){const{data:n,url:s}=await this._fetchImage("blob",e,t,r,i);return(0,F.mn)(n,s,i)}async fetchRecomputedExtents(e={}){const t={...e,query:{returnUpdates:!0,f:"json",...this.customParameters,token:this.apiKey}},{data:r}=await(0,n.A)(this.url,t),{extent:i,fullExtent:s,timeExtent:o}=r,a=i||s;return{fullExtent:a&&m.A.fromJSON(a),timeExtent:o&&z.A.fromJSON({start:o[0],end:o[1]})}}loadAll(){return(0,a.g)(this,e=>{e(this.allSublayers),e(this.subtables)})}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return(0,J.D)(this,e)}async _fetchImage(e,t,r,i,s){const a={responseType:e,signal:s?.signal??null,query:{...this.parsedUrl.query,...this.createExportImageParameters(t,r,i,s),f:"image",...this.refreshParameters,...this.customParameters,token:this.apiKey}},l=this.parsedUrl.path+"/export";if(null!=a.query?.dynamicLayers&&!this.capabilities?.exportMap?.supportsDynamicLayers)throw new o.A("mapimagelayer:dynamiclayer-not-supported",`service ${this.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`,{query:a.query});try{const{data:e}=await(0,n.A)(l,a);return{data:e,url:l}}catch(e){if((0,p.zf)(e))throw e;throw new o.A("mapimagelayer:image-fetch-error",`Unable to load image: ${l}`,{error:e})}}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const{data:t,ssl:r}=await(0,n.A)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},signal:e});r&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})}hasVisibleLayersForOrigin(e){return!(null==e||!this.sublayersSourceJSON[e]?.visibleLayers)}};(0,i.Cg)([(0,c.MZ)((0,k.P6)("dateFieldsTimeReference"))],V.prototype,"dateFieldsTimeZone",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean})],V.prototype,"datesInUnknownTimezone",void 0),(0,i.Cg)([(0,c.MZ)()],V.prototype,"dpi",void 0),(0,i.Cg)([(0,c.MZ)()],V.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,c.MZ)()],V.prototype,"gdbVersion",void 0),(0,i.Cg)([(0,c.MZ)()],V.prototype,"imageFormat",void 0),(0,i.Cg)([(0,D.w)("imageFormat",["supportedImageFormatTypes"])],V.prototype,"readImageFormat",null),(0,i.Cg)([(0,c.MZ)({json:{origins:{service:{read:{source:"maxImageHeight"}}}}})],V.prototype,"imageMaxHeight",void 0),(0,i.Cg)([(0,c.MZ)({json:{origins:{service:{read:{source:"maxImageWidth"}}}}})],V.prototype,"imageMaxWidth",void 0),(0,i.Cg)([(0,c.MZ)()],V.prototype,"imageTransparency",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],V.prototype,"isReference",void 0),(0,i.Cg)([(0,c.MZ)({json:{read:!1,write:!1}})],V.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,c.MZ)({type:["ArcGISMapServiceLayer"]})],V.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,c.MZ)({json:{read:!1,write:!1}})],V.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,c.MZ)((0,k.P6)("preferredTimeReference"))],V.prototype,"preferredTimeZone",void 0),(0,i.Cg)([(0,c.MZ)()],V.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,c.MZ)({type:s.A.ofType(G.A),json:{write:{ignoreOrigin:!0}}})],V.prototype,"sublayers",void 0),(0,i.Cg)([(0,q.K)("sublayers",{layers:{type:[G.A]},visibleLayers:{type:[y.jz]}})],V.prototype,"writeSublayers",null),(0,i.Cg)([(0,c.MZ)({type:["show","hide","hide-children"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],V.prototype,"listMode",void 0),(0,i.Cg)([(0,c.MZ)({json:{read:!1},readOnly:!0,value:"map-image"})],V.prototype,"type",void 0),(0,i.Cg)([(0,c.MZ)(O.OZ)],V.prototype,"url",void 0),V=(0,i.Cg)([(0,c.$K)("esri.layers.MapImageLayer")],V);const U=V},82935(e,t,r){var i=r(32198),n=r(91429),s=r(89317),o=r(30524),a=r(96184),l=r(73133),u=r(79677),p=r(10184),c=r(36005);const y={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:s.K}}};r.d(t,["B",0,y,"e",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,n=l.j.fromJSON(r.timeOffsetUnits);return i&&n?new p.A({value:i,unit:n}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,o.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,n.MZ)({type:u.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,n.MZ)({type:p.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,c.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,n.MZ)({value:null,type:a.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,n.MZ)(y)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},96184(e,t,r){r.d(t,{A:()=>h});var i=r(32198),n=r(69540),s=r(25482),o=r(91429),a=r(79677),l=r(10184),u=r(56400),p=r(36005),c=r(43937);function y(e,t){return l.A.fromJSON({value:e,unit:t})}let h=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?a.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?y(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?y(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,i.Cg)([(0,o.MZ)({type:a.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,i.Cg)([(0,p.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,i.Cg)([(0,c.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,i.Cg)([(0,o.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,i.Cg)([(0,p.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,i.Cg)([(0,c.K)("interval")],h.prototype,"writeInterval",null),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,i.Cg)([(0,o.MZ)((0,u.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),(0,i.Cg)([(0,o.MZ)({type:[Date],json:{read:!1}})],h.prototype,"stops",void 0),h=(0,i.Cg)([(0,o.$K)("esri.layers.support.TimeInfo")],h)},91908(e,t,r){r.d(t,{D:()=>s});var i=r(60694);const n=[];function s(e,t){if((0,i.Wo)(e.url??""))return!0;const{wkid:r}=t;for(const t of n){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(r))return!1}return!0}n.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),n.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),n.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),n.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),n.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},98205(e,t,r){r.d(t,{KZ:()=>a,eh:()=>o,gf:()=>s,of:()=>n});const i=Symbol("SizeVariableInstance");function n(e){return null!=e&&"object"==typeof e&&i in e}function s(e){return null!=e&&!isNaN(e)&&isFinite(e)}function o(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function a(e,t){const r=t||o(e),i=e.valueUnit||"unknown";return"unknown"===r?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===i?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}r.d(t,["uY",0,i])},22671(e,t,r){r.d(t,{A:()=>v});var i,n=r(32198),s=r(52106),o=r(66552),a=r(25482),l=r(4718),u=r(91429),p=r(16930),c=r(60408),y=r(65864),h=r(50498),m=r(20437),d=r(36005),f=r(43937);const g=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends a.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,s.A)}writeGeometryType(e,t,r,i){if(e)return void g.write(e,t,r,i);const{features:n}=this;if(n)for(const e of n)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,y.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=p.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,l.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,n]}=e,s=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((n-e)/r));for(let e=0,t=s.length;e<t;e++)o?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,n],scale:[s,o]}=r;let a=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,e=>e*s+i,e=>n-e*o,a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const i=p.A.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){const s=e[t],o=r.fromJSON(s),a=s.geometry?.spatialReference;null==o.geometry||a||(o.geometry.spatialReference=i);const l=s.aggregateGeometries,u=o.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],r=l[e],n=r?.spatialReference;null==t||n||(t.spatialReference=i)}n.push(o)}return n}_quantizePoints(e,t,r){let i,n;const s=[];for(let o=0,a=e.length;o<a;o++){const a=e[o];if(o>0){const e=t(a[0]),o=r(a[1]);e===i&&o===n||(s.push([e-i,o-n]),i=e,n=o)}else i=t(a[0]),n=r(a[1]),s.push([i,n])}return s.length>0?s:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,c.Bi)(e)?e.rings:e.paths,n=[];for(let e=0,s=i.length;e<s;e++){const s=i[e],o=this._quantizePoints(s,t,r);o&&n.push(o)}return n.length>0?((0,c.Bi)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,n){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const s=(0,c.Bi)(e)?e.rings:e.paths;let o,a;for(let e=0,i=s.length;e<i;e++){const i=s[e];for(let e=0,n=i.length;e<n;e++){const n=i[e];e>0?(o+=n[0],a+=n[1]):(o=n[0],a=n[1]),n[0]=t(o),n[1]=r(a)}}if(i&&n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=n(r[3])}}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),n&&null!=e.mmax&&null!=e.mmin&&(e.mmax=n(e.mmax),e.mmin=n(e.mmin))}:"multipoint"===e?e=>{const s=e.points;let o,a;for(let e=0,i=s.length;e<i;e++){const i=s[e];e>0?(o+=i[0],a+=i[1]):(o=i[0],a=i[1]),i[0]=t(o),i[1]=r(a)}if(i&&n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2]),t[3]=n(t[3])}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2])}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=n(t[2])}}:null}};(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,n.Cg)([(0,u.MZ)({type:[s.A],json:{write:!0}})],v.prototype,"features",void 0),(0,n.Cg)([(0,d.w)("features")],v.prototype,"readFeatures",null),(0,n.Cg)([(0,u.MZ)({type:[m.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,n.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],v.prototype,"geometryType",void 0),(0,n.Cg)([(0,f.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,n.Cg)([(0,u.MZ)({types:h.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,n.Cg)([(0,d.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,n.Cg)([(0,u.MZ)({type:p.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,n.Cg)([(0,f.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,n.Cg)([(0,u.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,n.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},2272(e,t,r){r.d(t,{Dl:()=>u,gf:()=>c,jV:()=>l,lF:()=>p});var i=r(92602),n=r(70333),s=r(4718),o=r(84952),a=r(926);function l(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 p(e,t,r){const i={};for(const n in e){if("declaredClass"===n)continue;const s=e[n];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))i[n]=s.map(e=>p(e));else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(r?.[n]);i[n]=t?e:JSON.stringify(e)}else i[n]=t?s:JSON.stringify(s);else i[n]=s}return i}async function c(e,t,s){const o=function(e,t){return e?t&&(0,a.Qc)(e)?t:(0,a.getApiKey)(e)??n.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!n.id&&i.A.request.useIdentity&&await Promise.all([r.e(5620),r.e(4372),r.e(8837)]).then(r.bind(r,50148));const l=await n.id.getCredential(e,s);return l?.token}}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see 87094044458b0ea5cb0f.js.LICENSE.txt */
2
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4372],{57805(t,e,s){s.d(e,{b:()=>f}),Object(function(){const t=new Error("Cannot find module '../cdn/main.css'");throw t.code="MODULE_NOT_FOUND",t}());var i=s(42054),n=s(58933);const r="calcite-mode-auto",o="calcite-mode-dark",h={autoMode:r,darkMode:o,lightMode:"calcite-mode-light",rtl:"calcite--rtl",calciteAnimate:"calcite-animate",calciteAnimateInUp:"calcite-animate__in-up",calciteAnimateInDown:"calcite-animate__in-down",calciteAnimateInRight:"calcite-animate__in-right",calciteAnimateInLeft:"calcite-animate__in-left",screenReaderText:"screen-reader-text"};function a(){const{classList:t}=document.body,e=window.matchMedia("(prefers-color-scheme: dark)").matches,s=()=>t.contains(o)||t.contains(r)&&e?"dark":"light",i=t=>document.body.dispatchEvent(new CustomEvent("calciteModeChange",{bubbles:!0,detail:{mode:t}})),n=t=>{h!==t&&i(t),h=t};let h=s();i(h),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t=>n(t.matches?"dark":"light")),new MutationObserver(()=>n(s())).observe(document.body,{attributes:!0,attributeFilter:["class"]})}const c=new Set,l={trace:0,debug:1,info:2,warn:4,error:8,off:10};function d(t,...e){(function(t){return"off"!==t&&l[t]>=l[f().logLevel]})(t)&&console[t]("%ccalcite","background: #007AC2; color: #fff; border-radius: 4px; padding: 2px 4px;",...e)}let u;const p={debug:(t,...e)=>d("debug",t,...e),info:(t,...e)=>d("info",t,...e),warn:(t,...e)=>d("warn",t,...e),error:(t,...e)=>d("error",t,...e),trace:(t,...e)=>d("trace",t,...e),deprecated:function(t,{component:e,name:s,suggested:i,removalVersion:n}){const r=`${t}:${"component"===t?"":e}${s}`,o="future"===n?"a future version":`v${n}`;if(c.has(r))return;c.add(r);let h="";h="component"===t?`This component is deprecated and will be removed in ${o}.`:`The [${s}] ${t} is deprecated and will be removed in ${o}.`,i&&(u=new Intl.ListFormat("en",{style:"long",type:"disjunction"}),h+=` Use ${u.format([i].flat().map(t=>`"${t}"`))} instead.`),d("warn",`[${e.el.tagName.toLocaleLowerCase().slice(8)}] - ${h}`)}};let $;const _={focusTrapStack:[],logLevel:"info"};function f(){return $||($={..._,...globalThis.calciteConfig??{}}),$}const A="5.2.0-next.53";n.S$||("interactive"===document.readyState?a():document.addEventListener("DOMContentLoaded",a,{once:!0})),queueMicrotask(function(){const t=f();t&&t.version||(p.info(`Using Calcite Components ${A} [Date: 2026-08-20, Revision: 290ed5936]`),Object.defineProperty(t,"version",{value:A,writable:!1}),globalThis.calciteConfig=t)});const m=(0,i.le)({defaultAssetPath:"https://cdn.jsdelivr.net/npm/@esri/calcite-components@5.2.0-next.53/dist/cdn/",hydratedAttribute:"calcite-hydrated"}),{customElement:g,getAssetPath:v,setAssetPath:y}=m;s.d(e,["C",0,h,"D",0,{filter:250,nextTick:0,resize:150,reposition:100},"c",0,g,"g",0,v,"l",0,p,"s",0,y])},84210(t,e,s){s.d(e,{qu:()=>n});var i=s(57805);let n=!1;s.d(e,["Qu",0,t=>{n=!0,(0,i.s)(t)}])},16823(t,e,s){s(39043)},39043(t,e,s){s.d(e,{mN:()=>S,AH:()=>a,Ec:()=>b});const i=globalThis,n=i.ShadowRoot&&(void 0===i.ShadyCSS||i.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),o=new WeakMap;class h{constructor(t,e,s){if(this._$cssResult$=!0,s!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(n&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=o.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&o.set(e,t))}return t}toString(){return this.cssText}}const a=(t,...e)=>{const s=1===t.length?t[0]:e.reduce((e,s,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[i+1],t[0]);return new h(s,t,r)},c=(t,e)=>{if(n)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const s of e){const e=document.createElement("style"),n=i.litNonce;void 0!==n&&e.setAttribute("nonce",n),e.textContent=s.cssText,t.appendChild(e)}},l=n?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return(t=>new h("string"==typeof t?t:t+"",void 0,r))(e)})(t):t,{is:d,defineProperty:u,getOwnPropertyDescriptor:p,getOwnPropertyNames:$,getOwnPropertySymbols:_,getPrototypeOf:f}=Object,A=globalThis,m=A.trustedTypes,g=m?m.emptyScript:"",v=A.reactiveElementPolyfillSupport,y=(t,e)=>t,E={toAttribute(t,e){switch(e){case Boolean:t=t?g:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},b=(t,e)=>!d(t,e),w={attribute:!0,type:String,converter:E,reflect:!1,useDefault:!1,hasChanged:b};Symbol.metadata??=Symbol("metadata"),A.litPropertyMetadata??=new WeakMap;class S extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=w){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);void 0!==i&&u(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:n}=p(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const r=i?.call(this);n?.call(this,e),this.requestUpdate(t,r,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??w}static _$Ei(){if(this.hasOwnProperty(y("elementProperties")))return;const t=f(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(y("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(y("properties"))){const t=this.properties,e=[...$(t),..._(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(l(t))}else void 0!==t&&e.push(l(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return c(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(void 0!==i&&!0===s.reflect){const n=(void 0!==s.converter?.toAttribute?s.converter:E).toAttribute(e,s.type);this._$Em=t,null==n?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=s.getPropertyOptions(i),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:E;this._$Em=i;const r=n.fromAttribute(e,t.type);this[i]=r??this._$Ej?.get(i)??r,this._$Em=null}}requestUpdate(t,e,s,i=!1,n){if(void 0!==t){const r=this.constructor;if(!1===i&&(n=this[t]),s??=r.getPropertyOptions(t),!((s.hasChanged??b)(n,e)||s.useDefault&&s.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(r._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:n},r){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??e??this[t]),!0!==n||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===i&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,i=this[e];!0!==t||this._$AL.has(e)||void 0===i||this.C(e,void 0,s,i)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[y("elementProperties")]=new Map,S[y("finalized")]=new Map,v?.({ReactiveElement:S}),(A.reactiveElementVersions??=[]).push("2.1.2")},58887(t,e,s){var i=s(7261);const{I:n}=i.ge,r={};s.d(e,["Rt",0,t=>void 0===t.strings,"mY",0,(t,e=r)=>t._$AH=e])},66567(t,e,s){s.d(e,{WL:()=>i});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}s.d(e,["OA",0,{ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},"u$",0,t=>(...e)=>({_$litDirective$:t,values:e})])},7261(t,e,s){const i=globalThis,n=t=>t,r=i.trustedTypes,o=r?r.createPolicy("lit-html",{createHTML:t=>t}):void 0,h="$lit$",a=`lit$${Math.random().toFixed(9).slice(2)}$`,c="?"+a,l=`<${c}>`,d=document,u=()=>d.createComment(""),p=t=>null===t||"object"!=typeof t&&"function"!=typeof t,$=Array.isArray,_=t=>$(t)||"function"==typeof t?.[Symbol.iterator],f="[ \t\n\f\r]",A=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,m=/-->/g,g=/>/g,v=RegExp(`>|${f}(?:([^\\s"'>=/]+)(${f}*=${f}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),y=/'/g,E=/"/g,b=/^(?:script|style|textarea|title)$/i,w=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),S=w(1),C=w(2),T=w(3),O=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),U=new WeakMap,x=d.createTreeWalker(d,129);function M(t,e){if(!$(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==o?o.createHTML(e):e}const R=(t,e)=>{const s=t.length-1,i=[];let n,r=2===e?"<svg>":3===e?"<math>":"",o=A;for(let e=0;e<s;e++){const s=t[e];let c,d,u=-1,p=0;for(;p<s.length&&(o.lastIndex=p,d=o.exec(s),null!==d);)p=o.lastIndex,o===A?"!--"===d[1]?o=m:void 0!==d[1]?o=g:void 0!==d[2]?(b.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=v):void 0!==d[3]&&(o=v):o===v?">"===d[0]?(o=n??A,u=-1):void 0===d[1]?u=-2:(u=o.lastIndex-d[2].length,c=d[1],o=void 0===d[3]?v:'"'===d[3]?E:y):o===E||o===y?o=v:o===m||o===g?o=A:(o=v,n=void 0);const $=o===v&&t[e+1].startsWith("/>")?" ":"";r+=o===A?s+l:u>=0?(i.push(c),s.slice(0,u)+h+s.slice(u)+a+$):s+a+(-2===u?e:$)}return[M(t,r+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class N{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,o=0;const l=t.length-1,d=this.parts,[p,$]=R(t,e);if(this.el=N.createElement(p,s),x.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=x.nextNode())&&d.length<l;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(h)){const e=$[o++],s=i.getAttribute(t).split(a),r=/([.?@])?(.*)/.exec(e);d.push({type:1,index:n,name:r[2],strings:s,ctor:"."===r[1]?D:"?"===r[1]?j:"@"===r[1]?B:I}),i.removeAttribute(t)}else t.startsWith(a)&&(d.push({type:6,index:n}),i.removeAttribute(t));if(b.test(i.tagName)){const t=i.textContent.split(a),e=t.length-1;if(e>0){i.textContent=r?r.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],u()),x.nextNode(),d.push({type:2,index:++n});i.append(t[e],u())}}}else if(8===i.nodeType)if(i.data===c)d.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(a,t+1));)d.push({type:7,index:n}),t+=a.length-1}n++}}static createElement(t,e){const s=d.createElement("template");return s.innerHTML=t,s}}function H(t,e,s=t,i){if(e===O)return e;let n=void 0!==i?s._$Co?.[i]:s._$Cl;const r=p(e)?void 0:e._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),void 0===r?n=void 0:(n=new r(t),n._$AT(t,s,i)),void 0!==i?(s._$Co??=[])[i]=n:s._$Cl=n),void 0!==n&&(e=H(t,n._$AS(t,e.values),n,i)),e}class k{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??d).importNode(e,!0);x.currentNode=i;let n=x.nextNode(),r=0,o=0,h=s[0];for(;void 0!==h;){if(r===h.index){let e;2===h.type?e=new L(n,n.nextSibling,this,t):1===h.type?e=new h.ctor(n,h.name,h.strings,this,t):6===h.type&&(e=new W(n,this,t)),this._$AV.push(e),h=s[++o]}r!==h?.index&&(n=x.nextNode(),r++)}return x.currentNode=d,i}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class L{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=P,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=H(this,t,e),p(t)?t===P||null==t||""===t?(this._$AH!==P&&this._$AR(),this._$AH=P):t!==this._$AH&&t!==O&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):_(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==P&&p(this._$AH)?this._$AA.nextSibling.data=t:this.T(d.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N.createElement(M(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new k(i,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=U.get(t.strings);return void 0===e&&U.set(t.strings,e=new N(t)),e}k(t){$(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const n of t)i===e.length?e.push(s=new L(this.O(u()),this.O(u()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=n(t).nextSibling;n(t).remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class I{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,n){this.type=1,this._$AH=P,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=P}_$AI(t,e=this,s,i){const n=this.strings;let r=!1;if(void 0===n)t=H(this,t,e,0),r=!p(t)||t!==this._$AH&&t!==O,r&&(this._$AH=t);else{const i=t;let o,h;for(t=n[0],o=0;o<n.length-1;o++)h=H(this,i[s+o],e,o),h===O&&(h=this._$AH[o]),r||=!p(h)||h!==this._$AH[o],h===P?t=P:t!==P&&(t+=(h??"")+n[o+1]),this._$AH[o]=h}r&&!i&&this.j(t)}j(t){t===P?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class D extends I{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===P?void 0:t}}class j extends I{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==P)}}class B extends I{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){if((t=H(this,t,e,0)??P)===O)return;const s=this._$AH,i=t===P&&s!==P||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==P&&(s===P||i);i&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class W{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){H(this,t)}}const z={M:h,P:a,A:c,C:1,L:R,R:k,D:_,V:H,I:L,H:I,N:j,U:B,B:D,F:W},G=i.litHtmlPolyfillSupport;G?.(N,L),(i.litHtmlVersions??=[]).push("3.3.2"),s.d(e,["JW",0,C,"XX",0,(t,e,s)=>{const i=s?.renderBefore??e;let n=i._$litPart$;if(void 0===n){const t=s?.renderBefore??null;i._$litPart$=n=new L(e.insertBefore(u(),t),t,void 0,s??{})}return n._$AI(t),n},"c0",0,O,"ej",0,T,"ge",0,z,"qy",0,S,"s6",0,P])},66047(t,e,s){s(16823)},25856(t,e,s){s(16823)},10845(t,e,s){s.d(e,{H:()=>r});var i=s(7261),n=s(66567);const r=(0,n.u$)(class extends n.WL{constructor(t){if(super(t),t.type!==n.OA.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(t=>""!==t)));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const s=t.element.classList;for(const t of this.st)t in e||(s.remove(t),this.st.delete(t));for(const t in e){const i=!!e[t];i===this.st.has(t)||this.nt?.has(t)||(i?(s.add(t),this.st.add(t)):(s.remove(t),this.st.delete(t)))}return i.c0}})},98171(t,e,s){s.d(e,{V:()=>o});var i=s(7261),n=s(66567),r=s(58887);const o=(0,n.u$)(class extends n.WL{constructor(t){if(super(t),t.type!==n.OA.PROPERTY&&t.type!==n.OA.ATTRIBUTE&&t.type!==n.OA.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!(0,r.Rt)(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===i.c0||e===i.s6)return e;const s=t.element,o=t.name;if(t.type===n.OA.PROPERTY){if(e===s[o])return i.c0}else if(t.type===n.OA.BOOLEAN_ATTRIBUTE){if(!!e===s.hasAttribute(o))return i.c0}else if(t.type===n.OA.ATTRIBUTE&&s.getAttribute(o)===e+"")return i.c0;return(0,r.mY)(t),e}})},83435(t,e,s){s.d(e,{_:()=>p,K:()=>f});var i=s(7261),n=s(58887),r=s(66567);const o=(t,e)=>{const s=t._$AN;if(void 0===s)return!1;for(const t of s)t._$AO?.(e,!1),o(t,e);return!0},h=t=>{let e,s;do{if(void 0===(e=t._$AM))break;s=e._$AN,s.delete(t),t=e}while(0===s?.size)},a=t=>{for(let e;e=t._$AM;t=e){let s=e._$AN;if(void 0===s)e._$AN=s=new Set;else if(s.has(t))break;s.add(t),d(e)}};function c(t){void 0!==this._$AN?(h(this),this._$AM=t,a(this)):this._$AM=t}function l(t,e=!1,s=0){const i=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size)if(e)if(Array.isArray(i))for(let t=s;t<i.length;t++)o(i[t],!1),h(i[t]);else null!=i&&(o(i,!1),h(i));else o(this,t)}const d=t=>{t.type==r.OA.CHILD&&(t._$AP??=l,t._$AQ??=c)};class u extends r.WL{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),a(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(o(this,t),h(this))}setValue(t){if((0,n.Rt)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const p=()=>new $;class ${}const _=new WeakMap,f=(0,r.u$)(class extends u{render(t){return i.s6}update(t,[e]){const s=e!==this.G;return s&&void 0!==this.G&&this.rt(void 0),(s||this.lt!==this.ct)&&(this.G=e,this.ht=t.options?.host,this.rt(this.ct=t.element)),i.s6}rt(t){if(this.isConnected||(t=void 0),"function"==typeof this.G){const e=this.ht??globalThis;let s=_.get(e);void 0===s&&(s=new WeakMap,_.set(e,s)),void 0!==s.get(this.G)&&this.G.call(this.ht,void 0),s.set(this.G,t),void 0!==t&&this.G.call(this.ht,t)}else this.G.value=t}get lt(){return"function"==typeof this.G?_.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}})},84(t,e,s){s.d(e,{W:()=>h});var i=s(7261),n=s(66567);const r="important",o=" !"+r,h=(0,n.u$)(class extends n.WL{constructor(t){if(super(t),t.type!==n.OA.ATTRIBUTE||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,s)=>{const i=t[s];return null==i?e:e+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(t,[e]){const{style:s}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes("-")?s.removeProperty(t):s[t]=null);for(const t in e){const i=e[t];if(null!=i){this.ft.add(t);const e="string"==typeof i&&i.endsWith(o);t.includes("-")||e?s.setProperty(t,e?i.slice(0,-11):i,e?r:""):s[t]=i}}return i.c0}})},58933(t,e,s){s.d(e,{WF:()=>o,AH:()=>i.AH,qy:()=>n.qy,S$:()=>!1,Ec:()=>i.Ec,s6:()=>n.s6,JW:()=>n.JW});var i=s(39043),n=s(7261);const r=globalThis;class o extends i.mN{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=(0,n.XX)(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return n.c0}}o._$litElement$=!0,o.finalized=!0,r.litElementHydrateSupport?.({LitElement:o});const h=r.litElementPolyfillSupport;h?.({LitElement:o}),(r.litElementVersions??=[]).push("4.2.2")}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2889],{99959(e,t,r){r.d(t,{A:()=>o});var n=r(32198),i=r(91429);let o=class{};o=(0,n.Cg)([(0,i.$K)("esri.graphic.GraphicOrigin")],o)},89808(e,t,r){const n=Symbol("getSliceableSymbol");r.d(t,["Q",0,n])},15426(e,t,r){r.d(t,{Xl:()=>j,ct:()=>Z,pc:()=>Q,C$:()=>X,PD:()=>ee,VZ:()=>V,mm:()=>R,VA:()=>U,WP:()=>O,iX:()=>I,Nv:()=>H,xd:()=>ne,Vq:()=>$,GA:()=>re,rQ:()=>_,jp:()=>E,tG:()=>te,lV:()=>q,B5:()=>B,Ye:()=>T,sg:()=>L,hM:()=>D,S2:()=>N,jD:()=>k,Zm:()=>G,$4:()=>z,Pt:()=>ie,uU:()=>K,bt:()=>x,rn:()=>P,ZJ:()=>oe});var n=r(70333),i=(r(5757),r(60999)),o=r(49186),s=r(66552),a=r(53966),u=r(39516),l=r(13069),c=r(90360),p=r(60694),d=r(39357),y=r(53177),h=r(97552);async function m(e,t,r){t=t.clone(),e.capabilities.query.supportsMaxRecordCountFactor&&(t.maxRecordCountFactor=f(e));const n=function(e){return f(e)*function(e){return e.capabilities.query.maxRecordCount||2e3}(e)}(e),i=e.capabilities.query.supportsPagination;t.start=0,t.num=n;let o=null;for(;;){const s=await e.source.queryFeaturesJSON(t,r);if(null==o?o=s:o.features=o.features.concat(s.features),o.exceededTransferLimit=s.exceededTransferLimit,!i||!s.exceededTransferLimit)break;t.start+=n}return o}function f(e){return e.capabilities.query.supportsMaxRecordCountFactor?h.A.MAX_MAX_RECORD_COUNT_FACTOR:1}var w=r(30524),b=(r(32730),r(77548)),g=r(96576),v=r(93618),A=(r(98205),r(54546)),C=r(41366),M=r(26591),F=r(33910);const I=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"});async function j(e,t,r,n,i){const s=await W(e);if(await S(e,t,n),!s.addAttachment)throw new o.A(n,"Layer source does not support addAttachment capability");return s.addAttachment(t,r,i)}function S(e,t,r){const{attributes:n}=t,{objectIdField:i}=e;return e.capabilities?.data?.supportsAttachment?t?n?i&&null!=n[i]?Promise.resolve():Promise.reject(new o.A(r,`feature is missing the identifying attribute ${i}`)):Promise.reject(new o.A(r,"'attributes' are required on a feature to query attachments")):Promise.reject(new o.A(r,"A feature is required to add/delete/update attachments")):Promise.reject(new o.A(r,"this layer doesn't support attachments"))}async function x(e,t,r,n,i,s){const a=await W(e);if(await S(e,t,i),!a.updateAttachment)throw new o.A(i,"Layer source does not support updateAttachment capability");return a.updateAttachment(t,r,n,s)}async function Z(e,t,n){const{applyEdits:i}=await r.e(8628).then(r.bind(r,78628)),o=await e.load();let s=n;const{url:a,type:u,globalIdField:l}=o;return"feature"===u&&(0,p.Wo)(a)&&o.infoFor3D&&null!=t.deleteFeatures&&null!=l&&(s={...s,globalIdToObjectId:await re(o,t.deleteFeatures,l)}),i(o,o.source,t,s)}async function P(e,t,n){const{uploadAssets:i}=await r.e(8628).then(r.bind(r,78628)),o=await e.load();return i(o,o.source,t,n)}async function R(e,t,r,n,i){const s=await W(e);if(await S(e,t,n),!s.deleteAttachments)throw new o.A(n,"Layer source does not support deleteAttachments capability");return s.deleteAttachments(t,r,i)}async function O(e,t,r){const n=(await e.load({signal:t?.signal})).source;if(!n.fetchRecomputedExtents)throw new o.A(r,"Layer source does not support fetchUpdates capability");return n.fetchRecomputedExtents(t)}async function q(e,t,r,n){let i=A.A.from(t);const s=await e.load(),a=s.source,u=s.capabilities;if(!u?.data?.supportsAttachment)throw new o.A(n,"this layer doesn't support attachments");const{attachmentTypes:l,objectIds:c,globalIds:p,num:d,size:y,start:h,where:m}=i;if(!u?.operations?.supportsQueryAttachments&&(l?.length>0||p?.length>0||y?.length>0||d||h||m))throw new o.A(n,"when 'capabilities.operations.supportsQueryAttachments' is false, only objectIds is supported",i);if(!(c?.length||p?.length||m))throw new o.A(n,"'objectIds', 'globalIds', or 'where' are required to perform attachment query",i);if(!a.queryAttachments)throw new o.A(n,"Layer source does not support queryAttachments capability",i);return!u?.attachment?.supportsOrderByFields&&i.orderByFields?.length&&(i=i.clone(),i.orderByFields=null),a.queryAttachments(i)}async function L(e,t,r,n){const i=await W(e);if(!i.queryObjectIds)throw new o.A(n,"Layer source does not support queryObjectIds capability");return i.queryObjectIds(h.A.from(t)??e.createQuery(),r)}async function T(e,t,r,n){const i=await W(e);if(!i.queryFeatureCount)throw new o.A(n,"Layer source does not support queryFeatureCount capability");return i.queryFeatureCount(h.A.from(t)??e.createQuery(),r)}async function B(e,t,r,n){const i=await W(e);if(!i.queryExtent)throw new o.A(n,"Layer source does not support queryExtent capability");return i.queryExtent(h.A.from(t)??e.createQuery(),r)}async function D(e,t,r,n){const i=await W(e);if(!i.queryRelatedFeatures)throw new o.A(n,"Layer source does not support queryRelatedFeatures capability");return i.queryRelatedFeatures(M.default.from(t),r)}async function N(e,t,r,n){const i=await W(e);if(!i.queryRelatedFeaturesCount)throw new o.A(n,"Layer source does not support queryRelatedFeaturesCount capability");return i.queryRelatedFeaturesCount(M.default.from(t),r)}async function E(e){const t=e.source;if(t?.refresh)try{const{dataChanged:r,updates:n}=await t.refresh();if(null!=n&&(e.sourceJSON={...e.sourceJSON,...n},e.read(n,{origin:"service",url:e.parsedUrl})),r)return!0}catch{}if(e.definitionExpression)try{return(await(0,u.GP)(e.definitionExpression,e.fieldsIndex)).hasDateFunctions}catch{}return!1}function V(e){const t=new h.A;t.historicMoment=e.historicMoment,t.gdbVersion=e.gdbVersion,t.returnGeometry=!0,t.outFields=["*"],t.multipatchOption="multipatch"===e.geometryType?"xyFootprint":null;const r=e.capabilities?.query;r&&(t.compactGeometryEnabled=r.supportsCompactGeometry,t.defaultSpatialReferenceEnabled=r.supportsDefaultSpatialReference);const n=e.capabilities?.data;n?.supportsZ&&null!=e.returnZ&&(t.returnZ=e.returnZ),n?.supportsM&&null!=e.returnM&&(t.returnM=e.returnM);const{timeOffset:i,timeExtent:o}=e;return t.timeExtent=null!=i&&null!=o?o.offset(-i.value,i.unit):o||null,t}function k(e){const{globalIdField:t,fields:r}=e;if(t)return t;if(r)for(const e of r)if("esriFieldTypeGlobalID"===e.type)return e.name}function G(e){const{objectIdField:t,fields:r}=e;if(t)return t;if(r)for(const e of r)if("esriFieldTypeOID"===e.type)return e.name}function z(e){return e.currentVersion?e.currentVersion:e.hasOwnProperty("capabilities")||e.hasOwnProperty("drawingInfo")||e.hasOwnProperty("hasAttachments")||e.hasOwnProperty("htmlPopupType")||e.hasOwnProperty("relationships")||e.hasOwnProperty("timeInfo")||e.hasOwnProperty("typeIdField")||e.hasOwnProperty("types")?10:9.3}function $(e,t,r,n){const i=r?.feature,o=!!e.subtypes?.length;if(o&&!r?.excludeImpliedDomains){const r=Q(e,t);if(r)return r}const s=o&&H(e,i);if(s){const e=s?.domains?.[t];return"inherited"===e?.type?n:e}const a=ne(e.types,e.typeIdField,i);if(a){const e=a.domains&&a.domains[t];if(e&&"inherited"!==e?.type)return e}if(n)return n;if(!r?.excludeImpliedDomains){const r=function(e,t){const{fieldsIndex:r}=e,{name:n,type:i}=r.get(t)??{};if(!n)return null;if(("typeIdField"in e?r.get(e.typeIdField)?.name:null)===n&&"types"in e&&e.types?.length&&K(e.types)){const t=e.types?.map(e=>new d.A({code:J(e.id,i),name:e.name}));return new y.A({codedValues:t})}return null}(e,t);if(r)return r}return null}function H(e,t){const{subtypes:r,subtypeField:n}=e;if(!t?.attributes||!r?.length||!n)return null;const i=t.attributes[n];return null==i?null:r.find(e=>e.code===i)}function Q(e,t){const{fieldsIndex:r,subtypeField:n}=e,{name:i,type:o}=r.get(t)??{};if(!i)return null;if((n&&r.get(n)?.name)===i&&e.subtypes?.length){const t=e.subtypes.map(e=>new d.A({code:J(e.code,o),name:e.name}));if(t?.length)return new y.A({codedValues:t})}return null}function K(e){const t=new Set,r=new Set;for(const n of e){if(t.has(n.id)||r.has(n.name))return!1;t.add(n.id),r.add(n.name)}return!0}function J(e,t){return t?(0,w.yM)({type:t})&&"number"==typeof e?`${e}`:(0,w.R3)({type:t})&&"string"==typeof e?Number.parseInt(e,10):e:e}async function W(e){return(await e.load()).source}async function U(e,t,r){const i=e.parsedUrl?.path;i&&e.authenticationTriggerEvent===t&&await async function(e,t){if(!n.id)return;if(n.id.findCredential(e))return;let r;try{const i=await(0,b.wI)(e,t);i&&(r=await n.id.checkSignInStatus(`${i}/sharing`))}catch(e){}if(r)try{const r=null!=t?t.signal:null;await n.id.getCredential(e,{signal:r})}catch(e){}}(i,r)}function _(e){return!!e?.toLowerCase().includes("current_user")}function X(e){return!ie(e)&&(e.userHasUpdateItemPrivileges||e.editingEnabled)}const Y=(0,c.C)({types:F.xK});function ee(e,t){if(e.defaultSymbol)return e.types?.length?new v.A({defaultSymbol:Y(e.defaultSymbol,e,t),field:e.typeIdField,uniqueValueInfos:e.types.map(e=>({id:e.id,symbol:Y(e.symbol,e,t)}))}):new g.A({symbol:Y(e.defaultSymbol,e,t)})}function te(e){let t=e.sourceJSON?.cacheMaxAge;if(!t)return!1;const r=e.editingInfo?.lastEditDate?.getTime();return null==r||(t*=1e3,Date.now()-r<t)}async function re(e,t,r){if(null==t)return null;const n=[],{objectIdField:o}=e;if(t.forEach(e=>{let t=null;if("attributes"in e){const{attributes:n}=e;t={globalId:n[r],objectId:null!=n[o]&&-1!==n[o]?n[o]:null}}else t={globalId:e.globalId,objectId:null!=e.objectId&&-1!==e.objectId?e.objectId:null};null!=t.globalId&&(null!=t.objectId&&-1!==t.objectId||n.push(t.globalId))}),0===n.length)return null;const s=e.createQuery();s.where=n.map(e=>`${r}='${e}'`).join(" OR "),s.returnGeometry=!1,s.outFields=[o,r],s.cacheHint=!1;const a=await(0,i.DZ)(m(e,s));if(!a.ok)return null;const u=new Map,c=a.value.features;for(const e of c){const t=e.attributes[r],n=e.attributes[o];null!=t&&null!=n&&-1!==n&&u.set((0,l.AG)(t),n)}return u}function ne(e,t,r){if(!t||!r||!e)return null;const n=r.getAttribute(t);if(null==n)return null;const i=e.filter(e=>{const{id:t}=e;return null!=t&&t.toString()===n.toString()});return i.length>1&&a.A.getLogger("esri.layers.support.featureLayerUtils").warn("getFeatureType",`Cannot unambiguously determine feature type because multiple types have the id ${n}.`),i[0]??null}function ie(e){const t=e.sourceJSON;return t?.isMultiServicesView||t?.isReadOnly||function(e){return!!e.sourceJSON?.capabilities?.toLowerCase().split(",").map(e=>e.trim()).includes("map")}(e)}function oe(e,t,r){const n=t?.queryAttributeBins;if(!t?.operations?.supportsQueryBins||!n)throw new o.A(r,"Layer source does not support binning");switch(e.binParameters?.type){case"auto-interval":if(!n.supportsAutoInterval)throw new o.A(r,"Layer source does not support auto-interval binning");if(e.binParameters.normalizationType&&(!n.supportsNormalization||!se(e.binParameters.normalizationType,n.supportedNormalizationTypes)))throw new o.A(r,"Layer source does not support normalization binning");break;case"date":if(!n.supportsDate)throw new o.A(r,"Layer source does not support date binning");if(e.binParameters.snapToData&&!n.supportsSnapToData)throw new o.A(r,"Layer source does not support snapToData binning");if(e.binParameters.returnFullIntervalBin&&!n.supportsReturnFullIntervalBin)throw new o.A(r,"Layer source does not support returnFullIntervalBin binning");break;case"fixed-boundaries":if(!n.supportsFixedBoundaries)throw new o.A(r,"Layer source does not support fixed-boundaries binning");break;case"fixed-interval":if(!n.supportsFixedInterval)throw new o.A(r,"Layer source does not support fixed-interval binning");if(e.binParameters.normalizationType&&(!n.supportsNormalization||!se(e.binParameters.normalizationType,n.supportedNormalizationTypes)))throw new o.A(r,"Layer source does not support normalization binning")}if(e.binParameters?.stackBy&&!n.supportsStackBy)throw new o.A(r,"Layer source does not support stackBy binning");if(e.binParameters?.splitBy&&!n.supportsSplitBy)throw new o.A(r,"Layer source does not support splitBy binning");if(e.binParameters?.firstDayOfWeek&&!n.supportsFirstDayOfWeek)throw new o.A(r,"Layer source does not support firstDayOfWeek binning");const i=n?.supportedStatistics;if(e.outStatistics&&i){const t=new Map([["count","count"],["sum","sum"],["min","min"],["max","max"],["avg","avg"],["stddev","stddev"],["var","var"],["percentile-continuous","percentileContinuous"],["percentile-discrete","percentileDiscrete"],["centroid-aggregate","centroid"],["convex-hull-aggregate","convexHull"],["envelope-aggregate","envelope"]]);for(const{statisticType:n}of e.outStatistics){const e=t.get(n);if(e&&!i[e])throw new o.A(r,`Layer source does not support ${n} statistic type`)}}}function se(e,t){return null!=e&&!!t?.[C.Q.toJSON(e)]}},96576(e,t,r){r.d(t,{A:()=>p});var n,i=r(32198),o=r(4718),s=r(91429),a=r(92438),u=r(63988),l=r(49849),c=r(93223);let p=n=class extends((0,u.h)(a.A)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.type="simple"}async collectRequiredFields(e,t){await Promise.all([this.collectSymbolFields(e,t),this.collectVVRequiredFields(e,t)])}async collectSymbolFields(e,t){await Promise.all(this.symbols.map(r=>r.collectRequiredFields(e,t)))}getSymbol(e,t){return this.symbol}async getSymbolAsync(e,t){return this.symbol}get symbols(){return this.symbol?[this.symbol]:[]}get arcadeRequired(){return this.arcadeRequiredForVisualVariables}clone(){return new n({description:this.description,label:this.label,symbol:(0,o.o8)(this.symbol),visualVariables:(0,o.o8)(this.visualVariables),authoringInfo:(0,o.o8)(this.authoringInfo)})}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"description",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,i.Cg)([(0,s.MZ)(l.Wp)],p.prototype,"symbol",void 0),(0,i.Cg)([(0,c.e)({simple:"simple"})],p.prototype,"type",void 0),p=n=(0,i.Cg)([(0,s.$K)("esri.renderers.SimpleRenderer")],p)},54546(e,t,r){r.d(t,{A:()=>c});var n,i=r(32198),o=r(25482),s=r(4718),a=r(91429),u=r(56507),l=r(43937);let c=class extends o.o{static{n=this}constructor(e){super(e),this.attachmentTypes=null,this.attachmentsWhere=null,this.cacheHint=void 0,this.keywords=null,this.globalIds=null,this.name=null,this.num=null,this.objectIds=null,this.orderByFields=null,this.returnMetadata=!1,this.size=null,this.start=null,this.where=null}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10}writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}clone(){return new n((0,s.o8)({attachmentTypes:this.attachmentTypes,attachmentsWhere:this.attachmentsWhere,cacheHint:this.cacheHint,keywords:this.keywords,where:this.where,globalIds:this.globalIds,historicMoment:this.historicMoment,name:this.name,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,returnMetadata:this.returnMetadata,size:this.size,start:this.start}))}};(0,i.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],c.prototype,"attachmentTypes",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{read:{source:"attachmentsDefinitionExpression"},write:{target:"attachmentsDefinitionExpression"}}})],c.prototype,"attachmentsWhere",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"cacheHint",void 0),(0,i.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],c.prototype,"keywords",void 0),(0,i.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],c.prototype,"globalIds",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],c.prototype,"num",void 0),(0,i.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],c.prototype,"objectIds",void 0),(0,i.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],c.prototype,"orderByFields",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],c.prototype,"returnMetadata",void 0),(0,i.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],c.prototype,"size",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],c.prototype,"start",void 0),(0,i.Cg)([(0,l.K)("start"),(0,l.K)("num")],c.prototype,"writeStart",null),(0,i.Cg)([(0,a.MZ)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],c.prototype,"where",void 0),(0,i.Cg)([(0,a.MZ)()],c.prototype,"historicMoment",void 0),(0,i.Cg)([(0,l.K)("historicMoment")],c.prototype,"writeHistoricMoment",null),c=n=(0,i.Cg)([(0,a.$K)("esri.rest.support.AttachmentQuery")],c),c.from=(0,u.dp)(c)},26591(e,t,r){r.r(t),r.d(t,{default:()=>d});var n,i=r(32198),o=r(25482),s=r(4718),a=r(91429),u=r(56507),l=r(16930),c=r(65615),p=r(43937);let d=class extends o.o{static{n=this}constructor(e){super(e),this.cacheHint=void 0,this.dynamicDataSource=void 0,this.gdbVersion=null,this.geometryPrecision=void 0,this.historicMoment=null,this.maxAllowableOffset=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.relationshipId=void 0,this.start=void 0,this.num=void 0,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.returnTrueCurves=void 0,this.where=null}_writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,this.start>0&&null==this.where&&(t.definitionExpression="1=1")}clone(){return new n((0,s.o8)({cacheHint:this.cacheHint,dynamicDataSource:this.dynamicDataSource,gdbVersion:this.gdbVersion,geometryPrecision:this.geometryPrecision,historicMoment:this.historicMoment&&new Date(this.historicMoment),maxAllowableOffset:this.maxAllowableOffset,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,relationshipId:this.relationshipId,start:this.start,num:this.num,returnGeometry:this.returnGeometry,where:this.where,returnZ:this.returnZ,returnTrueCurves:this.returnTrueCurves,returnM:this.returnM}))}};(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"cacheHint",void 0),(0,i.Cg)([(0,a.MZ)({type:c.A,json:{write:!0}})],d.prototype,"dynamicDataSource",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],d.prototype,"gdbVersion",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"geometryPrecision",void 0),(0,i.Cg)([(0,a.MZ)({type:Date})],d.prototype,"historicMoment",void 0),(0,i.Cg)([(0,p.K)("historicMoment")],d.prototype,"_writeHistoricMoment",null),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"maxAllowableOffset",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],d.prototype,"objectIds",void 0),(0,i.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],d.prototype,"orderByFields",void 0),(0,i.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],d.prototype,"outFields",void 0),(0,i.Cg)([(0,a.MZ)({type:l.A,json:{read:{source:"outSR"},write:{target:"outSR"}}})],d.prototype,"outSpatialReference",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],d.prototype,"relationshipId",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],d.prototype,"start",void 0),(0,i.Cg)([(0,p.K)("start"),(0,p.K)("num")],d.prototype,"writeStart",null),(0,i.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],d.prototype,"num",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],d.prototype,"returnGeometry",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],d.prototype,"returnM",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],d.prototype,"returnZ",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"returnTrueCurves",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],d.prototype,"where",void 0),d=n=(0,i.Cg)([(0,a.$K)("esri.rest.support.RelationshipQuery")],d),d.from=(0,u.dp)(d)},30291(e,t,r){r.d(t,{tn:()=>l});var n=r(37838),i=r(30524),o=r(41227),s=r(89893),a=r(66159),u=r(68780);function l({displayField:e,editFieldsInfo:t,fields:r,objectIdField:u,title:l},y){if(!r)return null;const m=function(e,t){const r=t?.visibleFieldNames;return function({fields:e,ignoreFieldTypes:t,sortDisabled:r}){const n=e;return t&&(e=e.filter(e=>!t.includes(e.type))),e===n&&(e=e.slice()),!0!==r&&e.sort(p),e}({fields:e.fields??[],ignoreFieldTypes:t?.ignoreFieldTypes||h,sortDisabled:t?.sortDisabled}).map(t=>new o.A({fieldName:t.name,isEditable:(0,i.R$)(t,e),label:t.alias,format:d(t),visible:c(t,{...e,visibleFieldNames:r})}))}({editFieldsInfo:t,fields:r,objectIdField:u},y);if(!m.length)return null;const f=function(e){const t=(0,i.mB)(e),{titleBase:r}=e;return t?`${r}: {${t.trim()}}`:r??""}({titleBase:l,fields:r,displayField:e}),w=[new a.A,new s.A];return new n.A({title:f,content:w,fieldInfos:m})}const c=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,i.Bz)(e,t);function p(e,t){return"oid"===e.type?-1:"oid"===t.type?1:y(e)?-1:y(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function d(e){switch(e.type){case"small-integer":case"integer":return new u.A({digitSeparator:!0,places:0});case"single":case"double":return new u.A({digitSeparator:!0,places:2});case"string":return(0,i.JL)(e.name)?new u.A({digitSeparator:!0,places:0}):void 0;default:return}}function y(e){if("name"===(e.name&&e.name.toLowerCase()))return!0;const t=e.alias?.toLowerCase();return"name"===t}const h=["geometry","blob","raster","guid","xml"]}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[737,1954,7925],{52106(e,t,i){i.d(t,{A:()=>F});var r,o,s=i(32198),n=i(37838),l=i(69540),a=i(51447),u=i(25482),d=i(53966),p=i(36708),c=i(24326),h=i(91429),y=i(12195),g=i(65864),m=i(50498),f=i(55156),b=i(60950),v=i(54339),M=i(94128),S=i(33910);const C=Symbol("meshGeometryHandles");function w(e){if(null==e)return null;const t={};for(const i in e){const r=e[i];r&&(t[i]=r.toJSON())}return 0!==Object.keys(t).length?t:null}let F=class extends((0,l.OU)(u.o)){static{r=M.Z}static{o=this}constructor(e){super(e),this[r]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,c.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(d.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new o({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const i=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[i,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,f.I)(this.origin);if(e)return(0,v.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,v.r)(this,t):null}getGlobalId(){const e=(0,f.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){const e={aggregateGeometries:w(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,y.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const o={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(o.action=r),"attributes"===e&&(o.attributeName=r),this.layer.graphicChanged(o)}_watchMeshGeometryChanges(){this.removeHandles(C);const e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,p.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,p.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],C)}};(0,s.Cg)([(0,h.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const i in e){const r=(0,g.rS)(e[i]);r&&(t[i]=r)}return 0!==Object.keys(t).length?t:null}}})],F.prototype,"aggregateGeometries",null),(0,s.Cg)([(0,h.MZ)({value:null})],F.prototype,"attributes",null),(0,s.Cg)([(0,h.MZ)({value:null,types:m.yR,json:{read:g.rS}})],F.prototype,"geometry",null),(0,s.Cg)([(0,h.MZ)()],F.prototype,"distance",void 0),(0,s.Cg)([(0,h.MZ)({type:Boolean})],F.prototype,"isAggregate",void 0),(0,s.Cg)([(0,h.MZ)({clonable:!1})],F.prototype,"layer",void 0),(0,s.Cg)([(0,h.MZ)({clonable:"reference"})],F.prototype,"origin",void 0),(0,s.Cg)([(0,h.MZ)({type:n.A,value:null})],F.prototype,"popupTemplate",null),(0,s.Cg)([(0,h.MZ)({clonable:"reference"})],F.prototype,"sourceLayer",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],F.prototype,"statisticsAggregatedIds",void 0),(0,s.Cg)([(0,h.MZ)({value:null,types:S.Es})],F.prototype,"symbol",null),(0,s.Cg)([(0,h.MZ)({clonable:!1,json:{read:!1,write:!1}})],F.prototype,"_version",void 0),(0,s.Cg)([(0,h.MZ)({type:Boolean,value:!0})],F.prototype,"visible",null),F=o=(0,s.Cg)([(0,h.$K)("esri.Graphic")],F)},6797(e,t,i){i.d(t,{Ui:()=>c});var r=i(69622),o=i(7762),s=i(88620);const n=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof r.A}function a(e){return e instanceof o.A?Object.keys(e.items):l(e)?(0,s.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof o.A?e.items[t]:e[t]}function d(e){return e?e.declaredClass:null}function p(e,t){const i=e.diff;if(i&&"function"==typeof i)return i(e,t);const r=a(e),o=a(t);if(0===r.length&&0===o.length)return;if(!r.length||!o.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const s=o.filter(e=>!r.includes(e)),c=r.filter(e=>!o.includes(e)),h=r.filter(i=>o.includes(i)&&u(e,i)!==u(t,i)).concat(s,c).sort(),y=d(e);if(y&&n.has(y)&&h.length)return{type:"complete",oldValue:e,newValue:t};let g;const m=l(e)&&l(t);for(const r of h){const o=u(e,r),s=u(t,r);let n;if((m||"function"!=typeof o&&"function"!=typeof s)&&o!==s&&(null!=o||null!=s)){if(i&&i[r]&&"function"==typeof i[r])n=i[r]?.(o,s);else if(o instanceof Date&&s instanceof Date){if(o.getTime()===s.getTime())continue;n={type:"complete",oldValue:o,newValue:s}}else n="object"==typeof o&&"object"==typeof s&&d(o)===d(s)?p(o,s):{type:"complete",oldValue:o,newValue:s};null!=n&&(null!=g?g.diff[r]=n:g={type:"partial",diff:{[r]:n}})}}return g}function c(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&d(e)!==d(t)?{type:"complete",oldValue:e,newValue:t}:p(e,t)}},55156(e,t,i){i.d(t,{I:()=>o});const r=Symbol("idFieldsProviderSymbol");function o(e){return(t=e)&&r in t?e[r]:void 0;var t}i.d(t,["e",0,r])},20737(e,t,i){i.r(t),i.d(t,{default:()=>Q});var r=i(32198),o=i(37838),s=i(11254),n=i(69540),l=i(7762),a=i(49186),u=i(36563),d=i(25728),p=i(17676),c=i(36708),h=i(91429),y=i(16930),g=i(55156),m=i(60950),f=i(89808),b=i(99959);const v=Symbol("isAnnotationFeatureGraphicOrigin");var M;class S extends b.A{get[(M=v,m.ym)](){return this.layer}get[g.e](){return this.layer}get[f.Q](){return this.layer}constructor(e,t){super(),this[M]=!0,this.type="annotation-feature",this.layer=e,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer?.subtypeCode??null}__`}}var C=i(4146),w=i(52136),F=i(18768),I=i(63074),A=i(69208),T=i(40775),Z=i(47685),_=i(10086),x=i(34287),L=i(8303),j=i(54310),O=i(25036),E=i(82935),k=i(4902),D=i(92474);let V=class extends((0,n.OU)((0,k.s)(D.x_))){constructor(e){super(e),this.maxScale=0,this.minScale=0,this.parent=null,this.subtypeCode=null,this.type="annotation-feature-sublayer",this.visible=!0}get graphicOrigin(){return new S(this.parent,this)}get title(){return this.parent?.subtypes?.find(e=>e.code===this.subtypeCode)?.name??null}};(0,r.Cg)([(0,h.MZ)({readOnly:!0,clonable:!1})],V.prototype,"graphicOrigin",null),(0,r.Cg)([(0,h.MZ)()],V.prototype,"maxScale",void 0),(0,r.Cg)([(0,h.MZ)()],V.prototype,"minScale",void 0),(0,r.Cg)([(0,h.MZ)({clonable:!1})],V.prototype,"parent",void 0),(0,r.Cg)([(0,h.MZ)({type:Number})],V.prototype,"subtypeCode",void 0),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],V.prototype,"title",null),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],V.prototype,"type",void 0),(0,r.Cg)([(0,h.MZ)({type:Boolean})],V.prototype,"visible",void 0),V=(0,r.Cg)([(0,h.$K)("esri.layers.support.AnnotationFeatureSublayer")],V);var P=i(60694),z=i(10873),R=i(15426),G=i(17036),N=i(30524),K=i(91908),q=i(97552),J=i(30291),$=i(36005);const H="annotation-feature-layer",U=(0,G.p)(),B=l.A.ofType(V);let W=class extends((0,T.I)((0,_.j)((0,I.dM)((0,E.e)((0,Z.w6)((0,O.j)((0,j.J)((0,F.b)((0,x.q)((0,L.A)((0,d.M)((0,A.d)((0,w.p)((0,n.OU)(C.A))))))))))))))){constructor(e){super(e),this._sublayerLookup=new Map,this.barrierWeight="high",this.elementField="element",this.fields=null,this.fieldsIndex=null,this.graphicOrigin=new S(this,null),this.operationalLayerType="ArcGISAnnotationLayer",this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.referenceScale=0,this.source=null,this.statusField="status",this.sublayers=new B,this.sublayerTitleMode="item-title",this.supportedSourceTypes=new Set(["Annotation Layer"]),this.symbolCollection=null,this.type="annotation-feature",this.unplacedAnnotationsVisible=!1,this.addHandles((0,c.wB)(()=>this.sublayers,(e,t)=>this._handleSublayersChange(e,t),c.OH))}destroy(){this.source?.destroy()}load(e){const t=e?.signal,i=this.loadFromPortal({supportedTypes:["Feature Service"]},e).catch(p.QP).then(async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){const e=await this._fetchFirstValidLayerId(t);null!=e&&(this.layerId=e)}if(!this.url)throw new a.A(`${H}:missing-url`,"AnnotationFeatureLayer must be created with a url");return Promise.all([this.loadDataElement(e).then(()=>{if(!this.symbolCollection)throw new a.A(`${H}:missing-symbol-collection`,"Invalid service with no symbol collection")}),this.initLayerProperties(await this.createGraphicsSource(t))])}).then(()=>(0,R.VA)(this,"load",e));return this.addResolvingPromise(i),Promise.resolve(this)}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.loaded&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get effectiveEditingEnabled(){return!1}get defaultPopupTemplate(){return this.createPopupTemplate()}readSublayers(e,t){const i=new B(t.subtypes.map(({code:e})=>new V({subtypeCode:e})).reverse());if(this.visibleLayers){const e=new Set(this.visibleLayers);i.forEach(t=>{t.visible=e.has(t.subtypeCode)})}return i}readTitleFromService(e,t){const{url:i}=this,r=t.name||(0,P.qg)(i)?.title;switch(this.sublayerTitleMode){case"item-title":if(i)return(0,P.yG)(i,r);break;case"item-title-and-service-name":{let e=this.portalItem?.title;if(e&&e!==r)return e=(0,P.cr)(e),r?`${e} - ${(0,P.cr)(r)}`:e;break}}return r?(0,P.cr)(r):void 0}readTitleFromPortalItem(e){return"item-title"===this.sublayerTitleMode?e:void 0}get visibleLayers(){return 0===this.sublayers.length?this._get("visibleLayers")??null:Array.from(new Set(this.sublayers?.toArray().filter(e=>e.visible).map(e=>e.subtypeCode).sort((e,t)=>e-t)??null))}set visibleLayers(e){this._set("visibleLayers",e)}createPopupTemplate(e){return(0,J.tn)(this,e)}async createGraphicsSource(e){const t={stack:[],error:void 0,hasError:!1};try{const{default:o}=await(0,p.qr)(Promise.all([i.e(893),i.e(7013),i.e(9714)]).then(i.bind(i,65515)),e),s=new o({layer:this,supportedSourceTypes:this.supportedSourceTypes});return(0,r.mS)(t,(0,u.Bf)((0,p.u7)(e,()=>s.cancelLoad())??(0,u.hA)()),!1),await s.load({signal:e}),s}catch(e){t.error=e,t.hasError=!0}finally{(0,r.hk)(t)}}createQuery(){const e=(0,R.VZ)(this);return e.where=this.definitionExpression||"1=1",e}findSublayerForFeature(e){const t=this.fieldsIndex.get(this.subtypeField),i=e.attributes[t.name];return this.findSublayerForSubtypeCode(i)}findSublayerForSubtypeCode(e){return this._sublayerLookup.get(e)}getFieldDomain(e,t){return(0,R.Vq)(this,e,t,this.getField(e)?.domain??null)}async queryFeatures(e,t){const i=await this.load(),r=await i.source.queryFeatures(q.A.from(e)??i.createQuery(),t);if(r?.features)for(const e of r.features){const t=this.findSublayerForFeature(e);e.origin=t?.graphicOrigin??this.graphicOrigin,e.layer=e.sourceLayer=this}return r}async queryObjectIds(e,t){const i=await this.load();return i.source.queryObjectIds(q.A.from(e)??i.createQuery(),t)}async queryFeatureCount(e,t){const i=await this.load();return i.source.queryFeatureCount(q.A.from(e)??i.createQuery(),t)}async queryExtent(e,t){const i=await this.load();return i.source.queryExtent(q.A.from(e)??i.createQuery(),t)}serviceSupportsSpatialReference(e){return this.loaded&&(0,K.D)(this,e)}async initLayerProperties(e){this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl})),this._verifySource(),(0,N.sv)(this.timeInfo,this.fieldsIndex)}async hasDataChanged(){return(0,R.jp)(this)}_verifySource(){if(this.version&&this.version<10.8)throw new a.A(H+":unsupported-version","The feature service must be version 10.8 or above.");const e=["ZOrder","AnnotationClassID","Element","SymbolID","Status"],t=e.filter(e=>!this.fieldsIndex.has(e));if(this.fieldsIndex.has("FeatureID")||this.fieldsIndex.has("FeatureGlobalID")||t.unshift("FeatureID","FeatureGlobalID"),t.length)throw new a.A(H+":missing-fields","There are missing fields to operate properly",{requiredFields:e,missingFields:t})}_fetchFirstValidLayerId(e){return(0,s.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(e=>{const t=e.data;if(!t)return;this.applyPreferredHost(t);const i=[...t.layers||[],...t.tables||[]];return i.find(({type:e})=>!e||this.supportedSourceTypes.has(e))?.id})}_handleSublayersChange(e,t){t&&(t.forEach(e=>{e.parent=null}),this.removeHandles("sublayers-owner"),this._sublayerLookup.clear()),e&&(e.forEach(e=>{e.parent=this,this._sublayerLookup.set(e.subtypeCode,e)}),this.addHandles([e.on("after-add",({item:e})=>{e.parent=this,this._sublayerLookup.set(e.subtypeCode,e)}),e.on("after-remove",({item:e})=>{e.parent=null,this._sublayerLookup.delete(e.subtypeCode)})],"sublayers-owner"))}};(0,r.Cg)([(0,h.MZ)({type:y.A,json:{origins:{service:{read:{source:"sourceSpatialReference"}}}}})],W.prototype,"attributeSpatialReference",void 0),(0,r.Cg)([(0,h.MZ)(z.es)],W.prototype,"barrierWeight",void 0),(0,r.Cg)([(0,h.MZ)({json:{write:!0}})],W.prototype,"editingEnabled",null),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],W.prototype,"elementField",void 0),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],W.prototype,"effectiveEditingEnabled",null),(0,r.Cg)([(0,h.MZ)({...U.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],W.prototype,"fields",void 0),(0,r.Cg)([(0,h.MZ)(U.fieldsIndex)],W.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],W.prototype,"graphicOrigin",void 0),(0,r.Cg)([(0,h.MZ)(z.id)],W.prototype,"id",void 0),(0,r.Cg)([(0,h.MZ)({type:["ArcGISAnnotationLayer"]})],W.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,h.MZ)(U.outFields)],W.prototype,"outFields",void 0),(0,r.Cg)([(0,h.MZ)(z.M6)],W.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,h.MZ)({type:o.A,json:{name:"popupInfo",write:!0}})],W.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],W.prototype,"defaultPopupTemplate",null),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],W.prototype,"referenceScale",void 0),(0,r.Cg)([(0,h.MZ)({clonable:!1,readOnly:!0})],W.prototype,"source",void 0),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],W.prototype,"statusField",void 0),(0,r.Cg)([(0,h.MZ)({type:B})],W.prototype,"sublayers",void 0),(0,r.Cg)([(0,$.w)("service","sublayers",["subtypes"])],W.prototype,"readSublayers",null),(0,r.Cg)([(0,h.MZ)({type:String})],W.prototype,"sublayerTitleMode",void 0),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],W.prototype,"symbolCollection",void 0),(0,r.Cg)([(0,$.w)("service","title",["name"])],W.prototype,"readTitleFromService",null),(0,r.Cg)([(0,$.w)("portal-item","title")],W.prototype,"readTitleFromPortalItem",null),(0,r.Cg)([(0,h.MZ)({json:{read:!1},value:"annotation-feature",readOnly:!0})],W.prototype,"type",void 0),(0,r.Cg)([(0,h.MZ)()],W.prototype,"unplacedAnnotationsVisible",void 0),(0,r.Cg)([(0,h.MZ)({type:[Number],json:{write:{ignoreOrigin:!0}}})],W.prototype,"visibleLayers",null),W=(0,r.Cg)([(0,h.$K)("esri.layers.AnnotationFeatureLayer")],W);const Q=W},52136(e,t,i){var r=i(32198),o=i(91429);i.d(t,["p",0,e=>{const t=e;let i=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,r.Cg)([(0,o.MZ)({type:String})],i.prototype,"apiKey",null),i=(0,r.Cg)([(0,o.$K)("esri.layers.mixins.APIKeyMixin")],i),i}])},40775(e,t,i){var r=i(32198),o=i(11254),s=i(49186),n=i(84952),l=i(91429),a=i(95250);function u(e,t){const i=e.indexOf(t);if(-1!==i)return e[i+1]}function d(e,t){const i=u(e,t);return i&&"string"==typeof i?JSON.parse(i):null}function p(e){const t=u(e,"ReferenceScale")??0;return"string"!=typeof t?t:parseFloat(t)}function c(e){return d(e,"SymbolCollection")??void 0}function h(e){return d(e,"StyleCollection")??void 0}i.d(t,["I",0,e=>{const t=e;let i=class extends t{async loadDataElement(e){if(!this.url||null==this.layerId)throw new s.A("fetchDataElement:missing-url-or-layerId","The layer must have a url and a layerId to fetch the data element.");const t=(0,n.fj)(this.url,"queryDataElements"),i={f:"json",layers:this.layerId},{data:r}=await(0,o.A)(t,{...e,responseType:"json",query:i}),l=r.layerDataElements.find(e=>e.layerId===this.layerId)?.dataElement;if(!l)throw new s.A("fetchDataElement:not-available","A data element for this layer could not be retrieved.");const u=l.extensionProperties?.propertySetItems??[],d=p(u),y=(0,a.S)(c(u)),g=(0,a.S)(h(u));this.read({referenceScale:d,symbolCollection:y,styleCollection:g},{origin:"service"})}};return i=(0,r.Cg)([(0,l.$K)("esri.layers.mixins.DataElementMixin")],i),i}])},47685(e,t,i){i.d(t,{Mk:()=>h,Zk:()=>p});var r=i(32198),o=i(65529),s=i(4718),n=i(91429),l=i(20816);const a=new o.bk;function u(e){return a.on("apply-edits",new WeakRef(e))}function d(e){return a.on("update-moment",new WeakRef(e))}function p(e,t,i=null,r=!1){const o=Promise.withResolvers();return r=null==t||r,a.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:i,mayReceiveServiceEdits:r,result:o.promise}),o}const c=Symbol();function h(e){return null!=e&&"object"==typeof e&&c in e}function y(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function g(e,t,i){const r=new URL(e).host,o=l.Z3.get(r),s=e=>!e||e===o;return s(t)&&s(i)||t===i}i.d(t,["w6",0,e=>{var t;const i=e;let o=class extends i{static{t=c}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:i,gdbVersion:r,mayReceiveServiceEdits:o,result:n}=e,l=t===this.url,a=null!=i&&null!=this.layerId&&i===this.layerId,u=null!=i&&this.relationships?.some(e=>e.relatedTableId===i),d=y(this),p=y(this)&&g(t,r,this.gdbVersion);if(!l||d&&!p||!a&&!u&&!o)return;const c=n.then(e=>{if(this.lastEditsEventDate=new Date,a&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,s.o8)(e)),e;const i=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(i){const{adds:t,updates:r,deletes:o}=i.editedFeatures,n={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],deletedFeatures:o?o.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],updatedFeatures:r?r.map(({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],editedFeatures:(0,s.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,s.o8)(e.historicMoment)};return this.emit("edits",n),n}const o={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,s.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,s.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,o.historicMoment)&&this.emit("edits",o),o}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));c.catch(()=>{}),this.emit("apply-edits",{result:c})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:i,moment:r}=e,o=t===this.url,s=y(this),n=y(this)&&g(t,i,this.gdbVersion),l=y(this)&&!g(t,this.gdbVersion,null);o&&s&&n&&l&&"historicMoment"in this&&this.historicMoment!==r&&(this.historicMoment=r)},this.when().then(()=>{this.addHandles(u(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(d(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,i){return"historicMoment"in this&&this.historicMoment!==i&&(0,l.w5)(e,t)}};return(0,r.Cg)([(0,n.MZ)()],o.prototype,"lastEditsEventDate",void 0),o=(0,r.Cg)([(0,n.$K)("esri.layers.mixins.EditBusLayer")],o),o}])},28032(e,t,i){i.d(t,{A:()=>a});var r=i(32198),o=i(69540),s=i(25482),n=i(91429),l=i(56400);let a=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,r.Cg)([(0,n.MZ)()],a.prototype,"creatorField",void 0),(0,r.Cg)([(0,n.MZ)()],a.prototype,"creationDateField",void 0),(0,r.Cg)([(0,n.MZ)()],a.prototype,"editorField",void 0),(0,r.Cg)([(0,n.MZ)()],a.prototype,"editDateField",void 0),(0,r.Cg)([(0,n.MZ)()],a.prototype,"realm",void 0),(0,r.Cg)([(0,n.MZ)((0,l.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,r.Cg)([(0,n.$K)("esri.layers.support.EditFieldsInfo")],a)},37352(e,t,i){i.d(t,{A:()=>a});var r,o=i(32198),s=i(7762),n=i(25482),l=i(91429);let a=r=class extends n.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new s.A}clone(){return new r({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=r=(0,o.Cg)([(0,l.$K)("esri.layers.support.LayerFloorInfo")],a)},45067(e,t,i){i.d(t,{A:()=>d});var r=i(32198),o=i(69540),s=i(66552),n=i(25482),l=i(91429);const a=new s.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new s.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let d=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,r.Cg)([(0,l.MZ)({json:{read:a.read,write:a.write}})],d.prototype,"cardinality",void 0),(0,r.Cg)([(0,l.MZ)({json:{name:"catalogID"}})],d.prototype,"catalogId",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],d.prototype,"composite",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],d.prototype,"id",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],d.prototype,"keyField",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],d.prototype,"keyFieldInRelationshipTable",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],d.prototype,"name",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],d.prototype,"relatedTableId",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],d.prototype,"relationshipTableId",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:u.read,write:u.write}})],d.prototype,"role",void 0),d=(0,r.Cg)([(0,l.$K)("esri.layers.support.Relationship")],d)},98205(e,t,i){i.d(t,{KZ:()=>l,eh:()=>n,gf:()=>s,of:()=>o});const r=Symbol("SizeVariableInstance");function o(e){return null!=e&&"object"==typeof e&&r in e}function s(e){return null!=e&&!isNaN(e)&&isFinite(e)}function n(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function l(e,t){const i=t||n(e),r=e.valueUnit||"unknown";return"unknown"===i?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===r?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}i.d(t,["uY",0,r])},41366(e,t,i){var r=i(32198),o=i(66552),s=i(53966),n=i(91429),l=i(93223);const a=(0,o.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",d="field";i.d(t,["K",0,e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&d||i&&u||null,t&&i&&s.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==d&&e!==u||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,r.Cg)([(0,n.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],i.prototype,"normalizationField",void 0),(0,r.Cg)([(0,n.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],i.prototype,"normalizationMaxValue",void 0),(0,r.Cg)([(0,n.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],i.prototype,"normalizationMinValue",void 0),(0,r.Cg)([(0,n.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],i.prototype,"normalizationTotal",void 0),(0,r.Cg)([(0,l.e)(a,{name:"parameters.normalizationType"})],i.prototype,"normalizationType",null),i=(0,r.Cg)([(0,n.$K)("esri.rest.support.NormalizationBinParametersMixin")],i),i},"Q",0,a])},95250(e,t,i){function r(e){return o(e,{CIMRGBColor:s,CIMCharacterMarker:n})}function o(e,t){if(null==e)return e;if(Array.isArray(e))return e.map(e=>o(e,t));if("object"==typeof e){if("type"in e&&"string"==typeof e.type&&t[e.type])return t[e.type](e);const i={};for(const[r,s]of Object.entries(e))i[r]=o(s,t);return i}return e}function s(e){const[t,i,r,o]=e.values;return[t,i,r,255*o/100]}function n(){return{type:"CIMVectorMarker",enable:!0,size:40,colorLocked:!1,anchorPointUnits:"Relative",frame:{xmin:-10,ymin:-10,xmax:10,ymax:10},markerGraphics:[{type:"CIMMarkerGraphic",textString:"■",geometry:{x:0,y:0},symbol:{type:"CIMTextSymbol",underline:!1,blockProgression:"TTB",depth3D:0,extrapolateBaselines:!0,flipAngle:90,fontEffects:"Normal",fontEncoding:"Unicode",haloSize:0,height:8,hinting:"Default",horizontalAlignment:"Center",kerning:!0,letterSpacing:10,letterWidth:100,ligatures:!1,lineGapType:"ExtraLeading",symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:[0,0,0,255]}]},symbol3DProperties:{type:"CIM3DSymbolProperties",dominantSizeAxis3D:"Z",rotationOrder3D:"XYZ",scaleZ:1,scaleY:1},textCase:"Normal",textDirection:"LTR",verticalAlignment:"Center",verticalGlyphOrientation:"Right",wordSpacing:100,billboardMode3D:"FaceNearPlane"}}],scaleSymbolsProportionally:!0,respectFrame:!0}}i.d(t,{S:()=>r})},93470(e,t,i){const r=[252,146,31,255],o={type:"esriSMS",style:"esriSMSCircle",size:6,color:r,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},s={type:"esriSLS",style:"esriSLSSolid",width:.75,color:r};i.d(t,["Cb",0,o,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,r,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,s])},20816(e,t,i){i.d(t,{We:()=>l,ZJ:()=>a,w5:()=>u});var r=i(11254);const o=(0,i(13069).vD)(),s=new Map,n=new Map;async function l(e,t,i){if(!e||!i)return!1;if(!t)return!0;const o=new URL(e).host;let n=s.get(o);if(!n){const t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");n=(await(0,r.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return n===t}async function a(e,t,r=!1){if(!e||!t)return!0;const s=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),l=n.get(s)?.entries();if(l)for(const[e,n]of l)if(n.name===t){const t=!n.stack?.hasForwardEdits();if(!t&&r){const[{deleteForwardEdits:t},{default:r}]=await Promise.all([i.e(2186).then(i.bind(i,32186)),i.e(2558).then(i.bind(i,32558))]),l=await t(s,e,new r({sessionId:o,moment:n.moment}));return l.success&&n.stack?.clearForwardEdits(),l.success}return t}return!0}function u(e,t){if(!e)return!1;const i=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),r=n.get(i)?.entries();if(r)for(const[e,i]of r)if(i.name===t)return"edit"===i.lockType;return!1}new Map,i.d(t,["TA",0,o,"Z3",0,s])}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2469],{69052(e,t,r){r.d(t,{hr:()=>i});var o=r(34727);class i{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return n(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,o.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+l(this.range,e-t,r)}minimalMonotonic(e,t,r){return n(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);const r=(t=this.normalize(t))-e,o=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(o)?r:o}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function n(e,t,r,o,i=0,n=!1){return(o-=i)<t?o+=l(e,t-o):o>r&&(o-=l(e,o-r)),n&&o===r&&(o=t),o+i}function l(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const a=new i(0,2*Math.PI),s=(new i(-Math.PI,Math.PI),new i(0,360));r.d(t,["ie",0,s,"uC",0,a])},93146(e,t,r){r.d(t,{z:()=>i});class o{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return null==this._promise&&(this._promise=this._import().then(async e=>(this.module=e,e))),this._promise}}function i(e){return new o(async()=>{const t=await e();return!1===t.isLoaded?.()&&await t.load(),t})}},52039(e,t,r){r.d(t,{O7:()=>u,el:()=>s});var o=r(69052),i=(r(49186),r(17676)),n=(r(5443),r(39829),r(82799),r(16930)),l=r(93146),a=(r(80754),r(21325));async function s(e,t,r){Array.isArray(e)||(e=[e]),null!=t&&"object"==typeof t&&"authMode"in t&&(r=t);let o=null;for(const t of e)o??=t?.spatialReference;if(!o)return e;const n=(0,a.Vp)(o);if(!n)return e;const[l,s]=n.valid;let u=!1;for(const t of e){if(!t)continue;if("point"===t.type){u||=t.x>=s,u||=t.x<=l;continue}const{extent:e}=t;if(null==e){u=!0;break}u||=e.xmin>=s,u||=e.xmin<=l,u||=e.xmax>=s,u||=e.xmax<=l}if(!u)return e;const[{foldInto360Range:d},c]=await(0,i.qr)(Promise.all([p.getImportPromise(),y.getImportPromise()]),r),m=c.fromSpatialReference(o);return e.map(e=>{if(null==e||"mesh"===e.type)return e;const t=c.fromGeometry(e),r=c.toGeometry(d(t,m),o);return"extent"===e.type&&1===r?.rings.length?r.extent:r})}const p=(0,l.z)(()=>r.e(4144).then(r.bind(r,4144))),y=(0,l.z)(()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(r.bind(r,78125)));function u(e,t,r){const o=(0,a.Vp)(r);if(null==o)return e;const[i,n]=o.valid,l=2*n;let s=0,p=0;t>n?s=Math.ceil(Math.abs(t-n)/l):t<i&&(s=-Math.ceil(Math.abs(t-i)/l)),e>n?p=Math.ceil(Math.abs(e-n)/l):e<i&&(p=-Math.ceil(Math.abs(e-i)/l));let y=e+(s-p)*l;const u=y-t;return u>n?y-=l:u<i&&(y+=l),y}function d(e){const t=(0,a.Vp)(e);if(null==t)return null;const[r,i]=t.valid;return new o.hr(r,i)}const c=d(n.A.WGS84);d(n.A.WebMercator),r.d(t,["Y_",0,c])},80754(e,t,r){r.d(t,{kS:()=>p,kd:()=>s});var o=r(82799),i=r(16930),n=r(60408),l=r(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new o.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new o.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new o.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new o.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function s(e,t){return Math.ceil((e-t)/(2*t))}function p(e,t){if((0,l.Ed)(e))for(const r of function(e){return(0,n.Bi)(e)?e.curveRings:e.curvePaths}(e))for(const e of r){if((0,l.aO)(e)){const[r,o]=e.c;r[0]+=t,o[0]+=t;continue}if((0,l.FG)(e)){const[r,o]=e.a;r[0]+=t,o[0]+=t;continue}if((0,l.n1)(e)){const[r,o,i]=e.b;r[0]+=t,o[0]+=t,i[0]+=t;continue}e[0]+=t}for(const r of function(e){return(0,n.Bi)(e)?e.rings:e.paths}(e))for(const e of r)e[0]+=t;return e}r.d(t,["j7",0,a])},96299(e,t,r){r.r(t),r.d(t,{default:()=>$});var o=r(32198),i=r(52106),n=r(7762),l=r(49186),a=r(4718),s=r(25728),p=r(93637),y=r(67076),u=r(91429),d=r(5443),c=r(99917),m=r(16930),f=r(19419),g=r(52039),h=r(21325),M=r(89808),w=r(99959);const C=Symbol("isMapNotesGraphicOriginSymbol");var b;class v extends w.A{get[(b=C,M.Q)](){return this.layer}constructor(e,t){super(),this[b]=!0,this.type="map-notes",this.layer=e,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}var S=r(18589),O=r(94194),x=r(4146),Z=r(33032),T=r(63074),N=r(34287),A=r(8303),R=r(25036),j=r(20437),I=r(94985),L=r(31593),z=r(53930),F=r(68249),J=r(36005),_=r(43937);function P(e){return"markup"===e.featureCollectionType||e.layers.some(e=>null!=e.layerDefinition.visibilityField||!G(e))}function G({layerDefinition:e,featureSet:t}){const r=e.geometryType??t.geometryType;return q.find(t=>r===t.geometryTypeJSON&&e.drawingInfo?.renderer?.symbol?.type===t.identifyingSymbol.type)}function D(){return new d.A({xmin:-180,ymin:-90,xmax:180,ymax:90})}const K=new j.A({name:"OBJECTID",alias:"OBJECTID",type:"oid",nullable:!1,editable:!1}),E=new j.A({name:"title",alias:"Title",type:"string",nullable:!0,editable:!0,length:255}),q=[{geometryType:"polygon",geometryTypeJSON:"esriGeometryPolygon",id:"polygonLayer",layerId:0,title:"Polygons",identifyingSymbol:(new I.A).toJSON()},{geometryType:"polyline",geometryTypeJSON:"esriGeometryPolyline",id:"polylineLayer",layerId:1,title:"Polylines",identifyingSymbol:(new L.A).toJSON()},{geometryType:"multipoint",geometryTypeJSON:"esriGeometryMultipoint",id:"multipointLayer",layerId:2,title:"Multipoints",identifyingSymbol:(new z.A).toJSON()},{geometryType:"point",geometryTypeJSON:"esriGeometryPoint",id:"pointLayer",layerId:3,title:"Points",identifyingSymbol:(new z.A).toJSON()},{geometryType:"point",geometryTypeJSON:"esriGeometryPoint",id:"textLayer",layerId:4,title:"Text",identifyingSymbol:(new F.A).toJSON()}];let k=class extends((0,T.dM)((0,R.j)((0,N.q)((0,A.A)((0,s.M)(x.A)))))){constructor(e){super(e),this.capabilities={operations:{supportsMapNotesEditing:!0}},this.featureCollections=null,this.featureCollectionJSON=null,this.featureCollectionType="notes",this.legendEnabled=!1,this.listMode="hide-children",this.minScale=0,this.maxScale=0,this.spatialReference=m.A.WGS84,this.sublayers=new n.A(q.map(e=>new B({id:e.id,layerId:e.layerId,title:e.title,layer:this}))),this.title="Map Notes",this.type="map-notes",this.visibilityMode="inherited"}readCapabilities(e,t,r){return{operations:{supportsMapNotesEditing:!P(t)&&"portal-item"!==r?.origin}}}readFeatureCollections(e,t,r){if(!P(t))return null;const o=t.layers.map(e=>{const t=new S.default;return t.read(e,r),t});return new n.A({items:o})}readLegacyfeatureCollectionJSON(e,t){return P(t)?(0,a.o8)(t.featureCollection):null}get fullExtent(){const e=this.spatialReference,t=(0,f.Ie)();return null!=this.sublayers?this.sublayers.forEach(({fullBounds:e})=>null!=e?(0,f.fT)(t,e,t):t,t):this.featureCollectionJSON?.layers.some(e=>e.layerDefinition.extent)&&this.featureCollectionJSON.layers.forEach(r=>{const o=(0,c.projectOrLoad)(r.layerDefinition.extent,e).geometry;null!=o&&(0,f.fT)(t,o,t)}),(0,f.aI)(t,f.qv)?(0,c.projectOrLoad)(D(),e).geometry:(0,f.w1)(t,e)}readMinScale(e,t){for(const e of t.layers)if(null!=e.layerDefinition.minScale)return e.layerDefinition.minScale;return 0}readMaxScale(e,t){for(const e of t.layers)if(null!=e.layerDefinition.maxScale)return e.layerDefinition.maxScale;return 0}get multipointLayer(){return this._findSublayer("multipointLayer")}get pointLayer(){return this._findSublayer("pointLayer")}get polygonLayer(){return this._findSublayer("polygonLayer")}get polylineLayer(){return this._findSublayer("polylineLayer")}readSpatialReference(e,t){return t.layers.length?m.A.fromJSON(t.layers[0].layerDefinition.spatialReference):m.A.WGS84}readSublayers(e,t,r){if(P(t))return null;const o=[];let l=t.layers.reduce((e,t)=>Math.max(e,t.layerDefinition.id??-1),-1)+1;for(const e of t.layers){const{layerDefinition:t,featureSet:r}=e,n=t.id??l++,a=G(e);if(null!=a){const e=new B({id:a.id,title:t.name,layerId:n,layer:this,graphics:r.features.map(({geometry:e,symbol:t,attributes:r,popupInfo:o})=>i.A.fromJSON({attributes:r,geometry:e,symbol:t,popupTemplate:o}))});o.push(e)}}return new n.A(o)}writeSublayers(e,t,r,o){const{minScale:i,maxScale:n}=this;if(null==e)return;const a=e.some(e=>e.graphics.length>0);if(!this.capabilities.operations.supportsMapNotesEditing)return void(a&&o?.messages?.push(new l.A("map-notes-layer:editing-not-supported","New map notes cannot be added to this layer")));const s=[];let y=this.spatialReference.toJSON();e:for(const t of e)for(const e of t.graphics)if(null!=e.geometry){y=e.geometry.spatialReference.toJSON();break e}for(const t of q){const r=e.find(e=>t.id===e.id);this._writeMapNoteSublayer(s,r,t,i,n,y,o)}(0,p.sM)("featureCollection.layers",s,t)}get textLayer(){return this._findSublayer("textLayer")}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Feature Collection"]},e)),Promise.resolve(this)}read(e,t){"featureCollection"in e&&(e=(0,a.o8)(e),Object.assign(e,e.featureCollection)),super.read(e,t)}async beforeSave(){if(null==this.sublayers)return;let e=null;const t=[];for(const r of this.sublayers)for(const o of r.graphics)if(null!=o.geometry){const r=o.geometry;e?(0,h.aI)(r.spatialReference,e)||((0,c.canProjectWithoutEngine)(r.spatialReference,e)||(0,c.isLoaded)()||await(0,c.load)(),o.geometry=(0,c.project)(r,e)):e=r.spatialReference,t.push(o)}const r=await(0,g.el)(t.map(e=>e.geometry));t.forEach((e,t)=>e.geometry=r[t])}_findSublayer(e){return null==this.sublayers?null:this.sublayers?.find(t=>t.id===e)??null}_writeMapNoteSublayer(e,t,r,o,i,n,l){const s=[];if(null!=t){for(const e of t.graphics)this._writeMapNote(s,e,r.geometryType,l);this._normalizeObjectIds(s,K),e.push({layerDefinition:{name:t.title,drawingInfo:{renderer:{type:"simple",symbol:(0,a.o8)(r.identifyingSymbol)}},id:t.layerId,geometryType:r.geometryTypeJSON,minScale:o,maxScale:i,objectIdField:"OBJECTID",fields:[K.toJSON(),E.toJSON()],spatialReference:n},featureSet:{features:s,geometryType:r.geometryTypeJSON}})}}_writeMapNote(e,t,r,o){if(null==t)return;const{geometry:i,symbol:n,popupTemplate:l}=t;if(null==i)return;if(i.type!==r)return void o?.messages?.push(new y.A("map-notes-layer:invalid-geometry-type",`Geometry "${i.type}" cannot be saved in "${r}" layer`,{graphic:t}));if(null==n)return void o?.messages?.push(new y.A("map-notes-layer:no-symbol","Skipping map notes with no symbol",{graphic:t}));const a={attributes:{...t.attributes},geometry:i.toJSON(),symbol:n.toJSON()};null!=l&&(a.popupInfo=l.toJSON()),e.push(a)}_normalizeObjectIds(e,t){const r=t.name;let o=(0,Z.H)(r,e)+1;const i=new Set;for(const t of e){t.attributes||(t.attributes={});const{attributes:e}=t;(null==e[r]||i.has(e[r]))&&(e[r]=o++),i.add(e[r])}}};(0,o.Cg)([(0,u.MZ)({readOnly:!0})],k.prototype,"capabilities",void 0),(0,o.Cg)([(0,J.w)(["portal-item","web-map"],"capabilities",["layers"])],k.prototype,"readCapabilities",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],k.prototype,"featureCollections",void 0),(0,o.Cg)([(0,J.w)(["web-map","portal-item"],"featureCollections",["layers"])],k.prototype,"readFeatureCollections",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0,json:{origins:{"web-map":{write:{enabled:!0,target:"featureCollection"}}}}})],k.prototype,"featureCollectionJSON",void 0),(0,o.Cg)([(0,J.w)(["web-map","portal-item"],"featureCollectionJSON",["featureCollection"])],k.prototype,"readLegacyfeatureCollectionJSON",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!0,write:{enabled:!0,ignoreOrigin:!0}}})],k.prototype,"featureCollectionType",void 0),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],k.prototype,"fullExtent",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0,json:{origins:{"web-map":{write:{target:"featureCollection.showLegend",overridePolicy(){return{enabled:null!=this.featureCollectionJSON}}}}}}})],k.prototype,"legendEnabled",void 0),(0,o.Cg)([(0,u.MZ)({type:["show","hide","hide-children"]})],k.prototype,"listMode",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],k.prototype,"minScale",void 0),(0,o.Cg)([(0,J.w)(["web-map","portal-item"],"minScale",["layers"])],k.prototype,"readMinScale",null),(0,o.Cg)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],k.prototype,"maxScale",void 0),(0,o.Cg)([(0,J.w)(["web-map","portal-item"],"maxScale",["layers"])],k.prototype,"readMaxScale",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],k.prototype,"multipointLayer",null),(0,o.Cg)([(0,u.MZ)({value:"ArcGISFeatureLayer",type:["ArcGISFeatureLayer"]})],k.prototype,"operationalLayerType",void 0),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],k.prototype,"pointLayer",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],k.prototype,"polygonLayer",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],k.prototype,"polylineLayer",null),(0,o.Cg)([(0,u.MZ)({type:m.A})],k.prototype,"spatialReference",void 0),(0,o.Cg)([(0,J.w)(["web-map","portal-item"],"spatialReference",["layers"])],k.prototype,"readSpatialReference",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0,json:{origins:{"web-map":{write:{ignoreOrigin:!0}}}}})],k.prototype,"sublayers",void 0),(0,o.Cg)([(0,J.w)("web-map","sublayers",["layers"])],k.prototype,"readSublayers",null),(0,o.Cg)([(0,_.K)("web-map","sublayers")],k.prototype,"writeSublayers",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],k.prototype,"textLayer",null),(0,o.Cg)([(0,u.MZ)()],k.prototype,"title",void 0),(0,o.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1}})],k.prototype,"type",void 0),k=(0,o.Cg)([(0,u.$K)("esri.layers.MapNotesLayer")],k);let B=class extends O.A{constructor(e){super(e),this.visibilityMode="inherited"}initialize(){for(const e of this.graphics)e.sourceLayer=this.layer;this.graphics.on("after-add",e=>{e.item.sourceLayer=this.layer,e.item.origin=this.graphicOrigin}),this.graphics.on("after-remove",e=>{e.item.sourceLayer=null,e.item.origin=null})}get fullExtent(){const e=this.layer?.spatialReference,t=this.fullBounds;return e?null==t?(0,c.projectOrLoad)(D(),e).geometry:(0,f.w1)(t,e):null}get fullBounds(){const e=this.layer?.spatialReference;if(!e)return null;const t=(0,f.Ie)();return this.graphics.forEach(r=>{const o=null!=r.geometry?(0,c.projectOrLoad)(r.geometry,e).geometry:null;null!=o&&(0,f.fT)(t,"point"===o.type?o:o.extent,t)}),(0,f.aI)(t,f.qv)?null:t}get graphicOrigin(){return new v(this.layer,this)}get sublayers(){return this.graphics}};(0,o.Cg)([(0,u.MZ)({readOnly:!0})],B.prototype,"fullExtent",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],B.prototype,"fullBounds",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],B.prototype,"graphicOrigin",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],B.prototype,"sublayers",null),(0,o.Cg)([(0,u.MZ)()],B.prototype,"layer",void 0),(0,o.Cg)([(0,u.MZ)()],B.prototype,"layerId",void 0),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],B.prototype,"visibilityMode",void 0),B=(0,o.Cg)([(0,u.$K)("esri.layers.MapNotesLayer.MapNotesSublayer")],B);const $=k},33032(e,t,r){function o(e,t){let r=0;for(const o of t){const t=o.attributes?.[e];"number"==typeof t&&isFinite(t)&&(r=Math.max(r,t))}return r}r.d(t,{H:()=>o})},52136(e,t,r){var o=r(32198),i=r(91429);r.d(t,["p",0,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,i.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,o.Cg)([(0,i.$K)("esri.layers.mixins.APIKeyMixin")],r),r}])},28032(e,t,r){r.d(t,{A:()=>s});var o=r(32198),i=r(69540),n=r(25482),l=r(91429),a=r(56400);let s=class extends((0,i.OU)(n.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,o.Cg)([(0,l.MZ)()],s.prototype,"creatorField",void 0),(0,o.Cg)([(0,l.MZ)()],s.prototype,"creationDateField",void 0),(0,o.Cg)([(0,l.MZ)()],s.prototype,"editorField",void 0),(0,o.Cg)([(0,l.MZ)()],s.prototype,"editDateField",void 0),(0,o.Cg)([(0,l.MZ)()],s.prototype,"realm",void 0),(0,o.Cg)([(0,l.MZ)((0,a.P6)("dateFieldsTimeReference",!0))],s.prototype,"timeZone",void 0),s=(0,o.Cg)([(0,l.$K)("esri.layers.support.EditFieldsInfo")],s)},33143(e,t,r){r.d(t,{A:()=>u});var o=r(32198),i=r(69540),n=r(25482),l=r(91429),a=r(8631),s=r(29005),p=r(36005),y=r(43937);let u=class extends((0,i.OU)(n.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,a.r)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"id",void 0),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"domains",void 0),(0,o.Cg)([(0,p.w)("domains")],u.prototype,"readDomains",null),(0,o.Cg)([(0,y.K)("domains")],u.prototype,"writeDomains",null),(0,o.Cg)([(0,l.MZ)({type:[s.A],json:{write:!0}})],u.prototype,"templates",void 0),u=(0,o.Cg)([(0,l.$K)("esri.layers.support.FeatureType")],u)},37352(e,t,r){r.d(t,{A:()=>s});var o,i=r(32198),n=r(7762),l=r(25482),a=r(91429);let s=o=class extends l.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new n.A}clone(){return new o({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:{isRequired:!0}}})],s.prototype,"floorField",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],s.prototype,"viewAllMode",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],s.prototype,"viewAllLevelIds",void 0),s=o=(0,i.Cg)([(0,a.$K)("esri.layers.support.LayerFloorInfo")],s)},45067(e,t,r){r.d(t,{A:()=>y});var o=r(32198),i=r(69540),n=r(66552),l=r(25482),a=r(91429);const s=new n.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),p=new n.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let y=class extends((0,i.OU)(l.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,o.Cg)([(0,a.MZ)({json:{read:s.read,write:s.write}})],y.prototype,"cardinality",void 0),(0,o.Cg)([(0,a.MZ)({json:{name:"catalogID"}})],y.prototype,"catalogId",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],y.prototype,"composite",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],y.prototype,"id",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],y.prototype,"keyField",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],y.prototype,"keyFieldInRelationshipTable",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],y.prototype,"name",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],y.prototype,"relatedTableId",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],y.prototype,"relationshipTableId",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:p.read,write:p.write}})],y.prototype,"role",void 0),y=(0,o.Cg)([(0,a.$K)("esri.layers.support.Relationship")],y)},22671(e,t,r){r.d(t,{A:()=>M});var o,i=r(32198),n=r(52106),l=r(66552),a=r(25482),s=r(4718),p=r(91429),y=r(16930),u=r(60408),d=r(65864),c=r(50498),m=r(20437),f=r(36005),g=r(43937);const h=new l.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let M=o=class extends a.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,n.A)}writeGeometryType(e,t,r,o){if(e)return void h.write(e,t,r,o);const{features:i}=this;if(i)for(const e of i)if(null!=e?.geometry)return void h.write(e.geometry.type,t,r,o)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,o=(0,d.rS)(e);return o&&!r&&t.spatialReference&&(o.spatialReference=y.A.fromJSON(t.spatialReference)),o}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new o(this.cloneProperties())}cloneProperties(){return(0,s.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const o=t.features[r];if(o.geometry){const t=e?.[r];o.geometry=t?.toJSON()||o.geometry}}return t}quantize(e){const{scale:[t,r],translate:[o,i]}=e,n=this.features,l=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-o)/t),e=>Math.round((i-e)/r));for(let e=0,t=n.length;e<t;e++)l?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[o,i],scale:[n,l]}=r;let a=null,s=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;s=r=>null==r?r:r*t+e}const p=this._getHydrationFunction(e,e=>e*n+o,e=>i-e*l,a,s);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const o=y.A.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const n=e[t],l=r.fromJSON(n),a=n.geometry?.spatialReference;null==l.geometry||a||(l.geometry.spatialReference=o);const s=n.aggregateGeometries,p=l.aggregateGeometries;if(s&&null!=p)for(const e in p){const t=p[e],r=s[e],i=r?.spatialReference;null==t||i||(t.spatialReference=o)}i.push(l)}return i}_quantizePoints(e,t,r){let o,i;const n=[];for(let l=0,a=e.length;l<a;l++){const a=e[l];if(l>0){const e=t(a[0]),l=r(a[1]);e===o&&l===i||(n.push([e-o,l-i]),o=e,i=l)}else o=t(a[0]),i=r(a[1]),n.push([o,i])}return n.length>0?n:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const o=(0,u.Bi)(e)?e.rings:e.paths,i=[];for(let e=0,n=o.length;e<n;e++){const n=o[e],l=this._quantizePoints(n,t,r);l&&i.push(l)}return i.length>0?((0,u.Bi)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{const o=this._quantizePoints(e.points,t,r);return o&&o.length>0?(e.points=o,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,o,i){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),o&&(e.z=o(e.z))}:"polyline"===e||"polygon"===e?e=>{const n=(0,u.Bi)(e)?e.rings:e.paths;let l,a;for(let e=0,o=n.length;e<o;e++){const o=n[e];for(let e=0,i=o.length;e<i;e++){const i=o[e];e>0?(l+=i[0],a+=i[1]):(l=i[0],a=i[1]),i[0]=t(l),i[1]=r(a)}}if(o&&i)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=o(r[2]),r[3]=i(r[3])}}else if(o)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=o(r[2])}}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),o&&null!=e.zmax&&null!=e.zmin&&(e.zmax=o(e.zmax),e.zmin=o(e.zmin)),i&&null!=e.mmax&&null!=e.mmin&&(e.mmax=i(e.mmax),e.mmin=i(e.mmin))}:"multipoint"===e?e=>{const n=e.points;let l,a;for(let e=0,o=n.length;e<o;e++){const o=n[e];e>0?(l+=o[0],a+=o[1]):(l=o[0],a=o[1]),o[0]=t(l),o[1]=r(a)}if(o&&i)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=o(t[2]),t[3]=i(t[3])}else if(o)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=o(t[2])}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=i(t[2])}}:null}};(0,i.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],M.prototype,"displayFieldName",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"exceededTransferLimit",void 0),(0,i.Cg)([(0,p.MZ)({type:[n.A],json:{write:!0}})],M.prototype,"features",void 0),(0,i.Cg)([(0,f.w)("features")],M.prototype,"readFeatures",null),(0,i.Cg)([(0,p.MZ)({type:[m.A],json:{write:!0}})],M.prototype,"fields",void 0),(0,i.Cg)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:h.read}}})],M.prototype,"geometryType",void 0),(0,i.Cg)([(0,g.K)("geometryType")],M.prototype,"writeGeometryType",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"hasM",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"hasZ",void 0),(0,i.Cg)([(0,p.MZ)({types:c.yR,json:{write:!0}})],M.prototype,"queryGeometry",void 0),(0,i.Cg)([(0,f.w)("queryGeometry")],M.prototype,"readQueryGeometry",null),(0,i.Cg)([(0,p.MZ)({type:y.A,json:{write:!0}})],M.prototype,"spatialReference",void 0),(0,i.Cg)([(0,g.K)("spatialReference")],M.prototype,"writeSpatialReference",null),(0,i.Cg)([(0,p.MZ)({json:{write:!0}})],M.prototype,"transform",void 0),M=o=(0,i.Cg)([(0,p.$K)("esri.rest.support.FeatureSet")],M),M.prototype.toJSON.isDefaultToJSON=!0},41366(e,t,r){var o=r(32198),i=r(66552),n=r(53966),l=r(91429),a=r(93223);const s=(0,i.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),p="percent-of-total",y="field";r.d(t,["K",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&y||r&&p||null,t&&r&&n.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==y&&e!==p||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,o.Cg)([(0,l.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,o.Cg)([(0,a.e)(s,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,o.Cg)([(0,l.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r},"Q",0,s])}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9953],{9775(e,t,r){r.d(t,{A:()=>o});var s=r(62788),n=r(95488);class o{constructor(e=e=>e.values().next().value){this._peeker=e,this._observable=new n.I,this._items=new Set}get length(){return(0,s.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let e;for(e of this._items);return e}peek(){if(0!==this.length)return this._peeker(this._items)}push(e){this.contains(e)||(this._items.add(e),this._observable.notify())}contains(e){return(0,s.gc)(this._observable),this._items.has(e)}pop(){if(0===this.length)return;const e=this.peek();return this._items.delete(e),this._observable.notify(),e}popLast(){if(0===this.length)return;const e=this.last();return this._items.delete(e),this._observable.notify(),e}remove(e){this.contains(e)&&(this._items.delete(e),this._observable.notify())}filter(e){const t=this.length;return this._items.forEach(t=>{e(t)||this._items.delete(t)}),t!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,s.gc)(this._observable),yield*this._items}}},10382(e,t,r){r.d(t,{A:()=>c});var s=r(36563),n=(r(44208),r(17676)),o=r(9775),i=r(72457),a=r(52268),l=r(61322);class c{constructor(){this._clients=new Array,this._ongoingJobsQueue=new o.A,this._ongoingLowPriorityJobsQueue=new o.A,this._onClientConnectedCallbacks=new Set,this._clientOpenOptions=null,this._portSource=null,this._onClose=null,this._isProvisioningClient=!1,this._isClosed=!1}destroy(){this.close()}[Symbol.dispose](){this.destroy()}get closed(){return this._isClosed}async open(e,t,r){this._isClosed=!1,this._clientOpenOptions=t,this._portSource=e[Symbol.iterator](),this._onClose=r,this._clients.length=0,await this._tryAllocateNewClient()}broadcast(e,t,r){return this._clients.map(s=>s.invoke(e,t,r))}close(){if(this._isClosed)return;let e;for(this._isClosed=!0;e=this._ongoingJobsQueue.pop();)e.resolver.reject((0,n.NK)(`Worker closing, aborting job calling '${e.methodName}'`));for(;e=this._ongoingLowPriorityJobsQueue.pop();)e.resolver.reject((0,n.NK)(`Worker closing, aborting job calling '${e.methodName}'`));for(const e of this._clients)e.close();this._clients.length=0,this._onClose?.(),this._onClose=null,this._portSource?.return?.(),this._portSource=null,this._onClientConnectedCallbacks.clear(),(0,i.h)(this)}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){const s=Promise.withResolvers();return(1===r?.jobPriority?this._ongoingLowPriorityJobsQueue:this._ongoingJobsQueue).push({methodName:e,data:t,invokeOptions:r,resolver:s}),this._provisionClientIfNeeded(),this._signalClientsJobAdded(),s.promise}createInvokeProxy(e){return(0,a.L)(this,e)}on(e,t){return(0,s.vE)(this._clients.map(r=>r.on(e,t)))}onClientConnected(e){this._onClientConnectedCallbacks.add(e);for(const t of this._clients)t&&e(t);return(0,s.hA)(()=>{this._onClientConnectedCallbacks.delete(e)})}openPorts(){return this._clients.map(e=>e.openPort())}get test(){}async _addClient(e,t){const r=await e;if((0,n.G4)(t)||this._isClosed)throw(0,n.NK)();const s=new l.default(r,t,this._ongoingJobsQueue,this._ongoingLowPriorityJobsQueue);this._clients.push(s);for(const e of this._onClientConnectedCallbacks)e(s);s.jobAdded()}_signalClientsJobAdded(){for(const e of this._clients)e.jobAdded()}_provisionClientIfNeeded(){const e=this._ongoingJobsQueue.length>0||this._ongoingLowPriorityJobsQueue.length>0,t=this._clients.some(e=>e&&!e.isBusy());e&&!t&&(0,n.QZ)(this._tryAllocateNewClient())}async _tryAllocateNewClient(){const e=this._clientOpenOptions;if(!this._portSource||this._isClosed||!e||this._isProvisioningClient)return;const t=this._portSource.next();if(t.done)this._portSource=null;else{this._isProvisioningClient=!0;try{await this._addClient(t.value,e)}finally{this._isProvisioningClient=!1}}}}},72457(e,t,r){r.d(t,{h:()=>o,k:()=>n});const s=new FinalizationRegistry(e=>{e.close()});function n(e,t){s.register(e,t,t)}function o(e){s.unregister(e)}},29953(e,t,r){r.d(t,{ho:()=>F,N1:()=>z});var s=r(49186),n=r(36563),o=r(44208),i=r(91869),a=r(17676),l=r(10382),c=r(72457),u=r(61322),d=r(53966),h=r(97768),f=r(11254),g=r(84952);const p={async request(e,t){const r=e.options,s=r.responseType;r.signal=t?.signal,r.responseType="native"===s||"native-request-init"===s?"native-request-init":s&&["blob","json","text"].includes(s)&&(0,g.sC)(e.url)?.after?s:"array-buffer";const n=await(0,f.A)(e.url,r),o={data:n.data,httpStatus:n.httpStatus,ssl:n.ssl};switch(n.requestOptions?.responseType){case"native-request-init":return delete o.data.signal,o;case"blob":o.data=await o.data.arrayBuffer();break;case"json":o.data=(new TextEncoder).encode(JSON.stringify(o.data)).buffer;break;case"text":o.data=(new TextEncoder).encode(o.data).buffer}return{result:o,transferList:[o.data]}}};var m=r(8341),y=r(2741),b=r(92602),w=r(79783),_=r(70333);r(87811);const k={};var v=r(26390);class A{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach(t=>{this[t]=(...r)=>e[t](...r)})}}class C{constructor(){this._dispatcher=new A,this._workerPostMessage({type:m.Go.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,v.d)(()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))})}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,r){this._dispatcher.addEventListener(e,t,r)}removeEventListener(e,t,r){this._dispatcher.removeEventListener(e,t,r)}_workerPostMessage(e){(0,v.d)(()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))})}async _workerMessageHandler(e){const t=(0,m.VI)(e);if(t&&t.type===m.Go.OPEN){const{modulePath:e,jobId:r}=t;let s=await u.default.loadWorker(e);s||(s=await(import(e)));const n=u.default.connect(s);this._workerPostMessage({type:m.Go.OPENED,jobId:r,data:n})}}}var P=r(18357);const E=()=>d.A.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:x}=m.Go;let N,L;const O="Failed to create Worker. Fallback to execute module in main thread";async function S(e){return new Promise(t=>{function r(n){const o=(0,m.VI)(n);o&&o.type===x&&(e.removeEventListener("message",r),e.removeEventListener("error",s),t(e))}function s(t){t.preventDefault(),e.removeEventListener("message",r),e.removeEventListener("error",s),E().warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new C).addEventListener("message",r),e.addEventListener("error",s)}e.addEventListener("message",r),e.addEventListener("error",s)})}let M=0;const{ABORT:I,INVOKE:j,OPEN:J,OPENED:R,RESPONSE:U}=m.Go;class q{static async create(e){const t=await async function(){if(!(0,o.A)("esri-workers"))return S(new C);if(!N&&!L)try{const e='"use strict";let globalId=0;const outgoing=new Map,configuration={CONFIGURATION};self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}self.invokeStaticMessage=(e,o,r)=>{const t=r&&r.signal,n=globalId++;let s=null;return new Promise((r,i)=>{if(t){if(t.aborted)return i(createAbortError());s=()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))},t.addEventListener("abort",s)}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})}).finally(()=>{t&&t.removeEventListener("abort",s)})};let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,fullVersion:r}=configuration.kernelInfo,{revision:t,fullVersion:n,version:s}=e.kernelInfo;esriConfig.assetsPath!==esriConfig.defaultAssetsPath&&o!==t&&console.warn(`Version mismatch detected between ArcGIS Maps SDK for JavaScript modules and assets. For more information visit https://esriurl.com/using-local-assets.\nModules version: ${r}\nAssets version: ${n??s}\nAssets path: ${esriConfig.assetsPath}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let t;function n(e){const o=t.connect(e);self.postMessage({type:2,jobId:r,data:o},[o])}"function"==typeof define&&define.amd?require([workerPath],e=>{t=e.default||e,checkWorkerRevision(t),t.loadWorker(o.modulePath).then(e=>e||new Promise(e=>{require([o.modulePath],e)})).then(n)}):"System"in self&&"function"==typeof System.import?System.import(workerPath).then(e=>(t=e.default,checkWorkerRevision(t),t.loadWorker(o.modulePath))).then(e=>e||System.import(o.modulePath)).then(n):esriConfig.workers.useDynamicImport?import(workerPath).then(e=>{t=e.default||e,checkWorkerRevision(t),t.loadWorker(o.modulePath).then(e=>e||import(o.modulePath)).then(n)}):(self.RemoteClient||importScripts(workerPath),t=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(t),t.loadWorker(o.modulePath).then(n));break;case 3:if(outgoing.has(r)){const s=outgoing.get(r);outgoing.delete(r),o.error?s.reject(JSON.parse(o.error)):s.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.split("{CONFIGURATION}").join(function(){let e;if(null!=b.A.default){const t={...b.A};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(b.A));e.assetsPath=(0,g.s2)(e.assetsPath),e.defaultAssetsPath=e.defaultAssetsPath?(0,g.s2)(e.defaultAssetsPath):void 0,e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,w.JK)(),e.has={"esri-csp-restrictions":(0,o.A)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,o.A)("esri-2d-update-debug"),"esri-2d-annotation-dimension-debug":(0,o.A)("esri-2d-annotation-dimension-debug"),"esri-2d-log-updating":!1,"esri-2d-complex-shaping":(0,o.A)("esri-2d-complex-shaping"),"esri-2d-force-complex-shaping":(0,o.A)("esri-2d-force-complex-shaping"),"esri-2d-stabilize-glyphs":(0,o.A)("esri-2d-stabilize-glyphs"),"featurelayer-pbf":(0,o.A)("featurelayer-pbf"),"featurelayer-simplify-thresholds":(0,o.A)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,o.A)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,o.A)("featurelayer-simplify-mobile-factor"),"featurelayer-query-max-depth":(0,o.A)("featurelayer-query-max-depth"),"featurelayer-query-max-page-size":(0,o.A)("featurelayer-query-max-page-size"),"featurelayer-query-tile-max-features":(0,o.A)("featurelayer-query-tile-max-features"),"featurelayer-query-tile-concurrency":(0,o.A)("featurelayer-query-tile-concurrency"),"featurelayer-query-pausing-enabled":(0,o.A)("featurelayer-query-pausing-enabled"),"featurelayer-snapshot-concurrency":(0,o.A)("featurelayer-snapshot-concurrency"),"featurelayer-snapshot-enabled":(0,o.A)("featurelayer-snapshot-enabled"),"featurelayer-pixel-buffering-enabled":(0,o.A)("featurelayer-pixel-buffering-enabled"),"parquetlayer-full-query-feature-count":(0,o.A)("parquetlayer-full-query-feature-count"),"parquetlayer-cache-enabled":(0,o.A)("parquetlayer-cache-enabled"),"parquetlayer-legacy-field-overrides-enabled":(0,o.A)("parquetlayer-legacy-field-overrides-enabled"),"esri-atomics":(0,o.A)("esri-atomics"),"esri-shared-array-buffer":(0,o.A)("esri-shared-array-buffer"),"esri-tiles-debug":(0,o.A)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,o.A)("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":(0,o.A)("feature-polyline-generalization-factor"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,g.s2)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,g.s2)(e.workers.workerPath):e.workers.workerPath=(0,g.s2)((0,y.s)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=(0,o.A)("esri-esbuild-build");const t=b.A.workers.loaderConfig,r=function(e){const t={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages?.slice()||[],paths:{...k.paths,...e.paths}};return e.hasOwnProperty("async")||(t.async=!0),e.hasOwnProperty("isDebug")||(t.isDebug=!1),e.baseUrl||(t.baseUrl=k.baseUrl),t}({baseUrl:t?.baseUrl,locale:(0,w.JK)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...t?.has},map:{...t?.map},paths:{...t?.paths},packages:t?.packages||[]}),s={buildDate:P.$,fullVersion:_.ol,revision:P.Q};return JSON.stringify({esriConfig:e,loaderConfig:r,kernelInfo:s})}());N=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){L=e||{}}let e;if(N)try{e=new Worker(N,{name:"esri-worker-"+M++})}catch(t){E().warn(O,L),e=new C}else E().warn(O,L),e=new C;return S(e)}();return new q(t,e)}constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",e=>{e.preventDefault(),d.A.getLogger("esri.core.workers.WorkerOwner").error(e)})}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:r}=t,s=(0,m.Jc)();return new Promise((t,n)=>{const o={resolve:t,reject:n,abortHandle:(0,a.NY)(r,()=>{this._outJobs.delete(s),this._post({type:I,jobId:s})})};this._outJobs.set(s,o),this._post({type:J,jobId:s,modulePath:e})})}_onMessage(e){const t=(0,m.VI)(e);if(t)switch(t.type){case R:this._onOpenedMessage(t);break;case U:this._onResponseMessage(t);break;case I:this._onAbortMessage(t);break;case j:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,s=t.get(r);s&&(s.controller&&s.controller.abort(),t.delete(r))}_onInvokeMessage(e){const{methodName:t,jobId:r,data:s,abortable:n}=e,o=n?new AbortController:null,i=this._inJobs,l=p[t];let c;try{if("function"!=typeof l)throw new TypeError(`${t} is not a function`);c=l.call(null,s,{signal:o?o.signal:null})}catch(e){return void this._post({type:U,jobId:r,error:(0,m.mF)(e)})}(0,a.$X)(c)?(i.set(r,{controller:o,promise:c}),c.then(e=>{i.has(r)&&(i.delete(r),this._post({type:U,jobId:r},e))},e=>{i.has(r)&&(i.delete(r),e||(e={message:"Error encountered at method"+t}),(0,a.zf)(e)||this._post({type:U,jobId:r,error:(0,m.mF)(e||{message:`Error encountered at method ${t}`})}))})):this._post({type:U,jobId:r},c)}_onOpenedMessage(e){const{jobId:t,data:r}=e,s=this._outJobs.get(t);s&&(this._outJobs.delete(t),(0,h.xt)(s.abortHandle),s.resolve(r))}_onResponseMessage(e){const{jobId:t,error:r,data:n}=e,o=this._outJobs.get(t);o&&(this._outJobs.delete(t),(0,h.xt)(o.abortHandle),r?o.reject(s.A.fromJSON(JSON.parse(r))):o.resolve(n))}_post(e,t,r){return(0,m.u1)(this.worker,e,t,r)}}const $=[],H=new Map;let W=function(){const e=(0,o.A)("min-workers-pool-size")??2,t=(0,o.A)("max-workers-pool-size")??8,r=(0,o.A)("host-browser")&&void 0!==navigator.hardwareConcurrency?navigator.hardwareConcurrency-1:t;return Math.min(Math.max(e,r),t)}(),D=0;async function z(e,t={},r){const s=new l.A,{registryTarget:n,...o}=t;return await s.open(e,o,r),n&&(0,c.k)(n,s),s}async function F(e,t={}){if("string"!=typeof e)throw new s.A("workers:undefined-module","modulePath is missing");let r=t.strategy||"distributed";(0,o.A)("host-webworker")&&!(0,o.A)("esri-workers")&&(r="local");const l=(0,i.tE)(H,e,()=>new Q(e));return"local"===r?async function({modulePath:e},t){let r=await u.default.loadWorker(e);r||(r=await(import(e))),(0,a.Te)(t.signal);const s=t.client||r,n=u.default.connect(r,t.schedule);return await z([n],{...t,client:s})}(l,t):async function(e,t){await async function(){if(K)return K;T=new AbortController;const e=[];for(let t=0;t<W;t++){const r=q.create(t).then(e=>($[t]=e,e));e.push(r)}return K=Promise.all(e),K}(),(0,a.Te)(t.signal);const r=[];return z(function*(e,t,r,s){const n=new Set;for(let o=0;o<t;o++){const t=e.getNextProxyId(e=>!n.has(e));if(null==t)break;n.add(t),s.push(e.useProxy(t)),yield $[t].open(e.modulePath,{signal:r})}}(e,"dedicated"===t.strategy?1:t.maxNumWorkers&&t.maxNumWorkers>0?Math.min(t.maxNumWorkers,W):W,t.signal,r),t,()=>(0,n.vE)(r).remove())}(l,t)}let T,K=null;class Q{constructor(e){this.modulePath=e,this._proxyUseCount=new Map}useProxy(e){return this._proxyUseCount.set(e,this._getProxyUseCount(e)+1),{remove:()=>this._unuseProxy(e)}}getNextProxyId(e){const t=Array.from(this._proxyUseCount.keys());let r;const s=D;D=(D+1)%W;for(let n=0;n<t.length;n++){const o=t[(s+n)%t.length];if(e(o)&&(t.length===W&&(r??=o),0===this._getProxyUseCount(o)))return o}if(null!=r)return r;for(let t=0;t<W;t++){const r=(t+s)%W;if(e(r)&&!this._proxyUseCount.has(r))return r}}_unuseProxy(e){this._proxyUseCount.set(e,Math.max(0,this._getProxyUseCount(e)-1))}_getProxyUseCount(e){return this._proxyUseCount.get(e)??0}}},79783(e,t,r){r.d(t,{ud:()=>k,JK:()=>v,oQ:()=>A,V2:()=>P});var s=r(2741),n=r(97770),o=r(73444),i=r(10838),a=r(18047),l=r(53966),c=r(93637),u=r(799);const d=()=>l.A.getLogger("esri.intl.substitute");function h(e,t){switch(t.type){case"date":return(0,n.Yq)(e,t.intlOptions);case"number":return(0,a.ZV)(e,t.intlOptions);default:return d().warn("missing format descriptor for key {key}"),g(e)}}function f(e,t){switch(t.toLowerCase()){case"dateformat":return(0,n.Yq)(e);case"numberformat":return(0,a.ZV)(e);default:return d().warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,n.Yq)(e):/^numberformat/i.test(t)?(0,a.ZV)(e):g(e)}}function g(e){switch(typeof e){case"string":return e;case"number":return(0,a.ZV)(e);case"boolean":return""+e;default:return e instanceof Date?(0,n.Yq)(e):""}}var p=r(11254),m=r(49186);const y={"esri/t9n/basemaps":"esri/support/basemaps/t9n/basemaps","esri/t9n/common":"esri/common/t9n/common","esri/widgets/support/t9n/ColorPicker":"esri/widgets/support/ColorPicker/t9n/ColorPicker","esri/widgets/support/t9n/timezone":"esri/widgets/support/TimezonePicker/t9n/timezone","esri/widgets/support/t9n/uriUtils":"esri/widgets/support/uriUtils/t9n/uriUtils"};async function b(e){if(null!=_.fetchBundleAsset)return _.fetchBundleAsset(e);const t=await(0,p.A)(e,{responseType:"text"});return JSON.parse(t.data)}class w{constructor({base:e="",pattern:t,location:r=new URL(window.location.href)}){let s;s="string"==typeof r?e=>new URL(e,new URL(r,window.location.href)).href:r instanceof URL?e=>new URL(e,r).href:r,this.pattern="string"==typeof t?new RegExp(`^${t}`):t,this.getAssetUrl=s,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)\\/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,r,s){const n=y[r]??r,o=t.exec(n);if(!o)throw new m.A("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);const a=o[1]?`${o[1]}/`:"",l=o[2],c=(0,i.xO)(s),u=n.startsWith("esri/"),d=`${a}${l}.json`,h=c?`${a}${l}_${c}.json`:d,f=u?`${a}messages.en.json`:d,g=u?`${a}messages.${c??"en"}.json`:h,p=[...new Set(u?[g,h,f,d]:[g,f])];for(const[t,s]of p.entries())try{return await b(e(s))}catch(e){if(t===p.length-1)throw new m.A("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:e})}throw new m.A("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`)}(this.getAssetUrl,this.matcher,e,t)}}const _={},k=i.ud,v=o.JK,A=o.oQ,C=i.ao,P=function(e,t,r={}){const{format:s={}}=r;return(0,u.HC)(e,e=>function(e,t,r){let s,n;const o=e.indexOf(":");if(-1===o?s=e.trim():(s=e.slice(0,o).trim(),n=e.slice(o+1).trim()),!s)return"";const i=(0,c.wc)(s,t);if(null==i)return"";const a=(n?r?.[n]:null)??r?.[s];return a?h(i,a):n?f(i,n):g(i)}(e,t,s))};var E;C((E={pattern:"esri/",location:s.s},new w(E)))},10838(e,t,r){r.d(t,{ao:()=>d,ud:()=>h,xO:()=>f});var s=r(49186),n=r(36563),o=r(73444);const i={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:"no",nl:!0,no:!0,nn:"no",pl:!0,pt:"pt-BR","pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,zh:"zh-CN","zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function a(e){if(function(e){return e in i}(e)){const t=i[e];return!0===t?e:t}return null}const l=[],c=new Map;function u(e){for(const t of c.keys())g(e.pattern,t)&&c.delete(t)}function d(e){return l.includes(e)||(u(e),l.unshift(e)),(0,n.hA)(()=>{const t=l.indexOf(e);t>-1&&(l.splice(t,1),u(e))})}async function h(e){const t=(0,o.JK)();c.has(e)||c.set(e,async function(e,t){const r=[];for(const s of l)if(g(s.pattern,e))try{return await s.fetchMessageBundle(e,t)}catch(e){r.push(e)}if(r.length)throw new s.A("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r});throw new s.A("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const r=c.get(e);return r&&await p.add(r),r}function f(e){const t=(0,o.lR)(e);return t?a(e)??a(t):null}function g(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,o.Ml)(()=>{c.clear()});const p=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then(()=>this._decrease(),()=>this._decrease()),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=Promise.withResolvers())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},18047(e,t,r){r.d(t,{Up:()=>l,ZV:()=>c,yx:()=>a});var s=r(73444);const n={ar:"ar-u-nu-latn",bs:"sr-Latn-CS",nn:"no-NN"};let o=new WeakMap,i={};function a(e={}){const t={};return null!=e.digitSeparator&&(t.useGrouping=e.digitSeparator),null!=e.places&&(t.minimumFractionDigits=t.maximumFractionDigits=e.places),t}function l(e){const{minimumFractionDigits:t,maximumFractionDigits:r,useGrouping:s}=e;return{minimumFractionDigits:t,maximumFractionDigits:r,useGrouping:"auto"===s?"auto":"always"===s}}function c(e,t){return Object.is(e,-0)&&(e=0),function(e){const t=e||i;if(!o.has(t)){const r=(0,s.lR)(),i=r&&n[r]||(0,s.QC)();o.set(t,new Intl.NumberFormat(i,e))}return o.get(t)}(t).format(e)}(0,s.Ml)(()=>{o=new WeakMap,i={}}),new Map}}]);