@arcgis/core 4.25.0-next.20221018 → 4.25.0-next.20221021

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 (1368) hide show
  1. package/Basemap.d.ts +1 -1
  2. package/Camera.d.ts +1 -1
  3. package/Color.d.ts +1 -1
  4. package/Graphic.d.ts +1 -1
  5. package/Ground.d.ts +1 -1
  6. package/Map.d.ts +1 -1
  7. package/PopupTemplate.d.ts +1 -1
  8. package/README.md +158 -158
  9. package/TimeExtent.d.ts +1 -1
  10. package/TimeInterval.d.ts +1 -1
  11. package/Viewpoint.d.ts +1 -1
  12. package/WebMap.d.ts +1 -1
  13. package/WebMap.js +1 -1
  14. package/WebScene.d.ts +1 -1
  15. package/analysis/AreaMeasurementAnalysis.d.ts +1 -1
  16. package/analysis/DimensionAnalysis.d.ts +1 -1
  17. package/analysis/DimensionSimpleStyle.d.ts +1 -1
  18. package/analysis/DirectLineMeasurementAnalysis.d.ts +1 -1
  19. package/analysis/LengthDimension.d.ts +1 -1
  20. package/analysis/LineOfSightAnalysis.d.ts +1 -1
  21. package/analysis/LineOfSightAnalysisObserver.d.ts +1 -1
  22. package/analysis/LineOfSightAnalysisTarget.d.ts +1 -1
  23. package/analysis/SliceAnalysis.d.ts +1 -1
  24. package/analysis/SlicePlane.d.ts +1 -1
  25. package/applications/SceneViewer/colorUtils.d.ts +1 -1
  26. package/applications/SceneViewer/sceneViewerUtils.d.ts +1 -1
  27. package/arcade.d.ts +1 -1
  28. package/assets/esri/core/libs/libtess/libtess.wasm +0 -0
  29. package/assets/esri/core/workers/RemoteClient.js +1 -1
  30. package/assets/esri/core/workers/chunks/{fc521bcd4fce711edb7e.js → 038dc3f9ef06ef3c960c.js} +1 -1
  31. package/assets/esri/core/workers/chunks/073fdfd01d940c7b1da1.js +1 -0
  32. package/assets/esri/core/workers/chunks/0b0f3e93f658a012d5f0.js +1 -0
  33. package/assets/esri/core/workers/chunks/{5e3686b68e1b5dfa0169.js → 110587dd66c52d0284a9.js} +4 -4
  34. package/assets/esri/core/workers/chunks/{7b7b6f0b1a6215ee7a60.js → 12efe67be9414262591f.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{9383dab07abf7e29139e.js → 16a6b4d8c4928c97ef56.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{cd11fcc3d9678ab4e115.js → 19c208150b7f9cf0b6ea.js} +1 -1
  37. package/assets/esri/core/workers/chunks/{6f19761acd9ab875a600.js → 2b0952bd7dbeb1a79fbc.js} +1 -1
  38. package/assets/esri/core/workers/chunks/{7fab18074b130b71a648.js → 2c4938512dd726a177dd.js} +1 -1
  39. package/assets/esri/core/workers/chunks/2d8201f0f33ba66bb96b.js +1 -0
  40. package/assets/esri/core/workers/chunks/2ebba71cbbfa62ddf46a.js +1 -0
  41. package/assets/esri/core/workers/chunks/{de6a1d1cfdc147455d57.js → 2f22105099a3ece58d1d.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{8ee3da8677255b8c8709.js → 31de71018575457155e5.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{64a0f93c6a0fd4e14601.js → 3376fbcbd92261d45169.js} +1 -1
  44. package/assets/esri/core/workers/chunks/4450f17444947fe2f27f.js +1 -0
  45. package/assets/esri/core/workers/chunks/5de864843c0d3f4d291d.js +1 -0
  46. package/assets/esri/core/workers/chunks/6dfb2ddfd72009564a34.js +1 -0
  47. package/assets/esri/core/workers/chunks/{d18b191e158c1aff853c.js → 71bc42d18a9e5c356c2a.js} +1 -1
  48. package/assets/esri/core/workers/chunks/{179b9a7aa796dac3eb83.js → 7ba0cfe4d1c214f44fc7.js} +1 -1
  49. package/assets/esri/core/workers/chunks/81139c01e8016cbbe324.js +1 -0
  50. package/assets/esri/core/workers/chunks/883cfe319b15ebabf71e.js +1 -0
  51. package/assets/esri/core/workers/chunks/{c2a6ac7046134f725cf3.js → 8ba83fee56dd4f306d87.js} +1 -1
  52. package/assets/esri/core/workers/chunks/925f53f4ef097c5ce204.js +1 -0
  53. package/assets/esri/core/workers/chunks/{eff5593e534d2a617ca7.js → 942da417257f8fd8e4cf.js} +1 -1
  54. package/assets/esri/core/workers/chunks/97450791de57796f842c.js +1 -0
  55. package/assets/esri/core/workers/chunks/{c9c0dd4d9aaa9b794bd5.js → 9d1faf9358df056be8e7.js} +1 -1
  56. package/assets/esri/core/workers/chunks/9d410721f42259efe666.js +1 -0
  57. package/assets/esri/core/workers/chunks/{b98074a98ebc11ed1e09.js → aa3909ffe65b42c61b52.js} +1 -1
  58. package/assets/esri/core/workers/chunks/af3f30f968363bb3930c.js +1 -0
  59. package/assets/esri/core/workers/chunks/{93e7d34f52bfafa015e1.js → b58badb11e610024ce4c.js} +1 -1
  60. package/assets/esri/core/workers/chunks/b5e6a868256c5aae6d5e.js +1 -0
  61. package/assets/esri/core/workers/chunks/{2307eea4f3b9c0c987f1.js → b9e93d9ea80361716f1d.js} +1 -1
  62. package/assets/esri/core/workers/chunks/{1f31a507c989b2976660.js → c26a24c89ddf5bdad343.js} +1 -1
  63. package/assets/esri/core/workers/chunks/{a9b77bea0b8d7a2e5f65.js → c8c0f091aab41e4effa5.js} +1 -1
  64. package/assets/esri/core/workers/chunks/d573ec98401fbae26383.js +1 -0
  65. package/assets/esri/core/workers/chunks/{4641e10e0e8e9d257521.js → f436c86f86236ea7ea04.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{b88c012fa0b0e229a5e3.js → f5b4a8b2bad9b0899954.js} +1 -1
  67. package/assets/esri/core/workers/chunks/{3bcf3bed475f7c49eb7e.js → f787036fa1ed4f53bb00.js} +1 -1
  68. package/assets/esri/core/workers/chunks/{ceb38e7e1aa08e1b141f.js → fa3117bb2e11daac000e.js} +1 -1
  69. package/assets/esri/core/workers/chunks/{77425f33515eb7f0551a.js → fb340c93c114ef090941.js} +1 -1
  70. package/assets/esri/css/main.scss +1 -1
  71. package/assets/esri/css/view.scss +1 -1
  72. package/assets/esri/images/support/loading-throb.gif +0 -0
  73. package/assets/esri/themes/base/_Overlay.scss +14 -14
  74. package/assets/esri/themes/base/_OverlayItem.scss +52 -52
  75. package/assets/esri/themes/base/_Ui.scss +149 -149
  76. package/assets/esri/themes/base/_View.scss +194 -194
  77. package/assets/esri/themes/base/_animation.scss +128 -128
  78. package/assets/esri/themes/base/_color.scss +57 -57
  79. package/assets/esri/themes/base/_colorVariables.scss +1 -1
  80. package/assets/esri/themes/base/_core.scss +172 -172
  81. package/assets/esri/themes/base/_functions.scss +23 -23
  82. package/assets/esri/themes/base/_layout.scss +11 -11
  83. package/assets/esri/themes/base/_mixins.scss +665 -665
  84. package/assets/esri/themes/base/_sizes.scss +130 -130
  85. package/assets/esri/themes/base/_type.scss +27 -27
  86. package/assets/esri/themes/base/colors/css/scss/brand_colors.scss +0 -0
  87. package/assets/esri/themes/base/colors/css/scss/calcite_core_colors.scss +0 -0
  88. package/assets/esri/themes/base/colors/css/scss/calcite_core_colors_dark.scss +0 -0
  89. package/assets/esri/themes/base/colors/css/scss/calcite_gray_colors.scss +0 -0
  90. package/assets/esri/themes/base/colors/css/scss/calcite_gray_colors_dark.scss +0 -0
  91. package/assets/esri/themes/base/colors/css/scss/calcite_highlight_colors.scss +0 -0
  92. package/assets/esri/themes/base/colors/css/scss/calcite_highlight_colors_dark.scss +0 -0
  93. package/assets/esri/themes/base/colors/css/scss/calcite_vibrant_colors.scss +0 -0
  94. package/assets/esri/themes/base/colors/css/scss/calcite_vibrant_colors_dark.scss +0 -0
  95. package/assets/esri/themes/base/colors/css/scss/complete.scss +0 -0
  96. package/assets/esri/themes/base/colors/patterns_json/scss/brand_colors.scss +0 -0
  97. package/assets/esri/themes/base/colors/patterns_json/scss/calcite_core_colors.scss +0 -0
  98. package/assets/esri/themes/base/colors/patterns_json/scss/calcite_core_colors_dark.scss +0 -0
  99. package/assets/esri/themes/base/colors/patterns_json/scss/calcite_gray_colors.scss +0 -0
  100. package/assets/esri/themes/base/colors/patterns_json/scss/calcite_gray_colors_dark.scss +0 -0
  101. package/assets/esri/themes/base/colors/patterns_json/scss/calcite_highlight_colors.scss +0 -0
  102. package/assets/esri/themes/base/colors/patterns_json/scss/calcite_highlight_colors_dark.scss +0 -0
  103. package/assets/esri/themes/base/colors/patterns_json/scss/calcite_vibrant_colors.scss +0 -0
  104. package/assets/esri/themes/base/colors/patterns_json/scss/calcite_vibrant_colors_dark.scss +0 -0
  105. package/assets/esri/themes/base/colors/patterns_json/scss/complete.scss +0 -0
  106. package/assets/esri/themes/base/fonts/fonts/014f2daa-c310-4a36-b9fd-79a8e0c48d44-ext.woff2 +0 -0
  107. package/assets/esri/themes/base/fonts/fonts/014f2daa-c310-4a36-b9fd-79a8e0c48d44-greek.woff2 +0 -0
  108. package/assets/esri/themes/base/fonts/fonts/014f2daa-c310-4a36-b9fd-79a8e0c48d44.woff2 +0 -0
  109. package/assets/esri/themes/base/fonts/fonts/0763eab1-d6ed-4c73-afb0-895f930df099.woff +0 -0
  110. package/assets/esri/themes/base/fonts/fonts/121524c1-8d82-4155-bfb3-fd2f15f09e93.woff +0 -0
  111. package/assets/esri/themes/base/fonts/fonts/12b00842-ec20-4c7f-aa72-802fb00f6cc4-ext.woff +0 -0
  112. package/assets/esri/themes/base/fonts/fonts/12b00842-ec20-4c7f-aa72-802fb00f6cc4-greek.woff +0 -0
  113. package/assets/esri/themes/base/fonts/fonts/12b00842-ec20-4c7f-aa72-802fb00f6cc4.woff +0 -0
  114. package/assets/esri/themes/base/fonts/fonts/13faf0ae-dcab-4d1c-9c08-f9ca339b6023-greek.woff +0 -0
  115. package/assets/esri/themes/base/fonts/fonts/13faf0ae-dcab-4d1c-9c08-f9ca339b6023.woff +0 -0
  116. package/assets/esri/themes/base/fonts/fonts/15e2e15a-2f36-4a01-b529-677d575bf76d.woff2 +0 -0
  117. package/assets/esri/themes/base/fonts/fonts/174d458a-81e0-4174-9473-35e3bf0a613c.woff2 +0 -0
  118. package/assets/esri/themes/base/fonts/fonts/18629a56-2ec3-4470-a65f-f82d7ec4d41b.woff2 +0 -0
  119. package/assets/esri/themes/base/fonts/fonts/1b3078ef-2971-4c95-b6ca-13ab528758cb.woff +0 -0
  120. package/assets/esri/themes/base/fonts/fonts/1fed34fa-250a-4d32-9f1d-42f978a2e0b2.woff2 +0 -0
  121. package/assets/esri/themes/base/fonts/fonts/2200dfff-da50-40b0-bc12-5e4b872a1998.woff2 +0 -0
  122. package/assets/esri/themes/base/fonts/fonts/281f890c-8412-4ee3-84ed-8b5d062d2ab8.woff2 +0 -0
  123. package/assets/esri/themes/base/fonts/fonts/2a1ae9a5-b6b5-405c-b660-bbdf1b356952.woff2 +0 -0
  124. package/assets/esri/themes/base/fonts/fonts/31da4b04-f98a-4b5f-b545-a31d26da99e5.woff2 +0 -0
  125. package/assets/esri/themes/base/fonts/fonts/31e0c094-e345-4a54-a797-d5f1a5885572.woff +0 -0
  126. package/assets/esri/themes/base/fonts/fonts/32a2c5cf-6736-44a6-a276-49ba7e030944.woff2 +0 -0
  127. package/assets/esri/themes/base/fonts/fonts/341bcc5e-7ac0-44ff-819d-5887892eab1b.woff +0 -0
  128. package/assets/esri/themes/base/fonts/fonts/390cea11-2b11-47ac-b3e8-43ded6ae89ee.woff +0 -0
  129. package/assets/esri/themes/base/fonts/fonts/394a711e-3459-44f3-85c7-e99c01e4b55c.woff +0 -0
  130. package/assets/esri/themes/base/fonts/fonts/3ae1e25e-3aa6-4061-a016-a079159f9d65.woff2 +0 -0
  131. package/assets/esri/themes/base/fonts/fonts/3d5260a1-e4cd-4567-80ed-69d23c40355f-ext.woff +0 -0
  132. package/assets/esri/themes/base/fonts/fonts/3d5260a1-e4cd-4567-80ed-69d23c40355f-greek.woff +0 -0
  133. package/assets/esri/themes/base/fonts/fonts/3d5260a1-e4cd-4567-80ed-69d23c40355f.woff +0 -0
  134. package/assets/esri/themes/base/fonts/fonts/40d36b4a-60c6-460a-bf43-4c948c23563e.woff2 +0 -0
  135. package/assets/esri/themes/base/fonts/fonts/41331c3c-3759-4462-8695-33c9a21b6a5b.woff2 +0 -0
  136. package/assets/esri/themes/base/fonts/fonts/439a2ded-d7a4-42d4-8660-ef8765fa7486.woff +0 -0
  137. package/assets/esri/themes/base/fonts/fonts/45b78f45-e639-4836-8612-e0892e120f14.woff +0 -0
  138. package/assets/esri/themes/base/fonts/fonts/46947883-147e-48dd-97c2-5a8ca675b998.woff2 +0 -0
  139. package/assets/esri/themes/base/fonts/fonts/4ab86b35-c0c2-42b5-98ad-4b6eba66b197.woff +0 -0
  140. package/assets/esri/themes/base/fonts/fonts/4d1d0d0d-9ea6-4117-901f-8b32ca1ab936.woff +0 -0
  141. package/assets/esri/themes/base/fonts/fonts/4daa2125-53c6-4da8-9614-8a1049eaccc2.woff2 +0 -0
  142. package/assets/esri/themes/base/fonts/fonts/4e4befe6-3f94-41d8-886c-1a6831818c6a.woff2 +0 -0
  143. package/assets/esri/themes/base/fonts/fonts/5729f02e-f6b0-4f35-8ee5-c2cffa65fa76.woff +0 -0
  144. package/assets/esri/themes/base/fonts/fonts/57a79aa3-9b06-4ba7-a9a4-2b766d826ecf.woff +0 -0
  145. package/assets/esri/themes/base/fonts/fonts/61f13f40-3829-413c-b6f5-b11abb272edc.woff +0 -0
  146. package/assets/esri/themes/base/fonts/fonts/6ea5fa46-5311-450b-8744-288a30c55348.woff2 +0 -0
  147. package/assets/esri/themes/base/fonts/fonts/75e2f3b1-1402-4916-8392-4db9ababea7b.woff2 +0 -0
  148. package/assets/esri/themes/base/fonts/fonts/77156710-6a58-4606-b189-b4185e75967b-ext.woff2 +0 -0
  149. package/assets/esri/themes/base/fonts/fonts/77156710-6a58-4606-b189-b4185e75967b-greek.woff2 +0 -0
  150. package/assets/esri/themes/base/fonts/fonts/77156710-6a58-4606-b189-b4185e75967b.woff2 +0 -0
  151. package/assets/esri/themes/base/fonts/fonts/77caabd3-1877-4634-85c8-8e398a093b99-ext.woff2 +0 -0
  152. package/assets/esri/themes/base/fonts/fonts/77caabd3-1877-4634-85c8-8e398a093b99-greek.woff2 +0 -0
  153. package/assets/esri/themes/base/fonts/fonts/77caabd3-1877-4634-85c8-8e398a093b99.woff2 +0 -0
  154. package/assets/esri/themes/base/fonts/fonts/7db1f672-3a8f-4d19-9c49-7f61aed450b5.woff2 +0 -0
  155. package/assets/esri/themes/base/fonts/fonts/89370128-6a74-471d-ba04-fa0b59bc8ed3.woff +0 -0
  156. package/assets/esri/themes/base/fonts/fonts/8a65abc7-6463-4895-b3e6-5e203b80b7e2.woff2 +0 -0
  157. package/assets/esri/themes/base/fonts/fonts/8b01637a-f445-4f10-92ea-b84a355f7690.woff +0 -0
  158. package/assets/esri/themes/base/fonts/fonts/94aa531e-7746-4df0-bb6e-349891f2eda5.woff2 +0 -0
  159. package/assets/esri/themes/base/fonts/fonts/97694c53-4e94-4f9e-969b-a148adfcdcfd.woff2 +0 -0
  160. package/assets/esri/themes/base/fonts/fonts/97b330aa-d7fa-4f85-830f-b11a5041b157.woff +0 -0
  161. package/assets/esri/themes/base/fonts/fonts/9851da0a-2481-4687-bbeb-ed4ab170dc38-ext.woff2 +0 -0
  162. package/assets/esri/themes/base/fonts/fonts/9851da0a-2481-4687-bbeb-ed4ab170dc38.woff2 +0 -0
  163. package/assets/esri/themes/base/fonts/fonts/9c1ab088-0cb0-402f-9cea-170f0fea14a8.woff2 +0 -0
  164. package/assets/esri/themes/base/fonts/fonts/a1049d00-54ad-4589-95b8-d353f7ab52f0-greek.woff2 +0 -0
  165. package/assets/esri/themes/base/fonts/fonts/a1049d00-54ad-4589-95b8-d353f7ab52f0.woff2 +0 -0
  166. package/assets/esri/themes/base/fonts/fonts/a8aeea1b-1a9d-45b7-8ad9-7c71824599e2.woff +0 -0
  167. package/assets/esri/themes/base/fonts/fonts/a9eaf4d3-6427-42df-9306-3ea1270f7b1a.woff2 +0 -0
  168. package/assets/esri/themes/base/fonts/fonts/ae454969-59fb-4d42-aecb-dea30459bc7e.woff +0 -0
  169. package/assets/esri/themes/base/fonts/fonts/b0b84e4d-2164-45c7-a674-1662f19f3ba6-basic.woff2 +0 -0
  170. package/assets/esri/themes/base/fonts/fonts/b0b84e4d-2164-45c7-a674-1662f19f3ba6-ext.woff2 +0 -0
  171. package/assets/esri/themes/base/fonts/fonts/b0b84e4d-2164-45c7-a674-1662f19f3ba6.woff2 +0 -0
  172. package/assets/esri/themes/base/fonts/fonts/b17468ea-cf53-4635-984b-4d930a68ed4d.woff2 +0 -0
  173. package/assets/esri/themes/base/fonts/fonts/bb93c563-55f6-494f-8e1e-448538d95df1.woff +0 -0
  174. package/assets/esri/themes/base/fonts/fonts/c1905e2e-a1cb-49de-9bb0-ce3c5ffc85ae.woff2 +0 -0
  175. package/assets/esri/themes/base/fonts/fonts/c4cc9032-7eee-4a6e-ae8b-f384b1349bcf.woff2 +0 -0
  176. package/assets/esri/themes/base/fonts/fonts/c744f2a2-d6a9-4c18-b0ec-f17376acde3e.woff +0 -0
  177. package/assets/esri/themes/base/fonts/fonts/cebce072-9561-4c6d-8c89-f0cefec63289-ext.woff +0 -0
  178. package/assets/esri/themes/base/fonts/fonts/cebce072-9561-4c6d-8c89-f0cefec63289.woff +0 -0
  179. package/assets/esri/themes/base/fonts/fonts/d4ffabb3-dd7c-472a-bdfb-6700383c6354-ext.woff +0 -0
  180. package/assets/esri/themes/base/fonts/fonts/d4ffabb3-dd7c-472a-bdfb-6700383c6354-greek.woff +0 -0
  181. package/assets/esri/themes/base/fonts/fonts/d4ffabb3-dd7c-472a-bdfb-6700383c6354.woff +0 -0
  182. package/assets/esri/themes/base/fonts/fonts/d824d78b-aab0-44e3-8c56-6c3dcf551952.woff2 +0 -0
  183. package/assets/esri/themes/base/fonts/fonts/d98fb015-7ef6-404f-a58a-5c9242d79770.woff +0 -0
  184. package/assets/esri/themes/base/fonts/fonts/d9e4040d-32ff-4a1c-ac04-927a781da1f5.woff +0 -0
  185. package/assets/esri/themes/base/fonts/fonts/dc10b3bd-5076-4df5-a5f5-e5961f4a6938.woff +0 -0
  186. package/assets/esri/themes/base/fonts/fonts/dd7b7d4e-21ab-4ac0-b26a-d032c992f3c5.woff2 +0 -0
  187. package/assets/esri/themes/base/fonts/fonts/e388ac99-8c6a-4451-8690-1d15b4d45adb-ext.woff +0 -0
  188. package/assets/esri/themes/base/fonts/fonts/e388ac99-8c6a-4451-8690-1d15b4d45adb-greek.woff +0 -0
  189. package/assets/esri/themes/base/fonts/fonts/e388ac99-8c6a-4451-8690-1d15b4d45adb.woff +0 -0
  190. package/assets/esri/themes/base/fonts/fonts/e57662ff-b1ef-4122-88c1-61bbdabeb365.woff +0 -0
  191. package/assets/esri/themes/base/fonts/fonts/e78b17bb-11fb-4860-8d66-4ee0d0c1e117-ext.woff2 +0 -0
  192. package/assets/esri/themes/base/fonts/fonts/e78b17bb-11fb-4860-8d66-4ee0d0c1e117-greek.woff2 +0 -0
  193. package/assets/esri/themes/base/fonts/fonts/e78b17bb-11fb-4860-8d66-4ee0d0c1e117.woff2 +0 -0
  194. package/assets/esri/themes/base/fonts/fonts/e91d1bbf-3fea-45e2-b003-a22b12ce6e5f-basic.woff +0 -0
  195. package/assets/esri/themes/base/fonts/fonts/e91d1bbf-3fea-45e2-b003-a22b12ce6e5f-ext.woff +0 -0
  196. package/assets/esri/themes/base/fonts/fonts/e91d1bbf-3fea-45e2-b003-a22b12ce6e5f.woff +0 -0
  197. package/assets/esri/themes/base/fonts/fonts/f1799750-0952-403f-8108-b2402eed0f62.woff +0 -0
  198. package/assets/esri/themes/base/fonts/fonts/f4a085c3-1c64-4fc0-a598-26f3e658c2b0.woff +0 -0
  199. package/assets/esri/themes/base/fonts/fonts/fa71df11-7b19-4baf-8ff7-3537dea718f0.woff +0 -0
  200. package/assets/esri/themes/base/icons/style.css +0 -0
  201. package/assets/esri/themes/base/icons/style.scss +0 -0
  202. package/assets/esri/themes/base/icons/variables.scss +0 -0
  203. package/assets/esri/themes/base/images/files/archive-32.svg +0 -0
  204. package/assets/esri/themes/base/images/files/cad-32.svg +0 -0
  205. package/assets/esri/themes/base/images/files/code-32.svg +0 -0
  206. package/assets/esri/themes/base/images/files/csv-32.svg +0 -0
  207. package/assets/esri/themes/base/images/files/excel-32.svg +0 -0
  208. package/assets/esri/themes/base/images/files/generic-32.svg +0 -0
  209. package/assets/esri/themes/base/images/files/gpx-32.svg +0 -0
  210. package/assets/esri/themes/base/images/files/image-32.svg +0 -0
  211. package/assets/esri/themes/base/images/files/pdf-32.svg +0 -0
  212. package/assets/esri/themes/base/images/files/report-32.svg +0 -0
  213. package/assets/esri/themes/base/images/files/sound-32.svg +0 -0
  214. package/assets/esri/themes/base/images/files/text-32.svg +0 -0
  215. package/assets/esri/themes/base/images/files/video-32.svg +0 -0
  216. package/assets/esri/themes/base/images/files/word-32.svg +0 -0
  217. package/assets/esri/themes/base/images/files/zip-32.svg +0 -0
  218. package/assets/esri/themes/base/images/loading-throb.gif +0 -0
  219. package/assets/esri/themes/base/widgets/_AreaMeasurement2D.scss +14 -14
  220. package/assets/esri/themes/base/widgets/_AreaMeasurement3D.scss +14 -14
  221. package/assets/esri/themes/base/widgets/_Attachments.scss +286 -286
  222. package/assets/esri/themes/base/widgets/_Attribution.scss +57 -57
  223. package/assets/esri/themes/base/widgets/_BasemapGallery.scss +173 -173
  224. package/assets/esri/themes/base/widgets/_BasemapLayerList.scss +490 -490
  225. package/assets/esri/themes/base/widgets/_BasemapToggle.scss +123 -123
  226. package/assets/esri/themes/base/widgets/_BinaryColorSizeSlider.scss +7 -7
  227. package/assets/esri/themes/base/widgets/_Bookmarks.scss +349 -349
  228. package/assets/esri/themes/base/widgets/_BuildingDisciplinesTree.scss +151 -151
  229. package/assets/esri/themes/base/widgets/_BuildingExplorer.scss +51 -51
  230. package/assets/esri/themes/base/widgets/_BuildingLevelPicker.scss +253 -253
  231. package/assets/esri/themes/base/widgets/_BuildingPhasePicker.scss +92 -92
  232. package/assets/esri/themes/base/widgets/_ButtonMenu.scss +129 -129
  233. package/assets/esri/themes/base/widgets/_ClassedColorSlider.scss +7 -7
  234. package/assets/esri/themes/base/widgets/_ClassedSizeSlider.scss +7 -7
  235. package/assets/esri/themes/base/widgets/_ColorPicker.scss +70 -70
  236. package/assets/esri/themes/base/widgets/_ColorSizeSlider.scss +7 -7
  237. package/assets/esri/themes/base/widgets/_ColorSlider.scss +7 -7
  238. package/assets/esri/themes/base/widgets/_Compass.scss +16 -16
  239. package/assets/esri/themes/base/widgets/_CoordinateConversion.scss +236 -238
  240. package/assets/esri/themes/base/widgets/_DatePicker.scss +169 -169
  241. package/assets/esri/themes/base/widgets/_Daylight.scss +270 -270
  242. package/assets/esri/themes/base/widgets/_DirectLineMeasurement3D.scss +7 -7
  243. package/assets/esri/themes/base/widgets/_Directions.scss +471 -471
  244. package/assets/esri/themes/base/widgets/_DistanceMeasurement2D.scss +7 -7
  245. package/assets/esri/themes/base/widgets/_Editor.scss +260 -255
  246. package/assets/esri/themes/base/widgets/_ElevationProfile.scss +439 -439
  247. package/assets/esri/themes/base/widgets/_Expand.scss +264 -264
  248. package/assets/esri/themes/base/widgets/_Feature.scss +93 -92
  249. package/assets/esri/themes/base/widgets/_FeatureContent.scss +97 -97
  250. package/assets/esri/themes/base/widgets/_FeatureForm.scss +236 -216
  251. package/assets/esri/themes/base/widgets/_FeatureMedia.scss +86 -86
  252. package/assets/esri/themes/base/widgets/_FeatureTable.scss +247 -247
  253. package/assets/esri/themes/base/widgets/_FeatureTemplates.scss +44 -44
  254. package/assets/esri/themes/base/widgets/_FloorFilter.scss +480 -480
  255. package/assets/esri/themes/base/widgets/_Grid.scss +71 -71
  256. package/assets/esri/themes/base/widgets/_HeatmapSlider.scss +7 -7
  257. package/assets/esri/themes/base/widgets/_Histogram.scss +56 -56
  258. package/assets/esri/themes/base/widgets/_HistogramRangeSlider.scss +105 -105
  259. package/assets/esri/themes/base/widgets/_IdentityForm.scss +22 -22
  260. package/assets/esri/themes/base/widgets/_IdentityModal.scss +105 -105
  261. package/assets/esri/themes/base/widgets/_ItemList.scss +143 -143
  262. package/assets/esri/themes/base/widgets/_LayerList.scss +413 -413
  263. package/assets/esri/themes/base/widgets/_Legend.scss +551 -551
  264. package/assets/esri/themes/base/widgets/_LineOfSight.scss +41 -41
  265. package/assets/esri/themes/base/widgets/_Measurement.scss +6 -6
  266. package/assets/esri/themes/base/widgets/_NavigationToggle.scss +99 -99
  267. package/assets/esri/themes/base/widgets/_OpacitySlider.scss +7 -7
  268. package/assets/esri/themes/base/widgets/_Popup.scss +748 -745
  269. package/assets/esri/themes/base/widgets/_Print.scss +269 -269
  270. package/assets/esri/themes/base/widgets/_SaveLayer.scss +40 -40
  271. package/assets/esri/themes/base/widgets/_ScaleBar.scss +160 -160
  272. package/assets/esri/themes/base/widgets/_ScaleRangeSlider.scss +211 -211
  273. package/assets/esri/themes/base/widgets/_Search.scss +193 -193
  274. package/assets/esri/themes/base/widgets/_SearchResultRenderer.scss +34 -34
  275. package/assets/esri/themes/base/widgets/_SelectionToolbar.scss +18 -18
  276. package/assets/esri/themes/base/widgets/_ShadowCast.scss +202 -202
  277. package/assets/esri/themes/base/widgets/_SizeSlider.scss +7 -7
  278. package/assets/esri/themes/base/widgets/_Sketch.scss +151 -151
  279. package/assets/esri/themes/base/widgets/_Slice.scss +80 -80
  280. package/assets/esri/themes/base/widgets/_Slider.scss +367 -367
  281. package/assets/esri/themes/base/widgets/_SnappingControls.scss +143 -143
  282. package/assets/esri/themes/base/widgets/_Spinner.scss +76 -76
  283. package/assets/esri/themes/base/widgets/_Swipe.scss +105 -105
  284. package/assets/esri/themes/base/widgets/_TableList.scss +299 -299
  285. package/assets/esri/themes/base/widgets/_TimePicker.scss +15 -15
  286. package/assets/esri/themes/base/widgets/_TimeSlider.scss +404 -404
  287. package/assets/esri/themes/base/widgets/_Tooltip.scss +61 -61
  288. package/assets/esri/themes/base/widgets/_UtilityNetworkTrace.scss +47 -47
  289. package/assets/esri/themes/base/widgets/_Weather.scss +59 -59
  290. package/assets/esri/themes/base/widgets/_Widget.scss +688 -688
  291. package/assets/esri/themes/base/widgets/_Zoom.scss +45 -45
  292. package/assets/esri/themes/dark/main.css +1 -1
  293. package/assets/esri/themes/dark/main.scss +34 -34
  294. package/assets/esri/themes/light/main.css +1 -1
  295. package/assets/esri/themes/light/main.scss +9 -9
  296. package/assets/esri/themes/light/view.css +1 -1
  297. package/assets/esri/themes/light/view.scss +9 -9
  298. package/assets/esri/views/3d/analysis/Slice/images/heading-rotate.svg +4 -4
  299. package/assets/esri/views/3d/analysis/Slice/images/tilt-rotate.svg +80 -80
  300. package/assets/esri/views/3d/webgl-engine/lib/intersectorUtils.svg +117 -117
  301. package/assets/esri/views/magnifier/mask.ts.svg +5 -5
  302. package/assets/esri/views/magnifier/overlay.ts.svg +36 -36
  303. package/chunks/Laserlines.glsl.js +5 -5
  304. package/chunks/LineMarker.glsl.js +32 -38
  305. package/chunks/Precipitation.glsl.js +1 -1
  306. package/chunks/RibbonLine.glsl.js +53 -53
  307. package/chunks/ShadowHighlight.glsl.js +1 -1
  308. package/chunks/boundedPlane.js +1 -1
  309. package/chunks/cameraUtilsPlanar.js +1 -1
  310. package/chunks/cameraUtilsSpherical.js +1 -1
  311. package/chunks/mat3.js +1 -1
  312. package/chunks/quat.js +1 -1
  313. package/chunks/quat2.js +1 -1
  314. package/chunks/quatf64.js +1 -1
  315. package/chunks/sphere.js +1 -1
  316. package/chunks/vec3.js +1 -1
  317. package/chunks/vec3f32.js +1 -1
  318. package/chunks/vec4f64.js +1 -1
  319. package/config.d.ts +1 -1
  320. package/copyright.txt +1278 -1278
  321. package/core/Accessor.d.ts +1 -1
  322. package/core/Accessor.js +1 -1
  323. package/core/Collection.d.ts +1 -1
  324. package/core/Error.d.ts +1 -1
  325. package/core/Evented.d.ts +1 -1
  326. package/core/HandleOwner.d.ts +1 -1
  327. package/core/Handles.d.ts +1 -1
  328. package/core/Identifiable.d.ts +1 -1
  329. package/core/JSONSupport.d.ts +1 -1
  330. package/core/Loadable.d.ts +1 -1
  331. package/core/Promise.d.ts +1 -1
  332. package/core/VectorStack.js +1 -1
  333. package/core/accessorSupport/decorators.d.ts +1 -1
  334. package/core/lang.d.ts +1 -1
  335. package/core/libs/gl-matrix-2/factories/quatf64.js +1 -1
  336. package/core/libs/gl-matrix-2/factories/vec3f32.js +1 -1
  337. package/core/libs/gl-matrix-2/factories/vec4f64.js +1 -1
  338. package/core/libs/gl-matrix-2/math/mat3.js +1 -1
  339. package/core/libs/gl-matrix-2/math/quat.js +1 -1
  340. package/core/libs/gl-matrix-2/math/vec3.js +1 -1
  341. package/core/perspectiveUtils.js +1 -1
  342. package/core/promiseUtils.d.ts +1 -1
  343. package/core/quantity.d.ts +1 -1
  344. package/core/reactiveUtils.d.ts +1 -1
  345. package/core/scheduling.d.ts +1 -1
  346. package/core/sql/WhereClause.d.ts +1 -1
  347. package/core/sql.d.ts +1 -1
  348. package/core/units.d.ts +1 -1
  349. package/core/urlUtils.d.ts +1 -1
  350. package/core/watchUtils.d.ts +1 -1
  351. package/core/workers/Connection.d.ts +1 -1
  352. package/core/workers.d.ts +1 -1
  353. package/form/ExpressionInfo.d.ts +1 -1
  354. package/form/FormTemplate.d.ts +1 -1
  355. package/form/elements/Element.d.ts +1 -1
  356. package/form/elements/FieldElement.d.ts +1 -1
  357. package/form/elements/GroupElement.d.ts +1 -1
  358. package/form/elements/inputs/BarcodeScannerInput.d.ts +1 -1
  359. package/form/elements/inputs/ComboBoxInput.d.ts +1 -1
  360. package/form/elements/inputs/DateTimePickerInput.d.ts +1 -1
  361. package/form/elements/inputs/RadioButtonsInput.d.ts +1 -1
  362. package/form/elements/inputs/SwitchInput.d.ts +1 -1
  363. package/form/elements/inputs/TextAreaInput.d.ts +1 -1
  364. package/form/elements/inputs/TextBoxInput.d.ts +1 -1
  365. package/form/elements/inputs/TextInput.d.ts +1 -1
  366. package/form/elements/support/inputs.d.ts +1 -1
  367. package/form/support/elements.d.ts +1 -1
  368. package/geohash/GeohashTree.js +1 -1
  369. package/geometry/Circle.d.ts +1 -1
  370. package/geometry/Extent.d.ts +1 -1
  371. package/geometry/Geometry.d.ts +1 -1
  372. package/geometry/HeightModelInfo.d.ts +1 -1
  373. package/geometry/Mesh.d.ts +1 -1
  374. package/geometry/Multipoint.d.ts +1 -1
  375. package/geometry/Point.d.ts +1 -1
  376. package/geometry/Polygon.d.ts +1 -1
  377. package/geometry/Polyline.d.ts +1 -1
  378. package/geometry/SpatialReference.d.ts +1 -1
  379. package/geometry/coordinateFormatter.d.ts +1 -1
  380. package/geometry/geometryEngine.d.ts +1 -1
  381. package/geometry/geometryEngineAsync.d.ts +1 -1
  382. package/geometry/projection.d.ts +1 -1
  383. package/geometry/support/GeographicTransformation.d.ts +1 -1
  384. package/geometry/support/GeographicTransformationStep.d.ts +1 -1
  385. package/geometry/support/MeshComponent.d.ts +1 -1
  386. package/geometry/support/MeshMaterial.d.ts +1 -1
  387. package/geometry/support/MeshMaterialMetallicRoughness.d.ts +1 -1
  388. package/geometry/support/MeshTexture.d.ts +1 -1
  389. package/geometry/support/MeshTransform.js +1 -1
  390. package/geometry/support/axisAngle.js +1 -1
  391. package/geometry/support/axisAngleDegrees.js +1 -1
  392. package/geometry/support/geodesicUtils.d.ts +1 -1
  393. package/geometry/support/jsonUtils.d.ts +1 -1
  394. package/geometry/support/lineSegment.js +1 -1
  395. package/geometry/support/meshUtils/exporters/gltf/gltf.js +1 -1
  396. package/geometry/support/meshUtils/exporters/gltf/node.js +1 -1
  397. package/geometry/support/meshUtils/georeference.js +1 -1
  398. package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
  399. package/geometry/support/meshUtils/projection.js +1 -1
  400. package/geometry/support/meshUtils/rotate.js +1 -1
  401. package/geometry/support/meshUtils.d.ts +1 -1
  402. package/geometry/support/normalizeUtils.d.ts +1 -1
  403. package/geometry/support/plane.js +1 -1
  404. package/geometry/support/webMercatorUtils.d.ts +1 -1
  405. package/geometry.d.ts +1 -1
  406. package/identity/Credential.d.ts +1 -1
  407. package/identity/IdentityManager.d.ts +1 -1
  408. package/identity/OAuthInfo.d.ts +1 -1
  409. package/identity/ServerInfo.d.ts +1 -1
  410. package/interfaces.d.ts +768 -706
  411. package/intl.d.ts +1 -1
  412. package/kernel.d.ts +1 -1
  413. package/layers/BaseDynamicLayer.d.ts +1 -1
  414. package/layers/BaseElevationLayer.d.ts +1 -1
  415. package/layers/BaseTileLayer.d.ts +1 -1
  416. package/layers/BingMapsLayer.d.ts +1 -1
  417. package/layers/BuildingSceneLayer.d.ts +1 -1
  418. package/layers/CSVLayer.d.ts +1 -1
  419. package/layers/DimensionLayer.d.ts +1 -1
  420. package/layers/ElevationLayer.d.ts +1 -1
  421. package/layers/FeatureLayer.d.ts +1 -1
  422. package/layers/GeoJSONLayer.d.ts +1 -1
  423. package/layers/GeoRSSLayer.d.ts +1 -1
  424. package/layers/GraphicsLayer.d.ts +1 -1
  425. package/layers/GroupLayer.d.ts +1 -1
  426. package/layers/ImageryLayer.d.ts +1 -1
  427. package/layers/ImageryTileLayer.d.ts +1 -1
  428. package/layers/IntegratedMeshLayer.d.ts +1 -1
  429. package/layers/KMLLayer.d.ts +1 -1
  430. package/layers/Layer.d.ts +1 -1
  431. package/layers/LineOfSightLayer.d.ts +1 -1
  432. package/layers/MapImageLayer.d.ts +1 -1
  433. package/layers/MapNotesLayer.d.ts +1 -1
  434. package/layers/MapNotesLayer.js +1 -1
  435. package/layers/MediaLayer.d.ts +1 -1
  436. package/layers/OGCFeatureLayer.d.ts +1 -1
  437. package/layers/OpenStreetMapLayer.d.ts +1 -1
  438. package/layers/PointCloudLayer.d.ts +1 -1
  439. package/layers/RouteLayer.d.ts +1 -1
  440. package/layers/SceneLayer.d.ts +1 -1
  441. package/layers/StreamLayer.d.ts +1 -1
  442. package/layers/SubtypeGroupLayer.d.ts +1 -1
  443. package/layers/TileLayer.d.ts +1 -1
  444. package/layers/UnknownLayer.d.ts +1 -1
  445. package/layers/UnsupportedLayer.d.ts +1 -1
  446. package/layers/VectorTileLayer.d.ts +1 -1
  447. package/layers/VoxelLayer.d.ts +1 -1
  448. package/layers/WCSLayer.d.ts +1 -1
  449. package/layers/WFSLayer.d.ts +1 -1
  450. package/layers/WMSLayer.d.ts +1 -1
  451. package/layers/WMTSLayer.d.ts +1 -1
  452. package/layers/WebTileLayer.d.ts +1 -1
  453. package/layers/buildingSublayers/BuildingComponentSublayer.d.ts +1 -1
  454. package/layers/buildingSublayers/BuildingGroupSublayer.d.ts +1 -1
  455. package/layers/buildingSublayers/BuildingSublayer.d.ts +1 -1
  456. package/layers/graphics/data/SnappingCandidate.js +1 -1
  457. package/layers/mixins/APIKeyMixin.d.ts +1 -1
  458. package/layers/mixins/ArcGISCachedService.d.ts +1 -1
  459. package/layers/mixins/ArcGISImageService.d.ts +1 -1
  460. package/layers/mixins/ArcGISImageService.js +1 -1
  461. package/layers/mixins/ArcGISMapService.d.ts +1 -1
  462. package/layers/mixins/BlendLayer.d.ts +1 -1
  463. package/layers/mixins/CustomParametersMixin.d.ts +1 -1
  464. package/layers/mixins/FeatureEffectLayer.d.ts +1 -1
  465. package/layers/mixins/FeatureLayerBase.d.ts +4 -0
  466. package/layers/mixins/FeatureReductionLayer.d.ts +1 -1
  467. package/layers/mixins/ImageryTileMixin.d.ts +1 -1
  468. package/layers/mixins/ImageryTileMixin.js +1 -1
  469. package/layers/mixins/OrderedLayer.d.ts +1 -1
  470. package/layers/mixins/PortalLayer.d.ts +1 -1
  471. package/layers/mixins/PublishableLayer.d.ts +1 -1
  472. package/layers/mixins/RefreshableLayer.d.ts +1 -1
  473. package/layers/mixins/ScaleRangeLayer.d.ts +1 -1
  474. package/layers/mixins/SceneService.d.ts +1 -1
  475. package/layers/mixins/SublayersOwner.d.ts +1 -1
  476. package/layers/mixins/TemporalLayer.d.ts +1 -1
  477. package/layers/ogc/wfsUtils.d.ts +1 -1
  478. package/layers/pointCloudFilters/PointCloudFilter.d.ts +1 -1
  479. package/layers/pointCloudFilters/PointCloudReturnFilter.d.ts +1 -1
  480. package/layers/pointCloudFilters/PointCloudValueFilter.d.ts +1 -1
  481. package/layers/support/AggregateField.d.ts +1 -1
  482. package/layers/support/BuildingFilter.d.ts +1 -1
  483. package/layers/support/BuildingSummaryStatistics.d.ts +1 -1
  484. package/layers/support/CodedValueDomain.d.ts +1 -1
  485. package/layers/support/ControlPointsGeoreference.d.ts +1 -1
  486. package/layers/support/CornersGeoreference.d.ts +1 -1
  487. package/layers/support/DimensionalDefinition.d.ts +1 -1
  488. package/layers/support/Domain.d.ts +1 -1
  489. package/layers/support/ElevationSampler.d.ts +1 -1
  490. package/layers/support/ExpressionInfo.d.ts +1 -1
  491. package/layers/support/ExtentAndRotationGeoreference.d.ts +1 -1
  492. package/layers/support/FacilityLayerInfo.d.ts +1 -1
  493. package/layers/support/FeatureEffect.d.ts +1 -1
  494. package/layers/support/FeatureFilter.d.ts +1 -1
  495. package/layers/support/FeatureReductionBinning.d.ts +1 -1
  496. package/layers/support/FeatureReductionCluster.d.ts +1 -1
  497. package/layers/support/FeatureReductionSelection.d.ts +1 -1
  498. package/layers/support/FeatureTemplate.d.ts +1 -1
  499. package/layers/support/FeatureType.d.ts +1 -1
  500. package/layers/support/Field.d.ts +1 -1
  501. package/layers/support/FieldsIndex.d.ts +1 -1
  502. package/layers/support/GeometryFieldsInfo.d.ts +1 -1
  503. package/layers/support/ImageElement.d.ts +1 -1
  504. package/layers/support/ImageParameters.d.ts +1 -1
  505. package/layers/support/InheritedDomain.d.ts +1 -1
  506. package/layers/support/KMLSublayer.d.ts +1 -1
  507. package/layers/support/LOD.d.ts +1 -1
  508. package/layers/support/LabelClass.d.ts +1 -1
  509. package/layers/support/LayerFloorInfo.d.ts +1 -1
  510. package/layers/support/LevelLayerInfo.d.ts +1 -1
  511. package/layers/support/LocalMediaElementSource.d.ts +1 -1
  512. package/layers/support/MapImage.d.ts +1 -1
  513. package/layers/support/MediaElementBase.d.ts +1 -1
  514. package/layers/support/MosaicRule.d.ts +1 -1
  515. package/layers/support/MultidimensionalSubset.d.ts +4 -0
  516. package/layers/support/MultidimensionalSubset.js +1 -1
  517. package/layers/support/PixelBlock.d.ts +1 -1
  518. package/layers/support/PublishingInfo.d.ts +1 -1
  519. package/layers/support/RangeDomain.d.ts +1 -1
  520. package/layers/support/RasterFunction.d.ts +1 -1
  521. package/layers/support/RasterInfo.d.ts +1 -1
  522. package/layers/support/Relationship.d.ts +1 -1
  523. package/layers/support/RouteStopSymbols.d.ts +1 -1
  524. package/layers/support/RouteSymbols.d.ts +1 -1
  525. package/layers/support/SceneFilter.d.ts +1 -1
  526. package/layers/support/SceneModification.d.ts +1 -1
  527. package/layers/support/SceneModifications.d.ts +1 -1
  528. package/layers/support/SiteLayerInfo.d.ts +1 -1
  529. package/layers/support/StreamConnection.d.ts +1 -1
  530. package/layers/support/Sublayer.d.ts +1 -1
  531. package/layers/support/SubtypeSublayer.d.ts +1 -1
  532. package/layers/support/TileInfo.d.ts +1 -1
  533. package/layers/support/TileMatrixSet.d.ts +1 -1
  534. package/layers/support/TimeInfo.d.ts +1 -1
  535. package/layers/support/TimeReference.d.ts +1 -1
  536. package/layers/support/VideoElement.d.ts +1 -1
  537. package/layers/support/VoxelVariable.d.ts +1 -1
  538. package/layers/support/VoxelVolumeStyle.d.ts +1 -1
  539. package/layers/support/WMSSublayer.d.ts +1 -1
  540. package/layers/support/WMTSStyle.d.ts +1 -1
  541. package/layers/support/WMTSSublayer.d.ts +1 -1
  542. package/layers/support/arcadeUtils.d.ts +1 -1
  543. package/layers/support/fieldUtils.d.ts +1 -1
  544. package/layers/support/rasterDatasets/BaseRaster.js +1 -1
  545. package/layers/support/rasterDatasets/ImageServerRaster.js +1 -1
  546. package/layers/support/rasterFunctions/vectorFieldUtils.js +1 -1
  547. package/layers/support/wmtsUtils.js +1 -1
  548. package/layers/voxel/VoxelDynamicSection.d.ts +1 -1
  549. package/layers/voxel/VoxelSlice.d.ts +1 -1
  550. package/layers/voxel/VoxelTransferFunctionStyle.d.ts +1 -1
  551. package/layers/voxel/VoxelVariable.d.ts +1 -1
  552. package/layers/voxel/VoxelVariableStyle.d.ts +1 -1
  553. package/layers/voxel/VoxelVolume.d.ts +1 -1
  554. package/layers/voxel/VoxelVolume.js +1 -1
  555. package/layers/voxel/VoxelVolumeStyle.d.ts +1 -1
  556. package/layers/voxel/voxelPlaneUtils.js +1 -1
  557. package/networks/Network.d.ts +1 -1
  558. package/networks/Network.js +1 -1
  559. package/networks/UtilityNetwork.d.ts +1 -1
  560. package/networks/support/NamedTraceConfiguration.d.ts +1 -1
  561. package/networks/support/NetworkSystemLayers.d.ts +1 -1
  562. package/networks/support/Terminal.d.ts +1 -1
  563. package/networks/support/TerminalConfiguration.d.ts +1 -1
  564. package/networks/support/TraceConfiguration.d.ts +1 -1
  565. package/networks/support/UNTraceConfiguration.d.ts +1 -1
  566. package/networks/support/utils.js +1 -1
  567. package/package.json +1 -1
  568. package/pointCloudRenderers.d.ts +1 -1
  569. package/popup/ElementExpressionInfo.d.ts +1 -1
  570. package/popup/ExpressionInfo.d.ts +1 -1
  571. package/popup/FieldInfo.d.ts +1 -1
  572. package/popup/LayerOptions.d.ts +1 -1
  573. package/popup/RelatedRecordsInfo.d.ts +1 -1
  574. package/popup/content/AttachmentsContent.d.ts +1 -1
  575. package/popup/content/BarChartMediaInfo.d.ts +1 -1
  576. package/popup/content/ColumnChartMediaInfo.d.ts +1 -1
  577. package/popup/content/Content.d.ts +1 -1
  578. package/popup/content/CustomContent.d.ts +1 -1
  579. package/popup/content/ExpressionContent.d.ts +1 -1
  580. package/popup/content/FieldsContent.d.ts +1 -1
  581. package/popup/content/ImageMediaInfo.d.ts +1 -1
  582. package/popup/content/LineChartMediaInfo.d.ts +1 -1
  583. package/popup/content/MediaContent.d.ts +1 -1
  584. package/popup/content/PieChartMediaInfo.d.ts +1 -1
  585. package/popup/content/RelationshipContent.d.ts +1 -1
  586. package/popup/content/TextContent.d.ts +1 -1
  587. package/popup/content/mixins/ChartMediaInfo.d.ts +1 -1
  588. package/popup/content/mixins/MediaInfo.d.ts +1 -1
  589. package/popup/content/support/ChartMediaInfoValue.d.ts +1 -1
  590. package/popup/content/support/ChartMediaInfoValueSeries.d.ts +1 -1
  591. package/popup/content/support/ImageMediaInfoValue.d.ts +1 -1
  592. package/popup/content.d.ts +1 -1
  593. package/popup/support/FieldInfoFormat.d.ts +1 -1
  594. package/popup/support/RelatedRecordsInfoFieldOrder.d.ts +1 -1
  595. package/portal/Portal.d.ts +1 -1
  596. package/portal/PortalFolder.d.ts +1 -1
  597. package/portal/PortalGroup.d.ts +1 -1
  598. package/portal/PortalItem.d.ts +1 -1
  599. package/portal/PortalItemResource.d.ts +1 -1
  600. package/portal/PortalQueryParams.d.ts +1 -1
  601. package/portal/PortalQueryResult.d.ts +1 -1
  602. package/portal/PortalRating.d.ts +1 -1
  603. package/portal/PortalUser.d.ts +1 -1
  604. package/portal/schemas/definitions.js +1 -1
  605. package/rasterRenderers.d.ts +1 -1
  606. package/renderers/ClassBreaksRenderer.d.ts +1 -1
  607. package/renderers/DictionaryRenderer.d.ts +1 -1
  608. package/renderers/DotDensityRenderer.d.ts +1 -1
  609. package/renderers/FlowRenderer.d.ts +1 -1
  610. package/renderers/HeatmapRenderer.d.ts +1 -1
  611. package/renderers/PieChartRenderer.d.ts +1 -1
  612. package/renderers/PointCloudClassBreaksRenderer.d.ts +1 -1
  613. package/renderers/PointCloudRGBRenderer.d.ts +1 -1
  614. package/renderers/PointCloudRenderer.d.ts +1 -1
  615. package/renderers/PointCloudStretchRenderer.d.ts +1 -1
  616. package/renderers/PointCloudUniqueValueRenderer.d.ts +1 -1
  617. package/renderers/RasterColormapRenderer.d.ts +1 -1
  618. package/renderers/RasterShadedReliefRenderer.d.ts +1 -1
  619. package/renderers/RasterStretchRenderer.d.ts +1 -1
  620. package/renderers/Renderer.d.ts +1 -1
  621. package/renderers/SimpleRenderer.d.ts +1 -1
  622. package/renderers/UniqueValueRenderer.d.ts +1 -1
  623. package/renderers/UniqueValueRenderer.js +1 -1
  624. package/renderers/VectorFieldRenderer.d.ts +1 -1
  625. package/renderers/mixins/VisualVariablesMixin.d.ts +1 -1
  626. package/renderers/support/AttributeColorInfo.d.ts +1 -1
  627. package/renderers/support/AuthoringInfo.d.ts +1 -1
  628. package/renderers/support/AuthoringInfoVisualVariable.d.ts +1 -1
  629. package/renderers/support/ClassBreakInfo.d.ts +1 -1
  630. package/renderers/support/ColormapInfo.d.ts +1 -1
  631. package/renderers/support/HeatmapColorStop.d.ts +1 -1
  632. package/renderers/support/UniqueValue.d.ts +1 -1
  633. package/renderers/support/UniqueValueClass.d.ts +1 -1
  634. package/renderers/support/UniqueValueClass.js +1 -1
  635. package/renderers/support/UniqueValueGroup.d.ts +1 -1
  636. package/renderers/support/UniqueValueInfo.d.ts +1 -1
  637. package/renderers/support/jsonUtils.d.ts +1 -1
  638. package/renderers/visualVariables/ColorVariable.d.ts +1 -1
  639. package/renderers/visualVariables/OpacityVariable.d.ts +1 -1
  640. package/renderers/visualVariables/RotationVariable.d.ts +1 -1
  641. package/renderers/visualVariables/SizeVariable.d.ts +1 -1
  642. package/renderers/visualVariables/VisualVariable.d.ts +1 -1
  643. package/renderers/visualVariables/support/ColorSizeStop.d.ts +1 -1
  644. package/renderers/visualVariables/support/ColorStop.d.ts +1 -1
  645. package/renderers/visualVariables/support/OpacityStop.d.ts +1 -1
  646. package/renderers/visualVariables/support/SizeStop.d.ts +1 -1
  647. package/renderers.d.ts +1 -1
  648. package/request.d.ts +1 -1
  649. package/rest/closestFacility.d.ts +1 -1
  650. package/rest/find.d.ts +1 -1
  651. package/rest/geometryService.d.ts +1 -1
  652. package/rest/geoprocessor/GPOptions.d.ts +1 -1
  653. package/rest/geoprocessor.d.ts +1 -1
  654. package/rest/identify.d.ts +1 -1
  655. package/rest/imageService.d.ts +1 -1
  656. package/rest/knowledgeGraph/DataModel.d.ts +1 -1
  657. package/rest/knowledgeGraph/Entity.d.ts +1 -1
  658. package/rest/knowledgeGraph/EntityType.d.ts +1 -1
  659. package/rest/knowledgeGraph/FieldIndex.d.ts +1 -1
  660. package/rest/knowledgeGraph/GraphApplyEdits.d.ts +1 -1
  661. package/rest/knowledgeGraph/GraphApplyEditsResult.d.ts +1 -1
  662. package/rest/knowledgeGraph/GraphNamedObject.d.ts +1 -1
  663. package/rest/knowledgeGraph/GraphObject.d.ts +1 -1
  664. package/rest/knowledgeGraph/GraphObjectType.d.ts +1 -1
  665. package/rest/knowledgeGraph/GraphProperty.d.ts +1 -1
  666. package/rest/knowledgeGraph/GraphQuery.d.ts +1 -1
  667. package/rest/knowledgeGraph/GraphQueryResult.d.ts +1 -1
  668. package/rest/knowledgeGraph/GraphQueryStreaming.d.ts +1 -1
  669. package/rest/knowledgeGraph/GraphQueryStreamingResult.d.ts +1 -1
  670. package/rest/knowledgeGraph/GraphSearch.d.ts +1 -1
  671. package/rest/knowledgeGraph/GraphSearchStreaming.d.ts +1 -1
  672. package/rest/knowledgeGraph/InputQuantizationParameters.d.ts +1 -1
  673. package/rest/knowledgeGraph/KnowledgeGraph.d.ts +1 -1
  674. package/rest/knowledgeGraph/OutputQuantizationParameters.d.ts +1 -1
  675. package/rest/knowledgeGraph/Path.d.ts +1 -1
  676. package/rest/knowledgeGraph/Relationship.d.ts +1 -1
  677. package/rest/knowledgeGraph/RelationshipType.d.ts +1 -1
  678. package/rest/knowledgeGraphService.d.ts +1 -1
  679. package/rest/locator.d.ts +1 -1
  680. package/rest/networkService.d.ts +1 -1
  681. package/rest/networks/support/AggregatedGeometry.d.ts +1 -1
  682. package/rest/networks/support/Association.d.ts +1 -1
  683. package/rest/networks/support/AssociationGeometriesResult.d.ts +1 -1
  684. package/rest/networks/support/FunctionResult.d.ts +1 -1
  685. package/rest/networks/support/NetworkElement.d.ts +1 -1
  686. package/rest/networks/support/SynthesizeAssociationGeometriesParameters.d.ts +1 -1
  687. package/rest/networks/support/TraceLocation.d.ts +1 -1
  688. package/rest/networks/support/TraceParameters.d.ts +1 -1
  689. package/rest/networks/support/TraceResult.d.ts +1 -1
  690. package/rest/networks/synthesizeAssociationGeometries.d.ts +1 -1
  691. package/rest/networks/trace.d.ts +1 -1
  692. package/rest/print.d.ts +1 -1
  693. package/rest/print.js +1 -1
  694. package/rest/query/support/AttachmentInfo.d.ts +1 -1
  695. package/rest/query.d.ts +1 -1
  696. package/rest/route.d.ts +1 -1
  697. package/rest/serviceArea.d.ts +1 -1
  698. package/rest/support/AddressCandidate.d.ts +1 -1
  699. package/rest/support/AlgorithmicColorRamp.d.ts +1 -1
  700. package/rest/support/AreasAndLengthsParameters.d.ts +1 -1
  701. package/rest/support/AttachmentQuery.d.ts +1 -1
  702. package/rest/support/BufferParameters.d.ts +1 -1
  703. package/rest/support/ClosestFacilityParameters.d.ts +1 -1
  704. package/rest/support/ClosestFacilitySolveResult.d.ts +1 -1
  705. package/rest/support/ColorRamp.d.ts +1 -1
  706. package/rest/support/DataFile.d.ts +1 -1
  707. package/rest/support/DataLayer.d.ts +1 -1
  708. package/rest/support/DensifyParameters.d.ts +1 -1
  709. package/rest/support/DirectionLine.d.ts +1 -1
  710. package/rest/support/DirectionLine.js +1 -1
  711. package/rest/support/DirectionPoint.d.ts +1 -1
  712. package/rest/support/DirectionPoint.js +1 -1
  713. package/rest/support/DirectionsEvent.d.ts +1 -1
  714. package/rest/support/DirectionsFeature.d.ts +1 -1
  715. package/rest/support/DirectionsFeatureSet.d.ts +1 -1
  716. package/rest/support/DistanceParameters.d.ts +1 -1
  717. package/rest/support/FeatureSet.d.ts +1 -1
  718. package/rest/support/FindParameters.d.ts +1 -1
  719. package/rest/support/FindResult.d.ts +1 -1
  720. package/rest/support/GPMessage.d.ts +1 -1
  721. package/rest/support/GeneralizeParameters.d.ts +1 -1
  722. package/rest/support/IdentifyParameters.d.ts +1 -1
  723. package/rest/support/IdentifyResult.d.ts +1 -1
  724. package/rest/support/ImageAngleParameters.d.ts +1 -1
  725. package/rest/support/ImageAngleResult.d.ts +1 -1
  726. package/rest/support/ImageHistogramParameters.d.ts +1 -1
  727. package/rest/support/ImageIdentifyParameters.d.ts +1 -1
  728. package/rest/support/ImageIdentifyResult.d.ts +1 -1
  729. package/rest/support/ImageParameters.d.ts +1 -1
  730. package/rest/support/ImagePixelLocationParameters.d.ts +1 -1
  731. package/rest/support/ImagePixelLocationResult.d.ts +1 -1
  732. package/rest/support/ImageSample.d.ts +1 -1
  733. package/rest/support/ImageSampleParameters.d.ts +1 -1
  734. package/rest/support/ImageSampleResult.d.ts +1 -1
  735. package/rest/support/JobInfo.d.ts +1 -1
  736. package/rest/support/LegendLayer.d.ts +1 -1
  737. package/rest/support/LengthsParameters.d.ts +1 -1
  738. package/rest/support/LinearUnit.d.ts +1 -1
  739. package/rest/support/MultipartColorRamp.d.ts +1 -1
  740. package/rest/support/NAMessage.d.ts +1 -1
  741. package/rest/support/NetworkFeatureSet.d.ts +1 -1
  742. package/rest/support/NetworkUrl.d.ts +1 -1
  743. package/rest/support/OffsetParameters.d.ts +1 -1
  744. package/rest/support/ParameterValue.d.ts +1 -1
  745. package/rest/support/PointBarrier.d.ts +1 -1
  746. package/rest/support/PointBarrier.js +1 -1
  747. package/rest/support/PolygonBarrier.d.ts +1 -1
  748. package/rest/support/PolygonBarrier.js +1 -1
  749. package/rest/support/PolylineBarrier.d.ts +1 -1
  750. package/rest/support/PolylineBarrier.js +1 -1
  751. package/rest/support/PrintParameters.d.ts +1 -1
  752. package/rest/support/PrintTemplate.d.ts +1 -1
  753. package/rest/support/ProjectParameters.d.ts +1 -1
  754. package/rest/support/Query.d.ts +1 -1
  755. package/rest/support/RasterData.d.ts +1 -1
  756. package/rest/support/RelationParameters.d.ts +1 -1
  757. package/rest/support/RelationshipQuery.d.ts +1 -1
  758. package/rest/support/RouteInfo.d.ts +1 -1
  759. package/rest/support/RouteInfo.js +1 -1
  760. package/rest/support/RouteParameters.d.ts +1 -1
  761. package/rest/support/RouteResult.d.ts +1 -1
  762. package/rest/support/RouteSolveResult.d.ts +1 -1
  763. package/rest/support/ServiceAreaParameters.d.ts +1 -1
  764. package/rest/support/ServiceAreaSolveResult.d.ts +1 -1
  765. package/rest/support/StatisticDefinition.d.ts +1 -1
  766. package/rest/support/Stop.d.ts +1 -1
  767. package/rest/support/Stop.js +1 -1
  768. package/rest/support/TopFeaturesQuery.d.ts +1 -1
  769. package/rest/support/TopFilter.d.ts +1 -1
  770. package/rest/support/TravelMode.d.ts +1 -1
  771. package/rest/support/TrimExtendParameters.d.ts +1 -1
  772. package/rest/symbolService.d.ts +1 -1
  773. package/smartMapping/heuristics/outline.js +1 -1
  774. package/smartMapping/heuristics/scaleRange.d.ts +1 -1
  775. package/smartMapping/heuristics/scaleRange.js +1 -1
  776. package/smartMapping/heuristics/sizeRange.d.ts +1 -1
  777. package/smartMapping/heuristics/sizeRange.js +1 -1
  778. package/smartMapping/labels/clusters.d.ts +1 -1
  779. package/smartMapping/popup/clusters.d.ts +1 -1
  780. package/smartMapping/popup/templates.d.ts +1 -1
  781. package/smartMapping/raster/renderers/classBreaks.d.ts +1 -1
  782. package/smartMapping/raster/renderers/colormap.d.ts +1 -1
  783. package/smartMapping/raster/renderers/flow.d.ts +1 -1
  784. package/smartMapping/raster/renderers/rgb.d.ts +1 -1
  785. package/smartMapping/raster/renderers/shadedRelief.d.ts +1 -1
  786. package/smartMapping/raster/renderers/stretch.d.ts +1 -1
  787. package/smartMapping/raster/renderers/uniqueValue.d.ts +1 -1
  788. package/smartMapping/raster/renderers/vectorField.d.ts +1 -1
  789. package/smartMapping/raster/support/utils.d.ts +1 -1
  790. package/smartMapping/renderers/color.d.ts +1 -1
  791. package/smartMapping/renderers/color.js +1 -1
  792. package/smartMapping/renderers/dotDensity.d.ts +1 -1
  793. package/smartMapping/renderers/dotDensity.js +1 -1
  794. package/smartMapping/renderers/heatmap.d.ts +1 -1
  795. package/smartMapping/renderers/location.d.ts +1 -1
  796. package/smartMapping/renderers/location.js +1 -1
  797. package/smartMapping/renderers/opacity.d.ts +1 -1
  798. package/smartMapping/renderers/opacity.js +1 -1
  799. package/smartMapping/renderers/pieChart.d.ts +1 -1
  800. package/smartMapping/renderers/pieChart.js +1 -1
  801. package/smartMapping/renderers/predominance.d.ts +1 -1
  802. package/smartMapping/renderers/predominance.js +1 -1
  803. package/smartMapping/renderers/relationship.d.ts +1 -1
  804. package/smartMapping/renderers/relationship.js +1 -1
  805. package/smartMapping/renderers/size.d.ts +1 -1
  806. package/smartMapping/renderers/size.js +1 -1
  807. package/smartMapping/renderers/support/utils.js +1 -1
  808. package/smartMapping/renderers/type.d.ts +1 -1
  809. package/smartMapping/renderers/type.js +1 -1
  810. package/smartMapping/renderers/univariateColorSize.d.ts +1 -1
  811. package/smartMapping/renderers/univariateColorSize.js +1 -1
  812. package/smartMapping/statistics/classBreaks.d.ts +1 -1
  813. package/smartMapping/statistics/classBreaks.js +1 -1
  814. package/smartMapping/statistics/heatmapStatistics.d.ts +1 -1
  815. package/smartMapping/statistics/histogram.d.ts +1 -1
  816. package/smartMapping/statistics/histogram.js +1 -1
  817. package/smartMapping/statistics/predominantCategories.d.ts +1 -1
  818. package/smartMapping/statistics/predominantCategories.js +1 -1
  819. package/smartMapping/statistics/summaryStatistics.d.ts +1 -1
  820. package/smartMapping/statistics/summaryStatistics.js +1 -1
  821. package/smartMapping/statistics/summaryStatisticsForAge.d.ts +1 -1
  822. package/smartMapping/statistics/summaryStatisticsForAttributes.js +1 -1
  823. package/smartMapping/statistics/support/ageUtils.d.ts +1 -1
  824. package/smartMapping/statistics/support/predominanceUtils.d.ts +1 -1
  825. package/smartMapping/statistics/uniqueValues.d.ts +1 -1
  826. package/smartMapping/statistics/uniqueValues.js +1 -1
  827. package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
  828. package/smartMapping/support/adapters/FeatureLayerBinningAdapter.js +5 -0
  829. package/smartMapping/support/adapters/SceneLayerAdapter.js +1 -1
  830. package/smartMapping/support/adapters/support/layerUtils.js +1 -1
  831. package/smartMapping/support/adapters/support/utils.js +1 -1
  832. package/smartMapping/support/binningUtils.js +1 -1
  833. package/smartMapping/symbology/color.d.ts +1 -1
  834. package/smartMapping/symbology/dotDensity.d.ts +1 -1
  835. package/smartMapping/symbology/flow.d.ts +1 -1
  836. package/smartMapping/symbology/heatmap.d.ts +1 -1
  837. package/smartMapping/symbology/location.d.ts +1 -1
  838. package/smartMapping/symbology/pieChart.d.ts +1 -1
  839. package/smartMapping/symbology/predominance.d.ts +1 -1
  840. package/smartMapping/symbology/relationship.d.ts +1 -1
  841. package/smartMapping/symbology/size.d.ts +1 -1
  842. package/smartMapping/symbology/support/colorRamps.d.ts +1 -1
  843. package/smartMapping/symbology/type.d.ts +1 -1
  844. package/support/LayersMixin.d.ts +1 -1
  845. package/support/MapFloorInfo.d.ts +1 -1
  846. package/support/TablesMixin.d.ts +1 -1
  847. package/support/actions/ActionBase.d.ts +1 -1
  848. package/support/actions/ActionButton.d.ts +1 -1
  849. package/support/actions/ActionToggle.d.ts +1 -1
  850. package/support/popupUtils.d.ts +1 -1
  851. package/support/revision.js +1 -1
  852. package/support/timeUtils.d.ts +1 -1
  853. package/symbols/CIMSymbol.d.ts +1 -1
  854. package/symbols/ExtrudeSymbol3DLayer.d.ts +1 -1
  855. package/symbols/FillSymbol.d.ts +1 -1
  856. package/symbols/FillSymbol3DLayer.d.ts +1 -1
  857. package/symbols/Font.d.ts +1 -1
  858. package/symbols/IconSymbol3DLayer.d.ts +1 -1
  859. package/symbols/LabelSymbol3D.d.ts +1 -1
  860. package/symbols/LineStyleMarker3D.d.ts +1 -1
  861. package/symbols/LineSymbol.d.ts +1 -1
  862. package/symbols/LineSymbol3D.d.ts +1 -1
  863. package/symbols/LineSymbol3DLayer.d.ts +1 -1
  864. package/symbols/LineSymbolMarker.d.ts +1 -1
  865. package/symbols/MarkerSymbol.d.ts +1 -1
  866. package/symbols/MeshSymbol3D.d.ts +1 -1
  867. package/symbols/ObjectSymbol3DLayer.d.ts +1 -1
  868. package/symbols/PathSymbol3DLayer.d.ts +1 -1
  869. package/symbols/PictureFillSymbol.d.ts +1 -1
  870. package/symbols/PictureMarkerSymbol.d.ts +1 -1
  871. package/symbols/PointSymbol3D.d.ts +1 -1
  872. package/symbols/PolygonSymbol3D.d.ts +1 -1
  873. package/symbols/SimpleFillSymbol.d.ts +1 -1
  874. package/symbols/SimpleLineSymbol.d.ts +1 -1
  875. package/symbols/SimpleMarkerSymbol.d.ts +1 -1
  876. package/symbols/Symbol.d.ts +1 -1
  877. package/symbols/Symbol3D.d.ts +1 -1
  878. package/symbols/Symbol3DLayer.d.ts +1 -1
  879. package/symbols/TextSymbol.d.ts +1 -1
  880. package/symbols/TextSymbol3DLayer.d.ts +1 -1
  881. package/symbols/WaterSymbol3DLayer.d.ts +1 -1
  882. package/symbols/WebStyleSymbol.d.ts +1 -1
  883. package/symbols/callouts/Callout3D.d.ts +1 -1
  884. package/symbols/callouts/LineCallout3D.d.ts +1 -1
  885. package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
  886. package/symbols/edges/Edges3D.d.ts +1 -1
  887. package/symbols/edges/SketchEdges3D.d.ts +1 -1
  888. package/symbols/edges/SolidEdges3D.d.ts +1 -1
  889. package/symbols/patterns/LineStylePattern3D.d.ts +1 -1
  890. package/symbols/patterns/StylePattern3D.d.ts +1 -1
  891. package/symbols/support/StyleOrigin.d.ts +1 -1
  892. package/symbols/support/Symbol3DVerticalOffset.d.ts +1 -1
  893. package/symbols/support/cimSymbolUtils.d.ts +1 -1
  894. package/symbols/support/jsonUtils.d.ts +1 -1
  895. package/symbols/support/previewCIMSymbol.js +1 -1
  896. package/symbols/support/previewSymbol2D.js +1 -1
  897. package/symbols/support/symbolUtils.d.ts +1 -1
  898. package/symbols/support/symbolUtils.js +1 -1
  899. package/symbols.d.ts +1 -1
  900. package/views/2d/LabelManager.js +1 -1
  901. package/views/2d/ViewState.d.ts +1 -1
  902. package/views/2d/ViewState.js +1 -1
  903. package/views/2d/engine/flow/FlowDisplayObject.js +1 -1
  904. package/views/2d/engine/imagery/RasterVFTile.js +1 -1
  905. package/views/2d/engine/vectorTiles/TileHandler.js +1 -1
  906. package/views/2d/engine/vectorTiles/VectorTile.js +1 -1
  907. package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
  908. package/views/2d/engine/webgl/OverlayContainer.js +1 -1
  909. package/views/2d/engine/webgl/Painter.js +1 -1
  910. package/views/2d/engine/webgl/TextureUploadManager.js +1 -1
  911. package/views/2d/engine/webgl/TiledDisplayObject.js +1 -1
  912. package/views/2d/engine/webgl/WGLTile.js +1 -1
  913. package/views/2d/engine/webgl/WorldExtentClipRenderer.js +1 -1
  914. package/views/2d/engine/webgl/collisions/CollisionEngine.js +1 -1
  915. package/views/2d/layers/BaseLayerView2D.d.ts +1 -1
  916. package/views/2d/layers/BaseLayerViewGL2D.d.ts +1 -1
  917. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  918. package/views/2d/layers/features/controllers/FeatureController2D.js +1 -1
  919. package/views/2d/layers/graphics/GraphicBoundsRenderer.js +1 -1
  920. package/views/2d/layers/support/DebugOverlay.js +1 -1
  921. package/views/2d/layers/support/FeatureLayerProxy.js +1 -1
  922. package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
  923. package/views/3d/analysis/AreaMeasurementAnalysisView3D.d.ts +1 -1
  924. package/views/3d/analysis/Dimension/DimensionTool.js +1 -1
  925. package/views/3d/analysis/Dimension/DimensionVisualization.js +1 -1
  926. package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
  927. package/views/3d/analysis/Dimension/lengthDimensionConstraintUtils.js +1 -1
  928. package/views/3d/analysis/Dimension/lengthDimensionManipulatorUtils.js +1 -1
  929. package/views/3d/analysis/Dimension/lengthDimensionUtils.js +1 -1
  930. package/views/3d/analysis/Dimension/settings.js +1 -1
  931. package/views/3d/analysis/DirectLineMeasurementAnalysisView3D.d.ts +1 -1
  932. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  933. package/views/3d/analysis/LineOfSightAnalysisResult.d.ts +1 -1
  934. package/views/3d/analysis/LineOfSightAnalysisView3D.d.ts +1 -1
  935. package/views/3d/analysis/Slice/SliceTool.js +1 -1
  936. package/views/3d/analysis/Slice/SliceVisualization.js +1 -1
  937. package/views/3d/analysis/Slice/sliceToolConfig.js +1 -1
  938. package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
  939. package/views/3d/analysis/SliceAnalysisView3D.d.ts +1 -1
  940. package/views/3d/camera/constraintUtils/distance.js +1 -1
  941. package/views/3d/camera/constraintUtils/tilt.js +1 -1
  942. package/views/3d/environment/ChapmanAtmosphere.js +1 -1
  943. package/views/3d/environment/CloudsCompositionParameters.js +1 -1
  944. package/views/3d/environment/CloudyWeather.d.ts +1 -1
  945. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  946. package/views/3d/environment/FoggyWeather.d.ts +1 -1
  947. package/views/3d/environment/RainyWeather.d.ts +1 -1
  948. package/views/3d/environment/SceneViewEnvironmentManager.js +1 -1
  949. package/views/3d/environment/SimpleAtmosphere.js +1 -1
  950. package/views/3d/environment/SnowyWeather.d.ts +1 -1
  951. package/views/3d/environment/SunLighting.d.ts +1 -1
  952. package/views/3d/environment/SunnyWeather.d.ts +1 -1
  953. package/views/3d/environment/VirtualLighting.d.ts +1 -1
  954. package/views/3d/externalRenderers.d.ts +1 -1
  955. package/views/3d/glTF/internal/Resource.js +1 -1
  956. package/views/3d/interactive/Manipulator3D.js +1 -1
  957. package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
  958. package/views/3d/interactive/editingTools/reshapeGraphic/ReshapeOperation.js +1 -1
  959. package/views/3d/interactive/editingTools/reshapeGraphic/edgeOffsetUtils.js +1 -1
  960. package/views/3d/interactive/editingTools/settings.js +1 -1
  961. package/views/3d/interactive/editingTools/transformGraphic/ExtentTransformTool.js +1 -1
  962. package/views/3d/interactive/editingTools/transformGraphic/GraphicScaleRotateTransform.js +1 -1
  963. package/views/3d/interactive/manipulatorUtils.js +1 -1
  964. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  965. package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
  966. package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
  967. package/views/3d/layers/I3SMeshView3D.js +1 -1
  968. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  969. package/views/3d/layers/PointCloudWorker.js +1 -1
  970. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  971. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  972. package/views/3d/layers/graphics/Graphics3DLodInstanceGraphicLayer.js +1 -1
  973. package/views/3d/layers/graphics/Graphics3DObject3DGraphicLayer.js +1 -1
  974. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  975. package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
  976. package/views/3d/layers/graphics/elevationAlignPointsInFeatures.js +1 -1
  977. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  978. package/views/3d/layers/i3s/I3SElevationProvider.js +1 -1
  979. package/views/3d/layers/i3s/I3SIndex.js +1 -1
  980. package/views/3d/layers/i3s/I3SMeshViewFilter.js +1 -1
  981. package/views/3d/layers/i3s/I3SUtil.js +1 -1
  982. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  983. package/views/3d/layers/i3s/PointRenderer.js +1 -1
  984. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  985. package/views/3d/layers/support/I3STreeDebugger.js +1 -1
  986. package/views/3d/layers/support/edgeUtils.js +1 -1
  987. package/views/3d/layers/support/uvUtils.js +1 -1
  988. package/views/3d/state/Frustum.js +1 -1
  989. package/views/3d/state/ViewStateManager.js +1 -1
  990. package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
  991. package/views/3d/state/controllers/RotateController.js +1 -1
  992. package/views/3d/state/controllers/global/PinchAndPanController.js +1 -1
  993. package/views/3d/state/controllers/local/PinchAndPanController.js +1 -1
  994. package/views/3d/state/controllers/local/ZoomController.js +1 -1
  995. package/views/3d/state/controllers/momentum/ZoomPlanarMomentumController.js +1 -1
  996. package/views/3d/state/utils/navigationUtils.js +1 -1
  997. package/views/3d/support/FrustumExtentIntersection.js +1 -1
  998. package/views/3d/support/LayerPerformanceInfo.d.ts +1 -1
  999. package/views/3d/support/SceneViewPerformanceInfo.d.ts +1 -1
  1000. package/views/3d/support/orientedBoundingBox.js +1 -1
  1001. package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
  1002. package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
  1003. package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
  1004. package/views/3d/support/sunUtils.js +1 -1
  1005. package/views/3d/terrain/PatchRenderData.js +1 -1
  1006. package/views/3d/terrain/TerrainSurface.js +1 -1
  1007. package/views/3d/terrain/Tile.js +1 -1
  1008. package/views/3d/terrain/TileRenderer.js +1 -1
  1009. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  1010. package/views/3d/webgl-engine/collections/Component/DepthRange.js +1 -1
  1011. package/views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js +1 -1
  1012. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js +2 -2
  1013. package/views/3d/webgl-engine/core/shaderLibrary/output/OutputDepth.glsl.js +1 -1
  1014. package/views/3d/webgl-engine/core/shaderLibrary/shading/MarkerSizing.glsl.js +22 -0
  1015. package/views/3d/webgl-engine/core/util/TwoVectorPosition.js +1 -1
  1016. package/views/3d/webgl-engine/lib/Camera.js +1 -1
  1017. package/views/3d/webgl-engine/lib/GeometryRecord.js +1 -1
  1018. package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
  1019. package/views/3d/webgl-engine/lib/GridLocalOriginFactory.js +1 -1
  1020. package/views/3d/webgl-engine/lib/Intersector.js +1 -1
  1021. package/views/3d/webgl-engine/lib/Object3D.js +1 -1
  1022. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  1023. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  1024. package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
  1025. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  1026. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  1027. package/views/3d/webgl-engine/lib/edgeRendering/edgePreprocessing.js +1 -1
  1028. package/views/3d/webgl-engine/lib/lodRendering/InstanceOctree.js +1 -1
  1029. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  1030. package/views/3d/webgl-engine/lib/pathGeometryUtils.js +1 -1
  1031. package/views/3d/webgl-engine/lib/verticalOffsetUtils.js +1 -1
  1032. package/views/3d/webgl-engine/lighting/SphericalHarmonics.js +1 -1
  1033. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  1034. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  1035. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  1036. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  1037. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  1038. package/views/3d/webgl-engine/parts/Model.js +1 -1
  1039. package/views/3d/webgl-engine/shaders/LineMarker.glsl.js +1 -1
  1040. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  1041. package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
  1042. package/views/BasemapView.d.ts +1 -1
  1043. package/views/BreakpointsOwner.d.ts +1 -1
  1044. package/views/DOMContainer.d.ts +1 -1
  1045. package/views/GroundView.d.ts +1 -1
  1046. package/views/Magnifier.d.ts +1 -1
  1047. package/views/MapView.d.ts +1 -1
  1048. package/views/MapView.js +1 -1
  1049. package/views/SceneView.d.ts +1 -1
  1050. package/views/ToolViewManager.js +1 -1
  1051. package/views/View.d.ts +1 -1
  1052. package/views/ViewAnimation.d.ts +1 -1
  1053. package/views/analysis/DimensionAnalysisView.d.ts +1 -1
  1054. package/views/analysis/LengthDimensionResult.d.ts +1 -1
  1055. package/views/draw/Draw.d.ts +1 -1
  1056. package/views/draw/Draw.js +1 -1
  1057. package/views/draw/DrawAction.d.ts +1 -1
  1058. package/views/draw/DrawGraphicTool.js +1 -1
  1059. package/views/draw/DrawOperation.js +1 -1
  1060. package/views/draw/MultipointDrawAction.d.ts +1 -1
  1061. package/views/draw/MultipointDrawAction.js +1 -1
  1062. package/views/draw/PointDrawAction.d.ts +1 -1
  1063. package/views/draw/PolygonDrawAction.d.ts +1 -1
  1064. package/views/draw/PolylineDrawAction.d.ts +1 -1
  1065. package/views/draw/SegmentDrawAction.d.ts +1 -1
  1066. package/views/draw/drawSurfaces.js +1 -1
  1067. package/views/draw/support/surfaceCoordinateSystems.js +1 -1
  1068. package/views/input/Input.d.ts +1 -1
  1069. package/views/input/gamepad/GamepadInputDevice.d.ts +1 -1
  1070. package/views/input/gamepad/GamepadSettings.d.ts +1 -1
  1071. package/views/interactive/coordinateHelper.js +1 -1
  1072. package/views/interactive/dragEventPipeline.js +1 -1
  1073. package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
  1074. package/views/interactive/editGeometry/support/editPlaneUtils.js +1 -1
  1075. package/views/interactive/sketch/SketchLabelOptions.d.ts +1 -1
  1076. package/views/interactive/sketch/SketchTooltipOptions.d.ts +1 -1
  1077. package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
  1078. package/views/interactive/snapping/FeatureSnappingLayerSource.d.ts +1 -1
  1079. package/views/interactive/snapping/RightAngleSnapper.js +1 -1
  1080. package/views/interactive/snapping/SnappingConstraint.js +1 -1
  1081. package/views/interactive/snapping/SnappingDragPipelineStep.js +1 -1
  1082. package/views/interactive/snapping/SnappingOperation.js +1 -1
  1083. package/views/interactive/snapping/SnappingOptions.d.ts +1 -1
  1084. package/views/interactive/snapping/candidates/DrapedEdgeSnappingCandidate.js +5 -0
  1085. package/views/interactive/snapping/featureSources/FeatureCollectionSnappingSource.js +1 -1
  1086. package/views/interactive/snapping/featureSources/FeatureServiceSnappingSource.js +1 -1
  1087. package/views/interactive/snapping/featureSources/GraphicsSnappingSource.js +1 -1
  1088. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorkerHandle.js +1 -1
  1089. package/views/interactive/snapping/featureSources/queryEngineUtils.js +1 -1
  1090. package/views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorker.js +1 -1
  1091. package/views/interactive/snapping/featureSources/snappingCandidateElevationAlignment.js +1 -1
  1092. package/views/interactive/snapping/featureSources/snappingCandidateElevationFilter.js +1 -1
  1093. package/views/interactive/snapping/snappingUtils.js +1 -1
  1094. package/views/interactive/tooltip/DrawTooltipInfos.js +1 -1
  1095. package/views/interactive/tooltip/content/TooltipContentDrawPolygon.js +1 -1
  1096. package/views/interactive/tooltip/content/TooltipContentDrawPolyline.js +1 -1
  1097. package/views/layers/BuildingComponentSublayerView.d.ts +1 -1
  1098. package/views/layers/BuildingSceneLayerView.d.ts +1 -1
  1099. package/views/layers/CSVLayerView.d.ts +1 -1
  1100. package/views/layers/DimensionLayerView.d.ts +1 -1
  1101. package/views/layers/FeatureLayerView.d.ts +1 -1
  1102. package/views/layers/GeoJSONLayerView.d.ts +1 -1
  1103. package/views/layers/GeoRSSLayerView.d.ts +1 -1
  1104. package/views/layers/GraphicsLayerView.d.ts +1 -1
  1105. package/views/layers/ImageryLayerView.d.ts +1 -1
  1106. package/views/layers/KMLLayerView.d.ts +1 -1
  1107. package/views/layers/LayerView.d.ts +1 -1
  1108. package/views/layers/OGCFeatureLayerView.d.ts +1 -1
  1109. package/views/layers/PointCloudLayerView.d.ts +1 -1
  1110. package/views/layers/SceneLayerView.d.ts +1 -1
  1111. package/views/layers/StreamLayerView.d.ts +1 -1
  1112. package/views/layers/WFSLayerView.d.ts +1 -1
  1113. package/views/navigation/Navigation.d.ts +1 -1
  1114. package/views/navigation/PanSphericalMomentumEstimator.js +1 -1
  1115. package/views/navigation/gamepad/GamepadSettings.d.ts +1 -1
  1116. package/views/support/Scheduler.js +1 -1
  1117. package/views/support/colorUtils.d.ts +1 -1
  1118. package/views/support/euclideanAreaMeasurementUtils.js +1 -1
  1119. package/views/support/geometry3dUtils.js +1 -1
  1120. package/views/ui/DefaultUI.d.ts +1 -1
  1121. package/views/ui/UI.d.ts +1 -1
  1122. package/webdoc/GeotriggersInfo.d.ts +1 -1
  1123. package/webdoc/applicationProperties/Search.d.ts +1 -1
  1124. package/webdoc/applicationProperties/SearchLayer.d.ts +1 -1
  1125. package/webdoc/applicationProperties/SearchLayerField.d.ts +1 -1
  1126. package/webdoc/applicationProperties/SearchTable.d.ts +1 -1
  1127. package/webdoc/applicationProperties/SearchTableField.d.ts +1 -1
  1128. package/webdoc/applicationProperties/Viewing.d.ts +1 -1
  1129. package/webdoc/geotriggersInfo/DeviceLocationFeed.d.ts +1 -1
  1130. package/webdoc/geotriggersInfo/ExpressionInfo.d.ts +1 -1
  1131. package/webdoc/geotriggersInfo/FeatureFenceParameters.d.ts +1 -1
  1132. package/webdoc/geotriggersInfo/FeatureFilter.d.ts +1 -1
  1133. package/webdoc/geotriggersInfo/FeatureLayerSource.d.ts +1 -1
  1134. package/webdoc/geotriggersInfo/FenceGeotrigger.d.ts +1 -1
  1135. package/webdoc/geotriggersInfo/Geotrigger.d.ts +1 -1
  1136. package/webdoc/geotriggersInfo/GeotriggerNotificationOptions.d.ts +1 -1
  1137. package/webmap/ApplicationProperties.d.ts +1 -1
  1138. package/webmap/Bookmark.d.ts +1 -1
  1139. package/webmap/InitialViewProperties.d.ts +1 -1
  1140. package/webmap/background/ColorBackground.d.ts +1 -1
  1141. package/webscene/ApplicationProperties.d.ts +1 -1
  1142. package/webscene/Environment.d.ts +1 -1
  1143. package/webscene/InitialViewProperties.d.ts +1 -1
  1144. package/webscene/Lighting.d.ts +1 -1
  1145. package/webscene/Presentation.d.ts +1 -1
  1146. package/webscene/Slide.d.ts +1 -1
  1147. package/webscene/Slide.js +1 -1
  1148. package/webscene/SunLighting.d.ts +1 -1
  1149. package/webscene/VirtualLighting.d.ts +1 -1
  1150. package/webscene/background/Background.d.ts +1 -1
  1151. package/webscene/background/ColorBackground.d.ts +1 -1
  1152. package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.d.ts +1 -1
  1153. package/widgets/AreaMeasurement2D.d.ts +1 -1
  1154. package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.d.ts +1 -1
  1155. package/widgets/AreaMeasurement3D.d.ts +1 -1
  1156. package/widgets/Attachments/AttachmentsViewModel.d.ts +1 -1
  1157. package/widgets/Attachments.d.ts +1 -1
  1158. package/widgets/Attribution/AttributionViewModel.d.ts +1 -1
  1159. package/widgets/Attribution.d.ts +1 -1
  1160. package/widgets/BasemapGallery/BasemapGalleryViewModel.d.ts +1 -1
  1161. package/widgets/BasemapGallery/support/BasemapGalleryItem.d.ts +1 -1
  1162. package/widgets/BasemapGallery/support/LocalBasemapsSource.d.ts +1 -1
  1163. package/widgets/BasemapGallery/support/PortalBasemapsSource.d.ts +1 -1
  1164. package/widgets/BasemapGallery.d.ts +1 -1
  1165. package/widgets/BasemapLayerList/BasemapLayerListViewModel.d.ts +1 -1
  1166. package/widgets/BasemapLayerList.d.ts +1 -1
  1167. package/widgets/BasemapToggle/BasemapToggleViewModel.d.ts +1 -1
  1168. package/widgets/BasemapToggle.d.ts +1 -1
  1169. package/widgets/Bookmarks/BookmarksViewModel.d.ts +1 -1
  1170. package/widgets/Bookmarks.d.ts +1 -1
  1171. package/widgets/BuildingExplorer/BuildingExplorerViewModel.d.ts +1 -1
  1172. package/widgets/BuildingExplorer/BuildingLevel.d.ts +1 -1
  1173. package/widgets/BuildingExplorer/BuildingPhase.d.ts +1 -1
  1174. package/widgets/BuildingExplorer.d.ts +1 -1
  1175. package/widgets/Compass/CompassViewModel.d.ts +1 -1
  1176. package/widgets/Compass.d.ts +1 -1
  1177. package/widgets/CoordinateConversion/CoordinateConversionViewModel.d.ts +1 -1
  1178. package/widgets/CoordinateConversion/support/Conversion.d.ts +1 -1
  1179. package/widgets/CoordinateConversion/support/Format.d.ts +1 -1
  1180. package/widgets/CoordinateConversion.d.ts +1 -1
  1181. package/widgets/Daylight/DaylightViewModel.d.ts +1 -1
  1182. package/widgets/Daylight.d.ts +1 -1
  1183. package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.d.ts +1 -1
  1184. package/widgets/DirectLineMeasurement3D.d.ts +1 -1
  1185. package/widgets/Directions/DirectionsViewModel.d.ts +1 -1
  1186. package/widgets/Directions.d.ts +1 -1
  1187. package/widgets/Directions.js +1 -1
  1188. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.d.ts +1 -1
  1189. package/widgets/DistanceMeasurement2D.d.ts +1 -1
  1190. package/widgets/Editor/CreateFeaturesWorkflow.d.ts +1 -1
  1191. package/widgets/Editor/CreateFeaturesWorkflowData.d.ts +1 -1
  1192. package/widgets/Editor/CreateWorkflow.d.ts +1 -1
  1193. package/widgets/Editor/CreateWorkflowData.d.ts +1 -1
  1194. package/widgets/Editor/EditorViewModel.d.ts +1 -1
  1195. package/widgets/Editor/Edits.d.ts +1 -1
  1196. package/widgets/Editor/UpdateWorkflow.d.ts +1 -1
  1197. package/widgets/Editor/UpdateWorkflowData.d.ts +1 -1
  1198. package/widgets/Editor/Workflow.d.ts +1 -1
  1199. package/widgets/Editor.d.ts +1 -1
  1200. package/widgets/Editor.js +1 -1
  1201. package/widgets/ElevationProfile/ElevationProfileLine.d.ts +1 -1
  1202. package/widgets/ElevationProfile/ElevationProfileLineGround.d.ts +1 -1
  1203. package/widgets/ElevationProfile/ElevationProfileLineInput.d.ts +1 -1
  1204. package/widgets/ElevationProfile/ElevationProfileLineQuery.d.ts +1 -1
  1205. package/widgets/ElevationProfile/ElevationProfileLineView.d.ts +1 -1
  1206. package/widgets/ElevationProfile/ElevationProfileViewModel.d.ts +1 -1
  1207. package/widgets/ElevationProfile/support/ProfileLines3D.js +1 -1
  1208. package/widgets/ElevationProfile/support/constants.js +1 -1
  1209. package/widgets/ElevationProfile.d.ts +1 -1
  1210. package/widgets/Expand/ExpandViewModel.d.ts +1 -1
  1211. package/widgets/Expand.d.ts +1 -1
  1212. package/widgets/Feature/FeatureMedia.js +1 -1
  1213. package/widgets/Feature/FeatureRelationship/FeatureRelationshipViewModel.js +1 -1
  1214. package/widgets/Feature/FeatureViewModel.d.ts +1 -1
  1215. package/widgets/Feature/FeatureViewModel.js +1 -1
  1216. package/widgets/Feature.d.ts +1 -1
  1217. package/widgets/FeatureForm/FeatureFormViewModel.d.ts +1 -1
  1218. package/widgets/FeatureForm/FieldConfig.d.ts +1 -1
  1219. package/widgets/FeatureForm/FieldGroupConfig.d.ts +1 -1
  1220. package/widgets/FeatureForm/FormExpressionArcadeExecutor.js +1 -1
  1221. package/widgets/FeatureForm/InputField.d.ts +1 -1
  1222. package/widgets/FeatureForm/InputField.js +1 -1
  1223. package/widgets/FeatureForm/InputFieldGroup.d.ts +1 -1
  1224. package/widgets/FeatureForm.d.ts +1 -1
  1225. package/widgets/FeatureForm.js +1 -1
  1226. package/widgets/FeatureTable/FeatureTableViewModel.d.ts +1 -1
  1227. package/widgets/FeatureTable/FieldColumn.d.ts +1 -1
  1228. package/widgets/FeatureTable/FieldColumnConfig.d.ts +1 -1
  1229. package/widgets/FeatureTable/Grid/Column.d.ts +1 -1
  1230. package/widgets/FeatureTable/Grid/GroupColumn.d.ts +1 -1
  1231. package/widgets/FeatureTable/Grid/support/ButtonMenu.d.ts +1 -1
  1232. package/widgets/FeatureTable/Grid/support/ButtonMenuItem.d.ts +1 -1
  1233. package/widgets/FeatureTable/Grid/support/ButtonMenuViewModel.d.ts +1 -1
  1234. package/widgets/FeatureTable/support/ColumnTemplate.d.ts +1 -1
  1235. package/widgets/FeatureTable/support/ColumnTemplateBase.d.ts +1 -1
  1236. package/widgets/FeatureTable/support/FieldColumnTemplate.d.ts +1 -1
  1237. package/widgets/FeatureTable/support/GroupColumnTemplate.d.ts +1 -1
  1238. package/widgets/FeatureTable/support/TableTemplate.d.ts +1 -1
  1239. package/widgets/FeatureTable.d.ts +1 -1
  1240. package/widgets/FeatureTemplates/FeatureTemplatesViewModel.d.ts +1 -1
  1241. package/widgets/FeatureTemplates/TemplateItem.d.ts +1 -1
  1242. package/widgets/FeatureTemplates/TemplateItemGroup.d.ts +1 -1
  1243. package/widgets/FeatureTemplates.d.ts +1 -1
  1244. package/widgets/FloorFilter/FloorFilterViewModel.d.ts +1 -1
  1245. package/widgets/FloorFilter.d.ts +1 -1
  1246. package/widgets/Fullscreen/FullscreenViewModel.d.ts +1 -1
  1247. package/widgets/Fullscreen.d.ts +1 -1
  1248. package/widgets/Histogram/HistogramViewModel.d.ts +1 -1
  1249. package/widgets/Histogram.d.ts +1 -1
  1250. package/widgets/HistogramRangeSlider/HistogramRangeSliderViewModel.d.ts +1 -1
  1251. package/widgets/HistogramRangeSlider.d.ts +1 -1
  1252. package/widgets/Home/HomeViewModel.d.ts +1 -1
  1253. package/widgets/Home.d.ts +1 -1
  1254. package/widgets/LayerList/LayerListViewModel.d.ts +1 -1
  1255. package/widgets/LayerList/ListItem.d.ts +1 -1
  1256. package/widgets/LayerList/ListItemPanel.d.ts +1 -1
  1257. package/widgets/LayerList.d.ts +1 -1
  1258. package/widgets/Legend/LegendViewModel.d.ts +1 -1
  1259. package/widgets/Legend/support/ActiveLayerInfo.d.ts +1 -1
  1260. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  1261. package/widgets/Legend.d.ts +1 -1
  1262. package/widgets/LineOfSight/LineOfSightTarget.d.ts +1 -1
  1263. package/widgets/LineOfSight/LineOfSightViewModel.d.ts +1 -1
  1264. package/widgets/LineOfSight.d.ts +1 -1
  1265. package/widgets/Locate/LocateViewModel.d.ts +1 -1
  1266. package/widgets/Locate.d.ts +1 -1
  1267. package/widgets/Measurement/MeasurementViewModel.d.ts +1 -1
  1268. package/widgets/Measurement.d.ts +1 -1
  1269. package/widgets/NavigationToggle/NavigationToggleViewModel.d.ts +1 -1
  1270. package/widgets/NavigationToggle.d.ts +1 -1
  1271. package/widgets/Popup/PopupViewModel.d.ts +1 -1
  1272. package/widgets/Popup.d.ts +1 -1
  1273. package/widgets/Popup.js +1 -1
  1274. package/widgets/Print/CustomTemplate.d.ts +1 -1
  1275. package/widgets/Print/PrintViewModel.d.ts +1 -1
  1276. package/widgets/Print/TemplateOptions.d.ts +1 -1
  1277. package/widgets/Print.d.ts +1 -1
  1278. package/widgets/ScaleBar/ScaleBarViewModel.d.ts +1 -1
  1279. package/widgets/ScaleBar.d.ts +1 -1
  1280. package/widgets/ScaleRangeSlider/ScaleRangeSliderViewModel.d.ts +1 -1
  1281. package/widgets/ScaleRangeSlider/ScaleRanges.d.ts +1 -1
  1282. package/widgets/ScaleRangeSlider.d.ts +1 -1
  1283. package/widgets/Search/LayerSearchSource.d.ts +1 -1
  1284. package/widgets/Search/LocatorSearchSource.d.ts +1 -1
  1285. package/widgets/Search/SearchResultRenderer.d.ts +1 -1
  1286. package/widgets/Search/SearchSource.d.ts +1 -1
  1287. package/widgets/Search/SearchViewModel.d.ts +1 -1
  1288. package/widgets/Search.d.ts +1 -1
  1289. package/widgets/ShadowCast/ShadowCastViewModel.d.ts +1 -1
  1290. package/widgets/ShadowCast.d.ts +1 -1
  1291. package/widgets/Sketch/SketchViewModel.d.ts +1 -1
  1292. package/widgets/Sketch/SketchViewModel.js +1 -1
  1293. package/widgets/Sketch/support/OperationHandle.js +1 -1
  1294. package/widgets/Sketch.d.ts +1 -1
  1295. package/widgets/Slice/SlicePlane.d.ts +1 -1
  1296. package/widgets/Slice/SliceViewModel.d.ts +1 -1
  1297. package/widgets/Slice.d.ts +1 -1
  1298. package/widgets/Slider/SliderViewModel.d.ts +1 -1
  1299. package/widgets/Slider.d.ts +1 -1
  1300. package/widgets/Swipe/SwipeViewModel.d.ts +1 -1
  1301. package/widgets/Swipe.d.ts +1 -1
  1302. package/widgets/TableList/ListItem.d.ts +1 -1
  1303. package/widgets/TableList/TableListViewModel.d.ts +1 -1
  1304. package/widgets/TableList.d.ts +1 -1
  1305. package/widgets/TimeSlider/TimeSliderViewModel.d.ts +1 -1
  1306. package/widgets/TimeSlider.d.ts +1 -1
  1307. package/widgets/Track/TrackViewModel.d.ts +1 -1
  1308. package/widgets/Track.d.ts +1 -1
  1309. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.d.ts +1 -1
  1310. package/widgets/UtilityNetworkTrace.d.ts +1 -1
  1311. package/widgets/UtilityNetworkTrace.js +1 -1
  1312. package/widgets/Weather/WeatherViewModel.d.ts +1 -1
  1313. package/widgets/Weather.d.ts +1 -1
  1314. package/widgets/Widget.d.ts +1 -1
  1315. package/widgets/Zoom/ZoomViewModel.d.ts +1 -1
  1316. package/widgets/Zoom.d.ts +1 -1
  1317. package/widgets/smartMapping/ClassedColorSlider/ClassedColorSliderViewModel.d.ts +1 -1
  1318. package/widgets/smartMapping/ClassedColorSlider.d.ts +1 -1
  1319. package/widgets/smartMapping/ClassedSizeSlider/ClassedSizeSliderViewModel.d.ts +1 -1
  1320. package/widgets/smartMapping/ClassedSizeSlider.d.ts +1 -1
  1321. package/widgets/smartMapping/ColorSizeSlider/ColorSizeSliderViewModel.d.ts +1 -1
  1322. package/widgets/smartMapping/ColorSizeSlider.d.ts +1 -1
  1323. package/widgets/smartMapping/ColorSlider/ColorSliderViewModel.d.ts +1 -1
  1324. package/widgets/smartMapping/ColorSlider.d.ts +1 -1
  1325. package/widgets/smartMapping/HeatmapSlider/HeatmapSliderViewModel.d.ts +1 -1
  1326. package/widgets/smartMapping/HeatmapSlider.d.ts +1 -1
  1327. package/widgets/smartMapping/OpacitySlider/OpacitySliderViewModel.d.ts +1 -1
  1328. package/widgets/smartMapping/OpacitySlider.d.ts +1 -1
  1329. package/widgets/smartMapping/SizeSlider/SizeSliderViewModel.d.ts +1 -1
  1330. package/widgets/smartMapping/SizeSlider.d.ts +1 -1
  1331. package/widgets/smartMapping/SmartMappingPrimaryHandleSliderViewModel.d.ts +1 -1
  1332. package/widgets/smartMapping/SmartMappingSliderBase.d.ts +1 -1
  1333. package/widgets/smartMapping/SmartMappingSliderViewModel.d.ts +1 -1
  1334. package/widgets/smartMapping/support/utils.d.ts +1 -1
  1335. package/widgets/support/DatePicker.d.ts +1 -1
  1336. package/widgets/support/DatePickerViewModel.d.ts +1 -1
  1337. package/widgets/support/DateTimeElementViewModel.d.ts +1 -1
  1338. package/widgets/support/GeolocationPositioning.d.ts +1 -1
  1339. package/widgets/support/GoTo.d.ts +1 -1
  1340. package/widgets/support/SnappingControls/SnappingControlsViewModel.d.ts +1 -1
  1341. package/widgets/support/SnappingControls.d.ts +1 -1
  1342. package/widgets/support/TimePicker.d.ts +1 -1
  1343. package/widgets/support/TimePickerViewModel.d.ts +1 -1
  1344. package/widgets/support/widget.d.ts +1 -1
  1345. package/assets/esri/core/workers/chunks/09255015e57bdfa5337f.js +0 -1
  1346. package/assets/esri/core/workers/chunks/24ffd7180bb947bc8aec.js +0 -1
  1347. package/assets/esri/core/workers/chunks/2d6d089176b6bd490b9f.js +0 -1
  1348. package/assets/esri/core/workers/chunks/325f9eb52610c6c22f46.js +0 -1
  1349. package/assets/esri/core/workers/chunks/6a2358861b3d3007ad26.js +0 -1
  1350. package/assets/esri/core/workers/chunks/7230a7d5fb7106b14024.js +0 -1
  1351. package/assets/esri/core/workers/chunks/90dfa238d78c92fe43b1.js +0 -1
  1352. package/assets/esri/core/workers/chunks/a16109389dce496ab51c.js +0 -1
  1353. package/assets/esri/core/workers/chunks/bf248b08e18a50878f38.js +0 -1
  1354. package/assets/esri/core/workers/chunks/c9399a106dc167368a39.js +0 -1
  1355. package/assets/esri/core/workers/chunks/ceb68e994b82d69c1215.js +0 -1
  1356. package/assets/esri/core/workers/chunks/dbf72099949febfae5a1.js +0 -1
  1357. package/assets/esri/core/workers/chunks/e158ca25c239a5912ea0.js +0 -1
  1358. package/assets/esri/core/workers/chunks/ece3d9989c9ec13cae09.js +0 -1
  1359. package/assets/esri/core/workers/chunks/f6772f57bb1466e50d63.js +0 -1
  1360. package/chunks/MultipointDrawAction.js +0 -5
  1361. package/smartMapping/statistics/summaryStatisticsForBinning.js +0 -5
  1362. package/views/2d/draw/Draw.js +0 -5
  1363. package/views/2d/draw/DrawAction.js +0 -5
  1364. package/views/2d/draw/MultipointDrawAction.js +0 -5
  1365. package/views/2d/draw/PointDrawAction.js +0 -5
  1366. package/views/2d/draw/PolygonDrawAction.js +0 -5
  1367. package/views/2d/draw/PolylineDrawAction.js +0 -5
  1368. package/views/2d/draw/SegmentDrawAction.js +0 -5
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3548],{13867:(e,t,i)=>{i.d(t,{Z:()=>r});var s=i(69801);class r{constructor(e,t){this._storage=new s.WJ,this._storage.maxSize=e,t&&this._storage.registerRemoveFunc("",t)}put(e,t,i){this._storage.put(e,t,i,1)}pop(e){return this._storage.pop(e)}get(e){return this._storage.get(e)}clear(){this._storage.clearAll()}destroy(){this._storage.destroy()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}}},82526:(e,t,i)=>{i.d(t,{aX:()=>R});var s=i(68773),r=i(20102),n=i(92604),a=i(70586),o=i(38913),l=i(58901),c=i(82971),u=i(33955);const h={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new l.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:c.Z.WebMercator}),minus180Line:new l.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:c.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new l.Z({paths:[[[180,-180],[180,180]]],spatialReference:c.Z.WGS84}),minus180Line:new l.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:c.Z.WGS84})}};function f(e,t){return Math.ceil((e-t)/(2*t))}function d(e,t){const i=p(e);for(const e of i)for(const i of e)i[0]+=t;return e}function p(e){return(0,u.oU)(e)?e.rings:e.paths}var m=i(8744),y=i(40488),g=(i(66577),i(3172)),x=i(17452);function I(e){return{geometryType:(0,u.Ji)(e[0]),geometries:e.map((e=>e.toJSON()))}}const b=n.Z.getLogger("esri.geometry.support.normalizeUtils");function w(e){return"polygon"===e[0].type}function _(e){return"polyline"===e[0].type}function S(e,t,i){if(t){const t=function(e,t){if(!(e instanceof l.Z||e instanceof o.Z)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw b.error(e),new r.Z(e)}const i=p(e),s=[];for(const e of i){const i=[];s.push(i),i.push([e[0][0],e[0][1]]);for(let s=0;s<e.length-1;s++){const r=e[s][0],n=e[s][1],a=e[s+1][0],o=e[s+1][1],l=Math.sqrt((a-r)*(a-r)+(o-n)*(o-n)),c=(o-n)/l,u=(a-r)/l,h=l/t;if(h>1){for(let e=1;e<=h-1;e++){const s=e*t,a=u*s+r,o=c*s+n;i.push([a,o])}const e=(l+Math.floor(h-1)*t)/2,s=u*e+r,a=c*e+n;i.push([s,a])}i.push([a,o])}}return function(e){return"polygon"===e.type}(e)?new o.Z({rings:s,spatialReference:e.spatialReference}):new l.Z({paths:s,spatialReference:e.spatialReference})}(e,1e6);e=(0,y.Sx)(t,!0)}return i&&(e=d(e,i)),e}function v(e,t,i){if(Array.isArray(e)){const s=e[0];if(s>t){const i=f(s,t);e[0]=s+i*(-2*t)}else if(s<i){const t=f(s,i);e[0]=s+t*(-2*i)}}else{const s=e.x;if(s>t){const i=f(s,t);e=e.clone().offset(i*(-2*t),0)}else if(s<i){const t=f(s,i);e=e.clone().offset(t*(-2*i),0)}}return e}function C(e,t){let i=-1;for(let s=0;s<t.cutIndexes.length;s++){const r=t.cutIndexes[s],n=t.geometries[s],a=p(n);for(let e=0;e<a.length;e++){const t=a[e];t.some((i=>{if(i[0]<180)return!0;{let i=0;for(let e=0;e<t.length;e++){const s=t[e][0];i=s>i?s:i}i=Number(i.toFixed(9));const s=-360*f(i,180);for(let i=0;i<t.length;i++){const t=n.getPoint(e,i);n.setPoint(e,i,t.clone().offset(s,0))}return!0}}))}if(r===i){if(w(e))for(const t of p(n))e[r]=e[r].addRing(t);else if(_(e))for(const t of p(n))e[r]=e[r].addPath(t)}else i=r,e[r]=n}return e}async function R(e,t,i){if(!Array.isArray(e))return R([e],t);t&&"string"!=typeof t&&b.warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const r="string"==typeof t?t:t?.url??s.Z.geometryServiceUrl;let n,c,p,w,_,T,k,F,P=0;const M=[],O=[];for(const t of e)if((0,a.Wi)(t))O.push(t);else if(n||(n=t.spatialReference,c=(0,m.C5)(n),p=n.isWebMercator,T=p?102100:4326,w=h[T].maxX,_=h[T].minX,k=h[T].plus180Line,F=h[T].minus180Line),c)if("mesh"===t.type)O.push(t);else if("point"===t.type)O.push(v(t.clone(),w,_));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>v(e,w,_))),O.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,c);O.push(e.rings?new o.Z(e):e)}else if(t.extent){const e=t.extent,i=f(e.xmin,_)*(2*w);let s=0===i?t.clone():d(t.clone(),i);e.offset(i,0),e.intersects(k)&&e.xmax!==w?(P=e.xmax>P?e.xmax:P,s=S(s,p),M.push(s),O.push("cut")):e.intersects(F)&&e.xmin!==_?(P=e.xmax*(2*w)>P?e.xmax*(2*w):P,s=S(s,p,360),M.push(s),O.push("cut")):O.push(s)}else O.push(t.clone());else O.push(t);let B=f(P,w),D=-90;const z=B,J=new l.Z;for(;B>0;){const e=360*B-180;J.addPath([[e,D],[e,-1*D]]),D*=-1,B--}if(M.length>0&&z>0){const t=C(M,await async function(e,t,i,s){const r="string"==typeof e?(0,x.mN)(e):e,n=t[0].spatialReference,a={...s,query:{...r.query,f:"json",sr:JSON.stringify(n),target:JSON.stringify({geometryType:(0,u.Ji)(t[0]),geometries:t}),cutter:JSON.stringify(i)}},o=await(0,g.default)(r.path+"/cut",a),{cutIndexes:l,geometries:c=[]}=o.data;return{cutIndexes:l,geometries:c.map((e=>{const t=(0,u.im)(e);return t.spatialReference=n,t}))}}(r,M,J,i)),s=[],n=[];for(let i=0;i<O.length;i++){const r=O[i];if("cut"!==r)n.push(r);else{const r=t.shift(),o=e[i];(0,a.pC)(o)&&"polygon"===o.type&&o.rings&&o.rings.length>1&&r.rings.length>=o.rings.length?(s.push(r),n.push("simplify")):n.push(p?(0,y.$)(r):r)}}if(!s.length)return n;const o=await async function(e,t,i){const s="string"==typeof e?(0,x.mN)(e):e,r=t[0].spatialReference,n=(0,u.Ji)(t[0]),a={...i,query:{...s.query,f:"json",sr:r.wkid?r.wkid:JSON.stringify(r),geometries:JSON.stringify(I(t))}};return function(e,t,i){const s=(0,u.q9)(t);return e.map((e=>{const t=s.fromJSON(e);return t.spatialReference=i,t}))}((await(0,g.default)(s.path+"/simplify",a)).data,n,r)}(r,s,i),l=[];for(let e=0;e<n.length;e++){const t=n[e];"simplify"!==t?l.push(t):l.push(p?(0,y.$)(o.shift()):o.shift())}return l}const N=[];for(let e=0;e<O.length;e++){const t=O[e];if("cut"!==t)N.push(t);else{const e=M.shift();N.push(!0===p?(0,y.$)(e):e)}}return N}},92045:(e,t,i)=>{i.r(t),i.d(t,{default:()=>nt});var s=i(43697),r=i(51773),n=i(30030),a=i(20102),o=i(70586),l=i(16453),c=i(95330),u=i(17445),h=i(5600),f=(i(67676),i(75215)),d=i(36030),p=i(71715),m=i(52011),y=i(87085),g=i(71612),x=i(17017),I=(i(66577),i(3172)),b=i(92604),w=i(8744),_=i(66677),S=i(21506),v=i(35956),C=i(29876),R=i(40297),T=i(88281),k=i(11145),F=i(96674),P=i(609),M=i(36679),O=i(99815),B=i(73506),D=i(94139);const z=new Map,J=new class{constructor(e=15e3,t=5e3){this._timer=null,this._cachedBlocks=new Map,this._size=-1,this._duration=e,this._interval=Math.min(e,t)}decreaseRefCount(e,t){const i=e+"/"+t,s=this._cachedBlocks;if(s.has(i)){const e=s.get(i);return e.refCount--,e.refCount<=0&&(s.delete(i),e.controller&&e.controller.abort()),e.refCount}return 0}getBlock(e,t){const i=e+"/"+t,s=this._cachedBlocks;if(s.has(i)){const e=s.get(i);return e.ts=Date.now(),e.refCount++,s.delete(i),s.set(i,e),e.block}return null}putBlock(e,t,i,s){const r=this._cachedBlocks,n=e+"/"+t;if(r.has(n)){const e=r.get(n);e.ts=Date.now(),e.refCount++}else r.set(n,{block:i,ts:Date.now(),refCount:1,controller:s});this._trim(),this._updateTimer()}deleteBlock(e,t){const i=this._cachedBlocks,s=e+"/"+t;i.has(s)&&i.delete(s)}updateMaxSize(e){this._size=e,this._trim()}empty(){this._cachedBlocks.clear(),this._clearTimer()}getCurrentSize(){return this._cachedBlocks.size}_updateTimer(){if(null!=this._timer)return;const e=this._cachedBlocks;this._timer=setInterval((()=>{const t=Array.from(e),i=Date.now();for(let s=0;s<t.length&&t[s][1].ts<=i-this._duration;s++)e.delete(t[s][0]);0===e.size&&this._clearTimer()}),this._interval)}_trim(){const e=this._cachedBlocks;if(-1===this._size||this._size>=e.size)return;const t=Array.from(e);for(let i=0;i<t.length-this._size;i++)e.delete(t[i][0])}_clearTimer(){null!=this._timer&&(clearInterval(this._timer),this._timer=null)}};function N(e,t){return null==t?e:`${e}?sliceId=${t}`}function W(e,t,i){const s=z.get(e);if(!s)return null==t?J.decreaseRefCount(e,i):0;if(null==t||null==s[t])return J.decreaseRefCount(e,i);const r=s[t]?.cache,n=r?.get(i);if(r&&n){if(n.refCount--,0===n.refCount){r.delete(i);for(let e=0;e<s.length;e++)s[e]?.cache.delete(i);n.controller&&n.controller.abort()}return n.refCount}return 0}function E(e,t,i){const s=z.get(e);if(!s)return null==t?J.getBlock(e,i):null;if(null==t||null==s[t]){for(let e=0;e<s.length;e++){const t=s[e]?.cache.get(i);if(t)return t.refCount++,t.block}return J.getBlock(e,i)}const r=s[t]?.cache.get(i);if(r)return r.refCount++,r.block;for(let e=0;e<s.length;e++){if(e===t||!s[e])continue;const r=s[e]?.cache,n=r?.get(i);if(r&&n)return n.refCount++,r.set(i,n),n.block}return null}function H(e,t,i,s,r=null){const n=z.get(e);if(!n)return void(null==t&&J.putBlock(e,i,s,r));if(null==t||null==n[t])return void J.putBlock(e,i,s,r);const a={refCount:1,block:s,isResolved:!1,isRejected:!1,controller:r};s.then((()=>a.isResolved=!0)).catch((()=>a.isRejected=!0)),n[t]?.cache.set(i,a)}function Z(e,t,i){const s=z.get(e);s?null!=t&&null!=s[t]?s[t]?.cache.delete(i):J.deleteBlock(e,i):null==t&&J.deleteBlock(e,i)}var A=i(75993),L=i(55914),j=i(80676),q=i(6570);let G=class extends((0,P.v)(F.wq)){constructor(){super(...arguments),this.rasterJobHandler=null,this.datasetName=null,this.datasetFormat=null,this.rasterInfo=null,this.ioConfig={sampling:"closest"}}async init(){const e=(0,B.zD)();this.addResolvingPromise(e),await this.when()}normalizeCtorArgs(e){return e&&e.ioConfig&&(e={...e,ioConfig:{resolution:null,bandIds:null,sampling:"closest",tileInfo:k.Z.create(),...e.ioConfig}}),e}get _isGlobalWrappableSource(){const{rasterInfo:e}=this,t=(0,B.ut)(e.spatialReference);return(0,o.pC)(t)&&e.extent.width>=t/2}set url(e){this._set("url",(0,_.Nm)(e,b.Z.getLogger(this.declaredClass)))}async open(e){throw new a.Z("BaseRaster:open-not-implemented","open() is not implemented")}async fetchTile(e,t,i,s={}){const r=s.tileInfo||this.rasterInfo.storageInfo.tileInfo,n=this.getTileExtentFromTileInfo(e,t,i,r);return this.fetchPixels(n,r.size[0],r.size[1],s)}async identify(e,t={}){e=(0,f.TJ)(D.Z,e).clone().normalize();const{multidimensionalDefinition:i,timeExtent:s}=t,{hasMultidimensionalTranspose:r,multidimensionalInfo:n}=this.rasterInfo;let{transposedVariableName:a}=t;const l=(0,o.pC)(n)&&r&&(null!=s||(0,O.WU)(i));l&&!a&&(a=(0,o.pC)(i)&&i.length>0?i[0].variableName??void 0:n.variables[0].name,t={...t,transposedVariableName:a}),t=this._getRequestOptionsWithSliceId(t);const{spatialReference:c,extent:u}=this.rasterInfo,{datumTransformation:h}=t;let d=(0,B.nF)(e,c,h);if(!u.intersects(d))return{location:d,value:null};if((0,o.pC)(this.rasterInfo.transform)){const e=this.rasterInfo.transform.inverseTransform(d);if(!this.rasterInfo.nativeExtent.intersects(e))return{location:e,value:null};d=e}let p=0;const m=(0,o.pC)(a)&&(0,o.pC)(n)&&this.rasterInfo.hasMultidimensionalTranspose;if(!m)if(t.srcResolution)p=(0,B.kr)(t.srcResolution,this.rasterInfo,this.ioConfig.sampling).pyramidLevel;else if(p=await this.computeBestPyramidLevelForLocation(e,t),null==p)return{location:d,value:null};const y=this.identifyPixelLocation(d,p,null,m);if(null===y)return{location:d,value:null};const{row:g,col:x,rowOffset:I,colOffset:b,blockWidth:w}=y,_=a??(0,o.Wg)(t.sliceId),S=N(this.url,_),v=`${p}/${g}/${x}`;let C=E(S,null,v);(0,o.Wi)(C)&&(C=this.fetchRawTile(p,g,x,t),H(S,null,v,C));const R=await C;if((0,o.Wi)(R)||!R.pixels?.length)return{location:d,value:null};const T=I*w+b;return this._processIdentifyResult(R,{srcLocation:d,position:T,pyramidLevel:p,useTransposedTile:!!m,requestSomeSlices:l,identifyOptions:t})}async fetchPixels(e,t,i,s={}){if(e=(0,B.kZ)(e),(s=this._getRequestOptionsWithSliceId(s)).requestRawData)return this._fetchPixels(e,t,i,s);const r=(0,B.ut)(e.spatialReference),n=(0,B.Hq)(e);if((0,o.Wi)(r)||0===n||1===n&&this._isGlobalWrappableSource)return this._fetchPixels(e,t,i,s);if(n>=3)return{extent:e,pixelBlock:null};const a=[],{xmin:l,xmax:c}=e,u=Math.round(r/(c-l)*t),h=u-Math.round((r/2-l)/(c-l)*t);let f=0;const d=[];for(let o=0;o<=n;o++){const p=new q.Z({xmin:0===o?l:-r/2,xmax:o===n?c-r*o:r/2,ymin:e.ymin,ymax:e.ymax,spatialReference:e.spatialReference}),m=0===o?u-h:o===n?t-f:u;f+=m,d.push(m);const y=s.disableWrapAround&&o>0?null:this._fetchPixels(p,m,i,s);a.push(y)}const p=(await Promise.all(a)).map((e=>e?.pixelBlock));let m=null;const y={width:t,height:i};return m=this.rasterJobHandler?(await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:p,srcMosaicSize:y,destDimension:null,coefs:null,sampleSpacing:null,interpolation:"nearest",alignmentInfo:null,blockWidths:d},s)).pixelBlock:(0,L.us)(p,y,{blockWidths:d}),{extent:e,srcExtent:(0,B.tB)(e,this.rasterInfo.spatialReference,s.datumTransformation),pixelBlock:m}}async fetchRawPixels(e,t,i,s={}){t={x:Math.floor(t.x),y:Math.floor(t.y)};const r=await this._fetchRawTiles(e,t,i,s),{nativeExtent:n,nativePixelSize:a,storageInfo:l}=this.rasterInfo,c=2**e,u=a.x*c,h=a.y*c,f=new q.Z({xmin:n.xmin+u*t.x,xmax:n.xmin+u*(t.x+i.width-1),ymin:n.ymax-h*(t.y+i.height-1),ymax:n.ymax-h*t.y,spatialReference:n.spatialReference});if(!r)return{extent:f,srcExtent:f,pixelBlock:null};const{pixelBlocks:d,mosaicSize:p}=r;if(1===d.length&&(0,o.pC)(d[0])&&d[0].width===i.width&&d[0].height===i.height)return{extent:f,srcExtent:f,pixelBlock:r.pixelBlocks[0]};const m=e>0?l.pyramidBlockWidth:l.blockWidth,y=e>0?l.pyramidBlockHeight:l.blockHeight,g={x:t.x%m,y:t.y%y};let x;return x=this.rasterJobHandler?(await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:d,srcMosaicSize:p,destDimension:i,clipOffset:g,clipSize:i,coefs:null,sampleSpacing:null,interpolation:s.interpolation,alignmentInfo:null,blockWidths:null},s)).pixelBlock:(0,L.us)(d,p,{clipOffset:g,clipSize:i}),{extent:f,srcExtent:f,pixelBlock:x}}fetchRawTile(e,t,i,s){throw new a.Z("BaseRaster:read-not-implemented","fetchRawTile() is not implemented")}computeExtent(e){return(0,B.tB)(this.rasterInfo.extent,e)}decodePixelBlock(e,t){return!this.rasterJobHandler||t.useCanvas?(0,A.J)(e,t):this.rasterJobHandler.decode({data:e,options:t})}async request(e,t,i=0){const{customFetchParameters:s}=this.ioConfig,{range:r,query:n,headers:a}=t;i=i??t.retryCount??this.ioConfig.retryCount;const o=r?{Range:`bytes=${r.from}-${r.to}`}:null;try{return await(0,I.default)(e,{...t,query:{...n,...s},headers:{...a,...o}})}catch(s){if(i>0)return i--,this.request(e,t,i);throw s}}getSliceIndex(e){const{multidimensionalInfo:t}=this.rasterInfo;return(0,o.Wi)(t)||(0,o.Wi)(e)||0===e.length?null:(0,O.gk)(e,t)}getTileExtentFromTileInfo(e,t,i,s){const r=(0,o.s3)(s.lodAt(e));return this.getTileExtent({x:r.resolution,y:r.resolution},t,i,s.origin,s.spatialReference,s.size)}updateTileInfo(){const{storageInfo:e,spatialReference:t,extent:i,pixelSize:s}=this.rasterInfo;if(!e.tileInfo){const r=[],n=e.maximumPyramidLevel||0;let a=Math.max(s.x,s.y),o=1/.0254*96*a;for(let e=0;e<=n;e++)r.push({level:n-e,resolution:a,scale:o}),a*=2,o*=2;const l=new D.Z({x:i.xmin,y:i.ymax,spatialReference:t});e.tileInfo=new k.Z({origin:l,size:[e.blockWidth,e.blockHeight],spatialReference:t,lods:r}),e.isVirtualTileInfo=!0}}createRemoteDatasetStorageInfo(e,t=512,i=512,s){const{width:r,height:n,nativeExtent:a,pixelSize:o,spatialReference:l}=e,c=new D.Z({x:a.xmin,y:a.ymax,spatialReference:l});null==s&&(s=Math.max(0,Math.round(Math.log(Math.max(r,n))/Math.LN2-8)));const u=this.computeBlockBoundary(a,512,512,{x:a.xmin,y:a.ymax},[o],s);e.storageInfo=new M.Z({blockWidth:t,blockHeight:i,pyramidBlockWidth:t,pyramidBlockHeight:i,origin:c,firstPyramidLevel:1,maximumPyramidLevel:s,blockBoundary:u})}async computeBestPyramidLevelForLocation(e,t={}){return 0}computeBlockBoundary(e,t,i,s,r,n=0,a=2){if(1===r.length&&n>0){r=[...r];let{x:e,y:t}=r[0];for(let i=0;i<n;i++)e*=a,t*=a,r.push({x:e,y:t})}const o=[],{x:l,y:c}=s;for(let s=0;s<r.length;s++){const{x:n,y:a}=r[s];o.push({minCol:Math.floor((e.xmin-l+.1*n)/t/n),maxCol:Math.floor((e.xmax-l-.1*n)/t/n),minRow:Math.floor((c-e.ymax+.1*a)/i/a),maxRow:Math.floor((c-e.ymin-.1*a)/i/a)})}return o}getPyramidPixelSize(e){const{nativePixelSize:t}=this.rasterInfo,{pyramidResolutions:i,pyramidScalingFactor:s}=this.rasterInfo.storageInfo;if(0===e)return t;if((0,o.pC)(i)&&i.length)return i[e-1];const r=s**e;return{x:t.x*r,y:t.y*r}}identifyPixelLocation(e,t,i,s){const{spatialReference:r,nativeExtent:n,storageInfo:a}=this.rasterInfo,{maximumPyramidLevel:l,origin:c,transposeInfo:u}=a,h=s&&(0,o.pC)(u)?u.tileSize[0]:a.blockWidth,f=s&&(0,o.pC)(u)?u.tileSize[1]:a.blockHeight,d=(0,B.nF)(e,r,i);if(!n.intersects(d))return null;if(t<0||t>l)return null;const p=this.getPyramidPixelSize(t),{x:m,y}=p,g=(c.y-d.y)/y/f,x=(d.x-c.x)/m/h,I=Math.min(f-1,Math.floor((g-Math.floor(g))*f)),b=Math.min(h-1,Math.floor((x-Math.floor(x))*h));return{pyramidLevel:t,row:Math.floor(g),col:Math.floor(x),rowOffset:I,colOffset:b,blockWidth:h,srcLocation:d}}getTileExtent(e,t,i,s,r,n){const[a,o]=n,l=s.x+i*a*e.x,c=l+a*e.x,u=s.y-t*o*e.y,h=u-o*e.y;return new q.Z({xmin:l,xmax:c,ymin:h,ymax:u,spatialReference:r})}getBlockWidthHeight(e){return{blockWidth:e>0?this.rasterInfo.storageInfo.pyramidBlockWidth:this.rasterInfo.storageInfo.blockWidth,blockHeight:e>0?this.rasterInfo.storageInfo.pyramidBlockHeight:this.rasterInfo.storageInfo.blockHeight}}isBlockOutside(e,t,i){const s=this.rasterInfo.storageInfo.blockBoundary[e];return!s||s.maxRow<t||s.maxCol<i||s.minRow>t||s.minCol>i}async _fetchPixels(e,t,i,s={}){let r=(0,B.Hq)(e);if(r>=2)return{extent:e,pixelBlock:null};const n=this._getSourceDataInfo(e,t,i,s),{pyramidLevel:a,pyramidResolution:l,srcResolution:c,srcExtent:u,srcWidth:h,srcHeight:f}=n;if(0===h||0===f)return{extent:e,srcExtent:u,pixelBlock:null};const d=(0,o.Wg)(this.rasterInfo.transform),p="gcs-shift"===d?.type,m=(0,o.pC)((0,B.ut)(e.spatialReference));!p&&m||(r=(0,B.Hq)(n.srcExtent,p));const y=this.rasterInfo.storageInfo,g={x:Math.floor((u.xmin-y.origin.x)/l.x+.1),y:Math.floor((y.origin.y-u.ymax)/l.y+.1)},x=await this._fetchRawTiles(a,g,{width:h,height:f,wrapCount:r},s);if(!x)return{extent:e,srcExtent:u,pixelBlock:null};const I=a>0?y.pyramidBlockWidth:y.blockWidth,b=a>0?y.pyramidBlockHeight:y.blockHeight,w=I===h&&b===f&&g.x%I==0&&g.y%b==0,_=new D.Z({x:(e.xmax-e.xmin)/t,y:(e.ymax-e.ymin)/i,spatialReference:e.spatialReference}),S=!e.spatialReference.equals(this.rasterInfo.spatialReference),{datumTransformation:v}=s;if(!S&&w&&1===x.pixelBlocks.length&&I===t&&b===i&&c.x===_.x&&c.y===_.y)return{extent:e,srcExtent:u,pixelBlock:x.pixelBlocks[0]};const C=m&&(0,o.pC)((0,B.ut)(u.spatialReference)),R=s.requestProjectedLocalDirections&&this.rasterInfo.dataType.startsWith("vector");R&&!this.rasterJobHandler&&await(0,B.zD)();const T=this.rasterJobHandler?await this.rasterJobHandler.getProjectionOffsetGrid({projectedExtent:e,srcBufferExtent:x.extent,pixelSize:_.toJSON(),datumTransformation:v,rasterTransform:d,hasWrapAround:r>0||C,isAdaptive:!1!==this.ioConfig.optimizeProjectionAccuracy,includeGCSGrid:R},s):(0,B.Qp)({projectedExtent:e,srcBufferExtent:x.extent,pixelSize:_,datumTransformation:v,rasterTransform:d,hasWrapAround:r>0||C,isAdaptive:!1,includeGCSGrid:R});let k;const F=!s.requestRawData,P={rows:T.spacing[0],cols:T.spacing[1]},M=(0,o.Wg)(this._getRasterTileAlignmentInfo(a,x.extent.xmin)),{pixelBlocks:O,mosaicSize:z,isPartiallyFilled:J}=x;let N=null;if(this.rasterJobHandler){const e=await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:O,srcMosaicSize:z,destDimension:F?{width:t,height:i}:null,coefs:F?T.coefficients:null,sampleSpacing:F?P:null,projectDirections:R,gcsGrid:R?T.gcsGrid:null,isUV:"vector-uv"===this.rasterInfo.dataType,interpolation:s.interpolation,alignmentInfo:M,blockWidths:null},s);({pixelBlock:k,localNorthDirections:N}=e)}else{const e=(0,L.us)(O,z,{alignmentInfo:M});k=F?(0,L.Uk)(e,{width:t,height:i},T.coefficients,P,s.interpolation):e,R&&T.gcsGrid&&(N=(0,L.Qh)({width:t,height:i},T.gcsGrid),k=(0,j.xQ)(k,this.rasterInfo.dataType,N))}return s.requestRawData||R?{srcExtent:u,pixelBlock:k,transformGrid:T,localNorthDirections:N,extent:e,isPartiallyFilled:J}:{srcExtent:u,extent:e,pixelBlock:k}}async _fetchRawTiles(e,t,i,s){const{origin:r,blockBoundary:n}=this.rasterInfo.storageInfo,{blockWidth:a,blockHeight:l}=this.getBlockWidthHeight(e);let{x:c,y:u}=t,{width:h,height:f,wrapCount:d}=i;const p=this._getRasterTileAlignmentInfo(e,0);s.buffer&&(c-=s.buffer.cols,u-=s.buffer.rows,h+=2*s.buffer.cols,f+=2*s.buffer.rows);let m=0,y=0,g=0;d&&(0,o.pC)(p)&&(({worldColumnCountFromOrigin:y,originColumnOffset:g,rightPadding:m}=p),y*p.blockWidth-m>=c+h&&(m=0));const x=Math.floor(c/a),I=Math.floor(u/l),b=Math.floor((c+h+m-1)/a),w=Math.floor((u+f+m-1)/l),_=n[e];if(!_)return null;const{minRow:S,minCol:v,maxCol:C,maxRow:R}=_;if(0===d&&(w<S||b<v||I>R||x>C))return null;const T=new Array;let k=!1;const F=null==this.ioConfig.allowPartialFill?s.allowPartialFill:this.ioConfig.allowPartialFill;for(let t=I;t<=w;t++)for(let i=x;i<=b;i++){let r=i;if(!s.disableWrapAround&&d&&(0,o.pC)(p)&&y<=i&&(r=i-y-g),t>=S&&r>=v&&R>=t&&C>=r){const i=this._fetchRawTile(e,t,r,s);F?T.push(new Promise((e=>{i.then((t=>e(t))).catch((()=>{k=!0,e(null)}))}))):T.push(i)}else T.push(Promise.resolve(null))}if(0===T.length)return null;const P=await Promise.all(T),M={height:(w-I+1)*l,width:(b-x+1)*a},{spatialReference:O}=this.rasterInfo,B=this.getPyramidPixelSize(e),{x:D,y:z}=B;return{extent:new q.Z({xmin:r.x+x*a*D,xmax:r.x+(b+1)*a*D,ymin:r.y-(w+1)*l*z,ymax:r.y-I*l*z,spatialReference:O}),pixelBlocks:P,mosaicSize:M,isPartiallyFilled:k}}_fetchRawTile(e,t,i,s){const r=this.rasterInfo.storageInfo.blockBoundary[e];if(!r)return Promise.resolve(null);const{minRow:n,minCol:a,maxCol:l,maxRow:u}=r;if(t<n||i<a||t>u||i>l)return Promise.resolve(null);const h=N(this.url,s.sliceId),f=`${e}/${t}/${i}`;let d=E(h,s.registryId,f);if((0,o.Wi)(d)){const r=new AbortController;d=this.fetchRawTile(e,t,i,{...s,signal:r.signal}),H(h,s.registryId,f,d,r),d.catch((()=>Z(h,s.registryId,f)))}return s.signal&&(0,c.fu)(s,(()=>{W(h,s.registryId,f)})),d}_computeMagDirValues(e){const{bandCount:t,dataType:i}=this.rasterInfo;if((2!==t||"vector-magdir"!==i)&&"vector-uv"!==i||2!==e?.length||!e[0]?.length)return null;const s=e[0].length;if("vector-magdir"===i){const t=e[1].map((e=>(e+360)%360));return[e[0],t]}const[r,n]=e,a=[],o=[];for(let e=0;e<s;e++){const[t,i]=(0,j.Tg)([r[e],n[e]]);a.push(t),o.push(i)}return[a,o]}_getRasterTileAlignmentInfo(e,t){return null==this._rasterTileAlighmentInfo&&(this._rasterTileAlighmentInfo=(0,B.P_)(this.rasterInfo)),(0,o.Wi)(this._rasterTileAlighmentInfo.pyramidsInfo)?null:{startX:t,halfWorldWidth:this._rasterTileAlighmentInfo.halfWorldWidth,hasGCSSShiftTransform:this._rasterTileAlighmentInfo.hasGCSSShiftTransform,...this._rasterTileAlighmentInfo.pyramidsInfo[e]}}_getSourceDataInfo(e,t,i,s={}){const r={datumTransformation:s.datumTransformation,pyramidLevel:0,pyramidResolution:null,srcExtent:null,srcHeight:0,srcResolution:null,srcWidth:0};s.srcResolution&&(r.srcResolution=s.srcResolution,this._updateSourceDataInfo(e,r));const n=this.rasterInfo.storageInfo.maximumPyramidLevel||0,{srcWidth:a,srcHeight:o,pyramidLevel:l}=r,c=a/t,u=o/i,h=l<n&&c*u>=16;if(h||l===n&&(c>8||u>8)||0===a||0===o){const a=new D.Z({x:(e.xmax-e.xmin)/t,y:(e.ymax-e.ymin)/i,spatialReference:e.spatialReference});let o=(0,B.VO)(a,this.rasterInfo.spatialReference,e,r.datumTransformation);const f=!o||s.srcResolution&&o.x+o.y<s.srcResolution.x+s.srcResolution.y;if(h&&s.srcResolution&&f){const e=Math.round(Math.log(Math.max(c,u))/Math.LN2)-1;if(n-l+3>=e){const t=2**e;o={x:s.srcResolution.x*t,y:s.srcResolution.y*t}}}o&&(r.srcResolution=o,this._updateSourceDataInfo(e,r))}return(r.srcWidth/t>8||r.srcHeight/i>8)&&(r.srcWidth=0,r.srcHeight=0),r}_updateSourceDataInfo(e,t){t.srcWidth=0,t.srcHeight=0;const i=this.rasterInfo.spatialReference,{srcResolution:s,datumTransformation:r}=t,{pyramidLevel:n,pyramidResolution:a,excessiveReading:l}=(0,B.kr)(s,this.rasterInfo,this.ioConfig.sampling);if(l)return;let c=t.srcExtent||(0,B.tB)(e,i,r);if(null==c)return;const u=(0,o.Wg)(this.rasterInfo.transform);u&&(c=u.inverseTransform(c)),t.srcExtent=c;const h=Math.ceil((c.xmax-c.xmin)/a.x-.1),f=Math.ceil((c.ymax-c.ymin)/a.y-.1);t.pyramidLevel=n,t.pyramidResolution=a,t.srcWidth=h,t.srcHeight=f}_getRequestOptionsWithSliceId(e){return(0,o.pC)(this.rasterInfo.multidimensionalInfo)&&null==e.sliceId&&(e={...e,sliceId:this.getSliceIndex(e.multidimensionalDefinition)}),e}_processIdentifyResult(e,t){const{srcLocation:i,position:s,pyramidLevel:r,useTransposedTile:n}=t,a=e.pixels[0].length/e.width/e.height;if(e.mask&&!e.mask[s])return{location:i,value:null};const{multidimensionalInfo:l}=this.rasterInfo;if((0,o.Wi)(l)||!n){const t=e.pixels.map((e=>e[s])),n={location:i,value:t,pyramidLevel:r},a=this._computeMagDirValues(t.map((e=>[e])));return a?.length&&(n.magdirValue=a.map((e=>e[0]))),n}let c=e.pixels.map((e=>Array.prototype.slice.call(e,s*a,s*a+a))),u=this._computeMagDirValues(c);const{requestSomeSlices:h,identifyOptions:f}=t;let d=(0,O.MO)(l,f.transposedVariableName);if(h){const e=(0,O.Ur)(d,(0,o.Wg)(f.multidimensionalDefinition),(0,o.Wg)(f.timeExtent));c=c.map((t=>e.map((e=>t[e])))),u=u?.map((t=>e.map((e=>t[e])))),d=e.map((e=>d[e]))}return{location:i,value:null,dataSeries:d.map(((e,t)=>{const i={value:c.map((e=>e[t])),multidimensionalDefinition:e.multidimensionalDefinition.map((e=>new v.Z({...e,isSlice:!0})))};return u?.length&&(i.magdirValue=[u[0][t],u[1][t]]),i})),pyramidLevel:r}}};(0,s._)([(0,h.Cb)()],G.prototype,"_rasterTileAlighmentInfo",void 0),(0,s._)([(0,h.Cb)({readOnly:!0})],G.prototype,"_isGlobalWrappableSource",null),(0,s._)([(0,h.Cb)(S.HQ)],G.prototype,"url",null),(0,s._)([(0,h.Cb)({type:String,json:{write:!0}})],G.prototype,"datasetName",void 0),(0,s._)([(0,h.Cb)({type:String,json:{write:!0}})],G.prototype,"datasetFormat",void 0),(0,s._)([(0,h.Cb)()],G.prototype,"rasterInfo",void 0),(0,s._)([(0,h.Cb)()],G.prototype,"ioConfig",void 0),(0,s._)([(0,h.Cb)()],G.prototype,"sourceJSON",void 0),G=(0,s._)([(0,m.j)("esri.layers.support.rasterDatasets.BaseRaster")],G);const U=G;let $=class extends U{constructor(){super(...arguments),this.datasetFormat="Function",this.tileType="Raster",this.rasterFunction=null,this._primaryRasters=null}async open(e){await this.init();const{rasterFunction:t}=this,{rasters:i,rasterIds:s}=t.getPrimaryRasters(),r=i.map((t=>t.rasterInfo?void 0:t.open(e)));await Promise.all(r);const n=i.map((({rasterInfo:e})=>e)),o=t.bind({rasterInfos:n,rasterIds:s});if(!o.success)throw new a.Z("raster-function:open",`cannot bind the function: ${o.error??""}`);await this.syncJobHandler(),this.set("sourceJSON",i[0].sourceJSON),this.set("rasterInfo",t.rasterInfo)}async syncJobHandler(){const{rasterFunction:e}=this;if(this._primaryRasters=e.getPrimaryRasters(),this.rasterJobHandler)return this.rasterJobHandler.updateRasterFunction(e)}async fetchPixels(e,t,i,s={}){const{rasters:r,rasterIds:n}=this._primaryRasters,a=r.map((r=>r.fetchPixels(e,t,i,s))),l=await Promise.all(a),c=l.map((e=>e.pixelBlock));if(c.every((e=>(0,o.Wi)(e))))return l[0];const u=l.find((e=>(0,o.pC)(e.pixelBlock)))?.extent??e,h=this.rasterJobHandler?await this.rasterJobHandler.process({extent:u,primaryPixelBlocks:c,primaryRasterIds:n}):this.rasterFunction.process({extent:u,primaryPixelBlocks:c,primaryRasterIds:n});return{...l[0],pixelBlock:h}}};(0,s._)([(0,h.Cb)({type:String,json:{write:!0}})],$.prototype,"datasetFormat",void 0),(0,s._)([(0,h.Cb)()],$.prototype,"tileType",void 0),(0,s._)([(0,h.Cb)()],$.prototype,"rasterFunction",void 0),$=(0,s._)([(0,m.j)("esri.layers.support.rasterDatasets.FunctionRaster")],$);const V=$;var X=i(55444),Y=i(67058),K=i(72758),Q=i(23808),ee=i(82971);const te=b.Z.getLogger("esri.layers.mixins.ImageryTileMixin"),ie=e=>{let t=class extends e{constructor(){super(...arguments),this._rasterJobHandler={instance:null,refCount:0,connectionPromise:null},this.bandIds=null,this.copyright=null,this.interpolation="nearest",this.multidimensionalDefinition=null,this.multidimensionalSubset=null,this.raster=null,this.rasterFunction=null,this.sourceJSON=null,this.symbolizer=null}get fullExtent(){return this.rasterInfo?.extent}get rasterInfo(){return this.raster?.rasterInfo}get spatialReference(){return this.rasterInfo?.spatialReference??ee.Z.WGS84}get tileInfo(){return this.rasterInfo?.storageInfo.tileInfo}set url(e){this._set("url",(0,_.Nm)(e,te))}set renderer(e){this._set("renderer",e),this.updateRenderer()}async convertVectorFieldData(e,t){if((0,o.Wi)(e)||!this.rasterInfo)return null;const i=this._rasterJobHandler.instance,s=this.rasterInfo.dataType;return i?i.convertVectorFieldData({pixelBlock:e,dataType:s},t):(0,j.KC)(e,s)}async createFlowMesh(e,t){const i=this._rasterJobHandler.instance;return i?i.createFlowMesh(e,t):(0,Q.GE)(e.meshType,e.simulationSettings,e.flowData,(0,o.pC)(t.signal)?t.signal:(new AbortController).signal)}normalizeRasterFetchOptions(e){const{multidimensionalInfo:t}=this.rasterInfo??{};if((0,o.Wi)(t))return e;let i=e.multidimensionalDefinition||this.multidimensionalDefinition;!(0,o.Wi)(i)&&i.length||(i=(0,O.Tj)(this.raster.rasterInfo,{multidimensionalSubset:this.multidimensionalSubset}));const s=e.timeExtent||this.timeExtent;if((0,o.pC)(i)&&(0,o.pC)(s)&&((0,o.pC)(s.start)||(0,o.pC)(s.end))){i=i.map((e=>e.clone()));const r=t.variables.find((({name:e})=>e===i[0].variableName))?.dimensions?.find((({name:e})=>"StdTime"===e)),n=i.find((({dimensionName:e})=>"StdTime"===e));if(!r||!n)return{...e,multidimensionalDefinition:null};const{start:a,end:l}=s,c=(0,o.Wi)(a)?null:a.getTime(),u=(0,o.Wi)(l)?null:l.getTime(),h=c??u,f=u??c;if((0,o.pC)(r.values)){const e=r.values.filter((e=>{if(Array.isArray(e)){if(h===f)return e[0]<=h&&e[1]>=h;const t=e[0]<=h&&e[1]>h||e[0]<f&&e[1]>=f,i=e[0]>=h&&e[1]<=f||e[0]<h&&e[1]>f;return t||i}return h===f?e===h:e>=h&&e<=f}));if(e.length){const t=e.sort(((e,t)=>h===f?(e[0]??e)-(t[0]??t):Math.abs((e[1]??e)-f)-Math.abs((t[1]??t)-f)))[0];n.values=[t]}else i=null}else if(r.hasRegularIntervals&&r.extent){const[e,t]=r.extent;h>t||f<e?i=null:n.values=h===f?[h]:[Math.max(e,h),Math.min(t,f)]}}return(0,o.pC)(i)&&(0,O.nb)(i,this.multidimensionalSubset)?{...e,multidimensionalDefinition:null}:{...e,multidimensionalDefinition:i}}async updateRenderer(){const{loaded:e,symbolizer:t}=this;if(!e||!t)return;if(JSON.stringify(this._cachedRendererJson)===JSON.stringify(this.renderer))return;const i=this._rasterJobHandler.instance;i&&(t.rendererJSON=(0,Y.ol)(this.renderer.toJSON()),t.bind(),await i.updateSymbolizer(t),this._cachedRendererJson=this.renderer.toJSON())}async applyRenderer(e,t){const i=e&&e.pixelBlock;if(!((0,o.pC)(i)&&i.pixels&&i.pixels.length>0))return null;let s;await this.updateRenderer();const r=this._rasterJobHandler.instance,n=this.bandIds??[];return s=r?await r.symbolize({...e,simpleStretchParams:t,bandIds:n}):this.symbolizer.symbolize({...e,simpleStretchParams:t,bandIds:n}),s}getTileUrl(e,t,i){return"RasterTileServer"===this.raster?.datasetFormat?`${this.url}/tile/${e}/${t}/${i}`:""}getCompatibleTileInfo(e,t,i=!1){if(!this.loaded||(0,o.Wi)(t))return null;if(i&&e.equals(this.spatialReference))return this.tileInfo;const s=(0,w.C5)(e);return k.Z.create({size:256,spatialReference:e,origin:s?{x:s.origin[0],y:s.origin[1]}:{x:t.xmin,y:t.ymax}})}getCompatibleFullExtent(e){return this.loaded?(this._compatibleFullExtent&&this._compatibleFullExtent.spatialReference.equals(e)||(this._compatibleFullExtent=this.raster.computeExtent(e)),this._compatibleFullExtent):null}async fetchTile(e,t,s,r={}){if(i(this),r.requestAsImageElement){const i=this.getTileUrl(e,t,s);return(0,I.default)(i,{responseType:"image",query:{...this.refreshParameters,...this.raster.ioConfig.customFetchParameters},signal:r.signal}).then((e=>e.data))}if((0,o.pC)(this.rasterInfo.multidimensionalInfo)&&(r=this.normalizeRasterFetchOptions(r),(0,o.Wi)(r.multidimensionalDefinition))){const i=r.tileInfo||this.rasterInfo.storageInfo.tileInfo;return{extent:this.raster.getTileExtentFromTileInfo(e,t,s,i),pixelBlock:null}}return await this._initJobHandler(),await this._updateRasterFunction(),"raster-shaded-relief"===this.renderer.type&&(r={...r,buffer:{cols:1,rows:1}}),this.raster.fetchTile(e,t,s,r)}async fetchPixels(e,t,i,s={}){return(0,o.pC)(this.rasterInfo.multidimensionalInfo)&&(s=this.normalizeRasterFetchOptions(s),(0,o.Wi)(s.multidimensionalDefinition))?{extent:e,pixelBlock:null}:(await this._initJobHandler(),await this._updateRasterFunction(),this.raster.fetchPixels(e,t,i,s))}async identify(e,t={}){return i(this),!(0,o.pC)(this.rasterInfo.multidimensionalInfo)||this.rasterInfo.hasMultidimensionalTranspose&&((0,O.WU)(t.multidimensionalDefinition)||t.transposedVariableName||t.timeExtent)||(t=this.normalizeRasterFetchOptions(t),!(0,o.Wi)(t.multidimensionalDefinition))?this.raster.identify(e,t):{location:e,value:null}}increaseRasterJobHandlerUsage(){this._rasterJobHandler.refCount++}decreaseRasterJobHandlerUsage(){this._rasterJobHandler.refCount--,this._rasterJobHandler.refCount<=0&&this._shutdownJobHandler()}hasStandardTime(){const e=this.rasterInfo?.multidimensionalInfo;if((0,o.Wi)(e)||"standard-time"!==this.rasterInfo?.dataType)return!1;const t=this.multidimensionalDefinition,i=t?.[0]?.variableName;return e.variables.some((e=>e.name===i&&(!t?.[0].dimensionName||e.dimensions.some((e=>"StdTime"===e.name)))))}getStandardTimeValue(e){return new Date(24*(e-25569)*3600*1e3).toString()}getMultidimensionalSubsetVariables(e){const t=e??this.rasterInfo.multidimensionalInfo;return(0,O.jj)(this.multidimensionalSubset,t)}_configDefaultSettings(){this._configDefaultInterpolation(),this.multidimensionalDefinition||(this.multidimensionalDefinition=(0,O.Tj)(this.raster.rasterInfo,{multidimensionalSubset:this.multidimensionalSubset})),this._configDefaultRenderer()}_initJobHandler(){if(null!=this._rasterJobHandler.connectionPromise)return this._rasterJobHandler.connectionPromise;const e=new T.Z;return this._rasterJobHandler.connectionPromise=e.initialize().then((()=>{i(this),this._rasterJobHandler.instance=e,this.raster.rasterJobHandler=e,this.renderer&&this.updateRenderer(),"Function"===this.raster.datasetFormat&&this.raster.syncJobHandler()})).catch((()=>{})),this._rasterJobHandler.connectionPromise}_shutdownJobHandler(){this._rasterJobHandler.instance&&this._rasterJobHandler.instance.destroy(),this._rasterJobHandler.instance=null,this._rasterJobHandler.connectionPromise=null,this._rasterJobHandler.refCount=0,this._cachedRendererJson=null,this.raster&&(this.raster.rasterJobHandler=null)}_configDefaultInterpolation(){if(null==this.interpolation){i(this);const e=(0,Y.In)(this.rasterInfo,this.raster.tileType,this.sourceJSON?.defaultResamplingMethod);this._set("interpolation",e)}}_configDefaultRenderer(){i(this);const e=this.raster.rasterInfo;if(this.bandIds||(this.bandIds=(0,Y.YD)(e)),!this.renderer){const t=(0,Y.Ob)(e,{bandIds:this.bandIds,variableName:(0,o.pC)(this.multidimensionalDefinition)?this.multidimensionalDefinition[0]?.variableName:null});"WCSServer"===this.raster.datasetFormat&&"raster-stretch"===t.type&&((e.statistics?.[0].max??0)>1e24||(e.statistics?.[0].min??0)<-1e24)&&(t.dynamicRangeAdjustment=!0,t.statistics=null,"none"===t.stretchType&&(t.stretchType="min-max")),this.renderer=t}this.symbolizer?(this.symbolizer.rendererJSON=(0,Y.ol)(this.renderer.toJSON()),this.symbolizer.rasterInfo=e):this.symbolizer=new K.Z({rendererJSON:this.renderer.toJSON(),rasterInfo:e});const t=this.symbolizer.bind();t.success||te.warn("imagery-tile-mixin",t.error||"The given renderer is not supported by the layer.")}async _updateRasterFunction(){if("imagery-tile"!==this.type||JSON.stringify(this.rasterFunction)===JSON.stringify(this._cachedRasterFunctionJson))return;let e=this.raster;if("Function"===e?.datasetFormat){const t=e.rasterFunction.getPrimaryRasters();e=t.rasters[0]}const{rasterFunction:t}=this;if(t){const i=(0,X.Ue)(t.toJSON(),{raster:e}),s=new V({rasterFunction:i});s.rasterJobHandler=this._rasterJobHandler.instance,await s.open(),this._cachedRasterFunctionJson=this.rasterFunction?.toJSON(),this.raster=s}else this.raster=e}};function i(e){if(!e.raster||!e.rasterInfo)throw new a.Z("imagery-tile","no raster")}return(0,s._)([(0,h.Cb)()],t.prototype,"_cachedRendererJson",void 0),(0,s._)([(0,h.Cb)()],t.prototype,"_cachedRasterFunctionJson",void 0),(0,s._)([(0,h.Cb)()],t.prototype,"_compatibleFullExtent",void 0),(0,s._)([(0,h.Cb)()],t.prototype,"_rasterJobHandler",void 0),(0,s._)([(0,h.Cb)()],t.prototype,"bandIds",void 0),(0,s._)([(0,h.Cb)({json:{origins:{service:{read:{source:"copyrightText"}}}}})],t.prototype,"copyright",void 0),(0,s._)([(0,h.Cb)({json:{read:!1}})],t.prototype,"fullExtent",null),(0,s._)([(0,h.Cb)()],t.prototype,"interpolation",void 0),(0,s._)([(0,h.Cb)()],t.prototype,"ioConfig",void 0),(0,s._)([(0,h.Cb)({type:[v.Z]})],t.prototype,"multidimensionalDefinition",void 0),(0,s._)([(0,h.Cb)({type:C.Z,json:{write:!0}})],t.prototype,"multidimensionalSubset",void 0),(0,s._)([(0,h.Cb)()],t.prototype,"raster",void 0),(0,s._)([(0,h.Cb)({type:R.Z})],t.prototype,"rasterFunction",void 0),(0,s._)([(0,h.Cb)()],t.prototype,"rasterInfo",null),(0,s._)([(0,h.Cb)()],t.prototype,"sourceJSON",void 0),(0,s._)([(0,h.Cb)({json:{read:!1}})],t.prototype,"spatialReference",null),(0,s._)([(0,h.Cb)({json:{read:!1}})],t.prototype,"tileInfo",null),(0,s._)([(0,h.Cb)(S.HQ)],t.prototype,"url",null),(0,s._)([(0,h.Cb)({types:n.dr})],t.prototype,"renderer",null),(0,s._)([(0,h.Cb)()],t.prototype,"symbolizer",void 0),t=(0,s._)([(0,m.j)("esri.layers.ImageryTileMixin")],t),t};var se=i(38009),re=i(16859),ne=i(34760),ae=i(72965),oe=i(28294),le=i(1231),ce=i(69608),ue=i(48526),he=i(20095);function fe(e){const t=e.fields,i=e.records,s=t.some((e=>"oid"===e.name.toLowerCase()))?"OBJECTID":"OID",r=[{name:s,type:"esriFieldTypeOID",alias:"OID"}].concat(t.map((e=>({name:e.name,type:"esriFieldType"+e.typeName,alias:e.name})))),n=r.map((e=>e.name)),a=[];let o=0,l=0;return i.forEach((e=>{const t={};for(t[s]=o++,l=1;l<n.length;l++)t[n[l]]=e[l-1];a.push({attributes:t})})),{displayFieldName:"",fields:r,features:a}}class de{static get supportedVersions(){return[5]}static parse(e){const t=new DataView(e),i=3&t.getUint8(0);if(3!==i)return{header:{version:i},recordSet:null};const s=t.getUint32(4,!0),r=t.getUint16(8,!0),n=t.getUint16(10,!0),a={version:i,recordCount:s,headerByteCount:r,recordByteCount:n};let o=32;const l=[],c=[];let u;if(3===i){for(;13!==t.getUint8(o);)u=String.fromCharCode(t.getUint8(o+11)).trim(),l.push({name:(0,he.f)(new Uint8Array(e,o,11)),type:u,typeName:["String","Date","Double","Boolean","String","Integer"][["C","D","F","L","M","N"].indexOf(u)],length:t.getUint8(o+16)}),o+=32;if(o+=1,l.length>0)for(;c.length<s&&e.byteLength-o>n;){const i=[];32===t.getUint8(o)?(o+=1,l.forEach((t=>{if("C"===t.type)i.push((0,he.f)(new Uint8Array(e,o,t.length)).trim());else if("N"===t.type)i.push(parseInt(String.fromCharCode.apply(null,new Uint8Array(e,o,t.length)).trim(),10));else if("F"===t.type)i.push(parseFloat(String.fromCharCode.apply(null,new Uint8Array(e,o,t.length)).trim()));else if("D"===t.type){const s=String.fromCharCode.apply(null,new Uint8Array(e,o,t.length)).trim();i.push(new Date(parseInt(s.substring(0,4),10),parseInt(s.substring(4,6),10)-1,parseInt(s.substring(6,8),10)))}o+=t.length})),c.push(i)):o+=n}}return{header:a,fields:l,records:c,recordSet:fe({fields:l,records:c})}}}var pe=i(87521),me=i(74889);const ye=new Map;ye.set("int16","esriFieldTypeSmallInteger"),ye.set("int32","esriFieldTypeInteger"),ye.set("int64","esriFieldTypeInteger"),ye.set("float32","esriFieldTypeSingle"),ye.set("float64","esriFieldTypeDouble"),ye.set("text","esriFieldTypeString");let ge=class extends U{constructor(){super(...arguments),this.storageInfo=null,this.datasetFormat="CRF"}async open(e){await this.init();const{data:t}=await this.request(this.url+"/conf.json",{signal:e?.signal});if(!this._validateHeader(t))throw new a.Z("cloudraster:open","Invalid or unsupported conf.json.");this.datasetName=this.url.slice(this.url.lastIndexOf("/")+1);const{storageInfo:i,rasterInfo:s}=this._parseHeader(t);if("thematic"===s.dataType){const e=await this._fetchAuxiliaryInformation();s.attributeTable=e}this._set("storageInfo",i),this._set("rasterInfo",s),this.ioConfig.retryCount=this.ioConfig.retryCount||0}async fetchRawTile(e,t,i,s={}){const{transposeInfo:r}=this.rasterInfo.storageInfo,{transposedVariableName:n}=s,a=!(!r||!n),o=a?0:this.rasterInfo.storageInfo.maximumPyramidLevel-e;if(o<0)return null;const l=this._buildCacheFilePath(o,t,i,s.multidimensionalDefinition,n),c=this._getIndexRecordFromBundle(t,i,a),u=await this.request(l,{range:{from:0,to:this.storageInfo.headerSize-1},responseType:"array-buffer",signal:s.signal});if(!u)return null;const h=new Uint8Array(u.data),f=this._getTileEndAndContentType(h,c);if(0===f.recordSize)return null;const d=await this.request(l,{range:{from:f.position,to:f.position+f.recordSize},responseType:"array-buffer",signal:s.signal});if(!d)return null;const[p,m]=this._getTileSize(a);return this.decodePixelBlock(d.data,{width:p,height:m,planes:null,pixelType:null,returnInterleaved:a})}_validateHeader(e){return e&&"RasterInfo"===e.type&&!["origin","extent","geodataXform","LODInfos","blockWidth","blockHeight","bandCount","pixelType","pixelSizeX","pixelSizeY","format","packetSize"].some((t=>!e[t]))}_parseHeader(e){const t=["u1","u2","u4","u8","s8","u16","s16","u32","s32","f32","f64"][e.pixelType],{bandCount:i,histograms:s,colormap:r,blockWidth:n,blockHeight:a,firstPyramidLevel:o,maximumPyramidLevel:l}=e,c=e.statistics&&e.statistics.map((e=>({min:e.min,max:e.max,avg:e.mean,stddev:e.standardDeviation,median:e.median,mode:e.mode}))),u=e.extent.spatialReference,h=e.geodataXform?.spatialReference,f=new ee.Z(u?.wkid||u?.wkt?u:h);let d=new q.Z({xmin:e.extent.xmin,ymin:e.extent.ymin,xmax:e.extent.xmax,ymax:e.extent.ymax,spatialReference:f});const p=new D.Z({x:e.pixelSizeX,y:e.pixelSizeY,spatialReference:f}),m=Math.round((d.xmax-d.xmin)/p.x),y=Math.round((d.ymax-d.ymin)/p.y),g=this._parseTransform(e.geodataXform),x=g?d:null;g&&(d=g.forwardTransform(d),p.x=(d.xmax-d.xmin)/m,p.y=(d.ymax-d.ymin)/y);const I=e.properties??{},b=e.format.toLowerCase().replace("cache/",""),w=new D.Z(e.origin.x,e.origin.y,f);let _,S,v,C;if(r&&r.colors)for(_=[],S=0;S<r.colors.length;S++)v=r.colors[S],C=r.values?r.values[S]:S,_.push([C,255&v,v<<16>>>24,v<<8>>>24,v>>>24]);const R=e.LODInfos,T=[];for(S=0;S<R.levels.length;S++)T.push({level:R.levels[S],resolution:R.resolutions[S],scale:96/.0254*R.resolutions[S]});const F=new k.Z({dpi:96,lods:T,format:b,origin:w,size:[n,a],spatialReference:f}),P={recordSize:8,packetSize:e.packetSize,headerSize:e.packetSize*e.packetSize*8+64},O=[{maxCol:Math.ceil(m/n)-1,maxRow:Math.ceil(y/a)-1,minCol:0,minRow:0}];let B=2;if(l>0)for(S=0;S<l;S++)O.push({maxCol:Math.ceil(m/B/n)-1,maxRow:Math.ceil(y/B/a)-1,minCol:0,minRow:0}),B*=2;const z=e.mdInfo;let J=null;if(z&&I._yxs){const e=I._yxs;J={packetSize:e.PacketSize,tileSize:[e.TileXSize,e.TileYSize]}}return{storageInfo:P,rasterInfo:new ue.Z({width:m,height:y,pixelType:t,bandCount:i,extent:d,nativeExtent:x,transform:g,spatialReference:f,pixelSize:p,keyProperties:I,statistics:c,histograms:s,multidimensionalInfo:z,colormap:_,storageInfo:new M.Z({blockWidth:n,blockHeight:a,pyramidBlockWidth:n,pyramidBlockHeight:a,origin:w,tileInfo:F,transposeInfo:J,firstPyramidLevel:o,maximumPyramidLevel:l,blockBoundary:O})})}}_parseTransform(e){if(!(0,pe.j)(e))throw new a.Z("cloudraster:open","the data contains unsupported geodata transform types");const t=(0,pe.c)(e);if("identity"===t.type)return null;if("polynomial"!==t.type||!t.forwardCoefficients?.length||!t.inverseCoefficients?.length)throw new a.Z("cloudraster:open","the data contains unsupported geodata transforms - both forward and inverse coefficients are required currently");return t}async _fetchAuxiliaryInformation(e){const t=this.request(this.url+"/conf.vat.json",{signal:e}).then((e=>e.data)).catch((()=>null)),i=this.request(this.url+"/conf.vat.dbf",{responseType:"array-buffer",signal:e}).then((e=>e.data)).catch((()=>null)),s=await Promise.all([t,i]);let r;if(s[0]){let e=s[0].fields;const t=s[0].values;if(e&&t){e=e.map((e=>({type:"OID"===e.name?"esriFieldTypeOID":ye.get(e.type),name:e.name,alias:e.alias||e.name})));const i=t.map((e=>({attributes:e})));e&&t&&(r={fields:e,features:i})}}return!r&&s[1]&&(r=de.parse(s[1]).recordSet),me.default.fromJSON(r)}_buildCacheFilePath(e,t,i,s,r){const n=this._getPackageSize(!!r),a=Math.floor(t/n)*n,l=Math.floor(i/n)*n,c="R"+this._toHexString4(a)+"C"+this._toHexString4(l);let u="L";u+=e>=10?e.toString():"0"+e.toString();const{multidimensionalInfo:h}=this.rasterInfo,f=s?.[0];if((0,o.Wi)(h)||!f)return`${this.url}/_alllayers/${u}/${c}.bundle`;let d="_yxs";if(!r){d=h.variables.find((e=>e.name===f.variableName)).dimensions[0].values.indexOf(f.values[0]).toString(16);const e=4-d.length;for(let t=0;t<e;t++)d="0"+d;d="S"+d}const p=this._getVariableFolderName(r||f.variableName);return`${this.url}/_alllayers/${p}/${d}/${u}/${c}.bundle`}_getPackageSize(e=!1){const{transposeInfo:t}=this.rasterInfo.storageInfo;return e&&(0,o.pC)(t)?t.packetSize??0:this.storageInfo.packetSize}_getTileSize(e=!1){const{storageInfo:t}=this.rasterInfo,{transposeInfo:i}=t;return e&&(0,o.pC)(i)?i.tileSize:t.tileInfo.size}_getVariableFolderName(e){return""===(e=e.trim())?"_v":e.replace(/[\{|\}\-]/g,"_").replace("\\*","_v")}_getIndexRecordFromBundle(e,t,i=!1){const s=this._getPackageSize(i),r=s*(e%s)+t%s;if(r<0)throw"Invalid level / row / col";return 20+r*this.storageInfo.recordSize+44}_getTileEndAndContentType(e,t){const i=e.subarray(t,t+8);let s,r=0;for(s=0;s<5;s++)r|=(255&i[s])<<8*s;const n=0xffffffffff&r;for(r=0,s=5;s<8;s++)r|=(255&i[s])<<8*(s-5);return{position:n,recordSize:0xffffffffff&r}}_toHexString4(e){let t=e.toString(16);if(4!==t.length){let e=4-t.length;for(;e-- >0;)t="0"+t}return t}};(0,s._)([(0,h.Cb)({readOnly:!0})],ge.prototype,"storageInfo",void 0),(0,s._)([(0,h.Cb)({type:String,json:{write:!0}})],ge.prototype,"datasetFormat",void 0),ge=(0,s._)([(0,m.j)("esri.layers.support.rasterDatasets.CloudRaster")],ge);const xe=ge;var Ie=i(80442),be=i(15612);let we=class extends U{constructor(){super(...arguments),this.datasetFormat="MEMORY",this.data=null}async open(e){await this.init();const t=this.data,{pixelBlock:i,statistics:s,histograms:r,name:n,keyProperties:a,nativeExtent:o,transform:l}=this.data,{width:c,height:u,pixelType:h}=i,f=t.extent??new q.Z({xmin:-.5,ymin:.5,xmax:c-.5,ymax:u-.5,spatialReference:new ee.Z({wkid:3857})}),d=t.isPseudoSpatialReference??!t.extent,p={x:f.width/c,y:f.height/u},m=new ue.Z({width:c,height:u,pixelType:h,extent:f,nativeExtent:o,transform:l,pixelSize:p,spatialReference:f.spatialReference,bandCount:3,keyProperties:a||{},statistics:s,isPseudoSpatialReference:d,histograms:r});this.createRemoteDatasetStorageInfo(m,512,512),this._set("rasterInfo",m),this.updateTileInfo(),await this._buildInMemoryRaster(i,{width:512,height:512},e),this.datasetName=n,this.url="/InMemory/"+n}fetchRawTile(e,t,i,s={}){const r=this._pixelBlockTiles.get(`${e}/${t}/${i}`);return Promise.resolve(r)}async _buildInMemoryRaster(e,t,i){const s=this.rasterInfo.storageInfo.maximumPyramidLevel,r=this.rasterJobHandler?this.rasterJobHandler.split({pixelBlock:e,tileSize:t,maximumPyramidLevel:s},i):Promise.resolve((0,L.Vl)(e,t,s)),n=(0,o.pC)(this.rasterInfo.statistics),l=(0,o.pC)(this.rasterInfo.histograms),u=n?Promise.resolve({statistics:null,histograms:null}):this.rasterJobHandler?this.rasterJobHandler.estimateStatisticsHistograms({pixelBlock:e},i):Promise.resolve((0,be.Hv)(e)),h=await(0,c.as)([r,u]);if(!h[0].value&&h[1].value)throw new a.Z("inmemory-raster:open","failed to build in memory raster");this._pixelBlockTiles=h[0].value,n||(this.rasterInfo.statistics=h[1].value?.statistics),l||(this.rasterInfo.histograms=h[1].value?.histograms)}};(0,s._)([(0,h.Cb)({type:String,json:{write:!0}})],we.prototype,"datasetFormat",void 0),(0,s._)([(0,h.Cb)()],we.prototype,"data",void 0),we=(0,s._)([(0,m.j)("esri.layers.support.rasterDatasets.InMemoryRaster")],we);const _e=we;function Se(e,t){if(!e||!t)return[];let i=t;t.includes("/")?(i=t.slice(0,t.indexOf("/")),t=t.slice(t.indexOf("/")+1)):t="";const s=[];if(t){const r=Se(e,i);for(let e=0;e<r.length;e++)Se(r[e],t).forEach((e=>s.push(e)));return s}const r=e.getElementsByTagNameNS("*",i);if(!r||0===r.length)return[];for(let e=0;e<r.length;e++)s.push(r[e]||r.item[e]);return s}function ve(e,t){if(!e||!t)return null;let i=t;t.includes("/")?(i=t.slice(0,t.indexOf("/")),t=t.slice(t.indexOf("/")+1)):t="";const s=Se(e,i);return s.length>0?t?ve(s[0],t):s[0]:null}function Ce(e,t=null){const i=t?ve(e,t):e;let s;return i?(s=i.textContent||i.nodeValue,s?s.trim():null):null}function Re(e,t){return function(e,t){const i=Se(e,t),s=[];let r;for(let e=0;e<i.length;e++)r=i[e].textContent||i[e].nodeValue,r&&(r=r.trim(),""!==r&&s.push(r));return s}(e,t).map((e=>Number(e)))}function Te(e,t){const i=Ce(e,t);return Number(i)}function ke(e,t){const i=e?.nodeName?.toLowerCase(),s=t.toLowerCase();return i.slice(i.lastIndexOf(":")+1)===s}var Fe=i(87390);function Pe(e,t){if(!e||!t)return null;const i=[];for(let s=0;s<e.length;s++)i.push(e[s]),i.push(t[s]);return i}function Me(e){if(!e)return null;let t=Number(e);if(!isNaN(t)&&0!==t)return new ee.Z({wkid:t});if((e=String(e)).startsWith("COMPD_CS")){if(!e.includes("VERTCS")||!e.includes("GEOGCS")&&!e.startsWith("PROJCS"))return null;const i=e.indexOf("VERTCS"),s=e.indexOf("PROJCS"),r=s>-1?s:e.indexOf("GEOGCS");if(-1===r)return null;const n=e.slice(r,e.lastIndexOf("]",i)+1).trim(),a=e.slice(i,e.lastIndexOf("]")).trim();t=Oe(n);const o=new ee.Z(t?{wkid:t}:{wkt:n}),l=Oe(a);return l&&(o.vcsWkid=l),o}return e.startsWith("GEOGCS")||e.startsWith("PROJCS")?(t=Oe(e),new ee.Z(0!==t?{wkid:t}:{wkt:e})):null}function Oe(e){const t=e.replace(/\]/g,"[").replace(/\"/g,"").split("[").map((e=>e.trim())).filter((e=>""!==e)),i=t[t.length-1].split(","),s=i[0]?.toLowerCase();if(("epsg"===s||"esri"===s)&&e.endsWith('"]]')){const e=Number(i[1]);if(!isNaN(e)&&0!==e)return e}return 0}function Be(e){if("pamdataset"!==e?.documentElement.tagName?.toLowerCase())return{};const t={spatialReference:null,transform:null,metadata:{},rasterBands:[],statistics:null,histograms:null};e.documentElement.childNodes.forEach((e=>{if(1===e.nodeType)if(ke(e,"SRS")){if(!t.spatialReference){const i=Ce(e);t.spatialReference=Me(i)}}else if(ke(e,"Metadata"))if("xml:ESRI"===e.getAttribute("domain")){const{spatialReference:i,transform:s}=function(e){const t=ve(e,"GeodataXform"),i=Me(Te(t,"SpatialReference/WKID")||Ce(t,"SpatialReference/WKT"));if("typens:PolynomialXform"!==t.getAttribute("xsi:type"))return{spatialReference:i,transform:null};const s=Te(t,"PolynomialOrder")??1,r=Re(t,"CoeffX/Double"),n=Re(t,"CoeffY/Double"),a=Re(t,"InverseCoeffX/Double"),o=Re(t,"InverseCoeffY/Double"),l=Pe(r,n),c=Pe(a,o);return{spatialReference:i,transform:l&&c&&l.length&&c.length?new Fe.Z({spatialReference:i,polynomialOrder:s,forwardCoefficients:l,inverseCoefficients:c}):null}}(e);t.transform=s,t.spatialReference||(t.spatialReference=i)}else Se(e,"MDI").forEach((e=>t.metadata[e.getAttribute("key")]=Ce(e)));else if(ke(e,"PAMRasterBand")){const i=function(e){const t=Te(e,"NoDataValue"),i=ve(e,"Histograms/HistItem"),s=Te(i,"HistMin"),r=Te(i,"HistMax"),n=Te(i,"BucketCount"),a=Ce(i,"HistCounts")?.split("|").map((e=>Number(e)));let o,l,c,u;Se(e,"Metadata/MDI").forEach((e=>{const t=Number(e.textContent??e.nodeValue);switch(e.getAttribute("key").toUpperCase()){case"STATISTICS_MINIMUM":o=t;break;case"STATISTICS_MAXIMUM":l=t;break;case"STATISTICS_MEAN":c=t;break;case"STATISTICS_STDDEV":u=t}}));const h=Te(e,"Metadata/SourceBandIndex");return{noDataValue:t,histogram:a?.length&&null!=s&&null!=r?{min:s,max:r,size:n||a.length,counts:a}:null,sourceBandIndex:h,statistics:null!=o&&null!=l?{min:o,max:l,avg:c,stddev:u}:null}}(e);null!=i.sourceBandIndex&&null==t.rasterBands[i.sourceBandIndex]?t.rasterBands[i.sourceBandIndex]=i:t.rasterBands.push(i)}}));const i=t.rasterBands;if(i.length){const e=!!i[0].statistics;t.statistics=e?i.map((e=>e.statistics)).filter(o.pC):null;const s=!!i[0].histogram;t.histograms=s?i.map((e=>e.histogram)).filter(o.pC):null}return t}let De=class extends U{async open(e){await this.init();const t=await this._fetchData(e);let{spatialReference:i,statistics:s,histograms:r,transform:n}=await this._fetchAuxiliaryData(e);const a=!i;a&&(i=new ee.Z({wkid:3857})),r?.length&&null==s&&(s=(0,be.Oh)(r));const{width:o,height:l}=t;let c=new q.Z({xmin:-.5,ymin:.5-l,xmax:o-.5,ymax:.5,spatialReference:i});const u=n?n.forwardTransform(c):c;let h=!0;if(n){const e=n.forwardCoefficients;h=e&&0===e[1]&&0===e[2],h&&(n=null,c=u)}const f=new _e({data:{extent:u,nativeExtent:c,transform:n,pixelBlock:t,statistics:s,histograms:r,keyProperties:{DateType:"Processed"},isPseudoSpatialReference:a}});await f.open(),f.data=null,this._set("rasterInfo",f.rasterInfo),this._inMemoryRaster=f}fetchRawTile(e,t,i,s={}){return this._inMemoryRaster.fetchRawTile(e,t,i,s)}async _fetchData(e){const{data:t}=await this.request(this.url,{responseType:"array-buffer",signal:e?.signal}),i=(0,A.y)(t).toUpperCase();if("JPG"!==i&&"PNG"!==i&&"GIF"!==i&&"BMP"!==i)throw new a.Z("image-aux-raster:open","the data is not a supported format");this._set("datasetFormat",i);const s=i.toLowerCase(),r="gif"===s||"bmp"===s||!(0,Ie.Z)("ios");return await this.decodePixelBlock(t,{format:s,useCanvas:r,hasNoZlibMask:!0})}async _fetchAuxiliaryData(e){const t=(0,o.Wg)(e?.signal),i=this.ioConfig.skipExtensions??[],s=i.includes("aux.xml")?null:this.request(this.url+".aux.xml",{responseType:"xml",signal:t}),r=this.datasetFormat,n="JPG"===r?"jgw":"PNG"===r?"pgw":"BMP"===r?"bpw":null,a=n&&i.includes(n)?null:this.request(this.url.slice(0,this.url.lastIndexOf("."))+"."+n,{responseType:"text",signal:t}),l=await(0,c.as)([s,a]);if(t?.aborted)throw(0,c.zE)();const u=Be(l[0].value?.data);if(!u.transform){const e=l[1].value?l[1].value.data.split("\n").slice(0,6).map((e=>Number(e))):null;u.transform=6===e?.length?new Fe.Z({forwardCoefficients:[e[4],e[5],e[0],-e[1],e[2],-e[3]]}):null}return u}};(0,s._)([(0,h.Cb)({type:String,json:{write:!0}})],De.prototype,"datasetFormat",void 0),De=(0,s._)([(0,m.j)("esri.layers.support.rasterDatasets.ImageAuxRaster")],De);const ze=De;var Je=i(17452),Ne=i(45322),We=i(56608),Ee=i(29680),He=i(26059);let Ze=class extends U{constructor(){super(...arguments),this._levelOffset=0,this._tilemapCache=null,this._slices=null,this.datasetFormat="RasterTileServer",this.tileType=null}async open(e){await this.init();const t=e&&e.signal,i=this.sourceJSON?{data:this.sourceJSON}:await this.request(this.url,{query:{f:"json"},signal:t});i.ssl&&(this.url=this.url.replace(/^http:/i,"https:"));const s=i.data;if(this.sourceJSON=s,!s)throw new a.Z("imageserverraster:open","cannot initialize tiled image service, missing service info");if(!s.tileInfo)throw new a.Z("imageserverraster:open","use ImageryLayer to open non-tiled image services");this._fixScaleInServiceInfo(),this.tileType=s.cacheType,null==this.tileType&&(["jpg","jpeg","png","png8","png24","png32","mixed"].includes(s.tileInfo.format.toLowerCase())?this.tileType="Map":"lerc"===s.tileInfo.format.toLowerCase()?this.tileType="Elevation":this.tileType="Raster"),this.datasetName=s.name?.slice(s.name.indexOf("/")+1)??"";const r=await this._fetchRasterInfo({signal:t});if((0,o.Wi)(r))throw new a.Z("image-server-raster:open","cannot initialize image service");const n="Map"===this.tileType?(0,Ne.d)(s.tileInfo,s):k.Z.fromJSON(s.tileInfo);(0,o.O3)(n);const[l,c]=this._computeMinMaxLOD(r,n),{extent:u,pixelSize:h}=r,f=.5/r.width*h.x,d=Math.max(h.x,h.y),{lods:p}=n;("Map"!==this.tileType&&0!==s.maxScale||Math.abs(h.x-h.y)>f||!p.some((e=>Math.abs(e.resolution-d)<f)))&&(h.x=h.y=l.resolution,r.width=Math.ceil((u.xmax-u.xmin)/h.x-.1),r.height=Math.ceil((u.ymax-u.ymin)/h.y-.1));const m=l.level-c.level,[y,g]=n.size,x=[];p.forEach((e=>{e.level>=c.level&&e.level<=l.level&&x.push({x:e.resolution,y:e.resolution})})),x.sort(((e,t)=>e.x-t.x));const I=this.computeBlockBoundary(u,y,g,n.origin,x,m),b=x.length>1?x.slice(1):null;let w;if(s.transposeInfo&&(w={tileSize:[s.transposeInfo.rows,s.transposeInfo.cols],packetSize:r.keyProperties?._yxs.PacketSize??0}),r.storageInfo=new M.Z({blockWidth:n.size[0],blockHeight:n.size[1],pyramidBlockWidth:n.size[0],pyramidBlockHeight:n.size[1],pyramidResolutions:b,compression:n.format,origin:n.origin,firstPyramidLevel:1,maximumPyramidLevel:m,tileInfo:n,transposeInfo:w,blockBoundary:I}),this._fixGCSShift(r),this._set("rasterInfo",r),s.capabilities.toLowerCase().includes("tilemap")){const e={tileInfo:r.storageInfo.tileInfo,parsedUrl:(0,Je.mN)(this.url),url:this.url,tileServers:[],type:"tile"};this._tilemapCache=new We.y({layer:e})}}async fetchRawTile(e,t,i,s={}){const{storageInfo:r,extent:n}=this.rasterInfo,{transposeInfo:a}=r,l=(0,o.pC)(a)&&!!s.transposedVariableName;if(this._slices&&!l&&null==s.sliceId)return null;const c=l?0:r.maximumPyramidLevel-e+this._levelOffset,u=`${this.url}/tile/${c}/${t}/${i}`,h=this._slices?l?{variable:s.transposedVariableName}:{sliceId:s.sliceId||0}:null,{data:f}=await this.request(u,{query:h,responseType:"array-buffer",signal:s.signal});if(!f)return null;const d=l?a.tileSize:r.tileInfo.size,p=await this.decodePixelBlock(f,{width:d[0],height:d[1],planes:null,pixelType:null,isPoint:"Elevation"===this.tileType,returnInterleaved:l}),m=r.blockBoundary[e];if("jpg"!==r.compression||i>m.minCol&&i<m.maxCol&&t>m.minRow&&t<m.maxRow)return p;const{origin:y,blockWidth:g,blockHeight:x}=r,{x:I,y:b}=this.getPyramidPixelSize(e),w=Math.round((n.xmin-y.x)/I)%g,_=Math.round((n.xmax-y.x)/I)%g||g,S=Math.round((y.y-n.ymax)/b)%x,v=Math.round((y.y-n.ymin)/b)%x||x,C=i===m.minCol?w:0,R=t===m.minRow?S:0,T=i===m.maxCol?_:g,k=t===m.maxRow?v:x;return(0,L.pW)(p,{x:C,y:R},{width:T-C,height:k-R}),p}getSliceIndex(e){if(!this._slices||(0,o.Wi)(e)||0===e.length)return null;const t=e;for(let e=0;e<this._slices.length;e++){const i=this._slices[e].multidimensionalDefinition;if(i.length===t.length&&!i.some((e=>{const i=t.find((t=>e.variableName===t.variableName&&t.dimensionName===e.dimensionName));return!i||(Array.isArray(e.values[0])?`${e.values[0][0]}-${e.values[0][1]}`:e.values[0])!==(Array.isArray(i.values[0])?`${i.values[0][0]}-${i.values[0][1]}`:i.values[0])})))return e}return null}async fetchVariableStatisticsHistograms(e,t){const i=this.request(this.url+"/statistics",{query:{variable:e,f:"json"},signal:t}).then((e=>e.data?.statistics)),s=this.request(this.url+"/histograms",{query:{variable:e,f:"json"},signal:t}).then((e=>e.data?.histograms)),r=await Promise.all([i,s]);return r[0]&&r[0].forEach((e=>{e.avg=e.mean,e.stddev=e.standardDeviation})),{statistics:r[0]||null,histograms:r[1]||null}}async computeBestPyramidLevelForLocation(e,t={}){if(!this._tilemapCache)return 0;let i=this.identifyPixelLocation(e,0,(0,o.Wg)(t.datumTransformation));if(null===i)return null;let s=0;const{maximumPyramidLevel:r}=this.rasterInfo.storageInfo;let n=r-s+this._levelOffset;const a=i.srcLocation;for(;n>=0;){try{if("available"===await this._tilemapCache.fetchAvailability(n,i.row,i.col,t))break}catch{}if(n--,s++,i=this.identifyPixelLocation(a,s,(0,o.Wg)(t.datumTransformation)),null===i)return null}return-1===n||null==i?null:s}async _fetchRasterInfo(e){const t=this.sourceJSON;if("Map"===this.tileType){const e=t.fullExtent||t.extent,i=Math.ceil((e.xmax-e.xmin)/t.pixelSizeX-.1),s=Math.ceil((e.ymax-e.ymin)/t.pixelSizeY-.1),r=ee.Z.fromJSON(t.spatialReference||e.spatialReference),n=new D.Z({x:t.pixelSizeX,y:t.pixelSizeY,spatialReference:r});return new ue.Z({width:i,height:s,bandCount:3,extent:q.Z.fromJSON(e),spatialReference:r,pixelSize:n,pixelType:"u8",statistics:null,keyProperties:{DataType:"processed"}})}const{signal:i}=e,s=(0,He.g)(this.url,this.sourceJSON,{signal:i,query:this.ioConfig.customFetchParameters}),r=t.hasMultidimensions?this.request(`${this.url}/slices`,{query:{f:"json"},signal:i}).then((e=>e.data&&e.data.slices)).catch((()=>null)):null,n=await Promise.all([s,r]);return this._slices=n[1],n[0]}_fixScaleInServiceInfo(){const{sourceJSON:e}=this;e.minScale&&e.minScale<0&&(e.minScale=0),e.maxScale&&e.maxScale<0&&(e.maxScale=0)}_fixGCSShift(e){const{extent:t,spatialReference:i}=e;t.xmin>-1&&t.xmax>181&&i?.wkid&&i.isGeographic&&(e.nativeExtent=e.extent,e.transform=new Ee.Z,e.extent=e.transform.forwardTransform(t))}_computeMinMaxLOD(e,t){const{pixelSize:i}=e,s=.5/e.width*i.x,{lods:r}=t,n=t.lodAt(Math.max.apply(null,r.map((e=>e.level)))),a=t.lodAt(Math.min.apply(null,r.map((e=>e.level)))),{tileType:o}=this;if("Map"===o)return this._levelOffset=r[0].level,[n,a];if("Raster"===o)return[r.find((e=>e.resolution===i.x))??n,a];const{minScale:l,maxScale:c}=this.sourceJSON;let u=n;c>0&&(u=r.find((e=>Math.abs(e.scale-c)<s)),u||(u=r.filter((e=>e.scale>c)).sort(((e,t)=>e.scale>t.scale?1:-1))[0]??n));let h=a;return l>0&&(h=r.find((e=>Math.abs(e.scale-l)<s))??a,this._levelOffset=h.level-a.level),[u,h]}};(0,s._)([(0,h.Cb)({type:String,json:{write:!0}})],Ze.prototype,"datasetFormat",void 0),(0,s._)([(0,h.Cb)()],Ze.prototype,"tileType",void 0),Ze=(0,s._)([(0,m.j)("esri.layers.support.rasterDatasets.ImageServerRaster")],Ze);const Ae=Ze;var Le=i(5847),je=i(48279);const qe=new Map;qe.set("Int8","s8"),qe.set("UInt8","u8"),qe.set("Int16","s16"),qe.set("UInt16","u16"),qe.set("Int32","s32"),qe.set("UInt32","u32"),qe.set("Float32","f32"),qe.set("Float64","f32"),qe.set("Double64","f32");const Ge=new Map;Ge.set("none",{blobExtension:".til",isOneSegment:!0,decoderFormat:"bip"}),Ge.set("lerc",{blobExtension:".lrc",isOneSegment:!1,decoderFormat:"lerc"}),Ge.set("deflate",{blobExtension:".pzp",isOneSegment:!0,decoderFormat:"deflate"}),Ge.set("jpeg",{blobExtension:".pjg",isOneSegment:!0,decoderFormat:"jpg"});let Ue=class extends U{constructor(){super(...arguments),this._files=null,this._storageIndex=null,this.datasetFormat="MRF"}async open(e){await this.init(),this.datasetName=this.url.slice(this.url.lastIndexOf("/")+1);const t=e?(0,o.Wg)(e.signal):null,i=await this.request(this.url,{responseType:"xml",signal:t}),{rasterInfo:s,files:r}=this._parseHeader(i.data);if(-1===this.ioConfig.skipExtensions?.indexOf("aux.xml")){const t=await this._fetchAuxiliaryData(e);null!=t&&(s.statistics=t.statistics??s.statistics,s.histograms=t.histograms,t.histograms&&(0,o.Wi)(s.statistics)&&(s.statistics=(0,be.Oh)(t.histograms)))}this._set("rasterInfo",s),this._files=r;const n=await this.request(r.index,{responseType:"array-buffer",signal:t});this._storageIndex=this._parseIndex(n.data);const{blockWidth:a,blockHeight:l}=this.rasterInfo.storageInfo,c=this.rasterInfo.storageInfo.pyramidScalingFactor,{width:u,height:h}=this.rasterInfo,f=[],d=this._getBandSegmentCount();let p=0,m=-1;for(;p<this._storageIndex.length;){m++;const e=Math.ceil(u/a/c**m)-1,t=Math.ceil(h/l/c**m)-1;p+=(e+1)*(t+1)*d*4,f.push({maxRow:t,maxCol:e,minCol:0,minRow:0})}this.rasterInfo.storageInfo.blockBoundary=f,m>0&&(this.rasterInfo.storageInfo.firstPyramidLevel=1,this.rasterInfo.storageInfo.maximumPyramidLevel=m),this.updateTileInfo()}async fetchRawTile(e,t,i,s={}){const{blockWidth:r,blockHeight:n,blockBoundary:a}=this.rasterInfo.storageInfo,l=a[e];if(!l||l.maxRow<t||l.maxCol<i||l.minRow>t||l.minCol>i)return null;const{bandCount:c,pixelType:u}=this.rasterInfo,{ranges:h,actualTileWidth:f,actualTileHeight:d}=this._getTileLocation(e,t,i);if(!h||0===h.length)return null;if(0===h[0].from&&0===h[0].to){const e=new Uint8Array(r*n);return new Le.Z({width:r,height:n,pixels:null,mask:e,validPixelCount:0})}const{bandIds:p}=this.ioConfig,m=this._getBandSegmentCount(),y=[];let g=0;for(g=0;g<m;g++)(!p||p.indexOf[g]>-1)&&y.push(this.request(this._files.data,{range:{from:h[g].from,to:h[g].to},responseType:"array-buffer",signal:s.signal}));const x=await Promise.all(y),I=x.map((e=>e.data.byteLength)).reduce(((e,t)=>e+t)),b=new Uint8Array(I);let w=0;for(g=0;g<m;g++)b.set(new Uint8Array(x[g].data),w),w+=x[g].data.byteLength;const _=Ge.get(this.rasterInfo.storageInfo.compression).decoderFormat,S=await this.decodePixelBlock(b.buffer,{width:r,height:n,format:_,planes:p?.length||c,pixelType:u});if((0,o.pC)(this.rasterInfo.noDataValue)&&"lerc"!==_&&!S.mask){const e=this.rasterInfo.noDataValue[0];if(null!=e){const t=S.width*S.height,i=new Uint8Array(t);if(Math.abs(e)>1e24)for(g=0;g<t;g++)Math.abs((S.pixels[0][g]-e)/e)>1e-6&&(i[g]=1);else for(g=0;g<t;g++)S.pixels[0][g]!==e&&(i[g]=1);S.mask=i}}let v=0,C=0;if(f!==r||d!==n){let e=S.mask;if(e)for(g=0;g<n;g++)if(C=g*r,g<d)for(v=f;v<r;v++)e[C+v]=0;else for(v=0;v<r;v++)e[C+v]=0;else for(e=new Uint8Array(r*n),S.mask=e,g=0;g<d;g++)for(C=g*r,v=0;v<f;v++)e[C+v]=1}return S}_parseIndex(e){if(e.byteLength%16>0)throw"invalid array buffer must be multiples of 16";let t,i,s,r,n,a;if(je.f){for(i=new Uint8Array(e),r=new ArrayBuffer(e.byteLength),s=new Uint8Array(r),n=0;n<e.byteLength/4;n++)for(a=0;a<4;a++)s[4*n+a]=i[4*n+3-a];t=new Uint32Array(r)}else t=new Uint32Array(e);return t}_getBandSegmentCount(){return Ge.get(this.rasterInfo.storageInfo.compression).isOneSegment?1:this.rasterInfo.bandCount}_getTileLocation(e,t,i){const{blockWidth:s,blockHeight:r,pyramidScalingFactor:n}=this.rasterInfo.storageInfo,{width:a,height:o}=this.rasterInfo,l=this._getBandSegmentCount();let c,u,h,f=0,d=0;for(h=0;h<e;h++)d=n**h,c=Math.ceil(a/s/d),u=Math.ceil(o/r/d),f+=c*u;d=n**e,c=Math.ceil(a/s/d),u=Math.ceil(o/r/d),f+=t*c+i,f*=4*l;const p=this._storageIndex.subarray(f,f+4*l);let m=0,y=0;const g=[];for(let e=0;e<l;e++)m=p[4*e+0]*2**32+p[4*e+1],y=m+p[4*e+2]*2**32+p[4*e+3],g.push({from:m,to:y});return{ranges:g,actualTileWidth:i<c-1?s:Math.ceil(a/d)-s*(c-1),actualTileHeight:t<u-1?r:Math.ceil(o/d)-r*(u-1)}}_parseHeader(e){const t=ve(e,"MRF_META/Raster");if(!t)throw new a.Z("mrf:open","not a valid MRF format");const i=ve(t,"Size"),s=parseInt(i.getAttribute("x"),10),r=parseInt(i.getAttribute("y"),10),n=parseInt(i.getAttribute("c"),10),o=(Ce(t,"Compression")||"none").toLowerCase();if(!Ge.has(o))throw new a.Z("mrf:open","currently does not support compression "+o);const l=Ce(t,"DataType")||"UInt8",c=qe.get(l);if(null==c)throw new a.Z("mrf:open","currently does not support pixel type "+l);const u=ve(t,"PageSize"),h=parseInt(u.getAttribute("x"),10),f=parseInt(u.getAttribute("y"),10),d=ve(t,"DataValues");let p,m;if(d&&(m=d.getAttribute("NoData"),null!=m&&(p=m.trim().split(" ").map((e=>parseFloat(e))))),ve(e,"MRF_META/CachedSource"))throw new a.Z("mrf:open","currently does not support MRF referencing other data files");const y=ve(e,"MRF_META/GeoTags"),g=ve(y,"BoundingBox");let x,I=!1;if(null!=g){const e=parseFloat(g.getAttribute("minx")),t=parseFloat(g.getAttribute("miny")),i=parseFloat(g.getAttribute("maxx")),s=parseFloat(g.getAttribute("maxy")),r=Ce(y,"Projection")||"";let n=ee.Z.WGS84;if("LOCAL_CS[]"!==r)if(r.toLowerCase().startsWith("epsg:")){const e=Number(r.slice(5));isNaN(e)||0===e||(n=new ee.Z({wkid:e}))}else n=Me(r)??ee.Z.WGS84;else I=!0,n=new ee.Z({wkid:3857});x=new q.Z(e,t,i,s),x.spatialReference=n}else I=!0,x=new q.Z({xmin:-.5,ymin:.5-r,xmax:s-.5,ymax:.5,spatialReference:new ee.Z({wkid:3857})});const b=ve(e,"MRF_META/Rsets"),w=parseInt(b&&b.getAttribute("scale")||"2",10),_=x.spatialReference,S=new M.Z({origin:new D.Z({x:x.xmin,y:x.ymax,spatialReference:_}),blockWidth:h,blockHeight:f,pyramidBlockWidth:h,pyramidBlockHeight:f,compression:o,pyramidScalingFactor:w}),v=new D.Z({x:x.width/s,y:x.height/r,spatialReference:_}),C=new ue.Z({width:s,height:r,extent:x,isPseudoSpatialReference:I,spatialReference:_,bandCount:n,pixelType:c,pixelSize:v,noDataValue:p,storageInfo:S}),R=Ce(e,"datafile"),T=Ce(e,"IndexFile");return{rasterInfo:C,files:{mrf:this.url,index:T||this.url.replace(".mrf",".idx"),data:R||this.url.replace(".mrf",Ge.get(o).blobExtension)}}}async _fetchAuxiliaryData(e){try{const{data:t}=await this.request(this.url+".aux.xml",{responseType:"xml",signal:e?.signal});return Be(t)}catch{return null}}};(0,s._)([(0,h.Cb)()],Ue.prototype,"_files",void 0),(0,s._)([(0,h.Cb)()],Ue.prototype,"_storageIndex",void 0),(0,s._)([(0,h.Cb)({type:String,json:{write:!0}})],Ue.prototype,"datasetFormat",void 0),Ue=(0,s._)([(0,m.j)("esri.layers.support.rasterIO.MRFRaster")],Ue);const $e=Ue;var Ve=i(94793),Xe=i(9832);const Ye=(e,t)=>e.get(t)?.values,Ke=(e,t)=>e.get(t)?.values?.[0];let Qe=class extends U{constructor(){super(...arguments),this._files=null,this._headerInfo=null,this._bufferSize=1048576,this.datasetFormat="TIFF"}async open(e){await this.init();const t=e?(0,o.Wg)(e.signal):null,{data:i}=await this.request(this.url,{range:{from:0,to:this._bufferSize},responseType:"array-buffer",signal:t});if(!i)throw new a.Z("tiffraster:open","failed to open url "+this.url);this.datasetName=this.url.slice(this.url.lastIndexOf("/")+1);const{littleEndian:s,firstIFDPos:r,isBigTiff:n}=(0,Ve.cK)(i),l=[];await this._readIFDs(l,i,s,r,0,n?8:4,t);const{imageInfo:c,rasterInfo:u}=this._parseIFDs(l);if(this._headerInfo={littleEndian:s,isBigTiff:n,ifds:l,...c},this._set("rasterInfo",u),!c.isSupported)throw new a.Z("tiffraster:open","this tiff is not supported: "+c.message);if(!c.tileWidth)throw new a.Z("tiffraster:open","none-tiled tiff is not optimized for access, convert to COG and retry.");const{skipExtensions:h=[]}=this.ioConfig;if(!h.includes("aux.xml")){const t=await this._fetchAuxiliaryMetaData(e);null!=t&&this._processPAMInfo(t,u)}h.includes("vat.dbf")||1!==u.bandCount||"u8"!==u.pixelType||(u.attributeTable=await this._fetchAuxiliaryTable(e),(0,o.pC)(u.attributeTable)&&(u.keyProperties.DataType="thematic")),this.updateTileInfo()}async fetchRawTile(e,t,i,s={}){if(!this._headerInfo?.isSupported||this.isBlockOutside(e,t,i))return null;const r=this._getTileLocation(e,t,i);if(!r)return null;const{ranges:n,actualTileWidth:a,actualTileHeight:o,ifd:l}=r,c=n.map((e=>this.request(this.url,{range:e,responseType:"array-buffer",signal:s.signal}))),u=await Promise.all(c),h=u.map((e=>e.data.byteLength)).reduce(((e,t)=>e+t)),f=1===u.length?u[0].data:new ArrayBuffer(h),d=[0],p=[0];if(u.length>1){const e=new Uint8Array(f);for(let t=0,i=0;t<u.length;t++){const s=u[t].data;e.set(new Uint8Array(s),i),d[t]=i,i+=s.byteLength,p[t]=s.byteLength}}const{blockWidth:m,blockHeight:y}=this.getBlockWidthHeight(e),g=await this.decodePixelBlock(f,{format:"tiff",customOptions:{headerInfo:this._headerInfo,ifd:l,offsets:d,sizes:p},width:m,height:y,planes:null,pixelType:null});let x,I,b;if(a!==m||o!==y){let e=g.mask;if(e)for(x=0;x<y;x++)if(b=x*m,x<o)for(I=a;I<m;I++)e[b+I]=0;else for(I=0;I<m;I++)e[b+I]=0;else for(e=new Uint8Array(m*y),g.mask=e,x=0;x<o;x++)for(b=x*m,I=0;I<a;I++)e[b+I]=1}return g}_parseIFDs(e){const t=(0,Ve.FI)(e),{width:i,height:s,tileWidth:r,tileHeight:n,planes:a,pixelType:o,compression:l,firstPyramidLevel:c,maximumPyramidLevel:u,pyramidBlockWidth:h,pyramidBlockHeight:f,tileBoundary:d,affine:p,metadata:m}=t;let y=Me(t.extent.spatialReference?.wkt||t.extent.spatialReference?.wkid),g=!1;null==y&&(g=!0,y=new ee.Z({wkid:3857}));const x=new q.Z({...t.extent,spatialReference:y}),I=new D.Z(x?{x:x.xmin,y:x.ymax,spatialReference:y}:{x:0,y:0}),b=new M.Z({blockWidth:r,blockHeight:n,pyramidBlockWidth:h,pyramidBlockHeight:f,compression:l,origin:I,firstPyramidLevel:c,maximumPyramidLevel:u,blockBoundary:d}),w=new D.Z({x:(x.xmax-x.xmin)/i,y:(x.ymax-x.ymin)/s,spatialReference:y}),_=m?{BandProperties:m.bandProperties,DataType:m.dataType}:{};let S=null;const v=Ke(e[0],"PHOTOMETRICINTERPRETATION"),C=Ye(e[0],"COLORMAP");if(3===v&&C?.length>3&&C.length%3==0){S=[];const e=C.length/3;for(let t=0;t<e;t++)S.push([t,C[t]>>>8,C[t+e]>>>8,C[t+2*e]>>>8])}const R=new ue.Z({width:i,height:s,bandCount:a,pixelType:o,pixelSize:w,storageInfo:b,spatialReference:y,isPseudoSpatialReference:g,keyProperties:_,extent:x,colormap:S,statistics:m?m.statistics:null});return p?.length&&(R.nativeExtent=new q.Z({xmin:-.5,ymin:.5-s,xmax:i-.5,ymax:.5,spatialReference:y}),R.transform=new Fe.Z({polynomialOrder:1,forwardCoefficients:[p[2]+p[0]/2,p[5]-p[3]/2,p[0],p[3],-p[1],-p[4]]}),R.extent=R.transform.forwardTransform(R.nativeExtent),R.pixelSize=new D.Z({x:(x.xmax-x.xmin)/i,y:(x.ymax-x.ymin)/s,spatialReference:y}),b.origin.x=-.5,b.origin.y=.5),{imageInfo:t,rasterInfo:R}}_processPAMInfo(e,t){if(t.statistics=e.statistics??t.statistics,t.histograms=e.histograms,e.histograms&&(0,o.Wi)(t.statistics)&&(t.statistics=(0,be.Oh)(e.histograms)),e.transform&&(0,o.Wi)(t.transform)){t.transform=e.transform,t.nativeExtent=t.extent;const i=t.transform.forwardTransform(t.nativeExtent);t.pixelSize=new D.Z({x:(i.xmax-i.xmin)/t.width,y:(i.ymax-i.ymin)/t.height,spatialReference:t.spatialReference}),t.extent=i}t.spatialReference||(t.spatialReference=e.spatialReference)}async _readIFDs(e,t,i,s,r,n=4,a){if(!s)return null;(s>=t.byteLength||s<0)&&(t=(await this.request(this.url,{range:{from:s+r,to:s+r+this._bufferSize},responseType:"array-buffer",signal:a})).data,r=s+r,s=0);const o=await this._readIFD(t,i,s,r,Xe.Z.TIFF_TAGS,n,a);if(e.push(o.ifd),!o.nextIFD)return null;await this._readIFDs(e,t,i,o.nextIFD-r,r,n,a)}async _readIFD(e,t,i,s,r=Xe.Z.TIFF_TAGS,n=4,a){if(!e)return null;const l=(0,Ve.vr)(e,t,i,s,r,n);if(l.success){const i=[];if(l.ifd?.forEach((e=>{e.values||i.push(e)})),i.length>0){const r=i.map((e=>e.offlineOffsetSize)).filter(o.pC),n=Math.min.apply(null,r.map((e=>e[0])));if(Math.min.apply(null,r.map((e=>e[0]+e[1])))-n<=this._bufferSize){const{data:r}=await this.request(this.url,{range:{from:n,to:n+this._bufferSize},responseType:"array-buffer",signal:a});e=r,s=n,i.forEach((i=>(0,Ve.Dq)(e,t,i,s)))}}if(l.ifd?.has("GEOKEYDIRECTORY")){const i=l.ifd.get("GEOKEYDIRECTORY"),r=i?.values;if(r&&r.length>4){const n=r[0]+"."+r[1]+"."+r[2],o=await this._readIFD(e,t,i.valueOffset+6-s,s,Xe.Z.GEO_KEYS,2,a);i.data=o.ifd,i.data&&i.data.set("GEOTIFFVersion",{id:0,type:2,valueCount:1,valueOffset:null,values:[n]})}}return l}if(l.requiredBufferSize&&l.requiredBufferSize!==e.byteLength){const i=await this.request(this.url,{range:{from:s,to:s+l.requiredBufferSize+4},responseType:"array-buffer",signal:a});return(e=i.data).byteLength<l.requiredBufferSize?null:this._readIFD(e,t,0,s,Xe.Z.TIFF_TAGS,4,a)}}_getTileLocation(e,t,i){const{firstPyramidLevel:s,blockBoundary:r}=this.rasterInfo.storageInfo,n=0===e?0:e-(s-1),a=this._headerInfo?.ifds[n];if(!a)return null;const o=(0,Ve.If)(a,this._headerInfo),l=Ye(a,"TILEOFFSETS");if(void 0===l)return null;const c=Ye(a,"TILEBYTECOUNTS"),{minRow:u,minCol:h,maxRow:f,maxCol:d}=r[n];if(t>f||i>d||t<u||i<h)return null;const p=Ke(a,"IMAGEWIDTH"),m=Ke(a,"IMAGELENGTH"),y=Ke(a,"TILEWIDTH"),g=Ke(a,"TILELENGTH"),x=o?this.rasterInfo.bandCount:1,I=x*t*(d+1)+i,b=[{from:l[I],to:l[I+x-1]+c[I+x-1]-1}];if(o){let e=!0;for(let t=0;t<x;t++)if(l[I+t]+c[I+t]!==l[I+t+1]){e=!1;break}if(!e)for(let e=0;e<x;e++)b[e]={from:l[I+e],to:l[I+e]+c[I+e]-1}}const w=l[I],_=c[I];return null==w||null==_?null:{ranges:b,ifd:a,actualTileWidth:i===d&&p%y||y,actualTileHeight:t===f&&m%g||g}}async _fetchAuxiliaryMetaData(e){try{const{data:t}=await this.request(this.url+".aux.xml",{responseType:"xml",signal:e?.signal});return Be(t)}catch{return null}}async _fetchAuxiliaryTable(e){try{const{data:t}=await this.request(this.url+".vat.dbf",{responseType:"array-buffer",signal:e?.signal}),i=de.parse(t);return i?.recordSet?me.default.fromJSON(i.recordSet):null}catch{return null}}};(0,s._)([(0,h.Cb)()],Qe.prototype,"_files",void 0),(0,s._)([(0,h.Cb)()],Qe.prototype,"_headerInfo",void 0),(0,s._)([(0,h.Cb)()],Qe.prototype,"_bufferSize",void 0),(0,s._)([(0,h.Cb)({type:String,json:{write:!0}})],Qe.prototype,"datasetFormat",void 0),Qe=(0,s._)([(0,m.j)("esri.layers.support.rasterDatasets.TIFFRaster")],Qe);const et=Qe,tt=new Map;tt.set("CRF",{desc:"Cloud Raster Format",constructor:xe}),tt.set("MRF",{desc:"Meta Raster Format",constructor:$e}),tt.set("TIFF",{desc:"GeoTIFF",constructor:et}),tt.set("RasterTileServer",{desc:"Raster Tile Server",constructor:Ae}),tt.set("JPG",{desc:"JPG Raster Format",constructor:ze}),tt.set("PNG",{desc:"PNG Raster Format",constructor:ze}),tt.set("GIF",{desc:"GIF Raster Format",constructor:ze}),tt.set("BMP",{desc:"BMP Raster Format",constructor:ze});class it{static get supportedFormats(){const e=new Set;return tt.forEach(((t,i)=>e.add(i))),e}static async open(e){const{url:t,ioConfig:i,sourceJSON:s}=e;let r=e.datasetFormat;null==r&&t.lastIndexOf(".")&&(r=t.slice(t.lastIndexOf(".")+1).toUpperCase()),"OVR"===r||"TIF"===r?r="TIFF":"JPG"!==r&&"JPEG"!==r&&"JFIF"!==r||(r="JPG"),t.toLowerCase().includes("/imageserver")&&!t.toLowerCase().includes("/wcsserver")&&(r="RasterTileServer");const n={url:t,sourceJSON:s,datasetFormat:r,ioConfig:i??{bandIds:null,sampling:null}};let o,l;if(r&&this.supportedFormats.has(r)){if("CRF"===r&&!i?.enableCRF)throw new a.Z("rasterfactory:open",`cannot open raster: ${t}`);return o=tt.get(r).constructor,l=new o(n),await l.open({signal:e.signal}),l}if(r)throw new a.Z("rasterfactory:open","not a supported format "+r);const c=Array.from(tt.keys());let u=0;const h=()=>(r=c[u++],r&&("CRF"!==r||i?.enableCRF)?(o=tt.get(r).constructor,l=new o(n),l.open({signal:e.signal}).then((()=>l)).catch((()=>h()))):null);return h()}static register(e,t,i){tt.has(e.toUpperCase())||tt.set(e.toUpperCase(),{desc:t,constructor:i})}}var st=i(32163);let rt=class extends((0,g.h)((0,ae.M)((0,se.q)((0,re.I)((0,x.N)(ie((0,oe.n)((0,ne.Q)((0,l.R)(y.Z)))))))))){constructor(...e){super(...e),this.bandIds=null,this.interpolation=null,this.legendEnabled=!0,this.isReference=null,this.listMode="show",this.sourceJSON=null,this.version=null,this.title=null,this.type="imagery-tile",this.operationalLayerType="ArcGISTiledImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.fields=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=(0,o.pC)(e)?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"]},e).catch(c.r9).then((()=>this._openRaster(t)))),Promise.resolve(this)}get defaultPopupTemplate(){return this.createPopupTemplate()}get rasterFields(){let e=[new le.Z({name:"Raster.ServicePixelValue",alias:"Pixel Value",domain:null,editable:!1,length:50,type:"string"})];const{rasterInfo:t}=this,{attributeTable:i}=t,s=(0,o.pC)(i)?i.fields:null;if(s){const t=s.filter((e=>"oid"!==e.type&&"value"!==e.name.toLowerCase())).map((e=>{const t=e.clone();return t.name="Raster."+e.name,t}));e=e.concat(t)}const{dataType:r,multidimensionalInfo:n}=t;if(("vector-magdir"===r||"vector-uv"===r)&&(0,o.pC)(n)){const t=n.variables[0].unit?.trim(),i="Magnitude"+(t?` (${t})`:"");e.push(new le.Z({name:"Raster.Magnitude",alias:i,domain:null,editable:!1,type:"double"})),e.push(new le.Z({name:"Raster.Direction",alias:"Direction (°)",domain:null,editable:!1,type:"double"}))}return e}set renderer(e){this._set("renderer",e),this.updateRenderer()}readRenderer(e,t,i){const s=t&&t.layerDefinition&&t.layerDefinition.drawingInfo&&t.layerDefinition.drawingInfo.renderer,r=(0,n.ij)(s,i)||void 0;if(null!=r)return r}createPopupTemplate(e){return(0,st.eZ)({fields:this.rasterFields,title:this.title},e)}write(e,t){const{raster:i}=this;if(this.loaded?"RasterTileServer"===i.datasetFormat&&("Raster"===i.tileType||"Map"===i.tileType):this.url&&/\/ImageServer(\/|\/?$)/i.test(this.url))return super.write(e,t);if(t&&t.messages){const e=`${t.origin}/${t.layerContainerType||"operational-layers"}`;t.messages.push(new a.Z("layer:unsupported",`Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this}))}return null}async _openRaster(e){if(this.raster)this.raster.rasterInfo||await this.raster.open(),this.url=this.raster.url;else{const t=await it.open({url:this.url,sourceJSON:this.sourceJSON,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters},signal:e});if(this.rasterFunction){const e=(0,X.Ue)(this.rasterFunction.toJSON(),{raster:t}),i=new V({rasterFunction:e});await i.open(),this.raster=i}else this.raster=t}const{rasterInfo:t}=this.raster;if(!t)throw new a.Z("imagery-tile-layer:load","cannot load resources on "+this.url);if(this.sourceJSON=this.sourceJSON||this.raster.sourceJSON,null!=this.sourceJSON){const e="Map"===this.raster.tileType&&null!=this.sourceJSON.minLOD&&null!=this.sourceJSON.maxLOD?this.sourceJSON:{...this.sourceJSON,minScale:0,maxScale:0};this.read(e,{origin:"service"})}null==this.title&&(this.title=this.raster.datasetName),"Map"===this.raster.tileType&&(this.popupEnabled=!1),this._configDefaultSettings(),this.addHandles((0,u.YP)((()=>this.customParameters),(e=>{this.raster.ioConfig.customFetchParameters=e})))}};(0,s._)([(0,h.Cb)({type:[f.z8],json:{write:{overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType||"0,1,2"!==this.bandIds?.join(",")}}}}})],rt.prototype,"bandIds",void 0),(0,s._)([(0,h.Cb)({json:{write:{overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType||"bilinear"!==this.interpolation}}}}}),(0,d.J)(ce.c)],rt.prototype,"interpolation",void 0),(0,s._)([(0,h.Cb)({json:{write:!0}})],rt.prototype,"multidimensionalDefinition",void 0),(0,s._)([(0,h.Cb)(S.rn)],rt.prototype,"legendEnabled",void 0),(0,s._)([(0,h.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],rt.prototype,"isReference",void 0),(0,s._)([(0,h.Cb)({type:["show","hide"]})],rt.prototype,"listMode",void 0),(0,s._)([(0,h.Cb)({json:{read:!0,write:!0}})],rt.prototype,"blendMode",void 0),(0,s._)([(0,h.Cb)()],rt.prototype,"sourceJSON",void 0),(0,s._)([(0,h.Cb)({readOnly:!0,json:{origins:{service:{read:{source:"currentVersion"}}}}})],rt.prototype,"version",void 0),(0,s._)([(0,h.Cb)()],rt.prototype,"title",void 0),(0,s._)([(0,h.Cb)({readOnly:!0,json:{read:!1}})],rt.prototype,"type",void 0),(0,s._)([(0,h.Cb)({type:["ArcGISTiledImageServiceLayer"]})],rt.prototype,"operationalLayerType",void 0),(0,s._)([(0,h.Cb)({type:Boolean,value:!0,json:{read:{source:"disablePopup",reader:(e,t)=>!t.disablePopup},write:{target:"disablePopup",overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType}},writer(e,t,i){t[i]=!e}}}})],rt.prototype,"popupEnabled",void 0),(0,s._)([(0,h.Cb)({type:r.Z,json:{read:{source:"popupInfo"},write:{target:"popupInfo",overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType}}}}})],rt.prototype,"popupTemplate",void 0),(0,s._)([(0,h.Cb)({readOnly:!0})],rt.prototype,"defaultPopupTemplate",null),(0,s._)([(0,h.Cb)({readOnly:!0,type:[le.Z]})],rt.prototype,"fields",void 0),(0,s._)([(0,h.Cb)({readOnly:!0,type:[le.Z]})],rt.prototype,"rasterFields",null),(0,s._)([(0,h.Cb)({types:n.dr,json:{name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy(){const e="raster-stretch"===this.renderer?.type&&"none"===this.renderer.stretchType&&!this.renderer.useGamma;return{enabled:!this.loaded||"Raster"===this.raster.tileType||!e}}},origins:{"web-scene":{types:n.FK,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type&&"flow"!==e.type})}}}}})],rt.prototype,"renderer",null),(0,s._)([(0,p.r)("renderer")],rt.prototype,"readRenderer",null),rt=(0,s._)([(0,m.j)("esri.layers.ImageryTileLayer")],rt);const nt=rt}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9777,3172,9880],{99880:(e,t,s)=>{s.d(t,{V:()=>l});var i=s(68773),r=(s(3172),s(20102)),n=s(92604),a=s(17452);const o=n.Z.getLogger("esri.assets");function l(e){if(!i.Z.assetsPath)throw o.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new r.Z("assets:path-not-set","config.assetsPath is not set");return(0,a.v_)(i.Z.assetsPath,e)}},74669:(e,t,s)=>{s.d(t,{Z:()=>r});var i=s(69801);class r{constructor(e,t){this._storage=new i.WJ,this._storage.maxSize=e,t&&this._storage.registerRemoveFunc("",t)}put(e,t){this._storage.put(e,t,1,1)}pop(e){return this._storage.pop(e)}get(e){return this._storage.get(e)}clear(){this._storage.clearAll()}destroy(){this._storage.destroy()}}},37455:(e,t,s)=>{s.d(t,{N:()=>i});const i={convertToGEGeometry:function(e,t){return null==t?null:e.convertJSONToGeometry(t)},exportPoint:function(e,t,s){const i=new r(e.getPointX(t),e.getPointY(t),s),n=e.hasZ(t),a=e.hasM(t);return n&&(i.z=e.getPointZ(t)),a&&(i.m=e.getPointM(t)),i},exportPolygon:function(e,t,s){return new n(e.exportPaths(t),s,e.hasZ(t),e.hasM(t))},exportPolyline:function(e,t,s){return new a(e.exportPaths(t),s,e.hasZ(t),e.hasM(t))},exportMultipoint:function(e,t,s){return new o(e.exportPoints(t),s,e.hasZ(t),e.hasM(t))},exportExtent:function(e,t,s){const i=e.hasZ(t),r=e.hasM(t),n=new l(e.getXMin(t),e.getYMin(t),e.getXMax(t),e.getYMax(t),s);if(i){const s=e.getZExtent(t);n.zmin=s.vmin,n.zmax=s.vmax}if(r){const s=e.getMExtent(t);n.mmin=s.vmin,n.mmax=s.vmax}return n}};class r{constructor(e,t,s){this.x=e,this.y=t,this.spatialReference=s,this.z=void 0,this.m=void 0}}class n{constructor(e,t,s,i){this.rings=e,this.spatialReference=t,this.hasZ=void 0,this.hasM=void 0,s&&(this.hasZ=s),i&&(this.hasM=i)}}class a{constructor(e,t,s,i){this.paths=e,this.spatialReference=t,this.hasZ=void 0,this.hasM=void 0,s&&(this.hasZ=s),i&&(this.hasM=i)}}class o{constructor(e,t,s,i){this.points=e,this.spatialReference=t,this.hasZ=void 0,this.hasM=void 0,s&&(this.hasZ=s),i&&(this.hasM=i)}}class l{constructor(e,t,s,i,r){this.xmin=e,this.ymin=t,this.xmax=s,this.ymax=i,this.spatialReference=r,this.zmin=void 0,this.zmax=void 0,this.mmin=void 0,this.mmax=void 0}}},24470:(e,t,s)=>{s.d(t,{Gv:()=>x,HH:()=>u,SO:()=>h,Ue:()=>n,al:()=>o,cS:()=>p,fS:()=>y,jE:()=>d,jn:()=>c,kK:()=>f,oJ:()=>l,r3:()=>m}),s(80442),s(22021);var i=s(70586),r=s(6570);function n(e=w){return[e[0],e[1],e[2],e[3]]}function a(e,t){return e!==t&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3]),e}function o(e,t,s,i,r=n()){return r[0]=e,r[1]=t,r[2]=s,r[3]=i,r}function l(e,t=n()){return t[0]=e.xmin,t[1]=e.ymin,t[2]=e.xmax,t[3]=e.ymax,t}function u(e,t){return new r.Z({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:t})}function c(e,t,s){if((0,i.Wi)(t))a(s,e);else if("length"in t)g(t)?(s[0]=Math.min(e[0],t[0]),s[1]=Math.min(e[1],t[1]),s[2]=Math.max(e[2],t[2]),s[3]=Math.max(e[3],t[3])):2!==t.length&&3!==t.length||(s[0]=Math.min(e[0],t[0]),s[1]=Math.min(e[1],t[1]),s[2]=Math.max(e[2],t[0]),s[3]=Math.max(e[3],t[1]));else switch(t.type){case"extent":s[0]=Math.min(e[0],t.xmin),s[1]=Math.min(e[1],t.ymin),s[2]=Math.max(e[2],t.xmax),s[3]=Math.max(e[3],t.ymax);break;case"point":s[0]=Math.min(e[0],t.x),s[1]=Math.min(e[1],t.y),s[2]=Math.max(e[2],t.x),s[3]=Math.max(e[3],t.y)}}function h(e){return function(e){return(0,i.Wi)(e)||e[0]>=e[2]?0:e[2]-e[0]}(e)*function(e){return e[1]>=e[3]?0:e[3]-e[1]}(e)}function d(e,t,s){return t>=e[0]&&s>=e[1]&&t<=e[2]&&s<=e[3]}function f(e,t){return Math.max(t[0],e[0])<=Math.min(t[2],e[2])&&Math.max(t[1],e[1])<=Math.min(t[3],e[3])}function m(e,t){return t[0]>=e[0]&&t[2]<=e[2]&&t[1]>=e[1]&&t[3]<=e[3]}function p(e){return e?a(e,x):n(x)}function g(e){return null!=e&&4===e.length}function y(e,t){return g(e)&&g(t)?e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]:e===t}const x=[1/0,1/0,-1/0,-1/0],w=[0,0,0,0]},69285:(e,t,s)=>{s.d(t,{k:()=>a});var i=s(70586),r=s(67900),n=s(8744);function a(e,t,s){if((0,i.Wi)(t)||(0,i.Wi)(s)||s.vcsWkid||(0,n.fS)(t,s))return null;const a=(0,r._R)(t)/(0,r._R)(s);if(1===a)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){e&&null!=e.z&&(e.z*=t)}(e,a);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const s of e.paths)for(const e of s)e.length>2&&(e[2]*=t)}(e,a);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const s of e.rings)for(const e of s)e.length>2&&(e[2]*=t)}(e,a);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const s of e.points)s.length>2&&(s[2]*=t)}(e,a);case"extent":case"esriGeometryExtent":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,a);default:return null}}},26993:(e,t,s)=>{s.d(t,{y:()=>w,r:()=>m});var i=s(70586),r=s(35308),n=s(49600),a=s(82397),o=s(8744),l=s(62432),u=s(24452);class c{constructor(e,t,s){this._fieldDataCache=new Map,this._returnDistinctMap=new Map,this.returnDistinctValues=e.returnDistinctValues??!1,this.fieldsIndex=s,this.featureAdapter=t;const i=e.outFields;if(i&&!i.includes("*")){this.outFields=i;let e=0;for(const t of i){const i=(0,l.hr)(t),r=this.fieldsIndex.get(i),n=r?null:(0,l.Jc)(i,s),a=r?r.name:(0,l.nu)(t)||"FIELD_EXP_"+e++;this._fieldDataCache.set(t,{alias:a,clause:n})}}}countDistinctValues(e){return this.returnDistinctValues?(e.forEach((e=>this.getAttributes(e))),this._returnDistinctMap.size):e.length}getAttributes(e){const t=this._processAttributesForOutFields(e);return this._processAttributesForDistinctValues(t)}getFieldValue(e,t,s){const i=s?s.name:t;let r=null;return this._fieldDataCache.has(i)?r=this._fieldDataCache.get(i).clause:s||(r=(0,l.Jc)(t,this.fieldsIndex),this._fieldDataCache.set(i,{alias:i,clause:r})),s?this.featureAdapter.getAttribute(e,i):r.calculateValue(e,this.featureAdapter)}getDataValue(e,t){const s=t.normalizationType,i=t.normalizationTotal;let r=this.getFieldValue(e,t.field,this.fieldsIndex.get(t.field));if(t.field2&&(r=`${(0,u.wk)(r)}${t.fieldDelimiter}${(0,u.wk)(this.getFieldValue(e,t.field2,this.fieldsIndex.get(t.field2)))}`,t.field3&&(r=`${r}${t.fieldDelimiter}${(0,u.wk)(this.getFieldValue(e,t.field3,this.fieldsIndex.get(t.field3)))}`)),s&&Number.isFinite(r)){const n=this.getFieldValue(e,t.normalizationField,this.fieldsIndex.get(t.normalizationField));r=(0,u.fk)(r,s,n,i)}return r}getExpressionValue(e,t,s,i){const r={attributes:this.featureAdapter.getAttributes(e),layer:{fields:this.fieldsIndex.fields}},n=i.createExecContext(r,s);return i.executeFunction(t,n)}getExpressionValues(e,t,s,i){const r={fields:this.fieldsIndex.fields};return e.map((e=>{const n={attributes:this.featureAdapter.getAttributes(e),layer:r},a=i.createExecContext(n,s);return i.executeFunction(t,a)}))}validateItem(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:(0,l.Jc)(t,this.fieldsIndex)}),this._fieldDataCache.get(t).clause.testFeature(e,this.featureAdapter)}validateItems(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:(0,l.Jc)(t,this.fieldsIndex)}),this._fieldDataCache.get(t).clause.testSet(e,this.featureAdapter)}_processAttributesForOutFields(e){const t=this.outFields;if(!t||!t.length)return this.featureAdapter.getAttributes(e);const s={};for(const i of t){const{alias:t,clause:r}=this._fieldDataCache.get(i);s[t]=r?r.calculateValue(e,this.featureAdapter):this.featureAdapter.getAttribute(e,t)}return s}_processAttributesForDistinctValues(e){if((0,i.Wi)(e)||!this.returnDistinctValues)return e;const t=this.outFields,s=[];if(t)for(const i of t){const{alias:t}=this._fieldDataCache.get(i);s.push(e[t])}else for(const t in e)s.push(e[t]);const r=`${(t||["*"]).join(",")}=${s.join(",")}`;let n=this._returnDistinctMap.get(r)||0;return this._returnDistinctMap.set(r,++n),n>1?null:e}}var h=s(37427);function d(e,t,s){return{objectId:e,target:t,distance:s,type:"vertex"}}function f(e,t,s,i,r,n=!1){return{objectId:e,target:t,distance:s,type:"edge",start:i,end:r,draped:n}}var m,p,g=s(11490),y=s(35671),x=s(59266);class w{constructor(e,t,s){this.items=e,this.query=t,this.geometryType=s.geometryType,this.hasM=s.hasM,this.hasZ=s.hasZ,this.fieldsIndex=s.fieldsIndex,this.objectIdField=s.objectIdField,this.spatialReference=s.spatialReference,this.featureAdapter=s.featureAdapter}get size(){return this.items.length}createQueryResponseForCount(){const e=new c(this.query,this.featureAdapter,this.fieldsIndex);if(!this.query.outStatistics)return e.countDistinctValues(this.items);const{groupByFieldsForStatistics:t,having:s,outStatistics:i}=this.query,r=t?.length;if(!r)return 1;const n=new Map,a=new Map,o=new Set;for(const r of i){const{statisticType:i}=r,l="exceedslimit"!==i?r.onStatisticField:void 0;if(!a.has(l)){const s=[];for(const i of t){const t=this._getAttributeValues(e,i,n);s.push(t)}a.set(l,this._calculateUniqueValues(s,e.returnDistinctValues))}const u=a.get(l);for(const t in u){const{data:i,items:r}=u[t],n=i.join(",");s&&!e.validateItems(r,s)||o.add(n)}}return o.size}async createQueryResponse(){let e;return e=this.query.outStatistics?this.query.outStatistics.some((e=>"exceedslimit"===e.statisticType))?this._createExceedsLimitQueryResponse(this.query):await this._createStatisticsQueryResponse(this.query):this._createFeatureQueryResponse(this.query),this.query.returnQueryGeometry&&((0,o.JY)(this.query.outSR)&&!(0,o.fS)(this.query.geometry.spatialReference,this.query.outSR)?e.queryGeometry=(0,g.S2)({spatialReference:this.query.outSR,...(0,h.iV)(this.query.geometry,this.query.geometry.spatialReference,this.query.outSR)}):e.queryGeometry=(0,g.S2)({spatialReference:this.query.outSR,...this.query.geometry})),e}createSnappingResponse(e,t){const s=this.featureAdapter,r=function(e,t){return e?t?4:3:t?3:2}(this.hasZ,this.hasM),{point:n}=e,a="number"==typeof e.distance?e.distance:e.distance.x,o="number"==typeof e.distance?e.distance:e.distance.y,l={candidates:[]},u="esriGeometryPolygon"===this.geometryType,c=null!=n.z,h=null!=n.m,p=this._getPointCreator(n,c,h,this.spatialReference,t),g=new b(null,0),y=new b(null,0),x={x:0,y:0,z:0};for(const t of this.items){const c=s.getGeometry(t);if((0,i.Wi)(c))continue;const{coords:h,lengths:w}=c;if(g.coords=h,y.coords=h,e.types&m.EDGE){let e=0;for(let i=0;i<w.length;i++){const u=w[i];for(let i=0;i<u;i++,e+=r){const c=g;if(c.coordsIndex=e,i!==u-1){const i=y;i.coordsIndex=e+r;const u=x;v(x,n,c,i);const h=(n.x-u.x)/a,d=(n.y-u.y)/o,m=h*h+d*d;m<=1&&l.candidates.push(f(s.getObjectId(t),p(u),Math.sqrt(m),p(c),p(i)))}}}}if(e.types&m.VERTEX){const e=u?h.length-r:h.length;for(let i=0;i<e;i+=r){const e=g;e.coordsIndex=i;const r=(n.x-e.x)/a,u=(n.y-e.y)/o,c=r*r+u*u;c<=1&&l.candidates.push(d(s.getObjectId(t),p(e),Math.sqrt(c)))}}}return l.candidates.sort(((e,t)=>e.distance-t.distance)),l}_getPointCreator(e,t,s,r,n){const a=(0,i.pC)(n)&&!(0,o.fS)(r,n)?e=>(0,h.iV)(e,r,n):e=>e,{hasZ:l}=this,u=e.m;return t&&s?l?({x:e,y:t,z:s})=>a({x:e,y:t,z:s,m:u}):({x:e,y:t})=>a({x:e,y:t,z:0,m:u}):t?l?({x:e,y:t,z:s})=>a({x:e,y:t,z:s}):({x:e,y:t})=>a({x:e,y:t,z:0}):s?({x:e,y:t})=>a({x:e,y:t,m:u}):({x:e,y:t})=>a({x:e,y:t})}async createSummaryStatisticsResponse(e){const{field:t,valueExpression:s,normalizationField:i,normalizationType:r,normalizationTotal:n,minValue:a,maxValue:o,scale:l}=e,c=this.fieldsIndex.isDateField(t),h=await this._getDataValues({field:t,valueExpression:s,normalizationField:i,normalizationType:r,normalizationTotal:n,scale:l}),d=(0,u.S5)({normalizationType:r,normalizationField:i,minValue:a,maxValue:o}),f=this.fieldsIndex.get(t),m={value:.5,fieldType:f?.type},p=(0,y.qN)(f)?(0,u.H0)({values:h,supportsNullCount:d,percentileParams:m}):(0,u.i5)({values:h,minValue:a,maxValue:o,useSampleStdDev:!r,supportsNullCount:d,percentileParams:m});return(0,u.F_)(p,c)}async createUniqueValuesResponse(e){const{field:t,valueExpression:s,domains:i,returnAllCodedValues:r,scale:n}=e,a=await this._getDataValues({field:t,field2:e.field2,field3:e.field3,fieldDelimiter:e.fieldDelimiter,valueExpression:s,scale:n}),o=(0,u.eT)(a);return(0,u.Qm)(o,i,r,e.fieldDelimiter)}async createClassBreaksResponse(e){const{field:t,valueExpression:s,normalizationField:i,normalizationType:r,normalizationTotal:n,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:c,numClasses:h,scale:d}=e,f=await this._getDataValues({field:t,valueExpression:s,normalizationField:i,normalizationType:r,normalizationTotal:n,scale:d}),m=(0,u.G2)(f,{field:t,normalizationField:i,normalizationType:r,normalizationTotal:n,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:c,numClasses:h});return(0,u.DL)(m,a)}async createHistogramResponse(e){const{field:t,valueExpression:s,normalizationField:i,normalizationType:r,normalizationTotal:n,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:c,numBins:h,scale:d}=e,f=await this._getDataValues({field:t,valueExpression:s,normalizationField:i,normalizationType:r,normalizationTotal:n,scale:d});return(0,u.oF)(f,{field:t,normalizationField:i,normalizationType:r,normalizationTotal:n,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:c,numBins:h})}_sortFeatures(e,t,s){if(e.length>1&&t&&t.length)for(const i of t.reverse()){const t=i.split(" "),r=t[0],n=this.fieldsIndex.get(r),a=t[1]&&"desc"===t[1].toLowerCase(),o=(0,u.Lq)(n?.type,a);e.sort(((e,t)=>{const i=s(e,r,n),a=s(t,r,n);return o(i,a)}))}}_createFeatureQueryResponse(e){const t=this.items,{geometryType:s,hasM:i,hasZ:r,objectIdField:n,spatialReference:o}=this,{outFields:l,outSR:u,quantizationParameters:c,resultRecordCount:h,resultOffset:d,returnZ:f,returnM:m}=e,p=null!=h&&t.length>(d||0)+h,y=l&&(l.includes("*")?[...this.fieldsIndex.fields]:l.map((e=>this.fieldsIndex.get(e))));return{exceededTransferLimit:p,features:this._createFeatures(e,t),fields:y,geometryType:s,hasM:i&&m,hasZ:r&&f,objectIdFieldName:n,spatialReference:(0,g.S2)(u||o),transform:c&&(0,a.vY)(c)||null}}_createFeatures(e,t){const s=new c(e,this.featureAdapter,this.fieldsIndex),{hasM:i,hasZ:r}=this,{orderByFields:n,quantizationParameters:o,returnGeometry:l,returnCentroid:u,maxAllowableOffset:h,resultOffset:d,resultRecordCount:f,returnZ:m=!1,returnM:p=!1}=e,y=r&&m,x=i&&p;let w=[],v=0;const b=[...t];if(this._sortFeatures(b,n,((e,t,i)=>s.getFieldValue(e,t,i))),l||u){const e=(0,a.vY)(o);if(l&&!u)for(const t of b)w[v++]={attributes:s.getAttributes(t),geometry:(0,g.Op)(this.geometryType,this.hasZ,this.hasM,this.featureAdapter.getGeometry(t),h,e,y,x)};else if(!l&&u)for(const t of b)w[v++]={attributes:s.getAttributes(t),centroid:(0,g.EG)(this,this.featureAdapter.getCentroid(t,this),e)};else for(const t of b)w[v++]={attributes:s.getAttributes(t),centroid:(0,g.EG)(this,this.featureAdapter.getCentroid(t,this),e),geometry:(0,g.Op)(this.geometryType,this.hasZ,this.hasM,this.featureAdapter.getGeometry(t),h,e,y,x)}}else for(const e of b){const t=s.getAttributes(e);t&&(w[v++]={attributes:t})}const S=d||0;if(null!=f){const e=S+f;w=w.slice(S,Math.min(w.length,e))}return w}_createExceedsLimitQueryResponse(e){let t=!1,s=Number.POSITIVE_INFINITY,r=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;for(const t of e.outStatistics)if("exceedslimit"===t.statisticType){s=null!=t.maxPointCount?t.maxPointCount:Number.POSITIVE_INFINITY,r=null!=t.maxRecordCount?t.maxRecordCount:Number.POSITIVE_INFINITY,n=null!=t.maxVertexCount?t.maxVertexCount:Number.POSITIVE_INFINITY;break}if("esriGeometryPoint"===this.geometryType)t=this.items.length>s;else if(this.items.length>r)t=!0;else{const e=this.hasZ?this.hasM?4:3:this.hasM?3:2,s=this.featureAdapter;t=this.items.reduce(((e,t)=>{const r=s.getGeometry(t);return e+((0,i.pC)(r)&&r.coords.length||0)}),0)/e>n}return{fields:[{name:"exceedslimit",type:"esriFieldTypeInteger",alias:"exceedslimit",sqlType:"sqlTypeInteger",domain:null,defaultValue:null}],features:[{attributes:{exceedslimit:Number(t)}}]}}async _createStatisticsQueryResponse(e){const t={attributes:{}},s=[],i=new Map,r=new Map,n=new Map,a=new Map,o=new c(e,this.featureAdapter,this.fieldsIndex),l=e.outStatistics,{groupByFieldsForStatistics:u,having:h,orderByFields:d}=e,f=u&&u.length,m=!!f,p=m&&u[0],g=m&&!this.fieldsIndex.get(p);for(const e of l){const{outStatisticFieldName:l,statisticType:c}=e,d=e,y="exceedslimit"!==c?e.onStatisticField:void 0,x="percentile_disc"===c||"percentile_cont"===c,w="EnvelopeAggregate"===c||"CentroidAggregate"===c||"ConvexHullAggregate"===c,v=m&&1===f&&(y===p||g)&&"count"===c;if(m){if(!n.has(y)){const e=[];for(const t of u){const s=this._getAttributeValues(o,t,i);e.push(s)}n.set(y,this._calculateUniqueValues(e,o.returnDistinctValues))}const e=n.get(y);for(const t in e){const{count:s,data:r,items:n,itemPositions:c}=e[t],f=r.join(",");if(!h||o.validateItems(n,h)){const e=a.get(f)||{attributes:{}};if(w){e.aggregateGeometries||(e.aggregateGeometries={});const{aggregateGeometries:t,outStatisticFieldName:s}=await this._getAggregateGeometry(d,n);e.aggregateGeometries[s]=t}else{let t=null;if(v)t=s;else{const e=this._getAttributeValues(o,y,i),s=c.map((t=>e[t]));t=x&&"statisticParameters"in d?this._getPercentileValue(d,s):this._getStatisticValue(d,s,null,o.returnDistinctValues)}e.attributes[l]=t}u.forEach(((t,s)=>e.attributes[this.fieldsIndex.get(t)?t:`EXPR_${s+1}`]=r[s])),a.set(f,e)}}}else if(w){t.aggregateGeometries||(t.aggregateGeometries={});const{aggregateGeometries:e,outStatisticFieldName:s}=await this._getAggregateGeometry(d,this.items);t.aggregateGeometries[s]=e}else{const e=this._getAttributeValues(o,y,i);t.attributes[l]=x&&"statisticParameters"in d?this._getPercentileValue(d,e):this._getStatisticValue(d,e,r,o.returnDistinctValues)}s.push({name:l,alias:l,type:"esriFieldTypeDouble"})}const y=m?Array.from(a.values()):[t];return this._sortFeatures(y,d,((e,t)=>e.attributes[t])),{fields:s,features:y}}async _getAggregateGeometry(e,t){const i=await Promise.all([s.e(5837),s.e(247)]).then(s.bind(s,30247)),{statisticType:a,outStatisticFieldName:o}=e,{featureAdapter:l,spatialReference:u,geometryType:c,hasZ:h,hasM:d}=this,f=t.map((e=>(0,g.Op)(c,h,d,l.getGeometry(e)))),m=i.convexHull(u,f,!0)[0],p={aggregateGeometries:null,outStatisticFieldName:null};if("EnvelopeAggregate"===a){const e=m?(0,n._w)(m):(0,n.aO)(i.union(u,f));p.aggregateGeometries={...e,spatialReference:u},p.outStatisticFieldName=o||"extent"}else if("CentroidAggregate"===a){const e=m?(0,r.tO)(m):(0,r.$G)((0,n.aO)(i.union(u,f)));p.aggregateGeometries={x:e[0],y:e[1],spatialReference:u},p.outStatisticFieldName=o||"centroid"}else"ConvexHullAggregate"===a&&(p.aggregateGeometries=m,p.outStatisticFieldName=o||"convexHull");return p}_getStatisticValue(e,t,s,i){const{onStatisticField:r,statisticType:n}=e;let a=null;return a=s?.has(r)?s.get(r):(0,y.qN)(this.fieldsIndex.get(r))?(0,u.H0)({values:t,returnDistinct:i}):(0,u.i5)({values:t,minValue:null,maxValue:null,useSampleStdDev:!0}),s&&s.set(r,a),a["var"===n?"variance":n]}_getPercentileValue(e,t){const{onStatisticField:s,statisticParameters:i,statisticType:r}=e,{value:n,orderBy:a}=i,o=this.fieldsIndex.get(s);return(0,u.XL)(t,{value:n,orderBy:a,fieldType:o?.type,isDiscrete:"percentile_disc"===r})}_getAttributeValues(e,t,s){if(s.has(t))return s.get(t);const i=this.fieldsIndex.get(t),r=this.items.map((s=>e.getFieldValue(s,t,i)));return s.set(t,r),r}_getAttributeDataValues(e,t){return this.items.map((s=>e.getDataValue(s,{field:t.field,field2:t.field2,field3:t.field3,fieldDelimiter:t.fieldDelimiter,normalizationField:t.normalizationField,normalizationType:t.normalizationType,normalizationTotal:t.normalizationTotal})))}async _getAttributeExpressionValues(e,t,s){const{arcadeUtils:i}=await(0,x.LC)(),r=i.createFunction(t),n=s&&i.getViewInfo(s);return e.getExpressionValues(this.items,r,n,i)}_calculateUniqueValues(e,t){const s={},i=this.items,r=i.length;for(let n=0;n<r;n++){const r=i[n],a=[];for(const t of e)a.push(t[n]);const o=a.join(",");t?null==s[o]&&(s[o]={count:1,data:a,items:[r],itemPositions:[n]}):null==s[o]?s[o]={count:1,data:a,items:[r],itemPositions:[n]}:(s[o].count++,s[o].items.push(r),s[o].itemPositions.push(n))}return s}async _getDataValues(e){const t=new c(this.query,this.featureAdapter,this.fieldsIndex),{valueExpression:s,field:i,normalizationField:r,normalizationType:n,normalizationTotal:a,scale:o}=e,l=s?{viewingMode:"map",scale:o,spatialReference:this.query.outSR||this.spatialReference}:null;return s?this._getAttributeExpressionValues(t,s,l):this._getAttributeDataValues(t,{field:i,field2:e.field2,field3:e.field3,fieldDelimiter:e.fieldDelimiter,normalizationField:r,normalizationType:n,normalizationTotal:a})}}function v(e,t,s,i){const r=i.x-s.x,n=i.y-s.y,a=r*r+n*n,o=(t.x-s.x)*r+(t.y-s.y)*n,l=Math.min(1,Math.max(0,o/a));e.x=s.x+r*l,e.y=s.y+n*l}(p=m||(m={}))[p.NONE=0]="NONE",p[p.EDGE=1]="EDGE",p[p.VERTEX=2]="VERTEX";class b{constructor(e,t){this.coords=e,this.coordsIndex=t}get x(){return this.coords[this.coordsIndex]}get y(){return this.coords[this.coordsIndex+1]}get z(){return this.coords[this.coordsIndex+2]}}},62432:(e,t,s)=>{s.d(t,{nu:()=>p,hr:()=>m,Jc:()=>d,G3:()=>g,Of:()=>f,z4:()=>h,hO:()=>c});var i=s(20102),r=s(74669),n=s(41534);const a=new class{constructor(e,t){this._cache=new r.Z(e),this._invalidCache=new r.Z(t)}get(e,t){const s=`${t.uid}:${e}`,i=this._cache.get(s);if(i)return i;if(void 0!==this._invalidCache.get(s))return null;try{const i=n.WhereClause.create(e,t);return this._cache.put(s,i),i}catch{return this._invalidCache.put(s,null),null}}}(50,500),o="feature-store:unsupported-query",l=" as ",u=new Set(["esriFieldTypeOID","esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeDate"]);function c(e,t){if(!t)return!0;const s=a.get(t,e);if(!s)throw new i.Z(o,"invalid SQL expression",{where:t});if(!s.isStandardized)throw new i.Z(o,"where clause is not standard",{where:t});return f(e,s.fieldNames,"where clause contains missing fields"),!0}function h(e,t,s){if(!t)return!0;const r=a.get(t,e);if(!r)throw new i.Z(o,"invalid SQL expression",{having:t});if(!r.isAggregate)throw new i.Z(o,"having does not contain a valid aggregate function",{having:t});const n=r.fieldNames;if(f(e,n,"having contains missing fields"),!r.getExpressions().every((t=>{const{aggregateType:i,field:r}=t,n=e.has(r)&&e.get(r).name;return s.some((t=>{const{onStatisticField:s,statisticType:r}=t;return(e.has(s)&&e.get(s).name)===n&&r.toLowerCase().trim()===i}))})))throw new i.Z(o,"expressions in having should also exist in outStatistics",{having:t});return!0}function d(e,t){return e?a.get(e,t):null}function f(e,t,s,r=!0){const n=[];for(const s of t)if("*"!==s&&!e.has(s))if(r){const t=m(s);try{const s=d(t,e);if(!s)throw new i.Z(o,"invalid SQL expression",{where:t});if(!s.isStandardized)throw new i.Z(o,"expression is not standard",{clause:s});f(e,s.fieldNames,"expression contains missing fields")}catch(e){const t=e&&e.details;if(t&&(t.clause||t.where))throw e;t&&t.missingFields?n.push(...t.missingFields):n.push(s)}}else n.push(s);if(n.length)throw new i.Z(o,s,{missingFields:n})}function m(e){return e.split(l)[0]}function p(e){return e.split(l)[1]}function g(e,t){const s=t.get(e);return!!s&&!u.has(s.type)}},37427:(e,t,s)=>{s.d(t,{_W:()=>d,iV:()=>p,oj:()=>y});var i=s(70586),r=s(44547),n=s(37455),a=s(8744),o=s(40488);const l=[0,0];function u(e,t){if(!t)return null;if("x"in t){const s={x:0,y:0};return[s.x,s.y]=e(t.x,t.y,l),null!=t.z&&(s.z=t.z),null!=t.m&&(s.m=t.m),s}if("xmin"in t){const s={xmin:0,ymin:0,xmax:0,ymax:0};return[s.xmin,s.ymin]=e(t.xmin,t.ymin,l),[s.xmax,s.ymax]=e(t.xmax,t.ymax,l),t.hasZ&&(s.zmin=t.zmin,s.zmax=t.zmax,s.hasZ=!0),t.hasM&&(s.mmin=t.mmin,s.mmax=t.mmax,s.hasM=!0),s}return"rings"in t?{rings:c(t.rings,e),hasM:t.hasM,hasZ:t.hasZ}:"paths"in t?{paths:c(t.paths,e),hasM:t.hasM,hasZ:t.hasZ}:"points"in t?{points:h(t.points,e),hasM:t.hasM,hasZ:t.hasZ}:null}function c(e,t){const s=[];for(const i of e)s.push(h(i,t));return s}function h(e,t){const s=[];for(const i of e){const e=t(i[0],i[1],[0,0]);s.push(e),i.length>2&&e.push(i[2]),i.length>3&&e.push(i[3])}return s}async function d(e,t){if(!e||!t)return;const s=Array.isArray(e)?e.map((e=>(0,i.pC)(e.geometry)?e.geometry.spatialReference:null)).filter(i.pC):[e];await(0,r.iQ)(s.map((e=>({source:e,dest:t}))))}const f=u.bind(null,o.hG),m=u.bind(null,o.R6);function p(e,t,s,i){if(!e)return e;if(s||(s=t,t=e.spatialReference),!(0,a.JY)(t)||!(0,a.JY)(s)||(0,a.fS)(t,s))return e;if((0,o.Q8)(t,s)){const t=(0,a.sS)(s)?f(e):m(e);return t.spatialReference=s,t}return(0,r.oj)(n.N,[e],t,s,null,i)[0]}const g=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(e,t,s){if(!e||!e.length||!t||!s||(0,a.fS)(t,s))return e;const i={geometries:e,inSpatialReference:t,outSpatialReference:s,resolve:null};return this._jobs.push(i),new Promise((e=>{i.resolve=e,null===this._timer&&(this._timer=setTimeout(this._process,10))}))}_process(){this._timer=null;const e=this._jobs.shift();if(!e)return;const{geometries:t,inSpatialReference:s,outSpatialReference:i,resolve:l}=e;(0,o.Q8)(s,i)?(0,a.sS)(i)?l(t.map(f)):l(t.map(m)):l((0,r.oj)(n.N,t,s,i,null,null)),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function y(e,t,s){return g.push(e,t,s)}},11490:(e,t,s)=>{s.d(t,{EG:()=>v,Op:()=>b,S2:()=>F,Up:()=>S,j6:()=>T,vF:()=>p});var i=s(35454),r=s(70586),n=s(67900),a=s(44547),o=s(49600),l=s(33955),u=s(82526),c=s(8744),h=s(98732),d=s(5428),f=s(37427);const m=new i.X({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),p=Object.freeze({}),g=new d.Z,y=new d.Z,x=new d.Z,w={esriGeometryPoint:h.fQ,esriGeometryPolyline:h.J6,esriGeometryPolygon:h.eG,esriGeometryMultipoint:h.Iv};function v(e,t,s,i=e.hasZ,n=e.hasM){if((0,r.Wi)(t))return null;const a=e.hasZ&&i,o=e.hasM&&n;if(s){const r=(0,h.Nh)(x,t,e.hasZ,e.hasM,"esriGeometryPoint",s,i,n);return(0,h.fQ)(r,a,o)}return(0,h.fQ)(t,a,o)}function b(e,t,s,i,n,a,o=t,l=s){const u=t&&o,c=s&&l,d=(0,r.pC)(i)?"coords"in i?i:i.geometry:null;if((0,r.Wi)(d))return null;if(n){let i=(0,h.zj)(y,d,t,s,e,n,o,l);return a&&(i=(0,h.Nh)(x,i,u,c,e,a)),w[e]?.(i,u,c)??null}if(a){const i=(0,h.Nh)(x,d,t,s,e,a,o,l);return w[e]?.(i,u,c)??null}return(0,h.hY)(g,d,t,s,o,l),w[e]?.(g,u,c)??null}async function S(e,t,s){const{outFields:i,orderByFields:r,groupByFieldsForStatistics:n,outStatistics:a}=e;if(i)for(let e=0;e<i.length;e++)i[e]=i[e].trim();if(r)for(let e=0;e<r.length;e++)r[e]=r[e].trim();if(n)for(let e=0;e<n.length;e++)n[e]=n[e].trim();if(a)for(let e=0;e<a.length;e++)a[e].onStatisticField&&(a[e].onStatisticField=a[e].onStatisticField.trim());return e.geometry&&!e.outSR&&(e.outSR=e.geometry.spatialReference),T(e,t,s)}async function T(e,t,i){if(!e)return null;let{where:a}=e;if(e.where=a=a&&a.trim(),(!a||/^1 *= *1$/.test(a)||t&&t===a)&&(e.where=null),!e.geometry)return e;let h=await async function(e){const{distance:t,units:i}=e,r=e.geometry;if(null==t||"vertexAttributes"in r)return r;const a=r.spatialReference,o=i?m.fromJSON(i):(0,n.qE)(a),l=a&&((0,c.sT)(a)||(0,c.sS)(a))?r:await(0,f._W)(a,c.Zn).then((()=>(0,f.iV)(r,c.Zn)));return(await async function(){return(await Promise.all([s.e(5837),s.e(247)]).then(s.bind(s,30247))).geodesicBuffer}())(l.spatialReference,l,t,o)}(e);if(e.distance=0,e.units=null,"esriSpatialRelEnvelopeIntersects"===e.spatialRel){const{spatialReference:t}=e.geometry;h=(0,o.aO)(h),h.spatialReference=t}if(h){await(0,f._W)(h.spatialReference,i),h=function(e,t){const s=e.spatialReference;return _(e,t)&&(0,l.YX)(e)?{spatialReference:s,rings:[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]}:e}(h,i);const t=(await(0,u.aX)((0,l.im)(h)))[0];if((0,r.Wi)(t))throw p;const s="quantizationParameters"in e&&e.quantizationParameters?.tolerance||"maxAllowableOffset"in e&&e.maxAllowableOffset||0,n=s&&_(h,i)?{densificationStep:8*s}:void 0,a=t.toJSON(),o=await(0,f.iV)(a,a.spatialReference,i,n);if(!o)throw p;o.spatialReference=i,e.geometry=o}return e}function _(e,t){if(!e)return!1;const s=e.spatialReference;return((0,l.YX)(e)||(0,l.oU)(e)||(0,l.l9)(e))&&!(0,c.fS)(s,t)&&!(0,a.Up)(s,t)}function F(e){return e&&I in e?JSON.parse(JSON.stringify(e,M)):e}const I="_geVersion",M=(e,t)=>e!==I?t:void 0},3172:(e,t,s)=>{s.r(t),s.d(t,{default:()=>f});var i=s(68773),r=s(40330),n=s(20102),a=s(80442),o=s(22974),l=s(70586),u=s(95330),c=s(17452),h=s(71058),d=s(85958);async function f(e,t){const o=(0,c.HK)(e),y=(0,c.jc)(e);y||o||(e=(0,c.Fv)(e));const x={url:e,requestOptions:{...(0,l.Wg)(t)}};let w=(0,c.oh)(e);if(w){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let s,i;try{i=await e.before(t)}catch(e){s=T("request:interceptor",e,t)}if((i instanceof Error||i instanceof n.Z)&&(s=T("request:interceptor",i,t)),s)throw e.error&&e.error(s),s;return i}}(w,x);if(null!=e)return{data:e,getHeader:v,requestOptions:x.requestOptions,url:x.url};w.after||w.error||(w=null)}if(e=x.url,"image"===(t=x.requestOptions).responseType){if((0,a.Z)("host-webworker")||(0,a.Z)("host-node"))throw T("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),x)}else if(o)throw T("request:invalid-parameters",new Error("Data URLs are not supported for responseType = "+t.responseType),x);if("head"===t.method){if(t.body)throw T("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),x);if(o||y)throw T("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),x)}if(await async function(){(0,a.Z)("host-webworker")?m||(m=await s.e(9884).then(s.bind(s,29884))):f._abortableFetch||(f._abortableFetch=globalThis.fetch.bind(globalThis))}(),m)return m.execute(e,t);const b=new AbortController;(0,u.fu)(t,(()=>b.abort()));const S={controller:b,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:w,params:x,redoRequest:!1,useIdentity:p.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},M=await async function(e){let t,s;await async function(e){const t=e.params.url,s=e.params.requestOptions,n=e.controller.signal,a=s.body;let o=null,l=null;if(g&&"HTMLFormElement"in globalThis&&(a instanceof FormData?o=a:a instanceof HTMLFormElement&&(o=new FormData(a))),"string"==typeof a&&(l=a),e.fetchOptions={cache:s.cacheBust&&!f._abortableFetch.polyfill?"no-cache":"default",credentials:"same-origin",headers:s.headers||{},method:"head"===s.method?"HEAD":"GET",mode:"cors",priority:p.priority,redirect:"follow",signal:n},(o||l)&&(e.fetchOptions.body=o||l),"anonymous"===s.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||s.query?.token||o?.get("token")),!e.hasToken&&i.Z.apiKey&&(0,h.r)(t)&&(s.query||(s.query={}),s.query.token=i.Z.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!F(t)&&!(0,u.Hc)(n)){let i;"immediate"===s.authMode?(await _(),i=await r.id.getCredential(t,{signal:n}),e.credential=i):"no-prompt"===s.authMode?(await _(),i=await r.id.getCredential(t,{prompt:!1,signal:n}).catch((()=>{})),e.credential=i):r.id&&(i=r.id.findCredential(t)),i&&(e.credentialToken=i.token,e.useSSL=!!i.ssl)}}(e);try{do{[t,s]=await I(e)}while(!await C(e,t,s))}catch(s){const i=T("request:server",s,e.params,t);throw i.details.ssl=e.useSSL,e.interceptor&&e.interceptor.error&&e.interceptor.error(i),i}const n=e.params.url;if(s&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(n)){if(!e.hasToken&&!e.credentialToken&&s.user?.username&&!(0,c.kl)(n)){const e=(0,c.P$)(n,!0);e&&p.trustedServers.push(e)}Array.isArray(s.authorizedCrossOriginNoCorsDomains)&&(0,d.Hu)(s.authorizedCrossOriginNoCorsDomains)}const a=e.credential;if(a&&r.id){const e=r.id.findServerInfo(a.server);let t=e&&e.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=r.id.findCredential(t,a.userId);e&&-1===r.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:s,getHeader:t?e=>t?.headers.get(e):v,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(S);return w?.after?.(M),M}let m;const p=i.Z.request,g="FormData"in globalThis,y=[499,498,403,401],x=["COM_0056","COM_0057","SB_0008"],w=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],v=()=>null,b=Symbol();function S(e){const t=(0,c.P$)(e);return!t||t.endsWith(".arcgis.com")||f._corsServers.includes(t)||(0,c.kl)(t)}function T(e,t,s,i){let r="Error";const a={url:s.url,requestOptions:s.requestOptions,getHeader:v,ssl:!1};if(t instanceof n.Z)return t.details?(t.details=(0,o.d9)(t.details),t.details.url=s.url,t.details.requestOptions=s.requestOptions):t.details=a,t;if(t){const e=i&&(e=>i.headers.get(e)),s=i&&i.status,n=t.message;n&&(r=n),e&&(a.getHeader=e),a.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||s||0,a.subCode=t.subcode,a.messageCode=t.messageCode,"string"==typeof t.details?a.messages=[t.details]:a.messages=t.details,a.raw=b in t?t[b]:t}return(0,u.D_)(t)?(0,u.zE)():new n.Z(e,r,a)}async function _(){r.id||await Promise.all([s.e(6261),s.e(1400),s.e(1761)]).then(s.bind(s,55142))}function F(e){return w.some((t=>t.test(e)))}async function I(e){let t=e.params.url;const s=e.params.requestOptions,i=e.fetchOptions??{},n=(0,c.jc)(t)||(0,c.HK)(t),o=s.responseType||"json",l=n?0:null!=s.timeout?s.timeout:p.timeout;let h=!1;if(!n){e.useSSL&&(t=(0,c.hO)(t)),s.cacheBust&&"default"===i.cache&&(t=(0,c.ZN)(t,"request.preventCache",Date.now()));let n={...s.query};e.credentialToken&&(n.token=e.credentialToken);let o=(0,c.B7)(n);(0,a.Z)("esri-url-encodes-apostrophe")&&(o=o.replace(/'/g,"%27"));const l=t.length+1+o.length;let u;h="delete"===s.method||"post"===s.method||"put"===s.method||!!s.body||l>p.maxUrlLength;const f=s.useProxy||!!(0,c.ed)(t);if(f){const e=(0,c.b7)(t);u=e.path,!h&&u.length+1+l>p.maxUrlLength&&(h=!0),e.query&&(n={...e.query,...n})}if("HEAD"===i.method&&(h||f)){if(h){if(l>p.maxUrlLength)throw T("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw T("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(f)throw T("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(h?(i.method="delete"===s.method?"DELETE":"put"===s.method?"PUT":"POST",s.body?t=(0,c.fl)(t,n):(i.body=(0,c.B7)(n),i.headers||(i.headers={}),i.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,c.fl)(t,n),f&&(e.useProxy=!0,t=`${u}?${t}`),n.token&&g&&i.body instanceof FormData&&!/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(t)&&i.body.set("token",n.token),s.hasOwnProperty("withCredentials"))e.withCredentials=s.withCredentials;else if(!(0,c.D6)(t,(0,c.TI)()))if((0,c.kl)(t))e.withCredentials=!0;else if(r.id){const s=r.id.findServerInfo(t);s&&s.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(i.credentials="include",(0,d.jH)(t)&&await(0,d.jz)(h?(0,c.fl)(t,n):t))}let m,y,x=0,w=!1;l>0&&(x=setTimeout((()=>{w=!0,e.controller.abort()}),l));try{if("native-request-init"===s.responseType)y=i,y.url=t;else if("image"!==s.responseType||"default"!==i.cache||"GET"!==i.method||h||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(s.headers)||!n&&!e.useProxy&&p.proxyUrl&&!S(t)){if(m=await f._abortableFetch(t,i),e.useProxy||function(e){const t=(0,c.P$)(e);t&&!f._corsServers.includes(t)&&f._corsServers.push(t)}(t),"native"===s.responseType)y=m;else if("HEAD"!==i.method)if(m.ok){switch(o){case"array-buffer":y=await m.arrayBuffer();break;case"blob":case"image":y=await m.blob();break;default:y=await m.text()}if(x&&(clearTimeout(x),x=0),"json"===o||"xml"===o||"document"===o)if(y)switch(o){case"json":y=JSON.parse(y);break;case"xml":y=M(y,"application/xml");break;case"document":y=M(y,"text/html")}else y=null;if(y){if("array-buffer"===o||"blob"===o){const e=m.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&y["blob"===o?"size":"byteLength"]<=750)try{const e=await new Response(y).json();e.error&&(y=e)}catch{}}"image"===o&&y instanceof Blob&&(y=await q(URL.createObjectURL(y),e,!0))}}else y=await m.text()}else y=await q(t,e)}catch(i){if("AbortError"===i.name){if(w)throw new Error("Timeout exceeded");throw(0,u.zE)("Request canceled")}if(!(!m&&i instanceof TypeError&&p.proxyUrl)||s.body||"delete"===s.method||"head"===s.method||"post"===s.method||"put"===s.method||e.useProxy||S(t))throw i;e.redoRequest=!0,(0,c.tD)({proxyUrl:p.proxyUrl,urlPrefix:(0,c.P$)(t)??""})}finally{x&&clearTimeout(x)}return[m,y]}function M(e,t){let s;try{s=(new DOMParser).parseFromString(e,t)}catch{}if(!s||s.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return s}async function C(e,t,s){if(e.redoRequest)return e.redoRequest=!1,!1;const i=e.params.requestOptions;if(!t||"native"===i.responseType||"native-request-init"===i.responseType)return!0;let n,a;if(!t.ok)throw n=new Error(`Unable to load ${t.url} status: ${t.status}`),n[b]=s,n;s&&(s.error?n=s.error:"error"===s.status&&Array.isArray(s.messages)&&(n={...s},n[b]=s,n.details=s.messages));let o,l=null;n&&(a=Number(n.code),l=n.hasOwnProperty("subcode")?Number(n.subcode):null,o=n.messageCode,o=o&&o.toUpperCase());const u=i.authMode;if(403===a&&(4===l||n.message&&n.message.toLowerCase().includes("ssl")&&!n.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===a)&&void 0!==a&&y.includes(a)&&!F(e.params.url)&&(403!==a||o&&!x.includes(o)&&(null==l||2===l&&e.credentialToken))){await _();try{const t=await r.id.getCredential(e.params.url,{error:T("request:server",n,e.params),prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===u)return e.credential=void 0,e.credentialToken=void 0,!1;n=t}}if(n)throw n;return!0}function q(e,t,s=!1){const i=t.controller.signal,r=new Image;return t.withCredentials?r.crossOrigin="use-credentials":r.crossOrigin="anonymous",r.alt="",r.fetchPriority=p.priority,r.src=e,(0,d.fY)(r,e,s,i)}f._abortableFetch=null,f._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(e,t,s)=>{s.d(t,{r:()=>n});var i=s(17452);const r=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function n(e){const t=(0,i.P$)(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!r.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},85958:(e,t,s)=>{s.d(t,{Hu:()=>c,fY:()=>l,jH:()=>h,jz:()=>d});var i=s(68773),r=s(80442),n=s(70586),a=s(95330),o=s(17452);function l(e,t,s=!1,i){return new Promise(((o,l)=>{if((0,a.Hc)(i))return void l(u());let c=()=>{f(),l(new Error(`Unable to load ${t}`))},h=()=>{const t=e;f(),o(t)},d=()=>{if(!e)return;const t=e;f(),t.src="",l(u())};const f=()=>{(0,r.Z)("esri-image-decode")||(e.removeEventListener("error",c),e.removeEventListener("load",h)),c=null,h=null,e=null,(0,n.pC)(i)&&i.removeEventListener("abort",d),d=null,s&&URL.revokeObjectURL(t)};(0,n.pC)(i)&&i.addEventListener("abort",d),(0,r.Z)("esri-image-decode")?e.decode().then(h,c):(e.addEventListener("error",c),e.addEventListener("load",h))}))}function u(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}function c(e){i.Z.request.crossOriginNoCorsDomains||(i.Z.request.crossOriginNoCorsDomains={});const t=i.Z.request.crossOriginNoCorsDomains;for(let s of e)s=s.toLowerCase(),/^https?:\/\//.test(s)?t[(0,o.P$)(s)??""]=0:(t[(0,o.P$)("http://"+s)??""]=0,t[(0,o.P$)("https://"+s)??""]=0)}function h(e){const t=i.Z.request.crossOriginNoCorsDomains;if(t){let s=(0,o.P$)(e);if(s)return s=s.toLowerCase(),!(0,o.D6)(s,(0,o.TI)())&&t[s]<Date.now()-36e5}return!1}async function d(e){const t=i.Z.request.crossOriginNoCorsDomains,s=(0,o.P$)(e);t&&s&&(t[s.toLowerCase()]=Date.now());const r=(0,o.mN)(e);e=r.path,"json"===r.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7277],{7277:(e,t,s)=>{s.r(t),s.d(t,{toBinaryGLTF:()=>z});var _,i=s(17452),n=s(95330),r=s(94139);!function(e){e[e.JSON=1313821514]="JSON",e[e.BIN=5130562]="BIN"}(_||(_={}));class E{constructor(e,t){if(!e)throw new Error("GLB requires a JSON gltf chunk");this._length=E.HEADER_SIZE,this._length+=E.CHUNK_HEADER_SIZE;const s=this._textToArrayBuffer(e);if(this._length+=this._alignTo(s.byteLength,4),t&&(this._length+=E.CHUNK_HEADER_SIZE,this._length+=t.byteLength,t.byteLength%4))throw new Error("Expected BIN chunk length to be divisible by 4 at this point");this.buffer=new ArrayBuffer(this._length),this._outView=new DataView(this.buffer),this._writeHeader();const i=this._writeChunk(s,12,_.JSON,32);t&&this._writeChunk(t,i,_.BIN)}_writeHeader(){this._outView.setUint32(0,E.MAGIC,!0),this._outView.setUint32(4,E.VERSION,!0),this._outView.setUint32(8,this._length,!0)}_writeChunk(e,t,s,_=0){const i=this._alignTo(e.byteLength,4);for(this._outView.setUint32(t,i,!0),this._outView.setUint32(t+=4,s,!0),this._writeArrayBuffer(this._outView.buffer,e,t+=4,0,e.byteLength),t+=e.byteLength;t%4;)_&&this._outView.setUint8(t,_),t++;return t}_writeArrayBuffer(e,t,s,_,i){new Uint8Array(e,s,i).set(new Uint8Array(t,_,i),0)}_textToArrayBuffer(e){return(new TextEncoder).encode(e).buffer}_alignTo(e,t){return t*Math.ceil(e/t)}}E.HEADER_SIZE=12,E.CHUNK_HEADER_SIZE=8,E.MAGIC=1179937895,E.VERSION=2;var a,T,R,o,A,c,N,h=s(30175),f=s(70586),u=s(51305),S=s(94961),C=s(17896),O=s(65617),I=s(60746),l=s(66459);!function(e){e[e.External=0]="External",e[e.DataURI=1]="DataURI",e[e.GLB=2]="GLB"}(a||(a={})),function(e){e[e.External=0]="External",e[e.DataURI=1]="DataURI",e[e.GLB=2]="GLB"}(T||(T={})),function(e){e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER"}(R||(R={})),function(e){e.SCALAR="SCALAR",e.VEC2="VEC2",e.VEC3="VEC3",e.VEC4="VEC4",e.MAT2="MAT2",e.MAT3="MAT3",e.MAT4="MAT4"}(o||(o={})),function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(A||(A={})),function(e){e.OPAQUE="OPAQUE",e.MASK="MASK",e.BLEND="BLEND"}(c||(c={})),function(e){e[e.NoColor=0]="NoColor",e[e.FaceColor=1]="FaceColor",e[e.VertexColor=2]="VertexColor"}(N||(N={}));var L=s(35371);class d{constructor(e,t,s,_,i){this._buffer=e,this._componentType=s,this._dataType=_,this._data=[],this._isFinalized=!1,this._accessorIndex=-1,this._accessorAttribute=null,this._accessorMin=null,this._accessorMax=null,t.bufferViews||(t.bufferViews=[]),this.index=t.bufferViews.length,this._bufferView={buffer:e.index,byteLength:-1,target:i};const n=this._getElementSize();n>=4&&i!==R.ELEMENT_ARRAY_BUFFER&&(this._bufferView.byteStride=n),t.bufferViews.push(this._bufferView),this._numComponentsForDataType=this._calculateNumComponentsForDataType()}push(e){const t=this._data.length;if(this._data.push(e),this._accessorIndex>=0){const s=t%this._numComponentsForDataType,_=this._accessorMin[s];this._accessorMin[s]="number"!=typeof _?e:Math.min(_,e);const i=this._accessorMax[s];this._accessorMax[s]="number"!=typeof i?e:Math.max(i,e)}}get dataSize(){return this._data.length*this._sizeComponentType()}get byteSize(){return e=this.dataSize,4*Math.ceil(e/4);var e}getByteOffset(){if(!this._isFinalized)throw new Error("Cannot get BufferView offset until it is finalized");return this._buffer.getByteOffset(this)}get byteOffset(){if(!this._isFinalized)throw new Error("Cannot get BufferView offset until it is finalized");return this._buffer.getByteOffset(this)}_createTypedArray(e,t){switch(this._componentType){case L.g.BYTE:return new Int8Array(e,t);case L.g.FLOAT:return new Float32Array(e,t);case L.g.SHORT:return new Int16Array(e,t);case L.g.UNSIGNED_BYTE:return new Uint8Array(e,t);case L.g.UNSIGNED_INT:return new Uint32Array(e,t);case L.g.UNSIGNED_SHORT:return new Uint16Array(e,t)}}writeOutToBuffer(e,t){this._createTypedArray(e,t).set(this._data)}writeAsync(e){if(this._asyncWritePromise)throw new Error("Can't write multiple bufferView values asynchronously");return this._asyncWritePromise=e.then((e=>{const t=new Uint8Array(e);for(let e=0;e<t.length;++e)this._data.push(t[e]);delete this._asyncWritePromise})),this._asyncWritePromise}startAccessor(e){if(this._accessorIndex>=0)throw new Error("Accessor was started without ending the previous one");this._accessorIndex=this._data.length,this._accessorAttribute=e;const t=this._numComponentsForDataType;this._accessorMin=new Array(t),this._accessorMax=new Array(t)}endAccessor(){if(this._accessorIndex<0)throw new Error("An accessor was not started, but was attempted to be ended");const e=this._getElementSize(),t=this._numComponentsForDataType,s=(this._data.length-this._accessorIndex)/t;if(s%1)throw new Error("An accessor was ended with missing component values");for(let e=0;e<this._accessorMin.length;++e)"number"!=typeof this._accessorMin[e]&&(this._accessorMin[e]=0),"number"!=typeof this._accessorMax[e]&&(this._accessorMax[e]=0);const _={byteOffset:e*(this._accessorIndex/t),componentType:this._componentType,count:s,type:this._dataType,min:this._accessorMin,max:this._accessorMax,name:this._accessorAttribute};switch(this._accessorAttribute){case"TEXCOORD_0":case"TEXCOORD_1":case"COLOR_0":case"WEIGHTS_0":switch(this._componentType){case L.g.UNSIGNED_BYTE:case L.g.UNSIGNED_SHORT:_.normalized=!0}}return this._accessorIndex=-1,this._accessorAttribute=null,this._accessorMin=null,this._accessorMax=null,_}get finalized(){return this._finalizedPromise?this._finalizedPromise:this._isFinalized?this._finalizedPromise=Promise.resolve():this._finalizedPromise=new Promise((e=>this._finalizedPromiseResolve=e))}finalize(){const e=this._bufferView;return new Promise((e=>{const t=this._buffer.getViewFinalizePromises(this);this._asyncWritePromise&&t.push(this._asyncWritePromise),e((0,n.as)(t))})).then((()=>{this._isFinalized=!0,e.byteOffset=this.getByteOffset(),e.byteLength=this.dataSize,this._finalizedPromiseResolve&&this._finalizedPromiseResolve()}))}_getElementSize(){return this._sizeComponentType()*this._numComponentsForDataType}_sizeComponentType(){switch(this._componentType){case L.g.BYTE:case L.g.UNSIGNED_BYTE:return 1;case L.g.SHORT:case L.g.UNSIGNED_SHORT:return 2;case L.g.UNSIGNED_INT:case L.g.FLOAT:return 4}}_calculateNumComponentsForDataType(){switch(this._dataType){case o.SCALAR:return 1;case o.VEC2:return 2;case o.VEC3:return 3;case o.VEC4:case o.MAT2:return 4;case o.MAT3:return 9;case o.MAT4:return 16}}}class M{constructor(e){this._gltf=e,this._bufferViews=[],this._isFinalized=!1,e.buffers||(e.buffers=[]),this.index=e.buffers.length;const t={byteLength:-1};e.buffers.push(t),this._buffer=t}addBufferView(e,t,s){if(this._finalizePromise)throw new Error("Cannot add buffer view after fiinalizing buffer");const _=new d(this,this._gltf,e,t,s);return this._bufferViews.push(_),_}getByteOffset(e){let t=0;for(const s of this._bufferViews){if(s===e)return t;t+=s.byteSize}throw new Error("Given bufferView was not present in this buffer")}getViewFinalizePromises(e){const t=[];for(const s of this._bufferViews){if(e&&s===e)return t;t.push(s.finalized)}return t}getArrayBuffer(){if(!this._isFinalized)throw new Error("Cannot get ArrayBuffer from Buffer before it is finalized");const e=this._getTotalSize(),t=new ArrayBuffer(e);let s=0;for(const e of this._bufferViews)e.writeOutToBuffer(t,s),s+=e.byteSize;return t}finalize(){if(this._finalizePromise)throw new Error(`Buffer ${this.index} was already finalized`);return this._finalizePromise=new Promise((e=>{e((0,n.as)(this.getViewFinalizePromises()))})).then((()=>{this._isFinalized=!0;const e=this.getArrayBuffer();this._buffer.byteLength=e.byteLength,this._buffer.uri=e})),this._gltf.extras?.promises.push(this._finalizePromise),this._finalizePromise}_getTotalSize(){let e=0;for(const t of this._bufferViews)e+=t.byteSize;return e}}function D(e,t){if(e.components)for(const s of e.components)s.faces&&"smooth"===s.shading&&B(s,t)}function B(e,t){(0,f.Wi)(t.normal)&&(t.normal=new Float32Array(t.position.length));const s=e.faces,{position:_,normal:i}=t,n=s.length/3;for(let e=0;e<n;++e){const t=3*s[3*e+0],n=3*s[3*e+1],r=3*s[3*e+2],E=(0,C.s)(P,_[t+0],_[t+1],_[t+2]),a=(0,C.s)(U,_[n+0],_[n+1],_[n+2]),T=(0,C.s)(p,_[r+0],_[r+1],_[r+2]),R=(0,C.b)(a,a,E),o=(0,C.b)(T,T,E),A=(0,C.f)(R,R,o);i[t+0]+=A[0],i[t+1]+=A[1],i[t+2]+=A[2],i[n+0]+=A[0],i[n+1]+=A[1],i[n+2]+=A[2],i[r+0]+=A[0],i[r+1]+=A[1],i[r+2]+=A[2]}for(let e=0;e<i.length;e+=3)(0,C.s)(G,i[e],i[e+1],i[e+2]),(0,C.n)(G,G),i[e+0]=G[0],i[e+1]=G[1],i[e+2]=G[2]}const P=(0,O.c)(),U=(0,O.c)(),p=(0,O.c)(),G=(0,O.c)();s(80442);var g=s(20102);async function m(e){const t=F(e);if((0,f.Wi)(t))throw new g.Z("imageToArrayBuffer","Unsupported image type");const s=await async function(e){if(!(e instanceof HTMLImageElement))return"image/png";const t=e.src;if((0,i.HK)(t)){const e=(0,i.sJ)(t);return"image/jpeg"===e?.mediaType?e.mediaType:"image/png"}return/\.png$/i.test(t)?"image/png":/\.(jpg|jpeg)$/i.test(t)?"image/jpeg":"image/png"}(e),_=await new Promise((e=>t.toBlob(e,s)));if(!_)throw new g.Z("imageToArrayBuffer","Failed to encode image");return{data:await _.arrayBuffer(),type:s}}function F(e){if(e instanceof HTMLCanvasElement)return e;if(e instanceof HTMLVideoElement)return null;const t=document.createElement("canvas");t.width=e.width,t.height=e.height;const s=t.getContext("2d");return e instanceof HTMLImageElement?s.drawImage(e,0,0,e.width,e.height):e instanceof ImageData&&s.putImageData(e,0,0),t}class w{constructor(e,t,s){this.params={},this._materialMap=new Array,this._imageMap=new Map,this._textureMap=new Map,this.gltf={asset:{version:"2.0",copyright:e.copyright,generator:e.generator},extras:{options:t,binChunkBuffer:null,promises:[]}},s&&(this.params=s),this._addScenes(e)}_addScenes(e){this.gltf.scene=e.defaultScene;const t=this.gltf.extras,s=t.options.bufferOutputType===a.GLB||t.options.imageOutputType===T.GLB;s&&(t.binChunkBuffer=new M(this.gltf)),e.forEachScene((e=>{this._addScene(e)})),s&&t.binChunkBuffer.finalize()}_addScene(e){this.gltf.scenes||(this.gltf.scenes=[]);const t={};e.name&&(t.name=e.name),e.forEachNode((e=>{t.nodes||(t.nodes=[]);const s=this._addNode(e);t.nodes.push(s)})),this.gltf.scenes.push(t)}_addNode(e){this.gltf.nodes||(this.gltf.nodes=[]);const t={};e.name&&(t.name=e.name);const s=e.translation;(0,C.w)(s,O.Z)||(t.translation=(0,O.a)(s));const _=e.rotation;(0,u.j)(_,S.I)||(t.rotation=(0,S.b)(_));const i=e.scale;(0,C.w)(i,O.O)||(t.scale=(0,O.a)(i)),e.mesh&&e.mesh.vertexAttributes.position?t.mesh=this._addMesh(e.mesh):e.forEachNode((e=>{t.children||(t.children=[]);const s=this._addNode(e);t.children.push(s)}));const n=this.gltf.nodes.length;return this.gltf.nodes.push(t),n}_addMesh(e){this.gltf.meshes||(this.gltf.meshes=[]);const t={primitives:[]},s=this.gltf.extras,_=s.options.bufferOutputType===a.GLB;let i;i=_?s.binChunkBuffer:new M(this.gltf),this.params.origin||(this.params.origin=function(e){if((0,f.pC)(e.transform))return e.transform.getOriginPoint(e.spatialReference);const t=e.extent.xmax-e.extent.width/2,s=e.extent.ymax-e.extent.height/2,_=e.extent.zmin;return new r.Z({x:t,y:s,z:_,spatialReference:e.extent.spatialReference})}(e));const n=(0,l.Yq)(e.vertexAttributes,e.transform,this.params.origin,{geographic:this.params.geographic,unit:"meters"});D(e,n),this._flipYZAxis(n);const E=i.addBufferView(L.g.FLOAT,o.VEC3,R.ARRAY_BUFFER);let T,A,c,N;n.normal&&(T=i.addBufferView(L.g.FLOAT,o.VEC3,R.ARRAY_BUFFER)),e.vertexAttributes.uv&&(A=i.addBufferView(L.g.FLOAT,o.VEC2,R.ARRAY_BUFFER)),n.tangent&&(c=i.addBufferView(L.g.FLOAT,o.VEC4,R.ARRAY_BUFFER)),e.vertexAttributes.color&&(N=i.addBufferView(L.g.UNSIGNED_BYTE,o.VEC4,R.ARRAY_BUFFER)),E.startAccessor("POSITION"),T&&T.startAccessor("NORMAL"),A&&A.startAccessor("TEXCOORD_0"),c&&c.startAccessor("TANGENT"),N&&N.startAccessor("COLOR_0");const h=n.position.length/3,{position:u,normal:S,tangent:C}=n,{color:O,uv:I}=e.vertexAttributes;for(let e=0;e<h;++e)E.push(u[3*e+0]),E.push(u[3*e+1]),E.push(u[3*e+2]),T&&(0,f.pC)(S)&&(T.push(S[3*e+0]),T.push(S[3*e+1]),T.push(S[3*e+2])),A&&(0,f.pC)(I)&&(A.push(I[2*e+0]),A.push(I[2*e+1])),c&&(0,f.pC)(C)&&(c.push(C[4*e+0]),c.push(C[4*e+1]),c.push(C[4*e+2]),c.push(C[4*e+3])),N&&(0,f.pC)(O)&&(N.push(O[4*e+0]),N.push(O[4*e+1]),N.push(O[4*e+2]),N.push(O[4*e+3]));const d=E.endAccessor(),B=this._addAccessor(E.index,d);let P,U,p,G,g;if(T){const e=T.endAccessor();P=this._addAccessor(T.index,e)}if(A){const e=A.endAccessor();U=this._addAccessor(A.index,e)}if(c){const e=c.endAccessor();p=this._addAccessor(c.index,e)}if(N){const e=N.endAccessor();G=this._addAccessor(N.index,e)}e.components&&e.components.length>0&&e.components[0].faces?(g=i.addBufferView(L.g.UNSIGNED_INT,o.SCALAR,R.ELEMENT_ARRAY_BUFFER),this._addMeshVertexIndexed(g,e.components,t,B,P,U,p,G)):this._addMeshVertexNonIndexed(e.components,t,B,P,U,p,G),E.finalize(),T&&T.finalize(),A&&A.finalize(),c&&c.finalize(),g&&g.finalize(),N&&N.finalize(),_||i.finalize();const m=this.gltf.meshes.length;return this.gltf.meshes.push(t),m}_flipYZAxis({position:e,normal:t,tangent:s}){this._flipYZBuffer(e,3),this._flipYZBuffer(t,3),this._flipYZBuffer(s,4)}_flipYZBuffer(e,t){if(!(0,f.Wi)(e))for(let s=1,_=2;s<e.length;s+=t,_+=t){const t=e[s],i=e[_];e[s]=i,e[_]=-t}}_addMaterial(e){if(null===e)return;const t=this._materialMap.indexOf(e);if(-1!==t)return t;this.gltf.materials||(this.gltf.materials=[]);const s={};switch(e.alphaMode){case"mask":s.alphaMode=c.MASK;break;case"auto":case"blend":s.alphaMode=c.BLEND}.5!==e.alphaCutoff&&(s.alphaCutoff=e.alphaCutoff),e.doubleSided&&(s.doubleSided=e.doubleSided),s.pbrMetallicRoughness={};const _=e=>e**2.1,i=e=>{const t=e.toRgba();return t[0]=_(t[0]/255),t[1]=_(t[1]/255),t[2]=_(t[2]/255),t};if((0,f.pC)(e.color)&&(s.pbrMetallicRoughness.baseColorFactor=i(e.color)),(0,f.pC)(e.colorTexture)&&(s.pbrMetallicRoughness.baseColorTexture={index:this._addTexture(e.colorTexture)}),(0,f.pC)(e.normalTexture)&&(s.normalTexture={index:this._addTexture(e.normalTexture)}),e instanceof I.Z){if((0,f.pC)(e.emissiveTexture)&&(s.emissiveTexture={index:this._addTexture(e.emissiveTexture)}),(0,f.pC)(e.emissiveColor)){const t=i(e.emissiveColor);s.emissiveFactor=[t[0],t[1],t[2]]}(0,f.pC)(e.occlusionTexture)&&(s.occlusionTexture={index:this._addTexture(e.occlusionTexture)}),(0,f.pC)(e.metallicRoughnessTexture)&&(s.pbrMetallicRoughness.metallicRoughnessTexture={index:this._addTexture(e.metallicRoughnessTexture)}),s.pbrMetallicRoughness.metallicFactor=e.metallic,s.pbrMetallicRoughness.roughnessFactor=e.roughness}else s.pbrMetallicRoughness.metallicFactor=1,s.pbrMetallicRoughness.roughnessFactor=1;const n=this.gltf.materials.length;return this.gltf.materials.push(s),this._materialMap.push(e),n}_addTexture(e){const t=this.gltf.textures??[];return this.gltf.textures=t,(0,h.s1)(this._textureMap,e,(()=>{const s={sampler:this._addSampler(e),source:this._addImage(e)},_=t.length;return t.push(s),_}))}_addImage(e){const t=this._imageMap.get(e);if(null!=t)return t;this.gltf.images||(this.gltf.images=[]);const s={};if(e.url)s.uri=e.url;else{const t=e.data;s.extras=t;for(let e=0;e<this.gltf.images.length;++e)if(t===this.gltf.images[e].extras)return e;const _=this.gltf.extras;switch(_.options.imageOutputType){case T.GLB:{const e=_.binChunkBuffer.addBufferView(L.g.UNSIGNED_BYTE,o.SCALAR),i=m(t).then((({data:e,type:t})=>(s.mimeType=t,e)));e.writeAsync(i).then((()=>{e.finalize()})),s.bufferView=e.index;break}case T.DataURI:s.uri=function(e){const t=F(e);return(0,f.pC)(t)?t.toDataURL():""}(t);break;default:_.promises.push(m(t).then((({data:e,type:t})=>{s.uri=e,s.mimeType=t})))}}const _=this.gltf.images.length;return this.gltf.images.push(s),this._imageMap.set(e,_),_}_addSampler(e){this.gltf.samplers||(this.gltf.samplers=[]);let t=L.e8.REPEAT,s=L.e8.REPEAT;if("string"==typeof e.wrap)switch(e.wrap){case"clamp":t=L.e8.CLAMP_TO_EDGE,s=L.e8.CLAMP_TO_EDGE;break;case"mirror":t=L.e8.MIRRORED_REPEAT,s=L.e8.MIRRORED_REPEAT}else{switch(e.wrap.vertical){case"clamp":s=L.e8.CLAMP_TO_EDGE;break;case"mirror":s=L.e8.MIRRORED_REPEAT}switch(e.wrap.horizontal){case"clamp":t=L.e8.CLAMP_TO_EDGE;break;case"mirror":t=L.e8.MIRRORED_REPEAT}}const _={wrapS:t,wrapT:s};for(let e=0;e<this.gltf.samplers.length;++e)if(JSON.stringify(_)===JSON.stringify(this.gltf.samplers[e]))return e;const i=this.gltf.samplers.length;return this.gltf.samplers.push(_),i}_addAccessor(e,t){this.gltf.accessors||(this.gltf.accessors=[]);const s={bufferView:e,byteOffset:t.byteOffset,componentType:t.componentType,count:t.count,type:t.type,min:t.min,max:t.max,name:t.name};t.normalized&&(s.normalized=!0);const _=this.gltf.accessors.length;return this.gltf.accessors.push(s),_}_addMeshVertexIndexed(e,t,s,_,i,n,r,E){for(const a of t){e.startAccessor("INDICES");for(let t=0;t<a.faces.length;++t)e.push(a.faces[t]);const t=e.endAccessor(),T={attributes:{POSITION:_},indices:this._addAccessor(e.index,t),material:this._addMaterial(a.material)};i&&"flat"!==a.shading&&(T.attributes.NORMAL=i),n&&(T.attributes.TEXCOORD_0=n),r&&"flat"!==a.shading&&(T.attributes.TANGENT=r),E&&(T.attributes.COLOR_0=E),s.primitives.push(T)}}_addMeshVertexNonIndexed(e,t,s,_,i,n,r){const E={attributes:{POSITION:s}};_&&(E.attributes.NORMAL=_),i&&(E.attributes.TEXCOORD_0=i),n&&(E.attributes.TANGENT=n),r&&(E.attributes.COLOR_0=r),e&&(E.material=this._addMaterial(e[0].material)),t.primitives.push(E)}}var b=s(67676);class y{constructor(){this.copyright="",this.defaultScene=0,this.generator="",this._scenes=[]}addScene(e){if(this._scenes.includes(e))throw new Error("Scene already added");this._scenes.push(e)}removeScene(e){(0,b.Od)(this._scenes,e)}forEachScene(e){this._scenes.forEach(e)}}class H{constructor(e){this.mesh=e,this.name="",this.translation=(0,O.c)(),this.rotation=(0,S.c)(),this.scale=(0,O.a)(O.O),this._nodes=[]}addNode(e){if(this._nodes.includes(e))throw new Error("Node already added");this._nodes.push(e)}forEachNode(e){this._nodes.forEach(e)}set rotationAngles(e){(0,u.k)(this.rotation,e[0],e[1],e[2])}}const x="model.glb";class V{constructor(){this.name="",this._nodes=[]}addNode(e){if(this._nodes.includes(e))throw new Error("Node already added");this._nodes.push(e)}forEachNode(e){this._nodes.forEach(e)}}class Y{constructor(e,t){this._file={type:"model/gltf-binary",data:e},this.origin=t}buffer(){return Promise.resolve(this._file)}download(e){(0,i.io)(new Blob([this._file.data],{type:this._file.type}),e)}}function z(e,t){const s=new y,_=new V;return s.addScene(_),_.addNode(new H(e)),function(e,t){return function(e,t,s){const _=new w(e,t=t||{},s);let i=_.params;i?i.origin||(i.origin=new r.Z({x:-1,y:-1,z:-1})):i={origin:new r.Z({x:-1,y:-1,z:-1})};const R=i.origin,o=_.gltf,A=o.extras?.promises??[];let c=1,N=1,h=null;return(0,n.as)(A).then((()=>{const e={origin:R};delete o.extras;const s="number"==typeof t.jsonSpacing?t.jsonSpacing:4,_=JSON.stringify(o,((s,_)=>{if("extras"!==s){if(_ instanceof ArrayBuffer){if(function(e){if(e.byteLength<8)return!1;const t=new Uint8Array(e);return 137===t[0]&&80===t[1]&&78===t[2]&&71===t[3]&&13===t[4]&&10===t[5]&&26===t[6]&&10===t[7]}(_))switch(t.imageOutputType){case T.DataURI:case T.GLB:break;case T.External:default:{const t=`img${N}.png`;return N++,e[t]=_,t}}switch(t.bufferOutputType){case a.DataURI:return function(e){const t=[],s=new Uint8Array(e);for(let e=0;e<s.length;e++)t.push(String.fromCharCode(s[e]));return"data:application/octet-stream;base64,"+btoa(t.join(""))}(_);case a.GLB:if(h)throw new Error("Already encountered an ArrayBuffer, there should only be one in the GLB format.");return void(h=_);case a.External:default:{const t=`data${c}.bin`;return c++,e[t]=_,t}}}return _}}),s);return t.bufferOutputType===a.GLB||t.imageOutputType===T.GLB?e[x]=new E(_,h).buffer:e["model.gltf"]=_,e}))}(e,{bufferOutputType:a.GLB,imageOutputType:T.GLB,jsonSpacing:0},t)}(s,t).then((e=>new Y(e[x],e.origin)))}},35371:(e,t,s)=>{var _,i,n,r,E,a,T,R,o,A,c,N,h,f,u,S,C,O,I,l,L,d,M,D;s.d(t,{Br:()=>S,LR:()=>a,Lm:()=>L,Lu:()=>B,MX:()=>i,No:()=>h,OU:()=>d,Tg:()=>C,VI:()=>f,VY:()=>D,Wf:()=>T,_g:()=>M,cw:()=>c,db:()=>r,e8:()=>N,g:()=>R,l1:()=>O,lP:()=>u,q_:()=>P,qi:()=>l,w0:()=>E,wb:()=>o,xS:()=>A,zi:()=>n}),function(e){e[e.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",e[e.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",e[e.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT"}(_||(_={})),function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(i||(i={})),function(e){e[e.ZERO=0]="ZERO",e[e.ONE=1]="ONE",e[e.SRC_COLOR=768]="SRC_COLOR",e[e.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",e[e.SRC_ALPHA=770]="SRC_ALPHA",e[e.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",e[e.DST_ALPHA=772]="DST_ALPHA",e[e.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",e[e.DST_COLOR=774]="DST_COLOR",e[e.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",e[e.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",e[e.CONSTANT_COLOR=32769]="CONSTANT_COLOR",e[e.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",e[e.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",e[e.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA"}(n||(n={})),function(e){e[e.ADD=32774]="ADD",e[e.SUBTRACT=32778]="SUBTRACT",e[e.REVERSE_SUBTRACT=32779]="REVERSE_SUBTRACT"}(r||(r={})),function(e){e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e[e.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",e[e.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",e[e.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",e[e.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER"}(E||(E={})),function(e){e[e.FRONT=1028]="FRONT",e[e.BACK=1029]="BACK",e[e.FRONT_AND_BACK=1032]="FRONT_AND_BACK"}(a||(a={})),function(e){e[e.CW=2304]="CW",e[e.CCW=2305]="CCW"}(T||(T={})),function(e){e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.INT=5124]="INT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.FLOAT=5126]="FLOAT"}(R||(R={})),function(e){e[e.NEVER=512]="NEVER",e[e.LESS=513]="LESS",e[e.EQUAL=514]="EQUAL",e[e.LEQUAL=515]="LEQUAL",e[e.GREATER=516]="GREATER",e[e.NOTEQUAL=517]="NOTEQUAL",e[e.GEQUAL=518]="GEQUAL",e[e.ALWAYS=519]="ALWAYS"}(o||(o={})),function(e){e[e.ZERO=0]="ZERO",e[e.KEEP=7680]="KEEP",e[e.REPLACE=7681]="REPLACE",e[e.INCR=7682]="INCR",e[e.DECR=7683]="DECR",e[e.INVERT=5386]="INVERT",e[e.INCR_WRAP=34055]="INCR_WRAP",e[e.DECR_WRAP=34056]="DECR_WRAP"}(A||(A={})),function(e){e[e.NEAREST=9728]="NEAREST",e[e.LINEAR=9729]="LINEAR",e[e.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",e[e.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",e[e.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",e[e.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR"}(c||(c={})),function(e){e[e.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(N||(N={})),function(e){e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_3D=32879]="TEXTURE_3D",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY"}(h||(h={})),function(e){e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.ALPHA=6406]="ALPHA",e[e.RGB=6407]="RGB",e[e.RGBA=6408]="RGBA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.RED=6403]="RED",e[e.RG=33319]="RG",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER"}(f||(f={})),function(e){e[e.RGBA4=32854]="RGBA4",e[e.R16F=33325]="R16F",e[e.RG16F=33327]="RG16F",e[e.RGB32F=34837]="RGB32F",e[e.RGBA16F=34842]="RGBA16F",e[e.R32F=33326]="R32F",e[e.RG32F=33328]="RG32F",e[e.RGBA32F=34836]="RGBA32F",e[e.R11F_G11F_B10F=35898]="R11F_G11F_B10F",e[e.RGB8=32849]="RGB8",e[e.RGBA8=32856]="RGBA8",e[e.RGB5_A1=32855]="RGB5_A1",e[e.R8=33321]="R8",e[e.RG8=33323]="RG8",e[e.R8I=33329]="R8I",e[e.R8UI=33330]="R8UI",e[e.R16I=33331]="R16I",e[e.R16UI=33332]="R16UI",e[e.R32I=33333]="R32I",e[e.R32UI=33334]="R32UI",e[e.RG8I=33335]="RG8I",e[e.RG8UI=33336]="RG8UI",e[e.RG16I=33337]="RG16I",e[e.RG16UI=33338]="RG16UI",e[e.RG32I=33339]="RG32I",e[e.RG32UI=33340]="RG32UI",e[e.RGB16F=34843]="RGB16F",e[e.RGB9_E5=35901]="RGB9_E5",e[e.SRGB8=35905]="SRGB8",e[e.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",e[e.RGB565=36194]="RGB565",e[e.RGBA32UI=36208]="RGBA32UI",e[e.RGB32UI=36209]="RGB32UI",e[e.RGBA16UI=36214]="RGBA16UI",e[e.RGB16UI=36215]="RGB16UI",e[e.RGBA8UI=36220]="RGBA8UI",e[e.RGB8UI=36221]="RGB8UI",e[e.RGBA32I=36226]="RGBA32I",e[e.RGB32I=36227]="RGB32I",e[e.RGBA16I=36232]="RGBA16I",e[e.RGB16I=36233]="RGB16I",e[e.RGBA8I=36238]="RGBA8I",e[e.RGB8I=36239]="RGB8I",e[e.R8_SNORM=36756]="R8_SNORM",e[e.RG8_SNORM=36757]="RG8_SNORM",e[e.RGB8_SNORM=36758]="RGB8_SNORM",e[e.RGBA8_SNORM=36759]="RGBA8_SNORM",e[e.RGB10_A2=32857]="RGB10_A2",e[e.RGB10_A2UI=36975]="RGB10_A2UI"}(u||(u={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.INT=5124]="INT",e[e.HALF_FLOAT=5131]="HALF_FLOAT",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV"}(S||(S={})),function(e){e[e.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",e[e.STENCIL_INDEX8=36168]="STENCIL_INDEX8",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",e[e.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",e[e.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",e[e.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8"}(C||(C={})),function(e){e[e.STATIC_DRAW=35044]="STATIC_DRAW",e[e.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",e[e.STREAM_DRAW=35040]="STREAM_DRAW",e[e.STATIC_READ=35045]="STATIC_READ",e[e.DYNAMIC_READ=35049]="DYNAMIC_READ",e[e.STREAM_READ=35041]="STREAM_READ",e[e.STATIC_COPY=35046]="STATIC_COPY",e[e.DYNAMIC_COPY=35050]="DYNAMIC_COPY",e[e.STREAM_COPY=35042]="STREAM_COPY"}(O||(O={})),function(e){e[e.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",e[e.VERTEX_SHADER=35633]="VERTEX_SHADER"}(I||(I={})),function(e){e[e.FRAMEBUFFER=36160]="FRAMEBUFFER",e[e.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",e[e.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER"}(l||(l={})),function(e){e[e.TEXTURE=0]="TEXTURE",e[e.RENDER_BUFFER=1]="RENDER_BUFFER",e[e.CUBEMAP=2]="CUBEMAP"}(L||(L={})),function(e){e[e.NONE=0]="NONE",e[e.DEPTH_RENDER_BUFFER=1]="DEPTH_RENDER_BUFFER",e[e.STENCIL_RENDER_BUFFER=2]="STENCIL_RENDER_BUFFER",e[e.DEPTH_STENCIL_RENDER_BUFFER=3]="DEPTH_STENCIL_RENDER_BUFFER",e[e.DEPTH_STENCIL_TEXTURE=4]="DEPTH_STENCIL_TEXTURE"}(d||(d={})),function(e){e[e.Texture=0]="Texture",e[e.BufferObject=1]="BufferObject",e[e.VertexArrayObject=2]="VertexArrayObject",e[e.Shader=3]="Shader",e[e.Program=4]="Program",e[e.FramebufferObject=5]="FramebufferObject",e[e.Renderbuffer=6]="Renderbuffer",e[e.Sync=7]="Sync",e[e.COUNT=8]="COUNT"}(M||(M={})),function(e){e[e.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",e[e.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1",e[e.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2",e[e.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3",e[e.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4",e[e.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5",e[e.COLOR_ATTACHMENT6=36070]="COLOR_ATTACHMENT6",e[e.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7",e[e.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8",e[e.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9",e[e.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10",e[e.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11",e[e.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12",e[e.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13",e[e.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14",e[e.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15"}(D||(D={}));const B=33306;var P,U,p,G,g,m,F;!function(e){e[e.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",e[e.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",e[e.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",e[e.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",e[e.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",e[e.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",e[e.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",e[e.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",e[e.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"}(P||(P={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_VEC2=35664]="FLOAT_VEC2",e[e.FLOAT_VEC3=35665]="FLOAT_VEC3",e[e.FLOAT_VEC4=35666]="FLOAT_VEC4",e[e.INT=5124]="INT",e[e.INT_VEC2=35667]="INT_VEC2",e[e.INT_VEC3=35668]="INT_VEC3",e[e.INT_VEC4=35669]="INT_VEC4",e[e.BOOL=35670]="BOOL",e[e.BOOL_VEC2=35671]="BOOL_VEC2",e[e.BOOL_VEC3=35672]="BOOL_VEC3",e[e.BOOL_VEC4=35673]="BOOL_VEC4",e[e.FLOAT_MAT2=35674]="FLOAT_MAT2",e[e.FLOAT_MAT3=35675]="FLOAT_MAT3",e[e.FLOAT_MAT4=35676]="FLOAT_MAT4",e[e.SAMPLER_2D=35678]="SAMPLER_2D",e[e.SAMPLER_CUBE=35680]="SAMPLER_CUBE",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",e[e.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",e[e.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",e[e.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",e[e.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",e[e.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",e[e.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",e[e.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",e[e.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",e[e.SAMPLER_3D=35679]="SAMPLER_3D",e[e.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",e[e.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",e[e.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",e[e.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",e[e.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",e[e.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",e[e.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",e[e.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",e[e.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",e[e.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",e[e.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",e[e.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY"}(U||(U={})),function(e){e[e.OBJECT_TYPE=37138]="OBJECT_TYPE",e[e.SYNC_CONDITION=37139]="SYNC_CONDITION",e[e.SYNC_STATUS=37140]="SYNC_STATUS",e[e.SYNC_FLAGS=37141]="SYNC_FLAGS"}(p||(p={})),function(e){e[e.UNSIGNALED=37144]="UNSIGNALED",e[e.SIGNALED=37145]="SIGNALED"}(G||(G={})),function(e){e[e.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",e[e.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",e[e.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",e[e.WAIT_FAILED=37149]="WAIT_FAILED"}(g||(g={})),function(e){e[e.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE"}(m||(m={})),function(e){e[e.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT"}(F||(F={}))}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7277],{7277:(e,t,s)=>{s.r(t),s.d(t,{toBinaryGLTF:()=>z});var _,i=s(17452),n=s(95330),r=s(94139);!function(e){e[e.JSON=1313821514]="JSON",e[e.BIN=5130562]="BIN"}(_||(_={}));class E{constructor(e,t){if(!e)throw new Error("GLB requires a JSON gltf chunk");this._length=E.HEADER_SIZE,this._length+=E.CHUNK_HEADER_SIZE;const s=this._textToArrayBuffer(e);if(this._length+=this._alignTo(s.byteLength,4),t&&(this._length+=E.CHUNK_HEADER_SIZE,this._length+=t.byteLength,t.byteLength%4))throw new Error("Expected BIN chunk length to be divisible by 4 at this point");this.buffer=new ArrayBuffer(this._length),this._outView=new DataView(this.buffer),this._writeHeader();const i=this._writeChunk(s,12,_.JSON,32);t&&this._writeChunk(t,i,_.BIN)}_writeHeader(){this._outView.setUint32(0,E.MAGIC,!0),this._outView.setUint32(4,E.VERSION,!0),this._outView.setUint32(8,this._length,!0)}_writeChunk(e,t,s,_=0){const i=this._alignTo(e.byteLength,4);for(this._outView.setUint32(t,i,!0),this._outView.setUint32(t+=4,s,!0),this._writeArrayBuffer(this._outView.buffer,e,t+=4,0,e.byteLength),t+=e.byteLength;t%4;)_&&this._outView.setUint8(t,_),t++;return t}_writeArrayBuffer(e,t,s,_,i){new Uint8Array(e,s,i).set(new Uint8Array(t,_,i),0)}_textToArrayBuffer(e){return(new TextEncoder).encode(e).buffer}_alignTo(e,t){return t*Math.ceil(e/t)}}E.HEADER_SIZE=12,E.CHUNK_HEADER_SIZE=8,E.MAGIC=1179937895,E.VERSION=2;var a,T,R,o,A,c,N,h=s(30175),f=s(70586),u=s(51305),S=s(94961),C=s(17896),O=s(65617),I=s(60746),l=s(66459);!function(e){e[e.External=0]="External",e[e.DataURI=1]="DataURI",e[e.GLB=2]="GLB"}(a||(a={})),function(e){e[e.External=0]="External",e[e.DataURI=1]="DataURI",e[e.GLB=2]="GLB"}(T||(T={})),function(e){e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER"}(R||(R={})),function(e){e.SCALAR="SCALAR",e.VEC2="VEC2",e.VEC3="VEC3",e.VEC4="VEC4",e.MAT2="MAT2",e.MAT3="MAT3",e.MAT4="MAT4"}(o||(o={})),function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(A||(A={})),function(e){e.OPAQUE="OPAQUE",e.MASK="MASK",e.BLEND="BLEND"}(c||(c={})),function(e){e[e.NoColor=0]="NoColor",e[e.FaceColor=1]="FaceColor",e[e.VertexColor=2]="VertexColor"}(N||(N={}));var L=s(35371);class d{constructor(e,t,s,_,i){this._buffer=e,this._componentType=s,this._dataType=_,this._data=[],this._isFinalized=!1,this._accessorIndex=-1,this._accessorAttribute=null,this._accessorMin=null,this._accessorMax=null,t.bufferViews||(t.bufferViews=[]),this.index=t.bufferViews.length,this._bufferView={buffer:e.index,byteLength:-1,target:i};const n=this._getElementSize();n>=4&&i!==R.ELEMENT_ARRAY_BUFFER&&(this._bufferView.byteStride=n),t.bufferViews.push(this._bufferView),this._numComponentsForDataType=this._calculateNumComponentsForDataType()}push(e){const t=this._data.length;if(this._data.push(e),this._accessorIndex>=0){const s=t%this._numComponentsForDataType,_=this._accessorMin[s];this._accessorMin[s]="number"!=typeof _?e:Math.min(_,e);const i=this._accessorMax[s];this._accessorMax[s]="number"!=typeof i?e:Math.max(i,e)}}get dataSize(){return this._data.length*this._sizeComponentType()}get byteSize(){return e=this.dataSize,4*Math.ceil(e/4);var e}getByteOffset(){if(!this._isFinalized)throw new Error("Cannot get BufferView offset until it is finalized");return this._buffer.getByteOffset(this)}get byteOffset(){if(!this._isFinalized)throw new Error("Cannot get BufferView offset until it is finalized");return this._buffer.getByteOffset(this)}_createTypedArray(e,t){switch(this._componentType){case L.g.BYTE:return new Int8Array(e,t);case L.g.FLOAT:return new Float32Array(e,t);case L.g.SHORT:return new Int16Array(e,t);case L.g.UNSIGNED_BYTE:return new Uint8Array(e,t);case L.g.UNSIGNED_INT:return new Uint32Array(e,t);case L.g.UNSIGNED_SHORT:return new Uint16Array(e,t)}}writeOutToBuffer(e,t){this._createTypedArray(e,t).set(this._data)}writeAsync(e){if(this._asyncWritePromise)throw new Error("Can't write multiple bufferView values asynchronously");return this._asyncWritePromise=e.then((e=>{const t=new Uint8Array(e);for(let e=0;e<t.length;++e)this._data.push(t[e]);delete this._asyncWritePromise})),this._asyncWritePromise}startAccessor(e){if(this._accessorIndex>=0)throw new Error("Accessor was started without ending the previous one");this._accessorIndex=this._data.length,this._accessorAttribute=e;const t=this._numComponentsForDataType;this._accessorMin=new Array(t),this._accessorMax=new Array(t)}endAccessor(){if(this._accessorIndex<0)throw new Error("An accessor was not started, but was attempted to be ended");const e=this._getElementSize(),t=this._numComponentsForDataType,s=(this._data.length-this._accessorIndex)/t;if(s%1)throw new Error("An accessor was ended with missing component values");for(let e=0;e<this._accessorMin.length;++e)"number"!=typeof this._accessorMin[e]&&(this._accessorMin[e]=0),"number"!=typeof this._accessorMax[e]&&(this._accessorMax[e]=0);const _={byteOffset:e*(this._accessorIndex/t),componentType:this._componentType,count:s,type:this._dataType,min:this._accessorMin,max:this._accessorMax,name:this._accessorAttribute};switch(this._accessorAttribute){case"TEXCOORD_0":case"TEXCOORD_1":case"COLOR_0":case"WEIGHTS_0":switch(this._componentType){case L.g.UNSIGNED_BYTE:case L.g.UNSIGNED_SHORT:_.normalized=!0}}return this._accessorIndex=-1,this._accessorAttribute=null,this._accessorMin=null,this._accessorMax=null,_}get finalized(){return this._finalizedPromise?this._finalizedPromise:this._isFinalized?this._finalizedPromise=Promise.resolve():this._finalizedPromise=new Promise((e=>this._finalizedPromiseResolve=e))}finalize(){const e=this._bufferView;return new Promise((e=>{const t=this._buffer.getViewFinalizePromises(this);this._asyncWritePromise&&t.push(this._asyncWritePromise),e((0,n.as)(t))})).then((()=>{this._isFinalized=!0,e.byteOffset=this.getByteOffset(),e.byteLength=this.dataSize,this._finalizedPromiseResolve&&this._finalizedPromiseResolve()}))}_getElementSize(){return this._sizeComponentType()*this._numComponentsForDataType}_sizeComponentType(){switch(this._componentType){case L.g.BYTE:case L.g.UNSIGNED_BYTE:return 1;case L.g.SHORT:case L.g.UNSIGNED_SHORT:return 2;case L.g.UNSIGNED_INT:case L.g.FLOAT:return 4}}_calculateNumComponentsForDataType(){switch(this._dataType){case o.SCALAR:return 1;case o.VEC2:return 2;case o.VEC3:return 3;case o.VEC4:case o.MAT2:return 4;case o.MAT3:return 9;case o.MAT4:return 16}}}class M{constructor(e){this._gltf=e,this._bufferViews=[],this._isFinalized=!1,e.buffers||(e.buffers=[]),this.index=e.buffers.length;const t={byteLength:-1};e.buffers.push(t),this._buffer=t}addBufferView(e,t,s){if(this._finalizePromise)throw new Error("Cannot add buffer view after fiinalizing buffer");const _=new d(this,this._gltf,e,t,s);return this._bufferViews.push(_),_}getByteOffset(e){let t=0;for(const s of this._bufferViews){if(s===e)return t;t+=s.byteSize}throw new Error("Given bufferView was not present in this buffer")}getViewFinalizePromises(e){const t=[];for(const s of this._bufferViews){if(e&&s===e)return t;t.push(s.finalized)}return t}getArrayBuffer(){if(!this._isFinalized)throw new Error("Cannot get ArrayBuffer from Buffer before it is finalized");const e=this._getTotalSize(),t=new ArrayBuffer(e);let s=0;for(const e of this._bufferViews)e.writeOutToBuffer(t,s),s+=e.byteSize;return t}finalize(){if(this._finalizePromise)throw new Error(`Buffer ${this.index} was already finalized`);return this._finalizePromise=new Promise((e=>{e((0,n.as)(this.getViewFinalizePromises()))})).then((()=>{this._isFinalized=!0;const e=this.getArrayBuffer();this._buffer.byteLength=e.byteLength,this._buffer.uri=e})),this._gltf.extras?.promises.push(this._finalizePromise),this._finalizePromise}_getTotalSize(){let e=0;for(const t of this._bufferViews)e+=t.byteSize;return e}}function D(e,t){if(e.components)for(const s of e.components)s.faces&&"smooth"===s.shading&&B(s,t)}function B(e,t){(0,f.Wi)(t.normal)&&(t.normal=new Float32Array(t.position.length));const s=e.faces,{position:_,normal:i}=t,n=s.length/3;for(let e=0;e<n;++e){const t=3*s[3*e+0],n=3*s[3*e+1],r=3*s[3*e+2],E=(0,C.s)(P,_[t+0],_[t+1],_[t+2]),a=(0,C.s)(U,_[n+0],_[n+1],_[n+2]),T=(0,C.s)(p,_[r+0],_[r+1],_[r+2]),R=(0,C.b)(a,a,E),o=(0,C.b)(T,T,E),A=(0,C.f)(R,R,o);i[t+0]+=A[0],i[t+1]+=A[1],i[t+2]+=A[2],i[n+0]+=A[0],i[n+1]+=A[1],i[n+2]+=A[2],i[r+0]+=A[0],i[r+1]+=A[1],i[r+2]+=A[2]}for(let e=0;e<i.length;e+=3)(0,C.s)(G,i[e],i[e+1],i[e+2]),(0,C.n)(G,G),i[e+0]=G[0],i[e+1]=G[1],i[e+2]=G[2]}const P=(0,O.c)(),U=(0,O.c)(),p=(0,O.c)(),G=(0,O.c)();s(80442);var g=s(20102);async function m(e){const t=F(e);if((0,f.Wi)(t))throw new g.Z("imageToArrayBuffer","Unsupported image type");const s=await async function(e){if(!(e instanceof HTMLImageElement))return"image/png";const t=e.src;if((0,i.HK)(t)){const e=(0,i.sJ)(t);return"image/jpeg"===e?.mediaType?e.mediaType:"image/png"}return/\.png$/i.test(t)?"image/png":/\.(jpg|jpeg)$/i.test(t)?"image/jpeg":"image/png"}(e),_=await new Promise((e=>t.toBlob(e,s)));if(!_)throw new g.Z("imageToArrayBuffer","Failed to encode image");return{data:await _.arrayBuffer(),type:s}}function F(e){if(e instanceof HTMLCanvasElement)return e;if(e instanceof HTMLVideoElement)return null;const t=document.createElement("canvas");t.width=e.width,t.height=e.height;const s=t.getContext("2d");return e instanceof HTMLImageElement?s.drawImage(e,0,0,e.width,e.height):e instanceof ImageData&&s.putImageData(e,0,0),t}class w{constructor(e,t,s){this.params={},this._materialMap=new Array,this._imageMap=new Map,this._textureMap=new Map,this.gltf={asset:{version:"2.0",copyright:e.copyright,generator:e.generator},extras:{options:t,binChunkBuffer:null,promises:[]}},s&&(this.params=s),this._addScenes(e)}_addScenes(e){this.gltf.scene=e.defaultScene;const t=this.gltf.extras,s=t.options.bufferOutputType===a.GLB||t.options.imageOutputType===T.GLB;s&&(t.binChunkBuffer=new M(this.gltf)),e.forEachScene((e=>{this._addScene(e)})),s&&t.binChunkBuffer.finalize()}_addScene(e){this.gltf.scenes||(this.gltf.scenes=[]);const t={};e.name&&(t.name=e.name),e.forEachNode((e=>{t.nodes||(t.nodes=[]);const s=this._addNode(e);t.nodes.push(s)})),this.gltf.scenes.push(t)}_addNode(e){this.gltf.nodes||(this.gltf.nodes=[]);const t={};e.name&&(t.name=e.name);const s=e.translation;(0,C.k)(s,O.Z)||(t.translation=(0,O.a)(s));const _=e.rotation;(0,u.j)(_,S.I)||(t.rotation=(0,S.b)(_));const i=e.scale;(0,C.k)(i,O.O)||(t.scale=(0,O.a)(i)),e.mesh&&e.mesh.vertexAttributes.position?t.mesh=this._addMesh(e.mesh):e.forEachNode((e=>{t.children||(t.children=[]);const s=this._addNode(e);t.children.push(s)}));const n=this.gltf.nodes.length;return this.gltf.nodes.push(t),n}_addMesh(e){this.gltf.meshes||(this.gltf.meshes=[]);const t={primitives:[]},s=this.gltf.extras,_=s.options.bufferOutputType===a.GLB;let i;i=_?s.binChunkBuffer:new M(this.gltf),this.params.origin||(this.params.origin=function(e){if((0,f.pC)(e.transform))return e.transform.getOriginPoint(e.spatialReference);const t=e.extent.xmax-e.extent.width/2,s=e.extent.ymax-e.extent.height/2,_=e.extent.zmin;return new r.Z({x:t,y:s,z:_,spatialReference:e.extent.spatialReference})}(e));const n=(0,l.Yq)(e.vertexAttributes,e.transform,this.params.origin,{geographic:this.params.geographic,unit:"meters"});D(e,n),this._flipYZAxis(n);const E=i.addBufferView(L.g.FLOAT,o.VEC3,R.ARRAY_BUFFER);let T,A,c,N;n.normal&&(T=i.addBufferView(L.g.FLOAT,o.VEC3,R.ARRAY_BUFFER)),e.vertexAttributes.uv&&(A=i.addBufferView(L.g.FLOAT,o.VEC2,R.ARRAY_BUFFER)),n.tangent&&(c=i.addBufferView(L.g.FLOAT,o.VEC4,R.ARRAY_BUFFER)),e.vertexAttributes.color&&(N=i.addBufferView(L.g.UNSIGNED_BYTE,o.VEC4,R.ARRAY_BUFFER)),E.startAccessor("POSITION"),T&&T.startAccessor("NORMAL"),A&&A.startAccessor("TEXCOORD_0"),c&&c.startAccessor("TANGENT"),N&&N.startAccessor("COLOR_0");const h=n.position.length/3,{position:u,normal:S,tangent:C}=n,{color:O,uv:I}=e.vertexAttributes;for(let e=0;e<h;++e)E.push(u[3*e+0]),E.push(u[3*e+1]),E.push(u[3*e+2]),T&&(0,f.pC)(S)&&(T.push(S[3*e+0]),T.push(S[3*e+1]),T.push(S[3*e+2])),A&&(0,f.pC)(I)&&(A.push(I[2*e+0]),A.push(I[2*e+1])),c&&(0,f.pC)(C)&&(c.push(C[4*e+0]),c.push(C[4*e+1]),c.push(C[4*e+2]),c.push(C[4*e+3])),N&&(0,f.pC)(O)&&(N.push(O[4*e+0]),N.push(O[4*e+1]),N.push(O[4*e+2]),N.push(O[4*e+3]));const d=E.endAccessor(),B=this._addAccessor(E.index,d);let P,U,p,G,g;if(T){const e=T.endAccessor();P=this._addAccessor(T.index,e)}if(A){const e=A.endAccessor();U=this._addAccessor(A.index,e)}if(c){const e=c.endAccessor();p=this._addAccessor(c.index,e)}if(N){const e=N.endAccessor();G=this._addAccessor(N.index,e)}e.components&&e.components.length>0&&e.components[0].faces?(g=i.addBufferView(L.g.UNSIGNED_INT,o.SCALAR,R.ELEMENT_ARRAY_BUFFER),this._addMeshVertexIndexed(g,e.components,t,B,P,U,p,G)):this._addMeshVertexNonIndexed(e.components,t,B,P,U,p,G),E.finalize(),T&&T.finalize(),A&&A.finalize(),c&&c.finalize(),g&&g.finalize(),N&&N.finalize(),_||i.finalize();const m=this.gltf.meshes.length;return this.gltf.meshes.push(t),m}_flipYZAxis({position:e,normal:t,tangent:s}){this._flipYZBuffer(e,3),this._flipYZBuffer(t,3),this._flipYZBuffer(s,4)}_flipYZBuffer(e,t){if(!(0,f.Wi)(e))for(let s=1,_=2;s<e.length;s+=t,_+=t){const t=e[s],i=e[_];e[s]=i,e[_]=-t}}_addMaterial(e){if(null===e)return;const t=this._materialMap.indexOf(e);if(-1!==t)return t;this.gltf.materials||(this.gltf.materials=[]);const s={};switch(e.alphaMode){case"mask":s.alphaMode=c.MASK;break;case"auto":case"blend":s.alphaMode=c.BLEND}.5!==e.alphaCutoff&&(s.alphaCutoff=e.alphaCutoff),e.doubleSided&&(s.doubleSided=e.doubleSided),s.pbrMetallicRoughness={};const _=e=>e**2.1,i=e=>{const t=e.toRgba();return t[0]=_(t[0]/255),t[1]=_(t[1]/255),t[2]=_(t[2]/255),t};if((0,f.pC)(e.color)&&(s.pbrMetallicRoughness.baseColorFactor=i(e.color)),(0,f.pC)(e.colorTexture)&&(s.pbrMetallicRoughness.baseColorTexture={index:this._addTexture(e.colorTexture)}),(0,f.pC)(e.normalTexture)&&(s.normalTexture={index:this._addTexture(e.normalTexture)}),e instanceof I.Z){if((0,f.pC)(e.emissiveTexture)&&(s.emissiveTexture={index:this._addTexture(e.emissiveTexture)}),(0,f.pC)(e.emissiveColor)){const t=i(e.emissiveColor);s.emissiveFactor=[t[0],t[1],t[2]]}(0,f.pC)(e.occlusionTexture)&&(s.occlusionTexture={index:this._addTexture(e.occlusionTexture)}),(0,f.pC)(e.metallicRoughnessTexture)&&(s.pbrMetallicRoughness.metallicRoughnessTexture={index:this._addTexture(e.metallicRoughnessTexture)}),s.pbrMetallicRoughness.metallicFactor=e.metallic,s.pbrMetallicRoughness.roughnessFactor=e.roughness}else s.pbrMetallicRoughness.metallicFactor=1,s.pbrMetallicRoughness.roughnessFactor=1;const n=this.gltf.materials.length;return this.gltf.materials.push(s),this._materialMap.push(e),n}_addTexture(e){const t=this.gltf.textures??[];return this.gltf.textures=t,(0,h.s1)(this._textureMap,e,(()=>{const s={sampler:this._addSampler(e),source:this._addImage(e)},_=t.length;return t.push(s),_}))}_addImage(e){const t=this._imageMap.get(e);if(null!=t)return t;this.gltf.images||(this.gltf.images=[]);const s={};if(e.url)s.uri=e.url;else{const t=e.data;s.extras=t;for(let e=0;e<this.gltf.images.length;++e)if(t===this.gltf.images[e].extras)return e;const _=this.gltf.extras;switch(_.options.imageOutputType){case T.GLB:{const e=_.binChunkBuffer.addBufferView(L.g.UNSIGNED_BYTE,o.SCALAR),i=m(t).then((({data:e,type:t})=>(s.mimeType=t,e)));e.writeAsync(i).then((()=>{e.finalize()})),s.bufferView=e.index;break}case T.DataURI:s.uri=function(e){const t=F(e);return(0,f.pC)(t)?t.toDataURL():""}(t);break;default:_.promises.push(m(t).then((({data:e,type:t})=>{s.uri=e,s.mimeType=t})))}}const _=this.gltf.images.length;return this.gltf.images.push(s),this._imageMap.set(e,_),_}_addSampler(e){this.gltf.samplers||(this.gltf.samplers=[]);let t=L.e8.REPEAT,s=L.e8.REPEAT;if("string"==typeof e.wrap)switch(e.wrap){case"clamp":t=L.e8.CLAMP_TO_EDGE,s=L.e8.CLAMP_TO_EDGE;break;case"mirror":t=L.e8.MIRRORED_REPEAT,s=L.e8.MIRRORED_REPEAT}else{switch(e.wrap.vertical){case"clamp":s=L.e8.CLAMP_TO_EDGE;break;case"mirror":s=L.e8.MIRRORED_REPEAT}switch(e.wrap.horizontal){case"clamp":t=L.e8.CLAMP_TO_EDGE;break;case"mirror":t=L.e8.MIRRORED_REPEAT}}const _={wrapS:t,wrapT:s};for(let e=0;e<this.gltf.samplers.length;++e)if(JSON.stringify(_)===JSON.stringify(this.gltf.samplers[e]))return e;const i=this.gltf.samplers.length;return this.gltf.samplers.push(_),i}_addAccessor(e,t){this.gltf.accessors||(this.gltf.accessors=[]);const s={bufferView:e,byteOffset:t.byteOffset,componentType:t.componentType,count:t.count,type:t.type,min:t.min,max:t.max,name:t.name};t.normalized&&(s.normalized=!0);const _=this.gltf.accessors.length;return this.gltf.accessors.push(s),_}_addMeshVertexIndexed(e,t,s,_,i,n,r,E){for(const a of t){e.startAccessor("INDICES");for(let t=0;t<a.faces.length;++t)e.push(a.faces[t]);const t=e.endAccessor(),T={attributes:{POSITION:_},indices:this._addAccessor(e.index,t),material:this._addMaterial(a.material)};i&&"flat"!==a.shading&&(T.attributes.NORMAL=i),n&&(T.attributes.TEXCOORD_0=n),r&&"flat"!==a.shading&&(T.attributes.TANGENT=r),E&&(T.attributes.COLOR_0=E),s.primitives.push(T)}}_addMeshVertexNonIndexed(e,t,s,_,i,n,r){const E={attributes:{POSITION:s}};_&&(E.attributes.NORMAL=_),i&&(E.attributes.TEXCOORD_0=i),n&&(E.attributes.TANGENT=n),r&&(E.attributes.COLOR_0=r),e&&(E.material=this._addMaterial(e[0].material)),t.primitives.push(E)}}var b=s(67676);class y{constructor(){this.copyright="",this.defaultScene=0,this.generator="",this._scenes=[]}addScene(e){if(this._scenes.includes(e))throw new Error("Scene already added");this._scenes.push(e)}removeScene(e){(0,b.Od)(this._scenes,e)}forEachScene(e){this._scenes.forEach(e)}}class H{constructor(e){this.mesh=e,this.name="",this.translation=(0,O.c)(),this.rotation=(0,S.a)(),this.scale=(0,O.a)(O.O),this._nodes=[]}addNode(e){if(this._nodes.includes(e))throw new Error("Node already added");this._nodes.push(e)}forEachNode(e){this._nodes.forEach(e)}set rotationAngles(e){(0,u.k)(this.rotation,e[0],e[1],e[2])}}const x="model.glb";class V{constructor(){this.name="",this._nodes=[]}addNode(e){if(this._nodes.includes(e))throw new Error("Node already added");this._nodes.push(e)}forEachNode(e){this._nodes.forEach(e)}}class Y{constructor(e,t){this._file={type:"model/gltf-binary",data:e},this.origin=t}buffer(){return Promise.resolve(this._file)}download(e){(0,i.io)(new Blob([this._file.data],{type:this._file.type}),e)}}function z(e,t){const s=new y,_=new V;return s.addScene(_),_.addNode(new H(e)),function(e,t){return function(e,t,s){const _=new w(e,t=t||{},s);let i=_.params;i?i.origin||(i.origin=new r.Z({x:-1,y:-1,z:-1})):i={origin:new r.Z({x:-1,y:-1,z:-1})};const R=i.origin,o=_.gltf,A=o.extras?.promises??[];let c=1,N=1,h=null;return(0,n.as)(A).then((()=>{const e={origin:R};delete o.extras;const s="number"==typeof t.jsonSpacing?t.jsonSpacing:4,_=JSON.stringify(o,((s,_)=>{if("extras"!==s){if(_ instanceof ArrayBuffer){if(function(e){if(e.byteLength<8)return!1;const t=new Uint8Array(e);return 137===t[0]&&80===t[1]&&78===t[2]&&71===t[3]&&13===t[4]&&10===t[5]&&26===t[6]&&10===t[7]}(_))switch(t.imageOutputType){case T.DataURI:case T.GLB:break;case T.External:default:{const t=`img${N}.png`;return N++,e[t]=_,t}}switch(t.bufferOutputType){case a.DataURI:return function(e){const t=[],s=new Uint8Array(e);for(let e=0;e<s.length;e++)t.push(String.fromCharCode(s[e]));return"data:application/octet-stream;base64,"+btoa(t.join(""))}(_);case a.GLB:if(h)throw new Error("Already encountered an ArrayBuffer, there should only be one in the GLB format.");return void(h=_);case a.External:default:{const t=`data${c}.bin`;return c++,e[t]=_,t}}}return _}}),s);return t.bufferOutputType===a.GLB||t.imageOutputType===T.GLB?e[x]=new E(_,h).buffer:e["model.gltf"]=_,e}))}(e,{bufferOutputType:a.GLB,imageOutputType:T.GLB,jsonSpacing:0},t)}(s,t).then((e=>new Y(e[x],e.origin)))}},35371:(e,t,s)=>{var _,i,n,r,E,a,T,R,o,A,c,N,h,f,u,S,C,O,I,l,L,d,M,D;s.d(t,{Br:()=>S,LR:()=>a,Lm:()=>L,Lu:()=>B,MX:()=>i,No:()=>h,OU:()=>d,Tg:()=>C,VI:()=>f,VY:()=>D,Wf:()=>T,_g:()=>M,cw:()=>c,db:()=>r,e8:()=>N,g:()=>R,l1:()=>O,lP:()=>u,q_:()=>P,qi:()=>l,w0:()=>E,wb:()=>o,xS:()=>A,zi:()=>n}),function(e){e[e.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",e[e.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",e[e.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT"}(_||(_={})),function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(i||(i={})),function(e){e[e.ZERO=0]="ZERO",e[e.ONE=1]="ONE",e[e.SRC_COLOR=768]="SRC_COLOR",e[e.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",e[e.SRC_ALPHA=770]="SRC_ALPHA",e[e.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",e[e.DST_ALPHA=772]="DST_ALPHA",e[e.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",e[e.DST_COLOR=774]="DST_COLOR",e[e.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",e[e.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",e[e.CONSTANT_COLOR=32769]="CONSTANT_COLOR",e[e.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",e[e.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",e[e.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA"}(n||(n={})),function(e){e[e.ADD=32774]="ADD",e[e.SUBTRACT=32778]="SUBTRACT",e[e.REVERSE_SUBTRACT=32779]="REVERSE_SUBTRACT"}(r||(r={})),function(e){e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e[e.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",e[e.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",e[e.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",e[e.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER"}(E||(E={})),function(e){e[e.FRONT=1028]="FRONT",e[e.BACK=1029]="BACK",e[e.FRONT_AND_BACK=1032]="FRONT_AND_BACK"}(a||(a={})),function(e){e[e.CW=2304]="CW",e[e.CCW=2305]="CCW"}(T||(T={})),function(e){e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.INT=5124]="INT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.FLOAT=5126]="FLOAT"}(R||(R={})),function(e){e[e.NEVER=512]="NEVER",e[e.LESS=513]="LESS",e[e.EQUAL=514]="EQUAL",e[e.LEQUAL=515]="LEQUAL",e[e.GREATER=516]="GREATER",e[e.NOTEQUAL=517]="NOTEQUAL",e[e.GEQUAL=518]="GEQUAL",e[e.ALWAYS=519]="ALWAYS"}(o||(o={})),function(e){e[e.ZERO=0]="ZERO",e[e.KEEP=7680]="KEEP",e[e.REPLACE=7681]="REPLACE",e[e.INCR=7682]="INCR",e[e.DECR=7683]="DECR",e[e.INVERT=5386]="INVERT",e[e.INCR_WRAP=34055]="INCR_WRAP",e[e.DECR_WRAP=34056]="DECR_WRAP"}(A||(A={})),function(e){e[e.NEAREST=9728]="NEAREST",e[e.LINEAR=9729]="LINEAR",e[e.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",e[e.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",e[e.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",e[e.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR"}(c||(c={})),function(e){e[e.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(N||(N={})),function(e){e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_3D=32879]="TEXTURE_3D",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY"}(h||(h={})),function(e){e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.ALPHA=6406]="ALPHA",e[e.RGB=6407]="RGB",e[e.RGBA=6408]="RGBA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.RED=6403]="RED",e[e.RG=33319]="RG",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER"}(f||(f={})),function(e){e[e.RGBA4=32854]="RGBA4",e[e.R16F=33325]="R16F",e[e.RG16F=33327]="RG16F",e[e.RGB32F=34837]="RGB32F",e[e.RGBA16F=34842]="RGBA16F",e[e.R32F=33326]="R32F",e[e.RG32F=33328]="RG32F",e[e.RGBA32F=34836]="RGBA32F",e[e.R11F_G11F_B10F=35898]="R11F_G11F_B10F",e[e.RGB8=32849]="RGB8",e[e.RGBA8=32856]="RGBA8",e[e.RGB5_A1=32855]="RGB5_A1",e[e.R8=33321]="R8",e[e.RG8=33323]="RG8",e[e.R8I=33329]="R8I",e[e.R8UI=33330]="R8UI",e[e.R16I=33331]="R16I",e[e.R16UI=33332]="R16UI",e[e.R32I=33333]="R32I",e[e.R32UI=33334]="R32UI",e[e.RG8I=33335]="RG8I",e[e.RG8UI=33336]="RG8UI",e[e.RG16I=33337]="RG16I",e[e.RG16UI=33338]="RG16UI",e[e.RG32I=33339]="RG32I",e[e.RG32UI=33340]="RG32UI",e[e.RGB16F=34843]="RGB16F",e[e.RGB9_E5=35901]="RGB9_E5",e[e.SRGB8=35905]="SRGB8",e[e.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",e[e.RGB565=36194]="RGB565",e[e.RGBA32UI=36208]="RGBA32UI",e[e.RGB32UI=36209]="RGB32UI",e[e.RGBA16UI=36214]="RGBA16UI",e[e.RGB16UI=36215]="RGB16UI",e[e.RGBA8UI=36220]="RGBA8UI",e[e.RGB8UI=36221]="RGB8UI",e[e.RGBA32I=36226]="RGBA32I",e[e.RGB32I=36227]="RGB32I",e[e.RGBA16I=36232]="RGBA16I",e[e.RGB16I=36233]="RGB16I",e[e.RGBA8I=36238]="RGBA8I",e[e.RGB8I=36239]="RGB8I",e[e.R8_SNORM=36756]="R8_SNORM",e[e.RG8_SNORM=36757]="RG8_SNORM",e[e.RGB8_SNORM=36758]="RGB8_SNORM",e[e.RGBA8_SNORM=36759]="RGBA8_SNORM",e[e.RGB10_A2=32857]="RGB10_A2",e[e.RGB10_A2UI=36975]="RGB10_A2UI"}(u||(u={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.INT=5124]="INT",e[e.HALF_FLOAT=5131]="HALF_FLOAT",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV"}(S||(S={})),function(e){e[e.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",e[e.STENCIL_INDEX8=36168]="STENCIL_INDEX8",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",e[e.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",e[e.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",e[e.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8"}(C||(C={})),function(e){e[e.STATIC_DRAW=35044]="STATIC_DRAW",e[e.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",e[e.STREAM_DRAW=35040]="STREAM_DRAW",e[e.STATIC_READ=35045]="STATIC_READ",e[e.DYNAMIC_READ=35049]="DYNAMIC_READ",e[e.STREAM_READ=35041]="STREAM_READ",e[e.STATIC_COPY=35046]="STATIC_COPY",e[e.DYNAMIC_COPY=35050]="DYNAMIC_COPY",e[e.STREAM_COPY=35042]="STREAM_COPY"}(O||(O={})),function(e){e[e.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",e[e.VERTEX_SHADER=35633]="VERTEX_SHADER"}(I||(I={})),function(e){e[e.FRAMEBUFFER=36160]="FRAMEBUFFER",e[e.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",e[e.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER"}(l||(l={})),function(e){e[e.TEXTURE=0]="TEXTURE",e[e.RENDER_BUFFER=1]="RENDER_BUFFER",e[e.CUBEMAP=2]="CUBEMAP"}(L||(L={})),function(e){e[e.NONE=0]="NONE",e[e.DEPTH_RENDER_BUFFER=1]="DEPTH_RENDER_BUFFER",e[e.STENCIL_RENDER_BUFFER=2]="STENCIL_RENDER_BUFFER",e[e.DEPTH_STENCIL_RENDER_BUFFER=3]="DEPTH_STENCIL_RENDER_BUFFER",e[e.DEPTH_STENCIL_TEXTURE=4]="DEPTH_STENCIL_TEXTURE"}(d||(d={})),function(e){e[e.Texture=0]="Texture",e[e.BufferObject=1]="BufferObject",e[e.VertexArrayObject=2]="VertexArrayObject",e[e.Shader=3]="Shader",e[e.Program=4]="Program",e[e.FramebufferObject=5]="FramebufferObject",e[e.Renderbuffer=6]="Renderbuffer",e[e.Sync=7]="Sync",e[e.COUNT=8]="COUNT"}(M||(M={})),function(e){e[e.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",e[e.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1",e[e.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2",e[e.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3",e[e.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4",e[e.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5",e[e.COLOR_ATTACHMENT6=36070]="COLOR_ATTACHMENT6",e[e.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7",e[e.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8",e[e.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9",e[e.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10",e[e.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11",e[e.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12",e[e.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13",e[e.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14",e[e.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15"}(D||(D={}));const B=33306;var P,U,p,G,g,m,F;!function(e){e[e.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",e[e.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",e[e.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",e[e.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",e[e.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",e[e.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",e[e.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",e[e.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",e[e.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"}(P||(P={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_VEC2=35664]="FLOAT_VEC2",e[e.FLOAT_VEC3=35665]="FLOAT_VEC3",e[e.FLOAT_VEC4=35666]="FLOAT_VEC4",e[e.INT=5124]="INT",e[e.INT_VEC2=35667]="INT_VEC2",e[e.INT_VEC3=35668]="INT_VEC3",e[e.INT_VEC4=35669]="INT_VEC4",e[e.BOOL=35670]="BOOL",e[e.BOOL_VEC2=35671]="BOOL_VEC2",e[e.BOOL_VEC3=35672]="BOOL_VEC3",e[e.BOOL_VEC4=35673]="BOOL_VEC4",e[e.FLOAT_MAT2=35674]="FLOAT_MAT2",e[e.FLOAT_MAT3=35675]="FLOAT_MAT3",e[e.FLOAT_MAT4=35676]="FLOAT_MAT4",e[e.SAMPLER_2D=35678]="SAMPLER_2D",e[e.SAMPLER_CUBE=35680]="SAMPLER_CUBE",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",e[e.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",e[e.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",e[e.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",e[e.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",e[e.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",e[e.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",e[e.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",e[e.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",e[e.SAMPLER_3D=35679]="SAMPLER_3D",e[e.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",e[e.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",e[e.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",e[e.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",e[e.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",e[e.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",e[e.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",e[e.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",e[e.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",e[e.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",e[e.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",e[e.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY"}(U||(U={})),function(e){e[e.OBJECT_TYPE=37138]="OBJECT_TYPE",e[e.SYNC_CONDITION=37139]="SYNC_CONDITION",e[e.SYNC_STATUS=37140]="SYNC_STATUS",e[e.SYNC_FLAGS=37141]="SYNC_FLAGS"}(p||(p={})),function(e){e[e.UNSIGNALED=37144]="UNSIGNALED",e[e.SIGNALED=37145]="SIGNALED"}(G||(G={})),function(e){e[e.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",e[e.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",e[e.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",e[e.WAIT_FAILED=37149]="WAIT_FAILED"}(g||(g={})),function(e){e[e.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE"}(m||(m={})),function(e){e[e.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT"}(F||(F={}))}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[802],{36030:(e,t,r)=>{r.d(t,{J:()=>s});var n=r(35454),i=r(5600);function s(e,t={}){const r=e instanceof n.X?e:new n.X(e,t),s={type:t?.ignoreUnknown??1?r.apiValues:String,json:{type:r.jsonValues,read:!t?.readOnly&&{reader:r.read},write:{writer:r.write}}};return void 0!==t?.readOnly&&(s.readOnly=!!t.readOnly),void 0!==t?.default&&(s.json.default=t.default),void 0!==t?.name&&(s.json.name=t.name),(0,i.Cb)(s)}},43090:(e,t,r)=>{function n(e){return 32+e.length}function i(e){if(!e)return 0;let t=l;for(const r in e)if(e.hasOwnProperty(r)){const i=e[r];switch(typeof i){case"string":t+=n(i);break;case"number":t+=16;break;case"boolean":t+=4}}return t}function s(e){if(!e)return 0;if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return 32+8*t;let r=u;for(let n=0;n<t;n++)r+=o(e[n]);return r}(e);let t=l;for(const r in e)e.hasOwnProperty(r)&&(t+=o(e[r]));return t}function o(e){switch(typeof e){case"object":return s(e);case"string":return n(e);case"number":return 16;case"boolean":return 4;default:return 8}}function a(e,t){return u+e.length*t}r.d(t,{Ul:()=>s,Y8:()=>c,do:()=>a,f2:()=>i});const l=32,u=32;var c;!function(e){e[e.KILOBYTES=1024]="KILOBYTES",e[e.MEGABYTES=1048576]="MEGABYTES",e[e.GIGABYTES=1073741824]="GIGABYTES"}(c||(c={}))},74085:(e,t,r)=>{function n(e){}r.d(t,{Bg:()=>n}),r(80442)},45091:(e,t,r)=>{r.d(t,{Z:()=>c});var n,i,s=r(80442),o=r(71143);(i=n||(n={}))[i.varint=0]="varint",i[i.fixed64=1]="fixed64",i[i.delimited=2]="delimited",i[i.fixed32=5]="fixed32",i[i.unknown=99]="unknown";const a=4294967296,l=new TextDecoder("utf-8"),u=(0,s.Z)("safari")||(0,s.Z)("ios")?6:(0,s.Z)("ff")?12:32;class c{constructor(e,t,r=0,i=(e?e.byteLength:0)){this._tag=0,this._dataType=n.unknown,this._init(e,t,r,i)}_init(e,t,r,n){this._data=e,this._dataView=t,this._pos=r,this._end=n}asUnsafe(){return this}clone(){return new c(this._data,this._dataView,this._pos,this._end)}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;return e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128?e:(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128?e:void 0))))}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();if(void 0!==e)return e>>>1^-(1&e)|0}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getUint32(t+4,!0)*a;return this._skip(8),r}getSFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getInt32(t+4,!0)*a;return this._skip(8),r}getDouble(){const e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){const e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){const e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){const e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){const e=this._getLength(),t=this._pos,r=this._toString(this._data,t,t+e);return this._skip(e),r}getBytes(){const e=this._getLength(),t=this._pos,r=this._toBytes(this._data,t,t+e);return this._skip(e),r}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,r,n){const i=this.getMessage(),s=e(i,t,r,n);return i.release(),s}processMessage(e){const t=this.getMessage(),r=e(t);return t.release(),r}getMessage(){const e=this._getLength(),t=c.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){c.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case n.varint:this._decodeVarint();break;case n.fixed64:this._skip(8);break;case n.delimited:this._skip(this._getLength());break;case n.fixed32:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t=this._pos,r=0,n=0;if(this._end-t>=10)do{if(n=e[t++],r|=127&n,0==(128&n))break;if(n=e[t++],r|=(127&n)<<7,0==(128&n))break;if(n=e[t++],r|=(127&n)<<14,0==(128&n))break;if(n=e[t++],r|=(127&n)<<21,0==(128&n))break;if(n=e[t++],r+=268435456*(127&n),0==(128&n))break;if(n=e[t++],r+=34359738368*(127&n),0==(128&n))break;if(n=e[t++],r+=4398046511104*(127&n),0==(128&n))break;if(n=e[t++],r+=562949953421312*(127&n),0==(128&n))break;if(n=e[t++],r+=72057594037927940*(127&n),0==(128&n))break;if(n=e[t++],r+=0x8000000000000000*(127&n),0==(128&n))break;throw new Error("Varint too long!")}while(0);else{let i=1;for(;t!==this._end&&(n=e[t],0!=(128&n));)++t,r+=(127&n)*i,i*=128;if(t===this._end)throw new Error("Varint overrun!");++t,r+=n*i}return this._pos=t,r}_decodeSVarint(){const e=this._data;let t=this._pos,r=0,n=0;const i=1&e[t];if(this._end-t>=10)do{if(n=e[t++],r|=127&n,0==(128&n))break;if(n=e[t++],r|=(127&n)<<7,0==(128&n))break;if(n=e[t++],r|=(127&n)<<14,0==(128&n))break;if(n=e[t++],r|=(127&n)<<21,0==(128&n))break;if(n=e[t++],r+=268435456*(127&n),0==(128&n))break;if(n=e[t++],r+=34359738368*(127&n),0==(128&n))break;if(n=e[t++],r+=4398046511104*(127&n),0==(128&n))break;if(n=e[t++],r+=562949953421312*(127&n),0==(128&n))break;if(n=e[t++],r+=72057594037927940*(127&n),0==(128&n))break;if(n=e[t++],r+=0x8000000000000000*(127&n),0==(128&n))break;throw new Error("Varint too long!")}while(0);else{let i=1;for(;t!==this._end&&(n=e[t],0!=(128&n));)++t,r+=(127&n)*i,i*=128;if(t===this._end)throw new Error("Varint overrun!");++t,r+=n*i}return this._pos=t,i?-(r+1)/2:r/2}_getLength(){if(this._dataType!==n.delimited)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,r){if((r=Math.min(this._end,r))-t>u){const n=e.subarray(t,r);return l.decode(n)}let n="",i="";for(let s=t;s<r;++s){const t=e[s];128&t?i+="%"+t.toString(16):(n+=decodeURIComponent(i)+String.fromCharCode(t),i="")}return i.length&&(n+=decodeURIComponent(i)),n}_toBytes(e,t,r){return r=Math.min(this._end,r),new Uint8Array(e.buffer,t,r-t)}}c.pool=new o.Z(c,void 0,(e=>{e._data=null,e._dataView=null}))},60437:(e,t,r)=>{r.d(t,{Gv:()=>_,HH:()=>a,JR:()=>y,TC:()=>l,Tn:()=>d,Ue:()=>s,al:()=>o,cS:()=>f,dp:()=>c,fS:()=>m,op:()=>h,pp:()=>u,t8:()=>p});var n=r(70586),i=r(6570);function s(e=b){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,r,n,i,o,a=s()){return a[0]=e,a[1]=t,a[2]=r,a[3]=n,a[4]=i,a[5]=o,a}function a(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new i.Z(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function u(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function c(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function h(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function d(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function p(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function f(e){return e?p(e,_):s(_)}function y(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function g(e){return 6===e.length}function m(e,t,r){if((0,n.Wi)(e)||(0,n.Wi)(t))return e===t;if(!g(e)||!g(t))return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r(24470);const _=[1/0,1/0,1/0,-1/0,-1/0,-1/0],b=[0,0,0,0,0,0];s()},24470:(e,t,r)=>{r.d(t,{Gv:()=>_,HH:()=>u,SO:()=>h,Ue:()=>s,al:()=>a,cS:()=>y,fS:()=>m,jE:()=>d,jn:()=>c,kK:()=>p,oJ:()=>l,r3:()=>f}),r(80442),r(22021);var n=r(70586),i=r(6570);function s(e=b){return[e[0],e[1],e[2],e[3]]}function o(e,t){return e!==t&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3]),e}function a(e,t,r,n,i=s()){return i[0]=e,i[1]=t,i[2]=r,i[3]=n,i}function l(e,t=s()){return t[0]=e.xmin,t[1]=e.ymin,t[2]=e.xmax,t[3]=e.ymax,t}function u(e,t){return new i.Z({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:t})}function c(e,t,r){if((0,n.Wi)(t))o(r,e);else if("length"in t)g(t)?(r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.max(e[2],t[2]),r[3]=Math.max(e[3],t[3])):2!==t.length&&3!==t.length||(r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.max(e[2],t[0]),r[3]=Math.max(e[3],t[1]));else switch(t.type){case"extent":r[0]=Math.min(e[0],t.xmin),r[1]=Math.min(e[1],t.ymin),r[2]=Math.max(e[2],t.xmax),r[3]=Math.max(e[3],t.ymax);break;case"point":r[0]=Math.min(e[0],t.x),r[1]=Math.min(e[1],t.y),r[2]=Math.max(e[2],t.x),r[3]=Math.max(e[3],t.y)}}function h(e){return function(e){return(0,n.Wi)(e)||e[0]>=e[2]?0:e[2]-e[0]}(e)*function(e){return e[1]>=e[3]?0:e[3]-e[1]}(e)}function d(e,t,r){return t>=e[0]&&r>=e[1]&&t<=e[2]&&r<=e[3]}function p(e,t){return Math.max(t[0],e[0])<=Math.min(t[2],e[2])&&Math.max(t[1],e[1])<=Math.min(t[3],e[3])}function f(e,t){return t[0]>=e[0]&&t[2]<=e[2]&&t[1]>=e[1]&&t[3]<=e[3]}function y(e){return e?o(e,_):s(_)}function g(e){return null!=e&&4===e.length}function m(e,t){return g(e)&&g(t)?e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]:e===t}const _=[1/0,1/0,-1/0,-1/0],b=[0,0,0,0]},33955:(e,t,r)=>{r.d(t,{Ji:()=>g,YX:()=>c,aW:()=>h,im:()=>y,l9:()=>p,oU:()=>f,q9:()=>_,wp:()=>d});var n=r(70586),i=r(6570),s=r(9361),o=r(65091),a=r(94139),l=r(38913),u=r(58901);function c(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function h(e){return void 0!==e.points}function d(e){return void 0!==e.x&&void 0!==e.y}function p(e){return void 0!==e.paths}function f(e){return void 0!==e.rings}function y(e){return(0,n.Wi)(e)?null:e instanceof s.Z?e:d(e)?a.Z.fromJSON(e):p(e)?u.Z.fromJSON(e):f(e)?l.Z.fromJSON(e):h(e)?o.Z.fromJSON(e):c(e)?i.Z.fromJSON(e):null}function g(e){return e?d(e)?"esriGeometryPoint":p(e)?"esriGeometryPolyline":f(e)?"esriGeometryPolygon":c(e)?"esriGeometryEnvelope":h(e)?"esriGeometryMultipoint":null:null}const m={esriGeometryPoint:a.Z,esriGeometryPolyline:u.Z,esriGeometryPolygon:l.Z,esriGeometryEnvelope:i.Z,esriGeometryMultipoint:o.Z};function _(e){return e&&m[e]||null}},82397:(e,t,r)=>{r.d(t,{G6:()=>g,Ie:()=>y,J9:()=>p,RF:()=>d,U1:()=>f,vY:()=>a});var n=r(70586);r(33955);const i=(e,t,r)=>[t,r],s=(e,t,r)=>[t,r,e[2]],o=(e,t,r)=>[t,r,e[2],e[3]];function a(e){return e?{originPosition:"upper-left"===e.originPosition?"upperLeft":"lower-left"===e.originPosition?"lowerLeft":e.originPosition,scale:e.tolerance?[e.tolerance,e.tolerance]:[1,1],translate:(0,n.pC)(e.extent)?[e.extent.xmin,e.extent.ymax]:[0,0]}:null}function l({scale:e,translate:t},r){return r*e[0]+t[0]}function u({scale:e,translate:t},r){return t[1]-r*e[1]}function c(e,t,r){const n=new Array(r.length);if(!r.length)return n;const[i,s]=e.scale;let o=l(e,r[0][0]),a=u(e,r[0][1]);n[0]=t(r[0],o,a);for(let e=1;e<r.length;e++){const l=r[e];o+=l[0]*i,a-=l[1]*s,n[e]=t(l,o,a)}return n}function h(e,t,r){const n=new Array(r.length);for(let i=0;i<r.length;i++)n[i]=c(e,t,r[i]);return n}function d(e,t,r,n,i){return t.x=function({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}(e,r.x),t.y=function({scale:e,translate:t},r){return Math.round((t[1]-r)/e[1])}(e,r.y),t!==r&&(n&&(t.z=r.z),i&&(t.m=r.m)),t}function p(e,t,r,a,l){return(0,n.pC)(r)&&(t.points=function(e,t,r,n){return c(e,r?n?o:s:n?s:i,t)}(e,r.points,a,l)),t}function f(e,t,r,i,s){return(0,n.Wi)(r)||(t.x=l(e,r.x),t.y=u(e,r.y),t!==r&&(i&&(t.z=r.z),s&&(t.m=r.m))),t}function y(e,t,r,a,l){return(0,n.pC)(r)&&(t.rings=function(e,t,r,n){return h(e,r?n?o:s:n?s:i,t)}(e,r.rings,a,l)),t}function g(e,t,r,a,l){return(0,n.pC)(r)&&(t.paths=function(e,t,r,n){return h(e,r?n?o:s:n?s:i,t)}(e,r.paths,a,l)),t}},86973:(e,t,r)=>{r.d(t,{Mk:()=>i,P$:()=>s});var n=r(35454);const i=(0,n.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),s=(0,n.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},69285:(e,t,r)=>{r.d(t,{k:()=>o});var n=r(70586),i=r(67900),s=r(8744);function o(e,t,r){if((0,n.Wi)(t)||(0,n.Wi)(r)||r.vcsWkid||(0,s.fS)(t,r))return null;const o=(0,i._R)(t)/(0,i._R)(r);if(1===o)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){e&&null!=e.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,o);case"extent":case"esriGeometryExtent":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return null}}},24335:(e,t,r)=>{r.d(t,{Wh:()=>s,Pj:()=>o}),r(43090),r(80442),r(82971);var n=r(60437),i=r(24470);r(82397),r(86973),r(1231),r(8744);class s{constructor(e,t,r){this.uid=e,this.geometry=t,this.attributes=r,this.visible=!0,this.objectId=null,this.centroid=null}}class o{constructor(){this.exceededTransferLimit=!1,this.features=[],this.fields=[],this.hasM=!1,this.hasZ=!1,this.geometryType=null,this.objectIdFieldName=null,this.globalIdFieldName=null,this.geometryProperties=null,this.geohashFieldName=null,this.spatialReference=null,this.transform=null}}(0,n.Ue)(),(0,i.Ue)()},1231:(e,t,r)=>{r.d(t,{Z:()=>g});var n,i=r(43697),s=r(35454),o=r(96674),a=r(5600),l=(r(67676),r(75215)),u=r(36030),c=r(71715),h=r(52011),d=r(72729),p=r(86719);const f=new s.X({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let y=n=class extends o.wq{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=-1,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?f.fromJSON(r.fieldValueType):null}clone(){return new n({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain&&this.domain.clone()||null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,i._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"alias",void 0),(0,i._)([(0,a.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],y.prototype,"defaultValue",void 0),(0,i._)([(0,a.Cb)()],y.prototype,"description",void 0),(0,i._)([(0,c.r)("description")],y.prototype,"readDescription",null),(0,i._)([(0,a.Cb)({types:d.V5,json:{read:{reader:d.im},write:!0}})],y.prototype,"domain",void 0),(0,i._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],y.prototype,"editable",void 0),(0,i._)([(0,a.Cb)({type:l.z8,json:{write:!0}})],y.prototype,"length",void 0),(0,i._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"name",void 0),(0,i._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],y.prototype,"nullable",void 0),(0,i._)([(0,u.J)(p.v)],y.prototype,"type",void 0),(0,i._)([(0,a.Cb)()],y.prototype,"valueType",void 0),(0,i._)([(0,c.r)("valueType",["description"])],y.prototype,"readValueType",null),(0,i._)([(0,a.Cb)({type:Boolean,json:{read:!1}})],y.prototype,"visible",void 0),y=n=(0,i._)([(0,h.j)("esri.layers.support.Field")],y);const g=y},72729:(e,t,r)=>{r.d(t,{im:()=>v,V5:()=>T}),r(80442);var n,i=r(43697),s=r(22974),o=r(5600),a=(r(75215),r(36030)),l=r(52011),u=r(96674);r(67676);let c=n=class extends u.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new n({name:this.name,code:this.code})}};(0,i._)([(0,o.Cb)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,i._)([(0,o.Cb)({type:[String,Number],json:{write:!0}})],c.prototype,"code",void 0),c=n=(0,i._)([(0,l.j)("esri.layers.support.CodedValue")],c);const h=new(r(35454).X)({inherited:"inherited",codedValue:"coded-value",range:"range"});let d=class extends u.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,i._)([(0,o.Cb)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,i._)([(0,a.J)(h)],d.prototype,"type",void 0),d=(0,i._)([(0,l.j)("esri.layers.support.Domain")],d);const p=d;var f;let y=f=class extends p{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new f({codedValues:(0,s.d9)(this.codedValues),name:this.name})}};(0,i._)([(0,o.Cb)({type:[c],json:{write:!0}})],y.prototype,"codedValues",void 0),(0,i._)([(0,a.J)({codedValue:"coded-value"})],y.prototype,"type",void 0),y=f=(0,i._)([(0,l.j)("esri.layers.support.CodedValueDomain")],y);const g=y;var m;r(92604),r(20102);let _=m=class extends p{constructor(e){super(e),this.type="inherited"}clone(){return new m}};(0,i._)([(0,a.J)({inherited:"inherited"})],_.prototype,"type",void 0),_=m=(0,i._)([(0,l.j)("esri.layers.support.InheritedDomain")],_);const b=_;var k;let w=k=class extends p{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new k({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i._)([(0,o.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]}}}})],w.prototype,"maxValue",void 0),(0,i._)([(0,o.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]}}}})],w.prototype,"minValue",void 0),(0,i._)([(0,a.J)({range:"range"})],w.prototype,"type",void 0),w=k=(0,i._)([(0,l.j)("esri.layers.support.RangeDomain")],w);const x=w,T={key:"type",base:p,typeMap:{range:w,"coded-value":g,inherited:b}};function v(e){if(!e||!e.type)return null;switch(e.type){case"range":return x.fromJSON(e);case"codedValue":return g.fromJSON(e);case"inherited":return b.fromJSON(e)}return null}},86719:(e,t,r)=>{r.d(t,{v:()=>n});const n=new(r(35454).X)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml"})},77863:(e,t,r)=>{r.d(t,{G$:()=>v,K9:()=>F,O7:()=>h});var n=r(20102),i=r(70586),s=r(45091),o=r(5428),a=r(78760);const l=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML"],u=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],c=["upperLeft","lowerLeft"];function h(e){return e>=l.length?null:l[e]}function d(e){return e>=u.length?null:u[e]}function p(e){return e>=c.length?null:c[e]}function f(e,t){return t>=e.geometryTypes.length?null:e.geometryTypes[t]}function y(e,t,r){const n=e.asUnsafe(),i=t.createPointGeometry(r);for(;n.next();)switch(n.tag()){case 3:{const e=n.getUInt32(),r=n.pos()+e;let s=0;for(;n.pos()<r;)t.addCoordinatePoint(i,n.getSInt64(),s++);break}default:n.skip()}return i}function g(e,t,r){const n=e.asUnsafe(),i=t.createGeometry(r),s=2+(r.hasZ?1:0)+(r.hasM?1:0);for(;n.next();)switch(n.tag()){case 2:{const e=n.getUInt32(),r=n.pos()+e;let s=0;for(;n.pos()<r;)t.addLength(i,n.getUInt32(),s++);break}case 3:{const e=n.getUInt32(),r=n.pos()+e;let o=0;for(t.allocateCoordinates(i);n.pos()<r;)t.addCoordinate(i,n.getSInt64(),o),o++,o===s&&(o=0);break}default:n.skip()}return i}function m(e){const t=e.asUnsafe(),r=new o.Z;let n="esriGeometryPoint";for(;t.next();)switch(t.tag()){case 2:{const e=t.getUInt32(),n=t.pos()+e;for(;t.pos()<n;)r.lengths.push(t.getUInt32());break}case 3:{const e=t.getUInt32(),n=t.pos()+e;for(;t.pos()<n;)r.coords.push(t.getSInt64());break}case 1:n=a.A[t.getEnum()];break;default:t.skip()}return{queryGeometry:r,queryGeometryType:n}}function _(e){const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function b(e){const t=e.asUnsafe(),r={type:h(0)};for(;t.next();)switch(t.tag()){case 1:r.name=t.getString();break;case 2:r.type=h(t.getEnum());break;case 3:r.alias=t.getString();break;case 4:r.sqlType=d(t.getEnum());break;case 5:default:t.skip();break;case 6:r.defaultValue=t.getString()}return r}function k(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.name=r.getString();break;case 2:t.isSystemMaintained=r.getBool();break;default:r.skip()}return t}function w(e,t,r,n){const i=t.createFeature(r);let s=0;for(;e.next();)switch(e.tag()){case 1:{const t=n[s++].name;i.attributes[t]=e.processMessage(_);break}case 2:i.geometry=e.processMessageWithArgs(g,t,r);break;case 4:i.centroid=e.processMessageWithArgs(y,t,r);break;default:e.skip()}return i}function x(e){const t=[1,1,1,1],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function T(e){const t=[0,0,0,0],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function v(e){const t={originPosition:p(0)},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.originPosition=p(r.getEnum());break;case 2:t.scale=r.processMessage(x);break;case 3:t.translate=r.processMessage(T);break;default:r.skip()}return t}function M(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.shapeAreaFieldName=r.getString();break;case 2:t.shapeLengthFieldName=r.getString();break;case 3:t.units=r.getString();break;default:r.skip()}return t}function S(e,t){const r=t.createSpatialReference();for(;e.next();)switch(e.tag()){case 1:r.wkid=e.getUInt32();break;case 5:r.wkt=e.getString();break;case 2:r.latestWkid=e.getUInt32();break;case 3:r.vcsWkid=e.getUInt32();break;case 4:r.latestVcsWkid=e.getUInt32();break;default:e.skip()}return r}function G(e,t){const r=t.createFeatureResult(),n=e.asUnsafe();r.geometryType=f(t,0);let i=!1;for(;n.next();)switch(n.tag()){case 1:r.objectIdFieldName=n.getString();break;case 3:r.globalIdFieldName=n.getString();break;case 4:r.geohashFieldName=n.getString();break;case 5:r.geometryProperties=n.processMessage(M);break;case 7:r.geometryType=f(t,n.getEnum());break;case 8:r.spatialReference=n.processMessageWithArgs(S,t);break;case 10:r.hasZ=n.getBool();break;case 11:r.hasM=n.getBool();break;case 12:r.transform=n.processMessage(v);break;case 9:{const e=n.getBool();r.exceededTransferLimit=e;break}case 13:t.addField(r,n.processMessage(b));break;case 15:i||(t.prepareFeatures(r),i=!0),t.addFeature(r,n.processMessageWithArgs(w,t,r,r.fields));break;case 2:r.uniqueIdField=n.processMessage(k);break;default:n.skip()}return t.finishFeatureResult(r),r}function I(e,t){const r={};let n=null;for(;e.next();)switch(e.tag()){case 4:n=e.processMessageWithArgs(m);break;case 1:r.featureResult=e.processMessageWithArgs(G,t);break;default:e.skip()}return(0,i.pC)(n)&&r.featureResult&&t.addQueryGeometry(r,n),r}function F(e,t){try{const r=2,n=new s.Z(new Uint8Array(e),new DataView(e)),i={};for(;n.next();)n.tag()===r?i.queryResult=n.processMessageWithArgs(I,t):n.skip();return i}catch(e){throw new n.Z("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}},78760:(e,t,r)=>{r.d(t,{A:()=>l,J:()=>u});var n=r(67900),i=r(8744),s=r(70272),o=r(44876),a=r(5428);const l=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"];class u{constructor(e){this._options=e,this.geometryTypes=l,this._coordinatePtr=0,this._vertexDimension=0}createFeatureResult(){return new o.Z}prepareFeatures(e){this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++}finishFeatureResult(e){if(!e||!e.features||!e.hasZ||!this._options.sourceSpatialReference||!e.spatialReference||(0,i.fS)(e.spatialReference,this._options.sourceSpatialReference)||e.spatialReference.vcsWkid)return;const t=(0,n._R)(this._options.sourceSpatialReference)/(0,n._R)(e.spatialReference);if(1!==t)for(const r of e.features){if(!(0,s.S6)(r))continue;const e=r.geometry.coords;for(let r=2;r<e.length;r+=3)e[r]*=t}}addFeature(e,t){e.features.push(t)}createFeature(){return new s.u_}createSpatialReference(){return{wkid:0}}createGeometry(){return new a.Z}addField(e,t){e.fields.push(t)}allocateCoordinates(e){e.coords.length=e.lengths.reduce(((e,t)=>e+t),0)*this._vertexDimension,this._coordinatePtr=0}addCoordinate(e,t){e.coords[this._coordinatePtr++]=t}addCoordinatePoint(e,t){e.coords.push(t)}addLength(e,t){e.lengths.push(t)}addQueryGeometry(e,t){e.queryGeometry=t.queryGeometry,e.queryGeometryType=t.queryGeometryType}createPointGeometry(){return new a.Z}}},45178:(e,t,r)=>{r.d(t,{C:()=>i});var n=r(77863);function i(e,t){const r=(0,n.K9)(e,t),i=r.queryResult.featureResult,s=r.queryResult.queryGeometry,o=r.queryResult.queryGeometryType;if(i&&i.features&&i.features.length&&i.objectIdFieldName){const e=i.objectIdFieldName;for(const t of i.features)t.attributes&&(t.objectId=t.attributes[e])}return i&&(i.queryGeometry=s,i.queryGeometryType=o),i}},10802:(e,t,r)=>{r.r(t),r.d(t,{default:()=>k});var n=r(74085),i=r(70586),s=r(99001),o=r(82971),a=r(69285),l=r(24335),u=r(98732),c=r(1231);function h(e,t){return t}function d(e,t,r,n){switch(r){case 0:return g(e,t+n,0);case 1:return"lowerLeft"===e.originPosition?g(e,t+n,1):function({translate:e,scale:t},r,n){return e[n]-r*t[n]}(e,t+n,1)}}function p(e,t,r,n){return 2===r?g(e,t,2):d(e,t,r,n)}function f(e,t,r,n){return 2===r?g(e,t,3):d(e,t,r,n)}function y(e,t,r,n){return 3===r?g(e,t,3):p(e,t,r,n)}function g({translate:e,scale:t},r,n){return e[n]+r*t[n]}class m{constructor(e){this._options=e,this.geometryTypes=["point","multipoint","polyline","polygon"],this._previousCoordinate=[0,0],this._transform=null,this._applyTransform=h,this._lengths=[],this._currentLengthIndex=0,this._toAddInCurrentPath=0,this._vertexDimension=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,this._attributesConstructor=class{}}createFeatureResult(){return new l.Pj}finishFeatureResult(e){if(this._options.applyTransform&&(e.transform=null),this._attributesConstructor=class{},this._coordinateBuffer=null,this._lengths.length=0,!e.hasZ)return;const t=(0,a.k)(e.geometryType,this._options.sourceSpatialReference,e.spatialReference);if(!(0,i.Wi)(t))for(const r of e.features)t(r.geometry)}createSpatialReference(){return new o.Z}addField(e,t){e.fields.push(c.Z.fromJSON(t));const r=e.fields.map((e=>e.name));this._attributesConstructor=function(){for(const e of r)this[e]=null}}addFeature(e,t){const r=this._options.maxStringAttributeLength?this._options.maxStringAttributeLength:0;if(r>0)for(const e in t.attributes){const n=t.attributes[e];"string"==typeof n&&n.length>r&&(t.attributes[e]="")}e.features.push(t)}addQueryGeometry(e,t){const{queryGeometry:r,queryGeometryType:n}=t,i=(0,u.$g)(r.clone(),r,!1,!1,this._transform),s=(0,u.di)(i,n,!1,!1);let o=null;switch(n){case"esriGeometryPoint":o="point";break;case"esriGeometryPolygon":o="polygon";break;case"esriGeometryPolyline":o="polyline";break;case"esriGeometryMultipoint":o="multipoint"}s.type=o,e.queryGeometryType=n,e.queryGeometry=s}prepareFeatures(e){switch(this._transform=e.transform,this._options.applyTransform&&e.transform&&(this._applyTransform=this._deriveApplyTransform(e)),this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++,e.geometryType){case"point":this.addCoordinate=(e,t,r)=>this.addCoordinatePoint(e,t,r),this.createGeometry=e=>this.createPointGeometry(e);break;case"polygon":this.addCoordinate=(e,t,r)=>this._addCoordinatePolygon(e,t,r),this.createGeometry=e=>this._createPolygonGeometry(e);break;case"polyline":this.addCoordinate=(e,t,r)=>this._addCoordinatePolyline(e,t,r),this.createGeometry=e=>this._createPolylineGeometry(e);break;case"multipoint":this.addCoordinate=(e,t,r)=>this._addCoordinateMultipoint(e,t,r),this.createGeometry=e=>this._createMultipointGeometry(e);break;case"mesh":case"extent":break;default:(0,n.Bg)(e.geometryType)}}createFeature(){return this._lengths.length=0,this._currentLengthIndex=0,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0,new l.Wh((0,s.D)(),null,new this._attributesConstructor)}allocateCoordinates(){const e=this._lengths.reduce(((e,t)=>e+t),0);this._coordinateBuffer=new Float64Array(e*this._vertexDimension),this._coordinateBufferPtr=0}addLength(e,t,r){0===this._lengths.length&&(this._toAddInCurrentPath=t),this._lengths.push(t)}createPointGeometry(e){const t={type:"point",x:0,y:0,spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM};return t.hasZ&&(t.z=0),t.hasM&&(t.m=0),t}addCoordinatePoint(e,t,r){switch(t=this._applyTransform(this._transform,t,r,0),r){case 0:e.x=t;break;case 1:e.y=t;break;case 2:e.hasZ?e.z=t:e.m=t;break;case 3:e.m=t}}_transformPathLikeValue(e,t){let r=0;return t<=1&&(r=this._previousCoordinate[t],this._previousCoordinate[t]+=e),this._applyTransform(this._transform,e,t,r)}_addCoordinatePolyline(e,t,r){this._dehydratedAddPointsCoordinate(e.paths,t,r)}_addCoordinatePolygon(e,t,r){this._dehydratedAddPointsCoordinate(e.rings,t,r)}_addCoordinateMultipoint(e,t,r){0===r&&e.points.push([]);const n=this._transformPathLikeValue(t,r);e.points[e.points.length-1].push(n)}_createPolygonGeometry(e){return{type:"polygon",rings:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createPolylineGeometry(e){return{type:"polyline",paths:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createMultipointGeometry(e){return{type:"multipoint",points:[],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_dehydratedAddPointsCoordinate(e,t,r){0===r&&0==this._toAddInCurrentPath--&&(e.push([]),this._toAddInCurrentPath=this._lengths[++this._currentLengthIndex]-1,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0);const n=this._transformPathLikeValue(t,r),i=e[e.length-1];0===r&&i.push(new Float64Array(this._coordinateBuffer.buffer,this._coordinateBufferPtr*Float64Array.BYTES_PER_ELEMENT,this._vertexDimension)),this._coordinateBuffer[this._coordinateBufferPtr++]=n}_deriveApplyTransform(e){const{hasZ:t,hasM:r}=e;return t&&r?y:t?p:r?f:d}}var _=r(45178);class b{_parseFeatureQuery(e){const t=(0,_.C)(e.buffer,new m(e.options)),r={...t,spatialReference:t.spatialReference.toJSON(),fields:t.fields?t.fields.map((e=>e.toJSON())):void 0};return Promise.resolve(r)}}function k(){return new b}}}]);