@esri/solutions-components 0.8.14 → 0.8.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (390) hide show
  1. package/dist/assets/arcgis-pdf-creator/PDFLabels.d.ts +218 -0
  2. package/dist/assets/t9n/crowdsource-reporter/resources.json +0 -1
  3. package/dist/assets/t9n/crowdsource-reporter/resources_ar.json +15 -7
  4. package/dist/assets/t9n/crowdsource-reporter/resources_bg.json +15 -7
  5. package/dist/assets/t9n/crowdsource-reporter/resources_bs.json +15 -7
  6. package/dist/assets/t9n/crowdsource-reporter/resources_ca.json +15 -7
  7. package/dist/assets/t9n/crowdsource-reporter/resources_cs.json +15 -7
  8. package/dist/assets/t9n/crowdsource-reporter/resources_da.json +15 -7
  9. package/dist/assets/t9n/crowdsource-reporter/resources_de.json +15 -7
  10. package/dist/assets/t9n/crowdsource-reporter/resources_el.json +15 -7
  11. package/dist/assets/t9n/crowdsource-reporter/resources_en.json +0 -1
  12. package/dist/assets/t9n/crowdsource-reporter/resources_es.json +15 -7
  13. package/dist/assets/t9n/crowdsource-reporter/resources_et.json +15 -7
  14. package/dist/assets/t9n/crowdsource-reporter/resources_fi.json +15 -7
  15. package/dist/assets/t9n/crowdsource-reporter/resources_fr.json +15 -7
  16. package/dist/assets/t9n/crowdsource-reporter/resources_he.json +15 -7
  17. package/dist/assets/t9n/crowdsource-reporter/resources_hr.json +15 -7
  18. package/dist/assets/t9n/crowdsource-reporter/resources_hu.json +15 -7
  19. package/dist/assets/t9n/crowdsource-reporter/resources_id.json +15 -7
  20. package/dist/assets/t9n/crowdsource-reporter/resources_it.json +15 -7
  21. package/dist/assets/t9n/crowdsource-reporter/resources_ja.json +15 -7
  22. package/dist/assets/t9n/crowdsource-reporter/resources_ko.json +15 -7
  23. package/dist/assets/t9n/crowdsource-reporter/resources_lt.json +15 -7
  24. package/dist/assets/t9n/crowdsource-reporter/resources_lv.json +15 -7
  25. package/dist/assets/t9n/crowdsource-reporter/resources_nb.json +15 -7
  26. package/dist/assets/t9n/crowdsource-reporter/resources_nl.json +15 -7
  27. package/dist/assets/t9n/crowdsource-reporter/resources_pl.json +15 -7
  28. package/dist/assets/t9n/crowdsource-reporter/resources_pt-BR.json +15 -7
  29. package/dist/assets/t9n/crowdsource-reporter/resources_pt-PT.json +15 -7
  30. package/dist/assets/t9n/crowdsource-reporter/resources_ro.json +15 -7
  31. package/dist/assets/t9n/crowdsource-reporter/resources_ru.json +15 -7
  32. package/dist/assets/t9n/crowdsource-reporter/resources_sk.json +15 -7
  33. package/dist/assets/t9n/crowdsource-reporter/resources_sl.json +15 -7
  34. package/dist/assets/t9n/crowdsource-reporter/resources_sr.json +15 -7
  35. package/dist/assets/t9n/crowdsource-reporter/resources_sv.json +15 -7
  36. package/dist/assets/t9n/crowdsource-reporter/resources_th.json +15 -7
  37. package/dist/assets/t9n/crowdsource-reporter/resources_tr.json +15 -7
  38. package/dist/assets/t9n/crowdsource-reporter/resources_uk.json +15 -7
  39. package/dist/assets/t9n/crowdsource-reporter/resources_vi.json +15 -7
  40. package/dist/assets/t9n/crowdsource-reporter/resources_zh-CN.json +15 -7
  41. package/dist/assets/t9n/crowdsource-reporter/resources_zh-HK.json +15 -7
  42. package/dist/assets/t9n/crowdsource-reporter/resources_zh-TW.json +15 -7
  43. package/dist/assets/t9n/feature-list/resources_ar.json +1 -1
  44. package/dist/assets/t9n/feature-list/resources_bg.json +1 -1
  45. package/dist/assets/t9n/feature-list/resources_bs.json +1 -1
  46. package/dist/assets/t9n/feature-list/resources_ca.json +1 -1
  47. package/dist/assets/t9n/feature-list/resources_cs.json +1 -1
  48. package/dist/assets/t9n/feature-list/resources_da.json +1 -1
  49. package/dist/assets/t9n/feature-list/resources_de.json +1 -1
  50. package/dist/assets/t9n/feature-list/resources_el.json +1 -1
  51. package/dist/assets/t9n/feature-list/resources_es.json +1 -1
  52. package/dist/assets/t9n/feature-list/resources_et.json +1 -1
  53. package/dist/assets/t9n/feature-list/resources_fi.json +1 -1
  54. package/dist/assets/t9n/feature-list/resources_fr.json +1 -1
  55. package/dist/assets/t9n/feature-list/resources_he.json +1 -1
  56. package/dist/assets/t9n/feature-list/resources_hr.json +1 -1
  57. package/dist/assets/t9n/feature-list/resources_hu.json +1 -1
  58. package/dist/assets/t9n/feature-list/resources_id.json +1 -1
  59. package/dist/assets/t9n/feature-list/resources_it.json +1 -1
  60. package/dist/assets/t9n/feature-list/resources_ja.json +1 -1
  61. package/dist/assets/t9n/feature-list/resources_ko.json +1 -1
  62. package/dist/assets/t9n/feature-list/resources_lt.json +1 -1
  63. package/dist/assets/t9n/feature-list/resources_lv.json +1 -1
  64. package/dist/assets/t9n/feature-list/resources_nb.json +1 -1
  65. package/dist/assets/t9n/feature-list/resources_nl.json +1 -1
  66. package/dist/assets/t9n/feature-list/resources_pl.json +1 -1
  67. package/dist/assets/t9n/feature-list/resources_pt-BR.json +1 -1
  68. package/dist/assets/t9n/feature-list/resources_pt-PT.json +1 -1
  69. package/dist/assets/t9n/feature-list/resources_ro.json +1 -1
  70. package/dist/assets/t9n/feature-list/resources_ru.json +1 -1
  71. package/dist/assets/t9n/feature-list/resources_sk.json +1 -1
  72. package/dist/assets/t9n/feature-list/resources_sl.json +1 -1
  73. package/dist/assets/t9n/feature-list/resources_sr.json +1 -1
  74. package/dist/assets/t9n/feature-list/resources_sv.json +1 -1
  75. package/dist/assets/t9n/feature-list/resources_th.json +1 -1
  76. package/dist/assets/t9n/feature-list/resources_tr.json +1 -1
  77. package/dist/assets/t9n/feature-list/resources_uk.json +1 -1
  78. package/dist/assets/t9n/feature-list/resources_vi.json +1 -1
  79. package/dist/assets/t9n/feature-list/resources_zh-CN.json +1 -1
  80. package/dist/assets/t9n/feature-list/resources_zh-HK.json +1 -1
  81. package/dist/assets/t9n/feature-list/resources_zh-TW.json +1 -1
  82. package/dist/assets/t9n/layer-list/resources.json +1 -1
  83. package/dist/assets/t9n/layer-list/resources_en.json +1 -1
  84. package/dist/assets/t9n/media-card/resources.json +1 -3
  85. package/dist/assets/t9n/media-card/resources_ar.json +3 -0
  86. package/dist/assets/t9n/media-card/resources_bg.json +3 -0
  87. package/dist/assets/t9n/media-card/resources_bs.json +3 -0
  88. package/dist/assets/t9n/media-card/resources_ca.json +3 -0
  89. package/dist/assets/t9n/media-card/resources_cs.json +3 -0
  90. package/dist/assets/t9n/media-card/resources_da.json +3 -0
  91. package/dist/assets/t9n/media-card/resources_de.json +3 -0
  92. package/dist/assets/t9n/media-card/resources_el.json +3 -0
  93. package/dist/assets/t9n/media-card/resources_en.json +1 -3
  94. package/dist/assets/t9n/media-card/resources_es.json +3 -0
  95. package/dist/assets/t9n/media-card/resources_et.json +3 -0
  96. package/dist/assets/t9n/media-card/resources_fi.json +3 -0
  97. package/dist/assets/t9n/media-card/resources_fr.json +3 -0
  98. package/dist/assets/t9n/media-card/resources_he.json +3 -0
  99. package/dist/assets/t9n/media-card/resources_hr.json +3 -0
  100. package/dist/assets/t9n/media-card/resources_hu.json +3 -0
  101. package/dist/assets/t9n/media-card/resources_id.json +3 -0
  102. package/dist/assets/t9n/media-card/resources_it.json +3 -0
  103. package/dist/assets/t9n/media-card/resources_ja.json +3 -0
  104. package/dist/assets/t9n/media-card/resources_ko.json +3 -0
  105. package/dist/assets/t9n/media-card/resources_lt.json +3 -0
  106. package/dist/assets/t9n/media-card/resources_lv.json +3 -0
  107. package/dist/assets/t9n/media-card/resources_nb.json +3 -0
  108. package/dist/assets/t9n/media-card/resources_nl.json +3 -0
  109. package/dist/assets/t9n/media-card/resources_pl.json +3 -0
  110. package/dist/assets/t9n/media-card/resources_pt-BR.json +3 -0
  111. package/dist/assets/t9n/media-card/resources_pt-PT.json +3 -0
  112. package/dist/assets/t9n/media-card/resources_ro.json +3 -0
  113. package/dist/assets/t9n/media-card/resources_ru.json +3 -0
  114. package/dist/assets/t9n/media-card/resources_sk.json +3 -0
  115. package/dist/assets/t9n/media-card/resources_sl.json +3 -0
  116. package/dist/assets/t9n/media-card/resources_sr.json +3 -0
  117. package/dist/assets/t9n/media-card/resources_sv.json +3 -0
  118. package/dist/assets/t9n/media-card/resources_th.json +3 -0
  119. package/dist/assets/t9n/media-card/resources_tr.json +3 -0
  120. package/dist/assets/t9n/media-card/resources_uk.json +3 -0
  121. package/dist/assets/t9n/media-card/resources_vi.json +3 -0
  122. package/dist/assets/t9n/media-card/resources_zh-CN.json +3 -0
  123. package/dist/assets/t9n/media-card/resources_zh-HK.json +3 -0
  124. package/dist/assets/t9n/media-card/resources_zh-TW.json +3 -0
  125. package/dist/assets/t9n/public-notification/resources_ar.json +3 -1
  126. package/dist/assets/t9n/public-notification/resources_bg.json +3 -1
  127. package/dist/assets/t9n/public-notification/resources_bs.json +3 -1
  128. package/dist/assets/t9n/public-notification/resources_ca.json +3 -1
  129. package/dist/assets/t9n/public-notification/resources_cs.json +3 -1
  130. package/dist/assets/t9n/public-notification/resources_da.json +3 -1
  131. package/dist/assets/t9n/public-notification/resources_de.json +3 -1
  132. package/dist/assets/t9n/public-notification/resources_el.json +3 -1
  133. package/dist/assets/t9n/public-notification/resources_es.json +3 -1
  134. package/dist/assets/t9n/public-notification/resources_et.json +3 -1
  135. package/dist/assets/t9n/public-notification/resources_fi.json +3 -1
  136. package/dist/assets/t9n/public-notification/resources_fr.json +3 -1
  137. package/dist/assets/t9n/public-notification/resources_he.json +3 -1
  138. package/dist/assets/t9n/public-notification/resources_hr.json +3 -1
  139. package/dist/assets/t9n/public-notification/resources_hu.json +3 -1
  140. package/dist/assets/t9n/public-notification/resources_id.json +3 -1
  141. package/dist/assets/t9n/public-notification/resources_it.json +3 -1
  142. package/dist/assets/t9n/public-notification/resources_ja.json +3 -1
  143. package/dist/assets/t9n/public-notification/resources_ko.json +3 -1
  144. package/dist/assets/t9n/public-notification/resources_lt.json +3 -1
  145. package/dist/assets/t9n/public-notification/resources_lv.json +3 -1
  146. package/dist/assets/t9n/public-notification/resources_nb.json +3 -1
  147. package/dist/assets/t9n/public-notification/resources_nl.json +3 -1
  148. package/dist/assets/t9n/public-notification/resources_pl.json +3 -1
  149. package/dist/assets/t9n/public-notification/resources_pt-BR.json +3 -1
  150. package/dist/assets/t9n/public-notification/resources_pt-PT.json +3 -1
  151. package/dist/assets/t9n/public-notification/resources_ro.json +3 -1
  152. package/dist/assets/t9n/public-notification/resources_ru.json +3 -1
  153. package/dist/assets/t9n/public-notification/resources_sk.json +3 -1
  154. package/dist/assets/t9n/public-notification/resources_sl.json +3 -1
  155. package/dist/assets/t9n/public-notification/resources_sr.json +3 -1
  156. package/dist/assets/t9n/public-notification/resources_sv.json +3 -1
  157. package/dist/assets/t9n/public-notification/resources_th.json +3 -1
  158. package/dist/assets/t9n/public-notification/resources_tr.json +3 -1
  159. package/dist/assets/t9n/public-notification/resources_uk.json +3 -1
  160. package/dist/assets/t9n/public-notification/resources_vi.json +3 -1
  161. package/dist/assets/t9n/public-notification/resources_zh-CN.json +3 -1
  162. package/dist/assets/t9n/public-notification/resources_zh-HK.json +3 -1
  163. package/dist/assets/t9n/public-notification/resources_zh-TW.json +3 -1
  164. package/dist/cjs/basemap-gallery_7.cjs.entry.js +6 -6
  165. package/dist/cjs/buffer-tools_3.cjs.entry.js +1 -1
  166. package/dist/cjs/calcite-alert_4.cjs.entry.js +12 -8
  167. package/dist/cjs/calcite-dropdown_4.cjs.entry.js +2 -2
  168. package/dist/cjs/calcite-flow_6.cjs.entry.js +320 -255
  169. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +7 -7
  170. package/dist/cjs/card-manager_3.cjs.entry.js +5 -5
  171. package/dist/cjs/crowdsource-manager.cjs.entry.js +2 -2
  172. package/dist/cjs/crowdsource-reporter.cjs.entry.js +181 -54
  173. package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
  174. package/dist/cjs/{downloadUtils-88c011ad.js → downloadUtils-2e36a300.js} +31 -35
  175. package/dist/cjs/feature-comments.cjs.entry.js +1 -1
  176. package/dist/cjs/feature-form-flow-item.cjs.entry.js +1 -1
  177. package/dist/cjs/feature-list.cjs.entry.js +297 -0
  178. package/dist/cjs/features-flow-item.cjs.entry.js +1 -1
  179. package/dist/cjs/{index.es-1d5ee842.js → index.es-56415e48.js} +2 -2
  180. package/dist/cjs/layout-manager.cjs.entry.js +1 -1
  181. package/dist/cjs/list-flow-item.cjs.entry.js +1 -1
  182. package/dist/cjs/loader.cjs.js +1 -1
  183. package/dist/cjs/location-flow-item.cjs.entry.js +1 -1
  184. package/dist/cjs/map-select-tools_3.cjs.entry.js +5 -5
  185. package/dist/cjs/{mapViewUtils-82018df6.js → mapViewUtils-6e46ba33.js} +16 -0
  186. package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
  187. package/dist/cjs/public-notification.cjs.entry.js +3 -3
  188. package/dist/cjs/refine-results-flow-item.cjs.entry.js +1 -1
  189. package/dist/cjs/share-item.cjs.entry.js +1 -1
  190. package/dist/cjs/solution-configuration.cjs.entry.js +3 -3
  191. package/dist/cjs/solution-contents_3.cjs.entry.js +3 -3
  192. package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
  193. package/dist/cjs/solutions-components.cjs.js +1 -1
  194. package/dist/cjs/spatial-ref.cjs.entry.js +1 -1
  195. package/dist/collection/collection-manifest.json +1 -0
  196. package/dist/collection/components/create-related-feature/create-related-feature.css +8 -0
  197. package/dist/collection/components/create-related-feature/create-related-feature.js +426 -0
  198. package/dist/collection/components/create-related-feature/test/create-related-feature.e2e.js +14 -0
  199. package/dist/collection/components/create-related-feature/test/create-related-feature.spec.js +22 -0
  200. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +1 -1
  201. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.css +1 -0
  202. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +370 -221
  203. package/dist/collection/components/deduct-calculator/deduct-calculator.js +1 -1
  204. package/dist/collection/components/delete-button/delete-button.js +1 -1
  205. package/dist/collection/components/edit-card/edit-card.js +1 -1
  206. package/dist/collection/components/feature-comments/feature-comments.js +1 -1
  207. package/dist/collection/components/feature-details/feature-details.css +6 -3
  208. package/dist/collection/components/feature-details/feature-details.js +95 -9
  209. package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.js +1 -1
  210. package/dist/collection/components/feature-list/feature-list.css +6 -1
  211. package/dist/collection/components/feature-list/feature-list.js +133 -13
  212. package/dist/collection/components/features-flow-item/features-flow-item.js +1 -1
  213. package/dist/collection/components/floor-filter/floor-filter.js +1 -1
  214. package/dist/collection/components/info-card/info-card.js +11 -7
  215. package/dist/collection/components/json-editor/json-editor.js +1 -1
  216. package/dist/collection/components/layer-list/layer-list.js +3 -23
  217. package/dist/collection/components/layer-table/layer-table.css +1 -1
  218. package/dist/collection/components/layer-table/layer-table.js +2 -2
  219. package/dist/collection/components/layout-manager/layout-manager.js +1 -1
  220. package/dist/collection/components/list-flow-item/list-flow-item.js +1 -1
  221. package/dist/collection/components/location-flow-item/location-flow-item.js +1 -1
  222. package/dist/collection/components/map-card/map-card.js +1 -1
  223. package/dist/collection/components/map-draw-tools/map-draw-tools.js +1 -1
  224. package/dist/collection/components/map-fullscreen/map-fullscreen.js +1 -1
  225. package/dist/collection/components/map-layer-picker/map-layer-picker.js +1 -1
  226. package/dist/collection/components/map-legend/map-legend.js +1 -1
  227. package/dist/collection/components/map-picker/map-picker.js +1 -1
  228. package/dist/collection/components/map-search/map-search.js +1 -1
  229. package/dist/collection/components/map-select-tools/map-select-tools.js +1 -1
  230. package/dist/collection/components/map-tools/map-tools.js +1 -1
  231. package/dist/collection/components/pci-calculator/pci-calculator.js +1 -1
  232. package/dist/collection/components/pdf-download/pdf-download.js +1 -1
  233. package/dist/collection/components/public-notification/public-notification.js +1 -1
  234. package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.js +1 -1
  235. package/dist/collection/components/refine-selection/refine-selection.js +1 -1
  236. package/dist/collection/components/share-item/share-item.js +1 -1
  237. package/dist/collection/components/solution-configuration/solution-configuration.js +3 -3
  238. package/dist/collection/components/solution-contents/solution-contents.js +1 -1
  239. package/dist/collection/components/solution-item/solution-item.js +1 -1
  240. package/dist/collection/components/solution-item-details/solution-item-details.js +1 -1
  241. package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
  242. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -1
  243. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -1
  244. package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -1
  245. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -1
  246. package/dist/collection/components/solution-template-data/solution-template-data.js +1 -1
  247. package/dist/collection/components/solution-variables/solution-variables.js +1 -1
  248. package/dist/collection/components/spatial-ref/spatial-ref.js +1 -1
  249. package/dist/collection/utils/downloadUtils.js +0 -1
  250. package/dist/collection/utils/interfaces.ts +5 -0
  251. package/dist/collection/utils/mapViewUtils.js +15 -0
  252. package/dist/collection/utils/mapViewUtils.ts +19 -1
  253. package/dist/collection/utils/pdfUtils.js +29 -34
  254. package/dist/collection/utils/pdfUtils.ts +40 -47
  255. package/dist/components/create-related-feature.d.ts +11 -0
  256. package/dist/components/create-related-feature.js +11 -0
  257. package/dist/components/create-related-feature2.js +274 -0
  258. package/dist/components/crowdsource-manager.js +1 -1
  259. package/dist/components/crowdsource-reporter.js +287 -148
  260. package/dist/components/deduct-calculator2.js +1 -1
  261. package/dist/components/delete-button2.js +1 -1
  262. package/dist/components/downloadUtils.js +29 -33
  263. package/dist/components/edit-card2.js +1 -1
  264. package/dist/components/feature-comments.js +1 -1
  265. package/dist/components/feature-details2.js +163 -40
  266. package/dist/components/feature-form-flow-item.js +1 -1
  267. package/dist/components/feature-list2.js +64 -16
  268. package/dist/components/features-flow-item.js +1 -1
  269. package/dist/components/floor-filter2.js +1 -1
  270. package/dist/components/info-card2.js +9 -5
  271. package/dist/components/json-editor2.js +1 -1
  272. package/dist/components/layer-list2.js +3 -7
  273. package/dist/components/layer-table2.js +2 -2
  274. package/dist/components/layout-manager.js +1 -1
  275. package/dist/components/list-flow-item.js +1 -1
  276. package/dist/components/location-flow-item.js +1 -1
  277. package/dist/components/map-card2.js +1 -1
  278. package/dist/components/map-draw-tools2.js +1 -1
  279. package/dist/components/map-fullscreen2.js +1 -1
  280. package/dist/components/map-layer-picker2.js +1 -1
  281. package/dist/components/map-legend2.js +1 -1
  282. package/dist/components/map-picker2.js +1 -1
  283. package/dist/components/map-search2.js +1 -1
  284. package/dist/components/map-select-tools2.js +1 -1
  285. package/dist/components/map-tools2.js +1 -1
  286. package/dist/components/mapViewUtils.js +16 -1
  287. package/dist/components/pci-calculator.js +1 -1
  288. package/dist/components/pdf-download2.js +1 -1
  289. package/dist/components/public-notification.js +1 -1
  290. package/dist/components/refine-results-flow-item.js +1 -1
  291. package/dist/components/refine-selection2.js +2 -2
  292. package/dist/components/share-item.js +1 -1
  293. package/dist/components/solution-configuration.js +3 -3
  294. package/dist/components/solution-contents2.js +1 -1
  295. package/dist/components/solution-item-details2.js +1 -1
  296. package/dist/components/solution-item-icon2.js +1 -1
  297. package/dist/components/solution-item-sharing2.js +1 -1
  298. package/dist/components/solution-item2.js +1 -1
  299. package/dist/components/solution-organization-variables2.js +1 -1
  300. package/dist/components/solution-resource-item2.js +1 -1
  301. package/dist/components/solution-spatial-ref2.js +1 -1
  302. package/dist/components/solution-template-data2.js +1 -1
  303. package/dist/components/solution-variables2.js +1 -1
  304. package/dist/components/spatial-ref2.js +1 -1
  305. package/dist/esm/basemap-gallery_7.entry.js +6 -6
  306. package/dist/esm/buffer-tools_3.entry.js +1 -1
  307. package/dist/esm/calcite-alert_4.entry.js +12 -8
  308. package/dist/esm/calcite-dropdown_4.entry.js +2 -2
  309. package/dist/esm/calcite-flow_6.entry.js +321 -256
  310. package/dist/esm/calcite-shell-panel_14.entry.js +7 -7
  311. package/dist/esm/card-manager_3.entry.js +5 -5
  312. package/dist/esm/crowdsource-manager.entry.js +2 -2
  313. package/dist/esm/crowdsource-reporter.entry.js +182 -55
  314. package/dist/esm/deduct-calculator.entry.js +1 -1
  315. package/dist/esm/{downloadUtils-fa6e5c37.js → downloadUtils-aab31bfe.js} +31 -35
  316. package/dist/esm/feature-comments.entry.js +1 -1
  317. package/dist/esm/feature-form-flow-item.entry.js +1 -1
  318. package/dist/esm/feature-list.entry.js +293 -0
  319. package/dist/esm/features-flow-item.entry.js +1 -1
  320. package/dist/esm/{index.es-114545fc.js → index.es-43ba3006.js} +2 -2
  321. package/dist/esm/layout-manager.entry.js +1 -1
  322. package/dist/esm/list-flow-item.entry.js +1 -1
  323. package/dist/esm/loader.js +1 -1
  324. package/dist/esm/location-flow-item.entry.js +1 -1
  325. package/dist/esm/map-select-tools_3.entry.js +5 -5
  326. package/dist/esm/{mapViewUtils-c83c03a4.js → mapViewUtils-4618ddb8.js} +16 -1
  327. package/dist/esm/pci-calculator.entry.js +1 -1
  328. package/dist/esm/public-notification.entry.js +3 -3
  329. package/dist/esm/refine-results-flow-item.entry.js +1 -1
  330. package/dist/esm/share-item.entry.js +1 -1
  331. package/dist/esm/solution-configuration.entry.js +3 -3
  332. package/dist/esm/solution-contents_3.entry.js +3 -3
  333. package/dist/esm/solution-item-icon.entry.js +1 -1
  334. package/dist/esm/solutions-components.js +1 -1
  335. package/dist/esm/spatial-ref.entry.js +1 -1
  336. package/dist/solutions-components/{p-afdc6bb2.entry.js → p-102b1f94.entry.js} +1 -1
  337. package/dist/solutions-components/p-22aece81.entry.js +6 -0
  338. package/dist/solutions-components/p-28c6906c.entry.js +6 -0
  339. package/dist/solutions-components/{p-71bdc77f.entry.js → p-33845a79.entry.js} +1 -1
  340. package/dist/solutions-components/{p-16ac309d.entry.js → p-3470c0f7.entry.js} +1 -1
  341. package/dist/solutions-components/p-3750c969.entry.js +6 -0
  342. package/dist/solutions-components/{p-ee457c15.js → p-37fc92db.js} +3 -3
  343. package/dist/solutions-components/{p-59c92ba2.entry.js → p-3a2e0188.entry.js} +1 -1
  344. package/dist/solutions-components/p-3fae9775.entry.js +6 -0
  345. package/dist/solutions-components/{p-0f139e3e.entry.js → p-54324eaa.entry.js} +1 -1
  346. package/dist/solutions-components/{p-d9c89479.js → p-583e5dd0.js} +1 -1
  347. package/dist/solutions-components/{p-69935f68.entry.js → p-667c022f.entry.js} +1 -1
  348. package/dist/solutions-components/{p-247edfb2.js → p-667caa6b.js} +1 -1
  349. package/dist/solutions-components/p-71de367b.entry.js +6 -0
  350. package/dist/solutions-components/{p-32fed174.entry.js → p-84a5d221.entry.js} +1 -1
  351. package/dist/solutions-components/{p-6e8782d1.entry.js → p-88f73319.entry.js} +1 -1
  352. package/dist/solutions-components/p-8a81f3c7.entry.js +6 -0
  353. package/dist/solutions-components/{p-288592d4.entry.js → p-92ed8d5d.entry.js} +1 -1
  354. package/dist/solutions-components/p-aa06f4d1.entry.js +6 -0
  355. package/dist/solutions-components/{p-67ee4afe.entry.js → p-b3160299.entry.js} +4 -4
  356. package/dist/solutions-components/p-b6d47bab.entry.js +17 -0
  357. package/dist/solutions-components/{p-bcf20616.entry.js → p-b76b5310.entry.js} +1 -1
  358. package/dist/solutions-components/{p-62994fb8.entry.js → p-bb0c7be3.entry.js} +3 -3
  359. package/dist/solutions-components/{p-7fdcce90.entry.js → p-bf57dbfd.entry.js} +2 -2
  360. package/dist/solutions-components/p-c047a6fc.entry.js +6 -0
  361. package/dist/solutions-components/{p-83997457.entry.js → p-d84fe0ee.entry.js} +2 -2
  362. package/dist/solutions-components/p-e9176a44.entry.js +6 -0
  363. package/dist/solutions-components/p-e947332f.entry.js +6 -0
  364. package/dist/solutions-components/{p-568c465e.entry.js → p-fc665a1a.entry.js} +1 -1
  365. package/dist/solutions-components/solutions-components.esm.js +1 -1
  366. package/dist/solutions-components/utils/interfaces.ts +5 -0
  367. package/dist/solutions-components/utils/mapViewUtils.ts +19 -1
  368. package/dist/solutions-components/utils/pdfUtils.ts +40 -47
  369. package/dist/types/assets/arcgis-pdf-creator/PDFLabels.d.ts +218 -0
  370. package/dist/types/components/create-related-feature/create-related-feature.d.ts +113 -0
  371. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +197 -99
  372. package/dist/types/components/feature-details/feature-details.d.ts +31 -0
  373. package/dist/types/components/feature-list/feature-list.d.ts +31 -2
  374. package/dist/types/components/info-card/info-card.d.ts +6 -2
  375. package/dist/types/components/layer-list/layer-list.d.ts +0 -5
  376. package/dist/types/components.d.ts +131 -12
  377. package/dist/types/preact.d.ts +8 -1
  378. package/dist/types/utils/interfaces.d.ts +4 -0
  379. package/dist/types/utils/mapViewUtils.d.ts +7 -0
  380. package/package.json +1 -1
  381. package/dist/solutions-components/p-28b4b325.entry.js +0 -6
  382. package/dist/solutions-components/p-36d3476c.entry.js +0 -17
  383. package/dist/solutions-components/p-452d2d38.entry.js +0 -6
  384. package/dist/solutions-components/p-48b2469f.entry.js +0 -6
  385. package/dist/solutions-components/p-4f0712e2.entry.js +0 -6
  386. package/dist/solutions-components/p-535c103e.entry.js +0 -6
  387. package/dist/solutions-components/p-7ca416ab.entry.js +0 -6
  388. package/dist/solutions-components/p-8e337f80.entry.js +0 -6
  389. package/dist/solutions-components/p-d13f6b3a.entry.js +0 -6
  390. package/dist/solutions-components/p-d62b99ff.entry.js +0 -6
@@ -3,7 +3,7 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{a as t,g as r}from"./p-82e085d0.js";import{_ as i}from"./p-ee457c15.js";import"./p-6d753a3d.js";import"./p-896c9644.js";import"./p-d9c89479.js";import"./p-c1cf3ebc.js";import"./p-334e6394.js";import"./p-a230b270.js";import"./p-530b73ce.js";var e=function(t){return t&&t.Math==Math&&t},n=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||function(){return this}()||Function("return this")(),s={},a=function(t){try{return!!t()}catch(t){return!0}},o=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),h=!a((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),u=Function.prototype.call,c=h?u.bind(u):function(){return u.apply(u,arguments)},f={},l={}.propertyIsEnumerable,v=Object.getOwnPropertyDescriptor,d=v&&!l.call({1:2},1);f.f=d?function(t){var r=v(this,t);return!!r&&r.enumerable}:l;var p,y,g=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},m=h,b=Function.prototype,w=b.call,x=m&&b.bind.bind(w,w),M=m?x:function(t){return function(){return w.apply(t,arguments)}},k=M,S=k({}.toString),N=k("".slice),j=function(t){return N(S(t),8,-1)},P=a,O=j,E=Object,T=M("".split),C=P((function(){return!E("z").propertyIsEnumerable(0)}))?function(t){return"String"==O(t)?T(t,""):E(t)}:E,A=function(t){return null==t},R=A,B=TypeError,L=function(t){if(R(t))throw B("Can't call method on "+t);return t},$=C,I=L,D=function(t){return $(I(t))},F="object"==typeof document&&document.all,z={all:F,IS_HTMLDDA:void 0===F&&void 0!==F},_=z.all,Y=z.IS_HTMLDDA?function(t){return"function"==typeof t||t===_}:function(t){return"function"==typeof t},X=Y,q=z.all,G=z.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:X(t)||t===q}:function(t){return"object"==typeof t?null!==t:X(t)},U=n,V=Y,H=function(t,r){return arguments.length<2?V(i=U[t])?i:void 0:U[t]&&U[t][r];var i},W=M({}.isPrototypeOf),Q="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Z=Q,K=n.process,J=n.Deno,tt=K&&K.versions||J&&J.version,rt=tt&&tt.v8;rt&&(y=(p=rt.split("."))[0]>0&&p[0]<4?1:+(p[0]+p[1])),!y&&Z&&(!(p=Z.match(/Edge\/(\d+)/))||p[1]>=74)&&(p=Z.match(/Chrome\/(\d+)/))&&(y=+p[1]);var it=y,et=it,nt=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&et&&et<41})),st=nt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,at=H,ot=Y,ht=W,ut=Object,ct=st?function(t){return"symbol"==typeof t}:function(t){var r=at("Symbol");return ot(r)&&ht(r.prototype,ut(t))},ft=String,lt=function(t){try{return ft(t)}catch(t){return"Object"}},vt=Y,dt=lt,pt=TypeError,yt=function(t){if(vt(t))return t;throw pt(dt(t)+" is not a function")},gt=yt,mt=A,bt=function(t,r){var i=t[r];return mt(i)?void 0:gt(i)},wt=c,xt=Y,Mt=G,kt=TypeError,St={exports:{}},Nt=n,jt=Object.defineProperty,Pt=function(t,r){try{jt(Nt,t,{value:r,configurable:!0,writable:!0})}catch(i){Nt[t]=r}return r},Ot="__core-js_shared__",Et=n[Ot]||Pt(Ot,{}),Tt=Et;(St.exports=function(t,r){return Tt[t]||(Tt[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.27.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Ct=L,At=Object,Rt=function(t){return At(Ct(t))},Bt=Rt,Lt=M({}.hasOwnProperty),$t=Object.hasOwn||function(t,r){return Lt(Bt(t),r)},It=M,Dt=0,Ft=Math.random(),zt=It(1..toString),_t=function(t){return"Symbol("+(void 0===t?"":t)+")_"+zt(++Dt+Ft,36)},Yt=$t,Xt=_t,qt=nt,Gt=st,Ut=n.Symbol,Vt=(0,St.exports)("wks"),Ht=Gt?Ut.for||Ut:Ut&&Ut.withoutSetter||Xt,Wt=function(t){return Yt(Vt,t)||(Vt[t]=qt&&Yt(Ut,t)?Ut[t]:Ht("Symbol."+t)),Vt[t]},Qt=c,Zt=G,Kt=ct,Jt=bt,tr=TypeError,rr=Wt("toPrimitive"),ir=function(t,r){if(!Zt(t)||Kt(t))return t;var i,e=Jt(t,rr);if(e){if(void 0===r&&(r="default"),i=Qt(e,t,r),!Zt(i)||Kt(i))return i;throw tr("Can't convert object to primitive value")}return void 0===r&&(r="number"),function(t,r){var i,e;if("string"===r&&xt(i=t.toString)&&!Mt(e=wt(i,t)))return e;if(xt(i=t.valueOf)&&!Mt(e=wt(i,t)))return e;if("string"!==r&&xt(i=t.toString)&&!Mt(e=wt(i,t)))return e;throw kt("Can't convert object to primitive value")}(t,r)},er=ct,nr=function(t){var r=ir(t,"string");return er(r)?r:r+""},sr=G,ar=n.document,or=sr(ar)&&sr(ar.createElement),hr=function(t){return or?ar.createElement(t):{}},ur=hr,cr=!o&&!a((function(){return 7!=Object.defineProperty(ur("div"),"a",{get:function(){return 7}}).a})),fr=c,lr=f,vr=g,dr=D,pr=nr,yr=$t,gr=cr,mr=Object.getOwnPropertyDescriptor;s.f=o?mr:function(t,r){if(t=dr(t),r=pr(r),gr)try{return mr(t,r)}catch(t){}if(yr(t,r))return vr(!fr(lr.f,t,r),t[r])};var br={},wr=o&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),xr=G,Mr=String,kr=TypeError,Sr=function(t){if(xr(t))return t;throw kr(Mr(t)+" is not an object")},Nr=cr,jr=Sr,Pr=nr,Or=TypeError,Er=Object.defineProperty,Tr=Object.getOwnPropertyDescriptor,Cr="enumerable",Ar="configurable",Rr="writable";br.f=o?wr?function(t,r,i){if(jr(t),r=Pr(r),jr(i),"function"==typeof t&&"prototype"===r&&"value"in i&&Rr in i&&!i[Rr]){var e=Tr(t,r);e&&e[Rr]&&(t[r]=i.value,i={configurable:Ar in i?i[Ar]:e[Ar],enumerable:Cr in i?i[Cr]:e[Cr],writable:!1})}return Er(t,r,i)}:Er:function(t,r,i){if(jr(t),r=Pr(r),jr(i),Nr)try{return Er(t,r,i)}catch(t){}if("get"in i||"set"in i)throw Or("Accessors not supported");return"value"in i&&(t[r]=i.value),t};var Br=br,Lr=g,$r=o?function(t,r,i){return Br.f(t,r,Lr(1,i))}:function(t,r,i){return t[r]=i,t},Ir={exports:{}},Dr=o,Fr=Function.prototype,zr=Dr&&Object.getOwnPropertyDescriptor,_r=$t(Fr,"name"),Yr={EXISTS:_r,PROPER:_r&&"something"===function(){}.name,CONFIGURABLE:_r&&(!Dr||Dr&&zr(Fr,"name").configurable)},Xr=Y,qr=Et,Gr=M(Function.toString);Xr(qr.inspectSource)||(qr.inspectSource=function(t){return Gr(t)});var Ur,Vr,Hr,Wr=qr.inspectSource,Qr=n.WeakMap,Zr=Y(Qr)&&/native code/.test(String(Qr)),Kr=_t,Jr=(0,St.exports)("keys"),ti=function(t){return Jr[t]||(Jr[t]=Kr(t))},ri={},ii=G,ei=$r,ni=$t,si=ti,ai=ri,oi="Object already initialized",hi=n.TypeError;if(Zr||Et.state){var ui=Et.state||(Et.state=new(0,n.WeakMap));ui.get=ui.get,ui.has=ui.has,ui.set=ui.set,Ur=function(t,r){if(ui.has(t))throw hi(oi);return r.facade=t,ui.set(t,r),r},Vr=function(t){return ui.get(t)||{}},Hr=function(t){return ui.has(t)}}else{var ci=si("state");ai[ci]=!0,Ur=function(t,r){if(ni(t,ci))throw hi(oi);return r.facade=t,ei(t,ci,r),r},Vr=function(t){return ni(t,ci)?t[ci]:{}},Hr=function(t){return ni(t,ci)}}var fi={set:Ur,get:Vr,has:Hr,enforce:function(t){return Hr(t)?Vr(t):Ur(t,{})},getterFor:function(t){return function(r){var i;if(!ii(r)||(i=Vr(r)).type!==t)throw hi("Incompatible receiver, "+t+" required");return i}}},li=M,vi=a,di=Y,pi=$t,yi=o,gi=Yr.CONFIGURABLE,mi=Wr,bi=fi.enforce,wi=fi.get,xi=String,Mi=Object.defineProperty,ki=li("".slice),Si=li("".replace),Ni=li([].join),ji=yi&&!vi((function(){return 8!==Mi((function(){}),"length",{value:8}).length})),Pi=String(String).split("String"),Oi=Ir.exports=function(t,r,i){"Symbol("===ki(xi(r),0,7)&&(r="["+Si(xi(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),i&&i.getter&&(r="get "+r),i&&i.setter&&(r="set "+r),(!pi(t,"name")||gi&&t.name!==r)&&(yi?Mi(t,"name",{value:r,configurable:!0}):t.name=r),ji&&i&&pi(i,"arity")&&t.length!==i.arity&&Mi(t,"length",{value:i.arity});try{i&&pi(i,"constructor")&&i.constructor?yi&&Mi(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var e=bi(t);return pi(e,"source")||(e.source=Ni(Pi,"string"==typeof r?r:"")),t};Function.prototype.toString=Oi((function(){return di(this)&&wi(this).source||mi(this)}),"toString");var Ei=Y,Ti=br,Ci=Ir.exports,Ai=Pt,Ri=function(t,r,i,e){e||(e={});var n=e.enumerable,s=void 0!==e.name?e.name:r;if(Ei(i)&&Ci(i,s,e),e.global)n?t[r]=i:Ai(r,i);else{try{e.unsafe?t[r]&&(n=!0):delete t[r]}catch(t){}n?t[r]=i:Ti.f(t,r,{value:i,enumerable:!1,configurable:!e.nonConfigurable,writable:!e.nonWritable})}return t},Bi={},Li=Math.ceil,$i=Math.floor,Ii=Math.trunc||function(t){var r=+t;return(r>0?$i:Li)(r)},Di=Ii,Fi=function(t){var r=+t;return r!=r||0===r?0:Di(r)},zi=Fi,_i=Math.max,Yi=Math.min,Xi=function(t,r){var i=zi(t);return i<0?_i(i+r,0):Yi(i,r)},qi=Fi,Gi=Math.min,Ui=function(t){return t>0?Gi(qi(t),9007199254740991):0},Vi=Ui,Hi=function(t){return Vi(t.length)},Wi=D,Qi=Xi,Zi=Hi,Ki=function(t){return function(r,i,e){var n,s=Wi(r),a=Zi(s),o=Qi(e,a);if(t&&i!=i){for(;a>o;)if((n=s[o++])!=n)return!0}else for(;a>o;o++)if((t||o in s)&&s[o]===i)return t||o||0;return!t&&-1}},Ji={includes:Ki(!0),indexOf:Ki(!1)},te=$t,re=D,ie=Ji.indexOf,ee=ri,ne=M([].push),se=function(t,r){var i,e=re(t),n=0,s=[];for(i in e)!te(ee,i)&&te(e,i)&&ne(s,i);for(;r.length>n;)te(e,i=r[n++])&&(~ie(s,i)||ne(s,i));return s},ae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],oe=se,he=ae.concat("length","prototype");Bi.f=Object.getOwnPropertyNames||function(t){return oe(t,he)};var ue={};ue.f=Object.getOwnPropertySymbols;var ce=H,fe=Bi,le=ue,ve=Sr,de=M([].concat),pe=ce("Reflect","ownKeys")||function(t){var r=fe.f(ve(t)),i=le.f;return i?de(r,i(t)):r},ye=$t,ge=pe,me=s,be=br,we=a,xe=Y,Me=/#|\.prototype\./,ke=function(t,r){var i=Ne[Se(t)];return i==Pe||i!=je&&(xe(r)?we(r):!!r)},Se=ke.normalize=function(t){return String(t).replace(Me,".").toLowerCase()},Ne=ke.data={},je=ke.NATIVE="N",Pe=ke.POLYFILL="P",Oe=ke,Ee=n,Te=s.f,Ce=$r,Ae=Ri,Re=Pt,Be=function(t,r,i){for(var e=ge(r),n=be.f,s=me.f,a=0;a<e.length;a++){var o=e[a];ye(t,o)||i&&ye(i,o)||n(t,o,s(r,o))}},Le=Oe,$e=function(t,r){var i,e,n,s,a,o=t.target,h=t.global,u=t.stat;if(i=h?Ee:u?Ee[o]||Re(o,{}):(Ee[o]||{}).prototype)for(e in r){if(s=r[e],n=t.dontCallGetSet?(a=Te(i,e))&&a.value:i[e],!Le(h?e:o+(u?".":"#")+e,t.forced)&&void 0!==n){if(typeof s==typeof n)continue;Be(s,n)}(t.sham||n&&n.sham)&&Ce(s,"sham",!0),Ae(i,e,s,t)}},Ie="undefined"!=typeof process&&"process"==j(process),De=Y,Fe=String,ze=TypeError,_e=M,Ye=Sr,Xe=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,i={};try{(t=_e(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(i,[]),r=i instanceof Array}catch(t){}return function(i,e){return Ye(i),function(t){if("object"==typeof t||De(t))return t;throw ze("Can't set "+Fe(t)+" as a prototype")}(e),r?t(i,e):i.__proto__=e,i}}():void 0),qe=br.f,Ge=$t,Ue=Wt("toStringTag"),Ve=function(t,r,i){t&&!i&&(t=t.prototype),t&&!Ge(t,Ue)&&qe(t,Ue,{configurable:!0,value:r})},He=H,We=br,Qe=o,Ze=Wt("species"),Ke=W,Je=TypeError,tn={};tn[Wt("toStringTag")]="z";var rn="[object z]"===String(tn),en=Y,nn=j,sn=Wt("toStringTag"),an=Object,on="Arguments"==nn(function(){return arguments}()),hn=rn?nn:function(t){var r,i,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,r){try{return t[r]}catch(t){}}(r=an(t),sn))?i:on?nn(r):"Object"==(e=nn(r))&&en(r.callee)?"Arguments":e},un=M,cn=a,fn=Y,ln=hn,vn=Wr,dn=function(){},pn=[],yn=H("Reflect","construct"),gn=/^\s*(?:class|function)\b/,mn=un(gn.exec),bn=!gn.exec(dn),wn=function(t){if(!fn(t))return!1;try{return yn(dn,pn,t),!0}catch(t){return!1}},xn=function(t){if(!fn(t))return!1;switch(ln(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return bn||!!mn(gn,vn(t))}catch(t){return!0}};xn.sham=!0;var Mn,kn,Sn,Nn,jn=!yn||cn((function(){var t;return wn(wn.call)||!wn(Object)||!wn((function(){t=!0}))||t}))?xn:wn,Pn=jn,On=lt,En=TypeError,Tn=Sr,Cn=A,An=Wt("species"),Rn=function(t,r){var i,e=Tn(t).constructor;return void 0===e||Cn(i=Tn(e)[An])?r:function(t){if(Pn(t))return t;throw En(On(t)+" is not a constructor")}(i)},Bn=Function.prototype,Ln=Bn.apply,$n=Bn.call,In="object"==typeof Reflect&&Reflect.apply||(h?$n.bind(Ln):function(){return $n.apply(Ln,arguments)}),Dn=j,Fn=M,zn=function(t){if("Function"===Dn(t))return Fn(t)},_n=yt,Yn=h,Xn=zn(zn.bind),qn=function(t,r){return _n(t),void 0===r?t:Yn?Xn(t,r):function(){return t.apply(r,arguments)}},Gn=H("document","documentElement"),Un=M([].slice),Vn=TypeError,Hn=/(?:ipad|iphone|ipod).*applewebkit/i.test(Q),Wn=n,Qn=In,Zn=qn,Kn=Y,Jn=$t,ts=a,rs=Gn,is=Un,es=hr,ns=Hn,ss=Ie,as=Wn.setImmediate,os=Wn.clearImmediate,hs=Wn.process,us=Wn.Dispatch,cs=Wn.Function,fs=Wn.MessageChannel,ls=Wn.String,vs=0,ds={},ps="onreadystatechange";ts((function(){Mn=Wn.location}));var ys=function(t){if(Jn(ds,t)){var r=ds[t];delete ds[t],r()}},gs=function(t){return function(){ys(t)}},ms=function(t){ys(t.data)},bs=function(t){Wn.postMessage(ls(t),Mn.protocol+"//"+Mn.host)};as&&os||(as=function(t){!function(t,r){if(t<r)throw Vn("Not enough arguments")}(arguments.length,1);var r=Kn(t)?t:cs(t),i=is(arguments,1);return ds[++vs]=function(){Qn(r,void 0,i)},kn(vs),vs},os=function(t){delete ds[t]},ss?kn=function(t){hs.nextTick(gs(t))}:us&&us.now?kn=function(t){us.now(gs(t))}:fs&&!ns?(Nn=(Sn=new fs).port2,Sn.port1.onmessage=ms,kn=Zn(Nn.postMessage,Nn)):Wn.addEventListener&&Kn(Wn.postMessage)&&!Wn.importScripts&&Mn&&"file:"!==Mn.protocol&&!ts(bs)?(kn=bs,Wn.addEventListener("message",ms,!1)):kn=ps in es("script")?function(t){rs.appendChild(es("script"))[ps]=function(){rs.removeChild(this),ys(t)}}:function(t){setTimeout(gs(t),0)});var ws={set:as,clear:os},xs=function(){this.head=null,this.tail=null};xs.prototype={add:function(t){var r={item:t,next:null},i=this.tail;i?i.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Ms,ks,Ss,Ns,js,Ps=xs,Os=/ipad|iphone|ipod/i.test(Q)&&"undefined"!=typeof Pebble,Es=/web0s(?!.*chrome)/i.test(Q),Ts=n,Cs=qn,As=ws.set,Rs=Ps,Bs=Hn,Ls=Os,$s=Es,Is=Ie,Ds=Ts.MutationObserver||Ts.WebKitMutationObserver,Fs=Ts.document,zs=Ts.process,_s=Ts.Promise,Ys=(0,s.f)(Ts,"queueMicrotask"),Xs=Ys&&Ys.value;if(!Xs){var qs=new Rs,Gs=function(){var t,r;for(Is&&(t=zs.domain)&&t.exit();r=qs.get();)try{r()}catch(t){throw qs.head&&Ms(),t}t&&t.enter()};Bs||Is||$s||!Ds||!Fs?!Ls&&_s&&_s.resolve?((Ns=_s.resolve(void 0)).constructor=_s,js=Cs(Ns.then,Ns),Ms=function(){js(Gs)}):Is?Ms=function(){zs.nextTick(Gs)}:(As=Cs(As,Ts),Ms=function(){As(Gs)}):(ks=!0,Ss=Fs.createTextNode(""),new Ds(Gs).observe(Ss,{characterData:!0}),Ms=function(){Ss.data=ks=!ks}),Xs=function(t){qs.head||Ms(),qs.add(t)}}var Us=Xs,Vs=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Hs=n.Promise,Ws="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Qs=!Ws&&!Ie&&"object"==typeof window&&"object"==typeof document,Zs=n,Ks=Hs,Js=Y,ta=Oe,ra=Wr,ia=Qs,ea=Ws,na=it,sa=Wt("species"),aa=!1,oa=Js(Zs.PromiseRejectionEvent),ha=ta("Promise",(function(){var t=ra(Ks),r=t!==String(Ks);if(!r&&66===na)return!0;if(!na||na<51||!/native code/.test(t)){var i=new Ks((function(t){t(1)})),e=function(t){t((function(){}),(function(){}))};if((i.constructor={})[sa]=e,!(aa=i.then((function(){}))instanceof e))return!0}return!r&&(ia||ea)&&!oa})),ua={CONSTRUCTOR:ha,REJECTION_EVENT:oa,SUBCLASSING:aa},ca={},fa=yt,la=TypeError,va=function(t){var r,i;this.promise=new t((function(t,e){if(void 0!==r||void 0!==i)throw la("Bad Promise constructor");r=t,i=e})),this.resolve=fa(r),this.reject=fa(i)};ca.f=function(t){return new va(t)};var da,pa,ya,ga,ma=$e,ba=Ie,wa=n,xa=c,Ma=Ri,ka=Xe,Sa=Ve,Na=yt,ja=Y,Pa=G,Oa=Rn,Ea=ws.set,Ta=Us,Ca=Vs,Aa=Ps,Ra=fi,Ba=Hs,La=ca,$a="Promise",Ia=ua.CONSTRUCTOR,Da=ua.REJECTION_EVENT,Fa=ua.SUBCLASSING,za=Ra.getterFor($a),_a=Ra.set,Ya=Ba&&Ba.prototype,Xa=Ba,qa=Ya,Ga=wa.TypeError,Ua=wa.document,Va=wa.process,Ha=La.f,Wa=Ha,Qa=!!(Ua&&Ua.createEvent&&wa.dispatchEvent),Za="unhandledrejection",Ka=function(t){var r;return!(!Pa(t)||!ja(r=t.then))&&r},Ja=function(t,r){var i,e,n,s=r.value,a=1==r.state,o=a?t.ok:t.fail,h=t.resolve,u=t.reject,c=t.domain;try{o?(a||(2===r.rejection&&no(r),r.rejection=1),!0===o?i=s:(c&&c.enter(),i=o(s),c&&(c.exit(),n=!0)),i===t.promise?u(Ga("Promise-chain cycle")):(e=Ka(i))?xa(e,i,h,u):h(i)):u(s)}catch(t){c&&!n&&c.exit(),u(t)}},to=function(t,r){t.notified||(t.notified=!0,Ta((function(){for(var i,e=t.reactions;i=e.get();)Ja(i,t);t.notified=!1,r&&!t.rejection&&io(t)})))},ro=function(t,r,i){var e,n;Qa?((e=Ua.createEvent("Event")).promise=r,e.reason=i,e.initEvent(t,!1,!0),wa.dispatchEvent(e)):e={promise:r,reason:i},!Da&&(n=wa["on"+t])?n(e):t===Za&&function(t,r){try{1==arguments.length?console.error(t):console.error(t,r)}catch(t){}}("Unhandled promise rejection",i)},io=function(t){xa(Ea,wa,(function(){var r,i=t.facade,e=t.value;if(eo(t)&&(r=Ca((function(){ba?Va.emit("unhandledRejection",e,i):ro(Za,i,e)})),t.rejection=ba||eo(t)?2:1,r.error))throw r.value}))},eo=function(t){return 1!==t.rejection&&!t.parent},no=function(t){xa(Ea,wa,(function(){var r=t.facade;ba?Va.emit("rejectionHandled",r):ro("rejectionhandled",r,t.value)}))},so=function(t,r,i){return function(e){t(r,e,i)}},ao=function(t,r,i){t.done||(t.done=!0,i&&(t=i),t.value=r,t.state=2,to(t,!0))},oo=function(t,r,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===r)throw Ga("Promise can't be resolved itself");var e=Ka(r);e?Ta((function(){var i={done:!1};try{xa(e,r,so(oo,i,t),so(ao,i,t))}catch(r){ao(i,r,t)}})):(t.value=r,t.state=1,to(t,!1))}catch(r){ao({done:!1},r,t)}}};if(Ia&&(Xa=function(t){(function(t,r){if(Ke(r,t))return t;throw Je("Incorrect invocation")})(this,qa),Na(t),xa(da,this);var r=za(this);try{t(so(oo,r),so(ao,r))}catch(t){ao(r,t)}},(da=function(){_a(this,{type:$a,done:!1,notified:!1,parent:!1,reactions:new Aa,rejection:!1,state:0,value:void 0})}).prototype=Ma(qa=Xa.prototype,"then",(function(t,r){var i=za(this),e=Ha(Oa(this,Xa));return i.parent=!0,e.ok=!ja(t)||t,e.fail=ja(r)&&r,e.domain=ba?Va.domain:void 0,0==i.state?i.reactions.add(e):Ta((function(){Ja(e,i)})),e.promise})),pa=function(){var t=new da,r=za(t);this.promise=t,this.resolve=so(oo,r),this.reject=so(ao,r)},La.f=Ha=function(t){return t===Xa||void 0===t?new pa(t):Wa(t)},ja(Ba)&&Ya!==Object.prototype)){ya=Ya.then,Fa||Ma(Ya,"then",(function(t,r){var i=this;return new Xa((function(t,r){xa(ya,i,t,r)})).then(t,r)}),{unsafe:!0});try{delete Ya.constructor}catch(t){}ka&&ka(Ya,qa)}ma({global:!0,constructor:!0,wrap:!0,forced:Ia},{Promise:Xa}),Sa(Xa,$a,!1),ga=He($a),Qe&&ga&&!ga[Ze]&&(0,We.f)(ga,Ze,{configurable:!0,get:function(){return this}});var ho={},uo=ho,co=Wt("iterator"),fo=Array.prototype,lo=hn,vo=bt,po=A,yo=ho,go=Wt("iterator"),mo=function(t){if(!po(t))return vo(t,go)||vo(t,"@@iterator")||yo[lo(t)]},bo=c,wo=yt,xo=Sr,Mo=lt,ko=mo,So=TypeError,No=c,jo=Sr,Po=bt,Oo=qn,Eo=c,To=Sr,Co=lt,Ao=Hi,Ro=W,Bo=mo,Lo=function(t,r,i){var e,n;jo(t);try{if(!(e=Po(t,"return"))){if("throw"===r)throw i;return i}e=No(e,t)}catch(t){n=!0,e=t}if("throw"===r)throw i;if(n)throw e;return jo(e),i},$o=TypeError,Io=function(t,r){this.stopped=t,this.result=r},Do=Io.prototype,Fo=function(t,r,i){var e,n,s,a,o,h,u,c,f=!(!i||!i.AS_ENTRIES),l=!(!i||!i.IS_RECORD),v=!(!i||!i.IS_ITERATOR),d=!(!i||!i.INTERRUPTED),p=Oo(r,i&&i.that),y=function(t){return e&&Lo(e,"normal",t),new Io(!0,t)},g=function(t){return f?(To(t),d?p(t[0],t[1],y):p(t[0],t[1])):d?p(t,y):p(t)};if(l)e=t.iterator;else if(v)e=t;else{if(!(n=Bo(t)))throw $o(Co(t)+" is not iterable");if(void 0!==(c=n)&&(uo.Array===c||fo[co]===c)){for(s=0,a=Ao(t);a>s;s++)if((o=g(t[s]))&&Ro(Do,o))return o;return new Io(!1)}e=function(t,r){var i=arguments.length<2?ko(t):r;if(wo(i))return xo(bo(i,t));throw So(Mo(t)+" is not iterable")}(t,n)}for(h=l?t.next:e.next;!(u=Eo(h,e)).done;){try{o=g(u.value)}catch(t){Lo(e,"throw",t)}if("object"==typeof o&&o&&Ro(Do,o))return o}return new Io(!1)},zo=Wt("iterator"),_o=!1;try{var Yo=0,Xo={next:function(){return{done:!!Yo++}},return:function(){_o=!0}};Xo[zo]=function(){return this},Array.from(Xo,(function(){throw 2}))}catch(t){}var qo=Hs,Go=ua.CONSTRUCTOR||!function(t,r){if(!r&&!_o)return!1;var i=!1;try{var e={};e[zo]=function(){return{next:function(){return{done:i=!0}}}},t(e)}catch(t){}return i}((function(t){qo.all(t).then(void 0,(function(){}))})),Uo=c,Vo=yt,Ho=ca,Wo=Vs,Qo=Fo;$e({target:"Promise",stat:!0,forced:Go},{all:function(t){var r=this,i=Ho.f(r),e=i.resolve,n=i.reject,s=Wo((function(){var i=Vo(r.resolve),s=[],a=0,o=1;Qo(t,(function(t){var h=a++,u=!1;o++,Uo(i,r,t).then((function(t){u||(u=!0,s[h]=t,--o||e(s))}),n)})),--o||e(s)}));return s.error&&n(s.value),i.promise}});var Zo=Hs,Ko=H,Jo=Y,th=Ri,rh=Zo&&Zo.prototype;if($e({target:"Promise",proto:!0,forced:ua.CONSTRUCTOR,real:!0},{catch:function(t){return this.then(void 0,t)}}),Jo(Zo)){var ih=Ko("Promise").prototype.catch;rh.catch!==ih&&th(rh,"catch",ih,{unsafe:!0})}var eh=c,nh=yt,sh=ca,ah=Vs,oh=Fo;$e({target:"Promise",stat:!0,forced:Go},{race:function(t){var r=this,i=sh.f(r),e=i.reject,n=ah((function(){var n=nh(r.resolve);oh(t,(function(t){eh(n,r,t).then(i.resolve,e)}))}));return n.error&&e(n.value),i.promise}});var hh=c,uh=ca;$e({target:"Promise",stat:!0,forced:ua.CONSTRUCTOR},{reject:function(t){var r=uh.f(this);return hh(r.reject,void 0,t),r.promise}});var ch=Sr,fh=G,lh=ca;$e({target:"Promise",stat:!0,forced:ua.CONSTRUCTOR},{resolve:function(t){return function(t,r){if(ch(t),fh(r)&&r.constructor===t)return r;var i=lh.f(t);return(0,i.resolve)(r),i.promise}(this,t)}});var vh={exports:{}};!function(t){function r(t,r,i,e,n,s,a){try{var o=t[s](a),h=o.value}catch(t){return void i(t)}o.done?r(h):Promise.resolve(h).then(e,n)}t.exports=function(t){return function(){var i=this,e=arguments;return new Promise((function(n,s){var a=t.apply(i,e);function o(t){r(a,n,s,o,h,"next",t)}function h(t){r(a,n,s,o,h,"throw",t)}o(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports}(vh);const dh=r(vh.exports);var ph=hn,yh=String,gh=function(t){if("Symbol"===ph(t))throw TypeError("Cannot convert a Symbol value to a string");return yh(t)},mh=Sr,bh=function(){var t=mh(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r},wh=a,xh=n.RegExp,Mh=wh((function(){var t=xh("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),kh=Mh||wh((function(){return!xh("a","y").sticky})),Sh={BROKEN_CARET:Mh||wh((function(){var t=xh("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:kh,UNSUPPORTED_Y:Mh},Nh={},jh=se,Ph=ae,Oh=Object.keys||function(t){return jh(t,Ph)},Eh=br,Th=Sr,Ch=D,Ah=Oh;Nh.f=o&&!wr?Object.defineProperties:function(t,r){Th(t);for(var i,e=Ch(r),n=Ah(r),s=n.length,a=0;s>a;)Eh.f(t,i=n[a++],e[i]);return t};var Rh,Bh=Sr,Lh=Nh,$h=ae,Ih=ri,Dh=Gn,Fh=hr,zh="prototype",_h="script",Yh=ti("IE_PROTO"),Xh=function(){},qh=function(t){return"<"+_h+">"+t+"</"+_h+">"},Gh=function(t){t.write(qh("")),t.close();var r=t.parentWindow.Object;return t=null,r},Uh=function(){try{Rh=new ActiveXObject("htmlfile")}catch(t){}var t,r,i;Uh="undefined"!=typeof document?document.domain&&Rh?Gh(Rh):(r=Fh("iframe"),i="java"+_h+":",r.style.display="none",Dh.appendChild(r),r.src=String(i),(t=r.contentWindow.document).open(),t.write(qh("document.F=Object")),t.close(),t.F):Gh(Rh);for(var e=$h.length;e--;)delete Uh[zh][$h[e]];return Uh()};Ih[Yh]=!0;var Vh,Hh,Wh=Object.create||function(t,r){var i;return null!==t?(Xh[zh]=Bh(t),i=new Xh,Xh[zh]=null,i[Yh]=t):i=Uh(),void 0===r?i:Lh.f(i,r)},Qh=n.RegExp,Zh=a((function(){var t=Qh(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Kh=n.RegExp,Jh=a((function(){var t=Kh("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),tu=c,ru=M,iu=gh,eu=bh,nu=Sh,su=Wh,au=fi.get,ou=Zh,hu=Jh,uu=(0,St.exports)("native-string-replace",String.prototype.replace),cu=RegExp.prototype.exec,fu=cu,lu=ru("".charAt),vu=ru("".indexOf),du=ru("".replace),pu=ru("".slice),yu=(Hh=/b*/g,tu(cu,Vh=/a/,"a"),tu(cu,Hh,"a"),0!==Vh.lastIndex||0!==Hh.lastIndex),gu=nu.BROKEN_CARET,mu=void 0!==/()??/.exec("")[1];(yu||mu||gu||ou||hu)&&(fu=function(t){var r,i,e,n,s,a,o,h=this,u=au(h),c=iu(t),f=u.raw;if(f)return f.lastIndex=h.lastIndex,r=tu(fu,f,c),h.lastIndex=f.lastIndex,r;var l=u.groups,v=gu&&h.sticky,d=tu(eu,h),p=h.source,y=0,g=c;if(v&&(d=du(d,"y",""),-1===vu(d,"g")&&(d+="g"),g=pu(c,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==lu(c,h.lastIndex-1))&&(p="(?: "+p+")",g=" "+g,y++),i=new RegExp("^(?:"+p+")",d)),mu&&(i=new RegExp("^"+p+"$(?!\\s)",d)),yu&&(e=h.lastIndex),n=tu(cu,v?i:h,g),v?n?(n.input=pu(n.input,y),n[0]=pu(n[0],y),n.index=h.lastIndex,h.lastIndex+=n[0].length):h.lastIndex=0:yu&&n&&(h.lastIndex=h.global?n.index+n[0].length:e),mu&&n&&n.length>1&&tu(uu,n[0],i,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(n[s]=void 0)})),n&&l)for(n.groups=a=su(null),s=0;s<l.length;s++)a[(o=l[s])[0]]=n[o[1]];return n});var bu=fu;$e({target:"RegExp",proto:!0,forced:/./.exec!==bu},{exec:bu});var wu=zn,xu=Ri,Mu=bu,ku=a,Su=Wt,Nu=$r,ju=Su("species"),Pu=RegExp.prototype,Ou=function(t,r,i,e){var n=Su(t),s=!ku((function(){var r={};return r[n]=function(){return 7},7!=""[t](r)})),a=s&&!ku((function(){var r=!1,i=/a/;return"split"===t&&((i={}).constructor={},i.constructor[ju]=function(){return i},i.flags="",i[n]=/./[n]),i.exec=function(){return r=!0,null},i[n](""),!r}));if(!s||!a||i){var o=wu(/./[n]),h=r(n,""[t],(function(t,r,i,e,n){var a=wu(t),h=r.exec;return h===Mu||h===Pu.exec?s&&!n?{done:!0,value:o(r,i,e)}:{done:!0,value:a(i,r,e)}:{done:!1}}));xu(String.prototype,t,h[0]),xu(Pu,n,h[1])}e&&Nu(Pu[n],"sham",!0)},Eu=M,Tu=Fi,Cu=gh,Au=L,Ru=Eu("".charAt),Bu=Eu("".charCodeAt),Lu=Eu("".slice),$u=function(t){return function(r,i){var e,n,s=Cu(Au(r)),a=Tu(i),o=s.length;return a<0||a>=o?t?"":void 0:(e=Bu(s,a))<55296||e>56319||a+1===o||(n=Bu(s,a+1))<56320||n>57343?t?Ru(s,a):e:t?Lu(s,a,a+2):n-56320+(e-55296<<10)+65536}},Iu=($u(!1),$u(!0)),Du=function(t,r,i){return r+(i?Iu(t,r).length:1)},Fu=c,zu=Sr,_u=Y,Yu=j,Xu=bu,qu=TypeError,Gu=function(t,r){var i=t.exec;if(_u(i)){var e=Fu(i,t,r);return null!==e&&zu(e),e}if("RegExp"===Yu(t))return Fu(Xu,t,r);throw qu("RegExp#exec called on incompatible receiver")},Uu=c,Vu=Sr,Hu=A,Wu=Ui,Qu=gh,Zu=L,Ku=bt,Ju=Du,tc=Gu;Ou("match",(function(t,r,i){return[function(r){var i=Zu(this),e=Hu(r)?void 0:Ku(r,t);return e?Uu(e,r,i):new RegExp(r)[t](Qu(i))},function(t){var e=Vu(this),n=Qu(t),s=i(r,e,n);if(s.done)return s.value;if(!e.global)return tc(e,n);var a=e.unicode;e.lastIndex=0;for(var o,h=[],u=0;null!==(o=tc(e,n));){var c=Qu(o[0]);h[u]=c,""===c&&(e.lastIndex=Ju(n,Wu(e.lastIndex),a)),u++}return 0===u?null:h}]}));var rc=M,ic=Rt,ec=Math.floor,nc=rc("".charAt),sc=rc("".replace),ac=rc("".slice),oc=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,hc=/\$([$&'`]|\d{1,2})/g,uc=In,cc=c,fc=M,lc=Ou,vc=a,dc=Sr,pc=Y,yc=A,gc=Fi,mc=Ui,bc=gh,wc=L,xc=Du,Mc=bt,kc=function(t,r,i,e,n,s){var a=i+t.length,o=e.length,h=hc;return void 0!==n&&(n=ic(n),h=oc),sc(s,h,(function(s,h){var u;switch(nc(h,0)){case"$":return"$";case"&":return t;case"`":return ac(r,0,i);case"'":return ac(r,a);case"<":u=n[ac(h,1,-1)];break;default:var c=+h;if(0===c)return s;if(c>o){var f=ec(c/10);return 0===f?s:f<=o?void 0===e[f-1]?nc(h,1):e[f-1]+nc(h,1):s}u=e[c-1]}return void 0===u?"":u}))},Sc=Gu,Nc=Wt("replace"),jc=Math.max,Pc=Math.min,Oc=fc([].concat),Ec=fc([].push),Tc=fc("".indexOf),Cc=fc("".slice),Ac="$0"==="a".replace(/./,"$0"),Rc=!!/./[Nc]&&""===/./[Nc]("a","$0");lc("replace",(function(t,r,i){var e=Rc?"$":"$0";return[function(t,i){var e=wc(this),n=yc(t)?void 0:Mc(t,Nc);return n?cc(n,t,e,i):cc(r,bc(e),t,i)},function(t,n){var s=dc(this),a=bc(t);if("string"==typeof n&&-1===Tc(n,e)&&-1===Tc(n,"$<")){var o=i(r,s,a,n);if(o.done)return o.value}var h=pc(n);h||(n=bc(n));var u=s.global;if(u){var c=s.unicode;s.lastIndex=0}for(var f=[];;){var l=Sc(s,a);if(null===l)break;if(Ec(f,l),!u)break;""===bc(l[0])&&(s.lastIndex=xc(a,mc(s.lastIndex),c))}for(var v,d="",p=0,y=0;y<f.length;y++){for(var g=bc((l=f[y])[0]),m=jc(Pc(gc(l.index),a.length),0),b=[],w=1;w<l.length;w++)Ec(b,void 0===(v=l[w])?v:String(v));var x=l.groups;if(h){var M=Oc([g],b,m,a);void 0!==x&&Ec(M,x);var k=bc(uc(n,void 0,M))}else k=kc(g,a,m,b,x,n);m>=p&&(d+=Cc(a,p,m)+k,p=m+g.length)}return d+Cc(a,p)}]}),!!vc((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Ac||Rc);var Bc,Lc=G,$c=j,Ic=Wt("match"),Dc=function(t){var r;return Lc(t)&&(void 0!==(r=t[Ic])?!!r:"RegExp"==$c(t))},Fc=Dc,zc=TypeError,_c=function(t){if(Fc(t))throw zc("The method doesn't accept regular expressions");return t},Yc=Wt("match"),Xc=function(t){var r=/./;try{"/./"[t](r)}catch(i){try{return r[Yc]=!1,"/./"[t](r)}catch(t){}}return!1},qc=$e,Gc=zn,Uc=s.f,Vc=Ui,Hc=gh,Wc=_c,Qc=L,Zc=Xc,Kc=Gc("".startsWith),Jc=Gc("".slice),tf=Math.min,rf=Zc("startsWith");qc({target:"String",proto:!0,forced:!(!rf&&(Bc=Uc(String.prototype,"startsWith"),Bc&&!Bc.writable)||rf)},{startsWith:function(t){var r=Hc(Qc(this));Wc(t);var i=Vc(tf(arguments.length>1?arguments[1]:void 0,r.length)),e=Hc(t);return Kc?Kc(r,e,i):Jc(r,i,i+e.length)===e}});var ef=Wh,nf=br.f,sf=Wt("unscopables"),af=Array.prototype;null==af[sf]&&nf(af,sf,{configurable:!0,value:ef(null)});var of,hf,uf,cf=!a((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),ff=$t,lf=Y,vf=Rt,df=cf,pf=ti("IE_PROTO"),yf=Object,gf=yf.prototype,mf=df?yf.getPrototypeOf:function(t){var r=vf(t);if(ff(r,pf))return r[pf];var i=r.constructor;return lf(i)&&r instanceof i?i.prototype:r instanceof yf?gf:null},bf=a,wf=Y,xf=G,Mf=mf,kf=Ri,Sf=Wt("iterator"),Nf=!1;[].keys&&("next"in(uf=[].keys())?(hf=Mf(Mf(uf)))!==Object.prototype&&(of=hf):Nf=!0);var jf=!xf(of)||bf((function(){var t={};return of[Sf].call(t)!==t}));jf&&(of={}),wf(of[Sf])||kf(of,Sf,(function(){return this}));var Pf={IteratorPrototype:of,BUGGY_SAFARI_ITERATORS:Nf},Of=Pf.IteratorPrototype,Ef=Wh,Tf=g,Cf=Ve,Af=ho,Rf=function(){return this},Bf=$e,Lf=c,$f=Y,If=mf,Df=Xe,Ff=Ve,zf=$r,_f=Ri,Yf=ho,Xf=Yr.PROPER,qf=Yr.CONFIGURABLE,Gf=Pf.IteratorPrototype,Uf=Pf.BUGGY_SAFARI_ITERATORS,Vf=Wt("iterator"),Hf="keys",Wf="values",Qf="entries",Zf=function(){return this},Kf=D,Jf=function(t){af[sf][t]=!0},tl=ho,rl=br.f,il=function(t,r){return{value:t,done:r}},el=o,nl="Array Iterator",sl=fi.set,al=fi.getterFor(nl),ol=function(t,r,i,e,n,s,a){!function(t,r,i,e){var n=r+" Iterator";t.prototype=Ef(Of,{next:Tf(+!e,i)}),Cf(t,n,!1),Af[n]=Rf}(i,r,e);var o,h,u,c=function(t){if(t===n&&p)return p;if(!Uf&&t in v)return v[t];switch(t){case Hf:case Wf:case Qf:return function(){return new i(this,t)}}return function(){return new i(this)}},f=r+" Iterator",l=!1,v=t.prototype,d=v[Vf]||v["@@iterator"]||n&&v[n],p=!Uf&&d||c(n),y="Array"==r&&v.entries||d;if(y&&(o=If(y.call(new t)))!==Object.prototype&&o.next&&(If(o)!==Gf&&(Df?Df(o,Gf):$f(o[Vf])||_f(o,Vf,Zf)),Ff(o,f,!0)),Xf&&n==Wf&&d&&d.name!==Wf&&(qf?zf(v,"name",Wf):(l=!0,p=function(){return Lf(d,this)})),n)if(h={values:c(Wf),keys:s?p:c(Hf),entries:c(Qf)},a)for(u in h)(Uf||l||!(u in v))&&_f(v,u,h[u]);else Bf({target:r,proto:!0,forced:Uf||l},h);return v[Vf]!==p&&_f(v,Vf,p,{name:n}),Yf[r]=p,h}(Array,"Array",(function(t,r){sl(this,{type:nl,target:Kf(t),index:0,kind:r})}),(function(){var t=al(this),r=t.target,i=t.kind,e=t.index++;return!r||e>=r.length?(t.target=void 0,il(void 0,!0)):il("keys"==i?e:"values"==i?r[e]:[e,r[e]],!1)}),"values"),hl=tl.Arguments=tl.Array;if(Jf("keys"),Jf("values"),Jf("entries"),el&&"values"!==hl.name)try{rl(hl,"name",{value:"values"})}catch(t){}var ul=hr("span").classList,cl=ul&&ul.constructor&&ul.constructor.prototype,fl=n,ll={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},vl=cl===Object.prototype?void 0:cl,dl=ol,pl=$r,yl=Wt,gl=yl("iterator"),ml=yl("toStringTag"),bl=dl.values,wl=function(t,r){if(t){if(t[gl]!==bl)try{pl(t,gl,bl)}catch(r){t[gl]=bl}if(t[ml]||pl(t,ml,r),ll[r])for(var i in dl)if(t[i]!==dl[i])try{pl(t,i,dl[i])}catch(r){t[i]=dl[i]}}};for(var xl in ll)wl(fl[xl]&&fl[xl].prototype,xl);wl(vl,"DOMTokenList");var Ml={exports:{}},kl={exports:{}},Sl={exports:{}};!function(t){var r=i.exports.default;t.exports=function(t,i){if("object"!==r(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!==r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(Sl),function(t){var r=i.exports.default,e=Sl.exports;t.exports=function(t){var i=e(t,"string");return"symbol"===r(i)?i:String(i)},t.exports.__esModule=!0,t.exports.default=t.exports}(kl),function(t){var r=kl.exports;t.exports=function(t,i,e){return(i=r(i))in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t},t.exports.__esModule=!0,t.exports.default=t.exports}(Ml);const Nl=r(Ml.exports);var jl=yt,Pl=Rt,Ol=C,El=Hi,Tl=TypeError,Cl=function(t){return function(r,i,e,n){jl(i);var s=Pl(r),a=Ol(s),o=El(s),h=t?o-1:0,u=t?-1:1;if(e<2)for(;;){if(h in a){n=a[h],h+=u;break}if(h+=u,t?h<0:o<=h)throw Tl("Reduce of empty array with no initial value")}for(;t?h>=0:o>h;h+=u)h in a&&(n=i(n,a[h],h,s));return n}},Al={left:Cl(!1),right:Cl(!0)},Rl=a,Bl=function(t,r){var i=[][t];return!!i&&Rl((function(){i.call(null,r||function(){return 1},1)}))},Ll=Al.left;$e({target:"Array",proto:!0,forced:!Ie&&it>79&&it<83||!Bl("reduce")},{reduce:function(t){var r=arguments.length;return Ll(this,t,r,r>1?arguments[1]:void 0)}});var $l=$e,Il=zn,Dl=s.f,Fl=Ui,zl=gh,_l=_c,Yl=L,Xl=Xc,ql=Il("".endsWith),Gl=Il("".slice),Ul=Math.min,Vl=Xl("endsWith"),Hl=!Vl&&!!function(){var t=Dl(String.prototype,"endsWith");return t&&!t.writable}();$l({target:"String",proto:!0,forced:!Hl&&!Vl},{endsWith:function(t){var r=zl(Yl(this));_l(t);var i=arguments.length>1?arguments[1]:void 0,e=r.length,n=void 0===i?e:Ul(Fl(i),e),s=zl(t);return ql?ql(r,s,n):Gl(r,n-s.length,n)===s}});var Wl=nr,Ql=br,Zl=g,Kl=Xi,Jl=Hi,tv=Array,rv=Math.max,iv=In,ev=c,nv=M,sv=Ou,av=Sr,ov=A,hv=Dc,uv=L,cv=Rn,fv=Du,lv=Ui,vv=gh,dv=bt,pv=function(t,r,i){for(var e=Jl(t),n=Kl(r,e),s=Kl(void 0===i?e:i,e),a=tv(rv(s-n,0)),o=0;n<s;n++,o++)h=a,u=t[n],c=void 0,(c=Wl(o))in h?Ql.f(h,c,Zl(0,u)):h[c]=u;var h,u,c;return a.length=o,a},yv=Gu,gv=bu,mv=a,bv=Sh.UNSUPPORTED_Y,wv=4294967295,xv=Math.min,Mv=[].push,kv=nv(/./.exec),Sv=nv(Mv),Nv=nv("".slice);sv("split",(function(t,r,i){var e;return e="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,i){var e=vv(uv(this)),n=void 0===i?wv:i>>>0;if(0===n)return[];if(void 0===t)return[e];if(!hv(t))return ev(r,e,t,n);for(var s,a,o,h=[],u=0,c=new RegExp(t.source,(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":"")+"g");(s=ev(gv,c,e))&&!((a=c.lastIndex)>u&&(Sv(h,Nv(e,u,s.index)),s.length>1&&s.index<e.length&&iv(Mv,h,pv(s,1)),o=s[0].length,u=a,h.length>=n));)c.lastIndex===s.index&&c.lastIndex++;return u===e.length?!o&&kv(c,"")||Sv(h,""):Sv(h,Nv(e,u)),h.length>n?pv(h,0,n):h}:"0".split(void 0,0).length?function(t,i){return void 0===t&&0===i?[]:ev(r,this,t,i)}:r,[function(r,i){var n=uv(this),s=ov(r)?void 0:dv(r,t);return s?ev(s,r,n,i):ev(e,vv(n),r,i)},function(t,n){var s=av(this),a=vv(t),o=i(e,s,a,n,e!==r);if(o.done)return o.value;var h=cv(s,RegExp),u=s.unicode,c=new h(bv?"^(?:"+s.source+")":s,(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(bv?"g":"y")),f=void 0===n?wv:n>>>0;if(0===f)return[];if(0===a.length)return null===yv(c,a)?[a]:[];for(var l=0,v=0,d=[];v<a.length;){c.lastIndex=bv?0:v;var p,y=yv(c,bv?Nv(a,v):a);if(null===y||(p=xv(lv(c.lastIndex+(bv?v:0)),a.length))===l)v=fv(a,v,u);else{if(Sv(d,Nv(a,l,v)),d.length===f)return d;for(var g=1;g<=y.length-1;g++)if(Sv(d,y[g]),d.length===f)return d;v=l=p}}return Sv(d,Nv(a,l)),d}]}),!!mv((function(){var t=/(?:)/,r=t.exec;t.exec=function(){return r.apply(this,arguments)};var i="ab".split(t);return 2!==i.length||"a"!==i[0]||"b"!==i[1]})),bv);var jv={exports:{}},Pv={exports:{}};(function(){var t,r,i,e,n,s;"undefined"!=typeof performance&&null!==performance&&performance.now?Pv.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(Pv.exports=function(){return(t()-n)/1e6},r=process.hrtime,e=(t=function(){var t;return 1e9*(t=r())[0]+t[1]})(),s=1e9*process.uptime(),n=e-s):Date.now?(Pv.exports=function(){return Date.now()-i},i=Date.now()):(Pv.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(t);for(var Ov=Pv.exports,Ev="undefined"==typeof window?t:window,Tv=["moz","webkit"],Cv="AnimationFrame",Av=Ev["request"+Cv],Rv=Ev["cancel"+Cv]||Ev["cancelRequest"+Cv],Bv=0;!Av&&Bv<Tv.length;Bv++)Av=Ev[Tv[Bv]+"Request"+Cv],Rv=Ev[Tv[Bv]+"Cancel"+Cv]||Ev[Tv[Bv]+"CancelRequest"+Cv];if(!Av||!Rv){var Lv=0,$v=0,Iv=[],Dv=1e3/60;Av=function(t){if(0===Iv.length){var r=Ov(),i=Math.max(0,Dv-(r-Lv));Lv=i+r,setTimeout((function(){var t=Iv.slice(0);Iv.length=0;for(var r=0;r<t.length;r++)if(!t[r].cancelled)try{t[r].callback(Lv)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(i))}return Iv.push({handle:++$v,callback:t,cancelled:!1}),$v},Rv=function(t){for(var r=0;r<Iv.length;r++)Iv[r].handle===t&&(Iv[r].cancelled=!0)}}jv.exports=function(t){return Av.call(Ev,t)},jv.exports.cancel=function(){Rv.apply(Ev,arguments)},jv.exports.polyfill=function(t){t||(t=Ev),t.requestAnimationFrame=Av,t.cancelAnimationFrame=Rv};const Fv=jv.exports;var zv,_v="\t\n\v\f\r                 \u2028\u2029\ufeff",Yv=L,Xv=gh,qv=_v,Gv=M("".replace),Uv="["+qv+"]",Vv=RegExp("^"+Uv+Uv+"*"),Hv=RegExp(Uv+Uv+"*$"),Wv=function(t){return function(r){var i=Xv(Yv(r));return 1&t&&(i=Gv(i,Vv,"")),2&t&&(i=Gv(i,Hv,"")),i}},Qv={start:Wv(1),end:Wv(2),trim:Wv(3)},Zv=Yr.PROPER,Kv=_v,Jv=Qv.trim;$e({target:"String",proto:!0,forced:(zv="trim",a((function(){return!!Kv[zv]()||"​…᠎"!=="​…᠎"[zv]()||Zv&&Kv[zv].name!==zv})))},{trim:function(){return Jv(this)}});var td=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var r={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=r[t]||t;for(var i=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],e=0;e<i.length;e++){var n=i[e].process,s=i[e].re.exec(t);if(s){var a=n(s);this.r=a[0],this.g=a[1],this.b=a[2],a.length>3&&(this.alpha=a[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),r=this.g.toString(16),i=this.b.toString(16);return 1==t.length&&(t="0"+t),1==r.length&&(r="0"+r),1==i.length&&(i="0"+i),"#"+t+r+i},this.getHelpXML=function(){for(var t=new Array,e=0;e<i.length;e++)for(var n=i[e].example,s=0;s<n.length;s++)t[t.length]=n[s];for(var a in r)t[t.length]=a;var o=document.createElement("ul");for(o.setAttribute("id","rgbcolor-examples"),e=0;e<t.length;e++)try{var h=document.createElement("li"),u=new RGBColor(t[e]),c=document.createElement("div");c.style.cssText="margin: 3px; border: 1px solid black; background:"+u.toHex()+"; color:"+u.toHex(),c.appendChild(document.createTextNode("test"));var f=document.createTextNode(" "+t[e]+" -> "+u.toRGB()+" -> "+u.toHex());h.appendChild(c),h.appendChild(f),o.appendChild(h)}catch(t){}return o}},rd=$e,id=Ji.indexOf,ed=Bl,nd=zn([].indexOf),sd=!!nd&&1/nd([1],1,-0)<0;rd({target:"Array",proto:!0,forced:sd||!ed("indexOf")},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return sd?nd(this,t,r)||0:id(this,t,r)}});var ad=$e,od=_c,hd=L,ud=gh,cd=Xc,fd=M("".indexOf);ad({target:"String",proto:!0,forced:!cd("includes")},{includes:function(t){return!!~fd(ud(hd(this)),ud(od(t)),arguments.length>1?arguments[1]:void 0)}});var ld=j,vd=$e,dd=Array.isArray||function(t){return"Array"==ld(t)},pd=M([].reverse),yd=[1,2];vd({target:"Array",proto:!0,forced:String(yd)===String(yd.reverse())},{reverse:function(){return dd(this)&&(this.length=this.length),pd(this)}});
6
+ import{a as t,g as r}from"./p-82e085d0.js";import{_ as i}from"./p-37fc92db.js";import"./p-6d753a3d.js";import"./p-896c9644.js";import"./p-583e5dd0.js";import"./p-c1cf3ebc.js";import"./p-334e6394.js";import"./p-a230b270.js";import"./p-530b73ce.js";var e=function(t){return t&&t.Math==Math&&t},n=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||function(){return this}()||Function("return this")(),s={},a=function(t){try{return!!t()}catch(t){return!0}},o=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),h=!a((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),u=Function.prototype.call,c=h?u.bind(u):function(){return u.apply(u,arguments)},f={},l={}.propertyIsEnumerable,v=Object.getOwnPropertyDescriptor,d=v&&!l.call({1:2},1);f.f=d?function(t){var r=v(this,t);return!!r&&r.enumerable}:l;var p,y,g=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},m=h,b=Function.prototype,w=b.call,x=m&&b.bind.bind(w,w),M=m?x:function(t){return function(){return w.apply(t,arguments)}},k=M,S=k({}.toString),N=k("".slice),j=function(t){return N(S(t),8,-1)},P=a,O=j,E=Object,T=M("".split),C=P((function(){return!E("z").propertyIsEnumerable(0)}))?function(t){return"String"==O(t)?T(t,""):E(t)}:E,A=function(t){return null==t},R=A,B=TypeError,L=function(t){if(R(t))throw B("Can't call method on "+t);return t},$=C,I=L,D=function(t){return $(I(t))},F="object"==typeof document&&document.all,z={all:F,IS_HTMLDDA:void 0===F&&void 0!==F},_=z.all,Y=z.IS_HTMLDDA?function(t){return"function"==typeof t||t===_}:function(t){return"function"==typeof t},X=Y,q=z.all,G=z.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:X(t)||t===q}:function(t){return"object"==typeof t?null!==t:X(t)},U=n,V=Y,H=function(t,r){return arguments.length<2?V(i=U[t])?i:void 0:U[t]&&U[t][r];var i},W=M({}.isPrototypeOf),Q="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Z=Q,K=n.process,J=n.Deno,tt=K&&K.versions||J&&J.version,rt=tt&&tt.v8;rt&&(y=(p=rt.split("."))[0]>0&&p[0]<4?1:+(p[0]+p[1])),!y&&Z&&(!(p=Z.match(/Edge\/(\d+)/))||p[1]>=74)&&(p=Z.match(/Chrome\/(\d+)/))&&(y=+p[1]);var it=y,et=it,nt=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&et&&et<41})),st=nt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,at=H,ot=Y,ht=W,ut=Object,ct=st?function(t){return"symbol"==typeof t}:function(t){var r=at("Symbol");return ot(r)&&ht(r.prototype,ut(t))},ft=String,lt=function(t){try{return ft(t)}catch(t){return"Object"}},vt=Y,dt=lt,pt=TypeError,yt=function(t){if(vt(t))return t;throw pt(dt(t)+" is not a function")},gt=yt,mt=A,bt=function(t,r){var i=t[r];return mt(i)?void 0:gt(i)},wt=c,xt=Y,Mt=G,kt=TypeError,St={exports:{}},Nt=n,jt=Object.defineProperty,Pt=function(t,r){try{jt(Nt,t,{value:r,configurable:!0,writable:!0})}catch(i){Nt[t]=r}return r},Ot="__core-js_shared__",Et=n[Ot]||Pt(Ot,{}),Tt=Et;(St.exports=function(t,r){return Tt[t]||(Tt[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.27.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Ct=L,At=Object,Rt=function(t){return At(Ct(t))},Bt=Rt,Lt=M({}.hasOwnProperty),$t=Object.hasOwn||function(t,r){return Lt(Bt(t),r)},It=M,Dt=0,Ft=Math.random(),zt=It(1..toString),_t=function(t){return"Symbol("+(void 0===t?"":t)+")_"+zt(++Dt+Ft,36)},Yt=$t,Xt=_t,qt=nt,Gt=st,Ut=n.Symbol,Vt=(0,St.exports)("wks"),Ht=Gt?Ut.for||Ut:Ut&&Ut.withoutSetter||Xt,Wt=function(t){return Yt(Vt,t)||(Vt[t]=qt&&Yt(Ut,t)?Ut[t]:Ht("Symbol."+t)),Vt[t]},Qt=c,Zt=G,Kt=ct,Jt=bt,tr=TypeError,rr=Wt("toPrimitive"),ir=function(t,r){if(!Zt(t)||Kt(t))return t;var i,e=Jt(t,rr);if(e){if(void 0===r&&(r="default"),i=Qt(e,t,r),!Zt(i)||Kt(i))return i;throw tr("Can't convert object to primitive value")}return void 0===r&&(r="number"),function(t,r){var i,e;if("string"===r&&xt(i=t.toString)&&!Mt(e=wt(i,t)))return e;if(xt(i=t.valueOf)&&!Mt(e=wt(i,t)))return e;if("string"!==r&&xt(i=t.toString)&&!Mt(e=wt(i,t)))return e;throw kt("Can't convert object to primitive value")}(t,r)},er=ct,nr=function(t){var r=ir(t,"string");return er(r)?r:r+""},sr=G,ar=n.document,or=sr(ar)&&sr(ar.createElement),hr=function(t){return or?ar.createElement(t):{}},ur=hr,cr=!o&&!a((function(){return 7!=Object.defineProperty(ur("div"),"a",{get:function(){return 7}}).a})),fr=c,lr=f,vr=g,dr=D,pr=nr,yr=$t,gr=cr,mr=Object.getOwnPropertyDescriptor;s.f=o?mr:function(t,r){if(t=dr(t),r=pr(r),gr)try{return mr(t,r)}catch(t){}if(yr(t,r))return vr(!fr(lr.f,t,r),t[r])};var br={},wr=o&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),xr=G,Mr=String,kr=TypeError,Sr=function(t){if(xr(t))return t;throw kr(Mr(t)+" is not an object")},Nr=cr,jr=Sr,Pr=nr,Or=TypeError,Er=Object.defineProperty,Tr=Object.getOwnPropertyDescriptor,Cr="enumerable",Ar="configurable",Rr="writable";br.f=o?wr?function(t,r,i){if(jr(t),r=Pr(r),jr(i),"function"==typeof t&&"prototype"===r&&"value"in i&&Rr in i&&!i[Rr]){var e=Tr(t,r);e&&e[Rr]&&(t[r]=i.value,i={configurable:Ar in i?i[Ar]:e[Ar],enumerable:Cr in i?i[Cr]:e[Cr],writable:!1})}return Er(t,r,i)}:Er:function(t,r,i){if(jr(t),r=Pr(r),jr(i),Nr)try{return Er(t,r,i)}catch(t){}if("get"in i||"set"in i)throw Or("Accessors not supported");return"value"in i&&(t[r]=i.value),t};var Br=br,Lr=g,$r=o?function(t,r,i){return Br.f(t,r,Lr(1,i))}:function(t,r,i){return t[r]=i,t},Ir={exports:{}},Dr=o,Fr=Function.prototype,zr=Dr&&Object.getOwnPropertyDescriptor,_r=$t(Fr,"name"),Yr={EXISTS:_r,PROPER:_r&&"something"===function(){}.name,CONFIGURABLE:_r&&(!Dr||Dr&&zr(Fr,"name").configurable)},Xr=Y,qr=Et,Gr=M(Function.toString);Xr(qr.inspectSource)||(qr.inspectSource=function(t){return Gr(t)});var Ur,Vr,Hr,Wr=qr.inspectSource,Qr=n.WeakMap,Zr=Y(Qr)&&/native code/.test(String(Qr)),Kr=_t,Jr=(0,St.exports)("keys"),ti=function(t){return Jr[t]||(Jr[t]=Kr(t))},ri={},ii=G,ei=$r,ni=$t,si=ti,ai=ri,oi="Object already initialized",hi=n.TypeError;if(Zr||Et.state){var ui=Et.state||(Et.state=new(0,n.WeakMap));ui.get=ui.get,ui.has=ui.has,ui.set=ui.set,Ur=function(t,r){if(ui.has(t))throw hi(oi);return r.facade=t,ui.set(t,r),r},Vr=function(t){return ui.get(t)||{}},Hr=function(t){return ui.has(t)}}else{var ci=si("state");ai[ci]=!0,Ur=function(t,r){if(ni(t,ci))throw hi(oi);return r.facade=t,ei(t,ci,r),r},Vr=function(t){return ni(t,ci)?t[ci]:{}},Hr=function(t){return ni(t,ci)}}var fi={set:Ur,get:Vr,has:Hr,enforce:function(t){return Hr(t)?Vr(t):Ur(t,{})},getterFor:function(t){return function(r){var i;if(!ii(r)||(i=Vr(r)).type!==t)throw hi("Incompatible receiver, "+t+" required");return i}}},li=M,vi=a,di=Y,pi=$t,yi=o,gi=Yr.CONFIGURABLE,mi=Wr,bi=fi.enforce,wi=fi.get,xi=String,Mi=Object.defineProperty,ki=li("".slice),Si=li("".replace),Ni=li([].join),ji=yi&&!vi((function(){return 8!==Mi((function(){}),"length",{value:8}).length})),Pi=String(String).split("String"),Oi=Ir.exports=function(t,r,i){"Symbol("===ki(xi(r),0,7)&&(r="["+Si(xi(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),i&&i.getter&&(r="get "+r),i&&i.setter&&(r="set "+r),(!pi(t,"name")||gi&&t.name!==r)&&(yi?Mi(t,"name",{value:r,configurable:!0}):t.name=r),ji&&i&&pi(i,"arity")&&t.length!==i.arity&&Mi(t,"length",{value:i.arity});try{i&&pi(i,"constructor")&&i.constructor?yi&&Mi(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var e=bi(t);return pi(e,"source")||(e.source=Ni(Pi,"string"==typeof r?r:"")),t};Function.prototype.toString=Oi((function(){return di(this)&&wi(this).source||mi(this)}),"toString");var Ei=Y,Ti=br,Ci=Ir.exports,Ai=Pt,Ri=function(t,r,i,e){e||(e={});var n=e.enumerable,s=void 0!==e.name?e.name:r;if(Ei(i)&&Ci(i,s,e),e.global)n?t[r]=i:Ai(r,i);else{try{e.unsafe?t[r]&&(n=!0):delete t[r]}catch(t){}n?t[r]=i:Ti.f(t,r,{value:i,enumerable:!1,configurable:!e.nonConfigurable,writable:!e.nonWritable})}return t},Bi={},Li=Math.ceil,$i=Math.floor,Ii=Math.trunc||function(t){var r=+t;return(r>0?$i:Li)(r)},Di=Ii,Fi=function(t){var r=+t;return r!=r||0===r?0:Di(r)},zi=Fi,_i=Math.max,Yi=Math.min,Xi=function(t,r){var i=zi(t);return i<0?_i(i+r,0):Yi(i,r)},qi=Fi,Gi=Math.min,Ui=function(t){return t>0?Gi(qi(t),9007199254740991):0},Vi=Ui,Hi=function(t){return Vi(t.length)},Wi=D,Qi=Xi,Zi=Hi,Ki=function(t){return function(r,i,e){var n,s=Wi(r),a=Zi(s),o=Qi(e,a);if(t&&i!=i){for(;a>o;)if((n=s[o++])!=n)return!0}else for(;a>o;o++)if((t||o in s)&&s[o]===i)return t||o||0;return!t&&-1}},Ji={includes:Ki(!0),indexOf:Ki(!1)},te=$t,re=D,ie=Ji.indexOf,ee=ri,ne=M([].push),se=function(t,r){var i,e=re(t),n=0,s=[];for(i in e)!te(ee,i)&&te(e,i)&&ne(s,i);for(;r.length>n;)te(e,i=r[n++])&&(~ie(s,i)||ne(s,i));return s},ae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],oe=se,he=ae.concat("length","prototype");Bi.f=Object.getOwnPropertyNames||function(t){return oe(t,he)};var ue={};ue.f=Object.getOwnPropertySymbols;var ce=H,fe=Bi,le=ue,ve=Sr,de=M([].concat),pe=ce("Reflect","ownKeys")||function(t){var r=fe.f(ve(t)),i=le.f;return i?de(r,i(t)):r},ye=$t,ge=pe,me=s,be=br,we=a,xe=Y,Me=/#|\.prototype\./,ke=function(t,r){var i=Ne[Se(t)];return i==Pe||i!=je&&(xe(r)?we(r):!!r)},Se=ke.normalize=function(t){return String(t).replace(Me,".").toLowerCase()},Ne=ke.data={},je=ke.NATIVE="N",Pe=ke.POLYFILL="P",Oe=ke,Ee=n,Te=s.f,Ce=$r,Ae=Ri,Re=Pt,Be=function(t,r,i){for(var e=ge(r),n=be.f,s=me.f,a=0;a<e.length;a++){var o=e[a];ye(t,o)||i&&ye(i,o)||n(t,o,s(r,o))}},Le=Oe,$e=function(t,r){var i,e,n,s,a,o=t.target,h=t.global,u=t.stat;if(i=h?Ee:u?Ee[o]||Re(o,{}):(Ee[o]||{}).prototype)for(e in r){if(s=r[e],n=t.dontCallGetSet?(a=Te(i,e))&&a.value:i[e],!Le(h?e:o+(u?".":"#")+e,t.forced)&&void 0!==n){if(typeof s==typeof n)continue;Be(s,n)}(t.sham||n&&n.sham)&&Ce(s,"sham",!0),Ae(i,e,s,t)}},Ie="undefined"!=typeof process&&"process"==j(process),De=Y,Fe=String,ze=TypeError,_e=M,Ye=Sr,Xe=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,i={};try{(t=_e(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(i,[]),r=i instanceof Array}catch(t){}return function(i,e){return Ye(i),function(t){if("object"==typeof t||De(t))return t;throw ze("Can't set "+Fe(t)+" as a prototype")}(e),r?t(i,e):i.__proto__=e,i}}():void 0),qe=br.f,Ge=$t,Ue=Wt("toStringTag"),Ve=function(t,r,i){t&&!i&&(t=t.prototype),t&&!Ge(t,Ue)&&qe(t,Ue,{configurable:!0,value:r})},He=H,We=br,Qe=o,Ze=Wt("species"),Ke=W,Je=TypeError,tn={};tn[Wt("toStringTag")]="z";var rn="[object z]"===String(tn),en=Y,nn=j,sn=Wt("toStringTag"),an=Object,on="Arguments"==nn(function(){return arguments}()),hn=rn?nn:function(t){var r,i,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,r){try{return t[r]}catch(t){}}(r=an(t),sn))?i:on?nn(r):"Object"==(e=nn(r))&&en(r.callee)?"Arguments":e},un=M,cn=a,fn=Y,ln=hn,vn=Wr,dn=function(){},pn=[],yn=H("Reflect","construct"),gn=/^\s*(?:class|function)\b/,mn=un(gn.exec),bn=!gn.exec(dn),wn=function(t){if(!fn(t))return!1;try{return yn(dn,pn,t),!0}catch(t){return!1}},xn=function(t){if(!fn(t))return!1;switch(ln(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return bn||!!mn(gn,vn(t))}catch(t){return!0}};xn.sham=!0;var Mn,kn,Sn,Nn,jn=!yn||cn((function(){var t;return wn(wn.call)||!wn(Object)||!wn((function(){t=!0}))||t}))?xn:wn,Pn=jn,On=lt,En=TypeError,Tn=Sr,Cn=A,An=Wt("species"),Rn=function(t,r){var i,e=Tn(t).constructor;return void 0===e||Cn(i=Tn(e)[An])?r:function(t){if(Pn(t))return t;throw En(On(t)+" is not a constructor")}(i)},Bn=Function.prototype,Ln=Bn.apply,$n=Bn.call,In="object"==typeof Reflect&&Reflect.apply||(h?$n.bind(Ln):function(){return $n.apply(Ln,arguments)}),Dn=j,Fn=M,zn=function(t){if("Function"===Dn(t))return Fn(t)},_n=yt,Yn=h,Xn=zn(zn.bind),qn=function(t,r){return _n(t),void 0===r?t:Yn?Xn(t,r):function(){return t.apply(r,arguments)}},Gn=H("document","documentElement"),Un=M([].slice),Vn=TypeError,Hn=/(?:ipad|iphone|ipod).*applewebkit/i.test(Q),Wn=n,Qn=In,Zn=qn,Kn=Y,Jn=$t,ts=a,rs=Gn,is=Un,es=hr,ns=Hn,ss=Ie,as=Wn.setImmediate,os=Wn.clearImmediate,hs=Wn.process,us=Wn.Dispatch,cs=Wn.Function,fs=Wn.MessageChannel,ls=Wn.String,vs=0,ds={},ps="onreadystatechange";ts((function(){Mn=Wn.location}));var ys=function(t){if(Jn(ds,t)){var r=ds[t];delete ds[t],r()}},gs=function(t){return function(){ys(t)}},ms=function(t){ys(t.data)},bs=function(t){Wn.postMessage(ls(t),Mn.protocol+"//"+Mn.host)};as&&os||(as=function(t){!function(t,r){if(t<r)throw Vn("Not enough arguments")}(arguments.length,1);var r=Kn(t)?t:cs(t),i=is(arguments,1);return ds[++vs]=function(){Qn(r,void 0,i)},kn(vs),vs},os=function(t){delete ds[t]},ss?kn=function(t){hs.nextTick(gs(t))}:us&&us.now?kn=function(t){us.now(gs(t))}:fs&&!ns?(Nn=(Sn=new fs).port2,Sn.port1.onmessage=ms,kn=Zn(Nn.postMessage,Nn)):Wn.addEventListener&&Kn(Wn.postMessage)&&!Wn.importScripts&&Mn&&"file:"!==Mn.protocol&&!ts(bs)?(kn=bs,Wn.addEventListener("message",ms,!1)):kn=ps in es("script")?function(t){rs.appendChild(es("script"))[ps]=function(){rs.removeChild(this),ys(t)}}:function(t){setTimeout(gs(t),0)});var ws={set:as,clear:os},xs=function(){this.head=null,this.tail=null};xs.prototype={add:function(t){var r={item:t,next:null},i=this.tail;i?i.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Ms,ks,Ss,Ns,js,Ps=xs,Os=/ipad|iphone|ipod/i.test(Q)&&"undefined"!=typeof Pebble,Es=/web0s(?!.*chrome)/i.test(Q),Ts=n,Cs=qn,As=ws.set,Rs=Ps,Bs=Hn,Ls=Os,$s=Es,Is=Ie,Ds=Ts.MutationObserver||Ts.WebKitMutationObserver,Fs=Ts.document,zs=Ts.process,_s=Ts.Promise,Ys=(0,s.f)(Ts,"queueMicrotask"),Xs=Ys&&Ys.value;if(!Xs){var qs=new Rs,Gs=function(){var t,r;for(Is&&(t=zs.domain)&&t.exit();r=qs.get();)try{r()}catch(t){throw qs.head&&Ms(),t}t&&t.enter()};Bs||Is||$s||!Ds||!Fs?!Ls&&_s&&_s.resolve?((Ns=_s.resolve(void 0)).constructor=_s,js=Cs(Ns.then,Ns),Ms=function(){js(Gs)}):Is?Ms=function(){zs.nextTick(Gs)}:(As=Cs(As,Ts),Ms=function(){As(Gs)}):(ks=!0,Ss=Fs.createTextNode(""),new Ds(Gs).observe(Ss,{characterData:!0}),Ms=function(){Ss.data=ks=!ks}),Xs=function(t){qs.head||Ms(),qs.add(t)}}var Us=Xs,Vs=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Hs=n.Promise,Ws="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Qs=!Ws&&!Ie&&"object"==typeof window&&"object"==typeof document,Zs=n,Ks=Hs,Js=Y,ta=Oe,ra=Wr,ia=Qs,ea=Ws,na=it,sa=Wt("species"),aa=!1,oa=Js(Zs.PromiseRejectionEvent),ha=ta("Promise",(function(){var t=ra(Ks),r=t!==String(Ks);if(!r&&66===na)return!0;if(!na||na<51||!/native code/.test(t)){var i=new Ks((function(t){t(1)})),e=function(t){t((function(){}),(function(){}))};if((i.constructor={})[sa]=e,!(aa=i.then((function(){}))instanceof e))return!0}return!r&&(ia||ea)&&!oa})),ua={CONSTRUCTOR:ha,REJECTION_EVENT:oa,SUBCLASSING:aa},ca={},fa=yt,la=TypeError,va=function(t){var r,i;this.promise=new t((function(t,e){if(void 0!==r||void 0!==i)throw la("Bad Promise constructor");r=t,i=e})),this.resolve=fa(r),this.reject=fa(i)};ca.f=function(t){return new va(t)};var da,pa,ya,ga,ma=$e,ba=Ie,wa=n,xa=c,Ma=Ri,ka=Xe,Sa=Ve,Na=yt,ja=Y,Pa=G,Oa=Rn,Ea=ws.set,Ta=Us,Ca=Vs,Aa=Ps,Ra=fi,Ba=Hs,La=ca,$a="Promise",Ia=ua.CONSTRUCTOR,Da=ua.REJECTION_EVENT,Fa=ua.SUBCLASSING,za=Ra.getterFor($a),_a=Ra.set,Ya=Ba&&Ba.prototype,Xa=Ba,qa=Ya,Ga=wa.TypeError,Ua=wa.document,Va=wa.process,Ha=La.f,Wa=Ha,Qa=!!(Ua&&Ua.createEvent&&wa.dispatchEvent),Za="unhandledrejection",Ka=function(t){var r;return!(!Pa(t)||!ja(r=t.then))&&r},Ja=function(t,r){var i,e,n,s=r.value,a=1==r.state,o=a?t.ok:t.fail,h=t.resolve,u=t.reject,c=t.domain;try{o?(a||(2===r.rejection&&no(r),r.rejection=1),!0===o?i=s:(c&&c.enter(),i=o(s),c&&(c.exit(),n=!0)),i===t.promise?u(Ga("Promise-chain cycle")):(e=Ka(i))?xa(e,i,h,u):h(i)):u(s)}catch(t){c&&!n&&c.exit(),u(t)}},to=function(t,r){t.notified||(t.notified=!0,Ta((function(){for(var i,e=t.reactions;i=e.get();)Ja(i,t);t.notified=!1,r&&!t.rejection&&io(t)})))},ro=function(t,r,i){var e,n;Qa?((e=Ua.createEvent("Event")).promise=r,e.reason=i,e.initEvent(t,!1,!0),wa.dispatchEvent(e)):e={promise:r,reason:i},!Da&&(n=wa["on"+t])?n(e):t===Za&&function(t,r){try{1==arguments.length?console.error(t):console.error(t,r)}catch(t){}}("Unhandled promise rejection",i)},io=function(t){xa(Ea,wa,(function(){var r,i=t.facade,e=t.value;if(eo(t)&&(r=Ca((function(){ba?Va.emit("unhandledRejection",e,i):ro(Za,i,e)})),t.rejection=ba||eo(t)?2:1,r.error))throw r.value}))},eo=function(t){return 1!==t.rejection&&!t.parent},no=function(t){xa(Ea,wa,(function(){var r=t.facade;ba?Va.emit("rejectionHandled",r):ro("rejectionhandled",r,t.value)}))},so=function(t,r,i){return function(e){t(r,e,i)}},ao=function(t,r,i){t.done||(t.done=!0,i&&(t=i),t.value=r,t.state=2,to(t,!0))},oo=function(t,r,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===r)throw Ga("Promise can't be resolved itself");var e=Ka(r);e?Ta((function(){var i={done:!1};try{xa(e,r,so(oo,i,t),so(ao,i,t))}catch(r){ao(i,r,t)}})):(t.value=r,t.state=1,to(t,!1))}catch(r){ao({done:!1},r,t)}}};if(Ia&&(Xa=function(t){(function(t,r){if(Ke(r,t))return t;throw Je("Incorrect invocation")})(this,qa),Na(t),xa(da,this);var r=za(this);try{t(so(oo,r),so(ao,r))}catch(t){ao(r,t)}},(da=function(){_a(this,{type:$a,done:!1,notified:!1,parent:!1,reactions:new Aa,rejection:!1,state:0,value:void 0})}).prototype=Ma(qa=Xa.prototype,"then",(function(t,r){var i=za(this),e=Ha(Oa(this,Xa));return i.parent=!0,e.ok=!ja(t)||t,e.fail=ja(r)&&r,e.domain=ba?Va.domain:void 0,0==i.state?i.reactions.add(e):Ta((function(){Ja(e,i)})),e.promise})),pa=function(){var t=new da,r=za(t);this.promise=t,this.resolve=so(oo,r),this.reject=so(ao,r)},La.f=Ha=function(t){return t===Xa||void 0===t?new pa(t):Wa(t)},ja(Ba)&&Ya!==Object.prototype)){ya=Ya.then,Fa||Ma(Ya,"then",(function(t,r){var i=this;return new Xa((function(t,r){xa(ya,i,t,r)})).then(t,r)}),{unsafe:!0});try{delete Ya.constructor}catch(t){}ka&&ka(Ya,qa)}ma({global:!0,constructor:!0,wrap:!0,forced:Ia},{Promise:Xa}),Sa(Xa,$a,!1),ga=He($a),Qe&&ga&&!ga[Ze]&&(0,We.f)(ga,Ze,{configurable:!0,get:function(){return this}});var ho={},uo=ho,co=Wt("iterator"),fo=Array.prototype,lo=hn,vo=bt,po=A,yo=ho,go=Wt("iterator"),mo=function(t){if(!po(t))return vo(t,go)||vo(t,"@@iterator")||yo[lo(t)]},bo=c,wo=yt,xo=Sr,Mo=lt,ko=mo,So=TypeError,No=c,jo=Sr,Po=bt,Oo=qn,Eo=c,To=Sr,Co=lt,Ao=Hi,Ro=W,Bo=mo,Lo=function(t,r,i){var e,n;jo(t);try{if(!(e=Po(t,"return"))){if("throw"===r)throw i;return i}e=No(e,t)}catch(t){n=!0,e=t}if("throw"===r)throw i;if(n)throw e;return jo(e),i},$o=TypeError,Io=function(t,r){this.stopped=t,this.result=r},Do=Io.prototype,Fo=function(t,r,i){var e,n,s,a,o,h,u,c,f=!(!i||!i.AS_ENTRIES),l=!(!i||!i.IS_RECORD),v=!(!i||!i.IS_ITERATOR),d=!(!i||!i.INTERRUPTED),p=Oo(r,i&&i.that),y=function(t){return e&&Lo(e,"normal",t),new Io(!0,t)},g=function(t){return f?(To(t),d?p(t[0],t[1],y):p(t[0],t[1])):d?p(t,y):p(t)};if(l)e=t.iterator;else if(v)e=t;else{if(!(n=Bo(t)))throw $o(Co(t)+" is not iterable");if(void 0!==(c=n)&&(uo.Array===c||fo[co]===c)){for(s=0,a=Ao(t);a>s;s++)if((o=g(t[s]))&&Ro(Do,o))return o;return new Io(!1)}e=function(t,r){var i=arguments.length<2?ko(t):r;if(wo(i))return xo(bo(i,t));throw So(Mo(t)+" is not iterable")}(t,n)}for(h=l?t.next:e.next;!(u=Eo(h,e)).done;){try{o=g(u.value)}catch(t){Lo(e,"throw",t)}if("object"==typeof o&&o&&Ro(Do,o))return o}return new Io(!1)},zo=Wt("iterator"),_o=!1;try{var Yo=0,Xo={next:function(){return{done:!!Yo++}},return:function(){_o=!0}};Xo[zo]=function(){return this},Array.from(Xo,(function(){throw 2}))}catch(t){}var qo=Hs,Go=ua.CONSTRUCTOR||!function(t,r){if(!r&&!_o)return!1;var i=!1;try{var e={};e[zo]=function(){return{next:function(){return{done:i=!0}}}},t(e)}catch(t){}return i}((function(t){qo.all(t).then(void 0,(function(){}))})),Uo=c,Vo=yt,Ho=ca,Wo=Vs,Qo=Fo;$e({target:"Promise",stat:!0,forced:Go},{all:function(t){var r=this,i=Ho.f(r),e=i.resolve,n=i.reject,s=Wo((function(){var i=Vo(r.resolve),s=[],a=0,o=1;Qo(t,(function(t){var h=a++,u=!1;o++,Uo(i,r,t).then((function(t){u||(u=!0,s[h]=t,--o||e(s))}),n)})),--o||e(s)}));return s.error&&n(s.value),i.promise}});var Zo=Hs,Ko=H,Jo=Y,th=Ri,rh=Zo&&Zo.prototype;if($e({target:"Promise",proto:!0,forced:ua.CONSTRUCTOR,real:!0},{catch:function(t){return this.then(void 0,t)}}),Jo(Zo)){var ih=Ko("Promise").prototype.catch;rh.catch!==ih&&th(rh,"catch",ih,{unsafe:!0})}var eh=c,nh=yt,sh=ca,ah=Vs,oh=Fo;$e({target:"Promise",stat:!0,forced:Go},{race:function(t){var r=this,i=sh.f(r),e=i.reject,n=ah((function(){var n=nh(r.resolve);oh(t,(function(t){eh(n,r,t).then(i.resolve,e)}))}));return n.error&&e(n.value),i.promise}});var hh=c,uh=ca;$e({target:"Promise",stat:!0,forced:ua.CONSTRUCTOR},{reject:function(t){var r=uh.f(this);return hh(r.reject,void 0,t),r.promise}});var ch=Sr,fh=G,lh=ca;$e({target:"Promise",stat:!0,forced:ua.CONSTRUCTOR},{resolve:function(t){return function(t,r){if(ch(t),fh(r)&&r.constructor===t)return r;var i=lh.f(t);return(0,i.resolve)(r),i.promise}(this,t)}});var vh={exports:{}};!function(t){function r(t,r,i,e,n,s,a){try{var o=t[s](a),h=o.value}catch(t){return void i(t)}o.done?r(h):Promise.resolve(h).then(e,n)}t.exports=function(t){return function(){var i=this,e=arguments;return new Promise((function(n,s){var a=t.apply(i,e);function o(t){r(a,n,s,o,h,"next",t)}function h(t){r(a,n,s,o,h,"throw",t)}o(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports}(vh);const dh=r(vh.exports);var ph=hn,yh=String,gh=function(t){if("Symbol"===ph(t))throw TypeError("Cannot convert a Symbol value to a string");return yh(t)},mh=Sr,bh=function(){var t=mh(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r},wh=a,xh=n.RegExp,Mh=wh((function(){var t=xh("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),kh=Mh||wh((function(){return!xh("a","y").sticky})),Sh={BROKEN_CARET:Mh||wh((function(){var t=xh("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:kh,UNSUPPORTED_Y:Mh},Nh={},jh=se,Ph=ae,Oh=Object.keys||function(t){return jh(t,Ph)},Eh=br,Th=Sr,Ch=D,Ah=Oh;Nh.f=o&&!wr?Object.defineProperties:function(t,r){Th(t);for(var i,e=Ch(r),n=Ah(r),s=n.length,a=0;s>a;)Eh.f(t,i=n[a++],e[i]);return t};var Rh,Bh=Sr,Lh=Nh,$h=ae,Ih=ri,Dh=Gn,Fh=hr,zh="prototype",_h="script",Yh=ti("IE_PROTO"),Xh=function(){},qh=function(t){return"<"+_h+">"+t+"</"+_h+">"},Gh=function(t){t.write(qh("")),t.close();var r=t.parentWindow.Object;return t=null,r},Uh=function(){try{Rh=new ActiveXObject("htmlfile")}catch(t){}var t,r,i;Uh="undefined"!=typeof document?document.domain&&Rh?Gh(Rh):(r=Fh("iframe"),i="java"+_h+":",r.style.display="none",Dh.appendChild(r),r.src=String(i),(t=r.contentWindow.document).open(),t.write(qh("document.F=Object")),t.close(),t.F):Gh(Rh);for(var e=$h.length;e--;)delete Uh[zh][$h[e]];return Uh()};Ih[Yh]=!0;var Vh,Hh,Wh=Object.create||function(t,r){var i;return null!==t?(Xh[zh]=Bh(t),i=new Xh,Xh[zh]=null,i[Yh]=t):i=Uh(),void 0===r?i:Lh.f(i,r)},Qh=n.RegExp,Zh=a((function(){var t=Qh(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Kh=n.RegExp,Jh=a((function(){var t=Kh("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),tu=c,ru=M,iu=gh,eu=bh,nu=Sh,su=Wh,au=fi.get,ou=Zh,hu=Jh,uu=(0,St.exports)("native-string-replace",String.prototype.replace),cu=RegExp.prototype.exec,fu=cu,lu=ru("".charAt),vu=ru("".indexOf),du=ru("".replace),pu=ru("".slice),yu=(Hh=/b*/g,tu(cu,Vh=/a/,"a"),tu(cu,Hh,"a"),0!==Vh.lastIndex||0!==Hh.lastIndex),gu=nu.BROKEN_CARET,mu=void 0!==/()??/.exec("")[1];(yu||mu||gu||ou||hu)&&(fu=function(t){var r,i,e,n,s,a,o,h=this,u=au(h),c=iu(t),f=u.raw;if(f)return f.lastIndex=h.lastIndex,r=tu(fu,f,c),h.lastIndex=f.lastIndex,r;var l=u.groups,v=gu&&h.sticky,d=tu(eu,h),p=h.source,y=0,g=c;if(v&&(d=du(d,"y",""),-1===vu(d,"g")&&(d+="g"),g=pu(c,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==lu(c,h.lastIndex-1))&&(p="(?: "+p+")",g=" "+g,y++),i=new RegExp("^(?:"+p+")",d)),mu&&(i=new RegExp("^"+p+"$(?!\\s)",d)),yu&&(e=h.lastIndex),n=tu(cu,v?i:h,g),v?n?(n.input=pu(n.input,y),n[0]=pu(n[0],y),n.index=h.lastIndex,h.lastIndex+=n[0].length):h.lastIndex=0:yu&&n&&(h.lastIndex=h.global?n.index+n[0].length:e),mu&&n&&n.length>1&&tu(uu,n[0],i,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(n[s]=void 0)})),n&&l)for(n.groups=a=su(null),s=0;s<l.length;s++)a[(o=l[s])[0]]=n[o[1]];return n});var bu=fu;$e({target:"RegExp",proto:!0,forced:/./.exec!==bu},{exec:bu});var wu=zn,xu=Ri,Mu=bu,ku=a,Su=Wt,Nu=$r,ju=Su("species"),Pu=RegExp.prototype,Ou=function(t,r,i,e){var n=Su(t),s=!ku((function(){var r={};return r[n]=function(){return 7},7!=""[t](r)})),a=s&&!ku((function(){var r=!1,i=/a/;return"split"===t&&((i={}).constructor={},i.constructor[ju]=function(){return i},i.flags="",i[n]=/./[n]),i.exec=function(){return r=!0,null},i[n](""),!r}));if(!s||!a||i){var o=wu(/./[n]),h=r(n,""[t],(function(t,r,i,e,n){var a=wu(t),h=r.exec;return h===Mu||h===Pu.exec?s&&!n?{done:!0,value:o(r,i,e)}:{done:!0,value:a(i,r,e)}:{done:!1}}));xu(String.prototype,t,h[0]),xu(Pu,n,h[1])}e&&Nu(Pu[n],"sham",!0)},Eu=M,Tu=Fi,Cu=gh,Au=L,Ru=Eu("".charAt),Bu=Eu("".charCodeAt),Lu=Eu("".slice),$u=function(t){return function(r,i){var e,n,s=Cu(Au(r)),a=Tu(i),o=s.length;return a<0||a>=o?t?"":void 0:(e=Bu(s,a))<55296||e>56319||a+1===o||(n=Bu(s,a+1))<56320||n>57343?t?Ru(s,a):e:t?Lu(s,a,a+2):n-56320+(e-55296<<10)+65536}},Iu=($u(!1),$u(!0)),Du=function(t,r,i){return r+(i?Iu(t,r).length:1)},Fu=c,zu=Sr,_u=Y,Yu=j,Xu=bu,qu=TypeError,Gu=function(t,r){var i=t.exec;if(_u(i)){var e=Fu(i,t,r);return null!==e&&zu(e),e}if("RegExp"===Yu(t))return Fu(Xu,t,r);throw qu("RegExp#exec called on incompatible receiver")},Uu=c,Vu=Sr,Hu=A,Wu=Ui,Qu=gh,Zu=L,Ku=bt,Ju=Du,tc=Gu;Ou("match",(function(t,r,i){return[function(r){var i=Zu(this),e=Hu(r)?void 0:Ku(r,t);return e?Uu(e,r,i):new RegExp(r)[t](Qu(i))},function(t){var e=Vu(this),n=Qu(t),s=i(r,e,n);if(s.done)return s.value;if(!e.global)return tc(e,n);var a=e.unicode;e.lastIndex=0;for(var o,h=[],u=0;null!==(o=tc(e,n));){var c=Qu(o[0]);h[u]=c,""===c&&(e.lastIndex=Ju(n,Wu(e.lastIndex),a)),u++}return 0===u?null:h}]}));var rc=M,ic=Rt,ec=Math.floor,nc=rc("".charAt),sc=rc("".replace),ac=rc("".slice),oc=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,hc=/\$([$&'`]|\d{1,2})/g,uc=In,cc=c,fc=M,lc=Ou,vc=a,dc=Sr,pc=Y,yc=A,gc=Fi,mc=Ui,bc=gh,wc=L,xc=Du,Mc=bt,kc=function(t,r,i,e,n,s){var a=i+t.length,o=e.length,h=hc;return void 0!==n&&(n=ic(n),h=oc),sc(s,h,(function(s,h){var u;switch(nc(h,0)){case"$":return"$";case"&":return t;case"`":return ac(r,0,i);case"'":return ac(r,a);case"<":u=n[ac(h,1,-1)];break;default:var c=+h;if(0===c)return s;if(c>o){var f=ec(c/10);return 0===f?s:f<=o?void 0===e[f-1]?nc(h,1):e[f-1]+nc(h,1):s}u=e[c-1]}return void 0===u?"":u}))},Sc=Gu,Nc=Wt("replace"),jc=Math.max,Pc=Math.min,Oc=fc([].concat),Ec=fc([].push),Tc=fc("".indexOf),Cc=fc("".slice),Ac="$0"==="a".replace(/./,"$0"),Rc=!!/./[Nc]&&""===/./[Nc]("a","$0");lc("replace",(function(t,r,i){var e=Rc?"$":"$0";return[function(t,i){var e=wc(this),n=yc(t)?void 0:Mc(t,Nc);return n?cc(n,t,e,i):cc(r,bc(e),t,i)},function(t,n){var s=dc(this),a=bc(t);if("string"==typeof n&&-1===Tc(n,e)&&-1===Tc(n,"$<")){var o=i(r,s,a,n);if(o.done)return o.value}var h=pc(n);h||(n=bc(n));var u=s.global;if(u){var c=s.unicode;s.lastIndex=0}for(var f=[];;){var l=Sc(s,a);if(null===l)break;if(Ec(f,l),!u)break;""===bc(l[0])&&(s.lastIndex=xc(a,mc(s.lastIndex),c))}for(var v,d="",p=0,y=0;y<f.length;y++){for(var g=bc((l=f[y])[0]),m=jc(Pc(gc(l.index),a.length),0),b=[],w=1;w<l.length;w++)Ec(b,void 0===(v=l[w])?v:String(v));var x=l.groups;if(h){var M=Oc([g],b,m,a);void 0!==x&&Ec(M,x);var k=bc(uc(n,void 0,M))}else k=kc(g,a,m,b,x,n);m>=p&&(d+=Cc(a,p,m)+k,p=m+g.length)}return d+Cc(a,p)}]}),!!vc((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Ac||Rc);var Bc,Lc=G,$c=j,Ic=Wt("match"),Dc=function(t){var r;return Lc(t)&&(void 0!==(r=t[Ic])?!!r:"RegExp"==$c(t))},Fc=Dc,zc=TypeError,_c=function(t){if(Fc(t))throw zc("The method doesn't accept regular expressions");return t},Yc=Wt("match"),Xc=function(t){var r=/./;try{"/./"[t](r)}catch(i){try{return r[Yc]=!1,"/./"[t](r)}catch(t){}}return!1},qc=$e,Gc=zn,Uc=s.f,Vc=Ui,Hc=gh,Wc=_c,Qc=L,Zc=Xc,Kc=Gc("".startsWith),Jc=Gc("".slice),tf=Math.min,rf=Zc("startsWith");qc({target:"String",proto:!0,forced:!(!rf&&(Bc=Uc(String.prototype,"startsWith"),Bc&&!Bc.writable)||rf)},{startsWith:function(t){var r=Hc(Qc(this));Wc(t);var i=Vc(tf(arguments.length>1?arguments[1]:void 0,r.length)),e=Hc(t);return Kc?Kc(r,e,i):Jc(r,i,i+e.length)===e}});var ef=Wh,nf=br.f,sf=Wt("unscopables"),af=Array.prototype;null==af[sf]&&nf(af,sf,{configurable:!0,value:ef(null)});var of,hf,uf,cf=!a((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),ff=$t,lf=Y,vf=Rt,df=cf,pf=ti("IE_PROTO"),yf=Object,gf=yf.prototype,mf=df?yf.getPrototypeOf:function(t){var r=vf(t);if(ff(r,pf))return r[pf];var i=r.constructor;return lf(i)&&r instanceof i?i.prototype:r instanceof yf?gf:null},bf=a,wf=Y,xf=G,Mf=mf,kf=Ri,Sf=Wt("iterator"),Nf=!1;[].keys&&("next"in(uf=[].keys())?(hf=Mf(Mf(uf)))!==Object.prototype&&(of=hf):Nf=!0);var jf=!xf(of)||bf((function(){var t={};return of[Sf].call(t)!==t}));jf&&(of={}),wf(of[Sf])||kf(of,Sf,(function(){return this}));var Pf={IteratorPrototype:of,BUGGY_SAFARI_ITERATORS:Nf},Of=Pf.IteratorPrototype,Ef=Wh,Tf=g,Cf=Ve,Af=ho,Rf=function(){return this},Bf=$e,Lf=c,$f=Y,If=mf,Df=Xe,Ff=Ve,zf=$r,_f=Ri,Yf=ho,Xf=Yr.PROPER,qf=Yr.CONFIGURABLE,Gf=Pf.IteratorPrototype,Uf=Pf.BUGGY_SAFARI_ITERATORS,Vf=Wt("iterator"),Hf="keys",Wf="values",Qf="entries",Zf=function(){return this},Kf=D,Jf=function(t){af[sf][t]=!0},tl=ho,rl=br.f,il=function(t,r){return{value:t,done:r}},el=o,nl="Array Iterator",sl=fi.set,al=fi.getterFor(nl),ol=function(t,r,i,e,n,s,a){!function(t,r,i,e){var n=r+" Iterator";t.prototype=Ef(Of,{next:Tf(+!e,i)}),Cf(t,n,!1),Af[n]=Rf}(i,r,e);var o,h,u,c=function(t){if(t===n&&p)return p;if(!Uf&&t in v)return v[t];switch(t){case Hf:case Wf:case Qf:return function(){return new i(this,t)}}return function(){return new i(this)}},f=r+" Iterator",l=!1,v=t.prototype,d=v[Vf]||v["@@iterator"]||n&&v[n],p=!Uf&&d||c(n),y="Array"==r&&v.entries||d;if(y&&(o=If(y.call(new t)))!==Object.prototype&&o.next&&(If(o)!==Gf&&(Df?Df(o,Gf):$f(o[Vf])||_f(o,Vf,Zf)),Ff(o,f,!0)),Xf&&n==Wf&&d&&d.name!==Wf&&(qf?zf(v,"name",Wf):(l=!0,p=function(){return Lf(d,this)})),n)if(h={values:c(Wf),keys:s?p:c(Hf),entries:c(Qf)},a)for(u in h)(Uf||l||!(u in v))&&_f(v,u,h[u]);else Bf({target:r,proto:!0,forced:Uf||l},h);return v[Vf]!==p&&_f(v,Vf,p,{name:n}),Yf[r]=p,h}(Array,"Array",(function(t,r){sl(this,{type:nl,target:Kf(t),index:0,kind:r})}),(function(){var t=al(this),r=t.target,i=t.kind,e=t.index++;return!r||e>=r.length?(t.target=void 0,il(void 0,!0)):il("keys"==i?e:"values"==i?r[e]:[e,r[e]],!1)}),"values"),hl=tl.Arguments=tl.Array;if(Jf("keys"),Jf("values"),Jf("entries"),el&&"values"!==hl.name)try{rl(hl,"name",{value:"values"})}catch(t){}var ul=hr("span").classList,cl=ul&&ul.constructor&&ul.constructor.prototype,fl=n,ll={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},vl=cl===Object.prototype?void 0:cl,dl=ol,pl=$r,yl=Wt,gl=yl("iterator"),ml=yl("toStringTag"),bl=dl.values,wl=function(t,r){if(t){if(t[gl]!==bl)try{pl(t,gl,bl)}catch(r){t[gl]=bl}if(t[ml]||pl(t,ml,r),ll[r])for(var i in dl)if(t[i]!==dl[i])try{pl(t,i,dl[i])}catch(r){t[i]=dl[i]}}};for(var xl in ll)wl(fl[xl]&&fl[xl].prototype,xl);wl(vl,"DOMTokenList");var Ml={exports:{}},kl={exports:{}},Sl={exports:{}};!function(t){var r=i.exports.default;t.exports=function(t,i){if("object"!==r(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!==r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(Sl),function(t){var r=i.exports.default,e=Sl.exports;t.exports=function(t){var i=e(t,"string");return"symbol"===r(i)?i:String(i)},t.exports.__esModule=!0,t.exports.default=t.exports}(kl),function(t){var r=kl.exports;t.exports=function(t,i,e){return(i=r(i))in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t},t.exports.__esModule=!0,t.exports.default=t.exports}(Ml);const Nl=r(Ml.exports);var jl=yt,Pl=Rt,Ol=C,El=Hi,Tl=TypeError,Cl=function(t){return function(r,i,e,n){jl(i);var s=Pl(r),a=Ol(s),o=El(s),h=t?o-1:0,u=t?-1:1;if(e<2)for(;;){if(h in a){n=a[h],h+=u;break}if(h+=u,t?h<0:o<=h)throw Tl("Reduce of empty array with no initial value")}for(;t?h>=0:o>h;h+=u)h in a&&(n=i(n,a[h],h,s));return n}},Al={left:Cl(!1),right:Cl(!0)},Rl=a,Bl=function(t,r){var i=[][t];return!!i&&Rl((function(){i.call(null,r||function(){return 1},1)}))},Ll=Al.left;$e({target:"Array",proto:!0,forced:!Ie&&it>79&&it<83||!Bl("reduce")},{reduce:function(t){var r=arguments.length;return Ll(this,t,r,r>1?arguments[1]:void 0)}});var $l=$e,Il=zn,Dl=s.f,Fl=Ui,zl=gh,_l=_c,Yl=L,Xl=Xc,ql=Il("".endsWith),Gl=Il("".slice),Ul=Math.min,Vl=Xl("endsWith"),Hl=!Vl&&!!function(){var t=Dl(String.prototype,"endsWith");return t&&!t.writable}();$l({target:"String",proto:!0,forced:!Hl&&!Vl},{endsWith:function(t){var r=zl(Yl(this));_l(t);var i=arguments.length>1?arguments[1]:void 0,e=r.length,n=void 0===i?e:Ul(Fl(i),e),s=zl(t);return ql?ql(r,s,n):Gl(r,n-s.length,n)===s}});var Wl=nr,Ql=br,Zl=g,Kl=Xi,Jl=Hi,tv=Array,rv=Math.max,iv=In,ev=c,nv=M,sv=Ou,av=Sr,ov=A,hv=Dc,uv=L,cv=Rn,fv=Du,lv=Ui,vv=gh,dv=bt,pv=function(t,r,i){for(var e=Jl(t),n=Kl(r,e),s=Kl(void 0===i?e:i,e),a=tv(rv(s-n,0)),o=0;n<s;n++,o++)h=a,u=t[n],c=void 0,(c=Wl(o))in h?Ql.f(h,c,Zl(0,u)):h[c]=u;var h,u,c;return a.length=o,a},yv=Gu,gv=bu,mv=a,bv=Sh.UNSUPPORTED_Y,wv=4294967295,xv=Math.min,Mv=[].push,kv=nv(/./.exec),Sv=nv(Mv),Nv=nv("".slice);sv("split",(function(t,r,i){var e;return e="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,i){var e=vv(uv(this)),n=void 0===i?wv:i>>>0;if(0===n)return[];if(void 0===t)return[e];if(!hv(t))return ev(r,e,t,n);for(var s,a,o,h=[],u=0,c=new RegExp(t.source,(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":"")+"g");(s=ev(gv,c,e))&&!((a=c.lastIndex)>u&&(Sv(h,Nv(e,u,s.index)),s.length>1&&s.index<e.length&&iv(Mv,h,pv(s,1)),o=s[0].length,u=a,h.length>=n));)c.lastIndex===s.index&&c.lastIndex++;return u===e.length?!o&&kv(c,"")||Sv(h,""):Sv(h,Nv(e,u)),h.length>n?pv(h,0,n):h}:"0".split(void 0,0).length?function(t,i){return void 0===t&&0===i?[]:ev(r,this,t,i)}:r,[function(r,i){var n=uv(this),s=ov(r)?void 0:dv(r,t);return s?ev(s,r,n,i):ev(e,vv(n),r,i)},function(t,n){var s=av(this),a=vv(t),o=i(e,s,a,n,e!==r);if(o.done)return o.value;var h=cv(s,RegExp),u=s.unicode,c=new h(bv?"^(?:"+s.source+")":s,(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(bv?"g":"y")),f=void 0===n?wv:n>>>0;if(0===f)return[];if(0===a.length)return null===yv(c,a)?[a]:[];for(var l=0,v=0,d=[];v<a.length;){c.lastIndex=bv?0:v;var p,y=yv(c,bv?Nv(a,v):a);if(null===y||(p=xv(lv(c.lastIndex+(bv?v:0)),a.length))===l)v=fv(a,v,u);else{if(Sv(d,Nv(a,l,v)),d.length===f)return d;for(var g=1;g<=y.length-1;g++)if(Sv(d,y[g]),d.length===f)return d;v=l=p}}return Sv(d,Nv(a,l)),d}]}),!!mv((function(){var t=/(?:)/,r=t.exec;t.exec=function(){return r.apply(this,arguments)};var i="ab".split(t);return 2!==i.length||"a"!==i[0]||"b"!==i[1]})),bv);var jv={exports:{}},Pv={exports:{}};(function(){var t,r,i,e,n,s;"undefined"!=typeof performance&&null!==performance&&performance.now?Pv.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(Pv.exports=function(){return(t()-n)/1e6},r=process.hrtime,e=(t=function(){var t;return 1e9*(t=r())[0]+t[1]})(),s=1e9*process.uptime(),n=e-s):Date.now?(Pv.exports=function(){return Date.now()-i},i=Date.now()):(Pv.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(t);for(var Ov=Pv.exports,Ev="undefined"==typeof window?t:window,Tv=["moz","webkit"],Cv="AnimationFrame",Av=Ev["request"+Cv],Rv=Ev["cancel"+Cv]||Ev["cancelRequest"+Cv],Bv=0;!Av&&Bv<Tv.length;Bv++)Av=Ev[Tv[Bv]+"Request"+Cv],Rv=Ev[Tv[Bv]+"Cancel"+Cv]||Ev[Tv[Bv]+"CancelRequest"+Cv];if(!Av||!Rv){var Lv=0,$v=0,Iv=[],Dv=1e3/60;Av=function(t){if(0===Iv.length){var r=Ov(),i=Math.max(0,Dv-(r-Lv));Lv=i+r,setTimeout((function(){var t=Iv.slice(0);Iv.length=0;for(var r=0;r<t.length;r++)if(!t[r].cancelled)try{t[r].callback(Lv)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(i))}return Iv.push({handle:++$v,callback:t,cancelled:!1}),$v},Rv=function(t){for(var r=0;r<Iv.length;r++)Iv[r].handle===t&&(Iv[r].cancelled=!0)}}jv.exports=function(t){return Av.call(Ev,t)},jv.exports.cancel=function(){Rv.apply(Ev,arguments)},jv.exports.polyfill=function(t){t||(t=Ev),t.requestAnimationFrame=Av,t.cancelAnimationFrame=Rv};const Fv=jv.exports;var zv,_v="\t\n\v\f\r                 \u2028\u2029\ufeff",Yv=L,Xv=gh,qv=_v,Gv=M("".replace),Uv="["+qv+"]",Vv=RegExp("^"+Uv+Uv+"*"),Hv=RegExp(Uv+Uv+"*$"),Wv=function(t){return function(r){var i=Xv(Yv(r));return 1&t&&(i=Gv(i,Vv,"")),2&t&&(i=Gv(i,Hv,"")),i}},Qv={start:Wv(1),end:Wv(2),trim:Wv(3)},Zv=Yr.PROPER,Kv=_v,Jv=Qv.trim;$e({target:"String",proto:!0,forced:(zv="trim",a((function(){return!!Kv[zv]()||"​…᠎"!=="​…᠎"[zv]()||Zv&&Kv[zv].name!==zv})))},{trim:function(){return Jv(this)}});var td=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var r={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=r[t]||t;for(var i=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],e=0;e<i.length;e++){var n=i[e].process,s=i[e].re.exec(t);if(s){var a=n(s);this.r=a[0],this.g=a[1],this.b=a[2],a.length>3&&(this.alpha=a[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),r=this.g.toString(16),i=this.b.toString(16);return 1==t.length&&(t="0"+t),1==r.length&&(r="0"+r),1==i.length&&(i="0"+i),"#"+t+r+i},this.getHelpXML=function(){for(var t=new Array,e=0;e<i.length;e++)for(var n=i[e].example,s=0;s<n.length;s++)t[t.length]=n[s];for(var a in r)t[t.length]=a;var o=document.createElement("ul");for(o.setAttribute("id","rgbcolor-examples"),e=0;e<t.length;e++)try{var h=document.createElement("li"),u=new RGBColor(t[e]),c=document.createElement("div");c.style.cssText="margin: 3px; border: 1px solid black; background:"+u.toHex()+"; color:"+u.toHex(),c.appendChild(document.createTextNode("test"));var f=document.createTextNode(" "+t[e]+" -> "+u.toRGB()+" -> "+u.toHex());h.appendChild(c),h.appendChild(f),o.appendChild(h)}catch(t){}return o}},rd=$e,id=Ji.indexOf,ed=Bl,nd=zn([].indexOf),sd=!!nd&&1/nd([1],1,-0)<0;rd({target:"Array",proto:!0,forced:sd||!ed("indexOf")},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return sd?nd(this,t,r)||0:id(this,t,r)}});var ad=$e,od=_c,hd=L,ud=gh,cd=Xc,fd=M("".indexOf);ad({target:"String",proto:!0,forced:!cd("includes")},{includes:function(t){return!!~fd(ud(hd(this)),ud(od(t)),arguments.length>1?arguments[1]:void 0)}});var ld=j,vd=$e,dd=Array.isArray||function(t){return"Array"==ld(t)},pd=M([].reverse),yd=[1,2];vd({target:"Array",proto:!0,forced:String(yd)===String(yd.reverse())},{reverse:function(){return dd(this)&&(this.length=this.length),pd(this)}});
7
7
  /*! *****************************************************************************
8
8
  Copyright (c) Microsoft Corporation.
9
9
 
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{r as e,h as s,H as t,g as r}from"./p-6d753a3d.js";const d=class{constructor(s){e(this,s)}render(){return s(t,{key:"294c2df1aa37bf2276716e93953fb9670d08ed2d"},s("slot",{key:"b57b34de225e39fda047027286f8eb8367f335df"}))}get el(){return r(this)}};d.style=":host{display:block}";export{d as list_flow_item}
@@ -3,4 +3,4 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as t,c as e,h as i,H as a,g as s}from"./p-6d753a3d.js";import{s as c}from"./p-c8260cf0.js";import{g as l}from"./p-896c9644.js";import{n}from"./p-89a0889f.js";import"./p-bdcf99c0.js";import"./p-c1cf3ebc.js";import"./p-334e6394.js";import"./p-82e085d0.js";import"./p-a230b270.js";import"./p-530b73ce.js";const r=class{constructor(i){t(this,i),this.solutionItemSelected=e(this,"solutionItemSelected",7),this.selectedItemId=void 0,this.templateHierarchy=[]}valueWatchHandler(t,e){t&&t!==e&&Array.isArray(t)&&t.length>0&&this._treeItemSelected(t[0].id)}componentWillLoad(){this.valueWatchHandler(this.templateHierarchy,[])}render(){return i(a,{key:"13cf454e7d24dca39bddd4e8d07c680ded84056a"},i("calcite-tree",{key:"3eda97bd8096d4b06cc8a72b74f5773c11f49630"},this.renderHierarchy(this.templateHierarchy)))}renderHierarchy(t){return t.map((t=>{const e=this.selectedItemId&&this.selectedItemId===t.id;return t.dependencies&&t.dependencies.length>0?i("calcite-tree-item",{onClick:e=>this._treeItemSelected(t.id,e),selected:e},i("solution-item-icon",{type:t.type,typeKeywords:t.typeKeywords}),i("span",{class:"icon-text",title:t.title},t.title),i("calcite-tree",{slot:"children"},this.renderHierarchy(t.dependencies))):i("calcite-tree-item",{onClick:e=>this._treeItemSelected(t.id,e),selected:e},i("solution-item-icon",{type:t.type,typeKeywords:t.typeKeywords}),i("span",{class:"icon-text",title:t.title},t.title))}))}_treeItemSelected(t,e){var i;const a=null===(i=null==e?void 0:e.target)||void 0===i?void 0:i.closest("calcite-tree-item");a&&(a.expanded=!(null==a?void 0:a.expanded)),this.selectedItemId=t,this.solutionItemSelected.emit(t)}static get assetsDirs(){return["item-type-icons"]}get el(){return s(this)}static get watchers(){return{templateHierarchy:["valueWatchHandler"]}}};r.style=".icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";const o=class{constructor(e){t(this,e),this.authentication=void 0,this.itemId="",this.solutionVariables="",this.organizationVariables="",this.itemType=void 0,this._translations=void 0}itemIdWatchHandler(){const t=c.getItemInfo(this.itemId);this.itemType=t.type}async componentWillLoad(){return this._getTranslations()}render(){return i(a,{key:"eb78d204e4a7bb8a64be9978deb6e85e851d66f2"},i("div",{key:"f817c407fbf5a9b105a7a801a1b618a6119b124b",class:"configuration-container"},i("div",{key:"aac0b5cbe5410d5dd18c9cc2fa15f6be7ceebaba",class:"configuration"},this._showGroupTabs("Group"===this.itemType),this._showItemTabs("Group"!==this.itemType))))}_showGroupTabs(t){return i("calcite-tabs",{class:"config-tabs",style:{display:t?"inherit":"none"}},i("calcite-tab-nav",{slot:"tab-nav"},i("calcite-tab-title",null,this._translations.groupDetailsTab),i("calcite-tab-title",null,this._translations.sharingTab)),i("calcite-tab",{class:"config-tab",id:"group-tab",selected:!0},i("solution-item-details",{"item-id":this.itemId})),i("calcite-tab",{class:"config-tab",id:"share-tab"},i("solution-item-sharing",{"group-id":this.itemId})))}_showItemTabs(t){return i("calcite-tabs",{class:"config-tabs",style:{display:t?"inherit":"none"}},i("calcite-tab-nav",{slot:"tab-nav"},i("calcite-tab-title",null,this._translations.itemDetailsTab),i("calcite-tab-title",null,this._translations.dataTab),i("calcite-tab-title",null,this._translations.propertiesTab),i("calcite-tab-title",null,this._translations.resourcesTab)),i("calcite-tab",{class:"config-tab",selected:!0},i("solution-item-details",{"item-id":this.itemId})),i("calcite-tab",{class:"config-tab",id:"data-tab"},i("solution-template-data",{instanceid:"data","item-id":this.itemId,"organization-variables":this.organizationVariables,"solution-variables":this.solutionVariables})),i("calcite-tab",{class:"config-tab",id:"props-tab"},i("solution-template-data",{instanceid:"properties","item-id":this.itemId,"organization-variables":this.organizationVariables,"solution-variables":this.solutionVariables})),i("calcite-tab",{class:"config-tab",id:"resources-tab"},i("solution-resource-item",{authentication:this.authentication,class:"solutions-resource-container","item-id":this.itemId})))}async _getTranslations(){const t=await l(this.el);this._translations=t[0]}get el(){return s(this)}static get watchers(){return{itemId:["itemIdWatchHandler"]}}};o.style=".configuration-container{position:relative;height:100%;width:100%}.configuration{position:absolute;top:0px;right:0px;bottom:0px;left:0px;display:flex;padding:0.5rem;border:1px #808080 solid}.config-tabs{width:100%}.config-tab{width:100%;overflow-y:auto;height:inherit}";const h=class{constructor(i){t(this,i),this.featureServiceSpatialReferenceChange=e(this,"featureServiceSpatialReferenceChange",7),this.lockedSpatialReferenceChange=e(this,"lockedSpatialReferenceChange",7),this.defaultWkid=102100,this.loaded=!1,this.locked=!0,this.services=[],this.value=this.defaultWkid.toString(),this._srSearchText=void 0,this._translations=void 0}lockedChanged(t){t||this._setFeatureServiceDefaults(this.services),this.lockedSpatialReferenceChange.emit({locked:t})}componentWillLoad(){return this._getTranslations()}render(){return i(a,{key:"af661ccdc74929591088673da5b814b75cfa0513"},i("div",{key:"c9324de9910290892a17420dbee953ac1a5ef02c",class:"spatial-ref"},i("div",{key:"15393aae23e59eb24a24d1617bf2f43f3ff00e22",class:"spatial-ref-desc"},i("calcite-label",{key:"b29058fff715447916a003139da72ef2eadb1f52"},this._translations.paramDescription)),i("label",{key:"6ca159d44baa13ad5f9650004c355f3b3d687a9a",class:"switch-label"},i("calcite-switch",{key:"55842e62224985e952ea730ff36206db70a193ef",checked:!this.locked,class:"spatial-ref-switch",onCalciteSwitchChange:t=>this._updateLocked(t),scale:"m"}),this._translations.specifyParam),i("div",{key:"0f79a4014d786468ea857a19fda4a1c978140754",class:"spatial-ref-component",id:"spatialRefDefn"},i("calcite-label",{key:"df9b90a12916ef4a8f87c13192ecd8cb31fcf8a6"},this._translations.spatialReferenceInfo,i("label",{key:"a819ff1161774963f187d801e8f29ca119f3fc3a",class:"spatial-ref-default"},i("spatial-ref",{key:"fe85e9f5f010b8f0be04a6d0272ae845310905d2",defaultWkid:this.defaultWkid,disabled:this.locked,value:this.value}))),this._getFeatureServices(this.services))))}spatialReferenceChange(t){this.value=t.detail.newValue}_updateLocked(t){this.locked=!t.target.checked,this._updateStore(),this.loaded||(t.target.checked&&this._setFeatureServiceDefaults(this.services),this.loaded=!0)}_setFeatureServiceDefaults(t){n(this.el.getElementsByClassName("spatial-ref-item-switch")).forEach((t=>t.checked=!0)),t.forEach((t=>this._updateEnabledServices({detail:{switched:!0}},t)))}_getFeatureServices(t){const e=c.getStoreInfo("spatialReferenceInfo"),a=t.filter((t=>Object.keys(e.services).some((e=>e===t))));return a&&a.length>0?i("div",null,i("label",{class:"spatial-ref-item-title"},this._translations.featureServicesHeading),a.map((t=>i("label",{class:"switch-label"},i("calcite-switch",{checked:e.services[t],class:"spatial-ref-item-switch",disabled:this.locked,onCalciteSwitchChange:e=>this._updateEnabledServices(e,t),scale:"m"}),t)))):null}_updateStore(){const t=c.getStoreInfo("spatialReferenceInfo");t.enabled=!this.locked,t.spatialReference=this.value,c.setStoreInfo("spatialReferenceInfo",t)}_updateEnabledServices(t,e){const i=c.getStoreInfo("spatialReferenceInfo");i.services[e]=t.target.checked,c.setStoreInfo("spatialReferenceInfo",i),this.featureServiceSpatialReferenceChange.emit({name:e,enabled:t.target.checked})}async _getTranslations(){const t=await l(this.el);this._translations=t[0]}get el(){return s(this)}static get watchers(){return{locked:["lockedChanged"]}}};h.style=".spatial-ref-switch{margin-inline-end:0.5rem}.spatial-ref-component{margin-top:0.625rem;margin-inline-start:2.5rem}#spatialRefDefn .sc-calcite-label-h label.sc-calcite-label{margin:0px;background-color:#CBC3E3}.spatial-ref-default{margin:0px}.spatial-ref-item-title{margin-bottom:0.5rem;font-size:0.875rem;line-height:1.25rem}.spatial-ref-item-switch{margin-inline-end:0.5rem}.switch-label{margin:0.25rem;font-size:0.875rem;line-height:1.25rem}.disabled-div{pointer-events:none;opacity:0.4}.spatial-ref-desc{padding-bottom:0.5rem;padding-inline-start:0.25rem}";export{r as solution_contents,o as solution_item,h as solution_spatial_ref}
6
+ import{r as t,c as e,h as i,H as a,g as s}from"./p-6d753a3d.js";import{s as c}from"./p-c8260cf0.js";import{g as l}from"./p-896c9644.js";import{n}from"./p-89a0889f.js";import"./p-bdcf99c0.js";import"./p-c1cf3ebc.js";import"./p-334e6394.js";import"./p-82e085d0.js";import"./p-a230b270.js";import"./p-530b73ce.js";const r=class{constructor(i){t(this,i),this.solutionItemSelected=e(this,"solutionItemSelected",7),this.selectedItemId=void 0,this.templateHierarchy=[]}valueWatchHandler(t,e){t&&t!==e&&Array.isArray(t)&&t.length>0&&this._treeItemSelected(t[0].id)}componentWillLoad(){this.valueWatchHandler(this.templateHierarchy,[])}render(){return i(a,{key:"33b390d73c09e1c8600b44b3037aa101cf9acc84"},i("calcite-tree",{key:"c069c9ab2c75050ac4d15a158422fc012eeddec9"},this.renderHierarchy(this.templateHierarchy)))}renderHierarchy(t){return t.map((t=>{const e=this.selectedItemId&&this.selectedItemId===t.id;return t.dependencies&&t.dependencies.length>0?i("calcite-tree-item",{onClick:e=>this._treeItemSelected(t.id,e),selected:e},i("solution-item-icon",{type:t.type,typeKeywords:t.typeKeywords}),i("span",{class:"icon-text",title:t.title},t.title),i("calcite-tree",{slot:"children"},this.renderHierarchy(t.dependencies))):i("calcite-tree-item",{onClick:e=>this._treeItemSelected(t.id,e),selected:e},i("solution-item-icon",{type:t.type,typeKeywords:t.typeKeywords}),i("span",{class:"icon-text",title:t.title},t.title))}))}_treeItemSelected(t,e){var i;const a=null===(i=null==e?void 0:e.target)||void 0===i?void 0:i.closest("calcite-tree-item");a&&(a.expanded=!(null==a?void 0:a.expanded)),this.selectedItemId=t,this.solutionItemSelected.emit(t)}static get assetsDirs(){return["item-type-icons"]}get el(){return s(this)}static get watchers(){return{templateHierarchy:["valueWatchHandler"]}}};r.style=".icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";const o=class{constructor(e){t(this,e),this.authentication=void 0,this.itemId="",this.solutionVariables="",this.organizationVariables="",this.itemType=void 0,this._translations=void 0}itemIdWatchHandler(){const t=c.getItemInfo(this.itemId);this.itemType=t.type}async componentWillLoad(){return this._getTranslations()}render(){return i(a,{key:"8e89133e43142d3dbc612fea40cc02b735624528"},i("div",{key:"48c3774d21fe252315f0e144b8dbd37d0e4c61a9",class:"configuration-container"},i("div",{key:"5ac53ca102edf4e738c2aa21c15f013bc5f11f78",class:"configuration"},this._showGroupTabs("Group"===this.itemType),this._showItemTabs("Group"!==this.itemType))))}_showGroupTabs(t){return i("calcite-tabs",{class:"config-tabs",style:{display:t?"inherit":"none"}},i("calcite-tab-nav",{slot:"tab-nav"},i("calcite-tab-title",null,this._translations.groupDetailsTab),i("calcite-tab-title",null,this._translations.sharingTab)),i("calcite-tab",{class:"config-tab",id:"group-tab",selected:!0},i("solution-item-details",{"item-id":this.itemId})),i("calcite-tab",{class:"config-tab",id:"share-tab"},i("solution-item-sharing",{"group-id":this.itemId})))}_showItemTabs(t){return i("calcite-tabs",{class:"config-tabs",style:{display:t?"inherit":"none"}},i("calcite-tab-nav",{slot:"tab-nav"},i("calcite-tab-title",null,this._translations.itemDetailsTab),i("calcite-tab-title",null,this._translations.dataTab),i("calcite-tab-title",null,this._translations.propertiesTab),i("calcite-tab-title",null,this._translations.resourcesTab)),i("calcite-tab",{class:"config-tab",selected:!0},i("solution-item-details",{"item-id":this.itemId})),i("calcite-tab",{class:"config-tab",id:"data-tab"},i("solution-template-data",{instanceid:"data","item-id":this.itemId,"organization-variables":this.organizationVariables,"solution-variables":this.solutionVariables})),i("calcite-tab",{class:"config-tab",id:"props-tab"},i("solution-template-data",{instanceid:"properties","item-id":this.itemId,"organization-variables":this.organizationVariables,"solution-variables":this.solutionVariables})),i("calcite-tab",{class:"config-tab",id:"resources-tab"},i("solution-resource-item",{authentication:this.authentication,class:"solutions-resource-container","item-id":this.itemId})))}async _getTranslations(){const t=await l(this.el);this._translations=t[0]}get el(){return s(this)}static get watchers(){return{itemId:["itemIdWatchHandler"]}}};o.style=".configuration-container{position:relative;height:100%;width:100%}.configuration{position:absolute;top:0px;right:0px;bottom:0px;left:0px;display:flex;padding:0.5rem;border:1px #808080 solid}.config-tabs{width:100%}.config-tab{width:100%;overflow-y:auto;height:inherit}";const h=class{constructor(i){t(this,i),this.featureServiceSpatialReferenceChange=e(this,"featureServiceSpatialReferenceChange",7),this.lockedSpatialReferenceChange=e(this,"lockedSpatialReferenceChange",7),this.defaultWkid=102100,this.loaded=!1,this.locked=!0,this.services=[],this.value=this.defaultWkid.toString(),this._srSearchText=void 0,this._translations=void 0}lockedChanged(t){t||this._setFeatureServiceDefaults(this.services),this.lockedSpatialReferenceChange.emit({locked:t})}componentWillLoad(){return this._getTranslations()}render(){return i(a,{key:"fe1a18b245d01184a874e538f131cd8665f3e816"},i("div",{key:"6d561e26c7c07860ff3ee8ac04e1c2c940424f1e",class:"spatial-ref"},i("div",{key:"1cdccd9bdb6768ba7565044a82aafd5b8384c06c",class:"spatial-ref-desc"},i("calcite-label",{key:"d8e11b3a7c1aec65073113215519d9a5390196a5"},this._translations.paramDescription)),i("label",{key:"207f2efdda90f8f1312414f93709be208df18e37",class:"switch-label"},i("calcite-switch",{key:"9040d067f9a3809cfebcec2e460e8f900a4e1806",checked:!this.locked,class:"spatial-ref-switch",onCalciteSwitchChange:t=>this._updateLocked(t),scale:"m"}),this._translations.specifyParam),i("div",{key:"fc92e2bb1bbd7ea257fe01c75aa02b5ca541d2c3",class:"spatial-ref-component",id:"spatialRefDefn"},i("calcite-label",{key:"534d7b0a1b7d479ce74cb4ef6e2c0934a29a1996"},this._translations.spatialReferenceInfo,i("label",{key:"2e9bf13ad3a5fa5264816fb96ab3dc8e7b51d46b",class:"spatial-ref-default"},i("spatial-ref",{key:"8beeb6ddb1ca1c4253bd09388951db1785fd1385",defaultWkid:this.defaultWkid,disabled:this.locked,value:this.value}))),this._getFeatureServices(this.services))))}spatialReferenceChange(t){this.value=t.detail.newValue}_updateLocked(t){this.locked=!t.target.checked,this._updateStore(),this.loaded||(t.target.checked&&this._setFeatureServiceDefaults(this.services),this.loaded=!0)}_setFeatureServiceDefaults(t){n(this.el.getElementsByClassName("spatial-ref-item-switch")).forEach((t=>t.checked=!0)),t.forEach((t=>this._updateEnabledServices({detail:{switched:!0}},t)))}_getFeatureServices(t){const e=c.getStoreInfo("spatialReferenceInfo"),a=t.filter((t=>Object.keys(e.services).some((e=>e===t))));return a&&a.length>0?i("div",null,i("label",{class:"spatial-ref-item-title"},this._translations.featureServicesHeading),a.map((t=>i("label",{class:"switch-label"},i("calcite-switch",{checked:e.services[t],class:"spatial-ref-item-switch",disabled:this.locked,onCalciteSwitchChange:e=>this._updateEnabledServices(e,t),scale:"m"}),t)))):null}_updateStore(){const t=c.getStoreInfo("spatialReferenceInfo");t.enabled=!this.locked,t.spatialReference=this.value,c.setStoreInfo("spatialReferenceInfo",t)}_updateEnabledServices(t,e){const i=c.getStoreInfo("spatialReferenceInfo");i.services[e]=t.target.checked,c.setStoreInfo("spatialReferenceInfo",i),this.featureServiceSpatialReferenceChange.emit({name:e,enabled:t.target.checked})}async _getTranslations(){const t=await l(this.el);this._translations=t[0]}get el(){return s(this)}static get watchers(){return{locked:["lockedChanged"]}}};h.style=".spatial-ref-switch{margin-inline-end:0.5rem}.spatial-ref-component{margin-top:0.625rem;margin-inline-start:2.5rem}#spatialRefDefn .sc-calcite-label-h label.sc-calcite-label{margin:0px;background-color:#CBC3E3}.spatial-ref-default{margin:0px}.spatial-ref-item-title{margin-bottom:0.5rem;font-size:0.875rem;line-height:1.25rem}.spatial-ref-item-switch{margin-inline-end:0.5rem}.switch-label{margin:0.25rem;font-size:0.875rem;line-height:1.25rem}.disabled-div{pointer-events:none;opacity:0.4}.spatial-ref-desc{padding-bottom:0.5rem;padding-inline-start:0.25rem}";export{r as solution_contents,o as solution_item,h as solution_spatial_ref}
@@ -3,4 +3,4 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as t,c as i,a as s,h as e,H as a,g as l}from"./p-6d753a3d.js";import{b as o,c as n,a as h}from"./p-c1cf3ebc.js";import{l as c,g as d}from"./p-896c9644.js";import{d as r,h as p}from"./p-d9c89479.js";import{s as g}from"./p-f22a4439.js";import{c as b,r as m}from"./p-ee457c15.js";import"./p-82e085d0.js";import"./p-bdcf99c0.js";import"./p-334e6394.js";import"./p-a230b270.js";import"./p-530b73ce.js";const u=class{constructor(s){t(this,s),this.searchConfigurationChange=i(this,"searchConfigurationChange",7),this._onboardingImageUrl="",this._titleValue=void 0,this._numSelected=0,this.addresseeLayerIds=[],this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=void 0,this.defaultBufferDistance=void 0,this.defaultBufferUnit=void 0,this.defaultExportTitle="",this.defaultNumLabelsPerPage=6,this.featureEffect=void 0,this.featureHighlightEnabled=void 0,this.mapView=void 0,this.noResultText=void 0,this.searchConfiguration=void 0,this.selectionLayerIds=[],this.showRefineSelection=!1,this.showSearchSettings=!0,this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._exportGraphics=!1,this._addMap=!1,this._addResults=!0,this._addTitle=!1,this._downloadActive=!0,this._exportType=o.PDF,this._fetchingData=!1,this._isMobile=void 0,this._numDuplicates=0,this._pageType=n.LIST,this._saveEnabled=!1,this._selectionSets=[],this._translations=void 0}async mapViewWatchHandler(t){(null==t?void 0:t.popup)&&(this._popupsEnabled=null==t?void 0:t.popup.autoOpenEnabled),this._initSearchConfiguration(this.searchConfiguration)}async watchSearchConfigurationHandler(t,i){const s=JSON.stringify(t);this.mapView&&(s!==JSON.stringify(i)||s&&!this._searchConfiguration)&&(this._searchConfiguration=JSON.parse(s),this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}async sketchLineSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setLineSymbol(t)}async sketchPointSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPointSymbol(t)}async sketchPolygonSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPolygonSymbol(t)}async pageTypeWatchHandler(t,i){var s;if(this._checkPopups(),(null===(s=this.mapView)||void 0===s?void 0:s.popup)&&(this.mapView.popupEnabled=t===n.LIST&&this._popupsEnabled),t===n.EXPORT&&(this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._updateExportGraphics(),this._fetchingData=!1),this._clearHighlight(),i!==n.SELECT&&i!==n.REFINE||await this._clearSelection(),i===n.EXPORT&&this._removeExportGraphics(),t!==n.SELECT)return this._highlightFeatures()}selectionSetsChanged(t){this._selectionSets=[...t.detail]}connectedCallback(){this._mediaQuery=window.matchMedia("(max-width: 600px)"),this._mediaQuery.addEventListener("change",(t=>this._setIsMobile(t)))}async componentWillLoad(){await this._getTranslations(),await this._initModules(),this._initSymbols(),this._onboardingImageUrl=s("../assets/data/images/onboarding.png")}render(){return e(a,{key:"43aab03c2d2d410df21ed346314d9cf0c5adae0b"},e("calcite-shell",{key:"b83fa5f301f68eac73012a8e8ead64c6811d991a"},e("calcite-action-bar",{key:"43cd7e3f7c82c6e20fdd5e7dc185a0ce1175b356",class:"border-bottom-1 action-bar-size","expand-disabled":!0,layout:"horizontal",slot:this._isMobile?"footer":"header"},this._getActionGroup("list-check",n.LIST,this._translations.myLists),this.showRefineSelection?this._getActionGroup("test-data",n.REFINE,this._translations.refineSelection):null,this._getActionGroup("export",n.EXPORT,this._translations.export)),this._getPage(this._pageType)))}async componentDidLoad(){this._initSearchConfiguration(this.searchConfiguration)}disconnectedCallback(){this._mediaQuery.removeEventListener("change",(t=>this._setIsMobile(t)))}async _initModules(){const[t,i,s]=await c(["esri/geometry/geometryEngine","esri/symbols/support/jsonUtils","esri/Graphic"]);this._geometryEngine=t,this._jsonUtils=i,this.Graphic=s}_initSearchConfiguration(t){this.searchConfiguration&&!this._searchConfiguration&&this.mapView&&(this._searchConfiguration=t,this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}_initSymbols(){this._setLineSymbol(this.sketchLineSymbol),this._setPointSymbol(this.sketchPointSymbol),this._setPolygonSymbol(this.sketchPolygonSymbol)}_setLineSymbol(t){this.sketchLineSymbol="simple-line"===(null==t?void 0:t.type)?t:this._jsonUtils.fromJSON(t||{type:"esriSLS",color:[130,130,130,255],width:2,style:"esriSLSSolid"})}_setPointSymbol(t){this.sketchPointSymbol="simple-marker"===(null==t?void 0:t.type)?t:this._jsonUtils.fromJSON(t||{type:"esriSMS",color:[255,255,255,255],angle:0,xoffset:0,yoffset:0,size:6,style:"esriSMSCircle",outline:{type:"esriSLS",color:[50,50,50,255],width:1,style:"esriSLSSolid"}})}_setPolygonSymbol(t){this.sketchPolygonSymbol="simple-fill"===(null==t?void 0:t.type)?t:this._jsonUtils.fromJSON(t||{type:"esriSFS",color:[150,150,150,51],outline:{type:"esriSLS",color:[50,50,50,255],width:2,style:"esriSLSSolid"},style:"esriSFSSolid"})}_setIsMobile(t){this._isMobile=t.matches}_getActionGroup(t,i,s){return e("calcite-action-group",{class:this.showRefineSelection?"w-1-3":"w-1-2",layout:"horizontal"},e("div",{class:"background-override"},e("calcite-action",{active:this._pageType===i,alignment:"center",class:"width-full height-full",compact:!1,icon:t,id:t,onClick:()=>{this._setPageType(i)},text:""})),e("calcite-tooltip",{label:"",placement:"bottom","reference-element":t},e("span",null,s)))}_setPageType(t){this._pageType=t}_getPage(t){let i;switch(t){case n.LIST:i=this._getListPage();break;case n.SELECT:i=this._getSelectPage();break;case n.EXPORT:i=this._getExportPage();break;case n.REFINE:i=this._getRefinePage()}return i}_getListPage(){const t=this._hasSelections();return e("calcite-panel",null,this._getLabel(this._translations.myLists),this._getNotice(t?this._translations.listHasSetsTip:this._translations.selectLayerAndAdd,"padding-sides-1 padding-bottom-1","word-wrap-anywhere"),t?this._getSelectionSetList():this._getOnboardingImage(),e("div",{class:"display-flex padding-1"},e("calcite-button",{onClick:()=>{this._setPageType(n.SELECT)},width:"full"},e("span",{class:"font-weight-500"},this._translations.add))))}_getOnboardingImage(){return e("div",{class:"display-flex padding-sides-1"},e("img",{class:"img-container",src:this._onboardingImageUrl}))}_getSelectionSetList(){return e("div",{class:"padding-top-1-2 padding-bottom-1-2"},e("calcite-list",{class:"list-border margin-sides-1"},this._selectionSets.reduce(((t,i,s)=>{var a;const l=this._getSelectionSetIds(i);let o=!0;return i.workflowType===h.REFINE&&(o=Object.keys(i.refineInfos).reduce(((t,s)=>{const e=i.refineInfos[s];return t+(e.addIds.length+e.removeIds.length)}),0)>0),o&&t.push(e("calcite-list-item",{label:i.label,onClick:()=>this._gotoSelection(i,this.mapView)},e("div",{slot:"content"},e("div",{class:"list-label"},i.label),e("div",{class:"list-description"},null===(a=null==i?void 0:i.layerView)||void 0===a?void 0:a.layer.title),e("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",l.length.toString()))),this._getAction(!0,"pencil","",(t=>this._openSelection(i,t)),!1,"actions-end"),this._getAction(!0,"x","",(t=>this._deleteSelection(s,t)),!1,"actions-end"))),t}),[])))}_getSelectionSetIds(t){return t.workflowType!==h.REFINE?t.selectedIds:Object.keys(t.refineInfos).reduce(((i,s)=>[...i,...t.refineInfos[s].addIds]),[])}_hasSelections(t=!1){let i=[];const s=this._selectionSets.some((t=>{if(t.workflowType===h.REFINE)return i=this._getSelectionSetIds(t),!0}));return t&&s?i.length>0||this._selectionSets.length>1:this._selectionSets.length>0}async _getNumDuplicates(){const t=this._getExportInfos(),i=await b(this.mapView.map,t),s=m(i);return i.length-s.length}_getExportInfos(){return this._selectionSets.reduce(((t,i)=>(i.download&&(i.workflowType!==h.REFINE?this._updateIds(i.layerView.layer.id,i.layerView,i.selectedIds,t):Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];e.addIds.length>0&&this._updateIds(s,e.layerView,e.addIds,t)}))),t)),{})}_updateIds(t,i,s,e){return e[t]?e[t].ids=e[t].ids.concat(s):e[t]={layerView:i,ids:s},e}_getSelectPage(){const t=this._translations.selectSearchTip;return e("calcite-panel",null,this._getLabel(this._translations.stepTwoFull,!0),this._getNotice(t,"padding-1","word-wrap-anywhere"),e("div",null,e("map-select-tools",{bufferColor:this.bufferColor,bufferOutlineColor:this.bufferOutlineColor,class:"font-bold",customLabelEnabled:this.customLabelEnabled,defaultBufferDistance:this.defaultBufferDistance,defaultBufferUnit:this.defaultBufferUnit,enabledLayerIds:this.addresseeLayerIds,isUpdate:!!this._activeSelection,mapView:this.mapView,noResultText:this.noResultText,onSelectionSetChange:t=>this._updateForSelection(t),ref:t=>{this._selectTools=t},searchConfiguration:this._searchConfiguration,selectionLayerIds:this.selectionLayerIds,selectionSet:this._activeSelection,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})),this._getPageNavButtons(this._translations.done,0===this._numSelected,(()=>{this._saveSelection()}),this._translations.cancel,!1,(()=>{this._home()})))}_getExportPage(){const t=this._hasSelections(this.showRefineSelection),i=this._numDuplicates>0?"display-block":"display-none";return e("calcite-panel",null,e("div",null,this._getLabel(this._translations.export,!1),t?e("div",null,this._getNotice(this._translations.exportTip,"padding-sides-1"),this._getLabel(this._translations.exportListsLabel),this._getExportSelectionLists(),e("div",{class:"padding-sides-1 "+i},e("div",{class:"display-flex"},e("calcite-label",{layout:"inline"},e("calcite-checkbox",{ref:t=>{this._removeDuplicates=t}}),e("div",{class:"display-flex"},this._translations.removeDuplicate,e("div",{class:"info-message padding-start-1-2"},e("calcite-input-message",{class:"info-blue margin-top-0",scale:"m"},` ${this._translations.numDuplicates.replace("{{n}}",this._numDuplicates.toString())}`)))),e("calcite-icon",{class:"padding-start-1-2 icon",icon:"question",id:"remove-duplicates-icon",scale:"s"})),e("calcite-popover",{closable:!0,label:"",referenceElement:"remove-duplicates-icon"},e("span",{class:"tooltip-message"},this._translations.duplicatesTip))),e("div",{class:"border-bottom"}),e("div",{class:"padding-top-sides-1"},e("calcite-segmented-control",{class:"w-100",onCalciteSegmentedControlChange:t=>this._exportTypeChange(t),width:"full"},e("calcite-segmented-control-item",{checked:this._exportType===o.PDF,class:"w-50 end-border",value:o.PDF},e("span",{class:"font-weight-500"},this._translations.pdf)),e("calcite-segmented-control-item",{checked:this._exportType===o.CSV,class:"w-50",value:o.CSV},e("span",{class:"font-weight-500"},this._translations.csv)))),e("div",{class:"padding-bottom-1"},this._getExportOptions()),e("div",{class:"padding-1 display-flex"},e("calcite-button",{disabled:!this._downloadActive||this._fetchingData||!this._addMap&&!this._addResults,loading:this._fetchingData,onClick:()=>{this._export()},width:"full"},e("span",{class:"font-weight-500"},this._translations.export)))):this._getNotice(this._translations.downloadNoLists,"padding-sides-1 padding-bottom-1")))}_exportTypeChange(t){this._exportType=t.target.value}_getExportOptions(){const t=this._addTitle?"display-block":"display-none",i=this._addMap?"display-flex":"display-none",s=this._titleValue?this._titleValue:this.defaultExportTitle?this.defaultExportTitle:"",a=this._addResults?"":"display-none";return e("div",{class:this._exportType===o.PDF?"display-block":"display-none"},this._getLabel(this._translations.pdfOptions,!0),e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:"label-margin-0",layout:"inline"},e("calcite-checkbox",{checked:this._addResults,onCalciteCheckboxChange:()=>this._addResults=!this._addResults}),this._translations.addResults)),e("div",{class:`padding-top-sides-1 ${a}`},e("calcite-label",{class:"label-margin-0"},this._translations.selectPDFLabelOption)),e("div",{class:`padding-sides-1 ${a}`},e("pdf-download",{defaultNumLabelsPerPage:parseInt(this.defaultNumLabelsPerPage.toString(),10),disabled:!this._downloadActive,ref:t=>{this._downloadTools=t}})),e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:"label-margin-0",layout:"inline"},e("calcite-checkbox",{checked:this._addTitle,onCalciteCheckboxChange:()=>this._addTitle=!this._addTitle}),this._translations.title)),e("div",{class:t},this._getLabel(this._translations.title,!0,""),e("calcite-input-text",{class:"padding-sides-1",onCalciteInputTextInput:()=>this._changeTitle(),placeholder:this._translations.titlePlaceholder,ref:t=>{this._titleElement=t},value:s})),e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:"label-margin-0",layout:"inline"},e("calcite-checkbox",{checked:this._addMap,onCalciteCheckboxChange:()=>this._handleAddMapChange()}),this._translations.includeMap)),e("div",{class:`padding-top-sides-1 ${i}`},e("calcite-label",{class:"label-margin-0",layout:"inline"},e("calcite-checkbox",{checked:this._exportGraphics,onCalciteCheckboxChange:()=>this._handleExportGraphicsChange()}),this._translations.listGraphics),e("calcite-icon",{class:"padding-start-1-2 icon",icon:"question",id:"list-graphics-icon",scale:"s"}),e("calcite-popover",{closable:!0,label:"",referenceElement:"list-graphics-icon"},e("span",{class:"tooltip-message"},this._translations.listGraphicsTip))))}_handleAddMapChange(){this._addMap=!this._addMap,this._updateExportGraphics()}_handleExportGraphicsChange(){this._exportGraphics=!this._exportGraphics,this._updateExportGraphics()}_getManagedLayer(t){let i;return Object.keys(g.managedLayers).some((s=>{const e=this.mapView.map.layers.findIndex((t=>t.title===s));if(g.managedLayers[s]===t)return i=this.mapView.map.layers.getItemAt(e),!0})),i}_updateExportGraphics(t=!1){!t&&this._exportGraphics&&this._addMap||this._removeExportGraphics(),this._exportGraphics&&this._addMap&&this._addExportGraphics()}_removeExportGraphics(){const t=this._getManagedLayer("sketch"),i=this._getManagedLayer("buffer");t&&t.graphics.removeAll(),i&&i.graphics.removeAll()}_addExportGraphics(){const t=this._getManagedLayer("sketch"),i=this._getManagedLayer("buffer");this._selectionSets.forEach((s=>{if(s.download&&(t&&t.graphics.add(s.sketchGraphic),i)){const t=new this.Graphic({geometry:s.buffer,symbol:{type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}}});i.graphics.add(t)}}))}_getRefinePage(){const t=this._hasSelections();return e("calcite-panel",null,this._getLabel(this._translations.refineSelection),t?e("div",null,this._getNotice(this._translations.refineTip,"padding-sides-1"),e("refine-selection",{enabledLayerIds:this.selectionLayerIds,mapView:this.mapView,selectionSets:this._selectionSets,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})):this._getNotice(this._translations.refineTipNoSelections,"padding-sides-1"))}_getPageNavButtons(t,i,s,a,l,o){return e("div",{class:"padding-bottom-1"},e("div",{class:"display-flex padding-top-sides-1"},e("calcite-button",{disabled:i,onClick:s,width:"full"},e("span",{class:"font-weight-500"},t))),e("div",{class:"display-flex padding-top-1-2 padding-sides-1"},e("calcite-button",{appearance:"outline",disabled:l,onClick:o,width:"full"},e("span",{class:"font-weight-500"},a))))}_changeTitle(){this._titleValue=this._titleElement.value}_getNotice(t,i="padding-1",s=""){return e("calcite-notice",{class:i,icon:"lightbulb",kind:"success",open:!0},e("div",{class:s,slot:"message"},t))}_getLabel(t,i=!1,s="font-bold"){return e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:s+=i?" label-margin-0":""},t))}_getExportSelectionLists(){return this._selectionSets.reduce(((t,i)=>{var s;const a=this._getSelectionSetIds(i),l=i.workflowType!==h.REFINE||a.length>0;return!this._downloadActive&&i.download&&l&&(this._downloadActive=!0),l&&t.push(e("div",{class:"display-flex padding-sides-1 padding-bottom-1"},e("calcite-checkbox",{checked:i.download,class:"align-center",onClick:()=>{this._toggleDownload(i.id)}}),e("calcite-list",{class:"list-border margin-start-1-2 width-full",id:"download-list"},e("calcite-list-item",{disabled:!i.download,label:i.label,onClick:()=>{this._toggleDownload(i.id)}},e("div",{slot:"content"},e("div",{class:"list-label"},i.label),e("div",{class:"list-description"},null===(s=null==i?void 0:i.layerView)||void 0===s?void 0:s.layer.title),e("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",a.length.toString()))))))),t}),[])||e("div",null)}async _toggleDownload(t){let i=!1;this._selectionSets=this._selectionSets.map((s=>(s.download=s.id===t?!s.download:s.download,i=!!s.download||i,s))),this._updateExportGraphics(!0),this._downloadActive=i,this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._fetchingData=!1,await this._highlightFeatures()}async _export(){const t=this._addResults?this._getSelectionIdsAndViews(this._selectionSets,!0):{};if(this._exportType===o.PDF){let i="";if(this._addMap&&this.mapView){const t=await this.mapView.takeScreenshot({width:1500,height:2e3});i=null==t?void 0:t.dataUrl}this._fetchingData=!0,await this._downloadTools.downloadPDF(this.mapView.map,t,this._removeDuplicates.checked,this._addTitle?this._titleElement.value:"",i),this._fetchingData=!1}this._exportType===o.CSV&&(this._fetchingData=!0,await this._downloadTools.downloadCSV(this.mapView.map,t,this._removeDuplicates.checked),this._fetchingData=!1)}_getSelectionIdsAndViews(t,i=!1){return(i?t.filter((t=>t.download)):t).reduce(((t,i)=>{var s;if(i.workflowType===h.REFINE)Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];e.addIds&&(t=this._updateExportInfos(t,e.layerView.layer.id,i.label,e.addIds,e.layerView))}));else{const e=null===(s=null==i?void 0:i.layerView)||void 0===s?void 0:s.layer.id;t=this._updateExportInfos(t,e,i.label,i.selectedIds,i.layerView)}return t}),{})}_updateExportInfos(t,i,s,e,a){return i&&Object.keys(t).indexOf(i)>-1?(t[i].ids=[...new Set([...t[i].ids,...e])],t[i].selectionSetNames.push(s)):i&&(t[i]={ids:e,layerView:a,selectionSetNames:[s]}),t}_getAction(t,i,s,a,l=!1,o=""){return e("calcite-action",{disabled:!t,icon:i,indicator:l,onClick:a,slot:o,text:s})}_updateForSelection(t){this._numSelected=t.detail,this._saveEnabled=this._numSelected>0}async _home(){await this._clearSelection(),this._setPageType(n.LIST)}async _saveSelection(){var t,i;const s=await(null===(t=this._selectTools)||void 0===t?void 0:t.getSelection()),e=null===(i=this._selectTools)||void 0===i?void 0:i.isUpdate;return this._selectionSets=e?this._selectionSets.map((t=>t.id===s.id?s:t)):[...this._selectionSets,s],this._home()}async _clearSelection(){var t;await(null===(t=this._selectTools)||void 0===t?void 0:t.clearSelection()),this._numSelected=0,this._activeSelection=void 0}_deleteSelection(t,i){return i.stopPropagation(),this._selectionSets=this._selectionSets.filter(((i,s)=>{if(s!==t)return i})),this._highlightFeatures()}_gotoSelection(t,i){r(t.selectedIds,t.layerView,i,this.featureHighlightEnabled,this.featureEffect)}_openSelection(t,i){i.stopPropagation(),this._activeSelection=t,this._pageType=t.workflowType===h.REFINE?n.REFINE:n.SELECT}async _highlightFeatures(){this._clearHighlight();const t=this._getSelectionIdsAndViews(this._selectionSets,this._pageType===n.EXPORT),i=Object.keys(t);if(i.length>0)for(let s=0;s<i.length;s++){const e=t[i[s]];g.highlightHandles.push(await p(e.ids,e.layerView,this.mapView))}}_checkPopups(){var t;"boolean"!=typeof this._popupsEnabled&&(this._popupsEnabled=null===(t=this.mapView)||void 0===t?void 0:t.popupEnabled)}_clearHighlight(){g&&g.highlightHandles&&g.removeHandles()}async _getTranslations(){const t=await d(this.el);this._translations=t[0]}get el(){return l(this)}static get watchers(){return{mapView:["mapViewWatchHandler"],searchConfiguration:["watchSearchConfigurationHandler"],sketchLineSymbol:["sketchLineSymbolWatchHandler"],sketchPointSymbol:["sketchPointSymbolWatchHandler"],sketchPolygonSymbol:["sketchPolygonSymbolWatchHandler"],_pageType:["pageTypeWatchHandler"]}}};u.style=':host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{padding-block-start:1rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-sides-1{padding-inline-start:1rem;padding-inline-end:1rem}.padding-end-1-2{padding-inline-end:.5rem}.padding-top-1-2{padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-start-1-2{padding-inline-start:0.5rem}.list-border{border:1px solid var(--calcite-color-border-2)}.margin-sides-1{margin-inline-start:1rem;margin-inline-end:1rem}.margin-start-1-2{margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir="rtl"]{float:left}.float-left{float:left}.float-left[dir="rtl"]{float:right}.margin-top-0{margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-color-foreground-2)}.position-right{position:absolute;right:1rem}.position-right[dir="rtl"]{position:absolute;left:1rem}.label-margin-0{--calcite-label-margin-bottom:0}.list-label{color:var(--calcite-color-text-1)}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{margin-block-start:0.125rem;color:var(--calcite-color-text-3)}.img-container{width:100%;height:100%}.font-weight-500{font-weight:500}.background-override{height:100%;width:100%;--calcite-color-foreground-3:var(--calcite-color-brand);--calcite-color-foreground-2:var(--calcite-color-brand-hover);--calcite-color-text-1:var(--calcite-color-text-inverse)}.word-wrap-anywhere{word-wrap:anywhere}';export{u as public_notification}
6
+ import{r as t,c as i,a as s,h as e,H as a,g as l}from"./p-6d753a3d.js";import{b as o,c as n,a as h}from"./p-c1cf3ebc.js";import{l as c,g as d}from"./p-896c9644.js";import{e as r,h as p}from"./p-583e5dd0.js";import{s as g}from"./p-f22a4439.js";import{c as b,r as m}from"./p-37fc92db.js";import"./p-82e085d0.js";import"./p-bdcf99c0.js";import"./p-334e6394.js";import"./p-a230b270.js";import"./p-530b73ce.js";const u=class{constructor(s){t(this,s),this.searchConfigurationChange=i(this,"searchConfigurationChange",7),this._onboardingImageUrl="",this._titleValue=void 0,this._numSelected=0,this.addresseeLayerIds=[],this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=void 0,this.defaultBufferDistance=void 0,this.defaultBufferUnit=void 0,this.defaultExportTitle="",this.defaultNumLabelsPerPage=6,this.featureEffect=void 0,this.featureHighlightEnabled=void 0,this.mapView=void 0,this.noResultText=void 0,this.searchConfiguration=void 0,this.selectionLayerIds=[],this.showRefineSelection=!1,this.showSearchSettings=!0,this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._exportGraphics=!1,this._addMap=!1,this._addResults=!0,this._addTitle=!1,this._downloadActive=!0,this._exportType=o.PDF,this._fetchingData=!1,this._isMobile=void 0,this._numDuplicates=0,this._pageType=n.LIST,this._saveEnabled=!1,this._selectionSets=[],this._translations=void 0}async mapViewWatchHandler(t){(null==t?void 0:t.popup)&&(this._popupsEnabled=null==t?void 0:t.popup.autoOpenEnabled),this._initSearchConfiguration(this.searchConfiguration)}async watchSearchConfigurationHandler(t,i){const s=JSON.stringify(t);this.mapView&&(s!==JSON.stringify(i)||s&&!this._searchConfiguration)&&(this._searchConfiguration=JSON.parse(s),this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}async sketchLineSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setLineSymbol(t)}async sketchPointSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPointSymbol(t)}async sketchPolygonSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPolygonSymbol(t)}async pageTypeWatchHandler(t,i){var s;if(this._checkPopups(),(null===(s=this.mapView)||void 0===s?void 0:s.popup)&&(this.mapView.popupEnabled=t===n.LIST&&this._popupsEnabled),t===n.EXPORT&&(this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._updateExportGraphics(),this._fetchingData=!1),this._clearHighlight(),i!==n.SELECT&&i!==n.REFINE||await this._clearSelection(),i===n.EXPORT&&this._removeExportGraphics(),t!==n.SELECT)return this._highlightFeatures()}selectionSetsChanged(t){this._selectionSets=[...t.detail]}connectedCallback(){this._mediaQuery=window.matchMedia("(max-width: 600px)"),this._mediaQuery.addEventListener("change",(t=>this._setIsMobile(t)))}async componentWillLoad(){await this._getTranslations(),await this._initModules(),this._initSymbols(),this._onboardingImageUrl=s("../assets/data/images/onboarding.png")}render(){return e(a,{key:"f1c63a73ac0190a43790d5d907e7dafeaf8b18f0"},e("calcite-shell",{key:"759d2ebecc5dfc197b2fa02f35c8a06e99afaaa5"},e("calcite-action-bar",{key:"d2b076b51812d31f69a6c06e41a4cc9e56567295",class:"border-bottom-1 action-bar-size","expand-disabled":!0,layout:"horizontal",slot:this._isMobile?"footer":"header"},this._getActionGroup("list-check",n.LIST,this._translations.myLists),this.showRefineSelection?this._getActionGroup("test-data",n.REFINE,this._translations.refineSelection):null,this._getActionGroup("export",n.EXPORT,this._translations.export)),this._getPage(this._pageType)))}async componentDidLoad(){this._initSearchConfiguration(this.searchConfiguration)}disconnectedCallback(){this._mediaQuery.removeEventListener("change",(t=>this._setIsMobile(t)))}async _initModules(){const[t,i,s]=await c(["esri/geometry/geometryEngine","esri/symbols/support/jsonUtils","esri/Graphic"]);this._geometryEngine=t,this._jsonUtils=i,this.Graphic=s}_initSearchConfiguration(t){this.searchConfiguration&&!this._searchConfiguration&&this.mapView&&(this._searchConfiguration=t,this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}_initSymbols(){this._setLineSymbol(this.sketchLineSymbol),this._setPointSymbol(this.sketchPointSymbol),this._setPolygonSymbol(this.sketchPolygonSymbol)}_setLineSymbol(t){this.sketchLineSymbol="simple-line"===(null==t?void 0:t.type)?t:this._jsonUtils.fromJSON(t||{type:"esriSLS",color:[130,130,130,255],width:2,style:"esriSLSSolid"})}_setPointSymbol(t){this.sketchPointSymbol="simple-marker"===(null==t?void 0:t.type)?t:this._jsonUtils.fromJSON(t||{type:"esriSMS",color:[255,255,255,255],angle:0,xoffset:0,yoffset:0,size:6,style:"esriSMSCircle",outline:{type:"esriSLS",color:[50,50,50,255],width:1,style:"esriSLSSolid"}})}_setPolygonSymbol(t){this.sketchPolygonSymbol="simple-fill"===(null==t?void 0:t.type)?t:this._jsonUtils.fromJSON(t||{type:"esriSFS",color:[150,150,150,51],outline:{type:"esriSLS",color:[50,50,50,255],width:2,style:"esriSLSSolid"},style:"esriSFSSolid"})}_setIsMobile(t){this._isMobile=t.matches}_getActionGroup(t,i,s){return e("calcite-action-group",{class:this.showRefineSelection?"w-1-3":"w-1-2",layout:"horizontal"},e("div",{class:"background-override"},e("calcite-action",{active:this._pageType===i,alignment:"center",class:"width-full height-full",compact:!1,icon:t,id:t,onClick:()=>{this._setPageType(i)},text:""})),e("calcite-tooltip",{label:"",placement:"bottom","reference-element":t},e("span",null,s)))}_setPageType(t){this._pageType=t}_getPage(t){let i;switch(t){case n.LIST:i=this._getListPage();break;case n.SELECT:i=this._getSelectPage();break;case n.EXPORT:i=this._getExportPage();break;case n.REFINE:i=this._getRefinePage()}return i}_getListPage(){const t=this._hasSelections();return e("calcite-panel",null,this._getLabel(this._translations.myLists),this._getNotice(t?this._translations.listHasSetsTip:this._translations.selectLayerAndAdd,"padding-sides-1 padding-bottom-1","word-wrap-anywhere"),t?this._getSelectionSetList():this._getOnboardingImage(),e("div",{class:"display-flex padding-1"},e("calcite-button",{onClick:()=>{this._setPageType(n.SELECT)},width:"full"},e("span",{class:"font-weight-500"},this._translations.add))))}_getOnboardingImage(){return e("div",{class:"display-flex padding-sides-1"},e("img",{class:"img-container",src:this._onboardingImageUrl}))}_getSelectionSetList(){return e("div",{class:"padding-top-1-2 padding-bottom-1-2"},e("calcite-list",{class:"list-border margin-sides-1"},this._selectionSets.reduce(((t,i,s)=>{var a;const l=this._getSelectionSetIds(i);let o=!0;return i.workflowType===h.REFINE&&(o=Object.keys(i.refineInfos).reduce(((t,s)=>{const e=i.refineInfos[s];return t+(e.addIds.length+e.removeIds.length)}),0)>0),o&&t.push(e("calcite-list-item",{label:i.label,onClick:()=>this._gotoSelection(i,this.mapView)},e("div",{slot:"content"},e("div",{class:"list-label"},i.label),e("div",{class:"list-description"},null===(a=null==i?void 0:i.layerView)||void 0===a?void 0:a.layer.title),e("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",l.length.toString()))),this._getAction(!0,"pencil","",(t=>this._openSelection(i,t)),!1,"actions-end"),this._getAction(!0,"x","",(t=>this._deleteSelection(s,t)),!1,"actions-end"))),t}),[])))}_getSelectionSetIds(t){return t.workflowType!==h.REFINE?t.selectedIds:Object.keys(t.refineInfos).reduce(((i,s)=>[...i,...t.refineInfos[s].addIds]),[])}_hasSelections(t=!1){let i=[];const s=this._selectionSets.some((t=>{if(t.workflowType===h.REFINE)return i=this._getSelectionSetIds(t),!0}));return t&&s?i.length>0||this._selectionSets.length>1:this._selectionSets.length>0}async _getNumDuplicates(){const t=this._getExportInfos(),i=await b(this.mapView.map,t),s=m(i);return i.length-s.length}_getExportInfos(){return this._selectionSets.reduce(((t,i)=>(i.download&&(i.workflowType!==h.REFINE?this._updateIds(i.layerView.layer.id,i.layerView,i.selectedIds,t):Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];e.addIds.length>0&&this._updateIds(s,e.layerView,e.addIds,t)}))),t)),{})}_updateIds(t,i,s,e){return e[t]?e[t].ids=e[t].ids.concat(s):e[t]={layerView:i,ids:s},e}_getSelectPage(){const t=this._translations.selectSearchTip;return e("calcite-panel",null,this._getLabel(this._translations.stepTwoFull,!0),this._getNotice(t,"padding-1","word-wrap-anywhere"),e("div",null,e("map-select-tools",{bufferColor:this.bufferColor,bufferOutlineColor:this.bufferOutlineColor,class:"font-bold",customLabelEnabled:this.customLabelEnabled,defaultBufferDistance:this.defaultBufferDistance,defaultBufferUnit:this.defaultBufferUnit,enabledLayerIds:this.addresseeLayerIds,isUpdate:!!this._activeSelection,mapView:this.mapView,noResultText:this.noResultText,onSelectionSetChange:t=>this._updateForSelection(t),ref:t=>{this._selectTools=t},searchConfiguration:this._searchConfiguration,selectionLayerIds:this.selectionLayerIds,selectionSet:this._activeSelection,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})),this._getPageNavButtons(this._translations.done,0===this._numSelected,(()=>{this._saveSelection()}),this._translations.cancel,!1,(()=>{this._home()})))}_getExportPage(){const t=this._hasSelections(this.showRefineSelection),i=this._numDuplicates>0?"display-block":"display-none";return e("calcite-panel",null,e("div",null,this._getLabel(this._translations.export,!1),t?e("div",null,this._getNotice(this._translations.exportTip,"padding-sides-1"),this._getLabel(this._translations.exportListsLabel),this._getExportSelectionLists(),e("div",{class:"padding-sides-1 "+i},e("div",{class:"display-flex"},e("calcite-label",{layout:"inline"},e("calcite-checkbox",{ref:t=>{this._removeDuplicates=t}}),e("div",{class:"display-flex"},this._translations.removeDuplicate,e("div",{class:"info-message padding-start-1-2"},e("calcite-input-message",{class:"info-blue margin-top-0",scale:"m"},` ${this._translations.numDuplicates.replace("{{n}}",this._numDuplicates.toString())}`)))),e("calcite-icon",{class:"padding-start-1-2 icon",icon:"question",id:"remove-duplicates-icon",scale:"s"})),e("calcite-popover",{closable:!0,label:"",referenceElement:"remove-duplicates-icon"},e("span",{class:"tooltip-message"},this._translations.duplicatesTip))),e("div",{class:"border-bottom"}),e("div",{class:"padding-top-sides-1"},e("calcite-segmented-control",{class:"w-100",onCalciteSegmentedControlChange:t=>this._exportTypeChange(t),width:"full"},e("calcite-segmented-control-item",{checked:this._exportType===o.PDF,class:"w-50 end-border",value:o.PDF},e("span",{class:"font-weight-500"},this._translations.pdf)),e("calcite-segmented-control-item",{checked:this._exportType===o.CSV,class:"w-50",value:o.CSV},e("span",{class:"font-weight-500"},this._translations.csv)))),e("div",{class:"padding-bottom-1"},this._getExportOptions()),e("div",{class:"padding-1 display-flex"},e("calcite-button",{disabled:!this._downloadActive||this._fetchingData||!this._addMap&&!this._addResults,loading:this._fetchingData,onClick:()=>{this._export()},width:"full"},e("span",{class:"font-weight-500"},this._translations.export)))):this._getNotice(this._translations.downloadNoLists,"padding-sides-1 padding-bottom-1")))}_exportTypeChange(t){this._exportType=t.target.value}_getExportOptions(){const t=this._addTitle?"display-block":"display-none",i=this._addMap?"display-flex":"display-none",s=this._titleValue?this._titleValue:this.defaultExportTitle?this.defaultExportTitle:"",a=this._addResults?"":"display-none";return e("div",{class:this._exportType===o.PDF?"display-block":"display-none"},this._getLabel(this._translations.pdfOptions,!0),e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:"label-margin-0",layout:"inline"},e("calcite-checkbox",{checked:this._addResults,onCalciteCheckboxChange:()=>this._addResults=!this._addResults}),this._translations.addResults)),e("div",{class:`padding-top-sides-1 ${a}`},e("calcite-label",{class:"label-margin-0"},this._translations.selectPDFLabelOption)),e("div",{class:`padding-sides-1 ${a}`},e("pdf-download",{defaultNumLabelsPerPage:parseInt(this.defaultNumLabelsPerPage.toString(),10),disabled:!this._downloadActive,ref:t=>{this._downloadTools=t}})),e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:"label-margin-0",layout:"inline"},e("calcite-checkbox",{checked:this._addTitle,onCalciteCheckboxChange:()=>this._addTitle=!this._addTitle}),this._translations.title)),e("div",{class:t},this._getLabel(this._translations.title,!0,""),e("calcite-input-text",{class:"padding-sides-1",onCalciteInputTextInput:()=>this._changeTitle(),placeholder:this._translations.titlePlaceholder,ref:t=>{this._titleElement=t},value:s})),e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:"label-margin-0",layout:"inline"},e("calcite-checkbox",{checked:this._addMap,onCalciteCheckboxChange:()=>this._handleAddMapChange()}),this._translations.includeMap)),e("div",{class:`padding-top-sides-1 ${i}`},e("calcite-label",{class:"label-margin-0",layout:"inline"},e("calcite-checkbox",{checked:this._exportGraphics,onCalciteCheckboxChange:()=>this._handleExportGraphicsChange()}),this._translations.listGraphics),e("calcite-icon",{class:"padding-start-1-2 icon",icon:"question",id:"list-graphics-icon",scale:"s"}),e("calcite-popover",{closable:!0,label:"",referenceElement:"list-graphics-icon"},e("span",{class:"tooltip-message"},this._translations.listGraphicsTip))))}_handleAddMapChange(){this._addMap=!this._addMap,this._updateExportGraphics()}_handleExportGraphicsChange(){this._exportGraphics=!this._exportGraphics,this._updateExportGraphics()}_getManagedLayer(t){let i;return Object.keys(g.managedLayers).some((s=>{const e=this.mapView.map.layers.findIndex((t=>t.title===s));if(g.managedLayers[s]===t)return i=this.mapView.map.layers.getItemAt(e),!0})),i}_updateExportGraphics(t=!1){!t&&this._exportGraphics&&this._addMap||this._removeExportGraphics(),this._exportGraphics&&this._addMap&&this._addExportGraphics()}_removeExportGraphics(){const t=this._getManagedLayer("sketch"),i=this._getManagedLayer("buffer");t&&t.graphics.removeAll(),i&&i.graphics.removeAll()}_addExportGraphics(){const t=this._getManagedLayer("sketch"),i=this._getManagedLayer("buffer");this._selectionSets.forEach((s=>{if(s.download&&(t&&t.graphics.add(s.sketchGraphic),i)){const t=new this.Graphic({geometry:s.buffer,symbol:{type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}}});i.graphics.add(t)}}))}_getRefinePage(){const t=this._hasSelections();return e("calcite-panel",null,this._getLabel(this._translations.refineSelection),t?e("div",null,this._getNotice(this._translations.refineTip,"padding-sides-1"),e("refine-selection",{enabledLayerIds:this.selectionLayerIds,mapView:this.mapView,selectionSets:this._selectionSets,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})):this._getNotice(this._translations.refineTipNoSelections,"padding-sides-1"))}_getPageNavButtons(t,i,s,a,l,o){return e("div",{class:"padding-bottom-1"},e("div",{class:"display-flex padding-top-sides-1"},e("calcite-button",{disabled:i,onClick:s,width:"full"},e("span",{class:"font-weight-500"},t))),e("div",{class:"display-flex padding-top-1-2 padding-sides-1"},e("calcite-button",{appearance:"outline",disabled:l,onClick:o,width:"full"},e("span",{class:"font-weight-500"},a))))}_changeTitle(){this._titleValue=this._titleElement.value}_getNotice(t,i="padding-1",s=""){return e("calcite-notice",{class:i,icon:"lightbulb",kind:"success",open:!0},e("div",{class:s,slot:"message"},t))}_getLabel(t,i=!1,s="font-bold"){return e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:s+=i?" label-margin-0":""},t))}_getExportSelectionLists(){return this._selectionSets.reduce(((t,i)=>{var s;const a=this._getSelectionSetIds(i),l=i.workflowType!==h.REFINE||a.length>0;return!this._downloadActive&&i.download&&l&&(this._downloadActive=!0),l&&t.push(e("div",{class:"display-flex padding-sides-1 padding-bottom-1"},e("calcite-checkbox",{checked:i.download,class:"align-center",onClick:()=>{this._toggleDownload(i.id)}}),e("calcite-list",{class:"list-border margin-start-1-2 width-full",id:"download-list"},e("calcite-list-item",{disabled:!i.download,label:i.label,onClick:()=>{this._toggleDownload(i.id)}},e("div",{slot:"content"},e("div",{class:"list-label"},i.label),e("div",{class:"list-description"},null===(s=null==i?void 0:i.layerView)||void 0===s?void 0:s.layer.title),e("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",a.length.toString()))))))),t}),[])||e("div",null)}async _toggleDownload(t){let i=!1;this._selectionSets=this._selectionSets.map((s=>(s.download=s.id===t?!s.download:s.download,i=!!s.download||i,s))),this._updateExportGraphics(!0),this._downloadActive=i,this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._fetchingData=!1,await this._highlightFeatures()}async _export(){const t=this._addResults?this._getSelectionIdsAndViews(this._selectionSets,!0):{};if(this._exportType===o.PDF){let i="";if(this._addMap&&this.mapView){const t=await this.mapView.takeScreenshot({width:1500,height:2e3});i=null==t?void 0:t.dataUrl}this._fetchingData=!0,await this._downloadTools.downloadPDF(this.mapView.map,t,this._removeDuplicates.checked,this._addTitle?this._titleElement.value:"",i),this._fetchingData=!1}this._exportType===o.CSV&&(this._fetchingData=!0,await this._downloadTools.downloadCSV(this.mapView.map,t,this._removeDuplicates.checked),this._fetchingData=!1)}_getSelectionIdsAndViews(t,i=!1){return(i?t.filter((t=>t.download)):t).reduce(((t,i)=>{var s;if(i.workflowType===h.REFINE)Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];e.addIds&&(t=this._updateExportInfos(t,e.layerView.layer.id,i.label,e.addIds,e.layerView))}));else{const e=null===(s=null==i?void 0:i.layerView)||void 0===s?void 0:s.layer.id;t=this._updateExportInfos(t,e,i.label,i.selectedIds,i.layerView)}return t}),{})}_updateExportInfos(t,i,s,e,a){return i&&Object.keys(t).indexOf(i)>-1?(t[i].ids=[...new Set([...t[i].ids,...e])],t[i].selectionSetNames.push(s)):i&&(t[i]={ids:e,layerView:a,selectionSetNames:[s]}),t}_getAction(t,i,s,a,l=!1,o=""){return e("calcite-action",{disabled:!t,icon:i,indicator:l,onClick:a,slot:o,text:s})}_updateForSelection(t){this._numSelected=t.detail,this._saveEnabled=this._numSelected>0}async _home(){await this._clearSelection(),this._setPageType(n.LIST)}async _saveSelection(){var t,i;const s=await(null===(t=this._selectTools)||void 0===t?void 0:t.getSelection()),e=null===(i=this._selectTools)||void 0===i?void 0:i.isUpdate;return this._selectionSets=e?this._selectionSets.map((t=>t.id===s.id?s:t)):[...this._selectionSets,s],this._home()}async _clearSelection(){var t;await(null===(t=this._selectTools)||void 0===t?void 0:t.clearSelection()),this._numSelected=0,this._activeSelection=void 0}_deleteSelection(t,i){return i.stopPropagation(),this._selectionSets=this._selectionSets.filter(((i,s)=>{if(s!==t)return i})),this._highlightFeatures()}_gotoSelection(t,i){r(t.selectedIds,t.layerView,i,this.featureHighlightEnabled,this.featureEffect)}_openSelection(t,i){i.stopPropagation(),this._activeSelection=t,this._pageType=t.workflowType===h.REFINE?n.REFINE:n.SELECT}async _highlightFeatures(){this._clearHighlight();const t=this._getSelectionIdsAndViews(this._selectionSets,this._pageType===n.EXPORT),i=Object.keys(t);if(i.length>0)for(let s=0;s<i.length;s++){const e=t[i[s]];g.highlightHandles.push(await p(e.ids,e.layerView,this.mapView))}}_checkPopups(){var t;"boolean"!=typeof this._popupsEnabled&&(this._popupsEnabled=null===(t=this.mapView)||void 0===t?void 0:t.popupEnabled)}_clearHighlight(){g&&g.highlightHandles&&g.removeHandles()}async _getTranslations(){const t=await d(this.el);this._translations=t[0]}get el(){return l(this)}static get watchers(){return{mapView:["mapViewWatchHandler"],searchConfiguration:["watchSearchConfigurationHandler"],sketchLineSymbol:["sketchLineSymbolWatchHandler"],sketchPointSymbol:["sketchPointSymbolWatchHandler"],sketchPolygonSymbol:["sketchPolygonSymbolWatchHandler"],_pageType:["pageTypeWatchHandler"]}}};u.style=':host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{padding-block-start:1rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-sides-1{padding-inline-start:1rem;padding-inline-end:1rem}.padding-end-1-2{padding-inline-end:.5rem}.padding-top-1-2{padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-start-1-2{padding-inline-start:0.5rem}.list-border{border:1px solid var(--calcite-color-border-2)}.margin-sides-1{margin-inline-start:1rem;margin-inline-end:1rem}.margin-start-1-2{margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir="rtl"]{float:left}.float-left{float:left}.float-left[dir="rtl"]{float:right}.margin-top-0{margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-color-foreground-2)}.position-right{position:absolute;right:1rem}.position-right[dir="rtl"]{position:absolute;left:1rem}.label-margin-0{--calcite-label-margin-bottom:0}.list-label{color:var(--calcite-color-text-1)}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{margin-block-start:0.125rem;color:var(--calcite-color-text-3)}.img-container{width:100%;height:100%}.font-weight-500{font-weight:500}.background-override{height:100%;width:100%;--calcite-color-foreground-3:var(--calcite-color-brand);--calcite-color-foreground-2:var(--calcite-color-brand-hover);--calcite-color-text-1:var(--calcite-color-text-inverse)}.word-wrap-anywhere{word-wrap:anywhere}';export{u as public_notification}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{r as e,h as s,H as r,g as t}from"./p-6d753a3d.js";const a=class{constructor(s){e(this,s)}render(){return s(r,{key:"850d0a10f8c3e2f35abdd1a07f00c4ff04ab9f76"},s("slot",{key:"c1c1e3fceff2787447a2dbd3568c497cd050195b"}))}get el(){return t(this)}};a.style=":host{display:block}";export{a as refine_results_flow_item}
@@ -3,4 +3,4 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as i,c as t,h as e,H as s,g as o}from"./p-6d753a3d.js";import{g as h}from"./p-896c9644.js";import{E as l}from"./p-c1cf3ebc.js";import{g as a}from"./p-d9c89479.js";import"./p-82e085d0.js";const d=class{constructor(e){i(this,e),this.infoIconButtonClick=t(this,"infoIconButtonClick",7),this._defaultCenterHonored=!1,this._defaultLevelHonored=!1,this._shouldSetMapView=!1,this.appProxies=void 0,this.basemapConfig=void 0,this.defaultCenter="",this.defaultGlobalId="",this.defaultLayer="",this.defaultLevel="",this.defaultOid="",this.defaultWebmap="",this.enableAutoRefresh=!1,this.enableBasemap=!0,this.enableColumnReorder=!0,this.enableCSV=!0,this.enableFloorFilter=!0,this.enableFullscreen=!0,this.enableHome=!0,this.enableInlineEdit=!1,this.enableLegend=!0,this.enableSearch=!0,this.enableShare=!1,this.enableZoom=!0,this.hideMapOnLoad=!1,this.mapInfos=[],this.onlyShowUpdatableLayers=!0,this.popupHeaderColor=void 0,this.popupHeaderHoverColor=void 0,this.popupHeaderHoverTextColor=void 0,this.popupHeaderTextColor=void 0,this.searchConfiguration=void 0,this.shareIncludeEmbed=void 0,this.shareIncludeSocial=void 0,this.showNewestFirst=!0,this.theme="light",this.zoomAndScrollToSelected=!1,this.zoomToScale=void 0,this.sortField=void 0,this.sortOrder=void 0,this._expandPopup=this.hideMapOnLoad,this._hideFooter=!1,this._hideTable=!1,this._isMobile=void 0,this._translations=void 0,this._layer=void 0,this._layoutMode=l.GRID,this._mapInfo=void 0,this._mapView=void 0,this._panelOpen=!0,this._numSelected=0,this._tableOnly=!1}enableZoomWatchHandler(){this._initMapZoom()}async featureSelectionChange(i){var t;this._numSelected=null===(t=i.detail)||void 0===t?void 0:t.length}async popupClosed(){this._isMobile&&this.showHideMapPopupAndTable(!1)}async idsFound(i){const t=i.detail;this._tableOnly=t.tableIds.length>0&&0===t.layerIds.length,this._tableOnly&&(this._expandPopup=!0)}async layoutChanged(i){this._layoutMode=i.detail}async mapChanged(i){this._mapChange=i.detail,await this._mapChange.mapView.when((async()=>{await this._setMapView()}))}async beforeMapChanged(){this._expandPopup&&(this._shouldSetMapView=!0)}async layerSelectionChange(i){const t=i.detail[0],e=await a(this._mapView,t);await e.when((()=>{this._layer=e}))}async mapInfoChange(){this._expandPopup=this.hideMapOnLoad}async componentWillLoad(){await this._getTranslations(),this._resizeObserver=new ResizeObserver((()=>this._onResize()))}render(){return e(s,{key:"528818cf99038897353a4390ccf60ed85b676f2e"},e("calcite-shell",{key:"0389bc8f242c64983629840301b9da5cdb442673",class:"position-relative"},e("calcite-panel",{key:"bd0f33a38c6cc3cbd15e3adcbc76929682f6428e",class:"width-full height-full border-width-0"},this._getBody(this._layoutMode,this._panelOpen,this._hideTable)),this._getFooter()))}async componentDidRender(){this._shouldSetMapView&&(this._shouldSetMapView=!1,await this._setMapView())}async componentDidLoad(){this._resizeObserver.observe(this.el)}_getFooter(){var i,t,s,o;const h=(null===(i=this._layer)||void 0===i?void 0:i.editingEnabled)&&(null===(o=null===(s=null===(t=this._layer)||void 0===t?void 0:t.capabilities)||void 0===s?void 0:s.operations)||void 0===o?void 0:o.supportsDelete);return this._isMobile&&this._numSelected>0&&!this._hideFooter?e("div",{class:"width-100",slot:"footer"},e("div",{class:"display-flex padding-1-2"},e("calcite-button",{appearance:"solid",id:"solutions-show",onClick:()=>this.showHideMapPopupAndTable(!0),width:"full"},this._translations.view.replace("{{n}}",this._numSelected.toString())),h?e("delete-button",{class:"padding-inline-start-1 width-full",id:"solutions-delete",ids:this._layerTable.selectedIds,layer:this._layer}):void 0)):void 0}_getDividerIcon(i,t){let e="";switch(i){case l.HORIZONTAL:e=t?"chevrons-up":"chevrons-down";break;case l.VERTICAL:case l.GRID:e=t?"chevrons-left":"chevrons-right"}return e}_getMapSizeClass(i,t,e){let s="";switch(i){case l.HORIZONTAL:s=(t&&!e?"height-1-2 display-grid":t&&e?"height-full":"height-0")+" width-full position-relative";break;case l.GRID:s="height-full position-relative "+(t?"width-1-3":"width-0");break;case l.VERTICAL:s="height-full position-relative "+(t?"width-1-2":"width-0")}return s}_getTableSizeClass(i,t){let e="";switch(i){case l.HORIZONTAL:e=(t?"height-1-2":"height-full")+" width-full display-flex flex-column";break;case l.GRID:e=(t?"width-2-3":"width-full")+" height-full display-flex";break;case l.VERTICAL:e=(t?"width-1-2":"width-full")+" height-full display-flex"}return e}_getBody(i,t,s){const o="dark"===this.theme?"calcite-mode-dark":"calcite-mode-light";return e("calcite-panel",{class:"width-full height-full"},e("div",{class:"width-full height-full overflow-hidden "+(i===l.HORIZONTAL?"":"display-flex")},this._getMapAndCard(i,t,s),this._getTable(i,t,s)),e("div",{class:"floating-container",onClick:this.infoButtonClick.bind(this)},e("calcite-button",{appearance:"solid",class:`floating-button ${o}`,"icon-start":"information-letter",kind:"neutral",label:"",round:!0,scale:"l","split-child":"primary",width:"auto"})))}infoButtonClick(){this.infoIconButtonClick.emit()}_getMapAndCard(i,t,s){const o=this._getMapSizeClass(i,t,s);return e("div",{class:`${o} overflow-hidden`},this._getMapNode(t),this._getPopupExpandNode())}_getMapNode(i){var t;return e("div",{class:(this._layoutMode!==l.HORIZONTAL||this._isMobile&&!i?"adjusted-height-50":"")+" overflow-hidden"},e("map-card",{appProxies:this.appProxies,basemapConfig:this.basemapConfig,class:"width-full",defaultWebmapId:this.defaultWebmap,enableBasemap:this.enableBasemap,enableFloorFilter:this.enableFloorFilter,enableFullscreen:this.enableFullscreen,enableHome:this.enableHome,enableLegend:this.enableLegend,enableSearch:this.enableSearch,enableSingleExpand:!0,hidden:this._expandPopup&&!this._isMobile,homeZoomIndex:3,homeZoomPosition:"top-left",homeZoomToolsSize:"s",mapInfos:null===(t=this.mapInfos)||void 0===t?void 0:t.filter((i=>!1!==i.visible)),mapWidgetsIndex:0,mapWidgetsPosition:"top-right",mapWidgetsSize:"m",stackTools:!0,theme:this.theme,toolOrder:["legend","search","fullscreen","basemap","floorfilter"]}))}_getPopupExpandNode(){var i;const t=this._expandPopup?"chevrons-down":"chevrons-up",s="expand-popup",o=this._expandPopup?this._translations.collapsePopup:this._translations.expandPopup,h="dark"===this.theme?"calcite-mode-dark":"calcite-mode-light",l=this._expandPopup?1===(null===(i=this.mapInfos)||void 0===i?void 0:i.length)||this._isMobile?"position-absolute-0":"position-absolute-50":"height-full",a=this._isMobile?"display-none height-0":"";return e("div",{class:`${this.popupHeaderColor?"":this._isMobile?"calcite-mode-light":"calcite-mode-dark"} ${l} ${this._isMobile&&this._hideTable?"position-absolute-0 width-full height-full":this._isMobile?"display-none height-0":""}`,style:{"--calcite-color-foreground-1":this.popupHeaderColor,"--calcite-color-foreground-2":this.popupHeaderHoverColor,"--calcite-color-text-3":this.popupHeaderHoverTextColor,"--calcite-color-text-2":this.popupHeaderTextColor}},e("calcite-panel",null,this._isMobile?void 0:e("div",{class:`display-flex align-items-center ${a}`,slot:"header-content"},e("calcite-icon",{icon:"information",scale:"s"}),e("div",{class:"padding-inline-start-75"},this._translations.information)),e("calcite-action",{class:a,disabled:this._tableOnly,icon:t,id:s,onClick:()=>this._togglePopup(),slot:"header-actions-end",text:""}),this._tableOnly?void 0:e("calcite-tooltip",{class:h,label:"",placement:"bottom","reference-element":s},e("span",null,o)),this._getCardNode()))}_togglePopup(){this._expandPopup=!this._expandPopup}_getCardNode(){return e("div",{class:"width-50 height-full "+("dark"===this.theme?"calcite-mode-dark":"calcite-mode-light")},e("card-manager",{class:(this._expandPopup||this._isMobile?"height-full":"height-50")+" width-full",isMobile:this._isMobile,mapView:null==this?void 0:this._mapView,zoomAndScrollToSelected:this.zoomAndScrollToSelected}))}_getTable(i,t,s){var o,h;const a=s&&this._isMobile?"visibility-hidden":"",d=this._getTableSizeClass(i,t),n=this._getDividerIcon(i,t),r=t?this._translations.close:this._translations.open,c="toggle-layout",p=i===l.HORIZONTAL?"horizontal":"vertical",g=i===l.HORIZONTAL?"header":"panel-start",u=this.defaultWebmap&&this.defaultLayer,f=this.defaultGlobalId?(null===(o=this.defaultGlobalId)||void 0===o?void 0:o.indexOf(","))>-1?this.defaultGlobalId.split(","):[this.defaultGlobalId]:void 0,b=this.defaultOid?(null===(h=this.defaultOid)||void 0===h?void 0:h.indexOf(","))>-1?this.defaultOid.split(",").map((i=>parseInt(i,10))):[parseInt(this.defaultOid,10)]:void 0;return e("calcite-shell",{class:`${d} ${a} border-bottom`},this._isMobile?void 0:e("calcite-action-bar",{class:"border-sides",expandDisabled:!0,layout:p,slot:g},e("calcite-action",{class:"toggle-node",icon:n,id:c,onClick:()=>this._toggleLayout(),text:""}),e("calcite-tooltip",{label:r,placement:"bottom","reference-element":c},e("span",null,r))),e("div",{class:"width-full height-full position-relative"},e("layer-table",{defaultGlobalId:u?f:void 0,defaultLayerId:u?this.defaultLayer:"",defaultOid:u&&!f?b:void 0,enableAutoRefresh:this.enableAutoRefresh,enableCSV:this.enableCSV,enableColumnReorder:this.enableColumnReorder,enableInlineEdit:this.enableInlineEdit,enableShare:this.enableShare,isMobile:this._isMobile,mapInfo:this._mapInfo,mapView:null==this?void 0:this._mapView,onlyShowUpdatableLayers:this.onlyShowUpdatableLayers,ref:i=>this._layerTable=i,shareIncludeEmbed:this.shareIncludeEmbed,shareIncludeSocial:this.shareIncludeSocial,showNewestFirst:this.showNewestFirst,sortField:this.sortField,sortOrder:this.sortOrder,zoomAndScrollToSelected:this.zoomAndScrollToSelected,zoomToScale:this.zoomToScale})))}_onResize(){const i=this.el.offsetWidth<1024,t=!this._isMobile&&i;this._isMobile=i,this._layoutMode=this._isMobile?l.HORIZONTAL:l.GRID,t&&(this._panelOpen=!0)}_toggleLayout(){this._panelOpen=!this._panelOpen}showHideMapPopupAndTable(i){this._expandPopup=!1,this._hideTable=i,this._hideFooter=i}_getMapInfo(i){let t;return this.mapInfos.some((e=>{if(e.id===i)return t=e,!0})),Object.assign({},t)}async _setMapView(){var i;this._mapInfo=this._getMapInfo(this._mapChange.id),this._mapView=this._mapChange.mapView,this._initMapZoom(),this._mapView.popupEnabled=!1;const t=!this.defaultCenter||this._defaultCenterHonored||null===(i=this.defaultCenter)||void 0===i?void 0:i.split(";").map((i=>parseFloat(i))),e=!this.defaultLevel||this._defaultLevelHonored?void 0:parseInt(this.defaultLevel,10);t&&e&&(await this._mapView.goTo({center:t,zoom:e}),this._defaultCenterHonored=!0,this._defaultLevelHonored=!0)}_initMapZoom(){this.enableZoom?this.enableZoom&&this._mapView.ui.add({component:"zoom",position:"top-left",index:0}):this._mapView.ui.remove("zoom")}async _getTranslations(){const i=await h(this.el);this._translations=i[0]}get el(){return o(this)}static get watchers(){return{enableZoom:["enableZoomWatchHandler"]}}};d.style=":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.padding-1-2{padding:0.5rem}.display-flex{display:flex}.width-full{width:100%}.width-1-2{position:relative;width:50%}.width-1-3{position:relative;width:33.33%}.width-2-3{position:relative;width:66.66%}.width-0{width:0}.height-full{height:100%}.height-1-2{position:relative;height:50%}.height-0{height:0}.toggle-node{width:51px;height:51px}.overflow-hidden{overflow:hidden}.flex-column{flex-direction:column}.border{border:1px solid var(--calcite-color-border-3)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-3)}.border-sides{border-left:1px solid var(--calcite-color-border-3);border-right:1px solid var(--calcite-color-border-3)}.position-relative{position:relative}.height-50{height:50%}.adjusted-height-50{height:calc(50% - 25px)}.adjusted-height-100{height:calc(100% - 50px)}.adjusted-height-100-50{height:calc(100% - 50px)}.display-none{display:none}.height-53{height:53px}.position-absolute-53{position:absolute;top:53px}.display-grid{display:grid}.height-50-px{height:50px}.padding-inline-start-75{padding-inline-start:0.75rem}.align-items-center{align-items:center}.esri-floor-filter__close-levels-button{width:40px !important;height:40px !important}.esri-floor-filter__level-button{width:40px !important;height:40px !important}.esri-floor-filter__browse-button{width:40px !important;height:40px !important}.position-absolute-50{position:absolute;top:50px;bottom:0px;left:0px;right:0px}.position-absolute-0{position:absolute;top:0px;bottom:0px;left:0px;right:0px}.visibility-hidden{visibility:hidden;height:0px}.position-fixed{position:fixed}.border-width-0{border-width:0px}.border-bottom-width-0{border-bottom-width:0px}.floating-container{position:fixed;width:100px;height:10px;bottom:0;right:0;margin:100px 0px}.floating-container .floating-button{box-shadow:0 10px 25px rgb(92 93 94 / 60%);transform:translatey(5px);transition:all 0.3s}";export{d as crowdsource_manager}
6
+ import{r as i,c as t,h as e,H as s,g as o}from"./p-6d753a3d.js";import{g as h}from"./p-896c9644.js";import{E as l}from"./p-c1cf3ebc.js";import{g as a}from"./p-583e5dd0.js";import"./p-82e085d0.js";const d=class{constructor(e){i(this,e),this.infoIconButtonClick=t(this,"infoIconButtonClick",7),this._defaultCenterHonored=!1,this._defaultLevelHonored=!1,this._shouldSetMapView=!1,this.appProxies=void 0,this.basemapConfig=void 0,this.defaultCenter="",this.defaultGlobalId="",this.defaultLayer="",this.defaultLevel="",this.defaultOid="",this.defaultWebmap="",this.enableAutoRefresh=!1,this.enableBasemap=!0,this.enableColumnReorder=!0,this.enableCSV=!0,this.enableFloorFilter=!0,this.enableFullscreen=!0,this.enableHome=!0,this.enableInlineEdit=!1,this.enableLegend=!0,this.enableSearch=!0,this.enableShare=!1,this.enableZoom=!0,this.hideMapOnLoad=!1,this.mapInfos=[],this.onlyShowUpdatableLayers=!0,this.popupHeaderColor=void 0,this.popupHeaderHoverColor=void 0,this.popupHeaderHoverTextColor=void 0,this.popupHeaderTextColor=void 0,this.searchConfiguration=void 0,this.shareIncludeEmbed=void 0,this.shareIncludeSocial=void 0,this.showNewestFirst=!0,this.theme="light",this.zoomAndScrollToSelected=!1,this.zoomToScale=void 0,this.sortField=void 0,this.sortOrder=void 0,this._expandPopup=this.hideMapOnLoad,this._hideFooter=!1,this._hideTable=!1,this._isMobile=void 0,this._translations=void 0,this._layer=void 0,this._layoutMode=l.GRID,this._mapInfo=void 0,this._mapView=void 0,this._panelOpen=!0,this._numSelected=0,this._tableOnly=!1}enableZoomWatchHandler(){this._initMapZoom()}async featureSelectionChange(i){var t;this._numSelected=null===(t=i.detail)||void 0===t?void 0:t.length}async popupClosed(){this._isMobile&&this.showHideMapPopupAndTable(!1)}async idsFound(i){const t=i.detail;this._tableOnly=t.tableIds.length>0&&0===t.layerIds.length,this._tableOnly&&(this._expandPopup=!0)}async layoutChanged(i){this._layoutMode=i.detail}async mapChanged(i){this._mapChange=i.detail,await this._mapChange.mapView.when((async()=>{await this._setMapView()}))}async beforeMapChanged(){this._expandPopup&&(this._shouldSetMapView=!0)}async layerSelectionChange(i){const t=i.detail[0],e=await a(this._mapView,t);await e.when((()=>{this._layer=e}))}async mapInfoChange(){this._expandPopup=this.hideMapOnLoad}async componentWillLoad(){await this._getTranslations(),this._resizeObserver=new ResizeObserver((()=>this._onResize()))}render(){return e(s,{key:"68558824544553dd0c16832e4530afb4023ff421"},e("calcite-shell",{key:"9369769a8ff35ab56b5317cde8b325e4635c817e",class:"position-relative"},e("calcite-panel",{key:"c2e5f3feb974a50039427f91e408c2add1b0cc4f",class:"width-full height-full border-width-0"},this._getBody(this._layoutMode,this._panelOpen,this._hideTable)),this._getFooter()))}async componentDidRender(){this._shouldSetMapView&&(this._shouldSetMapView=!1,await this._setMapView())}async componentDidLoad(){this._resizeObserver.observe(this.el)}_getFooter(){var i,t,s,o;const h=(null===(i=this._layer)||void 0===i?void 0:i.editingEnabled)&&(null===(o=null===(s=null===(t=this._layer)||void 0===t?void 0:t.capabilities)||void 0===s?void 0:s.operations)||void 0===o?void 0:o.supportsDelete);return this._isMobile&&this._numSelected>0&&!this._hideFooter?e("div",{class:"width-100",slot:"footer"},e("div",{class:"display-flex padding-1-2"},e("calcite-button",{appearance:"solid",id:"solutions-show",onClick:()=>this.showHideMapPopupAndTable(!0),width:"full"},this._translations.view.replace("{{n}}",this._numSelected.toString())),h?e("delete-button",{class:"padding-inline-start-1 width-full",id:"solutions-delete",ids:this._layerTable.selectedIds,layer:this._layer}):void 0)):void 0}_getDividerIcon(i,t){let e="";switch(i){case l.HORIZONTAL:e=t?"chevrons-up":"chevrons-down";break;case l.VERTICAL:case l.GRID:e=t?"chevrons-left":"chevrons-right"}return e}_getMapSizeClass(i,t,e){let s="";switch(i){case l.HORIZONTAL:s=(t&&!e?"height-1-2 display-grid":t&&e?"height-full":"height-0")+" width-full position-relative";break;case l.GRID:s="height-full position-relative "+(t?"width-1-3":"width-0");break;case l.VERTICAL:s="height-full position-relative "+(t?"width-1-2":"width-0")}return s}_getTableSizeClass(i,t){let e="";switch(i){case l.HORIZONTAL:e=(t?"height-1-2":"height-full")+" width-full display-flex flex-column";break;case l.GRID:e=(t?"width-2-3":"width-full")+" height-full display-flex";break;case l.VERTICAL:e=(t?"width-1-2":"width-full")+" height-full display-flex"}return e}_getBody(i,t,s){const o="dark"===this.theme?"calcite-mode-dark":"calcite-mode-light";return e("calcite-panel",{class:"width-full height-full"},e("div",{class:"width-full height-full overflow-hidden "+(i===l.HORIZONTAL?"":"display-flex")},this._getMapAndCard(i,t,s),this._getTable(i,t,s)),e("div",{class:"floating-container",onClick:this.infoButtonClick.bind(this)},e("calcite-button",{appearance:"solid",class:`floating-button ${o}`,"icon-start":"information-letter",kind:"neutral",label:"",round:!0,scale:"l","split-child":"primary",width:"auto"})))}infoButtonClick(){this.infoIconButtonClick.emit()}_getMapAndCard(i,t,s){const o=this._getMapSizeClass(i,t,s);return e("div",{class:`${o} overflow-hidden`},this._getMapNode(t),this._getPopupExpandNode())}_getMapNode(i){var t;return e("div",{class:(this._layoutMode!==l.HORIZONTAL||this._isMobile&&!i?"adjusted-height-50":"")+" overflow-hidden"},e("map-card",{appProxies:this.appProxies,basemapConfig:this.basemapConfig,class:"width-full",defaultWebmapId:this.defaultWebmap,enableBasemap:this.enableBasemap,enableFloorFilter:this.enableFloorFilter,enableFullscreen:this.enableFullscreen,enableHome:this.enableHome,enableLegend:this.enableLegend,enableSearch:this.enableSearch,enableSingleExpand:!0,hidden:this._expandPopup&&!this._isMobile,homeZoomIndex:3,homeZoomPosition:"top-left",homeZoomToolsSize:"s",mapInfos:null===(t=this.mapInfos)||void 0===t?void 0:t.filter((i=>!1!==i.visible)),mapWidgetsIndex:0,mapWidgetsPosition:"top-right",mapWidgetsSize:"m",stackTools:!0,theme:this.theme,toolOrder:["legend","search","fullscreen","basemap","floorfilter"]}))}_getPopupExpandNode(){var i;const t=this._expandPopup?"chevrons-down":"chevrons-up",s="expand-popup",o=this._expandPopup?this._translations.collapsePopup:this._translations.expandPopup,h="dark"===this.theme?"calcite-mode-dark":"calcite-mode-light",l=this._expandPopup?1===(null===(i=this.mapInfos)||void 0===i?void 0:i.length)||this._isMobile?"position-absolute-0":"position-absolute-50":"height-full",a=this._isMobile?"display-none height-0":"";return e("div",{class:`${this.popupHeaderColor?"":this._isMobile?"calcite-mode-light":"calcite-mode-dark"} ${l} ${this._isMobile&&this._hideTable?"position-absolute-0 width-full height-full":this._isMobile?"display-none height-0":""}`,style:{"--calcite-color-foreground-1":this.popupHeaderColor,"--calcite-color-foreground-2":this.popupHeaderHoverColor,"--calcite-color-text-3":this.popupHeaderHoverTextColor,"--calcite-color-text-2":this.popupHeaderTextColor}},e("calcite-panel",null,this._isMobile?void 0:e("div",{class:`display-flex align-items-center ${a}`,slot:"header-content"},e("calcite-icon",{icon:"information",scale:"s"}),e("div",{class:"padding-inline-start-75"},this._translations.information)),e("calcite-action",{class:a,disabled:this._tableOnly,icon:t,id:s,onClick:()=>this._togglePopup(),slot:"header-actions-end",text:""}),this._tableOnly?void 0:e("calcite-tooltip",{class:h,label:"",placement:"bottom","reference-element":s},e("span",null,o)),this._getCardNode()))}_togglePopup(){this._expandPopup=!this._expandPopup}_getCardNode(){return e("div",{class:"width-50 height-full "+("dark"===this.theme?"calcite-mode-dark":"calcite-mode-light")},e("card-manager",{class:(this._expandPopup||this._isMobile?"height-full":"height-50")+" width-full",isMobile:this._isMobile,mapView:null==this?void 0:this._mapView,zoomAndScrollToSelected:this.zoomAndScrollToSelected}))}_getTable(i,t,s){var o,h;const a=s&&this._isMobile?"visibility-hidden":"",d=this._getTableSizeClass(i,t),n=this._getDividerIcon(i,t),r=t?this._translations.close:this._translations.open,c="toggle-layout",p=i===l.HORIZONTAL?"horizontal":"vertical",g=i===l.HORIZONTAL?"header":"panel-start",u=this.defaultWebmap&&this.defaultLayer,f=this.defaultGlobalId?(null===(o=this.defaultGlobalId)||void 0===o?void 0:o.indexOf(","))>-1?this.defaultGlobalId.split(","):[this.defaultGlobalId]:void 0,b=this.defaultOid?(null===(h=this.defaultOid)||void 0===h?void 0:h.indexOf(","))>-1?this.defaultOid.split(",").map((i=>parseInt(i,10))):[parseInt(this.defaultOid,10)]:void 0;return e("calcite-shell",{class:`${d} ${a} border-bottom`},this._isMobile?void 0:e("calcite-action-bar",{class:"border-sides",expandDisabled:!0,layout:p,slot:g},e("calcite-action",{class:"toggle-node",icon:n,id:c,onClick:()=>this._toggleLayout(),text:""}),e("calcite-tooltip",{label:r,placement:"bottom","reference-element":c},e("span",null,r))),e("div",{class:"width-full height-full position-relative"},e("layer-table",{defaultGlobalId:u?f:void 0,defaultLayerId:u?this.defaultLayer:"",defaultOid:u&&!f?b:void 0,enableAutoRefresh:this.enableAutoRefresh,enableCSV:this.enableCSV,enableColumnReorder:this.enableColumnReorder,enableInlineEdit:this.enableInlineEdit,enableShare:this.enableShare,isMobile:this._isMobile,mapInfo:this._mapInfo,mapView:null==this?void 0:this._mapView,onlyShowUpdatableLayers:this.onlyShowUpdatableLayers,ref:i=>this._layerTable=i,shareIncludeEmbed:this.shareIncludeEmbed,shareIncludeSocial:this.shareIncludeSocial,showNewestFirst:this.showNewestFirst,sortField:this.sortField,sortOrder:this.sortOrder,zoomAndScrollToSelected:this.zoomAndScrollToSelected,zoomToScale:this.zoomToScale})))}_onResize(){const i=this.el.offsetWidth<1024,t=!this._isMobile&&i;this._isMobile=i,this._layoutMode=this._isMobile?l.HORIZONTAL:l.GRID,t&&(this._panelOpen=!0)}_toggleLayout(){this._panelOpen=!this._panelOpen}showHideMapPopupAndTable(i){this._expandPopup=!1,this._hideTable=i,this._hideFooter=i}_getMapInfo(i){let t;return this.mapInfos.some((e=>{if(e.id===i)return t=e,!0})),Object.assign({},t)}async _setMapView(){var i;this._mapInfo=this._getMapInfo(this._mapChange.id),this._mapView=this._mapChange.mapView,this._initMapZoom(),this._mapView.popupEnabled=!1;const t=!this.defaultCenter||this._defaultCenterHonored||null===(i=this.defaultCenter)||void 0===i?void 0:i.split(";").map((i=>parseFloat(i))),e=!this.defaultLevel||this._defaultLevelHonored?void 0:parseInt(this.defaultLevel,10);t&&e&&(await this._mapView.goTo({center:t,zoom:e}),this._defaultCenterHonored=!0,this._defaultLevelHonored=!0)}_initMapZoom(){this.enableZoom?this.enableZoom&&this._mapView.ui.add({component:"zoom",position:"top-left",index:0}):this._mapView.ui.remove("zoom")}async _getTranslations(){const i=await h(this.el);this._translations=i[0]}get el(){return o(this)}static get watchers(){return{enableZoom:["enableZoomWatchHandler"]}}};d.style=":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.padding-1-2{padding:0.5rem}.display-flex{display:flex}.width-full{width:100%}.width-1-2{position:relative;width:50%}.width-1-3{position:relative;width:33.33%}.width-2-3{position:relative;width:66.66%}.width-0{width:0}.height-full{height:100%}.height-1-2{position:relative;height:50%}.height-0{height:0}.toggle-node{width:51px;height:51px}.overflow-hidden{overflow:hidden}.flex-column{flex-direction:column}.border{border:1px solid var(--calcite-color-border-3)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-3)}.border-sides{border-left:1px solid var(--calcite-color-border-3);border-right:1px solid var(--calcite-color-border-3)}.position-relative{position:relative}.height-50{height:50%}.adjusted-height-50{height:calc(50% - 25px)}.adjusted-height-100{height:calc(100% - 50px)}.adjusted-height-100-50{height:calc(100% - 50px)}.display-none{display:none}.height-53{height:53px}.position-absolute-53{position:absolute;top:53px}.display-grid{display:grid}.height-50-px{height:50px}.padding-inline-start-75{padding-inline-start:0.75rem}.align-items-center{align-items:center}.esri-floor-filter__close-levels-button{width:40px !important;height:40px !important}.esri-floor-filter__level-button{width:40px !important;height:40px !important}.esri-floor-filter__browse-button{width:40px !important;height:40px !important}.position-absolute-50{position:absolute;top:50px;bottom:0px;left:0px;right:0px}.position-absolute-0{position:absolute;top:0px;bottom:0px;left:0px;right:0px}.visibility-hidden{visibility:hidden;height:0px}.position-fixed{position:fixed}.border-width-0{border-width:0px}.border-bottom-width-0{border-bottom-width:0px}.floating-container{position:fixed;width:100px;height:10px;bottom:0;right:0;margin:100px 0px}.floating-container .floating-button{box-shadow:0 10px 25px rgb(92 93 94 / 60%);transform:translatey(5px);transition:all 0.3s}";export{d as crowdsource_manager}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{r as a,h as s,H as t,g as e}from"./p-6d753a3d.js";const o=class{constructor(s){a(this,s)}render(){return s(t,{key:"a9741da11365a4ce9b1504da6f6c84542bdfd556"},s("slot",{key:"3f98024fa3209a783296a2f80267dff08a13eb2f"}))}get el(){return e(this)}};o.style=":host{display:block}";export{o as location_flow_item}