@arcgis/core 5.2.0-next.80 → 5.2.0-next.81

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 (464) hide show
  1. package/applications/Components/imageryUtils.d.ts +5 -3
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/004966b5bf60a8a80b8c.js +1 -0
  4. package/assets/esri/core/workers/chunks/03cf74b2e488eb144ad5.js +1 -0
  5. package/assets/esri/core/workers/chunks/055802283f7e01ee87fb.js +1 -0
  6. package/assets/esri/core/workers/chunks/06df9ce870360cda06c7.js +1 -0
  7. package/assets/esri/core/workers/chunks/{08ec5461af74356e7570.js → 075eb62465edb9cbf907.js} +1 -1
  8. package/assets/esri/core/workers/chunks/09f0805b32e6cab980e6.js +1 -0
  9. package/assets/esri/core/workers/chunks/{5fe9eea35ddb428efd8b.js → 0b26c01a1190e8fd63fb.js} +1 -1
  10. package/assets/esri/core/workers/chunks/0fd7590e545864f5fff4.js +1 -0
  11. package/assets/esri/core/workers/chunks/{b9d1bb106737a05290e1.js → 104d74bc36c28c519396.js} +1 -1
  12. package/assets/esri/core/workers/chunks/14be79c4cc6137c7db95.js +1 -0
  13. package/assets/esri/core/workers/chunks/{ef47a5da641cb0d33fdf.js → 197a6d561f77ac74283a.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{e4e5a171a4874c5af4a4.js → 1a7d2912c8eac8c83c70.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{b9c61b20bbc91cb63036.js → 1c3861297f65ee1ca5d0.js} +1 -1
  16. package/assets/esri/core/workers/chunks/1d1cfe0bee506d34268e.js +1 -0
  17. package/assets/esri/core/workers/chunks/1ed6a8bb415999c4e8a6.js +1 -0
  18. package/assets/esri/core/workers/chunks/2161cf64601f28bbe72d.js +1 -0
  19. package/assets/esri/core/workers/chunks/218ddad849745d652a28.js +1 -0
  20. package/assets/esri/core/workers/chunks/{5b70295da76d9227f64b.js → 22c477147421e68f7f00.js} +1 -1
  21. package/assets/esri/core/workers/chunks/24944b625ed8dcd904f0.js +1 -0
  22. package/assets/esri/core/workers/chunks/25696c194457e42b3bdc.js +1 -0
  23. package/assets/esri/core/workers/chunks/25f6d5604a7959afd5a5.js +1 -0
  24. package/assets/esri/core/workers/chunks/{c1e5ffe9a251be5a0744.js → 278760d194203dd27fc3.js} +1 -1
  25. package/assets/esri/core/workers/chunks/28b576663ed4570ec825.js +1 -0
  26. package/assets/esri/core/workers/chunks/{841c81c280114412c95b.js → 2a4c91b006de1ceba539.js} +1 -1
  27. package/assets/esri/core/workers/chunks/2b299aec2a758bcd9731.js +1 -0
  28. package/assets/esri/core/workers/chunks/2b79b376b0d60d2f0d5c.js +1 -0
  29. package/assets/esri/core/workers/chunks/{b084829a3fd709dc47a8.js → 2d683ac4a993ec5fd6f6.js} +1 -1
  30. package/assets/esri/core/workers/chunks/2f3525df00fb265661fc.js +1 -0
  31. package/assets/esri/core/workers/chunks/{a8ec5b85c2fa6fb4f391.js → 30b40ee875d46e6fde02.js} +1 -1
  32. package/assets/esri/core/workers/chunks/31b3744f71750e512d4e.js +1 -0
  33. package/assets/esri/core/workers/chunks/3239c7994019f15e261d.js +1 -0
  34. package/assets/esri/core/workers/chunks/{d520d407043bc52e5410.js → 3336ad383c184dd07bb3.js} +1 -1
  35. package/assets/esri/core/workers/chunks/36265e5f6d396eadf0be.js +1 -0
  36. package/assets/esri/core/workers/chunks/{0ae0483b72f5e8d00d55.js → 3715d6b295016eeb5031.js} +1 -1
  37. package/assets/esri/core/workers/chunks/37a121316d114999ac70.js +1 -0
  38. package/assets/esri/core/workers/chunks/37fb38db03cb39e3c342.js +1 -0
  39. package/assets/esri/core/workers/chunks/3851ebf3548e2763b24f.js +1 -0
  40. package/assets/esri/core/workers/chunks/{9230ad807020fc2bbf8e.js → 388b71211a0ad5cbd6b9.js} +1 -1
  41. package/assets/esri/core/workers/chunks/3a4b117af89dab5153eb.js +1 -0
  42. package/assets/esri/core/workers/chunks/3a9ef47122e10cecd3a4.js +1 -0
  43. package/assets/esri/core/workers/chunks/3adba34224cba869a39c.js +1 -0
  44. package/assets/esri/core/workers/chunks/40b842d055b87e442156.js +1 -0
  45. package/assets/esri/core/workers/chunks/40ebe69b08ea54e0e780.js +1 -0
  46. package/assets/esri/core/workers/chunks/{c37b28f200b704ae6002.js → 4239d64f067417e0643c.js} +1 -1
  47. package/assets/esri/core/workers/chunks/453c69879f4b82ba13a1.js +1 -0
  48. package/assets/esri/core/workers/chunks/{bd88228f781a0399d8bd.js → 49e37f653b81f9e4f7cc.js} +1 -1
  49. package/assets/esri/core/workers/chunks/4a537054c99cbc492715.js +1 -0
  50. package/assets/esri/core/workers/chunks/4a6158994a8cc8b8664f.js +1 -0
  51. package/assets/esri/core/workers/chunks/4c15551e33a3c6cda61d.js +1 -0
  52. package/assets/esri/core/workers/chunks/4c5200e22b8a723f53f9.js +1 -0
  53. package/assets/esri/core/workers/chunks/{2bcb7e43578124538c3c.js → 4d672110aee304692f60.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{fb12d3c63fcac8391e06.js → 4eaa93859ceec1b38530.js} +1 -1
  55. package/assets/esri/core/workers/chunks/4f36596280142be1c666.js +1 -0
  56. package/assets/esri/core/workers/chunks/50e6e43ea98cb0d05d91.js +1 -0
  57. package/assets/esri/core/workers/chunks/{8e374ce47256a567ae11.js → 519745cf844c76452a46.js} +1 -1
  58. package/assets/esri/core/workers/chunks/{3b14ed3184743df336a6.js → 53d80202b5f43542d45b.js} +1 -1
  59. package/assets/esri/core/workers/chunks/{345510a95e893fa8040a.js → 540a3685e614bb006744.js} +1 -1
  60. package/assets/esri/core/workers/chunks/54524cc4328f31d8c25d.js +1 -0
  61. package/assets/esri/core/workers/chunks/5515005e8893bd551aaf.js +1 -0
  62. package/assets/esri/core/workers/chunks/{eee1fd629619021ea279.js → 56a6c7abfb4d88ea1bb5.js} +1 -1
  63. package/assets/esri/core/workers/chunks/{24729603dcdbd95fd01e.js → 578904043e873424904c.js} +1 -1
  64. package/assets/esri/core/workers/chunks/58d10928959ae1e2e8d9.js +1 -0
  65. package/assets/esri/core/workers/chunks/59f0a2bd40b033ce77e4.js +1 -0
  66. package/assets/esri/core/workers/chunks/5a67bd724aa7fcdebe16.js +1 -0
  67. package/assets/esri/core/workers/chunks/{087bd698b80ca0cea71e.js → 5aadfd11df6618883c5d.js} +1 -1
  68. package/assets/esri/core/workers/chunks/{1f888f026b004447772c.js → 5c9a398e659ecd427fb5.js} +1 -1
  69. package/assets/esri/core/workers/chunks/{e421dee5d8b030e79ffb.js → 5d50a030bf9f4e94f69d.js} +1 -1
  70. package/assets/esri/core/workers/chunks/6065caa7981cef255277.js +1 -0
  71. package/assets/esri/core/workers/chunks/61190c833791f0833a39.js +1 -0
  72. package/assets/esri/core/workers/chunks/61312d3b5477ed9d87d9.js +2 -0
  73. package/assets/esri/core/workers/chunks/61f230e50787abbfc8ba.js +1 -0
  74. package/assets/esri/core/workers/chunks/6270acb7545be2c5126f.js +1 -0
  75. package/assets/esri/core/workers/chunks/{f3bbebedad51f776bb98.js → 62992c3d98c20f611b7b.js} +1 -1
  76. package/assets/esri/core/workers/chunks/{ac87be2210f868524996.js → 629f60ee49e0dcfb7165.js} +1 -1
  77. package/assets/esri/core/workers/chunks/645d5db85f84b1f19b59.js +1 -0
  78. package/assets/esri/core/workers/chunks/{913fb883455aeac8582b.js → 694216224d5fd3a8956d.js} +1 -1
  79. package/assets/esri/core/workers/chunks/6c372d85b5783dd2a793.js +1 -0
  80. package/assets/esri/core/workers/chunks/{702b2381acf4d1f90094.js → 6f08c8a1e8e3ffd0a96a.js} +1 -1
  81. package/assets/esri/core/workers/chunks/6f4ee60e89d154e7b1c4.js +1 -0
  82. package/assets/esri/core/workers/chunks/{c29df43817278f674707.js → 7028671ffdaafe2725bc.js} +1 -1
  83. package/assets/esri/core/workers/chunks/{40693ee558a1eb1e93f4.js → 70c371c9f133ab9f7925.js} +1 -1
  84. package/assets/esri/core/workers/chunks/7230d74ef720431cc75e.js +1 -0
  85. package/assets/esri/core/workers/chunks/73a8a3baf0fed803ef4f.js +1 -0
  86. package/assets/esri/core/workers/chunks/74cd17aca5f7e0caac90.js +1 -0
  87. package/assets/esri/core/workers/chunks/{4d7a3b3aaf876da0891b.js → 76e6d894c33221369895.js} +1 -1
  88. package/assets/esri/core/workers/chunks/7833a82d5bac2aed565e.js +1 -0
  89. package/assets/esri/core/workers/chunks/7a05f5b0848dd11d2f4f.js +1 -0
  90. package/assets/esri/core/workers/chunks/{4c82f5f23004f905a18f.js → 7b605ed92e65083da35f.js} +1 -1
  91. package/assets/esri/core/workers/chunks/7eb94fc75926bc739233.js +1 -0
  92. package/assets/esri/core/workers/chunks/{67ebde34377f98d17cda.js → 8006ffa263fb8016afdb.js} +1 -1
  93. package/assets/esri/core/workers/chunks/809349086117f199b7a5.js +1 -0
  94. package/assets/esri/core/workers/chunks/82da6d98bd4980a3d454.js +1 -0
  95. package/assets/esri/core/workers/chunks/82e62a54b350e7a325f7.js +1 -0
  96. package/assets/esri/core/workers/chunks/836c458a7eb96391cfda.js +1 -0
  97. package/assets/esri/core/workers/chunks/851a5a0262dc8dcb67eb.js +1 -0
  98. package/assets/esri/core/workers/chunks/856dba96332509fb1d7a.js +2 -0
  99. package/assets/esri/core/workers/chunks/{d7b6985984071e78c764.js → 86035e46777ed896c658.js} +1 -1
  100. package/assets/esri/core/workers/chunks/88d6a7ebded4d359deb0.js +1 -0
  101. package/assets/esri/core/workers/chunks/{38660a8cc3623c854d88.js → 89df303abcbc0167e4d2.js} +1 -1
  102. package/assets/esri/core/workers/chunks/8cfe817299eb16cb2664.js +1 -0
  103. package/assets/esri/core/workers/chunks/8d16d53643dd8d489c25.js +1 -0
  104. package/assets/esri/core/workers/chunks/{619aa1381296172ff47b.js → 8e19b2ce9868a9a08da0.js} +1 -1
  105. package/assets/esri/core/workers/chunks/8ea28a4b1afe8bb2d313.js +1 -0
  106. package/assets/esri/core/workers/chunks/8fff4a41a54d39db470a.js +1 -0
  107. package/assets/esri/core/workers/chunks/{fe71a0604f0928113419.js → 958e161634b5bfd50625.js} +1 -1
  108. package/assets/esri/core/workers/chunks/95b9eaf7a49eeb17e62f.js +1 -0
  109. package/assets/esri/core/workers/chunks/95ff342e5c29bf91a765.js +1 -0
  110. package/assets/esri/core/workers/chunks/97162bbbedb02e42d0b8.js +1 -0
  111. package/assets/esri/core/workers/chunks/973440553c9e058b0132.js +1 -0
  112. package/assets/esri/core/workers/chunks/{680dd7b7638465eb33de.js → 98739b6e7904045edbab.js} +1 -1
  113. package/assets/esri/core/workers/chunks/9a5894e8ebdf0e97b98f.js +1 -0
  114. package/assets/esri/core/workers/chunks/9aa41d098eeda01ded3a.js +1 -0
  115. package/assets/esri/core/workers/chunks/9bd4cda90daf90189bfc.js +1 -0
  116. package/assets/esri/core/workers/chunks/{315031323e11a18154e3.js → 9c04233d18a9585b5bfe.js} +1 -1
  117. package/assets/esri/core/workers/chunks/9c17bfbfc347ac289b6e.js +1 -0
  118. package/assets/esri/core/workers/chunks/9c7afe90495766bba37f.js +1 -0
  119. package/assets/esri/core/workers/chunks/{69b9a327f23e052fced7.js → 9d5d7289a9e23efc7f73.js} +1 -1
  120. package/assets/esri/core/workers/chunks/9e49a6ce4a133476092f.js +1 -0
  121. package/assets/esri/core/workers/chunks/9e840a71906c4deef776.js +1 -0
  122. package/assets/esri/core/workers/chunks/a1bf2111fee455b16e6a.js +29 -0
  123. package/assets/esri/core/workers/chunks/{910c93bbbf8113a4a51f.js → a2a231a671ff578b7b01.js} +1 -1
  124. package/assets/esri/core/workers/chunks/{e9e4b27ba06a29e6340c.js → a3cbd3e983e21f40b253.js} +1 -1
  125. package/assets/esri/core/workers/chunks/{16929524565a677db4dc.js → a406a41a2f117247f1ef.js} +1 -1
  126. package/assets/esri/core/workers/chunks/a4b63162615a485b08dc.js +1 -0
  127. package/assets/esri/core/workers/chunks/a9e944f28bd573c8230d.js +1 -0
  128. package/assets/esri/core/workers/chunks/{6c982779d6d47ec99899.js → b0a9a770b735440846cd.js} +1 -1
  129. package/assets/esri/core/workers/chunks/b2d6fd436981c890152f.js +1 -0
  130. package/assets/esri/core/workers/chunks/b3034fbcbe77ef9e7c20.js +1 -0
  131. package/assets/esri/core/workers/chunks/b3081c0b037abc49d09b.js +1 -0
  132. package/assets/esri/core/workers/chunks/b4b4fe06364bea9b0750.js +1 -0
  133. package/assets/esri/core/workers/chunks/b661aae7e3ce955a783e.js +1 -0
  134. package/assets/esri/core/workers/chunks/{75fc0b1db8e2e3fd2458.js → b8548eb7680abeaf3cd1.js} +1 -1
  135. package/assets/esri/core/workers/chunks/b9db8d059c2ea39518e7.js +1 -0
  136. package/assets/esri/core/workers/chunks/ba8777844fef6ed3ac2b.js +1 -0
  137. package/assets/esri/core/workers/chunks/ba99a650ea64f5024185.js +1 -0
  138. package/assets/esri/core/workers/chunks/bbfd2b4af8e498b61af9.js +1 -0
  139. package/assets/esri/core/workers/chunks/{24006cea112d657f053a.js → bc30c0de6dcb106b24a1.js} +1 -1
  140. package/assets/esri/core/workers/chunks/bf5831a7c12b1e42c669.js +1 -0
  141. package/assets/esri/core/workers/chunks/bfac0f47e81055585002.js +1 -0
  142. package/assets/esri/core/workers/chunks/bfd532e33800755b1f48.js +1 -0
  143. package/assets/esri/core/workers/chunks/c30b6bbabd05e4976fba.js +1 -0
  144. package/assets/esri/core/workers/chunks/c336f300fe6100e36592.js +1 -0
  145. package/assets/esri/core/workers/chunks/c5853fbb975e169c44c5.js +1 -0
  146. package/assets/esri/core/workers/chunks/c71368cd64f240da1743.js +1 -0
  147. package/assets/esri/core/workers/chunks/c899457f19b749516275.js +1 -0
  148. package/assets/esri/core/workers/chunks/c9653a15324ca53d50e7.js +1 -0
  149. package/assets/esri/core/workers/chunks/{9937920e7993814d0b2c.js → ca695ab000a1e8765d69.js} +1 -1
  150. package/assets/esri/core/workers/chunks/{b792857a178da2dd77d6.js → cc419e1c5c1dee7ec972.js} +1 -1
  151. package/assets/esri/core/workers/chunks/{2ce845c990bb4d701362.js → cc817c9d3f8e8f8c56e4.js} +1 -1
  152. package/assets/esri/core/workers/chunks/ce81f29134ab3971bd54.js +1 -0
  153. package/assets/esri/core/workers/chunks/cf6799fd008d0d7016f7.js +1 -0
  154. package/assets/esri/core/workers/chunks/cfcb258b7e464f219434.js +1 -0
  155. package/assets/esri/core/workers/chunks/d0aaa4ad7f76f577f117.js +1 -0
  156. package/assets/esri/core/workers/chunks/{ac59218847e5ef4c4160.js → d0e00f0bb7b9435e170d.js} +1 -1
  157. package/assets/esri/core/workers/chunks/{33e293836f5d28dc5d62.js → d13eeff678972a245d5d.js} +1 -1
  158. package/assets/esri/core/workers/chunks/d1aa87d846a884492b47.js +1 -0
  159. package/assets/esri/core/workers/chunks/{7529c0fcfb83998e63db.js → d1baf17f3219f70106f7.js} +1 -1
  160. package/assets/esri/core/workers/chunks/{2b3f76e03b7a28fc4453.js → d2448e26e19005ef9ab2.js} +1 -1
  161. package/assets/esri/core/workers/chunks/{0179949495c87466b428.js → d3a183d90f1ccc8da2bb.js} +10 -10
  162. package/assets/esri/core/workers/chunks/d433bfa2abf2ca8239ba.js +1 -0
  163. package/assets/esri/core/workers/chunks/d4b78d11a5ce4320a29a.js +1 -0
  164. package/assets/esri/core/workers/chunks/d4cc8eef64b8c84217a5.js +1 -0
  165. package/assets/esri/core/workers/chunks/d62a5a33a24418a3e283.js +1 -0
  166. package/assets/esri/core/workers/chunks/{2740f755c3a322cbd477.js → d672c2a1c8eddd235171.js} +1 -1
  167. package/assets/esri/core/workers/chunks/d845f2115848b56c0369.js +1 -0
  168. package/assets/esri/core/workers/chunks/d8b38c196b06e801c4e6.js +1 -0
  169. package/assets/esri/core/workers/chunks/da6134c7883531f21afe.js +1 -0
  170. package/assets/esri/core/workers/chunks/dbc36b85413fae52b56d.js +1 -0
  171. package/assets/esri/core/workers/chunks/{cada52d719c35d40958a.js → dbca32f0e0c2c2e2ccf3.js} +1 -1
  172. package/assets/esri/core/workers/chunks/dcec7fc66385c12ecdf0.js +1 -0
  173. package/assets/esri/core/workers/chunks/dd9af4ddefa0b998aa4b.js +1 -0
  174. package/assets/esri/core/workers/chunks/e2473de49189d93714d3.js +1 -0
  175. package/assets/esri/core/workers/chunks/e2ceddd6bcdabec77cc7.js +1 -0
  176. package/assets/esri/core/workers/chunks/e3eab61815ef1c521a6c.js +1 -0
  177. package/assets/esri/core/workers/chunks/e63f94c8097555b266ad.js +2 -0
  178. package/assets/esri/core/workers/chunks/e72fa08b0bd324514a0e.js +1 -0
  179. package/assets/esri/core/workers/chunks/e8a9a686a3c23afc9d1f.js +1 -0
  180. package/assets/esri/core/workers/chunks/eca0736953a20cfc64ad.js +2 -0
  181. package/assets/esri/core/workers/chunks/efaa455beeefbf97a4c5.js +1 -0
  182. package/assets/esri/core/workers/chunks/efd176c5ac35f313e7a2.js +1 -0
  183. package/assets/esri/core/workers/chunks/f16b6cd6b325eb600e82.js +1 -0
  184. package/assets/esri/core/workers/chunks/f1d0208c6b09c1c4b248.js +1 -0
  185. package/assets/esri/core/workers/chunks/f1fa377e8fa53b02876f.js +1 -0
  186. package/assets/esri/core/workers/chunks/f2d99f693a590f384315.js +1 -0
  187. package/assets/esri/core/workers/chunks/f57e5e7d0748d9a370f7.js +1 -0
  188. package/assets/esri/core/workers/chunks/f71a3fe5f30aa782193a.js +1 -0
  189. package/assets/esri/core/workers/chunks/{b9bdb1f05e904c3655e4.js → f834aa732c3f06525089.js} +1 -1
  190. package/assets/esri/core/workers/chunks/f9e9e79f78be32e5d475.js +1 -0
  191. package/assets/esri/core/workers/chunks/fa7a6906598d1002abfd.js +1 -0
  192. package/assets/esri/core/workers/chunks/{ebb722118a220c92efc3.js → fae32c9ce811934b6a64.js} +1 -1
  193. package/assets/esri/core/workers/chunks/fb86b334bfca4670dcfa.js +1 -0
  194. package/assets/esri/core/workers/chunks/fbb0b2f4ec0ba458ddeb.js +1 -0
  195. package/assets/esri/core/workers/chunks/{2d1ae18a28491b00091d.js → fbcc346fa603d6edac98.js} +1 -1
  196. package/assets/esri/core/workers/chunks/{1ef28d4457c8c943ad19.js → fbede01a363895b6381f.js} +1 -1
  197. package/assets/esri/core/workers/chunks/{073f1d5f89875c6aefb1.js → fc1aeea22f8c9d63864a.js} +1 -1
  198. package/assets/esri/core/workers/chunks/fc2234e0d202631f3abf.js +2 -0
  199. package/assets/esri/core/workers/chunks/fcb943c3b31b1bf62e65.js +2 -0
  200. package/assets/esri/core/workers/chunks/{8a3289e15e0ce92e3813.js → fe335441ea233cb0fad5.js} +1 -1
  201. package/assets/esri/core/workers/chunks/ffe2cbfea38b92a231d6.js +1 -0
  202. package/chunks/Bufferer-CclWhXVb.js +1 -1
  203. package/chunks/Distance2DCalculator-DjIp2uQi.js +1 -1
  204. package/chunks/EmissionComposite.glsl.js +1 -1
  205. package/chunks/Envelope.js +1 -1
  206. package/chunks/GaussianSplat.glsl.js +8 -8
  207. package/chunks/GaussianSplatDepth.glsl.js +4 -4
  208. package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
  209. package/chunks/GeodeticUtils.js +1 -1
  210. package/chunks/Geometry.js +1 -1
  211. package/chunks/MultiPathImpl.js +1 -1
  212. package/chunks/OperatorCrosses.js +1 -1
  213. package/chunks/OperatorCut.js +1 -1
  214. package/chunks/OperatorGeodesicBuffer.js +1 -1
  215. package/chunks/OperatorGeodeticArea.js +1 -1
  216. package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
  217. package/chunks/OperatorGeodeticLength.js +1 -1
  218. package/chunks/OperatorGraphicBuffer.js +1 -1
  219. package/chunks/OperatorIntegrate.js +1 -1
  220. package/chunks/OperatorIntersects.js +1 -1
  221. package/chunks/OperatorMultiPartToSinglePart.js +1 -1
  222. package/chunks/OperatorOverlaps.js +1 -1
  223. package/chunks/OperatorProject.js +1 -1
  224. package/chunks/OperatorProximity.js +1 -1
  225. package/chunks/OperatorProximityGeodesic.js +1 -1
  226. package/chunks/OperatorShapePreservingLength.js +1 -1
  227. package/chunks/OperatorShapePreservingProject.js +1 -1
  228. package/chunks/OperatorSimplifyOGC.js +1 -1
  229. package/chunks/OperatorTouches.js +1 -1
  230. package/chunks/OperatorWithin.js +1 -1
  231. package/chunks/Point2D.js +1 -1
  232. package/chunks/ProjectionTransformation.js +1 -1
  233. package/chunks/SideCalculator2D-DX0718xq.js +1 -1
  234. package/chunks/SpatialReference.js +1 -1
  235. package/chunks/UnitFactory.js +2 -0
  236. package/chunks/containsOperator.js +1 -1
  237. package/chunks/disjointOperator.js +1 -1
  238. package/chunks/equalsOperator.js +1 -1
  239. package/chunks/relateOperator.js +1 -1
  240. package/config.js +1 -1
  241. package/geometry/operators/containsOperator.js +1 -1
  242. package/geometry/operators/disjointOperator.js +1 -1
  243. package/geometry/operators/gx/geodeticUtils.js +1 -1
  244. package/geometry/operators/gx/operatorAutoComplete.js +1 -1
  245. package/geometry/operators/gx/operatorBuffer.js +1 -1
  246. package/geometry/operators/gx/operatorDifference.js +1 -1
  247. package/geometry/operators/gx/operatorGeodesicBuffer.js +1 -1
  248. package/geometry/operators/gx/operatorGeodeticArea.js +1 -1
  249. package/geometry/operators/gx/operatorGeodeticDensify.js +1 -1
  250. package/geometry/operators/gx/operatorGeodeticDistance.js +1 -1
  251. package/geometry/operators/gx/operatorGeodeticLength.js +1 -1
  252. package/geometry/operators/gx/operatorIntersection.js +1 -1
  253. package/geometry/operators/gx/operatorLabelPoint.js +1 -1
  254. package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
  255. package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
  256. package/geometry/operators/gx/operatorProject.js +1 -1
  257. package/geometry/operators/gx/operatorProximityGeodesic.js +1 -1
  258. package/geometry/operators/gx/operatorShapePreservingProject.js +1 -1
  259. package/geometry/operators/gx/operatorSimplify.js +1 -1
  260. package/geometry/operators/gx/operatorSinglePartToMultiPart.js +1 -1
  261. package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
  262. package/geometry/operators/gx/operatorUnion.js +1 -1
  263. package/geometry/operators/json/containsOperator.js +1 -1
  264. package/geometry/operators/json/disjointOperator.js +1 -1
  265. package/geometry/operators/projectOperator.js +1 -1
  266. package/geometry/operators/reshapeOperator.js +1 -1
  267. package/geometry/operators/support/geographicTransformationUtils.js +1 -1
  268. package/geometry/operators/support/initNoPeFactory.js +1 -1
  269. package/geometry/operators/support/jsonConverter.js +1 -1
  270. package/geometry/operators/support/projectionTransformation.js +1 -1
  271. package/geometry/projection/projectionUtilsState.js +2 -0
  272. package/geometry/projectionUtils.js +1 -1
  273. package/geometry/support/geometryUtils.js +1 -1
  274. package/kernel.js +1 -1
  275. package/layers/raster/datasets/MRFRaster.js +1 -1
  276. package/layers/raster/formats/JpgPlus.js +1 -1
  277. package/layers/raster/formats/RasterCodec.js +1 -1
  278. package/layers/raster/types.d.ts +65 -0
  279. package/package.json +2 -2
  280. package/support/revision.js +1 -1
  281. package/symbols/cim/cimAnalyzer.js +1 -1
  282. package/symbols/cim/effects/EffectRadial.js +1 -1
  283. package/views/2d/engine/vectorTiles/decluttering/SymbolRepository.js +1 -1
  284. package/views/2d/engine/webgl/mesh/templates/segmentUtils.js +1 -1
  285. package/views/2d/engine/webgl/shaderGraph/techniques/fill/FillMeshWriter.js +1 -1
  286. package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientFillMeshWriter.js +1 -1
  287. package/views/2d/engine/webgl/shaderGraph/techniques/line/LineMeshWriter.js +1 -1
  288. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriter.js +1 -1
  289. package/views/2d/layers/features/schema/processor/symbols/ComplexSymbolSchema.js +1 -1
  290. package/views/3d/GroundView3D.js +1 -1
  291. package/views/3d/layers/I3SMeshView3D.js +1 -1
  292. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  293. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  294. package/views/3d/layers/graphics/Graphics3DFrustumVisibility.js +1 -1
  295. package/views/3d/state/controllers/PinchAndPanControllerGlobal.js +1 -1
  296. package/views/3d/state/controllers/PinchAndPanControllerLocal.js +1 -1
  297. package/views/3d/state/controllers/RotateController.js +1 -1
  298. package/views/3d/state/controllers/ZoomControllerGlobal.js +1 -1
  299. package/views/3d/state/controllers/ZoomControllerLocal.js +1 -1
  300. package/views/3d/state/controllers/ZoomStepControllerLocal.js +1 -1
  301. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  302. package/views/3d/support/QualityProfile.js +1 -1
  303. package/views/3d/support/QualitySettings.js +1 -1
  304. package/views/3d/support/gaussianSplatting/GaussianSplatFadeHelper.js +1 -1
  305. package/views/3d/terrain/PlanarPatch.js +1 -1
  306. package/views/3d/terrain/Tile.js +1 -1
  307. package/views/3d/webgl-engine/lib/BasisUtil.js +1 -1
  308. package/views/3d/webgl-engine/lib/EmissionComposite.glsl.js +1 -1
  309. package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
  310. package/views/3d/webgl-engine/lib/EmissionCompositeTechnique.js +1 -1
  311. package/views/3d/webgl-engine/lib/GaussianSplatRenderUtils.js +1 -1
  312. package/views/3d/webgl-engine/lib/GaussianSplatRenderer.js +1 -1
  313. package/views/3d/webgl-engine/shaders/GaussianSplatDepthPolicy.js +1 -1
  314. package/views/3d/webgl-engine/shaders/GaussianSplatPass.glsl.js +50 -22
  315. package/views/analysis/ElevationProfile/ElevationProfileController.js +1 -1
  316. package/views/support/GroundElevationSampler.js +1 -1
  317. package/widgets/BatchAttributeForm/expressions/ExpressionsManager.js +1 -1
  318. package/widgets/BatchAttributeForm/expressions/expressionUtils.js +1 -1
  319. package/widgets/ElevationProfile/ElevationProfileViewModel.js +1 -1
  320. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  321. package/widgets/OrientedImageryViewer/components/ImageLocationViewModel.js +1 -1
  322. package/widgets/OrientedImageryViewer/components/ImageLocationWidget.js +1 -1
  323. package/widgets/OrientedImageryViewer.js +1 -1
  324. package/assets/esri/core/workers/chunks/04105d83556409489835.js +0 -1
  325. package/assets/esri/core/workers/chunks/05b6b2c0b76afb100e33.js +0 -1
  326. package/assets/esri/core/workers/chunks/0909816f13d25cacf250.js +0 -1
  327. package/assets/esri/core/workers/chunks/0933203eee15ea50e123.js +0 -1
  328. package/assets/esri/core/workers/chunks/0b18de5147d76b68896f.js +0 -1
  329. package/assets/esri/core/workers/chunks/0d9d33f29124d464a4cb.js +0 -1
  330. package/assets/esri/core/workers/chunks/0d9fe49812554e7d7ba7.js +0 -1
  331. package/assets/esri/core/workers/chunks/0da5b27b070ab780f8b3.js +0 -1
  332. package/assets/esri/core/workers/chunks/0e333aced8b23aa49a0e.js +0 -1
  333. package/assets/esri/core/workers/chunks/0eaa8265a4cd64297545.js +0 -1
  334. package/assets/esri/core/workers/chunks/1142f8e9c80207d6bdae.js +0 -1
  335. package/assets/esri/core/workers/chunks/118ccfa2d685764752ee.js +0 -1
  336. package/assets/esri/core/workers/chunks/12a64eca4c571926d9d4.js +0 -1
  337. package/assets/esri/core/workers/chunks/1642fa1263d8f4a45101.js +0 -1
  338. package/assets/esri/core/workers/chunks/16a04fc184728d66e6e1.js +0 -1
  339. package/assets/esri/core/workers/chunks/18e0e993c0c39c962e61.js +0 -1
  340. package/assets/esri/core/workers/chunks/19233d0016e5b154c5ce.js +0 -1
  341. package/assets/esri/core/workers/chunks/1a467da4c0b33f655199.js +0 -1
  342. package/assets/esri/core/workers/chunks/1ac8a7a129ba33e05a24.js +0 -1
  343. package/assets/esri/core/workers/chunks/1d92d53186debd52e753.js +0 -1
  344. package/assets/esri/core/workers/chunks/1dba93abe84d30f05d8d.js +0 -1
  345. package/assets/esri/core/workers/chunks/2033e6d42453e4e67048.js +0 -1
  346. package/assets/esri/core/workers/chunks/20b54e7872d967f3be32.js +0 -1
  347. package/assets/esri/core/workers/chunks/2501d9459f6d14c797e5.js +0 -1
  348. package/assets/esri/core/workers/chunks/253c231b5a52f1d2d3a5.js +0 -1
  349. package/assets/esri/core/workers/chunks/257f1e8316877f611e11.js +0 -1
  350. package/assets/esri/core/workers/chunks/28924f31f5ba8ebdc60a.js +0 -1
  351. package/assets/esri/core/workers/chunks/28b09fe50b855a1d8a3f.js +0 -1
  352. package/assets/esri/core/workers/chunks/2b0558c1716425974563.js +0 -2
  353. package/assets/esri/core/workers/chunks/2e7c830b5b1fe406169f.js +0 -1
  354. package/assets/esri/core/workers/chunks/2f4ed8a63d57636a4ebe.js +0 -1
  355. package/assets/esri/core/workers/chunks/393f79843d5a78c1cc37.js +0 -1
  356. package/assets/esri/core/workers/chunks/3958d92c737b3a2a3bc2.js +0 -1
  357. package/assets/esri/core/workers/chunks/3978f00a03e97645b276.js +0 -1
  358. package/assets/esri/core/workers/chunks/3b5c5356353f1a2303a0.js +0 -1
  359. package/assets/esri/core/workers/chunks/40e48b720d89cd067892.js +0 -1
  360. package/assets/esri/core/workers/chunks/436d51b9f1b1b5abc4bc.js +0 -1
  361. package/assets/esri/core/workers/chunks/44a786aba84918f2b247.js +0 -1
  362. package/assets/esri/core/workers/chunks/463747a822499dd933ef.js +0 -1
  363. package/assets/esri/core/workers/chunks/484b251fbcbffcb58323.js +0 -1
  364. package/assets/esri/core/workers/chunks/495f90fe3d0ad32bb82d.js +0 -1
  365. package/assets/esri/core/workers/chunks/49a3888bf9e2481642ac.js +0 -1
  366. package/assets/esri/core/workers/chunks/4ce57dd39075e8fb357c.js +0 -1
  367. package/assets/esri/core/workers/chunks/5459ba8fdeb2370bb52b.js +0 -1
  368. package/assets/esri/core/workers/chunks/55924fb0de05e727f5e3.js +0 -1
  369. package/assets/esri/core/workers/chunks/55dda957c79fb285185f.js +0 -1
  370. package/assets/esri/core/workers/chunks/56e6d8c4a9ed893ce951.js +0 -1
  371. package/assets/esri/core/workers/chunks/57159bcac86d660dcceb.js +0 -1
  372. package/assets/esri/core/workers/chunks/58026fc30d8a0ded4102.js +0 -1
  373. package/assets/esri/core/workers/chunks/5eb29f0068f1c839d05e.js +0 -1
  374. package/assets/esri/core/workers/chunks/5f553da48d0ccbbfcd3c.js +0 -2
  375. package/assets/esri/core/workers/chunks/5fb76575575fe8cfb1f0.js +0 -1
  376. package/assets/esri/core/workers/chunks/6072c63a5da4366e9942.js +0 -1
  377. package/assets/esri/core/workers/chunks/626a715fdec93e188e0c.js +0 -1
  378. package/assets/esri/core/workers/chunks/6525c925bb91facb3575.js +0 -1
  379. package/assets/esri/core/workers/chunks/6529b5cc3ac6baa29fff.js +0 -2
  380. package/assets/esri/core/workers/chunks/65d1e338612e59063eba.js +0 -1
  381. package/assets/esri/core/workers/chunks/66e60351aacbd162775f.js +0 -1
  382. package/assets/esri/core/workers/chunks/694371f51c52a7a94da4.js +0 -1
  383. package/assets/esri/core/workers/chunks/69b0dcd7bcd8ec42e2c3.js +0 -1
  384. package/assets/esri/core/workers/chunks/7260e63252fa5452dc22.js +0 -1
  385. package/assets/esri/core/workers/chunks/72eb0ac55026a4f5d6a7.js +0 -1
  386. package/assets/esri/core/workers/chunks/79429c8be5da85713200.js +0 -1
  387. package/assets/esri/core/workers/chunks/79c0a966f7d11d3c217f.js +0 -1
  388. package/assets/esri/core/workers/chunks/7b470d6ad182548b9e95.js +0 -1
  389. package/assets/esri/core/workers/chunks/7b862a074816c099b9ff.js +0 -1
  390. package/assets/esri/core/workers/chunks/7baa363b3b0a442a63d2.js +0 -1
  391. package/assets/esri/core/workers/chunks/7d8eb4dbea1916320f74.js +0 -1
  392. package/assets/esri/core/workers/chunks/7ddf9b2718dd047f15e6.js +0 -1
  393. package/assets/esri/core/workers/chunks/835af7b4fd92cb4e7af0.js +0 -1
  394. package/assets/esri/core/workers/chunks/8566449c39eba55147f5.js +0 -1
  395. package/assets/esri/core/workers/chunks/864691186c449ca2c3db.js +0 -1
  396. package/assets/esri/core/workers/chunks/88d5541679e77117bf03.js +0 -1
  397. package/assets/esri/core/workers/chunks/88fd698b940dadcc6dc5.js +0 -1
  398. package/assets/esri/core/workers/chunks/894ebc64b698e5d7604b.js +0 -1
  399. package/assets/esri/core/workers/chunks/8be707044d992ef5f1d8.js +0 -1
  400. package/assets/esri/core/workers/chunks/8c1bddc88cc5f4251021.js +0 -1
  401. package/assets/esri/core/workers/chunks/8eecc6df6511c8830f5d.js +0 -1
  402. package/assets/esri/core/workers/chunks/8f0d4aec8bd3cbfefc40.js +0 -1
  403. package/assets/esri/core/workers/chunks/8fea514aada1195c8f30.js +0 -1
  404. package/assets/esri/core/workers/chunks/94bf7f0da6ad3f7ea277.js +0 -1
  405. package/assets/esri/core/workers/chunks/987594539981483a7c5e.js +0 -1
  406. package/assets/esri/core/workers/chunks/995a433936fc90d41634.js +0 -2
  407. package/assets/esri/core/workers/chunks/9bbff8237540409610b3.js +0 -1
  408. package/assets/esri/core/workers/chunks/9e1392a0c608a13ab036.js +0 -1
  409. package/assets/esri/core/workers/chunks/9f1211d2267fb7673c4d.js +0 -1
  410. package/assets/esri/core/workers/chunks/a486d99f9879f94151ba.js +0 -1
  411. package/assets/esri/core/workers/chunks/a50421fe79f264ae3619.js +0 -1
  412. package/assets/esri/core/workers/chunks/a5c115fc53edb52ce1de.js +0 -1
  413. package/assets/esri/core/workers/chunks/a739e617fc461014ad1f.js +0 -1
  414. package/assets/esri/core/workers/chunks/aa21031c8f12ca438eaa.js +0 -1
  415. package/assets/esri/core/workers/chunks/ad27689b231e282b7620.js +0 -1
  416. package/assets/esri/core/workers/chunks/aed16c3e26652960ad3f.js +0 -1
  417. package/assets/esri/core/workers/chunks/af6e8c961fd768fa7be3.js +0 -1
  418. package/assets/esri/core/workers/chunks/b3a1a93c6dc9247cb048.js +0 -1
  419. package/assets/esri/core/workers/chunks/b4abf82b8ac974a55ae1.js +0 -1
  420. package/assets/esri/core/workers/chunks/b8cd81d8fcc78d272130.js +0 -1
  421. package/assets/esri/core/workers/chunks/b9a1046ca2cd0cca5da5.js +0 -1
  422. package/assets/esri/core/workers/chunks/b9d6f89f9b8e9d1bc787.js +0 -1
  423. package/assets/esri/core/workers/chunks/bab5f4b2424b487b87ac.js +0 -1
  424. package/assets/esri/core/workers/chunks/c02b3b8b71205f6ce290.js +0 -1
  425. package/assets/esri/core/workers/chunks/c17dda6fadb8bfad0d51.js +0 -1
  426. package/assets/esri/core/workers/chunks/c21212c356f65244e34e.js +0 -1
  427. package/assets/esri/core/workers/chunks/c374e5d5980db74c4aca.js +0 -1
  428. package/assets/esri/core/workers/chunks/c6bf17b5ff6ec4b980a1.js +0 -1
  429. package/assets/esri/core/workers/chunks/c99dcc17fbd7acd2ad2e.js +0 -1
  430. package/assets/esri/core/workers/chunks/ce481eeb27ea9c1782ae.js +0 -1
  431. package/assets/esri/core/workers/chunks/cec1c87eb3749276ced4.js +0 -1
  432. package/assets/esri/core/workers/chunks/cef02ed3942c010da2e8.js +0 -29
  433. package/assets/esri/core/workers/chunks/cfdbc48f58433a3d5fc3.js +0 -1
  434. package/assets/esri/core/workers/chunks/d456520e4b119a2816b6.js +0 -1
  435. package/assets/esri/core/workers/chunks/d8da31bfe2bc4174e5aa.js +0 -1
  436. package/assets/esri/core/workers/chunks/da1c9257793c2817f40f.js +0 -1
  437. package/assets/esri/core/workers/chunks/dc0c3109b7558b4fe016.js +0 -1
  438. package/assets/esri/core/workers/chunks/ddd8f6154e265dbb6f9f.js +0 -1
  439. package/assets/esri/core/workers/chunks/de601f0d5a2a282d2efd.js +0 -1
  440. package/assets/esri/core/workers/chunks/e227eb44cd139fe2bc1b.js +0 -1
  441. package/assets/esri/core/workers/chunks/e2ddfc96ddba92302e0c.js +0 -1
  442. package/assets/esri/core/workers/chunks/e61ab8ef30bbe788b9d7.js +0 -1
  443. package/assets/esri/core/workers/chunks/e89e6eea380ca2c13b64.js +0 -1
  444. package/assets/esri/core/workers/chunks/e9d352d030dcad1619a6.js +0 -1
  445. package/assets/esri/core/workers/chunks/eb95464bd017fb839510.js +0 -1
  446. package/assets/esri/core/workers/chunks/ed4ac5568dc2815b066d.js +0 -1
  447. package/assets/esri/core/workers/chunks/ed564358cc7b3ee463a3.js +0 -1
  448. package/assets/esri/core/workers/chunks/ee63c693f2539f3bfa17.js +0 -2
  449. package/assets/esri/core/workers/chunks/ef2e0a014c982d9c7ca4.js +0 -1
  450. package/assets/esri/core/workers/chunks/ef9489d1dccb817460bb.js +0 -2
  451. package/assets/esri/core/workers/chunks/f086c6d229fb34a9d7f9.js +0 -1
  452. package/assets/esri/core/workers/chunks/f35e749bb5be39880cbe.js +0 -1
  453. package/assets/esri/core/workers/chunks/f4bc563c71c478d3912f.js +0 -1
  454. package/assets/esri/core/workers/chunks/f6150b51a9430691a040.js +0 -1
  455. package/assets/esri/core/workers/chunks/f6f7d885b4d6080e3f58.js +0 -1
  456. package/assets/esri/core/workers/chunks/f95870bb4d8e4e13e69e.js +0 -1
  457. package/assets/esri/core/workers/chunks/fa59f10ed0f182a2a7f3.js +0 -1
  458. package/assets/esri/core/workers/chunks/fc9065d0cd6285fe0f0d.js +0 -1
  459. /package/assets/esri/core/workers/chunks/{ee63c693f2539f3bfa17.js.LICENSE.txt → 61312d3b5477ed9d87d9.js.LICENSE.txt} +0 -0
  460. /package/assets/esri/core/workers/chunks/{6529b5cc3ac6baa29fff.js.LICENSE.txt → 856dba96332509fb1d7a.js.LICENSE.txt} +0 -0
  461. /package/assets/esri/core/workers/chunks/{995a433936fc90d41634.js.LICENSE.txt → e63f94c8097555b266ad.js.LICENSE.txt} +0 -0
  462. /package/assets/esri/core/workers/chunks/{5f553da48d0ccbbfcd3c.js.LICENSE.txt → eca0736953a20cfc64ad.js.LICENSE.txt} +0 -0
  463. /package/assets/esri/core/workers/chunks/{ef9489d1dccb817460bb.js.LICENSE.txt → fc2234e0d202631f3abf.js.LICENSE.txt} +0 -0
  464. /package/assets/esri/core/workers/chunks/{2b0558c1716425974563.js.LICENSE.txt → fcb943c3b31b1bf62e65.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[91,3354,8424],{27749(e,t,i){i.d(t,{e:()=>p,l:()=>d});var n=i(86211),r=i(77085),o=i(5808);let s,a,l,c,u;function h(){return!!s&&(0,r.s1)()}async function d(){if(!h()){const[e]=await Promise.all([Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(1666)]).then(i.bind(i,78125)),(0,r.Hh)()]);s=e.fromGeometry,a=e.fromSpatialReference,l=e.getSpatialReference,c=e.toGeometry,u=(0,r.fz)()}}function p(e,t,i={}){const{curveType:u="geodesic",unit:h}=i;h&&(t=(0,n.oU)(t,h,"meters"));const d=l(e);return c((0,r.g7)(s(e),t,a(d),o.O[u]),d)}const m=Object.freeze(Object.defineProperty({__proto__:null,execute:p,executeMany:function(e,t,i={}){const{curveType:u="geodesic",unit:h}=i;h&&(t=(0,n.oU)(t,h,"meters"));const d=e.map(s),p=l(e);return(0,r.zo)(d,t,a(p),o.O[u]).map(e=>c(e,p))},isLoaded:h,load:d,get supportsCurves(){return u}},Symbol.toStringTag,{value:"Module"}));i.d(t,["g",0,m])},73354(e,t,i){i.d(t,{a:()=>h,b:()=>a,c:()=>r,d:()=>s,e:()=>d,f:()=>u,l:()=>c,n:()=>p,t:()=>o}),i(44208);var n=i(72727);function r(e,t,i){o(e.typedBuffer,t.typedBuffer,i,e.typedBufferStride,t.typedBufferStride)}function o(e,t,i,r=3,o=r){const s=(0,n.k)(e.length,r,3),a=(0,n.k)(t.length,o,3),l=Math.min(s,a),c=i[0],u=i[1],h=i[2],d=i[4],p=i[5],m=i[6],f=i[8],g=i[9],y=i[10],v=i[12],w=i[13],b=i[14];let C=0,_=0;for(let i=0;i<l;i++){const i=t[C],n=t[C+1],s=t[C+2];e[_]=c*i+d*n+f*s+v,e[_+1]=u*i+p*n+g*s+w,e[_+2]=h*i+m*n+y*s+b,C+=o,_+=r}return e}function s(e,t,i){a(e.typedBuffer,t.typedBuffer,i,e.typedBufferStride,t.typedBufferStride)}function a(e,t,i,r=3,o=r){const s=(0,n.k)(e.length,r,3),a=(0,n.k)(t.length,o,3),l=Math.min(s,a),c=i[0],u=i[1],h=i[2],d=i[3],p=i[4],m=i[5],f=i[6],g=i[7],y=i[8];let v=0,w=0;for(let i=0;i<l;i++){const i=t[v],n=t[v+1],s=t[v+2];e[w]=c*i+d*n+f*s,e[w+1]=u*i+p*n+g*s,e[w+2]=h*i+m*n+y*s,v+=o,w+=r}}function l(e,t,i,n=3,r=n){const o=Math.min(e.length/n,t.length/r);let s=0,a=0;for(let l=0;l<o;l++)e[a]=i*t[s],e[a+1]=i*t[s+1],e[a+2]=i*t[s+2],s+=r,a+=n;return e}function c(e,t,i,n){u(e.typedBuffer,t.typedBuffer,i,n,e.typedBufferStride,t.typedBufferStride)}function u(e,t,i,n,r=3,o=r){const s=Math.min(e.length/r,t.length/o);let a=0,l=0;const c=1/2.2;for(let u=0;u<s;u++)e[l]=n*(i*t[a])**c,e[l+1]=n*(i*t[a+1])**c,e[l+2]=n*(i*t[a+2])**c,a+=o,l+=r}function h(e,t,i,r=3,o=r){const s=(0,n.k)(e.length,r,3),a=(0,n.k)(t.length,o,3),l=Math.min(s,a);let c=0,u=0;for(let n=0;n<l;n++)e[u]=t[c]+i[0],e[u+1]=t[c+1]+i[1],e[u+2]=t[c+2]+i[2],c+=o,u+=r;return e}function d(e,t){p(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function p(e,t,i=3,n=i){const r=Math.min(e.length/i,t.length/n);let o=0,s=0;for(let a=0;a<r;a++){const r=t[o],a=t[o+1],l=t[o+2],c=r*r+a*a+l*l;if(c>0){const t=1/Math.sqrt(c);e[s]=t*r,e[s+1]=t*a,e[s+2]=t*l}o+=n,s+=i}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:u,linearToSRGBView:c,normalize:p,normalizeView:d,scale:l,scaleView:function(e,t,i){l(e.typedBuffer,t.typedBuffer,i,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,i){const n=Math.min(e.count,t.count),r=e.typedBuffer,o=e.typedBufferStride,s=t.typedBuffer,a=t.typedBufferStride;let l=0,c=0;for(let e=0;e<n;e++)r[c]=s[l]>>i,r[c+1]=s[l+1]>>i,r[c+2]=s[l+2]>>i,l+=a,c+=o},transformMat3:a,transformMat3View:s,transformMat4:o,transformMat4View:r,translate:h},Symbol.toStringTag,{value:"Module"}))},7762(e,t,i){var n,r=i(5482),o=i(98291),s=i(4576),a=i(65529),l=i(36563),c=i(4718),u=i(53966),h=i(93687),d=i(76030),p=i(56507),m=i(62788),f=i(10107),g=i(7695),y=i(64108),v=i(95488),w=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(e){this.defaultPrevented=!1,this.item=e}}class C{constructor(e,t,i,n,r){this.target=e,this.added=t,this.removed=i,this.start=n,this.deleteCount=r}}const _=new h.A(()=>new b,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function M(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function T(e){return e?e instanceof E?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function x(e){if(e?.length)return e[0]}function A(e,t,i,n){const r=Math.min(e.length-i,t.length-n);let o=0;for(;o<r&&e[i+o]===t[n+o];)o++;return o}function S(e,t,i,n){t&&t.forEach((t,r,o)=>{e.push(t),S(e,i.call(n,t,r,o),i,n)})}const D=new Set,R=new Set,Z=new Set,O=new Map;let I=0,E=n=class extends a.nJ{static ofType(e){if(!e)return n;if(O.has(e))return O.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const i in e.typeMap){const n=e.typeMap[i].prototype.declaredClass;t?t+=` | ${n}`:t=n}let i=class extends n{};return(0,r.Cg)([(0,g.u)({Type:e,ensureType:"function"==typeof e?(0,p.dp)(e):(0,p.aq)(e)})],i.prototype,"itemType",void 0),i=(0,r.Cg)([(0,y.$)(`esri.core.Collection<${t}>`)],i),O.set(e,i),i}static isCollection(e){return null!=e&&e instanceof n}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new v.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:I++})}normalizeCtorArgs(e){return e?(0,s.yc)(e)||e instanceof n?{items:e}:e:{}}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(e){e>this._length?u.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(e,Math.max(0,this._length-e))}get items(){return(0,m.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,T(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,l.hA)();if("change"===e){const e=this._chgListeners,i={removed:!1,callback:t};return e.push(i),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,l.hA)(()=>{i.removed=!0,e.splice(e.indexOf(i),1)})}return super.on(e,t)}once(e,t){const i="deref"in t?()=>t.deref():()=>t,n=this.on(e,e=>{i()?.call(null,e),n.remove()});return n}add(e,t){if((0,m.gc)(this._observable),this._emitBeforeChanges(1))return this;const i=this.getNextIndex(t??null);return this._splice(i,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,m.gc)(this._observable),!e?.length)return this;if(this._emitBeforeChanges(1))return this;const i=this.getNextIndex(t);return this._splice(i,0,T(e)),this._emitAfterChanges(1),this}at(e){if((0,m.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];const e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,m.gc)(this._observable),this._createNewInstance({items:this._items.map(c.o8)})}concat(...e){(0,m.gc)(this._observable);const t=e.map(T);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const i=this._splice(0,this.length),n=i.length;for(let r=0;r<n;r++)e.call(t,i[r],r,i);this._emitAfterChanges(2)}destroyAll(){this.drain(M)}destroyMany(e){const t=this.removeMany(e);return t.forEach(M),t}every(e,t){return(0,m.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,m.gc)(this._observable);const i=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:i})}find(e,t){return(0,m.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,m.gc)(this._observable),this._items.findIndex(e,t)}findLast(e,t){return(0,m.gc)(this._observable),this._items.findLast(e,t)}findLastIndex(e,t){return(0,m.gc)(this._observable),this._items.findLastIndex(e,t)}flatten(e,t){(0,m.gc)(this._observable);const i=[];return S(i,this,e,t),new n(i)}forEach(e,t){return(0,m.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,m.gc)(this._observable),this._items[e]}getNextIndex(e){(0,m.gc)(this._observable);const t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,m.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,m.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,m.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,m.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,m.gc)(this._observable);const i=this._items.map(e,t);return new n({items:i})}reorder(e,t=this.length-1){(0,m.gc)(this._observable);const i=this.indexOf(e);if(-1!==i){if(t<0?t=0:t>=this.length&&(t=this.length-1),i!==t){if(this._emitBeforeChanges(4))return e;this._splice(i,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=x(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,m.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,m.gc)(this._observable);const i=this._items;return 2===arguments.length?i.reduce(e,t):i.reduce(e)}reduceRight(e,t){(0,m.gc)(this._observable);const i=this._items;return 2===arguments.length?i.reduceRight(e,t):i.reduceRight(e)}remove(e){return(0,m.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,m.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;const t=x(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,m.gc)(this._observable),!e?.length||this._emitBeforeChanges(2))return[];const t=e instanceof n?e.toArray():e,i=this._items,r=[],o=t.length;for(let e=0;e<o;e++){const n=t[e],o=i.indexOf(n);if(o>-1){const n=1+A(t,i,e+1,o+1),s=this._splice(o,n);s&&s.length>0&&r.push.apply(r,s),e+=n-1}}return this._emitAfterChanges(2),r}reverse(){if((0,m.gc)(this._observable),this._emitBeforeChanges(4))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=x(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,m.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,m.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;const t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){const t=this.length-1;for(let i=0;i<t;i++)if(e(this.items[i],this.items[i+1])>0)return!0;return!1}splice(e,t,...i){(0,m.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;const n=(t?2:0)|(i.length?1:0);if(this._emitBeforeChanges(n))return[];const r=this._splice(e,t,i)||[];return this._emitAfterChanges(n),r}toArray(){return(0,m.gc)(this._observable),this._items.slice()}toJSON(e){return(0,m.gc)(this._observable),this.toArray().map(t=>(0,w.W)(t)?t.toJSON(e):t)}toLocaleString(){return(0,m.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,m.gc)(this._observable),this._items.toString()}unshift(...e){return(0,m.gc)(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,i){const n=this._items,r=this.itemType;let o,s;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())),e<0&&(e+=this.length),t){if(s=n.splice(e,t),this.hasEventListener("before-remove")){const t=_.acquire();t.target=this,t.cancellable=!0;for(let i=0,r=s.length;i<r;i++)o=s[i],t.reset(o),this.emit("before-remove",t),t.defaultPrevented&&(s.splice(i,1),n.splice(e,0,o),e+=1,i-=1,r-=1);_.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){const e=_.acquire();e.target=this,e.cancellable=!1;const t=s.length;for(let i=0;i<t;i++)e.reset(s[i]),this.emit("after-remove",e);_.release(e)}}if(i?.length){if(r){const e=[];for(const t of i){const i=r.ensureType(t);null==i&&null!=t||e.push(i)}i=e}const t=this.hasEventListener("before-add"),o=this.hasEventListener("after-add"),s=e===this.length;if(t||o){const r=_.acquire();r.target=this,r.cancellable=!0;const a=_.acquire();a.target=this,a.cancellable=!1;for(const l of i)t?(r.reset(l),this.emit("before-add",r),r.defaultPrevented||(s?n.push(l):n.splice(e++,0,l),this._length=n.length,o&&(a.reset(l),this.emit("after-add",a)))):(s?n.push(l):n.splice(e++,0,l),this._length=n.length,a.reset(l),this.emit("after-add",a));_.release(a),_.release(r)}else{if(s)for(const e of i)n.push(e);else n.splice(e,0,...i);this._length=n.length}}if((i?.length||s?.length)&&this._notifyChangeEvent(i,s),this.hasEventListener("after-splice")){const n=new C(this,i,s,e,t);this.emit("after-splice",n)}return s}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const i=_.acquire();i.target=this,i.cancellable=!0,i.type=e,this.emit("before-changes",i),t=i.defaultPrevented,_.release(i)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=_.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),_.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;D.clear(),R.clear(),Z.clear();for(const{added:t,removed:i}of e){if(t)if(0===Z.size&&0===R.size)for(const e of t)D.add(e);else for(const e of t)R.has(e)?(Z.add(e),R.delete(e)):Z.has(e)||D.add(e);if(i)if(0===Z.size&&0===D.size)for(const e of i)R.add(e);else for(const e of i)D.has(e)?D.delete(e):(Z.delete(e),R.add(e))}const i=o.A.acquire();D.forEach(e=>{i.push(e)});const n=o.A.acquire();R.forEach(e=>{n.push(e)});const r=this._items,s=t.items,a=o.A.acquire();if(Z.forEach(e=>{s.indexOf(e)!==r.indexOf(e)&&a.push(e)}),t.listeners&&(i.length||n.length||a.length)){const e={target:this,added:i,removed:n,moved:a},r=t.listeners.length;for(let i=0;i<r;i++){const n=t.listeners[i];n.removed||n.callback.call(this,e)}}o.A.release(i),o.A.release(n),o.A.release(a)}D.clear(),R.clear(),Z.clear()}};(0,r.Cg)([(0,f.MZ)()],E.prototype,"_updating",void 0),(0,r.Cg)([(0,f.MZ)()],E.prototype,"_length",void 0),(0,r.Cg)([(0,f.MZ)()],E.prototype,"length",null),(0,r.Cg)([(0,f.MZ)()],E.prototype,"items",null),(0,r.Cg)([(0,f.MZ)({readOnly:!0})],E.prototype,"updating",null),E=n=(0,r.Cg)([(0,y.$)("esri.core.Collection")],E);const L=E;i.d(t,["A",0,L])},4902(e,t,i){var n=i(5482),r=i(64108);let o=0;const s=e=>{const t=e;let i=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return i=(0,n.Cg)([(0,r.$)("esri.core.Identifiable")],i),i};s(class{}),i.d(t,["s",0,s])},7695(e,t,i){function n(e){return(t,i)=>{t[i]=e}}i.d(t,{u:()=>n})},82534(e,t,i){function n(){return[0,0,0,1]}function r(e){return[e[0],e[1],e[2],e[3]]}i.d(t,{o8:()=>r,vt:()=>n});const o=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:r,create:n,fromValues:function(e,t,i,n){return[e,t,i,n]}},Symbol.toStringTag,{value:"Module"})),i.d(t,["zK",0,o])},48163(e,t,i){function n(){return[0,0]}function r(e){return[e[0],e[1]]}function o(e,t){return[e,t]}function s(){return o(1,1)}function a(){return o(-1,-1)}function l(){return o(1,0)}function c(){return o(0,1)}i.d(t,{fA:()=>o,o8:()=>r,vt:()=>n});const u=s(),h=a(),d=l(),p=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:h,ONES:u,UNIT_X:d,UNIT_Y:p,ZEROS:[0,0],clone:r,create:n,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){const i=Math.min(2,e.length);for(let n=0;n<i;++n)t[n]=e[n];return t},fromValues:o,negativeOnes:a,ones:s,unitX:l,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),i.d(t,["IA",0,h,"Un",0,u])},36708(e,t,i){i.d(t,{C_:()=>d,on:()=>h,wB:()=>l,z7:()=>c});var n=i(37955),r=i(36563),o=i(97768),s=i(17676),a=i(14012);function l(e,t,i={}){return u(e,t,i,p)}function c(e,t,i={}){return u(e,t,i,m)}function u(e,t,i={},n){let r=null;const s=i.once?(e,i)=>{n(e)&&((0,o.xt)(r),t(e,i))}:(e,i)=>{n(e)&&t(e,i)};if(r=(0,a.Cn)(e,s,i.sync,i.equals),i.initial){const t=e();s(t,t)}return r}function h(e,t,i,s={}){let a=null,c=null,u=null;function h(){a&&c&&(c.remove(),s.onListenerRemove?.(a),a=null,c=null)}function d(e){s.once&&s.once&&(0,o.xt)(u),i(e)}const p=l(e,(e,i)=>{h(),(0,n.wb)(e)&&(a=e,c=(0,n.on)(e,t,d),s.onListenerAdd?.(e))},{sync:s.sync,initial:!0});return u=(0,r.hA)(()=>{p.remove(),h()}),u}function d(e,t){return function(e,t,i){if((0,s.G4)(i))return Promise.reject((0,s.NK)());const n=e();if(t?.(n))return Promise.resolve(n);let a=null;function l(){a=(0,o.xt)(a)}return new Promise((n,o)=>{a=(0,r.vE)([(0,s.u7)(i,()=>{l(),o((0,s.NK)())}),u(e,e=>{l(),n(e)},{sync:!1,once:!0},t??p)])})}(e,m,t)}function p(e){return!0}function m(e){return!!e}i(80559),i.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},88930(e,t,i){i.d(t,{S1:()=>a,lL:()=>c,mi:()=>l,rb:()=>u,t:()=>h});var n=i(97770),r=(i(98623),i(92647));const o=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,s={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function a(e,t,i,o="system"){if("unknown"===i)return e;const s=new r.oh((0,n.wj)(o)),a=r.c9.fromJSDate(e,{zone:s}),l="decades"===i||"centuries"===i?"year":function(e){switch(e){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&&(t*=10),"centuries"===i&&(t*=100),a.plus({[l]:t}).toJSDate()}function l(e,t,i="milliseconds"){const n=e.getTime(),r=h(t,i,"milliseconds");return new Date(n+r)}function c(e,t,i="system"){const{unit:o}=t,s=Math.max(1,Math.trunc(t.value)),a=new r.oh((0,n.wj)(i)),l=r.c9.fromJSDate(e,{zone:a}),c=e=>e-e%s;switch(o){case"milliseconds":return l.startOf("second").plus({millisecond:c(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:c(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:c(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:c(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:c(l.day-1)}).toJSDate();case"weeks":{const e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:c(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:c(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{const e=l.startOf("year"),t=("decades"===o?10:"centuries"===o?100:1)*s,i=e.year-e.year%t;return e.set({year:i}).toJSDate()}case"unknown":return e}}function u(e){const t=o.exec(e);if(!t)return null;const{hh:i,mm:n,ss:r,ms:a}=t.groups;return Number(i)*s.hours+Number(n)*s.minutes+Number(r||0)*s.seconds+Number(a||0)}function h(e,t,i){return 0===e?0:e*s[t]/s[i]}},35982(e,t,i){i.d(t,{B:()=>u});var n=i(4576),r=i(71511),o=i(36563),s=i(53966),a=i(97768),l=i(17676),c=i(83027);class u{constructor(e,t,i,n,r={}){this._mainMethod=t,this._transferLists=i,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,c.h)(e,{...r,schedule:n}).then(e=>{null!=this._thread||this._destroyed?e.close():(this._thread=e,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(e=>{r.hasInitialize&&e.invoke("initialize",{}).catch(()=>{});for(const t of this._listeners)this._connectListenerToClient(t,e);this._onClientConnected(e)}))}),this._promise.catch(t=>s.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`))}on(e,t){const i=new h(e,t);return this._listeners.push(i),this._connectListener(i),(0,o.hA)(()=>{(0,n.TF)(this._listeners,i),i.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,a.xt)(this._onClientConnectedHandle),this._thread&&(this._thread.close(),this._thread=null),this._promise=null;for(const e of this._listeners)e.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(e,t,i){return this.invokeMethod(this._mainMethod,e,t,i)}invokeMethod(e,t,i,n){if(this._thread){const r=this._transferLists[e],o=r?r(t):[];return this._thread.invoke(e,t,{transferList:o,signal:i,jobPriority:n})}return this._promise?this._promise.then(()=>((0,l.Te)(i),this.invokeMethod(e,t,i))):Promise.reject((0,l.NK)())}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then(d):this._promise?this._promise.then(()=>this.broadcast(e,t)):Promise.reject((0,l.NK)())}get promise(){return this._promise}_onClientConnected(e){}_connectListener(e){this._thread&&e.add(this._thread.on(e.eventName,e.callback))}_connectListenerToClient(e,t){e.add(t.on(e.eventName,e.callback))}}class h{constructor(e,t){this.eventName=e,this.callback=t,this._handles=new r.A}add(e){this._handles.add(e)}destroy(){this._handles.destroy()}}function d(){}},54239(e,t,i){i.d(t,{A:()=>y});var n,r=i(5482),o=i(4576),s=i(66552),a=i(25482),l=i(86211),c=i(67076),u=i(91429),h=i(97348),d=i(43937),p=i(36005);const m=(0,s.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),f=m.jsonValues.slice();(0,o.Xy)(f,"orthometric");const g=(0,s.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let y=n=class extends a.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return m.write(e,t,i)}readHeightModel(e,t,i){return m.read(e)||(i?.messages&&i.messages.push(function(e,t){return new c.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return g.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,l.LA)(e)||g.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new n({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,l.k1)(t);return new n({heightModel:e.heightModel,heightUnit:i??void 0,vertCRS:e.vertCRS})}static fromSpatialReference(e){const{latestVcsWkid:t,vcsWkid:i}=e;if(!i)return null;const r=(null!=t?h.B.get(t):null)??h.B.get(i);return r?new n({heightModel:0===r.type?"gravity-related-height":"ellipsoidal",heightUnit:(0,l.LA)(r.unit.name),vertCRS:r.datum}):null}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new n;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new c.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,r.Cg)([(0,u.MZ)({type:m.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f,default:"ellipsoidal",write:{isRequired:!0}}}}})],y.prototype,"heightModel",void 0),(0,r.Cg)([(0,d.K)("web-scene","heightModel")],y.prototype,"writeHeightModel",null),(0,r.Cg)([(0,p.w)(["web-scene","service"],"heightModel")],y.prototype,"readHeightModel",null),(0,r.Cg)([(0,u.MZ)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g.jsonValues,write:{writer:g.write,isRequired:!0}}}}})],y.prototype,"heightUnit",void 0),(0,r.Cg)([(0,p.w)("web-scene","heightUnit")],y.prototype,"readHeightUnit",null),(0,r.Cg)([(0,p.w)("service","heightUnit")],y.prototype,"readHeightUnitService",null),(0,r.Cg)([(0,u.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],y.prototype,"vertCRS",void 0),(0,r.Cg)([(0,p.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],y.prototype,"readVertCRS",null),y=n=(0,r.Cg)([(0,u.$K)("esri.geometry.HeightModelInfo")],y)},77085(e,t,i){i.d(t,{Hh:()=>a,fz:()=>u,g7:()=>l,s1:()=>s,zo:()=>c});var n=i(76061),r=i(83290);let o;function s(){return!!o&&(0,r.i)()}async function a(){if(!s()){const[e,t]=await Promise.all([Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(1088)]).then(i.bind(i,31088)),Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(5756)]).then(i.bind(i,15756)).then(({injectPe:e})=>e),(0,r.l)()]);o=new e.OperatorGeodeticDensifyByLength,t(r.p)}}function l(e,t,i,n){return o.execute(e,t,i,n,null)}function c(e,t,i,r){const s=o.executeMany(new n.S(e),t,i,r,null);return Array.from(s)}function u(){return o.supportsCurves()}},4144(e,t,i){i.r(t),i.d(t,{clipToSpatialReference:()=>l,execute:()=>c,executeMany:()=>u,foldInto360Range:()=>h,foldInto360RangeGeodetic:()=>d,isLoaded:()=>s,load:()=>a,normalizeGeometry:()=>p,supportsCurves:()=>m,transform:()=>f});var n=i(76061),r=i(83290);let o;function s(){return!!o&&(0,r.i)()}async function a(){if(!s()){const[e,t]=await Promise.all([Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(9192)]).then(i.bind(i,9192)),Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(5756)]).then(i.bind(i,15756)).then(({injectPe:e})=>e),(0,r.l)()]);o=new e.OperatorProject,t(r.p)}}function l(e,t,i){return o.clipToSpatialReference(e,t,null,i)}function c(e,t){return o.execute(e,t,null)}function u(e,t){const i=o.executeMany(new n.S(e),t,null);return Array.from(i)}function h(e,t){return o.foldInto360Range(e,t)}function d(e,t,i){return o.foldInto360RangeGeodetic(e,t,i)}function p(e,t,i){return o.normalizeGeometry(e,t,i)}function m(){return o.supportsCurves()}function f(e,t,i,n,r){return o.transform(e,t,i,n,r)}},83276(e,t,i){i.r(t),i.d(t,{execute:()=>p,executeMany:()=>m,isLoaded:()=>h,load:()=>d,supportsCurves:()=>u});var n=i(4144),r=i(17499);let o,s,a,l,c,u;function h(){return!!o&&(0,n.isLoaded)()}async function d(){if(!h()){const[e,t]=await Promise.all([Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(1666)]).then(i.bind(i,78125)),Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(6129)]).then(i.bind(i,86129)),(0,n.load)()]);o=e.fromGeometry,s=e.fromSpatialReference,a=e.getSpatialReference,l=e.toGeometry,c=t.createProjectionTransformation,u=(0,n.supportsCurves)()}}function p(e,t,i){const u=a(e),h=c(s(u),s(t),i),d=l((0,n.execute)(o(e),h),t);return!i?.zConversionDisabled&&d?.hasZ&&(0,r.g)([d],u,t),d}function m(e,t,i){const u=e.map(o),h=a(e),d=c(s(h),s(t),i),p=(0,n.executeMany)(u,d).map(e=>l(e,t));return!i?.zConversionDisabled&&p&&(0,r.g)(p,h,t),p}},17499(e,t,i){i.d(t,{g:()=>o});var n=i(60408),r=i(62815);function o(e,t,i){let o;for(const s of e)if(s&&(0,n.Pv)(s)&&!("vertexAttributes"in s)){if(!o){const e="type"in s?s.type:(0,n.$B)(s);if(o=(0,r.N)(e,t,i),!o)return}o(s)}}},72727(e,t,i){function n(e,t,i){if(t<=0)return 0;const n=e-i;return n<0?0:Math.floor(n/t)+1}i.d(t,{k:()=>n}),i(53966)},27921(e,t,i){i.d(t,{$Q:()=>b,C:()=>a,Cr:()=>u,H:()=>_,O_:()=>c,Qj:()=>l,T7:()=>v,Tj:()=>w,lU:()=>h,mN:()=>M,vE:()=>T,vt:()=>s});var n=i(34727),r=i(35522),o=i(51850);function s(e=x){return[e[0],e[1],e[2],e[3]]}function a(e,t){return function(e,t,i,n,r=s()){return r[0]=e,r[1]=t,r[2]=i,r[3]=n,r}(t[0],t[1],t[2],t[3],e)}function l(e){return e}function c(e,t,i){const n=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],r=Math.abs(n-1)>1e-5&&n>1e-12?1/Math.sqrt(n):1;return i[0]=t[0]*r,i[1]=t[1]*r,i[2]=t[2]*r,i[3]=-(i[0]*e[0]+i[1]*e[1]+i[2]*e[2]),i}function u(e,t,i,n=s()){const r=i[0]-t[0],o=i[1]-t[1],a=i[2]-t[2],l=e[0]-t[0],c=e[1]-t[1],u=e[2]-t[2],h=o*u-a*c,d=a*l-r*u,p=r*c-o*l,m=h*h+d*d+p*p,f=Math.abs(m-1)>1e-5&&m>1e-12?1/Math.sqrt(m):1;return n[0]=h*f,n[1]=d*f,n[2]=p*f,n[3]=-(n[0]*e[0]+n[1]*e[1]+n[2]*e[2]),n}function h(e,t,i,n=0,o=Math.floor(i*(1/3)),s=Math.floor(i*(2/3))){if(i<3)return!1;t(p,n);let a=o,l=!1;for(;a<i-1&&!l;)t(m,a),a++,l=!(0,r.t2)(p,m);if(!l)return!1;for(a=Math.max(a,s),l=!1;a<i&&!l;)t(f,a),a++,(0,r.Re)(g,p,m),(0,r.S8)(g,g),(0,r.Re)(y,m,f),(0,r.S8)(y,y),l=!(0,r.t2)(p,f)&&!(0,r.t2)(m,f)&&Math.abs((0,r.Om)(g,y))<d;return l?(u(p,m,f,e),!0):(0!==n||1!==o||2!==s)&&h(e,t,i,0,1,2)}i(78955),i(44280),i(32114),i(32728);const d=.99619469809,p=(0,o.vt)(),m=(0,o.vt)(),f=(0,o.vt)(),g=(0,o.vt)(),y=(0,o.vt)();function v(e,t,i){return function(e){return 0===e||1===e}(T(e,t.origin,t.vector,0,i))}function w(e,t){return M(e,t)>=0}function b(e,t){return function(e,t,i,n,o,s,a){const l=(0,r.Om)(e,i),c=M(e,t);if(l>-1e-6&&l<1e-6)return C(c,o,s);const u=-c/l,h=C(l,o,!1);return!(a&&!h&&!C(c,o,s))&&(h?u>n.c0&&(n.c0=u):u<n.c1&&(n.c1=u),n.c0<=n.c1)}(e,t.ray.origin,t.ray.direction,t,!1,!1,!0)}function C(e,t,i){return i?t?e>=0:e<=0:t?e>0:e<0}function _(e,t,i,n=!1){let o=t.at(-1),s=M(e,o),a=n?s>0:s<=0;for(let l=0;l<t.length;l++){const c=t.at(l),u=M(e,c),h=n?u>0:u<=0;a!==h&&(0,r.Cc)(i(),o,c,s/(s-u)),h&&(0,r.C)(i(),c),o=c,s=u,a=h}}function M(e,t){return(0,r.Om)(e,t)+e[3]}function T(e,t,i,o,s){const a=(0,r.Om)(e,i),l=M(e,t);if(0===a)return l>=0?2:3;let c=-l/a;return 1&o&&(c=(0,n.qE)(c,0,1)),!(4&o)&&c<0||!(8&o)&&c>1?l>=0?2:3:((0,r.WQ)(s,t,(0,r.hs)(s,i,c)),l>=0?0:1)}const x=[0,0,1,0];(0,o.vt)()},44280(e,t,i){i.d(t,{g7:()=>a,gr:()=>s});var n=i(34727),r=i(35522),o=i(51850);function s(e,t){return(0,r.Om)(e,t)/(0,r.Bw)(e)}function a(e,t){const i=(0,r.Om)(e,t)/((0,r.Bw)(e)*(0,r.Bw)(t));return-(0,n.XM)(i)}(0,o.vt)(),(0,o.vt)()},32114(e,t,i){i.d(t,{Rc:()=>p,rq:()=>h,Km:()=>d}),i(44208);var n=i(26390),r=i(29242),o=i(9093),s=i(82534),a=i(48163),l=i(51850),c=i(91829);class u{constructor(e){this._create=e,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,n.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const e=2*this._itemsPtr;this._items.length>e&&(this._items.length=e),this._itemsPtr=0}static createVec2f64(){return new u(a.vt)}static createVec3f64(){return new u(l.vt)}static createVec4f64(){return new u(c.vt)}static createMat3f64(){return new u(r.vt)}static createMat4f64(){return new u(o.vt)}static createQuatf64(){return new u(s.vt)}get test(){}}u.createVec2f64();const h=u.createVec3f64(),d=u.createVec4f64(),p=(u.createMat3f64(),u.createMat4f64());u.createQuatf64()},97770(e,t,i){i.d(t,{Ey:()=>I,F8:()=>O,J2:()=>S,Yq:()=>R,_m:()=>D,iS:()=>Z,wj:()=>E});var n=i(66552),r=i(73444),o=i(98623),s=i(92647);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},c={timeZone:"UTC"},u={year:"numeric",month:"numeric",day:"numeric"},h={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},v={...f,...g},w={"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,...v},"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,...v},"long-month-day-year":h,"long-month-day-year-short-time":{...h,...m},"long-month-day-year-short-time-24":{...h,...y},"long-month-day-year-long-time":{...h,...f},"long-month-day-year-long-time-24":{...h,...v},"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,...v},"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,...v},"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,n.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"}),C={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},_=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),M=_.find(({type:e})=>"month"===e)?.value.toLowerCase();function T(){const e=(0,r.lR)();return(e&&C[e])??(0,r.QC)()}"mart"!==M&&(C.bs="sr-Latn-CS");let x=new WeakMap;const A=w["short-date-short-time"];function S(e){return w[e]}function D(e){const{dateStyle:t,timeStyle:i,hour12:n,year:r,month:o}=e,s={};return t?s.dateStyle=t:r&&(s.year=r,s.month=o||void 0),i&&!s.year&&(s.timeStyle=i,s.hour12="auto"===n?void 0:"always"===n),s}function R(e,t=A){return function(e){let t=x.get(e);if(!t){const i=T(),n=E(e.timeZone??"system"),r={...e,timeZone:n};t=new Intl.DateTimeFormat(i,r),x.set(e,t)}return t}(t).format(e)}function Z(e,t=A){return R(new Date(e),{...t,...c,...l})}function O(e,t=A){return R(new Date(`1970-01-01T${e}Z`),{...t,...c,...a})}function I(e,t=A){const i=s.c9.fromISO(e,{setZone:!0});if(!i.isValid)return e;if(t.timeZone)return R(i.toJSDate(),t);const n=0===i.offset?"UTC":t.timeZone,r={...t,timeZone:n};return i.toLocaleString(r,{locale:T()})}function E(e){switch(e){case"system":return o.N;case o.L:return"UTC";default:return e}}(0,r.Ml)(()=>{x=new WeakMap}),i.d(t,["_v",0,b])},73444(e,t,i){i.d(t,{JK:()=>l,Ml:()=>g,QC:()=>h,lR:()=>u,oQ:()=>m});var n=i(36563);let r;i(44208);const o=globalThis.esriConfig?.locale,s=globalThis.document?.documentElement;function a(){const e=s?.getAttribute("lang"),t=globalThis.navigator?.language;return o??e??t??"en"}function l(){return void 0===r&&(r=a()),r}const c=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function u(e=l()){return d(e)?.language}function h(e=l()){const t=d(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function d(e=l()){return c.exec(e)?.groups}const p=[];function m(e){return p.push(e),(0,n.hA)(()=>{p.splice(p.indexOf(e),1)})}new Map;const f=[];function g(e){return f.push(e),(0,n.hA)(()=>f.splice(f.indexOf(e),1))}function y(){const e=a();r!==e&&([...f].forEach(t=>t(e)),r=e,[...p].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",y),s&&new MutationObserver(()=>{y()}).observe(s,{attributeFilter:["lang"]})},38732(e,t,i){i.r(t),i.d(t,{default:()=>x});var n=i(5482),r=i(11254),o=i(49186),s=i(97768),a=i(25728),l=i(17676),c=i(84952),u=i(91429),h=i(54239),d=i(4146),p=i(89186),m=i(18768),f=i(34287),g=i(8303),y=i(10873),v=i(87378),w=i(35982);class b extends w.B{constructor(e=null){super("LercWorker","_decode",{_decode:e=>[e.buffer]},e,{strategy:"dedicated"}),this.schedule=e,this.ref=0}decode(e,t,i){return e&&0!==e.byteLength?this.invoke({buffer:e,options:t},i):Promise.resolve(null)}release(){--this.ref<=0&&(C.forEach((e,t)=>{e===this&&C.delete(t)}),this.destroy())}}const C=new Map;var _=i(36005);let M=class extends((0,p.f)((0,m.b)((0,f.q)((0,g.A)((0,a.M)(d.A)))))){constructor(...e){super(...e),this.capabilities={operations:{supportsTileMap:!1}},this.copyright=null,this.heightModelInfo=null,this.path=null,this.minScale=void 0,this.maxScale=void 0,this.opacity=1,this.operationalLayerType="ArcGISTiledElevationServiceLayer",this.sourceJSON=null,this.type="elevation",this.url=null,this.version=null,this._lercDecoder=function(e=null){let t=C.get(e);return t||(null!=e?(t=new b(t=>e.immediate.schedule(t)),C.set(e,t)):(t=new b,C.set(null,t))),++t.ref,t}()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._lercDecoder=(0,s.Gz)(this._lercDecoder)}readCapabilities(e,t){const i=t.capabilities&&t.capabilities.split(",").map(e=>e.toLowerCase().trim());return i?{operations:{supportsTileMap:i.includes("tilemap")}}:{operations:{supportsTileMap:!1}}}get memoizedElevationQueryDependencies(){return[this.loadStatus,this.tileInfo,this.fullExtent,this.spatialReference]}readVersion(e,t){let i=t.currentVersion;return i||(i=9.3),i}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"],supportsData:!1,validateItem:e=>{if(e.typeKeywords)for(let t=0;t<e.typeKeywords.length;t++)if("elevation 3d layer"===e.typeKeywords[t].toLowerCase())return!0;throw new o.A("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}' ",{type:"Image Service",expectedType:"Image Service Elevation 3D Layer"})}},e).catch(l.QP).then(()=>this._fetchImageService(t))),Promise.resolve(this)}async fetchTile(e,t,i,n){const s=n?.signal,a={responseType:"array-buffer",signal:s,useQueue:n?.useQueue,priority:n?.priority},l={noDataValue:n?.noDataValue,returnFileInfo:!0};await this.load(),await this._fetchTileAvailability(e,t,i,n);const c=await(0,r.A)(this.getTileUrl(e,t,i),a),u=await this._lercDecoder.decode(c.data,l,s);if(!u)throw new o.A("elevation-layer:tile-decode-failed","Failed to decode elevation tile data.");return new v.A({values:u.pixelData,width:u.width,height:u.height,noDataValue:u.noDataValue})}getTileUrl(e,t,i){const n=!this.capabilities.operations.supportsTileMap&&this.supportsBlankTile,r=(0,c.x0)({...this.parsedUrl.query,blankTile:!n&&null});return`${this.parsedUrl.path}/tile/${e}/${t}/${i}${r?"?"+r:""}`}async queryElevation(e,t){const{query:n}=await i.e(91).then(i.bind(i,90091));return(0,l.Te)(t),n(this,e,t)}async createElevationSampler(e,t){const{createSampler:n}=await i.e(91).then(i.bind(i,90091));return(0,l.Te)(t),n(this,e,t)}_fetchTileAvailability(e,t,i,n){return this.tilemapCache?this.tilemapCache.fetchAvailability(e,t,i,n):Promise.resolve("unknown")}async _fetchImageService(e){if(this.sourceJSON)return this.sourceJSON;const t={query:{f:"json",...this.parsedUrl.query},responseType:"json",signal:e},i=await(0,r.A)(this.parsedUrl.path,t);i.ssl&&(this.url=this.url?.replace(/^http:/i,"https:")),this.sourceJSON=i.data,this.read(i.data,{origin:"service",url:this.parsedUrl})}get hasOverriddenFetchTile(){return!this.fetchTile[T]}};(0,n.Cg)([(0,u.MZ)({readOnly:!0})],M.prototype,"capabilities",void 0),(0,n.Cg)([(0,_.w)("service","capabilities",["capabilities"])],M.prototype,"readCapabilities",null),(0,n.Cg)([(0,u.MZ)({json:{read:{source:"copyrightText"}}})],M.prototype,"copyright",void 0),(0,n.Cg)([(0,u.MZ)({readOnly:!0,type:h.A})],M.prototype,"heightModelInfo",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],M.prototype,"path",void 0),(0,n.Cg)([(0,u.MZ)({type:["show","hide"]})],M.prototype,"listMode",void 0),(0,n.Cg)([(0,u.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],M.prototype,"minScale",void 0),(0,n.Cg)([(0,u.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],M.prototype,"maxScale",void 0),(0,n.Cg)([(0,u.MZ)({json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],M.prototype,"opacity",void 0),(0,n.Cg)([(0,u.MZ)({type:["ArcGISTiledElevationServiceLayer"]})],M.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,u.MZ)()],M.prototype,"sourceJSON",void 0),(0,n.Cg)([(0,u.MZ)({json:{read:!1},value:"elevation",readOnly:!0})],M.prototype,"type",void 0),(0,n.Cg)([(0,u.MZ)()],M.prototype,"memoizedElevationQueryDependencies",null),(0,n.Cg)([(0,u.MZ)(y.OZ)],M.prototype,"url",void 0),(0,n.Cg)([(0,u.MZ)()],M.prototype,"version",void 0),(0,n.Cg)([(0,_.w)("version",["currentVersion"])],M.prototype,"readVersion",null),M=(0,n.Cg)([(0,u.$K)("esri.layers.ElevationLayer")],M);const T=Symbol("default-fetch-tile");M.prototype.fetchTile[T]=!0;const x=M},4146(e,t,i){i.d(t,{A:()=>v});var n=i(5482),r=i(11254),o=i(49186),s=i(65529),a=i(4902),l=i(92474),c=i(53966),u=i(17676),h=i(84952),d=i(91429),p=i(5443),m=i(16930),f=i(92602),g=i(79677);let y=0,v=class extends((0,s.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(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([i.e(812),i.e(7982)]).then(i.bind(i,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:n}=await Promise.all([i.e(9917),i.e(812),i.e(9362)]).then(i.bind(i,45613));try{return await n(t)}catch(e){const i=t?.portalItem,n=i?.id||"unset",r=i?.portal?.url||f.A.portalUrl;throw c.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+r+"', id: '"+n+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,u.zf)(e)||c.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.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:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,h.An)(this.url)}createLayerView(e,t){return Promise.reject(new o.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,r.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new o.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,n.Cg)([(0,d.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,n.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"effectiveVisible",null),(0,n.Cg)([(0,d.MZ)({type:p.A})],v.prototype,"fullExtent",void 0),(0,n.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,n.Cg)([(0,d.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,d.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,n.Cg)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,n.Cg)([(0,d.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,n.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,n.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,n.Cg)([(0,d.MZ)({type:m.A})],v.prototype,"spatialReference",void 0),(0,n.Cg)([(0,d.MZ)({type:String})],v.prototype,"title",void 0),(0,n.Cg)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,n.Cg)([(0,d.MZ)()],v.prototype,"url",void 0),(0,n.Cg)([(0,d.MZ)({type:g.A})],v.prototype,"visibilityTimeExtent",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,n.Cg)([(0,d.$K)("esri.layers.Layer")],v)},89186(e,t,i){var n=i(5482),r=i(91429),o=i(16930),s=i(87045),a=i(65509),l=i(25943),c=i(36005);i.d(t,["f",0,e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.copyright=null,this.minScale=0,this.maxScale=0,this.spatialReference=null,this.tileInfo=null,this.tilemapCache=null}destroy(){this.tilemapCache?.destroy?.()}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}get supportsBlankTile(){return this.version>=10.2}readTilemapCache(e,t,i){const n=t.capabilities?.toLowerCase().includes("tilemap");let{minLOD:r,maxLOD:o,minScale:c,maxScale:u}=t;if(null==r&&null==o&&(0!==c||0!==u)){const e=e=>Math.round(1e4*e)/1e4;c=e(c||t.tileInfo.lods[0].scale),u=e(u||t.tileInfo.lods[t.tileInfo.lods.length-1].scale);for(const i of t.tileInfo.lods){const t=e(i.scale);r=t>=c?i.level:r,o=t>=u?i.level:o}}if(n)return new l.d({layer:this,minLOD:r,maxLOD:o});if(t.tileInfo){const e=new s.A;return e.read(t.tileInfo,i),new a.A(e,r,o)}return null}};return(0,n.Cg)([(0,r.MZ)({json:{read:{source:"copyrightText"}}})],i.prototype,"copyright",void 0),(0,n.Cg)([(0,r.MZ)()],i.prototype,"minScale",void 0),(0,n.Cg)([(0,c.w)("service","minScale")],i.prototype,"readMinScale",null),(0,n.Cg)([(0,r.MZ)()],i.prototype,"maxScale",void 0),(0,n.Cg)([(0,c.w)("service","maxScale")],i.prototype,"readMaxScale",null),(0,n.Cg)([(0,r.MZ)({type:o.A})],i.prototype,"spatialReference",void 0),(0,n.Cg)([(0,r.MZ)({readOnly:!0})],i.prototype,"supportsBlankTile",null),(0,n.Cg)([(0,r.MZ)({type:s.A})],i.prototype,"tileInfo",void 0),(0,n.Cg)([(0,r.MZ)()],i.prototype,"tilemapCache",void 0),(0,n.Cg)([(0,c.w)("service","tilemapCache",["capabilities","tileInfo"])],i.prototype,"readTilemapCache",null),(0,n.Cg)([(0,r.MZ)()],i.prototype,"version",void 0),i=(0,n.Cg)([(0,r.$K)("esri.layers.mixins.ArcGISCachedService")],i),i}])},63490(e,t,i){i.d(t,{Mr:()=>l,TH:()=>a});var n=i(5482),r=i(69540),o=i(25482),s=i(91429);let a=class extends((0,r.OU)(o.o)){constructor(){super(...arguments),this.url=null}};(0,n.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],a.prototype,"lod",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"rasterFunction",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"url",void 0),a=(0,n.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ElevationSource")],a);let l=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.constantElevation=null}};(0,n.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],l.prototype,"constantElevation",void 0),l=(0,n.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ConstantElevation")],l),i.d(t,["E1",0,e=>null!=e&&"number"==typeof e.constantElevation])},23281(e,t,i){i.d(t,{eR:()=>_,Qv:()=>R,fs:()=>x,Yp:()=>Z,o:()=>O,RR:()=>M,l6:()=>T});var n=i(66552),r=(i(86211),i(28735),i(5482)),o=i(69540),s=i(25482),a=i(91429),l=i(69622),c=i(21325);let u=class extends l.A{set horizontalWKID(e){e?(0,c.fn)({wkid:+e})?this._set("horizontalWKID",+e):this._set("horizontalWKID",e):this._set("horizontalWKID",null)}set verticalWKID(e){e?this._set("verticalWKID",isFinite(e)&&(0,c.fn)({wkid:+e})?+e:null):this._set("verticalWKID",null)}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:i,radialDistortionCoefficients:n,tangentialDistortionCoefficients:r}=this;return e?.length>1&&!Number.isNaN(t)&&i?.length>1&&n?.length>1&&r?.length>1}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"affineTransformations",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"focalLength",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"principalOffsetPoint",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"radialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"tangentialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"horizontalWKID",null),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"verticalWKID",null),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"x",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"y",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"z",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"type",void 0),u=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientation")],u);const h=u;let d=class extends((0,o.OU)((0,s.T)(h))){constructor(){super(...arguments),this.type=1}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,heading:s,pitch:a,roll:l,affineTransformations:c,focalLength:u,principalOffsetPoint:h,radialDistortionCoefficients:d,tangentialDistortionCoefficients:p}=this,m=[e,t,i,n,r,o,s,a,l];return this.isAdvanced&&(c?.forEach(e=>m.push(e)),m.push(u),h?.forEach(e=>m.push(e)),d?.forEach(e=>m.push(e)),p?.forEach(e=>m.push(e))),m.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],d.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"affineTransformations",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"focalLength",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"principalOffsetPoint",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"radialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"tangentialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"heading",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"pitch",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"roll",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"x",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"y",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"z",void 0),d=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationHPR")],d);const p=d;let m=class extends((0,o.OU)((0,s.T)(h))){constructor(){super(...arguments),this.type=4}toString(){const{type:e,latitude:t,longitude:i,ellipsoidRadius:n,squaredEccentricity:r,properties:o}=this,s=`${o}`.split("|");return s.splice(1,1),`${e}|${t}|${i}|${n}|${r}|${s.join("|")}`}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],m.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],m.prototype,"latitude",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],m.prototype,"longitude",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],m.prototype,"ellipsoidRadius",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],m.prototype,"squaredEccentricity",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],m.prototype,"properties",void 0),m=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationLTP")],m);const f=m;let g=class extends((0,o.OU)((0,s.T)(h))){constructor(){super(...arguments),this.type=2}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,omega:s,phi:a,kappa:l,affineTransformations:c,focalLength:u,principalOffsetPoint:h,radialDistortionCoefficients:d,tangentialDistortionCoefficients:p}=this,m=[e,t,i,n,r,o,s,a,l];return this.isAdvanced&&(c?.forEach(e=>m.push(e)),m.push(u),h?.forEach(e=>m.push(e)),d?.forEach(e=>m.push(e)),p?.forEach(e=>m.push(e))),m.map(e=>isNaN(e)?"":e).join("|")}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],g.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"affineTransformations",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"focalLength",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"principalOffsetPoint",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"radialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"tangentialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"omega",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"phi",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"kappa",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"x",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"y",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"z",void 0),g=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationOPK")],g);const y=g;let v=class extends((0,o.OU)((0,s.T)(h))){constructor(){super(...arguments),this.type=3}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:i,radialDistortionCoefficients:n,tangentialDistortionCoefficients:r}=this;return e?.length>1||!Number.isNaN(t)||i?.length>1||n?.length>1||r?.length>1}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,yaw:s,pitch:a,roll:l,affineTransformations:c,focalLength:u,principalOffsetPoint:h,radialDistortionCoefficients:d,tangentialDistortionCoefficients:p}=this,m=[e,t,i,n,r,o,s,a,l];return this.isAdvanced&&(c?.forEach(e=>m.push(e)),m.push(u),h?.forEach(e=>m.push(e)),h?.forEach(e=>m.push(e)),d?.forEach(e=>m.push(e)),p?.forEach(e=>m.push(e))),m.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],v.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"affineTransformations",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"focalLength",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"principalOffsetPoint",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"radialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"tangentialDistortionCoefficients",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"yaw",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"pitch",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"roll",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"x",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"y",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"z",void 0),v=(0,r.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationYPR")],v);const w=v,b=new Map;b.set("2",{desc:"Using Omega Phi Kappa",constructor:y}),b.set("1",{desc:"Using Heading, Pitch and Roll",constructor:p}),b.set("3",{desc:"Using Yaw, Pitch and Roll",constructor:w}),b.set("4",{desc:"Using Local Tangent Plane",constructor:f});var C=i(63490);function _(e,t,i){return e?(0,C.E1)(e)?new C.Mr(e):function(e,t,i){let{url:n}=e;return n?(n=function(e,t,i){return t&&(e=`${t}${e}`),i&&(e+=`${i}`),e}(n,t,i),new C.TH({...e,url:n})):null}(e,t,i):e}const M=new n.J({Minutes:"minutes",Hours:"hours",Days:"days",Weeks:"weeks",Months:"months",Years:"years"}),T=new n.J({Feet:"feet",Meter:"meter"}),x=new n.J({360:"360",Horizontal:"horizontal",Inspection:"inspection",Nadir:"nadir",Oblique:"oblique",Terrestrial360Video:"terrestrial-360-video",TerrestrialFrameVideo:"terrestrial-frame-video",Aerial360Video:"aerial-360-video",AerialFrameVideo:"aerial-frame-video","":null}),A=new Map;A.set("1",function(e){const[t,i,n,r,o,s,a,l,c,u,h,d,p,m,f,g,y,v,w,b,C,_]=e.slice(1);return{horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,heading:s,pitch:a,roll:l,...D([c,u,h,d,p,m],[g,y],[v,w,b],[C,_],f)}}),A.set("3",function(e){const[t,i,n,r,o,s,a,l,c,u,h,d,p,m,f,g,y,v,w,b,C,_]=e.slice(1);return{horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,yaw:s,pitch:a,roll:l,...D([c,u,h,d,p,m],[g,y],[v,w,b],[C,_],f)}}),A.set("2",function(e){const[t,i,n,r,o,s,a,l,c,u,h,d,p,m,f,g,y,v,w,b,C,_]=e.slice(1);return{horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,omega:s,phi:a,kappa:l,...D([c,u,h,d,p,m],[g,y],[v,w,b],[C,_],f)}}),A.set("4",function(e){const[t,i,n,r,o,...s]=e.slice(1),a=A.get(o),l=b.get(o)?.constructor;return a&&l?{latitude:t,longitude:i,ellipsoidRadius:n,squaredEccentricity:r,properties:new l(a([o,"",...s]))}:null});const S=e=>{const t=e.map(e=>parseFloat(e)).filter(e=>!isNaN(e));if(t.length===e.length)return t};function D(e,t,i,n,r){const o=S(e),s=S(t),a=S(i),l=S(n);return{affineTransformations:6===o?.length?o:void 0,focalLength:6===o?.length?parseFloat(r):void 0,principalOffsetPoint:2!==s?.length?[0,0]:s,radialDistortionCoefficients:3!==a?.length?[0,0,0]:a,tangentialDistortionCoefficients:2!==l?.length?[0,0]:l}}function R(e){return Array.isArray(e)&&e?.length>5&&!e.some(isNaN)}function Z(e){for(e=e.slice(0,8);e.length<8;)e.push(0);return e}function O(e,t,i){const n=function(e,t){return e?.length?e.map(({field:e,order:i})=>{const n=t.find(t=>t.name.toLowerCase()===e.toLowerCase());return n?{fieldName:n.name,sortOrder:"desc"===i?.toLowerCase()?"desc":"asc"}:null}).filter(e=>null!=e):null}(i,t);if(n?.length)return n;if(!e){const e=t.find(e=>e.name.toLocaleLowerCase()==="sequenceorder".toLocaleLowerCase());return e?[{fieldName:e.name,sortOrder:"asc"}]:null}const r=t.find(t=>t.name.toLowerCase()===e.trim().toLowerCase());return r?[{fieldName:r.name,sortOrder:"asc"}]:null}},39357(e,t,i){i.d(t,{A:()=>a});var n,r=i(5482),o=i(25482),s=i(91429);let a=n=class extends o.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new n({name:this.name,code:this.code})}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],a.prototype,"code",void 0),a=n=(0,r.Cg)([(0,s.$K)("esri.layers.support.CodedValue")],a)},53177(e,t,i){i.d(t,{A:()=>u});var n,r=i(5482),o=i(4718),s=i(91429),a=i(39357),l=i(76357),c=i(93223);let u=class extends l.A{static{n=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const i=String(e);this.codedValues.some(e=>(String(e.code)===i&&(t=e.name),!!t))}return t}clone(){return new n({codedValues:(0,o.o8)(this.codedValues),name:this.name})}};(0,r.Cg)([(0,s.MZ)({type:[a.A],json:{write:{isRequired:!0}}})],u.prototype,"codedValues",void 0),(0,r.Cg)([(0,c.e)({codedValue:"coded-value"})],u.prototype,"type",void 0),u=n=(0,r.Cg)([(0,s.$K)("esri.layers.support.CodedValueDomain")],u)},76357(e,t,i){i.d(t,{A:()=>c});var n=i(5482),r=i(66552),o=i(25482),s=i(91429),a=i(93223);const l=new r.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let c=class extends o.o{constructor(e){super(e),this.name=null,this.type=null}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,n.Cg)([(0,a.e)(l),(0,s.MZ)({json:{write:{isRequired:!0}}})],c.prototype,"type",void 0),c=(0,n.Cg)([(0,s.$K)("esri.layers.support.Domain")],c)},90091(e,t,i){i.d(t,{createSampler:()=>R,query:()=>D});var n=i(60999),r=i(49186),o=i(97768),s=i(17676),a=i(86211),l=i(99917),c=i(19419),u=i(4576),h=i(72802);class d{constructor(e,t){this.layer=e,this.parameters=t}}class p extends d{constructor(e,t,i){super(e,i),this.outSpatialReference=t,this.type="geometry"}selectTilesAtLOD(e){if(e<0)this.geometry.coordinates.forEach(e=>e.tile=null);else{const{tileInfo:t,tilemapCache:i}=this.layer,n=g(t,i)[e].level;this.geometry.coordinates.forEach(e=>e.tile=t.tileAt(n,e.x,e.y))}}allElevationTilesFetched(){return!this.geometry.coordinates.some(e=>!e.elevationTile)}clearElevationTiles(){for(const e of this.geometry.coordinates)e.elevationTile!==this.outsideExtentTile&&(e.elevationTile=null)}populateElevationTiles(e){for(const t of this.geometry.coordinates)!t.elevationTile&&t.tile?.id&&(t.elevationTile=e[t.tile.id])}remapTiles(e){for(const t of this.geometry.coordinates){const i=t.tile?.id;t.tile=i?e[i]:null}}getTilesToFetch(){return(0,u.Am)(this.geometry.coordinates.filter(({tile:e,elevationTile:t})=>e?.id&&!t),(e,t)=>e.tile?.id===t.tile?.id).map(({tile:e})=>e)}forEachTileToFetch(e){for(const t of this.geometry.coordinates)t.tile&&!t.elevationTile&&e(t.tile,()=>t.tile=null)}}class m extends d{constructor(e,t,i,n){super(e,i),this.maskExtents=n,this.type="extent",this.elevationTiles=[],this._candidateTiles=[],this._fetchedCandidates=new Set,this.extent=t.clone().intersection(e.fullExtent)}selectTilesAtLOD(e,t){const i=this._maximumLodForRequests(t),n=Math.min(i,e);n<0?this._candidateTiles.length=0:this._selectCandidateTilesCoveringExtentAt(n)}_maximumLodForRequests(e){const{tileInfo:t,tilemapCache:i}=this.layer,n=g(t,i);if(!e)return n.length-1;const r=this.extent;if(null==r)return-1;for(let i=n.length-1;i>=0;i--){const o=n[i],s=o.resolution*t.size[0],a=o.resolution*t.size[1];if(Math.ceil(r.width/s)*Math.ceil(r.height/a)<=e)return i}return-1}allElevationTilesFetched(){return this._candidateTiles.length===this.elevationTiles.length}clearElevationTiles(){this.elevationTiles.length=0,this._fetchedCandidates.clear()}populateElevationTiles(e){for(const t of this._candidateTiles){const i=t.id&&e[t.id];i&&(this._fetchedCandidates.add(t),this.elevationTiles.push(i))}}remapTiles(e){this._candidateTiles=y(this._candidateTiles.map(t=>e[t.id]))}getTilesToFetch(){return this._candidateTiles}forEachTileToFetch(e,t){const i=this._candidateTiles;this._candidateTiles=[],i.forEach(i=>{if(this._fetchedCandidates.has(i))return void t?.(i);let n=!1;e(i,()=>n=!0),n?t?.(i):this._candidateTiles.push(i)}),this._candidateTiles=y(this._candidateTiles,t)}_selectCandidateTilesCoveringExtentAt(e){this._candidateTiles.length=0;const t=this.extent;if(null==t)return;const{tileInfo:i,tilemapCache:n}=this.layer,r=g(i,n)[e],o=i.tileAt(r.level,t.xmin,t.ymin),s=o.extent,a=r.resolution*i.size[0],l=r.resolution*i.size[1],c=Math.ceil((t.xmax-s[0])/a),u=Math.ceil((t.ymax-s[1])/l);for(let e=0;e<u;e++)for(let t=0;t<c;t++){const n=new h.U(o.level,o.row-e,o.col+t);i.updateTileInfo(n),this._tileIsMasked(n)||this._candidateTiles.push(n)}}_tileIsMasked(e){return this.maskExtents?.some(t=>(0,c.gR)(t,e.extent))??!1}}function f(e){return null!=e?.tileInfo}function g(e,t){const i=e.lods;if(f(t)){const{effectiveMinLOD:e,effectiveMaxLOD:n}=t;return i.filter(t=>t.level>=e&&t.level<=n)}return i}function y(e,t){const i={},n=[];for(const r of e){const e=r.id;e&&!i[e]?(i[e]=r,n.push(r)):t?.(r)}const r=n.sort((e,t)=>e.level-t.level);return r.filter((e,i)=>{for(let n=0;n<i;n++){const i=r[n].extent;if(i&&(0,c.gR)(i,e.extent))return t?.(e),!1}return!0})}class v{constructor(e,t){this.data=e,this.safeWidth=.99999999*(e.width-1),this.dx=(e.width-1)/(t[2]-t[0]),this.dy=(e.width-1)/(t[3]-t[1]),this.x0=t[0],this.y1=t[3]}}class w{constructor(e,t=null){if(this.key=e,null!=t){const i=e.extent;this._samplerData=new v(t,i)}}get zmin(){return null!=this._samplerData?this._samplerData.data.minValue:0}get zmax(){return null!=this._samplerData?this._samplerData.data.maxValue:0}get hasNoDataValues(){return!!this._samplerData?.data.hasNoDataValues}sample(e,t){if(null==this._samplerData)return;const{safeWidth:i,data:n,dx:r,dy:o,y1:s,x0:a}=this._samplerData,{width:l,values:c,noDataValue:u}=n,h=b(o*(s-t),0,i),d=b(r*(e-a),0,i),p=Math.floor(h),m=Math.floor(d),f=p*l+m,g=f+l,y=c[f],v=c[g],w=c[f+1],C=c[g+1];if(y!==u&&v!==u&&w!==u&&C!==u){const e=d-m,t=y+(w-y)*e;return t+(v+(C-v)*e-t)*(h-p)}}}function b(e,t,i){return e<t?t:e>i?i:e}var C=i(87378),_=i(48526),M=i(86738),T=i(82799);class x{constructor(e){this.geometry=e,this.spatialReference=e.spatialReference}export(){return this._exporter(this.coordinates,this.spatialReference)}clone(e){const t=new x(this.geometry);return t.spatialReference=this.spatialReference,t.coordinates=e??this.coordinates.map(e=>e.clone()),t._exporter=this._exporter,t}async project(e,t){if(this.spatialReference.equals(e))return this.clone();await(0,l.initializeProjection)([{source:this.spatialReference,dest:e}],{signal:t});const i=new _.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),n=(0,l.project)(i,e);if(!n)return null;const r=this.coordinates.map((e,t)=>{const i=e.clone(),r=n.points[t];return i.x=r[0],i.y=r[1],i}),o=this.clone(r);return o.spatialReference=e,o}projectSync(e){if(this.spatialReference.equals(e))return this.clone();const t=new _.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),i=(0,l.project)(t,e);if(!i)return null;const n=this.coordinates.map((e,t)=>{const n=e.clone(),r=i.points[t];return n.x=r[0],n.y=r[1],n}),r=this.clone(n);return r.spatialReference=e,r}static fromGeometry(e){const t=new x(e);if(e instanceof x)return t.coordinates=e.coordinates.map(e=>e.clone()),t._exporter=(t,i)=>{const n=e.clone(t);return n.spatialReference=i,n},t;switch(e.type){case"point":{const i=e,{hasZ:n,hasM:r}=i;return t.coordinates=n&&r?[new A(i.x,i.y,i.z,i.m)]:n?[new A(i.x,i.y,i.z)]:r?[new A(i.x,i.y,null,i.m)]:[new A(i.x,i.y)],t._exporter=(t,i)=>e.hasM?new M.A(t[0].x,t[0].y,t[0].z,t[0].m,i):new M.A(t[0].x,t[0].y,t[0].z,i),t}case"multipoint":{const i=e,{hasZ:n,hasM:r}=i;return t.coordinates=n&&r?i.points.map(e=>new A(e[0],e[1],e[2],e[3])):n?i.points.map(e=>new A(e[0],e[1],e[2])):r?i.points.map(e=>new A(e[0],e[1],null,e[2])):i.points.map(e=>new A(e[0],e[1])),t._exporter=(t,i)=>e.hasM?new _.A({points:t.map(e=>[e.x,e.y,e.z??0,e.m??0]),hasZ:!0,hasM:!0,spatialReference:i}):new _.A({points:t.map(e=>[e.x,e.y,e.z??0]),spatialReference:i}),t}case"polyline":{const i=e,n=[],r=[],{hasZ:o,hasM:s}=e;let a=0;for(const e of i.paths)if(r.push([a,a+e.length]),a+=e.length,o&&s)for(const t of e)n.push(new A(t[0],t[1],t[2],t[3]));else if(o)for(const t of e)n.push(new A(t[0],t[1],t[2]));else if(s)for(const t of e)n.push(new A(t[0],t[1],null,t[2]));else for(const t of e)n.push(new A(t[0],t[1]));return t.coordinates=n,t._exporter=(t,i)=>{const n=e.hasM?t.map(e=>[e.x,e.y,e.z??0,e.m??0]):t.map(e=>[e.x,e.y,e.z??0]),o=r.map(e=>n.slice(e[0],e[1]));return new T.A({paths:o,hasM:e.hasM,hasZ:!0,spatialReference:i})},t}}}}class A{constructor(e,t,i=null,n=null,r=null,o=null){this.x=e,this.y=t,this.z=i,this.m=n,this.tile=r,this.elevationTile=o}clone(){return new A(this.x,this.y,this.z,this.m)}}var S=i(57984);async function D(e,t,i){if(!e)throw new r.A(P,"Elevation queries require an elevation layer to fetch tiles from");if(!t||!(t instanceof x)&&"point"!==t.type&&"multipoint"!==t.type&&"polyline"!==t.type)throw new r.A("elevation-query:invalid-geometry","Only point, polyline and multipoint geometries can be used to query elevation");const n={...z,...i},s=n.signal;if("integrated-mesh-3dtiles"===e.type){const r=x.fromGeometry(t);if(e.queryElevationCallback&&e.replacesTerrain){const o=12.9*(i?.minDemResolution||0)+.71,a=await e.queryElevationCallback(r,{signal:s,maxGeometricError:o}),l=r.coordinates.map(()=>({demResolution:1,source:e})),c=await a.project(t.spatialReference,s);if(c){if(void 0!==n.noDataValue&&n.noDataValue!==Number.MAX_VALUE)for(const e of c.coordinates)e.z===Number.MAX_VALUE&&(e.z=n.noDataValue);return{geometry:c.export(),noDataValue:n.noDataValue??Number.MAX_VALUE,sampleInfo:l}}}const o=r.coordinates.map(()=>({demResolution:-1,source:e}));return{geometry:r.export(),noDataValue:Number.MAX_VALUE,sampleInfo:o}}const c=new p(e,t.spatialReference,n);return await e.load({signal:s}),await async function(e,t,i){let n;const o=e.layer.tileInfo.spatialReference;if(t instanceof x?n=await t.project(o,i):(await(0,l.initializeProjection)([{source:t.spatialReference,dest:o}],{signal:i}),n=(0,l.project)(t,o)),!n)throw new r.A("elevation-query:spatial-reference-mismatch",`Cannot query elevation in '${t.spatialReference.wkid}' on an elevation service in '${o.wkid}'`);e.geometry=x.fromGeometry(n)}(c,t,s),await I(c,s),await N(c,s),function(e){e.geometry.coordinates.forEach(t=>{const i=t.elevationTile;let n=e.parameters.noDataValue;if(i){const e=i.sample(t.x,t.y);null==e?t.elevationTile=null:n=e}t.z=n})}(c),async function(e,t){const i=await e.geometry.project(e.outSpatialReference,t);(0,o.Lw)(i);const n={geometry:i.export(),noDataValue:e.parameters.noDataValue};return e.parameters.returnSampleInfo&&(n.sampleInfo=function(e){const t=e.layer.tileInfo,i=(0,a.GA)(t.spatialReference);return e.geometry.coordinates.map(n=>{let r=-1;return n.elevationTile&&n.elevationTile!==e.outsideExtentTile&&(r=t.lodAt(n.elevationTile.key.level).resolution*i),{demResolution:r,source:-1===r?void 0:e.layer}})}(e)),e.geometry.coordinates.forEach(e=>{e.tile=null,e.elevationTile=null}),n}(c,s)}async function R(e,t,i){if(e=Array.isArray(e)?e:[e],0===(e=i?.ignoreInvisibleLayers?e.filter(e=>e.visible):e.slice()).length)throw new r.A(P,"Elevation queries require at least one elevation layer to fetch tiles from");if(!t||"extent"!==t.type)throw new r.A("elevation-query:invalid-extent","Invalid or undefined extent");const n={...z,...i,returnSampleInfo:!0},o=Z(e[e.length-1],t,n);return 1===e.length?o:O(e,t,await o,n)}async function Z(e,t,i,n){const r=i.signal;await e.load({signal:r});const o=t.spatialReference,s=e.tileInfo.spatialReference;o.equals(s)||(await(0,l.initializeProjection)([{source:o,dest:s}],{signal:r}),t=(0,l.project)(t,s));const a=new m(e,t,i,n);await I(a,r),await N(a,r);const c=a.elevationTiles,u=a.layer.tileInfo,h=a.parameters.noDataValue;return new S.C({noDataValue:h,tiles:c,tileInfo:u})}async function O(e,t,i,n){if(e.pop(),!e.length)return i;const r=i.samplers.filter(e=>!e.tile.hasNoDataValues).map(e=>(0,c.VY)(e.extent)),o=await Z(e[e.length-1],t,n,r);if(0===o.samplers.length)return i;const s=i.samplers.concat(o.samplers),a=n.noDataValue;return O(e,t,new S.C({samplers:s,noDataValue:a}),n)}async function I(e,t){"geometry"===e.type&&function(e){if(null==e.layer.fullExtent)return;const t=new w(new h.U(-1,-1,-1));t.sample=()=>e.parameters.noDataValue,e.outsideExtentTile=t;const i=e.layer.fullExtent;e.geometry.coordinates.forEach(e=>{const n=e.x,r=e.y;(n<i.xmin||n>i.xmax||r<i.ymin||r>i.ymax)&&(e.elevationTile=t)})}(e);const i=e.parameters.demResolution;if("number"==typeof i)!function(e,t){const i=function(e,t){const{tileInfo:i,tilemapCache:n}=e.layer,r=t/(0,a.GA)(i.spatialReference),o=g(i,n);let s=o[0],l=0;for(let e=1;e<o.length;e++){const t=o[e];Math.abs(t.resolution-r)<Math.abs(s.resolution-r)&&(s=t,l=e)}return l}(e,t);e.selectTilesAtLOD(i)}(e,i);else if("finest-contiguous"===i)await async function(e,t){const{tileInfo:i,tilemapCache:n}=e.layer,r=j(i,n,e.parameters.minDemResolution);await E(e,r,t)}(e,t);else{if("auto"!==i)throw new r.A("elevation-query:invalid-dem-resolution",`Invalid dem resolution value '${i}', expected a number, "finest-contiguous" or "auto"`);await async function(e,t){(function(e){const{tileInfo:t,tilemapCache:i}=e.layer,n=j(t,i,e.parameters.minDemResolution);e.selectTilesAtLOD(n,e.parameters.maximumAutoTileRequests)})(e),function(e){const t=e.layer.tileInfo;let i=0;const n={},r=e=>{null!=e.id&&(e.id in n?n[e.id]++:(n[e.id]=1,i++))},o=e=>{if(null==e.id)return;const t=n[e.id];1===t?(delete n[e.id],i--):n[e.id]=t-1};e.forEachTileToFetch(r,o);let s=!0;for(;s&&(s=!1,e.forEachTileToFetch(n=>{i<=e.parameters.maximumAutoTileRequests||(o(n),t.upsampleTile(n)&&(s=!0),r(n))},o),s););}(e);const i=e.layer.tilemapCache;if(!i||f(i))return L(e,t);const r=e.getTilesToFetch(),o={},a=r.map(async e=>{const r=new h.U(0,0,0),a=await(0,n.Ke)(i.fetchAvailabilityUpsample(e.level,e.row,e.col,r,{signal:t}));!1!==a.ok?null!=e.id&&(o[e.id]=r):(0,s.QP)(a.error)});await(0,s.qr)(Promise.all(a),t),e.remapTiles(o)}(e,t)}}async function E(e,t,i){const n=e.layer;if(e.selectTilesAtLOD(t),t<0)return;const o=n.tilemapCache,a=e.getTilesToFetch();try{if(o&&!f(o))await(0,s.qr)(Promise.all(a.map(e=>o.fetchAvailability(e.level,e.row,e.col,{signal:i}))),i);else if(await N(e,i),!e.allElevationTilesFetched())throw e.clearElevationTiles(),new r.A("elevation-query:has-unavailable-tiles","Some elevation tiles are unavailable")}catch(n){(0,s.QP)(n),await E(e,t-1,i)}}async function L(e,t){const i=e.layer.tileInfo;await N(e,t);let n=!1;e.forEachTileToFetch((e,t)=>{i.upsampleTile(e)?n=!0:t()}),n&&await L(e,t)}function j(e,t,i=0){const n=g(e,t);let r=n.length-1;if(i>0){const t=i/(0,a.GA)(e.spatialReference),o=n.findIndex(e=>e.resolution<t);0===o?r=0:o>0&&(r=o-1)}return r}const z={maximumAutoTileRequests:20,noDataValue:0,returnSampleInfo:!1,demResolution:"auto",minDemResolution:0,signal:null};async function N(e,t){const i=e.getTilesToFetch(),n={},r=e.parameters.cache,o=e.parameters.noDataValue,a={noDataValue:o,signal:t},l=i.map(async t=>{if(null==t.id)return;const i=`${e.layer.uid}:${t.id}:${o}`,s=r?.get(i),l=s??C.A.from(await e.layer.fetchTile(t.level,t.row,t.col,a));r?.put(i,l),n[t.id]=new w(t,l)});await(0,s.qr)(Promise.allSettled(l),t),e.populateElevationTiles(n)}const P="elevation-query:invalid-layer"},7236(e,t,i){i.d(t,{A:()=>c});var n=i(5482),r=i(65529),o=i(53966),s=i(91429),a=i(86738),l=i(28735);let c=class extends r.nJ{queryElevation(e){const t=this.projectIfRequired(e,this.spatialReference);if(!t)return null;switch(e.type){case"point":return function(e,t,i){return e.hasZ=!0,e.z=i.elevationAt(t.x,t.y),e}(e,t,this);case"polyline":return function(e,t,i){u.spatialReference=t.spatialReference;const n=e.hasM&&!e.hasZ;for(let r=0;r<e.paths.length;r++){const o=e.paths[r],s=t.paths[r];for(let e=0;e<o.length;e++){const t=o[e],r=s[e];u.x=r[0],u.y=r[1],n&&(t[3]=t[2]),t[2]=i.elevationAt(u.x,u.y)}}return e.hasZ=!0,e}(e,t,this);case"multipoint":return function(e,t,i){u.spatialReference=t.spatialReference;const n=e.hasM&&!e.hasZ;for(let r=0;r<e.points.length;r++){const o=e.points[r],s=t.points[r];u.x=s[0],u.y=s[1],n&&(o[3]=o[2]),o[2]=i.elevationAt(u.x,u.y)}return e.hasZ=!0,e}(e,t,this);default:return null}}projectIfRequired(e,t){if(null==e)return null;const i=e.spatialReference;if(i.equals(t))return e;const n=(0,l.Cv)(e,t);return n||o.A.getLogger(this).error(`Cannot project geometry spatial reference (wkid:${i.wkid}) to elevation sampler spatial reference (wkid:${t.wkid})`),n}};c=(0,n.Cg)([(0,s.$K)("esri.layers.support.ElevationSampler")],c);const u=new a.A},87378(e,t,i){i.d(t,{A:()=>a});var n,r=i(34275),o=i(56507);const s=Symbol("ElevationTileDataClass");class a{static{n=s}constructor({values:e,width:t,height:i,noDataValue:o}){this[n]=!0,this._hasNoDataValues=null,this._minValue=null,this._maxValue=null,this.values=(0,r.vZ)(e)?e:new Float32Array(e),this.width=t,this.height=i,this.noDataValue=o}get hasNoDataValues(){if(null==this._hasNoDataValues){const e=this.noDataValue;this._hasNoDataValues=this.values.includes(e)}return this._hasNoDataValues}get minValue(){return this._ensureBounds(),this._minValue}get maxValue(){return this._ensureBounds(),this._maxValue}get usedMemory(){return this.values.byteLength+256}_ensureBounds(){if(null!=this._minValue)return;const{noDataValue:e,values:t}=this;let i=1/0,n=-1/0,r=!0;for(const o of t)o===e?this._hasNoDataValues=!0:(i=o<i?o:i,n=o>n?o:n,r=!1);r?(this._minValue=0,this._maxValue=0):(this._minValue=i,this._maxValue=n>-3e38?n:0)}static{this.from=(0,o.qf)(a)}}},20437(e,t,i){i.d(t,{A:()=>m});var n,r=i(5482),o=i(66552),s=i(25482),a=i(91429),l=i(56507),c=i(8631),u=i(98453),h=i(36005),d=i(93223);const p=new o.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier",url:"url"});let m=class extends s.o{static{n=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let i=null;try{i=t?JSON.parse(t):null}catch(e){}return i?.value??null}readValueType(e,{description:t}){let i=null;try{i=t?JSON.parse(t):null}catch(e){}return i?p.fromJSON(i.fieldValueType):null}clone(){return new n({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,r.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,r.Cg)([(0,a.MZ)()],m.prototype,"description",void 0),(0,r.Cg)([(0,h.w)("description")],m.prototype,"readDescription",null),(0,r.Cg)([(0,a.MZ)({types:c.g,json:{read:{reader:c.r},write:!0}})],m.prototype,"domain",void 0),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,r.Cg)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],m.prototype,"length",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,r.Cg)([(0,d.e)(u.m)],m.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)()],m.prototype,"valueType",void 0),(0,r.Cg)([(0,h.w)("valueType",["description"])],m.prototype,"readValueType",null),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=n=(0,r.Cg)([(0,a.$K)("esri.layers.support.Field")],m)},41628(e,t,i){i.d(t,{A:()=>l});var n,r=i(5482),o=i(91429),s=i(76357),a=i(93223);let l=class extends s.A{static{n=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new n({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,r.Cg)([(0,o.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,i){t[i]=[this.minValue||0,e]},isRequired:!0}}})],l.prototype,"maxValue",void 0),(0,r.Cg)([(0,o.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,i){t[i]=[e,this.maxValue||0]},isRequired:!0}}})],l.prototype,"minValue",void 0),(0,r.Cg)([(0,a.e)({range:"range"})],l.prototype,"type",void 0),l=n=(0,r.Cg)([(0,o.$K)("esri.layers.support.RangeDomain")],l)},57984(e,t,i){i.d(t,{C:()=>u});var n=i(5482),r=i(53966),o=i(86211),s=i(91429),a=i(16930),l=i(19419),c=i(7236);let u=class extends c.A{get spatialReference(){return this.extent.spatialReference}constructor(e){const t=e.noDataValue,i="tiles"in e?e.tiles.map(i=>new h({tile:i,tileInfo:e.tileInfo,noDataValue:t})):e.samplers;super({noDataValue:t,samplers:i});const n=i[0];if(n){this.extent=n.extent.clone();const{min:e,max:t}=n.demResolution;this.demResolution={min:e,max:t};for(let e=1;e<i.length;e++){const t=i[e];this.extent.union(t.extent),this.demResolution.min=Math.min(this.demResolution.min,t.demResolution.min),this.demResolution.max=Math.max(this.demResolution.max,t.demResolution.max)}}else{const t="tileInfo"in e?e.tileInfo:null;this.extent=(0,l.w1)((0,l.vt)(),t?.spatialReference??a.A.WGS84),this.demResolution={min:0,max:0}}}elevationAt(e,t){let i;for(const n of this.samplers)if(n.containsAt(e,t)&&(i=n.elevationAt(e,t),i!==n.noDataValue))return i;return null!=i?i:(r.A.getLogger(this).warn("#elevationAt()",`Point used to sample elevation (${e}, ${t}) is outside of the sampler`),this.noDataValue)}};(0,n.Cg)([(0,s.MZ)({constructOnly:!0})],u.prototype,"noDataValue",void 0),(0,n.Cg)([(0,s.MZ)({constructOnly:!0})],u.prototype,"samplers",void 0),u=(0,n.Cg)([(0,s.$K)("esri.layers.support.TileElevationSampler")],u);let h=class extends c.A{get spatialReference(){return this.extent.spatialReference}constructor(e){super(e);const t=e.tile.key.extent;this.extent=(0,l.w1)(t,e.tileInfo.spatialReference),this.extent.zmin=e.tile.zmin,this.extent.zmax=e.tile.zmax;const i=(0,o.GA)(e.tileInfo.spatialReference),n=e.tileInfo.lodAt(e.tile.key.level).resolution*i;this.demResolution={min:n,max:n}}contains(e){const t=this.projectIfRequired(e,this.spatialReference);return null!=t&&this.containsAt(t.x,t.y)}containsAt(e,t){return(0,l.Rj)(this.tile.key.extent,e,t)}elevationAt(e,t){return this.containsAt(e,t)?this.tile.sample(e,t)??this.noDataValue:this.noDataValue}};(0,n.Cg)([(0,s.MZ)({constructOnly:!0})],h.prototype,"tile",void 0),(0,n.Cg)([(0,s.MZ)({constructOnly:!0})],h.prototype,"noDataValue",void 0),(0,n.Cg)([(0,s.MZ)({constructOnly:!0})],h.prototype,"tileInfo",void 0),h=(0,n.Cg)([(0,s.$K)("esri.layers.support.TileElevationSampler.SingleTileElevationSampler")],h)},65509(e,t,i){i.d(t,{A:()=>o});var n=i(49186),r=i(17676);class o{constructor(e,t=0,i=e.lods[e.lods.length-1].level){this.tileInfo=e,this.minLOD=t,this.maxLOD=i,e.lodAt(t)||(this.minLOD=e.lods[0].level),e.lodAt(i)||(this.maxLOD=e.lods[e.lods.length-1].level)}get effectiveMinLOD(){return this.minLOD??this.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.tileInfo.lods[this.tileInfo.lods.length-1].level}getAvailability(e,t,i){const n=this.tileInfo?.lodAt(e);return!n||e<this.minLOD||e>this.maxLOD?"unavailable":n.cols&&n.rows?i>=n.cols[0]&&i<=n.cols[1]&&t>=n.rows[0]&&t<=n.rows[1]?"unknown":"unavailable":"unknown"}async fetchAvailability(e,t,i,o){await(0,r.NO)(o);const s=this.getAvailability(e,t,i);if("unavailable"===s)throw new n.A("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:i});return s}async fetchAvailabilityUpsample(e,t,i,n,o){await(0,r.NO)(o),n.level=e,n.row=t,n.col=i;const s=this.tileInfo;return s.updateTileInfo(n),this.fetchAvailability(e,t,i,o).catch(e=>{if((0,r.zf)(e))throw e;if(s.upsampleTile(n))return this.fetchAvailabilityUpsample(n.level,n.row,n.col,n,o);throw e})}}},8631(e,t,i){i.d(t,{r:()=>d,g:()=>h});var n,r=i(53177),o=i(76357),s=i(5482),a=i(91429),l=i(93223);let c=class extends o.A{static{n=this}constructor(e){super(e),this.type="inherited"}clone(){return new n}};(0,s.Cg)([(0,l.e)({inherited:"inherited"})],c.prototype,"type",void 0),c=n=(0,s.Cg)([(0,a.$K)("esri.layers.support.InheritedDomain")],c);var u=i(41628);const h={key:"type",base:o.A,typeMap:{range:u.A,"coded-value":r.A,inherited:c}};function d(e){if(!e?.type)return null;switch(e.type){case"range":return u.A.fromJSON(e);case"codedValue":return r.A.fromJSON(e);case"inherited":return c.fromJSON(e)}return null}},98453(e,t,i){const n=new(i(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"});i.d(t,["m",0,n])},77548(e,t,i){i.d(t,{Gh:()=>O,tk:()=>A,BR:()=>x,p2:()=>M,qd:()=>S,wI:()=>T,G$:()=>R,$x:()=>D,Ov:()=>w,cM:()=>d,UC:()=>p,Qz:()=>m,OP:()=>Z,TU:()=>v,F2:()=>f,XX:()=>y,Qi:()=>b,jy:()=>C});var n=i(70333),r=i(11254),o=i(7762),s=(i(84952),i(36563)),a=i(36708),l=i(4146);const c=new WeakMap;function u(e){return!e.destroyed&&(c.has(e)||e.addHandles([(0,a.wB)(()=>{const{parent:t}=e;return!!(t&&t instanceof l.A)&&("catalog-dynamic-group"===t.type||u(t))},t=>c.set(e,t),a.pc),(0,s.hA)(()=>c.delete(e))]),c.get(e))}function h(e,t){return null!=e&&"object"==typeof e&&"type"in e&&e.type===t}function d(e){return h(e,"knowledge-graph")&&"layers"in e}function p(e){return h(e,"knowledge-graph-sublayer")}function m(e){return h(e,"link-chart")&&"layers"in e}function f(e){return h(e,"subtype-group")&&"sublayers"in e}function g(e){const t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}i(16215);const y={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function v(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function w(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function b(e){return null!=e&&"object"==typeof e&&"featureReduction"in e}function C(e){return function(e){return h(e,"catalog-footprint")}(e)||function(e){return h(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return h(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function _(e){const t=e?.type;return"binning"===t||"cluster"===t}function M(e,t){if(!C(e))return;const i=t?.graphic,n="featureReduction"in e?e.featureReduction:null;if(i){if(i.isAggregate){const e=i.origin;return e&&"featureReductionProvider"in e&&n?_(n)?n:null:void 0}return e}return t?.checkFeatureReduction&&n?_(n)?n:null:e}async function T(e,t){const i=n.id?.findServerInfo(e);if(null!=i?.currentVersion)return i.owningSystemUrl||null;const o=e.toLowerCase().indexOf("/rest/services");if(-1===o)return null;const s=`${e.slice(0,o)}/rest/info`,a=null!=t?t.signal:null,{data:l}=await(0,r.A)(s,{query:{f:"json"},responseType:"json",signal:a});return l?.owningSystemUrl||null}function x(e){return function(e){if(!("capabilities"in e))return!1;switch(e.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}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function A(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.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}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function S(e){const t=new o.A;for(const i of e.allLayers.concat(e.allTables))u(i)||g(i)||"annotation-feature"===i.type||"dimension-feature"===i.type||("charts"in i&&t.push(i),"subtype-group"===i.type&&t.push(...i.sublayers));return t}function D(e,t){return null}function R(e){return null}function Z(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function O(e,t){if(!t||!Z(e))return;const i=(e.url,null);i&&(e.url=i)}},38969(e,t,i){i.d(t,{i:()=>r});var n=i(37955);function r(e,t){return new Promise((i,r)=>{e.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?i():(t((0,n.Oo)(e,"canplay",i)),t((0,n.Oo)(e,"error",r)))})}},73133(e,t,i){const n=(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(t,["j",0,n])},7861(e,t,i){i.d(t,{L:()=>r});var n=i(11254);async function r(e,t){return(await(0,n.A)(e,{responseType:"json",query:{f:"json",...t?.customParameters,token:t?.apiKey}})).data}},16215(e,t,i){i.d(t,{S:()=>r});const n=Symbol("BasemapInstance");function r(e){return null!=e&&"object"==typeof e&&n in e}i.d(t,["Y",0,n])},79677(e,t,i){i.d(t,{A:()=>h});var n,r=i(5482),o=i(25482),s=i(88930),a=i(91429),l=(i(98623),i(10184)),c=i(36005),u=i(43937);let h=class extends o.o{static{n=this}static get allTime(){return d}static get empty(){return p}static fromArray(e){return new n({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new n({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,i=this.end?.getTime()??this.end,n=e.start?.getTime()??e.start,r=e.end?.getTime()??e.end;return t===n&&i===r}expandTo(e,t="system"){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let i=this.start;i&&(i=(0,s.lL)(i,new l.A({value:1,unit:e}),t));let r=this.end;if(r){const i=(0,s.lL)(r,new l.A({value:1,unit:e}),t);r=r.getTime()===i.getTime()?i:(0,s.S1)(i,1,e,t)}return new n({start:i,end:r})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return n.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,i=this.end?.getTime()??1/0,r=e.start?.getTime()??-1/0,o=e.end?.getTime()??1/0;let s,a;return r>=t&&r<=i?s=r:t>=r&&t<=o&&(s=t),i>=r&&i<=o?a=i:o>=t&&o<=i&&(a=o),null==s||null==a||isNaN(s)||isNaN(a)?n.empty:new n({start:s===-1/0?null:new Date(s),end:a===1/0?null:new Date(a)})}offset(e,t,i="system"){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();const r=new n,{start:o,end:a}=this;return null!=o&&(r.start=(0,s.S1)(o,e,t,i)),null!=a&&(r.end=(0,s.S1)(a,e,t,i)),r}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return d.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,i=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new n({start:t,end:i})}};(0,r.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"end",void 0),(0,r.Cg)([(0,c.w)("end")],h.prototype,"readEnd",null),(0,r.Cg)([(0,u.K)("end")],h.prototype,"writeEnd",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],h.prototype,"isAllTime",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],h.prototype,"isEmpty",null),(0,r.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"start",void 0),(0,r.Cg)([(0,c.w)("start")],h.prototype,"readStart",null),(0,r.Cg)([(0,u.K)("start")],h.prototype,"writeStart",null),h=n=(0,r.Cg)([(0,a.$K)("esri.time.TimeExtent")],h);const d=new h,p=new h({start:void 0,end:void 0})},10184(e,t,i){i.d(t,{A:()=>u});var n=i(5482),r=i(69540),o=i(25482),s=i(88930),a=i(91429),l=i(73133),c=i(93223);let u=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,s.t)(this.value,this.unit,"milliseconds")}};(0,n.Cg)([(0,c.e)(l.j,{nonNullable:!0})],u.prototype,"unit",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0},nonNullable:!0})],u.prototype,"value",void 0),u=(0,n.Cg)([(0,a.$K)("esri.time.TimeInterval")],u)},68747(e,t,i){i.r(t),i.d(t,{generateCombinationsPanoramicWorker:()=>x,generateCombinationsWorker:()=>T});var n=i(34727),r=i(17676);i(17799),i(69052),i(799),i(86211),i(18047),new Map,i(77690),i(29242),i(51850),i(37585),i(35522);var o=i(49186),s=(i(56507),i(86738),i(39829),i(82799),i(16930));i(34403),i(21325),i(99917),i(65708),i(49590),i(27749),i(39663),i(7817),i(10222),i(4576),i(63490),i(87811);var a=i(53966),l=(i(44208),i(27921),i(5443));i(83276),i(19419),i(38732),i(87772),i(23281),i(90091),i(87378),i(22796),i(57984),i(87045),i(72802),i(7861);const c=[1920,1080],u={xmin:-150,ymin:1,xmax:20,ymax:80,spatialReference:{wkid:4326}},h=(s.A.fromJSON(u.spatialReference),.001);new l.A({xmin:u.xmin+h,ymin:u.ymin+h,xmax:u.xmax-h,ymax:u.ymax-h,spatialReference:u.spatialReference}),(0,n.KJ)(Math.acos(.05));var d=i(5482),p=i(97768),m=i(61893),f=i(10107),g=i(64108);let y=class extends m.Z{constructor(e){super(e),this.autoLoad=!1,this.customParameters=null,this.datasetFormat=null,this.url=null,this.rotation=null}destroy(){this._cache=(0,p.pR)(this._cache)}get layer(){return this._cache}get size(){if(!this._cache?.loaded||!this._cache.serviceRasterInfo)return;const{serviceRasterInfo:e}=this._cache;return[e.width,e.height]}async load(e){if(this._cache?.loaded)return await this._cache.load(e),{layer:this._cache,size:this.size};const{url:t,customParameters:n}=this;let o=this.datasetFormat;if(!t)throw new Error("URL is required to load NonPanoramicMedia.");const s=await i.e(7835).then(i.bind(i,97835));if((0,r.Te)(e),o||(o=s.guessExtensionFromURI(t)),!o){try{o=await s.getDatasetFormat(t)}catch(e){a.A.getLogger(this).warn("non-panoramic-media:dataset-format",e)}(0,r.Te)(e)}o??="UNKNOWN FORMAT",this.datasetFormat=o;const l=(await Promise.all([i.e(2754),i.e(9235),i.e(3500),i.e(1003),i.e(2806),i.e(124)]).then(i.bind(i,90124))).default;(0,r.Te)(e),this._cache=new l({url:t,ioConfig:{skipExtensions:["aux.xml","jgw"],skipMapInfo:!0,datasetFormat:o},customParameters:n??void 0});const c=this._cache.load(e);return this.addResolvingPromise(c),await c,(0,r.Te)(e),{layer:this._cache,size:this.size}}};(0,d.Cg)([(0,f.MZ)()],y.prototype,"_cache",void 0),(0,d.Cg)([(0,f.MZ)()],y.prototype,"autoLoad",void 0),(0,d.Cg)([(0,f.MZ)()],y.prototype,"customParameters",void 0),(0,d.Cg)([(0,f.MZ)()],y.prototype,"datasetFormat",void 0),(0,d.Cg)([(0,f.MZ)()],y.prototype,"url",void 0),(0,d.Cg)([(0,f.MZ)()],y.prototype,"layer",null),(0,d.Cg)([(0,f.MZ)()],y.prototype,"rotation",void 0),(0,d.Cg)([(0,f.MZ)()],y.prototype,"size",null),y=(0,d.Cg)([(0,g.$)("esri.widgets.OrientedImageryViewer.support.NonPanoramicMedia")],y);var v=i(37955),w=i(38969);class b extends o.A{constructor(e,t,i){super(e,t,i),this.name="unknown",this.name=e}}const C=new Set(["JPG","JPEG","TIFF","TIF","MRF"]),_=new Set(["MRF","TIFF","TIF"]);let M=class extends m.Z{constructor(e){super(e),this._size=[0,0],this._cache=null,this.autoLoad=!1,this.cameraHeading=null,this.extension=null,this.imagePyramid=null,this.type="image",this.uiStrings={}}destroy(){this._cache=null}get horizonPitch(){const{matrix:e}=this;return e?(0,n.KJ)(Math.asin(-e[6])):0}get horizonRoll(){const{matrix:e}=this;return e?(0,n.KJ)(Math.atan(e[7]/e[8])):0}get horizonYaw(){const{matrix:e,cameraHeading:t}=this;return e?(0,n.KJ)(Math.atan2(e[3],e[0])):t?-t:0}get size(){return this._size}async load(e){const{guessExtensionFromURI:t}=await i.e(7835).then(i.bind(i,97835));if((0,r.Te)(e),"video"===this.type)return this.loadVideoMesh(e);let n=this.extension;if(n||(n=t(this.url)),!n||!C.has(n))throw new b("unsupported-format",this.uiStrings["unsupported-format"]??"Unsupported image format: {extension}",{datasetFormat:n??"UNKNOWN FORMAT"});return _.has(n)?this.loadOptimizedImageMesh(e):this.loadImageMesh(e)}async loadOptimizedImageMesh(e){const{loadMeshes:t,loadPyramid:n,loadRaster:o}=await Promise.all([i.e(6860),i.e(118),i.e(3494)]).then(i.bind(i,21060)),s=await o(this.url,e);(0,r.Te)(e),this.imagePyramid=await n(s,{pitch:this.horizonPitch,yaw:this.horizonYaw,roll:this.horizonRoll},e),(0,r.Te)(e);const a=this.imagePyramid.getLowResolutionTiles(),l=await t(a,e);return(0,r.Te)(e),this._size=this.imagePyramid.imageSize,{meshOrMeshes:l,size:this._size,tileKeys:a?.map(e=>e.key)}}async loadVideoMesh(e){const{createImageSphere:t}=await Promise.all([i.e(6860),i.e(118),i.e(3494)]).then(i.bind(i,21060));if((0,r.Te)(e),this._cache){const i=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,r.Te)(e),{meshOrMeshes:i,size:this._size}}const n=await this._resolveMedia(e);(0,r.Te)(e),this._cache=n.media,this._size=[...c];const o=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,r.Te)(e),{meshOrMeshes:o,size:this._size}}async loadImageMesh(e){const{createImageSphere:t}=await Promise.all([i.e(6860),i.e(118),i.e(3494)]).then(i.bind(i,21060));if((0,r.Te)(e),this._cache){const i=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,r.Te)(e),{meshOrMeshes:i,size:this._size}}const n=await this._resolveMedia(e);(0,r.Te)(e),this._cache=n.media;const o=n.mesh;return this._size=[n.media.width,n.media.height],{meshOrMeshes:o,size:this._size}}async _resolveMedia(e){const t=Promise.withResolvers(),n=(0,r.u7)(e?.signal,t.resolve),o="video"===this.type?document.createElement("video"):document.createElement("img");o.crossOrigin="anonymous",o.src=this.url;let s=null;const a="video"===this.type?(0,w.i)(o,this.addHandles):await new Promise((e,t)=>{s=[(0,v.on)(o,"error",e=>{t(e)}),(0,v.on)(o,"load",e)]}).finally(()=>{s?.forEach(e=>e.remove()),s=null}),l=Promise.race([a,t.promise]);this.addResolvingPromise(l);try{await l}finally{n?.remove()}(0,r.Te)(e);const c=o;if(!c)throw new b("unknown","Could not load media",{url:this.url});const{createImageSphere:u}=await Promise.all([i.e(6860),i.e(118),i.e(3494)]).then(i.bind(i,21060));(0,r.Te)(e);const h=await u({data:o,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,r.Te)(e),{media:c,mesh:h}}};function T(e){return function(e,t){const{cameraPitch:i,cameraRoll:n,cameraLocation:r}=e,{x:o,y:s,z:a,spatialReference:l}=r;if(t.every(e=>0===e)||!t||!t.length||!l)throw new Error("Invalid parameters");const[c,u,,h,d]=t,p=[-h,0,h],m=[-d,0,d],f=[-c,0,c],g=[-u,0,u],y=[];for(const t of p)for(const r of m)for(const c of f)for(const u of f)for(const h of g){const d={...e};d.cameraPitch=i+t,d.cameraRoll=n+r,d.cameraLocation={x:o+c,y:s+u,z:a?a+h:0,spatialReference:{wkid:l.wkid}},y.push(d)}return y}(e.imageToWorldProps,e.accuracyParameters)}function x(e){return function(e,t){const{cameraHeading:i,cameraLocation:n}=e,{x:r,y:o,z:s,spatialReference:a}=n;if(!t||t.every(e=>0===e)||!t.length||!a)throw new Error("Invalid parameters");const[l,c,u]=t,h=u>0?[-u,0,u]:[],d=l>0?[-l,0,l]:[],p=c>0?[-c,0,c]:[],m=[];for(const t of h)for(const n of d)for(const l of d)for(const c of p){const u={...e};u.cameraHeading=i+t,u.cameraLocation={x:r+n,y:o+l,z:s?s+c:0,spatialReference:{wkid:a.wkid}},m.push(u)}return m}(e.imageToWorldProps,e.accuracyParameters)}(0,d.Cg)([(0,f.MZ)()],M.prototype,"_size",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"autoLoad",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"cameraHeading",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"extension",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"horizonPitch",null),(0,d.Cg)([(0,f.MZ)()],M.prototype,"horizonRoll",null),(0,d.Cg)([(0,f.MZ)()],M.prototype,"horizonYaw",null),(0,d.Cg)([(0,f.MZ)()],M.prototype,"id",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"imagePyramid",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"matrix",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"size",null),(0,d.Cg)([(0,f.MZ)()],M.prototype,"type",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"uiStrings",void 0),(0,d.Cg)([(0,f.MZ)()],M.prototype,"url",void 0),M=(0,d.Cg)([(0,g.$)("esri.widgets.PanoramicViewer.support.PanoramicMedia")],M),i(9093),i(91829),i(58083),i(79258),i(73354),i(28208),i(28735)},28208(e,t,i){var n=i(86738),r=i(16930);const o=new n.A({x:0,y:0,z:0,spatialReference:r.A.WebMercator});i.d(t,["NU",0,.3515625,"ZH",0,o])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5165,6958],{25728(t,e,r){r.d(e,{M:()=>_});var i=r(5482),s=r(69622),o=r(76953),n=r(4718);class a{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(8),this._values=new Map,this.multipleOriginsSupported=!0}clone(t){const e=new a,r=this._originStores[0];r&&r.forEach((t,r)=>{e.set(r,(0,n.o8)(t),0)});for(let r=2;r<8;r++){const i=this._originStores[r];i&&i.forEach((i,s)=>{t&&t.has(s)||e.set(s,(0,n.o8)(i),r)})}return e}get(t,e){const r=void 0===e?this._values:this._originStores[e];return r?r.get(t):void 0}keys(t){const e=null==t?this._values:this._originStores[t];return e?[...e.keys()]:[]}set(t,e,r=7){let i=this._originStores[r];if(i||(i=new Map,this._originStores[r]=i),i.set(t,e),!this._values.has(t)||this._propertyOriginMap.get(t)<=r){const i=this._values.get(t);return this._values.set(t,e),this._propertyOriginMap.set(t,r),i!==e}return!1}delete(t,e=7){const r=this._originStores[e];if(!r)return;const i=r.get(t);if(r.delete(t),this._values.has(t)&&this._propertyOriginMap.get(t)===e){this._values.delete(t);for(let r=e-1;r>=0;r--){const e=this._originStores[r];if(e&&e.has(t)){this._values.set(t,e.get(t)),this._propertyOriginMap.set(t,r);break}}}return i}has(t,e){const r=void 0===e?this._values:this._originStores[e];return!!r&&r.has(t)}revert(t,e){for(;e>0&&!this.has(t,e);)--e;const r=this._originStores[e],i=r?.get(t),s=this._values.get(t);return this._values.set(t,i),this._propertyOriginMap.set(t,e),s!==i}originOf(t){return this._propertyOriginMap.get(t)||0}isAtOrigin(t,e){return this.has(t,e)&&this.originOf(t)===e}isBelowOrigin(t,e){return!this.has(t)||this.originOf(t)<e}forEach(t){this._values.forEach(t)}}var l=r(35666),u=r(45917),p=r(88620),c=r(64108);const d=t=>{const e=t;let r=class extends e{constructor(...t){super(...t);const e=(0,p.oY)(this),r=e.store,i=new a;e.store=i,(0,o.k)(e,r,i)}read(t,e){(0,u.L)(this,t,e)}getAtOrigin(t,e){const r=h(this),i=(0,l.aB)(e);return r.get(t,i)}originOf(t){return(0,l.OL)(this.originIdOf(t))}originIdOf(t){return h(this).originOf(t)}revertToOrigin(t,e){const r=h(this),i=(0,l.aB)(e),s=(0,p.oY)(this);"*"===t&&r.keys(i).forEach(t=>this.revertToOrigin(t,e)),s.invalidate(t),r.revert(t,i),s.commit(t)}revertAllToOrigin(t){const e=h(this),r=(0,l.aB)(t);e.keys(r).forEach(e=>this.revertToOrigin(e,t))}};return r=(0,i.Cg)([(0,c.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],r),r};function h(t){return(0,p.oY)(t).store}d(s.A);var g=r(91429),y=r(16649),f=r(49422);const v=t=>{const e=t;let r=class extends e{constructor(...t){super(...t)}clear(t,e="user"){(0,p.oY)(this).clearOrigin(t,(0,l.aB)(e))}write(t,e){return(0,f.M)(this,t=t||{},e),t}setAtOrigin(t,e,r){(0,p.oY)(this).setAtOrigin(t,e,(0,l.aB)(r))}removeOrigin(t){const e=m(this),r=(0,l.aB)(t),i=e.keys(r);for(const t of i)e.originOf(t)===r&&e.set(t,e.get(t,r),7)}updateOrigin(t,e){const r=m(this),i=(0,l.aB)(e),s=(0,y.Jt)(this,t);for(let e=i+1;e<8;++e)r.delete(t,e);r.set(t,s,i)}toJSON(t){return this.write({},t)}};return r=(0,i.Cg)([(0,g.$K)("esri.core.WriteableMultiOriginJSONMixin")],r),r.prototype.toJSON.isDefaultToJSON=!0,r};function m(t){return(0,p.oY)(t).store}const _=t=>{const e=v(d(t));let r=class extends e{};return r=(0,i.Cg)([(0,c.$)("esri.core.MultiOriginJSONSupport")],r),r};_(s.A)},60999(t,e,r){r.d(e,{DZ:()=>g,Ke:()=>h,Tj:()=>p,UT:()=>y,aD:()=>v,jJ:()=>u});var i=r(5482),s=r(69622),o=r(97768),n=r(17676),a=r(10107),l=r(64108);function u(t,e,r){return(0,n.Lx)(t.map((t,i)=>e.apply(r,[t,i])))}async function p(t,e,r){return(await(0,n.Lx)(t.map((t,i)=>e.apply(r,[t,i])))).map(t=>t.value)}function c(t){return{ok:!0,value:t}}function d(t){return{ok:!1,error:t}}async function h(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 g(t){try{return c(await t)}catch(t){return(0,n.QP)(t),d(t)}}function y(t,e){return new f(t,e)}let f=class extends s.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,o.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=t(r),this.promise.then(t=>{this._result=c(t),this._cleanup()},t=>{this._result=d(t),this._cleanup()}),this._abortHandle=(0,n.u7)(e,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,o.xt)(this._abortHandle),this._abortController=null}};(0,i.Cg)([(0,a.MZ)()],f.prototype,"value",null),(0,i.Cg)([(0,a.MZ)()],f.prototype,"error",null),(0,i.Cg)([(0,a.MZ)()],f.prototype,"finished",null),(0,i.Cg)([(0,a.MZ)()],f.prototype,"promise",void 0),(0,i.Cg)([(0,a.MZ)()],f.prototype,"_result",void 0),f=(0,i.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],f);class v{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,i.mS)(e,await this.acquire(),!1),await t()}catch(t){e.error=t,e.hasError=!0}finally{(0,i.hk)(e)}}}},60408(t,e,r){function i(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function s(t){return void 0!==t.points}function o(t){return void 0!==t.x&&void 0!==t.y}function n(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 u(t){return t?o(t)?"esriGeometryPoint":n(t)?"esriGeometryPolyline":a(t)?"esriGeometryPolygon":i(t)?"esriGeometryEnvelope":s(t)?"esriGeometryMultipoint":null:null}function p(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)}r.d(e,{$B:()=>u,Bi:()=>a,Pv:()=>p,Rg:()=>n,U9:()=>s,W0:()=>c,ZC:()=>i,fT:()=>o,uW:()=>l})},45165(t,e,r){r.r(e);var i=r(5482),s=r(49186),o=r(25728),n=r(76030),a=r(91429),l=r(4146),u=r(8303);let p=class extends((0,u.A)((0,o.M)(l.A))){constructor(t){super(t),this.resourceInfo=null,this.persistenceEnabled=!0,this.type="unsupported"}initialize(){this.addResolvingPromise(new Promise((t,e)=>{(0,n._)(()=>{const t=this.resourceInfo&&(this.resourceInfo.layerType||this.resourceInfo.type);let r="Unsupported layer type";t&&(r+=" "+t),e(new s.A("layer:unsupported-layer-type",r,{layerType:t}))})}))}read(t,e){const r={resourceInfo:t};null!=t.id&&(r.id=t.id),null!=t.title&&(r.title=t.title),super.read(r,e)}write(t,e){return Object.assign(t||{},this.resourceInfo,{id:this.id})}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],p.prototype,"resourceInfo",void 0),(0,i.Cg)([(0,a.MZ)({type:["show","hide"]})],p.prototype,"listMode",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,readOnly:!1})],p.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!1},readOnly:!0,value:"unsupported"})],p.prototype,"type",void 0),p=(0,i.Cg)([(0,a.$K)("esri.layers.UnsupportedLayer")],p);const c=p;r.d(e,["default",0,c])},8303(t,e,r){var i=r(5482),s=r(92602),o=r(70333),n=r(11254),a=r(60999),l=r(49186),u=r(36563),p=r(53966),c=r(97768),d=r(17676),h=r(84952),g=r(91429),y=r(77548),f=r(20655),v=r(80812),m=r(41318),_=r(10407),I=r(36005),w=r(43937);const E={credential:null,user:null};r.d(e,["A",0,t=>{const e=t;let P=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,r){if(e.itemId)return new v.default({id:e.itemId,portal:r?.portal})}writePortalItem(t,e){t?.id&&(e.itemId=t.id)}async loadFromPortal(t,e){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(r.bind(r,41204));return(0,d.Te)(e),await i({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)||p.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 r.e(1204).then(r.bind(r,41204)),i=new AbortController,s=(0,u.rE)(i);return this.addHandles(s,"reloadFromPortal"),await e({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},{signal:i.signal})}catch(t){throw(0,d.zf)(t)||p.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(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(e);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:s}}=await this._fetchUserPrivileges(t,e);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",s)}catch(t){(0,d.QP)(t)}}async _fetchUserPrivileges(t,e){let r=this.portalItem;if(!t||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(e);const i=!o.id?.findCredential(this.url),s=t===r.id;if(s&&r.portal.user)return this._getUserPrivileges(r,i);let n,a;if(s)n=r.portal.url;else try{n=await(0,y.wI)(this.url,e)}catch(t){(0,d.QP)(t)}if(!n||!(0,h.b8)(n,r.portal.url))return this._fetchFallbackUserPrivileges(e);try{const t=null!=e?e.signal:null;a=await(o.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:t}))}catch(t){(0,d.QP)(t)}const l=!0,u=!1,p=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:p}};try{if(s?await r.reload():(r=new v.default({id:t,portal:{url:n}}),await r.load(e)),r.portal.user)return this._getUserPrivileges(r,i)}catch(t){(0,d.QP)(t)}return{features:{edit:l,fullEdit:u},content:{updateItem:p}}}_getUserPrivileges(t,e){const r=(0,_.It)(t);return e&&(r.features.edit=!0),r}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?o.id?.findCredential(this.url):null;if(!e)return!0;const r=E.credential===e?E.user:await this._fetchEditingUser(t);return E.credential=e,E.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(t){const e=this.portalItem?.portal?.user;if(e)return e;const r=o.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,s=f.A.getDefault();if(s&&s.loaded&&(0,h.S8)(s.restUrl)===(0,h.S8)(i))return s.user;const l=`${i}/community/self`,u=null!=t?t.signal:null,p=await(0,a.Ke)((0,n.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?m.A.fromJSON(p.value.data):null}read(t,e){e&&(e.layer=this),super.read(t,e)}write(t,e){const r=e?.portal,i=this.portalItem?.id&&(this.portalItem.portal||f.A.getDefault());return r&&i&&!(0,h.ut)(i.restUrl,r.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,i.Cg)([(0,g.MZ)({type:v.default})],P.prototype,"portalItem",null),(0,i.Cg)([(0,I.w)("web-document","portalItem",["itemId"])],P.prototype,"readPortalItem",null),(0,i.Cg)([(0,w.K)("web-document","portalItem",{itemId:{type:String}})],P.prototype,"writePortalItem",null),(0,i.Cg)([(0,g.MZ)({clonable:!1})],P.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,readOnly:!0})],P.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,readOnly:!0})],P.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,readOnly:!0})],P.prototype,"userHasUpdateItemPrivileges",void 0),P=(0,i.Cg)([(0,g.$K)("esri.layers.mixins.PortalLayer")],P),P}])},10407(t,e,r){r.d(e,{It:()=>h,LG:()=>n,OM:()=>u,Sm:()=>p,Y:()=>a,bK:()=>l,sQ:()=>c});var i=r(99917),s=r(16930),o=r(28735);function n(t,e){if(!a(t,e)){const r=t.typeKeywords;r?r.push(e):t.typeKeywords=[e]}}function a(t,e){return!!t.typeKeywords?.includes(e)}function l(t){return a(t,d.HOSTED_SERVICE)}function u(t,e){const r=t.typeKeywords;if(r){const t=r.indexOf(e);t>-1&&r.splice(t,1)}}function p(t,e,r){r?n(t,e):u(t,e)}async function c(t){const e=t.clone().normalize();let r;if(e.length>1)for(const t of e)r?t.width>r.width&&(r=t):r=t;else r=e[0];return async function(t){const e=t.spatialReference;if(e.isWGS84)return t.clone();if(e.isWebMercator)return(0,o.ci)(t);const r=s.A.WGS84;return await(0,i.initializeProjection)(e,r),(0,i.project)(t,r)}(r)}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 h(t){const{portal:e,isOrgItem:r,itemControl:i}=t,s=e.user?.privileges;let o=!s||s.includes("features:user:edit"),n=!!r&&!!s?.includes("features:user:fullEdit");const a="update"===i||"admin"===i;return a?n=o=!0:n&&(o=!0),{features:{edit:o,fullEdit:n},content:{updateItem:a}}}r.d(e,["mm",0,d])}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3354,4508,8846],{73354(t,n,e){e.d(n,{a:()=>f,b:()=>l,c:()=>o,d:()=>u,e:()=>g,f:()=>s,l:()=>c,n:()=>p,t:()=>i}),e(44208);var r=e(72727);function o(t,n,e){i(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function i(t,n,e,o=3,i=o){const u=(0,r.k)(t.length,o,3),l=(0,r.k)(n.length,i,3),a=Math.min(u,l),c=e[0],s=e[1],f=e[2],g=e[4],p=e[5],y=e[6],d=e[8],m=e[9],h=e[10],v=e[12],A=e[13],w=e[14];let M=0,x=0;for(let e=0;e<a;e++){const e=n[M],r=n[M+1],u=n[M+2];t[x]=c*e+g*r+d*u+v,t[x+1]=s*e+p*r+m*u+A,t[x+2]=f*e+y*r+h*u+w,M+=i,x+=o}return t}function u(t,n,e){l(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function l(t,n,e,o=3,i=o){const u=(0,r.k)(t.length,o,3),l=(0,r.k)(n.length,i,3),a=Math.min(u,l),c=e[0],s=e[1],f=e[2],g=e[3],p=e[4],y=e[5],d=e[6],m=e[7],h=e[8];let v=0,A=0;for(let e=0;e<a;e++){const e=n[v],r=n[v+1],u=n[v+2];t[A]=c*e+g*r+d*u,t[A+1]=s*e+p*r+m*u,t[A+2]=f*e+y*r+h*u,v+=i,A+=o}}function a(t,n,e,r=3,o=r){const i=Math.min(t.length/r,n.length/o);let u=0,l=0;for(let a=0;a<i;a++)t[l]=e*n[u],t[l+1]=e*n[u+1],t[l+2]=e*n[u+2],u+=o,l+=r;return t}function c(t,n,e,r){s(t.typedBuffer,n.typedBuffer,e,r,t.typedBufferStride,n.typedBufferStride)}function s(t,n,e,r,o=3,i=o){const u=Math.min(t.length/o,n.length/i);let l=0,a=0;const c=1/2.2;for(let s=0;s<u;s++)t[a]=r*(e*n[l])**c,t[a+1]=r*(e*n[l+1])**c,t[a+2]=r*(e*n[l+2])**c,l+=i,a+=o}function f(t,n,e,o=3,i=o){const u=(0,r.k)(t.length,o,3),l=(0,r.k)(n.length,i,3),a=Math.min(u,l);let c=0,s=0;for(let r=0;r<a;r++)t[s]=n[c]+e[0],t[s+1]=n[c+1]+e[1],t[s+2]=n[c+2]+e[2],c+=i,s+=o;return t}function g(t,n){p(t.typedBuffer,n.typedBuffer,t.typedBufferStride,n.typedBufferStride)}function p(t,n,e=3,r=e){const o=Math.min(t.length/e,n.length/r);let i=0,u=0;for(let l=0;l<o;l++){const o=n[i],l=n[i+1],a=n[i+2],c=o*o+l*l+a*a;if(c>0){const n=1/Math.sqrt(c);t[u]=n*o,t[u+1]=n*l,t[u+2]=n*a}i+=r,u+=e}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:s,linearToSRGBView:c,normalize:p,normalizeView:g,scale:a,scaleView:function(t,n,e){a(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)},shiftRight:function(t,n,e){const r=Math.min(t.count,n.count),o=t.typedBuffer,i=t.typedBufferStride,u=n.typedBuffer,l=n.typedBufferStride;let a=0,c=0;for(let t=0;t<r;t++)o[c]=u[a]>>e,o[c+1]=u[a+1]>>e,o[c+2]=u[a+2]>>e,a+=l,c+=i},transformMat3:l,transformMat3View:u,transformMat4:i,transformMat4View:o,translate:f},Symbol.toStringTag,{value:"Module"}))},48163(t,n,e){function r(){return[0,0]}function o(t){return[t[0],t[1]]}function i(t,n){return[t,n]}function u(){return i(1,1)}function l(){return i(-1,-1)}function a(){return i(1,0)}function c(){return i(0,1)}e.d(n,{fA:()=>i,o8:()=>o,vt:()=>r});const s=u(),f=l(),g=a(),p=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:f,ONES:s,UNIT_X:g,UNIT_Y:p,ZEROS:[0,0],clone:o,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:i,negativeOnes:l,ones:u,unitX:a,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["IA",0,f,"Un",0,s])},91829(t,n,e){function r(){return[0,0,0,0]}function o(t,n,e,r){return[t,n,e,r]}function i(){return o(1,1,1,1)}function u(){return o(1,0,0,0)}function l(){return o(0,1,0,0)}function a(){return o(0,0,1,0)}function c(){return o(0,0,0,1)}e.d(n,{_Y:()=>c,fA:()=>o,vt:()=>r});const s=[0,0,0,0],f=i(),g=u(),p=l(),y=a(),d=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:d,UNIT_X:g,UNIT_Y:p,UNIT_Z:y,ZEROS:s,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:function(t,n,e,r){return[t,n,e,r]},fromArray:function(t,n=[0,0,0,0]){const e=Math.min(4,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:o,ones:i,unitW:c,unitX:u,unitY:l,unitZ:a,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["Un",0,f,"uY",0,s])},48353(t,n,e){e.d(n,{l:()=>c});var r=e(34727),o=e(58083),i=e(51850);function u(t,n,e){const r=Math.sin(t),o=Math.cos(t),i=Math.sin(n),u=Math.cos(n),l=e;return l[0]=-r,l[4]=-i*o,l[8]=u*o,l[12]=0,l[1]=o,l[5]=-i*r,l[9]=u*r,l[13]=0,l[2]=0,l[6]=u,l[10]=i,l[14]=0,l[3]=0,l[7]=0,l[11]=0,l[15]=1,l}var l=e(49208),a=e(21325);function c(t,n,e,r){const i=(0,l.Tp)(t,r);if(null==i)return!1;const c=i.source.spatialReferenceId,y=i.dest.spatialReferenceId;if(c===y&&!s(y)&&(0!==c||(0,a.aI)(t,r)))return(0,o.kN)(e,n),!0;if(s(y)){const t=l.w5[c][10],r=l.w5[10][y];return null!=t&&null!=r&&(t(n,0,g,0),r(g,0,p,0),u(f*g[0],f*g[1],e),e[12]=p[0],e[13]=p[1],e[14]=p[2],!0)}const d=s(c);if((3===y||11===y||2===y||5===y)&&(2===c||d||3===c||5===c)){const t=l.w5[c][10],r=l.w5[10][y];return null!=t&&null!=r&&(t(n,0,g,0),r(g,0,p,0),d?function(t,n,e){u(t,n,e),(0,o.mg)(e,e)}(f*g[0],f*g[1],e):(0,o.D_)(e),e[12]=p[0],e[13]=p[1],e[14]=p[2],!0)}return!1}function s(t){return 1===t||6===t||8===t||4===t}const f=(0,r.kU)(1),g=(0,i.vt)(),p=(0,i.vt)()},65806(t,n,e){e.d(n,{g:()=>u});var r=e(51850),o=e(91218),i=e(9762);function u(t,n,e,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,e))return l[0]=t.x,l[1]=t.y,l[2]=t.z??0,(0,i.projectBuffer)(l,t.spatialReference,0,n,e,0);const u=(0,o.tryProject)(t,e,r);return!!u&&(n[0]=u.x,n[1]=u.y,n[2]=u.z??0,!0)}const l=(0,r.vt)()},1193(t,n,e){e.r(n),e.d(n,{default:()=>f});var r,o=e(5482),i=e(69540),u=e(25482),l=e(4718),a=e(53966),c=e(91429),s=e(31199);let f=r=class extends((0,i.OU)(u.o)){constructor(t){super(t),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(t){return(0,s.b)(t,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},a.A.getLogger(this))}castPosition(t){return t&&t instanceof Float32Array&&a.A.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),(0,s.b)(t,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},a.A.getLogger(this))}castUv(t){return(0,s.b)(t,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},a.A.getLogger(this))}castNormal(t){return(0,s.b)(t,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},a.A.getLogger(this))}castTangent(t){return(0,s.b)(t,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},a.A.getLogger(this))}clonePositional(){const t={position:(0,l.o8)(this.position),normal:(0,l.o8)(this.normal),tangent:(0,l.o8)(this.tangent),uv:this.uv,color:this.color};return new r(t)}get usedMemory(){return this.position.byteLength+(this.uv?.byteLength??0)+(this.normal?.byteLength??0)+(this.tangent?.byteLength??0)+(this.color?.byteLength??0)}};(0,o.Cg)([(0,c.MZ)({json:{write:s.B}})],f.prototype,"color",void 0),(0,o.Cg)([(0,c.wg)("color")],f.prototype,"castColor",null),(0,o.Cg)([(0,c.MZ)({nonNullable:!0,json:{write:s.B}})],f.prototype,"position",void 0),(0,o.Cg)([(0,c.wg)("position")],f.prototype,"castPosition",null),(0,o.Cg)([(0,c.MZ)({json:{write:s.B}})],f.prototype,"uv",void 0),(0,o.Cg)([(0,c.wg)("uv")],f.prototype,"castUv",null),(0,o.Cg)([(0,c.MZ)({json:{write:s.B}})],f.prototype,"normal",void 0),(0,o.Cg)([(0,c.wg)("normal")],f.prototype,"castNormal",null),(0,o.Cg)([(0,c.MZ)({json:{write:s.B}})],f.prototype,"tangent",void 0),(0,o.Cg)([(0,c.wg)("tangent")],f.prototype,"castTangent",null),f=r=(0,o.Cg)([(0,c.$K)("esri.geometry.support.MeshVertexAttributes")],f)},72727(t,n,e){function r(t,n,e){if(n<=0)return 0;const r=t-e;return r<0?0:Math.floor(r/n)+1}e.d(n,{k:()=>r}),e(53966)},31199(t,n,e){function r(t,n,e,r){const{loggerTag:o,stride:i}=n;return t.length%i!==0?(r.error(o,`Invalid array length, expected a multiple of ${i}`),new e([])):t}function o(t,n,e,o,i){if(!t)return t;if(t instanceof n)return r(t,o,n,i);for(const u of e)if(t instanceof u)return r(new n(t),o,n,i);if(Array.isArray(t))return r(new n(t),o,n,i);{const r=e.map(t=>`'${t.name}'`);return i.error(`Failed to set property, expected one of ${r}, but got ${t.constructor.name}`),new n([])}}function i(t,n,e){n[e]=function(t){const n=new Array(t.length);for(let e=0;e<t.length;e++)n[e]=t[e];return n}(t)}e.d(n,{B:()=>i,b:()=>o})},28846(t,n,e){e.d(n,{convertMeshVertexSpace:()=>c});var r=e(49186),o=e(4718),i=e(17676),u=e(1193),l=e(66895),a=e(72258);async function c(t,n,e){await Promise.resolve(),(0,i.Te)(e);const c=(0,a.UR)(t,n,{useEllipsoid:e?.useEllipsoid});if(!c)throw new r.A("meshUtils:convertVertexSpace()","Failed to convert to provided vertex space due to projection errors");return t.clone((0,l.Lz)(void 0,{vertexAttributes:new u.default({...c,uv:(0,o.o8)(t.vertexAttributes.uv),color:(0,o.o8)(t.vertexAttributes.color)}),vertexSpace:n,transform:null}))}},66895(t,n,e){e.d(n,{$N:()=>s,Lz:()=>i,QN:()=>f,WO:()=>a,hz:()=>l,o2:()=>o});const r=Symbol("meshContext");function o(t){return t&&"object"==typeof t&&r in t?t[r]:void 0}function i(t,n){const e=o(t);return{...t,[r]:{...e,...n}}}const u=Symbol("meshMaterialContext");function l(t){return t&&"object"==typeof t&&u in t?t[u]:void 0}function a(t){const n=l(t);if(n?.materialMap)return t;const e={materialMap:new Map};return{...t,[u]:e}}const c=Symbol("meshTextureContext");function s(t){return t&&"object"==typeof t&&c in t?t[c]:void 0}function f(t){const n=s(t);if(n?.textureMap)return t;const e={textureMap:new Map};return{...t,[c]:e}}},22141(t,n,e){e.d(n,{$5:()=>x,CN:()=>v,KM:()=>B,Mv:()=>T,X4:()=>A,gr:()=>M,qs:()=>b,si:()=>w,xA:()=>S});var r=e(34727),o=e(77690),i=e(29242),u=e(58083),l=e(9093),a=e(35522),c=e(51850),s=e(73941),f=e(48353),g=e(9762),p=(e(79258),e(21325)),y=e(28735),d=e(13030),m=e(73354),h=e(50867);function v(t,n,e,r){t.error(`Failed to project from (wkid:${n.wkid}) to (wkid:${e.wkid}).${r?" ":""}${r}`)}function A(t,n,e,r,o,i){return F(0,d.xs.fromTypedArray(t),0,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function w(t,n,e,r,o,i){return F(1,d.xs.fromTypedArray(t),0,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function M(t,n,e,r){return(0,g.projectBuffer)(t,n,0,e,r,0)?e:null}function x(t,n,e,r){return(0,g.projectBuffer)(t,n,0,e,r,0)?e:null}function b(t,n,e){return(0,o.Ge)(R,e),(0,m.b)(n,t,R),(0,r.or)(R)&&(0,m.n)(n,n),n}function B(t,n,e){return(0,o.z0)(R,e),(0,h.t)(n,t,R),(0,r.or)(R)&&(0,m.n)(n,n,4),n}function S(t,n,e,r,o,i){if(!F(0,d.xs.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),1,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}function T(t,n,e,r,o,i){if(!F(1,d.xs.fromTypedArray(t,16),1,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,16)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}function C(t,n,e,r,i){switch((0,f.l)(r,e,j,r),1===t&&(0,u.B8)(j,j),n){case 0:return(0,o.Ge)(i,j);case 1:return(0,o.z0)(i,j)}}function F(t,n,e,r,o,i,u,l){if(!n)return;const c=r.count;if(function(t){return t.isWGS84||(0,p.x1)(t)||(0,s.q8)(t)||(0,s.KQ)(t)}(o))for(let r=0;r<c;r++)i.getVec(r,N),n.getVec(r,_),(0,a.ei)(_,_,C(t,e,N,u,R)),l.setVec(r,_);else for(let o=0;o<c;o++){i.getVec(o,N),n.getVec(o,_);const c=(0,y.jg)(r.get(o,1));let s=Math.cos(c);1===e!=(0===t)&&(s=1/s),C(t,e,N,u,R),0===t?(R[0]*=s,R[1]*=s,R[2]*=s,R[3]*=s,R[4]*=s,R[5]*=s):(R[0]*=s,R[3]*=s,R[6]*=s,R[1]*=s,R[4]*=s,R[7]*=s),(0,a.ei)(_,_,R),(0,a.S8)(_,_),l.setVec(o,_)}return l}const N=(0,c.vt)(),_=(0,c.vt)(),j=(0,l.vt)(),R=(0,i.vt)();e.d(n,["JP",0,"Projection may be possible after calling projection.load()."])},72258(t,n,e){e.d(n,{UR:()=>M,p5:()=>w,xK:()=>C});var r=e(53966),o=e(34727),i=e(86211),u=e(77690),l=e(29242),a=e(58083),c=e(9093),s=e(35522),f=e(51850),g=e(73941),p=e(98764),y=e(48353),d=e(65806),m=e(27615),h=e(73354),v=e(22141);const A=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function w(t,n,{vertexSpace:e,spatialReference:r}){if("georeferenced"===e.type){const o=t;if(!(0,d.g)(n,o,r))return!1;const{origin:i}=e;return(0,s.Re)(t,o,i),!0}const o=(0,p.lO)(r),i=t;if(!(0,d.g)(n,i,o))return!1;const{origin:u}=e,l=R;if(!(0,y.l)(r,u,l,o))return!1;const c=(0,a.B8)(R,l);return null!=c&&((0,s.Z0)(t,i,c),!0)}function M(t,n,e){const{vertexSpace:r,transform:o,vertexAttributes:i}=t,l=(0,m.Hq)(r)?o:null,f=S(t.spatialReference,e,3);if((0,m.yJ)(r,n)&&(!l||(0,a.t2)(l.localMatrix,c.zK))&&T(f)){const{position:t,normal:n,tangent:r}=i,o=e?.allowBufferReuse;return{position:o?t:t.slice(),normal:o?n:n?.slice(),tangent:o?r:r?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const u=x(n,i);if(!(0,y.l)(n,r,F,u))return(0,v.CN)(A(),n,u),null;if(e&&(0,a.lw)(F,F,e.localMatrix),!(0,y.l)(n,o,N,u))return(0,v.CN)(A(),u,n),null;(0,a.B8)(N,N);const l=(0,a.lw)(F,N,F);return B(l,n,i,3),b(t,l)}(t,t.vertexSpace,n.origin,e):function({spatialReference:t,vertexAttributes:n,transform:e},{origin:r},o,i){const u=x(t,i);if(!(0,y.l)(t,r,F,u))return(0,v.CN)(A(),t,u),null;e&&(0,a.lw)(F,F,e.localMatrix),B(F,t,i,1);const l=new Float64Array(n.position.length),c=function(t,n,e,r,o){(0,h.t)(r,t,n);const i=new Float64Array(t.length);return(0,v.$5)(r,o,i,e)?i:((0,v.CN)(A(),o,e),null)}(n.position,F,t,l,u);if(!c)return null;const f=function(t,n,e,r,o,i){if(null==o)return null;const u=new Float32Array(o.length);return(0,v.qs)(o,u,i),(0,v.si)(u,t,n,e,r,u)?u:((0,v.CN)(A(),r,n),null)}(c,t,l,u,n.normal,F);if(n.normal&&!f)return null;const g=function(t,n,e,r,o,i){if(null==o)return null;const u=new Float32Array(o.length);return(0,v.KM)(o,u,i),(0,v.Mv)(u,t,n,e,r,u)?u:((0,v.CN)(A(),r,n),null)}(c,t,l,u,n.tangent,F);if(n.tangent&&!g)return null;if(o){const t=(0,s.ze)(j,o);(0,h.a)(c,c,t)}return{position:c,normal:f,tangent:g}}(t,t.vertexSpace,n.origin,e);case"georeferenced":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const l=x(n,i);if(!(0,y.l)(n,o,F,l))return(0,v.CN)(A(),n,l),null;const c=1/S(n,i,2);(0,a.hs)(F,F,[c,c,c]);const s=(0,a.B8)(N,F),{position:f,normal:g,tangent:p}=function(t,n,e){if(!n)return t;if(!e){const{position:e,normal:r,tangent:o}=t;return{position:(0,h.a)(new Float64Array(e.length),e,n),tangent:o,normal:r}}const r=b(t,e.localMatrix);return(0,h.a)(r.position,r.position,n),r}(t,r,e),d=new Float64Array(f.length),m=function(t,n,e,r,o){const i=(0,v.gr)(t,n,r,o);if(!i)return(0,v.CN)(A(),n,o),null;const u=new Float64Array(i.length);return(0,h.t)(u,i,e),u}(f,n,s,d,l);if(!m)return null;const w=(0,u.Ge)(_,s),M=function(t,n,e,r,o,i,u){if(null==t)return null;const l=u??new Float32Array(t.length);return(0,v.X4)(t,n,e,r,o,l)?((0,h.b)(l,l,i),l):((0,v.CN)(A(),e,o),null)}(g,f,n,d,l,w,g!==t.normal?g:void 0);if(!M&&g)return null;const B=function(t,n,e,r,o,i,u){if(null==t)return null;const l=u??new Float32Array(t.length);return(0,v.xA)(t,n,e,r,o,l)?((0,h.b)(l,l,i,4),l):((0,v.CN)(A(),e,o),null)}(p,f,n,d,l,w,p!==t.tangent?p:void 0);return!B&&p?null:{position:m,normal:M,tangent:B}}(t,t.vertexSpace,n.origin,e):function({vertexAttributes:t,transform:n,spatialReference:e},{origin:r},o,i){const u=S(e,i,3),l=r||!T(u)?(0,a.C)(F,n?.localMatrix??c.zK):null;l&&B(l,e,i,3);const{position:f,normal:g,tangent:p}=l?b(t,l):t,y=i?.allowBufferReuse,d=y?f:new Float64Array(f.length);let m=f;if(r&&(m=(0,h.a)(d,m,r)),o){const t=(0,s.ze)(j,o);m=(0,h.a)(d,m,t)}return{position:m!==t.position||y?m:m.slice(),normal:g!==t.normal||y?g:g?.slice(),tangent:p!==t.tangent||y?p:p?.slice()}}(t,t.vertexSpace,n.origin,e)}}function x(t,n){return n?.useEllipsoid&&(0,g.B3)(t)?p.Y0:(0,p.lO)(t)}function b(t,n){const e=new Float64Array(t.position.length);(0,h.t)(e,t.position,n);const r=t.normal?new Float32Array(t.normal.length):null,o=t.tangent?new Float32Array(t.tangent.length):null;return r&&t.normal&&(0,v.qs)(t.normal,r,n),o&&t.tangent&&(0,v.KM)(t.tangent,o,n),{position:e,normal:r,tangent:o}}function B(t,n,e,r){const o=S(n,e,r);T(o)||(0,a.hs)(t,t,[o,o,o])}function S(t,n,e){const r=!!(1&e),o=!!(2&e),i=n?.sourceUnit,u=n?.targetUnit;if(!i&&!u)return 1;let l=C(i,t);r||!i||T(l)||(A().warn("source unit conversion not supported"),l=1);let a=1/C(u,t);return o||!u||T(a)||(A().warn("target unit conversion not supported"),a=1),l*a}function T(t){return(0,o.Io)(t,1)}function C(t,n){if(null==t)return 1;const e=(0,i.KX)(n);return 1/(0,i.oU)(e,"meters",t)}const F=(0,c.vt)(),N=(0,c.vt)(),_=(0,l.vt)(),j=(0,f.vt)(),R=(0,c.vt)()}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3354,4508,8846],{73354(t,n,e){e.d(n,{a:()=>f,b:()=>l,c:()=>o,d:()=>u,e:()=>g,f:()=>s,l:()=>c,n:()=>p,t:()=>i}),e(44208);var r=e(72727);function o(t,n,e){i(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function i(t,n,e,o=3,i=o){const u=(0,r.k)(t.length,o,3),l=(0,r.k)(n.length,i,3),a=Math.min(u,l),c=e[0],s=e[1],f=e[2],g=e[4],p=e[5],y=e[6],d=e[8],m=e[9],h=e[10],v=e[12],A=e[13],w=e[14];let M=0,x=0;for(let e=0;e<a;e++){const e=n[M],r=n[M+1],u=n[M+2];t[x]=c*e+g*r+d*u+v,t[x+1]=s*e+p*r+m*u+A,t[x+2]=f*e+y*r+h*u+w,M+=i,x+=o}return t}function u(t,n,e){l(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function l(t,n,e,o=3,i=o){const u=(0,r.k)(t.length,o,3),l=(0,r.k)(n.length,i,3),a=Math.min(u,l),c=e[0],s=e[1],f=e[2],g=e[3],p=e[4],y=e[5],d=e[6],m=e[7],h=e[8];let v=0,A=0;for(let e=0;e<a;e++){const e=n[v],r=n[v+1],u=n[v+2];t[A]=c*e+g*r+d*u,t[A+1]=s*e+p*r+m*u,t[A+2]=f*e+y*r+h*u,v+=i,A+=o}}function a(t,n,e,r=3,o=r){const i=Math.min(t.length/r,n.length/o);let u=0,l=0;for(let a=0;a<i;a++)t[l]=e*n[u],t[l+1]=e*n[u+1],t[l+2]=e*n[u+2],u+=o,l+=r;return t}function c(t,n,e,r){s(t.typedBuffer,n.typedBuffer,e,r,t.typedBufferStride,n.typedBufferStride)}function s(t,n,e,r,o=3,i=o){const u=Math.min(t.length/o,n.length/i);let l=0,a=0;const c=1/2.2;for(let s=0;s<u;s++)t[a]=r*(e*n[l])**c,t[a+1]=r*(e*n[l+1])**c,t[a+2]=r*(e*n[l+2])**c,l+=i,a+=o}function f(t,n,e,o=3,i=o){const u=(0,r.k)(t.length,o,3),l=(0,r.k)(n.length,i,3),a=Math.min(u,l);let c=0,s=0;for(let r=0;r<a;r++)t[s]=n[c]+e[0],t[s+1]=n[c+1]+e[1],t[s+2]=n[c+2]+e[2],c+=i,s+=o;return t}function g(t,n){p(t.typedBuffer,n.typedBuffer,t.typedBufferStride,n.typedBufferStride)}function p(t,n,e=3,r=e){const o=Math.min(t.length/e,n.length/r);let i=0,u=0;for(let l=0;l<o;l++){const o=n[i],l=n[i+1],a=n[i+2],c=o*o+l*l+a*a;if(c>0){const n=1/Math.sqrt(c);t[u]=n*o,t[u+1]=n*l,t[u+2]=n*a}i+=r,u+=e}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:s,linearToSRGBView:c,normalize:p,normalizeView:g,scale:a,scaleView:function(t,n,e){a(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)},shiftRight:function(t,n,e){const r=Math.min(t.count,n.count),o=t.typedBuffer,i=t.typedBufferStride,u=n.typedBuffer,l=n.typedBufferStride;let a=0,c=0;for(let t=0;t<r;t++)o[c]=u[a]>>e,o[c+1]=u[a+1]>>e,o[c+2]=u[a+2]>>e,a+=l,c+=i},transformMat3:l,transformMat3View:u,transformMat4:i,transformMat4View:o,translate:f},Symbol.toStringTag,{value:"Module"}))},48163(t,n,e){function r(){return[0,0]}function o(t){return[t[0],t[1]]}function i(t,n){return[t,n]}function u(){return i(1,1)}function l(){return i(-1,-1)}function a(){return i(1,0)}function c(){return i(0,1)}e.d(n,{fA:()=>i,o8:()=>o,vt:()=>r});const s=u(),f=l(),g=a(),p=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:f,ONES:s,UNIT_X:g,UNIT_Y:p,ZEROS:[0,0],clone:o,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:i,negativeOnes:l,ones:u,unitX:a,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["IA",0,f,"Un",0,s])},91829(t,n,e){function r(){return[0,0,0,0]}function o(t,n,e,r){return[t,n,e,r]}function i(){return o(1,1,1,1)}function u(){return o(1,0,0,0)}function l(){return o(0,1,0,0)}function a(){return o(0,0,1,0)}function c(){return o(0,0,0,1)}e.d(n,{_Y:()=>c,fA:()=>o,vt:()=>r});const s=[0,0,0,0],f=i(),g=u(),p=l(),y=a(),d=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:d,UNIT_X:g,UNIT_Y:p,UNIT_Z:y,ZEROS:s,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:function(t,n,e,r){return[t,n,e,r]},fromArray:function(t,n=[0,0,0,0]){const e=Math.min(4,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:o,ones:i,unitW:c,unitX:u,unitY:l,unitZ:a,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["Un",0,f,"uY",0,s])},48353(t,n,e){e.d(n,{l:()=>c});var r=e(34727),o=e(58083),i=e(51850);function u(t,n,e){const r=Math.sin(t),o=Math.cos(t),i=Math.sin(n),u=Math.cos(n),l=e;return l[0]=-r,l[4]=-i*o,l[8]=u*o,l[12]=0,l[1]=o,l[5]=-i*r,l[9]=u*r,l[13]=0,l[2]=0,l[6]=u,l[10]=i,l[14]=0,l[3]=0,l[7]=0,l[11]=0,l[15]=1,l}var l=e(49208),a=e(21325);function c(t,n,e,r){const i=(0,l.Tp)(t,r);if(null==i)return!1;const c=i.source.spatialReferenceId,y=i.dest.spatialReferenceId;if(c===y&&!s(y)&&(0!==c||(0,a.aI)(t,r)))return(0,o.kN)(e,n),!0;if(s(y)){const t=l.w5[c][10],r=l.w5[10][y];return null!=t&&null!=r&&(t(n,0,g,0),r(g,0,p,0),u(f*g[0],f*g[1],e),e[12]=p[0],e[13]=p[1],e[14]=p[2],!0)}const d=s(c);if((3===y||11===y||2===y||5===y)&&(2===c||d||3===c||5===c)){const t=l.w5[c][10],r=l.w5[10][y];return null!=t&&null!=r&&(t(n,0,g,0),r(g,0,p,0),d?function(t,n,e){u(t,n,e),(0,o.mg)(e,e)}(f*g[0],f*g[1],e):(0,o.D_)(e),e[12]=p[0],e[13]=p[1],e[14]=p[2],!0)}return!1}function s(t){return 1===t||6===t||8===t||4===t}const f=(0,r.kU)(1),g=(0,i.vt)(),p=(0,i.vt)()},65806(t,n,e){e.d(n,{g:()=>u});var r=e(51850),o=e(99917),i=e(9762);function u(t,n,e,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,e))return l[0]=t.x,l[1]=t.y,l[2]=t.z??0,(0,i.projectBuffer)(l,t.spatialReference,0,n,e,0);const u=(0,o.tryProject)(t,e,r);return!!u&&(n[0]=u.x,n[1]=u.y,n[2]=u.z??0,!0)}const l=(0,r.vt)()},1193(t,n,e){e.r(n),e.d(n,{default:()=>f});var r,o=e(5482),i=e(69540),u=e(25482),l=e(4718),a=e(53966),c=e(91429),s=e(31199);let f=r=class extends((0,i.OU)(u.o)){constructor(t){super(t),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(t){return(0,s.b)(t,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},a.A.getLogger(this))}castPosition(t){return t&&t instanceof Float32Array&&a.A.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),(0,s.b)(t,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},a.A.getLogger(this))}castUv(t){return(0,s.b)(t,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},a.A.getLogger(this))}castNormal(t){return(0,s.b)(t,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},a.A.getLogger(this))}castTangent(t){return(0,s.b)(t,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},a.A.getLogger(this))}clonePositional(){const t={position:(0,l.o8)(this.position),normal:(0,l.o8)(this.normal),tangent:(0,l.o8)(this.tangent),uv:this.uv,color:this.color};return new r(t)}get usedMemory(){return this.position.byteLength+(this.uv?.byteLength??0)+(this.normal?.byteLength??0)+(this.tangent?.byteLength??0)+(this.color?.byteLength??0)}};(0,o.Cg)([(0,c.MZ)({json:{write:s.B}})],f.prototype,"color",void 0),(0,o.Cg)([(0,c.wg)("color")],f.prototype,"castColor",null),(0,o.Cg)([(0,c.MZ)({nonNullable:!0,json:{write:s.B}})],f.prototype,"position",void 0),(0,o.Cg)([(0,c.wg)("position")],f.prototype,"castPosition",null),(0,o.Cg)([(0,c.MZ)({json:{write:s.B}})],f.prototype,"uv",void 0),(0,o.Cg)([(0,c.wg)("uv")],f.prototype,"castUv",null),(0,o.Cg)([(0,c.MZ)({json:{write:s.B}})],f.prototype,"normal",void 0),(0,o.Cg)([(0,c.wg)("normal")],f.prototype,"castNormal",null),(0,o.Cg)([(0,c.MZ)({json:{write:s.B}})],f.prototype,"tangent",void 0),(0,o.Cg)([(0,c.wg)("tangent")],f.prototype,"castTangent",null),f=r=(0,o.Cg)([(0,c.$K)("esri.geometry.support.MeshVertexAttributes")],f)},72727(t,n,e){function r(t,n,e){if(n<=0)return 0;const r=t-e;return r<0?0:Math.floor(r/n)+1}e.d(n,{k:()=>r}),e(53966)},31199(t,n,e){function r(t,n,e,r){const{loggerTag:o,stride:i}=n;return t.length%i!==0?(r.error(o,`Invalid array length, expected a multiple of ${i}`),new e([])):t}function o(t,n,e,o,i){if(!t)return t;if(t instanceof n)return r(t,o,n,i);for(const u of e)if(t instanceof u)return r(new n(t),o,n,i);if(Array.isArray(t))return r(new n(t),o,n,i);{const r=e.map(t=>`'${t.name}'`);return i.error(`Failed to set property, expected one of ${r}, but got ${t.constructor.name}`),new n([])}}function i(t,n,e){n[e]=function(t){const n=new Array(t.length);for(let e=0;e<t.length;e++)n[e]=t[e];return n}(t)}e.d(n,{B:()=>i,b:()=>o})},28846(t,n,e){e.d(n,{convertMeshVertexSpace:()=>c});var r=e(49186),o=e(4718),i=e(17676),u=e(1193),l=e(66895),a=e(72258);async function c(t,n,e){await Promise.resolve(),(0,i.Te)(e);const c=(0,a.UR)(t,n,{useEllipsoid:e?.useEllipsoid});if(!c)throw new r.A("meshUtils:convertVertexSpace()","Failed to convert to provided vertex space due to projection errors");return t.clone((0,l.Lz)(void 0,{vertexAttributes:new u.default({...c,uv:(0,o.o8)(t.vertexAttributes.uv),color:(0,o.o8)(t.vertexAttributes.color)}),vertexSpace:n,transform:null}))}},66895(t,n,e){e.d(n,{$N:()=>s,Lz:()=>i,QN:()=>f,WO:()=>a,hz:()=>l,o2:()=>o});const r=Symbol("meshContext");function o(t){return t&&"object"==typeof t&&r in t?t[r]:void 0}function i(t,n){const e=o(t);return{...t,[r]:{...e,...n}}}const u=Symbol("meshMaterialContext");function l(t){return t&&"object"==typeof t&&u in t?t[u]:void 0}function a(t){const n=l(t);if(n?.materialMap)return t;const e={materialMap:new Map};return{...t,[u]:e}}const c=Symbol("meshTextureContext");function s(t){return t&&"object"==typeof t&&c in t?t[c]:void 0}function f(t){const n=s(t);if(n?.textureMap)return t;const e={textureMap:new Map};return{...t,[c]:e}}},22141(t,n,e){e.d(n,{$5:()=>x,CN:()=>v,KM:()=>B,Mv:()=>T,X4:()=>A,gr:()=>M,qs:()=>b,si:()=>w,xA:()=>S});var r=e(34727),o=e(77690),i=e(29242),u=e(58083),l=e(9093),a=e(35522),c=e(51850),s=e(73941),f=e(48353),g=e(9762),p=(e(79258),e(21325)),y=e(28735),d=e(13030),m=e(73354),h=e(50867);function v(t,n,e,r){t.error(`Failed to project from (wkid:${n.wkid}) to (wkid:${e.wkid}).${r?" ":""}${r}`)}function A(t,n,e,r,o,i){return F(0,d.xs.fromTypedArray(t),0,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function w(t,n,e,r,o,i){return F(1,d.xs.fromTypedArray(t),0,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function M(t,n,e,r){return(0,g.projectBuffer)(t,n,0,e,r,0)?e:null}function x(t,n,e,r){return(0,g.projectBuffer)(t,n,0,e,r,0)?e:null}function b(t,n,e){return(0,o.Ge)(R,e),(0,m.b)(n,t,R),(0,r.or)(R)&&(0,m.n)(n,n),n}function B(t,n,e){return(0,o.z0)(R,e),(0,h.t)(n,t,R),(0,r.or)(R)&&(0,m.n)(n,n,4),n}function S(t,n,e,r,o,i){if(!F(0,d.xs.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),1,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}function T(t,n,e,r,o,i){if(!F(1,d.xs.fromTypedArray(t,16),1,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,16)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}function C(t,n,e,r,i){switch((0,f.l)(r,e,j,r),1===t&&(0,u.B8)(j,j),n){case 0:return(0,o.Ge)(i,j);case 1:return(0,o.z0)(i,j)}}function F(t,n,e,r,o,i,u,l){if(!n)return;const c=r.count;if(function(t){return t.isWGS84||(0,p.x1)(t)||(0,s.q8)(t)||(0,s.KQ)(t)}(o))for(let r=0;r<c;r++)i.getVec(r,N),n.getVec(r,_),(0,a.ei)(_,_,C(t,e,N,u,R)),l.setVec(r,_);else for(let o=0;o<c;o++){i.getVec(o,N),n.getVec(o,_);const c=(0,y.jg)(r.get(o,1));let s=Math.cos(c);1===e!=(0===t)&&(s=1/s),C(t,e,N,u,R),0===t?(R[0]*=s,R[1]*=s,R[2]*=s,R[3]*=s,R[4]*=s,R[5]*=s):(R[0]*=s,R[3]*=s,R[6]*=s,R[1]*=s,R[4]*=s,R[7]*=s),(0,a.ei)(_,_,R),(0,a.S8)(_,_),l.setVec(o,_)}return l}const N=(0,c.vt)(),_=(0,c.vt)(),j=(0,l.vt)(),R=(0,i.vt)();e.d(n,["JP",0,"Projection may be possible after calling projection.load()."])},72258(t,n,e){e.d(n,{UR:()=>M,p5:()=>w,xK:()=>C});var r=e(53966),o=e(34727),i=e(86211),u=e(77690),l=e(29242),a=e(58083),c=e(9093),s=e(35522),f=e(51850),g=e(73941),p=e(98764),y=e(48353),d=e(65806),m=e(27615),h=e(73354),v=e(22141);const A=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function w(t,n,{vertexSpace:e,spatialReference:r}){if("georeferenced"===e.type){const o=t;if(!(0,d.g)(n,o,r))return!1;const{origin:i}=e;return(0,s.Re)(t,o,i),!0}const o=(0,p.lO)(r),i=t;if(!(0,d.g)(n,i,o))return!1;const{origin:u}=e,l=R;if(!(0,y.l)(r,u,l,o))return!1;const c=(0,a.B8)(R,l);return null!=c&&((0,s.Z0)(t,i,c),!0)}function M(t,n,e){const{vertexSpace:r,transform:o,vertexAttributes:i}=t,l=(0,m.Hq)(r)?o:null,f=S(t.spatialReference,e,3);if((0,m.yJ)(r,n)&&(!l||(0,a.t2)(l.localMatrix,c.zK))&&T(f)){const{position:t,normal:n,tangent:r}=i,o=e?.allowBufferReuse;return{position:o?t:t.slice(),normal:o?n:n?.slice(),tangent:o?r:r?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const u=x(n,i);if(!(0,y.l)(n,r,F,u))return(0,v.CN)(A(),n,u),null;if(e&&(0,a.lw)(F,F,e.localMatrix),!(0,y.l)(n,o,N,u))return(0,v.CN)(A(),u,n),null;(0,a.B8)(N,N);const l=(0,a.lw)(F,N,F);return B(l,n,i,3),b(t,l)}(t,t.vertexSpace,n.origin,e):function({spatialReference:t,vertexAttributes:n,transform:e},{origin:r},o,i){const u=x(t,i);if(!(0,y.l)(t,r,F,u))return(0,v.CN)(A(),t,u),null;e&&(0,a.lw)(F,F,e.localMatrix),B(F,t,i,1);const l=new Float64Array(n.position.length),c=function(t,n,e,r,o){(0,h.t)(r,t,n);const i=new Float64Array(t.length);return(0,v.$5)(r,o,i,e)?i:((0,v.CN)(A(),o,e),null)}(n.position,F,t,l,u);if(!c)return null;const f=function(t,n,e,r,o,i){if(null==o)return null;const u=new Float32Array(o.length);return(0,v.qs)(o,u,i),(0,v.si)(u,t,n,e,r,u)?u:((0,v.CN)(A(),r,n),null)}(c,t,l,u,n.normal,F);if(n.normal&&!f)return null;const g=function(t,n,e,r,o,i){if(null==o)return null;const u=new Float32Array(o.length);return(0,v.KM)(o,u,i),(0,v.Mv)(u,t,n,e,r,u)?u:((0,v.CN)(A(),r,n),null)}(c,t,l,u,n.tangent,F);if(n.tangent&&!g)return null;if(o){const t=(0,s.ze)(j,o);(0,h.a)(c,c,t)}return{position:c,normal:f,tangent:g}}(t,t.vertexSpace,n.origin,e);case"georeferenced":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const l=x(n,i);if(!(0,y.l)(n,o,F,l))return(0,v.CN)(A(),n,l),null;const c=1/S(n,i,2);(0,a.hs)(F,F,[c,c,c]);const s=(0,a.B8)(N,F),{position:f,normal:g,tangent:p}=function(t,n,e){if(!n)return t;if(!e){const{position:e,normal:r,tangent:o}=t;return{position:(0,h.a)(new Float64Array(e.length),e,n),tangent:o,normal:r}}const r=b(t,e.localMatrix);return(0,h.a)(r.position,r.position,n),r}(t,r,e),d=new Float64Array(f.length),m=function(t,n,e,r,o){const i=(0,v.gr)(t,n,r,o);if(!i)return(0,v.CN)(A(),n,o),null;const u=new Float64Array(i.length);return(0,h.t)(u,i,e),u}(f,n,s,d,l);if(!m)return null;const w=(0,u.Ge)(_,s),M=function(t,n,e,r,o,i,u){if(null==t)return null;const l=u??new Float32Array(t.length);return(0,v.X4)(t,n,e,r,o,l)?((0,h.b)(l,l,i),l):((0,v.CN)(A(),e,o),null)}(g,f,n,d,l,w,g!==t.normal?g:void 0);if(!M&&g)return null;const B=function(t,n,e,r,o,i,u){if(null==t)return null;const l=u??new Float32Array(t.length);return(0,v.xA)(t,n,e,r,o,l)?((0,h.b)(l,l,i,4),l):((0,v.CN)(A(),e,o),null)}(p,f,n,d,l,w,p!==t.tangent?p:void 0);return!B&&p?null:{position:m,normal:M,tangent:B}}(t,t.vertexSpace,n.origin,e):function({vertexAttributes:t,transform:n,spatialReference:e},{origin:r},o,i){const u=S(e,i,3),l=r||!T(u)?(0,a.C)(F,n?.localMatrix??c.zK):null;l&&B(l,e,i,3);const{position:f,normal:g,tangent:p}=l?b(t,l):t,y=i?.allowBufferReuse,d=y?f:new Float64Array(f.length);let m=f;if(r&&(m=(0,h.a)(d,m,r)),o){const t=(0,s.ze)(j,o);m=(0,h.a)(d,m,t)}return{position:m!==t.position||y?m:m.slice(),normal:g!==t.normal||y?g:g?.slice(),tangent:p!==t.tangent||y?p:p?.slice()}}(t,t.vertexSpace,n.origin,e)}}function x(t,n){return n?.useEllipsoid&&(0,g.B3)(t)?p.Y0:(0,p.lO)(t)}function b(t,n){const e=new Float64Array(t.position.length);(0,h.t)(e,t.position,n);const r=t.normal?new Float32Array(t.normal.length):null,o=t.tangent?new Float32Array(t.tangent.length):null;return r&&t.normal&&(0,v.qs)(t.normal,r,n),o&&t.tangent&&(0,v.KM)(t.tangent,o,n),{position:e,normal:r,tangent:o}}function B(t,n,e,r){const o=S(n,e,r);T(o)||(0,a.hs)(t,t,[o,o,o])}function S(t,n,e){const r=!!(1&e),o=!!(2&e),i=n?.sourceUnit,u=n?.targetUnit;if(!i&&!u)return 1;let l=C(i,t);r||!i||T(l)||(A().warn("source unit conversion not supported"),l=1);let a=1/C(u,t);return o||!u||T(a)||(A().warn("target unit conversion not supported"),a=1),l*a}function T(t){return(0,o.Io)(t,1)}function C(t,n){if(null==t)return 1;const e=(0,i.KX)(n);return 1/(0,i.oU)(e,"meters",t)}const F=(0,c.vt)(),N=(0,c.vt)(),_=(0,l.vt)(),j=(0,f.vt)(),R=(0,c.vt)()}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4123],{66344(t,e,i){i.d(e,{q:()=>o});const s=!!(0,i(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class h{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,h,n){e=t.id+e;const o=this._db.get(e);if(o&&(this._size-=o.size,t.size-=o.size,this._db.delete(e),o.entry!==i&&this._notifyRemove(e,o.entry,o.size,0)),h>this._maxSize)return void this._notifyRemove(e,i,h,0);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!h||h<0)return s||console.warn(`Refusing to cache entry with size ${h} for key ${e}`),void this._notifyRemove(e,i,0,0);const c=1+Math.max(n,-4)- -3;this._db.set(e,new r(i,h,c)),this._size+=h,t.size+=h,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 h=t.lifetime;i[h]=(i[h]||0)+t.size,this._clients.forEach(i=>{const{id:h,name:r}=i;if(s.startsWith(h)){const i=e[r]||0;e[r]=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 h=e[i]||0;e[i]=h,s[i]=Math.round(100*t.hitRate)+"%"}else s[i]="0%"});const h=Object.keys(e);h.sort((t,i)=>e[i]-e[t]),h.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 h=this._clients.get(t.split(n)[0])?.removeFunc,r=h?.(e,s,i);return"number"==typeof r?r: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 h=!0;for(;h;){h=!1;for(const[r,o]of this._db)if(0===o.lifetime&&(!s||r.startsWith(s))){const s=e??this._clients.get(r.split(n)[0]);if(this._purgeItem(r,o,s),i.size<=.9*t)return;h||=this._db.has(r)}}for(const[h,r]of this._db)if(!s||h.startsWith(s)){const s=e??this._clients.get(h.split(n)[0]);if(this._purgeItem(h,r,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 h(0);class r{constructor(t,e,i){this.entry=t,this.size=e,this.lifetime=i,this.lives=i}}const n=":";class o{constructor(t,e){this.removeFunc=e,this.id="",this.name="",this.size=0,this._storage=new h(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(){}}},44123(t,e,i){i.d(e,{WhereClauseCache:()=>r});var s=i(66344),h=i(89696);class r{constructor(t,e){this._cache=new s.q(t),this._invalidCache=new s.q(e)}get(t,e){const i=`${e?.uid}:${t}`,s=this._cache.get(i);if(s)return s;if(null!=this._invalidCache.get(i))return null;try{const s=h.A.create(t,{fieldsIndex:e});return this._cache.put(i,s),s}catch(t){return this._invalidCache.put(i,t),null}}getError(t,e){const i=`${e?.uid}:${t}`;return this._invalidCache.get(i)??null}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3708],{33708(e,t,n){n.r(t),n.d(t,{accelerateGeometry:()=>o,execute:()=>s,executeMany:()=>a,supportsCurves:()=>l});var r=n(76061),u=(n(55537),n(15756));n(88885),n(95213);const c=new u.y;function o(e,t){return c.accelerateGeometry(e,t,1)}function s(e,t,n){return c.execute(e,t,n,null)}function a(e,t,n,u){const o=c.executeMany(new r.S(e),new r.S([t]),n,null,u);return Array.from(o)}function l(){return c.supportsCurves()}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3708],{33708(e,t,n){n.r(t),n.d(t,{accelerateGeometry:()=>o,execute:()=>s,executeMany:()=>a,supportsCurves:()=>l});var r=n(76061),u=(n(55537),n(39117));n(88885),n(95213);const c=new u.V;function o(e,t){return c.accelerateGeometry(e,t,1)}function s(e,t,n){return c.execute(e,t,n,null)}function a(e,t,n,u){const o=c.executeMany(new r.S(e),new r.S([t]),n,null,u);return Array.from(o)}function l(){return c.supportsCurves()}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2585,9526],{68197(e,t,i){i.d(t,{A:()=>u});var r=i(40876),s=i(4576),n=i(34727),o=i(56507);function l(e){return(0,n.qE)((0,o.Vr)(e),0,255)}function a(e,t){const i=e.toString(16).padStart(2,"0");return t?i.slice(0,1):i}class u{static blendColors(e,t,i,r=new u){return r.r=Math.round(e.r+(t.r-e.r)*i),r.g=Math.round(e.g+(t.g-e.g)*i),r.b=Math.round(e.b+(t.b-e.b)*i),r.a=e.a+(t.a-e.a)*i,r._sanitize()}static fromRgb(e,t){const i=(0,r.lT)(e);return i?u.fromArray(i,t):null}static fromHex(e,t=new u){const i=(0,r.oW)(e);return i?u.fromArray(i,t):null}static fromArray(e,t=new u){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const i=(0,r.Eq)(e);return i?u.fromArray(i,t):null}static fromJSON(e){return null!=e?new u([e[0],e[1],e[2],(e[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(e){return e??=[0,0,0,0],e[0]=this.r/255,e[1]=this.g/255,e[2]=this.b/255,e[3]=null!=this.a?this.a:1,e}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){if("string"==typeof e)u.fromString(e,this);else if((0,s.yc)(e))u.fromArray(e,this);else{const t=e;this._set(t.r??0,t.g??0,t.b??0,t.a??1),e instanceof u||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,i=e?.digits??6,r=3===i||4===i,s=4===i||8===i,n=`#${a(this.r,r)}${a(this.g,r)}${a(this.b,r)}${s?a(Math.round(255*this.a),r):""}`;return t?n.toUpperCase():n}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){const t=l(this.r),i=l(this.g),r=l(this.b);return 0===e||1!==this.a?[t,i,r,l(255*this.a)]:[t,i,r]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,r.c1)(this.r),this.g=(0,r.c1)(this.g),this.b=(0,r.c1)(this.b),this.a=(0,r.G1)(this.a),this}_set(e,t,i,r){this.r=e,this.g=t,this.b=i,this.a=r}}u.prototype.declaredClass="esri.Color"},52106(e,t,i){i.d(t,{A:()=>w});var r,s,n=i(5482),o=i(37838),l=i(69540),a=i(51447),u=i(25482),h=i(53966),c=i(36708),d=i(24326),p=i(91429),y=i(12195),f=i(65864),m=i(50498),g=i(55156),b=i(60950),v=i(54339),_=i(94128),M=i(33910);function S(e){if(null==e)return null;const t={};for(const i in e){const r=e[i];r&&(t[i]=r.toJSON())}return 0!==Object.keys(t).length?t:null}let w=class extends((0,l.OU)(u.o)){static{r=_.Z}static{s=this}constructor(e){super(e),this[r]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,d.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(h.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new s({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const i=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[i,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,g.I)(this.origin);if(e)return(0,v.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,v.r)(this,t):null}getGlobalId(){const e=(0,g.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){const e={aggregateGeometries:S(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,y.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const s={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(s.action=r),"attributes"===e&&(s.attributeName=r),this.layer.graphicChanged(s)}_watchMeshGeometryChanges(){this.addHandles([(0,c.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,c.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,n.Cg)([(0,p.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const i in e){const r=(0,f.rS)(e[i]);r&&(t[i]=r)}return 0!==Object.keys(t).length?t:null}}})],w.prototype,"aggregateGeometries",null),(0,n.Cg)([(0,p.MZ)({value:null})],w.prototype,"attributes",null),(0,n.Cg)([(0,p.MZ)({value:null,types:m.yR,json:{read:f.rS}})],w.prototype,"geometry",null),(0,n.Cg)([(0,p.MZ)()],w.prototype,"distance",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean})],w.prototype,"isAggregate",void 0),(0,n.Cg)([(0,p.MZ)({clonable:!1})],w.prototype,"layer",void 0),(0,n.Cg)([(0,p.MZ)({clonable:"reference"})],w.prototype,"origin",void 0),(0,n.Cg)([(0,p.MZ)({type:o.A,value:null})],w.prototype,"popupTemplate",null),(0,n.Cg)([(0,p.MZ)({clonable:"reference"})],w.prototype,"sourceLayer",void 0),(0,n.Cg)([(0,p.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],w.prototype,"statisticsAggregatedIds",void 0),(0,n.Cg)([(0,p.MZ)({value:null,types:M.Es})],w.prototype,"symbol",null),(0,n.Cg)([(0,p.MZ)({clonable:!1,json:{read:!1,write:!1}})],w.prototype,"_version",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean,value:!0})],w.prototype,"visible",null),w=s=(0,n.Cg)([(0,p.$K)("esri.Graphic")],w)},40876(e,t,i){i.d(t,{Eq:()=>p,G1:()=>f,TS:()=>n,V6:()=>s,Vm:()=>y,ay:()=>a,c1:()=>m,c4:()=>o,j5:()=>u,lT:()=>c,oW:()=>h,xV:()=>v});const r={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!!r[e]||!!r[e.toLowerCase()]}function n(e){return r[e]??r[e.toLowerCase()]}function o(e){return[...n(e)]}function l(e,t,i){i<0&&++i,i>1&&--i;const r=6*i;return r<1?e+(t-e)*r:2*i<1?t:3*i<2?e+(t-e)*(2/3-i)*6:e}function a(e,t,i,r=1){const s=(e%360+360)%360/360,n=i<=.5?i*(t+1):i+t-i*t,o=2*i-n;return[Math.round(255*l(o,n,s+1/3)),Math.round(255*l(o,n,s)),Math.round(255*l(o,n,s-1/3)),r]}function u(e){const t=e.length>5,i=t?8:4,r=(1<<i)-1,s=t?1:17,n=t?9===e.length:5===e.length;let o=Number("0x"+e.slice(1));if(isNaN(o))return null;const l=[0,0,0,1];let a;return n&&(a=o&r,o>>=i,l[3]=s*a/255),a=o&r,o>>=i,l[2]=s*a,a=o&r,o>>=i,l[1]=s*a,a=o&r,o>>=i,l[0]=s*a,l}function h(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),i=parseInt(e.slice(2,3),16),r=parseInt(e.slice(3,4),16),s=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,i+16*i,r+16*r,(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*/),i=t[1];if("rgb"===i&&3===e.length||"rgba"===i&&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])),d(t)}return d(e.map(e=>parseFloat(e)))}if("hsl"===i&&3===e.length||"hsla"===i&&4===e.length)return a(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function d(e){return e[0]=m(e[0]),e[1]=m(e[1]),e[2]=m(e[2]),e[3]=4===e.length?f(e[3]):1,e}function p(e){let t=s(e)?n(e):null;return t??=c(e),t??=h(e),t}function y(e){const t=p(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function f(e){return g(e,0,1)}function m(e){return Math.round(g(e,0,255))}function g(e,t,i){return e=Number(e),isNaN(e)?i:e<t?t:e>i?i:e}const b=1/2.2;function v(e){return e**b}i.d(t,["iw",0,b])},38961(e,t,i){var r=i(5482),s=i(7762),n=i(36708),o=i(10107),l=i(64108),a=i(80559);let u=class extends s.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,a.fm)(()=>this._refresh(),n.OH))}destroy(){this.getCollections=null}_refresh(){const e=this.getCollections?.();if(null==e)return void this.removeAll();let t=0;for(const i of e)null!=i&&(t=this._processCollection(t,i));this.splice(t)}_createNewInstance(e){return new s.A(e)}_processCollection(e,t){if(!t)return e;const i=this.itemFilterFunction??(e=>!!e);for(const r of t)if(r){if(i(r)){const t=this.indexOf(r,e);t>=0?t!==e&&this.reorder(r,e):this.add(r,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(r);if(Array.isArray(t))for(const i of t)e=this._processCollection(e,i);else e=this._processCollection(e,t)}}return e}};(0,r.Cg)([(0,o.MZ)()],u.prototype,"getCollections",void 0),(0,r.Cg)([(0,o.MZ)()],u.prototype,"getChildrenFunction",void 0),(0,r.Cg)([(0,o.MZ)()],u.prototype,"itemFilterFunction",void 0),u=(0,r.Cg)([(0,l.$)("esri.core.CollectionFlattener")],u);const h=u;i.d(t,["A",0,h])},66344(e,t,i){i.d(t,{q:()=>l});const r=!!(0,i(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class s{get size(){return this._size}constructor(e=10485760,t=.3){this._maxSize=e,this._maxClientSizeRatio=t,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(e){this._clients.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._clients.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(e,t){const i=this._db.get(e.id+t);return i?.size??0}put(e,t,i,s,o){t=e.id+t;const l=this._db.get(t);if(l&&(this._size-=l.size,e.size-=l.size,this._db.delete(t),l.entry!==i&&this._notifyRemove(t,l.entry,l.size,0)),s>this._maxSize)return void this._notifyRemove(t,i,s,0);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!s||s<0)return r||console.warn(`Refusing to cache entry with size ${s} for key ${t}`),void this._notifyRemove(t,i,0,0);const a=1+Math.max(o,-4)- -3;this._db.set(t,new n(i,s,a)),this._size+=s,e.size+=s,this._checkSize()}updateSize(e,t){t=e.id+t;const i=this._db.get(t);if(!i)return;this._size-=i.size,e.size-=i.size;let r=i.entry.usedMemory;for(;r>this._maxSize;){const e=this._notifyRemove(t,i.entry,r,1);if(!(null!=e&&e>0))return void this._db.delete(t);r=e}i.size=r,this._size+=r,e.size+=r,this._checkSize()}pop(e,t){t=e.id+t;const i=this._db.get(t);if(i)return this._size-=i.size,e.size-=i.size,this._db.delete(t),++this._hit,i.entry;++this._miss}get(e,t){t=e.id+t;const i=this._db.get(t);if(void 0!==i)return this._db.delete(t),i.lives=i.lifetime,this._db.set(t,i),++this._hit,i.entry;++this._miss}peek(e,t){const i=this._db.get(e.id+t);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},i=new Array;this._db.forEach((e,r)=>{const s=e.lifetime;i[s]=(i[s]||0)+e.size,this._clients.forEach(i=>{const{id:s,name:n}=i;if(r.startsWith(s)){const i=t[n]||0;t[n]=i+e.size}})});const r={};this._clients.forEach(e=>{const i=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const s=t[i]||0;t[i]=s,r[i]=Math.round(100*e.hitRate)+"%"}else r[i]="0%"});const s=Object.keys(t);s.sort((e,i)=>t[i]-t[e]),s.forEach(i=>e[i]=Math.round(t[i]/2**20)+"MB / "+r[i]);for(let t=i.length-1;t>=0;--t){const r=i[t];r&&(e["Priority "+(t+-3-1)]=Math.round(r/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._clients.forEach(e=>e.resetHitRate())}clear(e){const t=e.id;this._db.forEach((e,i)=>{i.startsWith(t)&&(this._size-=e.size,this._db.delete(i),this._notifyRemove(i,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._clients.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(const[t,i]of this._db)t.startsWith(e.id)&&(yield i.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,i,r){const s=this._clients.get(e.split(o)[0])?.removeFunc,n=s?.(t,r,i);return"number"==typeof n?n:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._clients.forEach(e=>this._checkSizeLimits(this._maxClientSize,e)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){const i=t??this;if(i.size<=e)return;const r=t?.id;let s=!0;for(;s;){s=!1;for(const[n,l]of this._db)if(0===l.lifetime&&(!r||n.startsWith(r))){const r=t??this._clients.get(n.split(o)[0]);if(this._purgeItem(n,l,r),i.size<=.9*e)return;s||=this._db.has(n)}}for(const[s,n]of this._db)if(!r||s.startsWith(r)){const r=t??this._clients.get(s.split(o)[0]);if(this._purgeItem(s,n,r),i.size<=.9*e)return}}_purgeItem(e,t,i){if(this._db.delete(e),t.lives<=1){this._size-=t.size,i&&(i.size-=t.size);const r=this._notifyRemove(e,t.entry,t.size,1);null!=r&&r>0&&(this._size+=r,i&&(i.size+=r),t.lives=t.lifetime,t.size=r,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new s(0);class n{constructor(e,t,i){this.entry=e,this.size=t,this.lifetime=i,this.lives=i}}const o=":";class l{constructor(e,t){this.removeFunc=t,this.id="",this.name="",this.size=0,this._storage=new s(e,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,i=1){this._storage.put(this,e,t,i,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},6797(e,t,i){i.d(t,{Ui:()=>d});var r=i(69622),s=i(7762),n=i(88620);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof r.A}function a(e){return e instanceof s.A?Object.keys(e.items):l(e)?(0,n.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof s.A?e.items[t]:e[t]}function h(e){return e?e.declaredClass:null}function c(e,t){const i=e.diff;if(i&&"function"==typeof i)return i(e,t);const r=a(e),s=a(t);if(0===r.length&&0===s.length)return;if(!r.length||!s.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const n=s.filter(e=>!r.includes(e)),d=r.filter(e=>!s.includes(e)),p=r.filter(i=>s.includes(i)&&u(e,i)!==u(t,i)).concat(n,d).sort(),y=h(e);if(y&&o.has(y)&&p.length)return{type:"complete",oldValue:e,newValue:t};let f;const m=l(e)&&l(t);for(const r of p){const s=u(e,r),n=u(t,r);let o;if((m||"function"!=typeof s&&"function"!=typeof n)&&s!==n&&(null!=s||null!=n)){if(i&&i[r]&&"function"==typeof i[r])o=i[r]?.(s,n);else if(s instanceof Date&&n instanceof Date){if(s.getTime()===n.getTime())continue;o={type:"complete",oldValue:s,newValue:n}}else o="object"==typeof s&&"object"==typeof n&&h(s)===h(n)?c(s,n):{type:"complete",oldValue:s,newValue:n};null!=o&&(null!=f?f.diff[r]=o:f={type:"partial",diff:{[r]:o}})}}return f}function d(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&h(e)!==h(t)?{type:"complete",oldValue:e,newValue:t}:c(e,t)}},9093(e,t,i){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}i.d(t,{o8:()=>s,vt:()=>r});const n=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:n,clone:s,create:r,fromValues:function(e,t,i,r,s,n,o,l,a,u,h,c,d,p,y,f){return[e,t,i,r,s,n,o,l,a,u,h,c,d,p,y,f]}},Symbol.toStringTag,{value:"Module"})),i.d(t,["zK",0,n])},35522(e,t,i){i.d(t,{$A:()=>I,Bw:()=>n,C:()=>o,Cc:()=>F,DI:()=>S,Io:()=>b,Ln:()=>g,Om:()=>C,Qr:()=>c,Re:()=>u,S8:()=>w,T9:()=>f,WQ:()=>a,Z0:()=>A,_S:()=>p,aI:()=>R,ei:()=>z,fw:()=>T,gL:()=>x,hG:()=>v,hZ:()=>l,hs:()=>m,jk:()=>y,lw:()=>h,m3:()=>_,oW:()=>N,t2:()=>E,tn:()=>d,ze:()=>M});var r=i(51850),s=i(34304);function n(e){const t=e[0],i=e[1],r=e[2];return Math.sqrt(t*t+i*i+r*r)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function l(e,t,i,r){return e[0]=t,e[1]=i,e[2]=r,e}function a(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e}function u(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e}function h(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e[2]=t[2]*i[2],e}function c(e,t,i){return e[0]=t[0]/i[0],e[1]=t[1]/i[1],e[2]=t[2]/i[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function p(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function y(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e[2]=Math.min(t[2],i[2]),e}function f(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e[2]=Math.max(t[2],i[2]),e}function m(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e}function g(e,t,i,r){return e[0]=t[0]+i[0]*r,e[1]=t[1]+i[1]*r,e[2]=t[2]+i[2]*r,e}function b(e,t){const i=t[0]-e[0],r=t[1]-e[1],s=t[2]-e[2];return Math.sqrt(i*i+r*r+s*s)}function v(e,t){const i=t[0]-e[0],r=t[1]-e[1],s=t[2]-e[2];return i*i+r*r+s*s}function _(e){const t=e[0],i=e[1],r=e[2];return t*t+i*i+r*r}function M(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function S(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function w(e,t){const i=t[0],r=t[1],s=t[2];let n=i*i+r*r+s*s;return n>0&&(n=1/Math.sqrt(n),e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n),e}function C(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function I(e,t,i){const r=t[0],s=t[1],n=t[2],o=i[0],l=i[1],a=i[2];return e[0]=s*a-n*l,e[1]=n*o-r*a,e[2]=r*l-s*o,e}function F(e,t,i,r){const s=t[0],n=t[1],o=t[2];return e[0]=s+r*(i[0]-s),e[1]=n+r*(i[1]-n),e[2]=o+r*(i[2]-o),e}function A(e,t,i){const r=t[0],s=t[1],n=t[2];return e[0]=i[0]*r+i[4]*s+i[8]*n+i[12],e[1]=i[1]*r+i[5]*s+i[9]*n+i[13],e[2]=i[2]*r+i[6]*s+i[10]*n+i[14],e}function z(e,t,i){const r=t[0],s=t[1],n=t[2];return e[0]=r*i[0]+s*i[3]+n*i[6],e[1]=r*i[1]+s*i[4]+n*i[7],e[2]=r*i[2]+s*i[5]+n*i[8],e}function x(e,t,i){return T(e,t,i[0],i[1],i[2],i[3])}function T(e,t,i,r,s,n){const o=t[0],l=t[1],a=t[2],u=r*a-s*l,h=s*o-i*a,c=i*l-r*o,d=r*c-s*h,p=s*u-i*c,y=i*h-r*u,f=2*n;return e[0]=o+u*f+2*d,e[1]=l+h*f+2*p,e[2]=a+c*f+2*y,e}const P=(0,r.vt)(),L=(0,r.vt)();function E(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function R(e,t){if(e===t)return!0;const i=e[0],r=e[1],n=e[2],o=t[0],l=t[1],a=t[2],u=(0,s.FD)();return Math.abs(i-o)<=u*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(r-l)<=u*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(n-a)<=u*Math.max(1,Math.abs(n),Math.abs(a))}function N(e,t,i){const r=i[0]-t[0],s=i[1]-t[1],n=i[2]-t[2];let o=r*r+s*s+n*n;return o>0?(o=1/Math.sqrt(o),e[0]=r*o,e[1]=s*o,e[2]=n*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const O=u,Z=h,G=c,k=b,q=v,j=n,J=_;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:a,angle:function(e,t){w(P,e),w(L,t);const i=C(P,L);return i>1?0:i<-1?Math.PI:Math.acos(i)},bezier:function(e,t,i,r,s,n){const o=1-n,l=o*o,a=n*n,u=l*o,h=3*n*l,c=3*a*o,d=a*n;return e[0]=t[0]*u+i[0]*h+r[0]*c+s[0]*d,e[1]=t[1]*u+i[1]*h+r[1]*c+s[1]*d,e[2]=t[2]*u+i[2]*h+r[2]*c+s[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,i=1){return e[0]=Math.min(Math.max(e[0],t),i),e[1]=Math.min(Math.max(e[1],t),i),e[2]=Math.min(Math.max(e[2],t),i),e},copy:o,cross:I,crossAndNormalize:function(e,t,i){const r=t[0],s=t[1],n=t[2],o=i[0],l=i[1],a=i[2],u=s*a-n*l,h=n*o-r*a,c=r*l-s*o,d=Math.sqrt(u*u+h*h+c*c);return e[0]=u/d,e[1]=h/d,e[2]=c/d,e},direction:N,dist:k,distance:b,div:G,divide:c,dot:C,equals:R,exactEquals:E,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,i,r,s,n){const o=n*n,l=o*(2*n-3)+1,a=o*(n-2)+n,u=o*(n-1),h=o*(3-2*n);return e[0]=t[0]*l+i[0]*a+r[0]*u+s[0]*h,e[1]=t[1]*l+i[1]*a+r[1]*u+s[1]*h,e[2]=t[2]*l+i[2]*a+r[2]*u+s[2]*h,e},inverse:S,len:j,length:n,lerp:F,max:f,min:y,mul:Z,multiply:h,negate:M,normalize:w,random:function(e,t=1){const i=s.Ov,r=2*i()*Math.PI,n=2*i()-1,o=Math.sqrt(1-n*n)*t;return e[0]=Math.cos(r)*o,e[1]=Math.sin(r)*o,e[2]=n*t,e},rotateX:function(e,t,i,r){const s=[],n=[];return s[0]=t[0]-i[0],s[1]=t[1]-i[1],s[2]=t[2]-i[2],n[0]=s[0],n[1]=s[1]*Math.cos(r)-s[2]*Math.sin(r),n[2]=s[1]*Math.sin(r)+s[2]*Math.cos(r),e[0]=n[0]+i[0],e[1]=n[1]+i[1],e[2]=n[2]+i[2],e},rotateY:function(e,t,i,r){const s=[],n=[];return s[0]=t[0]-i[0],s[1]=t[1]-i[1],s[2]=t[2]-i[2],n[0]=s[2]*Math.sin(r)+s[0]*Math.cos(r),n[1]=s[1],n[2]=s[2]*Math.cos(r)-s[0]*Math.sin(r),e[0]=n[0]+i[0],e[1]=n[1]+i[1],e[2]=n[2]+i[2],e},rotateZ:function(e,t,i,r){const s=[],n=[];return s[0]=t[0]-i[0],s[1]=t[1]-i[1],s[2]=t[2]-i[2],n[0]=s[0]*Math.cos(r)-s[1]*Math.sin(r),n[1]=s[0]*Math.sin(r)+s[1]*Math.cos(r),n[2]=s[2],e[0]=n[0]+i[0],e[1]=n[1]+i[1],e[2]=n[2]+i[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:m,scaleAndAdd:g,set:l,sign:p,sqrDist:q,sqrLen:J,squaredDistance:v,squaredLength:_,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:O,subtract:u,transformMat3:z,transformMat4:A,transformMat4Z:function(e,t){return t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]},transformQuat:x,transformQuatValues:T},Symbol.toStringTag,{value:"Module"})),i.d(t,["Il",0,j,"jb",0,O,"lo",0,q,"uE",0,J,"xg",0,k])},90629(e,t,i){i.d(t,{Lz:()=>s,PN:()=>n,cr:()=>o,gs:()=>a,r_:()=>u,tc:()=>l}),i(39829);const r=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function s(e){return e?e/72*96:0}function n(e){return e?72*e/96:0}function o(e){if("string"==typeof e){const t=e.match(r);if(t){const i=Number(t[1]),r=t[3]&&t[3].toLowerCase(),s=e.startsWith("-"),o="px"===r?n(i):i;return s?-o:o}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function l(e=0,t=0){return{x:e,y:t}}function a(e=0,t=0){return[e,t]}function u(e=0,t=0,i=0){return[e,t,i]}},4197(e,t,i){i.d(t,{Vj:()=>h,cj:()=>u,jh:()=>n,l5:()=>l,yH:()=>a});var r=i(34275),s=i(9093);function n(e){return e<=1024?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,r.iu)(e)?e.byteLength/8:e.length)<=1024?Array.from(e):new Float64Array(e)}function l(e,t,i){return Array.isArray(e)?e.slice(t,t+i):e.subarray(t,t+i)}function a(e,t){if(0===t.length)return o(e);if(0===e.length)return o(t);const i=n(e.length+t.length);for(let t=0;t<e.length;++t)i[t]=e[t];for(let r=0;r<t.length;++r)i[e.length+r]=t[r];return i}function u(e){return[...e]}function h(e){const t=(0,s.vt)();for(let i=0;i<16;++i)t[i]=e[i];return t}},70328(e,t,i){i.d(t,{BI:()=>A,C:()=>o,DC:()=>d,Ej:()=>v,Ie:()=>I,Jt:()=>F,Lu:()=>M,Ne:()=>S,RF:()=>c,TF:()=>g,VL:()=>y,aI:()=>x,fA:()=>l,gE:()=>u,gX:()=>b,hZ:()=>C,iT:()=>p,is:()=>z,pg:()=>_,uJ:()=>m,vI:()=>w,vY:()=>a,vt:()=>n,w1:()=>h,yr:()=>f}),i(35522);var r=i(5443),s=(i(19419),i(4197));function n(e=P){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t){for(let i=0;i<6;i++)e[i]=t[i];return e}function l(e,t,i,r,s,o,l=n()){return l[0]=e,l[1]=t,l[2]=i,l[3]=r,l[4]=s,l[5]=o,l}function a(e,t=n()){return function(e,t,i,r=n()){return C(r,T),function(e,t,i=0,r=t.length/3){let s=e[0],n=e[1],o=e[2],l=e[3],a=e[4],u=e[5];for(let e=0;e<r;e++)s=Math.min(s,t[i+3*e]),n=Math.min(n,t[i+3*e+1]),o=Math.min(o,t[i+3*e+2]),l=Math.max(l,t[i+3*e]),a=Math.max(a,t[i+3*e+1]),u=Math.max(u,t[i+3*e+2]);e[0]=s,e[1]=n,e[2]=o,e[3]=l,e[4]=a,e[5]=u}(r,e,t,i),r}(e,0,e.length/3,t)}function u(e,t=(0,s.jh)(24)){const[i,r,n,o,l,a]=e;return t[0]=i,t[1]=r,t[2]=n,t[3]=i,t[4]=r,t[5]=a,t[6]=i,t[7]=l,t[8]=n,t[9]=i,t[10]=l,t[11]=a,t[12]=o,t[13]=r,t[14]=n,t[15]=o,t[16]=r,t[17]=a,t[18]=o,t[19]=l,t[20]=n,t[21]=o,t[22]=l,t[23]=a,t}function h(e,t){const i=isFinite(e[2])||isFinite(e[5]);return new r.A(i?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t,i=e){i[0]=Math.min(e[0],t[0]),i[1]=Math.min(e[1],t[1]),i[2]=Math.min(e[2],t[2]),i[3]=Math.max(e[3],t[3]),i[4]=Math.max(e[4],t[4]),i[5]=Math.max(e[5],t[5])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function p(e,[t,i,r]){!function(e,t,i,r){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],i),e[2]=Math.min(e[2],r),e[3]=Math.max(e[3],t),e[4]=Math.max(e[4],i),e[5]=Math.max(e[5],r)}(e,t,i,r)}function y(e){return e[0]>=e[3]?0:e[3]-e[0]}function f(e){return e[1]>=e[4]?0:e[4]-e[1]}function m(e){return e[2]>=e[5]?0:e[5]-e[2]}function g(e){const t=y(e),i=m(e),r=f(e);return t*t+i*i+r*r}function b(e,t=[0,0,0]){return t[0]=e[0]+y(e)/2,t[1]=e[1]+f(e)/2,t[2]=e[2]+m(e)/2,t}function v(e,t=[0,0,0]){return t[0]=y(e),t[1]=f(e),t[2]=m(e),t}function _(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function M(e,t){return t[0]=e[3],t[1]=e[4],t[2]=e[5],t}function S(e,t,i=e){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i!==e&&(i[3]=e[3],i[4]=e[4],i[5]=e[5]),i}function w(e,t,i=e){return i[3]=t[0],i[4]=t[1],i[5]=t[2],i!==e&&(i[0]=e[0],i[1]=e[1],i[2]=e[2]),e}function C(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function I(e){return e?C(e,T):n(T)}function F(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function A(e,t,i,r,s){return e[0]=t,e[1]=i,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=s,e[5]=Number.POSITIVE_INFINITY,e}function z(e){return 6===e.length}function x(e,t,i){if(null==e||null==t)return e===t;if(!z(e)||!z(t))return!1;if(i){for(let r=0;r<e.length;r++)if(!i(e[r],t[r]))return!1}else for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}const T=[1/0,1/0,1/0,-1/0,-1/0,-1/0],P=[0,0,0,0,0,0];n(),i.d(t,["qv",0,T,"v_",0,P])},60408(e,t,i){function r(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 n(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function l(e){return void 0!==e.rings||void 0!==e.curveRings}function a(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?n(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":l(e)?"esriGeometryPolygon":r(e)?"esriGeometryEnvelope":s(e)?"esriGeometryMultipoint":null:null}function h(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)}i.d(t,{$B:()=>u,Bi:()=>l,Pv:()=>h,Rg:()=>o,U9:()=>s,W0:()=>c,ZC:()=>r,fT:()=>n,uW:()=>a})},65864(e,t,i){i.d(t,{rS:()=>h,xD:()=>d});var r=i(5443),s=i(91075),n=i(48526),o=i(86738),l=i(39829),a=i(82799),u=i(60408);function h(e){return null==e?null:e instanceof s.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?a.A.fromJSON(e):(0,u.Bi)(e)?l.A.fromJSON(e):(0,u.U9)(e)?n.A.fromJSON(e):(0,u.ZC)(e)?r.A.fromJSON(e):null}const c={esriGeometryPoint:o.A,esriGeometryPolyline:a.A,esriGeometryPolygon:l.A,esriGeometryEnvelope:r.A,esriGeometryMultipoint:n.A,esriGeometryMultiPatch:l.A};function d(e){return e&&c[e]||null}},50498(e,t,i){var r=i(66552),s=i(5443),n=i(91075),o=i(48526),l=i(86738),a=i(39829),u=i(82799);const h=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),c=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:n.A,key:"type",typeMap:{extent:s.A,multipoint:o.A,point:l.A,polyline:u.A,polygon:a.A}},p=new r.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0});i.d(t,["Ye",0,c,"gy",0,h,"iI",0,p,"yR",0,d])},99959(e,t,i){i.d(t,{A:()=>n});var r=i(5482),s=i(91429);let n=class{};n=(0,r.Cg)([(0,s.$K)("esri.graphic.GraphicOrigin")],n)},55156(e,t,i){i.d(t,{I:()=>s});const r=Symbol("idFieldsProviderSymbol");function s(e){return(t=e)&&r in t?e[r]:void 0;var t}i.d(t,["e",0,r])},89808(e,t,i){const r=Symbol("getSliceableSymbol");i.d(t,["Q",0,r])},162(e,t,i){i.r(t),i.d(t,{default:()=>$});var r=i(5482),s=i(7762),n=i(38961),o=i(25728),l=i(17676),a=i(36708),u=i(84952),h=i(91429),c=i(5443),d=i(16930),p=i(4146),y=i(63074),f=i(34287),m=i(8303),g=i(54310),b=i(25036),v=i(10873),_=i(65529),M=i(25482),S=i(92474),w=i(799),C=i(56507),I=i(89808),F=i(99959);const A=Symbol("isKMLGraphicOrigin");var z;class x extends F.A{get[(z=A,I.Q)](){return this.layer}constructor(e,t){super(),this[z]=!0,this.type="kml",this.layer=e,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}var T=i(92602),P=i(70333),L=(i(37838),i(11254)),E=i(4718),R=i(70328),N=i(537);i(65494),i(22671);const O={esriGeometryPoint:"points",esriGeometryPolyline:"polylines",esriGeometryPolygon:"polygons"};function Z(e){const t=e.folders||[],i=t.slice(),r=new Map,s=new Map,n=new Map,o=new Map,l=new Map,a={esriGeometryPoint:s,esriGeometryPolyline:n,esriGeometryPolygon:o};(e.featureCollection?.layers||[]).forEach(e=>{const t=(0,E.o8)(e);t.featureSet.features=[];const i=e.featureSet.geometryType;r.set(i,t);const l=e.layerDefinition.objectIdField;"esriGeometryPoint"===i?q(s,l,e.featureSet.features):"esriGeometryPolyline"===i?q(n,l,e.featureSet.features):"esriGeometryPolygon"===i&&q(o,l,e.featureSet.features)}),e.groundOverlays&&e.groundOverlays.forEach(e=>{l.set(e.id,e)}),t.forEach(t=>{t.networkLinkIds.forEach(r=>{const s=function(e,t,i){const r=function(e,t){let i;return t.some(t=>t.id===e&&(i=t,!0)),i}(e,i);return r&&(r.parentFolderId=t,r.networkLink=r),r}(r,t.id,e.networkLinks);s&&i.push(s)})}),i.forEach(e=>{if(e.featureInfos){e.points=(0,E.o8)(r.get("esriGeometryPoint")),e.polylines=(0,E.o8)(r.get("esriGeometryPolyline")),e.polygons=(0,E.o8)(r.get("esriGeometryPolygon")),e.mapImages=[];for(const t of e.featureInfos)switch(t.type){case"esriGeometryPoint":case"esriGeometryPolyline":case"esriGeometryPolygon":{const i=a[t.type].get(t.id);i&&e[O[t.type]]?.featureSet.features.push(i);break}case"GroundOverlay":{const i=l.get(t.id);i&&e.mapImages.push(i);break}}e.fullExtent=j([e])}});const u=j(i);return{folders:t,sublayers:i,extent:u}}function G(e,t,i,r){const s=P.id?.findCredential(e);e=(0,u.a6)(e,{token:s?.token});const n=T.A.kmlServiceUrl;return(0,L.A)(n,{query:{url:e,model:"simple",folders:"",refresh:0!==i||void 0,outSR:JSON.stringify(t)},responseType:"json",signal:r})}function k(e,t,i=null,r=[]){const s=[],n={},o=t.sublayers,l=new Set(t.folders.map(e=>e.id));return o.forEach(t=>{const o=new e;if(i?o.read(t,i):o.read(t),r.length&&l.has(o.id)&&(o.visible=r.includes(o.id)),n[t.id]=o,null!=t.parentFolderId&&-1!==t.parentFolderId){const e=n[t.parentFolderId];e.sublayers||(e.sublayers=[]),e.sublayers?.unshift(o)}else s.unshift(o)}),s}function q(e,t,i){i.forEach(i=>{e.set(i.attributes[t],i)})}function j(e){const t=(0,R.vt)(R.qv),i=(0,R.vt)(R.qv);for(const r of e){if(r.polygons?.featureSet?.features)for(const e of r.polygons.featureSet.features)(0,N.LJ)(t,e.geometry),(0,R.RF)(i,t);if(r.polylines?.featureSet?.features)for(const e of r.polylines.featureSet.features)(0,N.LJ)(t,e.geometry),(0,R.RF)(i,t);if(r.points?.featureSet?.features)for(const e of r.points.featureSet.features)(0,N.LJ)(t,e.geometry),(0,R.RF)(i,t);if(r.mapImages)for(const e of r.mapImages)(0,N.LJ)(t,e.extent),(0,R.RF)(i,t)}return(0,R.aI)(i,R.qv)?void 0:{xmin:i[0],ymin:i[1],zmin:i[2],xmax:i[3],ymax:i[4],zmax:i[5],spatialReference:d.A.WGS84}}var J,U=i(36005);let V=J=class extends((0,_.Zt)((0,M.T)(S.x_))){constructor(...e){super(...e),this.description=null,this.fullExtent=null,this.id=null,this.networkLink=null,this.parent=null,this.sublayers=null,this.title=null,this.sourceJSON=null,this.layer=null,this.addHandles([(0,a.on)(()=>this.sublayers,"after-add",({item:e})=>{e.parent=this,e.layer=this.layer},a.OH),(0,a.on)(()=>this.sublayers,"after-remove",({item:e})=>{e.layer=e.parent=null},a.OH),(0,a.wB)(()=>this.sublayers,(e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=this,t.layer=this.layer},a.OH),(0,a.wB)(()=>this.layer,e=>{if(this.sublayers)for(const t of this.sublayers)t.layer=e},a.OH)])}initialize(){(0,a.C_)(()=>this.networkLink).then(()=>(0,a.C_)(()=>!0===this.visible)).then(()=>this.load())}async load(e){if(!this.networkLink)return this;if(this.networkLink.viewFormat)return this;const t=null!=e?e.signal:null,i=this._fetchService(this._get("networkLink")?.href??"",t).then(e=>{const t=j(e.sublayers);this.fullExtent=c.A.fromJSON(t),this.sourceJSON=e;const i=(0,C.dp)(s.A.ofType(J),k(J,e));this.sublayers?this.sublayers.addMany(i):this.sublayers=i,this.layer?.emit("sublayer-update"),this.layer&&this.layer.notifyChange("visibleSublayers")});return this.addResolvingPromise(i),this}get visible(){return this._get("visible")}set visible(e){this._get("visible")!==e&&(this._set("visible",e),this.layer&&this.layer.notifyChange("visibleSublayers"))}readVisible(e,t){return!!t.visibility}get origin(){return this.layer?new x(this.layer,this):null}_fetchService(e,t){return G(e,this.layer.outSpatialReference,this.layer.refreshInterval,t).then(e=>Z(e.data))}};(0,r.Cg)([(0,h.MZ)()],V.prototype,"description",void 0),(0,r.Cg)([(0,h.MZ)({type:c.A})],V.prototype,"fullExtent",void 0),(0,r.Cg)([(0,h.MZ)()],V.prototype,"id",void 0),(0,r.Cg)([(0,h.MZ)({readOnly:!0,value:null})],V.prototype,"networkLink",void 0),(0,r.Cg)([(0,h.MZ)({json:{write:{allowNull:!0}}})],V.prototype,"parent",void 0),(0,r.Cg)([(0,h.MZ)({type:s.A.ofType(J),json:{write:{allowNull:!0}}})],V.prototype,"sublayers",void 0),(0,r.Cg)([(0,h.MZ)({value:null,json:{read:{source:"name",reader:e=>(0,w._e)(e)}}})],V.prototype,"title",void 0),(0,r.Cg)([(0,h.MZ)({value:!0})],V.prototype,"visible",null),(0,r.Cg)([(0,U.w)("visible",["visibility"])],V.prototype,"readVisible",null),(0,r.Cg)([(0,h.MZ)()],V.prototype,"sourceJSON",void 0),(0,r.Cg)([(0,h.MZ)()],V.prototype,"layer",void 0),(0,r.Cg)([(0,h.MZ)()],V.prototype,"origin",null),V=J=(0,r.Cg)([(0,h.$K)("esri.layers.support.KMLSublayer")],V);var B=i(43937);const D=["kml","xml"];let H=class extends((0,y.dM)((0,g.J)((0,b.j)((0,f.q)((0,m.A)((0,o.M)(p.A))))))){constructor(...e){super(...e),this._visibleFolders=[],this.allSublayers=new n.A({getCollections:()=>[this.sublayers],getChildrenFunction:e=>e.sublayers}),this.outSpatialReference=d.A.WGS84,this.path=null,this.legendEnabled=!1,this.operationalLayerType="KML",this.sublayers=null,this.type="kml",this.url=null}initialize(){this.addHandles([(0,a.wB)(()=>this.sublayers,(e,t)=>{t&&t.forEach(e=>{e.parent=null,e.layer=null}),e&&e.forEach(e=>{e.parent=this,e.layer=this})},a.OH),this.on("sublayer-update",()=>this.notifyChange("fullExtent"))])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}get sublayerById(){const e=new Map;for(const t of this.allSublayers)e.set(t.id,t);return e}readSublayersFromItemOrWebMap(e,t){this._visibleFolders=t.visibleFolders}readSublayers(e,t,i){return k(V,t,i,this._visibleFolders)}writeSublayers(e,t){const i=[],r=e.toArray();for(;r.length;){const e=r[0];e.networkLink||(e.visible&&i.push(e.id),e.sublayers&&r.push(...e.sublayers.toArray())),r.shift()}t.visibleFolders=i}get title(){const e=this._get("title");return e&&"defaults"!==this.originOf("title")?e:this.url?(0,u.e7)(this.url,D)||"KML":e}set title(e){this._set("title",e)}get visibleSublayers(){const e=this.sublayers,t=[],i=e=>{e.visible&&(t.push(e),e.sublayers&&e.sublayers.forEach(i))};return e?.forEach(i),t}get fullExtent(){return this._recomputeFullExtent()}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["KML"],supportsData:!1},e).catch(l.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}destroy(){super.destroy(),this.allSublayers.destroy()}async _fetchService(e){const t=Z((await Promise.resolve().then(()=>this.resourceInfo?{ssl:!1,data:this.resourceInfo}:G(this.url??"",this.outSpatialReference,this.refreshInterval,e))).data);t&&this.read(t,{origin:"service"})}_recomputeFullExtent(){let e=null;null!=this.extent&&(e=this.extent.clone());const t=i=>{if(i.sublayers)for(const r of i.sublayers.items)t(r),r.visible&&r.fullExtent&&(null!=e?e.union(r.fullExtent):e=r.fullExtent.clone())};return t(this),e}};(0,r.Cg)([(0,h.MZ)({readOnly:!0})],H.prototype,"allSublayers",void 0),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],H.prototype,"sublayerById",null),(0,r.Cg)([(0,h.MZ)({type:d.A})],H.prototype,"outSpatialReference",void 0),(0,r.Cg)([(0,h.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],H.prototype,"path",void 0),(0,r.Cg)([(0,h.MZ)({readOnly:!0,json:{read:!1,write:!1}})],H.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,h.MZ)({type:["show","hide","hide-children"]})],H.prototype,"listMode",void 0),(0,r.Cg)([(0,h.MZ)({type:["KML"]})],H.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,h.MZ)({})],H.prototype,"resourceInfo",void 0),(0,r.Cg)([(0,h.MZ)({type:s.A.ofType(V),json:{write:{ignoreOrigin:!0}}})],H.prototype,"sublayers",void 0),(0,r.Cg)([(0,U.w)(["web-map","portal-item"],"sublayers",["visibleFolders"])],H.prototype,"readSublayersFromItemOrWebMap",null),(0,r.Cg)([(0,U.w)("service","sublayers",["sublayers"])],H.prototype,"readSublayers",null),(0,r.Cg)([(0,B.K)("sublayers")],H.prototype,"writeSublayers",null),(0,r.Cg)([(0,h.MZ)({readOnly:!0,json:{read:!1}})],H.prototype,"type",void 0),(0,r.Cg)([(0,h.MZ)({json:{origins:{"web-map":{read:{source:"title"}}},write:{ignoreOrigin:!0}}})],H.prototype,"title",null),(0,r.Cg)([(0,h.MZ)(v.OZ)],H.prototype,"url",void 0),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],H.prototype,"visibleSublayers",null),(0,r.Cg)([(0,h.MZ)({type:c.A})],H.prototype,"extent",void 0),(0,r.Cg)([(0,h.MZ)()],H.prototype,"fullExtent",null),H=(0,r.Cg)([(0,h.$K)("esri.layers.KMLLayer")],H);const $=H},54339(e,t,i){function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const i=[];for(const r of t.fieldNames)i.push(e.attributes[r]??null);return JSON.stringify(i)}}}function s(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const i=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(i)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}i.d(t,{W:()=>r,r:()=>s})},8303(e,t,i){var r=i(5482),s=i(92602),n=i(70333),o=i(11254),l=i(60999),a=i(49186),u=i(36563),h=i(53966),c=i(97768),d=i(17676),p=i(84952),y=i(91429),f=i(77548),m=i(20655),g=i(80812),b=i(41318),v=i(10407),_=i(36005),M=i(43937);const S={credential:null,user:null};i.d(t,["A",0,e=>{const t=e;let w=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){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,i){if(t.itemId)return new g.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:r}=await i.e(1204).then(i.bind(i,41204));return(0,d.Te)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,d.zf)(e)||h.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 i.e(1204).then(i.bind(i,41204)),r=new AbortController,s=(0,u.rE)(r);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:r.signal})}catch(e){throw(0,d.zf)(e)||h.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,d.QP)(e),!0)))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:r},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,d.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=!n.id?.findCredential(this.url),s=e===i.id;if(s&&i.portal.user)return this._getUserPrivileges(i,r);let o,l;if(s)o=i.portal.url;else try{o=await(0,f.wI)(this.url,t)}catch(e){(0,d.QP)(e)}if(!o||!(0,p.b8)(o,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;l=await(n.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,d.QP)(e)}const a=!0,u=!1,h=!1;if(!l)return{features:{edit:a,fullEdit:u},content:{updateItem:h}};try{if(s?await i.reload():(i=new g.default({id:e,portal:{url:o}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,r)}catch(e){(0,d.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:h}}}_getUserPrivileges(e,t){const i=(0,v.It)(e);return t&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,d.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;const i=S.credential===t?S.user:await this._fetchEditingUser(e);return S.credential=t,S.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=n.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const r=`${i.owningSystemUrl}/sharing/rest`,s=m.A.getDefault();if(s&&s.loaded&&(0,p.S8)(s.restUrl)===(0,p.S8)(r))return s.user;const a=`${r}/community/self`,u=null!=e?e.signal:null,h=await(0,l.Ke)((0,o.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return h.ok?b.A.fromJSON(h.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,r=this.portalItem?.id&&(this.portalItem.portal||m.A.getDefault());return i&&r&&!(0,p.ut)(r.restUrl,i.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,r.Cg)([(0,y.MZ)({type:g.default})],w.prototype,"portalItem",null),(0,r.Cg)([(0,_.w)("web-document","portalItem",["itemId"])],w.prototype,"readPortalItem",null),(0,r.Cg)([(0,M.K)("web-document","portalItem",{itemId:{type:String}})],w.prototype,"writePortalItem",null),(0,r.Cg)([(0,y.MZ)({clonable:!1})],w.prototype,"resourceReferences",void 0),(0,r.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],w.prototype,"userHasEditingPrivileges",void 0),(0,r.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],w.prototype,"userHasFullEditingPrivileges",void 0),(0,r.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],w.prototype,"userHasUpdateItemPrivileges",void 0),w=(0,r.Cg)([(0,y.$K)("esri.layers.mixins.PortalLayer")],w),w}])},95466(e,t,i){i.d(t,{A:()=>u});var r=i(49186),s=i(53966),n=i(12195),o=i(30524),l=i(98623),a=i(56400);class u{static fromJSON(e){return new u(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new u(e.fields??[],c(e))}static fromLayerJSON(e){return new u(e.fields??[],c(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const i=[];for(const e of this.fields){const t=e?.name,r=(0,o.GZ)(t);if(t&&r){const s=(0,o.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(s,e),this._normalizedFieldsMap.set(r,e),i.push(`${s}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,o.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,o.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,o.te)(e)||(0,o.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}i.sort(),this.uid=i.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,o.te)(e)||(0,o.Xz)(e)||e.nullable||void 0!==(0,o.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,o.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(s.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new r.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):h.has(t.type)?l.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,o.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,n.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const h=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function c(e){const t=new Map;if(!e.fields)return t;const i=!0===e.datesInUnknownTimezone,{timeInfo:r,editFieldsInfo:s}=e,n=(r?"startField"in r?r.startField:r.startTimeField:"")??"",u=(r?"endField"in r?r.endField:r.endTimeField:"")??"",c=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,a.ZS)(e.dateFieldsTimeReference):null,d=s?function(e){return"timeZone"in e}(s)?s.timeZone??c:s.dateFieldsTimeReference?(0,a.ZS)(s.dateFieldsTimeReference):c??"UTC":null,p=r?function(e){return"timeZone"in e}(r)?r.timeZone??c:r.timeReference?(0,a.ZS)(r.timeReference):c:null,y=new Map([[(0,o.NF)(s?.creationDateField??""),d],[(0,o.NF)(s?.editDateField??""),d],[(0,o.NF)(n),p],[(0,o.NF)(u),p]]);for(const{name:r,type:s}of e.fields)if(h.has(s))t.set(r,l.L);else if("date"!==s&&"esriFieldTypeDate"!==s)t.set(r,null);else if(i)t.set(r,l.L);else{const e=y.get((0,o.NF)(r??""))??c;t.set(r,e)}return t}},5757(e,t,i){i.d(t,{B:()=>s});const r=Symbol("PopupTemplateInstance");function s(e){return null!=e&&"object"==typeof e&&r in e}i.d(t,["P",0,r])},10407(e,t,i){i.d(t,{It:()=>p,LG:()=>o,OM:()=>u,Sm:()=>h,Y:()=>l,bK:()=>a,sQ:()=>c});var r=i(99917),s=i(16930),n=i(28735);function o(e,t){if(!l(e,t)){const i=e.typeKeywords;i?i.push(t):e.typeKeywords=[t]}}function l(e,t){return!!e.typeKeywords?.includes(t)}function a(e){return l(e,d.HOSTED_SERVICE)}function u(e,t){const i=e.typeKeywords;if(i){const e=i.indexOf(t);e>-1&&i.splice(e,1)}}function h(e,t,i){i?o(e,t):u(e,t)}async function c(e){const t=e.clone().normalize();let i;if(t.length>1)for(const e of t)i?e.width>i.width&&(i=e):i=e;else i=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,n.ci)(e);const i=s.A.WGS84;return await(0,r.initializeProjection)(t,i),(0,r.project)(e,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(e){const{portal:t,isOrgItem:i,itemControl:r}=e,s=t.user?.privileges;let n=!s||s.includes("features:user:edit"),o=!!i&&!!s?.includes("features:user:fullEdit");const l="update"===r||"admin"===r;return l?o=n=!0:o&&(n=!0),{features:{edit:n,fullEdit:o},content:{updateItem:l}}}i.d(t,["mm",0,d])},96576(e,t,i){i.d(t,{A:()=>c});var r,s=i(5482),n=i(4718),o=i(91429),l=i(92438),a=i(63988),u=i(49849),h=i(93223);let c=r=class extends((0,a.h)(l.A)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.type="simple"}async collectRequiredFields(e,t){await Promise.all([this.collectSymbolFields(e,t),this.collectVVRequiredFields(e,t)])}async collectSymbolFields(e,t){await Promise.all(this.symbols.map(i=>i.collectRequiredFields(e,t)))}getSymbol(e,t){return this.symbol}async getSymbolAsync(e,t){return this.symbol}get symbols(){return this.symbol?[this.symbol]:[]}get arcadeRequired(){return this.arcadeRequiredForVisualVariables}clone(){return new r({description:this.description,label:this.label,symbol:(0,n.o8)(this.symbol),visualVariables:(0,n.o8)(this.visualVariables),authoringInfo:(0,n.o8)(this.authoringInfo)})}};(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,s.Cg)([(0,o.MZ)(u.Wp)],c.prototype,"symbol",void 0),(0,s.Cg)([(0,h.e)({simple:"simple"})],c.prototype,"type",void 0),c=r=(0,s.Cg)([(0,o.$K)("esri.renderers.SimpleRenderer")],c)},65494(e,t,i){i.d(t,{L:()=>a,r:()=>o});var r=i(90360),s=i(41214),n=i(59923);function o(e,t){return a(e,null,t)}const l=(0,r.C)({types:s.Hg});function a(e,t,i){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?((0,n.Yc)(i,"warning","renderer",`Only UniqueValueRenderer can be referenced from a web style, but found '${e.type}'`,{definition:e}),null):l(e,t,i):null}},98205(e,t,i){i.d(t,{KZ:()=>l,eh:()=>o,gf:()=>n,of:()=>s});const r=Symbol("SizeVariableInstance");function s(e){return null!=e&&"object"==typeof e&&r in e}function n(e){return null!=e&&!isNaN(e)&&isFinite(e)}function o(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function l(e,t){const i=t||o(e),r=e.valueUnit||"unknown";return"unknown"===i?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===r?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}i.d(t,["uY",0,r])},22671(e,t,i){i.d(t,{A:()=>b});var r,s=i(5482),n=i(52106),o=i(66552),l=i(25482),a=i(4718),u=i(91429),h=i(16930),c=i(60408),d=i(65864),p=i(50498),y=i(20437),f=i(36005),m=i(43937);const g=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=r=class extends l.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,n.A)}writeGeometryType(e,t,i,r){if(e)return void g.write(e,t,i,r);const{features:s}=this;if(s)for(const e of s)if(null!=e?.geometry)return void g.write(e.geometry.type,t,i,r)}readQueryGeometry(e,t){if(!e)return null;const i=!!e.spatialReference,r=(0,d.rS)(e);return r&&!i&&t.spatialReference&&(r.spatialReference=h.A.fromJSON(t.spatialReference)),r}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:i}=this;if(i)for(const e of i)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new r(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let i=0;i<t.features.length;i++){const r=t.features[i];if(r.geometry){const t=e?.[i];r.geometry=t?.toJSON()||r.geometry}}return t}quantize(e){const{scale:[t,i],translate:[r,s]}=e,n=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-r)/t),e=>Math.round((s-e)/i));for(let e=0,t=n.length;e<t;e++)o?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:i}=this;if(!i)return this;const{translate:[r,s],scale:[n,o]}=i;let l=null,a=null;if(this.hasZ&&null!=i?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=i;l=i=>i*t+e}if(this.hasM&&null!=i?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=i;a=i=>null==i?i:i*t+e}const u=this._getHydrationFunction(e,e=>e*n+r,e=>s-e*o,l,a);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,i){const r=h.A.fromJSON(t.spatialReference),s=[];for(let t=0;t<e.length;t++){const n=e[t],o=i.fromJSON(n),l=n.geometry?.spatialReference;null==o.geometry||l||(o.geometry.spatialReference=r);const a=n.aggregateGeometries,u=o.aggregateGeometries;if(a&&null!=u)for(const e in u){const t=u[e],i=a[e],s=i?.spatialReference;null==t||s||(t.spatialReference=r)}s.push(o)}return s}_quantizePoints(e,t,i){let r,s;const n=[];for(let o=0,l=e.length;o<l;o++){const l=e[o];if(o>0){const e=t(l[0]),o=i(l[1]);e===r&&o===s||(n.push([e-r,o-s]),r=e,s=o)}else r=t(l[0]),s=i(l[1]),n.push([r,s])}return n.length>0?n:null}_getQuantizationFunction(e,t,i){return"point"===e?e=>(e.x=t(e.x),e.y=i(e.y),e):"polyline"===e||"polygon"===e?e=>{const r=(0,c.Bi)(e)?e.rings:e.paths,s=[];for(let e=0,n=r.length;e<n;e++){const n=r[e],o=this._quantizePoints(n,t,i);o&&s.push(o)}return s.length>0?((0,c.Bi)(e)?e.rings=s:e.paths=s,e):null}:"multipoint"===e?e=>{const r=this._quantizePoints(e.points,t,i);return r&&r.length>0?(e.points=r,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,i,r,s){return"point"===e?e=>{e.x=t(e.x),e.y=i(e.y),r&&(e.z=r(e.z))}:"polyline"===e||"polygon"===e?e=>{const n=(0,c.Bi)(e)?e.rings:e.paths;let o,l;for(let e=0,r=n.length;e<r;e++){const r=n[e];for(let e=0,s=r.length;e<s;e++){const s=r[e];e>0?(o+=s[0],l+=s[1]):(o=s[0],l=s[1]),s[0]=t(o),s[1]=i(l)}}if(r&&s)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(i[2]),i[3]=s(i[3])}}else if(r)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(i[2])}}else if(s)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=s(i[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=i(e.ymin),e.xmax=t(e.xmax),e.ymax=i(e.ymax),r&&null!=e.zmax&&null!=e.zmin&&(e.zmax=r(e.zmax),e.zmin=r(e.zmin)),s&&null!=e.mmax&&null!=e.mmin&&(e.mmax=s(e.mmax),e.mmin=s(e.mmin))}:"multipoint"===e?e=>{const n=e.points;let o,l;for(let e=0,r=n.length;e<r;e++){const r=n[e];e>0?(o+=r[0],l+=r[1]):(o=r[0],l=r[1]),r[0]=t(o),r[1]=i(l)}if(r&&s)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=r(t[2]),t[3]=s(t[3])}else if(r)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=r(t[2])}else if(s)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=s(t[2])}}:null}};(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,s.Cg)([(0,u.MZ)({type:[n.A],json:{write:!0}})],b.prototype,"features",void 0),(0,s.Cg)([(0,f.w)("features")],b.prototype,"readFeatures",null),(0,s.Cg)([(0,u.MZ)({type:[y.A],json:{write:!0}})],b.prototype,"fields",void 0),(0,s.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],b.prototype,"geometryType",void 0),(0,s.Cg)([(0,m.K)("geometryType")],b.prototype,"writeGeometryType",null),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,s.Cg)([(0,u.MZ)({types:p.yR,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,s.Cg)([(0,f.w)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,s.Cg)([(0,u.MZ)({type:h.A,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,s.Cg)([(0,m.K)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,s.Cg)([(0,u.MZ)({json:{write:!0}})],b.prototype,"transform",void 0),b=r=(0,s.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0},93470(e,t,i){const r=[252,146,31,255],s={type:"esriSMS",style:"esriSMSCircle",size:6,color:r,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},n={type:"esriSLS",style:"esriSLSSolid",width:.75,color:r};i.d(t,["Cb",0,s,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,r,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,n])}}]);