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

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 (542) hide show
  1. package/WebScene.d.ts +6 -3
  2. package/WebScene.js +1 -1
  3. package/applications/WebEditor/geometryUtils.d.ts +1 -1
  4. package/arcade/arcadeAsyncRuntime.js +1 -1
  5. package/arcade/arcadeCompiler.js +1 -1
  6. package/arcade/arcadeRuntime.js +1 -1
  7. package/arcade/containerUtils.js +1 -1
  8. package/arcade/functions/track.js +1 -1
  9. package/arcgisGlobal.d.ts +2 -0
  10. package/assets/components/assets/icon/aiAgent16.json +1 -0
  11. package/assets/components/assets/icon/aiAgent24.json +1 -0
  12. package/assets/components/assets/icon/aiAgent32.json +1 -0
  13. package/assets/components/assets/icon/aiAgents16.json +1 -0
  14. package/assets/components/assets/icon/aiAgents24.json +1 -0
  15. package/assets/components/assets/icon/aiAgents32.json +1 -0
  16. package/assets/components/assets/icon/explodeGeometry16.json +1 -0
  17. package/assets/components/assets/icon/explodeGeometry24.json +1 -0
  18. package/assets/components/assets/icon/explodeGeometry32.json +1 -0
  19. package/assets/components/assets/icon/integration16.json +1 -0
  20. package/assets/components/assets/icon/integration24.json +1 -0
  21. package/assets/components/assets/icon/integration32.json +1 -0
  22. package/assets/components/assets/icon/spatiotemporalCatalog16.json +1 -0
  23. package/assets/components/assets/icon/spatiotemporalCatalog24.json +1 -0
  24. package/assets/components/assets/icon/spatiotemporalCatalog32.json +1 -0
  25. package/assets/components/assets/input-time-zone/t9n/messages.de.json +1 -1
  26. package/assets/esri/core/workers/RemoteClient.js +1 -1
  27. package/assets/esri/core/workers/chunks/000f91a18c22377f8525.js +1 -0
  28. package/assets/esri/core/workers/chunks/{05662a663f761dd3dea5.js → 006146ad6d4a5cbf1a1f.js} +1 -1
  29. package/assets/esri/core/workers/chunks/{bd1a7e95a797e1ed4a7b.js → 013c17e07756fa465845.js} +1 -1
  30. package/assets/esri/core/workers/chunks/014eaccf2c2d357981f0.js +1 -0
  31. package/assets/esri/core/workers/chunks/{f253875feb11883deb84.js → 04d4cd66485b622403d0.js} +1 -1
  32. package/assets/esri/core/workers/chunks/05eb064f9b543890ae24.js +1 -0
  33. package/assets/esri/core/workers/chunks/{26737d061c7cfbbab95c.js → 0809a55a2f9be07cc5a9.js} +1 -1
  34. package/assets/esri/core/workers/chunks/0930738f43ce09b2ed2d.js +1 -0
  35. package/assets/esri/core/workers/chunks/{691434d4c6a38e63d819.js → 0a242e76bc293b0ad04b.js} +1 -1
  36. package/assets/esri/core/workers/chunks/0a4092578dc7578bcf76.js +1 -0
  37. package/assets/esri/core/workers/chunks/0e11bee9b56a7f51b012.js +1 -0
  38. package/assets/esri/core/workers/chunks/0e65869a5dd5a3917da7.js +1 -0
  39. package/assets/esri/core/workers/chunks/0ffb5a1275d07dcd9115.js +1 -0
  40. package/assets/esri/core/workers/chunks/{e370a3337b3c90240e73.js → 105da965fc90604eb6bf.js} +1 -1
  41. package/assets/esri/core/workers/chunks/1082bb0858585bd4fa21.js +2 -0
  42. package/assets/esri/core/workers/chunks/{5235b9c21ac4156c2375.js → 10f4c5533f50c3693318.js} +1 -1
  43. package/assets/esri/core/workers/chunks/1201bb22a2bfd7d7ecba.js +1 -0
  44. package/assets/esri/core/workers/chunks/16f55c5d642a23c2547e.js +1 -0
  45. package/assets/esri/core/workers/chunks/{09e01fd1c199be0c8e03.js → 16ffbe484f6cd4736f79.js} +1 -1
  46. package/assets/esri/core/workers/chunks/{1bf967c68d0c795d3fb4.js → 19a4907fc93ae8b817e9.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{f74c7cbe4bd12f73ae90.js → 19d7339f20f3008c4893.js} +1 -1
  48. package/assets/esri/core/workers/chunks/{a8aa8cb60b30f0983e7e.js → 1a9f17781e0a3bc5106f.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{bf7875fda48b15271a10.js → 1bef7097fe5e402539ea.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{fa377112ef3b78f6ed18.js → 1de1cc0ed0f169a58aff.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{0549e2badf511e27aa54.js → 1e3b07cf0e608431a277.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{2e51764c8aa31096cb2a.js → 20feca2fdd304b3e9664.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{4c73c2f4331351e2a50c.js → 22ff018342860249b3eb.js} +1 -1
  54. package/assets/esri/core/workers/chunks/248df6fda489a9de5852.js +1 -0
  55. package/assets/esri/core/workers/chunks/279b16727d4b515eca44.js +1 -0
  56. package/assets/esri/core/workers/chunks/2b10d6597af3eeec5396.js +1 -0
  57. package/assets/esri/core/workers/chunks/2bd4b536e329112591c4.js +1 -0
  58. package/assets/esri/core/workers/chunks/2c01477b69c38f691e19.js +1 -0
  59. package/assets/esri/core/workers/chunks/2e2349387a2b9903f13c.js +2 -0
  60. package/assets/esri/core/workers/chunks/{4d700cb028f6306b163e.js → 32aa1529e84b839d051d.js} +1 -1
  61. package/assets/esri/core/workers/chunks/33041e50ea02d99480b0.js +1 -0
  62. package/assets/esri/core/workers/chunks/{5d7a5aa608ed6192b016.js → 349982635e921e838030.js} +1 -1
  63. package/assets/esri/core/workers/chunks/35d0a7597473d46866de.js +1 -0
  64. package/assets/esri/core/workers/chunks/374d726fdd0a9848cea5.js +1 -0
  65. package/assets/esri/core/workers/chunks/379f5ca5372d834af497.js +1 -0
  66. package/assets/esri/core/workers/chunks/37ae52c71bf9c70fbb92.js +1 -0
  67. package/assets/esri/core/workers/chunks/{05393b23ab24126d4236.js → 38bc5d09ae07f486d457.js} +1 -1
  68. package/assets/esri/core/workers/chunks/3bafa01ca01a67d09432.js +1 -0
  69. package/assets/esri/core/workers/chunks/3c7901ea007c9615ba54.js +1 -0
  70. package/assets/esri/core/workers/chunks/4047208f9559e06d7102.js +1 -0
  71. package/assets/esri/core/workers/chunks/4049e9b86c8e27a7ff12.js +1 -0
  72. package/assets/esri/core/workers/chunks/411bbdecba340df11d95.js +2 -0
  73. package/assets/esri/core/workers/chunks/42b5533f94ebcdc4befe.js +1 -0
  74. package/assets/esri/core/workers/chunks/44ca13c874b5aa0ed5a0.js +1 -0
  75. package/assets/esri/core/workers/chunks/4717831effb1ac6d5f5d.js +1 -0
  76. package/assets/esri/core/workers/chunks/{5edf77618ca51819d7c4.js → 476535cfb06ced74d611.js} +2 -2
  77. package/assets/esri/core/workers/chunks/486f1277fe834c0fc4c1.js +1 -0
  78. package/assets/esri/core/workers/chunks/48ade66f1685a1aaffba.js +1 -0
  79. package/assets/esri/core/workers/chunks/4d13c1a04788e5222678.js +1 -0
  80. package/assets/esri/core/workers/chunks/{cc3186dcbbf5edff8b9e.js → 4d7f6c92041d52cc8732.js} +1 -1
  81. package/assets/esri/core/workers/chunks/{595edbc1e9bba47d5676.js → 4f89da01b67b66a92c01.js} +1 -1
  82. package/assets/esri/core/workers/chunks/507bbcde2b39321b50a4.js +1 -0
  83. package/assets/esri/core/workers/chunks/{9b8e33985310f281f084.js → 56a5b65961e722f5cae9.js} +1 -1
  84. package/assets/esri/core/workers/chunks/5830deda121e4c95d199.js +1 -0
  85. package/assets/esri/core/workers/chunks/{b102ae764c14d8b32ace.js → 58a52adc42fbe5cd12c6.js} +1 -1
  86. package/assets/esri/core/workers/chunks/{b0e25ccb5a1e57a82628.js → 58b93f13316196d2e97d.js} +1 -1
  87. package/assets/esri/core/workers/chunks/58f98bd89b644cfdafae.js +1 -0
  88. package/assets/esri/core/workers/chunks/5a8658e4ef5163e8ab3b.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/ad695de9f73b268af139.js +1 -0
  145. package/assets/esri/core/workers/chunks/{b13d2da33ec07e9d41ff.js → b0da2b089a89d643df1e.js} +1 -1
  146. package/assets/esri/core/workers/chunks/{65f4ca7201e7267bfc81.js → b5fcf4165ac72654742d.js} +1 -1
  147. package/assets/esri/core/workers/chunks/b82b523b6837ed1f28d3.js +2 -0
  148. package/assets/esri/core/workers/chunks/{527b87fddf33bb5d519e.js → ba77a8892cb23c7a297d.js} +1 -1
  149. package/assets/esri/core/workers/chunks/bb8089929ded0613d8e7.js +1 -0
  150. package/assets/esri/core/workers/chunks/bc7ca87d3bfe8a4aec81.js +1 -0
  151. package/assets/esri/core/workers/chunks/bc9b96a539f28afcb8cb.js +1 -0
  152. package/assets/esri/core/workers/chunks/{2d07d5a9ec67c39ef10c.js → bd4f29d2681e5596591a.js} +1 -1
  153. package/assets/esri/core/workers/chunks/bf9eba555aebca2c132b.js +1 -0
  154. package/assets/esri/core/workers/chunks/{903c7bd079888f65fef1.js → c3fbd81bb5820e48038f.js} +1 -1
  155. package/assets/esri/core/workers/chunks/c9df18e9ff7367a004b6.js +1 -0
  156. package/assets/esri/core/workers/chunks/ca8061e0a6d78d646ebf.js +1 -0
  157. package/assets/esri/core/workers/chunks/cc73ac8404615dc392d2.js +1 -0
  158. package/assets/esri/core/workers/chunks/{e823c9ccb7bc348d8824.js → ccb26860518dce6d01c0.js} +1 -1
  159. package/assets/esri/core/workers/chunks/cded34b161fcc790e672.js +1 -0
  160. package/assets/esri/core/workers/chunks/{1bf5c0a4bc5a960a3fa2.js → d1d4979e9dcabe5e4619.js} +1 -1
  161. package/assets/esri/core/workers/chunks/d2865c604849ce79183f.js +1 -0
  162. package/assets/esri/core/workers/chunks/{9b81bd62a2c72f592db1.js → d826f6d32b4c5885276a.js} +1 -1
  163. package/assets/esri/core/workers/chunks/d92540d3ffc4af980dd8.js +1 -0
  164. package/assets/esri/core/workers/chunks/dc7853795439ae77ace9.js +1 -0
  165. package/assets/esri/core/workers/chunks/{1f047dd747e7c1916dc7.js → dd55737fba0a8fe68101.js} +3 -3
  166. package/assets/esri/core/workers/chunks/dd8d19eb6b8e955c8067.js +1 -0
  167. package/assets/esri/core/workers/chunks/dda269a088275c823b40.js +1 -0
  168. package/assets/esri/core/workers/chunks/{7b70d6fdfa7a19ffffb0.js → de95dee8db92cf8f796f.js} +1 -1
  169. package/assets/esri/core/workers/chunks/e1c8767143f9f9d1f049.js +1 -0
  170. package/assets/esri/core/workers/chunks/{2cf2f2842c19be84ab4d.js → e6cb31c727f799c1297c.js} +1 -1
  171. package/assets/esri/core/workers/chunks/e934ef66d130c212c05b.js +1 -0
  172. package/assets/esri/core/workers/chunks/{7c56446184abcd14678b.js → ea77654c8964cc39b9a6.js} +1 -1
  173. package/assets/esri/core/workers/chunks/eb167f9f6132a6348d2e.js +1 -0
  174. package/assets/esri/core/workers/chunks/ed5ac1efd3cba49be756.js +1 -0
  175. package/assets/esri/core/workers/chunks/ef24fd6c0322e5de9fdf.js +2 -0
  176. package/assets/esri/core/workers/chunks/f219ba010c480bb75684.js +1 -0
  177. package/assets/esri/core/workers/chunks/fbf2d90240d36f8b423f.js +1 -0
  178. package/assets/esri/core/workers/chunks/{4ee99e654dad6f09abee.js → fc042b9936686785c39e.js} +1 -1
  179. package/assets/esri/core/workers/chunks/fc1658eae7b312502fab.js +1 -0
  180. package/assets/esri/core/workers/chunks/{af6b9fd77b1792fbb66e.js → fd4d124c5bf810d9e352.js} +1 -1
  181. package/assets/esri/core/workers/chunks/ffa35ecc681ec1c4739a.js +1 -0
  182. package/assets/esri/core/workers/chunks/ffca0b2333e760b66d3a.js +1 -0
  183. package/config.js +1 -1
  184. package/editing/sharedTemplates/executor/builders/bufferLineToPolygon.js +1 -1
  185. package/editing/sharedTemplates/executor/builders/bufferPointToPolygon.js +1 -1
  186. package/editing/sharedTemplates/executor/builders/bufferPolygonToPolygon.js +1 -1
  187. package/editing/sharedTemplates/executor/builders/pointAtIntersectionVerticesOfLine.js +1 -1
  188. package/editing/sharedTemplates/executor/builders/support/offsetUtils.js +1 -1
  189. package/editing/sharedTemplates/executor/support/createPresetServiceEdit.js +1 -1
  190. package/geometry/Polygon.js +1 -1
  191. package/geometry/geometryEngine.d.ts +36 -36
  192. package/geometry/operators/affineTransformOperator.d.ts +30 -1
  193. package/geometry/operators/affineTransformOperator.js +1 -1
  194. package/geometry/operators/alphaShapeOperator.d.ts +49 -5
  195. package/geometry/operators/alphaShapeOperator.js +1 -1
  196. package/geometry/operators/areaOperator.d.ts +28 -4
  197. package/geometry/operators/areaOperator.js +1 -1
  198. package/geometry/operators/autoCompleteOperator.d.ts +25 -2
  199. package/geometry/operators/autoCompleteOperator.js +1 -1
  200. package/geometry/operators/boundaryOperator.d.ts +40 -2
  201. package/geometry/operators/boundaryOperator.js +1 -1
  202. package/geometry/operators/bufferOperator.d.ts +51 -6
  203. package/geometry/operators/bufferOperator.js +1 -1
  204. package/geometry/operators/centroidOperator.d.ts +23 -2
  205. package/geometry/operators/centroidOperator.js +1 -1
  206. package/geometry/operators/clipOperator.d.ts +34 -2
  207. package/geometry/operators/clipOperator.js +1 -1
  208. package/geometry/operators/containsOperator.d.ts +32 -2
  209. package/geometry/operators/containsOperator.js +1 -1
  210. package/geometry/operators/convexHullOperator.d.ts +47 -4
  211. package/geometry/operators/convexHullOperator.js +1 -1
  212. package/geometry/operators/crossesOperator.d.ts +35 -2
  213. package/geometry/operators/crossesOperator.js +1 -1
  214. package/geometry/operators/cutOperator.d.ts +23 -2
  215. package/geometry/operators/cutOperator.js +1 -1
  216. package/geometry/operators/densifyOperator.d.ts +61 -6
  217. package/geometry/operators/densifyOperator.js +1 -1
  218. package/geometry/operators/differenceOperator.d.ts +34 -2
  219. package/geometry/operators/differenceOperator.js +1 -1
  220. package/geometry/operators/disjointOperator.d.ts +33 -2
  221. package/geometry/operators/disjointOperator.js +1 -1
  222. package/geometry/operators/distanceOperator.d.ts +29 -4
  223. package/geometry/operators/distanceOperator.js +1 -1
  224. package/geometry/operators/equalsOperator.d.ts +32 -2
  225. package/geometry/operators/equalsOperator.js +1 -1
  226. package/geometry/operators/extendOperator.d.ts +29 -3
  227. package/geometry/operators/extendOperator.js +1 -1
  228. package/geometry/operators/generalizeOperator.d.ts +46 -5
  229. package/geometry/operators/generalizeOperator.js +1 -1
  230. package/geometry/operators/geodesicBufferOperator.d.ts +71 -7
  231. package/geometry/operators/geodesicBufferOperator.js +1 -1
  232. package/geometry/operators/geodesicProximityOperator.d.ts +106 -14
  233. package/geometry/operators/geodesicProximityOperator.js +1 -1
  234. package/geometry/operators/geodeticAreaOperator.d.ts +51 -5
  235. package/geometry/operators/geodeticAreaOperator.js +1 -1
  236. package/geometry/operators/geodeticDensifyOperator.d.ts +65 -6
  237. package/geometry/operators/geodeticDensifyOperator.js +1 -1
  238. package/geometry/operators/geodeticDistanceOperator.d.ts +52 -5
  239. package/geometry/operators/geodeticDistanceOperator.js +1 -1
  240. package/geometry/operators/geodeticLengthOperator.d.ts +51 -5
  241. package/geometry/operators/geodeticLengthOperator.js +1 -1
  242. package/geometry/operators/geodeticUtilsOperator.d.ts +79 -9
  243. package/geometry/operators/geodeticUtilsOperator.js +1 -1
  244. package/geometry/operators/graphicBufferOperator.d.ts +47 -4
  245. package/geometry/operators/graphicBufferOperator.js +1 -1
  246. package/geometry/operators/integrateOperator.d.ts +24 -2
  247. package/geometry/operators/integrateOperator.js +1 -1
  248. package/geometry/operators/intersectionOperator.d.ts +88 -3
  249. package/geometry/operators/intersectionOperator.js +1 -1
  250. package/geometry/operators/intersectsOperator.d.ts +32 -2
  251. package/geometry/operators/intersectsOperator.js +1 -1
  252. package/geometry/operators/isNearOperator.d.ts +31 -4
  253. package/geometry/operators/isNearOperator.js +1 -1
  254. package/geometry/operators/json/bufferOperator.js +1 -1
  255. package/geometry/operators/json/containsOperator.js +1 -1
  256. package/geometry/operators/json/convexHullOperator.js +1 -1
  257. package/geometry/operators/json/crossesOperator.js +1 -1
  258. package/geometry/operators/json/disjointOperator.js +1 -1
  259. package/geometry/operators/json/generalizeOperator.js +1 -1
  260. package/geometry/operators/json/geodesicBufferOperator.js +1 -1
  261. package/geometry/operators/json/graphicBufferOperator.js +1 -1
  262. package/geometry/operators/json/intersectionOperator.js +1 -1
  263. package/geometry/operators/json/intersectsOperator.js +1 -1
  264. package/geometry/operators/json/lengthOperator.js +1 -1
  265. package/geometry/operators/json/offsetOperator.js +1 -1
  266. package/geometry/operators/json/overlapsOperator.js +1 -1
  267. package/geometry/operators/json/projectOperator.js +1 -1
  268. package/geometry/operators/json/simplifyOperator.js +1 -1
  269. package/geometry/operators/json/simplifyOperatorOGC.js +1 -1
  270. package/geometry/operators/json/touchesOperator.js +1 -1
  271. package/geometry/operators/json/unionOperator.js +1 -1
  272. package/geometry/operators/json/withinOperator.js +1 -1
  273. package/geometry/operators/labelPointOperator.d.ts +32 -2
  274. package/geometry/operators/labelPointOperator.js +1 -1
  275. package/geometry/operators/lengthOperator.d.ts +28 -4
  276. package/geometry/operators/lengthOperator.js +1 -1
  277. package/geometry/operators/linesToPolygonsOperator.d.ts +23 -2
  278. package/geometry/operators/linesToPolygonsOperator.js +1 -1
  279. package/geometry/operators/locateBetweenOperator.d.ts +28 -2
  280. package/geometry/operators/locateBetweenOperator.js +1 -1
  281. package/geometry/operators/minimumBoundingCircleOperator.d.ts +38 -4
  282. package/geometry/operators/minimumBoundingCircleOperator.js +1 -1
  283. package/geometry/operators/multiPartToSinglePartOperator.d.ts +33 -4
  284. package/geometry/operators/multiPartToSinglePartOperator.js +1 -1
  285. package/geometry/operators/offsetOperator.d.ts +50 -5
  286. package/geometry/operators/offsetOperator.js +1 -1
  287. package/geometry/operators/overlapsOperator.d.ts +33 -2
  288. package/geometry/operators/overlapsOperator.js +1 -1
  289. package/geometry/operators/polygonOverlayOperator.d.ts +31 -5
  290. package/geometry/operators/polygonOverlayOperator.js +1 -1
  291. package/geometry/operators/polygonSlicerOperator.d.ts +72 -10
  292. package/geometry/operators/polygonSlicerOperator.js +1 -1
  293. package/geometry/operators/projectOperator.d.ts +63 -3
  294. package/geometry/operators/projectOperator.js +1 -1
  295. package/geometry/operators/proximityOperator.d.ts +71 -9
  296. package/geometry/operators/proximityOperator.js +1 -1
  297. package/geometry/operators/relateOperator.d.ts +41 -2
  298. package/geometry/operators/relateOperator.js +1 -1
  299. package/geometry/operators/reshapeOperator.d.ts +28 -2
  300. package/geometry/operators/reshapeOperator.js +1 -1
  301. package/geometry/operators/shapePreservingProjectOperator.d.ts +64 -6
  302. package/geometry/operators/shapePreservingProjectOperator.js +1 -1
  303. package/geometry/operators/simplifyOGCOperator.d.ts +72 -6
  304. package/geometry/operators/simplifyOGCOperator.js +1 -1
  305. package/geometry/operators/simplifyOperator.d.ts +72 -4
  306. package/geometry/operators/simplifyOperator.js +1 -1
  307. package/geometry/operators/singlePartToMultiPartOperator.js +1 -1
  308. package/geometry/operators/support/Transformation.d.ts +17 -11
  309. package/geometry/operators/support/jsonConverter.js +1 -1
  310. package/geometry/operators/symmetricDifferenceOperator.d.ts +33 -2
  311. package/geometry/operators/symmetricDifferenceOperator.js +1 -1
  312. package/geometry/operators/touchesOperator.d.ts +32 -2
  313. package/geometry/operators/touchesOperator.js +1 -1
  314. package/geometry/operators/types.d.ts +4 -1
  315. package/geometry/operators/unionOperator.d.ts +33 -2
  316. package/geometry/operators/unionOperator.js +1 -1
  317. package/geometry/operators/withinOperator.d.ts +32 -2
  318. package/geometry/operators/withinOperator.js +1 -1
  319. package/geometry/projectionUtils.js +1 -1
  320. package/geometry/support/geometryUtils.js +1 -1
  321. package/geometry/support/normalizeUtils.d.ts +5 -3
  322. package/geometry/support/normalizeUtils.js +1 -1
  323. package/interfaces.d.ts +202 -202
  324. package/kernel.js +1 -1
  325. package/layers/graphics/data/QueryEngineResult.js +1 -1
  326. package/layers/graphics/data/queryUtils.js +1 -1
  327. package/layers/graphics/data/spatialQuerySupport.js +1 -1
  328. package/layers/graphics/sources/support/sourceUtils.js +1 -1
  329. package/layers/list/Item.d.ts +27 -3
  330. package/layers/list/Item.js +1 -1
  331. package/layers/list/ItemPanel.d.ts +1 -1
  332. package/layers/list/LayerItemCollection.js +1 -1
  333. package/layers/mixins/ArcGISImageService.js +1 -1
  334. package/layers/mixins/TiledImagery.js +1 -1
  335. package/layers/orientedImagery/transformations/updateElevationUtils.js +1 -1
  336. package/layers/raster/datasets/FunctionRaster.js +1 -1
  337. package/layers/raster/datasets/pixelReader.js +1 -1
  338. package/layers/raster/functions/clipUtils.js +1 -1
  339. package/layers/raster/functions/rasterProjectionHelper.js +1 -1
  340. package/layers/support/Sublayer.js +1 -1
  341. package/layers/support/trackInfoUtils.js +2 -0
  342. package/layers/video/videoUtils.js +1 -1
  343. package/package.json +5 -5
  344. package/popup/FeatureContentCollection.d.ts +3 -3
  345. package/popup/FeatureContentCollection.js +1 -1
  346. package/portal/schemas/definitions.js +1 -1
  347. package/portal/schemas/webScene.js +1 -1
  348. package/smartMapping/support/adapters/InMemoryLayerAdapter.js +1 -1
  349. package/support/revision.js +1 -1
  350. package/support/tests/serviceMockDependencies.js +1 -1
  351. package/support/tests/setupServiceMocksMesh.js +1 -1
  352. package/symbols/cim/CIMEffects.js +1 -1
  353. package/symbols/cim/effects/EffectBuffer.js +1 -1
  354. package/symbols/cim/effects/EffectControlMeasureLine.js +1 -1
  355. package/symbols/cim/effects/EffectDonut.js +1 -1
  356. package/symbols/cim/effects/EffectEnclosingPolygon.js +1 -1
  357. package/symbols/cim/effects/EffectOffset.js +1 -1
  358. package/symbols/cim/effects/EffectTaperedPolygon.js +1 -1
  359. package/views/2d/analysis/AreaMeasurement/AreaMeasurementController.js +1 -1
  360. package/views/2d/analysis/DistanceMeasurement/DistanceMeasurementController.js +1 -1
  361. package/views/2d/engine/webgl/Overlay.js +1 -1
  362. package/views/2d/engine/webgl/VideoScreenRenderer.js +1 -1
  363. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  364. package/views/2d/layers/TileLayerView2D.js +1 -1
  365. package/views/2d/layers/support/RouteLayerWaypointVisualization.js +1 -1
  366. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  367. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementController.js +1 -1
  368. package/views/3d/layers/ElevationLayerView3D.js +1 -1
  369. package/views/3d/layers/ElevationLayerView3DModifications.js +1 -1
  370. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  371. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  372. package/views/3d/layers/i3s/I3SMeshViewFilter.js +1 -1
  373. package/views/MapView.d.ts +3 -3
  374. package/views/SceneView.js +1 -1
  375. package/views/VideoView.js +1 -1
  376. package/views/View2D.d.ts +22 -22
  377. package/views/analysis/ElevationProfile/elevationProfileGeometryUtils.js +1 -1
  378. package/views/draw/DrawTool.js +1 -1
  379. package/views/draw/support/createUtils.js +1 -1
  380. package/views/layers/SceneLayerView.js +1 -1
  381. package/views/support/GeometryWorker.js +1 -1
  382. package/views/support/imageReprojection.js +1 -1
  383. package/views/video/VideoOperationalDataView.js +1 -1
  384. package/webscene/InitialViewProperties.d.ts +9 -1
  385. package/webscene/InitialViewProperties.js +1 -1
  386. package/webscene/Slide.d.ts +10 -1
  387. package/webscene/Slide.js +1 -1
  388. package/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js +1 -1
  389. package/widgets/BatchAttributeForm/expressions/ExpressionsModel.js +1 -1
  390. package/widgets/BatchAttributeForm/expressions/expressionUtils.js +1 -1
  391. package/widgets/BatchAttributeForm/inputs/support/DynamicChoiceController.js +1 -1
  392. package/widgets/BatchAttributeForm/templates/FieldElementTemplate.js +1 -1
  393. package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
  394. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DTool.js +1 -1
  395. package/widgets/Editor/support/mergeFeaturesUtils.js +1 -1
  396. package/widgets/Editor/support/splitFeatureUtils.js +1 -1
  397. package/widgets/ElevationProfile/support/ElevationProfileView.js +1 -1
  398. package/widgets/ElevationProfile/support/InputRepresentation2D.js +1 -1
  399. package/widgets/ElevationProfile/support/InputRepresentation3D.js +1 -1
  400. package/widgets/ElevationProfile/support/geometryUtils.js +1 -1
  401. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationItemList.js +1 -1
  402. package/widgets/Features/FeaturesViewModel.js +1 -1
  403. package/widgets/Features.js +1 -1
  404. package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
  405. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  406. package/widgets/OrientedImageryViewer/adapters/view/MapViewAdapter.js +1 -1
  407. package/widgets/OrientedImageryViewer/components/ImageViewerViewModel.js +1 -1
  408. package/widgets/OrientedImageryViewer/components/OrientedImageryVideoViewModel.js +1 -1
  409. package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  410. package/widgets/OrientedImageryViewer/support/panConstraint.js +1 -1
  411. package/widgets/OrientedImageryViewer/support/superimposeUtils.js +1 -1
  412. package/widgets/OrientedImageryViewer/videoViewerUtils.js +1 -1
  413. package/widgets/Print.js +1 -1
  414. package/widgets/Search/SearchViewModel.js +1 -1
  415. package/widgets/Search/support/layerSearchUtils.js +1 -1
  416. package/widgets/Search/support/locatorUtils.js +1 -1
  417. package/widgets/UtilityNetworkTrace/support/GeometryHandler.js +1 -1
  418. package/widgets/support/FilterBuilder/FilterBuilderViewModel.d.ts +104 -0
  419. package/widgets/support/FilterBuilder/FilterBuilderViewModel.js +1 -1
  420. package/widgets/support/FilterBuilder.js +1 -1
  421. package/widgets/support/FilterCondition/FilterConditionViewModel.d.ts +145 -0
  422. package/widgets/support/FilterCondition/FilterConditionViewModel.js +1 -1
  423. package/widgets/support/FilterCondition/types.d.ts +20 -0
  424. package/widgets/support/ItemList.js +1 -1
  425. package/widgets/support/SelectionList/FeatureItem.d.ts +17 -68
  426. package/widgets/support/SelectionList/FeatureItem.js +1 -1
  427. package/widgets/support/SelectionList/GroupLayerItem.d.ts +12 -50
  428. package/widgets/support/SelectionList/GroupLayerItem.js +1 -1
  429. package/widgets/support/SelectionList/ItemBase.d.ts +14 -44
  430. package/widgets/support/SelectionList/ItemBase.js +1 -1
  431. package/widgets/support/SelectionList/LayerItem.d.ts +10 -56
  432. package/widgets/support/SelectionList/LayerItem.js +1 -1
  433. package/widgets/support/SelectionList/types.d.ts +4 -4
  434. package/widgets/support/Selector2D/selectorUtils.js +1 -1
  435. package/assets/esri/core/workers/chunks/090ea7a131f8f60203ed.js +0 -1
  436. package/assets/esri/core/workers/chunks/0b4a7209b99227a842ad.js +0 -1
  437. package/assets/esri/core/workers/chunks/0be98adfef79fc5036f0.js +0 -1
  438. package/assets/esri/core/workers/chunks/0d2e2d90a4e4a28e2c0c.js +0 -1
  439. package/assets/esri/core/workers/chunks/0d7763d39a5a8586a0ae.js +0 -1
  440. package/assets/esri/core/workers/chunks/0d95f72e1c07ab867d21.js +0 -1
  441. package/assets/esri/core/workers/chunks/0dbbac7a2378728571a7.js +0 -1
  442. package/assets/esri/core/workers/chunks/0df9864ecebe6a2b973f.js +0 -1
  443. package/assets/esri/core/workers/chunks/104d74bc36c28c519396.js +0 -1
  444. package/assets/esri/core/workers/chunks/1670e9867efde4d7a6d6.js +0 -1
  445. package/assets/esri/core/workers/chunks/1c803eef9a8fdabc61e3.js +0 -2
  446. package/assets/esri/core/workers/chunks/1e192ac0533a5c0b5a7a.js +0 -1
  447. package/assets/esri/core/workers/chunks/1fe077f57a087c0e9119.js +0 -1
  448. package/assets/esri/core/workers/chunks/20f7b5fe64a217cb3d3d.js +0 -1
  449. package/assets/esri/core/workers/chunks/212222b64039d436b9a6.js +0 -1
  450. package/assets/esri/core/workers/chunks/24944b625ed8dcd904f0.js +0 -1
  451. package/assets/esri/core/workers/chunks/2b6d261fe79fe186fb22.js +0 -1
  452. package/assets/esri/core/workers/chunks/2bc3e7f394386fa75447.js +0 -1
  453. package/assets/esri/core/workers/chunks/30af0f7c4cfa541c9efd.js +0 -1
  454. package/assets/esri/core/workers/chunks/30d816bdeea00f6fa1ca.js +0 -1
  455. package/assets/esri/core/workers/chunks/35d46c2f658a8e92d913.js +0 -1
  456. package/assets/esri/core/workers/chunks/36e35a8067b18f59cc05.js +0 -1
  457. package/assets/esri/core/workers/chunks/3869dca884d7ca6488f5.js +0 -1
  458. package/assets/esri/core/workers/chunks/3f5234120d3a14186c1c.js +0 -1
  459. package/assets/esri/core/workers/chunks/45c1c90ac6c14657f3ff.js +0 -1
  460. package/assets/esri/core/workers/chunks/4a40b894ec89b0a4f9bf.js +0 -1
  461. package/assets/esri/core/workers/chunks/5165d367328ac7badf47.js +0 -1
  462. package/assets/esri/core/workers/chunks/5168bd8ab6233dc9c32a.js +0 -1
  463. package/assets/esri/core/workers/chunks/545bec045167c433af8f.js +0 -1
  464. package/assets/esri/core/workers/chunks/5782c0362a1799ceef41.js +0 -1
  465. package/assets/esri/core/workers/chunks/59598023c0aea62a6297.js +0 -1
  466. package/assets/esri/core/workers/chunks/59f0a2bd40b033ce77e4.js +0 -1
  467. package/assets/esri/core/workers/chunks/5af16937904c06fb06f6.js +0 -1
  468. package/assets/esri/core/workers/chunks/5b8591486f33627f5389.js +0 -1
  469. package/assets/esri/core/workers/chunks/6057a79c68c33ee4a193.js +0 -1
  470. package/assets/esri/core/workers/chunks/607acd9f615f87e14075.js +0 -1
  471. package/assets/esri/core/workers/chunks/62ee6c247f783acabb74.js +0 -1
  472. package/assets/esri/core/workers/chunks/63127e3b22e7eac6003d.js +0 -2
  473. package/assets/esri/core/workers/chunks/6564f17c4700dc8d9c0e.js +0 -2
  474. package/assets/esri/core/workers/chunks/678585509706755c0434.js +0 -2
  475. package/assets/esri/core/workers/chunks/691e9cc541cfaebe1776.js +0 -1
  476. package/assets/esri/core/workers/chunks/6a2d890640b2cd6c5ccb.js +0 -1
  477. package/assets/esri/core/workers/chunks/6b84982dfaf084a61b93.js +0 -1
  478. package/assets/esri/core/workers/chunks/6cbc30b31f0bb39c73ca.js +0 -1
  479. package/assets/esri/core/workers/chunks/6f01bd01b13662eb3bd7.js +0 -1
  480. package/assets/esri/core/workers/chunks/74cd9df85c4560bb8e52.js +0 -1
  481. package/assets/esri/core/workers/chunks/75bddfe2be64379db8fd.js +0 -1
  482. package/assets/esri/core/workers/chunks/7cf903db44f3647c8fd4.js +0 -1
  483. package/assets/esri/core/workers/chunks/7ddb5800777fbecee3a8.js +0 -1
  484. package/assets/esri/core/workers/chunks/7eae9053065d3d38e54e.js +0 -1
  485. package/assets/esri/core/workers/chunks/80f38ab2b7ae61e6f301.js +0 -1
  486. package/assets/esri/core/workers/chunks/854f42f16fdb40000aae.js +0 -1
  487. package/assets/esri/core/workers/chunks/87094044458b0ea5cb0f.js +0 -2
  488. package/assets/esri/core/workers/chunks/88f03352a4dc6184ea1f.js +0 -1
  489. package/assets/esri/core/workers/chunks/909ee7d2a0eec773037a.js +0 -1
  490. package/assets/esri/core/workers/chunks/91ac9328afff8a51bd96.js +0 -1
  491. package/assets/esri/core/workers/chunks/92a6559a6999b26362d7.js +0 -1
  492. package/assets/esri/core/workers/chunks/94ddfe165ac25aef8229.js +0 -1
  493. package/assets/esri/core/workers/chunks/9509bef285929c52c244.js +0 -1
  494. package/assets/esri/core/workers/chunks/99966339b061eb9945b8.js +0 -1
  495. package/assets/esri/core/workers/chunks/99f627938dbf0152fc02.js +0 -1
  496. package/assets/esri/core/workers/chunks/9df38cadebf8e6fd746c.js +0 -1
  497. package/assets/esri/core/workers/chunks/9e2b3754a76e0dd4a94a.js +0 -1
  498. package/assets/esri/core/workers/chunks/a0565137027c83108953.js +0 -1
  499. package/assets/esri/core/workers/chunks/a0eb882a5a81d25b9153.js +0 -1
  500. package/assets/esri/core/workers/chunks/a785e827f0215a73103d.js +0 -1
  501. package/assets/esri/core/workers/chunks/abe7670db06b27c0c8c8.js +0 -1
  502. package/assets/esri/core/workers/chunks/b19cff0e43fab2632660.js +0 -1
  503. package/assets/esri/core/workers/chunks/b333de4dea14c5db0a4d.js +0 -1
  504. package/assets/esri/core/workers/chunks/b6af90be328ebda26b8d.js +0 -1
  505. package/assets/esri/core/workers/chunks/b7c0da9d255d5e48320d.js +0 -1
  506. package/assets/esri/core/workers/chunks/bd7d87d175ba933ab2ce.js +0 -1
  507. package/assets/esri/core/workers/chunks/be0417df35a7d99af675.js +0 -1
  508. package/assets/esri/core/workers/chunks/c30b6bbabd05e4976fba.js +0 -1
  509. package/assets/esri/core/workers/chunks/c35553d07ad169910742.js +0 -1
  510. package/assets/esri/core/workers/chunks/c5c2fed38e0ccf84f1fa.js +0 -1
  511. package/assets/esri/core/workers/chunks/c88bfa51d2a8a024fc24.js +0 -1
  512. package/assets/esri/core/workers/chunks/ca36d85a47179d95f2fc.js +0 -1
  513. package/assets/esri/core/workers/chunks/d0cf9ff48f051adbd455.js +0 -1
  514. package/assets/esri/core/workers/chunks/d1304d414b1fa725168a.js +0 -1
  515. package/assets/esri/core/workers/chunks/d24125a791247019e2ca.js +0 -1
  516. package/assets/esri/core/workers/chunks/d26be8313526ecea9c68.js +0 -1
  517. package/assets/esri/core/workers/chunks/d2cb3d5ef0a9285afb78.js +0 -1
  518. package/assets/esri/core/workers/chunks/d4b0012ae1d3b8a9ba01.js +0 -1
  519. package/assets/esri/core/workers/chunks/e018cbd97e6e0e4ca5c4.js +0 -1
  520. package/assets/esri/core/workers/chunks/e39bccc000c768120a32.js +0 -1
  521. package/assets/esri/core/workers/chunks/e4380706b629729f2212.js +0 -1
  522. package/assets/esri/core/workers/chunks/ea1877ce00da3b585a30.js +0 -1
  523. package/assets/esri/core/workers/chunks/ea5ee1b12b43594592a0.js +0 -1
  524. package/assets/esri/core/workers/chunks/ea91c57a0b31f3f65ee5.js +0 -1
  525. package/assets/esri/core/workers/chunks/eafc591e1a98000d54ef.js +0 -1
  526. package/assets/esri/core/workers/chunks/ef851a2cff76fd211c07.js +0 -1
  527. package/assets/esri/core/workers/chunks/f3e53be08ab9dbdf17ae.js +0 -1
  528. package/assets/esri/core/workers/chunks/f53010adb70463b75bb9.js +0 -1
  529. package/assets/esri/core/workers/chunks/f5a058a0ce006bce2a2a.js +0 -1
  530. package/assets/esri/core/workers/chunks/f5f5b54cab722abe88e0.js +0 -1
  531. package/assets/esri/core/workers/chunks/f60ed579981913d44675.js +0 -1
  532. package/assets/esri/core/workers/chunks/f6f56f3e011dcef90bbb.js +0 -1
  533. package/assets/esri/core/workers/chunks/f83c3597e9332bd991eb.js +0 -1
  534. package/assets/esri/core/workers/chunks/f9a4387f850d85c44ca5.js +0 -1
  535. package/assets/esri/core/workers/chunks/fdd0e6d9927d3c43b0d3.js +0 -1
  536. package/geometry/operators/importUtils.js +0 -2
  537. /package/assets/esri/core/workers/chunks/{1c803eef9a8fdabc61e3.js.LICENSE.txt → 1082bb0858585bd4fa21.js.LICENSE.txt} +0 -0
  538. /package/assets/esri/core/workers/chunks/{87094044458b0ea5cb0f.js.LICENSE.txt → 2e2349387a2b9903f13c.js.LICENSE.txt} +0 -0
  539. /package/assets/esri/core/workers/chunks/{678585509706755c0434.js.LICENSE.txt → 411bbdecba340df11d95.js.LICENSE.txt} +0 -0
  540. /package/assets/esri/core/workers/chunks/{5edf77618ca51819d7c4.js.LICENSE.txt → 476535cfb06ced74d611.js.LICENSE.txt} +0 -0
  541. /package/assets/esri/core/workers/chunks/{6564f17c4700dc8d9c0e.js.LICENSE.txt → b82b523b6837ed1f28d3.js.LICENSE.txt} +0 -0
  542. /package/assets/esri/core/workers/chunks/{63127e3b22e7eac6003d.js.LICENSE.txt → ef24fd6c0322e5de9fdf.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7821,8768,9397],{66344(t,e,i){i.d(e,{q:()=>o});const s=!!(0,i(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class r{get size(){return this._size}constructor(t=10485760,e=.3){this._maxSize=t,this._maxClientSizeRatio=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(t){this._clients.set(t.id.slice(0,-1),t)}deregister(t){this.clear(t),this._sizeLimits.delete(t),this._clients.delete(t.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(t,e){const i=this._db.get(t.id+e);return i?.size??0}put(t,e,i,r,l){e=t.id+e;const o=this._db.get(e);if(o&&(this._size-=o.size,t.size-=o.size,this._db.delete(e),o.entry!==i&&this._notifyRemove(e,o.entry,o.size,0)),r>this._maxSize)return void this._notifyRemove(e,i,r,0);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!r||r<0)return s||console.warn(`Refusing to cache entry with size ${r} for key ${e}`),void this._notifyRemove(e,i,0,0);const a=1+Math.max(l,-4)- -3;this._db.set(e,new n(i,r,a)),this._size+=r,t.size+=r,this._checkSize()}updateSize(t,e){e=t.id+e;const i=this._db.get(e);if(!i)return;this._size-=i.size,t.size-=i.size;let s=i.entry.usedMemory;for(;s>this._maxSize;){const t=this._notifyRemove(e,i.entry,s,1);if(!(null!=t&&t>0))return void this._db.delete(e);s=t}i.size=s,this._size+=s,t.size+=s,this._checkSize()}pop(t,e){e=t.id+e;const i=this._db.get(e);if(i)return this._size-=i.size,t.size-=i.size,this._db.delete(e),++this._hit,i.entry;++this._miss}get(t,e){e=t.id+e;const i=this._db.get(e);if(void 0!==i)return this._db.delete(e),i.lives=i.lifetime,this._db.set(e,i),++this._hit,i.entry;++this._miss}peek(t,e){const i=this._db.get(t.id+e);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},i=new Array;this._db.forEach((t,s)=>{const r=t.lifetime;i[r]=(i[r]||0)+t.size,this._clients.forEach(i=>{const{id:r,name:n}=i;if(s.startsWith(r)){const i=e[n]||0;e[n]=i+t.size}})});const s={};this._clients.forEach(t=>{const i=t.name;if("hitRate"in t&&"number"==typeof t.hitRate&&!isNaN(t.hitRate)&&t.hitRate>0){const r=e[i]||0;e[i]=r,s[i]=Math.round(100*t.hitRate)+"%"}else s[i]="0%"});const r=Object.keys(e);r.sort((t,i)=>e[i]-e[t]),r.forEach(i=>t[i]=Math.round(e[i]/2**20)+"MB / "+s[i]);for(let e=i.length-1;e>=0;--e){const s=i[e];s&&(t["Priority "+(e+-3-1)]=Math.round(s/this._size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._clients.forEach(t=>t.resetHitRate())}clear(t){const e=t.id;this._db.forEach((t,i)=>{i.startsWith(e)&&(this._size-=t.size,this._db.delete(i),this._notifyRemove(i,t.entry,t.size,0))}),t.size=0}clearAll(){this._db.forEach((t,e)=>this._notifyRemove(e,t.entry,t.size,0)),this._clients.forEach(t=>t.size=0),this._size=0,this._db.clear()}*values(t){for(const[e,i]of this._db)e.startsWith(t.id)&&(yield i.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,i,s){const r=this._clients.get(t.split(l)[0])?.removeFunc,n=r?.(e,s,i);return"number"==typeof n?n:null}_checkSize(){this._sizeLimits.forEach((t,e)=>this._checkSizeLimits(t,e)),this._clients.forEach(t=>this._checkSizeLimits(this._maxClientSize,t)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(t,e){null==e||e<=0?this._sizeLimits.delete(t):this._sizeLimits.set(t,e)}_checkSizeLimits(t,e){const i=e??this;if(i.size<=t)return;const s=e?.id;let r=!0;for(;r;){r=!1;for(const[n,o]of this._db)if(0===o.lifetime&&(!s||n.startsWith(s))){const s=e??this._clients.get(n.split(l)[0]);if(this._purgeItem(n,o,s),i.size<=.9*t)return;r||=this._db.has(n)}}for(const[r,n]of this._db)if(!s||r.startsWith(s)){const s=e??this._clients.get(r.split(l)[0]);if(this._purgeItem(r,n,s),i.size<=.9*t)return}}_purgeItem(t,e,i){if(this._db.delete(t),e.lives<=1){this._size-=e.size,i&&(i.size-=e.size);const s=this._notifyRemove(t,e.entry,e.size,1);null!=s&&s>0&&(this._size+=s,i&&(i.size+=s),e.lives=e.lifetime,e.size=s,this._db.set(t,e))}else--e.lives,this._db.set(t,e)}}new r(0);class n{constructor(t,e,i){this.entry=t,this.size=e,this.lifetime=i,this.lives=i}}const l=":";class o{constructor(t,e){this.removeFunc=e,this.id="",this.name="",this.size=0,this._storage=new r(t,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(t,e,i=1){this._storage.put(this,t,e,i,1)}pop(t){return this._storage.pop(this,t)}get(t){return this._storage.get(this,t)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(t){this._storage.maxSize=t}resetHitRate(){}}},60999(t,e,i){i.d(e,{DZ:()=>d,Ke:()=>y,Tj:()=>u,UT:()=>f,aD:()=>g,jJ:()=>h});var s=i(32198),r=i(69622),n=i(97768),l=i(17676),o=i(10107),a=i(64108);function h(t,e,i){return(0,l.Lx)(t.map((t,s)=>e.apply(i,[t,s])))}async function u(t,e,i){return(await(0,l.Lx)(t.map((t,s)=>e.apply(i,[t,s])))).map(t=>t.value)}function c(t){return{ok:!0,value:t}}function p(t){return{ok:!1,error:t}}async function y(t){if(null==t)return{ok:!1,error:new Error("no promise provided")};try{return c(await t)}catch(t){return p(t)}}async function d(t){try{return c(await t)}catch(t){return(0,l.QP)(t),p(t)}}function f(t,e){return new m(t,e)}let m=class extends r.A{get value(){return null!=(t=this._result)&&!0===t.ok?t.value:null;var t}get error(){return null!=(t=this._result)&&!1===t.ok?t.error:null;var t}get finished(){return null!=this._result}constructor(t,e){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,n.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:i}=this._abortController;this.promise=t(i),this.promise.then(t=>{this._result=c(t),this._cleanup()},t=>{this._result=p(t),this._cleanup()}),this._abortHandle=(0,l.u7)(e,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,n.xt)(this._abortHandle),this._abortController=null}};(0,s.Cg)([(0,o.MZ)()],m.prototype,"value",null),(0,s.Cg)([(0,o.MZ)()],m.prototype,"error",null),(0,s.Cg)([(0,o.MZ)()],m.prototype,"finished",null),(0,s.Cg)([(0,o.MZ)()],m.prototype,"promise",void 0),(0,s.Cg)([(0,o.MZ)()],m.prototype,"_result",void 0),m=(0,s.Cg)([(0,a.$)("esri.core.asyncUtils.ReactiveTask")],m);class g{constructor(){this._sequence=Promise.resolve()}async acquire(){let t;this._sequence=new Promise(e=>{t=this._sequence.then(()=>e,()=>e)});const e=await t;return{[Symbol.dispose]:e}}async run(t){const e={stack:[],error:void 0,hasError:!1};try{return(0,s.mS)(e,await this.acquire(),!1),await t()}catch(t){e.error=t,e.hasError=!0}finally{(0,s.hk)(e)}}}},69397(t,e,i){i.d(e,{Qf:()=>o,Qh:()=>n,lM:()=>r});var s=i(34275);function r(t){if(!t)return 0;let e=h;for(const i in t)t.hasOwnProperty(i)&&(e+=l(t[i],!1));return e}function n(t){if(!t)return 0;if("number"==typeof t[0])return o(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return a(t,8);let i=u;for(let s=0;s<e;s++)i+=l(t[s]);return i}(t);let e=h;for(const i in t)t.hasOwnProperty(i)&&(e+=l(t[i]));return e}function l(t,e=!0){switch(typeof t){case"object":return e?n(t):h;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...t){return t.reduce((t,e)=>t+(e?(0,s.iu)(e)?e.byteLength+c:Array.isArray(e)?a(e,16):0:0),0)}function a(t,e){return u+t.length*e}const h=32,u=16,c=145},90629(t,e,i){i.d(e,{Lz:()=>r,PN:()=>n,cr:()=>l,gs:()=>a,r_:()=>h,tc:()=>o}),i(39829);const s=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function r(t){return t?t/72*96:0}function n(t){return t?72*t/96:0}function l(t){if("string"==typeof t){const e=t.match(s);if(e){const i=Number(e[1]),s=e[3]&&e[3].toLowerCase(),r=t.startsWith("-"),l="px"===s?n(i):i;return r?-l:l}return console.warn("screenUtils.toPt: input not recognized!"),null}return t}function o(t=0,e=0){return{x:t,y:e}}function a(t=0,e=0){return[t,e]}function h(t=0,e=0,i=0){return[t,e,i]}},83027(t,e,i){const s=i(29953).ho;i.d(e,["h",0,s])},48526(t,e,i){i.d(e,{A:()=>m});var s,r=i(32198),n=i(4576),l=i(4718),o=i(91429),a=i(5443),h=i(91075),u=i(86738),c=i(16930),p=i(90634),y=i(47610),d=i(56993),f=i(43937);let m=s=class extends h.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:i,hasZ:s,spatialReference:r}=t;switch(e??=[],e?.at(0)?.length){case 4:s??=!0,i??=!0;break;case 3:s??=!0!==i,i??=!s;break;default:s??=!1,i??=!1}return r??=c.A.WGS84,{...t,hasM:i,hasZ:s,points:e,spatialReference:r}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=(0,p.ge)(this);return t?new a.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,l.o8)(this.points)}clone(){const{points:t,spatialReference:e,hasM:i,hasZ:r}=this;return new s({points:(0,l.o8)(t),spatialReference:e.clone(),hasM:i,hasZ:r})}equals(t){if(this===t)return!0;if(null==t)return!1;const e=this.spatialReference,i=t.spatialReference;return null!=e==(null!=i)&&!(null!=e&&null!=i&&!e.equals(i))&&(0,n.aI)(this.points,t.points,y.v6)}addPoint(t){return(0,d.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const e=this.points[t],i={x:e[0],y:e[1],spatialReference:this.spatialReference};let s=2;return this.hasZ&&(i.z=e[2],s=3),this.hasM&&(i.m=e[s]),new u.A(i)}removePoint(t){if(!this._validateInputs(t))return null;const e=new u.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)?((0,d.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,r.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,r.Cg)([(0,o.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],m.prototype,"points",void 0),(0,r.Cg)([(0,f.K)("points")],m.prototype,"writePoints",null),m=s=(0,r.Cg)([(0,o.$K)("esri.geometry.Multipoint")],m),m.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,i){i.d(e,{A:()=>d});var s,r=i(32198),n=i(4718),l=i(91429),o=i(5443),a=i(91075),h=i(86738),u=i(16930),c=i(90634),p=i(56993),y=i(43937);let d=s=class extends a.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:i,hasZ:s,spatialReference:r}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:s??=!0,i??=!0;break;case 3:s??=!0!==i,i??=!s;break;default:s??=!1,i??=!1}return r??=u.A.WGS84,{...t,hasM:i,hasZ:s,paths:e,spatialReference:r}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,e){e.curvePaths=(0,n.o8)(t)}get extent(){const t=(0,c.Z3)(this),{spatialReference:e}=this;return t?new o.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,n.o8)(this.paths)}addPath(t){if(!t)return;const e=this.paths,i=e.length;if(function(t){return!Array.isArray(t[0])}(t)){const s=[];for(let e=0,i=t.length;e<i;e++)s[e]=t[e].toArray();e[i]=s}else e[i]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new s;return t.spatialReference=this.spatialReference,t.paths=(0,n.o8)(this.paths),t.curvePaths=(0,n.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;const i=this.paths[t][e],s=this.hasZ,r=this.hasM;return s&&!r?new h.A(i[0],i[1],i[2],void 0,this.spatialReference):r&&!s?new h.A(i[0],i[1],void 0,i[2],this.spatialReference):s&&r?new h.A(i[0],i[1],i[2],i[3],this.spatialReference):new h.A(i[0],i[1],this.spatialReference)}insertPoint(t,e,i){return this._validateInputs(t,e,!0)?((0,p.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[t].splice(e,0,i),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const e=this.paths.splice(t,1)[0],i=this.spatialReference,s=e.map(t=>new h.A(t,i));return this.notifyChange("paths"),s}removePoint(t,e){if(!this._validateInputs(t,e))return null;const i=new h.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),i}setPoint(t,e,i){return this._validateInputs(t,e)?((0,p.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[t][e]=i,this.notifyChange("paths"),this):this}_validateInputs(t,e,i=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){const s=this.paths[t];if(i&&(e<0||e>s.length))return!1;if(!i&&(e<0||e>=s.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,r.Cg)([(0,l.MZ)({readOnly:!0})],d.prototype,"cache",null),(0,r.Cg)([(0,l.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],d.prototype,"curvePaths",void 0),(0,r.Cg)([(0,y.K)("curvePaths")],d.prototype,"writeCurvePaths",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,r.Cg)([(0,l.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],d.prototype,"paths",void 0),(0,r.Cg)([(0,y.K)("paths")],d.prototype,"writePaths",null),d=s=(0,r.Cg)([(0,l.$K)("esri.geometry.Polyline")],d),d.prototype.toJSON.isDefaultToJSON=!0},6774(t,e,i){i.d(e,{O3:()=>n,Ox:()=>l,bR:()=>s});class s{constructor(t,e){this.x=t,this.y=e}static fromArray(t){return new s(t[0],t[1])}clone(){return new s(this.x,this.y)}equals(t,e){return t===this.x&&e===this.y}isEqual(t){return t.x===this.x&&t.y===this.y}setCoords(t,e){return this.x=t,this.y=e,this}normalize(){const t=this.x,e=this.y,i=Math.sqrt(t*t+e*e);return this.x/=i,this.y/=i,this}rightPerpendicular(){const t=this.x;return this.x=this.y,this.y=-t,this}leftPerpendicular(){const t=this.x;return this.x=-this.y,this.y=t,this}move(t,e){return this.x+=t,this.y+=e,this}assign(t){return this.x=t.x,this.y=t.y,this}assignAdd(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}assignSub(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}rotate(t,e){const i=this.x,s=this.y;return this.x=i*t-s*e,this.y=i*e+s*t,this}rotateReverse(t,e){const i=this.x,s=this.y;return this.x=i*t+s*e,this.y=-i*e+s*t,this}scale(t){return this.x*=t,this.y*=t,this}length(){const t=this.x,e=this.y;return Math.sqrt(t*t+e*e)}sub(t){return this.x-=t.x,this.y-=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}static distance(t,e){const i=e.x-t.x,s=e.y-t.y;return Math.sqrt(i*i+s*s)}static add(t,e){return new s(t.x+e.x,t.y+e.y)}static sub(t,e){return new s(t.x-e.x,t.y-e.y)}}class r{constructor(t,e,i){this.ratio=t,this.x=e,this.y=i}}class n{constructor(t,e,i,s=8,r=8){this._lines=[],this._starts=[],this.validateTessellation=!0,this._pixelRatio=s,this._pixelMargin=r,this._tileSize=512*s,this._dz=t,this._yPos=e,this._xPos=i}setPixelMargin(t){t!==this._pixelMargin&&(this._pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this._finalRatio=this._tileSize/t*(1<<this._dz);let e=this._pixelRatio*this._pixelMargin;e/=this._finalRatio;const i=t>>this._dz;e>i&&(e=i),this._margin=e,this._xmin=i*this._xPos-e,this._ymin=i*this._yPos-e,this._xmax=this._xmin+i+2*e,this._ymax=this._ymin+i+2*e}reset(t){this._type=t,this._lines=[],this._starts=[],this._line=null,this._start=0}moveTo(t,e){this._pushLine(),this._prevIsIn=this._isIn(t,e),this._moveTo(t,e,this._prevIsIn),this._prevPt=new s(t,e),this._firstPt=new s(t,e),this._dist=0}lineTo(t,e){const i=this._isIn(t,e),n=new s(t,e),l=s.distance(this._prevPt,n);let o,a,h,u,c,p,y,d;if(i)this._prevIsIn?this._lineTo(t,e,!0):(o=this._prevPt,a=n,h=this._intersect(a,o),this._start=this._dist+l*(1-this._r),this._lineTo(h.x,h.y,!0),this._lineTo(a.x,a.y,!0));else if(this._prevIsIn)a=this._prevPt,o=n,h=this._intersect(a,o),this._lineTo(h.x,h.y,!0),this._lineTo(o.x,o.y,!1);else{const t=this._prevPt,e=n;if(t.x<=this._xmin&&e.x<=this._xmin||t.x>=this._xmax&&e.x>=this._xmax||t.y<=this._ymin&&e.y<=this._ymin||t.y>=this._ymax&&e.y>=this._ymax)this._lineTo(e.x,e.y,!1);else{const i=[];if((t.x<this._xmin&&e.x>this._xmin||t.x>this._xmin&&e.x<this._xmin)&&(u=(this._xmin-t.x)/(e.x-t.x),d=t.y+u*(e.y-t.y),d<=this._ymin?p=!1:d>=this._ymax?p=!0:i.push(new r(u,this._xmin,d))),(t.x<this._xmax&&e.x>this._xmax||t.x>this._xmax&&e.x<this._xmax)&&(u=(this._xmax-t.x)/(e.x-t.x),d=t.y+u*(e.y-t.y),d<=this._ymin?p=!1:d>=this._ymax?p=!0:i.push(new r(u,this._xmax,d))),(t.y<this._ymin&&e.y>this._ymin||t.y>this._ymin&&e.y<this._ymin)&&(u=(this._ymin-t.y)/(e.y-t.y),y=t.x+u*(e.x-t.x),y<=this._xmin?c=!1:y>=this._xmax?c=!0:i.push(new r(u,y,this._ymin))),(t.y<this._ymax&&e.y>this._ymax||t.y>this._ymax&&e.y<this._ymax)&&(u=(this._ymax-t.y)/(e.y-t.y),y=t.x+u*(e.x-t.x),y<=this._xmin?c=!1:y>=this._xmax?c=!0:i.push(new r(u,y,this._ymax))),0===i.length)c?p?this._lineTo(this._xmax,this._ymax,!0):this._lineTo(this._xmax,this._ymin,!0):p?this._lineTo(this._xmin,this._ymax,!0):this._lineTo(this._xmin,this._ymin,!0);else if(i.length>1&&i[0].ratio>i[1].ratio)this._start=this._dist+l*i[1].ratio,this._lineTo(i[1].x,i[1].y,!0),this._lineTo(i[0].x,i[0].y,!0);else{this._start=this._dist+l*i[0].ratio;for(let t=0;t<i.length;t++)this._lineTo(i[t].x,i[t].y,!0)}this._lineTo(e.x,e.y,!1)}}this._dist+=l,this._prevIsIn=i,this._prevPt=n}close(){if(this._line.length>2){const t=this._firstPt,e=this._prevPt;t.x===e.x&&t.y===e.y||this.lineTo(t.x,t.y);const i=this._line;let s=i.length;for(;s>=4&&(i[0].x===i[1].x&&i[0].x===i[s-2].x||i[0].y===i[1].y&&i[0].y===i[s-2].y);)i.pop(),i[0].x=i[s-2].x,i[0].y=i[s-2].y,--s}}result(t=!0){return this._pushLine(),0===this._lines.length?null:(3===this._type&&t&&o.simplify(this._tileSize,this._margin*this._finalRatio,this._lines),this._lines)}resultWithStarts(){if(2!==this._type)throw new Error("Only valid for lines");this._pushLine();const t=this._lines,e=t.length;if(0===e)return null;const i=[];for(let s=0;s<e;s++)i.push({line:t[s],start:this._starts[s]||0});return i}_isIn(t,e){return t>=this._xmin&&t<=this._xmax&&e>=this._ymin&&e<=this._ymax}_intersect(t,e){let i,r,n;if(e.x>=this._xmin&&e.x<=this._xmax)r=e.y<=this._ymin?this._ymin:this._ymax,n=(r-t.y)/(e.y-t.y),i=t.x+n*(e.x-t.x);else if(e.y>=this._ymin&&e.y<=this._ymax)i=e.x<=this._xmin?this._xmin:this._xmax,n=(i-t.x)/(e.x-t.x),r=t.y+n*(e.y-t.y);else{r=e.y<=this._ymin?this._ymin:this._ymax,i=e.x<=this._xmin?this._xmin:this._xmax;const s=(i-t.x)/(e.x-t.x),l=(r-t.y)/(e.y-t.y);s<l?(n=s,r=t.y+s*(e.y-t.y)):(n=l,i=t.x+l*(e.x-t.x))}return this._r=n,new s(i,r)}_pushLine(){this._line&&(1===this._type?this._line.length>0&&(this._lines.push(this._line),this._starts.push(this._start)):2===this._type?this._line.length>1&&(this._lines.push(this._line),this._starts.push(this._start)):3===this._type&&this._line.length>3&&(this._lines.push(this._line),this._starts.push(this._start))),this._line=[],this._start=0}_moveTo(t,e,i){3!==this._type?i&&(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new s(t,e))):(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new s(t,e)),this._isH=!1,this._isV=!1)}_lineTo(t,e,i){let r,n;if(3!==this._type)if(i){if(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.length>0&&(r=this._line[this._line.length-1],r.equals(t,e)))return;this._line.push(new s(t,e))}else this._line&&this._line.length>0&&this._pushLine();else if(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line&&this._line.length>0){r=this._line[this._line.length-1];const i=r.x===t,l=r.y===e;if(i&&l)return;this._isH&&i||this._isV&&l?(r.x=t,r.y=e,n=this._line[this._line.length-2],n.x===t&&n.y===e?(this._line.pop(),this._line.length<=1?(this._isH=!1,this._isV=!1):(n=this._line[this._line.length-2],this._isH=n.x===t,this._isV=n.y===e)):(this._isH=n.x===t,this._isV=n.y===e)):(this._line.push(new s(t,e)),this._isH=i,this._isV=l)}else this._line.push(new s(t,e))}}class l{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this._lines=[],this._line=null}moveTo(t,e){this._line&&this._lines.push(this._line),this._line=[];const i=this._ratio;this._line.push(new s(t*i,e*i))}lineTo(t,e){const i=this._ratio;this._line.push(new s(t*i,e*i))}close(){const t=this._line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this._line&&this._lines.push(this._line),0===this._lines.length?null:this._lines}}class o{static simplify(t,e,i){if(!i)return;const s=-e,r=t+e,n=-e,l=t+e,a=[],h=[],u=i.length;for(let t=0;t<u;++t){const e=i[t];if(!e||e.length<2)continue;let o,u=e[0];const c=e.length;for(let i=1;i<c;++i)o=e[i],u.x===o.x&&(u.x<=s&&(u.y>o.y?(a.push(t),a.push(i),a.push(0),a.push(-1)):(h.push(t),h.push(i),h.push(0),h.push(-1))),u.x>=r&&(u.y<o.y?(a.push(t),a.push(i),a.push(1),a.push(-1)):(h.push(t),h.push(i),h.push(1),h.push(-1)))),u.y===o.y&&(u.y<=n&&(u.x<o.x?(a.push(t),a.push(i),a.push(2),a.push(-1)):(h.push(t),h.push(i),h.push(2),h.push(-1))),u.y>=l&&(u.x>o.x?(a.push(t),a.push(i),a.push(3),a.push(-1)):(h.push(t),h.push(i),h.push(3),h.push(-1)))),u=o}if(0===a.length||0===h.length)return;o.fillParent(i,h,a),o.fillParent(i,a,h);const c=[];o.calcDeltas(c,h,a),o.calcDeltas(c,a,h),o.addDeltas(c,i)}static fillParent(t,e,i){const s=i.length,r=e.length;for(let n=0;n<r;n+=4){const r=e[n],l=e[n+1],o=e[n+2],h=t[r][l-1],u=t[r][l];let c=8092,p=-1;for(let e=0;e<s;e+=4){if(i[e+2]!==o)continue;const s=i[e],r=i[e+1],n=t[s][r-1],l=t[s][r];switch(o){case 0:case 1:if(a(h.y,n.y,l.y)&&a(u.y,n.y,l.y)){const t=Math.abs(l.y-n.y);t<c&&(c=t,p=e)}break;case 2:case 3:if(a(h.x,n.x,l.x)&&a(u.x,n.x,l.x)){const t=Math.abs(l.x-n.x);t<c&&(c=t,p=e)}}}e[n+3]=p}}static calcDeltas(t,e,i){const s=e.length;for(let r=0;r<s;r+=4){const s=[],n=o.calcDelta(r,e,i,s);t.push(e[r]),t.push(e[r+1]),t.push(e[r+2]),t.push(n)}}static calcDelta(t,e,i,s){const r=e[t+3];if(-1===r)return 0;const n=s.length;return n>1&&s[n-2]===r?0:(s.push(r),o.calcDelta(r,i,e,s)+1)}static addDeltas(t,e){const i=t.length;let s=0;for(let e=0;e<i;e+=4){const i=t[e+3];i>s&&(s=i)}for(let r=0;r<i;r+=4){const i=e[t[r]],n=t[r+1],l=s-t[r+3];switch(t[r+2]){case 0:i[n-1].x-=l,i[n].x-=l,1===n&&(i[i.length-1].x-=l),n===i.length-1&&(i[0].x-=l);break;case 1:i[n-1].x+=l,i[n].x+=l,1===n&&(i[i.length-1].x+=l),n===i.length-1&&(i[0].x+=l);break;case 2:i[n-1].y-=l,i[n].y-=l,1===n&&(i[i.length-1].y-=l),n===i.length-1&&(i[0].y-=l);break;case 3:i[n-1].y+=l,i[n].y+=l,1===n&&(i[i.length-1].y+=l),n===i.length-1&&(i[0].y+=l)}}}}const a=(t,e,i)=>t>=e&&t<=i||t>=i&&t<=e},50638(t,e,i){i.r(e),i.d(e,{default:()=>St});var s=i(32198),r=i(11254),n=i(60999),l=i(4718),o=i(25728),a=i(17676),h=i(84952),u=i(91429),c=i(5443),p=i(16930),y=i(4146),d=i(52136),f=i(89186),m=i(18768),g=i(63074),_=i(69208),v=i(34287),x=i(8303),w=i(54310),A=i(25036),S=i(10873);let b=null;var M=i(49186),I=i(53966),C=i(34275);class P{constructor(t,e){this._spriteSource=t,this._maxTextureSize=e,this.devicePixelRatio=1,this._spriteImageFormat="png",this._isRetina=!1,this._spritesData={},this.image=null,this.width=null,this.height=null,this.loadStatus="not-loaded","url"===t.type&&t.spriteFormat&&(this._spriteImageFormat=t.spriteFormat),t.pixelRatio&&(this.devicePixelRatio=t.pixelRatio),this.baseURL=t.spriteUrl}get spriteNames(){const t=[];for(const e in this._spritesData)t.push(e);return t.sort(),t}getSpriteInfo(t){return this._spritesData?this._spritesData[t]:null}async load(t){if(this.baseURL){this.loadStatus="loading";try{await this._loadSprites(t),this.loadStatus="loaded"}catch{this.loadStatus="failed"}}else this.loadStatus="failed"}async _loadSprites(t){this._isRetina=this.devicePixelRatio>1.15;const{width:e,height:i,data:s,json:r}=await this._getSpriteData(this._spriteSource,t),n=Object.keys(r);if(!n||0===n.length||!s)return this._spritesData=this.image=null,void(this.width=this.height=0);this._spritesData=r,this.width=e,this.height=i;const l=Math.max(this._maxTextureSize,4096);if(e>l||i>l){const t=`Sprite resource for style ${this.baseURL} is bigger than the maximum allowed of ${l} pixels}`;throw I.A.getLogger("esri.layers.support.SpriteSource").error(t),new M.A("SpriteSource",t)}let o;for(let t=0;t<s.length;t+=4)o=s[t+3]/255,s[t]=s[t]*o,s[t+1]=s[t+1]*o,s[t+2]=s[t+2]*o;this.image=s}async _getSpriteData(t,e){if("image"===t.type){let e,i;if(this.devicePixelRatio<1.15){if(!t.spriteSource1x)throw new M.A("SpriteSource","no image data provided for low resolution sprites!");e=t.spriteSource1x.image,i=t.spriteSource1x.json}else{if(!t.spriteSource2x)throw new M.A("SpriteSource","no image data provided for high resolution sprites!");e=t.spriteSource2x.image,i=t.spriteSource2x.json}return"width"in e&&"height"in e&&"data"in e&&((0,C.mw)(e.data)||(0,C.UR)(e.data))?{width:e.width,height:e.height,data:new Uint8Array(e.data),json:i}:{...R(e),json:i}}const i=(0,h.An)(this.baseURL),s=i.query?"?"+(0,h.x0)(i.query):"",n=this._isRetina?"@2x":"",l=`${i.path}${n}.${this._spriteImageFormat}${s}`,o=`${i.path}${n}.json${s}`,[a,u]=await Promise.all([(0,r.A)(o,e),(0,r.A)(l,{responseType:"image",...e})]);return{...R(u.data),json:a.data}}}function R(t){const e=document.createElement("canvas"),i=e.getContext("2d");e.width=t.width,e.height=t.height,i.drawImage(t,0,0,t.width,t.height);const s=i.getImageData(0,0,t.width,t.height);return{width:t.width,height:t.height,data:new Uint8Array(s.data)}}var T=i(87045),z=i(25943),L=i(21325),O=i(28735),E=i(83027);class U{constructor(t,e,i){this.tileServers=[],this.tilemap=null,this.tileInfo=null,this.capabilities=null,this.fullExtent=null,this.initialExtent=null,this.name=t,this.sourceUrl=e;const s=(0,l.o8)(i),r=i.capabilities&&i.capabilities.split(",").map(t=>t.toLowerCase().trim()),n=!0===i?.exportTilesAllowed,o=!0===r?.includes("tilemap"),a=n&&i.hasOwnProperty("maxExportTilesCount")?i.maxExportTilesCount:0;this.capabilities={operations:{supportsExportTiles:n,supportsTileMap:o},exportTiles:n?{maxExportTilesCount:+a}:null},this.tileInfo=T.A.fromJSON(s.tileInfo),this.fullExtent=c.A.fromJSON(i.fullExtent),this.initialExtent=c.A.fromJSON(i.initialExtent)}destroy(){this.tilemap?.destroy()}async getRefKey(t,e){return this.tilemap?this.tilemap.dataKey(t,e):t}isCompatibleWith(t){const e=this.tileInfo,i=t.tileInfo;if(!e.spatialReference.equals(i.spatialReference))return!1;if(!e.origin.equals(i.origin))return!1;if(Math.round(e.dpi)!==Math.round(i.dpi))return!1;const s=e.lods,r=i.lods,n=Math.min(s.length,r.length);for(let t=0;t<n;t++){const e=s[t],i=r[t];if(e.level!==i.level||Math.round(e.scale)!==Math.round(i.scale))return!1}return!0}}var D=i(44159);class Z extends U{static async create(t,e,i,s,r){if(!0===s.cluster)throw new Error("Clustered GeoJSON vector tile sources are not supported.");if(null==s.data)throw new Error(`GeoJSON source '${t}' must define a data property.`);const n=s.maxzoom??18,l=await(0,E.h)("GeoJSONVectorTileSourceWorker",{signal:r?.signal,strategy:"dedicated"});let o;try{o=await l.invoke("initialize",{definition:s,name:t,requestOptions:$(r)},{signal:r?.signal}),(0,a.Te)(r)}catch(t){throw l.close(),t}return new Z(t,e,i,l,s.minzoom??0,n,o.geometryTypes)}constructor(t,e,i,s,r,n,l){super(t,e,i),this._connection=s,this._minZoom=r,this._maxZoom=n,this.geometryTypes=l}destroy(){super.destroy(),this._connection?.close(),this._connection=null}async getRefKey(t,e){if((0,a.Te)(e),t.level<this._minZoom)return null;if(t.level<=this._maxZoom)return t;const i=t.level-this._maxZoom;return new D.A(this._maxZoom,t.row>>i,t.col>>i,t.world)}requestTile(t,e,i,s){return(0,a.Te)(s),this._connection?this._connection.invoke("requestTile",{col:i,level:t,row:e},s):Promise.reject((0,a.NK)())}}function $(t){if(!t)return{};const{signal:e,...i}=t;return i}class j{constructor(t){this.url=t}destroy(){this._tileIndexPromise=null}async fetchTileIndex(){return this._tileIndexPromise||(this._tileIndexPromise=(0,r.A)(this.url).then(t=>t.data.index)),this._tileIndexPromise}async dataKey(t,e){const i=await this.fetchTileIndex();return(0,a.Te)(e),this._getIndexedDataKey(i,t)}_getIndexedDataKey(t,e){const i=[e];if(e.level<0||e.row<0||e.col<0||e.row>>e.level>0||e.col>>e.level>0)return null;let s=e;for(;0!==s.level;)s=new D.A(s.level-1,s.row>>1,s.col>>1,s.world),i.push(s);let r,n,l=t,o=i.pop();if(1===l)return o;for(;i.length;)if(r=i.pop(),n=(1&r.col)+((1&r.row)<<1),l){if(0===l[n]){o=null;break}if(1===l[n]){o=r;break}o=r,l=l[n]}return o}}var N=i(97768);class k{constructor(t,e){this._tilemap=t,this._tileIndexUrl=e}destroy(){this._tilemap=(0,N.pR)(this._tilemap),this._tileIndexPromise=null}async fetchTileIndex(t){return this._tileIndexPromise||(this._tileIndexPromise=(0,r.A)(this._tileIndexUrl,{query:{...t?.query}}).then(t=>t.data.index)),this._tileIndexPromise}dataKey(t,e){const{level:i,row:s,col:r}=t,n=new D.A(t);return this._tilemap.fetchAvailabilityUpsample(i,s,r,n,e).then(()=>(n.world=t.world,n)).catch(t=>{if((0,a.zf)(t))throw t;return null})}}var K=i(91869);class q{constructor(t){this._tileUrl=t,this._promise=null,this._abortController=null,this._abortOptions=[]}getData(t){(null==this._promise||(0,a.G4)(this._abortController?.signal))&&(this._promise=this._makeRequest(this._tileUrl));const e=this._abortOptions;return e.push(t),(0,a.u7)(t,()=>{e.every(t=>(0,a.G4)(t))&&this._abortController.abort()}),this._promise.then(t=>(0,l.o8)(t))}async _makeRequest(t){this._abortController=new AbortController;const{data:e}=await(0,r.A)(t,{responseType:"array-buffer",signal:this._abortController.signal});return e}}const F=new Map;function G(t,e){return(0,K.tE)(F,t,()=>new q(t)).getData(e).finally(()=>F.delete(t))}class B extends U{constructor(t,e,i){super(t,e,i);const s=(0,h.An)(this.sourceUrl),r=(0,l.o8)(i),n=r.tiles;if(s)for(let t=0;t<n.length;t++){const e=(0,h.An)(n[t]);e&&((0,h.oP)(e.path)||(e.path=(0,h.fj)(s.path,e.path)),n[t]=(0,h.a6)(e.path,{...s.query,...e.query}))}this.tileServers=n;const o=i.tileMap&&s?(0,h.a6)((0,h.fj)(s.path,i.tileMap),s.query??{}):null;this.capabilities.operations.supportsTileMap?(this.type="vector-tile",this.tilemap=new k(new z.d({layer:{parsedUrl:s,tileInfo:this.tileInfo},minLOD:r.minLOD??this.tileInfo.lods[0].level,maxLOD:r.maxLOD??this.tileInfo.lods[this.tileInfo.lods.length-1].level}),o)):o&&(this.tilemap=new j(o))}requestTile(t,e,i,s){return function(t,e,i,s,r){const n=(0,h.An)(t),l=n.query;if(l)for(const[t,r]of Object.entries(l))switch(r){case"{x}":l[t]=s.toString();break;case"{y}":l[t]=i.toString();break;case"{z}":l[t]=e.toString()}const o=n.path;return G((0,h.a6)(o.replaceAll(/\{z\}/gi,e.toString()).replaceAll(/\{y\}/gi,i.toString()).replaceAll(/\{x\}/gi,s.toString()),{...n.query}),r)}(this.tileServers[e%this.tileServers.length],t,e,i,s)}}function H(...t){let e;for(const i of t)if(null!=i)if((0,h.BQ)(i)){if(e){const t=e.split("://")[0];e=t+":"+i.trim()}}else e=(0,h.oP)(i)?i:(0,h.fj)(e,i);return e?(0,h.UC)(e):void 0}async function V(t,e,i,s,n){let l,o,u;if((0,a.Te)(n),"string"==typeof i){const t=(0,h.S8)(i);u=await(0,r.A)(t,{...n,responseType:"json",query:{f:"json",...n?.query}}),u.ssl&&(l&&(l=l.replace(/^http:/i,"https:")),o&&(o=o.replace(/^http:/i,"https:"))),l=t,o=t}else null!=i&&(u={data:i},l=i.jsonUrl||null,o=s);const c=u?.data;switch(c?.type){case"Feature":case"FeatureCollection":return t.sourceUrl=l||null,Q(t,function(t){return{version:8,sprite:"",glyphs:"",sources:{geojson:{type:"geojson",data:t}},layers:[]}}(c),o,n)}if(W(c))return t.styleUrl=l||null,Q(t,c,o,n);if(function(t){return!!t&&!W(t)}(c))return t.primarySourceName?tt(t,c,o,!1,e,n):(t.sourceUrl=l||null,J(c)&&null==t.style&&(e="tilejson"),tt(t,c,o,!0,e,n));throw new Error("You must specify the URL or the JSON for a service or for a style.")}function J(t){return"object"==typeof t&&!!t&&"tilejson"in t&&null!=t.tilejson}function W(t){return!!t&&"sources"in t&&!!t.sources}async function Q(t,e,i,s){const r=i?(0,h.nM)(i):(0,h.gd)(),n=null==e.layers||0===e.layers.length,l=n?{...e,layers:[]}:e;t.styleBase=r,t.style=l,"webp"===l["sprite-format"]?.toLowerCase()&&(t.spriteFormat="webp");const o=[];if(l.sources&&l.sources.esri&&"geojson"!==l.sources.esri.type){const e=l.sources.esri;e.url?await V(t,"esri",H(r,e.url),void 0,s):o.push(V(t,"esri",e,r,s))}for(const e of Object.keys(l.sources))"esri"!==e&&"tilejson"!==e&&"vector"===l.sources[e].type&&(l.sources[e].url?o.push(V(t,e,H(r,l.sources[e].url),void 0,s)):l.sources[e].tiles&&o.push(V(t,e,l.sources[e],r,s)));await Promise.all(o);for(const e of Object.keys(l.sources)){const i=l.sources[e];if("geojson"===i.type){const o=await Y(t,e,i,r,s);n&&l.layers.push(...X(e,o.geometryTypes))}}}async function Y(t,e,i,s,r){if(null==i.data)throw new Error(`GeoJSON source '${e}' must define a data property.`);const n={...i,type:"geojson",data:"string"==typeof i.data?H(s,i.data):i.data},l=it({maxzoom:n.maxzoom,minzoom:n.minzoom},t),o=await Z.create(e,s,l,n,r);return et(t,e,i,l,o,!t.primarySourceName,s),o}function X(t,e){return e.map(e=>{switch(e){case"polygon":return{id:`${t}_polygon`,type:"fill",source:t,filter:["==","$type","Polygon"],paint:{"fill-color":"#808080"}};case"line":return{id:`${t}_line`,type:"line",source:t,filter:["==","$type","LineString"],paint:{"line-color":"#808080","line-width":1}};case"point":return{id:`${t}_point`,type:"circle",source:t,filter:["==","$type","Point"],paint:{"circle-color":"#808080","circle-radius":3}}}})}async function tt(t,e,i,s,r,n){const l=i?(0,h.UC)(i)+"/":(0,h.gd)(),o=it(e,t);if(et(t,r,e,o,new B(r,(0,h.a6)(l,n?.query??{}),o),s,l),!J(t)&&"defaultStyles"in e&&!t.style){if(null==e.defaultStyles)throw new Error;return"string"==typeof e.defaultStyles?V(t,"",H(l,e.defaultStyles,"root.json"),void 0,n):V(t,"",e.defaultStyles,H(l,"root.json"),n)}if(J(e)&&null==t.style&&o.defaultStyles)return V(t,"",o.defaultStyles,H(l,"root.json"),n)}function et(t,e,i,s,r,n,l){if(!n&&t.primarySourceName in t.sourceNameToSource){const i=t.sourceNameToSource[t.primarySourceName];if(!i.isCompatibleWith(r))return I.A.getLogger("esri.layers.support.vectorTileLayerLoader").warn(`Ignoring source '${e}' because its tiling scheme is incompatible with the primary source '${t.primarySourceName}'.`),void r.destroy();null!=r.fullExtent&&(null!=i.fullExtent?i.fullExtent.union(r.fullExtent):i.fullExtent=r.fullExtent.clone()),i.tileInfo&&r.tileInfo&&i.tileInfo.lods.length<r.tileInfo.lods.length&&(i.tileInfo=r.tileInfo)}n&&(t.sourceBase=l,t.source=i,t.validatedSource=s,t.primarySourceName=e),t.sourceNameToSource[e]=r}function it(t,e){const i=512;if(function(t){return t.hasOwnProperty("tileInfo")}(t)){const e=t?.tileInfo;return null!=e&&(null==e.rows&&(e.rows=i),null==e.cols&&(e.cols=i)),t}const s={xmin:-20037507.067161843,ymin:-20037507.067161843,xmax:20037507.067161843,ymax:20037507.067161843,spatialReference:{wkid:102100,latestWkid:3857}};let r,n=null;if(J(t)){const{bounds:i,vector_layers:s}=t;if(i){const t=(0,O.Gh)({x:i[0],y:i[1],spatialReference:(0,l.o8)(L.KK)}),e=(0,O.Gh)({x:i[2],y:i[3],spatialReference:(0,l.o8)(L.KK)});n={xmin:t.x,ymin:t.y,xmax:e.x,ymax:e.y,spatialReference:(0,l.o8)(L.ch)}}if(s&&s.length>0)r={version:8,sprite:"",glyphs:"",sources:{tilejson:{type:"vector",url:t.tilejson}},layers:st(s)};else if(null==e.style)throw new Error("The TileJSON source does not contain any vector_layers. This VectorTileLayer cannot be loaded.")}null===n&&(n=s);let o=78271.51696400007,a=295828763.7957775;const h=[],u=t.hasOwnProperty("maxzoom")&&null!=t.maxzoom?Math.abs(+t.maxzoom):22;for(let t=0;t<=u;t++)h.push({level:t,scale:a,resolution:o}),o/=2,a/=2;return{capabilities:"TilesOnly",initialExtent:n,fullExtent:s,minScale:0,maxScale:0,tiles:t.tiles,tileInfo:{rows:i,cols:i,dpi:96,format:"pbf",origin:{x:-20037508.342787,y:20037508.342787},lods:h,spatialReference:(0,l.o8)(L.ch)},defaultStyles:r}}function st(t){const e=[];for(const i of t)i.geometry_type?e.push(rt(i.geometry_type.toLowerCase(),i,!1)):(e.push(rt("polygon",i,!0)),e.push(rt("line",i,!0)),e.push(rt("circle",i,!0)));return e}function rt(t,e,i){const{id:s,minzoom:r,maxzoom:n}=e,l={type:"polygon"===t||"polygons"===t?"fill":"line"===t||"lines"===t?"line":"circle",id:s,source:"tilejson","source-layer":s,minzoom:r,maxzoom:n};switch(t){case"fill":i&&(l.id+="_polygon",l.filter='(["==", "$type", "Polygon"])'),l.paint={"fill-color":"#808080"};break;case"line":i&&(l.id+="_line",l.filter='(["==", "$type", "LineString"])');break;case"circle":i&&(l.id+="_point",l.filter='(["==", "$type", "Point"])')}return l}var nt=i(88788),lt=i(39131),ot=i(97159),at=i(86738),ht=i(91806);const ut=1e-6;function ct(t,e){if(t===e)return!0;if(null==t&&null!=e)return!1;if(null!=t&&null==e)return!1;if(null==t||null==e)return!1;if(!t.spatialReference.equals(e.spatialReference)||t.dpi!==e.dpi)return!1;const i=t.origin,s=e.origin;if(Math.abs(i.x-s.x)>=ut||Math.abs(i.y-s.y)>=ut)return!1;let r,n;t.lods[0].scale>e.lods[0].scale?(r=t,n=e):(n=t,r=e);for(let t=r.lods[0].scale;t>=n.lods[n.lods.length-1].scale-ut;t/=2)if(Math.abs(t-n.lods[0].scale)<ut)return!0;return!1}function pt(t,e){if(t===e)return t;if(null==t&&null!=e)return e;if(null!=t&&null==e)return t;if(null==t||null==e)return null;const i=t.size[0],s=t.format,r=t.dpi,n=new at.A({x:t.origin.x,y:t.origin.y}),l=t.spatialReference,o=t.lods[0].scale>e.lods[0].scale?t.lods[0]:e.lods[0],a=t.lods[t.lods.length-1].scale<=e.lods[e.lods.length-1].scale?t.lods[t.lods.length-1]:e.lods[e.lods.length-1],h=o.scale,u=o.resolution,c=a.scale,p=[];let y=h,d=u,f=0;for(;y>=c;)p.push(new ht.A({level:f,resolution:d,scale:y})),f++,y/=2,d/=2;return new T.A({size:[i,i],dpi:r,format:s||"pbf",origin:n,lods:p,spatialReference:l})}var yt=i(45013);class dt{constructor(t){this.getUnmaskedRenderer=t}}function ft(t){const e=t.getExtension("WEBGL_debug_renderer_info");return e?new dt(()=>t.getParameter(e.UNMASKED_RENDERER_WEBGL)):null}let mt;function gt(){return mt??=function(){const t=new _t,e=function(t){if("undefined"==typeof WebGL2RenderingContext)return null;const e=document.createElement("canvas");if(!e)return null;let i=e.getContext("webgl2",{failIfMajorPerformanceCaveat:!0});if(null==i&&(i=e.getContext("webgl2"),null!=i&&(t.majorPerformanceCaveat=!0,t.unmaskedRenderer=ft(i)?.getUnmaskedRenderer()??"unknown")),null==i)return i;t.available=!0,t.maxTextureSize=i.getParameter(i.MAX_TEXTURE_SIZE),t.supportsVertexShaderSamplers=i.getParameter(i.MAX_VERTEX_TEXTURE_IMAGE_UNITS)>0;const s=i.getShaderPrecisionFormat(i.FRAGMENT_SHADER,i.HIGH_FLOAT);return s&&(t.supportsHighPrecisionFragment=s.precision>0),i}(t);return null==e||(t.supportsColorBufferFloat=null!==e.getExtension("EXT_color_buffer_float"),t.supportsColorBufferFloatBlend=null!==e.getExtension("EXT_float_blend"),t.supportsColorBufferHalfFloat=t.supportsColorBufferFloat||null!==e.getExtension("EXT_color_buffer_half_float")),t}(),mt}class _t{constructor(){this.available=!1,this.majorPerformanceCaveat=!1,this.maxTextureSize=0,this.supportsVertexShaderSamplers=!1,this.supportsHighPrecisionFragment=!1,this.supportsColorBufferFloat=!1,this.supportsColorBufferFloatBlend=!1,this.supportsColorBufferHalfFloat=!1,this.unmaskedRenderer="unloaded"}}var vt=i(59923),xt=i(43937),wt=i(36005);let At=class extends((0,g.dM)((0,A.j)((0,w.J)((0,f.f)((0,m.b)((0,v.q)((0,x.A)((0,_.d)((0,d.p)((0,o.M)(y.A))))))))))){constructor(...t){super(...t),this._spriteSourceMap=new Map,this.currentStyleInfo=null,this.isReference=null,this.operationalLayerType="VectorTileLayer",this.path=null,this.refreshInterval=0,this.style=null,this.tilemapCache=null,this.type="vector-tile",this.graphicOrigin=null}normalizeCtorArgs(t,e){return"string"==typeof t?{url:t,...e}:t}destroy(){if(this.sourceNameToSource)for(const t of Object.values(this.sourceNameToSource))t?.destroy();this.primarySource?.destroy(),this._spriteSourceMap.clear()}async prefetchResources(t){await this.loadSpriteSource(globalThis.devicePixelRatio||1,t)}load(t){const e=this.loadFromPortal({supportedTypes:["Vector Tile Service"],supportsData:!1},t).catch(a.QP).then(async()=>{if(!this.portalItem?.id)return;const e=`${this.portalItem.itemCdnUrl}/resources/styles/root.json`;(await(0,r.A)(e,{...t,query:{f:"json",...this.customParameters,token:this.apiKey},authMode:this.portalItem.portal.authMode})).data&&this.read({url:e},(0,nt.v)(this.portalItem,"portal-item"))}).catch(a.QP).then(()=>this._loadStyle(t));return this.addResolvingPromise(e),Promise.resolve(this)}get apiKey(){return super.apiKey}set apiKey(t){super.apiKey=t}get portalItem(){return super.portalItem}set portalItem(t){super.portalItem=t}get attributionDataUrl(){const t=this.currentStyleInfo,e=t?.serviceUrl&&(0,h.An)(t.serviceUrl);if(!e)return null;const i=this._getDefaultAttribution(e.path);return i?(0,h.a6)(i,{...this.customParameters,token:this.apiKey}):null}get capabilities(){const t=this.primarySource;return t?t.capabilities:{operations:{supportsExportTiles:!1,supportsTileMap:!1},exportTiles:null}}get fullExtent(){return this.primarySource?.fullExtent||null}get initialExtent(){return this.primarySource?.initialExtent||null}get parsedUrl(){return this.serviceUrl?(0,h.An)(this.serviceUrl):null}get serviceUrl(){return this.currentStyleInfo?.serviceUrl||null}get spatialReference(){return this.tileInfo?.spatialReference??null}get styleUrl(){return this.currentStyleInfo?.styleUrl||null}writeStyleUrl(t,e){t&&(0,h.BQ)(t)&&(t=`https:${t}`);const i=(0,lt.py)(t);e.styleUrl=(0,ot.e)(t,i)}get tileInfo(){const t=[];for(const e in this.sourceNameToSource)t.push(this.sourceNameToSource[e]);let e=this.primarySource?.tileInfo||new T.A;if(t.length>1)for(let i=0;i<t.length;i++)ct(e,t[i].tileInfo)&&(e=pt(e,t[i].tileInfo));return e}readTilemapCache(t,e){const i=e.capabilities?.includes("Tilemap");return i?new z.d({layer:this}):null}set url(t){if(!t)return void this._set("url",t);const e=(0,h.An)(t);this._set("url",e.path),e.query&&(this.customParameters={...this.customParameters,...e.query})}readVersion(t,e){return e.version?parseFloat(e.version):parseFloat(e.currentVersion)}async loadSpriteSource(t=1,e){if(!this._spriteSourceMap.has(t)){const i=gt().maxTextureSize,s=this.currentStyleInfo?.spriteUrl?(0,h.a6)(this.currentStyleInfo.spriteUrl,{...this.customParameters,token:this.apiKey}):null,r=new P({type:"url",spriteUrl:s,pixelRatio:t,spriteFormat:this.currentStyleInfo?.spriteFormat},i);await r.load(e),this._spriteSourceMap.set(t,r)}return this._spriteSourceMap.get(t)}async setSpriteSource(t,e){if(!t)return null;const i=gt().maxTextureSize,s=t.spriteUrl,r=s?(0,h.a6)(s,{...this.customParameters,token:this.apiKey}):null;if(!r&&"url"===t.type)return null;const n=new P(t,i);try{await n.load(e);const i=t.pixelRatio||1;return this._spriteSourceMap.clear(),this._spriteSourceMap.set(i,n),r&&this.currentStyleInfo&&(this.currentStyleInfo.spriteUrl=r),this.emit("spriteSource-change",{spriteSource:n}),n}catch(t){(0,a.QP)(t)}return null}async loadStyle(t,e){const i=t||this.style||this.url;return this._loadingTask&&"string"==typeof i&&this.url===i||(this._loadingTask?.abort(),this._loadingTask=(0,n.UT)(t=>(this._spriteSourceMap.clear(),this._getSourceAndStyle(i,{signal:t})),e)),this._loadingTask.promise}getStyleLayerId(t){return this.styleRepository.getStyleLayerId(t)}getStyleLayerIndex(t){return this.styleRepository.getStyleLayerIndex(t)}getPaintProperties(t){return(0,l.o8)(this.styleRepository?.getPaintProperties(t))}setPaintProperties(t,e){const i=this.styleRepository.isPainterDataDriven(t);this.styleRepository.setPaintProperties(t,e);const s=this.styleRepository.isPainterDataDriven(t);this.emit("paint-change",{layer:t,paint:e,isDataDriven:i||s})}getStyleLayer(t){return(0,l.o8)(this.styleRepository.getStyleLayer(t))}setStyleLayer(t,e){this.styleRepository.setStyleLayer(t,e),this.emit("style-layer-change",{layer:t,index:e})}deleteStyleLayer(t){this.styleRepository.deleteStyleLayer(t),this.emit("delete-style-layer",{layer:t})}getLayoutProperties(t){return(0,l.o8)(this.styleRepository.getLayoutProperties(t))}setLayoutProperties(t,e){this.styleRepository.setLayoutProperties(t,e),this.emit("layout-change",{layer:t,layout:e})}setStyleLayerVisibility(t,e){this.styleRepository.setStyleLayerVisibility(t,e),this.emit("style-layer-visibility-change",{layer:t,visibility:e})}getStyleLayerVisibility(t){return this.styleRepository.getStyleLayerVisibility(t)?"visible":"none"}write(t,e){return e?.origin&&!this.styleUrl?((0,vt.U4)(e,this,"style defined by JSON only are not supported"),null):super.write(t,e)}getTileUrl(t,e,i){return null}async _getSourceAndStyle(t,e){if(!t)throw new Error("invalid style!");const i=await async function(t,e){const i={source:null,sourceBase:null,sourceUrl:null,validatedSource:null,style:null,styleBase:null,styleUrl:null,sourceNameToSource:{},primarySourceName:"",spriteFormat:"png"},[s,r]="string"==typeof t?[t,null]:[null,t.jsonUrl];return await V(i,"esri",t,r,e),{layerDefinition:i.validatedSource,url:s,serviceUrl:i.sourceUrl,style:i.style,styleUrl:i.styleUrl,spriteUrl:i.style&&i.style.sprite&&H(i.styleBase,i.style.sprite),spriteFormat:i.spriteFormat,glyphsUrl:i.style&&i.style.glyphs&&H(i.styleBase,i.style.glyphs),sourceNameToSource:i.sourceNameToSource,primarySourceName:i.primarySourceName}}(t,{...e,query:{...this.customParameters,token:this.apiKey}});"webp"===i.spriteFormat&&(await function(){if(b)return b;const t={lossy:"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",lossless:"UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",alpha:"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==",animation:"UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"};return b=new Promise(e=>{const i=new Image;i.onload=()=>{i.onload=i.onerror=null,e(i.width>0&&i.height>0)},i.onerror=()=>{i.onload=i.onerror=null,e(!1)},i.src="data:image/webp;base64,"+t.lossy}),b}()||(i.spriteFormat="png")),this._set("currentStyleInfo",{...i}),"string"==typeof t?(this.url=t,this.style=null):(this.url=null,this.style=t),this._set("sourceNameToSource",i.sourceNameToSource),this._set("primarySource",i.sourceNameToSource[i.primarySourceName]),this._set("styleRepository",new yt.A(i.style,!1)),this.read(i.layerDefinition,{origin:"service"}),this.emit("load-style")}_getDefaultAttribution(t){const e=t.match(/^https?:\/\/(?:basemaps|basemapsbeta|basemapsdev)(?:-api)?\.arcgis\.com(\/[^/]+)?\/arcgis\/rest\/services\/([^/]+(\/[^/]+)*)\/vectortileserver/i),i=["OpenBasemap_v2","OpenBasemap_GCS_v2","OpenStreetMap_v2","OpenStreetMap_Daylight_v2","OpenStreetMap_Export_v2","OpenStreetMap_FTS_v2","OpenStreetMap_GCS_v2","World_Basemap","World_Basemap_v2","World_Basemap_Export_v2","World_Basemap_GCS_v2","World_Basemap_WGS84","World_Contours_v2","World_Hillshade_v2"];if(!e)return;const s=e[2]&&e[2].toLowerCase();if(!s)return;const r=e[1]||"";for(const t of i)if(t.toLowerCase().includes(s))return(0,h.S8)(`//static.arcgis.com/attribution/Vector${r}/${t}`)}async _loadStyle(t){return this._loadingTask?.promise??this.loadStyle(null,t)}};(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"attributionDataUrl",null),(0,s.Cg)([(0,u.MZ)({type:["show","hide"]})],At.prototype,"listMode",void 0),(0,s.Cg)([(0,u.MZ)({json:{read:!0,write:!0}})],At.prototype,"blendMode",void 0),(0,s.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1}})],At.prototype,"capabilities",null),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"currentStyleInfo",void 0),(0,s.Cg)([(0,u.MZ)({json:{read:!1},readOnly:!0,type:c.A})],At.prototype,"fullExtent",null),(0,s.Cg)([(0,u.MZ)({json:{read:!1},readOnly:!0,type:c.A})],At.prototype,"initialExtent",null),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],At.prototype,"isReference",void 0),(0,s.Cg)([(0,u.MZ)({type:["VectorTileLayer"]})],At.prototype,"operationalLayerType",void 0),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"parsedUrl",null),(0,s.Cg)([(0,u.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],At.prototype,"path",void 0),(0,s.Cg)([(0,u.MZ)({type:Number,json:{write:!1,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],At.prototype,"refreshInterval",void 0),(0,s.Cg)([(0,u.MZ)()],At.prototype,"style",void 0),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"serviceUrl",null),(0,s.Cg)([(0,u.MZ)({type:p.A,readOnly:!0})],At.prototype,"spatialReference",null),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"styleRepository",void 0),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"sourceNameToSource",void 0),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"primarySource",void 0),(0,s.Cg)([(0,u.MZ)({type:String,readOnly:!0,json:{write:{ignoreOrigin:!0},origins:{"web-document":{write:{ignoreOrigin:!0,isRequired:!0}}}}})],At.prototype,"styleUrl",null),(0,s.Cg)([(0,xt.K)(["portal-item","web-document"],"styleUrl")],At.prototype,"writeStyleUrl",null),(0,s.Cg)([(0,u.MZ)({json:{read:!1,origins:{service:{read:!1}}},readOnly:!0,type:T.A})],At.prototype,"tileInfo",null),(0,s.Cg)([(0,u.MZ)()],At.prototype,"tilemapCache",void 0),(0,s.Cg)([(0,wt.w)("service","tilemapCache",["capabilities","tileInfo"])],At.prototype,"readTilemapCache",null),(0,s.Cg)([(0,u.MZ)({json:{read:!1},readOnly:!0,value:"vector-tile"})],At.prototype,"type",void 0),(0,s.Cg)([(0,u.MZ)({readOnly:!0,clonable:!1})],At.prototype,"graphicOrigin",void 0),(0,s.Cg)([(0,u.MZ)({json:{origins:{"web-document":{read:{source:"styleUrl"}},"portal-item":{read:{source:"url"}}},write:!1,read:!1}}),(0,u.MZ)(S.OZ)],At.prototype,"url",null),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"version",void 0),(0,s.Cg)([(0,wt.w)("version",["version","currentVersion"])],At.prototype,"readVersion",null),At=(0,s.Cg)([(0,u.$K)("esri.layers.VectorTileLayer")],At);const St=At},52136(t,e,i){var s=i(32198),r=i(91429);i.d(e,["p",0,t=>{const e=t;let i=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(t){null!=t?this._override("apiKey",t):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,s.Cg)([(0,r.MZ)({type:String})],i.prototype,"apiKey",null),i=(0,s.Cg)([(0,r.$K)("esri.layers.mixins.APIKeyMixin")],i),i}])},89186(t,e,i){var s=i(32198),r=i(91429),n=i(16930),l=i(87045),o=i(65509),a=i(25943),h=i(36005);i.d(e,["f",0,t=>{const e=t;let i=class extends e{constructor(){super(...arguments),this.copyright=null,this.minScale=0,this.maxScale=0,this.spatialReference=null,this.tileInfo=null,this.tilemapCache=null}destroy(){this.tilemapCache?.destroy?.()}readMinScale(t,e){return null!=e.minLOD&&null!=e.maxLOD?t:0}readMaxScale(t,e){return null!=e.minLOD&&null!=e.maxLOD?t:0}get supportsBlankTile(){return this.version>=10.2}readTilemapCache(t,e,i){const s=e.capabilities?.toLowerCase().includes("tilemap");let{minLOD:r,maxLOD:n,minScale:h,maxScale:u}=e;if(null==r&&null==n&&(0!==h||0!==u)){const t=t=>Math.round(1e4*t)/1e4;h=t(h||e.tileInfo.lods[0].scale),u=t(u||e.tileInfo.lods[e.tileInfo.lods.length-1].scale);for(const i of e.tileInfo.lods){const e=t(i.scale);r=e>=h?i.level:r,n=e>=u?i.level:n}}if(s)return new a.d({layer:this,minLOD:r,maxLOD:n});if(e.tileInfo){const t=new l.A;return t.read(e.tileInfo,i),new o.A(t,r,n)}return null}};return(0,s.Cg)([(0,r.MZ)({json:{read:{source:"copyrightText"}}})],i.prototype,"copyright",void 0),(0,s.Cg)([(0,r.MZ)()],i.prototype,"minScale",void 0),(0,s.Cg)([(0,h.w)("service","minScale")],i.prototype,"readMinScale",null),(0,s.Cg)([(0,r.MZ)()],i.prototype,"maxScale",void 0),(0,s.Cg)([(0,h.w)("service","maxScale")],i.prototype,"readMaxScale",null),(0,s.Cg)([(0,r.MZ)({type:n.A})],i.prototype,"spatialReference",void 0),(0,s.Cg)([(0,r.MZ)({readOnly:!0})],i.prototype,"supportsBlankTile",null),(0,s.Cg)([(0,r.MZ)({type:l.A})],i.prototype,"tileInfo",void 0),(0,s.Cg)([(0,r.MZ)()],i.prototype,"tilemapCache",void 0),(0,s.Cg)([(0,h.w)("service","tilemapCache",["capabilities","tileInfo"])],i.prototype,"readTilemapCache",null),(0,s.Cg)([(0,r.MZ)()],i.prototype,"version",void 0),i=(0,s.Cg)([(0,r.$K)("esri.layers.mixins.ArcGISCachedService")],i),i}])},18768(t,e,i){var s=i(32198),r=i(53966),n=i(91429),l=i(60694);i.d(e,["b",0,t=>{const e=t;let i=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const t=(0,l.qg)(this.url);if(t?.title)return t.title}return this._get("title")||""}set title(t){this._set("title",t)}set url(t){this._set("url",(0,l.Jf)(t,r.A.getLogger(this)))}};return(0,s.Cg)([(0,n.MZ)()],i.prototype,"title",null),(0,s.Cg)([(0,n.MZ)({type:String})],i.prototype,"url",null),i=(0,s.Cg)([(0,n.$K)("esri.layers.mixins.ArcGISService")],i),i}])},69208(t,e,i){var s=i(32198),r=i(91429);i.d(e,["d",0,t=>{const e=t;let i=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,s.Cg)([(0,r.MZ)({type:Object,json:{write:{overridePolicy:t=>({enabled:!!(t&&Object.keys(t).length>0)})}}})],i.prototype,"customParameters",void 0),i=(0,s.Cg)([(0,r.$K)("esri.layers.mixins.CustomParametersMixin")],i),i}])},8303(t,e,i){var s=i(32198),r=i(92602),n=i(70333),l=i(11254),o=i(60999),a=i(49186),h=i(36563),u=i(53966),c=i(97768),p=i(17676),y=i(84952),d=i(91429),f=i(77548),m=i(20655),g=i(80812),_=i(41318),v=i(10407),x=i(36005),w=i(43937);const A={credential:null,user:null};i.d(e,["A",0,t=>{const e=t;let S=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(t){t!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",t))}readPortalItem(t,e,i){if(e.itemId)return new g.default({id:e.itemId,portal:i?.portal})}writePortalItem(t,e){t?.id&&(e.itemId=t.id)}async loadFromPortal(t,e){if(this.portalItem?.id)try{const{load:s}=await i.e(1204).then(i.bind(i,41204));return(0,p.Te)(e),await s({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},e)}catch(t){throw(0,p.zf)(t)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}}async reloadFromPortal(t){if(!this.loaded||!this.portalItem?.id)return!1;try{const{reload:e}=await i.e(1204).then(i.bind(i,41204)),s=new AbortController,r=(0,h.rE)(s);return this.addHandles(r,"reloadFromPortal"),await e({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},{signal:s.signal})}catch(t){throw(0,p.zf)(t)||u.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}finally{this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(t){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(t).catch(t=>((0,p.QP)(t),!0)))}async setUserPrivileges(t,e){if(!r.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(e);if(this.url)try{const{features:{edit:i,fullEdit:s},content:{updateItem:r}}=await this._fetchUserPrivileges(t,e);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",s),this._set("userHasUpdateItemPrivileges",r)}catch(t){(0,p.QP)(t)}}async _fetchUserPrivileges(t,e){let i=this.portalItem;if(!t||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(e);const s=!n.id?.findCredential(this.url),r=t===i.id;if(r&&i.portal.user)return this._getUserPrivileges(i,s);let l,o;if(r)l=i.portal.url;else try{l=await(0,f.wI)(this.url,e)}catch(t){(0,p.QP)(t)}if(!l||!(0,y.b8)(l,i.portal.url))return this._fetchFallbackUserPrivileges(e);try{const t=null!=e?e.signal:null;o=await(n.id?.getCredential(`${l}/sharing`,{prompt:!1,signal:t}))}catch(t){(0,p.QP)(t)}const a=!0,h=!1,u=!1;if(!o)return{features:{edit:a,fullEdit:h},content:{updateItem:u}};try{if(r?await i.reload():(i=new g.default({id:t,portal:{url:l}}),await i.load(e)),i.portal.user)return this._getUserPrivileges(i,s)}catch(t){(0,p.QP)(t)}return{features:{edit:a,fullEdit:h},content:{updateItem:u}}}_getUserPrivileges(t,e){const i=(0,v.It)(t);return e&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(t){let e=!0;try{e=await this._fetchUserHasEditingPrivileges(t)}catch(t){(0,p.QP)(t)}return{features:{edit:e,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(t){const e=this.url?n.id?.findCredential(this.url):null;if(!e)return!0;const i=A.credential===e?A.user:await this._fetchEditingUser(t);return A.credential=e,A.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(t){const e=this.portalItem?.portal?.user;if(e)return e;const i=n.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const s=`${i.owningSystemUrl}/sharing/rest`,r=m.A.getDefault();if(r&&r.loaded&&(0,y.S8)(r.restUrl)===(0,y.S8)(s))return r.user;const a=`${s}/community/self`,h=null!=t?t.signal:null,u=await(0,o.Ke)((0,l.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:h}));return u.ok?_.A.fromJSON(u.value.data):null}read(t,e){e&&(e.layer=this),super.read(t,e)}write(t,e){const i=e?.portal,s=this.portalItem?.id&&(this.portalItem.portal||m.A.getDefault());return i&&s&&!(0,y.ut)(s.restUrl,i.restUrl)?(e.messages&&e.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(t,{...e,layer:this})}};return(0,s.Cg)([(0,d.MZ)({type:g.default})],S.prototype,"portalItem",null),(0,s.Cg)([(0,x.w)("web-document","portalItem",["itemId"])],S.prototype,"readPortalItem",null),(0,s.Cg)([(0,w.K)("web-document","portalItem",{itemId:{type:String}})],S.prototype,"writePortalItem",null),(0,s.Cg)([(0,d.MZ)({clonable:!1})],S.prototype,"resourceReferences",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasEditingPrivileges",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasFullEditingPrivileges",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasUpdateItemPrivileges",void 0),S=(0,s.Cg)([(0,d.$K)("esri.layers.mixins.PortalLayer")],S),S}])},91806(t,e,i){i.d(e,{A:()=>a});var s,r=i(32198),n=i(25482),l=i(91429),o=i(56507);let a=class extends n.o{static{s=this}constructor(t){super(t),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new s({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,r.Cg)([(0,l.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"cols",void 0),(0,r.Cg)([(0,l.MZ)({type:o.jz,json:{write:!0}})],a.prototype,"level",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],a.prototype,"levelValue",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"origin",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],a.prototype,"resolution",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"rows",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],a.prototype,"scale",void 0),a=s=(0,r.Cg)([(0,l.$K)("esri.layers.support.LOD")],a)},87045(t,e,i){i.d(e,{A:()=>v});var s,r=i(32198),n=i(66552),l=i(25482),o=i(86211),a=i(91429),h=i(56507),u=i(86738),c=i(16930),p=i(21325),y=i(28735),d=i(91806),f=i(72802),m=i(36005),g=i(43937);const _=new n.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let v=class extends l.o{static{s=this}static create(t={}){const{resolutionFactor:e=1,scales:i,size:r=256,spatialReference:n=c.A.WebMercator,numLODs:l=24}=t;if(!(0,p.fn)(n)){const t=[];if(i)for(let e=0;e<i.length;e++){const s=i[e];t.push(new d.A({level:e,scale:s,resolution:s}))}else{let e=5e-4;for(let i=l-1;i>=0;i--)t.unshift(new d.A({level:i,scale:e,resolution:e})),e*=2}return new s({dpi:96,lods:t,origin:new u.A(0,0,n),size:[r,r],spatialReference:n})}const a=(0,p.Vp)(n),h=t.origin?new u.A({x:t.origin.x,y:t.origin.y,spatialReference:n}):new u.A(a?{x:a.origin[0],y:a.origin[1],spatialReference:n}:{x:0,y:0,spatialReference:n}),y=1/(39.37*(0,o.GA)(n)*96),f=[];if(i)for(let t=0;t<i.length;t++){const e=i[t],s=e*y;f.push(new d.A({level:t,scale:e,resolution:s}))}else{let t=(0,p.EA)(n)?512/r*591657527.5917094:256/r*591657527.591555;const i=Math.ceil(l/e);f.push(new d.A({level:0,scale:t,resolution:t*y}));for(let s=1;s<i;s++){const i=t/2**e,r=i*y;f.push(new d.A({level:s,scale:i,resolution:r})),t=i}}return new s({dpi:96,lods:f,origin:h,size:[r,r],spatialReference:n})}constructor(t){super(t),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:t,origin:e}=this;if(t&&e){const i=(0,p.Vp)(t);return t.isWrappable&&!!i&&Math.abs(i.origin[0]-e.x)<=i.dx}return!1}readOrigin(t,e){return u.A.fromJSON({spatialReference:e.spatialReference,...t})}set lods(t){let e=0,i=0;const s=[],r=this._levelToLOD={};t&&(e=-1/0,i=1/0,t.forEach(t=>{s.push(t.scale),e=t.scale>e?t.scale:e,i=t.scale<i?t.scale:i,r[t.level]=t})),this._set("scales",s),this._set("lods",t),this._initializeUpsampleLevels()}readSize(t,e){return[e.cols,e.rows]}writeSize(t,e){e.cols=t[0],e.rows=t[1]}zoomToScale(t){const e=this.scales;if(t<=0)return e[0];if(t>=e.length-1)return e[e.length-1];const i=Math.floor(t),s=i+1;return e[i]/(e[i]/e[s])**(t-i)}scaleToZoom(t){const e=this.scales,i=e.length-1;let s=0;for(;s<i;s++){const i=e[s],r=e[s+1];if(i<=t)return s;if(r===t)return s+1;if(i>t&&r<t)return s+Math.log(i/t)/Math.log(i/r)}return s}tileAt(t,e,i,s){const r=this.lodAt(t);if(!r)return null;let n,l;if("number"==typeof e)n=e,l=i;else if((0,p.aI)(e.spatialReference,this.spatialReference))n=e.x,l=e.y,s=i;else{const t=(0,y.Cv)(e,this.spatialReference);if(null==t)return null;n=t.x,l=t.y,s=i}const o=r.resolution*this.size[0],a=r.resolution*this.size[1];return s??=new f.U(0,0,0),s.level=t,s.row=Math.floor((this.origin.y-l)/a+.001),s.col=Math.floor((n-this.origin.x)/o+.001),this.updateTileInfo(s),s}updateTileInfo(t,e=0){if(!("extent"in t))return!1;let i=this.lodAt(t.level);if(!i&&1===e){const e=this.lods[this.lods.length-1];e.level<t.level&&(i=e)}if(!i)return!1;const s=t.level-i.level,r=i.resolution*this.size[0]/2**s,n=i.resolution*this.size[1]/2**s;return t.extent[0]=this.origin.x+t.col*r,t.extent[1]=this.origin.y-(t.row+1)*n,t.extent[2]=t.extent[0]+r,t.extent[3]=t.extent[1]+n,!0}upsampleTile(t){const e=this._upsampleLevels[t.level];return!(!e||-1===e.parentLevel||(t.level=e.parentLevel,t.row=Math.floor(t.row/e.factor+.001),t.col=Math.floor(t.col/e.factor+.001),this.updateTileInfo(t),0))}getTileBounds(t,e){const i=this.lodAt(e.level);if(null==i)return null;const{resolution:s}=i,r=s*this.size[0],n=s*this.size[1];return t[0]=this.origin.x+e.col*r,t[1]=this.origin.y-(e.row+1)*n,t[2]=t[0]+r,t[3]=t[1]+n,t}lodAt(t){return this._levelToLOD?.[t]??null}clone(){return s.fromJSON(this.write({}))}getCompatibleForVTL(t){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===t)return null;const e=(512===this.size[0]&&256===t?-1:0)+(this.spatialReference.isGeographic?1:0);if(this.size[0]===t&&0===e)return this;const i=[],r=this.lods.length-e;for(let t=0;t<r;t++){const s=t+e,{scale:r,resolution:n}=s>=0?this.lods[s]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};i.push(new d.A({level:t,scale:r,resolution:n}))}return new s({size:[t,t],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:i})}_initializeUpsampleLevels(){const t=this.lods;this._upsampleLevels=[];let e=null;for(let i=0;i<t.length;i++){const s=t[i];this._upsampleLevels[s.level]={parentLevel:e?e.level:-1,factor:e?e.resolution/s.resolution:0},e=s}}};(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"compressionQuality",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"dpi",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{read:_.read,write:_.write,origins:{"web-scene":{read:!1,write:!1}}}})],v.prototype,"format",void 0),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],v.prototype,"isWrappable",null),(0,r.Cg)([(0,a.MZ)({type:u.A,json:{write:!0}})],v.prototype,"origin",void 0),(0,r.Cg)([(0,m.w)("origin")],v.prototype,"readOrigin",null),(0,r.Cg)([(0,a.MZ)({type:[d.A],value:null,json:{write:!0}})],v.prototype,"lods",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],v.prototype,"scales",void 0),(0,r.Cg)([(0,a.MZ)({cast:t=>Array.isArray(t)?t:"number"==typeof t?[t,t]:[256,256]})],v.prototype,"size",void 0),(0,r.Cg)([(0,m.w)("size",["rows","cols"])],v.prototype,"readSize",null),(0,r.Cg)([(0,g.K)("size",{cols:{type:h.jz},rows:{type:h.jz}})],v.prototype,"writeSize",null),(0,r.Cg)([(0,a.MZ)({type:c.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),v=s=(0,r.Cg)([(0,a.$K)("esri.layers.support.TileInfo")],v)},65509(t,e,i){i.d(e,{A:()=>n});var s=i(49186),r=i(17676);class n{constructor(t,e=0,i=t.lods[t.lods.length-1].level){this.tileInfo=t,this.minLOD=e,this.maxLOD=i,t.lodAt(e)||(this.minLOD=t.lods[0].level),t.lodAt(i)||(this.maxLOD=t.lods[t.lods.length-1].level)}get effectiveMinLOD(){return this.minLOD??this.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.tileInfo.lods[this.tileInfo.lods.length-1].level}getAvailability(t,e,i){const s=this.tileInfo?.lodAt(t);return!s||t<this.minLOD||t>this.maxLOD?"unavailable":s.cols&&s.rows?i>=s.cols[0]&&i<=s.cols[1]&&e>=s.rows[0]&&e<=s.rows[1]?"unknown":"unavailable":"unknown"}async fetchAvailability(t,e,i,n){await(0,r.NO)(n);const l=this.getAvailability(t,e,i);if("unavailable"===l)throw new s.A("tile-map:tile-unavailable","Tile is not available",{level:t,row:e,col:i});return l}async fetchAvailabilityUpsample(t,e,i,s,n){await(0,r.NO)(n),s.level=t,s.row=e,s.col=i;const l=this.tileInfo;return l.updateTileInfo(s),this.fetchAvailability(t,e,i,n).catch(t=>{if((0,r.zf)(t))throw t;if(l.upsampleTile(s))return this.fetchAvailabilityUpsample(s.level,s.row,s.col,s,n);throw t})}}},72802(t,e,i){i.d(e,{U:()=>r});var s=i(19419);class r{constructor(t,e,i,r=(0,s.vt)()){this._level=t,this._row=e,this._col=i,this.extent=r}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(t){this._level=t,this._id=null}get row(){return this._row}set row(t){this._row=t,this._id=null}get col(){return this._col}set col(t){this._col=t,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(t){return new r(t.level,t.row,t.col,t.extent)}}},25943(t,e,i){i.d(e,{d:()=>A});var s,r=i(32198),n=i(11254),l=i(69622),o=i(49186),a=i(36563),h=(i(44208),i(66344)),u=i(15142),c=i(17676),p=i(36708),y=i(76030),d=i(84952),f=i(91429),m=i(72802),g=i(4718),_=i(69397);class v{constructor(t){!function(t){if(!t?.location)throw new o.A("tilemap:missing-location","Location missing from tilemap response");if(!1===t.valid)throw new o.A("tilemap:invalid","Tilemap response was marked as invalid");if(!t.data)throw new o.A("tilemap:missing-data","Data missing from tilemap response");if(!Array.isArray(t.data))throw new o.A("tilemap:data-mismatch","Data must be an array of numbers");if(t.data.length!==t.location.width*t.location.height)throw new o.A("tilemap:data-mismatch","Number of data items does not match width/height of tilemap")}(t);const{location:e,data:i}=t;this.location=Object.freeze((0,g.o8)(e));const s=this.location.width,r=this.location.height;let n=!0,l=!0;const a=function(t,e=!1){return t<=1024?e?new Array(t).fill(0):new Array(t):new Uint32Array(t)}(Math.ceil(s*r/32));let h=0;for(let t=0;t<i.length;t++){const e=t%32;i[t]?(l=!1,a[h]|=1<<e):n=!1,31===e&&++h}l?(this._availability="unavailable",this.byteSize=40):n?(this._availability="available",this.byteSize=40):(this._availability=a,this.byteSize=40+(0,_.Qf)(a))}getAvailability(t,e){if("unavailable"===this._availability||"available"===this._availability)return this._availability;const i=(t-this.location.top)*this.location.width+(e-this.location.left),s=i%32,r=i>>5,n=this._availability;return r<0||r>n.length?"unknown":n[r]&1<<s?"available":"unavailable"}static fromDefinition(t,e){const i=t.service.request||n.A,{row:s,col:r,width:l,height:a}=t,h={query:{f:"json"}};return e=e?{...h,...e}:h,i(function(t){let e;if(t.service.tileServers?.length){const i=t.service.tileServers;e=`${i&&i.length?i[t.row%i.length]:t.service.url}/tilemap/${t.level}/${t.row}/${t.col}/${t.width}/${t.height}`}else e=`${t.service.url}/tilemap/${t.level}/${t.row}/${t.col}/${t.width}/${t.height}`;const i=t.service.query;return i&&(e=`${e}?${i}`),e}(t),e).then(t=>t.data).catch(t=>{if(422===t?.details?.httpStatus)return{location:{top:s,left:r,width:l,height:a},valid:!0,data:new Array(l*a).fill(0)};throw t}).then(t=>{if(t.location&&(t.location.top!==s||t.location.left!==r||t.location.width!==l||t.location.height!==a))throw new o.A("tilemap:location-mismatch","Tilemap response for different location than requested",{response:t,definition:{top:s,left:r,width:l,height:a}});return v.fromJSON(t)})}static fromJSON(t){return Object.freeze(new v(t))}}function x(t){return`${t.level}/${t.row}/${t.col}/${t.width}/${t.height}`}function w(t,e,i){return new o.A("tile-map:tile-unavailable","Tile is not available",{level:t,row:e,col:i})}let A=class extends l.A{static{s=this}constructor(t){super(t),this._pendingTilemapRequests={},this.request=n.A,this.size=32,this._prefetchingEnabled=!0}initialize(){this._tilemapCache=new h.q(2097152),this.addHandles((0,p.wB)(()=>{const{layer:t}=this;return[t?.parsedUrl,t?.tileServers,t?.apiKey,t?.customParameters]},()=>this._initializeTilemapDefinition(),p.Vh))}get effectiveMinLOD(){return this.minLOD??this.layer.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.layer.tileInfo.lods[this.layer.tileInfo.lods.length-1].level}getAvailability(t,e,i){if(!this.layer.tileInfo.lodAt(t)||t<this.effectiveMinLOD||t>this.effectiveMaxLOD)return"unavailable";const s=this._tilemapFromCache(t,e,i,this._tmpTilemapDefinition);return s?s.getAvailability(e,i):"unknown"}fetchAvailability(t,e,i,s){return!this.layer.tileInfo.lodAt(t)||t<this.effectiveMinLOD||t>this.effectiveMaxLOD?Promise.reject(w(t,e,i)):this._fetchTilemap(t,e,i,s).catch(t=>t).then(s=>{if(s instanceof v){const r=s.getAvailability(e,i);if("unavailable"===r)throw w(t,e,i);return r}if((0,c.zf)(s))throw s;return"unknown"})}fetchAvailabilityUpsample(t,e,i,s,r){s.level=t,s.row=e,s.col=i;const n=this.layer.tileInfo;n.updateTileInfo(s);const l=this.fetchAvailability(t,e,i,r).catch(t=>{if((0,c.zf)(t))throw t;if(n.upsampleTile(s))return this.fetchAvailabilityUpsample(s.level,s.row,s.col,s,r);throw t});return this._fetchAvailabilityUpsamplePrefetch(t,e,i,r,l),l}async _fetchAvailabilityUpsamplePrefetch(t,e,i,r,n){if(!this._prefetchingEnabled)return;const l=`prefetch-${t}-${e}-${i}`;if(this.hasHandles(l))return;const o=new AbortController;n.then(()=>o.abort(),()=>o.abort());let h=!1;const u=(0,a.hA)(()=>{h||(h=!0,o.abort())});if(this.addHandles(u,l),await(0,y.md)(10,o.signal).catch(()=>{}),h||(h=!0,this.removeHandles(l)),(0,c.G4)(o))return;const p=new m.U(t,e,i),d={...r,signal:o.signal},f=this.layer.tileInfo;for(let t=0;s._prefetches.length<s._maxPrefetch&&f.upsampleTile(p);++t){const t=this.fetchAvailability(p.level,p.row,p.col,d);s._prefetches.push(t);const e=()=>{s._prefetches.removeUnordered(t)};t.then(e,e)}}static{this._maxPrefetch=4}static{this._prefetches=new u.A({initialSize:s._maxPrefetch})}static cleanupTilemapCache(){this._prefetches.prune()}_fetchTilemap(t,e,i,s){if(!this.layer.tileInfo.lodAt(t)||t<this.effectiveMinLOD||t>this.effectiveMaxLOD)return Promise.reject(new o.A("tilemap-cache:level-unavailable",`Level ${t} is unavailable in the service`));const r=this._tmpTilemapDefinition,n=this._tilemapFromCache(t,e,i,r);if(n)return Promise.resolve(n);const l=s?.signal;return s={...s,signal:null},new Promise((t,e)=>{(0,c.u7)(l,()=>e((0,c.NK)()));const i=x(r);let n=this._pendingTilemapRequests[i];if(!n){n=v.fromDefinition(r,s).then(t=>(this._tilemapCache.put(i,t,t.byteSize),t));const t=()=>{delete this._pendingTilemapRequests[i]};this._pendingTilemapRequests[i]=n,n.then(t,t)}n.then(t,e)})}_initializeTilemapDefinition(){if(!this.layer.parsedUrl)return;const{parsedUrl:t,apiKey:e,customParameters:i}=this.layer;this._tilemapCache.clear(),this._tmpTilemapDefinition={service:{url:t.path,query:(0,d.x0)({...t.query,...i,token:e??t.query?.token}),tileServers:this.layer.tileServers,request:this.request},width:this.size,height:this.size,level:0,row:0,col:0}}_tilemapFromCache(t,e,i,s){s.level=t,s.row=e-e%this.size,s.col=i-i%this.size;const r=x(s);return this._tilemapCache.get(r)}get test(){}};(0,r.Cg)([(0,f.MZ)({constructOnly:!0})],A.prototype,"layer",void 0),(0,r.Cg)([(0,f.MZ)({constructOnly:!0})],A.prototype,"minLOD",void 0),(0,r.Cg)([(0,f.MZ)({constructOnly:!0})],A.prototype,"maxLOD",void 0),(0,r.Cg)([(0,f.MZ)({constructOnly:!0})],A.prototype,"request",void 0),(0,r.Cg)([(0,f.MZ)({constructOnly:!0})],A.prototype,"size",void 0),A=s=(0,r.Cg)([(0,f.$K)("esri.layers.support.TilemapCache")],A)},88788(t,e,i){i.d(e,{m:()=>l,v:()=>n});var s=i(84952),r=i(20655);function n(t,e){return{...o(t,e),readResourcePaths:[]}}function l(t,e,i){const r=(0,s.An)(i?.forceNewItemContext?null:t.itemUrl);return{...o(t,e,i),messages:[],writtenProperties:[],blockedRelativeUrls:[],verifyItemRelativeUrls:r?{rootPath:r.path,writtenUrls:[]}:null,resources:i?.withResources?{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}:null}}function o(t,e,i){return{origin:e,url:(0,s.An)(i?.forceNewItemContext?null:t.itemUrl),portal:t.portal||r.A.getDefault(),portalItem:t}}},10407(t,e,i){i.d(e,{It:()=>y,LG:()=>l,OM:()=>h,Sm:()=>u,Y:()=>o,bK:()=>a,sQ:()=>c});var s=i(99917),r=i(16930),n=i(28735);function l(t,e){if(!o(t,e)){const i=t.typeKeywords;i?i.push(e):t.typeKeywords=[e]}}function o(t,e){return!!t.typeKeywords?.includes(e)}function a(t){return o(t,p.HOSTED_SERVICE)}function h(t,e){const i=t.typeKeywords;if(i){const t=i.indexOf(e);t>-1&&i.splice(t,1)}}function u(t,e,i){i?l(t,e):h(t,e)}async function c(t){const e=t.clone().normalize();let i;if(e.length>1)for(const t of e)i?t.width>i.width&&(i=t):i=t;else i=e[0];return async function(t){const e=t.spatialReference;if(e.isWGS84)return t.clone();if(e.isWebMercator)return(0,n.ci)(t);const i=r.A.WGS84;return await(0,s.initializeProjection)(e,i),(0,s.project)(t,i)}(i)}const p={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function y(t){const{portal:e,isOrgItem:i,itemControl:s}=t,r=e.user?.privileges;let n=!r||r.includes("features:user:edit"),l=!!i&&!!r?.includes("features:user:fullEdit");const o="update"===s||"admin"===s;return o?l=n=!0:l&&(n=!0),{features:{edit:n,fullEdit:l},content:{updateItem:o}}}i.d(e,["mm",0,p])},13195(t,e,i){i.d(e,{GW:()=>m,IU:()=>g,Wh:()=>p,cP:()=>x,p6:()=>f,ru:()=>v,s3:()=>_,wV:()=>d,yM:()=>w,z0:()=>y});var s=i(95108),r=i(6774);const n=Number.POSITIVE_INFINITY,l=Math.PI,o=2*l,a=128/l,h=256/360,u=l/180,c=1/Math.LN2;function p(t,e){return(t%=e)>=0?t:t+e}function y(t){return p(t*a,256)}function d(t){return p(t*h,256)}function f(t){return Math.log(t)*c}function m(t,e,i){return t*(1-i)+e*i}function g(t){return 8+Math.max(16*(t-14),0)}function _(t,e,i){let s,r,n,l=0;for(const o of i){s=o.length;for(let i=1;i<s;++i)r=o[i-1],n=o[i],r.y>e!=n.y>e&&((n.x-r.x)*(e-r.y)-(n.y-r.y)*(t-r.x)>0?l++:l--)}return 0!==l}function v(t,e,i,r){let n,l,o,a;const h=r*r;for(const r of i){const i=r.length;if(!(i<2)){n=r[0].x,l=r[0].y;for(let u=1;u<i;++u){if(o=r[u].x,a=r[u].y,(0,s.Ng)(t,e,n,l,o,a)<h)return!0;n=o,l=a}}}return!1}function x(t,e){if(0===e||Number.isNaN(e))return t;const i=[],s=new r.bR(0,0),n=new r.bR(0,0),l=new r.bR(0,0);for(let o=0;o<t.length;o++){const a=t[o],h=[];for(let t=0;t<a.length;t++){const i=a[t-1],o=a[t],u=a[t+1];0===t?s.setCoords(0,0):s.assignSub(o,i).normalize().rightPerpendicular(),t===a.length-1?n.setCoords(0,0):n.assignSub(u,o).normalize().rightPerpendicular(),l.assignAdd(s,n).normalize();const c=l.x*n.x+l.y*n.y;0!==c&&l.scale(1/c),h.push(r.bR.add(o,l.scale(e)))}i.push(h)}return i}function w(t,e,i,s){const n=new r.bR(t[0],t[1]);if(n.scale(s),"viewport"===e){const t=-i*(Math.PI/180),e=Math.cos(t),s=Math.sin(t);n.rotate(e,s)}return n}i.d(e,["Jo",0,l,"MG",0,n,"aA",0,h,"os",0,u,"pJ",0,o])},44159(t,e,i){i.d(e,{A:()=>r});var s=i(93687);class r{static{this.pool=new s.A(()=>new r(""),null,null,25,50)}static getId(t,e,i,s){return"object"==typeof t?`${t.level}/${t.row}/${t.col}/${t.world}`:`${t}/${e}/${i}/${s}`}constructor(t,e,i,s){this.set(t,e,i,s)}get key(){return this}get id(){return this.toString()}get normalizedId(){return`${this.level}/${this.row}/${this.col}`}set id(t){this.set(t)}get hash(){const t=4095&this.row,e=4095&this.col,i=63&this.level;return(3&this.world)<<30|e<<22|t<<8|i}acquire(t,e,i,s){this.set(t,e,i,s)}contains(t){const e=t.level-this.level;return e>=0&&this.row===t.row>>e&&this.col===t.col>>e&&this.world===t.world}containsChild(t){const e=t.level-this.level;return e>0&&this.row===t.row>>e&&this.col===t.col>>e&&this.world===t.world}equals(t){return this.level===t.level&&this.row===t.row&&this.col===t.col&&this.world===t.world}clone(){return new r(this)}release(){this.level=0,this.row=0,this.col=0,this.world=0}set(t,e,i,s){if(null==t)this.level=0,this.row=0,this.col=0,this.world=0;else if("object"==typeof t)this.level=t.level||0,this.row=t.row||0,this.col=t.col||0,this.world=t.world||0;else if("string"==typeof t){const[e,i,s,r]=t.split("/");this.level=parseFloat(e),this.row=parseFloat(i),this.col=parseFloat(s),this.world=parseFloat(r)}else this.level=+t,this.row=+e,this.col=+i,this.world=+s||0;return this}toString(){return`${this.level}/${this.row}/${this.col}/${this.world}`}getParentKey(){return this.level<=0?null:new r(this.level-1,this.row>>1,this.col>>1,this.world)}getNormalizedNeighbor(t,e,i){const s=this.clone();return s.col+=t,s.row+=e,i.normalizeKey(s),s}getChildKeys(){const t=this.level+1,e=this.row<<1,i=this.col<<1,s=this.world;return[new r(t,e,i,s),new r(t,e,i+1,s),new r(t,e+1,i,s),new r(t,e+1,i+1,s)]}compareRowMajor(t){return this.row<t.row?-1:this.row>t.row?1:this.col<t.col?-1:this.col>t.col?1:0}}},78553(t,e,i){i.d(e,{D:()=>n,p:()=>r});var s=i(56507);function r(t){const e=(0,s.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function n(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7821,8768,9397],{66344(t,e,i){i.d(e,{q:()=>o});const s=!!(0,i(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class r{get size(){return this._size}constructor(t=10485760,e=.3){this._maxSize=t,this._maxClientSizeRatio=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(t){this._clients.set(t.id.slice(0,-1),t)}deregister(t){this.clear(t),this._sizeLimits.delete(t),this._clients.delete(t.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(t,e){const i=this._db.get(t.id+e);return i?.size??0}put(t,e,i,r,l){e=t.id+e;const o=this._db.get(e);if(o&&(this._size-=o.size,t.size-=o.size,this._db.delete(e),o.entry!==i&&this._notifyRemove(e,o.entry,o.size,0)),r>this._maxSize)return void this._notifyRemove(e,i,r,0);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!r||r<0)return s||console.warn(`Refusing to cache entry with size ${r} for key ${e}`),void this._notifyRemove(e,i,0,0);const a=1+Math.max(l,-4)- -3;this._db.set(e,new n(i,r,a)),this._size+=r,t.size+=r,this._checkSize()}updateSize(t,e){e=t.id+e;const i=this._db.get(e);if(!i)return;this._size-=i.size,t.size-=i.size;let s=i.entry.usedMemory;for(;s>this._maxSize;){const t=this._notifyRemove(e,i.entry,s,1);if(!(null!=t&&t>0))return void this._db.delete(e);s=t}i.size=s,this._size+=s,t.size+=s,this._checkSize()}pop(t,e){e=t.id+e;const i=this._db.get(e);if(i)return this._size-=i.size,t.size-=i.size,this._db.delete(e),++this._hit,i.entry;++this._miss}get(t,e){e=t.id+e;const i=this._db.get(e);if(void 0!==i)return this._db.delete(e),i.lives=i.lifetime,this._db.set(e,i),++this._hit,i.entry;++this._miss}peek(t,e){const i=this._db.get(t.id+e);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},i=new Array;this._db.forEach((t,s)=>{const r=t.lifetime;i[r]=(i[r]||0)+t.size,this._clients.forEach(i=>{const{id:r,name:n}=i;if(s.startsWith(r)){const i=e[n]||0;e[n]=i+t.size}})});const s={};this._clients.forEach(t=>{const i=t.name;if("hitRate"in t&&"number"==typeof t.hitRate&&!isNaN(t.hitRate)&&t.hitRate>0){const r=e[i]||0;e[i]=r,s[i]=Math.round(100*t.hitRate)+"%"}else s[i]="0%"});const r=Object.keys(e);r.sort((t,i)=>e[i]-e[t]),r.forEach(i=>t[i]=Math.round(e[i]/2**20)+"MB / "+s[i]);for(let e=i.length-1;e>=0;--e){const s=i[e];s&&(t["Priority "+(e+-3-1)]=Math.round(s/this._size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._clients.forEach(t=>t.resetHitRate())}clear(t){const e=t.id;this._db.forEach((t,i)=>{i.startsWith(e)&&(this._size-=t.size,this._db.delete(i),this._notifyRemove(i,t.entry,t.size,0))}),t.size=0}clearAll(){this._db.forEach((t,e)=>this._notifyRemove(e,t.entry,t.size,0)),this._clients.forEach(t=>t.size=0),this._size=0,this._db.clear()}*values(t){for(const[e,i]of this._db)e.startsWith(t.id)&&(yield i.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,i,s){const r=this._clients.get(t.split(l)[0])?.removeFunc,n=r?.(e,s,i);return"number"==typeof n?n:null}_checkSize(){this._sizeLimits.forEach((t,e)=>this._checkSizeLimits(t,e)),this._clients.forEach(t=>this._checkSizeLimits(this._maxClientSize,t)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(t,e){null==e||e<=0?this._sizeLimits.delete(t):this._sizeLimits.set(t,e)}_checkSizeLimits(t,e){const i=e??this;if(i.size<=t)return;const s=e?.id;let r=!0;for(;r;){r=!1;for(const[n,o]of this._db)if(0===o.lifetime&&(!s||n.startsWith(s))){const s=e??this._clients.get(n.split(l)[0]);if(this._purgeItem(n,o,s),i.size<=.9*t)return;r||=this._db.has(n)}}for(const[r,n]of this._db)if(!s||r.startsWith(s)){const s=e??this._clients.get(r.split(l)[0]);if(this._purgeItem(r,n,s),i.size<=.9*t)return}}_purgeItem(t,e,i){if(this._db.delete(t),e.lives<=1){this._size-=e.size,i&&(i.size-=e.size);const s=this._notifyRemove(t,e.entry,e.size,1);null!=s&&s>0&&(this._size+=s,i&&(i.size+=s),e.lives=e.lifetime,e.size=s,this._db.set(t,e))}else--e.lives,this._db.set(t,e)}}new r(0);class n{constructor(t,e,i){this.entry=t,this.size=e,this.lifetime=i,this.lives=i}}const l=":";class o{constructor(t,e){this.removeFunc=e,this.id="",this.name="",this.size=0,this._storage=new r(t,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(t,e,i=1){this._storage.put(this,t,e,i,1)}pop(t){return this._storage.pop(this,t)}get(t){return this._storage.get(this,t)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(t){this._storage.maxSize=t}resetHitRate(){}}},60999(t,e,i){i.d(e,{DZ:()=>d,Ke:()=>y,Tj:()=>u,UT:()=>f,aD:()=>g,jJ:()=>h});var s=i(32198),r=i(69622),n=i(97768),l=i(17676),o=i(10107),a=i(64108);function h(t,e,i){return(0,l.Lx)(t.map((t,s)=>e.apply(i,[t,s])))}async function u(t,e,i){return(await(0,l.Lx)(t.map((t,s)=>e.apply(i,[t,s])))).map(t=>t.value)}function c(t){return{ok:!0,value:t}}function p(t){return{ok:!1,error:t}}async function y(t){if(null==t)return{ok:!1,error:new Error("no promise provided")};try{return c(await t)}catch(t){return p(t)}}async function d(t){try{return c(await t)}catch(t){return(0,l.QP)(t),p(t)}}function f(t,e){return new m(t,e)}let m=class extends r.A{get value(){return null!=(t=this._result)&&!0===t.ok?t.value:null;var t}get error(){return null!=(t=this._result)&&!1===t.ok?t.error:null;var t}get finished(){return null!=this._result}constructor(t,e){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,n.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:i}=this._abortController;this.promise=t(i),this.promise.then(t=>{this._result=c(t),this._cleanup()},t=>{this._result=p(t),this._cleanup()}),this._abortHandle=(0,l.u7)(e,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,n.xt)(this._abortHandle),this._abortController=null}};(0,s.Cg)([(0,o.MZ)()],m.prototype,"value",null),(0,s.Cg)([(0,o.MZ)()],m.prototype,"error",null),(0,s.Cg)([(0,o.MZ)()],m.prototype,"finished",null),(0,s.Cg)([(0,o.MZ)()],m.prototype,"promise",void 0),(0,s.Cg)([(0,o.MZ)()],m.prototype,"_result",void 0),m=(0,s.Cg)([(0,a.$)("esri.core.asyncUtils.ReactiveTask")],m);class g{constructor(){this._sequence=Promise.resolve()}async acquire(){let t;this._sequence=new Promise(e=>{t=this._sequence.then(()=>e,()=>e)});const e=await t;return{[Symbol.dispose]:e}}async run(t){const e={stack:[],error:void 0,hasError:!1};try{return(0,s.mS)(e,await this.acquire(),!1),await t()}catch(t){e.error=t,e.hasError=!0}finally{(0,s.hk)(e)}}}},69397(t,e,i){i.d(e,{Qf:()=>o,Qh:()=>n,lM:()=>r});var s=i(34275);function r(t){if(!t)return 0;let e=h;for(const i in t)t.hasOwnProperty(i)&&(e+=l(t[i],!1));return e}function n(t){if(!t)return 0;if("number"==typeof t[0])return o(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return a(t,8);let i=u;for(let s=0;s<e;s++)i+=l(t[s]);return i}(t);let e=h;for(const i in t)t.hasOwnProperty(i)&&(e+=l(t[i]));return e}function l(t,e=!0){switch(typeof t){case"object":return e?n(t):h;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...t){return t.reduce((t,e)=>t+(e?(0,s.iu)(e)?e.byteLength+c:Array.isArray(e)?a(e,16):0:0),0)}function a(t,e){return u+t.length*e}const h=32,u=16,c=145},90629(t,e,i){i.d(e,{Lz:()=>r,PN:()=>n,cr:()=>l,gs:()=>a,r_:()=>h,tc:()=>o}),i(39829);const s=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function r(t){return t?t/72*96:0}function n(t){return t?72*t/96:0}function l(t){if("string"==typeof t){const e=t.match(s);if(e){const i=Number(e[1]),s=e[3]&&e[3].toLowerCase(),r=t.startsWith("-"),l="px"===s?n(i):i;return r?-l:l}return console.warn("screenUtils.toPt: input not recognized!"),null}return t}function o(t=0,e=0){return{x:t,y:e}}function a(t=0,e=0){return[t,e]}function h(t=0,e=0,i=0){return[t,e,i]}},83027(t,e,i){const s=i(29953).ho;i.d(e,["h",0,s])},48526(t,e,i){i.d(e,{A:()=>m});var s,r=i(32198),n=i(4576),l=i(4718),o=i(91429),a=i(5443),h=i(91075),u=i(86738),c=i(16930),p=i(90634),y=i(47610),d=i(56993),f=i(43937);let m=s=class extends h.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:i,hasZ:s,spatialReference:r}=t;switch(e??=[],e?.at(0)?.length){case 4:s??=!0,i??=!0;break;case 3:s??=!0!==i,i??=!s;break;default:s??=!1,i??=!1}return r??=c.A.WGS84,{...t,hasM:i,hasZ:s,points:e,spatialReference:r}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=(0,p.ge)(this);return t?new a.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,l.o8)(this.points)}clone(){const{points:t,spatialReference:e,hasM:i,hasZ:r}=this;return new s({points:(0,l.o8)(t),spatialReference:e.clone(),hasM:i,hasZ:r})}equals(t){if(this===t)return!0;if(null==t)return!1;const e=this.spatialReference,i=t.spatialReference;return null!=e==(null!=i)&&!(null!=e&&null!=i&&!e.equals(i))&&(0,n.aI)(this.points,t.points,y.v6)}addPoint(t){return(0,d.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const e=this.points[t],i={x:e[0],y:e[1],spatialReference:this.spatialReference};let s=2;return this.hasZ&&(i.z=e[2],s=3),this.hasM&&(i.m=e[s]),new u.A(i)}removePoint(t){if(!this._validateInputs(t))return null;const e=new u.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)?((0,d.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,r.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,r.Cg)([(0,o.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],m.prototype,"points",void 0),(0,r.Cg)([(0,f.K)("points")],m.prototype,"writePoints",null),m=s=(0,r.Cg)([(0,o.$K)("esri.geometry.Multipoint")],m),m.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,i){i.d(e,{A:()=>d});var s,r=i(32198),n=i(4718),l=i(91429),o=i(5443),a=i(91075),h=i(86738),u=i(16930),c=i(90634),p=i(56993),y=i(43937);let d=s=class extends a.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:i,hasZ:s,spatialReference:r}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:s??=!0,i??=!0;break;case 3:s??=!0!==i,i??=!s;break;default:s??=!1,i??=!1}return r??=u.A.WGS84,{...t,hasM:i,hasZ:s,paths:e,spatialReference:r}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,e){e.curvePaths=(0,n.o8)(t)}get extent(){const t=(0,c.Z3)(this),{spatialReference:e}=this;return t?new o.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,n.o8)(this.paths)}addPath(t){if(!t)return;const e=this.paths,i=e.length;if(function(t){return!Array.isArray(t[0])}(t)){const s=[];for(let e=0,i=t.length;e<i;e++)s[e]=t[e].toArray();e[i]=s}else e[i]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new s;return t.spatialReference=this.spatialReference,t.paths=(0,n.o8)(this.paths),t.curvePaths=(0,n.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;const i=this.paths[t][e],s=this.hasZ,r=this.hasM;return s&&!r?new h.A(i[0],i[1],i[2],void 0,this.spatialReference):r&&!s?new h.A(i[0],i[1],void 0,i[2],this.spatialReference):s&&r?new h.A(i[0],i[1],i[2],i[3],this.spatialReference):new h.A(i[0],i[1],this.spatialReference)}insertPoint(t,e,i){return this._validateInputs(t,e,!0)?((0,p.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[t].splice(e,0,i),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const e=this.paths.splice(t,1)[0],i=this.spatialReference,s=e.map(t=>new h.A(t,i));return this.notifyChange("paths"),s}removePoint(t,e){if(!this._validateInputs(t,e))return null;const i=new h.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),i}setPoint(t,e,i){return this._validateInputs(t,e)?((0,p.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[t][e]=i,this.notifyChange("paths"),this):this}_validateInputs(t,e,i=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){const s=this.paths[t];if(i&&(e<0||e>s.length))return!1;if(!i&&(e<0||e>=s.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,r.Cg)([(0,l.MZ)({readOnly:!0})],d.prototype,"cache",null),(0,r.Cg)([(0,l.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],d.prototype,"curvePaths",void 0),(0,r.Cg)([(0,y.K)("curvePaths")],d.prototype,"writeCurvePaths",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,r.Cg)([(0,l.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],d.prototype,"paths",void 0),(0,r.Cg)([(0,y.K)("paths")],d.prototype,"writePaths",null),d=s=(0,r.Cg)([(0,l.$K)("esri.geometry.Polyline")],d),d.prototype.toJSON.isDefaultToJSON=!0},6774(t,e,i){i.d(e,{O3:()=>n,Ox:()=>l,bR:()=>s});class s{constructor(t,e){this.x=t,this.y=e}static fromArray(t){return new s(t[0],t[1])}clone(){return new s(this.x,this.y)}equals(t,e){return t===this.x&&e===this.y}isEqual(t){return t.x===this.x&&t.y===this.y}setCoords(t,e){return this.x=t,this.y=e,this}normalize(){const t=this.x,e=this.y,i=Math.sqrt(t*t+e*e);return this.x/=i,this.y/=i,this}rightPerpendicular(){const t=this.x;return this.x=this.y,this.y=-t,this}leftPerpendicular(){const t=this.x;return this.x=-this.y,this.y=t,this}move(t,e){return this.x+=t,this.y+=e,this}assign(t){return this.x=t.x,this.y=t.y,this}assignAdd(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}assignSub(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}rotate(t,e){const i=this.x,s=this.y;return this.x=i*t-s*e,this.y=i*e+s*t,this}rotateReverse(t,e){const i=this.x,s=this.y;return this.x=i*t+s*e,this.y=-i*e+s*t,this}scale(t){return this.x*=t,this.y*=t,this}length(){const t=this.x,e=this.y;return Math.sqrt(t*t+e*e)}sub(t){return this.x-=t.x,this.y-=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}static distance(t,e){const i=e.x-t.x,s=e.y-t.y;return Math.sqrt(i*i+s*s)}static add(t,e){return new s(t.x+e.x,t.y+e.y)}static sub(t,e){return new s(t.x-e.x,t.y-e.y)}}class r{constructor(t,e,i){this.ratio=t,this.x=e,this.y=i}}class n{constructor(t,e,i,s=8,r=8){this._lines=[],this._starts=[],this.validateTessellation=!0,this._pixelRatio=s,this._pixelMargin=r,this._tileSize=512*s,this._dz=t,this._yPos=e,this._xPos=i}setPixelMargin(t){t!==this._pixelMargin&&(this._pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this._finalRatio=this._tileSize/t*(1<<this._dz);let e=this._pixelRatio*this._pixelMargin;e/=this._finalRatio;const i=t>>this._dz;e>i&&(e=i),this._margin=e,this._xmin=i*this._xPos-e,this._ymin=i*this._yPos-e,this._xmax=this._xmin+i+2*e,this._ymax=this._ymin+i+2*e}reset(t){this._type=t,this._lines=[],this._starts=[],this._line=null,this._start=0}moveTo(t,e){this._pushLine(),this._prevIsIn=this._isIn(t,e),this._moveTo(t,e,this._prevIsIn),this._prevPt=new s(t,e),this._firstPt=new s(t,e),this._dist=0}lineTo(t,e){const i=this._isIn(t,e),n=new s(t,e),l=s.distance(this._prevPt,n);let o,a,h,u,c,p,y,d;if(i)this._prevIsIn?this._lineTo(t,e,!0):(o=this._prevPt,a=n,h=this._intersect(a,o),this._start=this._dist+l*(1-this._r),this._lineTo(h.x,h.y,!0),this._lineTo(a.x,a.y,!0));else if(this._prevIsIn)a=this._prevPt,o=n,h=this._intersect(a,o),this._lineTo(h.x,h.y,!0),this._lineTo(o.x,o.y,!1);else{const t=this._prevPt,e=n;if(t.x<=this._xmin&&e.x<=this._xmin||t.x>=this._xmax&&e.x>=this._xmax||t.y<=this._ymin&&e.y<=this._ymin||t.y>=this._ymax&&e.y>=this._ymax)this._lineTo(e.x,e.y,!1);else{const i=[];if((t.x<this._xmin&&e.x>this._xmin||t.x>this._xmin&&e.x<this._xmin)&&(u=(this._xmin-t.x)/(e.x-t.x),d=t.y+u*(e.y-t.y),d<=this._ymin?p=!1:d>=this._ymax?p=!0:i.push(new r(u,this._xmin,d))),(t.x<this._xmax&&e.x>this._xmax||t.x>this._xmax&&e.x<this._xmax)&&(u=(this._xmax-t.x)/(e.x-t.x),d=t.y+u*(e.y-t.y),d<=this._ymin?p=!1:d>=this._ymax?p=!0:i.push(new r(u,this._xmax,d))),(t.y<this._ymin&&e.y>this._ymin||t.y>this._ymin&&e.y<this._ymin)&&(u=(this._ymin-t.y)/(e.y-t.y),y=t.x+u*(e.x-t.x),y<=this._xmin?c=!1:y>=this._xmax?c=!0:i.push(new r(u,y,this._ymin))),(t.y<this._ymax&&e.y>this._ymax||t.y>this._ymax&&e.y<this._ymax)&&(u=(this._ymax-t.y)/(e.y-t.y),y=t.x+u*(e.x-t.x),y<=this._xmin?c=!1:y>=this._xmax?c=!0:i.push(new r(u,y,this._ymax))),0===i.length)c?p?this._lineTo(this._xmax,this._ymax,!0):this._lineTo(this._xmax,this._ymin,!0):p?this._lineTo(this._xmin,this._ymax,!0):this._lineTo(this._xmin,this._ymin,!0);else if(i.length>1&&i[0].ratio>i[1].ratio)this._start=this._dist+l*i[1].ratio,this._lineTo(i[1].x,i[1].y,!0),this._lineTo(i[0].x,i[0].y,!0);else{this._start=this._dist+l*i[0].ratio;for(let t=0;t<i.length;t++)this._lineTo(i[t].x,i[t].y,!0)}this._lineTo(e.x,e.y,!1)}}this._dist+=l,this._prevIsIn=i,this._prevPt=n}close(){if(this._line.length>2){const t=this._firstPt,e=this._prevPt;t.x===e.x&&t.y===e.y||this.lineTo(t.x,t.y);const i=this._line;let s=i.length;for(;s>=4&&(i[0].x===i[1].x&&i[0].x===i[s-2].x||i[0].y===i[1].y&&i[0].y===i[s-2].y);)i.pop(),i[0].x=i[s-2].x,i[0].y=i[s-2].y,--s}}result(t=!0){return this._pushLine(),0===this._lines.length?null:(3===this._type&&t&&o.simplify(this._tileSize,this._margin*this._finalRatio,this._lines),this._lines)}resultWithStarts(){if(2!==this._type)throw new Error("Only valid for lines");this._pushLine();const t=this._lines,e=t.length;if(0===e)return null;const i=[];for(let s=0;s<e;s++)i.push({line:t[s],start:this._starts[s]||0});return i}_isIn(t,e){return t>=this._xmin&&t<=this._xmax&&e>=this._ymin&&e<=this._ymax}_intersect(t,e){let i,r,n;if(e.x>=this._xmin&&e.x<=this._xmax)r=e.y<=this._ymin?this._ymin:this._ymax,n=(r-t.y)/(e.y-t.y),i=t.x+n*(e.x-t.x);else if(e.y>=this._ymin&&e.y<=this._ymax)i=e.x<=this._xmin?this._xmin:this._xmax,n=(i-t.x)/(e.x-t.x),r=t.y+n*(e.y-t.y);else{r=e.y<=this._ymin?this._ymin:this._ymax,i=e.x<=this._xmin?this._xmin:this._xmax;const s=(i-t.x)/(e.x-t.x),l=(r-t.y)/(e.y-t.y);s<l?(n=s,r=t.y+s*(e.y-t.y)):(n=l,i=t.x+l*(e.x-t.x))}return this._r=n,new s(i,r)}_pushLine(){this._line&&(1===this._type?this._line.length>0&&(this._lines.push(this._line),this._starts.push(this._start)):2===this._type?this._line.length>1&&(this._lines.push(this._line),this._starts.push(this._start)):3===this._type&&this._line.length>3&&(this._lines.push(this._line),this._starts.push(this._start))),this._line=[],this._start=0}_moveTo(t,e,i){3!==this._type?i&&(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new s(t,e))):(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new s(t,e)),this._isH=!1,this._isV=!1)}_lineTo(t,e,i){let r,n;if(3!==this._type)if(i){if(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.length>0&&(r=this._line[this._line.length-1],r.equals(t,e)))return;this._line.push(new s(t,e))}else this._line&&this._line.length>0&&this._pushLine();else if(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line&&this._line.length>0){r=this._line[this._line.length-1];const i=r.x===t,l=r.y===e;if(i&&l)return;this._isH&&i||this._isV&&l?(r.x=t,r.y=e,n=this._line[this._line.length-2],n.x===t&&n.y===e?(this._line.pop(),this._line.length<=1?(this._isH=!1,this._isV=!1):(n=this._line[this._line.length-2],this._isH=n.x===t,this._isV=n.y===e)):(this._isH=n.x===t,this._isV=n.y===e)):(this._line.push(new s(t,e)),this._isH=i,this._isV=l)}else this._line.push(new s(t,e))}}class l{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this._lines=[],this._line=null}moveTo(t,e){this._line&&this._lines.push(this._line),this._line=[];const i=this._ratio;this._line.push(new s(t*i,e*i))}lineTo(t,e){const i=this._ratio;this._line.push(new s(t*i,e*i))}close(){const t=this._line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this._line&&this._lines.push(this._line),0===this._lines.length?null:this._lines}}class o{static simplify(t,e,i){if(!i)return;const s=-e,r=t+e,n=-e,l=t+e,a=[],h=[],u=i.length;for(let t=0;t<u;++t){const e=i[t];if(!e||e.length<2)continue;let o,u=e[0];const c=e.length;for(let i=1;i<c;++i)o=e[i],u.x===o.x&&(u.x<=s&&(u.y>o.y?(a.push(t),a.push(i),a.push(0),a.push(-1)):(h.push(t),h.push(i),h.push(0),h.push(-1))),u.x>=r&&(u.y<o.y?(a.push(t),a.push(i),a.push(1),a.push(-1)):(h.push(t),h.push(i),h.push(1),h.push(-1)))),u.y===o.y&&(u.y<=n&&(u.x<o.x?(a.push(t),a.push(i),a.push(2),a.push(-1)):(h.push(t),h.push(i),h.push(2),h.push(-1))),u.y>=l&&(u.x>o.x?(a.push(t),a.push(i),a.push(3),a.push(-1)):(h.push(t),h.push(i),h.push(3),h.push(-1)))),u=o}if(0===a.length||0===h.length)return;o.fillParent(i,h,a),o.fillParent(i,a,h);const c=[];o.calcDeltas(c,h,a),o.calcDeltas(c,a,h),o.addDeltas(c,i)}static fillParent(t,e,i){const s=i.length,r=e.length;for(let n=0;n<r;n+=4){const r=e[n],l=e[n+1],o=e[n+2],h=t[r][l-1],u=t[r][l];let c=8092,p=-1;for(let e=0;e<s;e+=4){if(i[e+2]!==o)continue;const s=i[e],r=i[e+1],n=t[s][r-1],l=t[s][r];switch(o){case 0:case 1:if(a(h.y,n.y,l.y)&&a(u.y,n.y,l.y)){const t=Math.abs(l.y-n.y);t<c&&(c=t,p=e)}break;case 2:case 3:if(a(h.x,n.x,l.x)&&a(u.x,n.x,l.x)){const t=Math.abs(l.x-n.x);t<c&&(c=t,p=e)}}}e[n+3]=p}}static calcDeltas(t,e,i){const s=e.length;for(let r=0;r<s;r+=4){const s=[],n=o.calcDelta(r,e,i,s);t.push(e[r]),t.push(e[r+1]),t.push(e[r+2]),t.push(n)}}static calcDelta(t,e,i,s){const r=e[t+3];if(-1===r)return 0;const n=s.length;return n>1&&s[n-2]===r?0:(s.push(r),o.calcDelta(r,i,e,s)+1)}static addDeltas(t,e){const i=t.length;let s=0;for(let e=0;e<i;e+=4){const i=t[e+3];i>s&&(s=i)}for(let r=0;r<i;r+=4){const i=e[t[r]],n=t[r+1],l=s-t[r+3];switch(t[r+2]){case 0:i[n-1].x-=l,i[n].x-=l,1===n&&(i[i.length-1].x-=l),n===i.length-1&&(i[0].x-=l);break;case 1:i[n-1].x+=l,i[n].x+=l,1===n&&(i[i.length-1].x+=l),n===i.length-1&&(i[0].x+=l);break;case 2:i[n-1].y-=l,i[n].y-=l,1===n&&(i[i.length-1].y-=l),n===i.length-1&&(i[0].y-=l);break;case 3:i[n-1].y+=l,i[n].y+=l,1===n&&(i[i.length-1].y+=l),n===i.length-1&&(i[0].y+=l)}}}}const a=(t,e,i)=>t>=e&&t<=i||t>=i&&t<=e},50638(t,e,i){i.r(e),i.d(e,{default:()=>St});var s=i(32198),r=i(11254),n=i(60999),l=i(4718),o=i(25728),a=i(17676),h=i(84952),u=i(91429),c=i(5443),p=i(16930),y=i(4146),d=i(52136),f=i(89186),m=i(18768),g=i(63074),_=i(69208),v=i(34287),x=i(8303),w=i(54310),A=i(25036),S=i(10873);let b=null;var M=i(49186),I=i(53966),C=i(34275);class P{constructor(t,e){this._spriteSource=t,this._maxTextureSize=e,this.devicePixelRatio=1,this._spriteImageFormat="png",this._isRetina=!1,this._spritesData={},this.image=null,this.width=null,this.height=null,this.loadStatus="not-loaded","url"===t.type&&t.spriteFormat&&(this._spriteImageFormat=t.spriteFormat),t.pixelRatio&&(this.devicePixelRatio=t.pixelRatio),this.baseURL=t.spriteUrl}get spriteNames(){const t=[];for(const e in this._spritesData)t.push(e);return t.sort(),t}getSpriteInfo(t){return this._spritesData?this._spritesData[t]:null}async load(t){if(this.baseURL){this.loadStatus="loading";try{await this._loadSprites(t),this.loadStatus="loaded"}catch{this.loadStatus="failed"}}else this.loadStatus="failed"}async _loadSprites(t){this._isRetina=this.devicePixelRatio>1.15;const{width:e,height:i,data:s,json:r}=await this._getSpriteData(this._spriteSource,t),n=Object.keys(r);if(!n||0===n.length||!s)return this._spritesData=this.image=null,void(this.width=this.height=0);this._spritesData=r,this.width=e,this.height=i;const l=Math.max(this._maxTextureSize,4096);if(e>l||i>l){const t=`Sprite resource for style ${this.baseURL} is bigger than the maximum allowed of ${l} pixels}`;throw I.A.getLogger("esri.layers.support.SpriteSource").error(t),new M.A("SpriteSource",t)}let o;for(let t=0;t<s.length;t+=4)o=s[t+3]/255,s[t]=s[t]*o,s[t+1]=s[t+1]*o,s[t+2]=s[t+2]*o;this.image=s}async _getSpriteData(t,e){if("image"===t.type){let e,i;if(this.devicePixelRatio<1.15){if(!t.spriteSource1x)throw new M.A("SpriteSource","no image data provided for low resolution sprites!");e=t.spriteSource1x.image,i=t.spriteSource1x.json}else{if(!t.spriteSource2x)throw new M.A("SpriteSource","no image data provided for high resolution sprites!");e=t.spriteSource2x.image,i=t.spriteSource2x.json}return"width"in e&&"height"in e&&"data"in e&&((0,C.mw)(e.data)||(0,C.UR)(e.data))?{width:e.width,height:e.height,data:new Uint8Array(e.data),json:i}:{...R(e),json:i}}const i=(0,h.An)(this.baseURL),s=i.query?"?"+(0,h.x0)(i.query):"",n=this._isRetina?"@2x":"",l=`${i.path}${n}.${this._spriteImageFormat}${s}`,o=`${i.path}${n}.json${s}`,[a,u]=await Promise.all([(0,r.A)(o,e),(0,r.A)(l,{responseType:"image",...e})]);return{...R(u.data),json:a.data}}}function R(t){const e=document.createElement("canvas"),i=e.getContext("2d");e.width=t.width,e.height=t.height,i.drawImage(t,0,0,t.width,t.height);const s=i.getImageData(0,0,t.width,t.height);return{width:t.width,height:t.height,data:new Uint8Array(s.data)}}var T=i(87045),z=i(25943),L=i(21325),O=i(28735),E=i(83027);class U{constructor(t,e,i){this.tileServers=[],this.tilemap=null,this.tileInfo=null,this.capabilities=null,this.fullExtent=null,this.initialExtent=null,this.name=t,this.sourceUrl=e;const s=(0,l.o8)(i),r=i.capabilities&&i.capabilities.split(",").map(t=>t.toLowerCase().trim()),n=!0===i?.exportTilesAllowed,o=!0===r?.includes("tilemap"),a=n&&i.hasOwnProperty("maxExportTilesCount")?i.maxExportTilesCount:0;this.capabilities={operations:{supportsExportTiles:n,supportsTileMap:o},exportTiles:n?{maxExportTilesCount:+a}:null},this.tileInfo=T.A.fromJSON(s.tileInfo),this.fullExtent=c.A.fromJSON(i.fullExtent),this.initialExtent=c.A.fromJSON(i.initialExtent)}destroy(){this.tilemap?.destroy()}async getRefKey(t,e){return this.tilemap?this.tilemap.dataKey(t,e):t}isCompatibleWith(t){const e=this.tileInfo,i=t.tileInfo;if(!e.spatialReference.equals(i.spatialReference))return!1;if(!e.origin.equals(i.origin))return!1;if(Math.round(e.dpi)!==Math.round(i.dpi))return!1;const s=e.lods,r=i.lods,n=Math.min(s.length,r.length);for(let t=0;t<n;t++){const e=s[t],i=r[t];if(e.level!==i.level||Math.round(e.scale)!==Math.round(i.scale))return!1}return!0}}var D=i(44159);class Z extends U{static async create(t,e,i,s,r){if(!0===s.cluster)throw new Error("Clustered GeoJSON vector tile sources are not supported.");if(null==s.data)throw new Error(`GeoJSON source '${t}' must define a data property.`);const n=s.maxzoom??18,l=await(0,E.h)("GeoJSONVectorTileSourceWorker",{signal:r?.signal,strategy:"dedicated"});let o;try{o=await l.invoke("initialize",{definition:s,name:t,requestOptions:$(r)},{signal:r?.signal}),(0,a.Te)(r)}catch(t){throw l.close(),t}return new Z(t,e,i,l,s.minzoom??0,n,o.geometryTypes)}constructor(t,e,i,s,r,n,l){super(t,e,i),this._connection=s,this._minZoom=r,this._maxZoom=n,this.geometryTypes=l}destroy(){super.destroy(),this._connection?.close(),this._connection=null}async getRefKey(t,e){if((0,a.Te)(e),t.level<this._minZoom)return null;if(t.level<=this._maxZoom)return t;const i=t.level-this._maxZoom;return new D.A(this._maxZoom,t.row>>i,t.col>>i,t.world)}requestTile(t,e,i,s){return(0,a.Te)(s),this._connection?this._connection.invoke("requestTile",{col:i,level:t,row:e},s):Promise.reject((0,a.NK)())}}function $(t){if(!t)return{};const{signal:e,...i}=t;return i}class j{constructor(t){this.url=t}destroy(){this._tileIndexPromise=null}async fetchTileIndex(){return this._tileIndexPromise||(this._tileIndexPromise=(0,r.A)(this.url).then(t=>t.data.index)),this._tileIndexPromise}async dataKey(t,e){const i=await this.fetchTileIndex();return(0,a.Te)(e),this._getIndexedDataKey(i,t)}_getIndexedDataKey(t,e){const i=[e];if(e.level<0||e.row<0||e.col<0||e.row>>e.level>0||e.col>>e.level>0)return null;let s=e;for(;0!==s.level;)s=new D.A(s.level-1,s.row>>1,s.col>>1,s.world),i.push(s);let r,n,l=t,o=i.pop();if(1===l)return o;for(;i.length;)if(r=i.pop(),n=(1&r.col)+((1&r.row)<<1),l){if(0===l[n]){o=null;break}if(1===l[n]){o=r;break}o=r,l=l[n]}return o}}var N=i(97768);class k{constructor(t,e){this._tilemap=t,this._tileIndexUrl=e}destroy(){this._tilemap=(0,N.pR)(this._tilemap),this._tileIndexPromise=null}async fetchTileIndex(t){return this._tileIndexPromise||(this._tileIndexPromise=(0,r.A)(this._tileIndexUrl,{query:{...t?.query}}).then(t=>t.data.index)),this._tileIndexPromise}dataKey(t,e){const{level:i,row:s,col:r}=t,n=new D.A(t);return this._tilemap.fetchAvailabilityUpsample(i,s,r,n,e).then(()=>(n.world=t.world,n)).catch(t=>{if((0,a.zf)(t))throw t;return null})}}var K=i(91869);class q{constructor(t){this._tileUrl=t,this._promise=null,this._abortController=null,this._abortOptions=[]}getData(t){(null==this._promise||(0,a.G4)(this._abortController?.signal))&&(this._promise=this._makeRequest(this._tileUrl));const e=this._abortOptions;return e.push(t),(0,a.u7)(t,()=>{e.every(t=>(0,a.G4)(t))&&this._abortController.abort()}),this._promise.then(t=>(0,l.o8)(t))}async _makeRequest(t){this._abortController=new AbortController;const{data:e}=await(0,r.A)(t,{responseType:"array-buffer",signal:this._abortController.signal});return e}}const F=new Map;function G(t,e){return(0,K.tE)(F,t,()=>new q(t)).getData(e).finally(()=>F.delete(t))}class B extends U{constructor(t,e,i){super(t,e,i);const s=(0,h.An)(this.sourceUrl),r=(0,l.o8)(i),n=r.tiles;if(s)for(let t=0;t<n.length;t++){const e=(0,h.An)(n[t]);e&&((0,h.oP)(e.path)||(e.path=(0,h.fj)(s.path,e.path)),n[t]=(0,h.a6)(e.path,{...s.query,...e.query}))}this.tileServers=n;const o=i.tileMap&&s?(0,h.a6)((0,h.fj)(s.path,i.tileMap),s.query??{}):null;this.capabilities.operations.supportsTileMap?(this.type="vector-tile",this.tilemap=new k(new z.d({layer:{parsedUrl:s,tileInfo:this.tileInfo},minLOD:r.minLOD??this.tileInfo.lods[0].level,maxLOD:r.maxLOD??this.tileInfo.lods[this.tileInfo.lods.length-1].level}),o)):o&&(this.tilemap=new j(o))}requestTile(t,e,i,s){return function(t,e,i,s,r){const n=(0,h.An)(t),l=n.query;if(l)for(const[t,r]of Object.entries(l))switch(r){case"{x}":l[t]=s.toString();break;case"{y}":l[t]=i.toString();break;case"{z}":l[t]=e.toString()}const o=n.path;return G((0,h.a6)(o.replaceAll(/\{z\}/gi,e.toString()).replaceAll(/\{y\}/gi,i.toString()).replaceAll(/\{x\}/gi,s.toString()),{...n.query}),r)}(this.tileServers[e%this.tileServers.length],t,e,i,s)}}function H(...t){let e;for(const i of t)if(null!=i)if((0,h.BQ)(i)){if(e){const t=e.split("://")[0];e=t+":"+i.trim()}}else e=(0,h.oP)(i)?i:(0,h.fj)(e,i);return e?(0,h.UC)(e):void 0}async function V(t,e,i,s,n){let l,o,u;if((0,a.Te)(n),"string"==typeof i){const t=(0,h.S8)(i);u=await(0,r.A)(t,{...n,responseType:"json",query:{f:"json",...n?.query}}),u.ssl&&(l&&(l=l.replace(/^http:/i,"https:")),o&&(o=o.replace(/^http:/i,"https:"))),l=t,o=t}else null!=i&&(u={data:i},l=i.jsonUrl||null,o=s);const c=u?.data;switch(c?.type){case"Feature":case"FeatureCollection":return t.sourceUrl=l||null,Q(t,function(t){return{version:8,sprite:"",glyphs:"",sources:{geojson:{type:"geojson",data:t}},layers:[]}}(c),o,n)}if(W(c))return t.styleUrl=l||null,Q(t,c,o,n);if(function(t){return!!t&&!W(t)}(c))return t.primarySourceName?tt(t,c,o,!1,e,n):(t.sourceUrl=l||null,J(c)&&null==t.style&&(e="tilejson"),tt(t,c,o,!0,e,n));throw new Error("You must specify the URL or the JSON for a service or for a style.")}function J(t){return"object"==typeof t&&!!t&&"tilejson"in t&&null!=t.tilejson}function W(t){return!!t&&"sources"in t&&!!t.sources}async function Q(t,e,i,s){const r=i?(0,h.nM)(i):(0,h.gd)(),n=null==e.layers||0===e.layers.length,l=n?{...e,layers:[]}:e;t.styleBase=r,t.style=l,"webp"===l["sprite-format"]?.toLowerCase()&&(t.spriteFormat="webp");const o=[];if(l.sources&&l.sources.esri&&"geojson"!==l.sources.esri.type){const e=l.sources.esri;e.url?await V(t,"esri",H(r,e.url),void 0,s):o.push(V(t,"esri",e,r,s))}for(const e of Object.keys(l.sources))"esri"!==e&&"tilejson"!==e&&"vector"===l.sources[e].type&&(l.sources[e].url?o.push(V(t,e,H(r,l.sources[e].url),void 0,s)):l.sources[e].tiles&&o.push(V(t,e,l.sources[e],r,s)));await Promise.all(o);for(const e of Object.keys(l.sources)){const i=l.sources[e];if("geojson"===i.type){const o=await Y(t,e,i,r,s);n&&l.layers.push(...X(e,o.geometryTypes))}}}async function Y(t,e,i,s,r){if(null==i.data)throw new Error(`GeoJSON source '${e}' must define a data property.`);const n={...i,type:"geojson",data:"string"==typeof i.data?H(s,i.data):i.data},l=it({maxzoom:n.maxzoom,minzoom:n.minzoom},t),o=await Z.create(e,s,l,n,r);return et(t,e,i,l,o,!t.primarySourceName,s),o}function X(t,e){return e.map(e=>{switch(e){case"polygon":return{id:`${t}_polygon`,type:"fill",source:t,filter:["==","$type","Polygon"],paint:{"fill-color":"#808080"}};case"line":return{id:`${t}_line`,type:"line",source:t,filter:["==","$type","LineString"],paint:{"line-color":"#808080","line-width":1}};case"point":return{id:`${t}_point`,type:"circle",source:t,filter:["==","$type","Point"],paint:{"circle-color":"#808080","circle-radius":3}}}})}async function tt(t,e,i,s,r,n){const l=i?(0,h.UC)(i)+"/":(0,h.gd)(),o=it(e,t);if(et(t,r,e,o,new B(r,(0,h.a6)(l,n?.query??{}),o),s,l),!J(t)&&"defaultStyles"in e&&!t.style){if(null==e.defaultStyles)throw new Error;return"string"==typeof e.defaultStyles?V(t,"",H(l,e.defaultStyles,"root.json"),void 0,n):V(t,"",e.defaultStyles,H(l,"root.json"),n)}if(J(e)&&null==t.style&&o.defaultStyles)return V(t,"",o.defaultStyles,H(l,"root.json"),n)}function et(t,e,i,s,r,n,l){if(!n&&t.primarySourceName in t.sourceNameToSource){const i=t.sourceNameToSource[t.primarySourceName];if(!i.isCompatibleWith(r))return I.A.getLogger("esri.layers.support.vectorTileLayerLoader").warn(`Ignoring source '${e}' because its tiling scheme is incompatible with the primary source '${t.primarySourceName}'.`),void r.destroy();null!=r.fullExtent&&(null!=i.fullExtent?i.fullExtent.union(r.fullExtent):i.fullExtent=r.fullExtent.clone()),i.tileInfo&&r.tileInfo&&i.tileInfo.lods.length<r.tileInfo.lods.length&&(i.tileInfo=r.tileInfo)}n&&(t.sourceBase=l,t.source=i,t.validatedSource=s,t.primarySourceName=e),t.sourceNameToSource[e]=r}function it(t,e){const i=512;if(function(t){return t.hasOwnProperty("tileInfo")}(t)){const e=t?.tileInfo;return null!=e&&(null==e.rows&&(e.rows=i),null==e.cols&&(e.cols=i)),t}const s={xmin:-20037507.067161843,ymin:-20037507.067161843,xmax:20037507.067161843,ymax:20037507.067161843,spatialReference:{wkid:102100,latestWkid:3857}};let r,n=null;if(J(t)){const{bounds:i,vector_layers:s}=t;if(i){const t=(0,O.Gh)({x:i[0],y:i[1],spatialReference:(0,l.o8)(L.KK)}),e=(0,O.Gh)({x:i[2],y:i[3],spatialReference:(0,l.o8)(L.KK)});n={xmin:t.x,ymin:t.y,xmax:e.x,ymax:e.y,spatialReference:(0,l.o8)(L.ch)}}if(s&&s.length>0)r={version:8,sprite:"",glyphs:"",sources:{tilejson:{type:"vector",url:t.tilejson}},layers:st(s)};else if(null==e.style)throw new Error("The TileJSON source does not contain any vector_layers. This VectorTileLayer cannot be loaded.")}null===n&&(n=s);let o=78271.51696400007,a=295828763.7957775;const h=[],u=t.hasOwnProperty("maxzoom")&&null!=t.maxzoom?Math.abs(+t.maxzoom):22;for(let t=0;t<=u;t++)h.push({level:t,scale:a,resolution:o}),o/=2,a/=2;return{capabilities:"TilesOnly",initialExtent:n,fullExtent:s,minScale:0,maxScale:0,tiles:t.tiles,tileInfo:{rows:i,cols:i,dpi:96,format:"pbf",origin:{x:-20037508.342787,y:20037508.342787},lods:h,spatialReference:(0,l.o8)(L.ch)},defaultStyles:r}}function st(t){const e=[];for(const i of t)i.geometry_type?e.push(rt(i.geometry_type.toLowerCase(),i,!1)):(e.push(rt("polygon",i,!0)),e.push(rt("line",i,!0)),e.push(rt("circle",i,!0)));return e}function rt(t,e,i){const{id:s,minzoom:r,maxzoom:n}=e,l={type:"polygon"===t||"polygons"===t?"fill":"line"===t||"lines"===t?"line":"circle",id:s,source:"tilejson","source-layer":s,minzoom:r,maxzoom:n};switch(t){case"fill":i&&(l.id+="_polygon",l.filter='(["==", "$type", "Polygon"])'),l.paint={"fill-color":"#808080"};break;case"line":i&&(l.id+="_line",l.filter='(["==", "$type", "LineString"])');break;case"circle":i&&(l.id+="_point",l.filter='(["==", "$type", "Point"])')}return l}var nt=i(88788),lt=i(39131),ot=i(97159),at=i(86738),ht=i(91806);const ut=1e-6;function ct(t,e){if(t===e)return!0;if(null==t&&null!=e)return!1;if(null!=t&&null==e)return!1;if(null==t||null==e)return!1;if(!t.spatialReference.equals(e.spatialReference)||t.dpi!==e.dpi)return!1;const i=t.origin,s=e.origin;if(Math.abs(i.x-s.x)>=ut||Math.abs(i.y-s.y)>=ut)return!1;let r,n;t.lods[0].scale>e.lods[0].scale?(r=t,n=e):(n=t,r=e);for(let t=r.lods[0].scale;t>=n.lods[n.lods.length-1].scale-ut;t/=2)if(Math.abs(t-n.lods[0].scale)<ut)return!0;return!1}function pt(t,e){if(t===e)return t;if(null==t&&null!=e)return e;if(null!=t&&null==e)return t;if(null==t||null==e)return null;const i=t.size[0],s=t.format,r=t.dpi,n=new at.A({x:t.origin.x,y:t.origin.y}),l=t.spatialReference,o=t.lods[0].scale>e.lods[0].scale?t.lods[0]:e.lods[0],a=t.lods[t.lods.length-1].scale<=e.lods[e.lods.length-1].scale?t.lods[t.lods.length-1]:e.lods[e.lods.length-1],h=o.scale,u=o.resolution,c=a.scale,p=[];let y=h,d=u,f=0;for(;y>=c;)p.push(new ht.A({level:f,resolution:d,scale:y})),f++,y/=2,d/=2;return new T.A({size:[i,i],dpi:r,format:s||"pbf",origin:n,lods:p,spatialReference:l})}var yt=i(45013);class dt{constructor(t){this.getUnmaskedRenderer=t}}function ft(t){const e=t.getExtension("WEBGL_debug_renderer_info");return e?new dt(()=>t.getParameter(e.UNMASKED_RENDERER_WEBGL)):null}let mt;function gt(){return mt??=function(){const t=new _t,e=function(t){if("undefined"==typeof WebGL2RenderingContext)return null;const e=document.createElement("canvas");if(!e)return null;let i=e.getContext("webgl2",{failIfMajorPerformanceCaveat:!0});if(null==i&&(i=e.getContext("webgl2"),null!=i&&(t.majorPerformanceCaveat=!0,t.unmaskedRenderer=ft(i)?.getUnmaskedRenderer()??"unknown")),null==i)return i;t.available=!0,t.maxTextureSize=i.getParameter(i.MAX_TEXTURE_SIZE),t.supportsVertexShaderSamplers=i.getParameter(i.MAX_VERTEX_TEXTURE_IMAGE_UNITS)>0;const s=i.getShaderPrecisionFormat(i.FRAGMENT_SHADER,i.HIGH_FLOAT);return s&&(t.supportsHighPrecisionFragment=s.precision>0),i}(t);return null==e||(t.supportsColorBufferFloat=null!==e.getExtension("EXT_color_buffer_float"),t.supportsColorBufferFloatBlend=null!==e.getExtension("EXT_float_blend"),t.supportsColorBufferHalfFloat=t.supportsColorBufferFloat||null!==e.getExtension("EXT_color_buffer_half_float")),t}(),mt}class _t{constructor(){this.available=!1,this.majorPerformanceCaveat=!1,this.maxTextureSize=0,this.supportsVertexShaderSamplers=!1,this.supportsHighPrecisionFragment=!1,this.supportsColorBufferFloat=!1,this.supportsColorBufferFloatBlend=!1,this.supportsColorBufferHalfFloat=!1,this.unmaskedRenderer="unloaded"}}var vt=i(59923),xt=i(43937),wt=i(36005);let At=class extends((0,g.dM)((0,A.j)((0,w.J)((0,f.f)((0,m.b)((0,v.q)((0,x.A)((0,_.d)((0,d.p)((0,o.M)(y.A))))))))))){constructor(...t){super(...t),this._spriteSourceMap=new Map,this.currentStyleInfo=null,this.isReference=null,this.operationalLayerType="VectorTileLayer",this.path=null,this.refreshInterval=0,this.style=null,this.tilemapCache=null,this.type="vector-tile",this.graphicOrigin=null}normalizeCtorArgs(t,e){return"string"==typeof t?{url:t,...e}:t}destroy(){if(this.sourceNameToSource)for(const t of Object.values(this.sourceNameToSource))t?.destroy();this.primarySource?.destroy(),this._spriteSourceMap.clear()}async prefetchResources(t){await this.loadSpriteSource(globalThis.devicePixelRatio||1,t)}load(t){const e=this.loadFromPortal({supportedTypes:["Vector Tile Service"],supportsData:!1},t).catch(a.QP).then(async()=>{if(!this.portalItem?.id)return;const e=`${this.portalItem.itemCdnUrl}/resources/styles/root.json`;(await(0,r.A)(e,{...t,query:{f:"json",...this.customParameters,token:this.apiKey},authMode:this.portalItem.portal.authMode})).data&&this.read({url:e},(0,nt.v)(this.portalItem,"portal-item"))}).catch(a.QP).then(()=>this._loadStyle(t));return this.addResolvingPromise(e),Promise.resolve(this)}get apiKey(){return super.apiKey}set apiKey(t){super.apiKey=t}get portalItem(){return super.portalItem}set portalItem(t){super.portalItem=t}get attributionDataUrl(){const t=this.currentStyleInfo,e=t?.serviceUrl&&(0,h.An)(t.serviceUrl);if(!e)return null;const i=this._getDefaultAttribution(e.path);return i?(0,h.a6)(i,{...this.customParameters,token:this.apiKey}):null}get capabilities(){const t=this.primarySource;return t?t.capabilities:{operations:{supportsExportTiles:!1,supportsTileMap:!1},exportTiles:null}}get fullExtent(){return this.primarySource?.fullExtent||null}get initialExtent(){return this.primarySource?.initialExtent||null}get parsedUrl(){return this.serviceUrl?(0,h.An)(this.serviceUrl):null}get serviceUrl(){return this.currentStyleInfo?.serviceUrl||null}get spatialReference(){return this.tileInfo?.spatialReference??null}get styleUrl(){return this.currentStyleInfo?.styleUrl||null}writeStyleUrl(t,e){t&&(0,h.BQ)(t)&&(t=`https:${t}`);const i=(0,lt.py)(t);e.styleUrl=(0,ot.e)(t,i)}get tileInfo(){const t=[];for(const e in this.sourceNameToSource)t.push(this.sourceNameToSource[e]);let e=this.primarySource?.tileInfo||new T.A;if(t.length>1)for(let i=0;i<t.length;i++)ct(e,t[i].tileInfo)&&(e=pt(e,t[i].tileInfo));return e}readTilemapCache(t,e){const i=e.capabilities?.includes("Tilemap");return i?new z.d({layer:this}):null}set url(t){if(!t)return void this._set("url",t);const e=(0,h.An)(t);this._set("url",e.path),e.query&&(this.customParameters={...this.customParameters,...e.query})}readVersion(t,e){return e.version?parseFloat(e.version):parseFloat(e.currentVersion)}async loadSpriteSource(t=1,e){if(!this._spriteSourceMap.has(t)){const i=gt().maxTextureSize,s=this.currentStyleInfo?.spriteUrl?(0,h.a6)(this.currentStyleInfo.spriteUrl,{...this.customParameters,token:this.apiKey}):null,r=new P({type:"url",spriteUrl:s,pixelRatio:t,spriteFormat:this.currentStyleInfo?.spriteFormat},i);await r.load(e),this._spriteSourceMap.set(t,r)}return this._spriteSourceMap.get(t)}async setSpriteSource(t,e){if(!t)return null;const i=gt().maxTextureSize,s=t.spriteUrl,r=s?(0,h.a6)(s,{...this.customParameters,token:this.apiKey}):null;if(!r&&"url"===t.type)return null;const n=new P(t,i);try{await n.load(e);const i=t.pixelRatio||1;return this._spriteSourceMap.clear(),this._spriteSourceMap.set(i,n),r&&this.currentStyleInfo&&(this.currentStyleInfo.spriteUrl=r),this.emit("spriteSource-change",{spriteSource:n}),n}catch(t){(0,a.QP)(t)}return null}async loadStyle(t,e){const i=t||this.style||this.url;return this._loadingTask&&"string"==typeof i&&this.url===i||(this._loadingTask?.abort(),this._loadingTask=(0,n.UT)(t=>(this._spriteSourceMap.clear(),this._getSourceAndStyle(i,{signal:t})),e)),this._loadingTask.promise}getStyleLayerId(t){return this.styleRepository.getStyleLayerId(t)}getStyleLayerIndex(t){return this.styleRepository.getStyleLayerIndex(t)}getPaintProperties(t){return(0,l.o8)(this.styleRepository?.getPaintProperties(t))}setPaintProperties(t,e){const i=this.styleRepository.isPainterDataDriven(t);this.styleRepository.setPaintProperties(t,e);const s=this.styleRepository.isPainterDataDriven(t);this.emit("paint-change",{layer:t,paint:e,isDataDriven:i||s})}getStyleLayer(t){return(0,l.o8)(this.styleRepository.getStyleLayer(t))}setStyleLayer(t,e){this.styleRepository.setStyleLayer(t,e),this.emit("style-layer-change",{layer:t,index:e})}deleteStyleLayer(t){this.styleRepository.deleteStyleLayer(t),this.emit("delete-style-layer",{layer:t})}getLayoutProperties(t){return(0,l.o8)(this.styleRepository.getLayoutProperties(t))}setLayoutProperties(t,e){this.styleRepository.setLayoutProperties(t,e),this.emit("layout-change",{layer:t,layout:e})}setStyleLayerVisibility(t,e){this.styleRepository.setStyleLayerVisibility(t,e),this.emit("style-layer-visibility-change",{layer:t,visibility:e})}getStyleLayerVisibility(t){return this.styleRepository.getStyleLayerVisibility(t)?"visible":"none"}write(t,e){return e?.origin&&!this.styleUrl?((0,vt.U4)(e,this,"style defined by JSON only are not supported"),null):super.write(t,e)}getTileUrl(t,e,i){return null}async _getSourceAndStyle(t,e){if(!t)throw new Error("invalid style!");const i=await async function(t,e){const i={source:null,sourceBase:null,sourceUrl:null,validatedSource:null,style:null,styleBase:null,styleUrl:null,sourceNameToSource:{},primarySourceName:"",spriteFormat:"png"},[s,r]="string"==typeof t?[t,null]:[null,t.jsonUrl];return await V(i,"esri",t,r,e),{layerDefinition:i.validatedSource,url:s,serviceUrl:i.sourceUrl,style:i.style,styleUrl:i.styleUrl,spriteUrl:i.style&&i.style.sprite&&H(i.styleBase,i.style.sprite),spriteFormat:i.spriteFormat,glyphsUrl:i.style&&i.style.glyphs&&H(i.styleBase,i.style.glyphs),sourceNameToSource:i.sourceNameToSource,primarySourceName:i.primarySourceName}}(t,{...e,query:{...this.customParameters,token:this.apiKey}});"webp"===i.spriteFormat&&(await function(){if(b)return b;const t={lossy:"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",lossless:"UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",alpha:"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==",animation:"UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"};return b=new Promise(e=>{const i=new Image;i.onload=()=>{i.onload=i.onerror=null,e(i.width>0&&i.height>0)},i.onerror=()=>{i.onload=i.onerror=null,e(!1)},i.src="data:image/webp;base64,"+t.lossy}),b}()||(i.spriteFormat="png")),this._set("currentStyleInfo",{...i}),"string"==typeof t?(this.url=t,this.style=null):(this.url=null,this.style=t),this._set("sourceNameToSource",i.sourceNameToSource),this._set("primarySource",i.sourceNameToSource[i.primarySourceName]),this._set("styleRepository",new yt.A(i.style,!1)),this.read(i.layerDefinition,{origin:"service"}),this.emit("load-style")}_getDefaultAttribution(t){const e=t.match(/^https?:\/\/(?:basemaps|basemapsbeta|basemapsdev)(?:-api)?\.arcgis\.com(\/[^/]+)?\/arcgis\/rest\/services\/([^/]+(\/[^/]+)*)\/vectortileserver/i),i=["OpenBasemap_v2","OpenBasemap_GCS_v2","OpenStreetMap_v2","OpenStreetMap_Daylight_v2","OpenStreetMap_Export_v2","OpenStreetMap_FTS_v2","OpenStreetMap_GCS_v2","World_Basemap","World_Basemap_v2","World_Basemap_Export_v2","World_Basemap_GCS_v2","World_Basemap_WGS84","World_Contours_v2","World_Hillshade_v2"];if(!e)return;const s=e[2]&&e[2].toLowerCase();if(!s)return;const r=e[1]||"";for(const t of i)if(t.toLowerCase().includes(s))return(0,h.S8)(`//static.arcgis.com/attribution/Vector${r}/${t}`)}async _loadStyle(t){return this._loadingTask?.promise??this.loadStyle(null,t)}};(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"attributionDataUrl",null),(0,s.Cg)([(0,u.MZ)({type:["show","hide"]})],At.prototype,"listMode",void 0),(0,s.Cg)([(0,u.MZ)({json:{read:!0,write:!0}})],At.prototype,"blendMode",void 0),(0,s.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1}})],At.prototype,"capabilities",null),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"currentStyleInfo",void 0),(0,s.Cg)([(0,u.MZ)({json:{read:!1},readOnly:!0,type:c.A})],At.prototype,"fullExtent",null),(0,s.Cg)([(0,u.MZ)({json:{read:!1},readOnly:!0,type:c.A})],At.prototype,"initialExtent",null),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],At.prototype,"isReference",void 0),(0,s.Cg)([(0,u.MZ)({type:["VectorTileLayer"]})],At.prototype,"operationalLayerType",void 0),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"parsedUrl",null),(0,s.Cg)([(0,u.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],At.prototype,"path",void 0),(0,s.Cg)([(0,u.MZ)({type:Number,json:{write:!1,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],At.prototype,"refreshInterval",void 0),(0,s.Cg)([(0,u.MZ)()],At.prototype,"style",void 0),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"serviceUrl",null),(0,s.Cg)([(0,u.MZ)({type:p.A,readOnly:!0})],At.prototype,"spatialReference",null),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"styleRepository",void 0),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"sourceNameToSource",void 0),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"primarySource",void 0),(0,s.Cg)([(0,u.MZ)({type:String,readOnly:!0,json:{write:{ignoreOrigin:!0},origins:{"web-document":{write:{ignoreOrigin:!0,isRequired:!0}}}}})],At.prototype,"styleUrl",null),(0,s.Cg)([(0,xt.K)(["portal-item","web-document"],"styleUrl")],At.prototype,"writeStyleUrl",null),(0,s.Cg)([(0,u.MZ)({json:{read:!1,origins:{service:{read:!1}}},readOnly:!0,type:T.A})],At.prototype,"tileInfo",null),(0,s.Cg)([(0,u.MZ)()],At.prototype,"tilemapCache",void 0),(0,s.Cg)([(0,wt.w)("service","tilemapCache",["capabilities","tileInfo"])],At.prototype,"readTilemapCache",null),(0,s.Cg)([(0,u.MZ)({json:{read:!1},readOnly:!0,value:"vector-tile"})],At.prototype,"type",void 0),(0,s.Cg)([(0,u.MZ)({readOnly:!0,clonable:!1})],At.prototype,"graphicOrigin",void 0),(0,s.Cg)([(0,u.MZ)({json:{origins:{"web-document":{read:{source:"styleUrl"}},"portal-item":{read:{source:"url"}}},write:!1,read:!1}}),(0,u.MZ)(S.OZ)],At.prototype,"url",null),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],At.prototype,"version",void 0),(0,s.Cg)([(0,wt.w)("version",["version","currentVersion"])],At.prototype,"readVersion",null),At=(0,s.Cg)([(0,u.$K)("esri.layers.VectorTileLayer")],At);const St=At},52136(t,e,i){var s=i(32198),r=i(91429);i.d(e,["p",0,t=>{const e=t;let i=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(t){null!=t?this._override("apiKey",t):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,s.Cg)([(0,r.MZ)({type:String})],i.prototype,"apiKey",null),i=(0,s.Cg)([(0,r.$K)("esri.layers.mixins.APIKeyMixin")],i),i}])},89186(t,e,i){var s=i(32198),r=i(91429),n=i(16930),l=i(87045),o=i(65509),a=i(25943),h=i(36005);i.d(e,["f",0,t=>{const e=t;let i=class extends e{constructor(){super(...arguments),this.copyright=null,this.minScale=0,this.maxScale=0,this.spatialReference=null,this.tileInfo=null,this.tilemapCache=null}destroy(){this.tilemapCache?.destroy?.()}readMinScale(t,e){return null!=e.minLOD&&null!=e.maxLOD?t:0}readMaxScale(t,e){return null!=e.minLOD&&null!=e.maxLOD?t:0}get supportsBlankTile(){return this.version>=10.2}readTilemapCache(t,e,i){const s=e.capabilities?.toLowerCase().includes("tilemap");let{minLOD:r,maxLOD:n,minScale:h,maxScale:u}=e;if(null==r&&null==n&&(0!==h||0!==u)){const t=t=>Math.round(1e4*t)/1e4;h=t(h||e.tileInfo.lods[0].scale),u=t(u||e.tileInfo.lods[e.tileInfo.lods.length-1].scale);for(const i of e.tileInfo.lods){const e=t(i.scale);r=e>=h?i.level:r,n=e>=u?i.level:n}}if(s)return new a.d({layer:this,minLOD:r,maxLOD:n});if(e.tileInfo){const t=new l.A;return t.read(e.tileInfo,i),new o.A(t,r,n)}return null}};return(0,s.Cg)([(0,r.MZ)({json:{read:{source:"copyrightText"}}})],i.prototype,"copyright",void 0),(0,s.Cg)([(0,r.MZ)()],i.prototype,"minScale",void 0),(0,s.Cg)([(0,h.w)("service","minScale")],i.prototype,"readMinScale",null),(0,s.Cg)([(0,r.MZ)()],i.prototype,"maxScale",void 0),(0,s.Cg)([(0,h.w)("service","maxScale")],i.prototype,"readMaxScale",null),(0,s.Cg)([(0,r.MZ)({type:n.A})],i.prototype,"spatialReference",void 0),(0,s.Cg)([(0,r.MZ)({readOnly:!0})],i.prototype,"supportsBlankTile",null),(0,s.Cg)([(0,r.MZ)({type:l.A})],i.prototype,"tileInfo",void 0),(0,s.Cg)([(0,r.MZ)()],i.prototype,"tilemapCache",void 0),(0,s.Cg)([(0,h.w)("service","tilemapCache",["capabilities","tileInfo"])],i.prototype,"readTilemapCache",null),(0,s.Cg)([(0,r.MZ)()],i.prototype,"version",void 0),i=(0,s.Cg)([(0,r.$K)("esri.layers.mixins.ArcGISCachedService")],i),i}])},18768(t,e,i){var s=i(32198),r=i(53966),n=i(91429),l=i(60694);i.d(e,["b",0,t=>{const e=t;let i=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const t=(0,l.qg)(this.url);if(t?.title)return t.title}return this._get("title")||""}set title(t){this._set("title",t)}set url(t){this._set("url",(0,l.Jf)(t,r.A.getLogger(this)))}};return(0,s.Cg)([(0,n.MZ)()],i.prototype,"title",null),(0,s.Cg)([(0,n.MZ)({type:String})],i.prototype,"url",null),i=(0,s.Cg)([(0,n.$K)("esri.layers.mixins.ArcGISService")],i),i}])},69208(t,e,i){var s=i(32198),r=i(91429);i.d(e,["d",0,t=>{const e=t;let i=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,s.Cg)([(0,r.MZ)({type:Object,json:{write:{overridePolicy:t=>({enabled:!!(t&&Object.keys(t).length>0)})}}})],i.prototype,"customParameters",void 0),i=(0,s.Cg)([(0,r.$K)("esri.layers.mixins.CustomParametersMixin")],i),i}])},8303(t,e,i){var s=i(32198),r=i(92602),n=i(70333),l=i(11254),o=i(60999),a=i(49186),h=i(36563),u=i(53966),c=i(97768),p=i(17676),y=i(84952),d=i(91429),f=i(77548),m=i(20655),g=i(80812),_=i(41318),v=i(10407),x=i(36005),w=i(43937);const A={credential:null,user:null};i.d(e,["A",0,t=>{const e=t;let S=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(t){t!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",t))}readPortalItem(t,e,i){if(e.itemId)return new g.default({id:e.itemId,portal:i?.portal})}writePortalItem(t,e){t?.id&&(e.itemId=t.id)}async loadFromPortal(t,e){if(this.portalItem?.id)try{const{load:s}=await i.e(1204).then(()=>i(41204));return(0,p.Te)(e),await s({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},e)}catch(t){throw(0,p.zf)(t)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}}async reloadFromPortal(t){if(!this.loaded||!this.portalItem?.id)return!1;try{const{reload:e}=await i.e(1204).then(()=>i(41204)),s=new AbortController,r=(0,h.rE)(s);return this.addHandles(r,"reloadFromPortal"),await e({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},{signal:s.signal})}catch(t){throw(0,p.zf)(t)||u.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}finally{this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(t){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(t).catch(t=>((0,p.QP)(t),!0)))}async setUserPrivileges(t,e){if(!r.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(e);if(this.url)try{const{features:{edit:i,fullEdit:s},content:{updateItem:r}}=await this._fetchUserPrivileges(t,e);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",s),this._set("userHasUpdateItemPrivileges",r)}catch(t){(0,p.QP)(t)}}async _fetchUserPrivileges(t,e){let i=this.portalItem;if(!t||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(e);const s=!n.id?.findCredential(this.url),r=t===i.id;if(r&&i.portal.user)return this._getUserPrivileges(i,s);let l,o;if(r)l=i.portal.url;else try{l=await(0,f.wI)(this.url,e)}catch(t){(0,p.QP)(t)}if(!l||!(0,y.b8)(l,i.portal.url))return this._fetchFallbackUserPrivileges(e);try{const t=null!=e?e.signal:null;o=await(n.id?.getCredential(`${l}/sharing`,{prompt:!1,signal:t}))}catch(t){(0,p.QP)(t)}const a=!0,h=!1,u=!1;if(!o)return{features:{edit:a,fullEdit:h},content:{updateItem:u}};try{if(r?await i.reload():(i=new g.default({id:t,portal:{url:l}}),await i.load(e)),i.portal.user)return this._getUserPrivileges(i,s)}catch(t){(0,p.QP)(t)}return{features:{edit:a,fullEdit:h},content:{updateItem:u}}}_getUserPrivileges(t,e){const i=(0,v.It)(t);return e&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(t){let e=!0;try{e=await this._fetchUserHasEditingPrivileges(t)}catch(t){(0,p.QP)(t)}return{features:{edit:e,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(t){const e=this.url?n.id?.findCredential(this.url):null;if(!e)return!0;const i=A.credential===e?A.user:await this._fetchEditingUser(t);return A.credential=e,A.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(t){const e=this.portalItem?.portal?.user;if(e)return e;const i=n.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const s=`${i.owningSystemUrl}/sharing/rest`,r=m.A.getDefault();if(r&&r.loaded&&(0,y.S8)(r.restUrl)===(0,y.S8)(s))return r.user;const a=`${s}/community/self`,h=null!=t?t.signal:null,u=await(0,o.Ke)((0,l.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:h}));return u.ok?_.A.fromJSON(u.value.data):null}read(t,e){e&&(e.layer=this),super.read(t,e)}write(t,e){const i=e?.portal,s=this.portalItem?.id&&(this.portalItem.portal||m.A.getDefault());return i&&s&&!(0,y.ut)(s.restUrl,i.restUrl)?(e.messages&&e.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(t,{...e,layer:this})}};return(0,s.Cg)([(0,d.MZ)({type:g.default})],S.prototype,"portalItem",null),(0,s.Cg)([(0,x.w)("web-document","portalItem",["itemId"])],S.prototype,"readPortalItem",null),(0,s.Cg)([(0,w.K)("web-document","portalItem",{itemId:{type:String}})],S.prototype,"writePortalItem",null),(0,s.Cg)([(0,d.MZ)({clonable:!1})],S.prototype,"resourceReferences",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasEditingPrivileges",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasFullEditingPrivileges",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasUpdateItemPrivileges",void 0),S=(0,s.Cg)([(0,d.$K)("esri.layers.mixins.PortalLayer")],S),S}])},91806(t,e,i){i.d(e,{A:()=>a});var s,r=i(32198),n=i(25482),l=i(91429),o=i(56507);let a=class extends n.o{static{s=this}constructor(t){super(t),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new s({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,r.Cg)([(0,l.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"cols",void 0),(0,r.Cg)([(0,l.MZ)({type:o.jz,json:{write:!0}})],a.prototype,"level",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],a.prototype,"levelValue",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"origin",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],a.prototype,"resolution",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"rows",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],a.prototype,"scale",void 0),a=s=(0,r.Cg)([(0,l.$K)("esri.layers.support.LOD")],a)},87045(t,e,i){i.d(e,{A:()=>v});var s,r=i(32198),n=i(66552),l=i(25482),o=i(86211),a=i(91429),h=i(56507),u=i(86738),c=i(16930),p=i(21325),y=i(28735),d=i(91806),f=i(72802),m=i(36005),g=i(43937);const _=new n.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let v=class extends l.o{static{s=this}static create(t={}){const{resolutionFactor:e=1,scales:i,size:r=256,spatialReference:n=c.A.WebMercator,numLODs:l=24}=t;if(!(0,p.fn)(n)){const t=[];if(i)for(let e=0;e<i.length;e++){const s=i[e];t.push(new d.A({level:e,scale:s,resolution:s}))}else{let e=5e-4;for(let i=l-1;i>=0;i--)t.unshift(new d.A({level:i,scale:e,resolution:e})),e*=2}return new s({dpi:96,lods:t,origin:new u.A(0,0,n),size:[r,r],spatialReference:n})}const a=(0,p.Vp)(n),h=t.origin?new u.A({x:t.origin.x,y:t.origin.y,spatialReference:n}):new u.A(a?{x:a.origin[0],y:a.origin[1],spatialReference:n}:{x:0,y:0,spatialReference:n}),y=1/(39.37*(0,o.GA)(n)*96),f=[];if(i)for(let t=0;t<i.length;t++){const e=i[t],s=e*y;f.push(new d.A({level:t,scale:e,resolution:s}))}else{let t=(0,p.EA)(n)?512/r*591657527.5917094:256/r*591657527.591555;const i=Math.ceil(l/e);f.push(new d.A({level:0,scale:t,resolution:t*y}));for(let s=1;s<i;s++){const i=t/2**e,r=i*y;f.push(new d.A({level:s,scale:i,resolution:r})),t=i}}return new s({dpi:96,lods:f,origin:h,size:[r,r],spatialReference:n})}constructor(t){super(t),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:t,origin:e}=this;if(t&&e){const i=(0,p.Vp)(t);return t.isWrappable&&!!i&&Math.abs(i.origin[0]-e.x)<=i.dx}return!1}readOrigin(t,e){return u.A.fromJSON({spatialReference:e.spatialReference,...t})}set lods(t){let e=0,i=0;const s=[],r=this._levelToLOD={};t&&(e=-1/0,i=1/0,t.forEach(t=>{s.push(t.scale),e=t.scale>e?t.scale:e,i=t.scale<i?t.scale:i,r[t.level]=t})),this._set("scales",s),this._set("lods",t),this._initializeUpsampleLevels()}readSize(t,e){return[e.cols,e.rows]}writeSize(t,e){e.cols=t[0],e.rows=t[1]}zoomToScale(t){const e=this.scales;if(t<=0)return e[0];if(t>=e.length-1)return e[e.length-1];const i=Math.floor(t),s=i+1;return e[i]/(e[i]/e[s])**(t-i)}scaleToZoom(t){const e=this.scales,i=e.length-1;let s=0;for(;s<i;s++){const i=e[s],r=e[s+1];if(i<=t)return s;if(r===t)return s+1;if(i>t&&r<t)return s+Math.log(i/t)/Math.log(i/r)}return s}tileAt(t,e,i,s){const r=this.lodAt(t);if(!r)return null;let n,l;if("number"==typeof e)n=e,l=i;else if((0,p.aI)(e.spatialReference,this.spatialReference))n=e.x,l=e.y,s=i;else{const t=(0,y.Cv)(e,this.spatialReference);if(null==t)return null;n=t.x,l=t.y,s=i}const o=r.resolution*this.size[0],a=r.resolution*this.size[1];return s??=new f.U(0,0,0),s.level=t,s.row=Math.floor((this.origin.y-l)/a+.001),s.col=Math.floor((n-this.origin.x)/o+.001),this.updateTileInfo(s),s}updateTileInfo(t,e=0){if(!("extent"in t))return!1;let i=this.lodAt(t.level);if(!i&&1===e){const e=this.lods[this.lods.length-1];e.level<t.level&&(i=e)}if(!i)return!1;const s=t.level-i.level,r=i.resolution*this.size[0]/2**s,n=i.resolution*this.size[1]/2**s;return t.extent[0]=this.origin.x+t.col*r,t.extent[1]=this.origin.y-(t.row+1)*n,t.extent[2]=t.extent[0]+r,t.extent[3]=t.extent[1]+n,!0}upsampleTile(t){const e=this._upsampleLevels[t.level];return!(!e||-1===e.parentLevel||(t.level=e.parentLevel,t.row=Math.floor(t.row/e.factor+.001),t.col=Math.floor(t.col/e.factor+.001),this.updateTileInfo(t),0))}getTileBounds(t,e){const i=this.lodAt(e.level);if(null==i)return null;const{resolution:s}=i,r=s*this.size[0],n=s*this.size[1];return t[0]=this.origin.x+e.col*r,t[1]=this.origin.y-(e.row+1)*n,t[2]=t[0]+r,t[3]=t[1]+n,t}lodAt(t){return this._levelToLOD?.[t]??null}clone(){return s.fromJSON(this.write({}))}getCompatibleForVTL(t){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===t)return null;const e=(512===this.size[0]&&256===t?-1:0)+(this.spatialReference.isGeographic?1:0);if(this.size[0]===t&&0===e)return this;const i=[],r=this.lods.length-e;for(let t=0;t<r;t++){const s=t+e,{scale:r,resolution:n}=s>=0?this.lods[s]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};i.push(new d.A({level:t,scale:r,resolution:n}))}return new s({size:[t,t],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:i})}_initializeUpsampleLevels(){const t=this.lods;this._upsampleLevels=[];let e=null;for(let i=0;i<t.length;i++){const s=t[i];this._upsampleLevels[s.level]={parentLevel:e?e.level:-1,factor:e?e.resolution/s.resolution:0},e=s}}};(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"compressionQuality",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"dpi",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{read:_.read,write:_.write,origins:{"web-scene":{read:!1,write:!1}}}})],v.prototype,"format",void 0),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],v.prototype,"isWrappable",null),(0,r.Cg)([(0,a.MZ)({type:u.A,json:{write:!0}})],v.prototype,"origin",void 0),(0,r.Cg)([(0,m.w)("origin")],v.prototype,"readOrigin",null),(0,r.Cg)([(0,a.MZ)({type:[d.A],value:null,json:{write:!0}})],v.prototype,"lods",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],v.prototype,"scales",void 0),(0,r.Cg)([(0,a.MZ)({cast:t=>Array.isArray(t)?t:"number"==typeof t?[t,t]:[256,256]})],v.prototype,"size",void 0),(0,r.Cg)([(0,m.w)("size",["rows","cols"])],v.prototype,"readSize",null),(0,r.Cg)([(0,g.K)("size",{cols:{type:h.jz},rows:{type:h.jz}})],v.prototype,"writeSize",null),(0,r.Cg)([(0,a.MZ)({type:c.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),v=s=(0,r.Cg)([(0,a.$K)("esri.layers.support.TileInfo")],v)},65509(t,e,i){i.d(e,{A:()=>n});var s=i(49186),r=i(17676);class n{constructor(t,e=0,i=t.lods[t.lods.length-1].level){this.tileInfo=t,this.minLOD=e,this.maxLOD=i,t.lodAt(e)||(this.minLOD=t.lods[0].level),t.lodAt(i)||(this.maxLOD=t.lods[t.lods.length-1].level)}get effectiveMinLOD(){return this.minLOD??this.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.tileInfo.lods[this.tileInfo.lods.length-1].level}getAvailability(t,e,i){const s=this.tileInfo?.lodAt(t);return!s||t<this.minLOD||t>this.maxLOD?"unavailable":s.cols&&s.rows?i>=s.cols[0]&&i<=s.cols[1]&&e>=s.rows[0]&&e<=s.rows[1]?"unknown":"unavailable":"unknown"}async fetchAvailability(t,e,i,n){await(0,r.NO)(n);const l=this.getAvailability(t,e,i);if("unavailable"===l)throw new s.A("tile-map:tile-unavailable","Tile is not available",{level:t,row:e,col:i});return l}async fetchAvailabilityUpsample(t,e,i,s,n){await(0,r.NO)(n),s.level=t,s.row=e,s.col=i;const l=this.tileInfo;return l.updateTileInfo(s),this.fetchAvailability(t,e,i,n).catch(t=>{if((0,r.zf)(t))throw t;if(l.upsampleTile(s))return this.fetchAvailabilityUpsample(s.level,s.row,s.col,s,n);throw t})}}},72802(t,e,i){i.d(e,{U:()=>r});var s=i(19419);class r{constructor(t,e,i,r=(0,s.vt)()){this._level=t,this._row=e,this._col=i,this.extent=r}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(t){this._level=t,this._id=null}get row(){return this._row}set row(t){this._row=t,this._id=null}get col(){return this._col}set col(t){this._col=t,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(t){return new r(t.level,t.row,t.col,t.extent)}}},25943(t,e,i){i.d(e,{d:()=>A});var s,r=i(32198),n=i(11254),l=i(69622),o=i(49186),a=i(36563),h=(i(44208),i(66344)),u=i(15142),c=i(17676),p=i(36708),y=i(76030),d=i(84952),f=i(91429),m=i(72802),g=i(4718),_=i(69397);class v{constructor(t){!function(t){if(!t?.location)throw new o.A("tilemap:missing-location","Location missing from tilemap response");if(!1===t.valid)throw new o.A("tilemap:invalid","Tilemap response was marked as invalid");if(!t.data)throw new o.A("tilemap:missing-data","Data missing from tilemap response");if(!Array.isArray(t.data))throw new o.A("tilemap:data-mismatch","Data must be an array of numbers");if(t.data.length!==t.location.width*t.location.height)throw new o.A("tilemap:data-mismatch","Number of data items does not match width/height of tilemap")}(t);const{location:e,data:i}=t;this.location=Object.freeze((0,g.o8)(e));const s=this.location.width,r=this.location.height;let n=!0,l=!0;const a=function(t,e=!1){return t<=1024?e?new Array(t).fill(0):new Array(t):new Uint32Array(t)}(Math.ceil(s*r/32));let h=0;for(let t=0;t<i.length;t++){const e=t%32;i[t]?(l=!1,a[h]|=1<<e):n=!1,31===e&&++h}l?(this._availability="unavailable",this.byteSize=40):n?(this._availability="available",this.byteSize=40):(this._availability=a,this.byteSize=40+(0,_.Qf)(a))}getAvailability(t,e){if("unavailable"===this._availability||"available"===this._availability)return this._availability;const i=(t-this.location.top)*this.location.width+(e-this.location.left),s=i%32,r=i>>5,n=this._availability;return r<0||r>n.length?"unknown":n[r]&1<<s?"available":"unavailable"}static fromDefinition(t,e){const i=t.service.request||n.A,{row:s,col:r,width:l,height:a}=t,h={query:{f:"json"}};return e=e?{...h,...e}:h,i(function(t){let e;if(t.service.tileServers?.length){const i=t.service.tileServers;e=`${i&&i.length?i[t.row%i.length]:t.service.url}/tilemap/${t.level}/${t.row}/${t.col}/${t.width}/${t.height}`}else e=`${t.service.url}/tilemap/${t.level}/${t.row}/${t.col}/${t.width}/${t.height}`;const i=t.service.query;return i&&(e=`${e}?${i}`),e}(t),e).then(t=>t.data).catch(t=>{if(422===t?.details?.httpStatus)return{location:{top:s,left:r,width:l,height:a},valid:!0,data:new Array(l*a).fill(0)};throw t}).then(t=>{if(t.location&&(t.location.top!==s||t.location.left!==r||t.location.width!==l||t.location.height!==a))throw new o.A("tilemap:location-mismatch","Tilemap response for different location than requested",{response:t,definition:{top:s,left:r,width:l,height:a}});return v.fromJSON(t)})}static fromJSON(t){return Object.freeze(new v(t))}}function x(t){return`${t.level}/${t.row}/${t.col}/${t.width}/${t.height}`}function w(t,e,i){return new o.A("tile-map:tile-unavailable","Tile is not available",{level:t,row:e,col:i})}let A=class extends l.A{static{s=this}constructor(t){super(t),this._pendingTilemapRequests={},this.request=n.A,this.size=32,this._prefetchingEnabled=!0}initialize(){this._tilemapCache=new h.q(2097152),this.addHandles((0,p.wB)(()=>{const{layer:t}=this;return[t?.parsedUrl,t?.tileServers,t?.apiKey,t?.customParameters]},()=>this._initializeTilemapDefinition(),p.Vh))}get effectiveMinLOD(){return this.minLOD??this.layer.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.layer.tileInfo.lods[this.layer.tileInfo.lods.length-1].level}getAvailability(t,e,i){if(!this.layer.tileInfo.lodAt(t)||t<this.effectiveMinLOD||t>this.effectiveMaxLOD)return"unavailable";const s=this._tilemapFromCache(t,e,i,this._tmpTilemapDefinition);return s?s.getAvailability(e,i):"unknown"}fetchAvailability(t,e,i,s){return!this.layer.tileInfo.lodAt(t)||t<this.effectiveMinLOD||t>this.effectiveMaxLOD?Promise.reject(w(t,e,i)):this._fetchTilemap(t,e,i,s).catch(t=>t).then(s=>{if(s instanceof v){const r=s.getAvailability(e,i);if("unavailable"===r)throw w(t,e,i);return r}if((0,c.zf)(s))throw s;return"unknown"})}fetchAvailabilityUpsample(t,e,i,s,r){s.level=t,s.row=e,s.col=i;const n=this.layer.tileInfo;n.updateTileInfo(s);const l=this.fetchAvailability(t,e,i,r).catch(t=>{if((0,c.zf)(t))throw t;if(n.upsampleTile(s))return this.fetchAvailabilityUpsample(s.level,s.row,s.col,s,r);throw t});return this._fetchAvailabilityUpsamplePrefetch(t,e,i,r,l),l}async _fetchAvailabilityUpsamplePrefetch(t,e,i,r,n){if(!this._prefetchingEnabled)return;const l=`prefetch-${t}-${e}-${i}`;if(this.hasHandles(l))return;const o=new AbortController;n.then(()=>o.abort(),()=>o.abort());let h=!1;const u=(0,a.hA)(()=>{h||(h=!0,o.abort())});if(this.addHandles(u,l),await(0,y.md)(10,o.signal).catch(()=>{}),h||(h=!0,this.removeHandles(l)),(0,c.G4)(o))return;const p=new m.U(t,e,i),d={...r,signal:o.signal},f=this.layer.tileInfo;for(let t=0;s._prefetches.length<s._maxPrefetch&&f.upsampleTile(p);++t){const t=this.fetchAvailability(p.level,p.row,p.col,d);s._prefetches.push(t);const e=()=>{s._prefetches.removeUnordered(t)};t.then(e,e)}}static{this._maxPrefetch=4}static{this._prefetches=new u.A({initialSize:s._maxPrefetch})}static cleanupTilemapCache(){this._prefetches.prune()}_fetchTilemap(t,e,i,s){if(!this.layer.tileInfo.lodAt(t)||t<this.effectiveMinLOD||t>this.effectiveMaxLOD)return Promise.reject(new o.A("tilemap-cache:level-unavailable",`Level ${t} is unavailable in the service`));const r=this._tmpTilemapDefinition,n=this._tilemapFromCache(t,e,i,r);if(n)return Promise.resolve(n);const l=s?.signal;return s={...s,signal:null},new Promise((t,e)=>{(0,c.u7)(l,()=>e((0,c.NK)()));const i=x(r);let n=this._pendingTilemapRequests[i];if(!n){n=v.fromDefinition(r,s).then(t=>(this._tilemapCache.put(i,t,t.byteSize),t));const t=()=>{delete this._pendingTilemapRequests[i]};this._pendingTilemapRequests[i]=n,n.then(t,t)}n.then(t,e)})}_initializeTilemapDefinition(){if(!this.layer.parsedUrl)return;const{parsedUrl:t,apiKey:e,customParameters:i}=this.layer;this._tilemapCache.clear(),this._tmpTilemapDefinition={service:{url:t.path,query:(0,d.x0)({...t.query,...i,token:e??t.query?.token}),tileServers:this.layer.tileServers,request:this.request},width:this.size,height:this.size,level:0,row:0,col:0}}_tilemapFromCache(t,e,i,s){s.level=t,s.row=e-e%this.size,s.col=i-i%this.size;const r=x(s);return this._tilemapCache.get(r)}get test(){}};(0,r.Cg)([(0,f.MZ)({constructOnly:!0})],A.prototype,"layer",void 0),(0,r.Cg)([(0,f.MZ)({constructOnly:!0})],A.prototype,"minLOD",void 0),(0,r.Cg)([(0,f.MZ)({constructOnly:!0})],A.prototype,"maxLOD",void 0),(0,r.Cg)([(0,f.MZ)({constructOnly:!0})],A.prototype,"request",void 0),(0,r.Cg)([(0,f.MZ)({constructOnly:!0})],A.prototype,"size",void 0),A=s=(0,r.Cg)([(0,f.$K)("esri.layers.support.TilemapCache")],A)},88788(t,e,i){i.d(e,{m:()=>l,v:()=>n});var s=i(84952),r=i(20655);function n(t,e){return{...o(t,e),readResourcePaths:[]}}function l(t,e,i){const r=(0,s.An)(i?.forceNewItemContext?null:t.itemUrl);return{...o(t,e,i),messages:[],writtenProperties:[],blockedRelativeUrls:[],verifyItemRelativeUrls:r?{rootPath:r.path,writtenUrls:[]}:null,resources:i?.withResources?{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}:null}}function o(t,e,i){return{origin:e,url:(0,s.An)(i?.forceNewItemContext?null:t.itemUrl),portal:t.portal||r.A.getDefault(),portalItem:t}}},10407(t,e,i){i.d(e,{It:()=>y,LG:()=>l,OM:()=>h,Sm:()=>u,Y:()=>o,bK:()=>a,sQ:()=>c});var s=i(99917),r=i(16930),n=i(28735);function l(t,e){if(!o(t,e)){const i=t.typeKeywords;i?i.push(e):t.typeKeywords=[e]}}function o(t,e){return!!t.typeKeywords?.includes(e)}function a(t){return o(t,p.HOSTED_SERVICE)}function h(t,e){const i=t.typeKeywords;if(i){const t=i.indexOf(e);t>-1&&i.splice(t,1)}}function u(t,e,i){i?l(t,e):h(t,e)}async function c(t){const e=t.clone().normalize();let i;if(e.length>1)for(const t of e)i?t.width>i.width&&(i=t):i=t;else i=e[0];return async function(t){const e=t.spatialReference;if(e.isWGS84)return t.clone();if(e.isWebMercator)return(0,n.ci)(t);const i=r.A.WGS84;return await(0,s.initializeProjection)(e,i),(0,s.project)(t,i)}(i)}const p={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function y(t){const{portal:e,isOrgItem:i,itemControl:s}=t,r=e.user?.privileges;let n=!r||r.includes("features:user:edit"),l=!!i&&!!r?.includes("features:user:fullEdit");const o="update"===s||"admin"===s;return o?l=n=!0:l&&(n=!0),{features:{edit:n,fullEdit:l},content:{updateItem:o}}}i.d(e,["mm",0,p])},13195(t,e,i){i.d(e,{GW:()=>m,IU:()=>g,Wh:()=>p,cP:()=>x,p6:()=>f,ru:()=>v,s3:()=>_,wV:()=>d,yM:()=>w,z0:()=>y});var s=i(95108),r=i(6774);const n=Number.POSITIVE_INFINITY,l=Math.PI,o=2*l,a=128/l,h=256/360,u=l/180,c=1/Math.LN2;function p(t,e){return(t%=e)>=0?t:t+e}function y(t){return p(t*a,256)}function d(t){return p(t*h,256)}function f(t){return Math.log(t)*c}function m(t,e,i){return t*(1-i)+e*i}function g(t){return 8+Math.max(16*(t-14),0)}function _(t,e,i){let s,r,n,l=0;for(const o of i){s=o.length;for(let i=1;i<s;++i)r=o[i-1],n=o[i],r.y>e!=n.y>e&&((n.x-r.x)*(e-r.y)-(n.y-r.y)*(t-r.x)>0?l++:l--)}return 0!==l}function v(t,e,i,r){let n,l,o,a;const h=r*r;for(const r of i){const i=r.length;if(!(i<2)){n=r[0].x,l=r[0].y;for(let u=1;u<i;++u){if(o=r[u].x,a=r[u].y,(0,s.Ng)(t,e,n,l,o,a)<h)return!0;n=o,l=a}}}return!1}function x(t,e){if(0===e||Number.isNaN(e))return t;const i=[],s=new r.bR(0,0),n=new r.bR(0,0),l=new r.bR(0,0);for(let o=0;o<t.length;o++){const a=t[o],h=[];for(let t=0;t<a.length;t++){const i=a[t-1],o=a[t],u=a[t+1];0===t?s.setCoords(0,0):s.assignSub(o,i).normalize().rightPerpendicular(),t===a.length-1?n.setCoords(0,0):n.assignSub(u,o).normalize().rightPerpendicular(),l.assignAdd(s,n).normalize();const c=l.x*n.x+l.y*n.y;0!==c&&l.scale(1/c),h.push(r.bR.add(o,l.scale(e)))}i.push(h)}return i}function w(t,e,i,s){const n=new r.bR(t[0],t[1]);if(n.scale(s),"viewport"===e){const t=-i*(Math.PI/180),e=Math.cos(t),s=Math.sin(t);n.rotate(e,s)}return n}i.d(e,["Jo",0,l,"MG",0,n,"aA",0,h,"os",0,u,"pJ",0,o])},44159(t,e,i){i.d(e,{A:()=>r});var s=i(93687);class r{static{this.pool=new s.A(()=>new r(""),null,null,25,50)}static getId(t,e,i,s){return"object"==typeof t?`${t.level}/${t.row}/${t.col}/${t.world}`:`${t}/${e}/${i}/${s}`}constructor(t,e,i,s){this.set(t,e,i,s)}get key(){return this}get id(){return this.toString()}get normalizedId(){return`${this.level}/${this.row}/${this.col}`}set id(t){this.set(t)}get hash(){const t=4095&this.row,e=4095&this.col,i=63&this.level;return(3&this.world)<<30|e<<22|t<<8|i}acquire(t,e,i,s){this.set(t,e,i,s)}contains(t){const e=t.level-this.level;return e>=0&&this.row===t.row>>e&&this.col===t.col>>e&&this.world===t.world}containsChild(t){const e=t.level-this.level;return e>0&&this.row===t.row>>e&&this.col===t.col>>e&&this.world===t.world}equals(t){return this.level===t.level&&this.row===t.row&&this.col===t.col&&this.world===t.world}clone(){return new r(this)}release(){this.level=0,this.row=0,this.col=0,this.world=0}set(t,e,i,s){if(null==t)this.level=0,this.row=0,this.col=0,this.world=0;else if("object"==typeof t)this.level=t.level||0,this.row=t.row||0,this.col=t.col||0,this.world=t.world||0;else if("string"==typeof t){const[e,i,s,r]=t.split("/");this.level=parseFloat(e),this.row=parseFloat(i),this.col=parseFloat(s),this.world=parseFloat(r)}else this.level=+t,this.row=+e,this.col=+i,this.world=+s||0;return this}toString(){return`${this.level}/${this.row}/${this.col}/${this.world}`}getParentKey(){return this.level<=0?null:new r(this.level-1,this.row>>1,this.col>>1,this.world)}getNormalizedNeighbor(t,e,i){const s=this.clone();return s.col+=t,s.row+=e,i.normalizeKey(s),s}getChildKeys(){const t=this.level+1,e=this.row<<1,i=this.col<<1,s=this.world;return[new r(t,e,i,s),new r(t,e,i+1,s),new r(t,e+1,i,s),new r(t,e+1,i+1,s)]}compareRowMajor(t){return this.row<t.row?-1:this.row>t.row?1:this.col<t.col?-1:this.col>t.col?1:0}}},78553(t,e,i){i.d(e,{D:()=>n,p:()=>r});var s=i(56507);function r(t){const e=(0,s.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function n(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6200],{52106(e,t,i){i.d(t,{A:()=>C});var r,n,s=i(32198),o=i(37838),l=i(69540),a=i(51447),c=i(25482),u=i(53966),h=i(36708),p=i(24326),f=i(91429),g=i(12195),y=i(65864),d=i(50498),m=i(55156),v=i(60950),w=i(54339),b=i(94128),M=i(33910);const _=Symbol("meshGeometryHandles");function A(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 C=class extends((0,l.OU)(c.o)){static{r=b.Z}static{n=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,p.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(u.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 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,m.I)(this.origin);if(e)return(0,w.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,w.r)(this,t):null}getGlobalId(){const e=(0,m.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:A(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,g.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 n={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(n.action=r),"attributes"===e&&(n.attributeName=r),this.layer.graphicChanged(n)}_watchMeshGeometryChanges(){this.removeHandles(_);const e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,h.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,h.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})],_)}};(0,s.Cg)([(0,f.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const i in e){const r=(0,y.rS)(e[i]);r&&(t[i]=r)}return 0!==Object.keys(t).length?t:null}}})],C.prototype,"aggregateGeometries",null),(0,s.Cg)([(0,f.MZ)({value:null})],C.prototype,"attributes",null),(0,s.Cg)([(0,f.MZ)({value:null,types:d.yR,json:{read:y.rS}})],C.prototype,"geometry",null),(0,s.Cg)([(0,f.MZ)()],C.prototype,"distance",void 0),(0,s.Cg)([(0,f.MZ)({type:Boolean})],C.prototype,"isAggregate",void 0),(0,s.Cg)([(0,f.MZ)({clonable:!1})],C.prototype,"layer",void 0),(0,s.Cg)([(0,f.MZ)({clonable:"reference"})],C.prototype,"origin",void 0),(0,s.Cg)([(0,f.MZ)({type:o.A,value:null})],C.prototype,"popupTemplate",null),(0,s.Cg)([(0,f.MZ)({clonable:"reference"})],C.prototype,"sourceLayer",void 0),(0,s.Cg)([(0,f.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,f.MZ)({value:null,types:M.Es})],C.prototype,"symbol",null),(0,s.Cg)([(0,f.MZ)({clonable:!1,json:{read:!1,write:!1}})],C.prototype,"_version",void 0),(0,s.Cg)([(0,f.MZ)({type:Boolean,value:!0})],C.prototype,"visible",null),C=n=(0,s.Cg)([(0,f.$K)("esri.Graphic")],C)},19334(e,t,i){i.d(t,{e:()=>o});var r=i(54639),n=i(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=r.R.of(e.type,e.spatialReference,e.hasZ,e.hasM,new s(e));return t.asAccessorGeometry(),t}},36983(e,t,i){i.d(t,{R:()=>c,p:()=>u});var r=i(54639),n=i(14112),s=i(16930),o=i(60408),l=i(65864);class a{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry}toAccessorGeometry(e){const t=(0,l.rS)(this._geometry);return t.spatialReference=e,t}toGxGeometry(e){return e.fromJsonGeometry(this._geometry)}}function c(e,t){if(null==e||"object"!=typeof e)return null;let i=t;if("spatialReference"in e&&(e.spatialReference instanceof s.A?i=e.spatialReference:"object"==typeof e.spatialReference&&null!=e.spatialReference&&(i=new s.A,i.read(e.spatialReference))),null==i)throw new Error("Spatial reference required");return(0,o.fT)(e)?u("point",e,i):(0,o.Rg)(e)?u("polyline",e,i):(0,o.Bi)(e)?u("polygon",e,i):(0,o.U9)(e)?u("multipoint",e,i):(0,o.ZC)(e)?u("extent",e,i):null}function u(e,t,i){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 r.R.of(e,i,s,o,new a(t))}},14112(e,t,i){function r(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 l(e){return"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)}i.d(t,{As:()=>l,DG:()=>o,IY:()=>s,Wq:()=>n,e6:()=>r})},69052(e,t,i){i.d(t,{hr:()=>n});var r=i(34727);class n{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,i=!1){return s(this.range,this.min,this.max,e,t,i)}clamp(e,t=0){return(0,r.qE)(e-t,this.min,this.max)+t}monotonic(e,t,i){return e<t?t:t+o(this.range,e-t,i)}minimalMonotonic(e,t,i){return s(this.range,e,e+this.range,t,i)}center(e,t,i){return t=this.monotonic(e,t,i),this.normalize((e+t)/2,i)}diff(e,t,i){return this.monotonic(e,t,i)-e}shortestSignedDiff(e,t){e=this.normalize(e);const i=(t=this.normalize(t))-e,r=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(i)<Math.abs(r)?i:r}contains(e,t,i){return t=this.minimalMonotonic(e,t),(i=this.minimalMonotonic(e,i))>e&&i<t}}function s(e,t,i,r,n=0,s=!1){return(r-=n)<t?r+=o(e,t-r):r>i&&(r-=o(e,r-i)),s&&r===i&&(r=t),r+n}function o(e,t,i=0){return Math.ceil((t-i)/e)*e+i}const l=new n(0,2*Math.PI),a=(new n(-Math.PI,Math.PI),new n(0,360));i.d(t,["ie",0,a,"uC",0,l])},18370(e,t,i){i.d(t,{z:()=>n});class r{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 r(e)}},52039(e,t,i){i.d(t,{O7:()=>h,el:()=>a});var r=i(69052),n=(i(49186),i(18370)),s=i(17676),o=(i(5443),i(39829),i(82799),i(16930)),l=(i(80754),i(21325));async function a(e,t,i){Array.isArray(e)||(e=[e]),null!=t&&"object"==typeof t&&"authMode"in t&&(i=t);let r=null;for(const t of e)r??=t?.spatialReference;if(!r)return e;const n=(0,l.Vp)(r);if(!n)return e;const[o,a]=n.valid;let h=!1;for(const t of e){if(!t)continue;if("point"===t.type){h||=t.x>=a,h||=t.x<=o;continue}const{extent:e}=t;if(null==e){h=!0;break}h||=e.xmin>=a,h||=e.xmin<=o,h||=e.xmax>=a,h||=e.xmax<=o}if(!h)return e;const[{foldInto360Range:p},f]=await(0,s.qr)(Promise.all([c.getImportPromise(),u.getImportPromise()]),i),g=f.fromSpatialReference(r);return e.map(e=>{if(null==e||"mesh"===e.type)return e;const t=f.fromGeometry(e),i=f.toGeometry(p(t,g),r);return"extent"===e.type&&1===i?.rings.length?i.extent:i})}const c=(0,n.z)(()=>i.e(4144).then(()=>i(4144)).then(e=>e.load().then(()=>e))),u=(0,n.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(1550)]).then(()=>i(78125)));function h(e,t,i){const r=(0,l.Vp)(i);if(null==r)return e;const[n,s]=r.valid,o=2*s;let a=0,c=0;t>s?a=Math.ceil(Math.abs(t-s)/o):t<n&&(a=-Math.ceil(Math.abs(t-n)/o)),e>s?c=Math.ceil(Math.abs(e-s)/o):e<n&&(c=-Math.ceil(Math.abs(e-n)/o));let u=e+(a-c)*o;const h=u-t;return h>s?u-=o:h<n&&(u+=o),u}function p(e){const t=(0,l.Vp)(e);if(null==t)return null;const[i,n]=t.valid;return new r.hr(i,n)}const f=p(o.A.WGS84);p(o.A.WebMercator),i.d(t,["Y_",0,f])},80754(e,t,i){i.d(t,{kS:()=>c,kd:()=>a});var r=i(82799),n=i(16930),s=i(60408),o=i(52006);const l={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:n.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:n.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function c(e,t){if((0,o.Ed)(e))for(const i of function(e){return(0,s.Bi)(e)?e.curveRings:e.curvePaths}(e))for(const e of i){if((0,o.aO)(e)){const[i,r]=e.c;i[0]+=t,r[0]+=t;continue}if((0,o.FG)(e)){const[i,r]=e.a;i[0]+=t,r[0]+=t;continue}if((0,o.n1)(e)){const[i,r,n]=e.b;i[0]+=t,r[0]+=t,n[0]+=t;continue}e[0]+=t}for(const i of function(e){return(0,s.Bi)(e)?e.rings:e.paths}(e))for(const e of i)e[0]+=t;return e}i.d(t,["j7",0,l])},55156(e,t,i){i.d(t,{I:()=>n});const r=Symbol("idFieldsProviderSymbol");function n(e){return(t=e)&&r in t?e[r]:void 0;var t}i.d(t,["e",0,r])},71756(e,t,i){i.r(t);var r,n=i(32198),s=i(11254),o=i(49186),l=i(81583),a=i(25728),c=i(17676),u=i(84952),h=i(91429),p=i(16930),f=i(4146),g=i(52136),y=i(89186),d=i(98534),m=i(18768),v=i(63074),w=i(69208),b=i(34287),M=i(8303),_=i(54310),A=i(25036),C=i(91921),x=i(60694),S=i(10873),T=i(33446),O=i(15775),R=i(88625),L=i(36005),z=i(43937);const Z=["Canvas/World_Dark_Gray_Base","Canvas/World_Dark_Gray_Reference","Canvas/World_Light_Gray_Base","Canvas/World_Light_Gray_Reference","Elevation/World_Hillshade","Elevation/World_Hillshade_Dark","Ocean/World_Ocean_Base","Ocean/World_Ocean_Reference","Ocean_Basemap","Reference/World_Boundaries_and_Places","Reference/World_Boundaries_and_Places_Alternate","Reference/World_Transportation","World_Imagery","World_Street_Map","World_Topo_Map"];let I=r=class extends((0,v.dM)((0,A.j)((0,C.I)((0,y.f)((0,d.V)((0,b.q)((0,M.A)((0,m.b)((0,a.M)((0,_.J)((0,g.p)((0,w.d)(f.A))))))))))))){constructor(...e){super(...e),this.listMode="show",this.elevationInfo=new R.A({mode:"on-the-ground"}),this.isReference=null,this.operationalLayerType="ArcGISTiledMapServiceLayer",this.resampling=!0,this.sourceJSON=null,this.spatialReference=null,this.path=null,this.sublayers=null,this.type="tile",this.url=null}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(c.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}get attributionDataUrl(){const e=this.parsedUrl?.path.toLowerCase();return e?this._getDefaultAttribution(this._getMapName(e)):null}get hasAttributionData(){return super.hasAttributionData}readSpatialReference(e,t){return(e=e||t.tileInfo?.spatialReference)&&p.A.fromJSON(e)}writeSublayers(e,t,i,r){if(!this.loaded||!e)return;const n=e.slice().reverse().flatten(({sublayers:e})=>e&&e.toArray().reverse()).toArray(),s=[],o={writeSublayerStructure:!1,...r};n.forEach(e=>{const t=e.write({},o);s.push(t)}),s.some(e=>Object.keys(e).length>1)&&(t.layers=s)}get tileServers(){return this._getDefaultTileServers(this.parsedUrl?.path)}castTileServers(e){return Array.isArray(e)?e.map(e=>(0,u.An)(e).path):null}fetchTile(e,t,i,r={}){const{signal:n}=r,o=this.getTileUrl(e,t,i),l={responseType:"image",signal:n,query:{...this.refreshParameters}};return(0,s.A)(o,l).then(e=>e.data)}async fetchImageBitmapTile(e,t,i,n={}){const{signal:o}=n;if(this.fetchTile!==r.prototype.fetchTile){const r=await this.fetchTile(e,t,i,n);return(0,T.Cp)(r,e,t,i,n)}const l=this.getTileUrl(e,t,i),a={responseType:"blob",signal:o,query:{...this.refreshParameters}},{data:c}=await(0,s.A)(l,a);return(0,T.Cp)(c,e,t,i,n)}getTileUrl(e,t,i){const r=!this.capabilities.operations.supportsTileMap&&this.supportsBlankTile,n=(0,u.x0)({...this.parsedUrl?.query,blankTile:!r&&null,...this.customParameters,token:this.apiKey}),s=this.tileServers;return`${s&&s.length?s[t%s.length]:this.parsedUrl?.path}/tile/${e}/${t}/${i}${n?"?"+n:""}`}loadAll(){return(0,l.g)(this,e=>{e(this.allSublayers)})}_fetchService(e){return new Promise((t,i)=>{if(this.sourceJSON){if(null!=this.sourceJSON.bandCount&&null!=this.sourceJSON.pixelSizeX)throw new o.A("tile-layer:unsupported-url","use ImageryTileLayer to open a tiled image service");return void t({data:this.sourceJSON})}if(!this.parsedUrl)throw new o.A("tile-layer:undefined-url","layer's url is not defined");const r=(0,x.qg)(this.parsedUrl.path);if(null!=r&&"ImageServer"===r.serverType)throw new o.A("tile-layer:unsupported-url","use ImageryTileLayer to open a tiled image service");(0,s.A)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(t,i)}).then(t=>{let i=this.url;if(t.ssl&&(i=this.url=i.replace(/^http:/i,"https:")),this.sourceJSON=t.data,this.read(t.data,{origin:"service",url:this.parsedUrl}),10.1===this.version&&!(0,x.Wo)(i))return this._fetchServerVersion(i,e).then(e=>{this.read({currentVersion:e})}).catch(()=>{})})}_fetchServerVersion(e,t){if(!(0,x.Fi)(e))return Promise.reject();const i=e.replace(/(.*\/rest)\/.*/i,"$1")+"/info";return(0,s.A)(i,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:t}).then(e=>{if(e.data?.currentVersion)return e.data.currentVersion;throw new o.A("tile-layer:version-not-available","Server did not provide a version")})}_getMapName(e){const t=e.match(/^(?:https?:)?\/\/(server\.arcgisonline\.com|services\.arcgisonline\.com|ibasemaps-api\.arcgis\.com)\/arcgis\/rest\/services\/([^/]+(\/[^/]+)*)\/mapserver/i);return t?t[2]:void 0}_getDefaultAttribution(e){if(null==e)return null;let t;e=e.toLowerCase();for(let i=0,r=Z.length;i<r;i++)if(t=Z[i],t.toLowerCase().includes(e))return(0,u.s2)("//static.arcgis.com/attribution/"+t);return null}_getDefaultTileServers(e){if(null==e)return[];const t=-1!==e.search(/^(?:https?:)?\/\/server\.arcgisonline\.com/i),i=-1!==e.search(/^(?:https?:)?\/\/services\.arcgisonline\.com/i);return t||i?[e,e.replace(t?/server\.arcgisonline/i:/services\.arcgisonline/i,t?"services.arcgisonline":"server.arcgisonline")]:[]}get hasOverriddenFetchTile(){return!this.fetchTile[G]}};(0,n.Cg)([(0,h.MZ)({readOnly:!0})],I.prototype,"attributionDataUrl",null),(0,n.Cg)([(0,h.MZ)({type:["show","hide","hide-children"]})],I.prototype,"listMode",void 0),(0,n.Cg)([(0,h.MZ)({json:{read:!0,write:!0}})],I.prototype,"blendMode",void 0),(0,n.Cg)([(0,h.MZ)()],I.prototype,"elevationInfo",void 0),(0,n.Cg)([(0,h.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],I.prototype,"isReference",void 0),(0,n.Cg)([(0,h.MZ)({readOnly:!0,type:["ArcGISTiledMapServiceLayer"]})],I.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,h.MZ)({type:Boolean})],I.prototype,"resampling",void 0),(0,n.Cg)([(0,h.MZ)()],I.prototype,"sourceJSON",void 0),(0,n.Cg)([(0,h.MZ)({type:p.A})],I.prototype,"spatialReference",void 0),(0,n.Cg)([(0,L.w)("spatialReference",["spatialReference","tileInfo"])],I.prototype,"readSpatialReference",null),(0,n.Cg)([(0,h.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],I.prototype,"path",void 0),(0,n.Cg)([(0,h.MZ)({readOnly:!0})],I.prototype,"sublayers",void 0),(0,n.Cg)([(0,z.K)("sublayers",{layers:{type:[O.A]}})],I.prototype,"writeSublayers",null),(0,n.Cg)([(0,h.MZ)({json:{read:!1,write:!1}})],I.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,h.MZ)()],I.prototype,"tileServers",null),(0,n.Cg)([(0,h.wg)("tileServers")],I.prototype,"castTileServers",null),(0,n.Cg)([(0,h.MZ)({readOnly:!0,json:{read:!1}})],I.prototype,"type",void 0),(0,n.Cg)([(0,h.MZ)(S.OZ)],I.prototype,"url",void 0),I=r=(0,n.Cg)([(0,h.$K)("esri.layers.TileLayer")],I);const G=Symbol("default-fetch-tile");I.prototype.fetchTile[G]=!0;const D=I;i.d(t,["default",0,D])},89186(e,t,i){var r=i(32198),n=i(91429),s=i(16930),o=i(87045),l=i(65509),a=i(25943),c=i(36005);i.d(t,["f",0,e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.copyright=null,this.minScale=0,this.maxScale=0,this.spatialReference=null,this.tileInfo=null,this.tilemapCache=null}destroy(){this.tilemapCache?.destroy?.()}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}get supportsBlankTile(){return this.version>=10.2}readTilemapCache(e,t,i){const r=t.capabilities?.toLowerCase().includes("tilemap");let{minLOD:n,maxLOD:s,minScale:c,maxScale:u}=t;if(null==n&&null==s&&(0!==c||0!==u)){const e=e=>Math.round(1e4*e)/1e4;c=e(c||t.tileInfo.lods[0].scale),u=e(u||t.tileInfo.lods[t.tileInfo.lods.length-1].scale);for(const i of t.tileInfo.lods){const t=e(i.scale);n=t>=c?i.level:n,s=t>=u?i.level:s}}if(r)return new a.d({layer:this,minLOD:n,maxLOD:s});if(t.tileInfo){const e=new o.A;return e.read(t.tileInfo,i),new l.A(e,n,s)}return null}};return(0,r.Cg)([(0,n.MZ)({json:{read:{source:"copyrightText"}}})],i.prototype,"copyright",void 0),(0,r.Cg)([(0,n.MZ)()],i.prototype,"minScale",void 0),(0,r.Cg)([(0,c.w)("service","minScale")],i.prototype,"readMinScale",null),(0,r.Cg)([(0,n.MZ)()],i.prototype,"maxScale",void 0),(0,r.Cg)([(0,c.w)("service","maxScale")],i.prototype,"readMaxScale",null),(0,r.Cg)([(0,n.MZ)({type:s.A})],i.prototype,"spatialReference",void 0),(0,r.Cg)([(0,n.MZ)({readOnly:!0})],i.prototype,"supportsBlankTile",null),(0,r.Cg)([(0,n.MZ)({type:o.A})],i.prototype,"tileInfo",void 0),(0,r.Cg)([(0,n.MZ)()],i.prototype,"tilemapCache",void 0),(0,r.Cg)([(0,c.w)("service","tilemapCache",["capabilities","tileInfo"])],i.prototype,"readTilemapCache",null),(0,r.Cg)([(0,n.MZ)()],i.prototype,"version",void 0),i=(0,r.Cg)([(0,n.$K)("esri.layers.mixins.ArcGISCachedService")],i),i}])},91806(e,t,i){i.d(t,{A:()=>a});var r,n=i(32198),s=i(25482),o=i(91429),l=i(56507);let a=class extends s.o{static{r=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new r({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"cols",void 0),(0,n.Cg)([(0,o.MZ)({type:l.jz,json:{write:!0}})],a.prototype,"level",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"levelValue",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"origin",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],a.prototype,"resolution",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"rows",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],a.prototype,"scale",void 0),a=r=(0,n.Cg)([(0,o.$K)("esri.layers.support.LOD")],a)},87045(e,t,i){i.d(t,{A:()=>w});var r,n=i(32198),s=i(66552),o=i(25482),l=i(86211),a=i(91429),c=i(56507),u=i(86738),h=i(16930),p=i(21325),f=i(28735),g=i(91806),y=i(72802),d=i(36005),m=i(43937);const v=new s.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let w=class extends o.o{static{r=this}static create(e={}){const{resolutionFactor:t=1,scales:i,size:n=256,spatialReference:s=h.A.WebMercator,numLODs:o=24}=e;if(!(0,p.fn)(s)){const e=[];if(i)for(let t=0;t<i.length;t++){const r=i[t];e.push(new g.A({level:t,scale:r,resolution:r}))}else{let t=5e-4;for(let i=o-1;i>=0;i--)e.unshift(new g.A({level:i,scale:t,resolution:t})),t*=2}return new r({dpi:96,lods:e,origin:new u.A(0,0,s),size:[n,n],spatialReference:s})}const a=(0,p.Vp)(s),c=e.origin?new u.A({x:e.origin.x,y:e.origin.y,spatialReference:s}):new u.A(a?{x:a.origin[0],y:a.origin[1],spatialReference:s}:{x:0,y:0,spatialReference:s}),f=1/(39.37*(0,l.GA)(s)*96),y=[];if(i)for(let e=0;e<i.length;e++){const t=i[e],r=t*f;y.push(new g.A({level:e,scale:t,resolution:r}))}else{let e=(0,p.EA)(s)?512/n*591657527.5917094:256/n*591657527.591555;const i=Math.ceil(o/t);y.push(new g.A({level:0,scale:e,resolution:e*f}));for(let r=1;r<i;r++){const i=e/2**t,n=i*f;y.push(new g.A({level:r,scale:i,resolution:n})),e=i}}return new r({dpi:96,lods:y,origin:c,size:[n,n],spatialReference:s})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const i=(0,p.Vp)(e);return e.isWrappable&&!!i&&Math.abs(i.origin[0]-t.x)<=i.dx}return!1}readOrigin(e,t){return u.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,i=0;const r=[],n=this._levelToLOD={};e&&(t=-1/0,i=1/0,e.forEach(e=>{r.push(e.scale),t=e.scale>t?e.scale:t,i=e.scale<i?e.scale:i,n[e.level]=e})),this._set("scales",r),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const i=Math.floor(e),r=i+1;return t[i]/(t[i]/t[r])**(e-i)}scaleToZoom(e){const t=this.scales,i=t.length-1;let r=0;for(;r<i;r++){const i=t[r],n=t[r+1];if(i<=e)return r;if(n===e)return r+1;if(i>e&&n<e)return r+Math.log(i/e)/Math.log(i/n)}return r}tileAt(e,t,i,r){const n=this.lodAt(e);if(!n)return null;let s,o;if("number"==typeof t)s=t,o=i;else if((0,p.aI)(t.spatialReference,this.spatialReference))s=t.x,o=t.y,r=i;else{const e=(0,f.Cv)(t,this.spatialReference);if(null==e)return null;s=e.x,o=e.y,r=i}const l=n.resolution*this.size[0],a=n.resolution*this.size[1];return r??=new y.U(0,0,0),r.level=e,r.row=Math.floor((this.origin.y-o)/a+.001),r.col=Math.floor((s-this.origin.x)/l+.001),this.updateTileInfo(r),r}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let i=this.lodAt(e.level);if(!i&&1===t){const t=this.lods[this.lods.length-1];t.level<e.level&&(i=t)}if(!i)return!1;const r=e.level-i.level,n=i.resolution*this.size[0]/2**r,s=i.resolution*this.size[1]/2**r;return e.extent[0]=this.origin.x+e.col*n,e.extent[1]=this.origin.y-(e.row+1)*s,e.extent[2]=e.extent[0]+n,e.extent[3]=e.extent[1]+s,!0}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const i=this.lodAt(t.level);if(null==i)return null;const{resolution:r}=i,n=r*this.size[0],s=r*this.size[1];return e[0]=this.origin.x+t.col*n,e[1]=this.origin.y-(t.row+1)*s,e[2]=e[0]+n,e[3]=e[1]+s,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return r.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;const t=(512===this.size[0]&&256===e?-1:0)+(this.spatialReference.isGeographic?1:0);if(this.size[0]===e&&0===t)return this;const i=[],n=this.lods.length-t;for(let e=0;e<n;e++){const r=e+t,{scale:n,resolution:s}=r>=0?this.lods[r]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};i.push(new g.A({level:e,scale:n,resolution:s}))}return new r({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:i})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let i=0;i<e.length;i++){const r=e[i];this._upsampleLevels[r.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/r.resolution:0},t=r}}};(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],w.prototype,"compressionQuality",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],w.prototype,"dpi",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{read:v.read,write:v.write,origins:{"web-scene":{read:!1,write:!1}}}})],w.prototype,"format",void 0),(0,n.Cg)([(0,a.MZ)({readOnly:!0})],w.prototype,"isWrappable",null),(0,n.Cg)([(0,a.MZ)({type:u.A,json:{write:!0}})],w.prototype,"origin",void 0),(0,n.Cg)([(0,d.w)("origin")],w.prototype,"readOrigin",null),(0,n.Cg)([(0,a.MZ)({type:[g.A],value:null,json:{write:!0}})],w.prototype,"lods",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0})],w.prototype,"scales",void 0),(0,n.Cg)([(0,a.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],w.prototype,"size",void 0),(0,n.Cg)([(0,d.w)("size",["rows","cols"])],w.prototype,"readSize",null),(0,n.Cg)([(0,m.K)("size",{cols:{type:c.jz},rows:{type:c.jz}})],w.prototype,"writeSize",null),(0,n.Cg)([(0,a.MZ)({type:h.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),w=r=(0,n.Cg)([(0,a.$K)("esri.layers.support.TileInfo")],w)},65509(e,t,i){i.d(t,{A:()=>s});var r=i(49186),n=i(17676);class s{constructor(e,t=0,i=e.lods[e.lods.length-1].level){this.tileInfo=e,this.minLOD=t,this.maxLOD=i,e.lodAt(t)||(this.minLOD=e.lods[0].level),e.lodAt(i)||(this.maxLOD=e.lods[e.lods.length-1].level)}get effectiveMinLOD(){return this.minLOD??this.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.tileInfo.lods[this.tileInfo.lods.length-1].level}getAvailability(e,t,i){const r=this.tileInfo?.lodAt(e);return!r||e<this.minLOD||e>this.maxLOD?"unavailable":r.cols&&r.rows?i>=r.cols[0]&&i<=r.cols[1]&&t>=r.rows[0]&&t<=r.rows[1]?"unknown":"unavailable":"unknown"}async fetchAvailability(e,t,i,s){await(0,n.NO)(s);const o=this.getAvailability(e,t,i);if("unavailable"===o)throw new r.A("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:i});return o}async fetchAvailabilityUpsample(e,t,i,r,s){await(0,n.NO)(s),r.level=e,r.row=t,r.col=i;const o=this.tileInfo;return o.updateTileInfo(r),this.fetchAvailability(e,t,i,s).catch(e=>{if((0,n.zf)(e))throw e;if(o.upsampleTile(r))return this.fetchAvailabilityUpsample(r.level,r.row,r.col,r,s);throw e})}}},72802(e,t,i){i.d(t,{U:()=>n});var r=i(19419);class n{constructor(e,t,i,n=(0,r.vt)()){this._level=e,this._row=t,this._col=i,this.extent=n}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(e){this._level=e,this._id=null}get row(){return this._row}set row(e){this._row=e,this._id=null}get col(){return this._col}set col(e){this._col=e,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(e){return new n(e.level,e.row,e.col,e.extent)}}},25943(e,t,i){i.d(t,{d:()=>_});var r,n=i(32198),s=i(11254),o=i(69622),l=i(49186),a=i(36563),c=(i(44208),i(66344)),u=i(15142),h=i(17676),p=i(36708),f=i(76030),g=i(84952),y=i(91429),d=i(72802),m=i(4718),v=i(69397);class w{constructor(e){!function(e){if(!e?.location)throw new l.A("tilemap:missing-location","Location missing from tilemap response");if(!1===e.valid)throw new l.A("tilemap:invalid","Tilemap response was marked as invalid");if(!e.data)throw new l.A("tilemap:missing-data","Data missing from tilemap response");if(!Array.isArray(e.data))throw new l.A("tilemap:data-mismatch","Data must be an array of numbers");if(e.data.length!==e.location.width*e.location.height)throw new l.A("tilemap:data-mismatch","Number of data items does not match width/height of tilemap")}(e);const{location:t,data:i}=e;this.location=Object.freeze((0,m.o8)(t));const r=this.location.width,n=this.location.height;let s=!0,o=!0;const a=function(e,t=!1){return e<=1024?t?new Array(e).fill(0):new Array(e):new Uint32Array(e)}(Math.ceil(r*n/32));let c=0;for(let e=0;e<i.length;e++){const t=e%32;i[e]?(o=!1,a[c]|=1<<t):s=!1,31===t&&++c}o?(this._availability="unavailable",this.byteSize=40):s?(this._availability="available",this.byteSize=40):(this._availability=a,this.byteSize=40+(0,v.Qf)(a))}getAvailability(e,t){if("unavailable"===this._availability||"available"===this._availability)return this._availability;const i=(e-this.location.top)*this.location.width+(t-this.location.left),r=i%32,n=i>>5,s=this._availability;return n<0||n>s.length?"unknown":s[n]&1<<r?"available":"unavailable"}static fromDefinition(e,t){const i=e.service.request||s.A,{row:r,col:n,width:o,height:a}=e,c={query:{f:"json"}};return t=t?{...c,...t}:c,i(function(e){let t;if(e.service.tileServers?.length){const i=e.service.tileServers;t=`${i&&i.length?i[e.row%i.length]:e.service.url}/tilemap/${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`}else t=`${e.service.url}/tilemap/${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`;const i=e.service.query;return i&&(t=`${t}?${i}`),t}(e),t).then(e=>e.data).catch(e=>{if(422===e?.details?.httpStatus)return{location:{top:r,left:n,width:o,height:a},valid:!0,data:new Array(o*a).fill(0)};throw e}).then(e=>{if(e.location&&(e.location.top!==r||e.location.left!==n||e.location.width!==o||e.location.height!==a))throw new l.A("tilemap:location-mismatch","Tilemap response for different location than requested",{response:e,definition:{top:r,left:n,width:o,height:a}});return w.fromJSON(e)})}static fromJSON(e){return Object.freeze(new w(e))}}function b(e){return`${e.level}/${e.row}/${e.col}/${e.width}/${e.height}`}function M(e,t,i){return new l.A("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:i})}let _=class extends o.A{static{r=this}constructor(e){super(e),this._pendingTilemapRequests={},this.request=s.A,this.size=32,this._prefetchingEnabled=!0}initialize(){this._tilemapCache=new c.q(2097152),this.addHandles((0,p.wB)(()=>{const{layer:e}=this;return[e?.parsedUrl,e?.tileServers,e?.apiKey,e?.customParameters]},()=>this._initializeTilemapDefinition(),p.Vh))}get effectiveMinLOD(){return this.minLOD??this.layer.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.layer.tileInfo.lods[this.layer.tileInfo.lods.length-1].level}getAvailability(e,t,i){if(!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD)return"unavailable";const r=this._tilemapFromCache(e,t,i,this._tmpTilemapDefinition);return r?r.getAvailability(t,i):"unknown"}fetchAvailability(e,t,i,r){return!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD?Promise.reject(M(e,t,i)):this._fetchTilemap(e,t,i,r).catch(e=>e).then(r=>{if(r instanceof w){const n=r.getAvailability(t,i);if("unavailable"===n)throw M(e,t,i);return n}if((0,h.zf)(r))throw r;return"unknown"})}fetchAvailabilityUpsample(e,t,i,r,n){r.level=e,r.row=t,r.col=i;const s=this.layer.tileInfo;s.updateTileInfo(r);const o=this.fetchAvailability(e,t,i,n).catch(e=>{if((0,h.zf)(e))throw e;if(s.upsampleTile(r))return this.fetchAvailabilityUpsample(r.level,r.row,r.col,r,n);throw e});return this._fetchAvailabilityUpsamplePrefetch(e,t,i,n,o),o}async _fetchAvailabilityUpsamplePrefetch(e,t,i,n,s){if(!this._prefetchingEnabled)return;const o=`prefetch-${e}-${t}-${i}`;if(this.hasHandles(o))return;const l=new AbortController;s.then(()=>l.abort(),()=>l.abort());let c=!1;const u=(0,a.hA)(()=>{c||(c=!0,l.abort())});if(this.addHandles(u,o),await(0,f.md)(10,l.signal).catch(()=>{}),c||(c=!0,this.removeHandles(o)),(0,h.G4)(l))return;const p=new d.U(e,t,i),g={...n,signal:l.signal},y=this.layer.tileInfo;for(let e=0;r._prefetches.length<r._maxPrefetch&&y.upsampleTile(p);++e){const e=this.fetchAvailability(p.level,p.row,p.col,g);r._prefetches.push(e);const t=()=>{r._prefetches.removeUnordered(e)};e.then(t,t)}}static{this._maxPrefetch=4}static{this._prefetches=new u.A({initialSize:r._maxPrefetch})}static cleanupTilemapCache(){this._prefetches.prune()}_fetchTilemap(e,t,i,r){if(!this.layer.tileInfo.lodAt(e)||e<this.effectiveMinLOD||e>this.effectiveMaxLOD)return Promise.reject(new l.A("tilemap-cache:level-unavailable",`Level ${e} is unavailable in the service`));const n=this._tmpTilemapDefinition,s=this._tilemapFromCache(e,t,i,n);if(s)return Promise.resolve(s);const o=r?.signal;return r={...r,signal:null},new Promise((e,t)=>{(0,h.u7)(o,()=>t((0,h.NK)()));const i=b(n);let s=this._pendingTilemapRequests[i];if(!s){s=w.fromDefinition(n,r).then(e=>(this._tilemapCache.put(i,e,e.byteSize),e));const e=()=>{delete this._pendingTilemapRequests[i]};this._pendingTilemapRequests[i]=s,s.then(e,e)}s.then(e,t)})}_initializeTilemapDefinition(){if(!this.layer.parsedUrl)return;const{parsedUrl:e,apiKey:t,customParameters:i}=this.layer;this._tilemapCache.clear(),this._tmpTilemapDefinition={service:{url:e.path,query:(0,g.x0)({...e.query,...i,token:t??e.query?.token}),tileServers:this.layer.tileServers,request:this.request},width:this.size,height:this.size,level:0,row:0,col:0}}_tilemapFromCache(e,t,i,r){r.level=e,r.row=t-t%this.size,r.col=i-i%this.size;const n=b(r);return this._tilemapCache.get(n)}get test(){}};(0,n.Cg)([(0,y.MZ)({constructOnly:!0})],_.prototype,"layer",void 0),(0,n.Cg)([(0,y.MZ)({constructOnly:!0})],_.prototype,"minLOD",void 0),(0,n.Cg)([(0,y.MZ)({constructOnly:!0})],_.prototype,"maxLOD",void 0),(0,n.Cg)([(0,y.MZ)({constructOnly:!0})],_.prototype,"request",void 0),(0,n.Cg)([(0,y.MZ)({constructOnly:!0})],_.prototype,"size",void 0),_=r=(0,n.Cg)([(0,y.$K)("esri.layers.support.TilemapCache")],_)},98205(e,t,i){i.d(t,{KZ:()=>l,eh:()=>o,gf:()=>s,of:()=>n});const r=Symbol("SizeVariableInstance");function n(e){return null!=e&&"object"==typeof e&&r 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 l(e,t){const i=t||o(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])},22671(e,t,i){i.d(t,{A:()=>v});var r,n=i(32198),s=i(52106),o=i(66552),l=i(25482),a=i(4718),c=i(91429),u=i(16930),h=i(60408),p=i(65864),f=i(50498),g=i(20437),y=i(36005),d=i(43937);const m=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=r=class extends l.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,i,r){if(e)return void m.write(e,t,i,r);const{features:n}=this;if(n)for(const e of n)if(null!=e?.geometry)return void m.write(e.geometry.type,t,i,r)}readQueryGeometry(e,t){if(!e)return null;const i=!!e.spatialReference,r=(0,p.rS)(e);return r&&!i&&t.spatialReference&&(r.spatialReference=u.A.fromJSON(t.spatialReference)),r}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:i}=this;if(i)for(const e of i)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new r(this.cloneProperties())}cloneProperties(){return(0,a.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 i=0;i<t.features.length;i++){const r=t.features[i];if(r.geometry){const t=e?.[i];r.geometry=t?.toJSON()||r.geometry}}return t}quantize(e){const{scale:[t,i],translate:[r,n]}=e,s=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-r)/t),e=>Math.round((n-e)/i));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:i}=this;if(!i)return this;const{translate:[r,n],scale:[s,o]}=i;let l=null,a=null;if(this.hasZ&&null!=i?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=i;l=i=>i*t+e}if(this.hasM&&null!=i?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=i;a=i=>null==i?i:i*t+e}const c=this._getHydrationFunction(e,e=>e*s+r,e=>n-e*o,l,a);for(const{geometry:e}of t)null!=e&&c&&c(e);return this.transform=null,this}readFeaturesWithClass(e,t,i){const r=u.A.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){const s=e[t],o=i.fromJSON(s),l=s.geometry?.spatialReference;null==o.geometry||l||(o.geometry.spatialReference=r);const a=s.aggregateGeometries,c=o.aggregateGeometries;if(a&&null!=c)for(const e in c){const t=c[e],i=a[e],n=i?.spatialReference;null==t||n||(t.spatialReference=r)}n.push(o)}return n}_quantizePoints(e,t,i){let r,n;const s=[];for(let o=0,l=e.length;o<l;o++){const l=e[o];if(o>0){const e=t(l[0]),o=i(l[1]);e===r&&o===n||(s.push([e-r,o-n]),r=e,n=o)}else r=t(l[0]),n=i(l[1]),s.push([r,n])}return s.length>0?s:null}_getQuantizationFunction(e,t,i){return"point"===e?e=>(e.x=t(e.x),e.y=i(e.y),e):"polyline"===e||"polygon"===e?e=>{const r=(0,h.Bi)(e)?e.rings:e.paths,n=[];for(let e=0,s=r.length;e<s;e++){const s=r[e],o=this._quantizePoints(s,t,i);o&&n.push(o)}return n.length>0?((0,h.Bi)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{const r=this._quantizePoints(e.points,t,i);return r&&r.length>0?(e.points=r,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,i,r,n){return"point"===e?e=>{e.x=t(e.x),e.y=i(e.y),r&&(e.z=r(e.z))}:"polyline"===e||"polygon"===e?e=>{const s=(0,h.Bi)(e)?e.rings:e.paths;let o,l;for(let e=0,r=s.length;e<r;e++){const r=s[e];for(let e=0,n=r.length;e<n;e++){const n=r[e];e>0?(o+=n[0],l+=n[1]):(o=n[0],l=n[1]),n[0]=t(o),n[1]=i(l)}}if(r&&n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(i[2]),i[3]=n(i[3])}}else if(r)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(i[2])}}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=n(i[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=i(e.ymin),e.xmax=t(e.xmax),e.ymax=i(e.ymax),r&&null!=e.zmax&&null!=e.zmin&&(e.zmax=r(e.zmax),e.zmin=r(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,l;for(let e=0,r=s.length;e<r;e++){const r=s[e];e>0?(o+=r[0],l+=r[1]):(o=r[0],l=r[1]),r[0]=t(o),r[1]=i(l)}if(r&&n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=r(t[2]),t[3]=n(t[3])}else if(r)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=r(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,c.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,n.Cg)([(0,c.MZ)({type:[s.A],json:{write:!0}})],v.prototype,"features",void 0),(0,n.Cg)([(0,y.w)("features")],v.prototype,"readFeatures",null),(0,n.Cg)([(0,c.MZ)({type:[g.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,n.Cg)([(0,c.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],v.prototype,"geometryType",void 0),(0,n.Cg)([(0,d.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,n.Cg)([(0,c.MZ)({types:f.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,n.Cg)([(0,y.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,n.Cg)([(0,c.MZ)({type:u.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,n.Cg)([(0,d.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,n.Cg)([(0,c.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=r=(0,n.Cg)([(0,c.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},2272(e,t,i){i.d(t,{Dl:()=>c,gf:()=>h,jV:()=>a,lF:()=>u});var r=i(92602),n=i(70333),s=i(4718),o=i(84952),l=i(926);function a(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function c(e){return"string"==typeof e?(0,o.An)(e):(0,s.o8)(e)}function u(e,t,i){const r={};for(const n in e){if("declaredClass"===n)continue;const s=e[n];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))r[n]=s.map(e=>u(e));else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(i?.[n]);r[n]=t?e:JSON.stringify(e)}else r[n]=t?s:JSON.stringify(s);else r[n]=s}return r}async function h(e,t,s){const o=function(e,t){return e?t&&(0,l.Qc)(e)?t:(0,l.getApiKey)(e)??n.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!n.id&&r.A.request.useIdentity&&await Promise.all([i.e(5620),i.e(7393),i.e(8837)]).then(()=>i(50148));const a=await n.id.getCredential(e,s);return a?.token}}}]);