@arcgis/core 5.2.0-next.6 → 5.2.0-next.8

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 (712) hide show
  1. package/WebLinkChart.d.ts +1 -1
  2. package/WebMap.d.ts +2 -2
  3. package/WebScene.d.ts +3 -3
  4. package/arcade.d.ts +9 -9
  5. package/arcgisGlobal.d.ts +8 -0
  6. package/assets/esri/core/workers/RemoteClient.js +1 -1
  7. package/assets/esri/core/workers/chunks/07cc5743cb6a9fd68adb.js +1 -0
  8. package/assets/esri/core/workers/chunks/09d0e430c66788a2626f.js +640 -0
  9. package/assets/esri/core/workers/chunks/{829a0583b8a228c65379.js → 0b169bb1969f86232a1a.js} +1 -1
  10. package/assets/esri/core/workers/chunks/0cbd7f5fe24271942abd.js +1 -0
  11. package/assets/esri/core/workers/chunks/{20e2d11f6de438ee883e.js → 0ded58ccb83f624f1460.js} +1 -1
  12. package/assets/esri/core/workers/chunks/0ecc1bc1686844cdd60e.js +1 -0
  13. package/assets/esri/core/workers/chunks/{d1ac98f48bb6d43d97c8.js → 0f3654c8157ec8f22869.js} +3 -3
  14. package/assets/esri/core/workers/chunks/0f75c19d8e296a32e329.js +1 -0
  15. package/assets/esri/core/workers/chunks/174cc2e69e5b5a13d880.js +1 -0
  16. package/assets/esri/core/workers/chunks/18f980465db5a86153d1.js +1 -0
  17. package/assets/esri/core/workers/chunks/1996f0a930abdd97b855.js +1 -0
  18. package/assets/esri/core/workers/chunks/1c8436b27a3d3cde5cfc.js +1 -0
  19. package/assets/esri/core/workers/chunks/1cb1f125dccbf8c8cac9.js +1 -0
  20. package/assets/esri/core/workers/chunks/1dd06335bb2d35c66339.js +1 -0
  21. package/assets/esri/core/workers/chunks/1f289aa69dd6b6be534a.js +1 -0
  22. package/assets/esri/core/workers/chunks/2185e8a52c5e29d46680.js +1 -0
  23. package/assets/esri/core/workers/chunks/{bf706a5d065a357de51b.js → 2413b383b7f2bdcd4ced.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{da29cf0e64065631a470.js → 24810c36ae09bb4e83dc.js} +1 -1
  25. package/assets/esri/core/workers/chunks/26583db2af1a1cc456e5.js +1 -0
  26. package/assets/esri/core/workers/chunks/274b82cb183ddd0042f3.js +1 -0
  27. package/assets/esri/core/workers/chunks/277718031c903da2b3b9.js +1 -0
  28. package/assets/esri/core/workers/chunks/27c6def22c2b0791ce9e.js +1 -0
  29. package/assets/esri/core/workers/chunks/{7ed5b669010db58845f8.js → 294f2803aac000c99693.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{093f27e4e4781870b431.js → 297ae764445e6f73a5ea.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{be0eab592db0e651b023.js → 2b814bb51704a5b4fdc2.js} +6 -6
  32. package/assets/esri/core/workers/chunks/2c9ba638d1f31c82f9f5.js +1 -0
  33. package/assets/esri/core/workers/chunks/2d2895f1fdf44d212a4d.js +1 -0
  34. package/assets/esri/core/workers/chunks/2dbc2fd0f2dde505c465.js +1 -0
  35. package/assets/esri/core/workers/chunks/2dbcdfdf000226bfe746.js +1 -0
  36. package/assets/esri/core/workers/chunks/2e6382d50bf012064eae.js +1 -0
  37. package/assets/esri/core/workers/chunks/30f1909c5ef1835b8507.js +1 -0
  38. package/assets/esri/core/workers/chunks/3172d7fc23787a287191.js +1 -0
  39. package/assets/esri/core/workers/chunks/31918a0d9886dedf385f.js +1 -0
  40. package/assets/esri/core/workers/chunks/{1c029b03ed836f393a50.js → 3248001d9dfb9153699e.js} +1 -1
  41. package/assets/esri/core/workers/chunks/3297658ccd8d4b9ce733.js +1 -0
  42. package/assets/esri/core/workers/chunks/{716a4d7e8b908b81870b.js → 32f26757e36704923286.js} +1 -1
  43. package/assets/esri/core/workers/chunks/3529afab0c2444275d91.js +1 -0
  44. package/assets/esri/core/workers/chunks/36dac6ab51d9dbdd091d.js +1 -0
  45. package/assets/esri/core/workers/chunks/{a2159df718a7f2f59271.js → 38a2f34661563c7c29c1.js} +1 -1
  46. package/assets/esri/core/workers/chunks/390fda094fa8695d98cf.js +1 -0
  47. package/assets/esri/core/workers/chunks/39596715e84d0da2f803.js +30 -0
  48. package/assets/esri/core/workers/chunks/398eb3100a282e4736bb.js +1 -0
  49. package/assets/esri/core/workers/chunks/{6af77529c977d034d287.js → 3b15933f65f59625a650.js} +1 -1
  50. package/assets/esri/core/workers/chunks/3b3f91a61e3f29af1fb2.js +1 -0
  51. package/assets/esri/core/workers/chunks/{f815106d439ff1f76e51.js → 3b837b512999e6ab24bc.js} +1 -1
  52. package/assets/esri/core/workers/chunks/3d20c86f1fe877bf884b.js +1 -0
  53. package/assets/esri/core/workers/chunks/{a96c7432ca97cbeef4b8.js → 3db898a38a7c5f0efb48.js} +1 -1
  54. package/assets/esri/core/workers/chunks/3dc5fbecc427df1fd827.js +1 -0
  55. package/assets/esri/core/workers/chunks/3e65b4b18760bde8ceee.js +1 -0
  56. package/assets/esri/core/workers/chunks/3ff7aa216cd794d951e8.js +1 -0
  57. package/assets/esri/core/workers/chunks/{8e1865392681d390ab2e.js → 401ee7fa500adad77db1.js} +1 -1
  58. package/assets/esri/core/workers/chunks/{60915a3708a34da1977e.js → 426156137f279d979ddd.js} +1 -1
  59. package/assets/esri/core/workers/chunks/4517630bf869205bab87.js +1 -0
  60. package/assets/esri/core/workers/chunks/{b002304a45856b024b46.js → 4714241189c13d0db897.js} +1 -1
  61. package/assets/esri/core/workers/chunks/48f1c3a7c9f16d6896f6.js +1 -0
  62. package/assets/esri/core/workers/chunks/49308bdc36373555f1af.js +1 -0
  63. package/assets/esri/core/workers/chunks/5075e85e1eafd431a8c0.js +1 -0
  64. package/assets/esri/core/workers/chunks/5121768c70f1e03b685c.js +1 -0
  65. package/assets/esri/core/workers/chunks/5201105ca11a2d450460.js +1 -0
  66. package/assets/esri/core/workers/chunks/{0e774f14ba274832f390.js → 520e0e5307eef27becc6.js} +1 -1
  67. package/assets/esri/core/workers/chunks/528ed0bd8dc149ead023.js +1 -0
  68. package/assets/esri/core/workers/chunks/52f354bf80ee5ab0379a.js +1 -0
  69. package/assets/esri/core/workers/chunks/538537f9bc866d9caa75.js +1 -0
  70. package/assets/esri/core/workers/chunks/53d165b4f30fd64e5d8a.js +1 -0
  71. package/assets/esri/core/workers/chunks/58a7cdebc3d182c15ec6.js +1 -0
  72. package/assets/esri/core/workers/chunks/58ac245ff7fb57c1004f.js +1 -0
  73. package/assets/esri/core/workers/chunks/58acc18b92533166135d.js +1 -0
  74. package/assets/esri/core/workers/chunks/597aa39cdb5366ef9a74.js +1 -0
  75. package/assets/esri/core/workers/chunks/5bfae465872760e7af6d.js +1 -0
  76. package/assets/esri/core/workers/chunks/{cda99b543a0e1979346c.js → 5cb1b950249d651f3837.js} +1 -1
  77. package/assets/esri/core/workers/chunks/5cb274e5759f7ca0d4ed.js +1 -0
  78. package/assets/esri/core/workers/chunks/5d3ddbf94539cb4f493e.js +1 -0
  79. package/assets/esri/core/workers/chunks/{c83fea0d0ebd0d8e43fd.js → 5d62d1920e3e35fc0192.js} +1 -1
  80. package/assets/esri/core/workers/chunks/5dd441db1e74dc9b56e9.js +1 -0
  81. package/assets/esri/core/workers/chunks/{c216cd5d6b5d4fe4bab3.js → 62e77e3c5ca9b4887923.js} +2 -2
  82. package/assets/esri/core/workers/chunks/630ad47857de3cf726d1.js +1 -0
  83. package/assets/esri/core/workers/chunks/64114a7d2da162987958.js +1 -0
  84. package/assets/esri/core/workers/chunks/6821462e5c1e9c76010a.js +1 -0
  85. package/assets/esri/core/workers/chunks/684d3cb4fb233180b2d0.js +1 -0
  86. package/assets/esri/core/workers/chunks/686c51fd2144e132783e.js +1 -0
  87. package/assets/esri/core/workers/chunks/68f9b2da1fd08785320f.js +2 -0
  88. package/assets/esri/core/workers/chunks/69e98de578f467a35054.js +1 -0
  89. package/assets/esri/core/workers/chunks/6a3d207308b29651f397.js +1 -0
  90. package/assets/esri/core/workers/chunks/6aabde21b0b376d95888.js +1 -0
  91. package/assets/esri/core/workers/chunks/6c6396bfcdab12e68deb.js +1 -0
  92. package/assets/esri/core/workers/chunks/6d616b66fb32904b55a1.js +1 -0
  93. package/assets/esri/core/workers/chunks/{bcb021a167580bb1619f.js → 6ef3b8d67b498d655a99.js} +1 -1
  94. package/assets/esri/core/workers/chunks/6f125b4ed06c0022dee6.js +1 -0
  95. package/assets/esri/core/workers/chunks/6f4825c3ef1fe202ab82.js +1 -0
  96. package/assets/esri/core/workers/chunks/6f5d61f734ec40dafabb.js +1 -0
  97. package/assets/esri/core/workers/chunks/{fce7995c26953bfd8d3d.js → 70229007d594536ba6a3.js} +1 -1
  98. package/assets/esri/core/workers/chunks/71e55381fdff3fc2542e.js +1 -0
  99. package/assets/esri/core/workers/chunks/{5abe34bb0110694f7b42.js → 72cfb186e50537bcdd19.js} +1 -1
  100. package/assets/esri/core/workers/chunks/72d67cc3a382e83bf1a2.js +1 -0
  101. package/assets/esri/core/workers/chunks/7748743d4be047094d67.js +1 -0
  102. package/assets/esri/core/workers/chunks/77a4f6f224d7ca4b69f4.js +1 -0
  103. package/assets/esri/core/workers/chunks/78c53aeb0a408ab3c80c.js +1 -0
  104. package/assets/esri/core/workers/chunks/7b5c1030a7cf0f382cc4.js +1 -0
  105. package/assets/esri/core/workers/chunks/7cee81c5aa1e6b7d2452.js +1 -0
  106. package/assets/esri/core/workers/chunks/7e89cb9ff615742e0894.js +1 -0
  107. package/assets/esri/core/workers/chunks/80f4f686ce403cb2693f.js +1 -0
  108. package/assets/esri/core/workers/chunks/{8477b5fdd99c6ac5c27b.js → 851705cf276eae8d4d37.js} +1 -1
  109. package/assets/esri/core/workers/chunks/{c319c3b85cdec73a9f45.js → 877c848beaf9a939862c.js} +1 -1
  110. package/assets/esri/core/workers/chunks/{ae74f722fb385e45fcf1.js → 893c0d28a5bf3f9f29f1.js} +1 -1
  111. package/assets/esri/core/workers/chunks/89e09276086745aa21fa.js +1 -0
  112. package/assets/esri/core/workers/chunks/{16b90d8f628a412ba4ba.js → 8a8c5e5ce457ca004687.js} +1 -1
  113. package/assets/esri/core/workers/chunks/{1f55d60d3adc31283296.js → 8b0a01ebc86ab226f01f.js} +1 -1
  114. package/assets/esri/core/workers/chunks/{452c01cecbbd1e370098.js → 8f93e6fc11a158d4f1ee.js} +1 -1
  115. package/assets/esri/core/workers/chunks/93bd56396b8cd020f965.js +1 -0
  116. package/assets/esri/core/workers/chunks/{359d3acb3953e64e5a78.js → 93ceb74ac88ef460fe5f.js} +1 -1
  117. package/assets/esri/core/workers/chunks/{4e676e888a935c507d90.js → 93d4bda22bde33fafa57.js} +1 -1
  118. package/assets/esri/core/workers/chunks/957f7b8de4aecb6f644e.js +1 -0
  119. package/assets/esri/core/workers/chunks/{50dc9893e13396f5e35d.js → 9629601de5e44ffe90ea.js} +2 -2
  120. package/assets/esri/core/workers/chunks/976ab2be6c244768c08a.js +1 -0
  121. package/assets/esri/core/workers/chunks/{e785f76c1a75cb1d1e1f.js → 99101789035f1787c630.js} +1 -1
  122. package/assets/esri/core/workers/chunks/{fbb23db01f3cf629d32e.js → 992a90ecbab931198fd0.js} +1 -1
  123. package/assets/esri/core/workers/chunks/99e5296192ab98fd0d99.js +1 -0
  124. package/assets/esri/core/workers/chunks/9d5f7573bfe3b051daf1.js +1 -0
  125. package/assets/esri/core/workers/chunks/a0c00c6fe60db49b3ab9.js +1 -0
  126. package/assets/esri/core/workers/chunks/a2247f4c3116efb16c4f.js +1 -0
  127. package/assets/esri/core/workers/chunks/a4245bd4e67a428fd835.js +1 -0
  128. package/assets/esri/core/workers/chunks/a442534ac0956a68b769.js +1 -0
  129. package/assets/esri/core/workers/chunks/a4d3cbc02dc1186a9a6d.js +1 -0
  130. package/assets/esri/core/workers/chunks/a4e9a17dacbb52444d75.js +1 -0
  131. package/assets/esri/core/workers/chunks/{8bdca6f06c8b5fedd917.js → a5abba59e738c3240c22.js} +1 -1
  132. package/assets/esri/core/workers/chunks/a8ec5b85c2fa6fb4f391.js +1 -0
  133. package/assets/esri/core/workers/chunks/{f5a2c28dc26c065ea355.js → a9a1293b1d5302fb3b54.js} +28 -30
  134. package/assets/esri/core/workers/chunks/a9fc53ae040320e49834.js +1 -0
  135. package/assets/esri/core/workers/chunks/aa118c1bcd922b8ac328.js +1 -0
  136. package/assets/esri/core/workers/chunks/aae0049c2c3e15a813e8.js +1 -0
  137. package/assets/esri/core/workers/chunks/ac33b10fe65f9e9e824f.js +1 -0
  138. package/assets/esri/core/workers/chunks/adc32f6b45ea3026fc34.js +1 -0
  139. package/assets/esri/core/workers/chunks/af31e62499d45bdab3c3.js +1 -0
  140. package/assets/esri/core/workers/chunks/b22a1c98271c2e4d8808.js +1 -0
  141. package/assets/esri/core/workers/chunks/{9f4681713f03365a2a53.js → b666027b9022fa346a79.js} +1 -1
  142. package/assets/esri/core/workers/chunks/b73c146d3e550eaf07eb.js +1 -0
  143. package/assets/esri/core/workers/chunks/b9bdb1f05e904c3655e4.js +1 -0
  144. package/assets/esri/core/workers/chunks/c0cbc50e5afd68bd485c.js +1 -0
  145. package/assets/esri/core/workers/chunks/c2a65de34f6a6c89c652.js +1 -0
  146. package/assets/esri/core/workers/chunks/c357c0a08b99c1e7f290.js +1 -0
  147. package/assets/esri/core/workers/chunks/{4a23b27bfbcfa08fd9a7.js → c3cf9e6e91f71c9cc5f3.js} +1 -1
  148. package/assets/esri/core/workers/chunks/c3ff2ff0a86a9143d7a5.js +1 -0
  149. package/assets/esri/core/workers/chunks/{3e3134e4bc34d4e07179.js → c424a66f1546275e2bcb.js} +1 -1
  150. package/assets/esri/core/workers/chunks/c4fc85281ca83af7abaf.js +1 -0
  151. package/assets/esri/core/workers/chunks/c60b4f2dd5fccdf362a7.js +1 -0
  152. package/assets/esri/core/workers/chunks/c6d0b4875b6b8d6bc25a.js +1 -0
  153. package/assets/esri/core/workers/chunks/c911f0b5bdd43b66b731.js +1 -0
  154. package/assets/esri/core/workers/chunks/c983e5ce0ff952b65d7f.js +1 -0
  155. package/assets/esri/core/workers/chunks/c9a4601073e1a3eee9d0.js +1 -0
  156. package/assets/esri/core/workers/chunks/ccffaba50674adba7a0f.js +1 -0
  157. package/assets/esri/core/workers/chunks/{24646a1176ce34039155.js → cdf6ad970dc1893dac58.js} +1 -1
  158. package/assets/esri/core/workers/chunks/d13e003c9293cb7e2852.js +1 -0
  159. package/assets/esri/core/workers/chunks/d24e027bb8b2c09f25c8.js +1 -0
  160. package/assets/esri/core/workers/chunks/d2df8c328054dc6cb7b7.js +1 -0
  161. package/assets/esri/core/workers/chunks/d5c35a75fd4c41def420.js +1 -0
  162. package/assets/esri/core/workers/chunks/{ace1899a8e5162b4018d.js → d6bb8db22ba85ad05fd7.js} +1 -1
  163. package/assets/esri/core/workers/chunks/{7601278ebced0c0c31cf.js → d78b7cac322755e87eb8.js} +1 -1
  164. package/assets/esri/core/workers/chunks/d7be278aed1fb37ad5ec.js +1 -0
  165. package/assets/esri/core/workers/chunks/d9695794cfaa014a55b1.js +1 -0
  166. package/assets/esri/core/workers/chunks/{8244b74e9c3a30d8d2f6.js → d9d4754062758789f186.js} +2 -2
  167. package/assets/esri/core/workers/chunks/da1e8b338ab9fe9e0a8e.js +1 -0
  168. package/assets/esri/core/workers/chunks/e1bf87077541da6853c6.js +1 -0
  169. package/assets/esri/core/workers/chunks/e279bcbe4f10e87bde6c.js +1 -0
  170. package/assets/esri/core/workers/chunks/e33d2ede6c9f1527d51b.js +1 -0
  171. package/assets/esri/core/workers/chunks/e4406baf206b9e4c7e4f.js +1 -0
  172. package/assets/esri/core/workers/chunks/e499252cb52f7aed49a0.js +1 -0
  173. package/assets/esri/core/workers/chunks/{e178cd0e9178d6716410.js → e5837e5ac6ef761f26a2.js} +1 -1
  174. package/assets/esri/core/workers/chunks/e6a7272b59a4c2e34dca.js +1 -0
  175. package/assets/esri/core/workers/chunks/e912b515704e20313e53.js +1 -0
  176. package/assets/esri/core/workers/chunks/eac683a37339aa558455.js +1 -0
  177. package/assets/esri/core/workers/chunks/ec1841e6e498d54012eb.js +1 -0
  178. package/assets/esri/core/workers/chunks/ed3d16a5b4084ef61f8a.js +1 -0
  179. package/assets/esri/core/workers/chunks/ee07f54bc77fe9f8575a.js +1 -0
  180. package/assets/esri/core/workers/chunks/{d35c475f004367e333eb.js → eeea5710275c967e8d51.js} +1 -1
  181. package/assets/esri/core/workers/chunks/ef46ef4f0ee9f2aeaa4a.js +1 -0
  182. package/assets/esri/core/workers/chunks/efb4aa5886730ea377bd.js +1 -0
  183. package/assets/esri/core/workers/chunks/f2a268c69f2a5566381b.js +1 -0
  184. package/assets/esri/core/workers/chunks/{d1ccc5f2d8892328ab01.js → f5731ad4cfbbf1cc569a.js} +2 -2
  185. package/assets/esri/core/workers/chunks/f590db684d88e72bd79b.js +1 -0
  186. package/assets/esri/core/workers/chunks/f69df22a5c64389ebe28.js +1 -0
  187. package/assets/esri/core/workers/chunks/{f60292d97bcdbf19165b.js → f6d047358d14328f3622.js} +1 -1
  188. package/assets/esri/core/workers/chunks/f7fca88d120d45bb782a.js +1 -0
  189. package/assets/esri/core/workers/chunks/f819854098d63fe4ccdb.js +1 -0
  190. package/assets/esri/core/workers/chunks/f8f3579d0c1b65762902.js +1 -0
  191. package/assets/esri/core/workers/chunks/f98118127469449ca145.js +1 -0
  192. package/assets/esri/core/workers/chunks/f9ed05d4ad1f44d033bb.js +1 -0
  193. package/assets/esri/core/workers/chunks/fb6605be0c5e36785543.js +1 -0
  194. package/assets/esri/core/workers/chunks/fbe7dae0b4bf2d172487.js +1 -0
  195. package/assets/esri/core/workers/chunks/fc4d9be62cf5e9758842.js +1 -0
  196. package/assets/esri/core/workers/chunks/fd70a25ffdf2cc6c5be2.js +1 -0
  197. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  198. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  199. package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
  200. package/assets/esri/libs/vxl/vxlLayer.wasm +0 -0
  201. package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +38 -8
  202. package/assets/esri/themes/base/widgets/_DatePicker.scss +1 -1
  203. package/assets/esri/themes/dark/main.css +1 -1
  204. package/assets/esri/themes/light/main.css +1 -1
  205. package/assets/esri/themes/light/view.css +1 -1
  206. package/chunks/GlowComposition.glsl.js +2 -2
  207. package/chunks/RealisticTree.glsl.js +17 -15
  208. package/chunks/bundle2.js +1 -1
  209. package/chunks/lyr3DMain.js +1 -1
  210. package/chunks/lyr3DWorker.js +1 -1
  211. package/chunks/vxlLayer.js +1 -1
  212. package/config.d.ts +2 -2
  213. package/config.js +1 -1
  214. package/core/Collection.d.ts +25 -25
  215. package/core/Error.d.ts +1 -1
  216. package/core/JSONSupport.d.ts +1 -1
  217. package/core/promiseUtils.d.ts +3 -3
  218. package/core/reactiveUtils.d.ts +4 -4
  219. package/core/screenUtils.js +1 -1
  220. package/core/sql/WhereClause.d.ts +1 -1
  221. package/core/sql.d.ts +1 -1
  222. package/core/timeUtils.d.ts +1 -1
  223. package/core/workers/Connection.d.ts +9 -9
  224. package/core/workers.d.ts +1 -1
  225. package/editing/types.d.ts +3 -3
  226. package/geometry/Extent.d.ts +0 -13
  227. package/geometry/Geometry.d.ts +10 -8
  228. package/geometry/Mesh.d.ts +9 -2
  229. package/geometry/Mesh.js +1 -1
  230. package/geometry/Multipoint.d.ts +9 -0
  231. package/geometry/Multipoint.js +1 -1
  232. package/geometry/Point.d.ts +15 -71
  233. package/geometry/Polygon.js +1 -1
  234. package/geometry/support/MeshMaterial.d.ts +5 -5
  235. package/geometry/support/MeshTexture.d.ts +19 -19
  236. package/geometry/support/geometryUtils.js +1 -1
  237. package/geometry/support/jsonUtils.d.ts +1 -1
  238. package/geometry/support/meshUtils.d.ts +130 -2
  239. package/geometry/support/meshUtils.js +1 -1
  240. package/graphic/AnnotationGraphicOrigin.d.ts +34 -0
  241. package/graphic/AnnotationGraphicOrigin.js +2 -0
  242. package/graphic/DimensionFeatureGraphicOrigin.d.ts +34 -0
  243. package/graphic/DimensionFeatureGraphicOrigin.js +2 -0
  244. package/identity/Credential.d.ts +1 -1
  245. package/identity/IdentityManager.d.ts +1 -1
  246. package/identity/IdentityManagerBase.js +1 -1
  247. package/identity/OAuthInfo.d.ts +1 -1
  248. package/identity/ServerInfo.d.ts +2 -2
  249. package/interfaces.d.ts +23 -0
  250. package/intl/number.d.ts +3 -3
  251. package/intl/substitute.d.ts +2 -2
  252. package/intl.d.ts +28 -28
  253. package/kernel.js +1 -1
  254. package/layers/AnnotationLayer.d.ts +263 -32
  255. package/layers/AnnotationLayer.js +1 -1
  256. package/layers/BaseDynamicLayer.d.ts +5 -5
  257. package/layers/BaseTileLayer.d.ts +4 -4
  258. package/layers/BuildingSceneLayer.d.ts +1 -1
  259. package/layers/CSVLayer.d.ts +7 -1
  260. package/layers/CatalogLayer.d.ts +6 -0
  261. package/layers/DimensionFeatureLayer.d.ts +263 -32
  262. package/layers/DimensionFeatureLayer.js +1 -1
  263. package/layers/FeatureLayer.d.ts +45 -8
  264. package/layers/FeatureLayer.js +1 -1
  265. package/layers/GeoJSONLayer.d.ts +14 -8
  266. package/layers/LinkChartLayer.js +1 -1
  267. package/layers/MapImageLayer.d.ts +5 -5
  268. package/layers/MediaLayer.d.ts +2 -2
  269. package/layers/OrientedImageryLayer.d.ts +29 -2
  270. package/layers/ParquetLayer.d.ts +7 -1
  271. package/layers/SceneLayer.d.ts +5 -3
  272. package/layers/SceneLayer.js +1 -1
  273. package/layers/StreamLayer.d.ts +1 -1
  274. package/layers/SubtypeGroupLayer.d.ts +7 -1
  275. package/layers/TileLayer.d.ts +2 -2
  276. package/layers/VideoLayer.d.ts +8 -2
  277. package/layers/VideoLayer.js +1 -1
  278. package/layers/VoxelLayer.d.ts +4 -4
  279. package/layers/WCSLayer.d.ts +2 -2
  280. package/layers/WFSLayer.d.ts +6 -0
  281. package/layers/WebTileLayer.d.ts +1 -1
  282. package/layers/catalog/CatalogFootprintLayer.d.ts +60 -11
  283. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  284. package/layers/graphics/sources/parquet/FileProvider.js +1 -1
  285. package/layers/graphics/sources/parquet/ParquetFileInfo.js +2 -0
  286. package/layers/graphics/sources/parquet/ParquetFileStatistics.js +2 -0
  287. package/layers/graphics/sources/parquet/PortalParquetFileProvider.js +1 -1
  288. package/layers/graphics/sources/parquet/PortalParquetLayerFileProvider.js +1 -1
  289. package/layers/graphics/sources/parquet/UrlsFileProvider.js +1 -1
  290. package/layers/graphics/sources/parquet/createFileProvider.js +1 -1
  291. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  292. package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +6 -0
  293. package/layers/mixins/ArcGISImageService.d.ts +7 -1
  294. package/layers/mixins/BlendLayer.d.ts +1 -1
  295. package/layers/mixins/DataSeriesLayer.d.ts +161 -0
  296. package/layers/mixins/DataSeriesLayer.js +2 -0
  297. package/layers/mixins/FeatureLayerBase.d.ts +43 -19
  298. package/layers/mixins/TemporalLayer.d.ts +4 -2
  299. package/layers/orientedImagery/core/coverageUtils.js +1 -1
  300. package/layers/support/AnnotationSublayer.d.ts +44 -0
  301. package/layers/support/AnnotationSublayer.js +2 -0
  302. package/layers/support/DateTimeFieldFormat.d.ts +10 -10
  303. package/layers/support/FeatureEffect.d.ts +22 -22
  304. package/layers/support/FeatureReductionBinning.d.ts +12 -0
  305. package/layers/support/FeatureReductionCluster.d.ts +12 -0
  306. package/layers/support/Field.d.ts +2 -2
  307. package/layers/support/ImageElement.d.ts +1 -1
  308. package/layers/support/MosaicRule.d.ts +0 -2
  309. package/layers/support/NumberFieldFormat.d.ts +5 -5
  310. package/layers/support/StreamConnection.d.ts +1 -1
  311. package/layers/support/Sublayer.d.ts +2 -2
  312. package/layers/support/SubtypeSublayer.d.ts +14 -1
  313. package/layers/support/TimeSeriesFieldTimeMapping.d.ts +30 -0
  314. package/layers/support/TimeSeriesFieldTimeMapping.js +2 -0
  315. package/layers/support/TimeSeriesInfo.d.ts +149 -0
  316. package/layers/support/TimeSeriesInfo.js +2 -0
  317. package/layers/support/VideoElement.d.ts +1 -1
  318. package/layers/support/commonProperties.js +1 -1
  319. package/layers/support/dataSeriesUtils.d.ts +18 -0
  320. package/layers/support/dataSeriesUtils.js +2 -0
  321. package/layers/support/featureLayerUtils.js +1 -1
  322. package/layers/support/kmlUtils.js +1 -1
  323. package/layers/support/layerUtils.js +1 -1
  324. package/layers/support/parquetUtils.js +1 -1
  325. package/layers/support/tiles3DUtils.js +1 -1
  326. package/layers/support/timeSeriesUtils.d.ts +27 -0
  327. package/layers/support/timeSeriesUtils.js +2 -0
  328. package/layers/types.d.ts +1 -1
  329. package/layers/video/types.d.ts +61 -1
  330. package/libs/parquet/parquet.js +1 -1
  331. package/linkChart/ChronologicalLayoutSettings.d.ts +1 -1
  332. package/networks/CircuitManager.d.ts +1 -1
  333. package/networks/Network.d.ts +1 -1
  334. package/networks/UnitIdentifierManager.d.ts +1 -1
  335. package/networks/support/NamedTraceConfiguration.d.ts +1 -1
  336. package/networks/support/TraceConfiguration.d.ts +2 -2
  337. package/networks/support/UNTraceConfiguration.d.ts +3 -3
  338. package/networks/support/jsonTypes.d.ts +7 -1
  339. package/networks/support/utils.js +1 -1
  340. package/package.json +3 -3
  341. package/popup/content/CustomContent.d.ts +1 -1
  342. package/portal/Portal.d.ts +2 -2
  343. package/portal/jsonTypes.d.ts +2 -2
  344. package/renderers/support/AuthoringInfo.d.ts +14 -1
  345. package/renderers/support/AuthoringInfo.js +1 -1
  346. package/renderers/support/AuthoringInfoVisualVariable.d.ts +14 -1
  347. package/renderers/support/AuthoringInfoVisualVariable.js +1 -1
  348. package/renderers/support/jsonUtils.d.ts +1 -1
  349. package/renderers/support/utils.d.ts +1 -1
  350. package/renderers/visualVariables/RotationVariable.d.ts +16 -1
  351. package/renderers/visualVariables/RotationVariable.js +1 -1
  352. package/request/types.d.ts +41 -43
  353. package/rest/geometryService.d.ts +1 -1
  354. package/rest/knowledgeGraph/CreateReplicaResponse.d.ts +1 -1
  355. package/rest/knowledgeGraph/GraphApplyEdits.d.ts +1 -1
  356. package/rest/knowledgeGraph/GraphProperty.d.ts +5 -1
  357. package/rest/knowledgeGraph/GraphQueryStreamingResult.d.ts +2 -2
  358. package/rest/knowledgeGraph/wasmInterface/wasmToDataModelFactories.js +1 -1
  359. package/rest/knowledgeGraph/wasmInterface/wasmToQueryResponseObjFactories.js +1 -1
  360. package/rest/knowledgeGraph/wasmInterface/wasmToReplicaFactories.js +1 -1
  361. package/rest/knowledgeGraphService.d.ts +13 -13
  362. package/rest/layerSources/DynamicDataLayer.d.ts +1 -1
  363. package/rest/print.d.ts +1 -1
  364. package/rest/support/AttributeBinsQuery.d.ts +16 -2
  365. package/rest/support/ClosestFacilityParameters.d.ts +6 -6
  366. package/rest/support/LastMileDeliveryParameters.d.ts +4 -4
  367. package/rest/support/LocationToAddressParameters.d.ts +1 -1
  368. package/rest/support/PrintTemplate.d.ts +5 -5
  369. package/rest/support/Query.d.ts +18 -4
  370. package/rest/support/RouteParameters.d.ts +5 -5
  371. package/rest/support/ServiceAreaParameters.d.ts +6 -6
  372. package/rest/support/TopFeaturesQuery.d.ts +16 -2
  373. package/rest/support/meshFeatureSet.js +1 -1
  374. package/smartMapping/renderers/color.d.ts +40 -0
  375. package/smartMapping/renderers/color.js +1 -1
  376. package/smartMapping/renderers/opacity.d.ts +8 -0
  377. package/smartMapping/renderers/opacity.js +1 -1
  378. package/smartMapping/renderers/size.d.ts +38 -0
  379. package/smartMapping/renderers/size.js +1 -1
  380. package/smartMapping/renderers/support/regenerateUtils.js +1 -1
  381. package/smartMapping/renderers/support/timeSeriesUtils.js +2 -0
  382. package/smartMapping/renderers/type.d.ts +20 -1
  383. package/smartMapping/renderers/type.js +1 -1
  384. package/smartMapping/renderers/univariateColorSize.d.ts +19 -0
  385. package/smartMapping/renderers/univariateColorSize.js +1 -1
  386. package/support/revision.js +1 -1
  387. package/support/tests/setupServiceMocksMesh.js +1 -1
  388. package/support/timeUtils.d.ts +3 -3
  389. package/symbols/Font.d.ts +7 -7
  390. package/symbols/WebStyleSymbol.d.ts +11 -11
  391. package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
  392. package/symbols/cim/effects/EffectControlMeasureLine.js +1 -1
  393. package/symbols/support/Symbol3DEmissive.d.ts +8 -2
  394. package/symbols/support/jsonUtils.d.ts +1 -1
  395. package/time/TimeExtent.d.ts +2 -2
  396. package/versionManagement/VersionManagementService.d.ts +8 -8
  397. package/versionManagement/VersionManager.d.ts +13 -3
  398. package/versionManagement/VersioningState.d.ts +4 -4
  399. package/views/2d/MapViewConstraints.d.ts +29 -25
  400. package/views/2d/engine/flow/styles/Imagery.js +1 -1
  401. package/views/2d/engine/flow/styles/Particles.js +1 -1
  402. package/views/2d/engine/flow/styles/Streamlines.js +1 -1
  403. package/views/2d/engine/vectorTiles/VectorTileFeatureIndex.js +1 -1
  404. package/views/2d/engine/vectorTiles/style/StyleLayer.js +1 -1
  405. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerShader.js +1 -1
  406. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPolygonShader.js +1 -1
  407. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
  408. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexOutlineFillShader.js +1 -1
  409. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HeatmapAccumulateShader.js +1 -1
  410. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OutlineFillShader.js +1 -1
  411. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/hittestUtils.js +1 -1
  412. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  413. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  414. package/views/2d/layers/BaseLayerView2D.d.ts +4 -20
  415. package/views/2d/layers/BaseLayerViewGL2D.d.ts +6 -22
  416. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  417. package/views/2d/layers/GeoRSSLayerView2D.js +1 -1
  418. package/views/2d/layers/GraphicsLayerView2D.js +1 -1
  419. package/views/2d/layers/ImageryLayerView2D.js +1 -1
  420. package/views/2d/layers/ImageryTileLayerView2D.js +1 -1
  421. package/views/2d/layers/KMLLayerView2D.js +1 -1
  422. package/views/2d/layers/MapNotesLayerView2D.js +1 -1
  423. package/views/2d/layers/MediaLayerView2D.js +1 -1
  424. package/views/2d/layers/RouteLayerView2D.js +1 -1
  425. package/views/2d/layers/VectorTileLayerView2D.js +1 -1
  426. package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
  427. package/views/2d/layers/features/layerAdapters/DimensionLayerAdapter.js +1 -1
  428. package/views/2d/layers/features/sources/strategies/ParquetSnapshotLoadStrategy.js +1 -1
  429. package/views/2d/layers/features/sources/strategies/ParquetTileLoadStrategy.js +1 -1
  430. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  431. package/views/2d/layers/features/support/FeatureSetReaderParquet.js +1 -1
  432. package/views/2d/layers/graphics/GraphicStore.js +1 -1
  433. package/views/2d/support/hitTestUtils.js +1 -1
  434. package/views/3d/analysis/LineOfSight/LineOfSightAggregateManipulatedObject3D.js +2 -0
  435. package/views/3d/analysis/LineOfSight/LineOfSightAuthoringUtils.js +1 -1
  436. package/views/3d/analysis/LineOfSight/LineOfSightConfiguration.js +1 -1
  437. package/views/3d/analysis/LineOfSight/LineOfSightManipulators.js +1 -1
  438. package/views/3d/analysis/LineOfSight/LineOfSightObserverPlugin.js +1 -1
  439. package/views/3d/analysis/LineOfSight/LineOfSightPlacementLeafPlugin.js +2 -0
  440. package/views/3d/analysis/LineOfSight/LineOfSightPlacementTool.js +1 -1
  441. package/views/3d/analysis/LineOfSight/LineOfSightReshapeTool3D.js +2 -0
  442. package/views/3d/analysis/LineOfSight/LineOfSightRootPlugin.js +1 -1
  443. package/views/3d/analysis/LineOfSight/LineOfSightTargetPlugin.js +1 -1
  444. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  445. package/views/3d/analysis/LineOfSight/LineOfSightTool2.js +1 -1
  446. package/views/3d/analysis/Viewshed/ViewshedEditTool.js +1 -1
  447. package/views/3d/analysis/Viewshed/ViewshedPlacementController.js +1 -1
  448. package/views/3d/analysis/Viewshed/ViewshedSnappingController.js +1 -1
  449. package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
  450. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementError.d.ts +1 -1
  451. package/views/3d/glTF/internal/resourceUtils.js +1 -1
  452. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  453. package/views/3d/interactive/editingTools/reshape/ReshapeTool3D.js +1 -1
  454. package/views/3d/interactive/editingTools/reshape/isSupportedObject.js +1 -1
  455. package/views/3d/interactive/editingTools/reshape/reshapeTooltipUtils3D.js +1 -1
  456. package/views/3d/interactive/editingTools/visualElementUtils.js +1 -1
  457. package/views/3d/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiles3D.js +1 -1
  458. package/views/3d/layers/FlowSubView3D.js +1 -1
  459. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  460. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  461. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  462. package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
  463. package/views/3d/terrain/OverlayManager.js +1 -1
  464. package/views/3d/webgl/RenderNode.d.ts +32 -11
  465. package/views/3d/webgl-engine/effects/glow/Glow.js +1 -1
  466. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  467. package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
  468. package/views/3d/webgl-engine/shaders/ToneMapping.glsl.js +6 -10
  469. package/views/BreakpointsOwner.d.ts +1 -1
  470. package/views/DOMContainer.d.ts +6 -6
  471. package/views/Magnifier.d.ts +1 -1
  472. package/views/MapView.d.ts +1 -1
  473. package/views/SceneView.d.ts +2 -2
  474. package/views/View2D.d.ts +62 -54
  475. package/views/Viewport2DMixin.d.ts +1 -1
  476. package/views/analysis/ElevationProfile/ElevationProfileError.d.ts +1 -1
  477. package/views/draw/plugins/PolygonPlugin.js +1 -1
  478. package/views/input/gamepad/GamepadInputDevice.d.ts +1 -1
  479. package/views/input/types.d.ts +15 -15
  480. package/views/interactive/interactiveToolUtils.js +1 -1
  481. package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
  482. package/views/interactive/snapping/LineSnapper.js +1 -1
  483. package/views/interactive/snapping/ParallelLineSnapper.js +1 -1
  484. package/views/interactive/snapping/RightAngleSnapper.js +1 -1
  485. package/views/interactive/snapping/RightAngleTriangleSnapper.js +1 -1
  486. package/views/interactive/snapping/SnappingAlgorithm.js +1 -1
  487. package/views/interactive/snapping/SnappingManager.js +1 -1
  488. package/views/interactive/snapping/snappingUtils.js +1 -1
  489. package/views/layers/FeatureLikeLayerView.d.ts +32 -5
  490. package/views/layers/FeatureLikeLayerView.js +1 -1
  491. package/views/layers/GraphicsLayerView.d.ts +6 -3
  492. package/views/layers/ImageryLayerView.d.ts +4 -0
  493. package/views/navigation/Navigation.d.ts +1 -1
  494. package/views/support/WebAssemblyRequirements.js +1 -1
  495. package/views/types.d.ts +5 -5
  496. package/webdoc/support/webdocSaveUtils.js +1 -1
  497. package/webscene/Glow.d.ts +0 -4
  498. package/widgets/BasemapGallery.d.ts +1 -1
  499. package/widgets/BasemapLayerList.d.ts +1 -1
  500. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.d.ts +10 -2
  501. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  502. package/widgets/BatchAttributeForm/ReactiveContingentValuesManager.js +1 -1
  503. package/widgets/BatchAttributeForm/attachmentUtils.d.ts +14 -0
  504. package/widgets/BatchAttributeForm/attachmentUtils.js +1 -1
  505. package/widgets/BatchAttributeForm/batchAttributeFormUtils.js +1 -1
  506. package/widgets/BatchAttributeForm/css.js +1 -1
  507. package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.d.ts +8 -6
  508. package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.js +1 -1
  509. package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
  510. package/widgets/BatchAttributeForm/inputs/RelationshipElementInput.js +1 -1
  511. package/widgets/BatchAttributeForm/inputs/support/attachmentValidationCriteriaState.d.ts +5 -0
  512. package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
  513. package/widgets/BatchAttributeForm/inputs/types.d.ts +8 -1
  514. package/widgets/BatchAttributeForm/interfaceUtils.js +1 -1
  515. package/widgets/BatchAttributeForm/rendered-content/RelationshipDetails.js +1 -1
  516. package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
  517. package/widgets/BatchAttributeForm.d.ts +10 -2
  518. package/widgets/BatchAttributeForm.js +1 -1
  519. package/widgets/Bookmarks.d.ts +1 -1
  520. package/widgets/BuildingExplorer.d.ts +1 -1
  521. package/widgets/CoordinateConversion/CoordinateConversionViewModel.d.ts +2 -2
  522. package/widgets/CoordinateConversion/CoordinateConversionViewModel.js +1 -1
  523. package/widgets/CoordinateConversion.d.ts +2 -2
  524. package/widgets/Daylight.d.ts +1 -1
  525. package/widgets/Directions.d.ts +1 -1
  526. package/widgets/Editor.d.ts +1 -1
  527. package/widgets/Feature.d.ts +1 -1
  528. package/widgets/FeatureForm.d.ts +1 -1
  529. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  530. package/widgets/FeatureTable/FieldColumn.d.ts +1 -14
  531. package/widgets/FeatureTable/Grid/Column.d.ts +1 -1
  532. package/widgets/FeatureTable/Grid/Column.js +1 -1
  533. package/widgets/FeatureTable/Grid/Grid.js +1 -1
  534. package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
  535. package/widgets/FeatureTable/Grid/GroupColumn.js +1 -1
  536. package/widgets/FeatureTable/support/ColumnTemplateBase.d.ts +1 -1
  537. package/widgets/FeatureTable.js +1 -1
  538. package/widgets/FeatureTemplates.d.ts +1 -1
  539. package/widgets/FloorFilter.d.ts +1 -1
  540. package/widgets/Fullscreen/FullscreenViewModel.d.ts +3 -3
  541. package/widgets/Fullscreen/FullscreenViewModel.js +1 -1
  542. package/widgets/Fullscreen.d.ts +3 -3
  543. package/widgets/LayerList/ListItemPanel.d.ts +5 -5
  544. package/widgets/Legend.d.ts +1 -1
  545. package/widgets/Locate/LocateViewModel.d.ts +2 -2
  546. package/widgets/Locate.d.ts +1 -1
  547. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  548. package/widgets/PanoramicViewer/utils.js +1 -1
  549. package/widgets/Popup.d.ts +1 -1
  550. package/widgets/Print/PrintViewModel.d.ts +2 -2
  551. package/widgets/Print/PrintViewModel.js +1 -1
  552. package/widgets/Print/TemplateOptions.d.ts +4 -4
  553. package/widgets/Print.d.ts +6 -6
  554. package/widgets/Search/SearchViewModel.d.ts +5 -5
  555. package/widgets/Search.d.ts +4 -4
  556. package/widgets/ShadowCast.d.ts +1 -1
  557. package/widgets/Sketch/SketchViewModel.d.ts +1 -1
  558. package/widgets/Slice.d.ts +1 -1
  559. package/widgets/TableList/ListItemPanel.d.ts +5 -5
  560. package/widgets/Track/TrackViewModel.d.ts +3 -3
  561. package/widgets/Track.d.ts +3 -3
  562. package/widgets/UtilityNetworkTrace.d.ts +1 -1
  563. package/widgets/VersionManagement/VersionManagementViewModel.d.ts +2 -2
  564. package/widgets/VideoPlayer/VideoPlayerViewModel.d.ts +7 -1
  565. package/widgets/VideoPlayer/VideoPlayerViewModel.js +1 -1
  566. package/widgets/Weather.d.ts +1 -1
  567. package/widgets/Widget.d.ts +1 -1
  568. package/widgets/support/ContingentValuesManager.js +1 -1
  569. package/widgets/support/forms/formUtils.js +1 -1
  570. package/widgets/support/types.d.ts +1 -1
  571. package/widgets/support/widget.d.ts +6 -6
  572. package/assets/esri/core/workers/chunks/02aaeaa988e9e7d65a7f.js +0 -1
  573. package/assets/esri/core/workers/chunks/07a242ea908aa8e2ba28.js +0 -1
  574. package/assets/esri/core/workers/chunks/0a780a883abfcdf0b900.js +0 -1
  575. package/assets/esri/core/workers/chunks/0fbf9bf52ecb4cd8293b.js +0 -1
  576. package/assets/esri/core/workers/chunks/119d352dd586f2bb61ec.js +0 -1
  577. package/assets/esri/core/workers/chunks/130784a27661de6b52a5.js +0 -1
  578. package/assets/esri/core/workers/chunks/145364aa20b4435294c2.js +0 -1
  579. package/assets/esri/core/workers/chunks/14c6419568d8a7a15cd6.js +0 -1
  580. package/assets/esri/core/workers/chunks/153dc2a0b08a0e44a881.js +0 -1
  581. package/assets/esri/core/workers/chunks/1595dc499a06b23b6a96.js +0 -1
  582. package/assets/esri/core/workers/chunks/16713986893adfbc9331.js +0 -1
  583. package/assets/esri/core/workers/chunks/1765042635084f75d2b3.js +0 -1
  584. package/assets/esri/core/workers/chunks/179c9fe4ac83b42e5976.js +0 -1
  585. package/assets/esri/core/workers/chunks/1c1515e020e32e177b54.js +0 -1
  586. package/assets/esri/core/workers/chunks/1c64e10f966e26af6fed.js +0 -1
  587. package/assets/esri/core/workers/chunks/1ddbf5f507ac153234be.js +0 -1
  588. package/assets/esri/core/workers/chunks/201007cf1a91e2b126fc.js +0 -1
  589. package/assets/esri/core/workers/chunks/20d0adc678f11981059c.js +0 -1
  590. package/assets/esri/core/workers/chunks/227eff8aa4a6f5f03bc2.js +0 -1
  591. package/assets/esri/core/workers/chunks/233ff588798c8a5eedf4.js +0 -1
  592. package/assets/esri/core/workers/chunks/24647e7424798dccdaf5.js +0 -1
  593. package/assets/esri/core/workers/chunks/249616ea2d90d40a8299.js +0 -1
  594. package/assets/esri/core/workers/chunks/24d9e4f1c7b8ff0d2cce.js +0 -1
  595. package/assets/esri/core/workers/chunks/24eaf1349ffe10e616e6.js +0 -1
  596. package/assets/esri/core/workers/chunks/29615df388a0df022d8c.js +0 -1
  597. package/assets/esri/core/workers/chunks/2bcd4d395bfe6a19ccc8.js +0 -1
  598. package/assets/esri/core/workers/chunks/2bd334f9ab89334df713.js +0 -1
  599. package/assets/esri/core/workers/chunks/2c8584ec1c3c9fd5aba2.js +0 -1
  600. package/assets/esri/core/workers/chunks/2d374cc8c54a722a7afe.js +0 -1
  601. package/assets/esri/core/workers/chunks/2e11b4e9d66474a60064.js +0 -1
  602. package/assets/esri/core/workers/chunks/2fa080539d039c92ce08.js +0 -1
  603. package/assets/esri/core/workers/chunks/3109b05fe4fc40d4f25b.js +0 -1
  604. package/assets/esri/core/workers/chunks/31442f25d550ead58fc4.js +0 -1
  605. package/assets/esri/core/workers/chunks/319ff04282dc8ae38b56.js +0 -2
  606. package/assets/esri/core/workers/chunks/32323b0e0fcecd8f640e.js +0 -1
  607. package/assets/esri/core/workers/chunks/330da3828eefd8d72d3f.js +0 -1
  608. package/assets/esri/core/workers/chunks/3402fb9c596b582311c7.js +0 -1
  609. package/assets/esri/core/workers/chunks/388e71e8f2ec41bfa5a9.js +0 -1
  610. package/assets/esri/core/workers/chunks/3a6678ee9990d7e83e15.js +0 -1
  611. package/assets/esri/core/workers/chunks/3aacaa1be5efeac23a37.js +0 -1
  612. package/assets/esri/core/workers/chunks/3b3986276e70297d573b.js +0 -1
  613. package/assets/esri/core/workers/chunks/3b765a8cac9e92f644f2.js +0 -1
  614. package/assets/esri/core/workers/chunks/3bf6d55511cd7722eb93.js +0 -1
  615. package/assets/esri/core/workers/chunks/3e012cd3ca4451f89f59.js +0 -1
  616. package/assets/esri/core/workers/chunks/40910c69307e2d2d3f28.js +0 -1
  617. package/assets/esri/core/workers/chunks/423a9882abd4a6dadf86.js +0 -1
  618. package/assets/esri/core/workers/chunks/428561df7ba6f02e2d80.js +0 -1
  619. package/assets/esri/core/workers/chunks/45323491f9005629c602.js +0 -1
  620. package/assets/esri/core/workers/chunks/46d0a25d33b5b328cfce.js +0 -1
  621. package/assets/esri/core/workers/chunks/46fbd519cc1a37923bfc.js +0 -1
  622. package/assets/esri/core/workers/chunks/47dd2bfecc5c4b5f10f0.js +0 -1
  623. package/assets/esri/core/workers/chunks/4845df00f6ebcce6ea3e.js +0 -1
  624. package/assets/esri/core/workers/chunks/48fcc10768d93e95a04e.js +0 -1
  625. package/assets/esri/core/workers/chunks/49f6c9e9980b8c624fd7.js +0 -1
  626. package/assets/esri/core/workers/chunks/4a9dd9f8aa98882218f3.js +0 -1
  627. package/assets/esri/core/workers/chunks/4bfffdfbe6d467f143a4.js +0 -1
  628. package/assets/esri/core/workers/chunks/4ef53455c8bc6efee80e.js +0 -1
  629. package/assets/esri/core/workers/chunks/518046d2b95a7590a092.js +0 -1
  630. package/assets/esri/core/workers/chunks/51ee6102f5f4840a5b47.js +0 -1
  631. package/assets/esri/core/workers/chunks/54dad475dc806a38c287.js +0 -1
  632. package/assets/esri/core/workers/chunks/552945a73a95cd2a9f54.js +0 -1
  633. package/assets/esri/core/workers/chunks/58155f24f8ed6aca7a21.js +0 -1
  634. package/assets/esri/core/workers/chunks/5838f46d341d2fde42ee.js +0 -1
  635. package/assets/esri/core/workers/chunks/58994b6bfcda5f2ada80.js +0 -1
  636. package/assets/esri/core/workers/chunks/592a599f514de373dead.js +0 -1
  637. package/assets/esri/core/workers/chunks/5aba23584e0b230c75f5.js +0 -1
  638. package/assets/esri/core/workers/chunks/5f9bacee6fbf9ac1bca0.js +0 -1
  639. package/assets/esri/core/workers/chunks/62206d5d497b95fc4caf.js +0 -1
  640. package/assets/esri/core/workers/chunks/624b1bb269744142b835.js +0 -1
  641. package/assets/esri/core/workers/chunks/64daa2a714e59d22bbd4.js +0 -1
  642. package/assets/esri/core/workers/chunks/65621650a53f69f7b05a.js +0 -1
  643. package/assets/esri/core/workers/chunks/6637f19b82555738a1d5.js +0 -1
  644. package/assets/esri/core/workers/chunks/6c9933f948efd7923aa1.js +0 -1
  645. package/assets/esri/core/workers/chunks/6cab67fc7044ee9b863b.js +0 -1
  646. package/assets/esri/core/workers/chunks/6db274f6767102a39021.js +0 -1
  647. package/assets/esri/core/workers/chunks/7014e73dfd3c8baa704c.js +0 -1
  648. package/assets/esri/core/workers/chunks/76589434d573111a8fb4.js +0 -1
  649. package/assets/esri/core/workers/chunks/767ea5b455b3823afd09.js +0 -1
  650. package/assets/esri/core/workers/chunks/77769663cd712822d33e.js +0 -1
  651. package/assets/esri/core/workers/chunks/77859a61d059738d057f.js +0 -1
  652. package/assets/esri/core/workers/chunks/7b564226def99fcf79d8.js +0 -1
  653. package/assets/esri/core/workers/chunks/7bbffe07e62897928773.js +0 -1
  654. package/assets/esri/core/workers/chunks/7cadfd7444a2a05cf2fb.js +0 -1
  655. package/assets/esri/core/workers/chunks/823789261ca3338f0fa8.js +0 -1
  656. package/assets/esri/core/workers/chunks/84b0b6e099d949e0fea5.js +0 -1
  657. package/assets/esri/core/workers/chunks/8c5a41ae68775bac3446.js +0 -1
  658. package/assets/esri/core/workers/chunks/8f94c90fdb0333da2d0f.js +0 -1
  659. package/assets/esri/core/workers/chunks/9133c1b7cc1c9da27deb.js +0 -1
  660. package/assets/esri/core/workers/chunks/9a6e62ef984e9c5babc4.js +0 -1
  661. package/assets/esri/core/workers/chunks/9d27cc631bab8aa7479e.js +0 -1
  662. package/assets/esri/core/workers/chunks/9dcfaca1f4fa8c8026ac.js +0 -1
  663. package/assets/esri/core/workers/chunks/9f23a61c60949459c14f.js +0 -30
  664. package/assets/esri/core/workers/chunks/a03c4c0bf138734a002e.js +0 -1
  665. package/assets/esri/core/workers/chunks/a0fa60a24e58f7a47e41.js +0 -1
  666. package/assets/esri/core/workers/chunks/a806ac351ef5da04c250.js +0 -1
  667. package/assets/esri/core/workers/chunks/ab94c9f62462d7a98f6a.js +0 -1
  668. package/assets/esri/core/workers/chunks/abdb05754c50776c3edd.js +0 -1
  669. package/assets/esri/core/workers/chunks/ad488985824fbb830ed6.js +0 -1
  670. package/assets/esri/core/workers/chunks/b08a1255dacf6cfcf139.js +0 -640
  671. package/assets/esri/core/workers/chunks/b098469e0010a6b44df9.js +0 -1
  672. package/assets/esri/core/workers/chunks/b0ac4b0b7aec70cfe6eb.js +0 -1
  673. package/assets/esri/core/workers/chunks/b1f1271434af302938e8.js +0 -1
  674. package/assets/esri/core/workers/chunks/bfbd1ca28ed2f263e58f.js +0 -1
  675. package/assets/esri/core/workers/chunks/c1b6de0d728d25d7905a.js +0 -1
  676. package/assets/esri/core/workers/chunks/c27cb2a83a1d2e004501.js +0 -1
  677. package/assets/esri/core/workers/chunks/c44be4aaba829e6d149d.js +0 -1
  678. package/assets/esri/core/workers/chunks/ca1b0cb14ea9ae1bf2a3.js +0 -1
  679. package/assets/esri/core/workers/chunks/ca4245414d8ecd217f9d.js +0 -1
  680. package/assets/esri/core/workers/chunks/cc479daacd2cf715baa8.js +0 -1
  681. package/assets/esri/core/workers/chunks/ce0e627a5e1cb78adce8.js +0 -1
  682. package/assets/esri/core/workers/chunks/cf7acf5acb6d322fd996.js +0 -1
  683. package/assets/esri/core/workers/chunks/d3af51a6d9014ff46170.js +0 -1
  684. package/assets/esri/core/workers/chunks/d561dc933d8fe1672d85.js +0 -1
  685. package/assets/esri/core/workers/chunks/d81291dac1932350eccd.js +0 -1
  686. package/assets/esri/core/workers/chunks/da3c54e27a808f4fcc18.js +0 -1
  687. package/assets/esri/core/workers/chunks/dc6d50e1097a920ff820.js +0 -1
  688. package/assets/esri/core/workers/chunks/dd58286dde3b20356f84.js +0 -1
  689. package/assets/esri/core/workers/chunks/dfeddb7b17fa9eaae64c.js +0 -1
  690. package/assets/esri/core/workers/chunks/e38836bfcc7a15a2fd1f.js +0 -1
  691. package/assets/esri/core/workers/chunks/e4e0c5a45cf32973d5d5.js +0 -1
  692. package/assets/esri/core/workers/chunks/e638391801ad83fe4a68.js +0 -1
  693. package/assets/esri/core/workers/chunks/e645f992ec6f935ee3a5.js +0 -1
  694. package/assets/esri/core/workers/chunks/e755477dc78e9d6038d4.js +0 -1
  695. package/assets/esri/core/workers/chunks/e7712467db46e1385cf4.js +0 -1
  696. package/assets/esri/core/workers/chunks/e9dcc3e9dbafe9bbed84.js +0 -1
  697. package/assets/esri/core/workers/chunks/ea8f642b1db933d2c26f.js +0 -1
  698. package/assets/esri/core/workers/chunks/eabd4a78221b7e733793.js +0 -1
  699. package/assets/esri/core/workers/chunks/ed2cb60e4f17f46fb78d.js +0 -1
  700. package/assets/esri/core/workers/chunks/edb55329305becdb204f.js +0 -1
  701. package/assets/esri/core/workers/chunks/eedee0af459e6b8a6116.js +0 -1
  702. package/assets/esri/core/workers/chunks/f05932aea4eb267cba4d.js +0 -1
  703. package/assets/esri/core/workers/chunks/f1fb2f12371f4c562079.js +0 -1
  704. package/assets/esri/core/workers/chunks/f3dfe1bd1146a6927407.js +0 -1
  705. package/assets/esri/core/workers/chunks/f79bd469b25099a31274.js +0 -1
  706. package/assets/esri/core/workers/chunks/ff48334528d2554db4fe.js +0 -1
  707. package/views/3d/analysis/LineOfSight/LineOfSightAuthoringStore.js +0 -2
  708. /package/assets/esri/core/workers/chunks/{50dc9893e13396f5e35d.js.LICENSE.txt → 62e77e3c5ca9b4887923.js.LICENSE.txt} +0 -0
  709. /package/assets/esri/core/workers/chunks/{319ff04282dc8ae38b56.js.LICENSE.txt → 68f9b2da1fd08785320f.js.LICENSE.txt} +0 -0
  710. /package/assets/esri/core/workers/chunks/{c216cd5d6b5d4fe4bab3.js.LICENSE.txt → 9629601de5e44ffe90ea.js.LICENSE.txt} +0 -0
  711. /package/assets/esri/core/workers/chunks/{8244b74e9c3a30d8d2f6.js.LICENSE.txt → d9d4754062758789f186.js.LICENSE.txt} +0 -0
  712. /package/assets/esri/core/workers/chunks/{d1ccc5f2d8892328ab01.js.LICENSE.txt → f5731ad4cfbbf1cc569a.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1698,5841],{24045(e,t,r){function n(e,t){const r=e.count;t||(t=new e.TypedArrayConstructor(r));for(let n=0;n<r;n++)t[n]=e.get(n);return t}r.d(t,{m:()=>n}),Object.freeze(Object.defineProperty({__proto__:null,makeDense:n},Symbol.toStringTag,{value:"Module"}))},43609(e,t,r){r.d(t,{a:()=>s,f:()=>a,n:()=>o});var n=r(34275);function o(e,t){s(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function s(e,t,r=2,o=r){const s=t.length/2;let a=0,i=0;if(!(0,n.iu)(t)||(0,n.dk)(t)){for(let n=0;n<s;++n)e[a]=t[i],e[a+1]=t[i+1],a+=r,i+=o;return}const u=(0,n.a3)(t);if((0,n.JI)(t))for(let n=0;n<s;++n)e[a]=Math.max(t[i]/u,-1),e[a+1]=Math.max(t[i+1]/u,-1),a+=r,i+=o;else for(let n=0;n<s;++n)e[a]=t[i]/u,e[a+1]=t[i+1]/u,a+=r,i+=o}function a(e,t,r,n){const o=e.typedBuffer,s=e.typedBufferStride,a=n?.count??e.count;let i=(n?.dstIndex??0)*s;for(let e=0;e<a;++e)o[i]=t,o[i+1]=r,i+=s}Object.freeze(Object.defineProperty({__proto__:null,fill:a,normalizeIntegerBuffer:s,normalizeIntegerBufferView:o},Symbol.toStringTag,{value:"Module"}))},46140(e,t,r){r.d(t,{A:()=>o});var n=r(49186);class o{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new n.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new o(this.major,this.minor,this._context)}static parse(e,t=""){const[r,s]=e.split("."),a=/^\s*\d+\s*$/;if(!r?.match||!a.test(r))throw new n.A((t&&t+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e});if(!s?.match||!a.test(s))throw new n.A((t&&t+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e});const i=parseInt(r,10),u=parseInt(s,10);return new o(i,u,t)}}},35841(e,t,r){r.r(t),r.d(t,{loadGLTFMesh:()=>L});var n=r(68197),o=r(40876),s=r(49186),a=r(91869),i=r(34727),u=r(77690),l=r(29242),c=r(51850),f=r(91829),d=r(16939),p=r(80882),m=r(35063),h=r(51147),g=r(1193),y=r(27615),T=r(13030),w=r(73354),x=r(50867),b=r(90239);Object.freeze(Object.defineProperty({__proto__:null,copy:function(e,t,r){const n=e.typedBuffer,o=e.typedBufferStride,s=t.typedBuffer,a=t.typedBufferStride,i=r?r.count:t.count;let u=(r?.dstIndex??0)*o,l=(r?.srcIndex??0)*a;for(let e=0;e<i;++e){for(let e=0;e<9;++e)n[u+e]=s[l+e];u+=o,l+=a}}},Symbol.toStringTag,{value:"Module"})),Object.freeze(Object.defineProperty({__proto__:null,copy:function(e,t,r){const n=e.typedBuffer,o=e.typedBufferStride,s=t.typedBuffer,a=t.typedBufferStride,i=r?r.count:t.count;let u=(r?.dstIndex??0)*o,l=(r?.srcIndex??0)*a;for(let e=0;e<i;++e){for(let e=0;e<16;++e)n[u+e]=s[l+e];u+=o,l+=a}}},Symbol.toStringTag,{value:"Module"})),r(24045);var _=r(43609);function S(e,t,r=3,n=r){const o=t.length/n;let s=0,a=0;for(let i=0;i<o;++i)e[s]=t[a],e[s+1]=t[a+1],e[s+2]=t[a+2],s+=r,a+=n}function v(e,t,r,n,o){const s=e.typedBuffer,a=e.typedBufferStride,i=o?.count??e.count;let u=(o?.dstIndex??0)*a;for(let e=0;e<i;++e)s[u]=t,s[u+1]=r,s[u+2]=n,u+=a}function A(e,t,r=4){const n=t.typedBuffer,o=t.typedBufferStride,s=t.count;let a=0,i=0;for(let t=0;t<s;++t)e[a]=n[i],e[a+1]=n[i+1],e[a+2]=n[i+2],e[a+3]=n[i+3],a+=r,i+=o}function O(e,t,r,n,o,s){const a=e.typedBuffer,i=e.typedBufferStride,u=s?.count??e.count;let l=(s?.dstIndex??0)*i;for(let e=0;e<u;++e)a[l]=t,a[l+1]=r,a[l+2]=n,a[l+3]=o,l+=i}function R(e,t){return new e(new ArrayBuffer(t*e.ElementCount*(0,b.GJ)(e.ElementType)))}Object.freeze(Object.defineProperty({__proto__:null,copy:S,copyView:function(e,t){S(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)},fill:v},Symbol.toStringTag,{value:"Module"})),Object.freeze(Object.defineProperty({__proto__:null,copy:A,copyView:function(e,t){A(e.typedBuffer,t,e.typedBufferStride)},fill:O},Symbol.toStringTag,{value:"Module"}));var C=r(72258),N=r(21015),E=r(51698),I=r(84498),B=r(51530);async function L(e,t,r){const o=new N.R(r?.resolveFile),u=await(0,E.loadGLTF)(o,t,r),l=u.model,d=l.lods.shift(),w=new Map,x=new Map;l.textures.forEach((e,t)=>w.set(t,function(e){return new m.default({data:((0,B.x3)(e.data),e.data),wrap:j(e.parameters.wrap)})}(e))),l.materials.forEach((e,t)=>x.set(t,function(e,t){const r=new n.A(function(e,t){return(0,f.fA)(P(e[0]),P(e[1]),P(e[2]),t)}(e.color,e.opacity)),o=e.emissiveFactor?new n.A(function(e){return(0,c.fA)(P(e[0]),P(e[1]),P(e[2]))}(e.emissiveFactor)):null,s=e=>e?new h.A({scale:e.scale?[e.scale[0],e.scale[1]]:[1,1],rotation:(0,i.KJ)(e.rotation??0),offset:e.offset?[e.offset[0],e.offset[1]]:[0,0]}):null;return new p.A({color:r,colorTexture:t.get(e.colorTexture),normalTexture:t.get(e.normalTexture),emissiveColor:o,emissiveStrength:e.emissiveStrengthKHR,emissiveTexture:t.get(e.emissiveTexture),occlusionTexture:t.get(e.occlusionTexture),alphaMode:D(e.alphaMode),alphaCutoff:e.alphaCutoff,doubleSided:e.doubleSided,metallic:e.metallicFactor,roughness:e.roughnessFactor,metallicRoughnessTexture:t.get(e.metallicRoughnessTexture),colorTextureTransform:s(e.colorTextureTransform),normalTextureTransform:s(e.normalTextureTransform),occlusionTextureTransform:s(e.occlusionTextureTransform),emissiveTextureTransform:s(e.emissiveTextureTransform),metallicRoughnessTextureTransform:s(e.metallicRoughnessTextureTransform)})}(e,w)));const b=function(e){let t=0;const r={color:!1,tangent:!1,normal:!1,texCoord0:!1},n=new Map,o=new Map,s=[];for(const i of e.parts){const{position:e,normal:u,color:l,tangent:c,texCoord0:f}=i.attributes,d=`\n ${M(e,n)}/\n ${M(u,n)}/\n ${M(l,n)}/\n ${M(c,n)}/\n ${M(f,n)}/\n ${F(i.transform)}\n `;let p=!1;const m=(0,a.tE)(o,d,()=>(p=!0,{start:t,length:e.count}));p&&(t+=e.count),u&&(r.normal=!0),l&&(r.color=!0),c&&(r.tangent=!0),f&&(r.texCoord0=!0),s.push({gltf:i,writeVertices:p,region:m})}return{vertexAttributes:{position:R(T.Xm,t),normal:r.normal?R(T.xs,t):null,tangent:r.tangent?R(T.Eq,t):null,color:r.color?R(T.XP,t):null,texCoord0:r.texCoord0?R(T.gH,t):null},parts:s,components:[]}}(d);for(const e of b.parts)U(b,e,x);const{position:_,normal:S,tangent:v,color:A,texCoord0:O}=b.vertexAttributes,I=(0,y.TE)(e,r),L=e.spatialReference.isGeographic?(0,y.TE)(e):I,G=(0,C.UR)({vertexAttributes:{position:_.typedBuffer,normal:S?.typedBuffer,tangent:v?.typedBuffer},vertexSpace:L,spatialReference:e.spatialReference},I,{allowBufferReuse:!0,sourceUnit:r?.unitConversionDisabled?void 0:"meters"});if(!G)throw new s.A("load-gltf-mesh:vertex-space-projection",`Failed to load mesh from glTF because we could not convert the vertex space from ${L.type} to ${I.type}`);return{mesh:{transform:null,vertexSpace:I,components:b.components,spatialReference:e.spatialReference,vertexAttributes:new g.default({...G,color:A?.typedBuffer,uv:O?.typedBuffer})},meta:u.meta}}function M(e,t){if(null==e)return"-";const r=e.typedBuffer;return`${(0,a.tE)(t,r.buffer,()=>t.size)}/${r.byteOffset}/${r.byteLength}`}function F(e){return null!=e?e.toString():"-"}function U(e,t,r){t.writeVertices&&function(e,t){const{position:r,normal:n,tangent:o,color:s,texCoord0:a}=e.vertexAttributes,c=t.region.start,{attributes:f,transform:d}=t.gltf,p=f.position.count;if((0,w.c)(r.slice(c,p),f.position,d),null!=f.normal&&null!=n){const e=(0,u.Ge)((0,l.vt)(),d),t=n.slice(c,p);(0,w.d)(t,f.normal,e),(0,i.or)(e)&&(0,w.e)(t,t)}else null!=n&&v(n,0,0,1,{dstIndex:c,count:p});if(null!=f.tangent&&null!=o){const e=(0,u.z0)((0,l.vt)(),d),t=o.slice(c,p);(0,x.a)(t,f.tangent,e),(0,i.or)(e)&&(0,x.n)(t,t)}else null!=o&&O(o,0,0,1,1,{dstIndex:c,count:p});if(null!=f.texCoord0&&null!=a?(0,_.n)(a.slice(c,p),f.texCoord0):null!=a&&(0,_.f)(a,0,0,{dstIndex:c,count:p}),null!=f.color&&null!=s){const e=f.color,t=s.slice(c,p);if(4===e.elementCount)e instanceof T.Eq?(0,x.l)(t,e,1,255):(e instanceof T.XP||e instanceof T.Uz)&&(0,x.l)(t,e,1/255,255);else{O(t,255,255,255,255);const r=T.eI.fromTypedArray(t.typedBuffer,t.typedBufferStride);e instanceof T.xs?(0,w.l)(r,e,1,255):(e instanceof T.eI||e instanceof T.nS)&&(0,w.l)(r,e,1/255,255)}}else null!=s&&O(s.slice(c,p),255,255,255,255)}(e,t);const{indices:n,attributes:o,primitiveType:s,material:a}=t.gltf;let c=(0,I.x)(n||o.position.count,s);const f=t.region.start;if(f){const e=new Uint32Array(c);for(let t=0;t<c.length;t++)e[t]+=f;c=e}e.components.push(new d.default({name:t.gltf.name,faces:c,material:r.get(a),shading:o.normal?"source":"flat",trustSourceNormals:!0}))}function D(e){switch(e){case"OPAQUE":return"opaque";case"MASK":return"mask";case"BLEND":return"blend"}}function j(e){return{horizontal:G(e.s),vertical:G(e.t)}}function G(e){switch(e){case 33071:return"clamp";case 33648:return"mirror";case 10497:return"repeat"}}function P(e){return e**(1/o.Tf)*255}},21015(e,t,r){r.d(t,{R:()=>u});var n=r(11254),o=r(60999),s=r(49186),a=r(17676),i=r(84952);class u{constructor(e=e=>e){this._resolveURI=e}async loadJSON(e,t){return this._load("json",e,t)}async loadBinary(e,t){return(0,i.DB)(e)?((0,a.Te)(t),(0,i.lJ)(e)):this._load("array-buffer",e,t)}async loadImage(e,t){return this._load("image",e,t)}async _load(e,t,r){t=this._resolveURI(t);const i=await(0,o.Ke)((0,n.A)(t,{responseType:e,...r}));if(i.ok)return i.value.data;throw(0,a.QP)(i.error),new s.A("gltf-loader-request-error",`Request for resource failed: ${i.error}`)}}},84498(e,t,r){r.d(t,{x:()=>a});var n=r(34275),o=r(97146),s=r(63907);function a(e,t){switch(t){case s.WR.TRIANGLES:return function(e){return"number"==typeof e?(0,o.tM)(e):(0,n.mg)(e)?new Uint16Array(e):e}(e);case s.WR.TRIANGLE_STRIP:return function(e){const t="number"==typeof e?e:e.length;if(t<3)return[];const r=t-2,n=(0,o.my)(3*r);if("number"==typeof e){let e=0;for(let t=0;t<r;t+=1)t%2==0?(n[e++]=t,n[e++]=t+1,n[e++]=t+2):(n[e++]=t+1,n[e++]=t,n[e++]=t+2)}else{let t=0;for(let o=0;o<r;o+=1)o%2==0?(n[t++]=e[o],n[t++]=e[o+1],n[t++]=e[o+2]):(n[t++]=e[o+1],n[t++]=e[o],n[t++]=e[o+2])}return n}(e);case s.WR.TRIANGLE_FAN:return function(e){const t="number"==typeof e?e:e.length;if(t<3)return new Uint16Array(0);const r=t-2,n=r<=65536?new Uint16Array(3*r):new Uint32Array(3*r);if("number"==typeof e){let e=0;for(let t=0;t<r;++t)n[e++]=0,n[e++]=t+1,n[e++]=t+2;return n}const o=e[0];let s=e[1],a=0;for(let t=0;t<r;++t){const r=e[t+2];n[a++]=o,n[a++]=s,n[a++]=r,s=r}return n}(e)}}},51530(e,t,r){r.d(t,{KB:()=>a,Xi:()=>o,pn:()=>i,x3:()=>s});var n=r(44208);class o{constructor(e){this.data=e,this.type="encoded-mesh-texture",this.encoding="image/ktx2"}}function s(e){return"encoded-mesh-texture"===e?.type}async function a(e){const t=new Blob([e]),r=await t.text();return JSON.parse(r)}async function i(e,t){if("image/ktx2"===t)return new o(e);const r=new Blob([e],{type:t});let s=URL.createObjectURL(r);switch(t){case"image/jpeg":s+="#.jpg";break;case"image/png":s+="#.png"}const a=new Image;if((0,n.A)("esri-iPhone"))return new Promise((e,t)=>{const r=()=>{o(),e(a)},n=e=>{o(),t(e)},o=()=>{URL.revokeObjectURL(s),a.removeEventListener("load",r),a.removeEventListener("error",n)};a.addEventListener("load",r),a.addEventListener("error",n),a.src=s});try{a.src=s,await a.decode()}catch{}return URL.revokeObjectURL(s),a}},51698(e,t,r){r.d(t,{loadGLTF:()=>G});var n=r(53966),o=r(93637),s=r(9093),a=r(49186),i=r(91869),u=r(17676),l=r(84952),c=r(46140),f=r(58083),d=r(67026),p=r(82534),m=r(13030),h=r(24045),g=r(2741);let y;function T(){return y??=(async()=>{const{default:e}=await r.e(2423).then(r.bind(r,2423));return await e({locateFile:e=>(0,g.s)(`esri/libs/dracoMeshDecoder/${e}`)})})(),y}class w{constructor(e){this._data=e,this._offset4=0,this._dataUint32=new Uint32Array(this._data,0,Math.floor(this._data.byteLength/4))}readUint32(){const e=this._offset4;return this._offset4+=1,this._dataUint32[e]}readUint8Array(e){const t=4*this._offset4;return this._offset4+=e/4,new Uint8Array(this._data,t,e)}remainingBytes(){return this._data.byteLength-4*this._offset4}}const x={baseColorFactor:[1,1,1,1],metallicFactor:1,roughnessFactor:1},b={pbrMetallicRoughness:x,emissiveFactor:[0,0,0],alphaMode:"OPAQUE",alphaCutoff:.5,doubleSided:!1},_={ESRI_externalColorMixMode:"tint",ESRI_receiveShadows:!0,ESRI_receiveAmbientOcclusion:!0},S=(e={})=>{const t={...x,...e.pbrMetallicRoughness},r=function(e){switch(e.ESRI_externalColorMixMode){case"multiply":case"tint":case"ignore":case"replace":break;default:e.ESRI_externalColorMixMode,e.ESRI_externalColorMixMode="tint"}return e}({..._,...e.extras});return{...b,...e,pbrMetallicRoughness:t,extras:r}},v={magFilter:9729,minFilter:9987,wrapS:10497,wrapT:10497};var A=r(51530),O=r(63907);const R=1179937895;class C{constructor(e,t,r,n){if(this._context=e,this.uri=t,this.json=r,this._glbBuffer=n,this._bufferLoaders=new Map,this._textureLoaders=new Map,this._dracoBuffersSize=0,this._textureCache=new Map,this._materialCache=new Map,this._nodeParentMap=new Map,this._nodeTransformCache=new Map,this._supportedExtensions=["KHR_texture_basisu","KHR_texture_transform","KHR_draco_mesh_compression","KHR_materials_emissive_strength"],this._baseUri=function(e){let t,r;return e.replace(/^(.*\/)?([^/]*)$/,(e,n,o)=>(t=n||"",r=o||"","")),{dirPart:t,filePart:r}}(this.uri).dirPart,this._checkVersionSupported(),this._checkRequiredExtensionsSupported(),null==r.scenes)throw new a.A("gltf-loader-unsupported-feature","Scenes must be defined.");if(null==r.meshes)throw new a.A("gltf-loader-unsupported-feature","Meshes must be defined");if(null==r.nodes)throw new a.A("gltf-loader-unsupported-feature","Nodes must be defined.");this._computeNodeParents()}static async load(e,t,r){if((0,l.DB)(t)){const r=(0,l.r$)(t);if(r&&"model/gltf-binary"!==r.mediaType)try{const n=JSON.parse(r.isBase64?atob(r.data):r.data);return new C(e,t,n)}catch{}const n=(0,l.lJ)(t);if(C._isGLBData(n))return this._fromGLBData(e,t,n)}if(U.test(t)||"gltf"===r?.expectedType){const n=await e.loadJSON(t,r);return new C(e,t,n)}const n=await e.loadBinary(t,r);if(C._isGLBData(n))return this._fromGLBData(e,t,n);if(D.test(t)||"glb"===r?.expectedType)throw new a.A("gltf-loader-invalid-glb","This is not a valid glb file.");const o=await e.loadJSON(t,r);return new C(e,t,o)}static _isGLBData(e){if(null==e)return!1;const t=new w(e);return t.remainingBytes()>=4&&t.readUint32()===R}static async _fromGLBData(e,t,r){const n=await C._parseGLBData(r);return new C(e,t,n.json,n.binaryData)}static async _parseGLBData(e){const t=new w(e);if(t.remainingBytes()<12)throw new a.A("gltf-loader-error","glb binary data is insufficiently large.");const r=t.readUint32(),o=t.readUint32(),s=t.readUint32();if(r!==R)throw new a.A("gltf-loader-error","Magic first 4 bytes do not fit to expected glb value.");if(e.byteLength<s)throw new a.A("gltf-loader-error","glb binary data is smaller than header specifies.");if(2!==o)throw new a.A("gltf-loader-unsupported-feature","An unsupported glb container version was detected. Only version 2 is supported.");let i,u,l=0;for(;t.remainingBytes()>=8;){const e=t.readUint32(),r=t.readUint32();if(0===l){if(1313821514!==r)throw new a.A("gltf-loader-error","First glb chunk must be JSON.");if(e<0)throw new a.A("gltf-loader-error","No JSON data found.");i=await(0,A.KB)(t.readUint8Array(e))}else if(1===l){if(5130562!==r)throw new a.A("gltf-loader-unsupported-feature","Second glb chunk expected to be BIN.");u=t.readUint8Array(e)}else n.A.getLogger("esri.views.3d.glTF").warn("[Unsupported Feature] More than 2 glb chunks detected. Skipping.");l+=1}if(!i)throw new a.A("gltf-loader-error","No glb JSON chunk detected.");return{json:i,binaryData:u}}async getBuffer(e,t){const r=this.json.buffers[e];if(null==r.uri){if(null==this._glbBuffer)throw new a.A("gltf-loader-error","glb buffer not present");return this._glbBuffer}const n=await this._getBufferLoader(e,t);if(n.byteLength!==r.byteLength)throw new a.A("gltf-loader-error","Buffer byte lengths should match.");return n}async _getBufferLoader(e,t){const r=this._bufferLoaders.get(e);if(r)return r;const n=this.json.buffers[e].uri,o=this._context.loadBinary(this._resolveUri(n),t).then(e=>new Uint8Array(e));return this._bufferLoaders.set(e,o),o}_validateAccessor(e){if(!this.json.accessors)throw new a.A("gltf-loader-unsupported-feature","Accessors missing.");const t=this.json.accessors[e];if(t.type in["MAT2","MAT3","MAT4"])throw new a.A("gltf-loader-unsupported-feature",`AttributeType ${t.type} is not supported`);return t}_getComponentInfo(e,t){const r=B[e.type],n=t?.componentType||e.componentType,o=L[n];return{componentType:n,componentCount:r,componentByteSize:o,denseByteStride:r*o}}getDracoAccessor(e,t){const r=this._validateAccessor(e),n=t.accessorInfos.get(e),{componentType:o,componentCount:s,componentByteSize:a,denseByteStride:i}=this._getComponentInfo(r,n);return{raw:t.data.buffer,byteStride:i,byteOffset:t.data.byteOffset+(n?.byteOffset||0),entryCount:n?.count??r.count,isDenselyPacked:!0,componentCount:s,componentByteSize:a,componentType:o,min:r.min,max:r.max,normalized:!!r.normalized}}async getAccessor(e,t){const r=this._validateAccessor(e);if(null==r?.bufferView)throw new a.A("gltf-loader-unsupported-feature","Some accessor does not specify a bufferView.");const{componentCount:n,componentByteSize:o,denseByteStride:s}=this._getComponentInfo(r),i=this.json.bufferViews[r.bufferView],u=await this.getBuffer(i.buffer,t),l=i.byteStride||s;return{raw:u.buffer,byteStride:l,byteOffset:u.byteOffset+(i.byteOffset||0)+(r.byteOffset||0),entryCount:r.count,isDenselyPacked:l===s,componentCount:n,componentByteSize:o,componentType:r.componentType,min:r.min,max:r.max,normalized:!!r.normalized}}async getIndexData(e,t,r){if(null==e.indices)return;const n=e.indices,o=r?this.getDracoAccessor(n,r):await this.getAccessor(n,t);if(o.isDenselyPacked)switch(o.componentType){case O.pe.UNSIGNED_BYTE:return new Uint8Array(o.raw,o.byteOffset,o.entryCount);case O.pe.UNSIGNED_SHORT:return new Uint16Array(o.raw,o.byteOffset,o.entryCount);case O.pe.UNSIGNED_INT:return new Uint32Array(o.raw,o.byteOffset,o.entryCount)}else switch(o.componentType){case O.pe.UNSIGNED_BYTE:return(0,h.m)(M(m.SL,o));case O.pe.UNSIGNED_SHORT:return(0,h.m)(M(m.h,o));case O.pe.UNSIGNED_INT:return(0,h.m)(M(m.P,o))}}async getPositionData(e,t,r){if(null==e.attributes.POSITION)throw new a.A("gltf-loader-unsupported-feature","No POSITION vertex data found.");const n=e.attributes.POSITION,s=r?this.getDracoAccessor(n,r):await this.getAccessor(n,t);if(s.componentType!==O.pe.FLOAT)throw new a.A("gltf-loader-unsupported-feature","Expected type FLOAT for POSITION vertex attribute, but found "+(0,o.i7)(O.pe,s.componentType));if(3!==s.componentCount)throw new a.A("gltf-loader-unsupported-feature","POSITION vertex attribute must have 3 components, but found "+s.componentCount.toFixed());return M(m.xs,s)}async getNormalData(e,t,r){if(null==e.attributes.NORMAL)throw new a.A("gltf-loader-error","No NORMAL vertex data found.");const n=e.attributes.NORMAL,s=r?this.getDracoAccessor(n,r):await this.getAccessor(n,t);if(s.componentType!==O.pe.FLOAT)throw new a.A("gltf-loader-unsupported-feature","Expected type FLOAT for NORMAL vertex attribute, but found "+(0,o.i7)(O.pe,s.componentType));if(3!==s.componentCount)throw new a.A("gltf-loader-unsupported-feature","NORMAL vertex attribute must have 3 components, but found "+s.componentCount.toFixed());return M(m.xs,s)}async getTangentData(e,t,r){if(null==e.attributes.TANGENT)throw new a.A("gltf-loader-error","No TANGENT vertex data found.");const n=e.attributes.TANGENT,s=r?this.getDracoAccessor(n,r):await this.getAccessor(n,t);if(s.componentType!==O.pe.FLOAT)throw new a.A("gltf-loader-unsupported-feature","Expected type FLOAT for TANGENT vertex attribute, but found "+(0,o.i7)(O.pe,s.componentType));if(4!==s.componentCount)throw new a.A("gltf-loader-unsupported-feature","TANGENT vertex attribute must have 4 components, but found "+s.componentCount.toFixed());return M(m.Eq,s)}async getTextureCoordinates(e,t,r){if(null==e.attributes.TEXCOORD_0)throw new a.A("gltf-loader-error","No TEXCOORD_0 vertex data found.");const n=e.attributes.TEXCOORD_0,o=r?this.getDracoAccessor(n,r):await this.getAccessor(n,t);if(2!==o.componentCount)throw new a.A("gltf-loader-unsupported-feature","TEXCOORD_0 vertex attribute must have 2 components, but found "+o.componentCount.toFixed());if(o.componentType===O.pe.FLOAT)return M(m.gH,o);if(!o.normalized)throw new a.A("gltf-loader-unsupported-feature","Integer component types are only supported for a normalized accessor for TEXCOORD_0.");return function(e){switch(e.componentType){case O.pe.BYTE:return new m.D6(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case O.pe.UNSIGNED_BYTE:return new m.LC(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case O.pe.SHORT:return new m.mJ(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case O.pe.UNSIGNED_SHORT:return new m.Yi(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case O.pe.UNSIGNED_INT:return new m.An(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case O.pe.FLOAT:return new m.gH(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount)}}(o)}async getVertexColors(e,t,r){if(null==e.attributes.COLOR_0)throw new a.A("gltf-loader-error","No COLOR_0 vertex data found.");const n=e.attributes.COLOR_0,s=r?this.getDracoAccessor(n,r):await this.getAccessor(n,t);if(4!==s.componentCount&&3!==s.componentCount)throw new a.A("gltf-loader-unsupported-feature","COLOR_0 attribute must have 3 or 4 components, but found "+s.componentCount.toFixed());if(4===s.componentCount){if(s.componentType===O.pe.FLOAT)return M(m.Eq,s);if(s.componentType===O.pe.UNSIGNED_BYTE)return M(m.XP,s);if(s.componentType===O.pe.UNSIGNED_SHORT)return M(m.Uz,s)}else if(3===s.componentCount){if(s.componentType===O.pe.FLOAT)return M(m.xs,s);if(s.componentType===O.pe.UNSIGNED_BYTE)return M(m.eI,s);if(s.componentType===O.pe.UNSIGNED_SHORT)return M(m.nS,s)}throw new a.A("gltf-loader-unsupported-feature","Unsupported component type for COLOR_0 attribute: "+(0,o.i7)(O.pe,s.componentType))}hasPositions(e){return void 0!==e.attributes.POSITION}hasNormals(e){return void 0!==e.attributes.NORMAL}hasVertexColors(e){return void 0!==e.attributes.COLOR_0}hasTextureCoordinates(e){return void 0!==e.attributes.TEXCOORD_0}hasTangents(e){return void 0!==e.attributes.TANGENT}async getMaterial(e,t,r,n){let o=e.material?this._materialCache.get(e.material):void 0;if(!o){const s=null!=e.material?S(this.json.materials[e.material]):S(),a=s.pbrMetallicRoughness,i=this.hasVertexColors(e),u=this.getTexture(a.baseColorTexture,t),l=this.getTexture(s.normalTexture,t),c=r?this.getTexture(s.occlusionTexture,t):void 0,f=n?this.getTexture(s.emissiveTexture,t):void 0,d=r?this.getTexture(a.metallicRoughnessTexture,t):void 0,p=null!=e.material?e.material:-1;o={alphaMode:s.alphaMode,alphaCutoff:s.alphaCutoff,color:a.baseColorFactor,doubleSided:!!s.doubleSided,colorTexture:await u,normalTexture:await l,name:s.name,id:p,occlusionTexture:await c,emissiveTexture:await f,emissiveFactor:s.emissiveFactor,emissiveStrengthKHR:s.extensions?.KHR_materials_emissive_strength?.emissiveStrength,metallicFactor:a.metallicFactor,roughnessFactor:a.roughnessFactor,metallicRoughnessTexture:await d,hasVertexColors:i,ESRI_externalColorMixMode:s.extras.ESRI_externalColorMixMode,colorTextureTransform:a?.baseColorTexture?.extensions?.KHR_texture_transform,normalTextureTransform:s.normalTexture?.extensions?.KHR_texture_transform,occlusionTextureTransform:s.occlusionTexture?.extensions?.KHR_texture_transform,emissiveTextureTransform:s.emissiveTexture?.extensions?.KHR_texture_transform,metallicRoughnessTextureTransform:a?.metallicRoughnessTexture?.extensions?.KHR_texture_transform,receiveAmbientOcclusion:s.extras.ESRI_receiveAmbientOcclusion,receiveShadows:s.extras.ESRI_receiveShadows}}return o}async decode(e,t){const r=e.extensions?.KHR_draco_mesh_compression;if(!r)return;if(null==e.indices)throw new a.A("gltf-loader-error","Found Draco compressed primitive without indices.");const n=this.json.bufferViews[r.bufferView],o=await this.getBuffer(n.buffer,t),s=(await T()).decode(new Uint8Array(o.buffer,o.byteOffset+(n.byteOffset||0),n.byteLength));this._bufferLoaders.delete(n.buffer);const i=new Map([[e.indices,s.indices],[e.attributes.POSITION,s.positions]]);return e.attributes.TEXCOORD_0&&i.set(e.attributes.TEXCOORD_0,s.uvs),e.attributes.NORMAL&&i.set(e.attributes.NORMAL,s.normals),e.attributes.COLOR_0&&i.set(e.attributes.COLOR_0,s.colors),e.attributes.TANGENT&&i.set(e.attributes.TANGENT,s.tangents),this._dracoBuffersSize+=s.buffer.byteLength,{data:s.buffer,accessorInfos:i}}async getTexture(e,t){if(!e)return;if(0!==(e.texCoord||0))throw new a.A("gltf-loader-unsupported-feature","Only TEXCOORD with index 0 is supported.");const r=e.index,n=this.json.textures[r],o=(e=>({...v,...e}))(null!=n.sampler?this.json.samplers[n.sampler]:{}),s=F(n),u=this.json.images[s],l=await this._loadTextureImageData(r,n,t);return(0,i.tE)(this._textureCache,r,()=>{const e=e=>33071===e||33648===e||10497===e,t=e=>{throw new a.A("gltf-loader-error",`Unexpected TextureSampler WrapMode: ${e}`)};return{data:l,wrapS:e(o.wrapS)?o.wrapS:t(o.wrapS),wrapT:e(o.wrapT)?o.wrapT:t(o.wrapT),minFilter:o.minFilter,name:u.name,id:r}})}getNodeTransform(e){if(void 0===e)return N;let t=this._nodeTransformCache.get(e);if(!t){const r=this.getNodeTransform(this._getNodeParent(e)),n=this.json.nodes[e];n.matrix?t=(0,f.lw)((0,s.vt)(),r,n.matrix):n.translation||n.rotation||n.scale?(t=(0,s.o8)(r),n.translation&&(0,f.Tl)(t,t,n.translation),n.rotation&&(I[3]=(0,d.Xd)(I,n.rotation),(0,f.e$)(t,t,I[3],I)),n.scale&&(0,f.hs)(t,t,n.scale)):t=(0,s.o8)(r),this._nodeTransformCache.set(e,t)}return t}_resolveUri(e){return(0,l.s2)(e,this._baseUri)}_getNodeParent(e){return this._nodeParentMap.get(e)}_checkVersionSupported(){const e=c.A.parse(this.json.asset.version,"glTF");E.validate(e)}_checkRequiredExtensionsSupported(){const e=this.json;if(e.extensionsRequired&&!e.extensionsRequired.every(e=>this._supportedExtensions.includes(e)))throw new a.A("gltf-loader-unsupported-feature","gltf loader was not able to load unsupported feature. Required extensions: "+e.extensionsRequired.join(", "))}_computeNodeParents(){this.json.nodes.forEach((e,t)=>{e.children&&e.children.forEach(e=>{this._nodeParentMap.set(e,t)})})}async _loadTextureImageData(e,t,r){const n=this._textureLoaders.get(e);if(n)return n;const o=this._createTextureLoader(t,r);return this._textureLoaders.set(e,o),o}async _createTextureLoader(e,t){const r=F(e),n=this.json.images[r];if(n.uri){if(n.uri.endsWith(".ktx2")){const e=await this._context.loadBinary(this._resolveUri(n.uri),t);return new A.Xi(new Uint8Array(e))}return this._context.loadImage(this._resolveUri(n.uri),t)}if(null==n.bufferView)throw new a.A("gltf-loader-unsupported-feature","Image bufferView must be defined.");if(null==n.mimeType)throw new a.A("gltf-loader-unsupported-feature","Image mimeType must be defined.");const o=this.json.bufferViews[n.bufferView],s=await this.getBuffer(o.buffer,t);if(null!=o.byteStride)throw new a.A("gltf-loader-unsupported-feature","byteStride not supported for image buffer");const i=s.byteOffset+(o.byteOffset||0);return(0,A.pn)(new Uint8Array(s.buffer,i,o.byteLength),n.mimeType)}async getLoadedBuffersSize(){if(this._glbBuffer)return this._glbBuffer.byteLength;const e=await(0,u.nA)(Array.from(this._bufferLoaders.values())),t=await(0,u.nA)(Array.from(this._textureLoaders.values()));return e.reduce((e,t)=>e+(t?.byteLength??0),0)+this._dracoBuffersSize+t.reduce((e,t)=>e+(t?(0,A.x3)(t)?t.data.byteLength:t.width*t.height*4:0),0)}}const N=(0,f.hM)((0,s.vt)(),Math.PI/2),E=new c.A(2,0,"glTF"),I=(0,p.vt)(),B={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},L={[O.pe.BYTE]:1,[O.pe.UNSIGNED_BYTE]:1,[O.pe.SHORT]:2,[O.pe.UNSIGNED_SHORT]:2,[O.pe.HALF_FLOAT]:2,[O.pe.FLOAT]:4,[O.pe.INT]:4,[O.pe.UNSIGNED_INT]:4};function M(e,t){return new e(t.raw,t.byteOffset,t.byteStride,t.byteOffset+t.byteStride*(t.entryCount-1)+t.componentByteSize*t.componentCount)}function F(e){if(null!=e.extensions?.KHR_texture_basisu)return e.extensions.KHR_texture_basisu.source;if(null!==e.source)return e.source;throw new a.A("gltf-loader-unsupported-feature","Source is expected to be defined for a texture. It can also be omitted in favour of an KHR_texture_basisu extension tag.")}const U=/\.gltf$/i,D=/\.glb$/i;let j=0;async function G(e,t,r={},a=!0,i=!0){const u=await C.load(e,t,r),l="gltf_"+j++,c={lods:[],materials:new Map,textures:new Map,meta:P(u)},f=!(!u.json.asset.extras||"symbolResource"!==u.json.asset.extras.ESRI_type),d=u.json.asset.extras?.ESRI_webstyleSymbol?.webstyle,p=new Map;let m=!1;await $(u,async(e,t,f,d)=>{const h=p.get(f)??0;p.set(f,h+1);const g=void 0!==e.mode?e.mode:O.WR.TRIANGLES,y=g===O.WR.TRIANGLES||g===O.WR.TRIANGLE_STRIP||g===O.WR.TRIANGLE_FAN?g:null;if(null==y)return void n.A.getLogger("esri.views.3d.glTF").warn("[Unsupported Feature] Unsupported primitive mode ("+(0,o.i7)(O.WR,g)+"). Skipping primitive.");if(!u.hasPositions(e))return void n.A.getLogger("esri.views.3d.glTF").warn("Skipping primitive without POSITION vertex attribute.");const T=await u.decode(e,r);m||=!!T;const w=u.getPositionData(e,r,T),x=u.getMaterial(e,r,a,i),b=u.hasNormals(e)?u.getNormalData(e,r,T):null,_=u.hasTangents(e)?u.getTangentData(e,r,T):null,S=u.hasTextureCoordinates(e)?u.getTextureCoordinates(e,r,T):null,v=u.hasVertexColors(e)?u.getVertexColors(e,r,T):null,A=u.getIndexData(e,r,T),R={name:d,transform:(0,s.o8)(t),attributes:{position:await w,normal:b?await b:null,texCoord0:S?await S:null,color:v?await v:null,tangent:_?await _:null},indices:await A,primitiveType:y,material:H(c,await x,l)};let C=null;null!=c.meta?.ESRI_lod&&"screenSpaceRadius"===c.meta.ESRI_lod.metric&&(C=c.meta.ESRI_lod.thresholds[f]),c.lods[f]=c.lods[f]||{parts:[],name:d,lodThreshold:C},c.lods[f].parts[h]=R});for(const e of c.lods)e.parts=e.parts.filter(e=>!!e);const h=await u.getLoadedBuffersSize();return{model:c,meta:{isEsriSymbolResource:f,uri:u.uri,ESRI_webstyle:d,isDracoDecompressed:m},customMeta:{},usedMemory:h}}function P(e){const t=e.json;let r=null;return t.nodes.forEach(e=>{const t=e.extras;null!=t&&(t.ESRI_proxyEllipsoid||t.ESRI_lod)&&(r=t)}),r}async function $(e,t){const r=e.json,o=r.scenes[r.scene||0].nodes,s=o.length>1,a=[];for(const e of o){const t=r.nodes[e];a.push(i(e,0)),k(t)&&!s&&t.extensions.MSFT_lod.ids.forEach((e,t)=>i(e,t+1))}async function i(o,s){const u=r.nodes[o],l=e.getNodeTransform(o);if(null!=u.weights&&n.A.getLogger("esri.views.3d.glTF").warn("[Unsupported Feature] Morph targets are not supported."),null!=u.mesh){const e=r.meshes[u.mesh];for(const r of e.primitives)a.push(t(r,l,s,e.name))}for(const e of u.children||[])a.push(i(e,s))}await Promise.all(a)}function k(e){return e.extensions?.MSFT_lod&&Array.isArray(e.extensions.MSFT_lod.ids)}function H(e,t,r){const n=t=>{const n=`${r}_tex_${t&&t.id}${t?.name?"_"+t.name:""}`;if(t&&!e.textures.has(n)){const r=function(e,t={}){return{data:e,parameters:{wrap:{s:10497,t:10497,...t.wrap},noUnpackFlip:!0,mipmap:!1,...t}}}(t.data,{wrap:{s:t.wrapS,t:t.wrapT},mipmap:z.has(t.minFilter),noUnpackFlip:!0});e.textures.set(n,r)}return n},o=`${r}_mat_${t.id}_${t.name}`;if(!e.materials.has(o)){const r=function(e={}){return{color:[1,1,1],opacity:1,alphaMode:"OPAQUE",alphaCutoff:.5,doubleSided:!1,castShadows:!0,receiveShadows:!0,receiveAmbientOcclusion:!0,colorTexture:null,normalTexture:null,occlusionTexture:null,emissiveTexture:null,emissiveStrengthKHR:null,metallicRoughnessTexture:null,colorTextureTransform:null,normalTextureTransform:null,occlusionTextureTransform:null,emissiveTextureTransform:null,metallicRoughnessTextureTransform:null,emissiveFactor:[0,0,0],metallicFactor:1,roughnessFactor:1,colorMixMode:"multiply",...e}}({color:[t.color[0],t.color[1],t.color[2]],opacity:t.color[3],alphaMode:t.alphaMode,alphaCutoff:t.alphaCutoff,doubleSided:t.doubleSided,colorMixMode:t.ESRI_externalColorMixMode,colorTexture:t.colorTexture?n(t.colorTexture):void 0,normalTexture:t.normalTexture?n(t.normalTexture):void 0,occlusionTexture:t.occlusionTexture?n(t.occlusionTexture):void 0,emissiveTexture:t.emissiveTexture?n(t.emissiveTexture):void 0,metallicRoughnessTexture:t.metallicRoughnessTexture?n(t.metallicRoughnessTexture):void 0,emissiveFactor:[t.emissiveFactor[0],t.emissiveFactor[1],t.emissiveFactor[2]],emissiveStrengthKHR:t.emissiveStrengthKHR,colorTextureTransform:t.colorTextureTransform,normalTextureTransform:t.normalTextureTransform,occlusionTextureTransform:t.occlusionTextureTransform,emissiveTextureTransform:t.emissiveTextureTransform,metallicRoughnessTextureTransform:t.metallicRoughnessTextureTransform,metallicFactor:t.metallicFactor,roughnessFactor:t.roughnessFactor,receiveShadows:t.receiveShadows,receiveAmbientOcclusion:t.receiveAmbientOcclusion});e.materials.set(o,r)}return o}const z=new Set([9987,9985])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1550,1666,1948,3931,5611,6061,6312,6765,7992,8125,9169,9285],{61691(t,e,n){n.d(e,{G:()=>r});class r{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},36633(t,e,n){n.d(e,{O:()=>f});var r=n(55537),s=n(79187),i=n(83661),o=n(15756);function a(){return u(new i.P,-1,Number.NaN)}function u(t,e,n){return{m_coordinate:t.clone(),m_vertexIndex:e,m_geometryIndex:0,m_distance:n,m_bRightSide:!1,isEmpty:c}}function c(){return Number.isNaN(this.m_distance)}function h(t,e,n=-1,a=-1){if(t.isEmpty())return 3;const u=t.getGeometryType();if((0,r.h)(u))return function(t,e,n,s){if(n>=0||s>=0)return(0,r.a)("");if(t.isDegenerate(0))return t.getStartXY().equals(e)?2:3;if(!t.isCurve()){const n=i.P.orientationRobust(e,t.getStartXY(),t.getEndXY());return n<0?1:n>0?0:2}const o=t.getClosestCoordinate(e,!1),a=t.getTangent(o),u=t.getCoord2D(o),c=i.P.orientationRobust(e,u,u.add(a));return c<0?1:c>0?0:2}(t,e,n,a);if(u===r.G.enumPolygon)return function(t,e,n,i){(n>=0||i>=0)&&(0,r.a)("");const a=new s.Envelope2D;t.queryEnvelope(a);const u=(0,o.g)(t,e,0);return 0===u?0:1===u?1:2}(t,e,n,a);if(u===r.G.enumPolyline)return function(t,e,n,s){(n<0&&s>=0||n>=0&&s<0)&&(0,r.a)("");const o=t.querySegmentIterator();if(n<0){let t=Number.MAX_VALUE,r=0;for(;o.nextPath();)for(;o.hasNextSegment();){const a=o.nextSegment(),u=a.getClosestCoordinate(e,!1),c=a.getCoord2D(u),h=i.P.sqrDistance(c,e);h<t?(r=1,n=o.getStartPointIndex(),s=o.getPathIndex(),t=h):h===t&&r++}if(0===r)return 3;if(1===r)return o.resetToVertex(n,s),h(o.nextSegment(),e)}const a=function(t,e,n,r){const s={i1:-1,i2:-1,bRight1:!1,bRight2:!1};if(s.i1=function(t,e,n){for(t.resetToVertex(e,n);t.hasNextSegment();)if(!t.nextSegment().isDegenerate(0))return t.getStartPointIndex();for(t.resetToVertex(e,n);t.hasPreviousSegment();)if(!t.previousSegment().isDegenerate(0))return t.getStartPointIndex();return-1}(e,n,r),-1!==s.i1){e.resetToVertex(s.i1,-1);const n=e.nextSegment(),r=n.getClosestCoordinate(t,!1),o=n.getCoord2D(r),a=i.P.sqrDistance(o,t);{const e=o.clone();e.subThis(n.getStartXY());const r=t.clone();r.subThis(n.getStartXY()),s.bRight1=e.crossProduct(r)<0}if(s.i2=function(t,e){for(t.resetToVertex(e,-1),t.nextSegment();t.hasNextSegment();)if(!t.nextSegment().isDegenerate(0))return t.getStartPointIndex();return-1}(e,s.i1),-1!==s.i2){e.resetToVertex(s.i2,-1);const n=e.nextSegment(),r=n.getClosestCoordinate(t,!1),o=n.getCoord2D(r);if(i.P.sqrDistance(o,t)>a)s.i2=-1;else{const e=o.clone();e.subThis(n.getStartXY());const r=t.clone();r.subThis(n.getStartXY()),s.bRight2=e.crossProduct(r)<0}}if(-1===s.i2&&(s.i2=function(t,e){for(t.resetToVertex(e,-1);t.hasPreviousSegment();)if(!t.previousSegment().isDegenerate(0))return t.getStartPointIndex();return-1}(e,s.i1),-1!==s.i2)){e.resetToVertex(s.i2,-1);const n=e.nextSegment(),r=n.getClosestCoordinate(t,!1),o=n.getCoord2D(r);if(i.P.sqrDistance(o,t)>a)s.i2=-1;else{const e=o.clone();e.subThis(n.getStartXY());const r=t.clone();r.subThis(n.getStartXY()),s.bRight2=e.crossProduct(r)<0;const i=s.i1;s.i1=s.i2,s.i2=i;const a=s.bRight1;s.bRight1=s.bRight2,s.bRight2=a}}}return s}(e,o,n,s);if(-1!==a.i1&&-1===a.i2)return a.bRight1?1:0;if(-1!==a.i1&&-1!==a.i2){if(a.bRight1===a.bRight2)return a.bRight1?1:0;{o.resetToVertex(a.i1,-1);const t=o.nextSegment().getTangent(1);o.resetToVertex(a.i2,-1);const e=o.nextSegment().getTangent(0);return t.crossProduct(e)>=0?1:0}}return o.resetToVertex(n,s),h(o.nextSegment(),e)}(t,e,n,a);if(u===r.G.enumEnvelope){const n=new s.Envelope2D;return t.queryEnvelope(n),n.contains(e)?n.containsExclusive(e)?1:2:0}return 3}var l=n(95213);class f{getOperatorType(){return 10500}accelerateGeometry(t,e,n){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}getNearestCoordinate(t,e,n,s){if(e.isNAN()&&(0,r.a)("NAN xy coordinates are not allowed"),t.isEmpty())return a();switch(t.getGeometryType()){case r.G.enumPoint:return this.pointGetNearestVertex(t,e);case r.G.enumMultiPoint:return this.multiVertexGetNearestVertex(t,e);case r.G.enumPolyline:case r.G.enumPolygon:return this.multiPathGetNearestCoordinate(t,e,n,s);default:(0,r.t)("")}}getNearestVertex(t,e){if(e.isNAN()&&(0,r.a)("NAN xy coordinates are not allowed"),t.isEmpty())return a();switch(t.getGeometryType()){case r.G.enumPoint:return this.pointGetNearestVertex(t,e);case r.G.enumMultiPoint:case r.G.enumPolyline:case r.G.enumPolygon:return this.multiVertexGetNearestVertex(t,e);default:(0,r.t)("")}}getNearestVertices(t,e,n,s){if(0===s&&(0,r.a)(""),e.isNAN()&&(0,r.a)("NAN xy coordinates are not allowed"),t.isEmpty())return[];switch(t.getGeometryType()){case r.G.enumPoint:return this.pointGetNearestVertices(t,e,n,s);case r.G.enumMultiPoint:case r.G.enumPolyline:case r.G.enumPolygon:return this.multiVertexGetNearestVertices(t,e,n,s);default:(0,r.t)("")}}multiPathGetNearestCoordinate(t,e,n,a){if(t.getGeometryType()===r.G.enumPolygon&&n){const n=new s.Envelope2D;t.queryEnvelope(n);const r=(0,l.d)(null,n,!1);let i;if(i=(0,o.g)(t,e,a?0:r),0!==i){const t=u(e,-1,0);return a&&(t.m_bRightSide=!0),t}}const c=t.querySegmentIterator(),f=new i.P;let m=-1,g=-1,x=Number.MAX_VALUE,d=0;for(;c.nextPath();)for(;c.hasNextSegment();){const t=c.nextSegment(),n=t.getClosestCoordinate(e,!1),r=t.getCoord2D(n),s=i.P.sqrDistance(r,e);s<x?(d=1,f.assign(r),m=c.getStartPointIndex(),g=c.getPathIndex(),x=s):s===x&&d++}-1===m&&(0,r.a)("");const p=u(f,m,Math.sqrt(x));if(a)if(t.getGeometryType()!==r.G.enumPolygon){let n=!1;if(d>1){const r=h(t,e,m,g);n=0!==r&&3!==r}else c.resetToVertex(m,g),n=0!==h(c.nextSegment(),e);p.m_bRightSide=n}else n||0!==(0,o.g)(t,e,0)&&(p.m_bRightSide=!0);return p}pointGetNearestVertex(t,e){const n=t.getXY();return u(n,0,i.P.distance(n,e))}multiVertexGetNearestVertex(t,e){const n=t.getAttributeStreamRef(0),r=t.getPointCount();let s=-1;const o=new i.P;let a=Number.MAX_VALUE;const c=new i.P;for(let t=0;t<r;t++){n.queryPoint2D(2*t,c);const r=i.P.sqrDistance(c,e);r<a&&(o.assign(c),s=t,a=r)}return u(o,s,Math.sqrt(a))}pointGetNearestVertices(t,e,n,r){const s=[];if(0!==r){const r=n*n,o=t.getXY(),a=i.P.sqrDistance(o,e);a<=r&&s.push(u(o,0,Math.sqrt(a)))}return s}multiVertexGetNearestVertices(t,e,n,r){const s=[];if(0!==r){const o=t.getAttributeStreamRef(0),a=t.getPointCount();s.length=r+1;const c=n*n;for(let t=0;t<a;t++){const n=o.read(2*t),r=o.read(2*t+1),a=e.x-n,h=e.y-r,l=a*a+h*h;l<=c&&s.push(u(i.P.construct(n,r),t,Math.sqrt(l)))}s.sort((t,e)=>t.m_distance-e.m_distance)}return s.slice(0,r)}}},76061(t,e,n){n.d(e,{S:()=>s});var r=n(61691);class s extends r.G{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},59260(t,e,n){n.d(e,{g:()=>u,p:()=>h});var r=n(36633),s=n(86211),i=n(78125),o=n(79533);const a=new r.O;function u(t,e,n={}){const{calculateLeftRightSide:r=!1,testPolygonInterior:u=!0,unit:c}=n,h=a.getNearestCoordinate((0,i.fromGeometry)(t),(0,i.fromPoint)(e).getXY(),u,r);if(c&&h.m_distance){const e=(0,i.getSpatialReference)(t);h.m_distance=(0,s.PQ)(h.m_distance,e,c)}return(0,o.C)(h,t,r)}const c=a.supportsCurves(),h=Object.freeze(Object.defineProperty({__proto__:null,getNearestCoordinate:u,getNearestVertex:function(t,e,n={}){const{unit:r}=n,u=a.getNearestVertex((0,i.fromGeometry)(t),(0,i.fromPoint)(e).getXY());if(r&&u.m_distance){const e=(0,i.getSpatialReference)(t);u.m_distance=(0,s.PQ)(u.m_distance,e,r)}return(0,o.C)(u,t)},getNearestVertices:function(t,e,n,r,u={}){const{unit:c}=u,h=(0,i.getSpatialReference)(t);return c&&n&&(n=(0,s.UW)(n,c,h)),a.getNearestVertices((0,i.fromGeometry)(t),(0,i.fromPoint)(e).getXY(),n,r).map(e=>(c&&e.m_distance&&(e.m_distance=(0,s.PQ)(e.m_distance,h,c)),(0,o.C)(e,t)))},supportsCurves:c},Symbol.toStringTag,{value:"Module"}))},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>s,vt:()=>r,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:r,fromValues:function(t,e,n,r,s,i,o,a,u,c,h,l,f,m,g,x){return[t,e,n,r,s,i,o,a,u,c,h,l,f,m,g,x]}},Symbol.toStringTag,{value:"Module"}))},51850(t,e,n){function r(){return[0,0,0]}function s(t){return[t[0],t[1],t[2]]}function i(t,e,n){return[t,e,n]}function o(t,e,n){return[t,e,n]}function a(t,e=[0,0,0]){const n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function u(){return[0,0,0]}function c(){return i(1,1,1)}function h(){return i(1,0,0)}function l(){return i(0,1,0)}function f(){return i(0,0,1)}n.d(e,{CN:()=>o,Cb:()=>p,Cw:()=>x,JP:()=>d,S:()=>c,Ul:()=>u,Un:()=>g,ci:()=>a,fA:()=>i,o8:()=>s,uY:()=>m,vt:()=>r});const m=[0,0,0],g=c(),x=h(),d=l(),p=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:g,UNIT_X:x,UNIT_Y:d,UNIT_Z:p,ZEROS:m,clone:s,create:r,freeze:o,fromArray:a,fromValues:i,ones:c,unitX:h,unitY:l,unitZ:f,zeros:u},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>E,Bw:()=>i,C:()=>o,Cc:()=>V,DI:()=>P,Il:()=>D,Io:()=>y,Ln:()=>p,Om:()=>b,Qr:()=>l,Re:()=>c,S8:()=>S,T9:()=>x,WQ:()=>u,Z0:()=>_,_S:()=>m,aI:()=>O,ei:()=>N,fw:()=>R,g7:()=>A,gL:()=>I,hG:()=>M,hZ:()=>a,hs:()=>d,jb:()=>Y,jk:()=>g,lo:()=>q,lw:()=>h,m3:()=>v,oW:()=>Z,t2:()=>T,tn:()=>f,uE:()=>L,xg:()=>z,ze:()=>C});var r=n(51850),s=n(34304);function i(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function h(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function l(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function f(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function m(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function g(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function x(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function d(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function p(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function y(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2];return Math.sqrt(n*n+r*r+s*s)}function M(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2];return n*n+r*r+s*s}function v(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function C(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function P(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function S(t,e){const n=e[0],r=e[1],s=e[2];let i=n*n+r*r+s*s;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function b(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function E(t,e,n){const r=e[0],s=e[1],i=e[2],o=n[0],a=n[1],u=n[2];return t[0]=s*u-i*a,t[1]=i*o-r*u,t[2]=r*a-s*o,t}function V(t,e,n,r){const s=e[0],i=e[1],o=e[2];return t[0]=s+r*(n[0]-s),t[1]=i+r*(n[1]-i),t[2]=o+r*(n[2]-o),t}function _(t,e,n){const r=e[0],s=e[1],i=e[2];return t[0]=n[0]*r+n[4]*s+n[8]*i+n[12],t[1]=n[1]*r+n[5]*s+n[9]*i+n[13],t[2]=n[2]*r+n[6]*s+n[10]*i+n[14],t}function N(t,e,n){const r=e[0],s=e[1],i=e[2];return t[0]=r*n[0]+s*n[3]+i*n[6],t[1]=r*n[1]+s*n[4]+i*n[7],t[2]=r*n[2]+s*n[5]+i*n[8],t}function I(t,e,n){return R(t,e,n[0],n[1],n[2],n[3])}function R(t,e,n,r,s,i){const o=e[0],a=e[1],u=e[2],c=r*u-s*a,h=s*o-n*u,l=n*a-r*o,f=r*l-s*h,m=s*c-n*l,g=n*h-r*c,x=2*i;return t[0]=o+c*x+2*f,t[1]=a+h*x+2*m,t[2]=u+l*x+2*g,t}function A(t,e){S(w,t),S(G,e);const n=b(w,G);return n>1?0:n<-1?Math.PI:Math.acos(n)}const w=(0,r.vt)(),G=(0,r.vt)();function T(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function O(t,e){if(t===e)return!0;const n=t[0],r=t[1],i=t[2],o=e[0],a=e[1],u=e[2],c=(0,s.FD)();return Math.abs(n-o)<=c*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=c*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-u)<=c*Math.max(1,Math.abs(i),Math.abs(u))}function Z(t,e,n){const r=n[0]-e[0],s=n[1]-e[1],i=n[2]-e[2];let o=r*r+s*s+i*i;return o>0?(o=1/Math.sqrt(o),t[0]=r*o,t[1]=s*o,t[2]=i*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const Y=c,X=h,F=l,z=y,q=M,D=i,L=v;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:u,angle:A,bezier:function(t,e,n,r,s,i){const o=1-i,a=o*o,u=i*i,c=a*o,h=3*i*a,l=3*u*o,f=u*i;return t[0]=e[0]*c+n[0]*h+r[0]*l+s[0]*f,t[1]=e[1]*c+n[1]*h+r[1]*l+s[1]*f,t[2]=e[2]*c+n[2]*h+r[2]*l+s[2]*f,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:o,cross:E,crossAndNormalize:function(t,e,n){const r=e[0],s=e[1],i=e[2],o=n[0],a=n[1],u=n[2],c=s*u-i*a,h=i*o-r*u,l=r*a-s*o,f=Math.sqrt(c*c+h*h+l*l);return t[0]=c/f,t[1]=h/f,t[2]=l/f,t},direction:Z,dist:z,distance:y,div:F,divide:l,dot:b,equals:O,exactEquals:T,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,s,i){const o=i*i,a=o*(2*i-3)+1,u=o*(i-2)+i,c=o*(i-1),h=o*(3-2*i);return t[0]=e[0]*a+n[0]*u+r[0]*c+s[0]*h,t[1]=e[1]*a+n[1]*u+r[1]*c+s[1]*h,t[2]=e[2]*a+n[2]*u+r[2]*c+s[2]*h,t},inverse:P,len:D,length:i,lerp:V,max:x,min:g,mul:X,multiply:h,negate:C,normalize:S,random:function(t,e=1){const n=s.Ov,r=2*n()*Math.PI,i=2*n()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(r)*o,t[1]=Math.sin(r)*o,t[2]=i*e,t},rotateX:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[0],i[1]=s[1]*Math.cos(r)-s[2]*Math.sin(r),i[2]=s[1]*Math.sin(r)+s[2]*Math.cos(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateY:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[2]*Math.sin(r)+s[0]*Math.cos(r),i[1]=s[1],i[2]=s[2]*Math.cos(r)-s[0]*Math.sin(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateZ:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[0]*Math.cos(r)-s[1]*Math.sin(r),i[1]=s[0]*Math.sin(r)+s[1]*Math.cos(r),i[2]=s[2],t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:d,scaleAndAdd:p,set:a,sign:m,sqrDist:q,sqrLen:L,squaredDistance:M,squaredLength:v,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:Y,subtract:c,transformMat3:N,transformMat4:_,transformQuat:I,transformQuatValues:R},Symbol.toStringTag,{value:"Module"}))},69397(t,e,n){n.d(e,{Qf:()=>u,Qh:()=>o,RS:()=>s,Ul:()=>m,i5:()=>f,lM:()=>i,qK:()=>h});var r=n(34275);const s=16;function i(t){if(!t)return 0;let e=h;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n],!1));return e}function o(t){if(!t)return 0;if("number"==typeof t[0])return u(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return c(t,8);let n=l;for(let r=0;r<e;r++)n+=a(t[r]);return n}(t);let e=h;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?o(t):h;case"string":return function(t){return 32+t.length}(t);case"number":return s;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+f:Array.isArray(e)?c(e,s):0:0),0)}function c(t,e){return l+t.length*e}const h=32,l=16,f=145,m=64},87992(t,e,n){n.d(e,{JR:()=>E,ME:()=>P,MY:()=>V,NO:()=>C,Nh:()=>b,V2:()=>A,_s:()=>w,e6:()=>T,gh:()=>S,tr:()=>Z,uX:()=>d});var r=n(5482),s=n(69397),i=n(16930),o=(n(70328),n(19419)),a=n(60408),u=n(21325),c=n(513),h=n(50954),l=n(79567),f=n(52006),m=n(49663),g=n(46068),x=n(92722);class d{constructor({type:t,spatialReference:e,vertexCount:n,vertexXY:r,vertexZ:s,vertexM:i,partCount:o,partOffsets:a,partFlags:u,segmentFlags:c,segmentIndices:h,segmentParams:l,segmentCountArc:f,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=n,this.vertexXY=r,this.vertexZ=s,this.vertexM=i,this.partCount=o,this.partOffsets=a,this.partFlags=u,this.segmentFlags=c,this.segmentIndices=h,this.segmentParams=l,this.segmentCountArc=f,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:n}=this;return t&&t-e-n}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?s.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:n,hasZ:r,hasM:s,segmentCountArc:i,segmentCountBezier:o}=this,a=A(t,e,n,r,s,this.hasCurves(),i,o);a.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:c,vertexM:h}=this;if(a.vertexXY.set(u.subarray(0,2*e),0),a.vertexZ?.set(c.subarray(0,e),0),a.vertexM?.set(h.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;a.partFlags.set(e.subarray(0,n+1)),a.partOffsets.set(t.subarray(0,n+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:n,segmentParams:r,segmentParamCount:s}=this;a.segmentFlags.set(t.subarray(0,e),0),a.segmentIndices.set(n.subarray(0,e),0),a.segmentParams.set(r.subarray(0,s),0)}return a}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,u.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const n=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,n)=>Math.abs(t-n)>e||isNaN(t)!==isNaN(n);for(let e=0;e<this.vertexCount;++e)if(n(this.vertexXY[2*e],t.vertexXY[2*e])||n(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(n(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(n(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(n(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new p(this):[][Symbol.iterator]()}}class p{constructor(t){this.geometry=t,this.value=new y(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class y{constructor(t){this.geometry=t,this.index=-1,this._readVertex=I(t),this._segments=new M(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class M{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new v(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class v{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=I(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let n=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[n++],r=e[n++],s=e[n++],i=e[n++];return{b:[this.end,[t,r],[s,i]]}}const r=e[n++],s=e[n++],i=e[n++],o=e[n++],a=e[n++],u=e[n++];n++,n++;const c=e[n++],h=e[n++];if(!Boolean(4&r)&&1===i)return{c:[this.end,[c,h]]};const l=2&r?0:1,f=1&r?0:1;return{a:[this.end,[a,u],l,f,o,s,i]}}}function C(t,e){const n={stack:[],error:void 0,hasError:!1};try{return e??=(0,o.Ie)(),(0,r.mS)(n,new _(t,["vertexZ","vertexM","spatialReference"]),!1),(0,o.bx)(e,function(t){let e;const{vertexCount:n,vertexXY:s,vertexZ:i,vertexM:a}=t,u=N(t);if(t.hasCurves()){const n={stack:[],error:void 0,hasError:!1};try{(0,r.mS)(n,new _(t,["vertexZ","vertexM"]),!1);const s=(0,o.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:n}of e.segments)(0,l.e)(s,t,n),t=(0,f.yP)(n)}const[i,a,c,h]=s;e={xmin:i,ymin:a,xmax:c,ymax:h,spatialReference:u}}catch(t){n.error=t,n.hasError=!0}finally{(0,r.hk)(n)}}else{let t,r,i,o;t=r=1/0,i=o=-1/0;for(let e=0;e<n;++e){const n=s[2*e],a=s[2*e+1];t=Math.min(t,n),i=Math.max(i,n),r=Math.min(r,a),o=Math.max(o,a)}e={xmin:t,ymin:r,xmax:i,ymax:o,spatialReference:u}}if(i){let t=1/0,n=-1/0;for(const e of i)t=Math.min(t,e),n=Math.max(n,e);e.zmin=t,e.zmax=n}if(a){let t=1/0,n=-1/0;for(const e of a)t=Math.min(t,e),n=Math.max(n,e);e.mmin=t,e.mmax=n}return e}(t)),e}catch(t){n.error=t,n.hasError=!0}finally{(0,r.hk)(n)}}function P(t){let e,n,r;if((0,a.fT)(t)){r="point";const{x:s,y:i,z:o,m:a}=t,u=[s,i];null!=o&&u.push(o),null!=a&&u.push(a),n=[[u]],e=1}else(0,a.U9)(t)?(r="multipoint",n=[t.points],e=t.points.length):(0,a.Rg)(t)?(r="polyline",n=t.curvePaths??t.paths,e=n.reduce((t,e)=>t+e.length,0)):(r="polygon",n=t.curveRings??t.rings,e=n.reduce((t,e)=>(0===e.length||(t+=e.length,R(e[0],(0,f.yP)(e.at(-1)))&&--t),t),0));const s=A(r,e,r.includes("point")?0:n.length,(0,a.Pv)(t),(0,a.W0)(t),(0,f.Ed)(t)),{hasZ:i,hasM:o,vertexXY:u,vertexZ:c,vertexM:h}=s;function l(t){u[2*g]=t[0],u[2*g+1]=t[1],i&&(c[g]=t[2]),o&&(h[g]=t[m]),++g}s.spatialReference=t.spatialReference??void 0;const m=s.hasZ?3:2;let g=0;if(!s.isMultipart()){if(!i&&!o){for(const[t,e]of n[0])u[2*g]=t,u[2*g+1]=e,++g;return s}for(const t of n[0])l(t);return s}const x="polygon"===r,{partOffsets:d}=s;let p=0;if(!(0,f.Ed)(t)){for(const t of n){if(d[p++]=g,0===t.length)continue;let e=t.length;if(x&&R(t[0],t.at(-1))&&--e,i||o)for(let n=0;n<e;++n)l(t[n]);else for(let n=0;n<e;++n){const[e,r]=t[n];u[2*g]=e,u[2*g+1]=r,++g}}return d[p]=g,s}function y(t){const e=M+t;if(e<=(s.segmentParams?.length??0))return;let n=e*Y;n=20*Math.ceil(n/20);const r=s.segmentParams;s.segmentParams=new Float64Array(n),null!=r&&s.segmentParams.set(r)}let M=0;for(const t of n){if(s.partOffsets[p++]=g,0===t.length)continue;const e=t[0];let n=e;for(let e=1;e<t.length;++e){const r=t[e];l(n);const i=g-1;(0,f.wY)(r)?(y(10),++s.segmentCountArc,M=w(n,r,s,i,M),n=r.a[0]):(0,f.DA)(r)?(y(10),++s.segmentCountArc,M=G(n,r,s,i,M),n=r.a[0]):(0,f.aO)(r)?(y(10),++s.segmentCountArc,M=T(n,r,s,i,M),n=r.c[0]):(0,f.n1)(r)?(y(4),++s.segmentCountBezier,M=Z(0,r,s,i,M),n=r.b[0]):n=r}x&&R(e,n)||l(n)}return s.partOffsets[p]=g,s}function S(t){const e=I(t),{vertexCount:n,partCount:r,hasZ:s,hasM:i}=t,o=N(t);if("point"===t.type){const[e,n]=t.vertexXY,r=t.vertexZ?.[0],s=t.vertexM?.[0];return{x:e,y:n,z:r,m:s,spatialReference:o}}let a=0;if("multipoint"===t.type){const t=[];for(;a<n;)t.push(e(a++));return{points:t,spatialReference:o,hasZ:s,hasM:i}}const u="polygon"===t.type;if(!t.hasCurves()){const n=new Array;for(let s=0;s<r;++s){const r=t.partOffsets[s+1],i=new Array;for(;a<r;)i.push(e(a++));u&&i.length>0&&i.push(i[0]),n.push(i)}return u?{rings:n,hasZ:s,hasM:i,spatialReference:o}:{paths:n,hasZ:s,hasM:i,spatialReference:o}}const c=new Array;for(const{segments:e,startVertex:n}of t.parts){const t=[n];for(const{curve:n}of e)t.push(n);c.push(t)}return u?{rings:[],curveRings:c,hasZ:s,hasM:i,spatialReference:o}:{paths:[],curvePaths:c,hasZ:s,hasM:i,spatialReference:o}}function b(t,{lengths:e,coords:n,hasZ:r,hasM:s},i){const o=t.includes("point")?0:e.length,a="polygon"===t,u="point"===t?1:e.reduce((t,e)=>t+e,0)-(a?o:0);r??=!1,s??=!1;const c=A(t,u,o,r,s,!1,0,0);if(c.spatialReference=i??void 0,!c.isMultipart()){for(let t=0,e=0;t<u;++t)c.vertexXY[2*t]=n[e++],c.vertexXY[2*t+1]=n[e++],r&&(c.vertexZ[t]=n[e++]),s&&(c.vertexM[t]=n[e++]);return c}const h=2+Number(r)+Number(s);let l=0,f=0;c.partOffsets[0]=0;for(const t of e){const e=c.partOffsets[f],i=e+t-Number(a);c.partOffsets[++f]=i;for(let t=e;t<i;++t)c.vertexXY[2*t]=n[l++],c.vertexXY[2*t+1]=n[l++],r&&(c.vertexZ[t]=n[l++]),s&&(c.vertexM[t]=n[l++]);a&&(l+=h)}return c}function E({type:t,vertexCount:e,vertexXY:n,vertexZ:r,vertexM:s,partCount:i,partOffsets:o,hasZ:a,hasM:u}){const c=new x.A([],[],a,u);i=Math.max(i,1);const h="polygon"===t;let l=0;for(let t=0;t<i;++t){const i=o?.[t+1]??e,f=c.coords.length;for(let t=l;t<i;++t)c.coords.push(n[2*t],n[2*t+1]),a&&c.coords.push(r[t]),u&&c.coords.push(s[t]);if(h){const t=l;c.coords.push(n[2*t],n[2*t+1]),a&&c.coords.push(r[t]),u&&c.coords.push(s[t])}c.lengths.push((c.coords.length-f)/c.stride),l=i}return"point"===t&&(c.lengths.length=0),c}function V(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,n=t.isCustomWkid()?0:t.getOldID();if(n<=0)return{wkt:e};let r=t.getLatestID();(r<=0||r===n)&&(r=void 0);const s=t.getVCS();if(null==s)return{wkid:n,latestWkid:r,wkt:e};const i=s.isCustomWkid()?0:s.getOldID();if(i<=0)return{wkt:e};let o=t.getLatestVerticalID();return(o<=0||o===i)&&(o=void 0),{wkid:n,wkt:e,latestWkid:r,vcsWkid:i,latestVcsWkid:o}}(t.getSpatialReference()),t=t.getGeometry()),new d({...t.toFlatGeometry(),spatialReference:e})}class _{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const n of e)t[n]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function N({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function I({vertexXY:t,vertexZ:e,vertexM:n}){return e?n?r=>[t[2*r],t[2*r+1],e[r],n[r]]:n=>[t[2*n],t[2*n+1],e[n]]:n?e=>[t[2*e],t[2*e+1],n[e]]:e=>[t[2*e],t[2*e+1]]}function R(t,e){return t.every((t,n)=>t===e[n])}function A(t,e,n,r,s,i,o,a){o??=0,a??=0;const u=new d({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:n,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:o,segmentCountBezier:a});let c=2*Float64Array.BYTES_PER_ELEMENT*e;r&&(c+=Float64Array.BYTES_PER_ELEMENT*e),s&&(c+=Float64Array.BYTES_PER_ELEMENT*e),u.isMultipart()&&(c+=(n+1)*Int32Array.BYTES_PER_ELEMENT,c+=(n+1)*Int8Array.BYTES_PER_ELEMENT),i&&(c+=e*Int8Array.BYTES_PER_ELEMENT,c+=e*Int32Array.BYTES_PER_ELEMENT,c+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const h=new ArrayBuffer(c);let l=0;return u.vertexXY=new Float64Array(h,l,2*e),l+=u.vertexXY.byteLength,r&&(u.vertexZ=new Float64Array(h,l,e),l+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(h,l,e),l+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(h,l,u.segmentParamCount),l+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(h,l,e),u.segmentIndices.fill(X),l+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(h,l,n+1),l+=u.partOffsets.byteLength,u.partFlags=new Int8Array(h,l,n+1),l+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,n).fill(1)),i&&(u.segmentFlags=new Int8Array(h,l,e),u.segmentFlags.fill(1),l+=u.segmentFlags.byteLength),u}function w(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){n[i]=4,r[i]=o;const[a,[u,c],h,l,f,m,x]=e.a;let d=4;l||(d|=1),h||(d|=2);const p=(0,g.SW)(t,e),[y,M]=(0,g.Uk)(p,.5);return s[o++]=d,s[o++]=m,s[o++]=x,s[o++]=f,s[o++]=u,s[o++]=c,s[o++]=p.u2-p.u1,s[o++]=p.u1,s[o++]=y,s[o++]=M,o}function G(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){n[i]=4,r[i]=o;const a=(0,m.io)(t,e);return O(a,4,...(0,c.mq)(a,.5),s,o)}function T(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){return n[i]=4,r[i]=o,O((0,h.pM)(t,e),0,...e.c[1],s,o)}function O(t,e,n,r,s,i){const{cx:o,cy:a,thetaStart:u,thetaEnd:c,radius:h}=t;return u>c||(e|=1),Math.abs(c-u)<=Math.PI||(e|=2),s[i++]=e,s[i++]=h,s[i++]=1,s[i++]=0,s[i++]=o,s[i++]=a,s[i++]=c-u,s[i++]=u,s[i++]=n,s[i++]=r,i}function Z(t,{b:[e,[n,r],[s,i]]},{segmentFlags:o,segmentIndices:a,segmentParams:u},c,h){return o[c]=2,a[c]=h,u[h++]=n,u[h++]=r,u[h++]=s,u[h++]=i,h}const Y=1.61803,X=-1},48032(t,e,n){n.d(e,{getNearestCoordinate:()=>r.g}),n(36633),n(86211),n(78125),n(79533);var r=n(59260)},78125(t,e,n){n.r(e),n.d(e,{fromExtent:()=>d,fromGeometry:()=>x,fromMultipoint:()=>p,fromPoint:()=>y,fromPolygon:()=>M,fromPolyline:()=>v,fromPolylineUsingImportOperator:()=>C,fromSpatialReference:()=>P,getSpatialReference:()=>g,toExtent:()=>b,toGeometry:()=>S,toMultipoint:()=>E,toPoint:()=>V,toPolygon:()=>_,toPolyline:()=>N});var r=n(83661),s=(n(79187),n(55537)),i=n(95213),o=n(88885),a=n(5443),u=n(48526),c=n(86738),h=n(39829),l=n(82799),f=(n(90293),n(83299));const m="_gxVersion";function g(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function x(t){switch(t.type){case"point":return y(t);case"multipoint":return p(t);case"polyline":return v(t);case"polygon":return M(t);case"extent":return d(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function d(t){if(!t.getCacheValue(m)){const e=new i.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(2,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(1,0,t.zmin,t.zmax),t.setCacheValue(m,e)}return t.getCacheValue(m)}function p(t){if(!t.getCacheValue(m)){const e=new o.M,n=new i.P,r=t.points,s=t.hasM,a=t.hasZ,u=a?3:2;for(let t=0,i=r.length;t<i;t++){const i=r[t];n.setXYCoords(i[0],i[1]),a&&n.setZ(i[2]??0),s&&n.setM(i[u]??NaN),e.add(n)}t.setCacheValue(m,e)}return t.getCacheValue(m)}function y(t){if(!t.getCacheValue(m)){const e=new i.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(m,e)}return t.getCacheValue(m)}function M(t){if(!t.getCacheValue(m)){const{curveRings:e,hasM:n,hasZ:r,rings:s}=t,i=(0,f.fromGeometryToGXGeometry)({curveRings:e,hasM:n,hasZ:r,rings:s});t.setCacheValue(m,i)}return t.getCacheValue(m)}function v(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:n,hasZ:r,paths:s}=t,i=(0,f.fromGeometryToGXGeometry)({curvePaths:e,hasM:n,hasZ:r,paths:s});t.setCacheValue(m,i)}return t.getCacheValue(m)}function C(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:n,hasZ:r,paths:s}=t,i=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:n,hasZ:r,paths:s});t.setCacheValue(m,i)}return t.getCacheValue(m)}function P(t){return t.cache?(t.cache[m]??=(0,f.fromSpatialReference)(t),t.cache[m]):(0,f.fromSpatialReference)(t)}function S(t,e){if(t)switch(t.getGeometryType()){case s.G.enumPoint:return V(t,e);case s.G.enumEnvelope:return b(t,e);case s.G.enumMultiPoint:return E(t,e);case s.G.enumPolyline:return N(t,e);case s.G.enumPolygon:return _(t,e)}return null}function b(t,e){if(t.isEmpty())return null;const n=new a.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),r=t.getDescription();if(r.hasM()){const e=t.queryInterval(2,0);n.mmin=e.vmin,n.mmax=e.vmax}if(r.hasZ()){const e=t.queryInterval(1,0);n.zmin=e.vmin,n.zmax=e.vmax}return n.setCacheValue(m,t),n}function E(t,e){if(t.isEmpty())return null;const n=t.getDescription(),r=n.hasM(),s=n.hasZ(),o=[],a=new i.P;for(let e=0,n=t.getPointCount();e<n;e++){t.getPointByVal(e,a);const n=[a.getX(),a.getY()];s&&n.push(a.getZ()),r&&n.push(a.getM()),o.push(n)}const c=new u.A({hasM:r,hasZ:s,points:o,spatialReference:e});return c.setCacheValue(m,t),c}function V(t,e){if(t instanceof r.P)return new c.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const n=new c.A({x:t.getX(),y:t.getY(),spatialReference:e}),s=t.getDescription();return s.hasM()&&(n.m=t.getM()),s.hasZ()&&(n.z=t.getZ()),n.setCacheValue(m,t),n}function _(t,e){if(t.isEmpty())return null;const n=h.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(m,t),n}function N(t,e){if(t.isEmpty())return null;const n=l.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(m,t),n}},79533(t,e,n){n.d(e,{C:()=>s});var r=n(78125);function s(t,e,n=!1){const s=(0,r.toPoint)(t.m_coordinate,(0,r.getSpatialReference)(e)),i=t.m_distance,o=t.isEmpty(),a=t.m_bRightSide;return{coordinate:s,distance:i,isEmpty:o,...n&&{isRightSide:a},vertexIndex:t.m_vertexIndex}}},4197(t,e,n){n.d(e,{Vj:()=>h,cj:()=>c,jh:()=>i,l5:()=>a,yH:()=>u});var r=n(34275),s=n(9093);function i(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function o(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=r.y9?Array.from(t):new Float64Array(t)}function a(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function u(t,e){if(0===e.length)return o(t);if(0===t.length)return o(e);const n=i(t.length+e.length);for(let e=0;e<t.length;++e)n[e]=t[e];for(let r=0;r<e.length;++r)n[t.length+r]=e[r];return n}function c(t){return[...t]}function h(t){const e=(0,s.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},70328(t,e,n){n.d(e,{BI:()=>M,DC:()=>l,Ej:()=>m,Ie:()=>p,Jt:()=>y,Ne:()=>g,RF:()=>h,aI:()=>C,fA:()=>o,gE:()=>u,hZ:()=>d,iT:()=>f,is:()=>v,qv:()=>P,vI:()=>x,vY:()=>a,v_:()=>S,vt:()=>i,w1:()=>c}),n(35522);var r=n(5443),s=(n(19419),n(4197));function i(t=S){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,e,n,r,s,o,a=i()){return a[0]=t,a[1]=e,a[2]=n,a[3]=r,a[4]=s,a[5]=o,a}function a(t,e=i()){return function(t,e,n,r=i()){return d(r,P),function(t,e,n=0,r=e.length/3){let s=t[0],i=t[1],o=t[2],a=t[3],u=t[4],c=t[5];for(let t=0;t<r;t++)s=Math.min(s,e[n+3*t]),i=Math.min(i,e[n+3*t+1]),o=Math.min(o,e[n+3*t+2]),a=Math.max(a,e[n+3*t]),u=Math.max(u,e[n+3*t+1]),c=Math.max(c,e[n+3*t+2]);t[0]=s,t[1]=i,t[2]=o,t[3]=a,t[4]=u,t[5]=c}(r,t,e,n),r}(t,0,t.length/3,e)}function u(t,e=(0,s.jh)(24)){const[n,r,i,o,a,u]=t;return e[0]=n,e[1]=r,e[2]=i,e[3]=n,e[4]=r,e[5]=u,e[6]=n,e[7]=a,e[8]=i,e[9]=n,e[10]=a,e[11]=u,e[12]=o,e[13]=r,e[14]=i,e[15]=o,e[16]=r,e[17]=u,e[18]=o,e[19]=a,e[20]=i,e[21]=o,e[22]=a,e[23]=u,e}function c(t,e){const n=isFinite(t[2])||isFinite(t[5]);return new r.A(n?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function h(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function m(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function g(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function x(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function p(t){return t?d(t,P):i(P)}function y(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function M(t,e,n,r,s){return t[0]=e,t[1]=n,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=s,t[5]=Number.POSITIVE_INFINITY,t}function v(t){return 6===t.length}function C(t,e,n){if(null==t||null==e)return t===e;if(!v(t)||!v(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const P=[1/0,1/0,1/0,-1/0,-1/0,-1/0],S=[0,0,0,0,0,0];i()},92722(t,e,n){n.d(e,{A:()=>s});var r=n(69397);class s{constructor(t=[],e=[],n=!1,r=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:t,coords:e,hasZ:n,hasM:r}){return new s(t,e,n||!1,r||!1)}static fromRect([t,e,n,r]){const i=n-t,o=r-e;return new s([5],[t,e,i,0,0,o,-i,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let s=this.coords[r*e],i=this.coords[r*e+1];for(let o=1;o<n;o+=1){const n=r*(e+o),a=this.coords[n],u=this.coords[n+1];t+=-.5*(a-s)*(u+i),s=a,i=u}e+=n}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let s=0;s<r;s++){const r=n*(e+s);t(this.coords[r],this.coords[r+1])}e+=r}}deltaDecode(){const t=this.clone(),{coords:e,lengths:n}=t;let r=0;const{stride:s}=this;for(const t of n){for(let n=1;n<t;n++){const t=s*(r+n);e[t]+=e[t-s],e[t+1]+=e[t+1-s]}r+=t}return t}clone(t){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:n,size:r}=this,i=this.coords.slice(0,r*n);return t?(t.set(i),new s(e,t,this.hasZ,this.hasM)):new s(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const n=new Array(e*t);for(let e=0,r=0;e<n.length;e+=t)n[r++]=this.coords[e],n[r++]=this.coords[e+1];return new s(this.lengths,n,!1,!1)}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4760],{32488(t,e,i){i.d(e,{A:()=>P});const s=[["(",")"],[")","("],["<",">"],[">","<"],["[","]"],["]","["],["{","}"],["}","{"],["«","»"],["»","«"],["‹","›"],["›","‹"],["⁽","⁾"],["⁾","⁽"],["₍","₎"],["₎","₍"],["≤","≥"],["≥","≤"],["〈","〉"],["〉","〈"],["﹙","﹚"],["﹚","﹙"],["﹛","﹜"],["﹜","﹛"],["﹝","﹞"],["﹞","﹝"],["﹤","﹥"],["﹥","﹤"]],r=["آ","أ","إ","ا"],n=["ﻵ","ﻷ","ﻹ","ﻻ"],o=["ﻶ","ﻸ","ﻺ","ﻼ"],a=["ا","ب","ت","ث","ج","ح","خ","د","ذ","ر","ز","س","ش","ص","ض","ط","ظ","ع","غ","ف","ق","ك","ل","م","ن","ه","و","ي","إ","أ","آ","ة","ى","ل","م","ن","ه","و","ي","إ","أ","آ","ة","ى","ی","ئ","ؤ"],l=["ﺍ","ﺏ","ﺕ","ﺙ","ﺝ","ﺡ","ﺥ","ﺩ","ﺫ","ﺭ","ﺯ","ﺱ","ﺵ","ﺹ","ﺽ","ﻁ","ﻅ","ﻉ","ﻍ","ﻑ","ﻕ","ﻙ","ﻝ","ﻡ","ﻥ","ﻩ","ﻭ","ﻱ","ﺇ","ﺃ","ﺁ","ﺓ","ﻯ","ﯼ","ﺉ","ﺅ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺉ","ﺅ"],h=["ﺎ","ﺐ","ﺖ","ﺚ","ﺞ","ﺢ","ﺦ","ﺪ","ﺬ","ﺮ","ﺰ","ﺲ","ﺶ","ﺺ","ﺾ","ﻂ","ﻆ","ﻊ","ﻎ","ﻒ","ﻖ","ﻚ","ﻞ","ﻢ","ﻦ","ﻪ","ﻮ","ﻲ","ﺈ","ﺄ","ﺂ","ﺔ","ﻰ","ﯽ","ﺊ","ﺆ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺊ","ﺆ"],c=["ﺎ","ﺒ","ﺘ","ﺜ","ﺠ","ﺤ","ﺨ","ﺪ","ﺬ","ﺮ","ﺰ","ﺴ","ﺸ","ﺼ","ﻀ","ﻄ","ﻈ","ﻌ","ﻐ","ﻔ","ﻘ","ﻜ","ﻠ","ﻤ","ﻨ","ﻬ","ﻮ","ﻴ","ﺈ","ﺄ","ﺂ","ﺔ","ﻰ","ﯿ","ﺌ","ﺆ","ﹱ","ﹲ","ﹴ","ﹷ","ﹹ","ﹻ","ﹽ","ﹿ","ﺀ","ﺌ","ﺆ"],u=["ﺍ","ﺑ","ﺗ","ﺛ","ﺟ","ﺣ","ﺧ","ﺩ","ﺫ","ﺭ","ﺯ","ﺳ","ﺷ","ﺻ","ﺿ","ﻃ","ﻇ","ﻋ","ﻏ","ﻓ","ﻗ","ﻛ","ﻟ","ﻣ","ﻧ","ﻫ","ﻭ","ﻳ","ﺇ","ﺃ","ﺁ","ﺓ","ﻯ","ﯾ","ﺋ","ﺅ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺋ","ﺅ"],f=["ء","آ","أ","ؤ","إ","ا","ة","د","ذ","ر","ز","و","ى"],m=["ً","ً","ٌ","؟","ٍ","؟","َ","َ","ُ","ُ","ِ","ِ","ّ","ّ","ْ","ْ","ء","آ","آ","أ","أ","ؤ","ؤ","إ","إ","ئ","ئ","ئ","ئ","ا","ا","ب","ب","ب","ب","ة","ة","ت","ت","ت","ت","ث","ث","ث","ث","ج","ج","ج","ج","ح","ح","ح","ح","خ","خ","خ","خ","د","د","ذ","ذ","ر","ر","ز","ز","س","س","س","س","ش","ش","ش","ش","ص","ص","ص","ص","ض","ض","ض","ض","ط","ط","ط","ط","ظ","ظ","ظ","ظ","ع","ع","ع","ع","غ","غ","غ","غ","ف","ف","ف","ف","ق","ق","ق","ق","ك","ك","ك","ك","ل","ل","ل","ل","م","م","م","م","ن","ن","ن","ن","ه","ه","ه","ه","و","و","ى","ى","ي","ي","ي","ي","ﻵ","ﻶ","ﻷ","ﻸ","ﻹ","ﻺ","ﻻ","ﻼ","؟","؟","؟"],d=["ء","ف"],y=["غ","ي"],p=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],g=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],_=10,x=11,S=12,M=18,b=["UBAT_L","UBAT_R","UBAT_EN","UBAT_AN","UBAT_ON","UBAT_B","UBAT_S","UBAT_AL","UBAT_WS","UBAT_CS","UBAT_ES","UBAT_ET","UBAT_NSM","UBAT_LRE","UBAT_RLE","UBAT_PDF","UBAT_LRO","UBAT_RLO","UBAT_BN"],w=[100,0,0,0,0,101,102,103,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,104,4,4,4,0,4,0,4,0,4,4,4,0,0,4,4,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,0,0,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,105,7,7,106,107],C=[[M,M,M,M,M,M,M,M,M,6,5,6,8,5,M,M,M,M,M,M,M,M,M,M,M,M,M,M,5,5,5,6,8,4,4,x,x,x,4,4,4,4,4,_,9,_,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,M,M,M,M,M,M,5,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,9,4,x,x,x,x,4,4,4,4,0,4,4,M,4,4,x,x,2,2,4,0,4,4,4,2,0,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,4,4,4,4,4,4,4,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,1,S,1,S,S,1,S,S,1,S,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,4,4,4,4,1,1,1,1,1,4,4,4,4,4,4,4,4,4,4,4],[3,3,3,3,4,4,4,4,7,x,x,7,9,7,4,4,S,S,S,S,S,S,S,S,S,S,S,7,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,3,3,3,3,3,3,3,3,3,3,x,3,3,7,7,7,S,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,S,S,S,S,S,S,S,3,4,S,S,S,S,S,S,7,7,S,S,4,S,S,S,S,7,7,2,2,2,2,2,2,2,2,2,2,7,7,7,7,7,7],[7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,7,7,S,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,S,S,S,S,S,S,S,S,S,S,S,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,S,S,S,S,S,S,S,S,S,1,1,4,4,4,4,1,4,4,4,4,4],[8,8,8,8,8,8,8,8,8,8,8,M,M,M,0,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,5,13,14,15,16,17,9,x,x,x,x,x,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,M,M,M,M,M,4,4,4,4,4,M,M,M,M,M,M,2,0,4,4,2,2,2,2,2,2,_,_,4,4,4,0,2,2,2,2,2,2,2,2,2,2,_,_,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4],[0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,4,4,4,4,4,1,S,1,1,1,1,1,1,1,1,1,1,_,1,1,1,1,1,1,1,1,1,1,1,1,1,4,1,1,1,1,1,4,1,4,1,1,4,1,1,4,1,1,1,1,1,1,1,1,1,1,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7],[S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,S,S,S,S,S,S,S,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,9,4,4,9,4,4,4,4,4,4,4,4,4,x,4,4,_,_,4,4,4,4,4,x,x,4,4,4,4,4,7,7,7,7,7,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,4,M],[4,4,4,x,x,x,4,4,4,4,4,_,9,_,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,4,4,4,x,x,4,4,4,x,x,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4]];class P{constructor(){this.inputFormat="ILYNN",this.outputFormat="VLNNN",this.sourceToTarget=[],this.targetToSource=[],this.levels=[]}bidiTransform(t,e,i){if(this.sourceToTarget=[],this.targetToSource=[],!t)return"";if(function(t,e,i){q=[],Z=[];for(let s=0;s<i;s++)t[s]=s,e[s]=s,q[s]=s}(this.sourceToTarget,this.targetToSource,t.length),!this.checkParameters(e,i))return t;e=this.inputFormat,i=this.outputFormat;let s=t;const a=J,c=O(e.charAt(1)),f=O(i.charAt(1)),d=(e.startsWith("I")?"L":e.charAt(0))+c,y=(i.startsWith("I")?"L":i.charAt(0))+f,p=e.charAt(2)+i.charAt(2);a.defInFormat=d,a.defOutFormat=y,a.defSwap=p;const g=k(t,d,y,p,a);let _=!1;return"R"===i.charAt(1)?_=!0:"C"!==i.charAt(1)&&"D"!==i.charAt(1)||(_="rtl"===this.checkContextual(g)),this.sourceToTarget=q,this.targetToSource=function(t){const e=new Array(t.length);for(let i=0;i<t.length;i++)e[t[i]]=i;return e}(this.sourceToTarget),Y=this.targetToSource,s=e.charAt(3)===i.charAt(3)?g:"S"===i.charAt(3)?function(t,e){if(0===e.length)return"";void 0===t&&(t=!0);const i=(e=String(e)).split("");let s=0,r=1,a=i.length;t||(s=i.length-1,r=-1,a=1);const c=function(t,e,i,s){let r=0;const a=[];let c=0;for(let f=e;f*i<s;f+=i)if(A(t[f])||G(t[f])){if("ل"===t[f]&&E(t,f+i,i,s)){t[f]=W(t[f+i],0===r?n:o),f+=i,V(t,f,i,s),a[c]=f,c++,r=0;continue}const e=t[f];1===r?t[f]=F(t,f+i,i,s)?$(t[f]):H(t[f],h):!0===F(t,f+i,i,s)?t[f]=H(t[f],u):t[f]=H(t[f],l),G(e)||(r=1),!0===N(e)&&(r=0)}else r=0;return a}(i,s,r,a);let f="";for(let e=0;e<i.length;e++)z(c,c.length,e)>-1?(X(Y,e,!t,-1),q.splice(e,1)):f+=i[e];return f}(_,g):function(t,e){if(0===t.length)return"";void 0===e&&(e=!0);let i="";const s=(t=String(t)).split("");for(let n=0;n<t.length;n++){let o=!1;if(s[n]>="ﹰ"&&s[n]<"\ufeff"){const a=t.charCodeAt(n);s[n]>="ﻵ"&&s[n]<="ﻼ"?(e?(n>0&&" "===s[n-1]?i=i.slice(0,-1)+"ل":(i+="ل",o=!0),i+=r[(a-65269)/2]):(i+=r[(a-65269)/2],i+="ل",n+1<t.length&&" "===s[n+1]?n++:o=!0),o&&(X(Y,n,!0,1),q.splice(n,0,q[n]))):i+=m[a-65136]}else i+=s[n]}return i}(g,_),this.sourceToTarget=q,this.targetToSource=Y,this.levels=Z,s}_inputFormatSetter(t){if(!et.test(t))throw new Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.inputFormat=t}_outputFormatSetter(t){if(!et.test(t))throw new Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.outputFormat=t}checkParameters(t,e){return t?this._inputFormatSetter(t):t=this.inputFormat,e?this._outputFormatSetter(e):e=this.outputFormat,t!==e}checkContextual(t){let e=I(t);if("ltr"!==e&&"rtl"!==e){try{e=document.dir.toLowerCase()}catch(t){}"ltr"!==e&&"rtl"!==e&&(e="ltr")}return e}hasBidiChar(t){return it.test(t)}}function k(t,e,i,s,r){const n=function(t,e,i){if(void 0===e.inFormat&&(e.inFormat=i.defInFormat),void 0===e.outFormat&&(e.outFormat=i.defOutFormat),void 0===e.swap&&(e.swap=i.defSwap),e.inFormat===e.outFormat)return e;const s=e.inFormat.slice(0,1),r=e.outFormat.slice(0,1);let n,o=e.inFormat.slice(1,4),a=e.outFormat.slice(1,4);return o.startsWith("C")&&(n=I(t),o="ltr"===n||"rtl"===n?n.toUpperCase():"L"===e.inFormat.charAt(2)?"LTR":"RTL",e.inFormat=s+o),a.startsWith("C")&&(n=I(t),"rtl"===n?a="RTL":"ltr"===n?(n=function(t){const e=t.split("");return e.reverse(),I(e.join(""))}(t),a=n.toUpperCase()):a="L"===e.outFormat.charAt(2)?"LTR":"RTL",e.outFormat=r+a),e}(t,{inFormat:e,outFormat:i,swap:s},r);if(n.inFormat===n.outFormat)return t;e=n.inFormat,i=n.outFormat,s=n.swap;const o=e.slice(0,1),a=e.slice(1,4),l=i.slice(0,1),h=i.slice(1,4);if(r.inFormat=e,r.outFormat=i,r.swap=s,"L"===o&&"VLTR"===i){if("LTR"===a)return r.dir=Q,T(t,r);if("RTL"===a)return r.dir=tt,T(t,r)}if("V"===o&&"V"===l)return r.dir="RTL"===a?tt:Q,v(t,r);if("L"===o&&"VRTL"===i)return"LTR"===a?(r.dir=Q,t=T(t,r)):(r.dir=tt,t=T(t,r)),v(t);if("VLTR"===e&&"LLTR"===i)return r.dir=Q,T(t,r);if("V"===o&&"L"===l&&a!==h)return t=v(t),"RTL"===a?k(t,"LLTR","VLTR",s,r):k(t,"LRTL","VRTL",s,r);if("VRTL"===e&&"LRTL"===i)return k(t,"LRTL","VRTL",s,r);if("L"===o&&"L"===l){const e=r.swap;return r.swap=e.slice(0,1)+"N","RTL"===a?(r.dir=tt,t=T(t,r),r.swap="N"+e.slice(1,3),r.dir=Q,t=T(t,r)):(r.dir=Q,t=T(t,r),r.swap="N"+e.slice(1,3),t=k(t,"VLTR","LRTL",r.swap,r)),t}return t}function I(t){const e=/[A-Za-z\u05d0-\u065f\u066a-\u06ef\u06fa-\u07ff\ufb1d-\ufdff\ufe70-\ufefc]/.exec(t);return e?e[0]<="z"?"ltr":"rtl":""}function T(t,e){const i=t.split(""),s=[];return L(i,s,e),function(t,e,i){if(0!==i.hiLevel&&i.swap[0]!==i.swap[1])for(let i=0;i<t.length;i++)1===e[i]&&(t[i]=B(t[i]))}(i,s,e),D(2,i,s,e),D(1,i,s,e),Z=s,i.join("")}function L(t,e,i){const s=t.length,r=i.dir?g:p;let n=0,o=-1;const a=[],l=[];i.hiLevel=i.dir,i.lastArabic=!1,i.hasUbatAl=!1,i.hasUbatB=!1,i.hasUbatS=!1;for(let e=0;e<s;e++)a[e]=R(t[e]);for(let h=0;h<s;h++){const s=n,c=U(t,a,l,h,i);l[h]=c,n=r[s][c];const u=240&n;n&=15;const f=r[n][j];if(e[h]=f,u>0)if(16===u){for(let t=o;t<h;t++)e[t]=1;o=-1}else o=-1;if(r[n][K])-1===o&&(o=h);else if(o>-1){for(let t=o;t<h;t++)e[t]=f;o=-1}5===a[h]&&(e[h]=0),i.hiLevel|=f}i.hasUbatS&&function(t,e,i,s){for(let r=0;r<i;r++)if(6===t[r]){e[r]=s.dir;for(let i=r-1;i>=0&&8===t[i];i--)e[i]=s.dir}}(a,e,s,i)}function R(t){const e=t.charCodeAt(0),i=w[e>>8];return i<100?i:C[i-100][255&e]}function v(t,e){const i=t.split("");if(e){const t=[];L(i,t,e),Z=t}return i.reverse(),q.reverse(),i.join("")}function z(t,e,i){for(let s=0;s<e;s++)if(t[s]===i)return s;return-1}function A(t){for(let e=0;e<d.length;e++)if(t>=d[e]&&t<=y[e])return!0;return!1}function F(t,e,i,s){for(;e*i<s&&G(t[e]);)e+=i;return!!(e*i<s&&A(t[e]))}function E(t,e,i,s){for(;e*i<s&&G(t[e]);)e+=i;let n=" ";if(!(e*i<s))return!1;n=t[e];for(let t=0;t<r.length;t++)if(r[t]===n)return!0;return!1}function D(t,e,i,s){if(s.hiLevel<t)return;if(1===t&&s.dir===tt&&!s.hasUbatB)return e.reverse(),void q.reverse();const r=e.length;let n,o,a,l,h,c=0;for(;c<r;){if(i[c]>=t){for(n=c+1;n<r&&i[n]>=t;)n++;for(o=c,a=n-1;o<a;o++,a--)l=e[o],e[o]=e[a],e[a]=l,h=q[o],q[o]=q[a],q[a]=h;c=n}c++}}function U(t,e,i,s,r){const n=e[s];return{UBAT_L:()=>(r.lastArabic=!1,0),UBAT_R:()=>(r.lastArabic=!1,1),UBAT_ON:()=>4,UBAT_AN:()=>3,UBAT_EN:()=>r.lastArabic?3:2,UBAT_AL:()=>(r.lastArabic=!0,r.hasUbatAl=!0,1),UBAT_WS:()=>4,UBAT_CS:()=>{let t,n;return s<1||s+1>=e.length||2!==(t=i[s-1])&&3!==t||2!==(n=e[s+1])&&3!==n?4:(r.lastArabic&&(n=3),n===t?n:4)},UBAT_ES:()=>2===(s>0?i[s-1]:5)&&s+1<e.length&&2===e[s+1]?2:4,UBAT_ET:()=>{if(s>0&&2===i[s-1])return 2;if(r.lastArabic)return 4;let t=s+1;const n=e.length;for(;t<n&&e[t]===x;)t++;return t<n&&2===e[t]?2:4},UBAT_NSM:()=>{if("VLTR"===r.inFormat){const i=e.length;let r=s+1;for(;r<i&&e[r]===S;)r++;if(r<i){const i=t[s].charCodeAt(0),n=i>=1425&&i<=2303||64286===i,o=e[r];if(n&&(1===o||7===o))return 1}}return s<1||5===e[s-1]?4:i[s-1]},UBAT_B:()=>(r.lastArabic=!0,r.hasUbatB=!0,r.dir),UBAT_S:()=>(r.hasUbatS=!0,4),UBAT_LRE:()=>(r.lastArabic=!1,4),UBAT_RLE:()=>(r.lastArabic=!1,4),UBAT_LRO:()=>(r.lastArabic=!1,4),UBAT_RLO:()=>(r.lastArabic=!1,4),UBAT_PDF:()=>(r.lastArabic=!1,4),UBAT_BN:()=>4}[b[n]]()}function B(t){let e,i=0,r=s.length-1;for(;i<=r;)if(e=Math.floor((i+r)/2),t<s[e][0])r=e-1;else{if(!(t>s[e][0]))return s[e][1];i=e+1}return t}function N(t){for(let e=0;e<f.length;e++)if(f[e]===t)return!0;return!1}function $(t){for(let e=0;e<a.length;e++)if(t===a[e])return c[e];return t}function H(t,e){for(let i=0;i<a.length;i++)if(t===a[i])return e[i];return t}function G(t){return t>="ً"&&t<="ٕ"}function O(t){return"L"===t?"LTR":"R"===t?"RTL":"C"===t?"CLR":"D"===t?"CRL":""}function V(t,e,i,s){for(;e*i<s&&G(t[e]);)e+=i;return e*i<s&&(t[e]=" ",!0)}function W(t,e){for(let i=0;i<r.length;i++)if(t===r[i])return e[i];return t}function X(t,e,i,s){for(let r=0;r<t.length;r++)(t[r]>e||!i&&t[r]===e)&&(t[r]+=s)}let q=[],Y=[],Z=[];const J={dir:0,defInFormat:"LLTR",defSwap:"YN",inFormat:"LLTR",outFormat:"VLTR",swap:"YN",hiLevel:0,lastArabic:!1,hasUbatAl:!1,defOutFormat:""},j=5,K=6,Q=0,tt=1,et=/^[(I|V)][(L|RCD)][(Y|N)][(S|N)]N$/,it=/[\u0591-\u06ff\ufb1d-\ufefc]/},56512(t,e,i){function s(t){let e,i,s=[],r=!1;return function(...n){return r&&e===this&&function(t,e){if(t.length!==e.length)return!1;for(let i=0;i<t.length;++i)if(t[i]!==e[i])return!1;return!0}(n,s)||(i=t.apply(this,n),e=this,s=n,r=!0),i}}i.d(e,{B:()=>s})},69397(t,e,i){i.d(e,{Qf:()=>l,Qh:()=>o,RS:()=>r,Ul:()=>m,i5:()=>f,lM:()=>n,qK:()=>c});var s=i(34275);const r=16;function n(t){if(!t)return 0;let e=c;for(const i in t)t.hasOwnProperty(i)&&(e+=a(t[i],!1));return e}function o(t){if(!t)return 0;if("number"==typeof t[0])return l(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let i=u;for(let s=0;s<e;s++)i+=a(t[s]);return i}(t);let e=c;for(const i in t)t.hasOwnProperty(i)&&(e+=a(t[i]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?o(t):c;case"string":return function(t){return 32+t.length}(t);case"number":return r;case"boolean":return 4;default:return 8}}function l(...t){return t.reduce((t,e)=>t+(e?(0,s.iu)(e)?e.byteLength+f:Array.isArray(e)?h(e,r):0:0),0)}function h(t,e){return u+t.length*e}const c=32,u=16,f=145,m=64},6774(t,e,i){i.d(e,{O3:()=>n,Ox:()=>o,bR:()=>s});class s{constructor(t,e){this.x=t,this.y=e}static fromArray(t){return new s(t[0],t[1])}clone(){return new s(this.x,this.y)}equals(t,e){return t===this.x&&e===this.y}isEqual(t){return t.x===this.x&&t.y===this.y}setCoords(t,e){return this.x=t,this.y=e,this}normalize(){const t=this.x,e=this.y,i=Math.sqrt(t*t+e*e);return this.x/=i,this.y/=i,this}rightPerpendicular(){const t=this.x;return this.x=this.y,this.y=-t,this}leftPerpendicular(){const t=this.x;return this.x=-this.y,this.y=t,this}move(t,e){return this.x+=t,this.y+=e,this}assign(t){return this.x=t.x,this.y=t.y,this}assignAdd(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}assignSub(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}rotate(t,e){const i=this.x,s=this.y;return this.x=i*t-s*e,this.y=i*e+s*t,this}rotateReverse(t,e){const i=this.x,s=this.y;return this.x=i*t+s*e,this.y=-i*e+s*t,this}scale(t){return this.x*=t,this.y*=t,this}length(){const t=this.x,e=this.y;return Math.sqrt(t*t+e*e)}sub(t){return this.x-=t.x,this.y-=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}static distance(t,e){const i=e.x-t.x,s=e.y-t.y;return Math.sqrt(i*i+s*s)}static add(t,e){return new s(t.x+e.x,t.y+e.y)}static sub(t,e){return new s(t.x-e.x,t.y-e.y)}}class r{constructor(t,e,i){this.ratio=t,this.x=e,this.y=i}}class n{constructor(t,e,i,s=8,r=8){this._lines=[],this._starts=[],this.validateTessellation=!0,this._pixelRatio=s,this._pixelMargin=r,this._tileSize=512*s,this._dz=t,this._yPos=e,this._xPos=i}setPixelMargin(t){t!==this._pixelMargin&&(this._pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this._finalRatio=this._tileSize/t*(1<<this._dz);let e=this._pixelRatio*this._pixelMargin;e/=this._finalRatio;const i=t>>this._dz;e>i&&(e=i),this._margin=e,this._xmin=i*this._xPos-e,this._ymin=i*this._yPos-e,this._xmax=this._xmin+i+2*e,this._ymax=this._ymin+i+2*e}reset(t){this._type=t,this._lines=[],this._starts=[],this._line=null,this._start=0}moveTo(t,e){this._pushLine(),this._prevIsIn=this._isIn(t,e),this._moveTo(t,e,this._prevIsIn),this._prevPt=new s(t,e),this._firstPt=new s(t,e),this._dist=0}lineTo(t,e){const i=this._isIn(t,e),n=new s(t,e),o=s.distance(this._prevPt,n);let a,l,h,c,u,f,m,d;if(i)this._prevIsIn?this._lineTo(t,e,!0):(a=this._prevPt,l=n,h=this._intersect(l,a),this._start=this._dist+o*(1-this._r),this._lineTo(h.x,h.y,!0),this._lineTo(l.x,l.y,!0));else if(this._prevIsIn)l=this._prevPt,a=n,h=this._intersect(l,a),this._lineTo(h.x,h.y,!0),this._lineTo(a.x,a.y,!1);else{const t=this._prevPt,e=n;if(t.x<=this._xmin&&e.x<=this._xmin||t.x>=this._xmax&&e.x>=this._xmax||t.y<=this._ymin&&e.y<=this._ymin||t.y>=this._ymax&&e.y>=this._ymax)this._lineTo(e.x,e.y,!1);else{const i=[];if((t.x<this._xmin&&e.x>this._xmin||t.x>this._xmin&&e.x<this._xmin)&&(c=(this._xmin-t.x)/(e.x-t.x),d=t.y+c*(e.y-t.y),d<=this._ymin?f=!1:d>=this._ymax?f=!0:i.push(new r(c,this._xmin,d))),(t.x<this._xmax&&e.x>this._xmax||t.x>this._xmax&&e.x<this._xmax)&&(c=(this._xmax-t.x)/(e.x-t.x),d=t.y+c*(e.y-t.y),d<=this._ymin?f=!1:d>=this._ymax?f=!0:i.push(new r(c,this._xmax,d))),(t.y<this._ymin&&e.y>this._ymin||t.y>this._ymin&&e.y<this._ymin)&&(c=(this._ymin-t.y)/(e.y-t.y),m=t.x+c*(e.x-t.x),m<=this._xmin?u=!1:m>=this._xmax?u=!0:i.push(new r(c,m,this._ymin))),(t.y<this._ymax&&e.y>this._ymax||t.y>this._ymax&&e.y<this._ymax)&&(c=(this._ymax-t.y)/(e.y-t.y),m=t.x+c*(e.x-t.x),m<=this._xmin?u=!1:m>=this._xmax?u=!0:i.push(new r(c,m,this._ymax))),0===i.length)u?f?this._lineTo(this._xmax,this._ymax,!0):this._lineTo(this._xmax,this._ymin,!0):f?this._lineTo(this._xmin,this._ymax,!0):this._lineTo(this._xmin,this._ymin,!0);else if(i.length>1&&i[0].ratio>i[1].ratio)this._start=this._dist+o*i[1].ratio,this._lineTo(i[1].x,i[1].y,!0),this._lineTo(i[0].x,i[0].y,!0);else{this._start=this._dist+o*i[0].ratio;for(let t=0;t<i.length;t++)this._lineTo(i[t].x,i[t].y,!0)}this._lineTo(e.x,e.y,!1)}}this._dist+=o,this._prevIsIn=i,this._prevPt=n}close(){if(this._line.length>2){const t=this._firstPt,e=this._prevPt;t.x===e.x&&t.y===e.y||this.lineTo(t.x,t.y);const i=this._line;let s=i.length;for(;s>=4&&(i[0].x===i[1].x&&i[0].x===i[s-2].x||i[0].y===i[1].y&&i[0].y===i[s-2].y);)i.pop(),i[0].x=i[s-2].x,i[0].y=i[s-2].y,--s}}result(t=!0){return this._pushLine(),0===this._lines.length?null:(3===this._type&&t&&a.simplify(this._tileSize,this._margin*this._finalRatio,this._lines),this._lines)}resultWithStarts(){if(2!==this._type)throw new Error("Only valid for lines");this._pushLine();const t=this._lines,e=t.length;if(0===e)return null;const i=[];for(let s=0;s<e;s++)i.push({line:t[s],start:this._starts[s]||0});return i}_isIn(t,e){return t>=this._xmin&&t<=this._xmax&&e>=this._ymin&&e<=this._ymax}_intersect(t,e){let i,r,n;if(e.x>=this._xmin&&e.x<=this._xmax)r=e.y<=this._ymin?this._ymin:this._ymax,n=(r-t.y)/(e.y-t.y),i=t.x+n*(e.x-t.x);else if(e.y>=this._ymin&&e.y<=this._ymax)i=e.x<=this._xmin?this._xmin:this._xmax,n=(i-t.x)/(e.x-t.x),r=t.y+n*(e.y-t.y);else{r=e.y<=this._ymin?this._ymin:this._ymax,i=e.x<=this._xmin?this._xmin:this._xmax;const s=(i-t.x)/(e.x-t.x),o=(r-t.y)/(e.y-t.y);s<o?(n=s,r=t.y+s*(e.y-t.y)):(n=o,i=t.x+o*(e.x-t.x))}return this._r=n,new s(i,r)}_pushLine(){this._line&&(1===this._type?this._line.length>0&&(this._lines.push(this._line),this._starts.push(this._start)):2===this._type?this._line.length>1&&(this._lines.push(this._line),this._starts.push(this._start)):3===this._type&&this._line.length>3&&(this._lines.push(this._line),this._starts.push(this._start))),this._line=[],this._start=0}_moveTo(t,e,i){3!==this._type?i&&(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new s(t,e))):(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new s(t,e)),this._isH=!1,this._isV=!1)}_lineTo(t,e,i){let r,n;if(3!==this._type)if(i){if(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.length>0&&(r=this._line[this._line.length-1],r.equals(t,e)))return;this._line.push(new s(t,e))}else this._line&&this._line.length>0&&this._pushLine();else if(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line&&this._line.length>0){r=this._line[this._line.length-1];const i=r.x===t,o=r.y===e;if(i&&o)return;this._isH&&i||this._isV&&o?(r.x=t,r.y=e,n=this._line[this._line.length-2],n.x===t&&n.y===e?(this._line.pop(),this._line.length<=1?(this._isH=!1,this._isV=!1):(n=this._line[this._line.length-2],this._isH=n.x===t,this._isV=n.y===e)):(this._isH=n.x===t,this._isV=n.y===e)):(this._line.push(new s(t,e)),this._isH=i,this._isV=o)}else this._line.push(new s(t,e))}}class o{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this._lines=[],this._line=null}moveTo(t,e){this._line&&this._lines.push(this._line),this._line=[];const i=this._ratio;this._line.push(new s(t*i,e*i))}lineTo(t,e){const i=this._ratio;this._line.push(new s(t*i,e*i))}close(){const t=this._line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this._line&&this._lines.push(this._line),0===this._lines.length?null:this._lines}}class a{static simplify(t,e,i){if(!i)return;const s=-e,r=t+e,n=-e,o=t+e,l=[],h=[],c=i.length;for(let t=0;t<c;++t){const e=i[t];if(!e||e.length<2)continue;let a,c=e[0];const u=e.length;for(let i=1;i<u;++i)a=e[i],c.x===a.x&&(c.x<=s&&(c.y>a.y?(l.push(t),l.push(i),l.push(0),l.push(-1)):(h.push(t),h.push(i),h.push(0),h.push(-1))),c.x>=r&&(c.y<a.y?(l.push(t),l.push(i),l.push(1),l.push(-1)):(h.push(t),h.push(i),h.push(1),h.push(-1)))),c.y===a.y&&(c.y<=n&&(c.x<a.x?(l.push(t),l.push(i),l.push(2),l.push(-1)):(h.push(t),h.push(i),h.push(2),h.push(-1))),c.y>=o&&(c.x>a.x?(l.push(t),l.push(i),l.push(3),l.push(-1)):(h.push(t),h.push(i),h.push(3),h.push(-1)))),c=a}if(0===l.length||0===h.length)return;a.fillParent(i,h,l),a.fillParent(i,l,h);const u=[];a.calcDeltas(u,h,l),a.calcDeltas(u,l,h),a.addDeltas(u,i)}static fillParent(t,e,i){const s=i.length,r=e.length;for(let n=0;n<r;n+=4){const r=e[n],o=e[n+1],a=e[n+2],h=t[r][o-1],c=t[r][o];let u=8092,f=-1;for(let e=0;e<s;e+=4){if(i[e+2]!==a)continue;const s=i[e],r=i[e+1],n=t[s][r-1],o=t[s][r];switch(a){case 0:case 1:if(l(h.y,n.y,o.y)&&l(c.y,n.y,o.y)){const t=Math.abs(o.y-n.y);t<u&&(u=t,f=e)}break;case 2:case 3:if(l(h.x,n.x,o.x)&&l(c.x,n.x,o.x)){const t=Math.abs(o.x-n.x);t<u&&(u=t,f=e)}}}e[n+3]=f}}static calcDeltas(t,e,i){const s=e.length;for(let r=0;r<s;r+=4){const s=[],n=a.calcDelta(r,e,i,s);t.push(e[r]),t.push(e[r+1]),t.push(e[r+2]),t.push(n)}}static calcDelta(t,e,i,s){const r=e[t+3];if(-1===r)return 0;const n=s.length;return n>1&&s[n-2]===r?0:(s.push(r),a.calcDelta(r,i,e,s)+1)}static addDeltas(t,e){const i=t.length;let s=0;for(let e=0;e<i;e+=4){const i=t[e+3];i>s&&(s=i)}for(let r=0;r<i;r+=4){const i=e[t[r]],n=t[r+1],o=s-t[r+3];switch(t[r+2]){case 0:i[n-1].x-=o,i[n].x-=o,1===n&&(i[i.length-1].x-=o),n===i.length-1&&(i[0].x-=o);break;case 1:i[n-1].x+=o,i[n].x+=o,1===n&&(i[i.length-1].x+=o),n===i.length-1&&(i[0].x+=o);break;case 2:i[n-1].y-=o,i[n].y-=o,1===n&&(i[i.length-1].y-=o),n===i.length-1&&(i[0].y-=o);break;case 3:i[n-1].y+=o,i[n].y+=o,1===n&&(i[i.length-1].y+=o),n===i.length-1&&(i[0].y+=o)}}}}const l=(t,e,i)=>t>=e&&t<=i||t>=i&&t<=e},31411(t,e,i){i.d(e,{GS:()=>C,gh:()=>k});var s=i(49186),r=i(56512),n=i(65864),o=i(4305),a=i(50954),l=i(52006),h=i(49663),c=i(46068),u=i(15507);const f=1e-6,m=[0,0];function d(t){return{maxSegmentLength:t.maxSegmentLength??0,maxDeviation:t.maxDeviation??0,maxSegmentsPerCurve:t.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??1,1)}}class y{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:i,maxSegmentsPerCurve:s,minSegmentsPerCurve:r}){const n=i*i,o=e*e,a=1/s,l=this.interpolate(0),h=this.interpolate(1);(0,u.kb)(this.curveStart,l)>f&&t.push(l),this.initialize(l,h);const c=1/r;for(let t=r-1;t>0;t--){const e=t*c;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<a||(0===n||!isFinite(n)||(0,u.kb)(this.arcStart,this.arcEnd)<n)&&(0===o||!isFinite(o)||this.getDeviation2()<o)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,u.kb)(this.curveEnd,h)>f&&t.push([...this.curveEnd]),t}}class p extends y{constructor(t,e){const[i,s,r]=e.b;super(t,i),this._controlPointsStack=[],this._curveControlPoints=[s,r],this._arcControlPoints=[s,r],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:i,tStart:s,tEnd:r}=this,[n,o]=this._arcControlPoints,a=(t-s)/(r-s),l=(0,u.RS)([],e,n,a),h=(0,u.RS)(m,n,o,a),c=(0,u.RS)([],o,i,a),f=(0,u.RS)([],l,h,a),d=(0,u.RS)([],h,c,a),y=(0,u.RS)([],f,d,a);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([d,c]),this.tEndStack.push(t),this.arcEndStack.push(y),this._arcControlPoints[0]=l,this._arcControlPoints[1]=f,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:i}=this,[s,r]=this._curveControlPoints;return(0,o.B4)(e,s,r,i,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[i,s]=this._arcControlPoints;return Math.max((0,u.yE)(i,t,e),(0,u.yE)(s,t,e))}}class g extends y{constructor(t,e){const[i]=e.a;super(t,i),this._derivedEllipse=(0,c.SW)(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return(0,c.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,u.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function _(t,e,i,{cx:s,cy:r,radius:n,thetaStart:o,thetaEnd:a,isInvalid:l},{maxDeviation:h,maxSegmentLength:c,maxSegmentsPerCurve:m,minSegmentsPerCurve:d}){if(l)return t.push([...i]),t;const y=2*n,p=[s+n*Math.cos(o),r+n*Math.sin(o)],g=[s+n*Math.cos(a),r+n*Math.sin(a)];(0,u.kb)(e,p)>f&&t.push(p);const _=Math.abs(a-o),x=c>0&&c<y?2*Math.asin(c/y):_,S=h>0&&h<=n?2*Math.acos(1-h/n):_,M=Math.min(x,S),b=Math.min(m,Math.max(d,Math.ceil(Math.abs(_/M)))),w=1/b;for(let e=1;e<b;e++){const i=e*w,l=o*(1-i)+a*i;t.push([s+n*Math.cos(l),r+n*Math.sin(l)])}return t.push(g),(0,u.kb)(i,g)>f&&t.push([...i]),t}function x(t,e,i,s){return new p(e,i).densify(t,s)}function S(t,e,i,s){const r=(0,a.pM)(e,i),[n]=i.c;return _(t,e,n,r,s)}function M(t,e,i,s){const r=(0,h.io)(e,i),[n]=i.a;return _(t,e,n,r,s)}function b(t,e,i,s){const[r,n,o,a,l,h,c]=i.a;return 0===h||0===c?(t.push([...r]),t):new g(e,i).densify(t,s)}function w(t,e,i,s){return(0,l.Xq)(i)?(t.push([...i]),t):(0,l.n1)(i)?x(t,e,i,s):(0,l.aO)(i)?S(t,e,i,s):(0,l.DA)(i)?M(t,e,i,s):b(t,e,i,s)}function C(t,e={}){if(!(0,l.Ed)(t))return t;const i=d(e),s=(0,l.FD)(t),r=[];for(const t of s){const e=[];for(let s=0;s<t.length-1;s++){const r=s+1,n=[...(0,l.yP)(t[s])];0===s&&e.push(n),w(e,n,t[r],i)}r.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:r,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:r,spatialReference:t.spatialReference}}const P=(0,r.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function k(t,e,r){const o=new Set(e);return await async function(t,e,r){let n=null;for(const o of t)if(o&&(0,l.Ed)(o)&&null==o.spatialReference.xyTolerance&&(0,l.V8)(o,e)){const t=o.spatialReference;if(!t)throw new s.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const e=I(t);if(r.has(e))o.spatialReference=r.get(e);else{n||(n=await Promise.all([i.e(3661),i.e(1878),i.e(8885),i.e(5756),i.e(3299),i.e(6312)]).then(i.bind(i,78125)));const a=n.fromSpatialReference(t),l=a?.getTolerance();if(null==l)throw new s.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const h=o.spatialReference.clone();h.read({xyTolerance:l}),o.spatialReference=h,r.set(e,h)}}}(t,o,r),t.map(t=>{if(!t||!(0,l.Ed)(t))return t;const i=t.spatialReference.xyTolerance;if(null==i)return t;const s=P(i);return(0,n.rS)(function(t,e,i){if(!(0,l.Ed)(t))return t;const s=new Set(e),r=d(i),n=(0,l.FD)(t),o=[];let a=!1;for(const t of n){const e=[];for(let i=0;i<t.length-1;i++){const n=i+1,o=[...(0,l.yP)(t[i])];0===i&&e.push(o);const h=t[n];(0,l.Xq)(h)?e.push([...h]):(0,l.n1)(h)&&!s.has("cubic-bezier")?x(e,o,h,r):(0,l.aO)(h)&&!s.has("circular-arc")?S(e,o,h,r):(0,l.DA)(h)&&!s.has("elliptic-arc")?M(e,o,h,r):(0,l.wY)(h)&&!s.has("elliptic-arc")?b(e,o,h,r):(e.push((0,l.tk)(h)),a=!0)}o.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...a?{curvePaths:o}:{paths:o}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...a?{curveRings:o}:{rings:o}}}(t,e,s))})}function I(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}},92722(t,e,i){i.d(e,{A:()=>r});var s=i(69397);class r{constructor(t=[],e=[],i=!1,s=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=i,this.hasM=s}static fromJSON({lengths:t,coords:e,hasZ:i,hasM:s}){return new r(t,e,i||!1,s||!1)}static fromRect([t,e,i,s]){const n=i-t,o=s-e;return new r([5],[t,e,n,0,0,o,-n,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,s.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const i of this.lengths){if(i<3)continue;const{stride:s}=this;let r=this.coords[s*e],n=this.coords[s*e+1];for(let o=1;o<i;o+=1){const i=s*(e+o),a=this.coords[i],l=this.coords[i+1];t+=-.5*(a-r)*(l+n),r=a,n=l}e+=i}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:i}=this;for(const s of this.lengths){for(let r=0;r<s;r++){const s=i*(e+r);t(this.coords[s],this.coords[s+1])}e+=s}}deltaDecode(){const t=this.clone(),{coords:e,lengths:i}=t;let s=0;const{stride:r}=this;for(const t of i){for(let i=1;i<t;i++){const t=r*(s+i);e[t]+=e[t-r],e[t+1]+=e[t+1-r]}s+=t}return t}clone(t){if(this.isPoint)return new r([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:i,size:s}=this,n=this.coords.slice(0,s*i);return t?(t.set(n),new r(e,t,this.hasZ,this.hasM)):new r(e,Array.from(n),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const i=new Array(e*t);for(let e=0,s=0;e<i.length;e+=t)i[s++]=this.coords[e],i[s++]=this.coords[e+1];return new r(this.lengths,i,!1,!1)}}},28303(t,e,i){i.r(e),i.d(e,{CIMSymbolHelper:()=>ct,CIMSymbolInflatedSizeHelper:()=>ht,capTypeToEnum:()=>ft,forEachSymbolLayer:()=>ut,slsDashToTemplateArray:()=>St,symbolToCIM:()=>ot});const s=new(i(32488).A);function r(t,e=!0){if(!s.hasBidiChar(t))return[t,!1,{...s}];let i;i="rtl"===s.checkContextual(t)?"IDNNN":"ICNNN";const r=e?"VLYSN":"VLYNN";return[s.bidiTransform(t,i,r),!0,{...s}]}var n=i(4718),o=i(53966),a=i(87811),l=i(90629),h=i(19419),c=i(537),u=i(52006),f=i(31411),m=i(11831),d=i(35833),y=i(98939),p=i(57582),g=(i(44208),i(34727)),_=i(93687),x=i(36745),S=i(12359),M=(i(12176),i(60408));class b{applyColorSubstitution(t,e){if(!e)return t;this._rasterizationCanvas||(this._rasterizationCanvas=document.createElement("canvas"));const{width:i,height:s}=t,r=this._rasterizationCanvas,n=r.getContext("2d",{willReadFrequently:!0});t!==r&&(r.width=i,r.height=s,n.drawImage(t,0,0,i,s));const o=n.getImageData(0,0,i,s).data;if(e)for(const t of e)if(t&&t.oldColor&&4===t.oldColor.length&&t.newColor&&4===t.newColor.length){const[e,i,s,r]=t.oldColor,[n,a,l,h]=t.newColor;if(e===n&&i===a&&s===l&&r===h)continue;for(let t=0;t<o.length;t+=4)e===o[t]&&i===o[t+1]&&s===o[t+2]&&r===o[t+3]&&(o[t]=n,o[t+1]=a,o[t+2]=l,o[t+3]=h)}const a=new ImageData(o,i,s);return n.putImageData(a,0,0),r}tintImageData(t,e){if(!e||e.length<4)return t;this._rasterizationCanvas||(this._rasterizationCanvas=document.createElement("canvas"));const{width:i,height:s}=t,r=this._rasterizationCanvas,n=r.getContext("2d",{willReadFrequently:!0});t!==r&&(r.width=i,r.height=s,n.drawImage(t,0,0,i,s));const o=n.getImageData(0,0,i,s),a=new Uint8Array(o.data),l=[e[0]/255,e[1]/255,e[2]/255,e[3]/255];for(let t=0;t<a.length;t+=4)a[t]*=l[0],a[t+1]*=l[1],a[t+2]*=l[2],a[t+3]*=l[3];const h=new ImageData(new Uint8ClampedArray(a.buffer),i,s);return n.putImageData(h,0,0),r}}var w=i(59409),C=i(28076);function P(t){const e=t.getFrame(0);if(e instanceof HTMLImageElement||e instanceof HTMLCanvasElement)return e;const i=document.createElement("canvas");i.width=t.width,i.height=t.height;const s=i.getContext("2d");return e instanceof ImageData?s.putImageData(e,0,0):s.drawImage(e,0,0),i}function k(t,e=0){if(0===e)return t;const i=Math.cos(e),s=Math.sin(e),[r,n]=t;return[r*i+n*-s,r*s+n*i]}function I(t,e=0){let i=0;for(let s=0;s<4;s++)i+=t[e+s]*T[s];return i}const T=[1/256,1/65536,1/16777216,1/4294967296];I(new Uint8ClampedArray([255,255,255,255])),I(new Uint8ClampedArray([255,255,255,0])),i(35521);var L=i(76213);const R=()=>o.A.getLogger("esri.symbols.cim.rasterizingUtils");let v;function z(t,e){const{colorRamp:i,gradientType:s}=e,r=A(i),n="CIMFixedColorRamp"===i.type;if("Continuous"===s&&!n)return F(t,r);const o=e.interval??C.D.CIMGradientFill.interval;if(n)return F(t,function(t,e){const i=[],s=(t.length-1)/(e-1);for(let r=0;r<e;r++){const n=t[Math.round(r*s)].color;i.push({offset:r/e,color:n}),i.push({offset:(r+1)/e,color:n})}return i}(r,o));const a=[];v??=document.createElement("canvas"),function(t,e,i,s,r){const n=i+2*r;t.width=n,t.height=s;const o=(r+1)/n,a=t.getContext("2d",{willReadFrequently:!0});if(e.length>0){const t=a.createLinearGradient(0,0,n,s);F(t,e,o),a.fillStyle=t}else a.fillStyle="rgba(128, 128, 128, 1)";a.fillRect(0,0,n,s)}(v,r,o,1,0);const l=v.getContext("2d").getImageData(0,0,o,1).data;for(let t=0,e=0;t<o;t++,e=4*t){const i=[l[e+0],l[e+1],l[e+2],l[e+3]];a.push({offset:t/o,color:i}),a.push({offset:(t+1)/o,color:i})}return F(t,a)}function A(t){const e=[];switch(t.type){case"CIMPolarContinuousColorRamp":case"CIMLinearContinuousColorRamp":{"CIMPolarContinuousColorRamp"===t.type&&R().warnOnce("CIMPolarContinuousColorRamp is currently unsupported. Falling back to CIMLinearContinuousColorRamp.");const i=t;e.push({offset:0,color:[i.fromColor[0],i.fromColor[1],i.fromColor[2],i.fromColor[3]/255]}),e.push({offset:1,color:[i.toColor[0],i.toColor[1],i.toColor[2],i.toColor[3]/255]});break}case"CIMFixedColorRamp":{const i=t,s=1/(i.colors.length-1);let r=0;for(const t of i.colors)e.push({offset:r,color:[t[0],t[1],t[2],t[3]/255]}),r+=s;break}case"CIMMultipartColorRamp":{const i=t,s=i.weights.reduce((t,e)=>t+e,0);let r=0;for(let t=0;t<i.colorRamps.length;t++){const n=i.colorRamps[t],o=i.weights[t],a=A(n);for(const t of a)e.push({offset:(r+t.offset*o)/s,color:t.color});r+=o}break}default:R().error(`Color ramp "${t.type}" currently unsupported.`)}return e}function F(t,e,i=0){for(const{offset:s,color:r}of e)t.addColorStop(Math.min(Math.max(s,i),1-i),`rgba(${r[0]}, ${r[1]}, ${r[2]}, ${r[3]})`)}class E{constructor(t=0,e=0,i=0,s=0){this.x=t,this.y=e,this.width=i,this.height=s}static fromExtent(t){return new E(t.xmin,-t.ymax,t.xmax-t.xmin,t.ymax-t.ymin)}get isEmpty(){return this.width<=0||this.height<=0}union(t){this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.width=Math.max(this.width,t.width),this.height=Math.max(this.height,t.height)}}var D=i(5760);function U(t){return`rgba(${t.slice(0,3).toString()},${t[3]})`}class B{constructor(t){t&&(this._textRasterizationCanvas=t)}rasterizeText(t,e){this._textRasterizationCanvas||(this._textRasterizationCanvas=document.createElement("canvas"));const i=this._textRasterizationCanvas,s=i.getContext("2d",{willReadFrequently:!0});N(s,e),this._parameters=e,this._textLines=t.split(/\r?\n/),this._lineHeight=this._computeLineHeight();const{decoration:r,weight:n}=e.font;this._lineThroughWidthOffset=r&&"line-through"===r?.1*this._lineHeight:0;const o=null!=e.backgroundColor||null!=e.borderLine,a=o?D.y7:0,l=this._computeTextWidth(s,e)+2*a,h=this._lineHeight*this._textLines.length+2*a;if(i.width=l+2*this._lineThroughWidthOffset,i.height=h,0===i.width||0===i.height)return i.width=i.height=1,{size:[0,0],image:new Uint32Array(0),sdf:!1,simplePattern:!1,anchorX:0,anchorY:0,canvas:i};this._renderedLineHeight=Math.round(this._lineHeight),this._renderedOutlineSize=(e.outline.size||0)*e.pixelRatio,this._renderedHaloSize=(e.halo.size||0)*e.pixelRatio,this._renderedWidth=l,this._renderedHeight=h,this._lineThroughWidthOffset*=e.pixelRatio;const c=(e.outline&&e.outline.color)??[0,0,0,0],u=e.color??[0,0,0,0],f=e.halo&&e.halo.color?e.halo.color:[0,0,0,0];this._fillStyle=U(u),this._outlineStyle=U(c),this._haloStyle=function(t){return`rgb(${t.slice(0,3).toString()})`}(f);const m=this._renderedLineHeight,d=this._renderedOutlineSize,y=this._renderedHaloSize;s.save(),s.clearRect(0,0,i.width,i.height),N(s,e);const p=a*e.pixelRatio,g=function(t,e,i){return"center"===t?.5*e:"right"===t?e-i:i}(s.textAlign,this._renderedWidth-2*p,this._renderedHaloSize+this._renderedOutlineSize)+p,_=y+d+p,x=y>0;let S=this._lineThroughWidthOffset,M=0;if(o){s.save();const t=e.backgroundColor??[0,0,0,0],r=e.borderLine?.color??[0,0,0,0],n=2*(e.borderLine?.size??0);s.fillStyle=U(t),s.strokeStyle=U(r),s.lineWidth=n,s.fillRect(0,0,i.width,i.height),s.strokeRect(0,0,i.width,i.height),s.restore()}x&&this._renderHalo(s,g,_,S,M,e),d>0&&this._renderOutline(s,g,_,S,M,e),M+=_,S+=g;for(const t of this._textLines)x?(s.globalCompositeOperation="destination-out",s.fillStyle="rgb(0, 0, 0)",s.fillText(t,S,M),s.globalCompositeOperation="source-over",s.fillStyle=this._fillStyle,s.fillText(t,S,M)):(s.fillStyle=this._fillStyle,s.fillText(t,S,M)),r&&"none"!==r&&this._renderDecoration(s,S,M,r,n),M+=m;s.restore();const b=this._renderedWidth+2*this._lineThroughWidthOffset,w=this._renderedHeight,C=s.getImageData(0,0,b,w),P=new Uint8Array(C.data);if(e.premultiplyColors){let t;for(let e=0;e<P.length;e+=4)t=P[e+3]/255,P[e]=P[e]*t,P[e+1]=P[e+1]*t,P[e+2]=P[e+2]*t}let k,I;switch(e.horizontalAlignment){case"left":k=-.5;break;case"right":k=.5;break;default:k=0}switch(e.verticalAlignment){case"bottom":I=-.5;break;case"top":I=.5;break;case"baseline":I=-1/6;break;default:I=0}return{size:[b,w],image:new Uint32Array(P.buffer),sdf:!1,simplePattern:!1,anchorX:k,anchorY:I,canvas:i}}_renderHalo(t,e,i,s,r,n){const o=this._renderedWidth,a=this._renderedHeight;this._outlineRasterizationCanvas||(this._outlineRasterizationCanvas=document.createElement("canvas")),this._outlineRasterizationCanvas.width=o,this._outlineRasterizationCanvas.height=a;const l=this._outlineRasterizationCanvas,h=l.getContext("2d");h.clearRect(0,0,o,a),N(h,n);const{decoration:c,weight:u}=n.font;h.fillStyle=this._haloStyle,h.strokeStyle=this._haloStyle,h.lineJoin="round",this._renderOutlineNative(h,e,i,c,u,this._renderedHaloSize+this._renderedOutlineSize),t.globalAlpha=this._parameters.halo.color[3],t.drawImage(l,0,0,o,a,s,r,o,a),t.globalAlpha=1}_renderOutline(t,e,i,s,r,n){const o=this._renderedWidth,a=this._renderedHeight;this._outlineRasterizationCanvas||(this._outlineRasterizationCanvas=document.createElement("canvas")),this._outlineRasterizationCanvas.width=o,this._outlineRasterizationCanvas.height=a;const l=this._outlineRasterizationCanvas,h=l.getContext("2d");h.clearRect(0,0,o,a),N(h,n);const{decoration:c,weight:u}=n.font;h.fillStyle=this._outlineStyle,h.strokeStyle=this._outlineStyle,h.lineJoin="round",this._renderOutlineNative(h,e,i,c,u,this._renderedOutlineSize),t.globalAlpha=this._parameters.outline.color[3],t.drawImage(l,0,0,o,a,s,r,o,a),t.globalAlpha=1}_renderOutlineNative(t,e,i,s,r,n){const o=this._renderedLineHeight;for(const a of this._textLines){const l=2*n,h=5,c=.1;for(let n=0;n<h;n++){const o=(1-(h-1)*c+n*c)*l;t.lineWidth=o,t.strokeText(a,e,i),s&&"none"!==s&&this._renderDecoration(t,e,i,s,r,o)}i+=o}}computeTextSize(t,e){this._textRasterizationCanvas||(this._textRasterizationCanvas=document.createElement("canvas"));const i=this._textRasterizationCanvas,s=i.getContext("2d");N(s,e),this._parameters=e,this._textLines=t.split(/\r?\n/),this._lineHeight=this._computeLineHeight();const r=this._computeTextWidth(s,e),n=this._lineHeight*this._textLines.length;return i.width=r,i.height=n,[r*e.pixelRatio,n*e.pixelRatio]}_computeTextWidth(t,e){let i=0;for(const e of this._textLines)i=Math.max(i,t.measureText(e).width);const s=e.font;return("italic"===s.style||"oblique"===s.style||"string"==typeof s.weight&&("bold"===s.weight||"bolder"===s.weight)||"number"==typeof s.weight&&s.weight>600)&&(i+=.3*t.measureText("w").width),i+=2*(0,l.Lz)(this._parameters.halo.size),Math.round(i)}_computeLineHeightBase(){return 1.275*this._parameters.size}_computeLineHeight(){let t=this._computeLineHeightBase();const e=this._parameters.font.decoration;return e&&"underline"===e&&(t*=1.3),Math.round(t+2*(0,l.Lz)(this._parameters.halo.size))}_renderDecoration(t,e,i,s,r,n){let o=.9*this._lineHeight;const a="bold"===r?.06:"bolder"===r?.09:.04;switch(t.textAlign){case"center":e-=this._renderedWidth/2;break;case"right":e-=this._renderedWidth}const l=t.textBaseline;if("underline"===s)switch(o=.9*this._computeLineHeightBase(),l){case"top":i+=o;break;case"middle":i+=o/2}else if("line-through"===s)switch(l){case"top":i+=o/1.5;break;case"middle":i+=o/3}const h=n?1.5*n:Math.ceil(o*a);t.save(),t.beginPath(),t.strokeStyle=t.fillStyle,t.lineWidth=h,t.moveTo(e-this._lineThroughWidthOffset,i),t.lineTo(e+this._renderedWidth+2*this._lineThroughWidthOffset,i),t.stroke(),t.restore()}}function N(t,e){const i=Math.max(e.size,.5),s=e.font,r=`${s.style} ${s.weight} ${(0,l.Lz)(i).toFixed(1)}px ${s.family}, sans-serif`;let n;switch(t.font=r,t.textBaseline="top",e.horizontalAlignment){case"left":default:n="left";break;case"right":n="right";break;case"center":n="center"}t.textAlign=n}var $=i(93397),H=i(75434),G=i(69221);const O=Math.PI/180,V=()=>o.A.getLogger("esri.symbols.cim.CIMSymbolDrawHelper");class W{constructor(t){this._t=t}static createIdentity(){return new W([1,0,0,0,1,0])}clone(){const t=this._t;return new W(t.slice())}transform(t){const e=this._t;return[e[0]*t[0]+e[1]*t[1]+e[2],e[3]*t[0]+e[4]*t[1]+e[5]]}static createScale(t,e){return new W([t,0,0,0,e,0])}scale(t,e){const i=this._t;return i[0]*=t,i[1]*=t,i[2]*=t,i[3]*=e,i[4]*=e,i[5]*=e,this}scaleRatio(){return Math.sqrt(this._t[0]*this._t[0]+this._t[1]*this._t[1])}static createTranslate(t,e){return new W([0,0,t,0,0,e])}translate(t,e){const i=this._t;return i[2]+=t,i[5]+=e,this}static createRotate(t){const e=Math.cos(t),i=Math.sin(t);return new W([e,-i,0,i,e,0])}rotate(t){return W.multiply(this,W.createRotate(t),this)}angle(){const t=this._t[0],e=this._t[3],i=Math.sqrt(t*t+e*e);return[t/i,e/i]}static multiply(t,e,i){const s=t._t,r=e._t,n=s[0]*r[0]+s[3]*r[1],o=s[1]*r[0]+s[4]*r[1],a=s[2]*r[0]+s[5]*r[1]+r[2],l=s[0]*r[3]+s[3]*r[4],h=s[1]*r[3]+s[4]*r[4],c=s[2]*r[3]+s[5]*r[4]+r[5],u=i._t;return u[0]=n,u[1]=o,u[2]=a,u[3]=l,u[4]=h,u[5]=c,i}invert(){const t=this._t;let e=t[0]*t[4]-t[1]*t[3];if(0===e)return new W([0,0,0,0,0,0]);e=1/e;const i=(t[1]*t[5]-t[2]*t[4])*e,s=(t[2]*t[3]-t[0]*t[5])*e,r=t[4]*e,n=-t[1]*e,o=-t[3]*e,a=t[0]*e;return new W([r,n,i,o,a,s])}}class X{constructor(t,e){this._resourceManager=t,this._transfos=[],this._sizeTransfos=[],this._textScaling=[],this._geomUnitsPerPoint=1,this._placementPool=new _.A(()=>new y.W,void 0,void 0,100),this._earlyReturn=!1,this._mapRotation=0,this._transfos.push(e||W.createIdentity()),this._sizeTransfos.push(e?e.scaleRatio():1),this._textScaling.push(1)}setTransform(t,e){this._transfos=[t||W.createIdentity()],this._sizeTransfos=[e||(t?t.scaleRatio():1)],this._textScaling=[1]}setGeomUnitsPerPoint(t){this._geomUnitsPerPoint=t}transformPt(t){return this._transfos[this._transfos.length-1].transform(t)}transformSize(t){return t*this._sizeTransfos[this._sizeTransfos.length-1]}scaleText(t){return t*this._textScaling[this._textScaling.length-1]}reverseTransformPt(t){return this._transfos[this._transfos.length-1].invert().transform(t)}reverseTransformSize(t){return t/this._sizeTransfos[this._sizeTransfos.length-1]}reverseTransformScalar(t){return t/this._transfos[this._transfos.length-1].scaleRatio()}reverseScaleText(t){return t/this._textScaling[this._textScaling.length-1]}getTransformAngle(){return this._transfos[this._transfos.length-1].angle()}geomUnitsPerPoint(){return this.isEmbedded()?1:this._geomUnitsPerPoint}prevGeomUnitsPerPoint(){return this._transfos.length>2?1:this._geomUnitsPerPoint}isEmbedded(){return this._transfos.length>1}back(){return this._transfos[this._transfos.length-1]}push(t,e=!1,i=1){const s=e?t.scaleRatio():1;W.multiply(t,this.back(),t),this._transfos.push(t),this._sizeTransfos.push(this._sizeTransfos[this._sizeTransfos.length-1]*s),this._textScaling.push(this._textScaling[this._textScaling.length-1]*i)}pop(){this._transfos.splice(-1,1),this._sizeTransfos.splice(-1,1),this._textScaling.splice(-1,1)}drawSymbol(t,e,i){if(t)switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":this.drawMultiLayerSymbol(t,e);break;case"CIMTextSymbol":this.drawTextSymbol(t,e,i)}}drawMultiLayerSymbol(t,e){if(!t||!e)return;const i=t.symbolLayers;if(!i)return;const s=t.effects;if(s&&s.length>0){const t=this.executeEffects(s,e);if(t){let e=t.next();for(;e;)this.drawSymbolLayers(i,e.asJSON()),e=t.next()}}else this.drawSymbolLayers(i,e)}executeEffects(t,e){const i=this.geomUnitsPerPoint(),s=(0,$.ll)(t);let r=new d.kT(x.z.fromJSONCIM(e));for(const n of t){const t=(0,w.A)(n);t&&(r=t.execute(r,n,{geomUnitsPerPoint:i,tileKey:null,maxInflateSize:s,scale:null,spatialReference:e.spatialReference,preventClipping:!1}))}return r}drawSymbolLayers(t,e){let i=t.length;for(;i--;){const s=t[i];if(!s||!1===s.enable)continue;const r=s.effects;if(r&&r.length>0){const t=this.executeEffects(r,e);if(t){let e=null;for(;(e=t.next())&&(this.drawSymbolLayer(s,e.asJSON()),!this._earlyReturn););}}else this.drawSymbolLayer(s,e);if(this._earlyReturn)return}}drawSymbolLayer(t,e){switch(t.type){case"CIMSolidFill":this.drawSolidFill(e,t.color,t.path);break;case"CIMHatchFill":this.drawHatchFill(e,t);break;case"CIMPictureFill":this.drawPictureFill(e,t);break;case"CIMGradientFill":this.drawGradientFill(e,t);break;case"CIMSolidStroke":this.drawSolidStroke(e,t.color,t.width,t.capStyle,t.joinStyle,t.miterLimit,t.path);break;case"CIMPictureStroke":this.drawPictureStroke(e,t);break;case"CIMGradientStroke":this.drawGradientStroke(e,t);break;case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":this.drawMarkerLayer(t,e)}}drawHatchFill(t,e){const i=function(t,e,i){let s=(0,$.$w)(t.separation,C.D.CIMHatchFill.separation)*i,r=(0,$.$w)(t.rotation);if(0===s)return null;s<0&&(s=-s);let n=0;const o=.5*s;for(;n>o;)n-=s;for(;n<-o;)n+=s;const a=(0,h.vt)();(0,c.Rg)(a,e),a[0]-=o,a[1]-=o,a[2]+=o,a[3]+=o;const l=[[a[0],a[1]],[a[0],a[3]],[a[2],a[3]],[a[2],a[1]]];for(;r>180;)r-=180;for(;r<0;)r+=180;const u=Math.cos(r*O),f=Math.sin(r*O),m=-s*f,d=s*u;let y,p,g,_;n=(0,$.$w)(t.offsetX)*i*f-(0,$.$w)(t.offsetY)*i*u,y=g=Number.MAX_VALUE,p=_=-Number.MAX_VALUE;for(const t of l){const e=t[0],i=t[1],s=u*e+f*i,r=-f*e+u*i;y=Math.min(y,s),g=Math.min(g,r),p=Math.max(p,s),_=Math.max(_,r)}g=Math.floor(g/s)*s;let x=u*y-f*g-m*n/s,S=f*y+u*g-d*n/s,M=u*p-f*g-m*n/s,b=f*p+u*g-d*n/s;const w=1+Math.round((_-g)/s),P=[];for(let t=0;t<w;t++)x+=m,S+=d,M+=m,b+=d,P.push([[x,S],[M,b]]);return{paths:P}}(e,t,this.geomUnitsPerPoint());i&&(this.pushClipPath(t),this.drawMultiLayerSymbol(e.lineSymbol,i),this.popClipPath())}drawPictureFill(t,e){}drawGradientFill(t,e){}drawPictureStroke(t,e){}drawGradientStroke(t,e){}drawMarkerLayer(t,e){const i=t.markerPlacement;if(i){const s=(0,w.c)(i);if(s){const r="CIMMarkerPlacementInsidePolygon"===i.type||"CIMMarkerPlacementPolygonCenter"===i.type&&i.clipAtBoundary;r&&this.pushClipPath(e);const n=s.execute(x.z.fromJSONCIM(e),i,this.geomUnitsPerPoint(),null);if(n){let e=null;for(;(e=n.next())&&(this.drawMarker(t,e),!this._earlyReturn););}r&&this.popClipPath()}}else{const i=this._placementPool.acquire();if((0,M.fT)(e))i.tx=e.x,i.ty=e.y,this.drawMarker(t,i);else if((0,M.Bi)(e)){const s=(0,S.l8)(e);s&&([i.tx,i.ty]=s,this.drawMarker(t,i))}else if((0,M.Rg)(e)){for(const s of e.paths)for(const e of s)if(i.tx=e[0],i.ty=e[1],this.drawMarker(t,i),this._earlyReturn)break}else for(const s of e.points)if(i.tx=s[0],i.ty=s[1],this.drawMarker(t,i),this._earlyReturn)break;this._placementPool.release(i)}}drawMarker(t,e){switch(t.type){case"CIMCharacterMarker":case"CIMPictureMarker":this.drawPictureMarker(t,e);break;case"CIMVectorMarker":this.drawVectorMarker(t,e)}}drawPictureMarker(t,e){if(!t)return;const i=this._resourceManager.getResource(t.url),s=(0,$.$w)(t.size,C.D.CIMPictureMarker.size);if(null==i||s<=0)return;const r=i.width,n=i.height;if(!r||!n)return;const o=r/n,a=(0,$.$w)(t.scaleX,1),l=W.createIdentity(),h=t.anchorPoint;if(h){let e=h.x,i=h.y;"Absolute"!==t.anchorPointUnits&&(e*=s*o*a,i*=s),l.translate(-e,-i)}let c=(0,$.$w)(t.rotation);t.rotateClockwise&&(c=-c),this._mapRotation&&(c+=this._mapRotation),c&&l.rotate(c*O);let u=(0,$.$w)(t.offsetX),f=(0,$.$w)(t.offsetY);if(u||f){if(this._mapRotation){const t=O*this._mapRotation,e=Math.cos(t),i=Math.sin(t),s=u*i+f*e;u=u*e-f*i,f=s}l.translate(u,f)}const m=this.geomUnitsPerPoint();1!==m&&l.scale(m,m);const d=e.getAngle();d&&l.rotate(d),l.translate(e.tx,e.ty),this.push(l),this.drawImage(t,s),this.pop()}drawVectorMarker(t,e){if(!t)return;const i=t.markerGraphics;if(!i)return;const s=(0,$.$w)(t.size,C.D.CIMVectorMarker.size),r=t.frame,n=r?r.ymax-r.ymin:0,o=s&&n?s/n:1,a=W.createIdentity();r&&a.translate(.5*-(r.xmax+r.xmin),.5*-(r.ymax+r.ymin));const l=t.anchorPoint;if(l){let e=l.x,i=l.y;"Absolute"!==t.anchorPointUnits?r&&(e*=r.xmax-r.xmin,i*=r.ymax-r.ymin):(e/=o,i/=o),a.translate(-e,-i)}1!==o&&a.scale(o,o);let h=(0,$.$w)(t.rotation);t.rotateClockwise&&(h=-h),this._mapRotation&&(h+=this._mapRotation),h&&a.rotate(h*O);let c=(0,$.$w)(t.offsetX),u=(0,$.$w)(t.offsetY);if(c||u){if(this._mapRotation){const t=O*this._mapRotation,e=Math.cos(t),i=Math.sin(t),s=c*i+u*e;c=c*e-u*i,u=s}a.translate(c,u)}const f=this.geomUnitsPerPoint();1!==f&&a.scale(f,f);const m=e.getAngle();m&&a.rotate(m),a.translate(e.tx,e.ty);const d=t.scaleSymbolsProportionally?1:o;this.push(a,t.scaleSymbolsProportionally,d);for(const t of i){t?.symbol&&t.geometry||V().error("Invalid marker graphic",t);let e=t.textString;if("number"==typeof e&&(e=e.toString()),this.drawSymbol(t.symbol,t.geometry,e),this._earlyReturn)break}this.pop()}drawTextSymbol(t,e,i){if(!t)return;if(!(0,M.fT)(e))return;if((0,$.$w)(t.height,C.D.CIMTextSymbol.height)<=0)return;const s=W.createIdentity();let r=(0,$.$w)(t.angle);r=-r,r&&s.rotate(r*O);const n=(0,$.$w)(t.offsetX),o=(0,$.$w)(t.offsetY);(n||o)&&s.translate(n,o);const a=this.geomUnitsPerPoint();1!==a&&s.scale(a,a),s.translate(e.x,e.y),this.push(s),this.drawText(t,i),this.pop()}}class q extends X{constructor(t,e){super(t,e),this.reset()}reset(){this._xmin=this._ymin=1/0,this._xmax=this._ymax=-1/0,this._clipCount=0}envelope(){return new E(this._xmin,this._ymin,this._xmax-this._xmin,this._ymax-this._ymin)}bounds(){return(0,h.fA)(this._xmin,this._ymin,this._xmax,this._ymax)}drawSolidFill(t){if(t&&!(this._clipCount>0))if((0,M.Bi)(t))this._processPath(t.rings,0);else if((0,M.Rg)(t))this._processPath(t.paths,0);else if((0,M.ZC)(t)){const e=J(t);e&&this._processPath(e.rings,0)}else console.error("drawSolidFill Unexpected geometry type!")}drawSolidStroke(t,e,i){if(!t||this._clipCount>0||null==i||i<=0)return;const s=Math.max(.5*this.transformSize((0,$.$w)(i,C.D.CIMSolidStroke.width)),.25);if((0,M.Bi)(t))this._processPath(t.rings,s);else if((0,M.Rg)(t))this._processPath(t.paths,s);else if((0,M.ZC)(t)){const e=J(t);e&&this._processPath(e.rings,s)}else console.error("drawSolidStroke unexpected geometry type!")}drawMarkerLayer(t,e){(0,M.Bi)(e)&&t.markerPlacement&&("CIMMarkerPlacementInsidePolygon"===t.markerPlacement.type||"CIMMarkerPlacementPolygonCenter"===t.markerPlacement.type&&t.markerPlacement.clipAtBoundary)?this._processPath(e.rings,0):super.drawMarkerLayer(t,e)}drawHatchFill(t,e){this.drawSolidFill(t)}drawPictureFill(t,e){this.drawSolidFill(t)}drawGradientFill(t,e){this.drawSolidFill(t)}drawPictureStroke(t,e){this.drawSolidStroke(t,null,e.width)}drawGradientStroke(t,e){this.drawSolidStroke(t,null,e.width)}pushClipPath(t){this.drawSolidFill(t),this._clipCount++}popClipPath(){this._clipCount--}drawImage(t,e){const{url:i}=t,s=(0,$.$w)(t.scaleX,1);let r=s*e,n=e;const o=this._resourceManager.getResource(i);if(null!=o){const t=o.height/o.width;r=s*(e?t>1?e:e/t:o.width),n=e?t>1?e*t:e:o.height}this._merge(this.transformPt([-r/2,-n/2]),0),this._merge(this.transformPt([-r/2,n/2]),0),this._merge(this.transformPt([r/2,-n/2]),0),this._merge(this.transformPt([r/2,n/2]),0)}drawText(t,e){if(!e||0===e.length)return;this._textRasterizer||(this._textRasterizer=new B);const i=j(t);let[s,r]=this._textRasterizer.computeTextSize(e,i);s=(0,l.PN)(s),r=(0,l.PN)(r);const n=this.transformSize(1)*this.reverseTransformScalar(1);s*=n,r*=n;const o=t.horizontalAlignment??C.D.CIMTextSymbol.horizontalalignment,a=t.verticalAlignment??C.D.CIMTextSymbol.verticalalignment;let h=0;switch(o){case"Left":h=s/2;break;case"Right":h=-s/2}let c=0;switch(a){case"Bottom":c=r/2;break;case"Top":c=-r/2;break;case"Baseline":c=r/6}this._merge(this.transformPt([-s/2+h,-r/2+c]),0),this._merge(this.transformPt([-s/2+h,r/2+c]),0),this._merge(this.transformPt([s/2+h,-r/2+c]),0),this._merge(this.transformPt([s/2+h,r/2+c]),0)}_processPath(t,e){if(t)for(const i of t){const t=i?i.length:0;if(t>1){this._merge(this.transformPt(i[0]),e);for(let s=1;s<t;s++)this._merge(this.transformPt(i[s]),e)}}}_merge(t,e){t[0]-e<this._xmin&&(this._xmin=t[0]-e),t[0]+e>this._xmax&&(this._xmax=t[0]+e),t[1]-e<this._ymin&&(this._ymin=t[1]-e),t[1]+e>this._ymax&&(this._ymax=t[1]+e)}}class Y extends X{constructor(t,e,i,s){super(e,i),this._applyAdditionalRenderProps=s,this._colorSubstitutionHelper=new b,this._ctx=t}drawSolidFill(t,e){if(!t)return;if((0,M.Bi)(t))this._buildPath(t.rings,!0);else if((0,M.Rg)(t))this._buildPath(t.paths,!0);else if((0,M.ZC)(t))this._buildPath(J(t).rings,!0);else{if(!(0,M.U9)(t))return;console.log("CanvasDrawHelper.drawSolidFill - No implementation!")}const i=this._ctx;i.fillStyle="string"==typeof e?e:"rgba("+Math.round(e[0])+","+Math.round(e[1])+","+Math.round(e[2])+","+(e[3]??255)/255+")",i.fill("evenodd")}drawSolidStroke(t,e,i,s,r,n){if(!t||!e||0===i)return;if((0,M.Bi)(t))this._buildPath(t.rings,!0);else if((0,M.Rg)(t))this._buildPath(t.paths,!1);else{if(!(0,M.ZC)(t))return void console.log("CanvasDrawHelper.drawSolidStroke isn't implemented!");this._buildPath(J(t).rings,!0)}const o=this._ctx;o.strokeStyle="string"==typeof e?e:"rgba("+Math.round(e[0])+","+Math.round(e[1])+","+Math.round(e[2])+","+(e[3]??255)/255+")",o.lineWidth=Math.max(this.transformSize(i),.5),this._setCapStyle(s),this._setJoinStyle(r),o.miterLimit=n,o.stroke()}pushClipPath(t){if(this._ctx.save(),(0,M.Bi)(t))this._buildPath(t.rings,!0);else if((0,M.Rg)(t))this._buildPath(t.paths,!0);else{if(!(0,M.ZC)(t))return;this._buildPath(J(t).rings,!0)}this._ctx.clip("evenodd")}popClipPath(){this._ctx.restore()}drawImage(t,e){const{colorSubstitutions:i,url:s,tintColor:r}=t,n=(0,$.$w)(t.scaleX,1),o=this._resourceManager.getResource(s);if(null==o)return;let a=e*(o.width/o.height),l=e;e||(a=o.width,l=o.height);const h=(0,$.UE)(s)||"src"in o&&(0,$.UE)(o.src);let c="getFrame"in o?P(o):o;i&&(c=this._colorSubstitutionHelper.applyColorSubstitution(c,i)),this._applyAdditionalRenderProps&&!h&&r&&(c=this._colorSubstitutionHelper.tintImageData(c,r));const u=this.transformPt([0,0]),[f,m]=this.getTransformAngle(),d=this.transformSize(1),y=this._ctx;y.save(),y.setTransform({m11:n*d*f,m12:n*d*m,m21:-d*m,m22:d*f,m41:u[0],m42:u[1]}),y.drawImage(c,-a/2,-l/2,a,l),y.restore()}drawText(t,e){if(!e||0===e.length)return;this._textRasterizer||(this._textRasterizer=new B);const i=j(t,this.transformSize((0,l.PN)(1))),s=this._textRasterizer.rasterizeText(e,i);if(!s)return;const{size:r,anchorX:n,anchorY:o,canvas:a}=s,h=r[0]*(n+.5),c=r[1]*(o-.5),u=this._ctx,f=this.transformPt([0,0]),[m,d]=this.getTransformAngle();u.save(),u.setTransform({m11:1*m,m12:1*d,m21:-1*d,m22:1*m,m41:f[0]-1*h,m42:f[1]+1*c}),u.drawImage(a,0,0),u.restore()}drawPictureFill(t,e){if(!t)return;let{colorSubstitutions:i,height:s,offsetX:r,offsetY:n,rotation:o,scaleX:a,tintColor:l,url:h}=e;const c=this._resourceManager.getResource(h);if(null==c)return;if((0,M.Bi)(t))this._buildPath(t.rings,!0);else if((0,M.Rg)(t))this._buildPath(t.paths,!0);else if((0,M.ZC)(t))this._buildPath(J(t).rings,!0);else{if(!(0,M.U9)(t))return;console.log("CanvasDrawHelper.drawPictureFill - No implementation!")}const u=this._ctx,f=(0,$.UE)(h)||"src"in c&&(0,$.UE)(c.src);let m,d="getFrame"in c?P(c):c;if(i&&(d=this._colorSubstitutionHelper.applyColorSubstitution(d,i)),this._applyAdditionalRenderProps){f||l&&(d=this._colorSubstitutionHelper.tintImageData(d,l)),m=u.createPattern(d,"repeat");const t=this.transformSize(1);o||(o=0),r?r*=t:r=0,n?n*=t:n=0,s&&(s*=t);const e=s?s/c.height:1,i=a&&s?a*s/c.width:1;if(0!==o||1!==e||1!==i||0!==r||0!==n){const t=new DOMMatrix;t.rotateSelf(0,0,-o).translateSelf(r,n).scaleSelf(i,e,1),m.setTransform(t)}}else m=u.createPattern(d,"repeat");u.save(),u.fillStyle=m,u.fill("evenodd"),u.restore()}drawPictureStroke(t,e){if(!t)return;let{colorSubstitutions:i,capStyle:s,joinStyle:r,miterLimit:o,tintColor:a,url:h,width:c}=e;const u=this._resourceManager.getResource(h);if(null==u)return;let f;if((0,M.Bi)(t))f=t.rings;else if((0,M.Rg)(t))f=t.paths;else{if(!(0,M.ZC)(t))return(0,M.U9)(t)?void console.log("CanvasDrawHelper.drawPictureStroke - No implementation!"):void 0;f=J(t).rings}c||(c=u.width);const m=(0,$.UE)(h)||"src"in u&&(0,$.UE)(u.src);let d="getFrame"in u?P(u):u;i&&(d=this._colorSubstitutionHelper.applyColorSubstitution(d,i)),this._applyAdditionalRenderProps&&(m||a&&(d=this._colorSubstitutionHelper.tintImageData(d,a)));const y=Math.max(this.transformSize((0,l.Lz)(c)),.5),p=y/d.width,g=this._ctx,_=g.createPattern(d,"repeat-y");let x,S;g.save(),this._setCapStyle(s),this._setJoinStyle(r),void 0!==o&&(g.miterLimit=o),g.lineWidth=y;for(let t of f)if(t=(0,n.o8)(t),K(t),t&&!(t.length<=1)){x=this.transformPt(t[0]);for(let e=1;e<t.length;e++){S=this.transformPt(t[e]);const i=Z(x,S),s=new DOMMatrix;s.translateSelf(0,x[1]-y/2).scaleSelf(p,p,1).rotateSelf(0,0,90-i),_.setTransform(s),g.strokeStyle=_,g.beginPath(),g.moveTo(x[0],x[1]),g.lineTo(S[0],S[1]),g.stroke(),x=S}}g.restore()}drawGradientFill(t,e){if(!t)return;let i;if((0,M.Bi)(t))i=t.rings;else if((0,M.Rg)(t))i=t.paths;else{if(!(0,M.ZC)(t))return void V().error("Unable to draw gradient fill");i=J(t).rings}this._buildPath(i,!0);const{angle:s,gradientMethod:r,gradientSize:n,gradientSizeUnits:o}=e,a=C.D.CIMGradientFill,c=e.gradientType??a.gradientType,u=-(0,g.kU)(s??0),f=(0,h.Ie)();for(const t of i){const e=t?t.length:0;if(e>1)for(let i=0;i<e;i++){let e=this.transformPt(t[i]);"Linear"!==r&&"Rectangular"!==r||(e=k(e,-u)),(0,h.tK)(f,e)}}const[m,d,y,p]=f,_=this._ctx;switch(_.save(),r){case"Buffered":V().error(`Gradient method "${r}" currently unsupported.`);break;case"Linear":{const t=(d+p)/2,i="Absolute"===o?this.transformSize((0,l.Lz)(n)):(0,$.yX)(n,a.gradientSize)*(y-m),[s,r]="Discrete"===c?[y,y-i]:[m+i,m],h=k([s,t],u),f=k([r,t],u),g=_.createLinearGradient(h[0],h[1],f[0],f[1]);z(g,e),_.fillStyle=g,_.fill("evenodd");break}case"Circular":{const t=(0,h.gX)(f),i=(0,h.ib)(f)/2,s="Absolute"===o?this.transformSize((0,l.Lz)(n)):(0,$.yX)(n,a.gradientSize)*i,[r,u]="Discrete"===c?[i,i-s]:[s,0],m=_.createRadialGradient(t[0],t[1],r,t[0],t[1],u);z(m,e),_.fillStyle=m,_.fill("evenodd");break}case"Rectangular":{const i=(0,h.gX)(f),s=i[0],r=i[1],g=k(i,u),x=(i,s,r,n,o,a,l,h)=>{_.save(),this.pushClipPath(t);const c=k([o,a],u),f=k([l,h],u);_.beginPath(),_.moveTo(g[0],g[1]),_.lineTo(c[0],c[1]),_.lineTo(f[0],f[1]),_.lineTo(g[0],g[1]),_.clip();const m=k([i,s],u),d=k([r,n],u),y=_.createLinearGradient(m[0],m[1],d[0],d[1]);z(y,e),_.fillStyle=y,_.fill("evenodd"),_.restore()};let S="Absolute"===o?this.transformSize((0,l.Lz)(n)):(0,$.yX)(n,a.gradientSize)*((0,h.VL)(f)/2),[M,b]="Discrete"===c?[y,y-S]:[s+S,s];x(M,r,b,r,y,d,y,p),[M,b]="Discrete"===c?[m,m+S]:[s-S,s],x(M,r,b,r,m,p,m,d),S="Absolute"===o?this.transformSize((0,l.Lz)(n)):(0,$.yX)(n,a.gradientSize)*((0,h.uJ)(f)/2);let[w,C]="Discrete"===c?[p,p-S]:[r+S,r];x(s,w,s,C,y,p,m,p),[w,C]="Discrete"===c?[d,d+S]:[r-S,r],x(s,w,s,C,m,d,y,d);break}}_.restore()}drawGradientStroke(t,e){const{capStyle:i,gradientMethod:s,gradientSize:r,gradientSizeUnits:o,joinStyle:a,miterLimit:h,width:c}=e;if(!t||0===c)return;let u;if((0,M.Bi)(t))u=t.rings;else if((0,M.Rg)(t))u=t.paths;else{if(!(0,M.ZC)(t))return void V().error("Unable to draw gradient stroke");u=J(t).rings}const f=e.gradientType??C.D.CIMGradientStroke.gradientType,m=Math.max(this.transformSize((0,l.Lz)(c)),.5),d=this._ctx;let y,p;d.save(),this._setCapStyle(i),this._setJoinStyle(a),void 0!==h&&(d.miterLimit=h),d.lineWidth=m;for(let t of u){if(t=(0,n.o8)(t),K(t),!t||t.length<=1)continue;let i=0;y=this.transformPt(t[0]);for(let e=1;e<t.length;e++){p=this.transformPt(t[e]);const s=p[0]-y[0],r=p[1]-y[1];i+=Math.sqrt(s*s+r*r),y=p}const a="Absolute"===o?this.transformSize((0,l.Lz)(r)):(0,$.yX)(r,C.D.CIMGradientStroke.gradientSize)*("AcrossLine"===s?m:i);let h=0;y=this.transformPt(t[0]);for(let r=1;r<t.length;r++){p=this.transformPt(t[r]);const n=p[0]-y[0],o=p[1]-y[1],l=Math.sqrt(n*n+o*o);let c,u,g,_;switch(s){case"AcrossLine":{const[t,e]=k([n/l,o/l],-Math.PI/2),i=m/2,s="Discrete"===f?i:a-i;c=(y[0]+p[0])/2+t*s,u=(y[1]+p[1])/2+e*s,g=c-t*a,_=u-e*a;break}case"AlongLine":{const t=n/l,e=o/l;"Discrete"===f?(c=y[0]-t*h,u=y[1]-e*h,g=c+t*a,_=u+e*a):(g=y[0]+t*(i-h),_=y[1]+e*(i-h),c=g-t*a,u=_-e*a);break}default:return V().error("Unrecognized gradient method:",s),void d.restore()}const x=d.createLinearGradient(c,u,g,_);z(x,e),d.strokeStyle=x,d.beginPath(),d.moveTo(y[0],y[1]),d.lineTo(p[0],p[1]),d.stroke(),h+=l,y=p}}d.restore()}_buildPath(t,e){const i=this._ctx;if(i.beginPath(),t)for(const s of t){const t=s?s.length:0;if(t>1){let r=this.transformPt(s[0]);i.moveTo(r[0],r[1]);for(let e=1;e<t;e++)r=this.transformPt(s[e]),i.lineTo(r[0],r[1]);e&&i.closePath()}}}_setCapStyle(t){switch(t){case"Butt":this._ctx.lineCap="butt";break;case"Round":this._ctx.lineCap="round";break;case"Square":this._ctx.lineCap="square"}}_setJoinStyle(t){switch(t){case"Bevel":this._ctx.lineJoin="bevel";break;case"Round":this._ctx.lineJoin="round";break;case"Miter":this._ctx.lineJoin="miter"}}}function Z(t,e){const i=e[0]-t[0],s=e[1]-t[1];return 180/Math.PI*Math.atan2(s,i)}const J=t=>t?{spatialReference:t.spatialReference,rings:[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]]}:null;function j(t,e=1){const i=(0,$.DW)(t),s=(0,$._d)(t.fontStyleName),r=t.fontFamilyName??p.Vb,{weight:n,style:o}=s,a=e*(t.height||5),l=(0,$.Bu)(t.horizontalAlignment),h=(0,$.Nl)(t.verticalAlignment),c=(0,$.pM)(t),u=(0,$.pM)(t.haloSymbol),f=null!=u?e*(t.haloSize??0):0,m=(0,$._1)(t.symbol),d=e*((0,$.xo)(t.symbol)||0),y="CIMBackgroundCallout"===t.callout?.type?t.callout.backgroundSymbol:null,g=(0,$.pM)(y),_=(0,$.xo)(y),x=(0,$._1)(y);return{color:c,size:a,horizontalAlignment:l,verticalAlignment:h,font:{family:r,style:(0,$.pV)(o),weight:(0,$.Kn)(n),decoration:i},outline:{size:d||0,color:m},halo:{size:f||0,color:u,style:o},backgroundColor:g,borderLine:null!=_&&null!=x?{size:_,color:x}:null,pixelRatio:1,premultiplyColors:!0}}function K(t){let e,i,s,r,n,o=t[0],a=1;for(;a<t.length;)e=t[a][0]-o[0],i=t[a][1]-o[1],r=0!==e?i/e:Math.PI/2,void 0!==s&&Math.abs(r-s)<=1e-4?(t.splice(a-1,1),o=n):(n=o,o=t[a],a++),s=r}var Q=i(59868),tt=i(13195);const et=Math.PI,it=et/2,st=Math.PI/180,rt=96/72,nt=()=>o.A.getLogger("esri.symbols.cim.CIMSymbolHelper");function ot(t){let e;switch(t.type){case"cim":return t.data;case"web-style":return t;case"simple-marker":{const i=ct.fromSimpleMarker(t);if(!i)throw new Error("InternalError: Cannot convert symbol to CIM");e=i;break}case"picture-marker":e=ct.fromPictureMarker(t);break;case"simple-line":e=ct.fromSimpleLineSymbol(t);break;case"simple-fill":e=ct.fromSimpleFillSymbol(t);break;case"picture-fill":e=ct.fromPictureFillSymbol(t);break;case"text":e=ct.fromTextSymbol(t)}return{type:"CIMSymbolReference",symbol:e}}function at(t,e,i){switch(e.type){case"CIMSymbolReference":return at(t,e.symbol,i);case"CIMPointSymbol":null==i&&(i={x:0,y:0}),t.drawSymbol(e,i);break;case"CIMLineSymbol":null==i&&(i={paths:[[[0,0],[10,0]]]}),t.drawSymbol(e,i);break;case"CIMPolygonSymbol":null==i&&(i={rings:[[[0,0],[0,10],[10,10],[10,0],[0,0]]]}),t.drawSymbol(e,i);break;case"CIMTextSymbol":{const i={x:0,y:0};t.drawSymbol(e,i);break}case"CIMVectorMarker":{const i=new y.W;t.drawMarker(e,i);break}}return t.envelope()}function lt(t){if(!t)return 0;switch(t.type){case"CIMMarkerPlacementAlongLineSameSize":case"CIMMarkerPlacementAlongLineRandomSize":case"CIMMarkerPlacementAtExtremities":case"CIMMarkerPlacementAtMeasuredUnits":case"CIMMarkerPlacementAtRatioPositions":case"CIMMarkerPlacementOnLine":case"CIMMarkerPlacementOnVertices":return Math.abs(t.offset??0);default:return 0}}class ht{static getSymbolInflateSize(t,e,i,s,r){return t||(t=[0,0,0,0]),e?this._getInflateSize(t,e,i,s,r):t}static safeSize(t){const e=Math.max(Math.abs(t[0]),Math.abs(t[2])),i=Math.max(Math.abs(t[1]),Math.abs(t[3]));return Math.sqrt(e*e+i*i)}static _vectorMarkerBounds(t,e,i,s){let r=!0;const n=(0,h.vt)();if(e?.markerGraphics)for(const o of e.markerGraphics){const e=[0,0,0,0];o.geometry&&((0,c.Rg)(n,o.geometry),e[0]=0,e[1]=0,e[2]=0,e[3]=0,this.getSymbolInflateSize(e,o.symbol,i,0,s),n[0]+=e[0],n[1]+=e[1],n[2]+=e[2],n[3]+=e[3],r?(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],r=!1):(t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[2]=Math.max(t[2],n[2]),t[3]=Math.max(t[3],n[3])))}return t}static _getInflateSize(t,e,i,s,r){if(function(t){return void 0!==t.symbolLayers}(e)){const n=this._getLayersInflateSize(t,e.symbolLayers,i,s,r),o=(0,$.ll)(e.effects);return o>0&&(n[0]-=o,n[1]-=o,n[2]+=o,n[3]+=o),n}return this._getTextInflatedSize(t,e,r)}static _getLayersInflateSize(t,e,i,s,r){let n=!0;if(!e)return t;for(const o of e){if(!o)continue;let e=[0,0,0,0];switch(o.type){case"CIMSolidFill":case"CIMPictureFill":case"CIMHatchFill":case"CIMGradientFill":break;case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":{const t=o;let i=t.width;null!=i&&("Square"===t.capStyle||"Miter"===t.joinStyle?i/=1.4142135623730951:i/=2,e[0]=-i,e[1]=-i,e[2]=i,e[3]=i);break}case"CIMCharacterMarker":case"CIMVectorMarker":case"CIMPictureMarker":{const t=o;if("CIMVectorMarker"===o.type){const t=o;if(e=this._vectorMarkerBounds(e,t,i,r),t.frame){const i=(t.frame.xmin+t.frame.xmax)/2,s=(t.frame.ymin+t.frame.ymax)/2;if(e[0]-=i,e[1]-=s,e[2]-=i,e[3]-=s,null!=t.size){const i=t.size/(t.frame.ymax-t.frame.ymin);e[0]*=i,e[1]*=i,e[2]*=i,e[3]*=i}}}else if("CIMPictureMarker"===o.type){const s=o,r=i.getResource(s.url);let n=1;if(null!=r&&r.height&&(n=r.width/r.height),null!=t.size){const i=t.size/2,r=t.size*n*(s.scaleX??1)/2;e=[-r,-i,r,i]}}else if(null!=t.size){const i=t.size/2;e=[-i,-i,i,i]}if(t.anchorPoint){let i,s;"Absolute"===t.anchorPointUnits?(i=t.anchorPoint.x,s=t.anchorPoint.y):(i=t.anchorPoint.x*(e[2]-e[0]),s=t.anchorPoint.y*(e[3]-e[1]));const r=1.25*Math.sqrt(i*i+s*s);e[0]-=r,e[1]-=r,e[2]+=r,e[3]+=r}let n=(0,$.$w)(t.rotation);if(t.rotateClockwise&&(n=-n),s&&(n-=s),n){const t=st*n,i=Math.cos(t),s=Math.sin(t),r=(0,h.vt)([tt.MG,tt.MG,-tt.MG,-tt.MG]);(0,h.tK)(r,[e[0]*i-e[1]*s,e[0]*s+e[1]*i]),(0,h.tK)(r,[e[0]*i-e[3]*s,e[0]*s+e[3]*i]),(0,h.tK)(r,[e[2]*i-e[1]*s,e[2]*s+e[1]*i]),(0,h.tK)(r,[e[2]*i-e[3]*s,e[2]*s+e[3]*i]),e=r}let a=(0,$.$w)(t.offsetX),l=(0,$.$w)(t.offsetY);if(s){const t=st*s,e=Math.cos(t),i=Math.sin(t),r=a*i+l*e;a=a*e-l*i,l=r}e[0]+=a,e[1]+=l,e[2]+=a,e[3]+=l;const c=lt(t.markerPlacement);c>0&&(e[0]-=c,e[1]-=c,e[2]+=c,e[3]+=c);break}}const a=(0,$.ll)(o.effects);a>0&&(e[0]-=a,e[1]-=a,e[2]+=a,e[3]+=a),n?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],n=!1):(t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[2]),t[3]=Math.max(t[3],e[3]))}return t}static _getTextInflatedSize(t,e,i){const s=(0,G.hV)(e.height??C.D.CIMTextSymbol.height);if(t[0]=-s/2,t[1]=-s/2,t[2]=s/2,t[3]=s/2,!i)return t;const r=i.get(e);if(!r)return t;if(!r.glyphMosaicItems.glyphs.length)return t;const{lineGapType:n,lineGap:o}=e,a=n?((t,e,i)=>{switch(t){case"ExtraLeading":return 1+e/i;case"Multiple":return e;case"Exact":return e/i}})(n,o??0,s):0,l=e.horizontalAlignment??C.D.CIMTextSymbol.horizontalalignment,h=e.verticalAlignment??C.D.CIMTextSymbol.verticalalignment,c="CIMBackgroundCallout"===e.callout?.type,u=(0,H.Tl)(r.glyphMosaicItems,{scale:s/L.eG,angle:(0,$.$w)(e.angle),xOffset:(0,$.$w)(e.offsetX),yOffset:(0,$.$w)(e.offsetY),horizontalAlignment:l,verticalAlignment:h,maxLineWidth:(0,G.Lu)(e.lineWidth),lineHeight:L.DY*Math.max(.25,Math.min(a||1,4)),decoration:e.font.decoration||"none",useCIMAngleBehavior:!0,hasBackground:c}).boundsT,f=Math.sqrt(u.width*u.width+u.height*u.height);return t[0]-=u.x+f,t[1]-=u.y-f,t[2]+=u.x+f,t[3]+=-u.y+f,t}}class ct{static getEnvelope(t,e,i,s){if(!t)return null;const r=new q(i,s);if(Array.isArray(t)){let i;for(const s of t)i?i.union(at(r,s,e)):i=at(r,s,e);return i}return at(r,t,e)}static getTextureInfo(t,e,i,s,r){const n=s??this.getEnvelope(t,null,e);if(!n)return[0,0,0,0,1];const o=Math.max(n.width,n.height)*rt;let a=null!=r?Math.max(r/o,1):1;a*=rt,n.x*=a,n.y*=a,n.width*=a,n.height*=a,n.width=Math.max(Math.ceil(n.x+n.width)-Math.floor(n.x),1)-1,n.height=Math.max(Math.ceil(n.y+n.height)-Math.floor(n.y),1)-1;let l=n.x+.5*n.width,h=n.y+.5*n.height;return l+=n.x-Math.floor(n.x),h+=n.y-Math.floor(n.y),s||(n.width+=i,n.height+=i,l+=i/2,h+=i/2),[n.width,n.height,l,h,a]}static getTextureAnchor(t,e,i){const[s,r,n,o,a]=this.getTextureInfo(t,e,2,null,i);return[-n/s,-o/r,r/a*rt]}static rasterize(t,e,i,s,r=!0,n){const[o,a,l,h,c]=this.getTextureInfo(e,s,2,i,n);t.width=o,t.height=a;const u=t.getContext("2d",{willReadFrequently:!0}),f=W.createScale(c,-c);f.translate(.5*o-l,.5*a+h);const m=new Y(u,s,f);switch(e.type){case"CIMPointSymbol":{const t={type:"point",x:0,y:0};m.drawSymbol(e,t);break}case"CIMVectorMarker":{const t=new y.W;m.drawMarker(e,t);break}}const d=u.getImageData(0,0,t.width,t.height),p=new Uint8Array(d.data);if(r){let t;for(let e=0;e<p.length;e+=4)t=p[e+3]/255,p[e]=p[e]*t,p[e+1]=p[e+1]*t,p[e+2]=p[e+2]*t}return[p,t.width,t.height,-l/o,-h/a]}static fromTextSymbol(t){const{text:e}=t;return{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,anchorPointUnits:"Relative",dominantSizeAxis3D:"Y",size:10,billboardMode3D:"FaceNearPlane",frame:{xmin:-5,ymin:-5,xmax:5,ymax:5},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{x:0,y:0},symbol:ct.createCIMTextSymbolfromTextSymbol(t),textString:e}],scaleSymbolsProportionally:!0,respectFrame:!0}],scaleX:1,angleAlignment:"Display"}}static fromPictureFillSymbol(t){const{height:e,outline:i,width:s,xoffset:r,xscale:n,yoffset:o,yscale:a}=t,l=[],h={type:"CIMPolygonSymbol",symbolLayers:l};if(i){const t=wt(i);t&&l.push(t)}let c=t.url;"esriPFS"===t.type&&t.imageData&&(c=t.imageData);const u="angle"in t?t.angle??0:0,f=(s??0)*(n||1),m=(e??0)*(a||1);return l.push({type:"CIMPictureFill",enable:!0,invertBackfaceTexture:!1,scaleX:1,textureFilter:"Picture",tintColor:null,url:c,height:m,width:f,offsetX:(0,$.$w)(r),offsetY:(0,$.$w)(o),rotation:(0,$.$w)(-u),colorSubstitutions:null}),h}static fromSimpleFillSymbol(t){const{color:e,style:i,outline:s}=t,r=[],o={type:"CIMPolygonSymbol",symbolLayers:r};if(s){const t=wt(s);t&&r.push(t)}if(i&&"solid"!==i&&"none"!==i&&"esriSFSSolid"!==i&&"esriSFSNull"!==i){const t={type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",color:pt(e),capStyle:"Butt",joinStyle:"Miter",width:.75}]};let s=0;const o=(0,l.PN)(bt(i)?8:10);switch(i){case"vertical":case"esriSFSVertical":s=90;break;case"forward-diagonal":case"esriSFSForwardDiagonal":case"diagonal-cross":case"esriSFSDiagonalCross":s=-45;break;case"backward-diagonal":case"esriSFSBackwardDiagonal":s=45;break;case"cross":case"esriSFSCross":s=0}r.push({type:"CIMHatchFill",lineSymbol:t,offsetX:0,offsetY:0,rotation:s,separation:o}),"cross"===i||"esriSFSCross"===i?r.push({type:"CIMHatchFill",lineSymbol:(0,n.o8)(t),offsetX:0,offsetY:0,rotation:90,separation:o}):"diagonal-cross"!==i&&"esriSFSDiagonalCross"!==i||r.push({type:"CIMHatchFill",lineSymbol:(0,n.o8)(t),offsetX:0,offsetY:0,rotation:45,separation:o})}else!i||"solid"!==i&&"esriSFSSolid"!==i||r.push({type:"CIMSolidFill",enable:!0,color:pt(e)});return o}static fromSimpleLineSymbol(t){const{cap:e,color:i,join:s,marker:r,miterLimit:n,style:o,width:a}=t;let l=null;"solid"!==o&&"none"!==o&&"esriSLSSolid"!==o&&"esriSLSNull"!==o&&(l=[{type:"CIMGeometricEffectDashes",dashTemplate:St(o,e),lineDashEnding:"NoConstraint",scaleDash:!0,offsetAlongLine:null}]);const h=[];if(r){let t;switch(r.placement){case"begin-end":t="Both";break;case"begin":t="JustBegin";break;case"end":t="JustEnd";break;default:t="None"}const e=ct.fromSimpleMarker(r,a,i).symbolLayers[0];e.markerPlacement={type:"CIMMarkerPlacementAtExtremities",placePerPart:!1,angleToLine:!0,keepUpright:!1,offset:0,extremityPlacement:t,offsetAlongLine:0},h.push(e)}return h.push({type:"CIMSolidStroke",color:"none"!==o&&"esriSLSNull"!==o?pt(i):[0,0,0,0],capStyle:ft(e),joinStyle:mt(s),miterLimit:n,width:a,effects:l}),{type:"CIMLineSymbol",symbolLayers:h}}static fromPictureMarker(t){const{angle:e,height:i,width:s,xoffset:r,yoffset:n}=t;let o=t.url;return"esriPMS"===t.type&&t.imageData&&(o=t.imageData),{type:"CIMPointSymbol",symbolLayers:[{type:"CIMPictureMarker",invertBackfaceTexture:!1,scaleX:1,textureFilter:"Picture",tintColor:null,url:o,size:i,width:s,offsetX:(0,$.$w)(r),offsetY:(0,$.$w)(n),rotation:(0,$.$w)(-e)}]}}static createCIMTextSymbolfromTextSymbol(t){const{angle:e,color:i,font:s,haloColor:n,haloSize:o,horizontalAlignment:a,kerning:l,lineWidth:h,text:c,verticalAlignment:u,xoffset:f,yoffset:m,backgroundColor:d,borderLineColor:y,borderLineSize:p}=t;let g,_,x,S,M,b;s&&(g=s.family,_=s.style,x=s.weight,S=s.size,M=s.decoration);let w=!1;return c&&(w=r(c)[1]),(d||p)&&(b={type:"CIMBackgroundCallout",margin:null,backgroundSymbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:pt(d)},{type:"CIMSolidStroke",enable:!0,color:pt(y),width:p??0}]},accentBarSymbol:null,gap:null,leaderLineSymbol:null,lineStyle:null}),{type:"CIMTextSymbol",angle:e,blockProgression:2,depth3D:1,extrapolateBaselines:!0,fontEffects:0,fontEncoding:1,fontFamilyName:g||"Arial",fontStyleName:gt(_,x),fontType:0,haloSize:o,height:S,hinting:1,horizontalAlignment:dt(a??"center"),kerning:l,letterWidth:100,ligatures:!0,lineGapType:"Multiple",lineWidth:h,offsetX:(0,$.$w)(f),offsetY:(0,$.$w)(m),strikethrough:"line-through"===M,underline:"underline"===M,symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:pt(i)}]},haloSymbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:pt(n)}]},shadowColor:[0,0,0,255],shadowOffsetX:1,shadowOffsetY:1,textCase:"Normal",textDirection:w?1:0,verticalAlignment:yt(u??"baseline"),verticalGlyphOrientation:0,wordSpacing:100,billboardMode3D:2,callout:b}}static createPictureMarkerRasterizationParam(t){const{angle:e,height:i,width:s,xoffset:r,yoffset:n}=t,o=t.url??t.source?.url??t.source?.imageData;return o?{type:"sprite-rasterization-param",overrides:[],resource:{type:"CIMPictureMarker",enable:!0,invertBackfaceTexture:!1,scaleX:1,textureFilter:"Picture",tintColor:null,url:o,size:i,width:s,offsetX:(0,$.$w)(r),offsetY:(0,$.$w)(n),rotation:(0,$.$w)(-e)}}:null}static createPictureFillRasterizationParam(t){const{width:e,height:i,xoffset:s,yoffset:r,url:n}=t;return n?{type:"sprite-rasterization-param",overrides:[],resource:{type:"CIMPictureFill",enable:!0,scaleX:1,textureFilter:"Picture",tintColor:null,url:n,width:e,height:i,offsetX:(0,$.$w)(s),offsetY:(0,$.$w)(r),rotation:0}}:null}static fromSimpleMarker(t,e,i){const{style:s}=t,r=t.color??i;if("path"===s||"esriSMSPath"===s){const e=[];if("outline"in t&&t.outline){const i=t.outline;e.push({type:"CIMSolidStroke",enable:!0,width:i.width,color:pt(i.color),path:t.path})}e.push({type:"CIMSolidFill",enable:!0,color:pt(r),path:t.path});const[i,s]=Mt("square");return{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,rotation:-(0,$.$w)(t.angle),size:(0,$.$w)(t.size||6),offsetX:(0,$.$w)(t.xoffset),offsetY:(0,$.$w)(t.yoffset),scaleSymbolsProportionally:!1,frame:i,markerGraphics:[{type:"CIMMarkerGraphic",geometry:s,symbol:{type:"CIMPolygonSymbol",symbolLayers:e}}]}]}}const n=[];let o,a,l=t.size;if("outline"in t&&t.outline&&"none"!==t.outline.style&&"esriSLSNull"!==t.outline.style){const e=t.outline,i="solid"!==e.style&&"esriSLSSolid"!==e.style;[o,a]=i?Mt(s,t.size):Mt(s);const r=e.width??Q.A7.width;if(i){const e=r/t.size,i=(o.xmax-o.xmin)*e/2,s=(o.ymax-o.ymin)*e/2;o.xmin-=i,o.xmax+=i,o.ymin-=s,o.ymax+=s,l&&(l+=r)}const h="cross"!==t.style&&"x"!==t.style||"dot"===t?.outline.style||"short-dot"===t?.outline.style?"HalfGap":"FullPattern",c=i?[{type:"CIMGeometricEffectAddControlPoints"},{type:"CIMGeometricEffectDashes",dashTemplate:St(e.style,null).map(t=>e.width&&e.width>0?t*e.width:t),lineDashEnding:h,controlPointEnding:"FullPattern"}]:void 0;n.push({type:"CIMSolidStroke",capStyle:i?"Round":"Butt",enable:!0,width:r,color:pt(e.color),effects:c})}else!e||"line-marker"!==t.type||"cross"!==t.style&&"x"!==t.style?[o,a]=Mt(s):([o,a]=Mt(s),n.push({type:"CIMSolidStroke",enable:!0,width:e,color:pt(r)}));n.push({type:"CIMSolidFill",enable:!0,color:pt(r)});const h={type:"CIMPolygonSymbol",symbolLayers:n};return{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,rotation:(0,$.$w)(-t.angle),size:(0,$.$w)(l||6*e),offsetX:(0,$.$w)(t.xoffset),offsetY:(0,$.$w)(t.yoffset),scaleSymbolsProportionally:!1,frame:o,markerGraphics:[{type:"CIMMarkerGraphic",geometry:a,symbol:h}]}]}}static fromCIMHatchFill(t,e){const i=e*(t.separation??C.D.CIMHatchFill.separation),s=i/2,r=(0,n.o8)(t.lineSymbol);r.symbolLayers?.forEach(t=>{switch(t.type){case"CIMSolidStroke":null!=t.width&&(t.width*=e),t.effects?.forEach(t=>{if("CIMGeometricEffectDashes"===t.type){const i=t.dashTemplate;t.dashTemplate=i?.map(t=>t*e)}});break;case"CIMVectorMarker":{null!=t.size&&(t.size*=e);const i=t.markerPlacement;null!=i&&"placementTemplate"in i&&(i.placementTemplate=i.placementTemplate.map(t=>t*e));break}}});let o=this._getLineSymbolPeriod(r)||4;for(;o<4;)o*=2;const a=o/2;return{type:"CIMVectorMarker",enable:!0,frame:{xmin:-a,xmax:a,ymin:-s,ymax:s},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{paths:[[[-a,0],[a,0]]]},symbol:r}],size:i}}static async normalizeSymbolAndFetchResources(t,e,i=null){if(!t)return;const s=[];if("effects"in t&&t.effects)for(const e of t.effects)s.push((0,d.ai)(e));async function r(t){if("CIMTextSymbol"!==t.type)return;const{fontFamilyName:i,fontStyleName:s}=t;if("calcitewebcoreicons"===i?.toLowerCase())return;const{style:r,weight:n}=(0,$._d)(s),o=(0,$.DW)(t),a=new m.A({family:i,style:r,weight:n,decoration:o});try{await e.loadFont(a)}catch{nt().error(`Unsupported font ${i} in CIM symbol`)}}s.push(r(t)),ut(t,t=>{if(t.effects)for(const e of t.effects)s.push((0,d.ai)(e));if("CIMVectorMarker"===t.type){for(const e of t.markerGraphics)(0,u.Ed)(e.geometry)&&(e.geometry=(0,f.GS)(e.geometry,{maxDeviation:.01}));t.markerPlacement&&s.push((0,d.g1)(t.markerPlacement))}"url"in t&&t.url&&s.push(e.fetchResource(t.url,{signal:i})),"symbol"in t&&s.push(r(t.symbol))}),await Promise.all(s)}static _getLineSymbolPeriod(t){if(t){const e=this._getEffectsRepeat(t.effects);if(e)return e;if(t.symbolLayers)for(const e of t.symbolLayers)if(e){const t=this._getEffectsRepeat(e.effects);if(t)return t;switch(e.type){case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":{const t=this._getPlacementRepeat(e.markerPlacement);if(t)return t}}}}return 0}static _getEffectsRepeat(t){if(t)for(const e of t)if(e)switch(e.type){case"CIMGeometricEffectDashes":{const t=e.dashTemplate;if(t&&t.length){let e=0;for(const i of t)e+=i;return 1&t.length&&(e*=2),e}break}case"CIMGeometricEffectWave":return e.period;default:nt().error(`unsupported geometric effect type ${e.type}`)}return 0}static _getPlacementRepeat(t){if(t)switch(t.type){case"CIMMarkerPlacementAlongLineSameSize":case"CIMMarkerPlacementAlongLineRandomSize":case"CIMMarkerPlacementAlongLineVariableSize":{const e=t.placementTemplate;if(e&&e.length){let t=0;for(const i of e)t+=+i;return 1&e.length&&(t*=2),t}break}}return 0}static fromCIMInsidePolygon(t){const e=t.markerPlacement,i={...t};i.markerPlacement=null,i.anchorPoint=null;const s=Math.abs(e.stepX),r=Math.abs(e.stepY),n=(e.randomness??100)/100;let o,h,c,u;if("Random"===e.gridType){const t=(0,l.PN)(L.yv),i=Math.max(Math.floor(t/s),1),f=Math.max(Math.floor(t/r),1);o=i*s/2,h=f*r/2,c=2*h;const m=new a.A(e.seed),d=n*s/1.5,y=n*r/1.5;u=[];for(let t=0;t<i;t++)for(let e=0;e<f;e++){const i=t*s-o+d*(.5-m.getFloat()),n=e*r-h+y*(.5-m.getFloat());u.push({x:i,y:n}),0===t&&u.push({x:i+2*o,y:n}),0===e&&u.push({x:i,y:n+2*h})}}else!0===e.shiftOddRows?(o=s/2,h=r,c=2*r,u=[{x:-o,y:0},{x:o,y:0},{x:0,y:h},{x:0,y:-h}]):(o=s/2,h=r/2,c=r,u=[{x:-s,y:0},{x:0,y:-r},{x:-s,y:-r},{x:0,y:0},{x:s,y:0},{x:0,y:r},{x:s,y:r},{x:-s,y:r},{x:s,y:-r}]);return{type:"CIMVectorMarker",enable:!0,frame:{xmin:-o,xmax:o,ymin:-h,ymax:h},markerGraphics:u.map(t=>({type:"CIMMarkerGraphic",geometry:t,symbol:{type:"CIMPointSymbol",symbolLayers:[i]}})),size:c}}}function ut(t,e){if(t)switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":{const i=t.symbolLayers;if(!i)return;for(const t of i)if(e(t),"CIMVectorMarker"===t.type){const i=t.markerGraphics;if(!i)continue;for(const t of i)if(t){const i=t.symbol;i&&ut(i,e)}}break}}}const ft=t=>{if(!t)return"Butt";switch(t){case"butt":return"Butt";case"square":return"Square";case"round":return"Round"}},mt=t=>{if(!t)return"Miter";switch(t){case"miter":return"Miter";case"round":return"Round";case"bevel":return"Bevel"}},dt=t=>{if(null==t)return"Center";switch(t){case"left":return"Left";case"right":return"Right";case"center":return"Center";case"justify":return"Justify"}},yt=t=>{if(null==t)return"Center";switch(t){case"baseline":return"Baseline";case"top":return"Top";case"middle":return"Center";case"bottom":return"Bottom"}},pt=t=>{if(!t)return[0,0,0,0];const{r:e,g:i,b:s,a:r}=t;return[e,i,s,255*r]},gt=(t,e)=>{const i=_t(e),s=xt(t);return i&&s?`${i}-${s}`:`${i}${s}`},_t=t=>{if(!t)return"";switch(t.toLowerCase()){case"bold":case"bolder":return"bold"}return""},xt=t=>{if(!t)return"";switch(t.toLowerCase()){case"italic":case"oblique":return"italic"}return""},St=(t,e)=>{const i=.001,s="butt"===e;switch(t){case"dash":case"esriSLSDash":return s?[4,3]:[3,4];case"dash-dot":case"esriSLSDashDot":return s?[4,3,1,3]:[3,4,i,4];case"dot":case"esriSLSDot":return s?[1,3]:[i,4];case"long-dash":case"esriSLSLongDash":return s?[8,3]:[7,4];case"long-dash-dot":case"esriSLSLongDashDot":return s?[8,3,1,3]:[7,4,i,4];case"long-dash-dot-dot":case"esriSLSDashDotDot":return s?[8,3,1,3,1,3]:[7,4,i,4,i,4];case"short-dash":case"esriSLSShortDash":return s?[4,1]:[3,2];case"short-dash-dot":case"esriSLSShortDashDot":return s?[4,1,1,1]:[3,2,i,2];case"short-dash-dot-dot":case"esriSLSShortDashDotDot":return s?[4,1,1,1,1,1]:[3,2,i,2,i,2];case"short-dot":case"esriSLSShortDot":return s?[1,1]:[i,2];case"solid":case"esriSLSSolid":case"none":return nt().error("Unexpected: style does not require rasterization"),[0,0];default:return nt().error(`Tried to rasterize SLS, but found an unexpected style: ${t}!`),[0,0]}},Mt=(t,e=100)=>{const i=e/2;let s,r;const n=t;if("circle"===n||"esriSMSCircle"===n){const t=.25;let e=Math.acos(1-t/i),n=Math.ceil(et/e/4);0===n&&(n=1),e=it/n,n*=4;const o=[];o.push([i,0]);for(let t=1;t<n;t++)o.push([i*Math.cos(t*e),-i*Math.sin(t*e)]);o.push([i,0]),s={rings:[o]},r={xmin:-i,ymin:-i,xmax:i,ymax:i}}else if("cross"===n||"esriSMSCross"===n){const t=0;s={paths:[[[t,i],[t,-i]],[[i,t],[-i,t]]]},r={xmin:-i,ymin:-i,xmax:i,ymax:i}}else if("diamond"===n||"esriSMSDiamond"===n)s={rings:[[[-i,0],[0,i],[i,0],[0,-i],[-i,0]]]},r={xmin:-i,ymin:-i,xmax:i,ymax:i};else if("square"===n||"esriSMSSquare"===n)s={rings:[[[-i,-i],[-i,i],[i,i],[i,-i],[-i,-i]]]},r={xmin:-i,ymin:-i,xmax:i,ymax:i};else if("x"===n||"esriSMSX"===n)s={paths:[[[i,i],[-i,-i]],[[i,-i],[-i,i]]]},r={xmin:-i,ymin:-i,xmax:i,ymax:i};else if("triangle"===n||"esriSMSTriangle"===n){const t=.5773502691896257*e,i=-t,n=2/3*e,o=n-e;s={rings:[[[i,o],[0,n],[t,o],[i,o]]]},r={xmin:i,ymin:o,xmax:t,ymax:n}}else"arrow"===n&&(s={rings:[[[-50,50],[50,0],[-50,-50],[-33,-20],[-33,20],[-50,50]]]},r={xmin:-i,ymin:-i,xmax:i,ymax:i});return[r,s]},bt=t=>"vertical"===t||"horizontal"===t||"cross"===t||"esriSFSCross"===t||"esriSFSVertical"===t||"esriSFSHorizontal"===t;function wt(t){if(!t)return null;let e=null;const{cap:i,color:s,join:r,miterLimit:n,style:o,width:a}=t;return"solid"!==o&&"none"!==o&&"esriSLSSolid"!==o&&"esriSLSNull"!==o&&(e=[{type:"CIMGeometricEffectDashes",dashTemplate:St(o,i),lineDashEnding:"NoConstraint",scaleDash:!0,offsetAlongLine:null}]),{type:"CIMSolidStroke",color:"esriSLSNull"!==o&&"none"!==o?pt(s):[0,0,0,0],capStyle:ft(i),joinStyle:mt(r),miterLimit:n,width:a,effects:e}}},13195(t,e,i){i.d(e,{GW:()=>p,IU:()=>g,Jo:()=>o,MG:()=>n,Wh:()=>f,aA:()=>h,cP:()=>S,os:()=>c,p6:()=>y,pJ:()=>a,ru:()=>x,s3:()=>_,wV:()=>d,yM:()=>M,z0:()=>m});var s=i(95108),r=i(6774);const n=Number.POSITIVE_INFINITY,o=Math.PI,a=2*o,l=128/o,h=256/360,c=o/180,u=1/Math.LN2;function f(t,e){return(t%=e)>=0?t:t+e}function m(t){return f(t*l,256)}function d(t){return f(t*h,256)}function y(t){return Math.log(t)*u}function p(t,e,i){return t*(1-i)+e*i}function g(t){return 8+Math.max(16*(t-14),0)}function _(t,e,i){let s,r,n,o=0;for(const a of i){s=a.length;for(let i=1;i<s;++i)r=a[i-1],n=a[i],r.y>e!=n.y>e&&((n.x-r.x)*(e-r.y)-(n.y-r.y)*(t-r.x)>0?o++:o--)}return 0!==o}function x(t,e,i,r){let n,o,a,l;const h=r*r;for(const r of i){const i=r.length;if(!(i<2)){n=r[0].x,o=r[0].y;for(let c=1;c<i;++c){if(a=r[c].x,l=r[c].y,(0,s.Ng)(t,e,n,o,a,l)<h)return!0;n=a,o=l}}}return!1}function S(t,e){if(0===e||Number.isNaN(e))return t;const i=[],s=new r.bR(0,0),n=new r.bR(0,0),o=new r.bR(0,0);for(let a=0;a<t.length;a++){const l=t[a],h=[];for(let t=0;t<l.length;t++){const i=l[t-1],a=l[t],c=l[t+1];0===t?s.setCoords(0,0):s.assignSub(a,i).normalize().rightPerpendicular(),t===l.length-1?n.setCoords(0,0):n.assignSub(c,a).normalize().rightPerpendicular(),o.assignAdd(s,n).normalize();const u=o.x*n.x+o.y*n.y;0!==u&&o.scale(1/u),h.push(r.bR.add(a,o.scale(e)))}i.push(h)}return i}function M(t,e,i,s){const n=new r.bR(t[0],t[1]);if(n.scale(s),"viewport"===e){const t=-i*(Math.PI/180),e=Math.cos(t),s=Math.sin(t);n.rotate(e,s)}return n}},76213(t,e,i){i.d(e,{C2:()=>a,CQ:()=>s,DY:()=>r,GR:()=>p,Gh:()=>h,MZ:()=>m,Rm:()=>o,TB:()=>y,U5:()=>l,_M:()=>c,cp:()=>g,eG:()=>n,hM:()=>f,ie:()=>u,yv:()=>d});const s=512,r=29,n=24,o=3,a=4,l=6,h=1.05,c=3,u=3,f=4,m=1,d=1024,y=256,p=32,g=512}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1918],{11918(e,t,n){n.r(t),n.d(t,{execute:()=>P,isLoaded:()=>d,load:()=>h,supportsCurves:()=>m});var i=n(86211),r=n(83290);let o;function s(){return!!o&&(0,r.i)()}async function a(){if(!s()){const[e,t]=await Promise.all([Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756),n.e(6859),n.e(2764)]).then(n.bind(n,12764)),Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756),n.e(6061)]).then(n.bind(n,15756)).then(e=>e.aP).then(({injectPe:e})=>e),(0,r.l)()]);o=new e.OperatorGeodeticDistance,t(r.p)}}function c(e,t,n,i){return o.execute(e,t,n,i,null)}var l=n(5808);let u,p,f,m;function d(){return!!u&&s()}async function h(){if(!d()){const[e]=await Promise.all([Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(3931)]).then(n.bind(n,78125)),a()]);u=e.fromGeometry,p=e.fromSpatialReference,f=e.getSpatialReference,m=o.supportsCurves()}}function P(e,t,n={}){const{curveType:r="geodesic",unit:o}=n,s=f(e);let a=c(u(e),u(t),p(s),l.O[r]);return a&&o&&(a=(0,i.oU)(a,"meters",o)),a}},5808(e,t,n){n.d(t,{O:()=>i});const i={geodesic:0,loxodrome:1,"great-elliptic":2,"normal-section":3,"shape-preserving":4}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1918],{11918(e,t,n){n.r(t),n.d(t,{execute:()=>P,isLoaded:()=>d,load:()=>h,supportsCurves:()=>m});var i=n(86211),r=n(83290);let o;function s(){return!!o&&(0,r.i)()}async function a(){if(!s()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(6859),n.e(2764)]).then(n.bind(n,12764)),Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(6061)]).then(n.bind(n,15756)).then(e=>e.aP).then(({injectPe:e})=>e),(0,r.l)()]);o=new e.OperatorGeodeticDistance,t(r.p)}}function c(e,t,n,i){return o.execute(e,t,n,i,null)}var l=n(5808);let u,p,f,m;function d(){return!!u&&s()}async function h(){if(!d()){const[e]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(3931)]).then(n.bind(n,78125)),a()]);u=e.fromGeometry,p=e.fromSpatialReference,f=e.getSpatialReference,m=o.supportsCurves()}}function P(e,t,n={}){const{curveType:r="geodesic",unit:o}=n,s=f(e);let a=c(u(e),u(t),p(s),l.O[r]);return a&&o&&(a=(0,i.oU)(a,"meters",o)),a}},5808(e,t,n){n.d(t,{O:()=>i});const i={geodesic:0,loxodrome:1,"great-elliptic":2,"normal-section":3,"shape-preserving":4}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[909],{92009(e,a,t){t.d(a,{L:()=>u});var n=t(70333),r=t(11254),i=t(49186),l=t(17676),s=t(60694),o=t(20655),y=t(80812);async function u(e,a){const t=(0,s.qg)(e);if(!t)throw new i.A("invalid-url","Invalid scene service url");const u={...a,sceneServerUrl:t.url.path,layerId:t.sublayer??void 0};if(u.sceneLayerItem??=await async function(e){const a=(await c(e)).serviceItemId;if(!a)return null;const t=new y.default({id:a,apiKey:e.apiKey}),i=await async function(e){const a=n.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;const t=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const a=(await(0,r.A)(t,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,l.QP)(e)}return null}(e);null!=i&&(t.portal=new o.A({url:i}));try{return await t.load({signal:e.signal})}catch(e){return(0,l.QP)(e),null}}(u),null==u.sceneLayerItem)return d(u.sceneServerUrl.replace("/SceneServer","/FeatureServer"),u);const f=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{const t=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find(e=>"Feature Service"===e.type)||null;if(!t)return null;const n=new y.default({portal:t.portal,id:t.id});return await n.load(),n}catch(e){return(0,l.QP)(e),null}}(u);if(!f?.url)throw new i.A("related-service-not-found","Could not find feature service through portal item relationship");u.featureServiceItem=f;const m=await d(f.url,u);return m.portalItem=f,m}async function c(e){if(e.rootDocument)return e.rootDocument;const a={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{const t=await(0,r.A)(e.sceneServerUrl,a);e.rootDocument=t.data}catch{e.rootDocument={}}return e.rootDocument}async function d(e,a){const t=(0,s.qg)(e);if(!t)throw new i.A("invalid-feature-service-url","Invalid feature service url");const n=t.url.path,l=a.layerId;if(null==l)return{serverUrl:n};const o=c(a),y=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,u=(y?.layers?.[0]||y?.tables?.[0])?.customParameters,d=e=>{const t={query:{f:"json",...u},responseType:"json",authMode:e,signal:a.signal};return(0,r.A)(n,t)},f=d("anonymous").catch(()=>d("no-prompt")),[m,w]=await Promise.all([f,o]),h=w?.layers,L=m.data&&m.data.layers;if(!Array.isArray(L))throw new Error("expected layers array");if(Array.isArray(h)){for(let e=0;e<Math.min(h.length,L.length);e++)if(h[e].id===l)return{serverUrl:n,layerId:L[e].id}}else if(null!=l&&l<L.length)return{serverUrl:n,layerId:L[l].id};throw new Error("could not find matching associated sublayer")}},23154(e,a,t){t.d(a,{K:()=>f,Q:()=>l});var n=t(77548),r=t(7861);const i=new Set(["Catalog Layer","Feature Layer","Oriented Imagery Layer","Dimension Layer","Annotation Layer"]);async function l(e,a){const{loadContext:t,...i}=a||{},l=t?await t.fetchServiceMetadata(e,i):await(0,r.L)(e,i),s=(0,n.G$)();d(l),y(l);const o={serviceJSON:l,preferredHost:s};if((l.currentVersion??0)<10.5)return o;const u=`${(0,n.$x)()??e}/layers`,c=t?await t.fetchServiceMetadata(u,i):await(0,r.L)(u,i);return d(c),y(c),o.layersJSON={layers:c.layers,tables:c.tables},o}function s(e){const{type:a}=e;return!!a&&i.has(a)}function o(e){return"Table"===e.type}function y(e){e.layers=e.layers?.filter(s),e.tables=e.tables?.filter(o)}function u(e){e.type||="Feature Layer"}function c(e){e.type||="Table"}function d(e){e.layers?.forEach(u),e.tables?.forEach(c)}function f(e){switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"DimensionFeatureLayer";case"Annotation Layer":return"AnnotationLayer"}return"FeatureLayer"}},2976(e,a,t){t.d(a,{U:()=>n});const n={AnnotationLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(7552),t.e(2889),t.e(4674),t.e(4333),t.e(795)]).then(t.bind(t,88155))).default,BingMapsLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(6554),t.e(6684)]).then(t.bind(t,17029))).default,BuildingSceneLayer:async()=>(await Promise.all([t.e(7632),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(9953),t.e(564),t.e(7552),t.e(1214),t.e(2889),t.e(6614),t.e(1017),t.e(4674),t.e(993),t.e(4333),t.e(3781),t.e(6231),t.e(7005),t.e(2189),t.e(3290),t.e(1427),t.e(8434),t.e(9028)]).then(t.bind(t,82411))).default,CSVLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(9953),t.e(564),t.e(7552),t.e(1214),t.e(2889),t.e(6614),t.e(1017),t.e(448)]).then(t.bind(t,68695))).default,CatalogLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(7552),t.e(1214),t.e(2889),t.e(6614),t.e(4674),t.e(893),t.e(993),t.e(4333),t.e(3636),t.e(9279),t.e(4580)]).then(t.bind(t,83508))).default,DimensionFeatureLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(7552),t.e(2889),t.e(4674),t.e(4333),t.e(1607)]).then(t.bind(t,41847))).default,DimensionLayer:async()=>(await Promise.all([t.e(8278),t.e(3813)]).then(t.bind(t,71493))).default,ElevationLayer:async()=>(await Promise.all([t.e(8278),t.e(9953),t.e(2827),t.e(8732),t.e(3550)]).then(t.bind(t,38732))).default,FeatureLayer:async()=>(await Promise.all([t.e(7632),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(9953),t.e(564),t.e(7552),t.e(1214),t.e(2889),t.e(6614),t.e(1017),t.e(4674),t.e(993),t.e(4333),t.e(3781),t.e(7620)]).then(t.bind(t,53781))).default,GaussianSplatLayer:async()=>(await Promise.all([t.e(8278),t.e(6231),t.e(9716),t.e(6475)]).then(t.bind(t,36475))).default,GeoJSONLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(9953),t.e(564),t.e(7552),t.e(1214),t.e(2889),t.e(6614),t.e(1017),t.e(2290)]).then(t.bind(t,15481))).default,GeoRSSLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(6554),t.e(9657)]).then(t.bind(t,63201))).default,GroupLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(5613),t.e(6569)]).then(t.bind(t,85989))).default,ImageryLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(9953),t.e(564),t.e(7552),t.e(893),t.e(6231),t.e(1683),t.e(9863),t.e(5138),t.e(6053),t.e(4884)]).then(t.bind(t,87772))).default,ImageryTileLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(9953),t.e(564),t.e(6231),t.e(1683),t.e(2827),t.e(9863),t.e(7373),t.e(5138),t.e(9235),t.e(3500),t.e(1003),t.e(2806),t.e(7944)]).then(t.bind(t,90124))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([t.e(8278),t.e(9953),t.e(6231),t.e(9716),t.e(8325),t.e(9544)]).then(t.bind(t,61528))).default,IntegratedMeshLayer:async()=>(await Promise.all([t.e(8278),t.e(9953),t.e(6231),t.e(9716),t.e(1427),t.e(8325),t.e(7464)]).then(t.bind(t,74660))).default,KMLLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(1214),t.e(4664)]).then(t.bind(t,162))).default,KnowledgeGraphLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(9953),t.e(564),t.e(7552),t.e(1214),t.e(2889),t.e(6614),t.e(1017),t.e(993),t.e(708),t.e(9696),t.e(8245),t.e(1683),t.e(217),t.e(3902),t.e(2655),t.e(9153),t.e(8692)]).then(t.bind(t,28692))).default,LineOfSightLayer:async()=>(await Promise.all([t.e(8278),t.e(6231),t.e(4807),t.e(9695)]).then(t.bind(t,49695))).default,LinkChartLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(9953),t.e(564),t.e(7552),t.e(1214),t.e(2889),t.e(6614),t.e(1017),t.e(993),t.e(708),t.e(9696),t.e(8245),t.e(1683),t.e(217),t.e(3902),t.e(2655),t.e(9153),t.e(3309)]).then(t.bind(t,93309))).default,MapImageLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(7552),t.e(1214),t.e(2889),t.e(6614),t.e(4674),t.e(893),t.e(3534),t.e(447),t.e(4417)]).then(t.bind(t,7656))).default,MapNotesLayer:async()=>(await Promise.all([t.e(7632),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(9953),t.e(564),t.e(7552),t.e(1214),t.e(2889),t.e(6614),t.e(1017),t.e(4674),t.e(993),t.e(4333),t.e(3781),t.e(2655),t.e(1988)]).then(t.bind(t,96299))).default,MediaLayer:async()=>(await Promise.all([t.e(7632),t.e(8278),t.e(7865),t.e(1670),t.e(2491)]).then(t.bind(t,90182))).default,OGCFeatureLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(7552),t.e(1214),t.e(2889),t.e(6614),t.e(1017),t.e(708),t.e(2189),t.e(5594)]).then(t.bind(t,65977))).default,OpenStreetMapLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(6554),t.e(7269),t.e(349)]).then(t.bind(t,40349))).default,OrientedImageryLayer:async()=>(await Promise.all([t.e(7632),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(9953),t.e(564),t.e(7552),t.e(1214),t.e(2889),t.e(6614),t.e(1017),t.e(4674),t.e(993),t.e(4333),t.e(3781),t.e(2293),t.e(8948)]).then(t.bind(t,16852))).default,ParquetLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(2869),t.e(3910),t.e(9953),t.e(564),t.e(7552),t.e(1214),t.e(2889),t.e(6614),t.e(1017),t.e(2760),t.e(2790)]).then(t.bind(t,62167))).default,PointCloudLayer:async()=>(await Promise.all([t.e(8278),t.e(2869),t.e(6231),t.e(7984),t.e(241)]).then(t.bind(t,77885))).default,RouteLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(2869),t.e(3910),t.e(564),t.e(1214),t.e(217),t.e(8195)]).then(t.bind(t,39622))).default,SceneLayer:async()=>(await Promise.all([t.e(8278),t.e(2869),t.e(3910),t.e(564),t.e(7552),t.e(1214),t.e(2889),t.e(6614),t.e(6231),t.e(7005),t.e(2189),t.e(3290),t.e(1427),t.e(8434),t.e(2569)]).then(t.bind(t,2e4))).default,StreamLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(7552),t.e(1214),t.e(2889),t.e(6614),t.e(1017),t.e(6938),t.e(5779)]).then(t.bind(t,79457))).default,SubtypeGroupLayer:async()=>(await Promise.all([t.e(7632),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(7552),t.e(2889),t.e(6614),t.e(4674),t.e(993),t.e(4333),t.e(1683),t.e(6008)]).then(t.bind(t,97483))).default,TileLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(7552),t.e(1214),t.e(2889),t.e(6614),t.e(4674),t.e(893),t.e(2827),t.e(3534),t.e(2746)]).then(t.bind(t,71756))).default,UnknownLayer:async()=>(await t.e(146).then(t.bind(t,146))).default,UnsupportedLayer:async()=>(await t.e(5165).then(t.bind(t,45165))).default,VectorTileLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(6554),t.e(2827),t.e(8447),t.e(5013),t.e(3897)]).then(t.bind(t,48757))).default,VideoLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(3910),t.e(4674),t.e(1683),t.e(1670),t.e(1563)]).then(t.bind(t,86875))).default,ViewshedLayer:async()=>(await Promise.all([t.e(8278),t.e(6231),t.e(4807),t.e(6650)]).then(t.bind(t,96650))).default,VoxelLayer:async()=>(await Promise.all([t.e(8278),t.e(2869),t.e(4273)]).then(t.bind(t,21005))).default,WCSLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(9953),t.e(564),t.e(1683),t.e(9863),t.e(7373),t.e(5138),t.e(9235),t.e(3500),t.e(2806),t.e(6792)]).then(t.bind(t,20521))).default,WFSLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(9953),t.e(564),t.e(7552),t.e(1214),t.e(2889),t.e(6614),t.e(1017),t.e(708),t.e(6889)]).then(t.bind(t,21901))).default,WMSLayer:async()=>(await Promise.all([t.e(7632),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(6705)]).then(t.bind(t,51904))).default,WMTSLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(6554),t.e(7269),t.e(309)]).then(t.bind(t,20309))).default,WebTileLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(6554),t.e(7269)]).then(t.bind(t,47314))).default}},7861(e,a,t){t.d(a,{L:()=>r});var n=t(11254);async function r(e,a){return(await(0,n.A)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}})).data}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3550],{60999(e,t,n){n.d(t,{DZ:()=>h,Ke:()=>d,Tj:()=>c,UT:()=>g,aD:()=>y,jJ:()=>u});var r=n(5482),l=n(69622),i=n(97768),s=n(17676),a=n(10107),o=n(64108);function u(e,t,n){return(0,s.Lx)(e.map((e,r)=>t.apply(n,[e,r])))}async function c(e,t,n){return(await(0,s.Lx)(e.map((e,r)=>t.apply(n,[e,r])))).map(e=>e.value)}function p(e){return{ok:!0,value:e}}function f(e){return{ok:!1,error:e}}async function d(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return p(await e)}catch(e){return f(e)}}async function h(e){try{return p(await e)}catch(e){return(0,s.QP)(e),f(e)}}function g(e,t){return new m(e,t)}let m=class extends l.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,i.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:n}=this._abortController;this.promise=e(n),this.promise.then(e=>{this._result=p(e),this._cleanup()},e=>{this._result=f(e),this._cleanup()}),this._abortHandle=(0,s.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,i.xt)(this._abortHandle),this._abortController=null}};(0,r.Cg)([(0,a.MZ)()],m.prototype,"value",null),(0,r.Cg)([(0,a.MZ)()],m.prototype,"error",null),(0,r.Cg)([(0,a.MZ)()],m.prototype,"finished",null),(0,r.Cg)([(0,a.MZ)()],m.prototype,"promise",void 0),(0,r.Cg)([(0,a.MZ)()],m.prototype,"_result",void 0),m=(0,r.Cg)([(0,o.$)("esri.core.asyncUtils.ReactiveTask")],m);class y{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,r.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,r.hk)(t)}}}},83027(e,t,n){n.d(t,{h:()=>r});const r=n(29953).ho},159(e,t,n){n.d(t,{A:()=>u});var r,l=n(5482),i=n(69540),s=n(25482),a=n(91429),o=n(99157);let u=r=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new r;for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}};(0,l.Cg)([(0,a.MZ)({type:[o.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=r=(0,l.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,t,n){n.d(t,{A:()=>o});var r,l=n(5482),i=n(69540),s=n(25482),a=n(91429);let o=r=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,l.Cg)([(0,a.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,n)=>{t[n]=!e}}})],o.prototype,"isInverse",void 0),(0,l.Cg)([(0,a.MZ)({json:{write:!0}})],o.prototype,"wkt",void 0),(0,l.Cg)([(0,a.MZ)({json:{write:!0}})],o.prototype,"wkid",void 0),o=r=(0,l.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformationStep")],o)},9762(e,t,n){n.r(t),n.d(t,{projectBuffer:()=>l});var r=n(49208);function l(e,t,n,l,i,s,a=Math.floor(e.length/3)){const o=(0,r.jd)(t,i);if(null==o)return!1;if(o===r.pO){if(e===l&&n===s)return!0;const t=n+3*a;for(let r=n,i=s;r<t;r++,i++)l[i]=e[r]??0;return!0}const u=n+3*a;for(let t=n,r=s;t<u;t+=3,r+=3)o(e,t,l,r);return!0}},49208(e,t,n){n.d(t,{Tp:()=>p,jd:()=>c,pO:()=>d,w5:()=>u});var r=n(34727),l=n(86211),i=n(73941),s=n(79258),a=n(34403),o=n(21325);const u={2:{5:d,7:null,9:null,10:d,1:M,6:null,8:null,0:null,3:g,11:m,2:d,4:_},5:{5:d,7:null,9:null,10:d,1:M,6:null,8:null,0:null,3:g,11:m,2:d,4:_},7:{5:null,7:d,9:null,10:d,1:null,6:I,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:d,10:d,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:h,7:null,9:null,10:h,1:function(e,t,n,r){const l=e[t]/j,i=L-2*Math.atan(Math.exp(-e[t+1]/j)),s=j+(e[t+2]??0),a=Math.cos(i)*s;n[r]=Math.cos(l)*a,n[r+1]=Math.sin(l)*a,n[r+2]=Math.sin(i)*s},6:null,8:null,0:null,3:d,11:function(e,t,n,r){h(e,t,n,r),m(n,r,n,r)},2:h,4:function(e,t,n,r){h(e,t,n,r),_(n,r,n,r)}},4:{5:C,7:null,9:null,10:C,1:function(e,t,n,r){C(e,t,n,r),M(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){C(e,t,n,r),g(n,r,n,r)},11:function(e,t,n,r){C(e,t,n,r),m(n,r,n,r)},2:C,4:d},1:{5:E,7:null,9:null,10:E,1:d,6:null,8:null,0:null,3:function(e,t,n,r){E(e,t,n,r),g(n,r,n,r)},11:function(e,t,n,r){E(e,t,n,r),m(n,r,n,r)},2:E,4:function(e,t,n,r){E(e,t,n,r),_(n,r,n,r)}},6:{5:null,7:A,9:null,10:A,1:null,6:d,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:R,10:R,1:null,6:null,8:d,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:d,3:null,11:null,2:null,4:null},10:{5:d,7:d,9:d,10:d,1:M,6:I,8:v,0:null,3:g,11:m,2:d,4:_},11:{5:y,7:null,9:null,10:y,1:function(e,t,n,r){y(e,t,n,r),M(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){y(e,t,n,r),g(n,r,n,r)},11:d,2:y,4:function(e,t,n,r){y(e,t,n,r),_(n,r,n,r)}}};function c(e,t){return p(e,t)?.projector}function p(e,t){if(null==e||null==t)return null;if(S.source.spatialReference===e&&S.dest.spatialReference===t)return S;const n=f(e,S.source),r=f(t,S.dest);return 0===n&&0===r?(0,o.aI)(e,t)?S.projector=d:S.projector=null:S.projector=u[n][r],S}function f(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,l.GA)(e,1)),(0,i.jA)(e)?t.spatialReferenceId=1:(0,o.oT)(e)?t.spatialReferenceId=2:(0,o.K8)(e)?t.spatialReferenceId=3:(0,o.r1)(e)?t.spatialReferenceId=11:e.wkt===i.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===i.FY.wkt?t.spatialReferenceId=6:e.wkt===i.LJ.wkt?t.spatialReferenceId=8:(0,i.q8)(e)?t.spatialReferenceId=7:(0,i.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function d(e,t,n,r){e!==n&&(n[r++]=e[t++],n[r++]=e[t++],n[r]=e[t]??0)}function h(e,t,n,r){n[r]=b*(e[t]/j),n[r+1]=b*(L-2*Math.atan(Math.exp(-e[t+1]/j))),n[r+2]=e[t+2]??0}function g(e,t,n,l){!function(e,t,n,l,i){const s=.4999999*Math.PI,a=(0,r.qE)(T*e[t+1],-s,s),o=Math.sin(a);n[l++]=T*e[t]*i.radius,n[l++]=i.halfSemiMajorAxis*Math.log((1+o)/(1-o)),n[l]=e[t+2]??0}(e,t,n,l,s.$O)}function m(e,t,n,r){n[r]=e[t]*k,n[r+1]=e[t+1]*k,n[r+2]=e[t+2]??0}function y(e,t,n,r){n[r]=e[t]*O,n[r+1]=e[t+1]*O,n[r+2]=e[t+2]??0}function w(e,t,n,r,l){const i=l+(e[t+2]??0),s=T*e[t],a=T*e[t+1],o=Math.cos(a)*i;n[r]=Math.cos(s)*o,n[r+1]=Math.sin(s)*o,n[r+2]=Math.sin(a)*i}function v(e,t,n,r){w(e,t,n,r,s.Sw.radius)}function I(e,t,n,r){w(e,t,n,r,s.sH.radius)}function M(e,t,n,r){w(e,t,n,r,s.$O.radius)}function P(e,t,n,l,i){const s=e[t],a=e[t+1],o=e[t+2]??0,u=Math.sqrt(s*s+a*a+o*o),c=(0,r.YN)(o/(0===u?1:u)),p=Math.atan2(a,s);n[l++]=b*p,n[l++]=b*c,n[l]=u-i}function R(e,t,n,r){P(e,t,n,r,s.Sw.radius)}function A(e,t,n,r){P(e,t,n,r,s.sH.radius)}function E(e,t,n,r){P(e,t,n,r,s.$O.radius)}function _(e,t,n,r){!function(e,t,n,r,l){const i=T*e[t],s=T*e[t+1],a=e[t+2]??0,o=Math.sin(s),u=Math.cos(s),c=l.radius/Math.sqrt(1-l.eccentricitySquared*o*o);n[r++]=(c+a)*u*Math.cos(i),n[r++]=(c+a)*u*Math.sin(i),n[r++]=(c*(1-l.eccentricitySquared)+a)*o}(e,t,n,r,s.$O)}function C(e,t,n,r){const l=a.TP,i=e[t],o=e[t+1],u=e[t+2]??0;let c,p,f,d,h,g,m,y,w,v,I,M,P,R,A,E,_,C,S,T,L;c=Math.abs(u),p=i*i+o*o,f=Math.sqrt(p),d=p+u*u,h=Math.sqrt(d),T=Math.atan2(o,i),g=u*u/d,m=p/d,R=l.a2/h,A=l.a3-l.a4/h,m>.3?(y=c/h*(1+m*(l.a1+R+g*A)/h),S=Math.asin(y),v=y*y,w=Math.sqrt(1-v)):(w=f/h*(1-g*(l.a5-R-m*A)/h),S=Math.acos(w),v=1-w*w,y=Math.sqrt(v)),I=1-s.$O.eccentricitySquared*v,M=s.$O.radius/Math.sqrt(I),P=l.a6*M,R=f-M*w,A=c-P*y,_=w*R+y*A,E=w*A-y*R,C=E/(P/I+_),S+=C,L=_+E*C/2,u<0&&(S=-S),n[r++]=b*T,n[r++]=b*S,n[r]=L}const S={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:d},T=(0,r.kU)(1),b=(0,r.KJ)(1),L=.5*Math.PI,j=s.$O.radius,k=j*Math.PI/180,O=180/(j*Math.PI)},91218(e,t,n){n.r(t),n.d(t,{canProjectWithoutEngine:()=>K,initializeProjection:()=>W,isEqualBaseGCS:()=>Y,isLoaded:()=>j,isLoadedOrLoad:()=>k,isLoadedOrLoadFor:()=>O,load:()=>x,project:()=>H,projectAsync:()=>B,projectExtent:()=>le,projectMany:()=>$,projectMultipoint:()=>V,projectOrLoad:()=>Z,projectOrLoadMany:()=>D,projectPoint:()=>Q,projectPolygon:()=>ne,projectPolyline:()=>ee,projectWithoutEngine:()=>N,requiresLoad:()=>U,test:()=>z,tryProject:()=>G,unload:()=>F});var r=n(49186),l=n(17676),i=n(62788),s=n(95488),a=n(51850),o=n(21276),u=n(73941),c=n(5443),p=n(91075),f=n(48526),d=n(86738),h=n(39829),g=n(82799),m=n(16930),y=n(98764),w=n(159),v=n(9762),I=n(49208);function M(e,t,n,r,l,i){return P[0]=e,P[1]=t,P[2]=n,(0,v.projectBuffer)(P,r,0,l,i,0)}const P=(0,a.vt)();var R=n(60408),A=n(21325),E=n(52006);let _=null,C=null,S=null,T=null,b={};const L=new s.I;function j(){return!!(C?.isLoaded()&&S?.isLoaded()&&T?.isLoaded())}function k(){return!!j()||((0,i.gc)(L),x(),!1)}function O(e,t){return!e||!t||K(e,t)||k()}function U(e,t){return!K(e,t)&&!j()}async function x(e){null==_&&(_=Promise.all([n.e(3276).then(n.bind(n,83276)).then(e=>(C=e,C.load())),n.e(8377).then(n.bind(n,8377)).then(e=>(S=e,S.load())),n.e(2158).then(n.bind(n,12158)).then(e=>(T=e,T.load()))])),await _,(0,l.Te)(e),L.notify()}function H(e,t,n){return Array.isArray(e)?0===e.length?[]:((0,o.H)(e),$(e,e[0].spatialReference,t,n)):((0,o.f)(e),$([e],e.spatialReference,t,n)[0])}function $(e,t,n,r){if(null==t||null==n)return e;if(K(t,n,r))return e.map(e=>N(e,t,n));if(null==r?.geographicTransformation&&(0,u.jA)(t))return $(e.map(e=>N(e,t,m.A.WGS84)),m.A.WGS84,n,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,u.jA)(n))return $(e,t,m.A.WGS84).map(e=>N(e,m.A.WGS84,n));if(!j())throw new q;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:T.getTransformation(t,n,r.areaOfInterestExtent)||new w.A};else if(!r?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,n);let l=b[e];l||(l=T.getTransformation(t,n)||new w.A,b[e]=l),r={geographicTransformation:l,zConversionDisabled:r?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?C.executeMany(e,n,r):S.executeMany(e,n,r)}function G(e,t,n){try{return H(e,t,n)}catch(e){return null}}function Z(e,t){const n=D([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function D(e,t,n){if(!j())for(const n of e)if(null!=n&&!(0,A.aI)(n.spatialReference,t)&&(0,A.fn)(n.spatialReference)&&(0,A.fn)(t)&&!K(n.spatialReference,t))return(0,i.gc)(L),{pending:x(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,A.aI)(e.spatialReference,t)?e:(0,A.fn)(e.spatialReference)&&(0,A.fn)(t)?H(e,t,n):null)}}class q extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function F(){_=null,C=null,S=null,T=null,b={}}const z={get loadPromise(){return _}};async function B(e,t,n){if((0,l.Te)(n),!e)return e;const r=D(Array.isArray(e)?e:[e],t,n);if(r.pending)return await r.pending,(0,l.Te)(n),B(e,t,n);const i=r.geometries??[];return Array.isArray(e)?i:i[0]}function K(e,t,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,A.aI)(e,t)||(0,A.fn)(e)&&(0,A.fn)(t)&&!!(0,I.jd)(e,t))}function Y(e,t){if((0,A.aI)(e,t))return!0;if(!(0,A.fn)(e)||!(0,A.fn)(t))return!1;const n=(0,A.oT)(e)||(0,A.K8)(e)||(0,A.x1)(e),r=(0,A.oT)(t)||(0,A.K8)(t)||(0,A.x1)(t);return n&&r}async function W(e,t,n,r){if(j())return(0,l.NO)(r);if(Array.isArray(e)){for(const{source:t,dest:n,options:l}of e)if(t&&n&&!K(t,n,l))return x(r)}else if(e&&t&&!K(e,t,n))return x(r);return(0,l.NO)(r)}function N(e,t,n){return e?(0,R.fT)(e)?J(e,t,new d.A,n,0):(0,R.ZC)(e)?ie(e,t,new c.A,n,0):(0,R.Bi)(e)?re(e,t,new h.A,n,0):(0,R.Rg)(e)?te(e,t,new g.A,n,0):(0,R.U9)(e)?X(e,t,new f.A,n,0):null:null}function Q(e,t,n=t.spatialReference,r=0){return null!=n&&null!=e.spatialReference&&null!=J(e,e.spatialReference,t,n,r)}function J(e,t,n,r,l){ue[0]=e.x,ue[1]=e.y;const i=e.z;return ue[2]=void 0!==i?i:l,(0,v.projectBuffer)(ue,t,0,ue,r,0)?(n.x=ue[0],n.y=ue[1],n.spatialReference=r,void 0!==i||(0,u.xP)(r)?(n.z=ue[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function V(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=X(e,e.spatialReference,t,n,r)}function X(e,t,n,r,l){const{points:i,hasZ:s,hasM:a}=e,o=[],u=i.length,c=[];for(const e of i)c.push(e[0],e[1],s?e[2]:l);if(!(0,v.projectBuffer)(c,t,0,c,r,0,u))return null;const p=oe(s,r);for(let e=0;e<u;++e){const t=3*e,n=c[t],r=c[t+1];p&&a?o.push([n,r,c[t+2],i[e][3]]):p?o.push([n,r,c[t+2]]):a?o.push([n,r,i[e][2]]):o.push([n,r])}return n.points=o,n.spatialReference=r,n.hasZ=s,n.hasM=a,n}function ee(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=te(e,e.spatialReference,t,n,r)}function te(e,t,n,r,l){const{curvePaths:i,paths:s,hasZ:a,hasM:o}=e;if(!(i?ae(i,a??!1,o??!1,t,n.curvePaths=[],r,l):se(s,a??!1,o??!1,t,n.paths,r,l)))return null;const u=oe(a,r);return n.spatialReference=r,n.hasZ=u,n.hasM=o,n}function ne(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=re(e,e.spatialReference,t,n,r)}function re(e,t,n,r,l){const{curveRings:i,rings:s,hasZ:a,hasM:o}=e;return(i?ae(i,a??!1,o??!1,t,n.curveRings=[],r,l):se(s,a??!1,o??!1,t,n.rings,r,l))?(n.spatialReference=r,n.hasZ=oe(a,r),n.hasM=o,n):null}function le(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=ie(e,e.spatialReference,t,n,r)}function ie(e,t,n,r,l){const{xmin:i,ymin:s,xmax:a,ymax:o,hasZ:u,hasM:c}=e;if(!M(i,s,u?e.zmin:l,t,ue,r))return null;const p=oe(u,r);return n.xmin=ue[0],n.ymin=ue[1],p&&(n.zmin=ue[2]),M(a,o,u?e.zmax:l,t,ue,r)?(n.xmax=ue[0],n.ymax=ue[1],p&&(n.zmax=ue[2]),c&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=r,n):null}function se(e,t,n,r,l,i,s=0){const a=new Array;for(const n of e)for(const e of n)a.push(e[0],e[1],t?e[2]:s);if(!(0,v.projectBuffer)(a,r,0,a,i,0))return!1;let o=0;l.length=0;const u=t?3:2,c=oe(t,i);for(const t of e){const e=new Array;for(const r of t){const t=a.slice(o,o+=3);c||t.pop(),n&&t.push(r[u]),e.push(t)}l.push(e)}return!0}function ae(e,t,n,r,l,i,s=0){const a=new Array;for(const n of e)for(const e of n){if((0,E.FG)(e))return!1;if((0,E.aO)(e)){const[n,r]=e.c;a.push(n[0],n[1],t?n[2]:s,r[0],r[1],s);continue}if((0,E.n1)(e)){const[n,r,l]=e.b;a.push(n[0],n[1],t?n[2]:s,r[0],r[1],s,l[0],l[1],s);continue}const n=e;a.push(n[0],n[1],t?n[2]:s)}if(!(0,v.projectBuffer)(a,r,0,a,i,0))return!1;let o=0;l.length=0;const u=t?3:2,c=oe(t,i);for(const t of e){const e=new Array;for(const r of t){const t=a.slice(o,o+=3);if(c||t.pop(),n&&t.push((0,E.yP)(r)[u]),(0,E.FG)(r))return!1;if((0,E.aO)(r)){const n=a[o++],r=a[o++];++o,e.push({c:[t,[n,r]]});continue}if((0,E.n1)(r)){const n=a[o++],r=a[o++];++o;const l=a[o++],i=a[o++];++o,e.push({b:[t,[n,r],[l,i]]});continue}e.push(t)}l.push(e)}return!0}function oe(e,t){return e||(0,u.xP)(t)||(0,A.aI)(t,y.Y0)}const ue=(0,a.vt)()},98764(e,t,n){n.d(t,{GD:()=>s,Y0:()=>u,lO:()=>c});var r=n(73941),l=n(16930),i=n(21325);const s=new l.A(r.fv),a=new l.A(r.FY),o=new l.A(r.LJ),u=new l.A(r.Ro);function c(e){const t=p.get(e);if(t)return t;let n=s;if(e)if(e===a)n=a;else if(e===o)n=o;else{const t=e.wkid,r=e.latestWkid;if(null!=t||null!=r)(0,i.tl)(t)||(0,i.tl)(r)?n=a:((0,i.ZL)(t)||(0,i.ZL)(r))&&(n=o);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===f?n=a:e===d&&(n=o)}}}return p.set(e,n),n}const p=new Map,f=a.wkt.toUpperCase(),d=o.wkt.toUpperCase()},34403(e,t,n){n.d(t,{TP:()=>s});var r=n(79258);Math.PI;const l=r.$O.radius,i=r.$O.eccentricitySquared,s={a1:l*i,a2:l*i*l*i,a3:l*i*i/2,a4:l*i*l*i*2.5,a5:l*i+l*i*i/2,a6:1-i};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius},8303(e,t,n){n.d(t,{A:()=>P});var r=n(5482),l=n(92602),i=n(70333),s=n(11254),a=n(60999),o=n(49186),u=n(36563),c=n(53966),p=n(97768),f=n(17676),d=n(84952),h=n(91429),g=n(77548),m=n(20655),y=n(80812),w=n(41318),v=n(10407),I=n(36005),M=n(43937);const P=e=>{const t=e;let P=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,p.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,n){if(t.itemId)return new y.default({id:t.itemId,portal:n?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:r}=await n.e(1204).then(n.bind(n,41204));return(0,f.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,f.zf)(e)||c.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 n.e(1204).then(n.bind(n,41204)),r=new AbortController,l=(0,u.rE)(r);return this.addHandles(l,"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,f.zf)(e)||c.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,f.QP)(e),!0)))}async setUserPrivileges(e,t){if(!l.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:n,fullEdit:r},content:{updateItem:l}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",n),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",l)}catch(e){(0,f.QP)(e)}}async _fetchUserPrivileges(e,t){let n=this.portalItem;if(!e||!n||!n.loaded||n.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=!i.id?.findCredential(this.url),l=e===n.id;if(l&&n.portal.user)return this._getUserPrivileges(n,r);let s,a;if(l)s=n.portal.url;else try{s=await(0,g.wI)(this.url,t)}catch(e){(0,f.QP)(e)}if(!s||!(0,d.b8)(s,n.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(i.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,f.QP)(e)}const o=!0,u=!1,c=!1;if(!a)return{features:{edit:o,fullEdit:u},content:{updateItem:c}};try{if(l?await n.reload():(n=new y.default({id:e,portal:{url:s}}),await n.load(t)),n.portal.user)return this._getUserPrivileges(n,r)}catch(e){(0,f.QP)(e)}return{features:{edit:o,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const n=(0,v.It)(e);return t&&(n.features.edit=!0),n}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,f.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?i.id?.findCredential(this.url):null;if(!t)return!0;const n=R.credential===t?R.user:await this._fetchEditingUser(e);return R.credential=t,R.user=n,null==n?.privileges||n.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const n=i.id?.findServerInfo(this.url??"");if(!n?.owningSystemUrl)return null;const r=`${n.owningSystemUrl}/sharing/rest`,l=m.A.getDefault();if(l&&l.loaded&&(0,d.S8)(l.restUrl)===(0,d.S8)(r))return l.user;const o=`${r}/community/self`,u=null!=e?e.signal:null,c=await(0,a.Ke)((0,s.A)(o,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?w.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const n=t?.portal,r=this.portalItem?.id&&(this.portalItem.portal||m.A.getDefault());return n&&r&&!(0,d.ut)(r.restUrl,n.restUrl)?(t.messages&&t.messages.push(new o.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,h.MZ)({type:y.default})],P.prototype,"portalItem",null),(0,r.Cg)([(0,I.w)("web-document","portalItem",["itemId"])],P.prototype,"readPortalItem",null),(0,r.Cg)([(0,M.K)("web-document","portalItem",{itemId:{type:String}})],P.prototype,"writePortalItem",null),(0,r.Cg)([(0,h.MZ)({clonable:!1})],P.prototype,"resourceReferences",void 0),(0,r.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],P.prototype,"userHasEditingPrivileges",void 0),(0,r.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],P.prototype,"userHasFullEditingPrivileges",void 0),(0,r.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],P.prototype,"userHasUpdateItemPrivileges",void 0),P=(0,r.Cg)([(0,h.$K)("esri.layers.mixins.PortalLayer")],P),P},R={credential:null,user:null}},10407(e,t,n){n.d(t,{It:()=>d,LG:()=>s,OM:()=>u,Sm:()=>c,Y:()=>a,bK:()=>o,mm:()=>f,sQ:()=>p});var r=n(91218),l=n(16930),i=n(28735);function s(e,t){if(!a(e,t)){const n=e.typeKeywords;n?n.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function o(e){return a(e,f.HOSTED_SERVICE)}function u(e,t){const n=e.typeKeywords;if(n){const e=n.indexOf(t);e>-1&&n.splice(e,1)}}function c(e,t,n){n?s(e,t):u(e,t)}async function p(e){const t=e.clone().normalize();let n;if(t.length>1)for(const e of t)n?e.width>n.width&&(n=e):n=e;else n=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,i.ci)(e);const n=l.A.WGS84;return await(0,r.initializeProjection)(t,n),(0,r.project)(e,n)}(n)}const f={CHARTS:"Charts",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",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function d(e){const{portal:t,isOrgItem:n,itemControl:r}=e,l=t.user?.privileges;let i=!l||l.includes("features:user:edit"),s=!!n&&!!l?.includes("features:user:fullEdit");const a="update"===r||"admin"===r;return a?s=i=!0:s&&(i=!0),{features:{edit:i,fullEdit:s},content:{updateItem:a}}}},78553(e,t,n){n.d(t,{D:()=>i,p:()=>l});var r=n(56507);function l(e){const t=(0,r.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function i(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}}}]);