@arcgis/core 5.2.0-next.101 → 5.2.0-next.103

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 (240) hide show
  1. package/applications/Components/graphicOriginUtils.d.ts +17 -0
  2. package/applications/Components/graphicOriginUtils.js +2 -0
  3. package/arcgisGlobal.d.ts +1 -0
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/01fb22542820b7a8b848.js +1 -0
  6. package/assets/esri/core/workers/chunks/{4d13c1a04788e5222678.js → 03601be8b0763f82e88f.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{6e804bd6bb4b0ee44fa9.js → 045ff98313b06a2188b7.js} +1 -1
  8. package/assets/esri/core/workers/chunks/05584d8828ae7bca0fc5.js +1 -0
  9. package/assets/esri/core/workers/chunks/{eb222dc01344ed07719e.js → 056af594a1ef87066187.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{e1682e94cc714197ebb4.js → 05731c8bc8f63b388d72.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{32aa1529e84b839d051d.js → 058d4c927486a361e633.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{2524e2385f61a6898411.js → 06e7411c5bed0a414031.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{de95dee8db92cf8f796f.js → 09a40fd0e462144c4640.js} +1 -1
  14. package/assets/esri/core/workers/chunks/0bd067a5c0bac96caeb5.js +1 -0
  15. package/assets/esri/core/workers/chunks/0bff8d589312be6588fe.js +1 -0
  16. package/assets/esri/core/workers/chunks/{4237a29c4ed5f86a15c2.js → 0c63d953f2dd1d5cc03d.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{09cd91e56c856db6e01a.js → 0c74cf91b6b5292d32b8.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{e934ef66d130c212c05b.js → 0cdaba3ed074c06e225f.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{6aaefd61505027267c9b.js → 0d69a18146722f792b5b.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{900dad076347443b3ad9.js → 0de90b1ad8118457fd5a.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{c0e073a77484b0dfd383.js → 0e1a067ab243900d0371.js} +1 -1
  22. package/assets/esri/core/workers/chunks/{33041e50ea02d99480b0.js → 0ee6109e6578395a7900.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{8da08198c29acaabda6e.js → 0f1d5faddf8ef752470b.js} +1 -1
  24. package/assets/esri/core/workers/chunks/0f86c8a67c87f840fd39.js +1 -0
  25. package/assets/esri/core/workers/chunks/{6134a2c6983792787184.js → 0ff13f7a18b0123d253e.js} +1 -1
  26. package/assets/esri/core/workers/chunks/10fa8fbade8ae084c307.js +1 -0
  27. package/assets/esri/core/workers/chunks/1559213657665c053f8e.js +1 -0
  28. package/assets/esri/core/workers/chunks/{9c7fc1c97125ea2a7b7e.js → 164c604c1b2f728f32f2.js} +1 -1
  29. package/assets/esri/core/workers/chunks/19ac6f4664f97fb3821c.js +1 -0
  30. package/assets/esri/core/workers/chunks/{fd4d124c5bf810d9e352.js → 1a2f51d795b803d969c9.js} +1 -1
  31. package/assets/esri/core/workers/chunks/1eafb214519d8fc63ccb.js +1 -0
  32. package/assets/esri/core/workers/chunks/2165493d36c85b7c9a04.js +1 -0
  33. package/assets/esri/core/workers/chunks/{52422500ca3d6cf2e596.js → 2256036d5b91fa537805.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{ad2b2214496e5a07db43.js → 2350f1eb70819cc06bb6.js} +1 -1
  35. package/assets/esri/core/workers/chunks/240bee7d0dc5e5dab826.js +1 -0
  36. package/assets/esri/core/workers/chunks/{822a5020afbca21df7f7.js → 25c5e1b14b184b1228a3.js} +1 -1
  37. package/assets/esri/core/workers/chunks/25c90092def215949db9.js +1 -0
  38. package/assets/esri/core/workers/chunks/{dd99bad9f91b0b62ba7c.js → 2a8168e109caa87d596f.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{39254fdc41aaf61f23b0.js → 2b06e8507d71c4d9b5b5.js} +1 -1
  40. package/assets/esri/core/workers/chunks/{839feb913d1b6138fc78.js → 2b11e15bfa319dd32218.js} +1 -1
  41. package/assets/esri/core/workers/chunks/2d52386d69c218e29887.js +1 -0
  42. package/assets/esri/core/workers/chunks/{dda269a088275c823b40.js → 307297e025eed110095f.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{05eb064f9b543890ae24.js → 33ba86b80426ddc88186.js} +1 -1
  44. package/assets/esri/core/workers/chunks/349e9f3d3e3267d02988.js +1 -0
  45. package/assets/esri/core/workers/chunks/{79088d5c9c2e6a780929.js → 34e04b24942da2b9b87c.js} +1 -1
  46. package/assets/esri/core/workers/chunks/3be33a129d3ae7dc4f06.js +1 -0
  47. package/assets/esri/core/workers/chunks/3daddcb106a7009c5a70.js +1 -0
  48. package/assets/esri/core/workers/chunks/{eae51e827f629ab37207.js → 3de6e54b6ed0feae1940.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{9fe1db0762ab3326eab4.js → 3f5094828fbae7844117.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{e02f02040b63d9c2e654.js → 3fb3b9fd06f78ee5cee6.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{26e33c28028bf33936fc.js → 43436c7ccc6baefc885d.js} +1 -1
  52. package/assets/esri/core/workers/chunks/434c5b54e89ace974cbd.js +29 -0
  53. package/assets/esri/core/workers/chunks/472f3b80e1f26e09114a.js +1 -0
  54. package/assets/esri/core/workers/chunks/{dd8d19eb6b8e955c8067.js → 477136b747e02312abc4.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{278e4d885ab03a51ef72.js → 47866b0b8604bf05c5ba.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{b0ba081533100b021090.js → 48a53bfeef11c32dadcc.js} +1 -1
  57. package/assets/esri/core/workers/chunks/4a73f73f1698fad2df20.js +1 -0
  58. package/assets/esri/core/workers/chunks/4b0e3f83a5f2d3b0478a.js +1 -0
  59. package/assets/esri/core/workers/chunks/{4fbf4390c7eb0e11e3c9.js → 4b80c84fbd3d8dd90ca6.js} +1 -1
  60. package/assets/esri/core/workers/chunks/{a78781f79d828fc678a3.js → 4ba2276751083589570a.js} +1 -1
  61. package/assets/esri/core/workers/chunks/{20feca2fdd304b3e9664.js → 4c9df8ae9238454969b8.js} +1 -1
  62. package/assets/esri/core/workers/chunks/{0ffb5a1275d07dcd9115.js → 4c9e9925c02db48fa177.js} +1 -1
  63. package/assets/esri/core/workers/chunks/{60b1af54e7fc20fd9588.js → 546213fb53fa921a3928.js} +1 -1
  64. package/assets/esri/core/workers/chunks/{f6aa10a709017ac815a7.js → 547a073c789fdfb78310.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{93c1d1e7c0935242071e.js → 54bb3678570ca032f051.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{53a6bfebf3904dd7cad9.js → 55e40d3b460bacd200e6.js} +1 -1
  67. package/assets/esri/core/workers/chunks/567fb6a9b72bb232306d.js +1 -0
  68. package/assets/esri/core/workers/chunks/571cf99c3eab8e517542.js +1 -0
  69. package/assets/esri/core/workers/chunks/{abdcc224c8a8c72c86c4.js → 572d45353d74dcda1f09.js} +1 -1
  70. package/assets/esri/core/workers/chunks/{5bb8d9d887dd4211afd2.js → 573e8fa0af8711ffec45.js} +1 -1
  71. package/assets/esri/core/workers/chunks/{486f1a3b7269ce6c3911.js → 58528ccb7f72ae76d52b.js} +1 -1
  72. package/assets/esri/core/workers/chunks/{8599d2f2eb0fbb4a8bf5.js → 5c7f6721b37a4355e97a.js} +1 -1
  73. package/assets/esri/core/workers/chunks/{a10188c4d1904965898a.js → 5e1699d361d237bf0937.js} +1 -1
  74. package/assets/esri/core/workers/chunks/{aa7cb1531da1ccae8492.js → 5eb726317b6602f1e206.js} +1 -1
  75. package/assets/esri/core/workers/chunks/{42b5533f94ebcdc4befe.js → 5ed56ade84a0bea4a0c8.js} +1 -1
  76. package/assets/esri/core/workers/chunks/{bb8089929ded0613d8e7.js → 6010799e05d239073de0.js} +1 -1
  77. package/assets/esri/core/workers/chunks/{1de1cc0ed0f169a58aff.js → 60ad12fb732d529a4018.js} +1 -1
  78. package/assets/esri/core/workers/chunks/6395b3ec61b6550859a4.js +1 -0
  79. package/assets/esri/core/workers/chunks/{0e11bee9b56a7f51b012.js → 63f7141c71f29dbe8270.js} +1 -1
  80. package/assets/esri/core/workers/chunks/{7bb3411a86cdd736d555.js → 665e1901ec8dc182ba7a.js} +1 -1
  81. package/assets/esri/core/workers/chunks/{bc7ca87d3bfe8a4aec81.js → 66c46c5a7147550ea3ed.js} +1 -1
  82. package/assets/esri/core/workers/chunks/{762e9a15b2638475a2b4.js → 69921d068add041b5dcb.js} +1 -1
  83. package/assets/esri/core/workers/chunks/{486f1277fe834c0fc4c1.js → 6b5332e167c0553b1e6b.js} +1 -1
  84. package/assets/esri/core/workers/chunks/{d00c25ef8a378b24378d.js → 6cf881f793fd0ec93981.js} +1 -1
  85. package/assets/esri/core/workers/chunks/6e6cdff4bbe1ff2f44ac.js +1 -0
  86. package/assets/esri/core/workers/chunks/6e75f09fb9452bd5f9fb.js +1 -0
  87. package/assets/esri/core/workers/chunks/{601e44839fd46e449aa8.js → 6ef372f52a6ebd9aeb4a.js} +1 -1
  88. package/assets/esri/core/workers/chunks/{1a9f17781e0a3bc5106f.js → 718ed36a9f23993e1460.js} +1 -1
  89. package/assets/esri/core/workers/chunks/{f1f78bb3d34f973c19de.js → 719f0012f297a9a55d70.js} +1 -1
  90. package/assets/esri/core/workers/chunks/7261bbdbd084b4bb44f8.js +1 -0
  91. package/assets/esri/core/workers/chunks/{dd26a37f061ff658c5bd.js → 727dba20e01423c6ea77.js} +1 -1
  92. package/assets/esri/core/workers/chunks/{db8deb37048c71884575.js → 7285a37cd5359aa4bac5.js} +1 -1
  93. package/assets/esri/core/workers/chunks/{6e12e3c99b149cd7f567.js → 7ad62d16b380d80f7f3e.js} +1 -1
  94. package/assets/esri/core/workers/chunks/7adff63fd66fab505ae6.js +1 -0
  95. package/assets/esri/core/workers/chunks/7e42be27ead91a4cc0f1.js +1 -0
  96. package/assets/esri/core/workers/chunks/{94f62ff81cc6fb83e73f.js → 80cca2a377d51926e1a2.js} +1 -1
  97. package/assets/esri/core/workers/chunks/{9246e2468528650bdc7c.js → 80f16f5f15518013f7d0.js} +1 -1
  98. package/assets/esri/core/workers/chunks/{eb167f9f6132a6348d2e.js → 8328f79f064a68f3c1a3.js} +1 -1
  99. package/assets/esri/core/workers/chunks/847781aefed049493444.js +1 -0
  100. package/assets/esri/core/workers/chunks/84dc2afd89263a311b81.js +1 -0
  101. package/assets/esri/core/workers/chunks/8628c027198982baed7c.js +1 -0
  102. package/assets/esri/core/workers/chunks/{9d3cdfa08ef4d2805625.js → 88610ebfdf9c93ada781.js} +1 -1
  103. package/assets/esri/core/workers/chunks/{ed5ac1efd3cba49be756.js → 8bd187b48a4e4296e3d8.js} +1 -1
  104. package/assets/esri/core/workers/chunks/{862f7090ba4a56c07093.js → 8e102a2e134ce6ce0724.js} +1 -1
  105. package/assets/esri/core/workers/chunks/{3c0421a4a0ee3a3c63f8.js → 8edac3bbac401c8d6ecb.js} +1 -1
  106. package/assets/esri/core/workers/chunks/{22c477147421e68f7f00.js → 8fb4aa967d67abb6aba9.js} +1 -1
  107. package/assets/esri/core/workers/chunks/{e1c8767143f9f9d1f049.js → 93375f5f5bb754eca35f.js} +1 -1
  108. package/assets/esri/core/workers/chunks/{ea77654c8964cc39b9a6.js → 956432c9d45940983bc2.js} +1 -1
  109. package/assets/esri/core/workers/chunks/{b17a9853250ab626d58d.js → 96ebf76661b12128ddd5.js} +1 -1
  110. package/assets/esri/core/workers/chunks/98414a10f6de21107a03.js +1 -0
  111. package/assets/esri/core/workers/chunks/{4047208f9559e06d7102.js → 9a084a12afd6f0bbabce.js} +1 -1
  112. package/assets/esri/core/workers/chunks/9acaabe950319d031f2e.js +1 -0
  113. package/assets/esri/core/workers/chunks/{a24cecf2f775eaa69cf4.js → a10df3f51fe26d782aff.js} +1 -1
  114. package/assets/esri/core/workers/chunks/a34eee4c9d4c1c2b8c49.js +1 -0
  115. package/assets/esri/core/workers/chunks/a3f4818f4190fa92331d.js +1 -0
  116. package/assets/esri/core/workers/chunks/{680bef5e8237cc3bdd84.js → ac02df176f9ea94278bb.js} +1 -1
  117. package/assets/esri/core/workers/chunks/{5efc66be4576c6f67064.js → b1c1b7f98ee218f52b56.js} +1 -1
  118. package/assets/esri/core/workers/chunks/b4e5027c121d848c3d5a.js +1 -0
  119. package/assets/esri/core/workers/chunks/{d86044dbcd64323ff9f2.js → b7809ef3e1dabd921339.js} +1 -1
  120. package/assets/esri/core/workers/chunks/b9023cc3298ee4fddea7.js +1 -0
  121. package/assets/esri/core/workers/chunks/{63c43ebf46964c283b4d.js → b92b7d6c1e693c97a3eb.js} +1 -1
  122. package/assets/esri/core/workers/chunks/{fa91cece6daab2bec0e4.js → b941ec028abd44734902.js} +1 -1
  123. package/assets/esri/core/workers/chunks/{44ca13c874b5aa0ed5a0.js → bba3eb07a2a0065759f9.js} +1 -1
  124. package/assets/esri/core/workers/chunks/{4f89da01b67b66a92c01.js → be3421ffb5b391bca02e.js} +1 -1
  125. package/assets/esri/core/workers/chunks/be69e2dda75b079362b2.js +1 -0
  126. package/assets/esri/core/workers/chunks/{3721153202bd43c7fe0e.js → c116bd04e8910b5649d1.js} +1 -1
  127. package/assets/esri/core/workers/chunks/{fbf2d90240d36f8b423f.js → c2d19bb097d074a1ef21.js} +1 -1
  128. package/assets/esri/core/workers/chunks/c517e732cab41093b2e0.js +1 -0
  129. package/assets/esri/core/workers/chunks/{b0da2b089a89d643df1e.js → c53ecbdb47952eb47516.js} +1 -1
  130. package/assets/esri/core/workers/chunks/{cded34b161fcc790e672.js → c582441200ee1cdf51a7.js} +1 -1
  131. package/assets/esri/core/workers/chunks/{16f55c5d642a23c2547e.js → c63b0055a5008b1e5005.js} +1 -1
  132. package/assets/esri/core/workers/chunks/{33641947c388ce28b563.js → c6e771eff0603ece5d30.js} +1 -1
  133. package/assets/esri/core/workers/chunks/c7e6b5594fed5bb16691.js +1 -0
  134. package/assets/esri/core/workers/chunks/{d2387906b52624b4f7f1.js → c85fc0a9412e7debf166.js} +1 -1
  135. package/assets/esri/core/workers/chunks/{d7659d2b2aea0dd1202d.js → c91905b5808b8049f96d.js} +146 -126
  136. package/assets/esri/core/workers/chunks/cbd94998c619093b6426.js +1 -0
  137. package/assets/esri/core/workers/chunks/{86c3d3c7015f1cd55fac.js → ce3fb992f6c6ae7378a3.js} +1 -1
  138. package/assets/esri/core/workers/chunks/{e7fdad0c07beb3614b60.js → d13cf2e8b24e978ea77c.js} +1 -1
  139. package/assets/esri/core/workers/chunks/{c7f69d010f1cb32f5d37.js → d33d08cb6856cd2eb35e.js} +1 -1
  140. package/assets/esri/core/workers/chunks/d5defba320f2e49a377f.js +1 -0
  141. package/assets/esri/core/workers/chunks/{006146ad6d4a5cbf1a1f.js → d710c9d206bf46e031e8.js} +1 -1
  142. package/assets/esri/core/workers/chunks/{da6134c7883531f21afe.js → d922c54ea492cc771f63.js} +1 -1
  143. package/assets/esri/core/workers/chunks/{cf49a13522d61da31d8f.js → d9270f4935eb0d044db3.js} +1 -1
  144. package/assets/esri/core/workers/chunks/{8837fbcc0d484659b79c.js → da77257b517119578088.js} +1 -1
  145. package/assets/esri/core/workers/chunks/{3ca6ecdf9bdd84fef4d5.js → deb408bee61ca192b2ce.js} +1 -1
  146. package/assets/esri/core/workers/chunks/{d92540d3ffc4af980dd8.js → df79c00b5ddbef7148a0.js} +1 -1
  147. package/assets/esri/core/workers/chunks/e0f417992889a6c41095.js +1 -0
  148. package/assets/esri/core/workers/chunks/{c511af7afe08a78e2a4d.js → e18b8646c7378213b618.js} +1 -1
  149. package/assets/esri/core/workers/chunks/{a7e6382ecc91c876117f.js → e26be75ae40acb7473ee.js} +1 -1
  150. package/assets/esri/core/workers/chunks/e4d98eaa89d2c88c5139.js +1 -0
  151. package/assets/esri/core/workers/chunks/e5c88090d16459f55cb8.js +1 -0
  152. package/assets/esri/core/workers/chunks/{cc73ac8404615dc392d2.js → e6a4cef0af9be30ffe3d.js} +1 -1
  153. package/assets/esri/core/workers/chunks/{a40566a78d801b223d3d.js → ea068c797e3e462f4518.js} +1 -1
  154. package/assets/esri/core/workers/chunks/eab969d5c7d81f351250.js +1 -0
  155. package/assets/esri/core/workers/chunks/{3a9c6f58a1a065c14017.js → eaf1d38f09744b7e84f5.js} +1 -1
  156. package/assets/esri/core/workers/chunks/ebe7ba2557b50e18e547.js +1 -0
  157. package/assets/esri/core/workers/chunks/{1e3b07cf0e608431a277.js → ec5542d6ecc0622f7705.js} +1 -1
  158. package/assets/esri/core/workers/chunks/{0a4092578dc7578bcf76.js → f5a988bb850f7a7af143.js} +1 -1
  159. package/assets/esri/core/workers/chunks/{248df6fda489a9de5852.js → f5e8ccbd6b4c0a386903.js} +1 -1
  160. package/assets/esri/core/workers/chunks/f60d5ce49c173d5381ec.js +1 -0
  161. package/assets/esri/core/workers/chunks/{000f91a18c22377f8525.js → f94170f1e8c11c861e7b.js} +1 -1
  162. package/assets/esri/core/workers/chunks/{35d0a7597473d46866de.js → f9e5740b05de24ba81be.js} +1 -1
  163. package/assets/esri/core/workers/chunks/{10f4c5533f50c3693318.js → fa869977ac2abb063925.js} +1 -1
  164. package/assets/esri/core/workers/chunks/fae14e30fa7d81bf706e.js +1 -0
  165. package/assets/esri/core/workers/chunks/{ab3a6ce7bc2a27b92469.js → fb6f1b562ee0983c8c6e.js} +1 -1
  166. package/assets/esri/core/workers/chunks/{a26916de4c105859621e.js → fd808d38ae2d475ac442.js} +1 -1
  167. package/assets/esri/core/workers/chunks/{d6f7aa280f1bd201d4ef.js → ff673ea8e3291d12689e.js} +1 -1
  168. package/chunks/GlobalIllumination.glsl.js +8 -13
  169. package/config.js +1 -1
  170. package/core/libs/gl-matrix-2/math/quat.js +1 -1
  171. package/kernel.js +1 -1
  172. package/layers/IntegratedMeshLayer.d.ts +12 -0
  173. package/layers/IntegratedMeshLayer.js +1 -1
  174. package/layers/support/I3SIntegratedMeshElevationQuery.js +2 -0
  175. package/package.json +2 -2
  176. package/support/revision.js +1 -1
  177. package/views/3d/analysis/LineOfSight/LineOfSightEditTool.js +1 -1
  178. package/views/3d/analysis/LineOfSight/LineOfSightManipulators.js +1 -1
  179. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  180. package/views/3d/interactive/editingTools/manipulatorUtils.js +1 -1
  181. package/views/3d/layers/i3s/I3SIndex.js +1 -1
  182. package/views/3d/layers/i3s/I3SNode.js +1 -1
  183. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +29 -19
  184. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceRayMarching.glsl.js +24 -9
  185. package/views/3d/webgl-engine/lib/BufferObject3D.js +2 -0
  186. package/views/3d/webgl-engine/lib/Intersector.js +1 -1
  187. package/views/3d/webgl-engine/lib/ModelDirtySet.js +1 -1
  188. package/views/3d/webgl-engine/lib/Object3D.js +1 -1
  189. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  190. package/views/3d/webgl-engine/parts/Model.js +1 -1
  191. package/views/analysis/ElevationProfile/ElevationProfileLineQueryComputation.js +1 -1
  192. package/views/support/Scheduler.js +1 -1
  193. package/assets/esri/core/workers/chunks/014eaccf2c2d357981f0.js +0 -1
  194. package/assets/esri/core/workers/chunks/0a242e76bc293b0ad04b.js +0 -1
  195. package/assets/esri/core/workers/chunks/0e65869a5dd5a3917da7.js +0 -1
  196. package/assets/esri/core/workers/chunks/0f15468ffefd3e9a17b8.js +0 -29
  197. package/assets/esri/core/workers/chunks/16ffbe484f6cd4736f79.js +0 -1
  198. package/assets/esri/core/workers/chunks/24a6b28db94e07a702a4.js +0 -1
  199. package/assets/esri/core/workers/chunks/2bd4b536e329112591c4.js +0 -1
  200. package/assets/esri/core/workers/chunks/3328a65c2bf1a0cbdb9d.js +0 -1
  201. package/assets/esri/core/workers/chunks/34f82b4ab11ff5642555.js +0 -1
  202. package/assets/esri/core/workers/chunks/3a9435569ba460ff7e3d.js +0 -1
  203. package/assets/esri/core/workers/chunks/3dd57a07c7a28e50d76e.js +0 -1
  204. package/assets/esri/core/workers/chunks/428f991c14ac12ae1b2c.js +0 -1
  205. package/assets/esri/core/workers/chunks/4717831effb1ac6d5f5d.js +0 -1
  206. package/assets/esri/core/workers/chunks/4d7f6c92041d52cc8732.js +0 -1
  207. package/assets/esri/core/workers/chunks/545a828002fd7da86c19.js +0 -1
  208. package/assets/esri/core/workers/chunks/58a52adc42fbe5cd12c6.js +0 -1
  209. package/assets/esri/core/workers/chunks/58b93f13316196d2e97d.js +0 -1
  210. package/assets/esri/core/workers/chunks/58f98bd89b644cfdafae.js +0 -1
  211. package/assets/esri/core/workers/chunks/625a692f00357629f609.js +0 -1
  212. package/assets/esri/core/workers/chunks/69688d521d5ba117e31c.js +0 -1
  213. package/assets/esri/core/workers/chunks/6f6ae6cf7f6e30b29013.js +0 -1
  214. package/assets/esri/core/workers/chunks/7fd54fa2f91cdab44ab3.js +0 -1
  215. package/assets/esri/core/workers/chunks/862eabda80ddb9e7a332.js +0 -1
  216. package/assets/esri/core/workers/chunks/8b24feffd5e084af2fa9.js +0 -1
  217. package/assets/esri/core/workers/chunks/925f83be3c1eb4b5c6af.js +0 -1
  218. package/assets/esri/core/workers/chunks/97aaff86e06380a68df8.js +0 -1
  219. package/assets/esri/core/workers/chunks/989937c120bdd676ec1e.js +0 -1
  220. package/assets/esri/core/workers/chunks/9cc14a41d4a90f6d626e.js +0 -1
  221. package/assets/esri/core/workers/chunks/a03e7333e3328036f478.js +0 -1
  222. package/assets/esri/core/workers/chunks/a34cadd486e7fcc79063.js +0 -1
  223. package/assets/esri/core/workers/chunks/a72983c3621810d4b1af.js +0 -1
  224. package/assets/esri/core/workers/chunks/a88aa26a7bee1fe7aea2.js +0 -1
  225. package/assets/esri/core/workers/chunks/a8e9aa5461c71c88e2e5.js +0 -1
  226. package/assets/esri/core/workers/chunks/a8f70cece5ce2b095cdd.js +0 -1
  227. package/assets/esri/core/workers/chunks/abd2f8fae6b918fbdd6d.js +0 -1
  228. package/assets/esri/core/workers/chunks/b2e5a89aca245263901c.js +0 -1
  229. package/assets/esri/core/workers/chunks/b2e692f52b9f02210e10.js +0 -1
  230. package/assets/esri/core/workers/chunks/b5fcf4165ac72654742d.js +0 -1
  231. package/assets/esri/core/workers/chunks/ba77a8892cb23c7a297d.js +0 -1
  232. package/assets/esri/core/workers/chunks/bf357afbabaa8dec4d75.js +0 -1
  233. package/assets/esri/core/workers/chunks/c07d2fb9940b2c6eda9f.js +0 -1
  234. package/assets/esri/core/workers/chunks/d179ec37d2612d65624f.js +0 -1
  235. package/assets/esri/core/workers/chunks/d2865c604849ce79183f.js +0 -1
  236. package/assets/esri/core/workers/chunks/e5d114f2b57d2b8e2f1c.js +0 -1
  237. package/assets/esri/core/workers/chunks/f2cbcd1b0e77e733a8e0.js +0 -1
  238. package/assets/esri/core/workers/chunks/f331c24247d132589859.js +0 -1
  239. package/assets/esri/core/workers/chunks/f8a6d8cdcabcd1d511b6.js +0 -1
  240. package/assets/esri/core/workers/chunks/ffa35ecc681ec1c4739a.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[919],{40876(e,t,r){r.d(t,{Eq:()=>d,G1:()=>y,Q6:()=>w,TS:()=>l,V6:()=>s,Vm:()=>g,ay:()=>a,c1:()=>f,c4:()=>n,j5:()=>u,lT:()=>c,oW:()=>p,xV:()=>b});const i={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function s(e){return!!i[e]||!!i[e.toLowerCase()]}function l(e){return i[e]??i[e.toLowerCase()]}function n(e){return[...l(e)]}function o(e,t,r){r<0&&++r,r>1&&--r;const i=6*r;return i<1?e+(t-e)*i:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function a(e,t,r,i=1){const s=(e%360+360)%360/360,l=r<=.5?r*(t+1):r+t-r*t,n=2*r-l;return[Math.round(255*o(n,l,s+1/3)),Math.round(255*o(n,l,s)),Math.round(255*o(n,l,s-1/3)),i]}function u(e){const t=e.length>5,r=t?8:4,i=(1<<r)-1,s=t?1:17,l=t?9===e.length:5===e.length;let n=Number("0x"+e.slice(1));if(isNaN(n))return null;const o=[0,0,0,1];let a;return l&&(a=n&i,n>>=r,o[3]=s*a/255),a=n&i,n>>=r,o[2]=s*a,a=n&i,n>>=r,o[1]=s*a,a=n&i,n>>=r,o[0]=s*a,o}function p(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const t=parseInt(e.slice(1,2),16),r=parseInt(e.slice(2,3),16),i=parseInt(e.slice(3,4),16),s=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,r+16*r,i+16*i,(s+16*s)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function c(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),r=t[1];if("rgb"===r&&3===e.length||"rgba"===r&&4===e.length){if(e[0].endsWith("%")){const t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),h(t)}return h(e.map(e=>parseFloat(e)))}if("hsl"===r&&3===e.length||"hsla"===r&&4===e.length)return a(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function h(e){return e[0]=f(e[0]),e[1]=f(e[1]),e[2]=f(e[2]),e[3]=4===e.length?y(e[3]):1,e}function d(e){let t=s(e)?l(e):null;return t??=c(e),t??=p(e),t}function g(e){const t=d(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function y(e){return m(e,0,1)}function f(e){return Math.round(m(e,0,255))}function m(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}const v=1/2.2;function w(e){return e**2.2}function b(e){return e**v}r.d(t,["iw",0,v])},60999(e,t,r){r.d(t,{DZ:()=>g,Ke:()=>d,Tj:()=>p,UT:()=>y,aD:()=>m,jJ:()=>u});var i=r(32198),s=r(69622),l=r(97768),n=r(17676),o=r(10107),a=r(64108);function u(e,t,r){return(0,n.Lx)(e.map((e,i)=>t.apply(r,[e,i])))}async function p(e,t,r){return(await(0,n.Lx)(e.map((e,i)=>t.apply(r,[e,i])))).map(e=>e.value)}function c(e){return{ok:!0,value:e}}function h(e){return{ok:!1,error:e}}async function d(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return c(await e)}catch(e){return h(e)}}async function g(e){try{return c(await e)}catch(e){return(0,n.QP)(e),h(e)}}function y(e,t){return new f(e,t)}let f=class extends s.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,l.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=c(e),this._cleanup()},e=>{this._result=h(e),this._cleanup()}),this._abortHandle=(0,n.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,l.xt)(this._abortHandle),this._abortController=null}};(0,i.Cg)([(0,o.MZ)()],f.prototype,"value",null),(0,i.Cg)([(0,o.MZ)()],f.prototype,"error",null),(0,i.Cg)([(0,o.MZ)()],f.prototype,"finished",null),(0,i.Cg)([(0,o.MZ)()],f.prototype,"promise",void 0),(0,i.Cg)([(0,o.MZ)()],f.prototype,"_result",void 0),f=(0,i.Cg)([(0,a.$)("esri.core.asyncUtils.ReactiveTask")],f);class m{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,i.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,i.hk)(t)}}}},90629(e,t,r){r.d(t,{Lz:()=>s,PN:()=>l,cr:()=>n,gs:()=>a,r_:()=>u,tc:()=>o}),r(39829);const i=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function s(e){return e?e/72*96:0}function l(e){return e?72*e/96:0}function n(e){if("string"==typeof e){const t=e.match(i);if(t){const r=Number(t[1]),i=t[3]&&t[3].toLowerCase(),s=e.startsWith("-"),n="px"===i?l(r):r;return s?-n:n}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function o(e=0,t=0){return{x:e,y:t}}function a(e=0,t=0){return[e,t]}function u(e=0,t=0,r=0){return[e,t,r]}},48526(e,t,r){r.d(t,{A:()=>f});var i,s=r(32198),l=r(4576),n=r(4718),o=r(91429),a=r(5443),u=r(91075),p=r(86738),c=r(16930),h=r(90634),d=r(47610),g=r(56993),y=r(43937);let f=i=class extends u.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:r,hasZ:i,spatialReference:s}=e;switch(t??=[],t?.at(0)?.length){case 4:i??=!0,r??=!0;break;case 3:i??=!0!==r,r??=!i;break;default:i??=!1,r??=!1}return s??=c.A.WGS84,{...e,hasM:r,hasZ:i,points:t,spatialReference:s}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const e=(0,h.ge)(this);return e?new a.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,n.o8)(this.points)}clone(){const{points:e,spatialReference:t,hasM:r,hasZ:s}=this;return new i({points:(0,n.o8)(e),spatialReference:t.clone(),hasM:r,hasZ:s})}equals(e){if(this===e)return!0;if(null==e)return!1;const t=this.spatialReference,r=e.spatialReference;return null!=t==(null!=r)&&!(null!=t&&null!=r&&!t.equals(r))&&(0,l.aI)(this.points,e.points,d.v6)}addPoint(e){return(0,g.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;const t=this.points[e],r={x:t[0],y:t[1],spatialReference:this.spatialReference};let i=2;return this.hasZ&&(r.z=t[2],i=3),this.hasM&&(r.m=t[i]),new p.A(r)}removePoint(e){if(!this._validateInputs(e))return null;const t=new p.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?((0,g.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points"),this):this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,s.Cg)([(0,o.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,s.Cg)([(0,o.MZ)({readOnly:!0})],f.prototype,"extent",null),(0,s.Cg)([(0,o.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],f.prototype,"points",void 0),(0,s.Cg)([(0,y.K)("points")],f.prototype,"writePoints",null),f=i=(0,s.Cg)([(0,o.$K)("esri.geometry.Multipoint")],f),f.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,r){r.d(t,{A:()=>g});var i,s=r(32198),l=r(4718),n=r(91429),o=r(5443),a=r(91075),u=r(86738),p=r(16930),c=r(90634),h=r(56993),d=r(43937);let g=i=class extends a.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:r,hasZ:i,spatialReference:s}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:i??=!0,r??=!0;break;case 3:i??=!0!==r,r??=!i;break;default:i??=!1,r??=!1}return s??=p.A.WGS84,{...e,hasM:r,hasZ:i,paths:t,spatialReference:s}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,l.o8)(e)}get extent(){const e=(0,c.Z3)(this),{spatialReference:t}=this;return e?new o.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,l.o8)(this.paths)}addPath(e){if(!e)return;const t=this.paths,r=t.length;if(function(e){return!Array.isArray(e[0])}(e)){const i=[];for(let t=0,r=e.length;t<r;t++)i[t]=e[t].toArray();t[r]=i}else t[r]=e.slice();return this.notifyChange("paths"),this}clone(){const e=new i;return e.spatialReference=this.spatialReference,e.paths=(0,l.o8)(this.paths),e.curvePaths=(0,l.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;const r=this.paths[e][t],i=this.hasZ,s=this.hasM;return i&&!s?new u.A(r[0],r[1],r[2],void 0,this.spatialReference):s&&!i?new u.A(r[0],r[1],void 0,r[2],this.spatialReference):i&&s?new u.A(r[0],r[1],r[2],r[3],this.spatialReference):new u.A(r[0],r[1],this.spatialReference)}insertPoint(e,t,r){return this._validateInputs(e,t,!0)?((0,h.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e].splice(t,0,r),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;const t=this.paths.splice(e,1)[0],r=this.spatialReference,i=t.map(e=>new u.A(e,r));return this.notifyChange("paths"),i}removePoint(e,t){if(!this._validateInputs(e,t))return null;const r=new u.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),r}setPoint(e,t,r){return this._validateInputs(e,t)?((0,h.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e][t]=r,this.notifyChange("paths"),this):this}_validateInputs(e,t,r=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){const i=this.paths[e];if(r&&(t<0||t>i.length))return!1;if(!r&&(t<0||t>=i.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,s.Cg)([(0,n.MZ)({readOnly:!0})],g.prototype,"cache",null),(0,s.Cg)([(0,n.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],g.prototype,"curvePaths",void 0),(0,s.Cg)([(0,d.K)("curvePaths")],g.prototype,"writeCurvePaths",null),(0,s.Cg)([(0,n.MZ)({readOnly:!0})],g.prototype,"extent",null),(0,s.Cg)([(0,n.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],g.prototype,"paths",void 0),(0,s.Cg)([(0,d.K)("paths")],g.prototype,"writePaths",null),g=i=(0,s.Cg)([(0,n.$K)("esri.geometry.Polyline")],g),g.prototype.toJSON.isDefaultToJSON=!0},60408(e,t,r){function i(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function s(e){return void 0!==e.points}function l(e){return void 0!==e.x&&void 0!==e.y}function n(e){return void 0!==e.paths||void 0!==e.curvePaths}function o(e){return void 0!==e.rings||void 0!==e.curveRings}function a(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?l(e)?"esriGeometryPoint":n(e)?"esriGeometryPolyline":o(e)?"esriGeometryPolygon":i(e)?"esriGeometryEnvelope":s(e)?"esriGeometryMultipoint":null:null}function p(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function c(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}r.d(t,{$B:()=>u,Bi:()=>o,Pv:()=>p,Rg:()=>n,U9:()=>s,W0:()=>c,ZC:()=>i,fT:()=>l,uW:()=>a})},47314(e,t,r){r.r(t),r.d(t,{default:()=>_});var i,s=r(32198),l=r(11254),n=r(49186),o=r(25728),a=r(799),u=r(84952),p=r(91429),c=r(5443),h=r(86738),d=r(16930),g=r(4146),y=r(63074),f=r(34287),m=r(8303),v=r(54310),w=r(25036),b=r(33446),A=r(91806),M=r(87045),C=r(83703),P=r(36005),I=r(43937);let _=i=class extends((0,y.dM)((0,v.J)((0,w.j)((0,f.q)((0,m.A)((0,o.M)(g.A))))))){constructor(...e){super(...e),this.copyright="",this.fullExtent=new c.A(-20037508.342787,-20037508.34278,20037508.34278,20037508.342787,d.A.WebMercator),this.legendEnabled=!1,this.isReference=null,this.popupEnabled=!1,this.spatialReference=d.A.WebMercator,this.subDomains=null,this.tileInfo=new M.A({size:[256,256],dpi:96,format:"png8",compressionQuality:0,origin:new h.A({x:-20037508.342787,y:20037508.342787,spatialReference:d.A.WebMercator}),spatialReference:d.A.WebMercator,lods:[new A.A({level:0,scale:591657527.591555,resolution:156543.033928}),new A.A({level:1,scale:295828763.795777,resolution:78271.5169639999}),new A.A({level:2,scale:147914381.897889,resolution:39135.7584820001}),new A.A({level:3,scale:73957190.948944,resolution:19567.8792409999}),new A.A({level:4,scale:36978595.474472,resolution:9783.93962049996}),new A.A({level:5,scale:18489297.737236,resolution:4891.96981024998}),new A.A({level:6,scale:9244648.868618,resolution:2445.98490512499}),new A.A({level:7,scale:4622324.434309,resolution:1222.99245256249}),new A.A({level:8,scale:2311162.217155,resolution:611.49622628138}),new A.A({level:9,scale:1155581.108577,resolution:305.748113140558}),new A.A({level:10,scale:577790.554289,resolution:152.874056570411}),new A.A({level:11,scale:288895.277144,resolution:76.4370282850732}),new A.A({level:12,scale:144447.638572,resolution:38.2185141425366}),new A.A({level:13,scale:72223.819286,resolution:19.1092570712683}),new A.A({level:14,scale:36111.909643,resolution:9.55462853563415}),new A.A({level:15,scale:18055.954822,resolution:4.77731426794937}),new A.A({level:16,scale:9027.977411,resolution:2.38865713397468}),new A.A({level:17,scale:4513.988705,resolution:1.19432856685505}),new A.A({level:18,scale:2256.994353,resolution:.597164283559817}),new A.A({level:19,scale:1128.497176,resolution:.298582141647617}),new A.A({level:20,scale:564.248588,resolution:.14929107082380833}),new A.A({level:21,scale:282.124294,resolution:.07464553541190416}),new A.A({level:22,scale:141.062147,resolution:.03732276770595208}),new A.A({level:23,scale:70.5310735,resolution:.01866138385297604})]}),this.type="web-tile",this.urlTemplate=null,this.wmtsInfo=null}normalizeCtorArgs(e,t){return"string"==typeof e?{urlTemplate:e,...t}:e}load(e){const t=this.loadFromPortal({supportedTypes:["WMTS"]},e).then(()=>{let e="";if(this.urlTemplate)if(this.spatialReference.equals(this.tileInfo.spatialReference)){const t=new u.s0(this.urlTemplate);!(this.subDomains&&this.subDomains.length>0)&&t.authority?.includes("{subDomain}")&&(e="is missing 'subDomains' property")}else e="spatialReference must match tileInfo.spatialReference";else e="is missing the required 'urlTemplate' property value";if(e)throw new n.A("web-tile-layer:load",`WebTileLayer (title: '${this.title}', id: '${this.id}') ${e}`)});return this.addResolvingPromise(t),Promise.resolve(this)}get levelValues(){const e=[];if(!this.tileInfo)return null;for(const t of this.tileInfo.lods)e[t.level]=t.levelValue||t.level;return e}get loaded(){return super.loaded}readSpatialReference(e,t){return e||d.A.fromJSON(t.fullExtent?.spatialReference)}get tileServers(){if(!this.urlTemplate)return null;const e=[],{urlTemplate:t,subDomains:r}=this,i=new u.s0(t),s=i.scheme?i.scheme+"://":"//",l=s+i.authority+"/",n=i.authority;if(n?.includes("{subDomain}")){if(r&&r.length>0&&n.split(".").length>1)for(const t of r)e.push(s+n.replaceAll(/\{subDomain\}/gi,t)+"/")}else e.push(l);return e.map(u.Il)}get urlPath(){if(!this.urlTemplate)return null;const e=this.urlTemplate,t=new u.s0(e),r=(t.scheme?t.scheme+"://":"//")+t.authority+"/";return e.slice(r.length)}readUrlTemplate(e,t){return e||t.templateUrl}writeUrlTemplate(e,t){(0,u.BQ)(e)&&(e="https:"+e),e&&(e=e.replaceAll(/\{z\}/gi,"{level}").replaceAll(/\{x\}/gi,"{col}").replaceAll(/\{y\}/gi,"{row}"),e=(0,u.S8)(e)),t.templateUrl=e}fetchTile(e,t,r,i={}){const{signal:s}=i,n=this.getTileUrl(e,t,r),o={responseType:"image",signal:s,query:{...this.refreshParameters}};return(0,l.A)(n,o).then(e=>e.data)}async fetchImageBitmapTile(e,t,r,s={}){const{signal:n}=s;if(this.fetchTile!==i.prototype.fetchTile){const i=await this.fetchTile(e,t,r,s);return(0,b.Cp)(i,e,t,r,s)}const o=this.getTileUrl(e,t,r),a={responseType:"blob",signal:n,query:{...this.refreshParameters}},{data:u}=await(0,l.A)(o,a);return(0,b.Cp)(u,e,t,r,s)}getTileUrl(e,t,r){const{levelValues:i,tileServers:s,urlPath:l}=this;if(!i||!s||!l)return"";const n=i[e];return s[t%s.length]+(0,a.HC)(l,{level:n,z:n,col:r,x:r,row:t,y:t})}};(0,s.Cg)([(0,p.MZ)({type:String,value:"",json:{write:!0}})],_.prototype,"copyright",void 0),(0,s.Cg)([(0,p.MZ)({type:c.A,json:{write:!0},nonNullable:!0})],_.prototype,"fullExtent",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1,write:!1}})],_.prototype,"legendEnabled",void 0),(0,s.Cg)([(0,p.MZ)({type:["show","hide"]})],_.prototype,"listMode",void 0),(0,s.Cg)([(0,p.MZ)({json:{read:!0,write:!0}})],_.prototype,"blendMode",void 0),(0,s.Cg)([(0,p.MZ)()],_.prototype,"levelValues",null),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],_.prototype,"isReference",void 0),(0,s.Cg)([(0,p.MZ)({type:["WebTiledLayer"],value:"WebTiledLayer"})],_.prototype,"operationalLayerType",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1,write:!1}})],_.prototype,"popupEnabled",void 0),(0,s.Cg)([(0,p.MZ)({type:d.A})],_.prototype,"spatialReference",void 0),(0,s.Cg)([(0,P.w)("spatialReference",["spatialReference","fullExtent.spatialReference"])],_.prototype,"readSpatialReference",null),(0,s.Cg)([(0,p.MZ)({type:[String],json:{write:!0}})],_.prototype,"subDomains",void 0),(0,s.Cg)([(0,p.MZ)({type:M.A,json:{write:!0}})],_.prototype,"tileInfo",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],_.prototype,"tileServers",null),(0,s.Cg)([(0,p.MZ)({json:{read:!1}})],_.prototype,"type",void 0),(0,s.Cg)([(0,p.MZ)()],_.prototype,"urlPath",null),(0,s.Cg)([(0,p.MZ)({type:String,json:{origins:{"portal-item":{read:{source:"url"}}}}})],_.prototype,"urlTemplate",void 0),(0,s.Cg)([(0,P.w)("urlTemplate",["urlTemplate","templateUrl"])],_.prototype,"readUrlTemplate",null),(0,s.Cg)([(0,I.K)("urlTemplate",{templateUrl:{type:String}})],_.prototype,"writeUrlTemplate",null),(0,s.Cg)([(0,p.MZ)({type:C.x,json:{write:!0}})],_.prototype,"wmtsInfo",void 0),_=i=(0,s.Cg)([(0,p.$K)("esri.layers.WebTileLayer")],_)},8303(e,t,r){var i=r(32198),s=r(92602),l=r(70333),n=r(11254),o=r(60999),a=r(49186),u=r(36563),p=r(53966),c=r(97768),h=r(17676),d=r(84952),g=r(91429),y=r(77548),f=r(20655),m=r(80812),v=r(41318),w=r(10407),b=r(36005),A=r(43937);const M={credential:null,user:null};r.d(t,["A",0,e=>{const t=e;let C=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new m.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(()=>r(41204));return(0,h.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,h.zf)(e)||p.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e){if(!this.loaded||!this.portalItem?.id)return!1;try{const{reload:t}=await r.e(1204).then(()=>r(41204)),i=new AbortController,s=(0,u.rE)(i);return this.addHandles(s,"reloadFromPortal"),await t({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},{signal:i.signal})}catch(e){throw(0,h.zf)(e)||p.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,h.QP)(e),!0)))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,h.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!l.id?.findCredential(this.url),s=e===r.id;if(s&&r.portal.user)return this._getUserPrivileges(r,i);let n,o;if(s)n=r.portal.url;else try{n=await(0,y.wI)(this.url,t)}catch(e){(0,h.QP)(e)}if(!n||!(0,d.b8)(n,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(l.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,h.QP)(e)}const a=!0,u=!1,p=!1;if(!o)return{features:{edit:a,fullEdit:u},content:{updateItem:p}};try{if(s?await r.reload():(r=new m.default({id:e,portal:{url:n}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,i)}catch(e){(0,h.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:p}}}_getUserPrivileges(e,t){const r=(0,w.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,h.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?l.id?.findCredential(this.url):null;if(!t)return!0;const r=M.credential===t?M.user:await this._fetchEditingUser(e);return M.credential=t,M.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=l.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,s=f.A.getDefault();if(s&&s.loaded&&(0,d.S8)(s.restUrl)===(0,d.S8)(i))return s.user;const a=`${i}/community/self`,u=null!=e?e.signal:null,p=await(0,o.Ke)((0,n.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?v.A.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||f.A.getDefault());return r&&i&&!(0,d.ut)(i.restUrl,r.restUrl)?(t.messages&&t.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(e,{...t,layer:this})}};return(0,i.Cg)([(0,g.MZ)({type:m.default})],C.prototype,"portalItem",null),(0,i.Cg)([(0,b.w)("web-document","portalItem",["itemId"])],C.prototype,"readPortalItem",null),(0,i.Cg)([(0,A.K)("web-document","portalItem",{itemId:{type:String}})],C.prototype,"writePortalItem",null),(0,i.Cg)([(0,g.MZ)({clonable:!1})],C.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasUpdateItemPrivileges",void 0),C=(0,i.Cg)([(0,g.$K)("esri.layers.mixins.PortalLayer")],C),C}])},91806(e,t,r){r.d(t,{A:()=>a});var i,s=r(32198),l=r(25482),n=r(91429),o=r(56507);let a=class extends l.o{static{i=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 i({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,s.Cg)([(0,n.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"cols",void 0),(0,s.Cg)([(0,n.MZ)({type:o.jz,json:{write:!0}})],a.prototype,"level",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"levelValue",void 0),(0,s.Cg)([(0,n.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"origin",void 0),(0,s.Cg)([(0,n.MZ)({type:Number,json:{write:!0}})],a.prototype,"resolution",void 0),(0,s.Cg)([(0,n.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"rows",void 0),(0,s.Cg)([(0,n.MZ)({type:Number,json:{write:!0}})],a.prototype,"scale",void 0),a=i=(0,s.Cg)([(0,n.$K)("esri.layers.support.LOD")],a)},87045(e,t,r){r.d(t,{A:()=>w});var i,s=r(32198),l=r(66552),n=r(25482),o=r(86211),a=r(91429),u=r(56507),p=r(86738),c=r(16930),h=r(21325),d=r(28735),g=r(91806),y=r(72802),f=r(36005),m=r(43937);const v=new l.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 n.o{static{i=this}static create(e={}){const{resolutionFactor:t=1,scales:r,size:s=256,spatialReference:l=c.A.WebMercator,numLODs:n=24}=e;if(!(0,h.fn)(l)){const e=[];if(r)for(let t=0;t<r.length;t++){const i=r[t];e.push(new g.A({level:t,scale:i,resolution:i}))}else{let t=5e-4;for(let r=n-1;r>=0;r--)e.unshift(new g.A({level:r,scale:t,resolution:t})),t*=2}return new i({dpi:96,lods:e,origin:new p.A(0,0,l),size:[s,s],spatialReference:l})}const a=(0,h.Vp)(l),u=e.origin?new p.A({x:e.origin.x,y:e.origin.y,spatialReference:l}):new p.A(a?{x:a.origin[0],y:a.origin[1],spatialReference:l}:{x:0,y:0,spatialReference:l}),d=1/(39.37*(0,o.GA)(l)*96),y=[];if(r)for(let e=0;e<r.length;e++){const t=r[e],i=t*d;y.push(new g.A({level:e,scale:t,resolution:i}))}else{let e=(0,h.EA)(l)?512/s*591657527.5917094:256/s*591657527.591555;const r=Math.ceil(n/t);y.push(new g.A({level:0,scale:e,resolution:e*d}));for(let i=1;i<r;i++){const r=e/2**t,s=r*d;y.push(new g.A({level:i,scale:r,resolution:s})),e=r}}return new i({dpi:96,lods:y,origin:u,size:[s,s],spatialReference:l})}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 r=(0,h.Vp)(e);return e.isWrappable&&!!r&&Math.abs(r.origin[0]-t.x)<=r.dx}return!1}readOrigin(e,t){return p.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,r=0;const i=[],s=this._levelToLOD={};e&&(t=-1/0,r=1/0,e.forEach(e=>{i.push(e.scale),t=e.scale>t?e.scale:t,r=e.scale<r?e.scale:r,s[e.level]=e})),this._set("scales",i),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 r=Math.floor(e),i=r+1;return t[r]/(t[r]/t[i])**(e-r)}scaleToZoom(e){const t=this.scales,r=t.length-1;let i=0;for(;i<r;i++){const r=t[i],s=t[i+1];if(r<=e)return i;if(s===e)return i+1;if(r>e&&s<e)return i+Math.log(r/e)/Math.log(r/s)}return i}tileAt(e,t,r,i){const s=this.lodAt(e);if(!s)return null;let l,n;if("number"==typeof t)l=t,n=r;else if((0,h.aI)(t.spatialReference,this.spatialReference))l=t.x,n=t.y,i=r;else{const e=(0,d.Cv)(t,this.spatialReference);if(null==e)return null;l=e.x,n=e.y,i=r}const o=s.resolution*this.size[0],a=s.resolution*this.size[1];return i??=new y.U(0,0,0),i.level=e,i.row=Math.floor((this.origin.y-n)/a+.001),i.col=Math.floor((l-this.origin.x)/o+.001),this.updateTileInfo(i),i}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let r=this.lodAt(e.level);if(!r&&1===t){const t=this.lods[this.lods.length-1];t.level<e.level&&(r=t)}if(!r)return!1;const i=e.level-r.level,s=r.resolution*this.size[0]/2**i,l=r.resolution*this.size[1]/2**i;return e.extent[0]=this.origin.x+e.col*s,e.extent[1]=this.origin.y-(e.row+1)*l,e.extent[2]=e.extent[0]+s,e.extent[3]=e.extent[1]+l,!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 r=this.lodAt(t.level);if(null==r)return null;const{resolution:i}=r,s=i*this.size[0],l=i*this.size[1];return e[0]=this.origin.x+t.col*s,e[1]=this.origin.y-(t.row+1)*l,e[2]=e[0]+s,e[3]=e[1]+l,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return i.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 r=[],s=this.lods.length-t;for(let e=0;e<s;e++){const i=e+t,{scale:s,resolution:l}=i>=0?this.lods[i]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};r.push(new g.A({level:e,scale:s,resolution:l}))}return new i({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:r})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let r=0;r<e.length;r++){const i=e[r];this._upsampleLevels[i.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/i.resolution:0},t=i}}};(0,s.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],w.prototype,"compressionQuality",void 0),(0,s.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],w.prototype,"dpi",void 0),(0,s.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,s.Cg)([(0,a.MZ)({readOnly:!0})],w.prototype,"isWrappable",null),(0,s.Cg)([(0,a.MZ)({type:p.A,json:{write:!0}})],w.prototype,"origin",void 0),(0,s.Cg)([(0,f.w)("origin")],w.prototype,"readOrigin",null),(0,s.Cg)([(0,a.MZ)({type:[g.A],value:null,json:{write:!0}})],w.prototype,"lods",null),(0,s.Cg)([(0,a.MZ)({readOnly:!0})],w.prototype,"scales",void 0),(0,s.Cg)([(0,a.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],w.prototype,"size",void 0),(0,s.Cg)([(0,f.w)("size",["rows","cols"])],w.prototype,"readSize",null),(0,s.Cg)([(0,m.K)("size",{cols:{type:u.jz},rows:{type:u.jz}})],w.prototype,"writeSize",null),(0,s.Cg)([(0,a.MZ)({type:c.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),w=i=(0,s.Cg)([(0,a.$K)("esri.layers.support.TileInfo")],w)},72802(e,t,r){r.d(t,{U:()=>s});var i=r(19419);class s{constructor(e,t,r,s=(0,i.vt)()){this._level=e,this._row=t,this._col=r,this.extent=s}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 s(e.level,e.row,e.col,e.extent)}}},83703(e,t,r){r.d(t,{x:()=>a});var i,s=r(32198),l=r(25482),n=r(4718),o=r(91429);let a=i=class extends l.o{constructor(e){super(e)}clone(){return new i({customLayerParameters:(0,n.o8)(this.customLayerParameters),customParameters:(0,n.o8)(this.customParameters),layerIdentifier:this.layerIdentifier,tileMatrixSet:this.tileMatrixSet,url:this.url})}};(0,s.Cg)([(0,o.MZ)({json:{type:Object,write:!0}})],a.prototype,"customLayerParameters",void 0),(0,s.Cg)([(0,o.MZ)({json:{type:Object,write:!0}})],a.prototype,"customParameters",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"layerIdentifier",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"tileMatrixSet",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"url",void 0),a=i=(0,s.Cg)([(0,o.$K)("esri.layers.support.WMTSLayerInfo")],a)},33446(e,t,r){r.d(t,{Cp:()=>n,mn:()=>l});var i=r(49186),s=r(17676);async function l(e,t,r){let l;try{l=await o(e,r)}catch(e){throw new i.A("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,s.Te)(r),l}async function n(e,t,r,l,n){let a;try{a=await o(e,n)}catch(e){throw new i.A("request:server",`Unable to load tile ${t}/${r}/${l}`,{error:e,level:t,row:r,col:l})}return(0,s.Te)(n),a}async function o(e,t){const r=await createImageBitmap(e,{imageOrientation:t?.imageOrientation??"none"}),i=t?.type??(e instanceof Blob?e.type.startsWith("image/")?e.type:t?.allowDeriveTypeFromData?await async function(e){return e.byteLength<2?"unknown":137===e[0]&&80===e[1]?"image/png":71===e[0]&&73===e[1]?"image/gif":66===e[0]&&77===e[1]?"image/bmp":255===e[0]&&216===e[1]?"image/jpeg":"unknown"}(await e.bytes()):void 0:void 0);return new a(r,i)}class a{constructor(e,t){this.bitmap=e,this.type=t}get isOpaque(){return"image/jpeg"===this.type}}},10407(e,t,r){r.d(t,{It:()=>d,LG:()=>n,OM:()=>u,Sm:()=>p,Y:()=>o,bK:()=>a,sQ:()=>c});var i=r(99917),s=r(16930),l=r(28735);function n(e,t){if(!o(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function o(e,t){return!!e.typeKeywords?.includes(t)}function a(e){return o(e,h.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function p(e,t,r){r?n(e,t):u(e,t)}async function c(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,l.ci)(e);const r=s.A.WGS84;return await(0,i.initializeProjection)(t,r),(0,i.project)(e,r)}(r)}const h={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 d(e){const{portal:t,isOrgItem:r,itemControl:i}=e,s=t.user?.privileges;let l=!s||s.includes("features:user:edit"),n=!!r&&!!s?.includes("features:user:fullEdit");const o="update"===i||"admin"===i;return o?n=l=!0:n&&(l=!0),{features:{edit:l,fullEdit:n},content:{updateItem:o}}}r.d(t,["mm",0,h])},78553(e,t,r){r.d(t,{D:()=>l,p:()=>s});var i=r(56507);function s(e){const t=(0,i.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function l(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[564],{60999(e,t,i){i.d(t,{DZ:()=>h,Ke:()=>y,Tj:()=>p,UT:()=>m,aD:()=>g,jJ:()=>u});var s=i(32198),r=i(69622),l=i(97768),o=i(17676),n=i(10107),a=i(64108);function u(e,t,i){return(0,o.Lx)(e.map((e,s)=>t.apply(i,[e,s])))}async function p(e,t,i){return(await(0,o.Lx)(e.map((e,s)=>t.apply(i,[e,s])))).map(e=>e.value)}function c(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function y(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return c(await e)}catch(e){return d(e)}}async function h(e){try{return c(await e)}catch(e){return(0,o.QP)(e),d(e)}}function m(e,t){return new f(e,t)}let f=class extends r.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,l.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:i}=this._abortController;this.promise=e(i),this.promise.then(e=>{this._result=c(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,l.xt)(this._abortHandle),this._abortController=null}};(0,s.Cg)([(0,n.MZ)()],f.prototype,"value",null),(0,s.Cg)([(0,n.MZ)()],f.prototype,"error",null),(0,s.Cg)([(0,n.MZ)()],f.prototype,"finished",null),(0,s.Cg)([(0,n.MZ)()],f.prototype,"promise",void 0),(0,s.Cg)([(0,n.MZ)()],f.prototype,"_result",void 0),f=(0,s.Cg)([(0,a.$)("esri.core.asyncUtils.ReactiveTask")],f);class g{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,s.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,s.hk)(t)}}}},92438(e,t,i){i.d(t,{A:()=>u});var s=i(32198),r=i(66552),l=i(25482),o=i(91429),n=i(30943);const a=new r.J({simple:"simple",uniqueValue:"unique-value",classBreaks:"class-breaks",heatmap:"heatmap",dotDensity:"dot-density",dictionary:"dictionary",pieChart:"pie-chart"},{ignoreUnknown:!0});let u=class extends l.o{constructor(e){super(e),this.authoringInfo=null,this.type=null}async getRequiredFields(e){if(!this.collectRequiredFields)return[];const t=new Set;return await this.collectRequiredFields(t,e),Array.from(t).sort()}getSymbol(e,t){}async getSymbolAsync(e,t){}get symbols(){return[]}get arcadeRequired(){return!1}};(0,s.Cg)([(0,o.MZ)({type:n.A,json:{write:!0}})],u.prototype,"authoringInfo",void 0),(0,s.Cg)([(0,o.MZ)({type:a.apiValues,readOnly:!0,json:{type:a.jsonValues,read:!1,write:{writer:a.write,ignoreOrigin:!0,isRequired:!0}}})],u.prototype,"type",void 0),u=(0,s.Cg)([(0,o.$K)("esri.renderers.Renderer")],u)},93618(e,t,i){i.d(t,{A:()=>N});var s=i(32198),r=i(4718),l=i(53966),o=i(93637),n=i(36708),a=i(91429),u=i(6797),p=i(56507),c=i(30524),d=i(20655),y=i(92438),h=i(63988),m=i(49849),f=i(20061),g=i(80911),b=i(69540),v=i(25482);let w=class extends((0,b.OU)(v.o)){constructor(e){super(e),this.value=null,this.value2=null,this.value3=null}};(0,s.Cg)([(0,a.MZ)(m.Ug)],w.prototype,"value",void 0),(0,s.Cg)([(0,a.MZ)(m.Ug)],w.prototype,"value2",void 0),(0,s.Cg)([(0,a.MZ)(m.Ug)],w.prototype,"value3",void 0),w=(0,s.Cg)([(0,a.$K)("esri.renderers.support.UniqueValue")],w);var S=i(4576),V=i(40863);let C=class extends((0,b.OU)(v.o)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.alternateSymbols=null}get values(){return this._get("values")}set values(e){if(null!=e){const t=typeof(e=Array.isArray(e)?e:[e])[0];e="string"===t||"number"===t?e.map(e=>new w({value:e})):"object"===t?e[0]instanceof w?e:e.map(e=>new w(e)):null}this._set("values",e)}};(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],C.prototype,"description",void 0),(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],C.prototype,"label",void 0),(0,s.Cg)([(0,a.MZ)(m.z4)],C.prototype,"symbol",void 0),(0,s.Cg)([(0,a.MZ)({type:[V.A],json:{write:!0,origins:{"web-scene":{write:!1}}}})],C.prototype,"alternateSymbols",void 0),(0,s.Cg)([(0,a.MZ)({json:{type:[[String]],read:{reader:e=>e?e.map(e=>new w({value:e[0],value2:e[1],value3:e[2]})):null},write:{writer:(e,t)=>{const i=[];for(const t of e){const e=[t.value,t.value2,t.value3].filter(S.Ru).map(e=>e.toString());i.push(e)}t.values=i}}}})],C.prototype,"values",null),C=(0,s.Cg)([(0,a.$K)("esri.renderers.support.UniqueValueClass")],C);let M=class extends((0,b.OU)(v.o)){constructor(e){super(e),this.heading=null,this.classes=null}};(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],M.prototype,"heading",void 0),(0,s.Cg)([(0,a.MZ)({type:[C],json:{write:{isRequired:!0}}})],M.prototype,"classes",void 0),M=(0,s.Cg)([(0,a.$K)("esri.renderers.support.UniqueValueGroup")],M);var x,_=i(94833),z=i(43668),A=i(97159),j=i(29169),q=i(85594),I=i(33910),Z=i(59923),F=i(93223),U=i(43937),D=i(36005);const E="uvInfos-watcher",R="uvGroups-watcher",O=(0,p.dp)(_.A);function k(e){return null==e||""===e||"string"==typeof e&&(""===e.trim()||"<null>"===e.toLowerCase())?null:e}function T(e,t){return t&&"string"==typeof e?e.split(t).map(e=>k(e)??"").join(t):`${k(e)}`}let N=x=class extends((0,h.h)(y.A)){constructor(e){super(e),this._valueInfoMap={},this._isDefaultSymbolDerived=!1,this._isInfosSource=null,this.type="unique-value",this.backgroundFillSymbol=null,this.orderByClassesEnabled=!1,this.valueExpressionTitle=null,this.legendOptions=null,this.defaultLabel=null,this.portal=null,this.styleOrigin=null,this.diff={uniqueValueInfos(e,t){if(!e&&!t)return;if(!e||!t)return{type:"complete",oldValue:e,newValue:t};let i=!1;const s={type:"collection",added:[],removed:[],changed:[],unchanged:[]};for(let r=0;r<t.length;r++){const l=e.find(e=>e.value===t[r].value);l?(0,u.Ui)(l,t[r])?(s.changed.push({type:"complete",oldValue:l,newValue:t[r]}),i=!0):s.unchanged.push({oldValue:l,newValue:t[r]}):(s.added.push(t[r]),i=!0)}for(let r=0;r<e.length;r++)t.find(t=>t.value===e[r].value)||(s.removed.push(e[r]),i=!0);return i?s:void 0}},this._set("uniqueValueInfos",[]),this._set("uniqueValueGroups",[])}get _cache(){return{compiledFunc:null}}set field(e){this._set("field",e),this._updateFieldDelimiter(),this._updateUniqueValues()}castField(e){return null==e||"function"==typeof e?e:(0,p.GX)(e)}writeField(e,t,i,s){"string"==typeof e?t[i]=e:s?.messages?(0,Z.qt)(s,"UniqueValueRenderer.field","set to a function cannot be written to JSON"):l.A.getLogger(this).error(".field: cannot write field to JSON since it's not a string value")}set field2(e){this._set("field2",e),this._updateFieldDelimiter(),this._updateUniqueValues()}set field3(e){this._set("field3",e),this._updateUniqueValues()}set valueExpression(e){this._set("valueExpression",e),this._updateUniqueValues()}set defaultSymbol(e){this._isDefaultSymbolDerived=!1,this._set("defaultSymbol",e)}set fieldDelimiter(e){this._set("fieldDelimiter",e),this._updateUniqueValues()}readPortal(e,t,i){return i.portal||d.A.getDefault()}readStyleOrigin(e,t,i){if(t.styleName)return Object.freeze({styleName:t.styleName});if(t.styleUrl){const e=(0,A.f)(t.styleUrl,i);return Object.freeze({styleUrl:e})}}writeStyleOrigin(e,t,i,s){e.styleName?t.styleName=e.styleName:e.styleUrl&&(t.styleUrl=(0,A.t)(e.styleUrl,s))}set uniqueValueGroups(e){this.styleOrigin?l.A.getLogger(this).error("#uniqueValueGroups=","Cannot modify unique value groups of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueGroups",e),this._updateInfosFromGroups(),this._isInfosSource=!1,this._watchUniqueValueGroups())}set uniqueValueInfos(e){this.styleOrigin?l.A.getLogger(this).error("#uniqueValueInfos=","Cannot modify unique value infos of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos())}addUniqueValueInfo(e,t){if(this.styleOrigin)return void l.A.getLogger(this).error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");let i;i="object"==typeof e?O(e):new _.A({value:e,symbol:(0,I.dp)(t)}),this.uniqueValueInfos?.push(i),this._valueInfoMap[T(i.value,this.fieldDelimiter)]=i,this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}removeUniqueValueInfo(e){if(this.styleOrigin)return void l.A.getLogger(this).error("#removeUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");const t=this.uniqueValueInfos;if(t)for(let i=0;i<t.length;i++){const s=t[i];if(String(s.value)===String(e)){delete this._valueInfoMap[T(e,this.fieldDelimiter)],t.splice(i,1);break}}this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}async getUniqueValueInfo(e,t){let i=t;return this.valueExpression&&null==t?.arcade&&(i={...i,arcade:await(0,z.l)()}),this._getUniqueValueInfo(e,i)}getSymbol(e,t){if(this.valueExpression&&null==t?.arcade)return void l.A.getLogger(this).error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this._getUniqueValueInfo(e,t);return(0,g.c)(i,t?.scale)??this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&null==i?.arcade){const e=await(0,z.l)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this._getUniqueValueInfo(e,i);return(0,g.c)(s,i?.scale)??this.defaultSymbol}get symbols(){const e=[];if(this._isInfosSource)for(const t of this.uniqueValueInfos??[])t.symbol&&e.push(t.symbol),e.push(...t.alternateSymbols??[]);else for(const t of this.uniqueValueGroups??[])for(const i of t.classes??[])i.symbol&&e.push(i.symbol),e.push(...i.alternateSymbols??[]);return this.defaultSymbol&&e.push(this.defaultSymbol),e}clone(){const e=new x({field:this.field,field2:this.field2,field3:this.field3,defaultLabel:this.defaultLabel,defaultSymbol:(0,r.o8)(this.defaultSymbol),orderByClassesEnabled:this.orderByClassesEnabled,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,fieldDelimiter:this.fieldDelimiter,visualVariables:(0,r.o8)(this.visualVariables),legendOptions:(0,r.o8)(this.legendOptions),authoringInfo:(0,r.o8)(this.authoringInfo),backgroundFillSymbol:(0,r.o8)(this.backgroundFillSymbol)});this._isDefaultSymbolDerived&&(e._isDefaultSymbolDerived=!0),e._set("portal",this.portal);const t=(0,r.o8)(this.uniqueValueInfos),i=(0,r.o8)(this.uniqueValueGroups);return this.styleOrigin&&(e._set("styleOrigin",Object.freeze((0,r.o8)(this.styleOrigin))),Object.freeze(t),Object.freeze(i)),e._set("uniqueValueInfos",t),e._updateValueInfoMap(),e._set("uniqueValueGroups",i),e._isInfosSource=this._isInfosSource,e._watchUniqueValueInfosAndGroups(),e}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.symbols.map(i=>i.collectRequiredFields(e,t)),(0,c.Dx)(e,t,null,this.valueExpression)];(0,c.rq)(e,t,this.field),(0,c.rq)(e,t,this.field2),(0,c.rq)(e,t,this.field3),await Promise.all(i)}populateFromStyle(){return(0,q.cF)(this.styleOrigin,{portal:this.portal}).then(e=>{const t=[];return this._valueInfoMap={},e?.data&&Array.isArray(e.data.items)&&e.data.items.forEach(i=>{const s=new j.A({styleUrl:e.styleUrl,styleName:e.styleName,portal:this.portal,name:i.name});this.defaultSymbol||i.name!==e.data.defaultItem||(this.defaultSymbol=s,this._isDefaultSymbolDerived=!0);const r=new _.A({value:i.name,symbol:s});t.push(r),this._valueInfoMap[T(i.name)]=r}),this._set("uniqueValueInfos",Object.freeze(t)),this._updateGroupsFromInfos(!0),this._isInfosSource=null,this._watchUniqueValueInfos(),!this.defaultSymbol&&this.uniqueValueInfos?.length&&(this.defaultSymbol=this.uniqueValueInfos[0].symbol,this._isDefaultSymbolDerived=!0),this})}_updateFieldDelimiter(){this.field&&this.field2&&!this.fieldDelimiter&&this._set("fieldDelimiter",",")}_updateUniqueValues(){null!=this._isInfosSource&&(this._isInfosSource?this._updateGroupsFromInfos():this._updateInfosFromGroups())}_updateValueInfoMap(){this._valueInfoMap={};const{uniqueValueInfos:e}=this;if(e)for(const t of e)this._valueInfoMap[T(t.value,this.fieldDelimiter)]=t}_watchUniqueValueInfosAndGroups(){this._watchUniqueValueInfos(),this._watchUniqueValueGroups()}_watchUniqueValueInfos(){this.removeHandles(E);const{uniqueValueInfos:e}=this;if(e){const t=[];for(const i of e)t.push((0,n.wB)(()=>({symbol:i.symbol,alternateSymbols:i.alternateSymbols,value:i.value,label:i.label,description:i.description}),(e,t)=>{e!==t&&(this._updateGroupsFromInfos(),this._isInfosSource=!0)},{sync:!0}));this.addHandles(t,E)}}_watchUniqueValueGroups(){this.removeHandles(R);const{uniqueValueGroups:e}=this;if(e){const t=[];for(const i of e){t.push((0,n.wB)(()=>({classes:i.classes}),(e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)},{sync:!0}));for(const e of i.classes??[])t.push((0,n.wB)(()=>({symbol:e.symbol,alternateSymbols:e.alternateSymbols,values:e.values,label:e.label,description:e.description}),(e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)},{sync:!0}))}this.addHandles(t,R)}}_updateInfosFromGroups(){if(!this.uniqueValueGroups)return this._set("uniqueValueInfos",null),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const e=[],{field:t,field2:i,field3:s,fieldDelimiter:r,uniqueValueGroups:l,valueExpression:o}=this;if(!t&&!o)return this._set("uniqueValueInfos",e),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const n=!(!t||!i);for(const t of l)for(const l of t.classes??[]){const{alternateSymbols:t,symbol:o,label:a,values:u,description:p}=l;for(const l of u??[]){const{value:u,value2:c,value3:d}=l,y=[u];i&&y.push(c),s&&y.push(d);const h=n?y.join(r||""):y[0]??void 0;e.push(new _.A({alternateSymbols:t,symbol:o,label:a,value:h,description:p}))}}this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._watchUniqueValueInfos()}_updateGroupsFromInfos(e=!1){if(!this.uniqueValueInfos)return this._set("uniqueValueGroups",null),void this._watchUniqueValueGroups();const{field:t,field2:i,valueExpression:s,fieldDelimiter:r,uniqueValueInfos:l}=this;if(!t&&!s||!l.length)return this._set("uniqueValueGroups",[]),void this._watchUniqueValueGroups();const o=!(!t||!i),n=l.map(e=>{const{alternateSymbols:t,symbol:i,label:s,value:l,description:n}=e,[a,u,p]=o?l?.toString()?.split(r||"")||[]:[l];return new C({alternateSymbols:t,symbol:i,label:s,description:n,values:[new w({value:a,value2:u,value3:p})]})}),a=[new M({classes:n})];e&&Object.freeze(a),this._set("uniqueValueGroups",a),this._watchUniqueValueGroups()}_getUniqueValueInfo(e,t){return this.valueExpression?this._getUnqiueValueInfoForExpression(e,t):this._getUnqiueValueInfoForFields(e)}_getUnqiueValueInfoForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:r,arcade:l,timeZone:o}=t??{};let n=this._cache.compiledFunc;const a=l.arcadeUtils;if(!n){const e=a.createSyntaxTree(this.valueExpression);n=a.createFunction(e),this._cache.compiledFunc=n}const u=a.executeFunction(n,a.createExecContext(e,a.getViewInfo({viewingMode:i,scale:s,spatialReference:r}),o));return this._valueInfoMap[T(u)]}_getUnqiueValueInfoForFields(e){const t=this.field,i=e.attributes;let s;if(this.field2){const e=this.field2,r=this.field3,l=[];t&&l.push(i[t]),e&&l.push(i[e]),r&&l.push(i[r]),s=l.join(this.fieldDelimiter||"")}else t&&(s=i[t]);return this._valueInfoMap[T(s,this.fieldDelimiter)]}static fromPortalStyle(e,t){const i=new x(t?.properties);i._set("styleOrigin",Object.freeze({styleName:e})),i._set("portal",t?.portal||d.A.getDefault());const s=i.populateFromStyle();return s.catch(t=>{l.A.getLogger(this.prototype).error(`#fromPortalStyle('${e}'[, ...])`,"Failed to create unique value renderer from style name",t)}),s}static fromStyleUrl(e,t){const i=new x(t?.properties);i._set("styleOrigin",Object.freeze({styleUrl:e}));const s=i.populateFromStyle();return s.catch(t=>{l.A.getLogger(this.prototype).error(`#fromStyleUrl('${e}'[, ...])`,"Failed to create unique value renderer from style URL",t)}),s}};(0,s.Cg)([(0,a.MZ)({readOnly:!0})],N.prototype,"_cache",null),(0,s.Cg)([(0,F.e)({uniqueValue:"unique-value"})],N.prototype,"type",void 0),(0,s.Cg)([(0,a.MZ)(m.As)],N.prototype,"backgroundFillSymbol",void 0),(0,s.Cg)([(0,a.MZ)({value:null,json:{type:String,read:{source:"field1"},write:{target:"field1"}}})],N.prototype,"field",null),(0,s.Cg)([(0,a.wg)("field")],N.prototype,"castField",null),(0,s.Cg)([(0,U.K)("field")],N.prototype,"writeField",null),(0,s.Cg)([(0,a.MZ)({type:String,value:null,json:{write:!0}})],N.prototype,"field2",null),(0,s.Cg)([(0,a.MZ)({type:String,value:null,json:{write:!0}})],N.prototype,"field3",null),(0,s.Cg)([(0,a.MZ)({type:Boolean,json:{name:"drawInClassOrder",default:!1,write:!0,origins:{"web-scene":{write:!1}}}})],N.prototype,"orderByClassesEnabled",void 0),(0,s.Cg)([(0,a.MZ)({type:String,value:null,json:{write:!0}})],N.prototype,"valueExpression",null),(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],N.prototype,"valueExpressionTitle",void 0),(0,s.Cg)([(0,a.MZ)({type:f.A,json:{write:!0}})],N.prototype,"legendOptions",void 0),(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],N.prototype,"defaultLabel",void 0),(0,s.Cg)([(0,a.MZ)((0,o.$N)({...m.z4},{json:{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}},origins:{"web-scene":{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}}}}}}))],N.prototype,"defaultSymbol",null),(0,s.Cg)([(0,a.MZ)({type:String,value:null,json:{write:!0}})],N.prototype,"fieldDelimiter",null),(0,s.Cg)([(0,a.MZ)({type:d.A,readOnly:!0})],N.prototype,"portal",void 0),(0,s.Cg)([(0,D.w)("portal",["styleName"])],N.prototype,"readPortal",null),(0,s.Cg)([(0,a.MZ)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],N.prototype,"styleOrigin",void 0),(0,s.Cg)([(0,D.w)("styleOrigin",["styleName","styleUrl"])],N.prototype,"readStyleOrigin",null),(0,s.Cg)([(0,U.K)("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],N.prototype,"writeStyleOrigin",null),(0,s.Cg)([(0,a.MZ)({type:[M],json:{read:{source:["uniqueValueGroups","uniqueValueInfos"],reader:(e,t,i)=>(t.uniqueValueGroups||function(e){const{field1:t,field2:i,field3:s,fieldDelimiter:r,uniqueValueInfos:l,valueExpression:o}=e,n=!(!t||!i);return[{classes:(l??[]).map(e=>{const{alternateSymbols:l,symbol:a,label:u,value:p,description:c}=e,[d,y,h]=n?p?.toString()?.split(r||"")||[]:[p],m=[];return(t||o)&&m.push(d),i&&m.push(y),s&&m.push(h),{alternateSymbols:l,symbol:a,label:u,values:[m],description:c}})}]}(t)).map(e=>M.fromJSON(e,i))},write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],N.prototype,"uniqueValueGroups",null),(0,s.Cg)([(0,a.MZ)({type:[_.A],json:{read:!1,write:{isRequired:!0,overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0,isRequired:!0}}}}})],N.prototype,"uniqueValueInfos",null),N=x=(0,s.Cg)([(0,a.$K)("esri.renderers.UniqueValueRenderer")],N)},63988(e,t,i){i.d(t,{h:()=>C});var s=i(32198),r=i(91429),l=i(30524),o=i(2024),n=i(62724),a=i(23461),u=i(48940),p=i(2795),c=i(69622),d=i(66552),y=i(53966),h=i(59923);const m={color:o.A,size:u.A,opacity:n.A,rotation:a.A},f=new d.J({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),g=/^\[([^\]]+)\]$/i;let b=class extends c.A{constructor(){super(...arguments),this.colorVariables=null,this.opacityVariables=null,this.rotationVariables=null,this.sizeVariables=null}set visualVariables(e){if(this._resetVariables(),e=e?.filter(e=>!!e),e?.length){for(const t of e)switch(t.type){case"color":this.colorVariables.push(t);break;case"opacity":this.opacityVariables.push(t);break;case"rotation":this.rotationVariables.push(t);break;case"size":this.sizeVariables.push(t)}this.sizeVariables.length&&this.sizeVariables.some(e=>!!e.target)&&e.sort((e,t)=>{let i=null;return i=e.target===t.target?0:e.target?1:-1,i});for(let t=0;t<e.length;t++)e[t].index=t;this._set("visualVariables",e)}else this._set("visualVariables",e)}readVariables(e,t,i){const{rotationExpression:s,rotationType:r}=t,l=s?.match(g),o=l?.[1];if(o&&(e||(e=[]),e.push({type:"rotationInfo",rotationType:r,field:o})),e)return e.map(e=>{const t=f.read(e.type),s=m[t];s||(y.A.getLogger(this).warn(`Unknown variable type: ${t}`),(0,h.Yc)(i,"warning","visual-variable",`visualVariable of type '${t}' is not supported`,{definition:e}));const r=new s;return r.read(e,i),r})}writeVariables(e,t){const i=[];for(const s of e){const e=s.toJSON(t);e&&i.push(e)}return i}_resetVariables(){this.colorVariables=[],this.opacityVariables=[],this.rotationVariables=[],this.sizeVariables=[]}};(0,s.Cg)([(0,r.MZ)()],b.prototype,"visualVariables",null),b=(0,s.Cg)([(0,r.$K)("esri.renderers.visualVariables.VisualVariableFactory")],b);var v=i(69309),w=i(36005),S=i(43937);const V={base:p.A,key:"type",typeMap:{opacity:n.A,color:o.A,rotation:a.A,size:u.A}},C=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this._vvFactory=new b}set visualVariables(e){this._vvFactory.visualVariables=e,this._set("visualVariables",this._vvFactory.visualVariables)}readVisualVariables(e,t,i){return this._vvFactory.readVariables(e,t,i)}writeVisualVariables(e,t,i,s){t[i]=this._vvFactory.writeVariables(e,s)}get arcadeRequiredForVisualVariables(){return this.visualVariables?.some(({arcadeRequired:e})=>e)??!1}hasVisualVariables(e,t){return e?this.getVisualVariablesForType(e,t).length>0:this.getVisualVariablesForType("size",t).length>0||this.getVisualVariablesForType("color",t).length>0||this.getVisualVariablesForType("opacity",t).length>0||this.getVisualVariablesForType("rotation",t).length>0}getVisualVariablesForType(e,t){return this.visualVariables?.filter(i=>i.type===e&&("string"==typeof t?i.target===t:!1!==t||!i.target))??[]}async collectVVRequiredFields(e,t){let i=[];this.visualVariables&&(i=i.concat(this.visualVariables));for(const s of i)s&&(s.field&&(0,l.rq)(e,t,s.field),s.normalizationField&&(0,l.rq)(e,t,s.normalizationField),s.valueExpression&&(M(s.valueExpression,e,t)||await(0,l.Dx)(e,t,null,s.valueExpression)))}};return(0,s.Cg)([(0,r.MZ)({types:[V],value:null,json:{write:!0}})],i.prototype,"visualVariables",null),(0,s.Cg)([(0,w.w)("visualVariables",["visualVariables","rotationType","rotationExpression"])],i.prototype,"readVisualVariables",null),(0,s.Cg)([(0,S.K)("visualVariables")],i.prototype,"writeVisualVariables",null),i=(0,s.Cg)([(0,r.$K)("esri.renderers.mixins.VisualVariablesMixin")],i),i};function M(e,t,i){const s=(0,v.D)(e);return null!=s&&((0,l.rq)(t,i,s),!0)}},30943(e,t,i){i.d(t,{A:()=>U});var s,r=i(32198),l=i(66552),o=i(25482),n=i(4718),a=i(91429),u=i(56507);let p=s=class extends o.o{constructor(e){super(e),this.minValue=0,this.maxValue=0}clone(){return new s({minValue:this.minValue,maxValue:this.maxValue})}};(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"minValue",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],p.prototype,"maxValue",void 0),p=s=(0,r.Cg)([(0,a.$K)("esri.renderers.support.AuthoringInfoClassBreakInfo")],p);const c=p;var d;let y=d=class extends o.o{constructor(e){super(e),this.field="",this.normalizationField="",this.label="",this.classBreakInfos=new Array}clone(){return new d({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:(0,n.o8)(this.classBreakInfos)})}};(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"normalizationField",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,r.Cg)([(0,a.MZ)({type:[c],json:{write:!0}})],y.prototype,"classBreakInfos",void 0),y=d=(0,r.Cg)([(0,a.$K)("esri.renderers.support.AuthoringInfoFieldInfo")],y);const h=y;var m,f=i(79901);let g=m=class extends o.o{constructor(e){super(e),this.label=null,this.size=null,this.value=null}clone(){return new m({label:this.label,value:this.value,size:this.size})}};(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],g.prototype,"label",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"size",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"value",void 0),g=m=(0,r.Cg)([(0,a.$K)("esri.renderers.support.AuthoringInfoSizeStop")],g);const b=g;var v;const w=new l.J({percentTotal:"percent-of-total",ratio:"ratio",percent:"percent"}),S=new l.J({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"}),V={key:e=>"number"==typeof e?"number":"string",typeMap:{number:Number,string:String},base:null},C=["high-to-low","above-and-below","centered-on","extremes"],M=[...new Set(["high-to-low","above-and-below","centered-on","extremes","above","below","high-to-low","above-and-below","above","below","reference-size","spike"])],x=["seconds","minutes","hours","days","months","years"];let _=v=class extends o.o{constructor(e){super(e),this.dataSeriesName=null,this.endTime=null,this.field=null,this.maxSliderValue=null,this.minSliderValue=null,this.startTime=null,this.type=null,this.units=null}castEndTime(e){return"string"==typeof e||"number"==typeof e?e:null}get normalizationField(){return"reference-size"===this.theme||"spike"===this.theme?this._get("normalizationField"):null}set normalizationField(e){this._set("normalizationField",e)}get referenceSizeScale(){return"reference-size"===this.theme?this._get("referenceSizeScale"):null}set referenceSizeScale(e){this._set("referenceSizeScale",e)}get referenceSizeSymbolStyle(){return"reference-size"===this.theme?this._get("referenceSizeSymbolStyle"):null}set referenceSizeSymbolStyle(e){this._set("referenceSizeSymbolStyle",e)}get spikeSymbolStyle(){return"spike"===this.theme?this._get("spikeSymbolStyle"):null}set spikeSymbolStyle(e){this._set("spikeSymbolStyle",e)}castStartTime(e){return"string"==typeof e||"number"==typeof e?e:null}get sizeStops(){return"reference-size"===this.theme||"spike"===this.theme?this._get("sizeStops"):null}set sizeStops(e){this._set("sizeStops",e)}get style(){return"color"===this.type?this._get("style"):null}set style(e){this._set("style",e)}get theme(){return"color"===this.type||"size"===this.type?this._get("theme")||"high-to-low":null}set theme(e){this._set("theme",e)}clone(){return new v({dataSeriesName:this.dataSeriesName,endTime:this.endTime,field:this.field,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,normalizationField:this.normalizationField,referenceSizeScale:this.referenceSizeScale,referenceSizeSymbolStyle:this.referenceSizeSymbolStyle,spikeSymbolStyle:this.spikeSymbolStyle,sizeStops:(0,n.o8)(this.sizeStops),startTime:this.startTime,style:this.style,theme:this.theme,type:this.type,units:this.units})}};(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],_.prototype,"dataSeriesName",void 0),(0,r.Cg)([(0,a.MZ)({types:V,json:{write:!0}})],_.prototype,"endTime",void 0),(0,r.Cg)([(0,f.w)("endTime")],_.prototype,"castEndTime",null),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],_.prototype,"field",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],_.prototype,"maxSliderValue",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],_.prototype,"minSliderValue",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{origins:{"web-scene":{write:!1}},write:!0}})],_.prototype,"normalizationField",null),(0,r.Cg)([(0,a.MZ)({type:Number,value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],_.prototype,"referenceSizeScale",null),(0,r.Cg)([(0,a.MZ)({type:["circle","diamond","hexagon-flat","hexagon-pointy","square"],value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],_.prototype,"referenceSizeSymbolStyle",null),(0,r.Cg)([(0,a.MZ)({type:["triangle-closed-outline","triangle-gradient-fill-closed","triangle-gradient-fill-closed-outline","triangle-gradient-fill-open","triangle-gradient-fill-open-outline","triangle-open-outline","triangle-solid-fill-closed","triangle-solid-fill-closed-outline","triangle-solid-fill-open","triangle-solid-fill-open-outline"],value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],_.prototype,"spikeSymbolStyle",null),(0,r.Cg)([(0,a.MZ)({types:V,json:{write:!0}})],_.prototype,"startTime",void 0),(0,r.Cg)([(0,f.w)("startTime")],_.prototype,"castStartTime",null),(0,r.Cg)([(0,a.MZ)({type:[b],json:{origins:{"web-scene":{write:!1}},write:!0}})],_.prototype,"sizeStops",null),(0,r.Cg)([(0,a.MZ)({type:w.apiValues,value:null,json:{type:w.jsonValues,read:w.read,write:w.write}})],_.prototype,"style",null),(0,r.Cg)([(0,a.MZ)({type:M,value:null,json:{type:M,origins:{"web-scene":{type:C,write:{writer:(e,t)=>{C.includes(e)&&(t.theme=e)}}}},write:!0}})],_.prototype,"theme",null),(0,r.Cg)([(0,a.MZ)({type:S.apiValues,json:{type:S.jsonValues,read:S.read,write:S.write}})],_.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:x,json:{type:x,write:!0}})],_.prototype,"units",void 0),_=v=(0,r.Cg)([(0,a.$K)("esri.renderers.support.AuthoringInfoVisualVariable")],_);const z=_;var A,j=i(95349),q=i(36005);const I=new l.J({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),Z=new l.J({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density",flow:"flow"}),F=["inches","feet","yards","miles","nautical-miles","millimeters","centimeters","decimeters","meters","kilometers"];let U=A=class extends o.o{constructor(e){super(e),this.colorRamp=null,this.dataSeriesName=null,this.fadeRatio=null,this.isAutoGenerated=!1,this.lengthUnit=null,this.maxSliderValue=null,this.minSliderValue=null,this.visualVariables=null}get classificationMethod(){const e=this._get("classificationMethod"),t=this.type;return t&&"relationship"!==t?"class-breaks-size"===t||"class-breaks-color"===t?e||"manual":null:e}set classificationMethod(e){this._set("classificationMethod",e)}readColorRamp(e){return e?(0,j.r)(e):void 0}get fields(){return this.type&&"predominance"!==this.type?null:this._get("fields")}set fields(e){this._set("fields",e)}get field1(){return this.type&&"relationship"!==this.type?null:this._get("field1")}set field1(e){this._set("field1",e)}get field2(){return this.type&&"relationship"!==this.type?null:this._get("field2")}set field2(e){this._set("field2",e)}get flowTheme(){return"flow"===this.type?this._get("flowTheme"):null}set flowTheme(e){this._set("flowTheme",e)}get focus(){return this.type&&"relationship"!==this.type?null:this._get("focus")}set focus(e){this._set("focus",e)}get numClasses(){return this.type&&"relationship"!==this.type?null:this._get("numClasses")}set numClasses(e){this._set("numClasses",e)}get statistics(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("statistics"):null}set statistics(e){this._set("statistics",e)}get standardDeviationInterval(){const e=this.type;return e&&"relationship"!==e&&"class-breaks-size"!==e&&"class-breaks-color"!==e||this.classificationMethod&&"standard-deviation"!==this.classificationMethod?null:this._get("standardDeviationInterval")}set standardDeviationInterval(e){this._set("standardDeviationInterval",e)}get type(){return this._get("type")}set type(e){let t=e;"classed-size"===e?t="class-breaks-size":"classed-color"===e&&(t="class-breaks-color"),this._set("type",t)}get univariateSymbolStyle(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("univariateSymbolStyle"):null}set univariateSymbolStyle(e){this._set("univariateSymbolStyle",e)}get univariateTheme(){return"univariate-color-size"===this.type?this._get("univariateTheme"):null}set univariateTheme(e){this._set("univariateTheme",e)}clone(){return new A({classificationMethod:this.classificationMethod,colorRamp:(0,n.o8)(this.colorRamp),dataSeriesName:this.dataSeriesName,fadeRatio:(0,n.o8)(this.fadeRatio),fields:this.fields?.slice(),field1:(0,n.o8)(this.field1),field2:(0,n.o8)(this.field2),isAutoGenerated:this.isAutoGenerated,focus:this.focus,numClasses:this.numClasses,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,lengthUnit:this.lengthUnit,statistics:this.statistics,standardDeviationInterval:this.standardDeviationInterval,type:this.type,visualVariables:this.visualVariables&&this.visualVariables.map(e=>e.clone()),univariateSymbolStyle:this.univariateSymbolStyle,univariateTheme:this.univariateTheme,flowTheme:this.flowTheme})}};(0,r.Cg)([(0,a.MZ)({type:I.apiValues,value:null,json:{type:I.jsonValues,read:I.read,write:I.write,origins:{"web-document":{default:"manual",type:I.jsonValues,read:I.read,write:I.write}}}})],U.prototype,"classificationMethod",null),(0,r.Cg)([(0,a.MZ)({types:j.g,json:{write:!0}})],U.prototype,"colorRamp",void 0),(0,r.Cg)([(0,q.w)("colorRamp")],U.prototype,"readColorRamp",null),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],U.prototype,"dataSeriesName",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],U.prototype,"fadeRatio",void 0),(0,r.Cg)([(0,a.MZ)({type:[String],value:null,json:{write:!0}})],U.prototype,"fields",null),(0,r.Cg)([(0,a.MZ)({type:h,value:null,json:{write:!0}})],U.prototype,"field1",null),(0,r.Cg)([(0,a.MZ)({type:h,value:null,json:{write:!0}})],U.prototype,"field2",null),(0,r.Cg)([(0,a.MZ)({type:["flow-line","wave-front"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],U.prototype,"flowTheme",null),(0,r.Cg)([(0,a.MZ)({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],U.prototype,"focus",null),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1}}}})],U.prototype,"isAutoGenerated",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,value:null,json:{type:u.jz,write:!0}})],U.prototype,"numClasses",null),(0,r.Cg)([(0,a.MZ)({type:F,json:{type:F,read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],U.prototype,"lengthUnit",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],U.prototype,"maxSliderValue",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],U.prototype,"minSliderValue",void 0),(0,r.Cg)([(0,a.MZ)({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],U.prototype,"statistics",null),(0,r.Cg)([(0,a.MZ)({type:[.25,.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],U.prototype,"standardDeviationInterval",null),(0,r.Cg)([(0,a.MZ)({type:Z.apiValues,value:null,json:{type:Z.jsonValues,read:Z.read,write:Z.write}})],U.prototype,"type",null),(0,r.Cg)([(0,a.MZ)({type:[z],json:{write:!0}})],U.prototype,"visualVariables",void 0),(0,r.Cg)([(0,a.MZ)({type:["caret","circle-caret","arrow","circle-arrow","plus-minus","circle-plus-minus","square","circle","triangle","happy-sad","thumb","custom"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],U.prototype,"univariateSymbolStyle",null),(0,r.Cg)([(0,a.MZ)({type:["high-to-low","above-and-below","above","below"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],U.prototype,"univariateTheme",null),U=A=(0,r.Cg)([(0,a.$K)("esri.renderers.support.AuthoringInfo")],U)},20061(e,t,i){var s,r=i(32198),l=i(69540),o=i(66552),n=i(25482),a=i(91429),u=i(56507),p=i(93223);const c=(0,o.O)()({ascendingValues:"ascending-values",descendingValues:"descending-values"});let d=s=class extends((0,l.OU)(n.o)){static from(e){return(0,u.PZ)(s,e)}constructor(e){super(e),this.title=null,this.order=null}};(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],d.prototype,"title",void 0),(0,r.Cg)([(0,p.e)(c)],d.prototype,"order",void 0),d=s=(0,r.Cg)([(0,a.$K)("esri.renderers.support.RendererLegendOptions")],d);const y=d;i.d(t,["A",0,y])},94833(e,t,i){i.d(t,{A:()=>u});var s,r=i(32198),l=i(25482),o=i(91429),n=i(49849),a=i(40863);let u=s=class extends l.o{constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.value=null}get alternateSymbols(){return this._get("alternateSymbols")??null}set alternateSymbols(e){e?this._set("alternateSymbols",e.map(e=>e instanceof a.A?e:(delete e.type,new a.A(e)))):this._set("alternateSymbols",null)}clone(){return new s({alternateSymbols:this.alternateSymbols?.map(e=>e.clone()),value:this.value,description:this.description,label:this.label,symbol:this.symbol?this.symbol.clone():null})}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r.Cg)([(0,o.MZ)(n.Wp)],u.prototype,"symbol",void 0),(0,r.Cg)([(0,o.MZ)({type:[a.A],useTypeForAutocast:!1,json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"alternateSymbols",null),(0,r.Cg)([(0,o.MZ)(n.Ug)],u.prototype,"value",void 0),u=s=(0,r.Cg)([(0,o.$K)("esri.renderers.support.UniqueValueInfo")],u)},49849(e,t,i){var s=i(93637),r=i(90360),l=i(65365),o=i(20378),n=i(73838),a=i(33910);const u={types:a.xK,json:{write:{writer:n.M9},origins:{"web-scene":{types:a.On,write:{writer:n.M9},read:{reader:(0,r.C)({types:a.On})}}}}},p=(0,s.$N)({json:{origins:{"web-scene":{write:{isRequired:!0}}}}},u),c={types:{base:o.A,key:"type",typeMap:{"simple-fill":a.Es.typeMap["simple-fill"],"picture-fill":a.Es.typeMap["picture-fill"],"polygon-3d":a.Es.typeMap["polygon-3d"],cim:a.Es.typeMap.cim}},json:{write:{writer:n.M9},origins:{"web-scene":{type:l.A,write:{writer:n.M9}}}}},d={cast:e=>null==e||"string"==typeof e||"number"==typeof e?e:`${e}`,json:{type:String,write:{writer:(e,t)=>{t.value=e?.toString()}}}};i.d(t,["As",0,c,"Ug",0,d,"Wp",0,p,"z4",0,u])},80911(e,t,i){function s(e,t){if(null==e)return null;if(null==t)return e.symbol;if(null!=e.symbol&&r(e.symbol,t))return e.symbol;for(const i of e.alternateSymbols??[])if(r(i,t))return i;return null}function r(e,t){if("cim"!==e.type)return!0;const i=e.data?.minScale??0,s=e.data?.maxScale??0;return(!s||t>s)&&(!i||t<=i)}i.d(t,{c:()=>s})},2024(e,t,i){i.d(t,{A:()=>a});var s,r=i(32198),l=i(91429),o=i(2795),n=i(72500);let a=s=class extends o.A{constructor(e){super(e),this.type="color",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter(e=>!!e)).sort((e,t)=>e.value-t.value),this._set("stops",e)}clone(){return new s({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map(e=>e.clone()),legendOptions:this.legendOptions?.clone()})}_interpolateData(){return this.stops&&this.stops.map(e=>e.value||0)}};(0,r.Cg)([(0,l.MZ)({readOnly:!0})],a.prototype,"cache",null),(0,r.Cg)([(0,l.MZ)({type:["color"],json:{type:["colorInfo"]}})],a.prototype,"type",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],a.prototype,"normalizationField",void 0),(0,r.Cg)([(0,l.MZ)({type:[n.A],json:{write:!0}})],a.prototype,"stops",null),a=s=(0,r.Cg)([(0,l.$K)("esri.renderers.visualVariables.ColorVariable")],a)},62724(e,t,i){i.d(t,{A:()=>m});var s,r=i(32198),l=i(91429),o=i(2795),n=i(25482),a=i(56507),u=i(78553),p=i(36005),c=i(43937);let d=s=class extends n.o{constructor(e){super(e),this.label=null,this.opacity=null,this.value=null}readOpacity(e,t){return(0,u.D)(t.transparency)}writeOpacity(e,t,i){t[i]=(0,u.p)(e)}clone(){return new s({label:this.label,opacity:this.opacity,value:this.value})}};(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],d.prototype,"label",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{type:a.jz,write:{target:"transparency",isRequired:!0}}})],d.prototype,"opacity",void 0),(0,r.Cg)([(0,p.w)("opacity",["transparency"])],d.prototype,"readOpacity",null),(0,r.Cg)([(0,c.K)("opacity")],d.prototype,"writeOpacity",null),(0,r.Cg)([(0,l.MZ)({type:Number,json:{write:{isRequired:!0}}})],d.prototype,"value",void 0),d=s=(0,r.Cg)([(0,l.$K)("esri.renderers.visualVariables.support.OpacityStop")],d);const y=d;var h;let m=h=class extends o.A{constructor(e){super(e),this.type="opacity",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter(e=>!!e)).sort((e,t)=>e.value-t.value),this._set("stops",e)}clone(){return new h({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map(e=>e.clone()),legendOptions:this.legendOptions?.clone()})}_interpolateData(){return this.stops&&this.stops.map(e=>e.value||0)}};(0,r.Cg)([(0,l.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,r.Cg)([(0,l.MZ)({type:["opacity"],json:{type:["transparencyInfo"]}})],m.prototype,"type",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],m.prototype,"normalizationField",void 0),(0,r.Cg)([(0,l.MZ)({type:[y],json:{write:!0}})],m.prototype,"stops",null),m=h=(0,r.Cg)([(0,l.$K)("esri.renderers.visualVariables.OpacityVariable")],m)},23461(e,t,i){i.d(t,{A:()=>n});var s,r=i(32198),l=i(91429),o=i(2795);let n=s=class extends o.A{constructor(e){super(e),this.axis=null,this.type="rotation",this.rotationType="geographic"}get cache(){return{hasExpression:!!this.valueExpression,compiledFunc:null}}clone(){return new s({axis:this.axis,rotationType:this.rotationType,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,legendOptions:this.legendOptions?.clone()})}};(0,r.Cg)([(0,l.MZ)({readOnly:!0})],n.prototype,"cache",null),(0,r.Cg)([(0,l.MZ)({type:["heading","tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],n.prototype,"axis",void 0),(0,r.Cg)([(0,l.MZ)({type:["rotation"],json:{type:["rotationInfo"]}})],n.prototype,"type",void 0),(0,r.Cg)([(0,l.MZ)({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],n.prototype,"rotationType",void 0),n=s=(0,r.Cg)([(0,l.$K)("esri.renderers.visualVariables.RotationVariable")],n)},48940(e,t,i){i.d(t,{A:()=>x});var s=i(32198),r=i(66552),l=i(53966),o=i(91429),n=i(2795),a=i(90629),u=i(12330),p=i(41078);let c=class extends p.A{constructor(e){super(e),this.customValues=null}};(0,s.Cg)([(0,o.MZ)({type:[Number],json:{write:!0}})],c.prototype,"customValues",void 0),c=(0,s.Cg)([(0,o.$K)("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],c);const d=c;var y,h,m=i(98205),f=i(29266),g=i(59923),b=i(36005),v=i(43937);const w=new r.J({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"}),S=new r.J({unknown:"unknown",inch:"inches",foot:"feet",yard:"yards",mile:"miles","nautical-mile":"nautical-miles",millimeter:"millimeters",centimeter:"centimeters",decimeter:"decimeters",meter:"meters",kilometer:"kilometers"});function V(e){if(null!=e)return"string"==typeof e||"number"==typeof e?function(e){return(0,a.cr)(e)}(e):"size"===e.type?(0,m.of)(e)?e:(delete(e={...e}).type,new x(e)):void 0}function C(e,t,i){if("object"!=typeof e)return e;if("web-scene"===i.origin)return;const s=new x;return s.read(e,i),s}function M(e,t,i,s){"number"!=typeof e?"web-scene"!==s?.origin?t[i]=e.toJSON(s):(0,g.Yc)(s,"error","property",`Size variable '${i}' can only be a number in web scenes.`):t[i]=e}let x=h=class extends n.A{static{y=m.uY}constructor(e){super(e),this[y]=!0,this.axis=null,this.legendOptions=null,this.normalizationField=null,this.scaleBy=null,this.target=null,this.type="size",this.useSymbolValue=null,this.valueExpression=null,this.valueRepresentation=null,this.valueUnit=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null,isScaleDriven:null!=this.valueExpression&&f.RV.test(this.valueExpression)}}set index(e){(0,m.of)(this.maxSize)&&(this.maxSize.index=`visualVariables[${e}].maxSize`),(0,m.of)(this.minSize)&&(this.minSize.index=`visualVariables[${e}].minSize`),this._set("index",e)}get inputValueType(){return(0,m.eh)(this)}set maxDataValue(e){e&&this.stops&&(l.A.getLogger(this).warn("cannot set maxDataValue when stops is not null."),e=null),this._set("maxDataValue",e)}get maxSize(){return this._get("maxSize")}set maxSize(e){e&&this.stops&&(l.A.getLogger(this).warn("cannot set maxSize when stops is not null."),e=null),this._set("maxSize",V(e))}readMaxSize(e,t,i){return C(e,0,i)}writeMaxSize(e,t,i,s){return M(e,t,i,s)}set minDataValue(e){e&&this.stops&&(l.A.getLogger(this).warn("cannot set minDataValue when stops is not null."),e=null),this._set("minDataValue",e)}get minSize(){return this._get("minSize")}set minSize(e){e&&this.stops&&(l.A.getLogger(this).warn("cannot set minSize when stops is not null."),e=null),this._set("minSize",V(e))}readMinSize(e,t,i){return C(e,0,i)}writeMinSize(e,t,i,s){return M(e,t,i,s)}get arcadeRequired(){return!!this.valueExpression||null!=this.minSize&&"object"==typeof this.minSize&&this.minSize.arcadeRequired||null!=this.maxSize&&"object"==typeof this.maxSize&&this.maxSize.arcadeRequired}set stops(e){null==this.minDataValue&&null==this.maxDataValue&&null==this.minSize&&null==this.maxSize?e&&Array.isArray(e)&&(e=e.filter(e=>!!e)).sort((e,t)=>e.value-t.value):e&&(l.A.getLogger(this).warn("cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null."),e=null),this._set("stops",e)}get transformationType(){return(0,m.KZ)(this,this.inputValueType)}readValueExpression(e,t){return e||t.expression&&"$view.scale"}writeValueExpressionWebScene(e,t,i,s){if(f.RV.test(e)){if(s?.messages){const e=this.index;(0,g.qt)(s,`visualVariables[${"string"==typeof e?e:`visualVariables[${e}]`}].valueExpression`,"SizeVariable with '$view.scale' valueExpression is not supported in Web Scene. Please remove this property to save the Web Scene.")}}else t[i]=e}readValueUnit(e){return e?S.read(e):null}clone(){return new h({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:(0,m.of)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,m.of)(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops?.map(e=>e.clone()),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions?.clone()})}flipSizes(){if("clamped-linear"===this.transformationType){const{minSize:e,maxSize:t}=this;return this.minSize=t,this.maxSize=e,this}if("stops"===this.transformationType){const e=this.stops;if(!e)return this;const t=e.map(e=>e.size).reverse(),i=e.length;for(let s=0;s<i;s++)e[s].size=t[s];return this}return this}_interpolateData(){return this.stops?.map(e=>e.value||0)}};(0,s.Cg)([(0,o.MZ)({readOnly:!0})],x.prototype,"cache",null),(0,s.Cg)([(0,o.MZ)({type:w.apiValues,json:{type:w.jsonValues,origins:{"web-map":{read:!1}},read:w.read,write:w.write}})],x.prototype,"axis",void 0),(0,s.Cg)([(0,o.MZ)()],x.prototype,"index",null),(0,s.Cg)([(0,o.MZ)({type:String,readOnly:!0})],x.prototype,"inputValueType",null),(0,s.Cg)([(0,o.MZ)({type:d,json:{write:!0}})],x.prototype,"legendOptions",void 0),(0,s.Cg)([(0,o.MZ)({type:Number,value:null,json:{write:!0}})],x.prototype,"maxDataValue",null),(0,s.Cg)([(0,o.MZ)({type:Number,useTypeForAutocast:!1,value:null,json:{write:!0}})],x.prototype,"maxSize",null),(0,s.Cg)([(0,b.w)("maxSize")],x.prototype,"readMaxSize",null),(0,s.Cg)([(0,v.K)("maxSize")],x.prototype,"writeMaxSize",null),(0,s.Cg)([(0,o.MZ)({type:Number,value:null,json:{write:!0}})],x.prototype,"minDataValue",null),(0,s.Cg)([(0,o.MZ)({type:Number,useTypeForAutocast:!1,value:null,json:{write:!0}})],x.prototype,"minSize",null),(0,s.Cg)([(0,b.w)("minSize")],x.prototype,"readMinSize",null),(0,s.Cg)([(0,v.K)("minSize")],x.prototype,"writeMinSize",null),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],x.prototype,"normalizationField",void 0),(0,s.Cg)([(0,o.MZ)({readOnly:!0})],x.prototype,"arcadeRequired",null),(0,s.Cg)([(0,o.MZ)({type:String})],x.prototype,"scaleBy",void 0),(0,s.Cg)([(0,o.MZ)({type:[u.A],value:null,json:{write:!0}})],x.prototype,"stops",null),(0,s.Cg)([(0,o.MZ)({type:["outline"],json:{write:!0}})],x.prototype,"target",void 0),(0,s.Cg)([(0,o.MZ)({type:String,readOnly:!0})],x.prototype,"transformationType",null),(0,s.Cg)([(0,o.MZ)({type:["size"],json:{type:["sizeInfo"]}})],x.prototype,"type",void 0),(0,s.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],x.prototype,"useSymbolValue",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],x.prototype,"valueExpression",void 0),(0,s.Cg)([(0,b.w)("valueExpression",["valueExpression","expression"])],x.prototype,"readValueExpression",null),(0,s.Cg)([(0,v.K)("web-scene","valueExpression")],x.prototype,"writeValueExpressionWebScene",null),(0,s.Cg)([(0,o.MZ)({type:["radius","diameter","area","width","distance"],json:{write:!0}})],x.prototype,"valueRepresentation",void 0),(0,s.Cg)([(0,o.MZ)({type:S.apiValues,json:{write:S.write,origins:{"web-map":{read:!1},"web-scene":{write:!0},"portal-item":{write:!0}}}})],x.prototype,"valueUnit",void 0),(0,s.Cg)([(0,b.w)("valueUnit")],x.prototype,"readValueUnit",null),x=h=(0,s.Cg)([(0,o.$K)("esri.renderers.visualVariables.SizeVariable")],x)},2795(e,t,i){i.d(t,{A:()=>c});var s=i(32198),r=i(66552),l=i(25482),o=i(53966),n=i(91429),a=i(56507),u=i(41078);const p=new r.J({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});let c=class extends l.o{constructor(e){super(e),this.index=null,this.type=null,this.field=null,this.valueExpression=null,this.valueExpressionTitle=null,this.legendOptions=null}castField(e){return null==e?e:"function"==typeof e?(o.A.getLogger(this).error(".field: field must be a string value"),null):(0,a.GX)(e)}get arcadeRequired(){return!!this.valueExpression}clone(){}};(0,s.Cg)([(0,n.MZ)()],c.prototype,"index",void 0),(0,s.Cg)([(0,n.MZ)({type:p.apiValues,readOnly:!0,json:{read:p.read,write:{writer:p.write,isRequired:!0}}})],c.prototype,"type",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,s.Cg)([(0,n.wg)("field")],c.prototype,"castField",null),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],c.prototype,"valueExpression",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],c.prototype,"valueExpressionTitle",void 0),(0,s.Cg)([(0,n.MZ)({readOnly:!0})],c.prototype,"arcadeRequired",null),(0,s.Cg)([(0,n.MZ)({type:u.A,json:{write:!0}})],c.prototype,"legendOptions",void 0),c=(0,s.Cg)([(0,n.$K)("esri.renderers.visualVariables.VisualVariable")],c)},72500(e,t,i){var s,r=i(32198),l=i(68197),o=i(25482),n=i(91429),a=i(56507),u=i(43937);let p=s=class extends o.o{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,i){t[i]=e??0}clone(){return new s({color:this.color&&this.color.clone(),label:this.label,value:this.value})}equals(e){return this===e||this.value===e.value&&this.label===e.label&&(this.color===e.color||null!=this.color&&null!=e.color&&this.color.equals(e.color))}};(0,r.Cg)([(0,n.MZ)({type:l.A,json:{type:[a.jz],write:{isRequired:!0}}})],p.prototype,"color",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,r.Cg)([(0,n.MZ)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],p.prototype,"value",void 0),(0,r.Cg)([(0,u.K)("value")],p.prototype,"writeValue",null),p=s=(0,r.Cg)([(0,n.$K)("esri.renderers.visualVariables.support.ColorStop")],p);const c=p;i.d(t,["A",0,c])},12330(e,t,i){i.d(t,{A:()=>a});var s,r=i(32198),l=i(25482),o=i(90629),n=i(91429);let a=s=class extends l.o{constructor(e){super(e),this.label=null,this.value=null,this.useMinValue=null,this.useMaxValue=null}get size(){return this._get("size")}set size(e){this._set("size",e)}clone(){return new s({label:this.label,size:this.size,value:this.value,useMaxValue:this.useMaxValue,useMinValue:this.useMinValue})}};(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"label",void 0),(0,r.Cg)([(0,n.MZ)({type:Number,cast:o.cr,json:{write:{isRequired:!0}}})],a.prototype,"size",null),(0,r.Cg)([(0,n.MZ)({type:Number,json:{write:{isRequired:!0}}})],a.prototype,"value",void 0),(0,r.Cg)([(0,n.MZ)({type:Boolean,json:{write:!1}})],a.prototype,"useMinValue",void 0),(0,r.Cg)([(0,n.MZ)({type:Boolean,json:{write:!1}})],a.prototype,"useMaxValue",void 0),a=s=(0,r.Cg)([(0,n.$K)("esri.renderers.visualVariables.support.SizeStop")],a)},41078(e,t,i){var s=i(32198),r=i(69540),l=i(25482),o=i(91429);let n=class extends((0,r.OU)(l.o)){constructor(e){super(e),this.showLegend=null,this.title=null}};(0,s.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],n.prototype,"showLegend",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],n.prototype,"title",void 0),n=(0,s.Cg)([(0,o.$K)("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],n);const a=n;i.d(t,["A",0,a])},29266(e,t,i){i.d(t,{UT:()=>c,Yz:()=>b}),i(68197);var s=i(52106),r=i(53966),l=i(31756),o=i(98205);const n=()=>r.A.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),a=e=>n().warn(`The visualVariable should be an instance of esri.renderers.visualVariables.${e}`),u=()=>n().error("Use of arcade expressions requires an arcade context"),p=(new s.A,Math.PI);function c(e,t,i){return function(e,t,i){const s="visualVariables"in e?e.visualVariables?.find(e=>"rotation"===e.type):e;if(!s)return;if("esri.renderers.visualVariables.RotationVariable"!==s.declaredClass)return void a("RotationVariable");const r=s.axis||"heading",l="heading"===r&&"arithmetic"===s.rotationType?90:0,o="heading"===r&&"arithmetic"===s.rotationType?-1:1,n=s.field,{hasExpression:u}=s.cache;if(!n&&!u)return;const p=d(s,t,i);let c=p;return c="number"!=typeof c||isNaN(c)?null:l+o*c,new g(s,c,p)}(e,t,i)?.output}function d(e,t,i){const{hasExpression:s}=e.cache;if("number"==typeof t)return t;const r=t?.attributes,l=e.field;if(!s)return r?.[l];if(null==i?.arcade)return void u();const o={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},n=i.arcade.arcadeUtils,a=n.getViewInfo(o),p=n.createExecContext(t,a,i.timeZone);if(!e.cache.compiledFunc){const t=n.createSyntaxTree(e.valueExpression);e.cache.compiledFunc=n.createFunction(t)}return n.executeFunction(e.cache.compiledFunc,p)}function y(e,t,i){const s="number"==typeof t,r=s?null:t,l=r?.attributes;let n=s?t:null;const{isScaleDriven:a}=e.cache;let p=e.cache.compiledFunc;if(a){const t=null!=i?i.scale:void 0,s=null!=i?i.view:void 0;n=null==t||"3d"===s?function(e){let t=null,i=null;const s=e.stops;return s?(t=s[0].value,i=s[s.length-1].value):(t=e.minDataValue||0,i=e.maxDataValue||0),(t+i)/2}(e):t}else if(!s)switch(e.inputValueType){case"expression":{if(null==i?.arcade)return void u();const t={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},s=i.arcade.arcadeUtils,l=s.getViewInfo(t),o=s.createExecContext(r,l,i.timeZone);if(!p){const t=s.createSyntaxTree(e.valueExpression);p=s.createFunction(t),e.cache.compiledFunc=p}n=s.executeFunction(p,o);break}case"field":l&&(n=l[e.field]);break;case"unknown":n=null}return(0,o.gf)(n)?n:null}function h(e,t,i){return function(e,t,i){const s="visualVariables"in e?e.visualVariables?.find(e=>"size"===e.type):e;if(!s)return;if("esri.renderers.visualVariables.SizeVariable"!==s.declaredClass)return void a("SizeVariable");const r=y(s,t,i);let n=r;if(null!=n&&"number"!=typeof t&&t&&s.normalizationField){const e=t.attributes,i=parseFloat(e?.[s.normalizationField]);if(!(0,o.gf)(i)||0===i)return;n/=i}const u=function(e,t,i,s,r){switch(t.transformationType){case"additive":return function(e,t,i,s){const r=m(t.minSize,i,s)||t.minDataValue;return null==e&&null==r?null:(e??0)+(r??0)}(e,t,i,s);case"constant":return function(e,t,i){const s=e.stops;let r=s?.length&&s[0].size;return null==r&&(r=e.minSize),m(r,t,i)}(t,i,s);case"clamped-linear":return function(e,t,i,s){const r=m(t.minSize,i,s);if(null==e)return r;const{minDataValue:l,maxDataValue:o}=t;if(null==l||null==o)return null;const n=(e-l)/(o-l),a=m(t.maxSize,i,s),u=null!=s?s.shape:void 0;if(e<=l)return r;if(e>=o)return a;if(null==r||null==a)return null;if("area"===t.scaleBy&&u){const e="circle"===u,t=e?p*(r/2)**2:r*r,i=t+n*((e?p*(a/2)**2:a*a)-t);return e?2*Math.sqrt(i/p):Math.sqrt(i)}return r+n*(a-r)}(e,t,i,s);case"proportional":return function(e,t,i,s){const r=m(t.minSize,i,s);if(null==e||null==r)return r;const l=null!=s?s.shape:void 0,{minDataValue:o}=t;if(null==o)return null;const n=e/o,a=m(t.maxSize,i,s);let u=null;return u="circle"===l?2*Math.sqrt(n*(r/2)**2):"square"===l||"diamond"===l||"image"===l?Math.sqrt(n*r**2):n*r,f(u,r,a)}(e,t,i,s);case"stops":return function(e,t,i,s,r){if(null==e)return null;const[l,o,n]=function(e,t){if(!t)return;let i=0,s=t.length-1;return t.some((t,r)=>e<t?(s=r,!0):(i=r,!1)),[i,s,(e-t[i])/(t[s]-t[i])]}(e,r);if(l===o)return m(t.stops?.[l].size,i,s);{const e=m(t.stops?.[l].size,i,s),r=m(t.stops?.[o].size,i,s);return null==e||null==r?null:e+(r-e)*n}}(e,t,i,s,r);case"real-world-size":return function(e,t,i,s){const r=(s?.resolution??1)*l.j[t.valueUnit],o=m(t.minSize,i,s),n=m(t.maxSize,i,s),{valueRepresentation:a}=t;if(null==e)return o;let u=null;return u="area"===a?2*Math.sqrt(e/p)/r:"radius"===a||"distance"===a?2*e/r:e/r,f(u,o,n)}(e,t,i,s);case"identity":return e;case"unknown":return null}}(n,s,t,i,s.cache.ipData);return new g(s,null==u||isNaN(u)?void 0:u,r)}(e,t,i)?.output}function m(e,t,i){return null==e?null:(0,o.of)(e)?h(e,t,i):(0,o.gf)(e)?e:null}function f(e,t,i){return(0,o.gf)(i)&&e>i?i:(0,o.gf)(t)&&e<t?t:e}class g{get type(){return this.variable.type}constructor(e,t,i){this.variable=e,this.output=t,this.input=i}}function b(e,t,i){const s=["proportional","proportional","proportional"];for(const r of e){const e=r.useSymbolValue?"symbol-value":h(r,t,i)??"proportional";switch(r.axis){case"width":s[0]=e;break;case"depth":s[1]=e;break;case"height":s[2]=e;break;case"width-and-depth":s[0]=e,s[1]=e;break;case"all":case void 0:case null:s[0]=e,s[1]=e,s[2]=e;break;default:r.axis}}return s}i.d(t,["RV",0,/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i])},2485(e,t,i){i.d(t,{A:()=>c});var s,r=i(32198),l=i(68197),o=i(4718),n=i(91429),a=i(56507),u=i(72606),p=i(93223);let c=s=class extends u.A{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new s({fromColor:(0,o.o8)(this.fromColor),toColor:(0,o.o8)(this.toColor),algorithm:this.algorithm})}};(0,r.Cg)([(0,p.e)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],c.prototype,"algorithm",void 0),(0,r.Cg)([(0,n.MZ)({type:l.A,json:{type:[a.jz],write:{isRequired:!0}}})],c.prototype,"fromColor",void 0),(0,r.Cg)([(0,n.MZ)({type:l.A,json:{type:[a.jz],write:{isRequired:!0}}})],c.prototype,"toColor",void 0),(0,r.Cg)([(0,n.MZ)({type:["algorithmic"],json:{write:{isRequired:!0}}})],c.prototype,"type",void 0),c=s=(0,r.Cg)([(0,n.$K)("esri.rest.support.AlgorithmicColorRamp")],c)},72606(e,t,i){i.d(t,{A:()=>o});var s=i(32198),r=i(25482),l=i(91429);let o=class extends r.o{constructor(e){super(e),this.type=null}};(0,s.Cg)([(0,l.MZ)({readOnly:!0,json:{read:!1,write:!0}})],o.prototype,"type",void 0),o=(0,s.Cg)([(0,l.$K)("esri.rest.support.ColorRamp")],o)},1626(e,t,i){i.d(t,{A:()=>c});var s,r=i(32198),l=i(4718),o=i(91429),n=i(2485),a=i(72606),u=i(43937),p=i(36005);let c=s=class extends a.A{constructor(e){super(e),this.colorRamps=null,this.type="multipart",this.weights=void 0}writeColorRamps(e,t,i,s){const r=e?.map(e=>e.toJSON(s)),{weights:l}=this;if(r&&l?.length&&r.length===l?.length){const e=100/l.reduce((e,t)=>e+t);let t=0;r.forEach((i,s)=>{i.start=t,t+=l[s]*e,i.stop=t})}t.colorRamps=r}readWeights(e,t){const i=t.colorRamps?.map(({start:e,stop:t})=>null==e||null==t?-1:t-e);if(!i?.some(e=>e<0))return i}clone(){return new s({colorRamps:(0,l.o8)(this.colorRamps)})}};(0,r.Cg)([(0,o.MZ)({type:[n.A],json:{write:{isRequired:!0}}})],c.prototype,"colorRamps",void 0),(0,r.Cg)([(0,u.K)("colorRamps")],c.prototype,"writeColorRamps",null),(0,r.Cg)([(0,o.MZ)({type:["multipart"],json:{write:{isRequired:!0}}})],c.prototype,"type",void 0),(0,r.Cg)([(0,o.MZ)({type:[Number]})],c.prototype,"weights",void 0),(0,r.Cg)([(0,p.w)("weights",["colorRamps"])],c.prototype,"readWeights",null),c=s=(0,r.Cg)([(0,o.$K)("esri.rest.support.MultipartColorRamp")],c)},95349(e,t,i){i.d(t,{r:()=>n});var s=i(2485),r=i(72606),l=i(1626);const o={key:"type",base:r.A,typeMap:{algorithmic:s.A,multipart:l.A}};function n(e){return e?.type?"algorithmic"===e.type?s.A.fromJSON(e):"multipart"===e.type?l.A.fromJSON(e):null:null}i.d(t,["g",0,o])},59868(e,t,i){var s=i(94985),r=i(31593),l=i(53930),o=i(68249),n=i(93470);const a=l.A.fromJSON(n.Cb),u=r.A.fromJSON(n.yM),p=s.A.fromJSON(n.WR),c=o.A.fromJSON(n.JZ);l.A.fromJSON(n.nC),r.A.fromJSON(n.HW),s.A.fromJSON(n.b6),i.d(t,["A7",0,u,"Cx",0,p,"Hk",0,c,"UK",0,a])},73838(e,t,i){i.d(t,{rS:()=>D,M9:()=>I,oO:()=>Z});var s=i(93637),r=i(77548),l=i(29169),o=i(49186),n=i(13313),a=i(97887),u=i(68548),p=i(58592),c=i(75981),d=i(65365),y=i(94985),h=i(31593),m=i(53930),f=i(68249),g=i(68197),b=i(7762),v=i(90629),w=i(27845),S=i(11506),V=i(39065),C=i(59868),M=i(93470);c.A.fromSimpleMarkerSymbol(C.UK),a.A.fromSimpleLineSymbol(C.A7),d.A.fromSimpleFillSymbol(C.Cx),new u.A({symbolLayers:new b.A([new w.A({material:{color:M.fT},edges:new V.A({size:(0,v.PN)(1),color:new g.A(M.JR)})})])});const x=new a.A({symbolLayers:new b.A([new S.A({material:{color:new g.A([0,0,0])},size:(0,v.PN)(1)})])}),_=new d.A({symbolLayers:new b.A([new w.A({outline:{color:new g.A([0,0,0]),size:(0,v.PN)(1)}})])});var z=i(33910);const A="#useCIMFallbackSymbology()",j={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};var q=i(59923);function I(e,t,i,r){const l=U(e,{},{context:r,isLabelSymbol:!1});null!=l&&(0,s.sM)(i,l,t)}function Z(e,t,i,s){const r=U(e,{},{context:s,isLabelSymbol:!0});null!=r&&(t[i]=r)}function F(e){return(0,z.wk)(e)||e instanceof l.A}function U(e,t,i){if(null==e)return null;const{context:s,isLabelSymbol:g}=i,b=s?.origin;if("web-scene"===b&&!F(e)){const i=function(e,t=j){if(!e)return{symbol:null};const{retainId:i=j.retainId,ignoreDrivers:s=j.ignoreDrivers,hasLabelingContext:r=j.hasLabelingContext,retainCIM:g=j.retainCIM,cimFallbackEnabled:b=j.cimFallbackEnabled}=t;let v=null;if((0,z.wk)(e))v=e.clone();else if("web-style"===e.type)v=e.clone();else if("cim"===e.type){const i=e.data?.symbol?.type;switch(i){case"CIMPointSymbol":v=g?e.clone():c.A.fromCIMSymbol(e);break;case"CIMLineSymbol":b&&(v=x.clone(),t?.logWarning?.(A,"Unsupported CIM line symbology converted to fallback 3D line symbology"));break;case"CIMPolygonSymbol":b&&(v=_.clone(),t?.logWarning?.(A,"Unsupported CIM polygon symbology converted to fallback 3D polygon symbology"))}if(!v)return{error:new o.A("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${i||"unknown"}' is unsupported in 3D`,{symbol:e})}}else if(e instanceof h.A)v=a.A.fromSimpleLineSymbol(e);else if(e instanceof m.A)v=c.A.fromSimpleMarkerSymbol(e);else if(e instanceof p.A)v=c.A.fromPictureMarkerSymbol(e);else if(e instanceof y.A)v=t.geometryType&&"mesh"===t.geometryType?u.A.fromSimpleFillSymbol(e):d.A.fromSimpleFillSymbol(e);else{if(!(e instanceof f.A))return{error:new o.A("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${e.type||e.declaredClass}' is unsupported in 3D`,{symbol:e})};v=r?n.A.fromTextSymbol(e):c.A.fromTextSymbol(e)}return i&&v&&"cim"!==v.type&&(v.id=e.id),!s||"cim"===v.type||v instanceof l.A||v.symbolLayers.forEach(e=>e.ignoreDrivers=!0),{symbol:v}}(e,{retainCIM:!0,hasLabelingContext:g});return null!=i.symbol?i.symbol.write(t,s):((0,q.bA)(s,e,"Use 3D symbology instead when working with WebScene and SceneView",{error:i.error}),null)}return(0,r.TU)(s?.layer)&&function(e){return"polygon-3d"===e?.type||"line-3d"===e?.type}(e)?((0,q.bA)(s,e,`unsupported in layers of type ${s?.layer?.declaredClass}`),null):("web-map"===b||"portal-item"===b&&!(0,r.TU)(s?.layer))&&F(e)?((0,q.bA)(s,e,"Use 2D symbology and CIMSymbol instead when working with MapView"),null):e.write(t,s)}function D(e,t){return(0,z.Bu)(e,null,t)}},85594(e,t,i){i.d(t,{jg:()=>b,cF:()=>c,bo:()=>d,yA:()=>m,o5:()=>y});var s=i(11254),r=i(49186),l=i(44208),o=i(17676),n=i(84952),a=i(20655),u=i(16405);const p=new Map;function c(e,t,i){return null!=e?.styleUrl?async function(e,t){try{return{data:(await m(e,t)).data,baseUrl:(0,n.nM)(e),styleUrl:e}}catch(e){return(0,o.QP)(e),null}}(e.styleUrl,i):null!=e?.styleName?function(e,t,i){const s=null!=t.portal?t.portal:a.A.getDefault();let l;const o=`${s.url} - ${s.user?.username} - ${e}`,n=p.get(o);if(n)return n;const c=function(e,t,i){return t.load(i).then(()=>{const s=new u.A({disableExtraQuery:!0,query:`owner:${f} AND type:${g} AND typekeywords:"${e}"`});return t.queryItems(s,i)}).then(({results:t})=>{let s=null;const l=e.toLowerCase();if(t&&Array.isArray(t))for(const e of t){const t=e.typeKeywords?.some(e=>e.toLowerCase()===l);if(t&&e.type===g&&e.owner===f){s=e;break}}if(!s)throw new r.A("symbolstyleutils:style-not-found",`The style '${e}' could not be found`,{styleName:e});return s.load(i)})}(e,s,i).then(e=>(l=e,e.fetchData())).then(t=>({data:t,baseUrl:l.itemUrl??"",styleName:e}));return p.set(o,c),c}(e.styleName,t,i):Promise.reject(new r.A("symbolstyleutils:style-url-and-name-missing","Either styleUrl or styleName is required to resolve a style"))}function d(e){return null===e||"CIMSymbolReference"===e.type?e:{type:"CIMSymbolReference",symbol:e}}function y(e,t){for(const i of t)switch(i){case"cim":if(e.cimRef)return{format:i,url:encodeURI(e.cimRef)};break;case"web-gltf-basisu":{const t=h(e,"gltf_basisu");if(t)return{format:i,url:t};break}case"web-gltf":{const t=h(e,"gltf");if(t)return{format:i,url:t};break}case"web":{const t=h(e,"gltf");if(t)return{format:"web-gltf",url:t};if(e.webRef)return{format:i,url:encodeURI(e.webRef)};break}}}function h(e,t){if(!(0,l.A)("enable-feature:force-wosr"))return e.formatInfos?.find(e=>e.type===t)?.href}function m(e,t){const i={responseType:"json",query:{f:"json"},...t};return(0,s.A)((0,n.S8)(e),i)}const f="esri_en",g="Style",b="https://cdn.arcgis.com/sharing/rest/content/items/220936cc6ed342c9937abd8f180e7d1e/resources/styles/cim/{SymbolName}.json?f=json"}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[373],{34930(e,t,n){n.d(t,{$Q:()=>l,Sd:()=>c,T5:()=>s,b7:()=>f});var i=n(86211),o=n(5443),a=n(86738),r=n(14140);function s(e,t){if(e.spatialReference.equals(t))return e;const n=(0,i.GA)(e.spatialReference),o=(0,i.GA)(t);if(n===o)return e;const a=n/o;return{x:e.x*a,y:e.y*a}}async function l(e,t,i){if("extent"===i.type)return function(e,t,n){const{width:i,height:o}=e,a=new Uint8Array(i*o),s=t.width/i,l=t.height/o;if(n.width/s<.5||n.height/l<.5)return new r.A({pixelType:e.pixelType,width:i,height:o,mask:a,pixels:[...e.pixels]});const{xmin:c,xmax:f,ymin:x,ymax:h}=t,{xmin:u,xmax:m,ymin:p,ymax:g}=n,y=Math.max(c,u),d=Math.min(f,m),w=Math.max(x,p),M=Math.min(h,g),R=.5*s,P=.5*l;if(d-y<R||M-w<P||d<c+R||y>f-R||w>h-P||M<x+P)return new r.A({pixelType:e.pixelType,width:i,height:o,mask:a,pixels:[...e.pixels]});const k=Math.max(0,(y-c)/s),A=Math.min(i,Math.max(0,(d-c)/s)),b=Math.max(0,(h-M)/l),E=Math.min(o,Math.max(0,(h-w)/l)),T=Math.round(k),S=Math.round(A)-1,G=Math.round(b),N=Math.round(E)-1;if(T===S&&k%1>.5&&A%1<.5||G===N&&b%1>.5&&E%1<.5)return new r.A({pixelType:e.pixelType,width:i,height:o,mask:a,pixels:[...e.pixels]});if(0===T&&0===G&&S===i&&N===o)return e;const C=e.mask;for(let e=G;e<=N;e++)for(let t=T;t<=S;t++){const n=e*i+t;a[n]=C?C[n]:255}return new r.A({pixelType:e.pixelType,width:i,height:o,mask:a,pixels:[...e.pixels]})}(e,t,i);const{width:o,height:a}=e,s=new Uint8Array(o*a),{intersectsExecute:l}=await Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(1132)]).then(()=>n(25275));if(!l(t,i))return new r.A({pixelType:e.pixelType,width:o,height:a,mask:s,maskIsAlpha:!1,pixels:[...e.pixels]});if("polyline"===i.type)return function(e,t,n){const{width:i,height:o}=e,a=new Uint8Array(i*o),s=t.width/i,l=t.height/o,{xmin:c,ymax:f}=t,{paths:x}=n,h=e.mask;for(let e=0;e<x.length;e++){const t=x[e];for(let e=0;e<t.length-1;e++){const[n,r]=t[e],[x,u]=t[e+1],m=Math.min(r,u),p=Math.max(r,u),g=Math.max(0,Math.floor((f-p)/l)),y=Math.min(o-1,Math.floor((f-m)/l));if(!(y<g))if(g===y){const e=Math.min(n,x),t=Math.max(n,x),o=Math.max(0,Math.floor((e-c)/s)),r=Math.min(i-1,Math.floor((t-c)/s));if(r<o)continue;const l=g*i;for(let e=l+o;e<=l+r;e++)a[e]=h?h[e]:255}else{const e=(n-c)/s,t=(x-n)/(u-r)/s,o=l*t;for(let n=g;n<=y;n++){const s=t*(f-n*l-r)+e,c=Math.max(0,Math.floor(o>0?s-o:s)),x=Math.min(i-1,Math.floor(o>0?s:s-o));if(x<c)continue;const u=n*i;for(let e=u+c;e<=u+x;e++)a[e]=h?h[e]:255}}}}return new r.A({pixelType:e.pixelType,width:i,height:o,mask:a,pixels:[...e.pixels]})}(e,t,i);const{containsExecute:c}=await Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(6671)]).then(()=>n(30912));return c(i,t)?e:function(e,t,n){if(!e)return e;const{width:i,height:o}=e,a=function(e){const{geometry:t,size:n,srcExtent:i,srcMask:o}=e,[a,r]=n;let s;const l=i.width/a,c=i.height/r,{xmin:f,ymax:x}=i;if("extent"===t.type){const e=(t.xmin-f)/l,n=(t.xmax-f)/l,i=(x-t.ymax)/c,o=(x-t.ymin)/c;s=[[[e,i],[e,o],[n,o],[n,i],[e,i]]]}else s=t.rings.map(e=>e.map(([e,t])=>[(e-f)/l,(x-t)/c]));return function(e,t,n){const[i,o]=t,a=new OffscreenCanvas(i,o).getContext("2d");a.fillStyle="#f00",a.beginPath(),e.forEach(e=>{a.moveTo(e[0][0],e[0][1]);for(let t=0;t<e.length;t++)a.lineTo(e[t][0],e[t][1]);a.closePath()}),a.fill();const r=a.getImageData(0,0,i,o).data,s=i*o,l=new Uint8Array(s);let c=!1;for(let e=0;e<s;e++)n&&!n[e]||(r[4*e+3]>127?l[e]=255:c=!0);return c||n?l:void 0}(s,n,o)}({geometry:n,size:[i,o],srcExtent:t,srcMask:e.mask});return new r.A({pixelType:e.pixelType,width:i,height:o,mask:a,maskIsAlpha:!1,pixels:[...e.pixels]})}(e,t,i)}function c(e,t){const{extent:n}=f(e,t,new a.A({x:e.pixelSize.x,y:e.pixelSize.y,spatialReference:e.spatialReference})),{extent:i}=e.extent;if(n.xmax=Math.min(n.xmax,i.xmax),n.ymax=Math.min(n.ymax,i.ymax),n.xmin<n.xmax&&n.ymin<n.ymax){const{x:t,y:i}=e.pixelSize,o=Math.round(n.width/t),a=Math.round(n.height/i);e.extent=n,e.width=o,e.height=a}}function f(e,t,n,i=!0){const{spatialReference:a}=e,{x:r,y:l}=s(n,a);let c,f,x;const h="extent"===t.type?t:t.extent;let{xmin:u,xmax:m,ymax:p,ymin:g}=h;const{xmin:y,ymax:d}=e.extent;return i?(u=y+(u>y?r*Math.round((u-y)/r):0),p=d-(p<d?l*Math.round((d-p)/l):0),m=y+(m>y?r*Math.round((m-y)/r):0),g=d-(g<d?l*Math.round((d-g)/l):0),c=new o.A({xmin:u,ymax:p,xmax:m,ymin:g,spatialReference:a}),f=Math.round(c.width/r),x=Math.round(c.height/l)):(f=Math.floor((m-u)/r+.8),x=Math.floor((p-g)/l+.8),u=y+(u>y?r*Math.floor((u-y)/r+.1):0),p=d-(p<d?l*Math.floor((d-p)/l+.1):0),m=u+f*r,g=p-x*l,c=new o.A({xmin:u,ymax:p,xmax:m,ymin:g,spatialReference:a})),{extent:c,width:f,height:x}}},37373(e,t,n){n.d(t,{DO:()=>F,FT:()=>I,Hh:()=>k,OM:()=>W,Ps:()=>U,Wo:()=>A,_I:()=>E,_l:()=>_,l0:()=>Y,t$:()=>J,uk:()=>j});var i=n(4576),o=n(49186),a=n(86211),r=n(5443),s=n(83290),l=n(86738),c=n(39829),f=n(99917),x=n(16930),h=n(21325);function u(){if(!P)throw new o.A("rasterprojectionhelper-project","projection operator is not loaded")}const m=(e,t,n,i=0)=>{if(1===n[0])return[0,0];let o=1,a=-1,r=1,s=-1;for(let t=0;t<e.length;t+=2)isNaN(e[t])||(o=o>e[t]?e[t]:o,a=a>e[t]?a:e[t],r=r>e[t+1]?e[t+1]:r,s=s>e[t+1]?s:e[t+1]);const{cols:l,rows:c}=t,f=(a-o)/l/n[0],x=(s-r)/c/n[1],h=2*i;let u=0,m=!1,p=[0,0];for(let t=0;t<l-3;t++){for(let n=0;n<c-3;n++){const i=t*c*2+2*n,o=(e[i]+e[i+4]+e[i+4*c]+e[i+4*c+4])/4,a=(e[i+1]+e[i+5]+e[i+4*c+1]+e[i+4*c+5])/4,r=Math.abs((o-e[i+2*c+2])/f),s=Math.abs((a-e[i+2*c+3])/x);if(r+s>u&&(u=r+s,p=[r,s]),h&&u>h){m=!0;break}}if(m)break}return p},p={3395:20037508.342789244,3410:17334193.943686873,3857:20037508.342788905,3975:17367530.445161372,4087:20037508.342789244,4088:20015108.787169147,6933:17367530.445161372,32662:20037508.342789244,53001:20015086.79602057,53002:10007543.39801029,53003:20015086.79602057,53004:20015086.79602057,53016:14152803.599503474,53017:17333573.624304302,53034:20015086.79602057,53079:20015114.352186374,53080:20015114.352186374,54001:20037508.342789244,54002:10018754.171394624,54003:20037508.342789244,54004:20037508.342789244,54016:14168658.027268292,54017:17367530.44516137,54034:20037508.342789244,54079:20037508.342789244,54080:20037508.342789244,54100:20037508.342789244,54101:20037508.342789244},g=new Map,y=new Map,d=500;let w,M,R,P=!1;async function k(){return w||(w=Promise.withResolvers(),M=await n.e(3276).then(()=>n(83276)),R=await n.e(2158).then(()=>n(12158)),M.projectIsLoaded()||await M.projectLoad(),R.isLoaded()||await R.load(),P=!0,w.resolve()),w.promise}function A(e,t,n,i){const o=e.spatialReference;if(!o||!t||o.equals(t))return e;u();const s=n.center,l=new r.A({xmin:s.x-e.x/2,xmax:s.x+e.x/2,ymin:s.y-e.y/2,ymax:s.y+e.y/2,spatialReference:o}),c=M.projectExecute(l,t,{geographicTransformation:i}),f=I(t);return null==c||null!=f&&c.width>=f?function(e,t,n){const i=(0,a.GA)(t)/(0,a.GA)(n);return{x:e.x*i,y:e.y*i}}(e,o,t):{x:c.width,y:c.height}}function b(e,t=.01){return(0,a.GA)(e)?t/(0,a.GA)(e):0}function E(e,t,n,i=!0){const o=e.spatialReference;if(o.equals(t))return e;u();const a=M.projectExecute(e,t,{geographicTransformation:n});return i&&a?(T([e],[a],o,t),a):a}function T(e,t,n,i){const o=L(n,!0),a=L(i,!0),r=b(n,d),s=b(i,d);if(r&&null!=o&&null!=a)for(let n=0;n<e.length;n++){const i=t[n];if(!i)continue;const{x:l}=e[n],{x:c}=i;c>=a[1]-s&&Math.abs(l-o[0])<r?i.x-=a[1]-a[0]:c<=a[0]+s&&Math.abs(l-o[1])<r&&(i.x+=a[1]-a[0])}}function S(e){const{inSR:t,outSR:n,preferPE:i}=e;if(t.equals(n)){const{points:t}=v(e,null);return t}if(t.isWebMercator&&n.isWGS84||t.isWGS84&&n.isWebMercator)return function(e){const{cols:t,rows:n,xres:i,yres:o,usePixelCenter:a,inSR:r,outSR:s}=e;let{xmin:c,ymax:x}=e;a&&(c+=i/2,x-=o/2);const h=[],u=[],m=Math.max(t,n);for(let e=0;e<m;e++){const a=c+i*Math.min(t,e),m=x-o*Math.min(n,e),p=(0,f.projectWithoutEngine)(new l.A({x:a,y:m,spatialReference:r}),r,s);e<=t&&h.push(p.x),e<=n&&u.push(p.y)}const p=[];for(let e=0;e<t;e++)for(let t=0;t<n;t++)p.push([h[e],u[t]]);return p}(e);if(i){if(t.isGeographic)return G(e);if(null!=N(t))return G(e)}return function(e){const{points:t}=v(e,null),{inSR:n,outSR:i,datumTransformation:o}=e,a=t.map(e=>new l.A(e[0],e[1],n)),r=M.projectExecuteMany(a,i,{geographicTransformation:o});return o&&T(a,r,n,i),r.map(e=>e?[e.x,e.y]:[NaN,NaN])}(e)}function G(e){const{inSR:t,outSR:n,datumTransformation:i}=e,o=N(t),{points:a,mask:r}=v(e,o);if(!t.isGeographic){const e=t.wkid?s.P.coordsys(t.wkid):s.P.fromString(t.isGeographic?s.a.PE_TYPE_GEOGCS:s.a.PE_TYPE_PROJCS,t.wkt2||t.wkt);s.c.projToGeog(e,a.length,a)}if(null!=i&&i.steps.length){let e;const t=179.9955;if(n.isGeographic&&(e=a.map(([e])=>e>t?1:e<-t?-1:0)),i.steps.forEach(e=>{const t=e.wkid?s.P.geogtran(e.wkid):s.P.fromString(s.a.PE_TYPE_GEOGTRAN,e.wkt);s.d.geogToGeog(t,a.length,a,null,e.isInverse?s.a.PE_TRANSFORM_2_TO_1:s.a.PE_TRANSFORM_1_TO_2)}),e)for(let n=0;n<a.length;n++){const i=e[n],o=a[n][0],r=o>t?1:o<-t?-1:0;i&&r&&i!==r&&(a[n][0]=i>0?o+360:o-360)}}if(!n.isGeographic){const e=N(n,!0),t=null!=e&&e.isEnvelope?[e.bbox[1],e.bbox[3]]:[-90,90];!function(e,t){const[n,i]=t;for(let t=0;t<e.length;t++){const o=e[t][1];(o<n||o>i)&&(e[t]=[NaN,NaN])}}(a,t);const i=n.wkid?s.P.coordsys(n.wkid):s.P.fromString(n.isGeographic?s.a.PE_TYPE_GEOGCS:s.a.PE_TYPE_PROJCS,n.wkt2||n.wkt);s.c.geogToProj(i,a.length,a)}let l=a;if(r&&a.length!==r.length){l=[];for(let e=0,t=0;e<r.length;e++)r[e]?l.push(a[t++]):l.push([NaN,NaN])}return l}function N(e,t=!1){let n=e.wkid||e.wkt2||e.wkt;if(!n||e.isGeographic)return null;if(n=String(n),g.has(n)){const e=g.get(n);return t?e?.gcs:e?.pcs}const i=e.wkid?s.P.coordsys(e.wkid):s.P.fromString(e.isGeographic?s.a.PE_TYPE_GEOGCS:s.a.PE_TYPE_PROJCS,e.wkt2||e.wkt),o=C(i,b(e,1e-4)),a=C(i,0,!0);return g.set(n,{pcs:o,gcs:a}),t?a:o}function C(e,t=0,n=!1){const i=s.b.generate(e),o=n?e.horizonGcsGenerate():e.horizonPcsGenerate();if(!i||!o?.length)return null;let a=!1,r=o.find(e=>1===e.getInclusive()&&1===e.getKind());if(!r){if(r=o.find(e=>1===e.getInclusive()&&0===e.getKind()),!r)return null;a=!0}const l=n?0:(2===i.getNorthPoleLocation()?1:0)|(2===i.getSouthPoleLocation()?2:0),c=i.isPannableRectangle(),f=r.getCoord();if(a)return{isEnvelope:a,isPannable:c,vertices:f,coef:null,bbox:[f[0][0]-t,f[0][1]-t,f[1][0]+t,f[1][1]+t],poleLocation:l};let x=0;const h=[];let[u,m]=f[0],[p,g]=f[0];for(let e=0,t=f.length;e<t;e++){x++,x===t&&(x=0);const[n,i]=f[e],[o,a]=f[x];if(a===i)h.push([n,o,i,a,2]);else{const e=(o-n)/(a-i||1e-4),t=n-e*i;i<a?h.push([e,t,i,a,0]):h.push([e,t,a,i,1])}u=u<n?u:n,m=m<i?m:i,p=p>n?p:n,g=g>i?g:i}return{isEnvelope:!1,isPannable:c,vertices:f,coef:h,bbox:[u,m,p,g],poleLocation:l}}function v(e,t){const n=[],{cols:i,rows:o,xres:a,yres:r,usePixelCenter:s}=e;let{xmin:l,ymax:c}=e;if(s&&(l+=a/2,c-=r/2),null==t){for(let e=0;e<i;e++)for(let t=0;t<o;t++)n.push([l+a*e,c-r*t]);return{points:n}}const f=new Uint8Array(i*o);if(t.isEnvelope){const{isPannable:e,bbox:[s,x,h,u]}=t;for(let t=0,m=0;t<i;t++){const i=l+a*t,p=e||i>=s&&i<=h;for(let e=0;e<o;e++,m++){const t=c-r*e;p&&t>=x&&t<=u&&(n.push([i,t]),f[m]=1)}}return{points:n,mask:f}}const x=t.coef,h=[];for(let e=0;e<o;e++){const t=c-r*e,n=[],i=[];for(let e=0;e<x.length;e++){const[o,a,r,s,l]=x[e];if(t===r&&r===s)n.push(o),n.push(a),i.push(2),i.push(2);else if(t>=r&&t<=s){const e=o*t+a;n.push(e),i.push(l)}}let o=n;if(n.length>2){let e=2===i[0]?0:i[0],t=n[0];o=[];for(let a=1;a<i.length;a++)2===i[a]&&a!==i.length-1||(i[a]!==e&&(o.push(0===e?Math.min(t,n[a-1]):Math.max(t,n[a-1])),e=i[a],t=n[a]),a===i.length-1&&o.push(0===i[a]?Math.min(t,n[a]):Math.max(t,n[a])));o.sort((e,t)=>e-t)}else n[0]>n[1]&&(o=[n[1],n[0]]);h.push(o)}for(let e=0,t=0;e<i;e++){const i=l+a*e;for(let e=0;e<o;e++,t++){const o=c-r*e,a=h[e];if(2===a.length)i>=a[0]&&i<=a[1]&&(n.push([i,o]),f[t]=1);else if(a.length>2){let e=!1;for(let t=0;t<a.length;t+=2)if(i>=a[t]&&i<=a[t+1]){e=!0;break}e&&(n.push([i,o]),f[t]=1)}}}return{points:n,mask:f}}function _(e,t,n=null,o=!0){const a=e.spatialReference;if(a.equals(t)||!t)return e;const s=W(e),l=I(a,!0),f=I(t);if(0===s||null==l||null==f){const i=z(e,t,n,o);if(i&&null==l&&null!=f&&Math.abs(i.width-f)<b(t)&&M.projectIsLoaded()){const n=N(a);if(null!=n&&0===n.poleLocation&&e.width<(n.bbox[2]-n.bbox[0])/2)return function(e,t){const n=I(t);if(null==n)return null;let{xmin:i,ymin:o,xmax:a,ymax:s}=e;const l=e.spatialReference,f=new c.A({spatialReference:l,rings:[[[i,o],[a,o],[a,s],[i,s],[i,o]]]}),x=M.projectExecute(f,t);if(2!==x.rings.length||!x.rings[0].length||!x.rings[1].length)return null;const{rings:h}=x,u=b(l),m=new r.A({spatialReference:t});for(let e=0;e<2;e++){i=a=h[e][0][0],o=s=h[e][0][1];for(let t=0;t<h[e].length;t++)i=i>h[e][t][0]?h[e][t][0]:i,a=a<h[e][t][0]?h[e][t][0]:a,o=o>h[e][t][1]?h[e][t][1]:o,s=s<h[e][t][1]?h[e][t][1]:s;if(0===e)m.ymin=o,m.ymax=s,m.xmin=i,m.xmax=a;else if(m.ymin=Math.min(m.ymin,o),m.ymax=Math.max(m.ymax,s),Math.abs(a-n/2)<u)m.xmin=i,m.xmax=m.xmax+n;else{if(!(Math.abs(i+n/2)<u))return null;m.xmax=a+n}}return m}(e,t)||i}return i}const x=e.clone().normalize();if(1===x.length&&e.xmax<l&&e.xmax-l/2>b(a)){const{xmin:t,xmax:n}=e;for(let i=0;i<=s;i++){const o=0===i?t:-l/2,c=i===s?n-l*i:l/2;x[i]=new r.A({xmin:o,xmax:c,ymin:e.ymin,ymax:e.ymax,spatialReference:a})}}const h=x.map(e=>z(e,t,n,o)).filter(i.Ru);return 0===h.length?null:function(e,t){const n=I(e[0].spatialReference);if(e.length<2||null==n)return e[0];if(t=t??b(e[0].spatialReference),1===(e=e.filter(e=>e.width>t)).length)return e[0];let{xmin:i,xmax:o,ymin:a,ymax:s}=e[0];for(let t=1;t<e.length;t++){const i=e[t];o=i.xmax+n*t,a=Math.min(a,i.ymin),s=Math.max(s,i.ymax)}return new r.A({xmin:i,xmax:o,ymin:a,ymax:s,spatialReference:e[0].spatialReference})}(h)}function j(e,t,n){if("extent"===e.type){const{xmin:t,ymin:n,xmax:i,ymax:o,spatialReference:a}=e;e=new c.A({rings:[[[t,o],[i,o],[i,n],[t,n],[t,o]]],spatialReference:a})}return e.spatialReference.equals(t)?e:(u(),M.projectExecute(e,t,{geographicTransformation:n}))}function z(e,t,n,i=!0,o=!0){const a=e.spatialReference;if(a.equals(t)||!t)return e;u();const r=M.projectExecute(e,t,{geographicTransformation:n});if(o&&t.isWebMercator&&r&&(r.ymax=Math.min(20037508.342787,r.ymax),r.ymin=Math.max(-20037508.342787,r.ymin),r.ymin>=r.ymax))return null;if(!i||!r)return r;const s=L(a,!0),c=L(t,!0);if(null==s||null==c)return r;const f=b(a,.001),x=b(a,d),h=b(t,.001);if(Math.abs(r.xmin-c[0])<h&&Math.abs(r.xmax-c[1])<h){const i=Math.abs(e.xmin-s[0]),o=Math.abs(s[1]-e.xmax);if(i<f&&o>x){r.xmin=c[0];const i=[];i.push(new l.A(e.xmax,e.ymin,a)),i.push(new l.A(e.xmax,(e.ymin+e.ymax)/2,a)),i.push(new l.A(e.xmax,e.ymax,a));const o=i.map(e=>E(e,t,n)).filter(e=>!isNaN(e?.x)).map(e=>e.x);r.xmax=Math.max.apply(null,o)}if(o<f&&i>x){r.xmax=c[1];const i=[];i.push(new l.A(e.xmin,e.ymin,a)),i.push(new l.A(e.xmin,(e.ymin+e.ymax)/2,a)),i.push(new l.A(e.xmin,e.ymax,a));const o=i.map(e=>E(e,t,n)).filter(e=>!isNaN(e?.x)).map(e=>e.x);r.xmin=Math.min.apply(null,o)}}else{const e=b(t,.001);Math.abs(r.xmin-c[0])<e&&(r.xmin=c[0]),Math.abs(r.xmax-c[1])<e&&(r.xmax=c[1])}return r}function I(e,t=!1){if(!e)return null;const n=t?20037508.342787:20037508.342788905;return e.isWebMercator?2*n:e.wkid&&e.isGeographic?360:2*p[e.wkid]||null}function L(e,t=!1){if(e.isGeographic)return[-180,180];const n=I(e,t);return n?[-n/2,n/2]:null}function O(e,t,n,i){let o=(e-t)/n;return o-Math.floor(o)!==0?o=Math.floor(o):i&&(o-=1),o}function W(e,t=!1){const n=I(e.spatialReference);if(null==n)return 0;const i=t?0:-n/2,o=b(e.spatialReference),a=!t&&Math.abs(e.xmax-n/2)<o?n/2:e.xmax,r=!t&&Math.abs(e.xmin+n/2)<o?-n/2:e.xmin;return O(a,i,n,!0)-O(r,i,n,!1)}function F(e){const t=e.storageInfo.origin.x,n=I(e.spatialReference,!0);if(null==n)return{originX:t,halfWorldWidth:null,pyramidsInfo:null};const i=n/2,{nativePixelSize:o,storageInfo:a,extent:r}=e,{maximumPyramidLevel:s,blockWidth:l,pyramidScalingFactor:c}=a;let f=o.x;const x=[],h=null!=e.transform&&"gcs-shift"===e.transform.type,u=t+(h?0:i),m=h?n-t:i-t;for(let e=0;e<=s;e++){const e=(r.xmax-t)/f/l,n=e-Math.floor(e)===0?e:Math.ceil(e),i=m/f/l,o=i-Math.floor(i)===0?i:Math.ceil(i),a=Math.floor(u/f/l),s=Math.round(u/f)%l,h=(l-Math.round(m/f)%l)%l;x.push({resolutionX:f,blockWidth:l,datasetColumnCount:n,worldColumnCountFromOrigin:o,leftMargin:s,rightPadding:h,originColumnOffset:a}),f*=c}return{originX:t,halfWorldWidth:i,pyramidsInfo:x,hasGCSSShiftTransform:h}}function Y(e){const t=e.isAdaptive&&null==e.spacing;let n=e.spacing||[32,32],i=q(e),o={cols:i.size[0]+1,rows:i.size[1]+1};const a=i.outofBoundPointCount>0&&i.outofBoundPointCount<i.offsets.length/2;let r=i.outofBoundPointCount===i.offsets.length/2||t&&a?[0,0]:m(i.offsets,o,n,4);const l=(r[0]+r[1])/2,c=e.projectedExtent.spatialReference,f=e.srcBufferExtent.spatialReference;if(t&&(a||l>4)&&(c.isGeographic||N(c),n=[4,4],i=q({...e,spacing:n}),o={cols:i.size[0]+1,rows:i.size[1]+1},r=m(i.offsets,o,n,4)),i.error=r,n[0]>1&&(i.coefficients=B(i.offsets,o,a)),e.includeGCSGrid&&!c.isGeographic&&!c.isWebMercator)if(f.isGeographic)i.gcsGrid={offsets:i.offsets,coefficients:i.coefficients,spacing:n};else{const t=N(c);if(null!=t&&!t.isEnvelope){const t=function(e){if(!e||e.isGeographic)return e;const t=String(e.wkid||e.wkt2||e.wkt);let n;return y.has(t)?n=y.get(t):(n=(e.wkid?s.P.coordsys(e.wkid):s.P.fromString(s.a.PE_TYPE_PROJCS,e.wkt2||e.wkt)).getGeogcs().getCode(),y.set(t,n)),new x.A({wkid:n})}(c),r=_(e.projectedExtent,t),{offsets:l}=q({...e,srcBufferExtent:r,spacing:n}),f=B(l,o,a);i.gcsGrid={offsets:l,coefficients:f,spacing:n}}}return i}function q(e){const{projectedExtent:t,srcBufferExtent:n,pixelSize:i,datumTransformation:o,rasterTransform:a}=e,r=t.spatialReference,s=n.spatialReference;u();const{xmin:c,ymin:f,xmax:x,ymax:h}=t,m=I(s),p=null!=m&&(e.hasWrapAround||"gcs-shift"===a?.type),g=e.spacing||[32,32],y=g[0]*i.x,w=g[1]*i.y,M=1===g[0],R=Math.ceil((x-c)/y-.1/g[0])+(M?0:1),P=Math.ceil((h-f)/w-.1/g[1])+(M?0:1),k=S({cols:R,rows:P,xmin:c,ymax:h,xres:y,yres:w,inSR:r,outSR:s,datumTransformation:o,preferPE:g[0]<=4,usePixelCenter:M}),A=[];let E,T=0;const G=M?-1:NaN,{xmin:C,xmax:v,ymax:_,width:j,height:z}=n,L=b(s,d),O=null!=m&&C>0&&v>m/2,W=N(r),F=null!=W&&W.poleLocation>0;for(let e=0;e<R;e++){const t=[];for(let n=0;n<P;n++){let i=k[e*P+n];if(p&&i[0]>v&&i[0]>m/2-L?i[0]-=m:p&&0===e&&i[0]<0&&O&&!a&&(i[0]+=m),!i||isNaN(i[0])||isNaN(i[1]))A.push(G),A.push(G),t.push(null),T++;else{if(a){const e=a.inverseTransform(new l.A({x:i[0],y:i[1],spatialReference:s}));i=[e.x,e.y]}t.push(i),e>0&&p&&E[n]&&i[0]<E[n][0]&&(i[0]+=m,F&&i[0]>v&&i[0]>m&&(i[0]-=m)),A.push((i[0]-C)/j),A.push((_-i[1])/z)}}E=t}return{offsets:A,error:null,coefficients:null,outofBoundPointCount:T,spacing:g,size:M?[R,P]:[R-1,P-1]}}function B(e,t,n){const{cols:i,rows:o}=t,a=new Float32Array((i-1)*(o-1)*2*6),r=new Float32Array([-0,-1,1,-1,1,-0,1,-0,-0]),s=new Float32Array([-1,1,0,0,-1,1,1,0,0]);for(let t=0;t<i-1;t++){for(let n=0;n<o-1;n++){let l=t*o*2+2*n;const c=e[l],f=e[l+1],x=e[l+2],h=e[l+3];l+=2*o;const u=e[l],m=e[l+1],p=e[l+2],g=e[l+3];let y=0,d=12*(n*(i-1)+t);for(let e=0;e<3;e++)a[d++]=r[y++]*c+r[y++]*x+r[y++]*p;y=0;for(let e=0;e<3;e++)a[d++]=r[y++]*f+r[y++]*h+r[y++]*g;y=0;for(let e=0;e<3;e++)a[d++]=s[y++]*c+s[y++]*u+s[y++]*p;y=0;for(let e=0;e<3;e++)a[d++]=s[y++]*f+s[y++]*m+s[y++]*g}if(n)for(let e=0;e<a.length;e++)isNaN(a[e])&&(a[e]=-1)}return a}function U(e){const{spatialReference:t}=e,n=(0,h.Vp)(t);if(!n)return e;const[i,o]=n.valid,a=o-i;let s=0;if(e.xmin<i){const t=i-e.xmin;s=Math.ceil(t/a)}else if(e.xmin>o){const t=e.xmin-o;s=-Math.ceil(t/a)}return new r.A({spatialReference:e.spatialReference,xmin:e.xmin+s*a,ymin:e.ymin,xmax:e.xmax+s*a,ymax:e.ymax})}function J(e,t,n){const{storageInfo:i,pixelSize:o}=t;let r=0,s=!1;const{pyramidResolutions:c}=i,f="mixed"===i.tileInfo.format?.toLowerCase()?Math.max(1,Math.min(3,i.tileInfo.dpi/96)):1,x=(e.x+e.y)/2/f;if(null!=c&&c.length){const e=c[c.length-1],i=(e.x+e.y)/2,f=(o.x+o.y)/2;if(x<=f)r=0;else if(x>=i)r=c.length,s=x/i>8;else{let e,t=f;for(let i=1;i<=c.length;i++){if(e=(c[i-1].x+c[i-1].y)/2,x<=e){x===e?r=i:"down"===n?(r=i-1,s=x/t>8):r="up"===n||x-t>e-x||x/t>2?i:i-1;break}t=e}}const h=0===r?o:c[r-1];return s&&Math.min(h.x,h.y)*(0,a.GA)(t.spatialReference)>19567&&(s=!1),{pyramidLevel:r,pyramidResolution:new l.A({x:h.x,y:h.y,spatialReference:t.spatialReference}),excessiveReading:s}}const h=Math.log(e.x/o.x)/Math.LN2,u=Math.log(e.y/o.y)/Math.LN2,m=t.storageInfo.maximumPyramidLevel||0;r="down"===n?Math.floor(Math.min(h,u)):"up"===n?Math.ceil(Math.max(h,u)):Math.round((h+u)/2),r<0?r=0:r>m&&(s=r>m+3,r=m);const p=2**r;return{pyramidLevel:r,pyramidResolution:new l.A({x:p*t.nativePixelSize.x,y:p*t.nativePixelSize.y,spatialReference:t.spatialReference}),excessiveReading:s}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3885,6266,9397],{69540(t,e,i){var s=i(32198),r=i(69622),n=(i(44208),i(4718)),o=(i(53966),i(97768)),a=i(88620),l=i(64108);const h=Symbol("ClonableMixin"),u=t=>{var e;const i=t;let r=class extends i{constructor(){super(...arguments),this[e]=!0}static{e=h}clone(t){const e=(0,a.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");const i=e.metadata,s=e.store,r={},l=new Map;for(const e in i){const o=i[e],a=s?.originOf(e),h=o.clonable;if(o.readOnly||!1===h||7!==a&&0!==a&&5!==a&&4!==a)continue;const u=this[e];let c=null;if("function"==typeof h)c=h(u,t);else if("reference"===h)c=u;else if(c=(0,n.TU)(u,t),null!=u&&null==c)continue;0===a?l.set(e,c):r[e]=c}const h=new(0,Object.getPrototypeOf(this).constructor)(r);if(l.size){const t=(0,a.oY)(h)?.store;if(t)for(const[e,i]of l)t.set(e,i,0)}return h}};return r=(0,s.Cg)([(0,l.$)("esri.core.Clonable")],r),r},c=u(r.A);i.d(e,["OU",0,u,"Pw",0,c])},7762(t,e,i){var s,r=i(32198),n=i(98291),o=i(4576),a=i(65529),l=i(36563),h=i(4718),u=i(53966),c=i(93687),d=i(76030),p=i(56507),m=i(62788),f=i(10107),g=i(7695),y=i(64108),_=i(95488),v=i(12195);class b{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(t){this.defaultPrevented=!1,this.item=t}}class w{constructor(t,e,i,s,r){this.target=t,this.added=e,this.removed=i,this.start=s,this.deleteCount=r}}const C=new c.A(()=>new b,void 0,t=>{t.item=null,t.target=null,t.defaultPrevented=!1,t.cancellable=!1});function A(t){t&&"object"==typeof t&&"destroy"in t&&"function"==typeof t.destroy&&t.destroy()}function S(t){return t?t instanceof x?t.toArray():t.length?Array.prototype.slice.apply(t):[]:[]}function M(t){if(t?.length)return t[0]}function E(t,e,i,s){const r=Math.min(t.length-i,e.length-s);let n=0;for(;n<r&&t[i+n]===e[s+n];)n++;return n}function P(t,e,i,s){e&&e.forEach((e,r,n)=>{t.push(e),P(t,i.call(s,e,r,n),i,s)})}const T=new Set,I=new Set,L=new Set,z=new Map;let R=0,x=s=class extends a.nJ{static ofType(t){if(!t)return s;if(z.has(t))return z.get(t);let e=null;if("function"==typeof t)e=t.prototype.declaredClass;else if(t.base)e=t.base.prototype.declaredClass;else for(const i in t.typeMap){const s=t.typeMap[i].prototype.declaredClass;e?e+=` | ${s}`:e=s}let i=class extends s{};return(0,r.Cg)([(0,g.u)({Type:t,ensureType:"function"==typeof t?(0,p.dp)(t):(0,p.aq)(t)})],i.prototype,"itemType",void 0),i=(0,r.Cg)([(0,y.$)(`esri.core.Collection<${e}>`)],i),z.set(t,i),i}static isCollection(t){return null!=t&&t instanceof s}constructor(t){super(t),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new _.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:R++})}normalizeCtorArgs(t){return t?(0,o.yc)(t)||t instanceof s?{items:t}:t:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(t){t>this._length?u.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(t,Math.max(0,this._length-t))}get items(){return(0,m.gc)(this._observable),this._items}set items(t){this._emitBeforeChanges(1)||(this._splice(0,this.length,S(t)),this._emitAfterChanges(1))}hasEventListener(t){return!this.destroyed&&("change"===t?this._chgListeners.length>0:super.hasEventListener(t))}on(t,e){if(this.destroyed)return(0,l.hA)();if("change"===t){const t=this._chgListeners,i={removed:!1,callback:e};return t.push(i),this._notifications&&this._notifications.push({listeners:t.slice(),items:this._items.slice(),changes:[]}),(0,l.hA)(()=>{i.removed=!0,t.splice(t.indexOf(i),1)})}return super.on(t,e)}once(t,e){const i="deref"in e?()=>e.deref():()=>e,s=this.on(t,t=>{i()?.call(null,t),s.remove()});return s}add(t,e){if((0,m.gc)(this._observable),this._emitBeforeChanges(1))return this;const i=this.getNextIndex(e??null);return this._splice(i,0,[t]),this._emitAfterChanges(1),this}addMany(t,e=this._items.length){if((0,m.gc)(this._observable),!t?.length)return this;if(this._emitBeforeChanges(1))return this;const i=this.getNextIndex(e);return this._splice(i,0,S(t)),this._emitAfterChanges(1),this}at(t){if((0,m.gc)(this._observable),(t=Math.trunc(t)||0)<0&&(t+=this.length),!(t<0||t>=this.length))return this._items[t]}removeAll(){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];const t=this._removeAllRaw();return this._emitAfterChanges(2),t}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,m.gc)(this._observable),this._createNewInstance({items:this._items.map(h.o8)})}concat(...t){(0,m.gc)(this._observable);const e=t.map(S);return this._createNewInstance({items:this._items.concat(...e)})}drain(t,e){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const i=this._splice(0,this.length),s=i.length;for(let r=0;r<s;r++)t.call(e,i[r],r,i);this._emitAfterChanges(2)}destroyAll(){this.drain(A)}destroyMany(t){const e=this.removeMany(t);return e.forEach(A),e}every(t,e){return(0,m.gc)(this._observable),this._items.every(t,e)}filter(t,e){(0,m.gc)(this._observable);const i=2===arguments.length?this._items.filter(t,e):this._items.filter(t);return this._createNewInstance({items:i})}find(t,e){return(0,m.gc)(this._observable),this._items.find(t,e)}findIndex(t,e){return(0,m.gc)(this._observable),this._items.findIndex(t,e)}findLast(t,e){return(0,m.gc)(this._observable),this._items.findLast(t,e)}findLastIndex(t,e){return(0,m.gc)(this._observable),this._items.findLastIndex(t,e)}flatten(t,e){(0,m.gc)(this._observable);const i=[];return P(i,this,t,e),new s(i)}forEach(t,e){return(0,m.gc)(this._observable),this._items.forEach(t,e)}getItemAt(t){return(0,m.gc)(this._observable),this._items[t]}getNextIndex(t){(0,m.gc)(this._observable);const e=this.length;return(t=t??e)<0?t=0:t>e&&(t=e),t}includes(t,e=0){return(0,m.gc)(this._observable),this._items.includes(t,e)}indexOf(t,e=0){return(0,m.gc)(this._observable),this._items.indexOf(t,e)}join(t=","){return(0,m.gc)(this._observable),this._items.join(t)}lastIndexOf(t,e=this.length-1){return(0,m.gc)(this._observable),this._items.lastIndexOf(t,e)}map(t,e){(0,m.gc)(this._observable);const i=this._items.map(t,e);return new s({items:i})}reorder(t,e=this.length-1){(0,m.gc)(this._observable);const i=this.indexOf(t);if(-1!==i){if(e<0?e=0:e>=this.length&&(e=this.length-1),i!==e){if(this._emitBeforeChanges(4))return t;this._splice(i,1),this._splice(e,0,[t]),this._emitAfterChanges(4)}return t}}pop(){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const t=M(this._splice(this.length-1,1));return this._emitAfterChanges(2),t}push(...t){return(0,m.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,t),this._emitAfterChanges(1)),this.length}reduce(t,e){(0,m.gc)(this._observable);const i=this._items;return 2===arguments.length?i.reduce(t,e):i.reduce(t)}reduceRight(t,e){(0,m.gc)(this._observable);const i=this._items;return 2===arguments.length?i.reduceRight(t,e):i.reduceRight(t)}remove(t){return(0,m.gc)(this._observable),this.removeAt(this.indexOf(t))}removeAt(t){if((0,m.gc)(this._observable),t<0||t>=this.length||this._emitBeforeChanges(2))return;const e=M(this._splice(t,1));return this._emitAfterChanges(2),e}removeMany(t){if((0,m.gc)(this._observable),!t?.length||this._emitBeforeChanges(2))return[];const e=t instanceof s?t.toArray():t,i=this._items,r=[],n=e.length;for(let t=0;t<n;t++){const s=e[t],n=i.indexOf(s);if(n>-1){const s=1+E(e,i,t+1,n+1),o=this._splice(n,s);o&&o.length>0&&r.push.apply(r,o),t+=s-1}}return this._emitAfterChanges(2),r}reverse(){if((0,m.gc)(this._observable),this._emitBeforeChanges(4))return this;const t=this._splice(0,this.length);return t&&(t.reverse(),this._splice(0,0,t)),this._emitAfterChanges(4),this}shift(){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const t=M(this._splice(0,1));return this._emitAfterChanges(2),t}slice(t=0,e=this.length){return(0,m.gc)(this._observable),this._createNewInstance({items:this._items.slice(t,e)})}some(t,e){return(0,m.gc)(this._observable),this._items.some(t,e)}sort(t){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(t))return this;const e=this._splice(0,this.length);return arguments.length?e.sort(t):e.sort(),this._splice(0,0,e),this._emitAfterChanges(4),this}_requiresSort(t=(t,e)=>t===e?0:t<e?-1:1){const e=this.length-1;for(let i=0;i<e;i++)if(t(this.items[i],this.items[i+1])>0)return!0;return!1}splice(t,e,...i){(0,m.gc)(this._observable),1===arguments.length&&(e=this.length),e??=0;const s=(e?2:0)|(i.length?1:0);if(this._emitBeforeChanges(s))return[];const r=this._splice(t,e,i)||[];return this._emitAfterChanges(s),r}toArray(){return(0,m.gc)(this._observable),this._items.slice()}toJSON(t){return(0,m.gc)(this._observable),this.toArray().map(e=>(0,v.W)(e)?e.toJSON(t):e)}toLocaleString(){return(0,m.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,m.gc)(this._observable),this._items.toString()}unshift(...t){return(0,m.gc)(this._observable),!t.length||this._emitBeforeChanges(1)||(this._splice(0,0,t),this._emitAfterChanges(1)),this.length}_createNewInstance(t){return new this.constructor(t)}_splice(t,e,i){const s=this._items,r=this.itemType;let n,o;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,d._)(()=>this._dispatchChange())),t<0&&(t+=this.length),e){if(o=s.splice(t,e),this.hasEventListener("before-remove")){const e=C.acquire();e.target=this,e.cancellable=!0;for(let i=0,r=o.length;i<r;i++)n=o[i],e.reset(n),this.emit("before-remove",e),e.defaultPrevented&&(o.splice(i,1),s.splice(t,0,n),t+=1,i-=1,r-=1);C.release(e)}if(this._length=this._items.length,this.hasEventListener("after-remove")){const t=C.acquire();t.target=this,t.cancellable=!1;const e=o.length;for(let i=0;i<e;i++)t.reset(o[i]),this.emit("after-remove",t);C.release(t)}}if(i?.length){if(r){const t=[];for(const e of i){const i=r.ensureType(e);null==i&&null!=e||t.push(i)}i=t}const e=this.hasEventListener("before-add"),n=this.hasEventListener("after-add"),o=t===this.length;if(e||n){const r=C.acquire();r.target=this,r.cancellable=!0;const a=C.acquire();a.target=this,a.cancellable=!1;for(const l of i)e?(r.reset(l),this.emit("before-add",r),r.defaultPrevented||(o?s.push(l):s.splice(t++,0,l),this._length=s.length,n&&(a.reset(l),this.emit("after-add",a)))):(o?s.push(l):s.splice(t++,0,l),this._length=s.length,a.reset(l),this.emit("after-add",a));C.release(a),C.release(r)}else{if(o)for(const t of i)s.push(t);else s.splice(t,0,...i);this._length=s.length}}if((i?.length||o?.length)&&this._notifyChangeEvent(i,o),this.hasEventListener("after-splice")){const s=new w(this,i,o,t,e);this.emit("after-splice",s)}return o}_emitBeforeChanges(t){let e=!1;if(this.hasEventListener("before-changes")){const i=C.acquire();i.target=this,i.cancellable=!0,i.type=t,this.emit("before-changes",i),e=i.defaultPrevented,C.release(i)}return e}_emitAfterChanges(t){if(this.hasEventListener("after-changes")){const e=C.acquire();e.target=this,e.cancellable=!1,e.type=t,this.emit("after-changes",e),C.release(e)}this._observable.notify()}_notifyChangeEvent(t,e){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:t,removed:e})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const t=this._notifications;this._notifications=null;for(const e of t){const t=e.changes;T.clear(),I.clear(),L.clear();for(const{added:e,removed:i}of t){if(e)if(0===L.size&&0===I.size)for(const t of e)T.add(t);else for(const t of e)I.has(t)?(L.add(t),I.delete(t)):L.has(t)||T.add(t);if(i)if(0===L.size&&0===T.size)for(const t of i)I.add(t);else for(const t of i)T.has(t)?T.delete(t):(L.delete(t),I.add(t))}const i=n.A.acquire();T.forEach(t=>{i.push(t)});const s=n.A.acquire();I.forEach(t=>{s.push(t)});const r=this._items,o=e.items,a=n.A.acquire();if(L.forEach(t=>{o.indexOf(t)!==r.indexOf(t)&&a.push(t)}),e.listeners&&(i.length||s.length||a.length)){const t={target:this,added:i,removed:s,moved:a},r=e.listeners.length;for(let i=0;i<r;i++){const s=e.listeners[i];s.removed||s.callback.call(this,t)}}n.A.release(i),n.A.release(s),n.A.release(a)}T.clear(),I.clear(),L.clear()}};(0,r.Cg)([(0,f.MZ)()],x.prototype,"_updating",void 0),(0,r.Cg)([(0,f.MZ)()],x.prototype,"_length",void 0),(0,r.Cg)([(0,f.MZ)()],x.prototype,"length",null),(0,r.Cg)([(0,f.MZ)()],x.prototype,"items",null),(0,r.Cg)([(0,f.MZ)({readOnly:!0})],x.prototype,"updating",null),x=s=(0,r.Cg)([(0,y.$)("esri.core.Collection")],x);const D=x;i.d(e,["A",0,D])},4902(t,e,i){var s=i(32198),r=i(64108);let n=0;const o=t=>{const e=t;let i=class extends e{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+n++})}};return i=(0,s.Cg)([(0,r.$)("esri.core.Identifiable")],i),i};o(class{}),i.d(e,["s",0,o])},66344(t,e,i){i.d(e,{q:()=>a});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,o){e=t.id+e;const a=this._db.get(e);if(a&&(this._size-=a.size,t.size-=a.size,this._db.delete(e),a.entry!==i&&this._notifyRemove(e,a.entry,a.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 l=1+Math.max(o,-4)- -3;this._db.set(e,new n(i,r,l)),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(o)[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,a]of this._db)if(0===a.lifetime&&(!s||n.startsWith(s))){const s=e??this._clients.get(n.split(o)[0]);if(this._purgeItem(n,a,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(o)[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 o=":";class a{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(){}}},7695(t,e,i){function s(t){return(e,i)=>{e[i]=t}}i.d(e,{u:()=>s})},60999(t,e,i){i.d(e,{DZ:()=>m,Ke:()=>p,Tj:()=>u,UT:()=>f,aD:()=>y,jJ:()=>h});var s=i(32198),r=i(69622),n=i(97768),o=i(17676),a=i(10107),l=i(64108);function h(t,e,i){return(0,o.Lx)(t.map((t,s)=>e.apply(i,[t,s])))}async function u(t,e,i){return(await(0,o.Lx)(t.map((t,s)=>e.apply(i,[t,s])))).map(t=>t.value)}function c(t){return{ok:!0,value:t}}function d(t){return{ok:!1,error:t}}async function p(t){if(null==t)return{ok:!1,error:new Error("no promise provided")};try{return c(await t)}catch(t){return d(t)}}async function m(t){try{return c(await t)}catch(t){return(0,o.QP)(t),d(t)}}function f(t,e){return new g(t,e)}let g=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=d(t),this._cleanup()}),this._abortHandle=(0,o.u7)(e,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,n.xt)(this._abortHandle),this._abortController=null}};(0,s.Cg)([(0,a.MZ)()],g.prototype,"value",null),(0,s.Cg)([(0,a.MZ)()],g.prototype,"error",null),(0,s.Cg)([(0,a.MZ)()],g.prototype,"finished",null),(0,s.Cg)([(0,a.MZ)()],g.prototype,"promise",void 0),(0,s.Cg)([(0,a.MZ)()],g.prototype,"_result",void 0),g=(0,s.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],g);class y{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:()=>a,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+=o(t[i],!1));return e}function n(t){if(!t)return 0;if("number"==typeof t[0])return a(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return l(t,8);let i=u;for(let s=0;s<e;s++)i+=o(t[s]);return i}(t);let e=h;for(const i in t)t.hasOwnProperty(i)&&(e+=o(t[i]));return e}function o(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 a(...t){return t.reduce((t,e)=>t+(e?(0,s.iu)(e)?e.byteLength+c:Array.isArray(e)?l(e,16):0:0),0)}function l(t,e){return u+t.length*e}const h=32,u=16,c=145},36708(t,e,i){i.d(e,{C_:()=>d,on:()=>c,wB:()=>l,z7:()=>h});var s=i(37955),r=i(36563),n=i(97768),o=i(17676),a=i(14012);function l(t,e,i={}){return u(t,e,i,p)}function h(t,e,i={}){return u(t,e,i,m)}function u(t,e,i={},s){let r=null;const o=i.once?(t,i)=>{s(t)&&((0,n.xt)(r),e(t,i))}:(t,i)=>{s(t)&&e(t,i)};if(r=(0,a.Cn)(t,o,i.sync,i.equals),i.initial){const e=t();o(e,e)}return r}function c(t,e,i,o={}){let a=null,h=null,u=null;function c(){a&&h&&(h.remove(),o.onListenerRemove?.(a),a=null,h=null)}function d(t){o.once&&o.once&&(0,n.xt)(u),i(t)}const p=l(t,(t,i)=>{c(),(0,s.wb)(t)&&(a=t,h=(0,s.on)(t,e,d),o.onListenerAdd?.(t))},{sync:o.sync,initial:!0});return u=(0,r.hA)(()=>{p.remove(),c()}),u}function d(t,e){return function(t,e,i){if((0,o.G4)(i))return Promise.reject((0,o.NK)());const s=t();if(e?.(s))return Promise.resolve(s);let a=null;function l(){a=(0,n.xt)(a)}return new Promise((s,n)=>{a=(0,r.vE)([(0,o.u7)(i,()=>{l(),n((0,o.NK)())}),u(t,t=>{l(),s(t)},{sync:!1,once:!0},e??p)])})}(t,m,e)}function p(t){return!0}function m(t){return!!t}i(80559),i.d(e,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},88930(t,e,i){i.d(e,{S1:()=>a,VW:()=>l,lL:()=>h,rb:()=>u,t:()=>c});var s=i(97770),r=(i(98623),i(34747));const n=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function a(t,e,i,n="system"){if("unknown"===i)return t;const o=new r.oh((0,s.wj)(n)),a=r.c9.fromJSDate(t,{zone:o}),l="decades"===i||"centuries"===i?"year":function(t){switch(t){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(i);return"decades"===i&&(e*=10),"centuries"===i&&(e*=100),a.plus({[l]:e}).toJSDate()}function l(t,e,i="milliseconds"){const s=t.getTime(),r=c(e,i,"milliseconds");return new Date(s+r)}function h(t,e,i="system"){const{unit:n}=e,o=Math.max(1,Math.trunc(e.value)),a=new r.oh((0,s.wj)(i)),l=r.c9.fromJSDate(t,{zone:a}),h=t=>t-t%o;switch(n){case"milliseconds":return l.startOf("second").plus({millisecond:h(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:h(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:h(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:h(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:h(l.day-1)}).toJSDate();case"weeks":{const t=l.startOf("year").startOf("week"),e=Math.floor(l.diff(t,"weeks").weeks);return t.plus({week:h(e)}).toJSDate()}case"months":return l.startOf("year").plus({month:h(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{const t=l.startOf("year"),e=("decades"===n?10:"centuries"===n?100:1)*o,i=t.year-t.year%e;return t.set({year:i}).toJSDate()}case"unknown":return t}}function u(t){const e=n.exec(t);if(!e)return null;const{hh:i,mm:s,ss:r,ms:a}=e.groups;return Number(i)*o.hours+Number(s)*o.minutes+Number(r||0)*o.seconds+Number(a||0)}function c(t,e,i){return 0===t?0:t*o[e]/o[i]}},83027(t,e,i){const s=i(29953).ho;i.d(e,["h",0,s])},48526(t,e,i){i.d(e,{A:()=>g});var s,r=i(32198),n=i(4576),o=i(4718),a=i(91429),l=i(5443),h=i(91075),u=i(86738),c=i(16930),d=i(90634),p=i(47610),m=i(56993),f=i(43937);let g=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,d.ge)(this);return t?new l.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,o.o8)(this.points)}clone(){const{points:t,spatialReference:e,hasM:i,hasZ:r}=this;return new s({points:(0,o.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,p.v6)}addPoint(t){return(0,m.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,m.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,a.MZ)({readOnly:!0})],g.prototype,"cache",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"extent",null),(0,r.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],g.prototype,"points",void 0),(0,r.Cg)([(0,f.K)("points")],g.prototype,"writePoints",null),g=s=(0,r.Cg)([(0,a.$K)("esri.geometry.Multipoint")],g),g.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,i){i.d(e,{A:()=>m});var s,r=i(32198),n=i(4718),o=i(91429),a=i(5443),l=i(91075),h=i(86738),u=i(16930),c=i(90634),d=i(56993),p=i(43937);let m=s=class extends l.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 a.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,d.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,d.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,o.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,r.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],m.prototype,"curvePaths",void 0),(0,r.Cg)([(0,p.K)("curvePaths")],m.prototype,"writeCurvePaths",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,"paths",void 0),(0,r.Cg)([(0,p.K)("paths")],m.prototype,"writePaths",null),m=s=(0,r.Cg)([(0,o.$K)("esri.geometry.Polyline")],m),m.prototype.toJSON.isDefaultToJSON=!0},60408(t,e,i){function s(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function r(t){return void 0!==t.points}function n(t){return void 0!==t.x&&void 0!==t.y}function o(t){return void 0!==t.paths||void 0!==t.curvePaths}function a(t){return void 0!==t.rings||void 0!==t.curveRings}function l(t){return"object"==typeof t&&"vertexAttributes"in t}function h(t){return t?n(t)?"esriGeometryPoint":o(t)?"esriGeometryPolyline":a(t)?"esriGeometryPolygon":s(t)?"esriGeometryEnvelope":r(t)?"esriGeometryMultipoint":null:null}function u(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function c(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}i.d(e,{$B:()=>h,Bi:()=>a,Pv:()=>u,Rg:()=>o,U9:()=>r,W0:()=>c,ZC:()=>s,fT:()=>n,uW:()=>l})},97770(t,e,i){i.d(e,{Ey:()=>R,F8:()=>z,J2:()=>P,Yq:()=>I,_m:()=>T,iS:()=>L,wj:()=>x});var s=i(66552),r=i(73444),n=i(98623),o=i(34747);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},h={timeZone:"UTC"},u={year:"numeric",month:"numeric",day:"numeric"},c={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},p={year:"numeric",month:"long",weekday:"long",day:"numeric"},m={hour:"numeric",minute:"numeric"},f={...m,second:"numeric"},g={hourCycle:"h23"},y={...m,...g},_={...f,...g},v={"short-date":u,"short-date-short-time":{...u,...m},"short-date-short-time-24":{...u,...y},"short-date-long-time":{...u,...f},"short-date-long-time-24":{...u,..._},"short-date-le":u,"short-date-le-short-time":{...u,...m},"short-date-le-short-time-24":{...u,...y},"short-date-le-long-time":{...u,...f},"short-date-le-long-time-24":{...u,..._},"long-month-day-year":c,"long-month-day-year-short-time":{...c,...m},"long-month-day-year-short-time-24":{...c,...y},"long-month-day-year-long-time":{...c,...f},"long-month-day-year-long-time-24":{...c,..._},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...m},"day-short-month-year-short-time-24":{...d,...y},"day-short-month-year-long-time":{...d,...f},"day-short-month-year-long-time-24":{...d,..._},"long-date":p,"long-date-short-time":{...p,...m},"long-date-short-time-24":{...p,...y},"long-date-long-time":{...p,...f},"long-date-long-time-24":{...p,..._},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":m,"long-time":f},b=(0,s.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),w={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},C=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),A=C.find(({type:t})=>"month"===t)?.value.toLowerCase();function S(){const t=(0,r.lR)();return(t&&w[t])??(0,r.QC)()}"mart"!==A&&(w.bs="sr-Latn-CS");let M=new WeakMap;const E=v["short-date-short-time"];function P(t){return v[t]}function T(t){const{dateStyle:e,timeStyle:i,hour12:s,year:r,month:n}=t,o={};return e?o.dateStyle=e:r&&(o.year=r,o.month=n||void 0),i&&!o.year&&(o.timeStyle=i,o.hour12="auto"===s?void 0:"always"===s),o}function I(t,e=E){return function(t){let e=M.get(t);if(!e){const i=S(),s=x(t.timeZone??"system"),r={...t,timeZone:s};e=new Intl.DateTimeFormat(i,r),M.set(t,e)}return e}(e).format(t)}function L(t,e=E){return I(new Date(t),{...e,...h,...l})}function z(t,e=E){return I(new Date(`1970-01-01T${t}Z`),{...e,...h,...a})}function R(t,e=E){const i=o.c9.fromISO(t,{setZone:!0});if(!i.isValid)return t;if(e.timeZone)return I(i.toJSDate(),e);const s=0===i.offset?"UTC":e.timeZone,r={...e,timeZone:s};return i.toLocaleString(r,{locale:S()})}function x(t){switch(t){case"system":return n.N;case n.L:return"UTC";default:return t}}(0,r.Ml)(()=>{M=new WeakMap}),i.d(e,["_v",0,b])},4146(t,e,i){i.d(e,{A:()=>_});var s=i(32198),r=i(11254),n=i(49186),o=i(65529),a=i(4902),l=i(92474),h=i(53966),u=i(17676),c=i(84952),d=i(91429),p=i(5443),m=i(16930),f=i(92602),g=i(79677);let y=0,_=class extends((0,o.Zt)((0,a.s)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new p.A(-180,-90,180,90,m.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+y++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await Promise.all([i.e(812),i.e(7982)]).then(()=>i(27982))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:s}=await Promise.all([i.e(9917),i.e(812),i.e(8559)]).then(()=>i(45613));try{return await s(e)}catch(t){const i=e?.portalItem,s=i?.id||"unset",r=i?.portal?.url||f.A.portalUrl;throw h.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+r+"', id: '"+s+"')",t),t}}(t)}initialize(){this.when().catch(t=>{(0,u.zf)(t)||h.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:t})})}destroy(){const{parent:t}=this;t&&(this.parent=null,t.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:t}=this;t&&(t.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,c.An)(this.url)}createLayerView(t,e){return Promise.reject(new n.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,r.A)(t,{query:{f:"json"},responseType:"json"})).data;throw new n.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,s.Cg)([(0,d.MZ)({type:String})],_.prototype,"attributionDataUrl",void 0),(0,s.Cg)([(0,d.MZ)({readOnly:!0})],_.prototype,"effectiveVisible",null),(0,s.Cg)([(0,d.MZ)({type:p.A})],_.prototype,"fullExtent",void 0),(0,s.Cg)([(0,d.MZ)({readOnly:!0})],_.prototype,"hasAttributionData",null),(0,s.Cg)([(0,d.MZ)({type:String,clonable:!1})],_.prototype,"id",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],_.prototype,"legendEnabled",void 0),(0,s.Cg)([(0,d.MZ)({type:["show","hide","hide-children"]})],_.prototype,"listMode",void 0),(0,s.Cg)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],_.prototype,"opacity",void 0),(0,s.Cg)([(0,d.MZ)({clonable:!1})],_.prototype,"parent",void 0),(0,s.Cg)([(0,d.MZ)({readOnly:!0})],_.prototype,"parsedUrl",null),(0,s.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],_.prototype,"persistenceEnabled",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean})],_.prototype,"popupEnabled",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean})],_.prototype,"attributionVisible",void 0),(0,s.Cg)([(0,d.MZ)({type:m.A})],_.prototype,"spatialReference",void 0),(0,s.Cg)([(0,d.MZ)({type:String})],_.prototype,"title",void 0),(0,s.Cg)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],_.prototype,"type",void 0),(0,s.Cg)([(0,d.MZ)()],_.prototype,"url",void 0),(0,s.Cg)([(0,d.MZ)({type:g.A})],_.prototype,"visibilityTimeExtent",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],_.prototype,"visible",void 0),_=(0,s.Cg)([(0,d.$K)("esri.layers.Layer")],_)},8303(t,e,i){var s=i(32198),r=i(92602),n=i(70333),o=i(11254),a=i(60999),l=i(49186),h=i(36563),u=i(53966),c=i(97768),d=i(17676),p=i(84952),m=i(91429),f=i(77548),g=i(20655),y=i(80812),_=i(41318),v=i(10407),b=i(36005),w=i(43937);const C={credential:null,user:null};i.d(e,["A",0,t=>{const e=t;let A=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 y.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,d.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,d.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,d.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,d.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,d.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 o,a;if(r)o=i.portal.url;else try{o=await(0,f.wI)(this.url,e)}catch(t){(0,d.QP)(t)}if(!o||!(0,p.b8)(o,i.portal.url))return this._fetchFallbackUserPrivileges(e);try{const t=null!=e?e.signal:null;a=await(n.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:t}))}catch(t){(0,d.QP)(t)}const l=!0,h=!1,u=!1;if(!a)return{features:{edit:l,fullEdit:h},content:{updateItem:u}};try{if(r?await i.reload():(i=new y.default({id:t,portal:{url:o}}),await i.load(e)),i.portal.user)return this._getUserPrivileges(i,s)}catch(t){(0,d.QP)(t)}return{features:{edit:l,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,d.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=C.credential===e?C.user:await this._fetchEditingUser(t);return C.credential=e,C.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=g.A.getDefault();if(r&&r.loaded&&(0,p.S8)(r.restUrl)===(0,p.S8)(s))return r.user;const l=`${s}/community/self`,h=null!=t?t.signal:null,u=await(0,a.Ke)((0,o.A)(l,{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||g.A.getDefault());return i&&s&&!(0,p.ut)(s.restUrl,i.restUrl)?(e.messages&&e.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(t,{...e,layer:this})}};return(0,s.Cg)([(0,m.MZ)({type:y.default})],A.prototype,"portalItem",null),(0,s.Cg)([(0,b.w)("web-document","portalItem",["itemId"])],A.prototype,"readPortalItem",null),(0,s.Cg)([(0,w.K)("web-document","portalItem",{itemId:{type:String}})],A.prototype,"writePortalItem",null),(0,s.Cg)([(0,m.MZ)({clonable:!1})],A.prototype,"resourceReferences",void 0),(0,s.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasEditingPrivileges",void 0),(0,s.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasFullEditingPrivileges",void 0),(0,s.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasUpdateItemPrivileges",void 0),A=(0,s.Cg)([(0,m.$K)("esri.layers.mixins.PortalLayer")],A),A}])},77548(t,e,i){i.d(e,{Gh:()=>z,tk:()=>E,BR:()=>M,p2:()=>A,qd:()=>P,wI:()=>S,G$:()=>I,$x:()=>T,Ov:()=>v,cM:()=>d,UC:()=>p,Qz:()=>m,OP:()=>L,TU:()=>_,F2:()=>f,XX:()=>y,Qi:()=>b,jy:()=>w});var s=i(70333),r=i(11254),n=i(7762),o=(i(84952),i(36563)),a=i(36708),l=i(4146);const h=new WeakMap;function u(t){return!t.destroyed&&(h.has(t)||t.addHandles([(0,a.wB)(()=>{const{parent:e}=t;return!!(e&&e instanceof l.A)&&("catalog-dynamic-group"===e.type||u(e))},e=>h.set(t,e),a.pc),(0,o.hA)(()=>h.delete(t))]),h.get(t))}function c(t,e){return null!=t&&"object"==typeof t&&"type"in t&&t.type===e}function d(t){return c(t,"knowledge-graph")&&"layers"in t}function p(t){return c(t,"knowledge-graph-sublayer")}function m(t){return c(t,"link-chart")&&"layers"in t}function f(t){return c(t,"subtype-group")&&"sublayers"in t}function g(t){const e=t.parent;return function(t){return"group"===t?.type}(e)&&e.tables.includes(t)}i(16215);const y={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function _(t){const e=t?.type;return"building-scene"===e||"integrated-mesh"===e||"point-cloud"===e||"scene"===e}function v(t){return"feature"===t?.type&&!t.url&&"memory"===t.source?.type}function b(t){return null!=t&&"object"==typeof t&&"featureReduction"in t}function w(t){return function(t){return c(t,"catalog-footprint")}(t)||function(t){return c(t,"feature")}(t)&&function(t){return"feature"===t?.type&&"feature-layer"===t.source?.type}(t)||function(t){return c(t,"oriented-imagery")}(t)||function(t){return"subtype-sublayer"===t?.type}(t)}function C(t){const e=t?.type;return"binning"===e||"cluster"===e}function A(t,e){if(!w(t))return;const i=e?.graphic,s="featureReduction"in t?t.featureReduction:null;if(i){if(i.isAggregate){const t=i.origin;return t&&"featureReductionProvider"in t&&s?C(s)?s:null:void 0}return t}return e?.checkFeatureReduction&&s?C(s)?s:null:t}async function S(t,e){const i=s.id?.findServerInfo(t);if(null!=i?.currentVersion)return i.owningSystemUrl||null;const n=t.toLowerCase().indexOf("/rest/services");if(-1===n)return null;const o=`${t.slice(0,n)}/rest/info`,a=null!=e?e.signal:null,{data:l}=await(0,r.A)(o,{query:{f:"json"},responseType:"json",signal:a});return l?.owningSystemUrl||null}function M(t){return function(t){if(!("capabilities"in t))return!1;switch(t.type){case"catalog":case"catalog-footprint":case"csv":case"dimension-feature":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"parquet":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(t)?"effectiveCapabilities"in t?t.effectiveCapabilities:t.capabilities:null}function E(t){return!!function(t){if(!("editingEnabled"in t))return!1;switch(t.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(t)&&("effectiveEditingEnabled"in t?t.effectiveEditingEnabled:t.editingEnabled)}function P(t){const e=new n.A;for(const i of t.allLayers.concat(t.allTables))u(i)||g(i)||"annotation-feature"===i.type||"dimension-feature"===i.type||("charts"in i&&e.push(i),"subtype-group"===i.type&&e.push(...i.sublayers));return e}function T(t,e){return null}function I(t){return null}function L(t){return!t||"Feature Service"===t.type&&!t.sourceUrl}function z(t,e){if(!e||!L(t))return;const i=(t.url,null);i&&(t.url=i)}},10407(t,e,i){i.d(e,{It:()=>p,LG:()=>o,OM:()=>h,Sm:()=>u,Y:()=>a,bK:()=>l,sQ:()=>c});var s=i(99917),r=i(16930),n=i(28735);function o(t,e){if(!a(t,e)){const i=t.typeKeywords;i?i.push(e):t.typeKeywords=[e]}}function a(t,e){return!!t.typeKeywords?.includes(e)}function l(t){return a(t,d.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?o(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 d={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 p(t){const{portal:e,isOrgItem:i,itemControl:s}=t,r=e.user?.privileges;let n=!r||r.includes("features:user:edit"),o=!!i&&!!r?.includes("features:user:fullEdit");const a="update"===s||"admin"===s;return a?o=n=!0:o&&(n=!0),{features:{edit:n,fullEdit:o},content:{updateItem:a}}}i.d(e,["mm",0,d])},73133(t,e,i){const s=(0,i(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:"unknown"});i.d(e,["j",0,s])},16215(t,e,i){i.d(e,{S:()=>r});const s=Symbol("BasemapInstance");function r(t){return null!=t&&"object"==typeof t&&s in t}i.d(e,["Y",0,s])},79677(t,e,i){i.d(e,{A:()=>c});var s,r=i(32198),n=i(25482),o=i(88930),a=i(91429),l=(i(98623),i(10184)),h=i(36005),u=i(43937);let c=class extends n.o{static{s=this}static get allTime(){return d}static get empty(){return p}static fromArray(t){return new s({start:null!=t[0]?new Date(t[0]):t[0],end:null!=t[1]?new Date(t[1]):t[1]})}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?.getTime()??null}get isAllTime(){return this.equals(s.allTime)}get isEmpty(){return this.equals(s.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?.getTime()??null}clone(){return new s({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=this.start?.getTime()??this.start,i=this.end?.getTime()??this.end,s=t.start?.getTime()??t.start,r=t.end?.getTime()??t.end;return e===s&&i===r}expandTo(t,e="system"){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();let i=this.start;i&&(i=(0,o.lL)(i,new l.A({value:1,unit:t}),e));let r=this.end;if(r){const i=(0,o.lL)(r,new l.A({value:1,unit:t}),e);r=r.getTime()===i.getTime()?i:(0,o.S1)(i,1,t,e)}return new s({start:i,end:r})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return s.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,i=this.end?.getTime()??1/0,r=t.start?.getTime()??-1/0,n=t.end?.getTime()??1/0;let o,a;return r>=e&&r<=i?o=r:e>=r&&e<=n&&(o=e),i>=r&&i<=n?a=i:n>=e&&n<=i&&(a=n),null==o||null==a||isNaN(o)||isNaN(a)?s.empty:new s({start:o===-1/0?null:new Date(o),end:a===1/0?null:new Date(a)})}offset(t,e,i="system"){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();const r=new s,{start:n,end:a}=this;return null!=n&&(r.start=(0,o.S1)(n,t,e,i)),null!=a&&(r.end=(0,o.S1)(a,t,e,i)),r}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return d.clone();const e=null!=this.start&&null!=t.start?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,i=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new s({start:e,end:i})}};(0,r.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"end",void 0),(0,r.Cg)([(0,h.w)("end")],c.prototype,"readEnd",null),(0,r.Cg)([(0,u.K)("end")],c.prototype,"writeEnd",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],c.prototype,"isAllTime",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],c.prototype,"isEmpty",null),(0,r.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"start",void 0),(0,r.Cg)([(0,h.w)("start")],c.prototype,"readStart",null),(0,r.Cg)([(0,u.K)("start")],c.prototype,"writeStart",null),c=s=(0,r.Cg)([(0,a.$K)("esri.time.TimeExtent")],c);const d=new c,p=new c({start:void 0,end:void 0})},10184(t,e,i){i.d(e,{A:()=>u});var s=i(32198),r=i(69540),n=i(25482),o=i(88930),a=i(91429),l=i(73133),h=i(93223);let u=class extends((0,r.OU)(n.o)){constructor(t){super(t),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.t)(this.value,this.unit,"milliseconds")}};(0,s.Cg)([(0,h.e)(l.j,{nonNullable:!0})],u.prototype,"unit",void 0),(0,s.Cg)([(0,a.MZ)({type:Number,json:{write:!0},nonNullable:!0})],u.prototype,"value",void 0),u=(0,s.Cg)([(0,a.$K)("esri.time.TimeInterval")],u)},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))}}}]);