@esri/solutions-components 0.10.48 → 0.10.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1064) hide show
  1. package/dist/cjs/ExpandToggle-7cd6bc0d.js +115 -0
  2. package/dist/cjs/FloatingArrow-bf91ebb1.js +48 -0
  3. package/dist/cjs/Heading-ae667128.js +25 -0
  4. package/dist/cjs/IdentityManager-b7fa2f5f.js +4174 -0
  5. package/dist/cjs/Validation-a206c7a2.js +20 -0
  6. package/dist/cjs/app-globals-04574c64.js +67 -0
  7. package/dist/cjs/ar-c930d85d.js +106 -0
  8. package/dist/cjs/arcgis-login.cjs.entry.js +1 -1
  9. package/dist/cjs/basemap-gallery_7.cjs.entry.js +2 -2
  10. package/dist/cjs/bg-a2001c61.js +84 -0
  11. package/dist/cjs/browser-040b13db.js +35 -0
  12. package/dist/cjs/bs-5576dc1b.js +53 -0
  13. package/dist/cjs/buffer-tools_3.cjs.entry.js +4 -4
  14. package/dist/cjs/ca-220471e9.js +73 -0
  15. package/dist/cjs/calcite-accordion_2.cjs.entry.js +5 -5
  16. package/dist/cjs/calcite-action-bar.cjs.entry.js +8 -8
  17. package/dist/cjs/calcite-action-group.cjs.entry.js +7 -7
  18. package/dist/cjs/calcite-action-menu_2.cjs.entry.js +9 -9
  19. package/dist/cjs/calcite-action-pad_2.cjs.entry.js +8 -8
  20. package/dist/cjs/calcite-action_2.cjs.entry.js +13 -13
  21. package/dist/cjs/calcite-alert_6.cjs.entry.js +11 -11
  22. package/dist/cjs/calcite-avatar.cjs.entry.js +1 -1
  23. package/dist/cjs/calcite-block-section.cjs.entry.js +6 -6
  24. package/dist/cjs/calcite-block_5.cjs.entry.js +17 -17
  25. package/dist/cjs/calcite-button-ac4b979a.js +281 -0
  26. package/dist/cjs/calcite-button.cjs.entry.js +8 -8
  27. package/dist/cjs/calcite-card-group.cjs.entry.js +4 -4
  28. package/dist/cjs/calcite-card.cjs.entry.js +7 -7
  29. package/dist/cjs/calcite-carousel_2.cjs.entry.js +7 -7
  30. package/dist/cjs/calcite-checkbox.cjs.entry.js +5 -5
  31. package/dist/cjs/calcite-chip-group.cjs.entry.js +4 -4
  32. package/dist/cjs/calcite-chip_2.cjs.entry.js +9 -9
  33. package/dist/cjs/calcite-color-picker-hex-input_2.cjs.entry.js +3 -3
  34. package/dist/cjs/calcite-color-picker.cjs.entry.js +7 -7
  35. package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +3 -3
  36. package/dist/cjs/calcite-combobox_3.cjs.entry.js +15 -15
  37. package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +8 -8
  38. package/dist/cjs/calcite-dialog-97f38598.js +5875 -0
  39. package/dist/cjs/calcite-dialog.cjs.entry.js +9 -9
  40. package/dist/cjs/calcite-dropdown_2.cjs.entry.js +7 -7
  41. package/dist/cjs/calcite-fab.cjs.entry.js +4 -4
  42. package/dist/cjs/calcite-filter_5.cjs.entry.js +7 -7
  43. package/dist/cjs/calcite-flow_4.cjs.entry.js +5 -5
  44. package/dist/cjs/calcite-graph_2.cjs.entry.js +7 -7
  45. package/dist/cjs/calcite-icon_2.cjs.entry.js +4 -4
  46. package/dist/cjs/calcite-inline-editable.cjs.entry.js +7 -7
  47. package/dist/cjs/calcite-input-0ecf3d60.js +1000 -0
  48. package/dist/cjs/calcite-input-number.cjs.entry.js +9 -9
  49. package/dist/cjs/calcite-input-text.cjs.entry.js +9 -9
  50. package/dist/cjs/calcite-input-time-picker-4020e170.js +1870 -0
  51. package/dist/cjs/calcite-input-time-picker.cjs.entry.js +13 -13
  52. package/dist/cjs/calcite-input-time-zone.cjs.entry.js +8 -8
  53. package/dist/cjs/calcite-input_2.cjs.entry.js +9 -9
  54. package/dist/cjs/calcite-label-8ca1fbce.js +110 -0
  55. package/dist/cjs/calcite-label.cjs.entry.js +1 -1
  56. package/dist/cjs/calcite-link.cjs.entry.js +4 -4
  57. package/dist/cjs/calcite-list-item-group.cjs.entry.js +2 -2
  58. package/dist/cjs/calcite-menu-item.cjs.entry.js +6 -6
  59. package/dist/cjs/calcite-menu.cjs.entry.js +6 -6
  60. package/dist/cjs/calcite-meter.cjs.entry.js +6 -6
  61. package/dist/cjs/calcite-modal.cjs.entry.js +11 -11
  62. package/dist/cjs/calcite-navigation-logo.cjs.entry.js +4 -4
  63. package/dist/cjs/calcite-navigation-user.cjs.entry.js +3 -3
  64. package/dist/cjs/calcite-navigation.cjs.entry.js +3 -3
  65. package/dist/cjs/calcite-notice-2e248d8d.js +260 -0
  66. package/dist/cjs/calcite-notice.cjs.entry.js +8 -8
  67. package/dist/cjs/calcite-option-group.cjs.entry.js +1 -1
  68. package/dist/cjs/calcite-option_2.cjs.entry.js +7 -7
  69. package/dist/cjs/calcite-pagination.cjs.entry.js +6 -6
  70. package/dist/cjs/calcite-pick-list-group.cjs.entry.js +7 -7
  71. package/dist/cjs/calcite-pick-list-item.cjs.entry.js +10 -10
  72. package/dist/cjs/calcite-pick-list.cjs.entry.js +8 -8
  73. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +5 -5
  74. package/dist/cjs/calcite-radio-button.cjs.entry.js +5 -5
  75. package/dist/cjs/calcite-rating.cjs.entry.js +8 -8
  76. package/dist/cjs/calcite-scrim.cjs.entry.js +5 -5
  77. package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +6 -6
  78. package/dist/cjs/calcite-sheet.cjs.entry.js +7 -7
  79. package/dist/cjs/calcite-shell-center-row.cjs.entry.js +6 -6
  80. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +14 -14
  81. package/dist/cjs/calcite-shell.cjs.entry.js +4 -4
  82. package/dist/cjs/calcite-sortable-list.cjs.entry.js +4 -4
  83. package/dist/cjs/calcite-split-button.cjs.entry.js +4 -4
  84. package/dist/cjs/calcite-stepper-item.cjs.entry.js +7 -7
  85. package/dist/cjs/calcite-stepper.cjs.entry.js +5 -5
  86. package/dist/cjs/calcite-switch.cjs.entry.js +5 -5
  87. package/dist/cjs/calcite-table-cell_2.cjs.entry.js +7 -7
  88. package/dist/cjs/calcite-table-row.cjs.entry.js +2 -2
  89. package/dist/cjs/calcite-table.cjs.entry.js +6 -6
  90. package/dist/cjs/calcite-text-area.cjs.entry.js +9 -9
  91. package/dist/cjs/calcite-tile-group.cjs.entry.js +4 -4
  92. package/dist/cjs/calcite-tile-select-group.cjs.entry.js +4 -4
  93. package/dist/cjs/calcite-tile-select.cjs.entry.js +6 -6
  94. package/dist/cjs/calcite-tile.cjs.entry.js +4 -4
  95. package/dist/cjs/calcite-time-picker.cjs.entry.js +7 -7
  96. package/dist/cjs/calcite-tip-group.cjs.entry.js +3 -3
  97. package/dist/cjs/calcite-tip-manager.cjs.entry.js +8 -8
  98. package/dist/cjs/calcite-tip.cjs.entry.js +9 -9
  99. package/dist/cjs/calcite-tooltip.cjs.entry.js +5 -5
  100. package/dist/cjs/calcite-tree_2.cjs.entry.js +5 -5
  101. package/dist/cjs/card-manager_3.cjs.entry.js +3 -3
  102. package/dist/cjs/component-69260f95.js +1073 -0
  103. package/dist/cjs/conditionalSlot-489d0ef0.js +54 -0
  104. package/dist/cjs/config-164bf148.js +40 -0
  105. package/dist/cjs/consent-manager.cjs.entry.js +2 -2
  106. package/dist/cjs/crowdsource-manager.cjs.entry.js +2 -2
  107. package/dist/cjs/crowdsource-reporter.cjs.entry.js +2 -2
  108. package/dist/cjs/cs-a049b34a.js +149 -0
  109. package/dist/cjs/da-d71057be.js +69 -0
  110. package/dist/cjs/date-831e93f2.js +264 -0
  111. package/dist/cjs/de-at-977ab186.js +92 -0
  112. package/dist/cjs/de-b1eb21d0.js +93 -0
  113. package/dist/cjs/de-ch-486d1e5d.js +92 -0
  114. package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
  115. package/dist/cjs/delete-dialog.cjs.entry.js +2 -2
  116. package/dist/cjs/downloadUtils-f50841bc.js +3240 -0
  117. package/dist/cjs/el-577ee36f.js +68 -0
  118. package/dist/cjs/en-au-e7c3a0f9.js +68 -0
  119. package/dist/cjs/en-ca-111580b6.js +67 -0
  120. package/dist/cjs/en-gb-b061a0ac.js +71 -0
  121. package/dist/cjs/es-ae90d3b8.js +68 -0
  122. package/dist/cjs/es-mx-620f2f82.js +67 -0
  123. package/dist/cjs/et-3b0bd1a9.js +94 -0
  124. package/dist/cjs/feature-list.cjs.entry.js +4 -4
  125. package/dist/cjs/fi-8708148b.js +117 -0
  126. package/dist/cjs/floating-ui-a1745c4c.js +2413 -0
  127. package/dist/cjs/focusTrapComponent-59e1194f.js +1013 -0
  128. package/dist/cjs/form-3666a51b.js +370 -0
  129. package/dist/cjs/form-a2adec8c.js +381 -0
  130. package/dist/cjs/fr-9a9d3ce3.js +70 -0
  131. package/dist/cjs/fr-ch-95662c01.js +68 -0
  132. package/dist/cjs/he-f973a740.js +107 -0
  133. package/dist/cjs/helpers-292a0709.js +940 -0
  134. package/dist/cjs/hi-f0b9cea5.js +67 -0
  135. package/dist/cjs/hr-4654706f.js +82 -0
  136. package/dist/cjs/hu-bc3d5588.js +90 -0
  137. package/dist/cjs/icon-96d27ae8.js +979 -0
  138. package/dist/cjs/id-1131b8da.js +68 -0
  139. package/dist/cjs/index-29826564.js +201 -0
  140. package/dist/cjs/index-92385c74.js +1772 -0
  141. package/dist/cjs/index.es-b8c8c931.js +11307 -0
  142. package/dist/cjs/instant-apps-app-guide.cjs.entry.js +2 -2
  143. package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +4 -4
  144. package/dist/cjs/instant-apps-control-panel.cjs.entry.js +1 -1
  145. package/dist/cjs/instant-apps-create.cjs.entry.js +2 -2
  146. package/dist/cjs/instant-apps-export-views.cjs.entry.js +2 -2
  147. package/dist/cjs/instant-apps-export.cjs.entry.js +2 -2
  148. package/dist/cjs/instant-apps-header.cjs.entry.js +1 -1
  149. package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +3 -3
  150. package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +3 -3
  151. package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +3 -3
  152. package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +3 -3
  153. package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +4 -4
  154. package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +2 -2
  155. package/dist/cjs/instant-apps-landing-page.cjs.entry.js +1 -1
  156. package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +16 -20
  157. package/dist/cjs/instant-apps-language-translator.cjs.entry.js +13 -13
  158. package/dist/cjs/instant-apps-measurement.cjs.entry.js +2 -2
  159. package/dist/cjs/instant-apps-popover.cjs.entry.js +2 -2
  160. package/dist/cjs/instant-apps-popovers.cjs.entry.js +1 -1
  161. package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +2 -2
  162. package/dist/cjs/instant-apps-sign-in.cjs.entry.js +2 -2
  163. package/dist/cjs/instant-apps-splash.cjs.entry.js +2 -2
  164. package/dist/cjs/instant-apps-time-filter.cjs.entry.js +5 -59
  165. package/dist/cjs/interactive-9f715ff8.js +86 -0
  166. package/dist/cjs/interactive-c384fd9b.js +85 -0
  167. package/dist/cjs/it-7a8ec220.js +68 -0
  168. package/dist/cjs/it-ch-f9cb696d.js +68 -0
  169. package/dist/cjs/ja-45b4845d.js +74 -0
  170. package/dist/cjs/ko-61449645.js +74 -0
  171. package/dist/cjs/label-7f519bd9.js +186 -0
  172. package/dist/cjs/languageSwitcher-bca9ab2c.js +52 -0
  173. package/dist/cjs/loadable-9cb8a3cd.js +98 -0
  174. package/dist/cjs/loader-b9aa1d67.js +176 -0
  175. package/dist/cjs/loader.cjs.js +4 -4
  176. package/dist/cjs/locale-a0772a2b.js +605 -0
  177. package/dist/cjs/locale-afa30303.js +160 -0
  178. package/dist/cjs/locale-f6e0493d.js +1488 -0
  179. package/dist/cjs/logger-e5bdc044.js +61 -0
  180. package/dist/cjs/lt-2e727f9c.js +99 -0
  181. package/dist/cjs/lv-ed202e00.js +68 -0
  182. package/dist/cjs/map-select-tools_3.cjs.entry.js +7 -7
  183. package/dist/cjs/mk-418a9e03.js +68 -0
  184. package/dist/cjs/nb-333e1c58.js +69 -0
  185. package/dist/cjs/nl-da937865.js +69 -0
  186. package/dist/cjs/observers-ce262300.js +58 -0
  187. package/dist/cjs/openCloseComponent-214808b0.js +66 -0
  188. package/dist/cjs/openCloseComponent-c0b7af22.js +65 -0
  189. package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
  190. package/dist/cjs/pl-cbe57516.js +116 -0
  191. package/dist/cjs/popupUtils-2a425c37.js +121 -0
  192. package/dist/cjs/pt-b1ec4928.js +69 -0
  193. package/dist/cjs/pt-br-e395a325.js +67 -0
  194. package/dist/cjs/public-notification.cjs.entry.js +5 -5
  195. package/dist/cjs/publicNotificationStore-1d934df9.js +47 -0
  196. package/dist/cjs/request-9f87ab34.js +21 -0
  197. package/dist/cjs/ro-144b5f62.js +68 -0
  198. package/dist/cjs/ru-bf7d1a3e.js +128 -0
  199. package/dist/cjs/share-item.cjs.entry.js +1 -1
  200. package/dist/cjs/shared-list-render-0b452799.js +361 -0
  201. package/dist/cjs/sk-515227a5.js +150 -0
  202. package/dist/cjs/sl-f879b07d.js +170 -0
  203. package/dist/cjs/solution-configuration.cjs.entry.js +4 -4
  204. package/dist/cjs/solution-contents_3.cjs.entry.js +4 -4
  205. package/dist/cjs/solution-item-accordion.cjs.entry.js +2 -2
  206. package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
  207. package/dist/cjs/solution-store-f3257490.js +1354 -0
  208. package/dist/cjs/solutions-components.cjs.js +4 -4
  209. package/dist/cjs/spatial-ref.cjs.entry.js +2 -2
  210. package/dist/cjs/sr-0510fba6.js +103 -0
  211. package/dist/cjs/store-manager.cjs.entry.js +3 -3
  212. package/dist/cjs/sv-c5fbe1ff.js +73 -0
  213. package/dist/cjs/t9n-e69b3d42.js +108 -0
  214. package/dist/cjs/th-8cafcb47.js +67 -0
  215. package/dist/cjs/time-ceec376d.js +301 -0
  216. package/dist/cjs/tr-7f905223.js +68 -0
  217. package/dist/cjs/uk-991e83da.js +106 -0
  218. package/dist/cjs/utils-d8dabd76.js +153 -0
  219. package/dist/cjs/utils-e60dc760.js +79 -0
  220. package/dist/cjs/vi-d5eababe.js +72 -0
  221. package/dist/cjs/zh-cn-e6bc2622.js +96 -0
  222. package/dist/cjs/zh-hk-30480131.js +94 -0
  223. package/dist/cjs/zh-tw-1f3b4cda.js +94 -0
  224. package/dist/collection/components/map-select-tools/map-select-tools.js +2 -2
  225. package/dist/components/IdentityManager.js +2487 -0
  226. package/dist/components/calcite-button2.js +273 -0
  227. package/dist/components/calcite-dialog2.js +5867 -0
  228. package/dist/components/calcite-input2.js +992 -0
  229. package/dist/components/calcite-label2.js +100 -0
  230. package/dist/components/calcite-notice2.js +251 -0
  231. package/dist/components/component2.js +1048 -0
  232. package/dist/components/form2.js +362 -0
  233. package/dist/components/icon2.js +960 -0
  234. package/dist/components/instant-apps-language-switcher.js +6 -10
  235. package/dist/components/instant-apps-language-translator2.js +2 -809
  236. package/dist/components/instant-apps-time-filter.js +3 -57
  237. package/dist/components/interactive2.js +83 -0
  238. package/dist/components/label3.js +179 -0
  239. package/dist/components/loader2.js +173 -0
  240. package/dist/components/locale3.js +1311 -3
  241. package/dist/components/map-select-tools2.js +2 -2
  242. package/dist/components/openCloseComponent2.js +64 -0
  243. package/dist/components/request.js +14 -0
  244. package/dist/esm/ExpandToggle-51a5210b.js +108 -0
  245. package/dist/esm/FloatingArrow-41be757a.js +46 -0
  246. package/dist/esm/Heading-62ae5a41.js +22 -0
  247. package/dist/esm/IdentityManager-28f1ebb3.js +4139 -0
  248. package/dist/esm/Validation-e4b3bd31.js +18 -0
  249. package/dist/esm/app-globals-9df1c281.js +65 -0
  250. package/dist/esm/ar-000d3816.js +104 -0
  251. package/dist/esm/arcgis-login.entry.js +1 -1
  252. package/dist/esm/basemap-gallery_7.entry.js +2 -2
  253. package/dist/esm/bg-50ceeb3e.js +82 -0
  254. package/dist/esm/browser-13cd5e9f.js +32 -0
  255. package/dist/esm/bs-8de5a54e.js +51 -0
  256. package/dist/esm/buffer-tools_3.entry.js +4 -4
  257. package/dist/esm/ca-3b560649.js +71 -0
  258. package/dist/esm/calcite-accordion_2.entry.js +5 -5
  259. package/dist/esm/calcite-action-bar.entry.js +8 -8
  260. package/dist/esm/calcite-action-group.entry.js +7 -7
  261. package/dist/esm/calcite-action-menu_2.entry.js +9 -9
  262. package/dist/esm/calcite-action-pad_2.entry.js +8 -8
  263. package/dist/esm/calcite-action_2.entry.js +13 -13
  264. package/dist/esm/calcite-alert_6.entry.js +11 -11
  265. package/dist/esm/calcite-avatar.entry.js +1 -1
  266. package/dist/esm/calcite-block-section.entry.js +6 -6
  267. package/dist/esm/calcite-block_5.entry.js +17 -17
  268. package/dist/esm/calcite-button-3501ac03.js +278 -0
  269. package/dist/esm/calcite-button.entry.js +8 -8
  270. package/dist/esm/calcite-card-group.entry.js +4 -4
  271. package/dist/esm/calcite-card.entry.js +7 -7
  272. package/dist/esm/calcite-carousel_2.entry.js +7 -7
  273. package/dist/esm/calcite-checkbox.entry.js +5 -5
  274. package/dist/esm/calcite-chip-group.entry.js +4 -4
  275. package/dist/esm/calcite-chip_2.entry.js +9 -9
  276. package/dist/esm/calcite-color-picker-hex-input_2.entry.js +3 -3
  277. package/dist/esm/calcite-color-picker.entry.js +7 -7
  278. package/dist/esm/calcite-combobox-item-group.entry.js +3 -3
  279. package/dist/esm/calcite-combobox_3.entry.js +15 -15
  280. package/dist/esm/calcite-date-picker-day_3.entry.js +8 -8
  281. package/dist/esm/calcite-dialog-21f00586.js +5872 -0
  282. package/dist/esm/calcite-dialog.entry.js +9 -9
  283. package/dist/esm/calcite-dropdown_2.entry.js +7 -7
  284. package/dist/esm/calcite-fab.entry.js +4 -4
  285. package/dist/esm/calcite-filter_5.entry.js +7 -7
  286. package/dist/esm/calcite-flow_4.entry.js +5 -5
  287. package/dist/esm/calcite-graph_2.entry.js +7 -7
  288. package/dist/esm/calcite-icon_2.entry.js +4 -4
  289. package/dist/esm/calcite-inline-editable.entry.js +7 -7
  290. package/dist/esm/calcite-input-355d3812.js +997 -0
  291. package/dist/esm/calcite-input-number.entry.js +9 -9
  292. package/dist/esm/calcite-input-text.entry.js +9 -9
  293. package/dist/esm/calcite-input-time-picker-0137aecc.js +1867 -0
  294. package/dist/esm/calcite-input-time-picker.entry.js +13 -13
  295. package/dist/esm/calcite-input-time-zone.entry.js +8 -8
  296. package/dist/esm/calcite-input_2.entry.js +9 -9
  297. package/dist/esm/calcite-label-ac4a2e81.js +107 -0
  298. package/dist/esm/calcite-label.entry.js +1 -1
  299. package/dist/esm/calcite-link.entry.js +4 -4
  300. package/dist/esm/calcite-list-item-group.entry.js +2 -2
  301. package/dist/esm/calcite-menu-item.entry.js +6 -6
  302. package/dist/esm/calcite-menu.entry.js +6 -6
  303. package/dist/esm/calcite-meter.entry.js +6 -6
  304. package/dist/esm/calcite-modal.entry.js +11 -11
  305. package/dist/esm/calcite-navigation-logo.entry.js +4 -4
  306. package/dist/esm/calcite-navigation-user.entry.js +3 -3
  307. package/dist/esm/calcite-navigation.entry.js +3 -3
  308. package/dist/esm/calcite-notice-56c3f190.js +257 -0
  309. package/dist/esm/calcite-notice.entry.js +8 -8
  310. package/dist/esm/calcite-option-group.entry.js +1 -1
  311. package/dist/esm/calcite-option_2.entry.js +7 -7
  312. package/dist/esm/calcite-pagination.entry.js +6 -6
  313. package/dist/esm/calcite-pick-list-group.entry.js +7 -7
  314. package/dist/esm/calcite-pick-list-item.entry.js +10 -10
  315. package/dist/esm/calcite-pick-list.entry.js +8 -8
  316. package/dist/esm/calcite-radio-button-group.entry.js +5 -5
  317. package/dist/esm/calcite-radio-button.entry.js +5 -5
  318. package/dist/esm/calcite-rating.entry.js +8 -8
  319. package/dist/esm/calcite-scrim.entry.js +5 -5
  320. package/dist/esm/calcite-segmented-control_2.entry.js +6 -6
  321. package/dist/esm/calcite-sheet.entry.js +7 -7
  322. package/dist/esm/calcite-shell-center-row.entry.js +6 -6
  323. package/dist/esm/calcite-shell-panel_14.entry.js +14 -14
  324. package/dist/esm/calcite-shell.entry.js +4 -4
  325. package/dist/esm/calcite-sortable-list.entry.js +4 -4
  326. package/dist/esm/calcite-split-button.entry.js +4 -4
  327. package/dist/esm/calcite-stepper-item.entry.js +7 -7
  328. package/dist/esm/calcite-stepper.entry.js +5 -5
  329. package/dist/esm/calcite-switch.entry.js +5 -5
  330. package/dist/esm/calcite-table-cell_2.entry.js +7 -7
  331. package/dist/esm/calcite-table-row.entry.js +2 -2
  332. package/dist/esm/calcite-table.entry.js +6 -6
  333. package/dist/esm/calcite-text-area.entry.js +9 -9
  334. package/dist/esm/calcite-tile-group.entry.js +4 -4
  335. package/dist/esm/calcite-tile-select-group.entry.js +4 -4
  336. package/dist/esm/calcite-tile-select.entry.js +6 -6
  337. package/dist/esm/calcite-tile.entry.js +4 -4
  338. package/dist/esm/calcite-time-picker.entry.js +7 -7
  339. package/dist/esm/calcite-tip-group.entry.js +3 -3
  340. package/dist/esm/calcite-tip-manager.entry.js +8 -8
  341. package/dist/esm/calcite-tip.entry.js +9 -9
  342. package/dist/esm/calcite-tooltip.entry.js +5 -5
  343. package/dist/esm/calcite-tree_2.entry.js +5 -5
  344. package/dist/esm/card-manager_3.entry.js +3 -3
  345. package/dist/esm/component-85f22c99.js +1048 -0
  346. package/dist/esm/conditionalSlot-3eb5090f.js +51 -0
  347. package/dist/esm/config-1d142af8.js +36 -0
  348. package/dist/esm/consent-manager.entry.js +2 -2
  349. package/dist/esm/crowdsource-manager.entry.js +2 -2
  350. package/dist/esm/crowdsource-reporter.entry.js +2 -2
  351. package/dist/esm/cs-5cdc1d3f.js +147 -0
  352. package/dist/esm/da-30365c90.js +67 -0
  353. package/dist/esm/date-ac9ec758.js +248 -0
  354. package/dist/esm/de-at-941b583e.js +90 -0
  355. package/dist/esm/de-b89def95.js +91 -0
  356. package/dist/esm/de-ch-568c0c8e.js +90 -0
  357. package/dist/esm/deduct-calculator.entry.js +1 -1
  358. package/dist/esm/delete-dialog.entry.js +2 -2
  359. package/dist/esm/downloadUtils-74a6bad9.js +3233 -0
  360. package/dist/esm/el-340bad09.js +66 -0
  361. package/dist/esm/en-au-b4bdb56c.js +66 -0
  362. package/dist/esm/en-ca-0a08923c.js +65 -0
  363. package/dist/esm/en-gb-f5381626.js +69 -0
  364. package/dist/esm/es-876b0a13.js +66 -0
  365. package/dist/esm/es-mx-955bc6a1.js +65 -0
  366. package/dist/esm/et-c76bc3b6.js +92 -0
  367. package/dist/esm/feature-list.entry.js +4 -4
  368. package/dist/esm/fi-52e100ba.js +115 -0
  369. package/dist/esm/floating-ui-5be07261.js +2404 -0
  370. package/dist/esm/focusTrapComponent-821ef6e1.js +1008 -0
  371. package/dist/esm/form-df6403ca.js +362 -0
  372. package/dist/esm/form-fbc745ea.js +372 -0
  373. package/dist/esm/fr-0699e247.js +68 -0
  374. package/dist/esm/fr-ch-c58b9b94.js +66 -0
  375. package/dist/esm/he-68c61be9.js +105 -0
  376. package/dist/esm/helpers-50d61130.js +913 -0
  377. package/dist/esm/hi-32cfce47.js +65 -0
  378. package/dist/esm/hr-962d1e56.js +80 -0
  379. package/dist/esm/hu-d13da86a.js +88 -0
  380. package/dist/esm/icon-3fb97c97.js +959 -0
  381. package/dist/esm/id-6de1980b.js +66 -0
  382. package/dist/esm/index-1b6f06f9.js +199 -0
  383. package/dist/esm/index-3eee2657.js +1736 -0
  384. package/dist/esm/index.es-3b04354a.js +11220 -0
  385. package/dist/esm/instant-apps-app-guide.entry.js +2 -2
  386. package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +4 -4
  387. package/dist/esm/instant-apps-control-panel.entry.js +1 -1
  388. package/dist/esm/instant-apps-create.entry.js +2 -2
  389. package/dist/esm/instant-apps-export-views.entry.js +2 -2
  390. package/dist/esm/instant-apps-export.entry.js +2 -2
  391. package/dist/esm/instant-apps-header.entry.js +1 -1
  392. package/dist/esm/instant-apps-interactive-legend-classic.entry.js +3 -3
  393. package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +3 -3
  394. package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +3 -3
  395. package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +3 -3
  396. package/dist/esm/instant-apps-interactive-legend.entry.js +4 -4
  397. package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +2 -2
  398. package/dist/esm/instant-apps-landing-page.entry.js +1 -1
  399. package/dist/esm/instant-apps-language-switcher.entry.js +9 -13
  400. package/dist/esm/instant-apps-language-translator.entry.js +5 -5
  401. package/dist/esm/instant-apps-measurement.entry.js +2 -2
  402. package/dist/esm/instant-apps-popover.entry.js +2 -2
  403. package/dist/esm/instant-apps-popovers.entry.js +1 -1
  404. package/dist/esm/instant-apps-scoreboard.entry.js +2 -2
  405. package/dist/esm/instant-apps-sign-in.entry.js +2 -2
  406. package/dist/esm/instant-apps-splash.entry.js +2 -2
  407. package/dist/esm/instant-apps-time-filter.entry.js +3 -57
  408. package/dist/esm/interactive-62057336.js +82 -0
  409. package/dist/esm/interactive-8a35f349.js +83 -0
  410. package/dist/esm/it-cccb6e82.js +66 -0
  411. package/dist/esm/it-ch-9d87107f.js +66 -0
  412. package/dist/esm/ja-1401a8ec.js +72 -0
  413. package/dist/esm/ko-9f06170e.js +72 -0
  414. package/dist/esm/label-7f52ca53.js +179 -0
  415. package/dist/esm/languageSwitcher-d0ca5d6f.js +49 -0
  416. package/dist/esm/loadable-bbec26c5.js +93 -0
  417. package/dist/esm/loader-6a8f3dda.js +173 -0
  418. package/dist/esm/loader.js +5 -5
  419. package/dist/esm/locale-22b2e8b1.js +155 -0
  420. package/dist/esm/locale-92d419e3.js +1423 -0
  421. package/dist/esm/locale-9f52f113.js +591 -0
  422. package/dist/esm/logger-5eff868b.js +59 -0
  423. package/dist/esm/lt-61945627.js +97 -0
  424. package/dist/esm/lv-def8646d.js +66 -0
  425. package/dist/esm/map-select-tools_3.entry.js +7 -7
  426. package/dist/esm/mk-db09f1f6.js +66 -0
  427. package/dist/esm/nb-ea4966a3.js +67 -0
  428. package/dist/esm/nl-159f195e.js +67 -0
  429. package/dist/esm/observers-4e931eb6.js +56 -0
  430. package/dist/esm/openCloseComponent-2022c9ab.js +64 -0
  431. package/dist/esm/openCloseComponent-9ae0e1fe.js +63 -0
  432. package/dist/esm/pci-calculator.entry.js +1 -1
  433. package/dist/esm/pl-5514150f.js +114 -0
  434. package/dist/esm/popupUtils-685635b7.js +119 -0
  435. package/dist/esm/pt-91415524.js +67 -0
  436. package/dist/esm/pt-br-0f472af4.js +65 -0
  437. package/dist/esm/public-notification.entry.js +5 -5
  438. package/dist/esm/publicNotificationStore-836d3cb4.js +45 -0
  439. package/dist/esm/request-d71d6adf.js +19 -0
  440. package/dist/esm/ro-decfcb47.js +66 -0
  441. package/dist/esm/ru-84ce786d.js +126 -0
  442. package/dist/esm/share-item.entry.js +1 -1
  443. package/dist/esm/shared-list-render-4dbefca0.js +339 -0
  444. package/dist/esm/sk-4468c163.js +148 -0
  445. package/dist/esm/sl-404f285f.js +168 -0
  446. package/dist/esm/solution-configuration.entry.js +4 -4
  447. package/dist/esm/solution-contents_3.entry.js +4 -4
  448. package/dist/esm/solution-item-accordion.entry.js +2 -2
  449. package/dist/esm/solution-item-icon.entry.js +1 -1
  450. package/dist/esm/solution-store-5b79fffe.js +1352 -0
  451. package/dist/esm/solutions-components.js +5 -5
  452. package/dist/esm/spatial-ref.entry.js +2 -2
  453. package/dist/esm/sr-152d8bf8.js +101 -0
  454. package/dist/esm/store-manager.entry.js +3 -3
  455. package/dist/esm/sv-47115030.js +71 -0
  456. package/dist/esm/t9n-cbccd1ca.js +103 -0
  457. package/dist/esm/th-1c539f57.js +65 -0
  458. package/dist/esm/time-53cad131.js +286 -0
  459. package/dist/esm/tr-432df990.js +66 -0
  460. package/dist/esm/uk-46c024d3.js +104 -0
  461. package/dist/esm/utils-0e3d8992.js +142 -0
  462. package/dist/esm/utils-d55c5742.js +66 -0
  463. package/dist/esm/vi-2ad870b8.js +70 -0
  464. package/dist/esm/zh-cn-1955c2ce.js +94 -0
  465. package/dist/esm/zh-hk-b32fb4c1.js +92 -0
  466. package/dist/esm/zh-tw-67bdf163.js +92 -0
  467. package/dist/solutions-components/p-000848d5.js +6 -0
  468. package/dist/solutions-components/p-01021fdb.js +6 -0
  469. package/dist/solutions-components/p-02800894.entry.js +11 -0
  470. package/dist/solutions-components/p-03434d39.js +11 -0
  471. package/dist/solutions-components/p-060b853f.entry.js +6 -0
  472. package/dist/solutions-components/p-0bd7c945.js +6 -0
  473. package/dist/solutions-components/p-0c985f61.entry.js +6 -0
  474. package/dist/solutions-components/p-0ca3272e.entry.js +6 -0
  475. package/dist/solutions-components/p-0ebb1a18.js +11 -0
  476. package/dist/solutions-components/p-1092fdc9.entry.js +6 -0
  477. package/dist/solutions-components/p-1482f3cf.js +20 -0
  478. package/dist/solutions-components/p-16afbc95.entry.js +6 -0
  479. package/dist/solutions-components/p-18c10df7.entry.js +6 -0
  480. package/dist/solutions-components/p-194bcdd6.entry.js +12 -0
  481. package/dist/solutions-components/p-197cfd05.js +6 -0
  482. package/dist/solutions-components/p-1afc6682.js +6 -0
  483. package/dist/solutions-components/p-1c80d549.entry.js +17 -0
  484. package/dist/solutions-components/p-1cbec431.entry.js +6 -0
  485. package/dist/solutions-components/p-1e60d3ea.js +6 -0
  486. package/dist/solutions-components/p-23c2e69d.entry.js +11 -0
  487. package/dist/solutions-components/p-23d24056.entry.js +11 -0
  488. package/dist/solutions-components/p-25ebeb0c.entry.js +11 -0
  489. package/dist/solutions-components/p-25f84466.entry.js +11 -0
  490. package/dist/solutions-components/p-25fe9f3e.entry.js +6 -0
  491. package/dist/solutions-components/p-291faeb2.js +6 -0
  492. package/dist/solutions-components/p-2a6eba20.entry.js +11 -0
  493. package/dist/solutions-components/p-2b389ce5.entry.js +11 -0
  494. package/dist/solutions-components/p-2b77a660.entry.js +11 -0
  495. package/dist/solutions-components/p-2c78f92c.entry.js +11 -0
  496. package/dist/solutions-components/p-2e193975.entry.js +17 -0
  497. package/dist/solutions-components/p-32262047.entry.js +11 -0
  498. package/dist/solutions-components/p-36470f6b.js +6 -0
  499. package/dist/solutions-components/p-36552016.entry.js +12 -0
  500. package/dist/solutions-components/p-37ddeea3.js +488 -0
  501. package/dist/solutions-components/p-3812d485.entry.js +6 -0
  502. package/dist/solutions-components/p-3948268c.entry.js +6 -0
  503. package/dist/solutions-components/p-3b312dff.js +6 -0
  504. package/dist/solutions-components/p-3b451796.js +6 -0
  505. package/dist/solutions-components/p-3b54163f.js +11 -0
  506. package/dist/solutions-components/p-3b859054.js +16 -0
  507. package/dist/solutions-components/p-3cf3c658.entry.js +29 -0
  508. package/dist/solutions-components/p-3d6698a7.js +11 -0
  509. package/dist/solutions-components/p-3dfe5cdb.js +6 -0
  510. package/dist/solutions-components/p-3e4ac28d.entry.js +6 -0
  511. package/dist/solutions-components/p-3f0f6504.js +6 -0
  512. package/dist/solutions-components/p-3f18fb1f.js +11 -0
  513. package/dist/solutions-components/p-3f20a550.entry.js +6 -0
  514. package/dist/solutions-components/p-3fc70768.entry.js +6 -0
  515. package/dist/solutions-components/p-405118a8.entry.js +11 -0
  516. package/dist/solutions-components/p-412759ed.entry.js +11 -0
  517. package/dist/solutions-components/p-419df1ac.js +11 -0
  518. package/dist/solutions-components/p-46da7d9f.entry.js +6 -0
  519. package/dist/solutions-components/p-47fdc484.js +17 -0
  520. package/dist/solutions-components/p-4858ae16.js +6 -0
  521. package/dist/solutions-components/p-49888ae8.entry.js +11 -0
  522. package/dist/solutions-components/p-4a13d8d9.js +6 -0
  523. package/dist/solutions-components/p-4b1a9c65.js +6 -0
  524. package/dist/solutions-components/p-4d14be12.entry.js +11 -0
  525. package/dist/solutions-components/p-50721c04.js +16 -0
  526. package/dist/solutions-components/p-531c7fdb.js +11 -0
  527. package/dist/solutions-components/p-535335f2.js +6 -0
  528. package/dist/solutions-components/p-53bf0fe4.js +6 -0
  529. package/dist/solutions-components/p-544e3025.entry.js +11 -0
  530. package/dist/solutions-components/p-55a6c0d1.entry.js +6 -0
  531. package/dist/solutions-components/p-55b8fab3.entry.js +6 -0
  532. package/dist/solutions-components/p-564d285a.entry.js +6 -0
  533. package/dist/solutions-components/p-56b44bf7.entry.js +11 -0
  534. package/dist/solutions-components/p-57079c91.entry.js +6 -0
  535. package/dist/solutions-components/p-5732176e.entry.js +47 -0
  536. package/dist/solutions-components/p-57409415.js +17 -0
  537. package/dist/solutions-components/p-576843e9.js +11 -0
  538. package/dist/solutions-components/p-5773023c.entry.js +11 -0
  539. package/dist/solutions-components/p-5c20cdef.entry.js +11 -0
  540. package/dist/solutions-components/p-5d1ab17e.entry.js +21 -0
  541. package/dist/solutions-components/p-5dd95ca6.entry.js +20 -0
  542. package/dist/solutions-components/p-5f9afbb9.entry.js +17 -0
  543. package/dist/solutions-components/p-6155f4e7.js +6 -0
  544. package/dist/solutions-components/p-619b12c3.entry.js +17 -0
  545. package/dist/solutions-components/p-61bd743b.entry.js +22 -0
  546. package/dist/solutions-components/p-64860143.entry.js +11 -0
  547. package/dist/solutions-components/p-64a569da.entry.js +6 -0
  548. package/dist/solutions-components/p-6a1a4124.js +6 -0
  549. package/dist/solutions-components/p-6b8a94f0.entry.js +6 -0
  550. package/dist/solutions-components/p-6e842050.entry.js +11 -0
  551. package/dist/solutions-components/p-721bf278.js +6 -0
  552. package/dist/solutions-components/p-731eb030.js +11 -0
  553. package/dist/solutions-components/p-73db9e69.entry.js +11 -0
  554. package/dist/solutions-components/p-73e24177.js +6 -0
  555. package/dist/solutions-components/p-74b25167.entry.js +11 -0
  556. package/dist/solutions-components/p-760f833e.js +6 -0
  557. package/dist/solutions-components/p-7781048a.js +11 -0
  558. package/dist/solutions-components/p-779c8194.entry.js +6 -0
  559. package/dist/solutions-components/p-7a1177c0.entry.js +6 -0
  560. package/dist/solutions-components/p-7c7549b0.js +61 -0
  561. package/dist/solutions-components/p-7e574f00.js +11 -0
  562. package/dist/solutions-components/p-80913362.entry.js +11 -0
  563. package/dist/solutions-components/p-80e05130.entry.js +11 -0
  564. package/dist/solutions-components/p-81a2f4c3.entry.js +12 -0
  565. package/dist/solutions-components/p-81c41f7b.entry.js +11 -0
  566. package/dist/solutions-components/p-82ee3b26.js +7 -0
  567. package/dist/solutions-components/p-8354374d.entry.js +6 -0
  568. package/dist/solutions-components/p-844b7f82.entry.js +6 -0
  569. package/dist/solutions-components/p-8535b484.entry.js +17 -0
  570. package/dist/solutions-components/p-853db1b6.entry.js +6 -0
  571. package/dist/solutions-components/p-85c0d237.entry.js +11 -0
  572. package/dist/solutions-components/p-885b958c.entry.js +6 -0
  573. package/dist/solutions-components/p-88e8400a.entry.js +11 -0
  574. package/dist/solutions-components/p-899179d7.js +6 -0
  575. package/dist/solutions-components/p-8a9d2564.entry.js +11 -0
  576. package/dist/solutions-components/p-8b60e48a.entry.js +11 -0
  577. package/dist/solutions-components/p-8d028e6a.entry.js +11 -0
  578. package/dist/solutions-components/p-8f7a11c9.js +21 -0
  579. package/dist/solutions-components/p-90240f7f.entry.js +6 -0
  580. package/dist/solutions-components/p-917b535b.js +11 -0
  581. package/dist/solutions-components/p-926e65eb.js +6 -0
  582. package/dist/solutions-components/p-929b5bd1.entry.js +6 -0
  583. package/dist/solutions-components/p-92c8093d.entry.js +6 -0
  584. package/dist/solutions-components/p-934a6d75.js +6 -0
  585. package/dist/solutions-components/p-938fc0cf.entry.js +6 -0
  586. package/dist/solutions-components/p-94b818bb.js +11 -0
  587. package/dist/solutions-components/p-973ec320.js +36 -0
  588. package/dist/solutions-components/p-97b64bea.entry.js +11 -0
  589. package/dist/solutions-components/p-97e56ccc.js +6 -0
  590. package/dist/solutions-components/p-9b513db6.entry.js +16 -0
  591. package/dist/solutions-components/p-9c33a239.entry.js +6 -0
  592. package/dist/solutions-components/p-9cc10554.js +6 -0
  593. package/dist/solutions-components/p-9f38488c.js +6 -0
  594. package/dist/solutions-components/p-a104bc28.js +6 -0
  595. package/dist/solutions-components/p-a1e6cfd8.js +6 -0
  596. package/dist/solutions-components/p-a3633e71.entry.js +6 -0
  597. package/dist/solutions-components/p-a3bc6dd8.entry.js +29 -0
  598. package/dist/solutions-components/p-a412c674.js +11 -0
  599. package/dist/solutions-components/p-a4748493.entry.js +11 -0
  600. package/dist/solutions-components/p-a570536b.js +6 -0
  601. package/dist/solutions-components/p-a60d197e.entry.js +6 -0
  602. package/dist/solutions-components/p-a806b4cf.entry.js +17 -0
  603. package/dist/solutions-components/p-a927a4e4.entry.js +6 -0
  604. package/dist/solutions-components/p-aaa0d91b.entry.js +11 -0
  605. package/dist/solutions-components/p-ab2a12e4.entry.js +17 -0
  606. package/dist/solutions-components/p-abcf272c.entry.js +23 -0
  607. package/dist/solutions-components/p-ad536cdf.js +11 -0
  608. package/dist/solutions-components/p-aef6e1f5.js +6 -0
  609. package/dist/solutions-components/p-b13d3b66.js +6 -0
  610. package/dist/solutions-components/p-b2064f52.entry.js +6 -0
  611. package/dist/solutions-components/p-b209d4b9.js +6 -0
  612. package/dist/solutions-components/p-b2a1177d.entry.js +11 -0
  613. package/dist/solutions-components/p-b54b2fc6.js +31 -0
  614. package/dist/solutions-components/p-b56b9a89.js +11 -0
  615. package/dist/solutions-components/p-b5fe0c3e.entry.js +6 -0
  616. package/dist/solutions-components/p-b6ea0097.js +6 -0
  617. package/dist/solutions-components/p-b7b32972.entry.js +6 -0
  618. package/dist/solutions-components/p-b7b5e88d.entry.js +11 -0
  619. package/dist/solutions-components/p-b9afb782.entry.js +6 -0
  620. package/dist/solutions-components/p-b9b3b48a.entry.js +6 -0
  621. package/dist/solutions-components/p-ba62b5f4.js +16 -0
  622. package/dist/solutions-components/p-bb9e232f.js +6 -0
  623. package/dist/solutions-components/p-bba22752.js +6 -0
  624. package/dist/solutions-components/p-bc47653a.js +6 -0
  625. package/dist/solutions-components/p-bccc997c.js +6 -0
  626. package/dist/solutions-components/p-bd220980.js +21 -0
  627. package/dist/solutions-components/p-bd6a96db.js +6 -0
  628. package/dist/solutions-components/p-bded7c22.entry.js +6 -0
  629. package/dist/solutions-components/p-be28e2bf.js +6 -0
  630. package/dist/solutions-components/p-be7c3f1d.js +6 -0
  631. package/dist/solutions-components/p-c023fc82.js +6 -0
  632. package/dist/solutions-components/p-c1160ad0.entry.js +6 -0
  633. package/dist/solutions-components/p-c26b8546.entry.js +6 -0
  634. package/dist/solutions-components/p-c2ff1a82.js +6 -0
  635. package/dist/solutions-components/p-c323117d.js +16 -0
  636. package/dist/solutions-components/p-c5713c95.entry.js +11 -0
  637. package/dist/solutions-components/p-c8c16d43.js +11 -0
  638. package/dist/solutions-components/p-c9b5a34f.js +52 -0
  639. package/dist/solutions-components/p-ca26f8f8.js +6 -0
  640. package/dist/solutions-components/p-cb007d2f.js +6 -0
  641. package/dist/solutions-components/p-cc9e1367.entry.js +6 -0
  642. package/dist/solutions-components/p-cdadd82c.entry.js +17 -0
  643. package/dist/solutions-components/p-ce67bbbb.js +11 -0
  644. package/dist/solutions-components/p-cf46113c.js +6 -0
  645. package/dist/solutions-components/p-cfc2fae0.entry.js +17 -0
  646. package/dist/solutions-components/p-d21f3851.js +11 -0
  647. package/dist/solutions-components/p-d2c460b9.entry.js +11 -0
  648. package/dist/solutions-components/p-d4c44a94.js +6 -0
  649. package/dist/solutions-components/p-dca07fd3.js +143 -0
  650. package/dist/solutions-components/p-dcfe9514.entry.js +6 -0
  651. package/dist/solutions-components/p-dd0bee4a.entry.js +6 -0
  652. package/dist/solutions-components/p-de2fecc0.js +40 -0
  653. package/dist/solutions-components/p-de44364f.js +11 -0
  654. package/dist/solutions-components/p-decc356d.entry.js +11 -0
  655. package/dist/solutions-components/p-e043aae3.js +6 -0
  656. package/dist/solutions-components/p-e04831b9.js +6 -0
  657. package/dist/solutions-components/p-e06f90a2.entry.js +11 -0
  658. package/dist/solutions-components/p-e0e6d099.js +21 -0
  659. package/dist/solutions-components/p-e21cb40e.entry.js +11 -0
  660. package/dist/solutions-components/p-e33b7602.js +6 -0
  661. package/dist/solutions-components/p-e385cdcf.entry.js +11 -0
  662. package/dist/solutions-components/p-e3e89708.entry.js +11 -0
  663. package/dist/solutions-components/p-e4206773.entry.js +11 -0
  664. package/dist/solutions-components/p-e4c16e8f.entry.js +6 -0
  665. package/dist/solutions-components/p-e6b2432e.entry.js +6 -0
  666. package/dist/solutions-components/p-e76f93bc.js +11 -0
  667. package/dist/solutions-components/p-e82a84ac.entry.js +6 -0
  668. package/dist/solutions-components/p-eb1edf3e.entry.js +6 -0
  669. package/dist/solutions-components/p-ebac7396.entry.js +6 -0
  670. package/dist/solutions-components/p-ecabb824.entry.js +6 -0
  671. package/dist/solutions-components/p-ecfe49cf.entry.js +6 -0
  672. package/dist/solutions-components/p-ed50a65b.entry.js +17 -0
  673. package/dist/solutions-components/p-eda5e49e.entry.js +11 -0
  674. package/dist/solutions-components/p-ef51b934.js +6 -0
  675. package/dist/solutions-components/p-f22622b4.js +6 -0
  676. package/dist/solutions-components/p-f2340619.js +6 -0
  677. package/dist/solutions-components/p-f33c5883.entry.js +6 -0
  678. package/dist/solutions-components/p-f4eea8c2.js +67 -0
  679. package/dist/solutions-components/p-f7653a0b.js +6 -0
  680. package/dist/solutions-components/p-f876de3f.js +6 -0
  681. package/dist/solutions-components/p-f87f02a1.entry.js +6 -0
  682. package/dist/solutions-components/p-faaf42a3.entry.js +11 -0
  683. package/dist/solutions-components/p-fcd719b7.entry.js +22 -0
  684. package/dist/solutions-components/p-fd152d68.js +16 -0
  685. package/dist/solutions-components/p-fdf5a50e.entry.js +11 -0
  686. package/dist/solutions-components/p-fe43b510.js +17 -0
  687. package/dist/solutions-components/p-ff609816.entry.js +11 -0
  688. package/dist/solutions-components/solutions-components.esm.js +1 -1
  689. package/package.json +5 -5
  690. package/dist/cjs/ExpandToggle-c5e409ce.js +0 -115
  691. package/dist/cjs/FloatingArrow-c2b50d47.js +0 -48
  692. package/dist/cjs/Heading-3e2d46fd.js +0 -25
  693. package/dist/cjs/Validation-c065b988.js +0 -20
  694. package/dist/cjs/app-globals-09eb9eb5.js +0 -67
  695. package/dist/cjs/ar-0afb390b.js +0 -106
  696. package/dist/cjs/bg-b1be4ef3.js +0 -84
  697. package/dist/cjs/browser-0bedacf5.js +0 -35
  698. package/dist/cjs/bs-a314390f.js +0 -53
  699. package/dist/cjs/ca-b8e89e47.js +0 -73
  700. package/dist/cjs/calcite-input-time-picker-42ed419f.js +0 -1870
  701. package/dist/cjs/conditionalSlot-003e6975.js +0 -54
  702. package/dist/cjs/config-2282fdac.js +0 -40
  703. package/dist/cjs/constants-bed33322.js +0 -860
  704. package/dist/cjs/cs-f14626e8.js +0 -149
  705. package/dist/cjs/da-2fce32d4.js +0 -69
  706. package/dist/cjs/date-e763caec.js +0 -264
  707. package/dist/cjs/de-2c1fce6f.js +0 -93
  708. package/dist/cjs/de-at-94de293d.js +0 -92
  709. package/dist/cjs/de-ch-d42f4faf.js +0 -92
  710. package/dist/cjs/downloadUtils-76bc7e30.js +0 -3240
  711. package/dist/cjs/el-8092eeb9.js +0 -68
  712. package/dist/cjs/en-au-9bc4467f.js +0 -68
  713. package/dist/cjs/en-ca-d9140239.js +0 -67
  714. package/dist/cjs/en-gb-f5e2af8e.js +0 -71
  715. package/dist/cjs/es-4b6327d7.js +0 -68
  716. package/dist/cjs/es-mx-f729412a.js +0 -67
  717. package/dist/cjs/et-ec115eb3.js +0 -94
  718. package/dist/cjs/fi-95701850.js +0 -117
  719. package/dist/cjs/floating-ui-a8693586.js +0 -2413
  720. package/dist/cjs/focusTrapComponent-48fdd3f6.js +0 -1013
  721. package/dist/cjs/form-a36bd0e5.js +0 -381
  722. package/dist/cjs/fr-ch-a231f229.js +0 -68
  723. package/dist/cjs/fr-e22a2684.js +0 -70
  724. package/dist/cjs/he-d0070eb9.js +0 -107
  725. package/dist/cjs/helpers-0493759d.js +0 -940
  726. package/dist/cjs/hi-04615e27.js +0 -67
  727. package/dist/cjs/hr-27fefb6d.js +0 -82
  728. package/dist/cjs/hu-63da9819.js +0 -90
  729. package/dist/cjs/id-d4fe65cd.js +0 -68
  730. package/dist/cjs/index-2b13a4d5.js +0 -201
  731. package/dist/cjs/index-4b68e4b4.js +0 -1770
  732. package/dist/cjs/index.es-8336efed.js +0 -11307
  733. package/dist/cjs/interactive-7ccdd728.js +0 -85
  734. package/dist/cjs/it-418a53bf.js +0 -68
  735. package/dist/cjs/it-ch-7f4632ab.js +0 -68
  736. package/dist/cjs/ja-6c5d5c7d.js +0 -74
  737. package/dist/cjs/ko-e4154b91.js +0 -74
  738. package/dist/cjs/loadable-f3fe73a2.js +0 -98
  739. package/dist/cjs/locale-339b55f0.js +0 -160
  740. package/dist/cjs/locale-4b820602.js +0 -120
  741. package/dist/cjs/locale-7eb2f603.js +0 -605
  742. package/dist/cjs/logger-912d7f26.js +0 -61
  743. package/dist/cjs/lt-d6dae6fd.js +0 -99
  744. package/dist/cjs/lv-bcf9724a.js +0 -68
  745. package/dist/cjs/mk-171505d2.js +0 -68
  746. package/dist/cjs/nb-0dcee19c.js +0 -69
  747. package/dist/cjs/nl-dace5864.js +0 -69
  748. package/dist/cjs/observers-affd684f.js +0 -58
  749. package/dist/cjs/openCloseComponent-044883e4.js +0 -65
  750. package/dist/cjs/pl-7755a609.js +0 -116
  751. package/dist/cjs/popupUtils-bc762034.js +0 -121
  752. package/dist/cjs/pt-3121cc39.js +0 -69
  753. package/dist/cjs/pt-br-67b16e3a.js +0 -67
  754. package/dist/cjs/publicNotificationStore-570204c1.js +0 -47
  755. package/dist/cjs/ro-7f726306.js +0 -68
  756. package/dist/cjs/ru-fc11963d.js +0 -128
  757. package/dist/cjs/shared-list-render-3d6ec3ca.js +0 -361
  758. package/dist/cjs/sk-e85b9c15.js +0 -150
  759. package/dist/cjs/sl-9eb375c2.js +0 -170
  760. package/dist/cjs/solution-store-4de89072.js +0 -1354
  761. package/dist/cjs/sr-1d2513be.js +0 -103
  762. package/dist/cjs/sv-f7693c9f.js +0 -73
  763. package/dist/cjs/t9n-64df74f3.js +0 -108
  764. package/dist/cjs/th-0d2328bb.js +0 -67
  765. package/dist/cjs/time-513586eb.js +0 -301
  766. package/dist/cjs/tr-2c074411.js +0 -68
  767. package/dist/cjs/uk-5e16db67.js +0 -106
  768. package/dist/cjs/utils-3f10ea6b.js +0 -153
  769. package/dist/cjs/utils-d0049d76.js +0 -79
  770. package/dist/cjs/vi-2a4d8334.js +0 -72
  771. package/dist/cjs/zh-cn-126bcbc0.js +0 -96
  772. package/dist/cjs/zh-hk-aeeba861.js +0 -94
  773. package/dist/cjs/zh-tw-0cfb6e20.js +0 -94
  774. package/dist/esm/ExpandToggle-d2cde0b5.js +0 -108
  775. package/dist/esm/FloatingArrow-1ba04e83.js +0 -46
  776. package/dist/esm/Heading-82d9e017.js +0 -22
  777. package/dist/esm/Validation-594a63f5.js +0 -18
  778. package/dist/esm/app-globals-177bd1cd.js +0 -65
  779. package/dist/esm/ar-a85b5d05.js +0 -104
  780. package/dist/esm/bg-def28c6d.js +0 -82
  781. package/dist/esm/browser-e3f463e1.js +0 -32
  782. package/dist/esm/bs-86bb2bcb.js +0 -51
  783. package/dist/esm/ca-823e6ba8.js +0 -71
  784. package/dist/esm/calcite-input-time-picker-c45e1964.js +0 -1867
  785. package/dist/esm/conditionalSlot-720a3c33.js +0 -51
  786. package/dist/esm/config-3af0e436.js +0 -36
  787. package/dist/esm/constants-637a40f5.js +0 -856
  788. package/dist/esm/cs-87414fd8.js +0 -147
  789. package/dist/esm/da-f7060594.js +0 -67
  790. package/dist/esm/date-8f6c3f50.js +0 -248
  791. package/dist/esm/de-18aa2195.js +0 -91
  792. package/dist/esm/de-at-00f0ce55.js +0 -90
  793. package/dist/esm/de-ch-2bf886c0.js +0 -90
  794. package/dist/esm/downloadUtils-bc7a4ba1.js +0 -3233
  795. package/dist/esm/el-0c5df4ce.js +0 -66
  796. package/dist/esm/en-au-947d067e.js +0 -66
  797. package/dist/esm/en-ca-d80eb647.js +0 -65
  798. package/dist/esm/en-gb-78272f13.js +0 -69
  799. package/dist/esm/es-6b8b399b.js +0 -66
  800. package/dist/esm/es-mx-4f12df51.js +0 -65
  801. package/dist/esm/et-11aeba76.js +0 -92
  802. package/dist/esm/fi-c44d11d6.js +0 -115
  803. package/dist/esm/floating-ui-d21020a0.js +0 -2404
  804. package/dist/esm/focusTrapComponent-1ddc67c5.js +0 -1008
  805. package/dist/esm/form-e9b1ad9a.js +0 -372
  806. package/dist/esm/fr-cac28d20.js +0 -68
  807. package/dist/esm/fr-ch-a324bd02.js +0 -66
  808. package/dist/esm/he-eab95e66.js +0 -105
  809. package/dist/esm/helpers-91ca0f44.js +0 -913
  810. package/dist/esm/hi-cefe2a7e.js +0 -65
  811. package/dist/esm/hr-f863024d.js +0 -80
  812. package/dist/esm/hu-2921d1d5.js +0 -88
  813. package/dist/esm/id-4e25c1e7.js +0 -66
  814. package/dist/esm/index-39bc2e6d.js +0 -199
  815. package/dist/esm/index-904bc599.js +0 -1736
  816. package/dist/esm/index.es-0d189a34.js +0 -11220
  817. package/dist/esm/interactive-949b348f.js +0 -82
  818. package/dist/esm/it-1f2ce2fc.js +0 -66
  819. package/dist/esm/it-ch-fa4f6a28.js +0 -66
  820. package/dist/esm/ja-dd6ac9b5.js +0 -72
  821. package/dist/esm/ko-3c269b4f.js +0 -72
  822. package/dist/esm/loadable-421e634e.js +0 -93
  823. package/dist/esm/locale-0d06fca0.js +0 -155
  824. package/dist/esm/locale-77038bee.js +0 -115
  825. package/dist/esm/locale-a75d14ff.js +0 -591
  826. package/dist/esm/logger-5c7a2fec.js +0 -59
  827. package/dist/esm/lt-8f5fd3eb.js +0 -97
  828. package/dist/esm/lv-d1afc7ed.js +0 -66
  829. package/dist/esm/mk-794650fc.js +0 -66
  830. package/dist/esm/nb-800989aa.js +0 -67
  831. package/dist/esm/nl-634b9b85.js +0 -67
  832. package/dist/esm/observers-2d4fa9e3.js +0 -56
  833. package/dist/esm/openCloseComponent-4621d4ae.js +0 -63
  834. package/dist/esm/pl-45fb968c.js +0 -114
  835. package/dist/esm/popupUtils-03dc398a.js +0 -119
  836. package/dist/esm/pt-bd7887a6.js +0 -67
  837. package/dist/esm/pt-br-d9181dce.js +0 -65
  838. package/dist/esm/publicNotificationStore-8f6b0f93.js +0 -45
  839. package/dist/esm/ro-31fe0dcc.js +0 -66
  840. package/dist/esm/ru-e73bc075.js +0 -126
  841. package/dist/esm/shared-list-render-83bb7274.js +0 -339
  842. package/dist/esm/sk-e7e24146.js +0 -148
  843. package/dist/esm/sl-ad96d047.js +0 -168
  844. package/dist/esm/solution-store-ff13861b.js +0 -1352
  845. package/dist/esm/sr-785166a3.js +0 -101
  846. package/dist/esm/sv-9f422817.js +0 -71
  847. package/dist/esm/t9n-23649a4a.js +0 -103
  848. package/dist/esm/th-7e8b3dad.js +0 -65
  849. package/dist/esm/time-5ca488ba.js +0 -286
  850. package/dist/esm/tr-1b1dd6db.js +0 -66
  851. package/dist/esm/uk-13d0afbf.js +0 -104
  852. package/dist/esm/utils-0a78d3c9.js +0 -142
  853. package/dist/esm/utils-a564ca55.js +0 -66
  854. package/dist/esm/vi-82ec876c.js +0 -70
  855. package/dist/esm/zh-cn-c4181895.js +0 -94
  856. package/dist/esm/zh-hk-752cc263.js +0 -92
  857. package/dist/esm/zh-tw-e653ba6c.js +0 -92
  858. package/dist/solutions-components/p-053effee.entry.js +0 -6
  859. package/dist/solutions-components/p-05ae2b11.entry.js +0 -6
  860. package/dist/solutions-components/p-087c3740.entry.js +0 -6
  861. package/dist/solutions-components/p-08c18450.js +0 -11
  862. package/dist/solutions-components/p-09543b4e.js +0 -6
  863. package/dist/solutions-components/p-09d34b2b.entry.js +0 -11
  864. package/dist/solutions-components/p-0af967af.js +0 -6
  865. package/dist/solutions-components/p-0f8241d2.entry.js +0 -6
  866. package/dist/solutions-components/p-10a158fd.entry.js +0 -11
  867. package/dist/solutions-components/p-115af8e4.entry.js +0 -11
  868. package/dist/solutions-components/p-11c2426d.entry.js +0 -20
  869. package/dist/solutions-components/p-1336a071.entry.js +0 -6
  870. package/dist/solutions-components/p-1588fad8.entry.js +0 -6
  871. package/dist/solutions-components/p-177b4cbc.js +0 -16
  872. package/dist/solutions-components/p-184b270d.entry.js +0 -11
  873. package/dist/solutions-components/p-191f30e1.entry.js +0 -11
  874. package/dist/solutions-components/p-19e89591.entry.js +0 -12
  875. package/dist/solutions-components/p-1afc5947.entry.js +0 -11
  876. package/dist/solutions-components/p-1b1ff60a.entry.js +0 -6
  877. package/dist/solutions-components/p-1e8af7ed.js +0 -6
  878. package/dist/solutions-components/p-1f65aed7.js +0 -6
  879. package/dist/solutions-components/p-1fafdc23.entry.js +0 -11
  880. package/dist/solutions-components/p-20ed3f7f.entry.js +0 -11
  881. package/dist/solutions-components/p-2105e658.entry.js +0 -6
  882. package/dist/solutions-components/p-25f30972.entry.js +0 -11
  883. package/dist/solutions-components/p-2714a658.entry.js +0 -6
  884. package/dist/solutions-components/p-2714ede8.entry.js +0 -16
  885. package/dist/solutions-components/p-274aa753.entry.js +0 -6
  886. package/dist/solutions-components/p-294cd25c.js +0 -6
  887. package/dist/solutions-components/p-2b9f9f7d.js +0 -16
  888. package/dist/solutions-components/p-2d9072d8.entry.js +0 -11
  889. package/dist/solutions-components/p-2e0aea4e.entry.js +0 -11
  890. package/dist/solutions-components/p-2e42f34c.js +0 -6
  891. package/dist/solutions-components/p-2f1ef41d.entry.js +0 -6
  892. package/dist/solutions-components/p-2f784608.entry.js +0 -6
  893. package/dist/solutions-components/p-351c7cbf.entry.js +0 -6
  894. package/dist/solutions-components/p-368902f1.entry.js +0 -6
  895. package/dist/solutions-components/p-39e21b70.js +0 -6
  896. package/dist/solutions-components/p-3aee989b.js +0 -11
  897. package/dist/solutions-components/p-3af39767.entry.js +0 -6
  898. package/dist/solutions-components/p-3ba388b6.entry.js +0 -17
  899. package/dist/solutions-components/p-3d999f0f.entry.js +0 -6
  900. package/dist/solutions-components/p-3e44cfab.entry.js +0 -6
  901. package/dist/solutions-components/p-3e87c19c.js +0 -6
  902. package/dist/solutions-components/p-3f9ec755.js +0 -6
  903. package/dist/solutions-components/p-3fe6c230.entry.js +0 -6
  904. package/dist/solutions-components/p-41503b16.entry.js +0 -6
  905. package/dist/solutions-components/p-4416d650.entry.js +0 -17
  906. package/dist/solutions-components/p-443be7fe.js +0 -6
  907. package/dist/solutions-components/p-44dc3dec.entry.js +0 -6
  908. package/dist/solutions-components/p-4695cfab.js +0 -6
  909. package/dist/solutions-components/p-499489c5.entry.js +0 -6
  910. package/dist/solutions-components/p-49df6eb3.entry.js +0 -11
  911. package/dist/solutions-components/p-4a665563.js +0 -6
  912. package/dist/solutions-components/p-4b15f4a4.entry.js +0 -11
  913. package/dist/solutions-components/p-4b47caf1.entry.js +0 -11
  914. package/dist/solutions-components/p-4d6e359e.entry.js +0 -11
  915. package/dist/solutions-components/p-4e3a18b1.js +0 -6
  916. package/dist/solutions-components/p-4e6eb06e.js +0 -7
  917. package/dist/solutions-components/p-4ff35ed4.js +0 -6
  918. package/dist/solutions-components/p-5104cc98.js +0 -6
  919. package/dist/solutions-components/p-51c6e6fe.js +0 -21
  920. package/dist/solutions-components/p-545a48dc.entry.js +0 -11
  921. package/dist/solutions-components/p-55bbfdbc.entry.js +0 -6
  922. package/dist/solutions-components/p-5804e6e1.entry.js +0 -22
  923. package/dist/solutions-components/p-58cff07f.entry.js +0 -11
  924. package/dist/solutions-components/p-592ab45c.js +0 -6
  925. package/dist/solutions-components/p-592f2000.entry.js +0 -6
  926. package/dist/solutions-components/p-5b5b78c0.js +0 -6
  927. package/dist/solutions-components/p-614a66c4.entry.js +0 -11
  928. package/dist/solutions-components/p-6166d8b4.js +0 -16
  929. package/dist/solutions-components/p-61cc2efe.js +0 -6
  930. package/dist/solutions-components/p-62c10928.entry.js +0 -6
  931. package/dist/solutions-components/p-63d334b2.entry.js +0 -6
  932. package/dist/solutions-components/p-677db47a.js +0 -6
  933. package/dist/solutions-components/p-68375137.js +0 -6
  934. package/dist/solutions-components/p-6a3f2249.entry.js +0 -6
  935. package/dist/solutions-components/p-6acd19c5.entry.js +0 -12
  936. package/dist/solutions-components/p-6b5b52c1.entry.js +0 -21
  937. package/dist/solutions-components/p-6cad2a22.js +0 -6
  938. package/dist/solutions-components/p-6f606cdb.js +0 -61
  939. package/dist/solutions-components/p-7059fc40.js +0 -6
  940. package/dist/solutions-components/p-70eba636.entry.js +0 -6
  941. package/dist/solutions-components/p-71f31d39.js +0 -6
  942. package/dist/solutions-components/p-74720d2b.js +0 -6
  943. package/dist/solutions-components/p-764ff506.entry.js +0 -11
  944. package/dist/solutions-components/p-76a1236d.entry.js +0 -6
  945. package/dist/solutions-components/p-770a5a64.js +0 -11
  946. package/dist/solutions-components/p-77865541.entry.js +0 -11
  947. package/dist/solutions-components/p-78b6d3fe.entry.js +0 -6
  948. package/dist/solutions-components/p-78df7603.entry.js +0 -11
  949. package/dist/solutions-components/p-78e09c03.js +0 -6
  950. package/dist/solutions-components/p-7a7951bd.entry.js +0 -11
  951. package/dist/solutions-components/p-7bcfe068.entry.js +0 -6
  952. package/dist/solutions-components/p-7cc8e95a.js +0 -11
  953. package/dist/solutions-components/p-7d5d1b0a.js +0 -11
  954. package/dist/solutions-components/p-7eee9aa8.js +0 -11
  955. package/dist/solutions-components/p-7f68e6a4.js +0 -11
  956. package/dist/solutions-components/p-7fb51464.entry.js +0 -17
  957. package/dist/solutions-components/p-80ff858b.js +0 -6
  958. package/dist/solutions-components/p-8304ce4b.js +0 -17
  959. package/dist/solutions-components/p-85c068fd.js +0 -6
  960. package/dist/solutions-components/p-85c3237c.js +0 -11
  961. package/dist/solutions-components/p-860099d5.js +0 -6
  962. package/dist/solutions-components/p-86a5caf8.js +0 -6
  963. package/dist/solutions-components/p-86db882f.js +0 -6
  964. package/dist/solutions-components/p-872986ce.entry.js +0 -11
  965. package/dist/solutions-components/p-8a2ccb1e.js +0 -6
  966. package/dist/solutions-components/p-8cb9ecf6.js +0 -6
  967. package/dist/solutions-components/p-8d811472.js +0 -6
  968. package/dist/solutions-components/p-8dc9d5b6.entry.js +0 -6
  969. package/dist/solutions-components/p-8f8c7045.entry.js +0 -6
  970. package/dist/solutions-components/p-8ff43000.entry.js +0 -11
  971. package/dist/solutions-components/p-91a83986.entry.js +0 -47
  972. package/dist/solutions-components/p-928f0b5e.entry.js +0 -6
  973. package/dist/solutions-components/p-93d03bf0.js +0 -11
  974. package/dist/solutions-components/p-94e51621.entry.js +0 -6
  975. package/dist/solutions-components/p-977c099e.js +0 -11
  976. package/dist/solutions-components/p-9c25ee2c.entry.js +0 -6
  977. package/dist/solutions-components/p-9c5d5171.js +0 -11
  978. package/dist/solutions-components/p-9d86dd68.js +0 -6
  979. package/dist/solutions-components/p-9d9e0e74.entry.js +0 -6
  980. package/dist/solutions-components/p-9e8d7c1d.entry.js +0 -17
  981. package/dist/solutions-components/p-9e996faa.js +0 -6
  982. package/dist/solutions-components/p-a1473254.entry.js +0 -11
  983. package/dist/solutions-components/p-a1ed15b8.entry.js +0 -11
  984. package/dist/solutions-components/p-a329f05c.entry.js +0 -6
  985. package/dist/solutions-components/p-a52fa87b.entry.js +0 -11
  986. package/dist/solutions-components/p-a5f6a4b9.entry.js +0 -23
  987. package/dist/solutions-components/p-a6790373.entry.js +0 -11
  988. package/dist/solutions-components/p-a693aa25.entry.js +0 -17
  989. package/dist/solutions-components/p-a7d249d9.js +0 -6
  990. package/dist/solutions-components/p-a7d4b1a4.js +0 -6
  991. package/dist/solutions-components/p-ac9c4111.entry.js +0 -12
  992. package/dist/solutions-components/p-acc4d847.entry.js +0 -11
  993. package/dist/solutions-components/p-adabe68e.entry.js +0 -6
  994. package/dist/solutions-components/p-ae5ea416.entry.js +0 -6
  995. package/dist/solutions-components/p-b138a65e.js +0 -11
  996. package/dist/solutions-components/p-b49e1a78.js +0 -6
  997. package/dist/solutions-components/p-b5a5da41.entry.js +0 -17
  998. package/dist/solutions-components/p-b6d50640.entry.js +0 -6
  999. package/dist/solutions-components/p-b8d1b57a.entry.js +0 -6
  1000. package/dist/solutions-components/p-b90978d2.js +0 -6
  1001. package/dist/solutions-components/p-b95968fa.entry.js +0 -6
  1002. package/dist/solutions-components/p-bab47a85.entry.js +0 -29
  1003. package/dist/solutions-components/p-bd35725f.js +0 -6
  1004. package/dist/solutions-components/p-be6cd650.entry.js +0 -11
  1005. package/dist/solutions-components/p-c0ceb17a.js +0 -6
  1006. package/dist/solutions-components/p-c2ceb29c.js +0 -6
  1007. package/dist/solutions-components/p-c350eacb.js +0 -143
  1008. package/dist/solutions-components/p-c399f2b8.entry.js +0 -6
  1009. package/dist/solutions-components/p-c604728b.js +0 -6
  1010. package/dist/solutions-components/p-c63451e1.entry.js +0 -11
  1011. package/dist/solutions-components/p-c7f86f73.entry.js +0 -6
  1012. package/dist/solutions-components/p-c8e22575.entry.js +0 -22
  1013. package/dist/solutions-components/p-c9422007.js +0 -6
  1014. package/dist/solutions-components/p-c9715704.entry.js +0 -11
  1015. package/dist/solutions-components/p-cb8d90d1.js +0 -11
  1016. package/dist/solutions-components/p-cc6f6e41.entry.js +0 -17
  1017. package/dist/solutions-components/p-cd482a33.js +0 -21
  1018. package/dist/solutions-components/p-cdc63710.entry.js +0 -11
  1019. package/dist/solutions-components/p-ce7b0b1a.entry.js +0 -11
  1020. package/dist/solutions-components/p-cf2947f6.entry.js +0 -11
  1021. package/dist/solutions-components/p-d02fb95c.entry.js +0 -17
  1022. package/dist/solutions-components/p-d031cf50.entry.js +0 -11
  1023. package/dist/solutions-components/p-d0ebd10d.js +0 -6
  1024. package/dist/solutions-components/p-d154b5a1.entry.js +0 -11
  1025. package/dist/solutions-components/p-d1b2484b.entry.js +0 -17
  1026. package/dist/solutions-components/p-d2c2a105.entry.js +0 -11
  1027. package/dist/solutions-components/p-d2f8d8a8.entry.js +0 -6
  1028. package/dist/solutions-components/p-d37a68f7.entry.js +0 -6
  1029. package/dist/solutions-components/p-d390df76.entry.js +0 -11
  1030. package/dist/solutions-components/p-d3e1cc81.js +0 -6
  1031. package/dist/solutions-components/p-d851b11e.js +0 -6
  1032. package/dist/solutions-components/p-d9d25da8.entry.js +0 -11
  1033. package/dist/solutions-components/p-d9e9fe80.js +0 -16
  1034. package/dist/solutions-components/p-d9f3778e.js +0 -6
  1035. package/dist/solutions-components/p-daae2ae7.js +0 -6
  1036. package/dist/solutions-components/p-db7d5db8.entry.js +0 -6
  1037. package/dist/solutions-components/p-dc9d4be3.js +0 -6
  1038. package/dist/solutions-components/p-ddb37cba.entry.js +0 -11
  1039. package/dist/solutions-components/p-df062602.entry.js +0 -11
  1040. package/dist/solutions-components/p-e29e57db.entry.js +0 -6
  1041. package/dist/solutions-components/p-e2fd2e29.js +0 -6
  1042. package/dist/solutions-components/p-e3111b70.js +0 -6
  1043. package/dist/solutions-components/p-e37e117f.js +0 -11
  1044. package/dist/solutions-components/p-e4be63b6.entry.js +0 -11
  1045. package/dist/solutions-components/p-e4e7add2.js +0 -11
  1046. package/dist/solutions-components/p-e625aa69.entry.js +0 -6
  1047. package/dist/solutions-components/p-e93a531c.entry.js +0 -11
  1048. package/dist/solutions-components/p-e9a0d2f3.entry.js +0 -6
  1049. package/dist/solutions-components/p-e9fcc194.entry.js +0 -6
  1050. package/dist/solutions-components/p-ee487e75.entry.js +0 -11
  1051. package/dist/solutions-components/p-ef773a13.js +0 -11
  1052. package/dist/solutions-components/p-f09744aa.entry.js +0 -6
  1053. package/dist/solutions-components/p-f3119757.entry.js +0 -11
  1054. package/dist/solutions-components/p-f4aadb3b.js +0 -36
  1055. package/dist/solutions-components/p-f5789e08.entry.js +0 -29
  1056. package/dist/solutions-components/p-f57978f3.entry.js +0 -6
  1057. package/dist/solutions-components/p-f6cc1cf8.entry.js +0 -17
  1058. package/dist/solutions-components/p-f845da58.js +0 -6
  1059. package/dist/solutions-components/p-fbf63d14.entry.js +0 -6
  1060. package/dist/solutions-components/p-fc7c88c8.js +0 -6
  1061. package/dist/solutions-components/p-fd019d15.js +0 -11
  1062. package/dist/solutions-components/p-fd40d066.js +0 -6
  1063. package/dist/solutions-components/p-febf9f75.entry.js +0 -11
  1064. package/dist/solutions-components/p-ff9e28d1.js +0 -488
@@ -0,0 +1,4174 @@
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
+ 'use strict';
7
+
8
+ const locale = require('./locale-f6e0493d.js');
9
+ const index = require('./index-92385c74.js');
10
+
11
+ function _interopNamespace(e) {
12
+ if (e && e.__esModule) return e;
13
+ var n = Object.create(null);
14
+ if (e) {
15
+ Object.keys(e).forEach(function (k) {
16
+ if (k !== 'default') {
17
+ var d = Object.getOwnPropertyDescriptor(e, k);
18
+ Object.defineProperty(n, k, d.get ? d : {
19
+ enumerable: true,
20
+ get: function () {
21
+ return e[k];
22
+ }
23
+ });
24
+ }
25
+ });
26
+ }
27
+ n['default'] = e;
28
+ return Object.freeze(n);
29
+ }
30
+
31
+ /*
32
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
33
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
34
+ */
35
+ const i$6=()=>locale.n.getLogger("esri.intl.substitute");function s$8(t,r,n={}){const{format:o={}}=n;return locale.r(t,(t=>u$2(t,r,o)))}function u$2(t,e,n){let o,i;const s=t.indexOf(":");if(-1===s?o=t.trim():(o=t.slice(0,s).trim(),i=t.slice(s+1).trim()),!o)return "";const u=locale.t(o,e);if(null==u)return "";const m=(i?n?.[i]:null)??n?.[o];return m?c$6(u,m):i?a$2(u,i):f$3(u)}function c$6(t,r){switch(r.type){case"date":return locale.j(t,r.intlOptions);case"number":return locale.l(t,r.intlOptions);default:return i$6().warn("missing format descriptor for key {key}"),f$3(t)}}function a$2(t,r){switch(r.toLowerCase()){case"dateformat":return locale.j(t);case"numberformat":return locale.l(t);default:return i$6().warn(`inline format is unsupported since 4.12: ${r}`),/^(dateformat|datestring)/i.test(r)?locale.j(t):/^numberformat/i.test(r)?locale.l(t):f$3(t)}}function f$3(t){switch(typeof t){case"string":return t;case"number":return locale.l(t);case"boolean":return ""+t;default:return t instanceof Date?locale.j(t):""}}
36
+
37
+ /*
38
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
39
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
40
+ */
41
+ class i$5{constructor(){this._emitter=new i$5.EventEmitter(this);}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}}!function(o){class c{constructor(e=null){this._target=e,this._listenersMap=null;}clear(){this._listenersMap?.clear(),this._listenersMap=null;}destroy(){this.clear();}emit(e,t){let r=this._listenersMap?.get(e);if(!r)return !1;const s=this._target||this;let n=!1;for(const i of r.slice()){const e="deref"in i?i.deref():i;e?e?.call(s,t):n=!0;}return n&&(r=r.filter((e=>!("deref"in e)||null!=e.deref())),this._listenersMap.set(e,r)),r.length>0}on(e,t){if(Array.isArray(e)){const s=e.map((e=>this.on(e,t)));return locale.t$1(s)}if(e.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;const n=this._listenersMap.get(e)||[];return n.push(t),this._listenersMap.set(e,n),locale.e((()=>{const r=this._listenersMap?.get(e),s=r?.indexOf(t)??-1;s>=0&&r.splice(s,1);}))}once(e,t){const r=this.on(e,(e=>{r.remove();const s="deref"in t?t.deref():t;s?.call(null,e);}));return r}hasEventListener(e){const t=this._listenersMap?.get(e);return null!=t&&t.length>0}}o.EventEmitter=c,o.EventedMixin=t=>{let r=class extends t{constructor(){super(...arguments),this._emitter=new c;}destroy(){this._emitter.clear();}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};return r=locale.r$1([locale.a("esri.core.Evented")],r),r};let l=class extends locale.b{constructor(){super(...arguments),this._emitter=new i$5.EventEmitter(this);}destroy(){this._emitter.clear();}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};l=locale.r$1([locale.a("esri.core.Evented.EventedAccessor")],l),o.EventedAccessor=l;}(i$5||(i$5={}));const o$6=i$5;
42
+
43
+ /*
44
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
45
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
46
+ */
47
+ function n$b(n){return "string"==typeof n?document.getElementById(n):n??null}
48
+
49
+ /*
50
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
51
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
52
+ */
53
+ var l$2;!function(s){s[s.PENDING=0]="PENDING",s[s.RESOLVED=1]="RESOLVED",s[s.REJECTED=2]="REJECTED";}(l$2||(l$2={}));class h$5{constructor(){this._resolver=locale.L(),this._status=l$2.PENDING,this._resolvingPromises=[],this._resolver.promise.then((()=>{this._status=l$2.RESOLVED,this._cleanUp();}),(()=>{this._status=l$2.REJECTED,this._cleanUp();})),this.promise=this._resolver.promise;}destroy(){this._cleanUp();}addResolvingPromise(s){this._resolvingPromises.push(s),this._tryResolve();}isResolved(){return this._status===l$2.RESOLVED}isRejected(){return this._status===l$2.REJECTED}isFulfilled(){return this._status!==l$2.PENDING}abort(){this._resolver.reject(locale.u());}_cleanUp(){this._allPromise=null,this._resolvingPromises=null;}_tryResolve(){if(this.isFulfilled())return;const s=locale.L(),e=[...this._resolvingPromises,s.promise],i=this._allPromise=Promise.all(e);i.then((()=>{this.isFulfilled()||this._allPromise!==i||this._resolver.resolve();}),(s=>{this.isFulfilled()||this._allPromise!==i||locale.b$1(s)||this._resolver.reject(s);})),s.resolve();}}const n$a=e=>{let r=class extends e{constructor(...s){super(...s),this._promiseProps=new h$5,this.addResolvingPromise(Promise.resolve());}destroy(){this._promiseProps.destroy();}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(s,e){return this._promiseProps.promise.then((()=>this)).then(s,e)}catch(s){return this.when(null,s)}addResolvingPromise(s){s&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in s?s.when():s);}};return r=locale.r$1([locale.a("esri.core.Promise")],r),r};let m$3=class extends(n$a(locale.b)){};m$3=locale.r$1([locale.a("esri.core.Promise")],m$3);
54
+
55
+ /*
56
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
57
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
58
+ */
59
+ function c$5(r){return {ok:!0,value:r}}function h$4(r){return {ok:!1,error:r}}function m$2(r){return null!=r&&!0===r.ok?r.value:null}function f$2(r){return null!=r&&!1===r.ok?r.error:null}let v$2=class extends locale.b{get value(){return m$2(this._result)}get error(){return f$2(this._result)}get finished(){return null!=this._result}constructor(r,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=locale.e$1(this._abortController);},this.remove=this.abort,this._abortController=new AbortController;const{signal:e}=this._abortController;this.promise=r(e),this.promise.then((r=>{this._result=c$5(r),this._cleanup();}),(r=>{this._result=h$4(r),this._cleanup();})),this._abortHandle=locale.m$1(t,this.abort);}normalizeCtorArgs(){return {}}destroy(){this.abort();}_cleanup(){this._abortHandle=locale.l$1(this._abortHandle),this._abortController=null;}};locale.r$1([locale.m()],v$2.prototype,"value",null),locale.r$1([locale.m()],v$2.prototype,"error",null),locale.r$1([locale.m()],v$2.prototype,"finished",null),locale.r$1([locale.m()],v$2.prototype,"promise",void 0),locale.r$1([locale.m()],v$2.prototype,"_result",void 0),v$2=locale.r$1([locale.a("esri.core.asyncUtils.ReactiveTask")],v$2);
60
+
61
+ /*
62
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
63
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
64
+ */
65
+ var E$2;!function(E){E[E.ADD=1]="ADD",E[E.REMOVE=2]="REMOVE",E[E.MOVE=4]="MOVE";}(E$2||(E$2={}));
66
+
67
+ /*
68
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
69
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
70
+ */
71
+ function n$9(n){return (r,t)=>{r[t]=n;}}
72
+
73
+ /*
74
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
75
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
76
+ */
77
+ class s$7 extends locale.r$2{notify(){const o=this._observers;if(o&&o.length>0){const s=o.slice();for(const o of s)o.onInvalidated(),o.onCommitted();}}}
78
+
79
+ /*
80
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
81
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
82
+ */
83
+ var g$2;class d$7{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0;}preventDefault(){this.cancellable&&(this.defaultPrevented=!0);}reset(e){this.defaultPrevented=!1,this.item=e;}}class p$5{constructor(e,t,s,i,r){this.target=e,this.added=t,this.removed=s,this.start=i,this.deleteCount=r;}}const b$2=new locale.e$2(d$7,void 0,(e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1;}));function v$1(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy();}function y$3(e){return e?e instanceof R$1?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function E$1(e){if(e?.length)return e[0]}function A$3(e,t,s,i){const r=Math.min(e.length-s,t.length-i);let n=0;for(;n<r&&e[s+n]===t[i+n];)n++;return n}function C$2(e,t,s,i){t&&t.forEach(((t,r,n)=>{e.push(t),C$2(e,s.call(i,t,r,n),s,i);}));}const O$1=new Set,M$1=new Set,D$1=new Set,x$2=new Map;let j$1=0,R$1=g$2=class extends o$6.EventedAccessor{static isCollection(e){return null!=e&&e instanceof g$2}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new s$7,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:j$1++});}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof g$2?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),this._emitter.destroy(),this._notifications=null;}*[Symbol.iterator](){yield*this.items;}get items(){return locale.a$1(this._observable),this._items}set items(e){this._emitBeforeChanges(E$2.ADD)||(this._splice(0,this.length,y$3(e)),this._emitAfterChanges(E$2.ADD));}hasEventListener(e){return !this.destroyed&&("change"===e?this._chgListeners.length>0:this._emitter.hasEventListener(e))}on(e,t){if(this.destroyed)return locale.e();if("change"===e){const e=this._chgListeners,s={removed:!1,callback:t};return e.push(s),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),locale.e((()=>{s.removed=!0,e.splice(e.indexOf(s),1);}))}return this._emitter.on(e,t)}once(e,t){const s="deref"in t?()=>t.deref():()=>t,i=this.on(e,(e=>{s()?.call(null,e),i.remove();}));return i}add(e,t){if(locale.a$1(this._observable),this._emitBeforeChanges(E$2.ADD))return this;const s=this.getNextIndex(t??null);return this._splice(s,0,[e]),this._emitAfterChanges(E$2.ADD),this}addMany(e,t=this._items.length){if(locale.a$1(this._observable),!e?.length)return this;if(this._emitBeforeChanges(E$2.ADD))return this;const s=this.getNextIndex(t);return this._splice(s,0,y$3(e)),this._emitAfterChanges(E$2.ADD),this}at(e){if(locale.a$1(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if(locale.a$1(this._observable),!this.length||this._emitBeforeChanges(E$2.REMOVE))return [];const e=this._removeAllRaw();return this._emitAfterChanges(E$2.REMOVE),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return locale.a$1(this._observable),this._createNewInstance({items:this._items.map(locale.a$2)})}concat(...e){locale.a$1(this._observable);const t=e.map(y$3);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if(locale.a$1(this._observable),!this.length||this._emitBeforeChanges(E$2.REMOVE))return;const s=this._splice(0,this.length),i=s.length;for(let r=0;r<i;r++)e.call(t,s[r],r,s);this._emitAfterChanges(E$2.REMOVE);}destroyAll(){this.drain(v$1);}destroyMany(e){const t=this.removeMany(e);return t.forEach(v$1),t}every(e,t){return locale.a$1(this._observable),this._items.every(e,t)}filter(e,t){let s;return locale.a$1(this._observable),s=2===arguments.length?this._items.filter(e,t):this._items.filter(e),this._createNewInstance({items:s})}find(e,t){return locale.a$1(this._observable),this._items.find(e,t)}findIndex(e,t){return locale.a$1(this._observable),this._items.findIndex(e,t)}flatten(e,t){locale.a$1(this._observable);const s=[];return C$2(s,this,e,t),new g$2(s)}forEach(e,t){return locale.a$1(this._observable),this._items.forEach(e,t)}getItemAt(e){return locale.a$1(this._observable),this._items[e]}getNextIndex(e){locale.a$1(this._observable);const t=this.length;return (e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return locale.a$1(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return locale.a$1(this._observable),this._items.indexOf(e,t)}join(e=","){return locale.a$1(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return locale.a$1(this._observable),this._items.lastIndexOf(e,t)}map(e,t){locale.a$1(this._observable);const s=this._items.map(e,t);return new g$2({items:s})}reorder(e,t=this.length-1){locale.a$1(this._observable);const s=this.indexOf(e);if(-1!==s){if(t<0?t=0:t>=this.length&&(t=this.length-1),s!==t){if(this._emitBeforeChanges(E$2.MOVE))return e;this._splice(s,1),this._splice(t,0,[e]),this._emitAfterChanges(E$2.MOVE);}return e}}pop(){if(locale.a$1(this._observable),!this.length||this._emitBeforeChanges(E$2.REMOVE))return;const e=E$1(this._splice(this.length-1,1));return this._emitAfterChanges(E$2.REMOVE),e}push(...e){return locale.a$1(this._observable),this._emitBeforeChanges(E$2.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(E$2.ADD)),this.length}reduce(e,t){locale.a$1(this._observable);const s=this._items;return 2===arguments.length?s.reduce(e,t):s.reduce(e)}reduceRight(e,t){locale.a$1(this._observable);const s=this._items;return 2===arguments.length?s.reduceRight(e,t):s.reduceRight(e)}remove(e){return locale.a$1(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if(locale.a$1(this._observable),e<0||e>=this.length||this._emitBeforeChanges(E$2.REMOVE))return;const t=E$1(this._splice(e,1));return this._emitAfterChanges(E$2.REMOVE),t}removeMany(e){if(locale.a$1(this._observable),!e?.length||this._emitBeforeChanges(E$2.REMOVE))return [];const t=e instanceof g$2?e.toArray():e,s=this._items,i=[],r=t.length;for(let n=0;n<r;n++){const e=t[n],r=s.indexOf(e);if(r>-1){const e=1+A$3(t,s,n+1,r+1),h=this._splice(r,e);h&&h.length>0&&i.push.apply(i,h),n+=e-1;}}return this._emitAfterChanges(E$2.REMOVE),i}reverse(){if(locale.a$1(this._observable),this._emitBeforeChanges(E$2.MOVE))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(E$2.MOVE),this}shift(){if(locale.a$1(this._observable),!this.length||this._emitBeforeChanges(E$2.REMOVE))return;const e=E$1(this._splice(0,1));return this._emitAfterChanges(E$2.REMOVE),e}slice(e=0,t=this.length){return locale.a$1(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return locale.a$1(this._observable),this._items.some(e,t)}sort(e){if(locale.a$1(this._observable),!this.length||this._emitBeforeChanges(E$2.MOVE))return this;const t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(E$2.MOVE),this}splice(e,t,...s){locale.a$1(this._observable);const i=(t?E$2.REMOVE:0)|(s.length?E$2.ADD:0);if(this._emitBeforeChanges(i))return [];const r=this._splice(e,t,s)||[];return this._emitAfterChanges(i),r}toArray(){return locale.a$1(this._observable),this._items.slice()}toJSON(){return locale.a$1(this._observable),this.toArray()}toLocaleString(){return locale.a$1(this._observable),this._items.toLocaleString()}toString(){return locale.a$1(this._observable),this._items.toString()}unshift(...e){return locale.a$1(this._observable),!e.length||this._emitBeforeChanges(E$2.ADD)||(this._splice(0,0,e),this._emitAfterChanges(E$2.ADD)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,s){const i=this._items,r=this.itemType;let n,h;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=locale.v((()=>this._dispatchChange()))),e<0&&(e+=this.length),t){if(h=i.splice(e,t),this.hasEventListener("before-remove")){const t=b$2.acquire();t.target=this,t.cancellable=!0;for(let s=0,r=h.length;s<r;s++)n=h[s],t.reset(n),this.emit("before-remove",t),t.defaultPrevented&&(h.splice(s,1),i.splice(e,0,n),e+=1,s-=1,r-=1);b$2.release(t);}if(this.length=this._items.length,this.hasEventListener("after-remove")){const e=b$2.acquire();e.target=this,e.cancellable=!1;const t=h.length;for(let s=0;s<t;s++)e.reset(h[s]),this.emit("after-remove",e);b$2.release(e);}}if(s?.length){if(r){const e=[];for(const t of s){const s=r.ensureType(t);null==s&&null!=t||e.push(s);}s=e;}const t=this.hasEventListener("before-add"),n=this.hasEventListener("after-add"),h=e===this.length;if(t||n){const r=b$2.acquire();r.target=this,r.cancellable=!0;const o=b$2.acquire();o.target=this,o.cancellable=!1;for(const l of s)t?(r.reset(l),this.emit("before-add",r),r.defaultPrevented||(h?i.push(l):i.splice(e++,0,l),this._set("length",i.length),n&&(o.reset(l),this.emit("after-add",o)))):(h?i.push(l):i.splice(e++,0,l),this._set("length",i.length),o.reset(l),this.emit("after-add",o));b$2.release(o),b$2.release(r);}else {if(h)for(const e of s)i.push(e);else i.splice(e,0,...s);this._set("length",i.length);}}if((s?.length||h?.length)&&this._notifyChangeEvent(s,h),this.hasEventListener("after-splice")){const i=new p$5(this,s,h,e,t);this.emit("after-splice",i);}return h}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const s=b$2.acquire();s.target=this,s.cancellable=!0,s.type=e,this.emit("before-changes",s),t=s.defaultPrevented,b$2.release(s);}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=b$2.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),b$2.release(t);}this._observable.notify();}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t});}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const e=this._notifications;this._notifications=null;for(const s of e){const e=s.changes;O$1.clear(),M$1.clear(),D$1.clear();for(const{added:t,removed:s}of e){if(t)if(0===D$1.size&&0===M$1.size)for(const e of t)O$1.add(e);else for(const e of t)M$1.has(e)?(D$1.add(e),M$1.delete(e)):D$1.has(e)||O$1.add(e);if(s)if(0===D$1.size&&0===O$1.size)for(const e of s)M$1.add(e);else for(const e of s)O$1.has(e)?O$1.delete(e):(D$1.delete(e),M$1.add(e));}const i=locale.t$2.acquire();O$1.forEach((e=>{i.push(e);}));const r=locale.t$2.acquire();M$1.forEach((e=>{r.push(e);}));const n=this._items,h=s.items,o=locale.t$2.acquire();if(D$1.forEach((e=>{h.indexOf(e)!==n.indexOf(e)&&o.push(e);})),s.listeners&&(i.length||r.length||o.length)){const e={target:this,added:i,removed:r,moved:o},t=s.listeners.length;for(let i=0;i<t;i++){const t=s.listeners[i];t.removed||t.callback.call(this,e);}}locale.t$2.release(i),locale.t$2.release(r),locale.t$2.release(o);}O$1.clear(),M$1.clear(),D$1.clear();}};R$1.ofType=t=>{if(!t)return g$2;if(x$2.has(t))return x$2.get(t);let s=null;if("function"==typeof t)s=t.prototype.declaredClass;else if(t.base)s=t.base.prototype.declaredClass;else for(const e in t.typeMap){const i=t.typeMap[e].prototype.declaredClass;s?s+=` | ${i}`:s=i;}let i=class extends g$2{};return locale.r$1([n$9({Type:t,ensureType:"function"==typeof t?locale.w(t):locale.N(t)})],i.prototype,"itemType",void 0),i=locale.r$1([locale.a(`esri.core.Collection<${s}>`)],i),x$2.set(t,i),i},locale.r$1([locale.m()],R$1.prototype,"_updating",void 0),locale.r$1([locale.m()],R$1.prototype,"length",void 0),locale.r$1([locale.m()],R$1.prototype,"items",null),locale.r$1([locale.m({readOnly:!0})],R$1.prototype,"updating",null),R$1=g$2=locale.r$1([locale.a("esri.core.Collection")],R$1);
84
+
85
+ /*
86
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
87
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
88
+ */
89
+ function d$6(n,e,t={}){return y$2(n,e,t,L)}function p$4(n,e,t={}){return y$2(n,e,t,M)}function y$2(n,e,t={},o){let r=null;const s=t.once?(n,t)=>{o(n)&&(locale.l$1(r),e(n,t));}:(n,t)=>{o(n)&&e(n,t);};if(r=locale.w$1(n,s,t.sync,t.equals),t.initial){const e=n();s(e,e);}return r}function L(n){return !0}function M(n){return !!n}const A$2={sync:!0,initial:!0};
90
+
91
+ /*
92
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
93
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
94
+ */
95
+ const t$6="randomUUID"in crypto;function n$8(){if(t$6)return crypto.randomUUID();const n=crypto.getRandomValues(new Uint16Array(8));n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;const r=t=>n[t].toString(16).padStart(4,"0");return r(0)+r(1)+"-"+r(2)+"-"+r(3)+"-"+r(4)+"-"+r(5)+r(6)+r(7)}
96
+
97
+ /*
98
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
99
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
100
+ */
101
+ const r$5=Object.prototype.toString;function o$5(n){const r="__accessorMetadata__"in n?locale.w(n):n;return function(...t){if(t.push(r),"number"==typeof t[2])throw new Error("Using @cast has parameter decorator is not supported since 4.16");return e$9.apply(this,t)}}function e$9(t,r,o,e){locale.o(t,r).cast=e;}function i$4(t){return (r,o)=>{locale.o(r,t).cast=r[o];}}function s$6(...t){if(3!==t.length||"string"!=typeof t[1])return 1===t.length&&"[object Function]"===r$5.call(t[0])?o$5(t[0]):1===t.length&&"string"==typeof t[0]?i$4(t[0]):void 0}
102
+
103
+ /*!
104
+ * @esri/arcgis-html-sanitizer - v4.1.0-next.3 - Wed Sep 25 2024 10:04:57 GMT-0400 (Eastern Daylight Time)
105
+ * Copyright (c) 2024 - Environmental Systems Research Institute, Inc.
106
+ * Apache-2.0
107
+ *
108
+ * js-xss
109
+ * Copyright (c) 2012-2018 Zongmin Lei(雷宗民) <leizongmin@gmail.com>
110
+ * http://ucdok.com
111
+ * MIT License, see https://github.com/leizongmin/js-xss/blob/master/LICENSE for details
112
+ */
113
+ /*! *****************************************************************************
114
+ Copyright (c) Microsoft Corporation.
115
+
116
+ Permission to use, copy, modify, and/or distribute this software for any
117
+ purpose with or without fee is hereby granted.
118
+
119
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
120
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
121
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
122
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
123
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
124
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
125
+ PERFORMANCE OF THIS SOFTWARE.
126
+ ***************************************************************************** */
127
+ /* global Reflect, Promise */
128
+
129
+
130
+ var __assign = function() {
131
+ __assign = Object.assign || function __assign(t) {
132
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
133
+ s = arguments[i];
134
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
135
+ }
136
+ return t;
137
+ };
138
+ return __assign.apply(this, arguments);
139
+ };
140
+
141
+ var lib$1 = {exports: {}};
142
+
143
+ var _default$1 = {};
144
+
145
+ var lib = {exports: {}};
146
+
147
+ var _default = {};
148
+
149
+ /**
150
+ * cssfilter
151
+ *
152
+ * @author 老雷<leizongmin@gmail.com>
153
+ */
154
+
155
+ function getDefaultWhiteList$1 () {
156
+ // 白名单值说明:
157
+ // true: 允许该属性
158
+ // Function: function (val) { } 返回true表示允许该属性,其他值均表示不允许
159
+ // RegExp: regexp.test(val) 返回true表示允许该属性,其他值均表示不允许
160
+ // 除上面列出的值外均表示不允许
161
+ var whiteList = {};
162
+
163
+ whiteList['align-content'] = false; // default: auto
164
+ whiteList['align-items'] = false; // default: auto
165
+ whiteList['align-self'] = false; // default: auto
166
+ whiteList['alignment-adjust'] = false; // default: auto
167
+ whiteList['alignment-baseline'] = false; // default: baseline
168
+ whiteList['all'] = false; // default: depending on individual properties
169
+ whiteList['anchor-point'] = false; // default: none
170
+ whiteList['animation'] = false; // default: depending on individual properties
171
+ whiteList['animation-delay'] = false; // default: 0
172
+ whiteList['animation-direction'] = false; // default: normal
173
+ whiteList['animation-duration'] = false; // default: 0
174
+ whiteList['animation-fill-mode'] = false; // default: none
175
+ whiteList['animation-iteration-count'] = false; // default: 1
176
+ whiteList['animation-name'] = false; // default: none
177
+ whiteList['animation-play-state'] = false; // default: running
178
+ whiteList['animation-timing-function'] = false; // default: ease
179
+ whiteList['azimuth'] = false; // default: center
180
+ whiteList['backface-visibility'] = false; // default: visible
181
+ whiteList['background'] = true; // default: depending on individual properties
182
+ whiteList['background-attachment'] = true; // default: scroll
183
+ whiteList['background-clip'] = true; // default: border-box
184
+ whiteList['background-color'] = true; // default: transparent
185
+ whiteList['background-image'] = true; // default: none
186
+ whiteList['background-origin'] = true; // default: padding-box
187
+ whiteList['background-position'] = true; // default: 0% 0%
188
+ whiteList['background-repeat'] = true; // default: repeat
189
+ whiteList['background-size'] = true; // default: auto
190
+ whiteList['baseline-shift'] = false; // default: baseline
191
+ whiteList['binding'] = false; // default: none
192
+ whiteList['bleed'] = false; // default: 6pt
193
+ whiteList['bookmark-label'] = false; // default: content()
194
+ whiteList['bookmark-level'] = false; // default: none
195
+ whiteList['bookmark-state'] = false; // default: open
196
+ whiteList['border'] = true; // default: depending on individual properties
197
+ whiteList['border-bottom'] = true; // default: depending on individual properties
198
+ whiteList['border-bottom-color'] = true; // default: current color
199
+ whiteList['border-bottom-left-radius'] = true; // default: 0
200
+ whiteList['border-bottom-right-radius'] = true; // default: 0
201
+ whiteList['border-bottom-style'] = true; // default: none
202
+ whiteList['border-bottom-width'] = true; // default: medium
203
+ whiteList['border-collapse'] = true; // default: separate
204
+ whiteList['border-color'] = true; // default: depending on individual properties
205
+ whiteList['border-image'] = true; // default: none
206
+ whiteList['border-image-outset'] = true; // default: 0
207
+ whiteList['border-image-repeat'] = true; // default: stretch
208
+ whiteList['border-image-slice'] = true; // default: 100%
209
+ whiteList['border-image-source'] = true; // default: none
210
+ whiteList['border-image-width'] = true; // default: 1
211
+ whiteList['border-left'] = true; // default: depending on individual properties
212
+ whiteList['border-left-color'] = true; // default: current color
213
+ whiteList['border-left-style'] = true; // default: none
214
+ whiteList['border-left-width'] = true; // default: medium
215
+ whiteList['border-radius'] = true; // default: 0
216
+ whiteList['border-right'] = true; // default: depending on individual properties
217
+ whiteList['border-right-color'] = true; // default: current color
218
+ whiteList['border-right-style'] = true; // default: none
219
+ whiteList['border-right-width'] = true; // default: medium
220
+ whiteList['border-spacing'] = true; // default: 0
221
+ whiteList['border-style'] = true; // default: depending on individual properties
222
+ whiteList['border-top'] = true; // default: depending on individual properties
223
+ whiteList['border-top-color'] = true; // default: current color
224
+ whiteList['border-top-left-radius'] = true; // default: 0
225
+ whiteList['border-top-right-radius'] = true; // default: 0
226
+ whiteList['border-top-style'] = true; // default: none
227
+ whiteList['border-top-width'] = true; // default: medium
228
+ whiteList['border-width'] = true; // default: depending on individual properties
229
+ whiteList['bottom'] = false; // default: auto
230
+ whiteList['box-decoration-break'] = true; // default: slice
231
+ whiteList['box-shadow'] = true; // default: none
232
+ whiteList['box-sizing'] = true; // default: content-box
233
+ whiteList['box-snap'] = true; // default: none
234
+ whiteList['box-suppress'] = true; // default: show
235
+ whiteList['break-after'] = true; // default: auto
236
+ whiteList['break-before'] = true; // default: auto
237
+ whiteList['break-inside'] = true; // default: auto
238
+ whiteList['caption-side'] = false; // default: top
239
+ whiteList['chains'] = false; // default: none
240
+ whiteList['clear'] = true; // default: none
241
+ whiteList['clip'] = false; // default: auto
242
+ whiteList['clip-path'] = false; // default: none
243
+ whiteList['clip-rule'] = false; // default: nonzero
244
+ whiteList['color'] = true; // default: implementation dependent
245
+ whiteList['color-interpolation-filters'] = true; // default: auto
246
+ whiteList['column-count'] = false; // default: auto
247
+ whiteList['column-fill'] = false; // default: balance
248
+ whiteList['column-gap'] = false; // default: normal
249
+ whiteList['column-rule'] = false; // default: depending on individual properties
250
+ whiteList['column-rule-color'] = false; // default: current color
251
+ whiteList['column-rule-style'] = false; // default: medium
252
+ whiteList['column-rule-width'] = false; // default: medium
253
+ whiteList['column-span'] = false; // default: none
254
+ whiteList['column-width'] = false; // default: auto
255
+ whiteList['columns'] = false; // default: depending on individual properties
256
+ whiteList['contain'] = false; // default: none
257
+ whiteList['content'] = false; // default: normal
258
+ whiteList['counter-increment'] = false; // default: none
259
+ whiteList['counter-reset'] = false; // default: none
260
+ whiteList['counter-set'] = false; // default: none
261
+ whiteList['crop'] = false; // default: auto
262
+ whiteList['cue'] = false; // default: depending on individual properties
263
+ whiteList['cue-after'] = false; // default: none
264
+ whiteList['cue-before'] = false; // default: none
265
+ whiteList['cursor'] = false; // default: auto
266
+ whiteList['direction'] = false; // default: ltr
267
+ whiteList['display'] = true; // default: depending on individual properties
268
+ whiteList['display-inside'] = true; // default: auto
269
+ whiteList['display-list'] = true; // default: none
270
+ whiteList['display-outside'] = true; // default: inline-level
271
+ whiteList['dominant-baseline'] = false; // default: auto
272
+ whiteList['elevation'] = false; // default: level
273
+ whiteList['empty-cells'] = false; // default: show
274
+ whiteList['filter'] = false; // default: none
275
+ whiteList['flex'] = false; // default: depending on individual properties
276
+ whiteList['flex-basis'] = false; // default: auto
277
+ whiteList['flex-direction'] = false; // default: row
278
+ whiteList['flex-flow'] = false; // default: depending on individual properties
279
+ whiteList['flex-grow'] = false; // default: 0
280
+ whiteList['flex-shrink'] = false; // default: 1
281
+ whiteList['flex-wrap'] = false; // default: nowrap
282
+ whiteList['float'] = false; // default: none
283
+ whiteList['float-offset'] = false; // default: 0 0
284
+ whiteList['flood-color'] = false; // default: black
285
+ whiteList['flood-opacity'] = false; // default: 1
286
+ whiteList['flow-from'] = false; // default: none
287
+ whiteList['flow-into'] = false; // default: none
288
+ whiteList['font'] = true; // default: depending on individual properties
289
+ whiteList['font-family'] = true; // default: implementation dependent
290
+ whiteList['font-feature-settings'] = true; // default: normal
291
+ whiteList['font-kerning'] = true; // default: auto
292
+ whiteList['font-language-override'] = true; // default: normal
293
+ whiteList['font-size'] = true; // default: medium
294
+ whiteList['font-size-adjust'] = true; // default: none
295
+ whiteList['font-stretch'] = true; // default: normal
296
+ whiteList['font-style'] = true; // default: normal
297
+ whiteList['font-synthesis'] = true; // default: weight style
298
+ whiteList['font-variant'] = true; // default: normal
299
+ whiteList['font-variant-alternates'] = true; // default: normal
300
+ whiteList['font-variant-caps'] = true; // default: normal
301
+ whiteList['font-variant-east-asian'] = true; // default: normal
302
+ whiteList['font-variant-ligatures'] = true; // default: normal
303
+ whiteList['font-variant-numeric'] = true; // default: normal
304
+ whiteList['font-variant-position'] = true; // default: normal
305
+ whiteList['font-weight'] = true; // default: normal
306
+ whiteList['grid'] = false; // default: depending on individual properties
307
+ whiteList['grid-area'] = false; // default: depending on individual properties
308
+ whiteList['grid-auto-columns'] = false; // default: auto
309
+ whiteList['grid-auto-flow'] = false; // default: none
310
+ whiteList['grid-auto-rows'] = false; // default: auto
311
+ whiteList['grid-column'] = false; // default: depending on individual properties
312
+ whiteList['grid-column-end'] = false; // default: auto
313
+ whiteList['grid-column-start'] = false; // default: auto
314
+ whiteList['grid-row'] = false; // default: depending on individual properties
315
+ whiteList['grid-row-end'] = false; // default: auto
316
+ whiteList['grid-row-start'] = false; // default: auto
317
+ whiteList['grid-template'] = false; // default: depending on individual properties
318
+ whiteList['grid-template-areas'] = false; // default: none
319
+ whiteList['grid-template-columns'] = false; // default: none
320
+ whiteList['grid-template-rows'] = false; // default: none
321
+ whiteList['hanging-punctuation'] = false; // default: none
322
+ whiteList['height'] = true; // default: auto
323
+ whiteList['hyphens'] = false; // default: manual
324
+ whiteList['icon'] = false; // default: auto
325
+ whiteList['image-orientation'] = false; // default: auto
326
+ whiteList['image-resolution'] = false; // default: normal
327
+ whiteList['ime-mode'] = false; // default: auto
328
+ whiteList['initial-letters'] = false; // default: normal
329
+ whiteList['inline-box-align'] = false; // default: last
330
+ whiteList['justify-content'] = false; // default: auto
331
+ whiteList['justify-items'] = false; // default: auto
332
+ whiteList['justify-self'] = false; // default: auto
333
+ whiteList['left'] = false; // default: auto
334
+ whiteList['letter-spacing'] = true; // default: normal
335
+ whiteList['lighting-color'] = true; // default: white
336
+ whiteList['line-box-contain'] = false; // default: block inline replaced
337
+ whiteList['line-break'] = false; // default: auto
338
+ whiteList['line-grid'] = false; // default: match-parent
339
+ whiteList['line-height'] = false; // default: normal
340
+ whiteList['line-snap'] = false; // default: none
341
+ whiteList['line-stacking'] = false; // default: depending on individual properties
342
+ whiteList['line-stacking-ruby'] = false; // default: exclude-ruby
343
+ whiteList['line-stacking-shift'] = false; // default: consider-shifts
344
+ whiteList['line-stacking-strategy'] = false; // default: inline-line-height
345
+ whiteList['list-style'] = true; // default: depending on individual properties
346
+ whiteList['list-style-image'] = true; // default: none
347
+ whiteList['list-style-position'] = true; // default: outside
348
+ whiteList['list-style-type'] = true; // default: disc
349
+ whiteList['margin'] = true; // default: depending on individual properties
350
+ whiteList['margin-bottom'] = true; // default: 0
351
+ whiteList['margin-left'] = true; // default: 0
352
+ whiteList['margin-right'] = true; // default: 0
353
+ whiteList['margin-top'] = true; // default: 0
354
+ whiteList['marker-offset'] = false; // default: auto
355
+ whiteList['marker-side'] = false; // default: list-item
356
+ whiteList['marks'] = false; // default: none
357
+ whiteList['mask'] = false; // default: border-box
358
+ whiteList['mask-box'] = false; // default: see individual properties
359
+ whiteList['mask-box-outset'] = false; // default: 0
360
+ whiteList['mask-box-repeat'] = false; // default: stretch
361
+ whiteList['mask-box-slice'] = false; // default: 0 fill
362
+ whiteList['mask-box-source'] = false; // default: none
363
+ whiteList['mask-box-width'] = false; // default: auto
364
+ whiteList['mask-clip'] = false; // default: border-box
365
+ whiteList['mask-image'] = false; // default: none
366
+ whiteList['mask-origin'] = false; // default: border-box
367
+ whiteList['mask-position'] = false; // default: center
368
+ whiteList['mask-repeat'] = false; // default: no-repeat
369
+ whiteList['mask-size'] = false; // default: border-box
370
+ whiteList['mask-source-type'] = false; // default: auto
371
+ whiteList['mask-type'] = false; // default: luminance
372
+ whiteList['max-height'] = true; // default: none
373
+ whiteList['max-lines'] = false; // default: none
374
+ whiteList['max-width'] = true; // default: none
375
+ whiteList['min-height'] = true; // default: 0
376
+ whiteList['min-width'] = true; // default: 0
377
+ whiteList['move-to'] = false; // default: normal
378
+ whiteList['nav-down'] = false; // default: auto
379
+ whiteList['nav-index'] = false; // default: auto
380
+ whiteList['nav-left'] = false; // default: auto
381
+ whiteList['nav-right'] = false; // default: auto
382
+ whiteList['nav-up'] = false; // default: auto
383
+ whiteList['object-fit'] = false; // default: fill
384
+ whiteList['object-position'] = false; // default: 50% 50%
385
+ whiteList['opacity'] = false; // default: 1
386
+ whiteList['order'] = false; // default: 0
387
+ whiteList['orphans'] = false; // default: 2
388
+ whiteList['outline'] = false; // default: depending on individual properties
389
+ whiteList['outline-color'] = false; // default: invert
390
+ whiteList['outline-offset'] = false; // default: 0
391
+ whiteList['outline-style'] = false; // default: none
392
+ whiteList['outline-width'] = false; // default: medium
393
+ whiteList['overflow'] = false; // default: depending on individual properties
394
+ whiteList['overflow-wrap'] = false; // default: normal
395
+ whiteList['overflow-x'] = false; // default: visible
396
+ whiteList['overflow-y'] = false; // default: visible
397
+ whiteList['padding'] = true; // default: depending on individual properties
398
+ whiteList['padding-bottom'] = true; // default: 0
399
+ whiteList['padding-left'] = true; // default: 0
400
+ whiteList['padding-right'] = true; // default: 0
401
+ whiteList['padding-top'] = true; // default: 0
402
+ whiteList['page'] = false; // default: auto
403
+ whiteList['page-break-after'] = false; // default: auto
404
+ whiteList['page-break-before'] = false; // default: auto
405
+ whiteList['page-break-inside'] = false; // default: auto
406
+ whiteList['page-policy'] = false; // default: start
407
+ whiteList['pause'] = false; // default: implementation dependent
408
+ whiteList['pause-after'] = false; // default: implementation dependent
409
+ whiteList['pause-before'] = false; // default: implementation dependent
410
+ whiteList['perspective'] = false; // default: none
411
+ whiteList['perspective-origin'] = false; // default: 50% 50%
412
+ whiteList['pitch'] = false; // default: medium
413
+ whiteList['pitch-range'] = false; // default: 50
414
+ whiteList['play-during'] = false; // default: auto
415
+ whiteList['position'] = false; // default: static
416
+ whiteList['presentation-level'] = false; // default: 0
417
+ whiteList['quotes'] = false; // default: text
418
+ whiteList['region-fragment'] = false; // default: auto
419
+ whiteList['resize'] = false; // default: none
420
+ whiteList['rest'] = false; // default: depending on individual properties
421
+ whiteList['rest-after'] = false; // default: none
422
+ whiteList['rest-before'] = false; // default: none
423
+ whiteList['richness'] = false; // default: 50
424
+ whiteList['right'] = false; // default: auto
425
+ whiteList['rotation'] = false; // default: 0
426
+ whiteList['rotation-point'] = false; // default: 50% 50%
427
+ whiteList['ruby-align'] = false; // default: auto
428
+ whiteList['ruby-merge'] = false; // default: separate
429
+ whiteList['ruby-position'] = false; // default: before
430
+ whiteList['shape-image-threshold'] = false; // default: 0.0
431
+ whiteList['shape-outside'] = false; // default: none
432
+ whiteList['shape-margin'] = false; // default: 0
433
+ whiteList['size'] = false; // default: auto
434
+ whiteList['speak'] = false; // default: auto
435
+ whiteList['speak-as'] = false; // default: normal
436
+ whiteList['speak-header'] = false; // default: once
437
+ whiteList['speak-numeral'] = false; // default: continuous
438
+ whiteList['speak-punctuation'] = false; // default: none
439
+ whiteList['speech-rate'] = false; // default: medium
440
+ whiteList['stress'] = false; // default: 50
441
+ whiteList['string-set'] = false; // default: none
442
+ whiteList['tab-size'] = false; // default: 8
443
+ whiteList['table-layout'] = false; // default: auto
444
+ whiteList['text-align'] = true; // default: start
445
+ whiteList['text-align-last'] = true; // default: auto
446
+ whiteList['text-combine-upright'] = true; // default: none
447
+ whiteList['text-decoration'] = true; // default: none
448
+ whiteList['text-decoration-color'] = true; // default: currentColor
449
+ whiteList['text-decoration-line'] = true; // default: none
450
+ whiteList['text-decoration-skip'] = true; // default: objects
451
+ whiteList['text-decoration-style'] = true; // default: solid
452
+ whiteList['text-emphasis'] = true; // default: depending on individual properties
453
+ whiteList['text-emphasis-color'] = true; // default: currentColor
454
+ whiteList['text-emphasis-position'] = true; // default: over right
455
+ whiteList['text-emphasis-style'] = true; // default: none
456
+ whiteList['text-height'] = true; // default: auto
457
+ whiteList['text-indent'] = true; // default: 0
458
+ whiteList['text-justify'] = true; // default: auto
459
+ whiteList['text-orientation'] = true; // default: mixed
460
+ whiteList['text-overflow'] = true; // default: clip
461
+ whiteList['text-shadow'] = true; // default: none
462
+ whiteList['text-space-collapse'] = true; // default: collapse
463
+ whiteList['text-transform'] = true; // default: none
464
+ whiteList['text-underline-position'] = true; // default: auto
465
+ whiteList['text-wrap'] = true; // default: normal
466
+ whiteList['top'] = false; // default: auto
467
+ whiteList['transform'] = false; // default: none
468
+ whiteList['transform-origin'] = false; // default: 50% 50% 0
469
+ whiteList['transform-style'] = false; // default: flat
470
+ whiteList['transition'] = false; // default: depending on individual properties
471
+ whiteList['transition-delay'] = false; // default: 0s
472
+ whiteList['transition-duration'] = false; // default: 0s
473
+ whiteList['transition-property'] = false; // default: all
474
+ whiteList['transition-timing-function'] = false; // default: ease
475
+ whiteList['unicode-bidi'] = false; // default: normal
476
+ whiteList['vertical-align'] = false; // default: baseline
477
+ whiteList['visibility'] = false; // default: visible
478
+ whiteList['voice-balance'] = false; // default: center
479
+ whiteList['voice-duration'] = false; // default: auto
480
+ whiteList['voice-family'] = false; // default: implementation dependent
481
+ whiteList['voice-pitch'] = false; // default: medium
482
+ whiteList['voice-range'] = false; // default: medium
483
+ whiteList['voice-rate'] = false; // default: normal
484
+ whiteList['voice-stress'] = false; // default: normal
485
+ whiteList['voice-volume'] = false; // default: medium
486
+ whiteList['volume'] = false; // default: medium
487
+ whiteList['white-space'] = false; // default: normal
488
+ whiteList['widows'] = false; // default: 2
489
+ whiteList['width'] = true; // default: auto
490
+ whiteList['will-change'] = false; // default: auto
491
+ whiteList['word-break'] = true; // default: normal
492
+ whiteList['word-spacing'] = true; // default: normal
493
+ whiteList['word-wrap'] = true; // default: normal
494
+ whiteList['wrap-flow'] = false; // default: auto
495
+ whiteList['wrap-through'] = false; // default: wrap
496
+ whiteList['writing-mode'] = false; // default: horizontal-tb
497
+ whiteList['z-index'] = false; // default: auto
498
+
499
+ return whiteList;
500
+ }
501
+
502
+
503
+ /**
504
+ * 匹配到白名单上的一个属性时
505
+ *
506
+ * @param {String} name
507
+ * @param {String} value
508
+ * @param {Object} options
509
+ * @return {String}
510
+ */
511
+ function onAttr (name, value, options) {
512
+ // do nothing
513
+ }
514
+
515
+ /**
516
+ * 匹配到不在白名单上的一个属性时
517
+ *
518
+ * @param {String} name
519
+ * @param {String} value
520
+ * @param {Object} options
521
+ * @return {String}
522
+ */
523
+ function onIgnoreAttr (name, value, options) {
524
+ // do nothing
525
+ }
526
+
527
+ var REGEXP_URL_JAVASCRIPT = /javascript\s*\:/img;
528
+
529
+ /**
530
+ * 过滤属性值
531
+ *
532
+ * @param {String} name
533
+ * @param {String} value
534
+ * @return {String}
535
+ */
536
+ function safeAttrValue$1(name, value) {
537
+ if (REGEXP_URL_JAVASCRIPT.test(value)) return '';
538
+ return value;
539
+ }
540
+
541
+
542
+ _default.whiteList = getDefaultWhiteList$1();
543
+ _default.getDefaultWhiteList = getDefaultWhiteList$1;
544
+ _default.onAttr = onAttr;
545
+ _default.onIgnoreAttr = onIgnoreAttr;
546
+ _default.safeAttrValue = safeAttrValue$1;
547
+
548
+ var util$1 = {
549
+ indexOf: function (arr, item) {
550
+ var i, j;
551
+ if (Array.prototype.indexOf) {
552
+ return arr.indexOf(item);
553
+ }
554
+ for (i = 0, j = arr.length; i < j; i++) {
555
+ if (arr[i] === item) {
556
+ return i;
557
+ }
558
+ }
559
+ return -1;
560
+ },
561
+ forEach: function (arr, fn, scope) {
562
+ var i, j;
563
+ if (Array.prototype.forEach) {
564
+ return arr.forEach(fn, scope);
565
+ }
566
+ for (i = 0, j = arr.length; i < j; i++) {
567
+ fn.call(scope, arr[i], i, arr);
568
+ }
569
+ },
570
+ trim: function (str) {
571
+ if (String.prototype.trim) {
572
+ return str.trim();
573
+ }
574
+ return str.replace(/(^\s*)|(\s*$)/g, '');
575
+ },
576
+ trimRight: function (str) {
577
+ if (String.prototype.trimRight) {
578
+ return str.trimRight();
579
+ }
580
+ return str.replace(/(\s*$)/g, '');
581
+ }
582
+ };
583
+
584
+ /**
585
+ * cssfilter
586
+ *
587
+ * @author 老雷<leizongmin@gmail.com>
588
+ */
589
+
590
+ var _$3 = util$1;
591
+
592
+
593
+ /**
594
+ * 解析style
595
+ *
596
+ * @param {String} css
597
+ * @param {Function} onAttr 处理属性的函数
598
+ * 参数格式: function (sourcePosition, position, name, value, source)
599
+ * @return {String}
600
+ */
601
+ function parseStyle$1 (css, onAttr) {
602
+ css = _$3.trimRight(css);
603
+ if (css[css.length - 1] !== ';') css += ';';
604
+ var cssLength = css.length;
605
+ var isParenthesisOpen = false;
606
+ var lastPos = 0;
607
+ var i = 0;
608
+ var retCSS = '';
609
+
610
+ function addNewAttr () {
611
+ // 如果没有正常的闭合圆括号,则直接忽略当前属性
612
+ if (!isParenthesisOpen) {
613
+ var source = _$3.trim(css.slice(lastPos, i));
614
+ var j = source.indexOf(':');
615
+ if (j !== -1) {
616
+ var name = _$3.trim(source.slice(0, j));
617
+ var value = _$3.trim(source.slice(j + 1));
618
+ // 必须有属性名称
619
+ if (name) {
620
+ var ret = onAttr(lastPos, retCSS.length, name, value, source);
621
+ if (ret) retCSS += ret + '; ';
622
+ }
623
+ }
624
+ }
625
+ lastPos = i + 1;
626
+ }
627
+
628
+ for (; i < cssLength; i++) {
629
+ var c = css[i];
630
+ if (c === '/' && css[i + 1] === '*') {
631
+ // 备注开始
632
+ var j = css.indexOf('*/', i + 2);
633
+ // 如果没有正常的备注结束,则后面的部分全部跳过
634
+ if (j === -1) break;
635
+ // 直接将当前位置调到备注结尾,并且初始化状态
636
+ i = j + 1;
637
+ lastPos = i + 1;
638
+ isParenthesisOpen = false;
639
+ } else if (c === '(') {
640
+ isParenthesisOpen = true;
641
+ } else if (c === ')') {
642
+ isParenthesisOpen = false;
643
+ } else if (c === ';') {
644
+ if (isParenthesisOpen) ; else {
645
+ addNewAttr();
646
+ }
647
+ } else if (c === '\n') {
648
+ addNewAttr();
649
+ }
650
+ }
651
+
652
+ return _$3.trim(retCSS);
653
+ }
654
+
655
+ var parser$2 = parseStyle$1;
656
+
657
+ /**
658
+ * cssfilter
659
+ *
660
+ * @author 老雷<leizongmin@gmail.com>
661
+ */
662
+
663
+ var DEFAULT$1 = _default;
664
+ var parseStyle = parser$2;
665
+
666
+
667
+ /**
668
+ * 返回值是否为空
669
+ *
670
+ * @param {Object} obj
671
+ * @return {Boolean}
672
+ */
673
+ function isNull$1 (obj) {
674
+ return (obj === undefined || obj === null);
675
+ }
676
+
677
+ /**
678
+ * 浅拷贝对象
679
+ *
680
+ * @param {Object} obj
681
+ * @return {Object}
682
+ */
683
+ function shallowCopyObject$1 (obj) {
684
+ var ret = {};
685
+ for (var i in obj) {
686
+ ret[i] = obj[i];
687
+ }
688
+ return ret;
689
+ }
690
+
691
+ /**
692
+ * 创建CSS过滤器
693
+ *
694
+ * @param {Object} options
695
+ * - {Object} whiteList
696
+ * - {Function} onAttr
697
+ * - {Function} onIgnoreAttr
698
+ * - {Function} safeAttrValue
699
+ */
700
+ function FilterCSS$2 (options) {
701
+ options = shallowCopyObject$1(options || {});
702
+ options.whiteList = options.whiteList || DEFAULT$1.whiteList;
703
+ options.onAttr = options.onAttr || DEFAULT$1.onAttr;
704
+ options.onIgnoreAttr = options.onIgnoreAttr || DEFAULT$1.onIgnoreAttr;
705
+ options.safeAttrValue = options.safeAttrValue || DEFAULT$1.safeAttrValue;
706
+ this.options = options;
707
+ }
708
+
709
+ FilterCSS$2.prototype.process = function (css) {
710
+ // 兼容各种奇葩输入
711
+ css = css || '';
712
+ css = css.toString();
713
+ if (!css) return '';
714
+
715
+ var me = this;
716
+ var options = me.options;
717
+ var whiteList = options.whiteList;
718
+ var onAttr = options.onAttr;
719
+ var onIgnoreAttr = options.onIgnoreAttr;
720
+ var safeAttrValue = options.safeAttrValue;
721
+
722
+ var retCSS = parseStyle(css, function (sourcePosition, position, name, value, source) {
723
+
724
+ var check = whiteList[name];
725
+ var isWhite = false;
726
+ if (check === true) isWhite = check;
727
+ else if (typeof check === 'function') isWhite = check(value);
728
+ else if (check instanceof RegExp) isWhite = check.test(value);
729
+ if (isWhite !== true) isWhite = false;
730
+
731
+ // 如果过滤后 value 为空则直接忽略
732
+ value = safeAttrValue(name, value);
733
+ if (!value) return;
734
+
735
+ var opts = {
736
+ position: position,
737
+ sourcePosition: sourcePosition,
738
+ source: source,
739
+ isWhite: isWhite
740
+ };
741
+
742
+ if (isWhite) {
743
+
744
+ var ret = onAttr(name, value, opts);
745
+ if (isNull$1(ret)) {
746
+ return name + ':' + value;
747
+ } else {
748
+ return ret;
749
+ }
750
+
751
+ } else {
752
+
753
+ var ret = onIgnoreAttr(name, value, opts);
754
+ if (!isNull$1(ret)) {
755
+ return ret;
756
+ }
757
+
758
+ }
759
+ });
760
+
761
+ return retCSS;
762
+ };
763
+
764
+
765
+ var css = FilterCSS$2;
766
+
767
+ /**
768
+ * cssfilter
769
+ *
770
+ * @author 老雷<leizongmin@gmail.com>
771
+ */
772
+
773
+ (function (module, exports) {
774
+ var DEFAULT = _default;
775
+ var FilterCSS = css;
776
+
777
+
778
+ /**
779
+ * XSS过滤
780
+ *
781
+ * @param {String} css 要过滤的CSS代码
782
+ * @param {Object} options 选项:whiteList, onAttr, onIgnoreAttr
783
+ * @return {String}
784
+ */
785
+ function filterCSS (html, options) {
786
+ var xss = new FilterCSS(options);
787
+ return xss.process(html);
788
+ }
789
+
790
+
791
+ // 输出
792
+ exports = module.exports = filterCSS;
793
+ exports.FilterCSS = FilterCSS;
794
+ for (var i in DEFAULT) exports[i] = DEFAULT[i];
795
+ } (lib, lib.exports));
796
+
797
+ var libExports$1 = lib.exports;
798
+
799
+ var util = {
800
+ indexOf: function (arr, item) {
801
+ var i, j;
802
+ if (Array.prototype.indexOf) {
803
+ return arr.indexOf(item);
804
+ }
805
+ for (i = 0, j = arr.length; i < j; i++) {
806
+ if (arr[i] === item) {
807
+ return i;
808
+ }
809
+ }
810
+ return -1;
811
+ },
812
+ forEach: function (arr, fn, scope) {
813
+ var i, j;
814
+ if (Array.prototype.forEach) {
815
+ return arr.forEach(fn, scope);
816
+ }
817
+ for (i = 0, j = arr.length; i < j; i++) {
818
+ fn.call(scope, arr[i], i, arr);
819
+ }
820
+ },
821
+ trim: function (str) {
822
+ if (String.prototype.trim) {
823
+ return str.trim();
824
+ }
825
+ return str.replace(/(^\s*)|(\s*$)/g, "");
826
+ },
827
+ spaceIndex: function (str) {
828
+ var reg = /\s|\n|\t/;
829
+ var match = reg.exec(str);
830
+ return match ? match.index : -1;
831
+ },
832
+ };
833
+
834
+ /**
835
+ * default settings
836
+ *
837
+ * @author Zongmin Lei<leizongmin@gmail.com>
838
+ */
839
+
840
+ var FilterCSS$1 = libExports$1.FilterCSS;
841
+ var getDefaultCSSWhiteList = libExports$1.getDefaultWhiteList;
842
+ var _$2 = util;
843
+
844
+ function getDefaultWhiteList() {
845
+ return {
846
+ a: ["target", "href", "title"],
847
+ abbr: ["title"],
848
+ address: [],
849
+ area: ["shape", "coords", "href", "alt"],
850
+ article: [],
851
+ aside: [],
852
+ audio: [
853
+ "autoplay",
854
+ "controls",
855
+ "crossorigin",
856
+ "loop",
857
+ "muted",
858
+ "preload",
859
+ "src",
860
+ ],
861
+ b: [],
862
+ bdi: ["dir"],
863
+ bdo: ["dir"],
864
+ big: [],
865
+ blockquote: ["cite"],
866
+ br: [],
867
+ caption: [],
868
+ center: [],
869
+ cite: [],
870
+ code: [],
871
+ col: ["align", "valign", "span", "width"],
872
+ colgroup: ["align", "valign", "span", "width"],
873
+ dd: [],
874
+ del: ["datetime"],
875
+ details: ["open"],
876
+ div: [],
877
+ dl: [],
878
+ dt: [],
879
+ em: [],
880
+ figcaption: [],
881
+ figure: [],
882
+ font: ["color", "size", "face"],
883
+ footer: [],
884
+ h1: [],
885
+ h2: [],
886
+ h3: [],
887
+ h4: [],
888
+ h5: [],
889
+ h6: [],
890
+ header: [],
891
+ hr: [],
892
+ i: [],
893
+ img: ["src", "alt", "title", "width", "height"],
894
+ ins: ["datetime"],
895
+ li: [],
896
+ mark: [],
897
+ nav: [],
898
+ ol: [],
899
+ p: [],
900
+ pre: [],
901
+ s: [],
902
+ section: [],
903
+ small: [],
904
+ span: [],
905
+ sub: [],
906
+ summary: [],
907
+ sup: [],
908
+ strong: [],
909
+ strike: [],
910
+ table: ["width", "border", "align", "valign"],
911
+ tbody: ["align", "valign"],
912
+ td: ["width", "rowspan", "colspan", "align", "valign"],
913
+ tfoot: ["align", "valign"],
914
+ th: ["width", "rowspan", "colspan", "align", "valign"],
915
+ thead: ["align", "valign"],
916
+ tr: ["rowspan", "align", "valign"],
917
+ tt: [],
918
+ u: [],
919
+ ul: [],
920
+ video: [
921
+ "autoplay",
922
+ "controls",
923
+ "crossorigin",
924
+ "loop",
925
+ "muted",
926
+ "playsinline",
927
+ "poster",
928
+ "preload",
929
+ "src",
930
+ "height",
931
+ "width",
932
+ ],
933
+ };
934
+ }
935
+
936
+ var defaultCSSFilter = new FilterCSS$1();
937
+
938
+ /**
939
+ * default onTag function
940
+ *
941
+ * @param {String} tag
942
+ * @param {String} html
943
+ * @param {Object} options
944
+ * @return {String}
945
+ */
946
+ function onTag(tag, html, options) {
947
+ // do nothing
948
+ }
949
+
950
+ /**
951
+ * default onIgnoreTag function
952
+ *
953
+ * @param {String} tag
954
+ * @param {String} html
955
+ * @param {Object} options
956
+ * @return {String}
957
+ */
958
+ function onIgnoreTag(tag, html, options) {
959
+ // do nothing
960
+ }
961
+
962
+ /**
963
+ * default onTagAttr function
964
+ *
965
+ * @param {String} tag
966
+ * @param {String} name
967
+ * @param {String} value
968
+ * @return {String}
969
+ */
970
+ function onTagAttr(tag, name, value) {
971
+ // do nothing
972
+ }
973
+
974
+ /**
975
+ * default onIgnoreTagAttr function
976
+ *
977
+ * @param {String} tag
978
+ * @param {String} name
979
+ * @param {String} value
980
+ * @return {String}
981
+ */
982
+ function onIgnoreTagAttr(tag, name, value) {
983
+ // do nothing
984
+ }
985
+
986
+ /**
987
+ * default escapeHtml function
988
+ *
989
+ * @param {String} html
990
+ */
991
+ function escapeHtml(html) {
992
+ return html.replace(REGEXP_LT, "&lt;").replace(REGEXP_GT, "&gt;");
993
+ }
994
+
995
+ /**
996
+ * default safeAttrValue function
997
+ *
998
+ * @param {String} tag
999
+ * @param {String} name
1000
+ * @param {String} value
1001
+ * @param {Object} cssFilter
1002
+ * @return {String}
1003
+ */
1004
+ function safeAttrValue(tag, name, value, cssFilter) {
1005
+ // unescape attribute value firstly
1006
+ value = friendlyAttrValue(value);
1007
+
1008
+ if (name === "href" || name === "src") {
1009
+ // filter `href` and `src` attribute
1010
+ // only allow the value that starts with `http://` | `https://` | `mailto:` | `/` | `#`
1011
+ value = _$2.trim(value);
1012
+ if (value === "#") return "#";
1013
+ if (
1014
+ !(
1015
+ value.substr(0, 7) === "http://" ||
1016
+ value.substr(0, 8) === "https://" ||
1017
+ value.substr(0, 7) === "mailto:" ||
1018
+ value.substr(0, 4) === "tel:" ||
1019
+ value.substr(0, 11) === "data:image/" ||
1020
+ value.substr(0, 6) === "ftp://" ||
1021
+ value.substr(0, 2) === "./" ||
1022
+ value.substr(0, 3) === "../" ||
1023
+ value[0] === "#" ||
1024
+ value[0] === "/"
1025
+ )
1026
+ ) {
1027
+ return "";
1028
+ }
1029
+ } else if (name === "background") {
1030
+ // filter `background` attribute (maybe no use)
1031
+ // `javascript:`
1032
+ REGEXP_DEFAULT_ON_TAG_ATTR_4.lastIndex = 0;
1033
+ if (REGEXP_DEFAULT_ON_TAG_ATTR_4.test(value)) {
1034
+ return "";
1035
+ }
1036
+ } else if (name === "style") {
1037
+ // `expression()`
1038
+ REGEXP_DEFAULT_ON_TAG_ATTR_7.lastIndex = 0;
1039
+ if (REGEXP_DEFAULT_ON_TAG_ATTR_7.test(value)) {
1040
+ return "";
1041
+ }
1042
+ // `url()`
1043
+ REGEXP_DEFAULT_ON_TAG_ATTR_8.lastIndex = 0;
1044
+ if (REGEXP_DEFAULT_ON_TAG_ATTR_8.test(value)) {
1045
+ REGEXP_DEFAULT_ON_TAG_ATTR_4.lastIndex = 0;
1046
+ if (REGEXP_DEFAULT_ON_TAG_ATTR_4.test(value)) {
1047
+ return "";
1048
+ }
1049
+ }
1050
+ if (cssFilter !== false) {
1051
+ cssFilter = cssFilter || defaultCSSFilter;
1052
+ value = cssFilter.process(value);
1053
+ }
1054
+ }
1055
+
1056
+ // escape `<>"` before returns
1057
+ value = escapeAttrValue(value);
1058
+ return value;
1059
+ }
1060
+
1061
+ // RegExp list
1062
+ var REGEXP_LT = /</g;
1063
+ var REGEXP_GT = />/g;
1064
+ var REGEXP_QUOTE = /"/g;
1065
+ var REGEXP_QUOTE_2 = /&quot;/g;
1066
+ var REGEXP_ATTR_VALUE_1 = /&#([a-zA-Z0-9]*);?/gim;
1067
+ var REGEXP_ATTR_VALUE_COLON = /&colon;?/gim;
1068
+ var REGEXP_ATTR_VALUE_NEWLINE = /&newline;?/gim;
1069
+ // var REGEXP_DEFAULT_ON_TAG_ATTR_3 = /\/\*|\*\//gm;
1070
+ var REGEXP_DEFAULT_ON_TAG_ATTR_4 =
1071
+ /((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi;
1072
+ // var REGEXP_DEFAULT_ON_TAG_ATTR_5 = /^[\s"'`]*(d\s*a\s*t\s*a\s*)\:/gi;
1073
+ // var REGEXP_DEFAULT_ON_TAG_ATTR_6 = /^[\s"'`]*(d\s*a\s*t\s*a\s*)\:\s*image\//gi;
1074
+ var REGEXP_DEFAULT_ON_TAG_ATTR_7 =
1075
+ /e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi;
1076
+ var REGEXP_DEFAULT_ON_TAG_ATTR_8 = /u\s*r\s*l\s*\(.*/gi;
1077
+
1078
+ /**
1079
+ * escape double quote
1080
+ *
1081
+ * @param {String} str
1082
+ * @return {String} str
1083
+ */
1084
+ function escapeQuote(str) {
1085
+ return str.replace(REGEXP_QUOTE, "&quot;");
1086
+ }
1087
+
1088
+ /**
1089
+ * unescape double quote
1090
+ *
1091
+ * @param {String} str
1092
+ * @return {String} str
1093
+ */
1094
+ function unescapeQuote(str) {
1095
+ return str.replace(REGEXP_QUOTE_2, '"');
1096
+ }
1097
+
1098
+ /**
1099
+ * escape html entities
1100
+ *
1101
+ * @param {String} str
1102
+ * @return {String}
1103
+ */
1104
+ function escapeHtmlEntities(str) {
1105
+ return str.replace(REGEXP_ATTR_VALUE_1, function replaceUnicode(str, code) {
1106
+ return code[0] === "x" || code[0] === "X"
1107
+ ? String.fromCharCode(parseInt(code.substr(1), 16))
1108
+ : String.fromCharCode(parseInt(code, 10));
1109
+ });
1110
+ }
1111
+
1112
+ /**
1113
+ * escape html5 new danger entities
1114
+ *
1115
+ * @param {String} str
1116
+ * @return {String}
1117
+ */
1118
+ function escapeDangerHtml5Entities(str) {
1119
+ return str
1120
+ .replace(REGEXP_ATTR_VALUE_COLON, ":")
1121
+ .replace(REGEXP_ATTR_VALUE_NEWLINE, " ");
1122
+ }
1123
+
1124
+ /**
1125
+ * clear nonprintable characters
1126
+ *
1127
+ * @param {String} str
1128
+ * @return {String}
1129
+ */
1130
+ function clearNonPrintableCharacter(str) {
1131
+ var str2 = "";
1132
+ for (var i = 0, len = str.length; i < len; i++) {
1133
+ str2 += str.charCodeAt(i) < 32 ? " " : str.charAt(i);
1134
+ }
1135
+ return _$2.trim(str2);
1136
+ }
1137
+
1138
+ /**
1139
+ * get friendly attribute value
1140
+ *
1141
+ * @param {String} str
1142
+ * @return {String}
1143
+ */
1144
+ function friendlyAttrValue(str) {
1145
+ str = unescapeQuote(str);
1146
+ str = escapeHtmlEntities(str);
1147
+ str = escapeDangerHtml5Entities(str);
1148
+ str = clearNonPrintableCharacter(str);
1149
+ return str;
1150
+ }
1151
+
1152
+ /**
1153
+ * unescape attribute value
1154
+ *
1155
+ * @param {String} str
1156
+ * @return {String}
1157
+ */
1158
+ function escapeAttrValue(str) {
1159
+ str = escapeQuote(str);
1160
+ str = escapeHtml(str);
1161
+ return str;
1162
+ }
1163
+
1164
+ /**
1165
+ * `onIgnoreTag` function for removing all the tags that are not in whitelist
1166
+ */
1167
+ function onIgnoreTagStripAll() {
1168
+ return "";
1169
+ }
1170
+
1171
+ /**
1172
+ * remove tag body
1173
+ * specify a `tags` list, if the tag is not in the `tags` list then process by the specify function (optional)
1174
+ *
1175
+ * @param {array} tags
1176
+ * @param {function} next
1177
+ */
1178
+ function StripTagBody(tags, next) {
1179
+ if (typeof next !== "function") {
1180
+ next = function () {};
1181
+ }
1182
+
1183
+ var isRemoveAllTag = !Array.isArray(tags);
1184
+ function isRemoveTag(tag) {
1185
+ if (isRemoveAllTag) return true;
1186
+ return _$2.indexOf(tags, tag) !== -1;
1187
+ }
1188
+
1189
+ var removeList = [];
1190
+ var posStart = false;
1191
+
1192
+ return {
1193
+ onIgnoreTag: function (tag, html, options) {
1194
+ if (isRemoveTag(tag)) {
1195
+ if (options.isClosing) {
1196
+ var ret = "[/removed]";
1197
+ var end = options.position + ret.length;
1198
+ removeList.push([
1199
+ posStart !== false ? posStart : options.position,
1200
+ end,
1201
+ ]);
1202
+ posStart = false;
1203
+ return ret;
1204
+ } else {
1205
+ if (!posStart) {
1206
+ posStart = options.position;
1207
+ }
1208
+ return "[removed]";
1209
+ }
1210
+ } else {
1211
+ return next(tag, html, options);
1212
+ }
1213
+ },
1214
+ remove: function (html) {
1215
+ var rethtml = "";
1216
+ var lastPos = 0;
1217
+ _$2.forEach(removeList, function (pos) {
1218
+ rethtml += html.slice(lastPos, pos[0]);
1219
+ lastPos = pos[1];
1220
+ });
1221
+ rethtml += html.slice(lastPos);
1222
+ return rethtml;
1223
+ },
1224
+ };
1225
+ }
1226
+
1227
+ /**
1228
+ * remove html comments
1229
+ *
1230
+ * @param {String} html
1231
+ * @return {String}
1232
+ */
1233
+ function stripCommentTag(html) {
1234
+ var retHtml = "";
1235
+ var lastPos = 0;
1236
+ while (lastPos < html.length) {
1237
+ var i = html.indexOf("<!--", lastPos);
1238
+ if (i === -1) {
1239
+ retHtml += html.slice(lastPos);
1240
+ break;
1241
+ }
1242
+ retHtml += html.slice(lastPos, i);
1243
+ var j = html.indexOf("-->", i);
1244
+ if (j === -1) {
1245
+ break;
1246
+ }
1247
+ lastPos = j + 3;
1248
+ }
1249
+ return retHtml;
1250
+ }
1251
+
1252
+ /**
1253
+ * remove invisible characters
1254
+ *
1255
+ * @param {String} html
1256
+ * @return {String}
1257
+ */
1258
+ function stripBlankChar(html) {
1259
+ var chars = html.split("");
1260
+ chars = chars.filter(function (char) {
1261
+ var c = char.charCodeAt(0);
1262
+ if (c === 127) return false;
1263
+ if (c <= 31) {
1264
+ if (c === 10 || c === 13) return true;
1265
+ return false;
1266
+ }
1267
+ return true;
1268
+ });
1269
+ return chars.join("");
1270
+ }
1271
+
1272
+ _default$1.whiteList = getDefaultWhiteList();
1273
+ _default$1.getDefaultWhiteList = getDefaultWhiteList;
1274
+ _default$1.onTag = onTag;
1275
+ _default$1.onIgnoreTag = onIgnoreTag;
1276
+ _default$1.onTagAttr = onTagAttr;
1277
+ _default$1.onIgnoreTagAttr = onIgnoreTagAttr;
1278
+ _default$1.safeAttrValue = safeAttrValue;
1279
+ _default$1.escapeHtml = escapeHtml;
1280
+ _default$1.escapeQuote = escapeQuote;
1281
+ _default$1.unescapeQuote = unescapeQuote;
1282
+ _default$1.escapeHtmlEntities = escapeHtmlEntities;
1283
+ _default$1.escapeDangerHtml5Entities = escapeDangerHtml5Entities;
1284
+ _default$1.clearNonPrintableCharacter = clearNonPrintableCharacter;
1285
+ _default$1.friendlyAttrValue = friendlyAttrValue;
1286
+ _default$1.escapeAttrValue = escapeAttrValue;
1287
+ _default$1.onIgnoreTagStripAll = onIgnoreTagStripAll;
1288
+ _default$1.StripTagBody = StripTagBody;
1289
+ _default$1.stripCommentTag = stripCommentTag;
1290
+ _default$1.stripBlankChar = stripBlankChar;
1291
+ _default$1.cssFilter = defaultCSSFilter;
1292
+ _default$1.getDefaultCSSWhiteList = getDefaultCSSWhiteList;
1293
+
1294
+ var parser$1 = {};
1295
+
1296
+ /**
1297
+ * Simple HTML Parser
1298
+ *
1299
+ * @author Zongmin Lei<leizongmin@gmail.com>
1300
+ */
1301
+
1302
+ var _$1 = util;
1303
+
1304
+ /**
1305
+ * get tag name
1306
+ *
1307
+ * @param {String} html e.g. '<a hef="#">'
1308
+ * @return {String}
1309
+ */
1310
+ function getTagName(html) {
1311
+ var i = _$1.spaceIndex(html);
1312
+ var tagName;
1313
+ if (i === -1) {
1314
+ tagName = html.slice(1, -1);
1315
+ } else {
1316
+ tagName = html.slice(1, i + 1);
1317
+ }
1318
+ tagName = _$1.trim(tagName).toLowerCase();
1319
+ if (tagName.slice(0, 1) === "/") tagName = tagName.slice(1);
1320
+ if (tagName.slice(-1) === "/") tagName = tagName.slice(0, -1);
1321
+ return tagName;
1322
+ }
1323
+
1324
+ /**
1325
+ * is close tag?
1326
+ *
1327
+ * @param {String} html 如:'<a hef="#">'
1328
+ * @return {Boolean}
1329
+ */
1330
+ function isClosing(html) {
1331
+ return html.slice(0, 2) === "</";
1332
+ }
1333
+
1334
+ /**
1335
+ * parse input html and returns processed html
1336
+ *
1337
+ * @param {String} html
1338
+ * @param {Function} onTag e.g. function (sourcePosition, position, tag, html, isClosing)
1339
+ * @param {Function} escapeHtml
1340
+ * @return {String}
1341
+ */
1342
+ function parseTag$1(html, onTag, escapeHtml) {
1343
+
1344
+ var rethtml = "";
1345
+ var lastPos = 0;
1346
+ var tagStart = false;
1347
+ var quoteStart = false;
1348
+ var currentPos = 0;
1349
+ var len = html.length;
1350
+ var currentTagName = "";
1351
+ var currentHtml = "";
1352
+
1353
+ chariterator: for (currentPos = 0; currentPos < len; currentPos++) {
1354
+ var c = html.charAt(currentPos);
1355
+ if (tagStart === false) {
1356
+ if (c === "<") {
1357
+ tagStart = currentPos;
1358
+ continue;
1359
+ }
1360
+ } else {
1361
+ if (quoteStart === false) {
1362
+ if (c === "<") {
1363
+ rethtml += escapeHtml(html.slice(lastPos, currentPos));
1364
+ tagStart = currentPos;
1365
+ lastPos = currentPos;
1366
+ continue;
1367
+ }
1368
+ if (c === ">") {
1369
+ rethtml += escapeHtml(html.slice(lastPos, tagStart));
1370
+ currentHtml = html.slice(tagStart, currentPos + 1);
1371
+ currentTagName = getTagName(currentHtml);
1372
+ rethtml += onTag(
1373
+ tagStart,
1374
+ rethtml.length,
1375
+ currentTagName,
1376
+ currentHtml,
1377
+ isClosing(currentHtml)
1378
+ );
1379
+ lastPos = currentPos + 1;
1380
+ tagStart = false;
1381
+ continue;
1382
+ }
1383
+ if (c === '"' || c === "'") {
1384
+ var i = 1;
1385
+ var ic = html.charAt(currentPos - i);
1386
+
1387
+ while (ic.trim() === "" || ic === "=") {
1388
+ if (ic === "=") {
1389
+ quoteStart = c;
1390
+ continue chariterator;
1391
+ }
1392
+ ic = html.charAt(currentPos - ++i);
1393
+ }
1394
+ }
1395
+ } else {
1396
+ if (c === quoteStart) {
1397
+ quoteStart = false;
1398
+ continue;
1399
+ }
1400
+ }
1401
+ }
1402
+ }
1403
+ if (lastPos < html.length) {
1404
+ rethtml += escapeHtml(html.substr(lastPos));
1405
+ }
1406
+
1407
+ return rethtml;
1408
+ }
1409
+
1410
+ var REGEXP_ILLEGAL_ATTR_NAME = /[^a-zA-Z0-9\\_:.-]/gim;
1411
+
1412
+ /**
1413
+ * parse input attributes and returns processed attributes
1414
+ *
1415
+ * @param {String} html e.g. `href="#" target="_blank"`
1416
+ * @param {Function} onAttr e.g. `function (name, value)`
1417
+ * @return {String}
1418
+ */
1419
+ function parseAttr$1(html, onAttr) {
1420
+
1421
+ var lastPos = 0;
1422
+ var lastMarkPos = 0;
1423
+ var retAttrs = [];
1424
+ var tmpName = false;
1425
+ var len = html.length;
1426
+
1427
+ function addAttr(name, value) {
1428
+ name = _$1.trim(name);
1429
+ name = name.replace(REGEXP_ILLEGAL_ATTR_NAME, "").toLowerCase();
1430
+ if (name.length < 1) return;
1431
+ var ret = onAttr(name, value || "");
1432
+ if (ret) retAttrs.push(ret);
1433
+ }
1434
+
1435
+ // 逐个分析字符
1436
+ for (var i = 0; i < len; i++) {
1437
+ var c = html.charAt(i);
1438
+ var v, j;
1439
+ if (tmpName === false && c === "=") {
1440
+ tmpName = html.slice(lastPos, i);
1441
+ lastPos = i + 1;
1442
+ lastMarkPos = html.charAt(lastPos) === '"' || html.charAt(lastPos) === "'" ? lastPos : findNextQuotationMark(html, i + 1);
1443
+ continue;
1444
+ }
1445
+ if (tmpName !== false) {
1446
+ if (
1447
+ i === lastMarkPos
1448
+ ) {
1449
+ j = html.indexOf(c, i + 1);
1450
+ if (j === -1) {
1451
+ break;
1452
+ } else {
1453
+ v = _$1.trim(html.slice(lastMarkPos + 1, j));
1454
+ addAttr(tmpName, v);
1455
+ tmpName = false;
1456
+ i = j;
1457
+ lastPos = i + 1;
1458
+ continue;
1459
+ }
1460
+ }
1461
+ }
1462
+ if (/\s|\n|\t/.test(c)) {
1463
+ html = html.replace(/\s|\n|\t/g, " ");
1464
+ if (tmpName === false) {
1465
+ j = findNextEqual(html, i);
1466
+ if (j === -1) {
1467
+ v = _$1.trim(html.slice(lastPos, i));
1468
+ addAttr(v);
1469
+ tmpName = false;
1470
+ lastPos = i + 1;
1471
+ continue;
1472
+ } else {
1473
+ i = j - 1;
1474
+ continue;
1475
+ }
1476
+ } else {
1477
+ j = findBeforeEqual(html, i - 1);
1478
+ if (j === -1) {
1479
+ v = _$1.trim(html.slice(lastPos, i));
1480
+ v = stripQuoteWrap(v);
1481
+ addAttr(tmpName, v);
1482
+ tmpName = false;
1483
+ lastPos = i + 1;
1484
+ continue;
1485
+ } else {
1486
+ continue;
1487
+ }
1488
+ }
1489
+ }
1490
+ }
1491
+
1492
+ if (lastPos < html.length) {
1493
+ if (tmpName === false) {
1494
+ addAttr(html.slice(lastPos));
1495
+ } else {
1496
+ addAttr(tmpName, stripQuoteWrap(_$1.trim(html.slice(lastPos))));
1497
+ }
1498
+ }
1499
+
1500
+ return _$1.trim(retAttrs.join(" "));
1501
+ }
1502
+
1503
+ function findNextEqual(str, i) {
1504
+ for (; i < str.length; i++) {
1505
+ var c = str[i];
1506
+ if (c === " ") continue;
1507
+ if (c === "=") return i;
1508
+ return -1;
1509
+ }
1510
+ }
1511
+
1512
+ function findNextQuotationMark(str, i) {
1513
+ for (; i < str.length; i++) {
1514
+ var c = str[i];
1515
+ if (c === " ") continue;
1516
+ if (c === "'" || c === '"') return i;
1517
+ return -1;
1518
+ }
1519
+ }
1520
+
1521
+ function findBeforeEqual(str, i) {
1522
+ for (; i > 0; i--) {
1523
+ var c = str[i];
1524
+ if (c === " ") continue;
1525
+ if (c === "=") return i;
1526
+ return -1;
1527
+ }
1528
+ }
1529
+
1530
+ function isQuoteWrapString(text) {
1531
+ if (
1532
+ (text[0] === '"' && text[text.length - 1] === '"') ||
1533
+ (text[0] === "'" && text[text.length - 1] === "'")
1534
+ ) {
1535
+ return true;
1536
+ } else {
1537
+ return false;
1538
+ }
1539
+ }
1540
+
1541
+ function stripQuoteWrap(text) {
1542
+ if (isQuoteWrapString(text)) {
1543
+ return text.substr(1, text.length - 2);
1544
+ } else {
1545
+ return text;
1546
+ }
1547
+ }
1548
+
1549
+ parser$1.parseTag = parseTag$1;
1550
+ parser$1.parseAttr = parseAttr$1;
1551
+
1552
+ /**
1553
+ * filter xss
1554
+ *
1555
+ * @author Zongmin Lei<leizongmin@gmail.com>
1556
+ */
1557
+
1558
+ var FilterCSS = libExports$1.FilterCSS;
1559
+ var DEFAULT = _default$1;
1560
+ var parser = parser$1;
1561
+ var parseTag = parser.parseTag;
1562
+ var parseAttr = parser.parseAttr;
1563
+ var _ = util;
1564
+
1565
+ /**
1566
+ * returns `true` if the input value is `undefined` or `null`
1567
+ *
1568
+ * @param {Object} obj
1569
+ * @return {Boolean}
1570
+ */
1571
+ function isNull(obj) {
1572
+ return obj === undefined || obj === null;
1573
+ }
1574
+
1575
+ /**
1576
+ * get attributes for a tag
1577
+ *
1578
+ * @param {String} html
1579
+ * @return {Object}
1580
+ * - {String} html
1581
+ * - {Boolean} closing
1582
+ */
1583
+ function getAttrs(html) {
1584
+ var i = _.spaceIndex(html);
1585
+ if (i === -1) {
1586
+ return {
1587
+ html: "",
1588
+ closing: html[html.length - 2] === "/",
1589
+ };
1590
+ }
1591
+ html = _.trim(html.slice(i + 1, -1));
1592
+ var isClosing = html[html.length - 1] === "/";
1593
+ if (isClosing) html = _.trim(html.slice(0, -1));
1594
+ return {
1595
+ html: html,
1596
+ closing: isClosing,
1597
+ };
1598
+ }
1599
+
1600
+ /**
1601
+ * shallow copy
1602
+ *
1603
+ * @param {Object} obj
1604
+ * @return {Object}
1605
+ */
1606
+ function shallowCopyObject(obj) {
1607
+ var ret = {};
1608
+ for (var i in obj) {
1609
+ ret[i] = obj[i];
1610
+ }
1611
+ return ret;
1612
+ }
1613
+
1614
+ function keysToLowerCase(obj) {
1615
+ var ret = {};
1616
+ for (var i in obj) {
1617
+ if (Array.isArray(obj[i])) {
1618
+ ret[i.toLowerCase()] = obj[i].map(function (item) {
1619
+ return item.toLowerCase();
1620
+ });
1621
+ } else {
1622
+ ret[i.toLowerCase()] = obj[i];
1623
+ }
1624
+ }
1625
+ return ret;
1626
+ }
1627
+
1628
+ /**
1629
+ * FilterXSS class
1630
+ *
1631
+ * @param {Object} options
1632
+ * whiteList (or allowList), onTag, onTagAttr, onIgnoreTag,
1633
+ * onIgnoreTagAttr, safeAttrValue, escapeHtml
1634
+ * stripIgnoreTagBody, allowCommentTag, stripBlankChar
1635
+ * css{whiteList, onAttr, onIgnoreAttr} `css=false` means don't use `cssfilter`
1636
+ */
1637
+ function FilterXSS(options) {
1638
+ options = shallowCopyObject(options || {});
1639
+
1640
+ if (options.stripIgnoreTag) {
1641
+ if (options.onIgnoreTag) {
1642
+ console.error(
1643
+ 'Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'
1644
+ );
1645
+ }
1646
+ options.onIgnoreTag = DEFAULT.onIgnoreTagStripAll;
1647
+ }
1648
+ if (options.whiteList || options.allowList) {
1649
+ options.whiteList = keysToLowerCase(options.whiteList || options.allowList);
1650
+ } else {
1651
+ options.whiteList = DEFAULT.whiteList;
1652
+ }
1653
+
1654
+ options.onTag = options.onTag || DEFAULT.onTag;
1655
+ options.onTagAttr = options.onTagAttr || DEFAULT.onTagAttr;
1656
+ options.onIgnoreTag = options.onIgnoreTag || DEFAULT.onIgnoreTag;
1657
+ options.onIgnoreTagAttr = options.onIgnoreTagAttr || DEFAULT.onIgnoreTagAttr;
1658
+ options.safeAttrValue = options.safeAttrValue || DEFAULT.safeAttrValue;
1659
+ options.escapeHtml = options.escapeHtml || DEFAULT.escapeHtml;
1660
+ this.options = options;
1661
+
1662
+ if (options.css === false) {
1663
+ this.cssFilter = false;
1664
+ } else {
1665
+ options.css = options.css || {};
1666
+ this.cssFilter = new FilterCSS(options.css);
1667
+ }
1668
+ }
1669
+
1670
+ /**
1671
+ * start process and returns result
1672
+ *
1673
+ * @param {String} html
1674
+ * @return {String}
1675
+ */
1676
+ FilterXSS.prototype.process = function (html) {
1677
+ // compatible with the input
1678
+ html = html || "";
1679
+ html = html.toString();
1680
+ if (!html) return "";
1681
+
1682
+ var me = this;
1683
+ var options = me.options;
1684
+ var whiteList = options.whiteList;
1685
+ var onTag = options.onTag;
1686
+ var onIgnoreTag = options.onIgnoreTag;
1687
+ var onTagAttr = options.onTagAttr;
1688
+ var onIgnoreTagAttr = options.onIgnoreTagAttr;
1689
+ var safeAttrValue = options.safeAttrValue;
1690
+ var escapeHtml = options.escapeHtml;
1691
+ var cssFilter = me.cssFilter;
1692
+
1693
+ // remove invisible characters
1694
+ if (options.stripBlankChar) {
1695
+ html = DEFAULT.stripBlankChar(html);
1696
+ }
1697
+
1698
+ // remove html comments
1699
+ if (!options.allowCommentTag) {
1700
+ html = DEFAULT.stripCommentTag(html);
1701
+ }
1702
+
1703
+ // if enable stripIgnoreTagBody
1704
+ var stripIgnoreTagBody = false;
1705
+ if (options.stripIgnoreTagBody) {
1706
+ stripIgnoreTagBody = DEFAULT.StripTagBody(
1707
+ options.stripIgnoreTagBody,
1708
+ onIgnoreTag
1709
+ );
1710
+ onIgnoreTag = stripIgnoreTagBody.onIgnoreTag;
1711
+ }
1712
+
1713
+ var retHtml = parseTag(
1714
+ html,
1715
+ function (sourcePosition, position, tag, html, isClosing) {
1716
+ var info = {
1717
+ sourcePosition: sourcePosition,
1718
+ position: position,
1719
+ isClosing: isClosing,
1720
+ isWhite: Object.prototype.hasOwnProperty.call(whiteList, tag),
1721
+ };
1722
+
1723
+ // call `onTag()`
1724
+ var ret = onTag(tag, html, info);
1725
+ if (!isNull(ret)) return ret;
1726
+
1727
+ if (info.isWhite) {
1728
+ if (info.isClosing) {
1729
+ return "</" + tag + ">";
1730
+ }
1731
+
1732
+ var attrs = getAttrs(html);
1733
+ var whiteAttrList = whiteList[tag];
1734
+ var attrsHtml = parseAttr(attrs.html, function (name, value) {
1735
+ // call `onTagAttr()`
1736
+ var isWhiteAttr = _.indexOf(whiteAttrList, name) !== -1;
1737
+ var ret = onTagAttr(tag, name, value, isWhiteAttr);
1738
+ if (!isNull(ret)) return ret;
1739
+
1740
+ if (isWhiteAttr) {
1741
+ // call `safeAttrValue()`
1742
+ value = safeAttrValue(tag, name, value, cssFilter);
1743
+ if (value) {
1744
+ return name + '="' + value + '"';
1745
+ } else {
1746
+ return name;
1747
+ }
1748
+ } else {
1749
+ // call `onIgnoreTagAttr()`
1750
+ ret = onIgnoreTagAttr(tag, name, value, isWhiteAttr);
1751
+ if (!isNull(ret)) return ret;
1752
+ return;
1753
+ }
1754
+ });
1755
+
1756
+ // build new tag html
1757
+ html = "<" + tag;
1758
+ if (attrsHtml) html += " " + attrsHtml;
1759
+ if (attrs.closing) html += " /";
1760
+ html += ">";
1761
+ return html;
1762
+ } else {
1763
+ // call `onIgnoreTag()`
1764
+ ret = onIgnoreTag(tag, html, info);
1765
+ if (!isNull(ret)) return ret;
1766
+ return escapeHtml(html);
1767
+ }
1768
+ },
1769
+ escapeHtml
1770
+ );
1771
+
1772
+ // if enable stripIgnoreTagBody
1773
+ if (stripIgnoreTagBody) {
1774
+ retHtml = stripIgnoreTagBody.remove(retHtml);
1775
+ }
1776
+
1777
+ return retHtml;
1778
+ };
1779
+
1780
+ var xss = FilterXSS;
1781
+
1782
+ /**
1783
+ * xss
1784
+ *
1785
+ * @author Zongmin Lei<leizongmin@gmail.com>
1786
+ */
1787
+
1788
+ (function (module, exports) {
1789
+ var DEFAULT = _default$1;
1790
+ var parser = parser$1;
1791
+ var FilterXSS = xss;
1792
+
1793
+ /**
1794
+ * filter xss function
1795
+ *
1796
+ * @param {String} html
1797
+ * @param {Object} options { whiteList, onTag, onTagAttr, onIgnoreTag, onIgnoreTagAttr, safeAttrValue, escapeHtml }
1798
+ * @return {String}
1799
+ */
1800
+ function filterXSS(html, options) {
1801
+ var xss = new FilterXSS(options);
1802
+ return xss.process(html);
1803
+ }
1804
+
1805
+ exports = module.exports = filterXSS;
1806
+ exports.filterXSS = filterXSS;
1807
+ exports.FilterXSS = FilterXSS;
1808
+
1809
+ (function () {
1810
+ for (var i in DEFAULT) {
1811
+ exports[i] = DEFAULT[i];
1812
+ }
1813
+ for (var j in parser) {
1814
+ exports[j] = parser[j];
1815
+ }
1816
+ })();
1817
+
1818
+ // using `xss` on the WebWorker, output `filterXSS` to the globals
1819
+ function isWorkerEnv() {
1820
+ return (
1821
+ typeof self !== "undefined" &&
1822
+ typeof DedicatedWorkerGlobalScope !== "undefined" &&
1823
+ self instanceof DedicatedWorkerGlobalScope
1824
+ );
1825
+ }
1826
+ if (isWorkerEnv()) {
1827
+ self.filterXSS = module.exports;
1828
+ }
1829
+ } (lib$1, lib$1.exports));
1830
+
1831
+ var libExports = lib$1.exports;
1832
+
1833
+ /**
1834
+ * Determine if the value is a plain object.
1835
+ * @param {*} value The value to check.
1836
+ * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
1837
+ */
1838
+ var isPlainObject = function (value) {
1839
+ if (typeof value !== "object" || value === null) {
1840
+ return false;
1841
+ }
1842
+ if (Object.prototype.toString.call(value) !== "[object Object]") {
1843
+ return false;
1844
+ }
1845
+ var proto = Object.getPrototypeOf(value);
1846
+ if (proto === null) {
1847
+ return true;
1848
+ }
1849
+ while (Object.getPrototypeOf(proto) !== null) {
1850
+ proto = Object.getPrototypeOf(proto);
1851
+ }
1852
+ return Object.getPrototypeOf(value) === proto;
1853
+ };
1854
+
1855
+ /**
1856
+ * The Sanitizer Class
1857
+ *
1858
+ * @export
1859
+ * @class Sanitizer
1860
+ */
1861
+ var Sanitizer = /** @class */ (function () {
1862
+ function Sanitizer(filterOptions, extendDefaults) {
1863
+ var _this = this;
1864
+ // Supported HTML Spec: https://doc.arcgis.com/en/arcgis-online/reference/supported-html.htm
1865
+ this.arcgisWhiteList = {
1866
+ a: ["href", "style", "target"],
1867
+ abbr: ["title"],
1868
+ article: ["style"],
1869
+ aside: ["style"],
1870
+ audio: ["autoplay", "controls", "loop", "muted", "preload"],
1871
+ b: [],
1872
+ blockquote: ["style"],
1873
+ br: [],
1874
+ code: ["style"],
1875
+ dd: ["style"],
1876
+ del: ["style"],
1877
+ details: ["open", "style"],
1878
+ div: ["align", "aria-hidden", "aria-label", "style"],
1879
+ dl: ["style"],
1880
+ dt: ["style"],
1881
+ em: [],
1882
+ figcaption: ["style"],
1883
+ figure: ["style"],
1884
+ font: ["color", "face", "size", "style"],
1885
+ footer: ["style"],
1886
+ h1: ["style"],
1887
+ h2: ["style"],
1888
+ h3: ["style"],
1889
+ h4: ["style"],
1890
+ h5: ["style"],
1891
+ h6: ["style"],
1892
+ header: ["style"],
1893
+ hr: [],
1894
+ i: [],
1895
+ img: ["alt", "border", "height", "src", "style", "width"],
1896
+ li: [],
1897
+ main: ["style"],
1898
+ mark: ["style"],
1899
+ nav: ["style"],
1900
+ ol: [],
1901
+ p: ["style"],
1902
+ pre: ["style"],
1903
+ section: ["style"],
1904
+ source: ["media", "src", "type"],
1905
+ span: ["aria-hidden", "aria-label", "style"],
1906
+ strong: [],
1907
+ sub: ["style"],
1908
+ summary: ["style"],
1909
+ sup: ["style"],
1910
+ table: ["border", "cellpadding", "cellspacing", "height", "style", "width"],
1911
+ tbody: [],
1912
+ tr: ["align", "height", "style", "valign"],
1913
+ td: [
1914
+ "align",
1915
+ "colspan",
1916
+ "height",
1917
+ "nowrap",
1918
+ "rowspan",
1919
+ "style",
1920
+ "valign",
1921
+ "width",
1922
+ ],
1923
+ th: [
1924
+ "align",
1925
+ "colspan",
1926
+ "height",
1927
+ "nowrap",
1928
+ "rowspan",
1929
+ "style",
1930
+ "valign",
1931
+ "width",
1932
+ ],
1933
+ time: ["style"],
1934
+ u: [],
1935
+ ul: [],
1936
+ video: [
1937
+ "autoplay",
1938
+ "controls",
1939
+ "height",
1940
+ "loop",
1941
+ "muted",
1942
+ "poster",
1943
+ "preload",
1944
+ "width",
1945
+ ],
1946
+ };
1947
+ this.arcgisCSSWhiteList = __assign(__assign({}, libExports.getDefaultCSSWhiteList()), { "align-items": true, "align-self": true, "flex": true, "flex-basis": true, "flex-direction": true, "flex-flow": true, "flex-grow": true, "flex-shrink": true, "flex-wrap": true, "float": true, "gap": true, "grid": true, "grid-area": true, "grid-auto-columns": true, "grid-auto-flow": true, "grid-auto-rows": true, "grid-column": true, "grid-column-end": true, "grid-column-start": true, "grid-row": true, "grid-row-end": true, "grid-row-start": true, "grid-template": true, "grid-template-areas": true, "grid-template-columns": true, "grid-template-rows": true, "justify-content": true, "justify-items": true, "justify-self": true, "line-height": true, "overflow": true });
1948
+ this.allowedProtocols = [
1949
+ "http",
1950
+ "https",
1951
+ "mailto",
1952
+ "iform",
1953
+ "tel",
1954
+ "flow",
1955
+ "lfmobile",
1956
+ "arcgis-navigator",
1957
+ "arcgis-appstudio-player",
1958
+ "arcgis-survey123",
1959
+ "arcgis-collector",
1960
+ "arcgis-workforce",
1961
+ "arcgis-explorer",
1962
+ "arcgis-trek2there",
1963
+ "arcgis-quickcapture",
1964
+ "mspbi",
1965
+ "comgooglemaps",
1966
+ "pdfefile",
1967
+ "pdfehttp",
1968
+ "pdfehttps",
1969
+ "boxapp",
1970
+ "boxemm",
1971
+ "awb",
1972
+ "awbs",
1973
+ "gropen",
1974
+ "radarscope",
1975
+ ];
1976
+ this.arcgisFilterOptions = {
1977
+ allowCommentTag: true,
1978
+ safeAttrValue: function (tag, name, value, cssFilter) {
1979
+ // Take over safe attribute filtering for `a` `href`, `img` `src`,
1980
+ // and `source` `src` attributes, otherwise pass onto the
1981
+ // default `XSS.safeAttrValue` method.
1982
+ if ((tag === "a" && name === "href") ||
1983
+ ((tag === "img" || tag === "source") && name === "src")) {
1984
+ return _this.sanitizeUrl(value);
1985
+ }
1986
+ return libExports.safeAttrValue(tag, name, value, cssFilter);
1987
+ },
1988
+ };
1989
+ this._entityMap = {
1990
+ "&": "&#x38;",
1991
+ "<": "&#x3C;",
1992
+ ">": "&#x3E;",
1993
+ '"': "&#x22;",
1994
+ "'": "&#x27;",
1995
+ "/": "&#x2F;",
1996
+ };
1997
+ var xssFilterOptions;
1998
+ if (filterOptions && !extendDefaults) {
1999
+ // Override the defaults
2000
+ xssFilterOptions = filterOptions;
2001
+ }
2002
+ else if (filterOptions && extendDefaults) {
2003
+ // Extend the defaults
2004
+ xssFilterOptions = Object.create(this.arcgisFilterOptions);
2005
+ xssFilterOptions.css = { whiteList: this.arcgisCSSWhiteList };
2006
+ Object.keys(filterOptions).forEach(function (key) {
2007
+ if (key === "whiteList") {
2008
+ // Extend the whitelist by concatenating arrays
2009
+ xssFilterOptions.whiteList = _this._extendObjectOfArrays([
2010
+ _this.arcgisWhiteList,
2011
+ filterOptions.whiteList || {},
2012
+ ]);
2013
+ }
2014
+ else if (key === "css") {
2015
+ var cssExtensions_1 = filterOptions.css.whiteList;
2016
+ if (cssExtensions_1 != null && filterOptions.css instanceof Object) {
2017
+ Object.keys(cssExtensions_1).forEach(function (attr) {
2018
+ return (xssFilterOptions.css.whiteList[attr] =
2019
+ cssExtensions_1[attr]);
2020
+ });
2021
+ }
2022
+ }
2023
+ else {
2024
+ xssFilterOptions[key] = filterOptions[key];
2025
+ }
2026
+ });
2027
+ }
2028
+ else {
2029
+ // Only use the defaults
2030
+ xssFilterOptions = Object.create(this.arcgisFilterOptions);
2031
+ xssFilterOptions.whiteList = this.arcgisWhiteList;
2032
+ xssFilterOptions.css = { whiteList: this.arcgisCSSWhiteList };
2033
+ }
2034
+ this.xssFilterOptions = xssFilterOptions;
2035
+ // Make this readable to tests
2036
+ this._xssFilter = new libExports.FilterXSS(xssFilterOptions);
2037
+ }
2038
+ /**
2039
+ * Sanitizes value to remove invalid HTML tags.
2040
+ *
2041
+ * Note: If the value passed does not contain a valid JSON data type (String,
2042
+ * Number, JSON Object, Array, Boolean, or null), the value will be nullified.
2043
+ *
2044
+ * @param {any} value The value to sanitize.
2045
+ * @returns {any} The sanitized value.
2046
+ * @memberof Sanitizer
2047
+ */
2048
+ Sanitizer.prototype.sanitize = function (value, options) {
2049
+ if (options === void 0) { options = {}; }
2050
+ switch (typeof value) {
2051
+ case "number":
2052
+ if (isNaN(value) || !isFinite(value)) {
2053
+ return null;
2054
+ }
2055
+ return value;
2056
+ case "boolean":
2057
+ return value;
2058
+ case "string":
2059
+ return this._xssFilter.process(value);
2060
+ case "object":
2061
+ return this._iterateOverObject(value, options);
2062
+ default:
2063
+ if (options.allowUndefined && typeof value === "undefined") {
2064
+ return;
2065
+ }
2066
+ return null;
2067
+ }
2068
+ };
2069
+ /**
2070
+ * Sanitizes a URL string following the allowed protocols and sanitization rules.
2071
+ *
2072
+ * @param {string} value The URL to sanitize.
2073
+ * @param {{ isProtocolRequired: boolean }} options Configuration options for URL checking.
2074
+ * @returns {string} The sanitized URL if it's valid, or an empty string if the URL is invalid.
2075
+ */
2076
+ Sanitizer.prototype.sanitizeUrl = function (value, options) {
2077
+ var _a = (options !== null && options !== void 0 ? options : {}).isProtocolRequired, isProtocolRequired = _a === void 0 ? true : _a;
2078
+ var protocol = this._trim(value.substring(0, value.indexOf(":")));
2079
+ var isRootUrl = value === "/";
2080
+ var isUrlFragment = /^#/.test(value);
2081
+ var isValidProtocol = protocol && this.allowedProtocols.indexOf(protocol.toLowerCase()) > -1;
2082
+ if (isRootUrl || isUrlFragment || isValidProtocol) {
2083
+ return libExports.escapeAttrValue(value);
2084
+ }
2085
+ if (!protocol && !isProtocolRequired) {
2086
+ return libExports.escapeAttrValue("https://".concat(value));
2087
+ }
2088
+ return "";
2089
+ };
2090
+ /**
2091
+ * Sanitizes an HTML attribute value.
2092
+ *
2093
+ * @param {string} tag The tagname of the HTML element.
2094
+ * @param {string} attribute The attribute name of the HTML element.
2095
+ * @param {string} value The raw value to be used for the HTML attribute value.
2096
+ * @param {XSS.ICSSFilter} [cssFilter] The CSS filter to be used.
2097
+ * @returns {string} The sanitized attribute value.
2098
+ * @memberof Sanitizer
2099
+ */
2100
+ Sanitizer.prototype.sanitizeHTMLAttribute = function (tag, attribute, value, cssFilter) {
2101
+ // use the custom safeAttrValue function if provided
2102
+ if (typeof this.xssFilterOptions.safeAttrValue === "function") {
2103
+ return this.xssFilterOptions.safeAttrValue(tag, attribute, value,
2104
+ // @ts-expect-error safeAttrValue does handle undefined cssFilter
2105
+ cssFilter);
2106
+ }
2107
+ // otherwise use the default
2108
+ // @ts-ignore safeAttrValue does handle undefined cssFilter
2109
+ return libExports.safeAttrValue(tag, attribute, value, cssFilter);
2110
+ };
2111
+ /**
2112
+ * Checks if a value only contains valid HTML.
2113
+ *
2114
+ * @param {any} value The value to validate.
2115
+ * @returns {boolean}
2116
+ * @memberof Sanitizer
2117
+ */
2118
+ Sanitizer.prototype.validate = function (value, options) {
2119
+ if (options === void 0) { options = {}; }
2120
+ var sanitized = this.sanitize(value, options);
2121
+ return {
2122
+ isValid: value === sanitized,
2123
+ sanitized: sanitized,
2124
+ };
2125
+ };
2126
+ /**
2127
+ * Encodes the following characters, `& < > \" ' /` to their hexadecimal HTML entity code.
2128
+ * Example: "&middot;" => "&#x38;middot;"
2129
+ *
2130
+ * @param {string} value The value to encode.
2131
+ * @returns {string} The encoded string value.
2132
+ * @memberof Sanitizer
2133
+ */
2134
+ Sanitizer.prototype.encodeHTML = function (value) {
2135
+ var _this = this;
2136
+ return String(value).replace(/[&<>"'\/]/g, function (s) {
2137
+ return _this._entityMap[s];
2138
+ });
2139
+ };
2140
+ /**
2141
+ * Encodes all non-alphanumeric ASCII characters to their hexadecimal HTML entity codes.
2142
+ * Example: "alert(document.cookie)" => "alert&#x28;document&#x2e;cookie&#x29;"
2143
+ *
2144
+ * @param {string} value The value to encode.
2145
+ * @returns {string} The encoded string value.
2146
+ * @memberof Sanitizer
2147
+ */
2148
+ Sanitizer.prototype.encodeAttrValue = function (value) {
2149
+ var alphanumericRE = /^[a-zA-Z0-9]$/;
2150
+ return String(value).replace(/[\x00-\xFF]/g, function (c, idx) {
2151
+ return !alphanumericRE.test(c)
2152
+ ? "&#x".concat(Number(value.charCodeAt(idx)).toString(16), ";")
2153
+ : c;
2154
+ });
2155
+ };
2156
+ /**
2157
+ * Extends an object of arrays by by concatenating arrays of the same object
2158
+ * keys. If the if the previous key's value is not an array, the next key's
2159
+ * value will replace the previous key. This method is used for extending the
2160
+ * whiteList in the XSS filter options.
2161
+ *
2162
+ * @private
2163
+ * @param {Array<{}>} objects An array of objects.
2164
+ * @returns {{}} The extended object.
2165
+ * @memberof Sanitizer
2166
+ */
2167
+ Sanitizer.prototype._extendObjectOfArrays = function (objects) {
2168
+ var finalObj = {};
2169
+ objects.forEach(function (obj) {
2170
+ Object.keys(obj).forEach(function (key) {
2171
+ if (Array.isArray(obj[key]) && Array.isArray(finalObj[key])) {
2172
+ finalObj[key] = finalObj[key].concat(obj[key]);
2173
+ }
2174
+ else {
2175
+ finalObj[key] = obj[key];
2176
+ }
2177
+ });
2178
+ });
2179
+ return finalObj;
2180
+ };
2181
+ /**
2182
+ * Iterate over a plain object or array to deeply sanitize each value.
2183
+ *
2184
+ * @private
2185
+ * @param {object} obj The object to iterate over.
2186
+ * @returns {(object | null)} The sanitized object.
2187
+ * @memberof Sanitizer
2188
+ */
2189
+ Sanitizer.prototype._iterateOverObject = function (obj, options) {
2190
+ var _this = this;
2191
+ if (options === void 0) { options = {}; }
2192
+ try {
2193
+ var hasChanged_1 = false;
2194
+ var changedObj = void 0;
2195
+ if (Array.isArray(obj)) {
2196
+ changedObj = obj.reduce(function (prev, value) {
2197
+ var validation = _this.validate(value, options);
2198
+ if (validation.isValid) {
2199
+ return prev.concat([value]);
2200
+ }
2201
+ else {
2202
+ hasChanged_1 = true;
2203
+ return prev.concat([validation.sanitized]);
2204
+ }
2205
+ }, []);
2206
+ }
2207
+ else if (!isPlainObject(obj)) {
2208
+ if (options.allowUndefined && typeof obj === "undefined") {
2209
+ return;
2210
+ }
2211
+ return null;
2212
+ }
2213
+ else {
2214
+ var keys = Object.keys(obj);
2215
+ changedObj = keys.reduce(function (prev, key) {
2216
+ var value = obj[key];
2217
+ var validation = _this.validate(value, options);
2218
+ if (validation.isValid) {
2219
+ prev[key] = value;
2220
+ }
2221
+ else {
2222
+ hasChanged_1 = true;
2223
+ prev[key] = validation.sanitized;
2224
+ }
2225
+ return prev;
2226
+ }, {});
2227
+ }
2228
+ if (hasChanged_1) {
2229
+ return changedObj;
2230
+ }
2231
+ return obj;
2232
+ }
2233
+ catch (err) {
2234
+ return null;
2235
+ }
2236
+ };
2237
+ /**
2238
+ * Trim whitespace from the start and ends of a string.
2239
+ * @param {string} val The string to trim.
2240
+ * @returns {string} The trimmed string.
2241
+ */
2242
+ Sanitizer.prototype._trim = function (val) {
2243
+ // @ts-ignore This is used by Jest,
2244
+ // but TypeScript errors since it assumes `trim` is always available.
2245
+ return String.prototype.trim
2246
+ ? val.trim()
2247
+ : val.replace(/(^\s*)|(\s*$)/g, "");
2248
+ };
2249
+ return Sanitizer;
2250
+ }());
2251
+
2252
+ /*
2253
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2254
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
2255
+ */
2256
+ const n$7=new Map;function t$5(){n$7.clear();}function e$8(t){return n$7.get(t)}function c$4(t,e){n$7.set(t,e);}function o$4(t){n$7.delete(t);}
2257
+
2258
+ /*
2259
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2260
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
2261
+ */
2262
+ function l$1(...e){const r=locale.t$2.acquire();for(let t=0;t<e.length;t++){const o=e[t],n=typeof o;if("string"===n)r.push(o);else if(Array.isArray(o))r.push.apply(r,o);else if("object"===n)for(const e in o)o[e]&&r.push(e);}const o=r.join(" ");return locale.t$2.release(r),o}(()=>{const e=new Map,t=new ResizeObserver((t=>{t$5();for(const r of t)e.get(r.target)?.(r);})),n=(r,n,s)=>(e.set(r,n),t.observe(r,s),locale.e((()=>{t.unobserve(r),e.delete(r);})));return (e,t,a)=>{let c=null;return locale.t$1([d$6((()=>"function"==typeof e?e():e),(e=>{c?.remove(),e&&(c=n(e,t,a));}),A$2),locale.e((()=>c?.remove()))])}})();const d$5=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup",...["animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"]],g$1=d$5.reduce(((e,t)=>(e[t]=[],e)),{}),h$3=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],y$1=new Sanitizer({whiteList:g$1,onTagAttr:(e,t,r)=>{const o=`${t}="${r}"`;if(h$3.includes(t))return o},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0);async function w$1(e,t){await locale.P(locale.l$2(t));const r="function"==typeof e?e():e;r&&("setFocus"in r&&"function"==typeof r.setFocus?await r.setFocus():r instanceof HTMLElement&&r.focus());}
2263
+
2264
+ /*
2265
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2266
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
2267
+ */
2268
+ const t$4="http://www.w3.org/",r$4=`${t$4}2000/svg`,o$3=`${t$4}1999/xlink`;let i$3=[],n$6=(e,t)=>{let r={};return Object.keys(e).forEach((t=>{r[t]=e[t];})),t&&Object.keys(t).forEach((e=>{r[e]=t[e];})),r},s$5=(e,t)=>e.vnodeSelector===t.vnodeSelector&&(e.properties&&t.properties?e.properties.key===t.properties.key&&e.properties.bind===t.properties.bind:!e.properties&&!t.properties),l=e=>{if("string"!=typeof e)throw new Error("Style values must be strings")},p$3=(e,t,r)=>{if(""!==t.vnodeSelector)for(let o=r;o<e.length;o++)if(s$5(e[o],t))return o;return -1},d$4=(e,t,r,o)=>{let i=e[t];if(""===i.vnodeSelector)return;let n=i.properties;if(!(n?void 0===n.key?n.bind:n.key:void 0))for(let l=0;l<e.length;l++)if(l!==t){let t=e[l];if(s$5(t,i))throw new Error(`${r.vnodeSelector} had a ${i.vnodeSelector} child ${"added"===o?o:"removed"}, but there is now more than one. You must add unique key properties to make them distinguishable.`)}},a$1=e=>{if(e.properties){let t=e.properties.enterAnimation;t&&t(e.domNode,e.properties);}},f$1=[],c$3=!1,u$1=e=>{(e.children||[]).forEach(u$1),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode]);},m$1=()=>{c$3=!1,f$1.forEach(u$1),f$1.length=0;},h$2=e=>{f$1.push(e),c$3||(c$3=!0,"undefined"!=typeof window&&"requestIdleCallback"in window?window.requestIdleCallback(m$1,{timeout:16}):setTimeout(m$1,16));},v=e=>{let t=e.domNode;if(e.properties){let r=e.properties.exitAnimation;if(r){t.style.pointerEvents="none";let o=()=>{t.parentNode&&(t.parentNode.removeChild(t),h$2(e));};return void r(t,o,e.properties)}}t.parentNode&&(t.parentNode.removeChild(t),h$2(e));},y=(t,i,n)=>{if(!i)return;let s=n.eventHandlerInterceptor,p=Object.keys(i),d=p.length;for(let a=0;a<d;a++){let d=p[a],f=i[d];if("className"===d)throw new Error('Property "className" is not supported, use "class".');if("class"===d)k(t,f,!0);else if("classes"===d){let e=Object.keys(f),r=e.length;for(let o=0;o<r;o++){let r=e[o];f[r]&&t.classList.add(r);}}else if("styles"===d){let e=Object.keys(f),r=e.length;for(let o=0;o<r;o++){let r=e[o],i=f[r];i&&(l(i),n.styleApplyer(t,r,i));}}else if("key"!==d&&null!=f){let l=typeof f;"function"===l?(0===d.lastIndexOf("on",0)&&(s&&(f=s(d,f,t,i)),"oninput"===d&&function(){let e=f;f=function(t){e.apply(this,[t]),t.target["oninput-value"]=t.target.value;};}()),t[d]=f):n.namespace===r$4?"href"===d?t.setAttributeNS(o$3,d,f):t.setAttribute(d,f):"string"===l&&"value"!==d?"innerHTML"===d?t[d]=y$1.sanitize(f):g(t)&&d in t?t[d]=f:t.setAttribute(d,f):t[d]=f;}}};function g(e){if(!(e instanceof Element&&e.tagName.includes("-")))return !1;const t=window.customElements.get(e.tagName.toLowerCase());return !!t&&e instanceof t}let N,b$1=(e,t,r)=>{if(t)for(let o of t)x$1(o,e,void 0,r);},w=(e,t,r)=>{b$1(e,t.children,r),t.text&&(e.textContent=t.text),y(e,t.properties,r),t.properties&&t.properties.afterCreate&&t.properties.afterCreate.apply(t.properties.bind||t.properties,[e,r,t.vnodeSelector,t.properties,t.children]);},x$1=(e,t,o,i)=>{let s,l=0,p=e.vnodeSelector,d=t.ownerDocument;if(""===p)s=e.domNode=d.createTextNode(e.text),void 0!==o?t.insertBefore(s,o):t.appendChild(s);else {for(let a=0;a<=p.length;++a){let f=p.charAt(a);if(a===p.length||"."===f||"#"===f){let f=p.charAt(l-1),c=p.slice(l,a);"."===f?s.classList.add(c):"#"===f?s.id=c:("svg"===c&&(i=n$6(i,{namespace:r$4})),void 0!==i.namespace?s=e.domNode=d.createElementNS(i.namespace,c):(s=e.domNode=e.domNode||d.createElement(c),"input"===c&&e.properties&&void 0!==e.properties.type&&s.setAttribute("type",e.properties.type)),void 0!==o?t.insertBefore(s,o):s.parentNode!==t&&t.appendChild(s)),l=a+1;}}w(s,e,i);}},k=(e,t,r)=>{t&&t.split(" ").forEach((t=>{t&&e.classList.toggle(t,r);}));},A$1=(t,i,n,s)=>{if(!n)return;let p=!1,d=Object.keys(n),a=d.length;for(let f=0;f<a;f++){let a=d[f],c=n[a],u=i[a];if("class"===a)u!==c&&(k(t,u,!1),k(t,c,!0));else if("classes"===a){let e=t.classList,r=Object.keys(c),o=r.length;for(let t=0;t<o;t++){let o=r[t],i=!!c[o];i!==!!u[o]&&(p=!0,i?e.add(o):e.remove(o));}}else if("styles"===a){let e=Object.keys(c),r=e.length;for(let o=0;o<r;o++){let r=e[o],i=c[r];i!==u[r]&&(p=!0,i?(l(i),s.styleApplyer(t,r,i)):s.styleApplyer(t,r,""));}}else if(c||"string"!=typeof u||(c=""),"value"!==a||g(t)){if(c!==u){let i=typeof c;"function"===i&&s.eventHandlerInterceptor||(s.namespace===r$4?"href"===a?t.setAttributeNS(o$3,a,c):t.setAttribute(a,c):"string"===i?"innerHTML"===a?t[a]=y$1.sanitize(c):"role"===a&&""===c?t.removeAttribute(a):g(t)&&a in t?t[a]=c:t.setAttribute(a,c):t[a]!==c&&(t[a]=c),p=!0);}}else {let e=t[a];e!==c&&(t["oninput-value"]?e===t["oninput-value"]:c!==u)&&(t[a]=c,t["oninput-value"]=void 0),c!==u&&(p=!0);}}return p},S=(e,t,r,o,n)=>{if(r===o)return !1;o=o||i$3;let l,f=(r=r||i$3).length,c=o.length,u=0,m=0,h=!1;for(;m<c;){let i=u<f?r[u]:void 0,c=o[m];if(void 0!==i&&s$5(i,c))h=N(i,c,n)||h,u++;else {let i=p$3(r,c,u+1);if(i>=0){for(l=u;l<i;l++)v(r[l]),d$4(r,l,e,"removed");h=N(r[i],c,n)||h,u=i+1;}else x$1(c,t,u<f?r[u].domNode:void 0,n),a$1(c),d$4(o,m,e,"added");}m++;}if(f>u)for(l=u;l<f;l++)v(r[l]),d$4(r,l,e,"removed");return h};N=(e,t,o)=>{let i=e.domNode,s=!1;if(e===t)return !1;let l=!1;if(""===t.vnodeSelector){if(t.text!==e.text){let e=i.ownerDocument.createTextNode(t.text);return i.parentNode.replaceChild(e,i),t.domNode=e,s=!0,s}t.domNode=i;}else 0===t.vnodeSelector.lastIndexOf("svg",0)&&(o=n$6(o,{namespace:r$4})),e.text!==t.text&&(l=!0,void 0===t.text?i.removeChild(i.firstChild):i.textContent=t.text),t.domNode=i,l=S(t,i,e.children,t.children,o)||l,l=A$1(i,e.properties,t.properties,o)||l,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[i,o,t.vnodeSelector,t.properties,t.children]);return l&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(i,t.properties,e.properties),s};let C$1=(e,t)=>({getLastRender:()=>e,update:r=>{if(e.vnodeSelector!==r.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");let o=e;e=r,N(o,r,t);},domNode:e.domNode});
2269
+
2270
+ /*
2271
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2272
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
2273
+ */
2274
+ const p$2={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,r,o)=>{"-"===r.charAt(0)?e.style.setProperty(r,o):e.style[r]=o;}};let d$3=r=>n$6(p$2,r),n$5={create:(e,t)=>(t=d$3(t),x$1(e,document.createElement("div"),void 0,t),C$1(e,t)),append:(e,t,p)=>(p=d$3(p),x$1(t,e,void 0,p),C$1(t,p)),insertBefore:(e,t,p)=>(p=d$3(p),x$1(t,e.parentNode,e,p),C$1(t,p)),merge:(e,r,p)=>(p=d$3(p),r.domNode=e,w(e,r,p),C$1(r,p)),replace:(e,t,p)=>(p=d$3(p),x$1(t,e.parentNode,e,p),e.parentNode.removeChild(e),C$1(t,p))};
2275
+
2276
+ /*
2277
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2278
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
2279
+ */
2280
+ const e$7={handleInterceptedEvent:(e,p,t,n)=>(e.scheduleRender(),p.properties[`on${n.type}`].apply(p.properties.bind||t,[n]))};
2281
+
2282
+ /*
2283
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2284
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
2285
+ */
2286
+ const e$6={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,r,t)=>{"-"===r.charAt(0)?e.style.setProperty(r,t):e.style[r]=t;}},r$3=r=>({...e$6,...r});
2287
+
2288
+ /*
2289
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2290
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
2291
+ */
2292
+ const o$2=(e,r)=>{const t=[];for(;e&&e!==r;)t.push(e),e=e.parentNode;return t},n$4=(e,r)=>e.find(r),d$2=(e,r,t=!1)=>{let o=e;return r.forEach(((e,d)=>{const s=o?.children?n$4(o.children,(r=>r.domNode===e)):void 0;t&&!s&&d!==r.length-1||(o=s);})),o},s$4=n=>{let s;const c={...e$7,...n},i=r$3(c),a=i.performanceLogger;let m,p=!0,l=!1;const f=[],u=[],h=(e,r,t)=>{let n;i.eventHandlerInterceptor=(e,r,t,i)=>function(e){let r;a("domEvent",e);const t=o$2(e.currentTarget,n.domNode),i=t.some((e=>customElements.get(e?.tagName?.toLowerCase())));if(e.eventPhase===Event.CAPTURING_PHASE||!i)t.reverse(),r=d$2(n.getLastRender(),t);else {const t=e.composedPath(),o=t.slice(t.indexOf(e.currentTarget),t.indexOf(n.domNode)).reverse();r=d$2(n.getLastRender(),o,!0);}let m;return r&&(m=c.handleInterceptedEvent(s,r,this,e)),a("domEventProcessed",e),m},c.postProcessProjectionOptions?.(i);const m=t();n=e(r,m,i),i.eventHandlerInterceptor=void 0,f.push(n),u.push(t),c.afterFirstVNodeRendered&&c.afterFirstVNodeRendered(n,m);};let v=()=>{if(m=void 0,p){p=!1,a("renderStart",void 0);for(let r=0;r<f.length;r++){const t=u[r]();a("rendered",void 0);try{f[r].update(t);}catch(e){console.error(e);}a("patched",void 0);}a("renderDone",void 0),p=!0;}};return c.modifyDoRenderImplementation&&(v=c.modifyDoRenderImplementation(v,f,u)),s={renderNow:v,scheduleRender:()=>{m||l||(m=requestAnimationFrame(v));},stop:()=>{m&&(cancelAnimationFrame(m),m=void 0),l=!0;},resume:()=>{l=!1,p=!0,s.scheduleRender();},append:(r,t)=>{h(n$5.append,r,t);},insertBefore:(r,t)=>{h(n$5.insertBefore,r,t);},merge:(r,t)=>{h(n$5.merge,r,t);},replace:(r,t)=>{h(n$5.replace,r,t);},detach:e=>{for(let r=0;r<u.length;r++)if(u[r]===e)return u.splice(r,1),f.splice(r,1)[0];throw new Error("renderFunction was not found")}},s};
2293
+
2294
+ /*!
2295
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2296
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
2297
+ * v2.13.2
2298
+ */
2299
+ const autoMode = "calcite-mode-auto";
2300
+ const darkMode = "calcite-mode-dark";
2301
+ const lightMode = "calcite-mode-light";
2302
+ const CSS_UTILITY = {
2303
+ autoMode,
2304
+ darkMode,
2305
+ lightMode,
2306
+ rtl: "calcite--rtl",
2307
+ calciteAnimate: "calcite-animate",
2308
+ calciteAnimateIn: "calcite-animate__in",
2309
+ calciteAnimateInUp: "calcite-animate__in-up",
2310
+ calciteAnimateInDown: "calcite-animate__in-down",
2311
+ calciteAnimateInRight: "calcite-animate__in-right",
2312
+ calciteAnimateInLeft: "calcite-animate__in-left",
2313
+ calciteAnimateInScale: "calcite-animate__in-scale",
2314
+ };
2315
+ const DEBOUNCE = {
2316
+ filter: 250,
2317
+ nextTick: 0,
2318
+ resize: 150,
2319
+ reposition: 100,
2320
+ };
2321
+
2322
+ /*
2323
+ Stencil Client Platform v4.20.0 | MIT Licensed | https://stenciljs.com
2324
+ */
2325
+ var __defProp = Object.defineProperty;
2326
+ var __export = (target, all) => {
2327
+ for (var name in all)
2328
+ __defProp(target, name, { get: all[name], enumerable: true });
2329
+ };
2330
+ var hostRefs = /* @__PURE__ */ new WeakMap();
2331
+ var getHostRef = (ref) => hostRefs.get(ref);
2332
+ var registerHost = (hostElement, cmpMeta) => {
2333
+ const hostRef = {
2334
+ $flags$: 0,
2335
+ $hostElement$: hostElement,
2336
+ $cmpMeta$: cmpMeta,
2337
+ $instanceValues$: /* @__PURE__ */ new Map()
2338
+ };
2339
+ {
2340
+ hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
2341
+ }
2342
+ {
2343
+ hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
2344
+ hostElement["s-p"] = [];
2345
+ hostElement["s-rc"] = [];
2346
+ }
2347
+ return hostRefs.set(hostElement, hostRef);
2348
+ };
2349
+ var isMemberInElement = (elm, memberName) => memberName in elm;
2350
+ var consoleError = (e, el) => (0, console.error)(e, el);
2351
+
2352
+ // src/client/client-load-module.ts
2353
+ var cmpModules = /* @__PURE__ */ new Map();
2354
+ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2355
+ const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
2356
+ const bundleId = cmpMeta.$lazyBundleId$;
2357
+ if (!bundleId) {
2358
+ return void 0;
2359
+ }
2360
+ const module = cmpModules.get(bundleId) ;
2361
+ if (module) {
2362
+ return module[exportName];
2363
+ }
2364
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
2365
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2366
+ /* @vite-ignore */
2367
+ /* webpackInclude: /\.entry\.js$/ */
2368
+ /* webpackExclude: /\.system\.entry\.js$/ */
2369
+ /* webpackMode: "lazy" */
2370
+ `./${bundleId}.entry.js${""}`
2371
+ )); }).then((importedModule) => {
2372
+ {
2373
+ cmpModules.set(bundleId, importedModule);
2374
+ }
2375
+ return importedModule[exportName];
2376
+ }, consoleError);
2377
+ };
2378
+
2379
+ // src/client/client-style.ts
2380
+ var styles = /* @__PURE__ */ new Map();
2381
+ var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
2382
+ var win = typeof window !== "undefined" ? window : {};
2383
+ var doc = win.document || { head: {} };
2384
+ var H = win.HTMLElement || class {
2385
+ };
2386
+ var plt = {
2387
+ $flags$: 0,
2388
+ $resourcesUrl$: "",
2389
+ jmp: (h2) => h2(),
2390
+ raf: (h2) => requestAnimationFrame(h2),
2391
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
2392
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
2393
+ ce: (eventName, opts) => new CustomEvent(eventName, opts)
2394
+ };
2395
+ var supportsListenerOptions = /* @__PURE__ */ (() => {
2396
+ let supportsListenerOptions2 = false;
2397
+ try {
2398
+ doc.addEventListener(
2399
+ "e",
2400
+ null,
2401
+ Object.defineProperty({}, "passive", {
2402
+ get() {
2403
+ supportsListenerOptions2 = true;
2404
+ }
2405
+ })
2406
+ );
2407
+ } catch (e) {
2408
+ }
2409
+ return supportsListenerOptions2;
2410
+ })();
2411
+ var promiseResolve = (v) => Promise.resolve(v);
2412
+ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
2413
+ try {
2414
+ new CSSStyleSheet();
2415
+ return typeof new CSSStyleSheet().replaceSync === "function";
2416
+ } catch (e) {
2417
+ }
2418
+ return false;
2419
+ })() ;
2420
+ var queuePending = false;
2421
+ var queueDomReads = [];
2422
+ var queueDomWrites = [];
2423
+ var queueTask = (queue, write) => (cb) => {
2424
+ queue.push(cb);
2425
+ if (!queuePending) {
2426
+ queuePending = true;
2427
+ if (write && plt.$flags$ & 4 /* queueSync */) {
2428
+ nextTick(flush);
2429
+ } else {
2430
+ plt.raf(flush);
2431
+ }
2432
+ }
2433
+ };
2434
+ var consume = (queue) => {
2435
+ for (let i2 = 0; i2 < queue.length; i2++) {
2436
+ try {
2437
+ queue[i2](performance.now());
2438
+ } catch (e) {
2439
+ consoleError(e);
2440
+ }
2441
+ }
2442
+ queue.length = 0;
2443
+ };
2444
+ var flush = () => {
2445
+ consume(queueDomReads);
2446
+ {
2447
+ consume(queueDomWrites);
2448
+ if (queuePending = queueDomReads.length > 0) {
2449
+ plt.raf(flush);
2450
+ }
2451
+ }
2452
+ };
2453
+ var nextTick = (cb) => promiseResolve().then(cb);
2454
+ var readTask = /* @__PURE__ */ queueTask(queueDomReads, false);
2455
+ var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
2456
+
2457
+ // src/runtime/asset-path.ts
2458
+ var getAssetPath = (path) => {
2459
+ const assetUrl = new URL(path, plt.$resourcesUrl$);
2460
+ return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
2461
+ };
2462
+ var setAssetPath = (path) => plt.$resourcesUrl$ = path;
2463
+
2464
+ // src/utils/constants.ts
2465
+ var EMPTY_OBJ = {};
2466
+ var SVG_NS = "http://www.w3.org/2000/svg";
2467
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
2468
+
2469
+ // src/utils/helpers.ts
2470
+ var isDef = (v) => v != null;
2471
+ var isComplexType = (o) => {
2472
+ o = typeof o;
2473
+ return o === "object" || o === "function";
2474
+ };
2475
+
2476
+ // src/utils/query-nonce-meta-tag-content.ts
2477
+ function queryNonceMetaTagContent(doc2) {
2478
+ var _a, _b, _c;
2479
+ return (_c = (_b = (_a = doc2.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
2480
+ }
2481
+
2482
+ // src/utils/result.ts
2483
+ var result_exports = {};
2484
+ __export(result_exports, {
2485
+ err: () => err,
2486
+ map: () => map,
2487
+ ok: () => ok,
2488
+ unwrap: () => unwrap,
2489
+ unwrapErr: () => unwrapErr
2490
+ });
2491
+ var ok = (value) => ({
2492
+ isOk: true,
2493
+ isErr: false,
2494
+ value
2495
+ });
2496
+ var err = (value) => ({
2497
+ isOk: false,
2498
+ isErr: true,
2499
+ value
2500
+ });
2501
+ function map(result, fn) {
2502
+ if (result.isOk) {
2503
+ const val = fn(result.value);
2504
+ if (val instanceof Promise) {
2505
+ return val.then((newVal) => ok(newVal));
2506
+ } else {
2507
+ return ok(val);
2508
+ }
2509
+ }
2510
+ if (result.isErr) {
2511
+ const value = result.value;
2512
+ return err(value);
2513
+ }
2514
+ throw "should never get here";
2515
+ }
2516
+ var unwrap = (result) => {
2517
+ if (result.isOk) {
2518
+ return result.value;
2519
+ } else {
2520
+ throw result.value;
2521
+ }
2522
+ };
2523
+ var unwrapErr = (result) => {
2524
+ if (result.isErr) {
2525
+ return result.value;
2526
+ } else {
2527
+ throw result.value;
2528
+ }
2529
+ };
2530
+ var createTime = (fnName, tagName = "") => {
2531
+ {
2532
+ return () => {
2533
+ return;
2534
+ };
2535
+ }
2536
+ };
2537
+ var uniqueTime = (key, measureText) => {
2538
+ {
2539
+ return () => {
2540
+ return;
2541
+ };
2542
+ }
2543
+ };
2544
+ var h$1 = (nodeName, vnodeData, ...children) => {
2545
+ let child = null;
2546
+ let key = null;
2547
+ let slotName = null;
2548
+ let simple = false;
2549
+ let lastSimple = false;
2550
+ const vNodeChildren = [];
2551
+ const walk = (c) => {
2552
+ for (let i2 = 0; i2 < c.length; i2++) {
2553
+ child = c[i2];
2554
+ if (Array.isArray(child)) {
2555
+ walk(child);
2556
+ } else if (child != null && typeof child !== "boolean") {
2557
+ if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
2558
+ child = String(child);
2559
+ }
2560
+ if (simple && lastSimple) {
2561
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
2562
+ } else {
2563
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
2564
+ }
2565
+ lastSimple = simple;
2566
+ }
2567
+ }
2568
+ };
2569
+ walk(children);
2570
+ if (vnodeData) {
2571
+ if (vnodeData.key) {
2572
+ key = vnodeData.key;
2573
+ }
2574
+ if (vnodeData.name) {
2575
+ slotName = vnodeData.name;
2576
+ }
2577
+ {
2578
+ const classData = vnodeData.className || vnodeData.class;
2579
+ if (classData) {
2580
+ vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
2581
+ }
2582
+ }
2583
+ }
2584
+ if (typeof nodeName === "function") {
2585
+ return nodeName(
2586
+ vnodeData === null ? {} : vnodeData,
2587
+ vNodeChildren,
2588
+ vdomFnUtils
2589
+ );
2590
+ }
2591
+ const vnode = newVNode(nodeName, null);
2592
+ vnode.$attrs$ = vnodeData;
2593
+ if (vNodeChildren.length > 0) {
2594
+ vnode.$children$ = vNodeChildren;
2595
+ }
2596
+ {
2597
+ vnode.$key$ = key;
2598
+ }
2599
+ {
2600
+ vnode.$name$ = slotName;
2601
+ }
2602
+ return vnode;
2603
+ };
2604
+ var newVNode = (tag, text) => {
2605
+ const vnode = {
2606
+ $flags$: 0,
2607
+ $tag$: tag,
2608
+ $text$: text,
2609
+ $elm$: null,
2610
+ $children$: null
2611
+ };
2612
+ {
2613
+ vnode.$attrs$ = null;
2614
+ }
2615
+ {
2616
+ vnode.$key$ = null;
2617
+ }
2618
+ {
2619
+ vnode.$name$ = null;
2620
+ }
2621
+ return vnode;
2622
+ };
2623
+ var Host = {};
2624
+ var isHost = (node) => node && node.$tag$ === Host;
2625
+ var vdomFnUtils = {
2626
+ forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
2627
+ map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
2628
+ };
2629
+ var convertToPublic = (node) => ({
2630
+ vattrs: node.$attrs$,
2631
+ vchildren: node.$children$,
2632
+ vkey: node.$key$,
2633
+ vname: node.$name$,
2634
+ vtag: node.$tag$,
2635
+ vtext: node.$text$
2636
+ });
2637
+ var convertToPrivate = (node) => {
2638
+ if (typeof node.vtag === "function") {
2639
+ const vnodeData = { ...node.vattrs };
2640
+ if (node.vkey) {
2641
+ vnodeData.key = node.vkey;
2642
+ }
2643
+ if (node.vname) {
2644
+ vnodeData.name = node.vname;
2645
+ }
2646
+ return h$1(node.vtag, vnodeData, ...node.vchildren || []);
2647
+ }
2648
+ const vnode = newVNode(node.vtag, node.vtext);
2649
+ vnode.$attrs$ = node.vattrs;
2650
+ vnode.$children$ = node.vchildren;
2651
+ vnode.$key$ = node.vkey;
2652
+ vnode.$name$ = node.vname;
2653
+ return vnode;
2654
+ };
2655
+ var parsePropertyValue = (propValue, propType) => {
2656
+ if (propValue != null && !isComplexType(propValue)) {
2657
+ if (propType & 4 /* Boolean */) {
2658
+ return propValue === "false" ? false : propValue === "" || !!propValue;
2659
+ }
2660
+ if (propType & 2 /* Number */) {
2661
+ return parseFloat(propValue);
2662
+ }
2663
+ if (propType & 1 /* String */) {
2664
+ return String(propValue);
2665
+ }
2666
+ return propValue;
2667
+ }
2668
+ return propValue;
2669
+ };
2670
+ var getElement = (ref) => getHostRef(ref).$hostElement$ ;
2671
+
2672
+ // src/runtime/event-emitter.ts
2673
+ var createEvent = (ref, name, flags) => {
2674
+ const elm = getElement(ref);
2675
+ return {
2676
+ emit: (detail) => {
2677
+ return emitEvent(elm, name, {
2678
+ bubbles: !!(flags & 4 /* Bubbles */),
2679
+ composed: !!(flags & 2 /* Composed */),
2680
+ cancelable: !!(flags & 1 /* Cancellable */),
2681
+ detail
2682
+ });
2683
+ }
2684
+ };
2685
+ };
2686
+ var emitEvent = (elm, name, opts) => {
2687
+ const ev = plt.ce(name, opts);
2688
+ elm.dispatchEvent(ev);
2689
+ return ev;
2690
+ };
2691
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
2692
+ var registerStyle = (scopeId2, cssText, allowCS) => {
2693
+ let style = styles.get(scopeId2);
2694
+ if (supportsConstructableStylesheets && allowCS) {
2695
+ style = style || new CSSStyleSheet();
2696
+ if (typeof style === "string") {
2697
+ style = cssText;
2698
+ } else {
2699
+ style.replaceSync(cssText);
2700
+ }
2701
+ } else {
2702
+ style = cssText;
2703
+ }
2704
+ styles.set(scopeId2, style);
2705
+ };
2706
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
2707
+ var _a;
2708
+ const scopeId2 = getScopeId(cmpMeta);
2709
+ const style = styles.get(scopeId2);
2710
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
2711
+ if (style) {
2712
+ if (typeof style === "string") {
2713
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
2714
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
2715
+ let styleElm;
2716
+ if (!appliedStyles) {
2717
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
2718
+ }
2719
+ if (!appliedStyles.has(scopeId2)) {
2720
+ {
2721
+ styleElm = doc.createElement("style");
2722
+ styleElm.innerHTML = style;
2723
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
2724
+ if (nonce != null) {
2725
+ styleElm.setAttribute("nonce", nonce);
2726
+ }
2727
+ const injectStyle = (
2728
+ /**
2729
+ * we render a scoped component
2730
+ */
2731
+ !(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) || /**
2732
+ * we are using shadow dom and render the style tag within the shadowRoot
2733
+ */
2734
+ cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD"
2735
+ );
2736
+ if (injectStyle) {
2737
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
2738
+ }
2739
+ }
2740
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
2741
+ styleElm.innerHTML += SLOT_FB_CSS;
2742
+ }
2743
+ if (appliedStyles) {
2744
+ appliedStyles.add(scopeId2);
2745
+ }
2746
+ }
2747
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
2748
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
2749
+ }
2750
+ }
2751
+ return scopeId2;
2752
+ };
2753
+ var attachStyles = (hostRef) => {
2754
+ const cmpMeta = hostRef.$cmpMeta$;
2755
+ const elm = hostRef.$hostElement$;
2756
+ const flags = cmpMeta.$flags$;
2757
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
2758
+ const scopeId2 = addStyle(
2759
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
2760
+ cmpMeta);
2761
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
2762
+ elm["s-sc"] = scopeId2;
2763
+ elm.classList.add(scopeId2 + "-h");
2764
+ if (flags & 2 /* scopedCssEncapsulation */) {
2765
+ elm.classList.add(scopeId2 + "-s");
2766
+ }
2767
+ }
2768
+ endAttachStyles();
2769
+ };
2770
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
2771
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
2772
+ if (oldValue !== newValue) {
2773
+ let isProp = isMemberInElement(elm, memberName);
2774
+ let ln = memberName.toLowerCase();
2775
+ if (memberName === "class") {
2776
+ const classList = elm.classList;
2777
+ const oldClasses = parseClassList(oldValue);
2778
+ const newClasses = parseClassList(newValue);
2779
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
2780
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
2781
+ } else if (memberName === "style") {
2782
+ {
2783
+ for (const prop in oldValue) {
2784
+ if (!newValue || newValue[prop] == null) {
2785
+ if (prop.includes("-")) {
2786
+ elm.style.removeProperty(prop);
2787
+ } else {
2788
+ elm.style[prop] = "";
2789
+ }
2790
+ }
2791
+ }
2792
+ }
2793
+ for (const prop in newValue) {
2794
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
2795
+ if (prop.includes("-")) {
2796
+ elm.style.setProperty(prop, newValue[prop]);
2797
+ } else {
2798
+ elm.style[prop] = newValue[prop];
2799
+ }
2800
+ }
2801
+ }
2802
+ } else if (memberName === "key") ; else if (memberName === "ref") {
2803
+ if (newValue) {
2804
+ newValue(elm);
2805
+ }
2806
+ } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
2807
+ if (memberName[2] === "-") {
2808
+ memberName = memberName.slice(3);
2809
+ } else if (isMemberInElement(win, ln)) {
2810
+ memberName = ln.slice(2);
2811
+ } else {
2812
+ memberName = ln[2] + memberName.slice(3);
2813
+ }
2814
+ if (oldValue || newValue) {
2815
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
2816
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
2817
+ if (oldValue) {
2818
+ plt.rel(elm, memberName, oldValue, capture);
2819
+ }
2820
+ if (newValue) {
2821
+ plt.ael(elm, memberName, newValue, capture);
2822
+ }
2823
+ }
2824
+ } else {
2825
+ const isComplex = isComplexType(newValue);
2826
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
2827
+ try {
2828
+ if (!elm.tagName.includes("-")) {
2829
+ const n = newValue == null ? "" : newValue;
2830
+ if (memberName === "list") {
2831
+ isProp = false;
2832
+ } else if (oldValue == null || elm[memberName] != n) {
2833
+ elm[memberName] = n;
2834
+ }
2835
+ } else {
2836
+ elm[memberName] = newValue;
2837
+ }
2838
+ } catch (e) {
2839
+ }
2840
+ }
2841
+ if (newValue == null || newValue === false) {
2842
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
2843
+ {
2844
+ elm.removeAttribute(memberName);
2845
+ }
2846
+ }
2847
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
2848
+ newValue = newValue === true ? "" : newValue;
2849
+ {
2850
+ elm.setAttribute(memberName, newValue);
2851
+ }
2852
+ }
2853
+ }
2854
+ }
2855
+ };
2856
+ var parseClassListRegex = /\s/;
2857
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
2858
+ var CAPTURE_EVENT_SUFFIX = "Capture";
2859
+ var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
2860
+
2861
+ // src/runtime/vdom/update-element.ts
2862
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
2863
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
2864
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
2865
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
2866
+ {
2867
+ for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
2868
+ if (!(memberName in newVnodeAttrs)) {
2869
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
2870
+ }
2871
+ }
2872
+ }
2873
+ for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
2874
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
2875
+ }
2876
+ };
2877
+ function sortedAttrNames(attrNames) {
2878
+ return attrNames.includes("ref") ? (
2879
+ // we need to sort these to ensure that `'ref'` is the last attr
2880
+ [...attrNames.filter((attr) => attr !== "ref"), "ref"]
2881
+ ) : (
2882
+ // no need to sort, return the original array
2883
+ attrNames
2884
+ );
2885
+ }
2886
+
2887
+ // src/runtime/vdom/vdom-render.ts
2888
+ var scopeId;
2889
+ var contentRef;
2890
+ var hostTagName;
2891
+ var useNativeShadowDom = false;
2892
+ var checkSlotFallbackVisibility = false;
2893
+ var checkSlotRelocate = false;
2894
+ var isSvgMode = false;
2895
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
2896
+ var _a;
2897
+ const newVNode2 = newParentVNode.$children$[childIndex];
2898
+ let i2 = 0;
2899
+ let elm;
2900
+ let childNode;
2901
+ let oldVNode;
2902
+ if (!useNativeShadowDom) {
2903
+ checkSlotRelocate = true;
2904
+ if (newVNode2.$tag$ === "slot") {
2905
+ if (scopeId) {
2906
+ parentElm.classList.add(scopeId + "-s");
2907
+ }
2908
+ newVNode2.$flags$ |= newVNode2.$children$ ? (
2909
+ // slot element has fallback content
2910
+ // still create an element that "mocks" the slot element
2911
+ 2 /* isSlotFallback */
2912
+ ) : (
2913
+ // slot element does not have fallback content
2914
+ // create an html comment we'll use to always reference
2915
+ // where actual slot content should sit next to
2916
+ 1 /* isSlotReference */
2917
+ );
2918
+ }
2919
+ }
2920
+ if (newVNode2.$text$ !== null) {
2921
+ elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
2922
+ } else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
2923
+ elm = newVNode2.$elm$ = doc.createTextNode("");
2924
+ } else {
2925
+ if (!isSvgMode) {
2926
+ isSvgMode = newVNode2.$tag$ === "svg";
2927
+ }
2928
+ elm = newVNode2.$elm$ = doc.createElementNS(
2929
+ isSvgMode ? SVG_NS : HTML_NS,
2930
+ !useNativeShadowDom && index.BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
2931
+ ) ;
2932
+ if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
2933
+ isSvgMode = false;
2934
+ }
2935
+ {
2936
+ updateElement(null, newVNode2, isSvgMode);
2937
+ }
2938
+ const rootNode = elm.getRootNode();
2939
+ const isElementWithinShadowRoot = !rootNode.querySelector("body");
2940
+ if (!isElementWithinShadowRoot && index.BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
2941
+ elm.classList.add(elm["s-si"] = scopeId);
2942
+ }
2943
+ {
2944
+ updateElementScopeIds(elm, parentElm);
2945
+ }
2946
+ if (newVNode2.$children$) {
2947
+ for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
2948
+ childNode = createElm(oldParentVNode, newVNode2, i2, elm);
2949
+ if (childNode) {
2950
+ elm.appendChild(childNode);
2951
+ }
2952
+ }
2953
+ }
2954
+ {
2955
+ if (newVNode2.$tag$ === "svg") {
2956
+ isSvgMode = false;
2957
+ } else if (elm.tagName === "foreignObject") {
2958
+ isSvgMode = true;
2959
+ }
2960
+ }
2961
+ }
2962
+ elm["s-hn"] = hostTagName;
2963
+ {
2964
+ if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
2965
+ elm["s-sr"] = true;
2966
+ elm["s-cr"] = contentRef;
2967
+ elm["s-sn"] = newVNode2.$name$ || "";
2968
+ elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
2969
+ oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
2970
+ if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
2971
+ {
2972
+ putBackInOriginalLocation(oldParentVNode.$elm$, false);
2973
+ }
2974
+ }
2975
+ }
2976
+ }
2977
+ return elm;
2978
+ };
2979
+ var putBackInOriginalLocation = (parentElm, recursive) => {
2980
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
2981
+ const oldSlotChildNodes = Array.from(parentElm.childNodes);
2982
+ if (parentElm["s-sr"] && index.BUILD.experimentalSlotFixes) {
2983
+ let node = parentElm;
2984
+ while (node = node.nextSibling) {
2985
+ if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
2986
+ oldSlotChildNodes.push(node);
2987
+ }
2988
+ }
2989
+ }
2990
+ for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
2991
+ const childNode = oldSlotChildNodes[i2];
2992
+ if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
2993
+ insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
2994
+ childNode["s-ol"].remove();
2995
+ childNode["s-ol"] = void 0;
2996
+ childNode["s-sh"] = void 0;
2997
+ checkSlotRelocate = true;
2998
+ }
2999
+ if (recursive) {
3000
+ putBackInOriginalLocation(childNode, recursive);
3001
+ }
3002
+ }
3003
+ plt.$flags$ &= ~1 /* isTmpDisconnected */;
3004
+ };
3005
+ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
3006
+ let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
3007
+ let childNode;
3008
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
3009
+ containerElm = containerElm.shadowRoot;
3010
+ }
3011
+ for (; startIdx <= endIdx; ++startIdx) {
3012
+ if (vnodes[startIdx]) {
3013
+ childNode = createElm(null, parentVNode, startIdx, parentElm);
3014
+ if (childNode) {
3015
+ vnodes[startIdx].$elm$ = childNode;
3016
+ insertBefore(containerElm, childNode, referenceNode(before) );
3017
+ }
3018
+ }
3019
+ }
3020
+ };
3021
+ var removeVnodes = (vnodes, startIdx, endIdx) => {
3022
+ for (let index$1 = startIdx; index$1 <= endIdx; ++index$1) {
3023
+ const vnode = vnodes[index$1];
3024
+ if (vnode) {
3025
+ const elm = vnode.$elm$;
3026
+ nullifyVNodeRefs(vnode);
3027
+ if (elm) {
3028
+ {
3029
+ checkSlotFallbackVisibility = true;
3030
+ if (elm["s-ol"]) {
3031
+ elm["s-ol"].remove();
3032
+ } else {
3033
+ putBackInOriginalLocation(elm, true);
3034
+ }
3035
+ }
3036
+ elm.remove();
3037
+ }
3038
+ }
3039
+ }
3040
+ };
3041
+ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
3042
+ let oldStartIdx = 0;
3043
+ let newStartIdx = 0;
3044
+ let idxInOld = 0;
3045
+ let i2 = 0;
3046
+ let oldEndIdx = oldCh.length - 1;
3047
+ let oldStartVnode = oldCh[0];
3048
+ let oldEndVnode = oldCh[oldEndIdx];
3049
+ let newEndIdx = newCh.length - 1;
3050
+ let newStartVnode = newCh[0];
3051
+ let newEndVnode = newCh[newEndIdx];
3052
+ let node;
3053
+ let elmToMove;
3054
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
3055
+ if (oldStartVnode == null) {
3056
+ oldStartVnode = oldCh[++oldStartIdx];
3057
+ } else if (oldEndVnode == null) {
3058
+ oldEndVnode = oldCh[--oldEndIdx];
3059
+ } else if (newStartVnode == null) {
3060
+ newStartVnode = newCh[++newStartIdx];
3061
+ } else if (newEndVnode == null) {
3062
+ newEndVnode = newCh[--newEndIdx];
3063
+ } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
3064
+ patch(oldStartVnode, newStartVnode, isInitialRender);
3065
+ oldStartVnode = oldCh[++oldStartIdx];
3066
+ newStartVnode = newCh[++newStartIdx];
3067
+ } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
3068
+ patch(oldEndVnode, newEndVnode, isInitialRender);
3069
+ oldEndVnode = oldCh[--oldEndIdx];
3070
+ newEndVnode = newCh[--newEndIdx];
3071
+ } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
3072
+ if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
3073
+ putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
3074
+ }
3075
+ patch(oldStartVnode, newEndVnode, isInitialRender);
3076
+ insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
3077
+ oldStartVnode = oldCh[++oldStartIdx];
3078
+ newEndVnode = newCh[--newEndIdx];
3079
+ } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
3080
+ if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
3081
+ putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
3082
+ }
3083
+ patch(oldEndVnode, newStartVnode, isInitialRender);
3084
+ insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
3085
+ oldEndVnode = oldCh[--oldEndIdx];
3086
+ newStartVnode = newCh[++newStartIdx];
3087
+ } else {
3088
+ idxInOld = -1;
3089
+ {
3090
+ for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
3091
+ if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
3092
+ idxInOld = i2;
3093
+ break;
3094
+ }
3095
+ }
3096
+ }
3097
+ if (idxInOld >= 0) {
3098
+ elmToMove = oldCh[idxInOld];
3099
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
3100
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
3101
+ } else {
3102
+ patch(elmToMove, newStartVnode, isInitialRender);
3103
+ oldCh[idxInOld] = void 0;
3104
+ node = elmToMove.$elm$;
3105
+ }
3106
+ newStartVnode = newCh[++newStartIdx];
3107
+ } else {
3108
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
3109
+ newStartVnode = newCh[++newStartIdx];
3110
+ }
3111
+ if (node) {
3112
+ {
3113
+ insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
3114
+ }
3115
+ }
3116
+ }
3117
+ }
3118
+ if (oldStartIdx > oldEndIdx) {
3119
+ addVnodes(
3120
+ parentElm,
3121
+ newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
3122
+ newVNode2,
3123
+ newCh,
3124
+ newStartIdx,
3125
+ newEndIdx
3126
+ );
3127
+ } else if (newStartIdx > newEndIdx) {
3128
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
3129
+ }
3130
+ };
3131
+ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
3132
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
3133
+ if (leftVNode.$tag$ === "slot") {
3134
+ if (
3135
+ // The component gets hydrated and no VDOM has been initialized.
3136
+ // Here the comparison can't happen as $name$ property is not set for `leftNode`.
3137
+ "$nodeId$" in leftVNode && isInitialRender && // `leftNode` is not from type HTMLComment which would cause many
3138
+ // hydration comments to be removed
3139
+ leftVNode.$elm$.nodeType !== 8
3140
+ ) {
3141
+ return false;
3142
+ }
3143
+ return leftVNode.$name$ === rightVNode.$name$;
3144
+ }
3145
+ if (!isInitialRender) {
3146
+ return leftVNode.$key$ === rightVNode.$key$;
3147
+ }
3148
+ return true;
3149
+ }
3150
+ return false;
3151
+ };
3152
+ var referenceNode = (node) => {
3153
+ return node && node["s-ol"] || node;
3154
+ };
3155
+ var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
3156
+ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
3157
+ const elm = newVNode2.$elm$ = oldVNode.$elm$;
3158
+ const oldChildren = oldVNode.$children$;
3159
+ const newChildren = newVNode2.$children$;
3160
+ const tag = newVNode2.$tag$;
3161
+ const text = newVNode2.$text$;
3162
+ let defaultHolder;
3163
+ if (text === null) {
3164
+ {
3165
+ isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
3166
+ }
3167
+ {
3168
+ if (tag === "slot" && !useNativeShadowDom) ; else {
3169
+ updateElement(oldVNode, newVNode2, isSvgMode);
3170
+ }
3171
+ }
3172
+ if (oldChildren !== null && newChildren !== null) {
3173
+ updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
3174
+ } else if (newChildren !== null) {
3175
+ if (oldVNode.$text$ !== null) {
3176
+ elm.textContent = "";
3177
+ }
3178
+ addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
3179
+ } else if (
3180
+ // don't do this on initial render as it can cause non-hydrated content to be removed
3181
+ !isInitialRender && index.BUILD.updatable && oldChildren !== null
3182
+ ) {
3183
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
3184
+ }
3185
+ if (isSvgMode && tag === "svg") {
3186
+ isSvgMode = false;
3187
+ }
3188
+ } else if ((defaultHolder = elm["s-cr"])) {
3189
+ defaultHolder.parentNode.textContent = text;
3190
+ } else if (oldVNode.$text$ !== text) {
3191
+ elm.data = text;
3192
+ }
3193
+ };
3194
+ var updateFallbackSlotVisibility = (elm) => {
3195
+ const childNodes = elm.childNodes;
3196
+ for (const childNode of childNodes) {
3197
+ if (childNode.nodeType === 1 /* ElementNode */) {
3198
+ if (childNode["s-sr"]) {
3199
+ const slotName = childNode["s-sn"];
3200
+ childNode.hidden = false;
3201
+ for (const siblingNode of childNodes) {
3202
+ if (siblingNode !== childNode) {
3203
+ if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
3204
+ if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
3205
+ childNode.hidden = true;
3206
+ break;
3207
+ }
3208
+ } else {
3209
+ if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
3210
+ childNode.hidden = true;
3211
+ break;
3212
+ }
3213
+ }
3214
+ }
3215
+ }
3216
+ }
3217
+ updateFallbackSlotVisibility(childNode);
3218
+ }
3219
+ }
3220
+ };
3221
+ var relocateNodes = [];
3222
+ var markSlotContentForRelocation = (elm) => {
3223
+ let node;
3224
+ let hostContentNodes;
3225
+ let j;
3226
+ for (const childNode of elm.childNodes) {
3227
+ if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
3228
+ hostContentNodes = node.parentNode.childNodes;
3229
+ const slotName = childNode["s-sn"];
3230
+ for (j = hostContentNodes.length - 1; j >= 0; j--) {
3231
+ node = hostContentNodes[j];
3232
+ if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!index.BUILD.experimentalSlotFixes )) {
3233
+ if (isNodeLocatedInSlot(node, slotName)) {
3234
+ let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
3235
+ checkSlotFallbackVisibility = true;
3236
+ node["s-sn"] = node["s-sn"] || slotName;
3237
+ if (relocateNodeData) {
3238
+ relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
3239
+ relocateNodeData.$slotRefNode$ = childNode;
3240
+ } else {
3241
+ node["s-sh"] = childNode["s-hn"];
3242
+ relocateNodes.push({
3243
+ $slotRefNode$: childNode,
3244
+ $nodeToRelocate$: node
3245
+ });
3246
+ }
3247
+ if (node["s-sr"]) {
3248
+ relocateNodes.map((relocateNode) => {
3249
+ if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
3250
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
3251
+ if (relocateNodeData && !relocateNode.$slotRefNode$) {
3252
+ relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
3253
+ }
3254
+ }
3255
+ });
3256
+ }
3257
+ } else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
3258
+ relocateNodes.push({
3259
+ $nodeToRelocate$: node
3260
+ });
3261
+ }
3262
+ }
3263
+ }
3264
+ }
3265
+ if (childNode.nodeType === 1 /* ElementNode */) {
3266
+ markSlotContentForRelocation(childNode);
3267
+ }
3268
+ }
3269
+ };
3270
+ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
3271
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
3272
+ if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
3273
+ return true;
3274
+ }
3275
+ if (nodeToRelocate.getAttribute("slot") === slotName) {
3276
+ return true;
3277
+ }
3278
+ return false;
3279
+ }
3280
+ if (nodeToRelocate["s-sn"] === slotName) {
3281
+ return true;
3282
+ }
3283
+ return slotName === "";
3284
+ };
3285
+ var nullifyVNodeRefs = (vNode) => {
3286
+ {
3287
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
3288
+ vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
3289
+ }
3290
+ };
3291
+ var insertBefore = (parent, newNode, reference) => {
3292
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
3293
+ {
3294
+ updateElementScopeIds(newNode, parent);
3295
+ }
3296
+ return inserted;
3297
+ };
3298
+ var findScopeIds = (element) => {
3299
+ const scopeIds = [];
3300
+ if (element) {
3301
+ scopeIds.push(
3302
+ ...element["s-scs"] || [],
3303
+ element["s-si"],
3304
+ element["s-sc"],
3305
+ ...findScopeIds(element.parentElement)
3306
+ );
3307
+ }
3308
+ return scopeIds;
3309
+ };
3310
+ var updateElementScopeIds = (element, parent, iterateChildNodes = false) => {
3311
+ var _a;
3312
+ if (element && parent && element.nodeType === 1 /* ElementNode */) {
3313
+ const scopeIds = new Set(findScopeIds(parent).filter(Boolean));
3314
+ if (scopeIds.size) {
3315
+ (_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = [...scopeIds]);
3316
+ if (element["s-ol"] || iterateChildNodes) {
3317
+ for (const childNode of Array.from(element.childNodes)) {
3318
+ updateElementScopeIds(childNode, element, true);
3319
+ }
3320
+ }
3321
+ }
3322
+ }
3323
+ };
3324
+ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
3325
+ var _a, _b, _c, _d;
3326
+ const hostElm = hostRef.$hostElement$;
3327
+ const cmpMeta = hostRef.$cmpMeta$;
3328
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
3329
+ const rootVnode = isHost(renderFnResults) ? renderFnResults : h$1(null, null, renderFnResults);
3330
+ hostTagName = hostElm.tagName;
3331
+ if (cmpMeta.$attrsToReflect$) {
3332
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
3333
+ cmpMeta.$attrsToReflect$.map(
3334
+ ([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]
3335
+ );
3336
+ }
3337
+ if (isInitialLoad && rootVnode.$attrs$) {
3338
+ for (const key of Object.keys(rootVnode.$attrs$)) {
3339
+ if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
3340
+ rootVnode.$attrs$[key] = hostElm[key];
3341
+ }
3342
+ }
3343
+ }
3344
+ rootVnode.$tag$ = null;
3345
+ rootVnode.$flags$ |= 4 /* isHost */;
3346
+ hostRef.$vnode$ = rootVnode;
3347
+ rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
3348
+ {
3349
+ scopeId = hostElm["s-sc"];
3350
+ }
3351
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
3352
+ {
3353
+ contentRef = hostElm["s-cr"];
3354
+ checkSlotFallbackVisibility = false;
3355
+ }
3356
+ patch(oldVNode, rootVnode, isInitialLoad);
3357
+ {
3358
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
3359
+ if (checkSlotRelocate) {
3360
+ markSlotContentForRelocation(rootVnode.$elm$);
3361
+ for (const relocateData of relocateNodes) {
3362
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
3363
+ if (!nodeToRelocate["s-ol"]) {
3364
+ const orgLocationNode = doc.createTextNode("");
3365
+ orgLocationNode["s-nr"] = nodeToRelocate;
3366
+ insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
3367
+ }
3368
+ }
3369
+ for (const relocateData of relocateNodes) {
3370
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
3371
+ const slotRefNode = relocateData.$slotRefNode$;
3372
+ if (slotRefNode) {
3373
+ const parentNodeRef = slotRefNode.parentNode;
3374
+ let insertBeforeNode = slotRefNode.nextSibling;
3375
+ {
3376
+ let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
3377
+ while (orgLocationNode) {
3378
+ let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
3379
+ if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
3380
+ refNode = refNode.nextSibling;
3381
+ while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
3382
+ refNode = refNode == null ? void 0 : refNode.nextSibling;
3383
+ }
3384
+ if (!refNode || !refNode["s-nr"]) {
3385
+ insertBeforeNode = refNode;
3386
+ break;
3387
+ }
3388
+ }
3389
+ orgLocationNode = orgLocationNode.previousSibling;
3390
+ }
3391
+ }
3392
+ if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
3393
+ if (nodeToRelocate !== insertBeforeNode) {
3394
+ if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
3395
+ nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
3396
+ }
3397
+ insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
3398
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
3399
+ nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
3400
+ }
3401
+ }
3402
+ }
3403
+ nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](nodeToRelocate);
3404
+ } else {
3405
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
3406
+ if (isInitialLoad) {
3407
+ nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
3408
+ }
3409
+ nodeToRelocate.hidden = true;
3410
+ }
3411
+ }
3412
+ }
3413
+ }
3414
+ if (checkSlotFallbackVisibility) {
3415
+ updateFallbackSlotVisibility(rootVnode.$elm$);
3416
+ }
3417
+ plt.$flags$ &= ~1 /* isTmpDisconnected */;
3418
+ relocateNodes.length = 0;
3419
+ }
3420
+ contentRef = void 0;
3421
+ };
3422
+
3423
+ // src/runtime/update-component.ts
3424
+ var attachToAncestor = (hostRef, ancestorComponent) => {
3425
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
3426
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
3427
+ }
3428
+ };
3429
+ var scheduleUpdate = (hostRef, isInitialLoad) => {
3430
+ {
3431
+ hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
3432
+ }
3433
+ if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
3434
+ hostRef.$flags$ |= 512 /* needsRerender */;
3435
+ return;
3436
+ }
3437
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
3438
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
3439
+ return writeTask(dispatch) ;
3440
+ };
3441
+ var dispatchHooks = (hostRef, isInitialLoad) => {
3442
+ const elm = hostRef.$hostElement$;
3443
+ const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
3444
+ const instance = hostRef.$lazyInstance$ ;
3445
+ if (!instance) {
3446
+ throw new Error(
3447
+ `Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
3448
+ );
3449
+ }
3450
+ let maybePromise;
3451
+ if (isInitialLoad) {
3452
+ {
3453
+ hostRef.$flags$ |= 256 /* isListenReady */;
3454
+ if (hostRef.$queuedListeners$) {
3455
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
3456
+ hostRef.$queuedListeners$ = void 0;
3457
+ }
3458
+ }
3459
+ {
3460
+ maybePromise = safeCall(instance, "componentWillLoad");
3461
+ }
3462
+ } else {
3463
+ {
3464
+ maybePromise = safeCall(instance, "componentWillUpdate");
3465
+ }
3466
+ }
3467
+ {
3468
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
3469
+ }
3470
+ endSchedule();
3471
+ return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
3472
+ };
3473
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
3474
+ console.error(err2);
3475
+ fn();
3476
+ }) : fn();
3477
+ var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
3478
+ var updateComponent = async (hostRef, instance, isInitialLoad) => {
3479
+ var _a;
3480
+ const elm = hostRef.$hostElement$;
3481
+ const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
3482
+ const rc = elm["s-rc"];
3483
+ if (isInitialLoad) {
3484
+ attachStyles(hostRef);
3485
+ }
3486
+ const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
3487
+ {
3488
+ callRender(hostRef, instance, elm, isInitialLoad);
3489
+ }
3490
+ if (rc) {
3491
+ rc.map((cb) => cb());
3492
+ elm["s-rc"] = void 0;
3493
+ }
3494
+ endRender();
3495
+ endUpdate();
3496
+ {
3497
+ const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
3498
+ const postUpdate = () => postUpdateComponent(hostRef);
3499
+ if (childrenPromises.length === 0) {
3500
+ postUpdate();
3501
+ } else {
3502
+ Promise.all(childrenPromises).then(postUpdate);
3503
+ hostRef.$flags$ |= 4 /* isWaitingForChildren */;
3504
+ childrenPromises.length = 0;
3505
+ }
3506
+ }
3507
+ };
3508
+ var callRender = (hostRef, instance, elm, isInitialLoad) => {
3509
+ try {
3510
+ instance = instance.render() ;
3511
+ {
3512
+ hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
3513
+ }
3514
+ {
3515
+ hostRef.$flags$ |= 2 /* hasRendered */;
3516
+ }
3517
+ {
3518
+ {
3519
+ {
3520
+ renderVdom(hostRef, instance, isInitialLoad);
3521
+ }
3522
+ }
3523
+ }
3524
+ } catch (e) {
3525
+ consoleError(e, hostRef.$hostElement$);
3526
+ }
3527
+ return null;
3528
+ };
3529
+ var postUpdateComponent = (hostRef) => {
3530
+ const tagName = hostRef.$cmpMeta$.$tagName$;
3531
+ const elm = hostRef.$hostElement$;
3532
+ const endPostUpdate = createTime("postUpdate", tagName);
3533
+ const instance = hostRef.$lazyInstance$ ;
3534
+ const ancestorComponent = hostRef.$ancestorComponent$;
3535
+ {
3536
+ safeCall(instance, "componentDidRender");
3537
+ }
3538
+ if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
3539
+ hostRef.$flags$ |= 64 /* hasLoadedComponent */;
3540
+ {
3541
+ addHydratedFlag(elm);
3542
+ }
3543
+ {
3544
+ safeCall(instance, "componentDidLoad");
3545
+ }
3546
+ endPostUpdate();
3547
+ {
3548
+ hostRef.$onReadyResolve$(elm);
3549
+ if (!ancestorComponent) {
3550
+ appDidLoad();
3551
+ }
3552
+ }
3553
+ } else {
3554
+ {
3555
+ safeCall(instance, "componentDidUpdate");
3556
+ }
3557
+ endPostUpdate();
3558
+ }
3559
+ {
3560
+ hostRef.$onInstanceResolve$(elm);
3561
+ }
3562
+ {
3563
+ if (hostRef.$onRenderResolve$) {
3564
+ hostRef.$onRenderResolve$();
3565
+ hostRef.$onRenderResolve$ = void 0;
3566
+ }
3567
+ if (hostRef.$flags$ & 512 /* needsRerender */) {
3568
+ nextTick(() => scheduleUpdate(hostRef, false));
3569
+ }
3570
+ hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
3571
+ }
3572
+ };
3573
+ var forceUpdate = (ref) => {
3574
+ {
3575
+ const hostRef = getHostRef(ref);
3576
+ const isConnected = hostRef.$hostElement$.isConnected;
3577
+ if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
3578
+ scheduleUpdate(hostRef, false);
3579
+ }
3580
+ return isConnected;
3581
+ }
3582
+ };
3583
+ var appDidLoad = (who) => {
3584
+ {
3585
+ addHydratedFlag(doc.documentElement);
3586
+ }
3587
+ nextTick(() => emitEvent(win, "appload", { detail: { namespace: index.NAMESPACE } }));
3588
+ };
3589
+ var safeCall = (instance, method, arg) => {
3590
+ if (instance && instance[method]) {
3591
+ try {
3592
+ return instance[method](arg);
3593
+ } catch (e) {
3594
+ consoleError(e);
3595
+ }
3596
+ }
3597
+ return void 0;
3598
+ };
3599
+ var addHydratedFlag = (elm) => {
3600
+ var _a;
3601
+ return elm.classList.add((_a = index.BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
3602
+ };
3603
+
3604
+ // src/runtime/set-value.ts
3605
+ var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
3606
+ var setValue = (ref, propName, newVal, cmpMeta) => {
3607
+ const hostRef = getHostRef(ref);
3608
+ if (!hostRef) {
3609
+ throw new Error(
3610
+ `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
3611
+ );
3612
+ }
3613
+ const elm = hostRef.$hostElement$ ;
3614
+ const oldVal = hostRef.$instanceValues$.get(propName);
3615
+ const flags = hostRef.$flags$;
3616
+ const instance = hostRef.$lazyInstance$ ;
3617
+ newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
3618
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
3619
+ const didValueChange = newVal !== oldVal && !areBothNaN;
3620
+ if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
3621
+ hostRef.$instanceValues$.set(propName, newVal);
3622
+ if (instance) {
3623
+ if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
3624
+ const watchMethods = cmpMeta.$watchers$[propName];
3625
+ if (watchMethods) {
3626
+ watchMethods.map((watchMethodName) => {
3627
+ try {
3628
+ instance[watchMethodName](newVal, oldVal, propName);
3629
+ } catch (e) {
3630
+ consoleError(e, elm);
3631
+ }
3632
+ });
3633
+ }
3634
+ }
3635
+ if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
3636
+ if (instance.componentShouldUpdate) {
3637
+ if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
3638
+ return;
3639
+ }
3640
+ }
3641
+ scheduleUpdate(hostRef, false);
3642
+ }
3643
+ }
3644
+ }
3645
+ };
3646
+
3647
+ // src/runtime/proxy-component.ts
3648
+ var proxyComponent = (Cstr, cmpMeta, flags) => {
3649
+ var _a, _b;
3650
+ const prototype = Cstr.prototype;
3651
+ if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
3652
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
3653
+ cmpMeta.$watchers$ = Cstr.watchers;
3654
+ }
3655
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
3656
+ members.map(([memberName, [memberFlags]]) => {
3657
+ if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
3658
+ Object.defineProperty(prototype, memberName, {
3659
+ get() {
3660
+ return getValue(this, memberName);
3661
+ },
3662
+ set(newValue) {
3663
+ setValue(this, memberName, newValue, cmpMeta);
3664
+ },
3665
+ configurable: true,
3666
+ enumerable: true
3667
+ });
3668
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
3669
+ Object.defineProperty(prototype, memberName, {
3670
+ value(...args) {
3671
+ var _a2;
3672
+ const ref = getHostRef(this);
3673
+ return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
3674
+ var _a3;
3675
+ return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
3676
+ });
3677
+ }
3678
+ });
3679
+ }
3680
+ });
3681
+ if ((flags & 1 /* isElementConstructor */)) {
3682
+ const attrNameToPropName = /* @__PURE__ */ new Map();
3683
+ prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
3684
+ plt.jmp(() => {
3685
+ var _a2;
3686
+ const propName = attrNameToPropName.get(attrName);
3687
+ if (this.hasOwnProperty(propName)) {
3688
+ newValue = this[propName];
3689
+ delete this[propName];
3690
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
3691
+ this[propName] == newValue) {
3692
+ return;
3693
+ } else if (propName == null) {
3694
+ const hostRef = getHostRef(this);
3695
+ const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
3696
+ if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
3697
+ const instance = hostRef.$lazyInstance$ ;
3698
+ const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
3699
+ entry == null ? void 0 : entry.forEach((callbackName) => {
3700
+ if (instance[callbackName] != null) {
3701
+ instance[callbackName].call(instance, newValue, oldValue, attrName);
3702
+ }
3703
+ });
3704
+ }
3705
+ return;
3706
+ }
3707
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
3708
+ });
3709
+ };
3710
+ Cstr.observedAttributes = Array.from(
3711
+ /* @__PURE__ */ new Set([
3712
+ ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
3713
+ ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
3714
+ var _a2;
3715
+ const attrName = m[1] || propName;
3716
+ attrNameToPropName.set(attrName, propName);
3717
+ if (m[0] & 512 /* ReflectAttr */) {
3718
+ (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
3719
+ }
3720
+ return attrName;
3721
+ })
3722
+ ])
3723
+ );
3724
+ }
3725
+ }
3726
+ return Cstr;
3727
+ };
3728
+
3729
+ // src/runtime/initialize-component.ts
3730
+ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
3731
+ let Cstr;
3732
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
3733
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
3734
+ const bundleId = cmpMeta.$lazyBundleId$;
3735
+ if (bundleId) {
3736
+ const CstrImport = loadModule(cmpMeta);
3737
+ if (CstrImport && "then" in CstrImport) {
3738
+ const endLoad = uniqueTime();
3739
+ Cstr = await CstrImport;
3740
+ endLoad();
3741
+ } else {
3742
+ Cstr = CstrImport;
3743
+ }
3744
+ if (!Cstr) {
3745
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
3746
+ }
3747
+ if (!Cstr.isProxied) {
3748
+ {
3749
+ cmpMeta.$watchers$ = Cstr.watchers;
3750
+ }
3751
+ proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
3752
+ Cstr.isProxied = true;
3753
+ }
3754
+ const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
3755
+ {
3756
+ hostRef.$flags$ |= 8 /* isConstructingInstance */;
3757
+ }
3758
+ try {
3759
+ new Cstr(hostRef);
3760
+ } catch (e) {
3761
+ consoleError(e);
3762
+ }
3763
+ {
3764
+ hostRef.$flags$ &= ~8 /* isConstructingInstance */;
3765
+ }
3766
+ {
3767
+ hostRef.$flags$ |= 128 /* isWatchReady */;
3768
+ }
3769
+ endNewInstance();
3770
+ fireConnectedCallback(hostRef.$lazyInstance$);
3771
+ } else {
3772
+ Cstr = elm.constructor;
3773
+ const cmpTag = elm.localName;
3774
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
3775
+ }
3776
+ if (Cstr && Cstr.style) {
3777
+ let style;
3778
+ if (typeof Cstr.style === "string") {
3779
+ style = Cstr.style;
3780
+ }
3781
+ const scopeId2 = getScopeId(cmpMeta);
3782
+ if (!styles.has(scopeId2)) {
3783
+ const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
3784
+ registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
3785
+ endRegisterStyles();
3786
+ }
3787
+ }
3788
+ }
3789
+ const ancestorComponent = hostRef.$ancestorComponent$;
3790
+ const schedule = () => scheduleUpdate(hostRef, true);
3791
+ if (ancestorComponent && ancestorComponent["s-rc"]) {
3792
+ ancestorComponent["s-rc"].push(schedule);
3793
+ } else {
3794
+ schedule();
3795
+ }
3796
+ };
3797
+ var fireConnectedCallback = (instance) => {
3798
+ {
3799
+ safeCall(instance, "connectedCallback");
3800
+ }
3801
+ };
3802
+
3803
+ // src/runtime/connected-callback.ts
3804
+ var connectedCallback = (elm) => {
3805
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
3806
+ const hostRef = getHostRef(elm);
3807
+ const cmpMeta = hostRef.$cmpMeta$;
3808
+ const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
3809
+ if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
3810
+ hostRef.$flags$ |= 1 /* hasConnected */;
3811
+ {
3812
+ if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
3813
+ cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
3814
+ setContentReference(elm);
3815
+ }
3816
+ }
3817
+ {
3818
+ let ancestorComponent = elm;
3819
+ while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
3820
+ if (ancestorComponent["s-p"]) {
3821
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
3822
+ break;
3823
+ }
3824
+ }
3825
+ }
3826
+ if (cmpMeta.$members$) {
3827
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
3828
+ if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
3829
+ const value = elm[memberName];
3830
+ delete elm[memberName];
3831
+ elm[memberName] = value;
3832
+ }
3833
+ });
3834
+ }
3835
+ {
3836
+ initializeComponent(elm, hostRef, cmpMeta);
3837
+ }
3838
+ } else {
3839
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
3840
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
3841
+ fireConnectedCallback(hostRef.$lazyInstance$);
3842
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
3843
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
3844
+ }
3845
+ }
3846
+ endConnected();
3847
+ }
3848
+ };
3849
+ var setContentReference = (elm) => {
3850
+ const contentRefElm = elm["s-cr"] = doc.createComment(
3851
+ ""
3852
+ );
3853
+ contentRefElm["s-cn"] = true;
3854
+ insertBefore(elm, contentRefElm, elm.firstChild);
3855
+ };
3856
+ var disconnectInstance = (instance) => {
3857
+ {
3858
+ safeCall(instance, "disconnectedCallback");
3859
+ }
3860
+ };
3861
+ var disconnectedCallback = async (elm) => {
3862
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
3863
+ const hostRef = getHostRef(elm);
3864
+ {
3865
+ if (hostRef.$rmListeners$) {
3866
+ hostRef.$rmListeners$.map((rmListener) => rmListener());
3867
+ hostRef.$rmListeners$ = void 0;
3868
+ }
3869
+ }
3870
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
3871
+ disconnectInstance(hostRef.$lazyInstance$);
3872
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
3873
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
3874
+ }
3875
+ }
3876
+ };
3877
+ var proxyCustomElement = (Cstr, compactMeta) => {
3878
+ const cmpMeta = {
3879
+ $flags$: compactMeta[0],
3880
+ $tagName$: compactMeta[1]
3881
+ };
3882
+ {
3883
+ cmpMeta.$members$ = compactMeta[2];
3884
+ }
3885
+ {
3886
+ cmpMeta.$listeners$ = compactMeta[3];
3887
+ }
3888
+ {
3889
+ cmpMeta.$watchers$ = Cstr.$watchers$;
3890
+ }
3891
+ {
3892
+ cmpMeta.$attrsToReflect$ = [];
3893
+ }
3894
+ const originalConnectedCallback = Cstr.prototype.connectedCallback;
3895
+ const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;
3896
+ Object.assign(Cstr.prototype, {
3897
+ __registerHost() {
3898
+ registerHost(this, cmpMeta);
3899
+ },
3900
+ connectedCallback() {
3901
+ const hostRef = getHostRef(this);
3902
+ addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
3903
+ connectedCallback(this);
3904
+ if (originalConnectedCallback) {
3905
+ originalConnectedCallback.call(this);
3906
+ }
3907
+ },
3908
+ disconnectedCallback() {
3909
+ disconnectedCallback(this);
3910
+ if (originalDisconnectedCallback) {
3911
+ originalDisconnectedCallback.call(this);
3912
+ }
3913
+ },
3914
+ __attachShadow() {
3915
+ {
3916
+ if (!this.shadowRoot) {
3917
+ {
3918
+ this.attachShadow({
3919
+ mode: "open",
3920
+ delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
3921
+ });
3922
+ }
3923
+ } else {
3924
+ if (this.shadowRoot.mode !== "open") {
3925
+ throw new Error(
3926
+ `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`
3927
+ );
3928
+ }
3929
+ }
3930
+ }
3931
+ }
3932
+ });
3933
+ Cstr.is = cmpMeta.$tagName$;
3934
+ return proxyComponent(Cstr, cmpMeta, 1 /* isElementConstructor */ | 2 /* proxyState */);
3935
+ };
3936
+
3937
+ // src/runtime/fragment.ts
3938
+ var Fragment = (_, children) => children;
3939
+ var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
3940
+ if (listeners) {
3941
+ listeners.map(([flags, name, method]) => {
3942
+ const target = getHostListenerTarget(elm, flags) ;
3943
+ const handler = hostListenerProxy(hostRef, method);
3944
+ const opts = hostListenerOpts(flags);
3945
+ plt.ael(target, name, handler, opts);
3946
+ (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
3947
+ });
3948
+ }
3949
+ };
3950
+ var hostListenerProxy = (hostRef, methodName) => (ev) => {
3951
+ var _a;
3952
+ try {
3953
+ {
3954
+ if (hostRef.$flags$ & 256 /* isListenReady */) {
3955
+ (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
3956
+ } else {
3957
+ (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
3958
+ }
3959
+ }
3960
+ } catch (e) {
3961
+ consoleError(e);
3962
+ }
3963
+ };
3964
+ var getHostListenerTarget = (elm, flags) => {
3965
+ if (flags & 4 /* TargetDocument */) return doc;
3966
+ if (flags & 8 /* TargetWindow */) return win;
3967
+ if (flags & 16 /* TargetBody */) return doc.body;
3968
+ return elm;
3969
+ };
3970
+ var hostListenerOpts = (flags) => supportsListenerOptions ? {
3971
+ passive: (flags & 1 /* Passive */) !== 0,
3972
+ capture: (flags & 2 /* Capture */) !== 0
3973
+ } : (flags & 2 /* Capture */) !== 0;
3974
+
3975
+ /*!
3976
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3977
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3978
+ * v2.13.2
3979
+ */
3980
+
3981
+ /**
3982
+ * This module allows custom configuration for components.
3983
+ */
3984
+ const existingConfig = globalThis["calciteConfig"];
3985
+ const focusTrapStack = existingConfig?.focusTrapStack || [];
3986
+ // the following placeholders are replaced by the build
3987
+ const version = "2.13.2";
3988
+ const buildDate = "2024-10-24";
3989
+ const revision = "e38e2977d";
3990
+ /**
3991
+ * Stamp the version onto the global config.
3992
+ */
3993
+ function stampVersion() {
3994
+ if (existingConfig && existingConfig.version) {
3995
+ return;
3996
+ }
3997
+ console.info(`Using Calcite Components ${version} [Date: ${buildDate}, Revision: ${revision}]`);
3998
+ const target = existingConfig || globalThis["calciteConfig"] || {};
3999
+ Object.defineProperty(target, "version", {
4000
+ value: version,
4001
+ writable: false,
4002
+ });
4003
+ globalThis["calciteConfig"] = target;
4004
+ }
4005
+
4006
+ /*!
4007
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4008
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4009
+ * v2.13.2
4010
+ */
4011
+
4012
+ const isBrowser = () => typeof navigator !== "undefined" &&
4013
+ typeof window !== "undefined" &&
4014
+ typeof location !== "undefined" &&
4015
+ typeof document !== "undefined" &&
4016
+ window.location === location &&
4017
+ window.document === document;
4018
+
4019
+ /*!
4020
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4021
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4022
+ * v2.13.2
4023
+ */
4024
+
4025
+ /**
4026
+ * Emits when the mode is dynamically toggled between light and dark on <body> or in OS preferences.
4027
+ */
4028
+ function initModeChangeEvent() {
4029
+ const { classList } = document.body;
4030
+ const prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
4031
+ const getMode = () => classList.contains(darkMode) || (classList.contains(autoMode) && prefersDark) ? "dark" : "light";
4032
+ const emitModeChange = (mode) => document.body.dispatchEvent(new CustomEvent("calciteModeChange", { bubbles: true, detail: { mode } }));
4033
+ const modeChangeHandler = (newMode) => {
4034
+ currentMode !== newMode && emitModeChange(newMode);
4035
+ currentMode = newMode;
4036
+ };
4037
+ let currentMode = getMode();
4038
+ // emits event on page load
4039
+ emitModeChange(currentMode);
4040
+ // emits event when changing OS mode preferences
4041
+ window
4042
+ .matchMedia("(prefers-color-scheme: dark)")
4043
+ .addEventListener("change", (event) => modeChangeHandler(event.matches ? "dark" : "light"));
4044
+ // emits event when toggling between mode classes on <body>
4045
+ new MutationObserver(() => modeChangeHandler(getMode())).observe(document.body, {
4046
+ attributes: true,
4047
+ attributeFilter: ["class"],
4048
+ });
4049
+ }
4050
+
4051
+ /**
4052
+ * This file is imported in Stencil's `globalScript` config option.
4053
+ *
4054
+ * @see {@link https://stenciljs.com/docs/config#globalscript}
4055
+ */
4056
+ function appGlobalScript () {
4057
+ if (isBrowser()) {
4058
+ if (document.readyState === "interactive") {
4059
+ initModeChangeEvent();
4060
+ }
4061
+ else {
4062
+ document.addEventListener("DOMContentLoaded", () => initModeChangeEvent(), { once: true });
4063
+ }
4064
+ }
4065
+ stampVersion();
4066
+ }
4067
+
4068
+ const globalScripts = appGlobalScript;
4069
+
4070
+ globalScripts();
4071
+
4072
+ /*
4073
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4074
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4075
+ */
4076
+ let c$2;function n$3(){try{getAssetPath(".");}catch{setAssetPath(locale._(locale.n$1(c$2)));}}function r$2(t){const o=[];for(const s of Object.keys(t))customElements.get(`calcite-${s}`)||o.push(t[s]?.());return o.length>0?Promise.all(o):null}c$2="components/assets";
4077
+
4078
+ /*
4079
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4080
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4081
+ */
4082
+ const t$3=Symbol("widget"),e$5=Symbol("widget-test-data");
4083
+
4084
+ /*
4085
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4086
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4087
+ */
4088
+ const o$1=[],n$2={},i$2=new WeakMap;function d$1(e,t){let r=t.children;if(r?.length)for(let o=0;o<r.length;++o)r[o]=d$1(e,r[o]);else r=o$1;const i=t.vnodeSelector;if(f(i)){const o=t.properties||n$2,d=o.key||i,f={key:d,afterCreate:c$1,afterUpdate:s$3,afterRemoved:a,parentWidget:e,widgetConstructor:i,widgetProperties:{...o,key:d,children:r}};return {vnodeSelector:i.vnodeSelector,properties:f,children:void 0,text:void 0,domNode:null}}return t}function c$1(r,o,n,{parentWidget:d,widgetConstructor:c,widgetProperties:s}){const f=new c(s);f.container=r,i$2.set(r,f),f.afterCreate?.(f,r),d.addHandles(locale.e((()=>a(r)))),queueMicrotask((()=>{f[e$5].projector.renderNow();}));}function s$3(e,t,r,{widgetProperties:o}){const n=i$2.get(e);n&&(n.set(o),n.afterUpdate?.(n,e));}function a(e){const t=i$2.get(e);t&&(t.afterRemoved?.(t,e),t.destroy(),i$2.delete(e));}function f(e){return "function"==typeof e&&e[t$3]}
4089
+
4090
+ /*
4091
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4092
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4093
+ */
4094
+ const e$4=new Set;function n$1(n){e$4.add(n),n.finally((()=>e$4.delete(n)));}
4095
+
4096
+ /*
4097
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4098
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4099
+ */
4100
+ var $;const U="esri.widgets.Widget";let z=0;function W(e,t){const r=Object.prototype.hasOwnProperty;for(const s in t)r.call(t,s)&&r.call(e,s)&&(null!=e[s]&&null!=t[s]&&"object"==typeof e[s]&&"object"==typeof t[s]?W(e[s],t[s]):e[s]=t[s]);return e}const x=s$4({postProcessProjectionOptions(e){const t=e.eventHandlerInterceptor,r=/capture$/i;e.eventHandlerInterceptor=(e,s,o,i)=>{const n=t?.(e,s,o,i),a=r.test(e);if(!((e=e.replace(r,"")).toLowerCase()in o)||a){const t=e[2].toLowerCase()+e.slice(3),r=e=>n?.call(o,e);o.addEventListener(t,r,a);const s=()=>o.removeEventListener(t,r,a),d=i.afterRemoved;i.afterRemoved=e=>{d?.(e),s();};}return n};},handleInterceptedEvent(e,t,r,s){const{eventPhase:o,type:i}=s,n=o===Event.CAPTURING_PHASE;let a=`on${i}${n?"capture":""}`;const d=t.properties;(d&&a in d||(a=`on${i[0].toUpperCase()}${i.slice(1)}${n?"Capture":""}`,d&&a in d))&&(t$5(),e.scheduleRender(),d[a].call(d.bind||r,s));}});let A=!1,O=class extends(n$a(o$6.EventedAccessor)){constructor(e,t){super(e,t),this._attached=!1,this._projector=x,this._readyForTrueRender=!1,this.key=this,this.autoRenderingEnabled=!0,this._loadLocale=locale.k((async()=>{if(this._messageBundleProps?.length){const e=await Promise.allSettled(this._messageBundleProps.map((async({bundlePath:e,propertyName:t})=>{if(this.destroyed)return;let r=await locale.h(e);this.uiStrings&&Object.keys(this.uiStrings)&&(r=W(locale.a$2(r),this.uiStrings)),this[t]=r;})));if(this.destroyed)return;for(const t of e)"rejected"===t.status&&locale.n.getLogger(this).error("widget-intl:locale-error",this.declaredClass,t.reason);}await this.loadLocale();})),n$3();const r="esri-widget-uid-"+n$8(),s=this.render.bind(this);this._trackingTarget=new locale.s$1((()=>{this.autoRenderingEnabled&&this.scheduleRender();}));const o=()=>({vnodeSelector:"div",properties:{key:`${r}-hidden`,class:"",styles:{display:"none"}},domNode:null,children:void 0,text:void 0}),i=()=>{if(!this._readyForTrueRender||this.destroyed)return null;const e=s()??o(),t=e.properties??={};if(t.key??=r,f(e.vnodeSelector)){if(!this.visible)return o()}else this.visible?t.styles||(t.styles={}):(t.class="",t.styles={display:"none"}),t.styles.display??="";let i=0;return e.children?.forEach((e=>{f(e.vnodeSelector)||(e.properties??={},e.properties.key??=`${this.id}--${i++}`);})),d$1(this,e)};this.render=()=>{if(A)return i();let e=e$8(this)??null;if(e)return e;this._trackingTarget.clear(),A=!0;try{e=locale.f(this._trackingTarget,i);}catch(t){throw locale.n.getLogger(this).error(t),t}finally{A=!1;}return e&&c$4(this,e),e};const d=this.beforeFirstRender();d?this._resourcesFetch=d.then((()=>{this._readyForTrueRender=!0,this._postInitialize();})):(this._resourcesFetch=Promise.resolve().then((()=>{this._postInitialize();})),this._readyForTrueRender=!0),this.addResolvingPromise(this._resourcesFetch),n$1(this._resourcesFetch);}normalizeCtorArgs(e,t){const r={...e};return t&&(r.container=t),r}postInitialize(){}beforeFirstRender(){const e=this.loadDependencies();return this._messageBundleProps?.length||e?Promise.all([e,this._loadLocale()]).then((()=>{})).catch(locale.f$1):null}loadDependencies(){return null}loadLocale(){return null}destroy(){this.destroyed||(locale.u$1(this._trackingTarget),locale.u$1(this.viewModel),this._detach(this.container),this._set("container",null),this._emitter.clear(),this.render=()=>null,this._projector=null,o$4(this));}set container(e){this._get("container")||this._set("container",e);}castContainer(e){return n$b(e)}get domNode(){return this.container}set domNode(e){this.container=e;}get icon(){return null}set icon(e){this._overrideIfSome("icon",e);}get id(){return this._get("id")||this.container?.id||Date.now().toString(16)+"-widget-"+z++}set id(e){e&&this._set("id",e);}get label(){return this.declaredClass.split(".").pop()}set label(e){this._overrideIfSome("label",e);}get renderable(){return this._resourcesFetch}get visible(){return this._get("visible")}set visible(e){this._set("visible",e);}get[($=t$3,e$5)](){return {projector:this._projector}}render(){throw new Error("not implemented")}scheduleRender(){this.destroyed||(o$4(this),this._projector.scheduleRender());}own(e){locale.t$3(locale.n.getLogger(this),"`Widget.own()` is deprecated in favor of 'Widget.addHandles()'",{replacement:"Widget.addHandles()",version:"4.28"}),this.addHandles(e);}classes(...e){return l$1.apply(this,e)}renderNow(){o$4(this),this._projector.renderNow();}_postInitialize(){if(this.destroyed)return;this.scheduleRender(),this._delegatedEventNames?.length&&this.addHandles(d$6((()=>this.viewModel),((e,t)=>{t&&this.removeHandles("delegated-events"),e&&locale.n$2(e)&&this.addHandles(this._delegatedEventNames.map((t=>locale.o$1(e,t,(e=>{this.emit(t,e);})))),"delegated-events");}),A$2)),this.postInitialize();const e=async()=>{await this._loadLocale().catch(locale.f$1),this.scheduleRender();};this.addHandles([locale.g(e),d$6((()=>this.uiStrings),e),p$4((()=>this.container),(e=>{this.destroyed||this._attach(e);}),{initial:!0,once:!0})]);}_attach(e){e&&(this._projector.merge(e,this.render),this._attached=!0);}_detach(e){this._attached&&(this._projector.detach(this.render),this._attached=!1),e?.parentNode?.removeChild(e);}};O[$]=!0,O.vnodeSelector="div",locale.r$1([locale.m()],O.prototype,"_readyForTrueRender",void 0),locale.r$1([locale.m({value:null})],O.prototype,"container",null),locale.r$1([s$6("container")],O.prototype,"castContainer",null),locale.r$1([locale.m()],O.prototype,"icon",null),locale.r$1([locale.m()],O.prototype,"id",null),locale.r$1([locale.m()],O.prototype,"label",null),locale.r$1([locale.m()],O.prototype,"renderable",null),locale.r$1([locale.m()],O.prototype,"uiStrings",void 0),locale.r$1([locale.m()],O.prototype,"viewModel",void 0),locale.r$1([locale.m({value:!0})],O.prototype,"visible",null),locale.r$1([locale.m()],O.prototype,"key",void 0),locale.r$1([locale.m()],O.prototype,"children",void 0),locale.r$1([locale.m()],O.prototype,"afterCreate",void 0),locale.r$1([locale.m()],O.prototype,"afterUpdate",void 0),locale.r$1([locale.m()],O.prototype,"afterRemoved",void 0),O=locale.r$1([locale.a(U)],O);const B=O;
4101
+
4102
+ /*
4103
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4104
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4105
+ */
4106
+ function e$3(e){return (s,r)=>{s.hasOwnProperty("_messageBundleProps")||(s._messageBundleProps=s._messageBundleProps?s._messageBundleProps.slice():[]);s._messageBundleProps.push({bundlePath:e,propertyName:r});}}
4107
+
4108
+ /*
4109
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4110
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4111
+ */
4112
+ var e$2=function(r){return {vnodeSelector:"",properties:void 0,children:void 0,text:r.toString(),domNode:null}},o=function(r,t){for(var n=0,i=r.length;n<i;n++){var d=r[n];Array.isArray(d)?o(d,t):null!=d&&!1!==d&&(d.hasOwnProperty("vnodeSelector")||(d=e$2(d)),t.push(d));}},t$2=function(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];if(1===t.length&&"string"==typeof t[0])return {vnodeSelector:r,properties:e||void 0,children:void 0,text:t[0],domNode:null};var i=[];return o(t,i),{vnodeSelector:r,properties:e||void 0,children:i,text:void 0,domNode:null}};function n(e,o,...n){return "function"!=typeof e||f(e)?t$2(e,o,...n):e(o,...n)}
4113
+
4114
+ /*
4115
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4116
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4117
+ */
4118
+ const t$1="calcite-mode-";function e$1(){return getComputedStyle(document.body).getPropertyValue("--esri-calcite-mode-name").replaceAll(/\s|'|"/g,"")}function r$1(){return e$1().startsWith("dark")}function c(){return `${t$1}${r$1()?"dark":"light"}`}
4119
+
4120
+ /*
4121
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4122
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4123
+ */
4124
+ const p$1="esri-identity-modal",u={base:p$1,info:`${p$1}__info`,notice:`${p$1}__notice`},d="ArcGIS Online";let m=class extends B{constructor(t,e){super(t,e),this.container=document.createElement("div"),this.error=null,this.oAuthPrompt=!1,this.open=!1,this.signingIn=!1,this.server=null,this.resource=null,this._usernameInputNode=null,this._passwordInputNode=null,document.body.appendChild(this.container);}loadDependencies(){return r$2({button:()=>Promise.resolve().then(function () { return require('./calcite-button-ac4b979a.js'); }),dialog:()=>Promise.resolve().then(function () { return require('./calcite-dialog-97f38598.js'); }),input:()=>Promise.resolve().then(function () { return require('./calcite-input-0ecf3d60.js'); }),label:()=>Promise.resolve().then(function () { return require('./calcite-label-8ca1fbce.js'); }),notice:()=>Promise.resolve().then(function () { return require('./calcite-notice-2e248d8d.js'); })})}get title(){return this.commonMessages?.auth.signIn}render(){const{open:t,title:e,messages:s,signingIn:o,oAuthPrompt:i,server:n$1,resource:r,error:p}=this,{info:m,oAuthInfo:h,lblItem:g,invalidUser:b,noAuthService:f,lblUser:v,lblPwd:_,lblCancel:y,lblSigning:I,lblOk:j}=s;return n("div",{class:this.classes(u.base,c())},n("form",{bind:this,onsubmit:this._submit},n("calcite-dialog",{bind:this,heading:e,modal:!0,open:t,outsideCloseDisabled:!0,scale:"s",widthScale:"s",onCalciteDialogClose:this._cancel,onCalciteDialogOpen:this._focusUsernameInput},n("div",{class:u.info},s$8(i?h:m,{server:n$1&&/\.arcgis\.com/i.test(n$1)?d:n$1,resource:`(${r||g})`})),p?n("calcite-notice",{class:u.notice,icon:"exclamation-mark-triangle",kind:"danger",open:!0},n("div",{slot:"message"},p.details?.httpStatus?b:f)):null,i?null:[n("calcite-label",null,v,n("calcite-input",{afterCreate:t=>this._usernameInputNode=t,autocomplete:"off",bind:this,name:"username",required:!0,spellcheck:!1,type:"text",value:""})),n("calcite-label",null,_,n("calcite-input",{afterCreate:t=>this._passwordInputNode=t,bind:this,name:"password",required:!0,type:"password",value:""}))],n("calcite-button",{appearance:"outline",bind:this,onclick:this._cancel,slot:"footer-end",type:"button"},y),n("calcite-button",{loading:!!o,slot:"footer-end",type:"submit"},o?I:j))))}_focusUsernameInput(){return w$1((()=>this._usernameInputNode))}_cancel(){this._set("signingIn",!1),this.open=!1,this._usernameInputNode&&(this._usernameInputNode.value=""),this._passwordInputNode&&(this._passwordInputNode.value=""),this.emit("cancel");}_submit(t){t.preventDefault(),this._set("signingIn",!0);const e=this.oAuthPrompt?{}:{username:this._usernameInputNode?.value,password:this._passwordInputNode?.value};this.emit("submit",e);}};locale.r$1([locale.m({readOnly:!0})],m.prototype,"container",void 0),locale.r$1([locale.m(),e$3("esri/t9n/common")],m.prototype,"commonMessages",void 0),locale.r$1([locale.m()],m.prototype,"error",void 0),locale.r$1([locale.m(),e$3("esri/identity/t9n/identity")],m.prototype,"messages",void 0),locale.r$1([locale.m()],m.prototype,"oAuthPrompt",void 0),locale.r$1([locale.m()],m.prototype,"open",void 0),locale.r$1([locale.m()],m.prototype,"signingIn",void 0),locale.r$1([locale.m()],m.prototype,"server",void 0),locale.r$1([locale.m({readOnly:!0})],m.prototype,"title",null),locale.r$1([locale.m()],m.prototype,"resource",void 0),m=locale.r$1([locale.a("esri.identity.IdentityModal")],m);const h=m;
4125
+
4126
+ /*
4127
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4128
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4129
+ */
4130
+ const t="esriJSAPIOAuth";class e{constructor(t,e){this.oAuthInfo=null,this.storage=null,this.appId=null,this.codeVerifier=null,this.expires=null,this.refreshToken=null,this.ssl=null,this.stateUID=null,this.token=null,this.userId=null,this.oAuthInfo=t,this.storage=e,this._init();}isValid(){let t=!1;if(this.oAuthInfo&&this.userId&&(this.refreshToken||this.token))if(null==this.expires&&this.refreshToken)t=!0;else if(this.expires){const e=Date.now();if(this.expires>e){(this.expires-e)/1e3>60*this.oAuthInfo.minTimeUntilExpiration&&(t=!0);}}return t}save(){if(!this.storage)return !1;const e=this._load(),s=this.oAuthInfo;if(s?.authNamespace&&s.portalUrl){let r=e[s.authNamespace];r||(r=e[s.authNamespace]={}),this.appId||(this.appId=s.appId),r[s.portalUrl]={appId:this.appId,codeVerifier:this.codeVerifier,expires:this.expires,refreshToken:this.refreshToken,ssl:this.ssl,stateUID:this.stateUID,token:this.token,userId:this.userId};try{this.storage.setItem(t,JSON.stringify(e));}catch(i){return console.warn(i),!1}return !0}return !1}destroy(){const e=this._load(),s=this.oAuthInfo;if(s?.appId&&s?.portalUrl&&(null==this.expires||this.expires>Date.now())&&(this.refreshToken||this.token)){const t=s.portalUrl.replace(/^http:/i,"https:")+"/sharing/rest/oauth2/revokeToken",e=new FormData;if(e.append("f","json"),e.append("auth_token",this.refreshToken||this.token),e.append("client_id",s.appId),e.append("token_type_hint",this.refreshToken?"refresh_token":"access_token"),"function"==typeof navigator.sendBeacon)navigator.sendBeacon(t,e);else {const s=new XMLHttpRequest;s.open("POST",t),s.send(e);}}if(s?.authNamespace&&s.portalUrl&&this.storage){const r=e[s.authNamespace];if(r){delete r[s.portalUrl];try{this.storage.setItem(t,JSON.stringify(e));}catch(i){console.log(i);}}}s&&(s._oAuthCred=null,this.oAuthInfo=null);}_init(){const t=this._load(),e=this.oAuthInfo;if(e?.authNamespace&&e.portalUrl){let s=t[e.authNamespace];s&&(s=s[e.portalUrl],s&&(this.appId=s.appId,this.codeVerifier=s.codeVerifier,this.expires=s.expires,this.refreshToken=s.refreshToken,this.ssl=s.ssl,this.stateUID=s.stateUID,this.token=s.token,this.userId=s.userId));}}_load(){let e={};if(this.storage){const i=this.storage.getItem(t);if(i)try{e=JSON.parse(i);}catch(s){console.warn(s);}}return e}}e.prototype.declaredClass="esri.identity.OAuthCredential";
4131
+
4132
+ /*
4133
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4134
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4135
+ */
4136
+ var p;let s$2=p=class extends locale.f$2{constructor(o){super(o),this._oAuthCred=null,this.appId=null,this.authNamespace="/",this.expiration=20160,this.flowType="auto",this.forceLogin=!1,this.forceUserId=!1,this.locale=null,this.minTimeUntilExpiration=30,this.popup=!1,this.popupCallbackUrl="oauth-callback.html",this.popupWindowFeatures="height=490,width=800,resizable,scrollbars,status",this.portalUrl="https://www.arcgis.com",this.preserveUrlHash=!1,this.userId=null;}clone(){return p.fromJSON(this.toJSON())}};locale.r$1([locale.m({json:{write:!0}})],s$2.prototype,"appId",void 0),locale.r$1([locale.m({json:{write:!0}})],s$2.prototype,"authNamespace",void 0),locale.r$1([locale.m({json:{write:!0}})],s$2.prototype,"expiration",void 0),locale.r$1([locale.m({json:{write:!0}})],s$2.prototype,"flowType",void 0),locale.r$1([locale.m({json:{write:!0}})],s$2.prototype,"forceLogin",void 0),locale.r$1([locale.m({json:{write:!0}})],s$2.prototype,"forceUserId",void 0),locale.r$1([locale.m({json:{write:!0}})],s$2.prototype,"locale",void 0),locale.r$1([locale.m({json:{write:!0}})],s$2.prototype,"minTimeUntilExpiration",void 0),locale.r$1([locale.m({json:{write:!0}})],s$2.prototype,"popup",void 0),locale.r$1([locale.m({json:{write:!0}})],s$2.prototype,"popupCallbackUrl",void 0),locale.r$1([locale.m({json:{write:!0}})],s$2.prototype,"popupWindowFeatures",void 0),locale.r$1([locale.m({json:{write:!0}})],s$2.prototype,"portalUrl",void 0),locale.r$1([locale.m({json:{write:!0}})],s$2.prototype,"preserveUrlHash",void 0),locale.r$1([locale.m({json:{write:!0}})],s$2.prototype,"userId",void 0),s$2=p=locale.r$1([locale.a("esri.identity.OAuthInfo")],s$2);const i$1=s$2;
4137
+
4138
+ /*
4139
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4140
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4141
+ */
4142
+ let i=class extends locale.f$2{constructor(o){super(o),this.adminTokenServiceUrl=null,this.currentVersion=null,this.hasPortal=null,this.hasServer=null,this.owningSystemUrl=null,this.owningTenant=null,this.server=null,this.shortLivedTokenValidity=null,this.tokenServiceUrl=null,this.webTierAuth=null;}};locale.r$1([locale.m({json:{write:!0}})],i.prototype,"adminTokenServiceUrl",void 0),locale.r$1([locale.m({json:{write:!0}})],i.prototype,"currentVersion",void 0),locale.r$1([locale.m({json:{write:!0}})],i.prototype,"hasPortal",void 0),locale.r$1([locale.m({json:{write:!0}})],i.prototype,"hasServer",void 0),locale.r$1([locale.m({json:{write:!0}})],i.prototype,"owningSystemUrl",void 0),locale.r$1([locale.m({json:{write:!0}})],i.prototype,"owningTenant",void 0),locale.r$1([locale.m({json:{write:!0}})],i.prototype,"server",void 0),locale.r$1([locale.m({json:{write:!0}})],i.prototype,"shortLivedTokenValidity",void 0),locale.r$1([locale.m({json:{write:!0}})],i.prototype,"tokenServiceUrl",void 0),locale.r$1([locale.m({json:{write:!0}})],i.prototype,"webTierAuth",void 0),i=locale.r$1([locale.a("esri.identity.ServerInfo")],i);const s$1=i;
4143
+
4144
+ /*
4145
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4146
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4147
+ */
4148
+ const R={},C=e=>{const t=new locale.x(e.owningSystemUrl).host,r=new locale.x(e.server).host,s=/.+\.arcgis\.com$/i;return s.test(t)&&s.test(r)},D=(e,t)=>!!(C(e)&&t&&t.some((t=>t.test(e.server))));let b=null,q=null;try{b=window.localStorage,q=window.sessionStorage;}catch{}class j extends o$6{constructor(){super(),this._portalConfig=globalThis.esriGeowConfig,this.serverInfos=[],this.oAuthInfos=[],this.credentials=[],this._soReqs=[],this._xoReqs=[],this._portals=[],this._defaultOAuthInfo=null,this._defaultTokenValidity=60,this.dialog=null,this.tokenValidity=null,this.normalizeWebTierAuth=!1,this._appOrigin="null"!==window.origin?window.origin:window.location.origin,this._appUrlObj=locale.I(window.location.href),this._busy=null,this._rejectOnPersistedPageShow=!1,this._oAuthLocationParams=null,this._gwTokenUrl="/sharing/rest/generateToken",this._agsRest="/rest/services",this._agsPortal=/\/sharing(\/|$)/i,this._agsAdmin=/(https?:\/\/[^/]+\/[^/]+)\/admin\/?(\/.*)?$/i,this._adminSvcs=/\/rest\/admin\/services(\/|$)/i,this._gwDomains=[{regex:/^https?:\/\/www\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:dev|[a-z\d-]+\.mapsdev)\.arcgis\.com/i,customBaseUrl:"mapsdev.arcgis.com",tokenServiceUrl:"https://dev.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:devext|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,customBaseUrl:"mapsdevext.arcgis.com",tokenServiceUrl:"https://devext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:qaext|[a-z\d-]+\.mapsqa)\.arcgis\.com/i,customBaseUrl:"mapsqa.arcgis.com",tokenServiceUrl:"https://qaext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/[a-z\d-]+\.maps\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"}],this._legacyFed=[],this._regexSDirUrl=/http.+\/rest\/services\/?/gi,this._regexServerType=/(\/(FeatureServer|GPServer|GeoDataServer|GeocodeServer|GeoenrichmentServer|GeometryServer|GlobeServer|ImageServer|KnowledgeGraphServer|MapServer|MissionServer|MobileServer|NAServer|NetworkDiagramServer|OGCFeatureServer|ParcelFabricServer|RelationalCatalogServer|SceneServer|StreamServer|UtilityNetworkServer|ValidationServer|VectorTileServer|VersionManagementServer|VideoServer)).*/gi,this._gwUser=/http.+\/users\/([^/]+).*/i,this._gwItem=/http.+\/items\/([^/]+).*/i,this._gwGroup=/http.+\/groups\/([^/]+).*/i,this._rePortalTokenSvc=/\/sharing(\/rest)?\/generatetoken/i,this._createDefaultOAuthInfo=!0,this._hasTestedIfAppIsOnPortal=!1,this._getPlatformSelfError=null,this._getOAuthLocationParams(),window.addEventListener("pageshow",(e=>{this._pageShowHandler(e);}));}registerServers(e){const t=this.serverInfos;t?(e=e.filter((e=>!this.findServerInfo(e.server))),this.serverInfos=t.concat(e)):this.serverInfos=e,e.forEach((e=>{e.owningSystemUrl&&this._portals.push(e.owningSystemUrl),e.hasPortal&&this._portals.push(e.server);}));}registerOAuthInfos(e){const t=this.oAuthInfos;if(t){for(const r of e){const e=this.findOAuthInfo(r.portalUrl);e&&t.splice(t.indexOf(e),1);}this.oAuthInfos=t.concat(e);}else this.oAuthInfos=e;}registerToken(e){e={...e};const t=this._sanitizeUrl(e.server),r=this._isServerRsrc(t);let s,i=this.findServerInfo(t),o=!0;i||(i=new s$1,i.server=this._getServerInstanceRoot(t),r?i.hasServer=!0:(i.tokenServiceUrl=this._getTokenSvcUrl(t),i.hasPortal=!0),this.registerServers([i])),s=this._findCredential(t),s?(delete e.server,Object.assign(s,e),o=!1):(s=new E({userId:e.userId,server:i.server??void 0,token:e.token,expires:e.expires,ssl:e.ssl,scope:r?"server":"portal"}),s.resources=[t],this.credentials.push(s)),s.emitTokenChange(!1),o||s.refreshServerTokens();}toJSON(){return locale.l$3({serverInfos:this.serverInfos.map((e=>e.toJSON())),oAuthInfos:this.oAuthInfos.map((e=>e.toJSON())),credentials:this.credentials.map((e=>e.toJSON()))})}initialize(e){if(!e)return;"string"==typeof e&&(e=JSON.parse(e));const t=e.serverInfos,r=e.oAuthInfos,s=e.credentials;if(t){const e=[];t.forEach((t=>{t.server&&t.tokenServiceUrl&&e.push(t.declaredClass?t:new s$1(t));})),e.length&&this.registerServers(e);}if(r){const e=[];r.forEach((t=>{t.appId&&e.push(t.declaredClass?t:new i$1(t));})),e.length&&this.registerOAuthInfos(e);}s&&s.forEach((e=>{e.server&&e.token&&e.expires&&e.expires>Date.now()&&((e=e.declaredClass?e:new E(e)).emitTokenChange(),this.credentials.push(e));}));}findServerInfo(e){let t;e=this._sanitizeUrl(e);for(const r of this.serverInfos)if(this._hasSameServerInstance(r.server,e)){t=r;break}return t}findOAuthInfo(e){let t;e=this._sanitizeUrl(e);for(const r of this.oAuthInfos)if(this._hasSameServerInstance(r.portalUrl,e)){t=r;break}return t}findCredential(e,t){if(!e)return;let r;e=this._sanitizeUrl(e);const s=this._isServerRsrc(e)?"server":"portal";if(t){for(const i of this.credentials)if(this._hasSameServerInstance(i.server,e)&&t===i.userId&&i.scope===s){r=i;break}}else for(const i of this.credentials)if(this._hasSameServerInstance(i.server,e)&&-1!==this._getIdenticalSvcIdx(e,i)&&i.scope===s){r=i;break}return r}getCredential(e,t){let r,s,o=!0;t&&(r=!!t.token,s=t.error,o=!1!==t.prompt),t={...t},e=this._sanitizeUrl(e);const n=new AbortController,a=locale.L();if(t.signal&&locale.m$1(t.signal,(()=>{n.abort();})),locale.m$1(n,(()=>{a.reject(new locale.s("identity-manager:user-aborted","ABORTED"));})),locale.c(n))return a.promise;t.signal=n.signal;const h=this._isAdminResource(e),u=r?this.findCredential(e):null;let _;if(u&&s&&s.details&&498===s.details.httpStatus)u.destroy();else if(u)return _=new locale.s("identity-manager:not-authorized","You are currently signed in as: '"+u.userId+"'. You do not have access to this resource: "+e,{error:s}),a.reject(_),a.promise;const f=this._findCredential(e,t);if(f)return a.resolve(f),a.promise;let g=this.findServerInfo(e);if(g)!g.hasPortal&&g.server&&g.owningSystemUrl&&this._hasSameServerInstance(g.server,g.owningSystemUrl)&&(g.hasPortal=!0),!g.hasServer&&this._isServerRsrc(e)&&(g._restInfoPms=this._getTokenSvcUrl(e),g.hasServer=!0);else {const t=this._getTokenSvcUrl(e);if(!t)return _=new locale.s("identity-manager:unknown-resource","Unknown resource - could not find token service endpoint."),a.reject(_),a.promise;g=new s$1,g.server=this._getServerInstanceRoot(e),"string"==typeof t?(g.tokenServiceUrl=t,g.hasPortal=!0):(g._restInfoPms=t,g.hasServer=!0),this.registerServers([g]);}return g.hasPortal&&void 0===g._selfReq&&(o||locale.F(g.tokenServiceUrl,this._appOrigin)||this._gwDomains.some((e=>e.tokenServiceUrl===g.tokenServiceUrl)))&&(g._selfReq={owningTenant:t?.owningTenant,selfDfd:this._getPortalSelf(g.tokenServiceUrl.replace(this._rePortalTokenSvc,"/sharing/rest/portals/self"),e)}),this._enqueue(e,g,t,a,h)}getResourceName(e){return this._isRESTService(e)?e.replace(this._regexSDirUrl,"").replace(this._regexServerType,"")||"":this._gwUser.test(e)&&e.replace(this._gwUser,"$1")||this._gwItem.test(e)&&e.replace(this._gwItem,"$1")||this._gwGroup.test(e)&&e.replace(this._gwGroup,"$1")||""}generateToken(e,t,r){const o=this._rePortalTokenSvc.test(e.tokenServiceUrl),n=new locale.x(this._appOrigin),a=e.shortLivedTokenValidity;let h,l,c,d,u,f,g,m;t&&(m=this.tokenValidity||a||this._defaultTokenValidity,m>a&&a>0&&(m=a)),r&&(h=r.isAdmin,l=r.serverUrl,c=r.token,f=r.signal,g=r.ssl,e.customParameters=r.customParameters),h?d=e.adminTokenServiceUrl:(d=e.tokenServiceUrl,u=new locale.x(d.toLowerCase()),e.webTierAuth&&r?.serverUrl&&!g&&"http"===n.scheme&&(locale.F(n.uri,d,!0)||"https"===u.scheme&&n.host===u.host&&"7080"===n.port&&"7443"===u.port)&&(d=d.replace(/^https:/i,"http:").replace(/:7443/i,":7080")));const v={query:{request:"getToken",username:t?.username,password:t?.password,serverUrl:l,token:c,expiration:m,referer:h||o?this._appOrigin:null,client:h?"referer":null,f:"json",...e.customParameters},method:"post",authMode:"anonymous",useProxy:this._useProxy(e,r),signal:f,...r?.ioArgs};o||(v.withCredentials=!1);return locale.U(d,v).then((r=>{const s=r.data;if(!s?.token)return new locale.s("identity-manager:authentication-failed","Unable to generate token");const o=e.server;return R[o]||(R[o]={}),t&&(R[o][t.username]=t.password),s.validity=m,s}))}isBusy(){return !!this._busy}async checkSignInStatus(e){return (await this.checkAppAccess(e,"")).credential}checkAppAccess(e,t,r){let o=!1;return this.getCredential(e,{prompt:!1}).then((n=>{let a;const h={f:"json"};if("portal"===n.scope)if(t&&(this._doPortalSignIn(e)||r?.force))a=n.server+"/sharing/rest/oauth2/validateAppAccess",h.client_id=t;else {if(!n.token)return {credential:n};a=n.server+"/sharing/rest";}else {if(!n.token)return {credential:n};a=n.server+"/rest/services";}return n.token&&(h.token=n.token),locale.U(a,{query:h,authMode:"anonymous"}).then((e=>{if(!1===e.data.valid)throw new locale.s("identity-manager:not-authorized",`You are currently signed in as: '${n.userId}'.`,e.data);return o=!!e.data.viewOnlyUserTypeApp,{credential:n}})).catch((e=>{if("identity-manager:not-authorized"===e.name)throw e;const t=e.details?.httpStatus;if(498===t)throw n.destroy(),new locale.s("identity-manager:not-authenticated","User is not signed in.");if(400===t)throw new locale.s("identity-manager:invalid-request");return {credential:n}}))})).then((e=>({credential:e.credential,viewOnly:o})))}setOAuthResponseHash(e){e&&("#"===e.charAt(0)&&(e=e.slice(1)),this._processOAuthPopupParams(locale.A(e)));}setOAuthRedirectionHandler(e){this._oAuthRedirectFunc=e;}setProtocolErrorHandler(e){this._protocolFunc=e;}signIn(e,t,r={}){const s=locale.L(),o=()=>{h$1?.remove(),d?.remove(),this.dialog?.destroy(),this.dialog=h$1=d=null;},n=()=>{o(),this._oAuthDfd=null,s.reject(new locale.s("identity-manager:user-aborted","ABORTED"));};r.signal&&locale.m$1(r.signal,(()=>{n();}));const a=new h({open:!0,resource:this.getResourceName(e),server:t.server});this.dialog=a,this.emit("dialog-create");let h$1=a.on("cancel",n),d=a.on("submit",(e=>{this.generateToken(t,e,{isAdmin:r.isAdmin,signal:r.signal}).then((i=>{o();const n=new E({userId:e.username,server:t.server??void 0,token:i.token,expires:null!=i.expires?Number(i.expires):null,ssl:!!i.ssl,isAdmin:r.isAdmin,validity:i.validity});s.resolve(n);})).catch((e=>{a.error=e,a.signingIn=!1;}));}));return s.promise}oAuthSignIn(e,t,r,s){this._oAuthDfd=locale.L();const o=this._oAuthDfd;let n;s?.signal&&locale.m$1(s.signal,(()=>{const e=this._oAuthDfd&&this._oAuthDfd.oAuthWin_;e&&!e.closed?e.close():this.dialog&&u();})),o.resUrl_=e,o.sinfo_=t,o.oinfo_=r;const a=r._oAuthCred;if(a.storage&&("authorization-code"===r.flowType||"auto"===r.flowType&&t.currentVersion>=8.4)){let e=crypto.getRandomValues(new Uint8Array(32));n=locale.et(e),a.codeVerifier=n,e=crypto.getRandomValues(new Uint8Array(32)),a.stateUID=locale.et(e),a.save()||(a.codeVerifier=n=null);}else a.codeVerifier=null;let h$1,d;this._getCodeChallenge(n).then((i=>{const o=!s||!1!==s.oAuthPopupConfirmation;if(!r.popup||!o)return void this._doOAuthSignIn(e,t,r,i);const n=new h({oAuthPrompt:!0,server:t.server,open:!0});this.dialog=n,this.emit("dialog-create"),h$1=n.on("cancel",u),d=n.on("submit",(()=>{p(),this._doOAuthSignIn(e,t,r,i);}));}));const u=()=>{p(),this._oAuthDfd=null,o.reject(new locale.s("identity-manager:user-aborted","ABORTED"));},p=()=>{h$1?.remove(),d?.remove(),this.dialog?.destroy(),this.dialog=null;};return o.promise}destroyCredentials(){if(this.credentials){this.credentials.slice().forEach((e=>{e.destroy();}));}this.emit("credentials-destroy");}enablePostMessageAuth(e="https://www.arcgis.com/sharing/rest"){this._postMessageAuthHandle&&this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=locale.o$1(window,"message",(t=>{if((t.origin===this._appOrigin||t.origin.endsWith(".arcgis.com"))&&"arcgis:auth:requestCredential"===t.data?.type){const r=t.source;this.getCredential(e).then((e=>{r.postMessage({type:"arcgis:auth:credential",credential:{expires:e.expires,server:e.server,ssl:e.ssl,token:e.token,userId:e.userId}},t.origin);})).catch((e=>{r.postMessage({type:"arcgis:auth:error",error:{name:e.name,message:e.message}},t.origin);}));}}));}disablePostMessageAuth(){this._postMessageAuthHandle&&(this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=null);}_getOAuthLocationParams(){let e=window.location.hash;if(e){"#"===e.charAt(0)&&(e=e.slice(1));const t=locale.A(e);let r=!1;if(t.access_token&&t.expires_in&&t.state&&t.hasOwnProperty("username"))try{t.state=JSON.parse(t.state),t.state.portalUrl&&(this._oAuthLocationParams=t,r=!0);}catch{}else if(t.error&&t.error_description&&(console.log("IdentityManager OAuth Error: ",t.error," - ",t.error_description),"access_denied"===t.error&&(r=!0,t.state)))try{t.state=JSON.parse(t.state);}catch{}r&&(window.location.hash=t.state?.hash||"");}let t=window.location.search;if(t){"?"===t.charAt(0)&&(t=t.slice(1));const e=locale.A(t);let r=!1;if(e.code&&e.state)try{e.state=JSON.parse(e.state),e.state.portalUrl&&e.state.uid&&(this._oAuthLocationParams=e,r=!0);}catch{}else if(e.error&&e.error_description&&(console.log("IdentityManager OAuth Error: ",e.error," - ",e.error_description),"access_denied"===e.error&&(r=!0,e.state)))try{e.state=JSON.parse(e.state);}catch{}if(r){const t={...e};["code","error","error_description","message_code","persist","state"].forEach((e=>{delete t[e];}));const r=locale.v$1(t),s=window.location.pathname+(r?`?${r}`:"")+(e.state?.hash||"");window.history.replaceState(window.history.state,"",s);}}}_getOAuthToken(e,t,r,i,o){return e=e.replace(/^http:/i,"https:"),locale.U(`${e}/sharing/rest/oauth2/token`,{authMode:"anonymous",method:"post",query:i&&o?{grant_type:"authorization_code",code:t,redirect_uri:i,client_id:r,code_verifier:o}:{grant_type:"refresh_token",refresh_token:t,client_id:r}}).then((e=>e.data))}async _getCodeChallenge(e){if(e&&globalThis.isSecureContext){const t=(new TextEncoder).encode(e),r=await crypto.subtle.digest("SHA-256",t);return locale.et(new Uint8Array(r))}return null}_pageShowHandler(e){if(e.persisted&&this.isBusy()&&this._rejectOnPersistedPageShow){const e=new locale.s("identity-manager:user-aborted","ABORTED");this._errbackFunc(e);}}_findCredential(e,t){let r,s,i,o,n=-1;const a=t?.token,h=t?.resource,l=this._isServerRsrc(e)?"server":"portal",c=this.credentials.filter((t=>this._hasSameServerInstance(t.server,e)&&t.scope===l));if(e=h||e,c.length)if(1===c.length){if(r=c[0],i=this.findServerInfo(r.server),s=i?.owningSystemUrl,o=s?this.findCredential(s,r.userId):void 0,n=this._getIdenticalSvcIdx(e,r),!a)return -1===n&&r.resources.push(e),this._addResource(e,o),r;-1!==n&&(r.resources.splice(n,1),this._removeResource(e,o));}else {let t,r;if(c.some((a=>(r=this._getIdenticalSvcIdx(e,a),-1!==r&&(t=a,i=this.findServerInfo(t.server),s=i?.owningSystemUrl,o=s?this.findCredential(s,t.userId):void 0,n=r,!0)))),a)t&&(t.resources.splice(n,1),this._removeResource(e,o));else if(t)return this._addResource(e,o),t}}_findOAuthInfo(e){let t=this.findOAuthInfo(e);if(!t)for(const r of this.oAuthInfos)if(this._isIdProvider(r.portalUrl,e)){t=r;break}return t}_addResource(e,t){t&&-1===this._getIdenticalSvcIdx(e,t)&&t.resources.push(e);}_removeResource(e,t){let r=-1;t&&(r=this._getIdenticalSvcIdx(e,t),r>-1&&t.resources.splice(r,1));}_useProxy(e,t){return t?.isAdmin&&!locale.F(e.adminTokenServiceUrl,this._appOrigin)||!this._isPortalDomain(e.tokenServiceUrl)&&"10.1"===String(e.currentVersion)&&!locale.F(e.tokenServiceUrl,this._appOrigin)}_getOrigin(e){const t=new locale.x(e);return t.scheme+"://"+t.host+(null!=t.port?":"+t.port:"")}_getServerInstanceRoot(e){const t=e.toLowerCase();let r=t.indexOf(this._agsRest);return -1===r&&this._isAdminResource(e)&&(r=this._agsAdmin.test(e)?e.replace(this._agsAdmin,"$1").length:e.search(this._adminSvcs)),-1!==r||locale.a$3(t)||(r=t.indexOf("/sharing")),-1===r&&t.endsWith("/")&&(r=t.length-1),r>-1?e.slice(0,r):e}_hasSameServerInstance(e,t){return e.endsWith("/")&&(e=e.slice(0,-1)),e=e.toLowerCase(),t=this._getServerInstanceRoot(t).toLowerCase(),e=locale.r$3(e),t=locale.r$3(t),(e=e.slice(Math.max(0,e.indexOf(":"))))===(t=t.slice(Math.max(0,t.indexOf(":"))))}_sanitizeUrl(e){const r=(locale.s$2.request.proxyUrl||"").toLowerCase(),s=r?e.toLowerCase().indexOf(r+"?"):-1;return -1!==s&&(e=e.slice(s+r.length+1)),e=locale.K(e),locale.I(e).path}_isRESTService(e){return e.includes(this._agsRest)}_isAdminResource(e){return this._agsAdmin.test(e)||this._adminSvcs.test(e)}_isServerRsrc(e){return this._isRESTService(e)||this._isAdminResource(e)}_isIdenticalService(e,t){let r=!1;if(this._isRESTService(e)&&this._isRESTService(t)){const s=this._getSuffix(e).toLowerCase(),i=this._getSuffix(t).toLowerCase();if(r=s===i,!r){const e=/(.*)\/(MapServer|FeatureServer|UtilityNetworkServer).*/gi;r=s.replaceAll(e,"$1")===i.replaceAll(e,"$1");}}else this._isAdminResource(e)&&this._isAdminResource(t)?r=!0:this._isServerRsrc(e)||this._isServerRsrc(t)||!this._isPortalDomain(e)||(r=!0);return r}_isPortalDomain(e){const r=new locale.x(e.toLowerCase()),s=this._portalConfig;let i=this._gwDomains.some((e=>e.regex.test(r.uri)));return !i&&s&&(i=this._hasSameServerInstance(this._getServerInstanceRoot(s.restBaseUrl),r.uri)),i||locale.s$2.portalUrl&&(i=locale.F(r,locale.s$2.portalUrl,!0)),i||(i=this._portals.some((e=>this._hasSameServerInstance(e,r.uri)))),i=i||this._agsPortal.test(r.path),i}_isIdProvider(e,t){let r=-1,s=-1;this._gwDomains.forEach(((i,o)=>{-1===r&&i.regex.test(e)&&(r=o),-1===s&&i.regex.test(t)&&(s=o);}));let i=!1;if(r>-1&&s>-1&&(0===r||4===r?0!==s&&4!==s||(i=!0):1===r?1!==s&&2!==s||(i=!0):2===r?2===s&&(i=!0):3===r&&3===s&&(i=!0)),!i){const r=this.findServerInfo(t),s=r?.owningSystemUrl;s&&C(r)&&this._isPortalDomain(s)&&this._isIdProvider(e,s)&&(i=!0);}return i}_getIdenticalSvcIdx(e,t){let r=-1;for(let s=0;s<t.resources.length;s++){const i=t.resources[s];if(this._isIdenticalService(e,i)){r=s;break}}return r}_getSuffix(e){return e.replace(this._regexSDirUrl,"").replace(this._regexServerType,"$1")}_getTokenSvcUrl(e){let t,r,i;if(this._isRESTService(e)||this._isAdminResource(e)){const i=this._getServerInstanceRoot(e);return t=i+"/admin/generateToken",r=locale.U(e=i+"/rest/info",{query:{f:"json"}}).then((e=>e.data)),{adminUrl:t,promise:r}}if(this._isPortalDomain(e)){let t="";if(this._gwDomains.some((r=>(r.regex.test(e)&&(t=r.tokenServiceUrl),!!t))),t||this._portals.some((r=>(this._hasSameServerInstance(r,e)&&(t=r+this._gwTokenUrl),!!t))),t||(i=e.toLowerCase().indexOf("/sharing"),-1!==i&&(t=e.slice(0,i)+this._gwTokenUrl)),t||(t=this._getOrigin(e)+this._gwTokenUrl),t){const r=new locale.x(e).port;/^http:\/\//i.test(e)&&"7080"===r&&(t=t.replace(/:7080/i,":7443")),t=t.replace(/http:/i,"https:");}return t}}_processOAuthResponseParams(e,t,r){const s=t._oAuthCred;if(e.code){const i=s.codeVerifier;return s.codeVerifier=null,s.stateUID=null,s.save(),this._getOAuthToken(r.server,e.code,t.appId,this._getRedirectURI(t,!0),i).then((i=>{const o=new E({userId:i.username,server:r.server??void 0,token:i.access_token,expires:Date.now()+1e3*i.expires_in,ssl:i.ssl,oAuthState:e.state,_oAuthCred:s});return t.userId=o.userId,s.storage=i.persist?b:q,s.refreshToken=i.refresh_token,s.token=null,s.expires=i.refresh_token_expires_in?Date.now()+1e3*i.refresh_token_expires_in:null,s.userId=o.userId,s.ssl=o.ssl,s.save(),o}))}const i=new E({userId:e.username,server:r.server??void 0,token:e.access_token,expires:Date.now()+1e3*Number(e.expires_in),ssl:"true"===e.ssl,oAuthState:e.state,_oAuthCred:s});return t.userId=i.userId,s.storage=e.persist?b:q,s.refreshToken=null,s.token=i.token,s.expires=i.expires,s.userId=i.userId,s.ssl=i.ssl,s.save(),Promise.resolve(i)}_processOAuthPopupParams(e){const t=this._oAuthDfd;if(this._oAuthDfd=null,t)if(clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle?.remove(),e.error){const r="access_denied"===e.error,s=new locale.s(r?"identity-manager:user-aborted":"identity-manager:authentication-failed",r?"ABORTED":"OAuth: "+e.error+" - "+e.error_description);t.reject(s);}else this._processOAuthResponseParams(e,t.oinfo_,t.sinfo_).then((e=>{t.resolve(e);})).catch((e=>{t.reject(e);}));}_setOAuthResponseQueryString(e){e&&("?"===e.charAt(0)&&(e=e.slice(1)),this._processOAuthPopupParams(locale.A(e)));}async _exchangeToken(e,t,r){return (await locale.U(`${e}/sharing/rest/oauth2/exchangeToken`,{authMode:"anonymous",method:"post",query:{f:"json",client_id:t,token:r}})).data.token}async _getPlatformSelf(e,t){if(this._getPlatformSelfError&&Date.now()-this._getPlatformSelfError[1]<1e3)throw this._getPlatformSelfError[0];e=e.replace(/^http:/i,"https:");try{const r=await locale.U(`${e}/sharing/rest/oauth2/platformSelf`,{authMode:"anonymous",headers:{"X-Esri-Auth-Client-Id":t,"X-Esri-Auth-Redirect-Uri":window.location.href.replace(/#.*$/,"")},method:"post",query:{f:"json",expiration:30},withCredentials:!0});return this._getPlatformSelfError=null,r.data}catch(r){throw "OAUTH_0066"===r.details?.messageCode&&(this._getPlatformSelfError=[r,Date.now()]),r}}_getPortalSelf(e,t){let r;if(this._gwDomains.some((t=>(t.regex.test(e)&&(r=t.customBaseUrl),!!r))),r)return Promise.resolve({allSSL:!0,currentVersion:"8.4",customBaseUrl:r,portalMode:"multitenant",supportsOAuth:!0});this._appOrigin.startsWith("https:")?e=e.replace(/^http:/i,"https:").replace(/:7080/i,":7443"):/^http:/i.test(t)&&(e=e.replace(/^https:/i,"http:").replace(/:7443/i,":7080"));return locale.U(e,{query:{f:"json"},authMode:"anonymous",withCredentials:!0}).then((e=>e.data))}_doPortalSignIn(e){const t=this._portalConfig,r=window.location.href,s=this.findServerInfo(e);return !(!t&&!this._isPortalDomain(r)||!(s?s.hasPortal||s.owningSystemUrl&&this._isPortalDomain(s.owningSystemUrl):this._isPortalDomain(e))||!(this._isIdProvider(r,e)||t&&(this._hasSameServerInstance(this._getServerInstanceRoot(t.restBaseUrl),e)||this._isIdProvider(t.restBaseUrl,e))||locale.F(r,e,!0)))}_checkProtocol(e,t,r,s){let o=!0;const n=s?t.adminTokenServiceUrl:t.tokenServiceUrl;if(n.trim().toLowerCase().startsWith("https:")&&!this._appOrigin.startsWith("https:")&&locale.T(n)&&(o=!!this._protocolFunc&&!!this._protocolFunc({resourceUrl:e,serverInfo:t}),!o)){r(new locale.s("identity-manager:aborted","Aborted the Sign-In process to avoid sending password over insecure connection."));}return o}_enqueue(e,t,r,s,i,o){return s||(s=locale.L()),s.resUrl_=e,s.sinfo_=t,s.options_=r,s.admin_=i,s.refresh_=o,this._busy?this._hasSameServerInstance(this._getServerInstanceRoot(e),this._busy.resUrl_)?(this._oAuthDfd&&this._oAuthDfd.oAuthWin_&&this._oAuthDfd.oAuthWin_.focus(),this._soReqs.push(s)):this._xoReqs.push(s):this._doSignIn(s),s.promise}_doSignIn(e$1){this._busy=e$1,this._rejectOnPersistedPageShow=!1;const t=t=>{const r=e$1.options_?.resource,s=e$1.resUrl_,i=e$1.refresh_;let o=!1;this.credentials.includes(t)||(i&&this.credentials.includes(i)?(i.userId=t.userId,i.token=t.token,i.expires=t.expires,i.validity=t.validity,i.ssl=t.ssl,i.creationTime=t.creationTime,o=!0,t=i):this.credentials.push(t)),t.resources||(t.resources=[]),t.resources.includes(r||s)||t.resources.push(r||s),t.scope=this._isServerRsrc(s)?"server":"portal",t.emitTokenChange();const n=this._soReqs,a={};this._soReqs=[],n.forEach((e=>{if(!this._isIdenticalService(s,e.resUrl_)){const r=this._getSuffix(e.resUrl_);a[r]||(a[r]=!0,t.resources.push(e.resUrl_));}})),e$1.resolve(t),n.forEach((e=>{this._hasSameServerInstance(this._getServerInstanceRoot(s),e.resUrl_)?e.resolve(t):this._soReqs.push(e);})),this._busy=e$1.resUrl_=e$1.sinfo_=e$1.refresh_=null,o||this.emit("credential-create",{credential:t}),this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift());},r=t=>{e$1.reject(t),this._busy=e$1.resUrl_=e$1.sinfo_=e$1.refresh_=null,this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift());},s=(o,a,h,l)=>{const d=e$1.sinfo_,u=!e$1.options_||!1!==e$1.options_.prompt,_=d.hasPortal&&this._findOAuthInfo(e$1.resUrl_);let f,g;if(o)t(new E({userId:o,server:d.server??void 0,token:h??void 0,expires:null!=l?Number(l):null,ssl:!!a}));else if(window!==window.parent&&this._appUrlObj.query?.["arcgis-auth-origin"]&&this._appUrlObj.query?.["arcgis-auth-portal"]&&this._hasSameServerInstance(this._getServerInstanceRoot(this._appUrlObj.query["arcgis-auth-portal"]),e$1.resUrl_)){window.parent.postMessage({type:"arcgis:auth:requestCredential"},this._appUrlObj.query["arcgis-auth-origin"]);const s=locale.o$1(window,"message",(e=>{e.source===window.parent&&e.data&&("arcgis:auth:credential"===e.data.type?(s.remove(),e.data.credential.expires<Date.now()?r(new locale.s("identity-manager:credential-request-failed","Parent application's token has expired.")):t(new E(e.data.credential))):"arcgis:auth:error"===e.data.type&&(s.remove(),"tokenExpiredError"===e.data.error.name?r(new locale.s("identity-manager:credential-request-failed","Parent application's token has expired.")):r(locale.s.fromJSON(e.data.error))));}));locale.m$1(e$1.options_?.signal,(()=>{s.remove();}));}else if(_){let o=_._oAuthCred;if(!o){const e$1=new e(_,b),t=new e(_,q);e$1.isValid()&&t.isValid()?e$1.expires>t.expires?(o=e$1,t.destroy()):(o=t,e$1.destroy()):o=e$1.isValid()?e$1:t,_._oAuthCred=o;}if(o.isValid()){f=new E({userId:o.userId??void 0,server:d.server??void 0,token:o.token??void 0,expires:o.expires,ssl:o.ssl??void 0,_oAuthCred:o});const i=_.appId!==o.appId&&this._doPortalSignIn(e$1.resUrl_);i||o.refreshToken?(e$1._pendingDfd=o.refreshToken?this._getOAuthToken(d.server,o.refreshToken,o.appId).then((e=>(f.expires=Date.now()+1e3*e.expires_in,f.token=e.access_token,f))):Promise.resolve(f),e$1._pendingDfd.then((e=>i?this._exchangeToken(e.server,_.appId,e.token).then((t=>(e.token=t,e))).catch((()=>e)):e)).then((e=>{t(e);})).catch((e=>{const t=e.details?.httpStatus;t>0&&404!==t?(o.destroy(),s()):r(e);}))):t(f);}else if(this._oAuthLocationParams&&this._hasSameServerInstance(_.portalUrl,this._oAuthLocationParams.state.portalUrl)&&(this._oAuthLocationParams.access_token||this._oAuthLocationParams.code&&this._oAuthLocationParams.state.uid===o.stateUID&&o.codeVerifier)){const s=this._oAuthLocationParams;this._oAuthLocationParams=null,e$1._pendingDfd=this._processOAuthResponseParams(s,_,d).then((e=>{t(e);})).catch(r);}else {const s=()=>{u?e$1._pendingDfd=this.oAuthSignIn(e$1.resUrl_,d,_,e$1.options_).then(t,r):(g=new locale.s("identity-manager:not-authenticated","User is not signed in."),r(g));};this._doPortalSignIn(e$1.resUrl_)?e$1._pendingDfd=this._getPlatformSelf(d.server,_.appId).then((e=>{locale.F(e.portalUrl,this._appOrigin,!0)?(f=new E({userId:e.username,server:d.server??void 0,expires:Date.now()+1e3*e.expires_in,token:e.token}),t(f)):s();})).catch(s):s();}}else if(u){if(this._checkProtocol(e$1.resUrl_,d,r,e$1.admin_)){let s=e$1.options_;e$1.admin_&&(s=s||{},s.isAdmin=!0),e$1._pendingDfd=this.signIn(e$1.resUrl_,d,s).then(t,r);}}else g=new locale.s("identity-manager:not-authenticated","User is not signed in."),r(g);},o=()=>{const s=e$1.sinfo_,i=s.owningSystemUrl,o=e$1.options_;let n,a,h,l;if(o&&(n=o.token,a=o.error,h=o.prompt),l=this._findCredential(i,{token:n,resource:e$1.resUrl_}),!l)for(const e of this.credentials)if(this._isIdProvider(i,e.server)){l=e;break}if(l){const i=this.findCredential(e$1.resUrl_,l.userId);if(i)t(i);else if(D(s,this._legacyFed)){const e=l.toJSON();e.server=s.server,e.resources=null,t(new E(e));}else {(e$1._pendingDfd=this.generateToken(this.findServerInfo(l.server),null,{serverUrl:e$1.resUrl_,token:l.token,signal:e$1.options_.signal,ssl:l.ssl})).then((r=>{t(new E({userId:l?.userId,server:s.server??void 0,token:r.token,expires:null!=r.expires?Number(r.expires):null,ssl:!!r.ssl,isAdmin:e$1.admin_,validity:r.validity}));}),r);}}else {this._busy=null,n&&(e$1.options_.token=null);(e$1._pendingDfd=this.getCredential(i.replace(/\/?$/,"/sharing"),{resource:e$1.resUrl_,owningTenant:s.owningTenant,signal:e$1.options_.signal,token:n,error:a,prompt:h})).then((()=>{this._enqueue(e$1.resUrl_,e$1.sinfo_,e$1.options_,e$1,e$1.admin_);}),(t=>{e$1.resUrl_=e$1.sinfo_=e$1.refresh_=null,e$1.reject(t);}));}};this._errbackFunc=r;const a=e$1.sinfo_.owningSystemUrl,l=this._isServerRsrc(e$1.resUrl_),d=e$1.sinfo_._restInfoPms;d?d.promise.then((t=>{const r=e$1.sinfo_;if(r._restInfoPms){r.adminTokenServiceUrl=r._restInfoPms.adminUrl,r._restInfoPms=null,r.tokenServiceUrl=(locale.t("authInfo.tokenServicesUrl",t)||locale.t("authInfo.tokenServiceUrl",t)||locale.t("tokenServiceUrl",t))??null,r.shortLivedTokenValidity=locale.t("authInfo.shortLivedTokenValidity",t)??null,r.currentVersion=t.currentVersion,r.owningTenant=t.owningTenant;const e=r.owningSystemUrl=t.owningSystemUrl;e&&this._portals.push(e);}l&&r.owningSystemUrl?o():s();}),(()=>{e$1.sinfo_._restInfoPms=null;const t=new locale.s("identity-manager:server-identification-failed","Unknown resource - could not find token service endpoint.");r(t);})):l&&a?o():e$1.sinfo_._selfReq?e$1.sinfo_._selfReq.selfDfd.then((t=>{const r={};let s,i,o,n;return t&&(s=t.user?.username,r.username=s,r.allSSL=t.allSSL,i=t.supportsOAuth,n=parseFloat(t.currentVersion),"multitenant"===t.portalMode&&(o=t.customBaseUrl),e$1.sinfo_.currentVersion=n),e$1.sinfo_.webTierAuth=!!s,s&&this.normalizeWebTierAuth?this.generateToken(e$1.sinfo_,null,{ssl:r.allSSL}).catch((()=>null)).then((e=>(r.portalToken=e?.token,r.tokenExpiration=e?.expires,r))):!s&&i&&n>=4.4&&!this._findOAuthInfo(e$1.resUrl_)?this._generateOAuthInfo({portalUrl:e$1.sinfo_.server,customBaseUrl:o,owningTenant:e$1.sinfo_._selfReq.owningTenant}).catch((()=>null)).then((()=>r)):r})).catch((()=>null)).then((t=>{e$1.sinfo_._selfReq=null,t?s(t.username,t.allSSL,t.portalToken,t.tokenExpiration):s();})):s();}_generateOAuthInfo(e){let t,r=null,i=e.portalUrl;const o=e.customBaseUrl,n=e.owningTenant,a=!this._defaultOAuthInfo&&this._createDefaultOAuthInfo&&!this._hasTestedIfAppIsOnPortal;if(a){r=window.location.href;let e=r.indexOf("?");e>-1&&(r=r.slice(0,e)),e=r.search(/\/(apps|home)\//),r=e>-1?r.slice(0,e):null;}return a&&r?(this._hasTestedIfAppIsOnPortal=!0,t=locale.U(r+"/sharing/rest",{query:{f:"json"}}).then((()=>{this._defaultOAuthInfo=new i$1({appId:"arcgisonline",popupCallbackUrl:r+"/home/oauth-callback.html"});}))):t=Promise.resolve(),t.then((()=>{if(this._defaultOAuthInfo)return i=i.replace(/^http:/i,"https:"),locale.U(i+"/sharing/rest/oauth2/validateRedirectUri",{query:{accountId:n,client_id:this._defaultOAuthInfo.appId,redirect_uri:locale._(this._defaultOAuthInfo.popupCallbackUrl),f:"json"}}).then((e=>{if(e.data.valid){const t=this._defaultOAuthInfo.clone();e.data.urlKey&&o?t.portalUrl="https://"+e.data.urlKey.toLowerCase()+"."+o:t.portalUrl=i,t.popup=window!==window.top||!(locale.F(i,this._appOrigin)||this._gwDomains.some((e=>e.regex.test(i)&&e.regex.test(this._appOrigin)))),this.oAuthInfos.push(t);}}))}))}_doOAuthSignIn(e,t,r,s){const o=r._oAuthCred,a={portalUrl:r.portalUrl};!r.popup&&r.preserveUrlHash&&window.location.hash&&(a.hash=window.location.hash),o.stateUID&&(a.uid=o.stateUID);const h={client_id:r.appId,response_type:o.codeVerifier?"code":"token",state:JSON.stringify(a),expiration:r.expiration,locale:r.locale,redirect_uri:this._getRedirectURI(r,!!o.codeVerifier)};r.forceLogin&&(h.force_login=!0),r.forceUserId&&r.userId&&(h.prepopulatedusername=r.userId),!r.popup&&this._doPortalSignIn(e)&&(h.redirectToUserOrgUrl=!0),o.codeVerifier&&(h.code_challenge=s||o.codeVerifier,h.code_challenge_method=s?"S256":"plain");const l=r.portalUrl.replace(/^http:/i,"https:")+"/sharing/oauth2/authorize",c=l+"?"+locale.v$1(h);if(r.popup){const e=window.open(c,"esriJSAPIOAuth",r.popupWindowFeatures);if(e)e.focus(),this._oAuthDfd.oAuthWin_=e,this._oAuthIntervalId=setInterval((()=>{if(e.closed){clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle.remove();const e=this._oAuthDfd;if(e){const t=new locale.s("identity-manager:user-aborted","ABORTED");e.reject(t);}}}),500),this._oAuthOnPopupHandle=locale.o$1(window,["arcgis:auth:hash","arcgis:auth:location:search"],(e=>{"arcgis:auth:hash"===e.type?this.setOAuthResponseHash(e.detail):this._setOAuthResponseQueryString(e.detail);}));else {const e=new locale.s("identity-manager:popup-blocked","ABORTED");this._oAuthDfd.reject(e);}}else this._rejectOnPersistedPageShow=!0,this._oAuthRedirectFunc?this._oAuthRedirectFunc({authorizeParams:h,authorizeUrl:l,resourceUrl:e,serverInfo:t,oAuthInfo:r}):window.location.href=c;}_getRedirectURI(e,t){const r=window.location.href.replace(/#.*$/,"");if(e.popup)return locale._(e.popupCallbackUrl);if(t){const e=locale.I(r);return e.query&&["code","error","error_description","message_code","persist","state"].forEach((t=>{delete e.query[t];})),locale.Et(e.path,e.query)}return r}}j.prototype.declaredClass="esri.identity.IdentityManagerBase";let E=class extends o$6.EventedAccessor{constructor(e){super(e),this._oAuthCred=null,this.tokenRefreshBuffer=2,e?._oAuthCred&&(this._oAuthCred=e._oAuthCred);}initialize(){this.resources=this.resources||[],null==this.creationTime&&(this.creationTime=Date.now());}refreshToken(){const e=locale.i,t=e.findServerInfo(this.server),s=t?.owningSystemUrl,i=!!s&&"server"===this.scope,o=i&&D(t,e._legacyFed),n=t.webTierAuth,a=n&&e.normalizeWebTierAuth,h=R[this.server],l=h?.[this.userId];let c,d=this.resources&&this.resources[0],u=i?e.findServerInfo(s):null,p={username:this.userId,password:l};if(n&&!a)return;i&&!u&&e.serverInfos.some((t=>(e._isIdProvider(s,t.server)&&(u=t),!!u)));const _=u?e.findCredential(u.server,this.userId):null;if(!i||_){if(!o){if(i)c={serverUrl:d,token:_?.token,ssl:_?.ssl};else if(a)p=null,c={ssl:this.ssl};else {if(!l){let r;return d&&(d=e._sanitizeUrl(d),this._enqueued=1,r=e._enqueue(d,t,null,null,this.isAdmin,this),r.then((()=>{this._enqueued=0,this.refreshServerTokens();})).catch((()=>{this._enqueued=0;}))),r}this.isAdmin&&(c={isAdmin:!0});}return e.generateToken(i?u:t,i?null:p,c).then((e=>{this.token=e.token,this.expires=null!=e.expires?Number(e.expires):null,this.creationTime=Date.now(),this.validity=e.validity,this.emitTokenChange(),this.refreshServerTokens();})).catch((()=>{}))}_?.refreshToken();}}refreshServerTokens(){if("portal"===this.scope){const e=locale.i;e.credentials.forEach((t=>{const r=e.findServerInfo(t.server),s=r?.owningSystemUrl;t!==this&&t.userId===this.userId&&s&&"server"===t.scope&&(e._hasSameServerInstance(this.server,s)||e._isIdProvider(s,this.server))&&(D(r,e._legacyFed)?(t.token=this.token,t.expires=this.expires,t.creationTime=this.creationTime,t.validity=this.validity,t.emitTokenChange()):t.refreshToken());}));}}emitTokenChange(e){clearTimeout(this._refreshTimer);const t=locale.i,s=this.server?t.findServerInfo(this.server):null,i=s?.owningSystemUrl,o=i?t.findServerInfo(i):null;!1===e||i&&"portal"!==this.scope&&(!o?.webTierAuth||t.normalizeWebTierAuth)||null==this.expires&&null==this.validity||this._startRefreshTimer(),this.emit("token-change");}destroy(){this.userId=this.server=this.token=this.expires=this.validity=this.resources=this.creationTime=null,this._oAuthCred&&(this._oAuthCred.destroy(),this._oAuthCred=null);const e=locale.i,t=e.credentials.indexOf(this);t>-1&&e.credentials.splice(t,1),this.emitTokenChange(),this.emit("destroy");}toJSON(){const e=locale.l$3({userId:this.userId,server:this.server,token:this.token,expires:this.expires,validity:this.validity,ssl:this.ssl,isAdmin:this.isAdmin,creationTime:this.creationTime,scope:this.scope}),t=this.resources;return t&&t.length>0&&(e.resources=t.slice()),e}_startRefreshTimer(){clearTimeout(this._refreshTimer);const e=6e4*this.tokenRefreshBuffer,t=2**31-1;let r=(this.validity?this.creationTime+6e4*this.validity:this.expires)-Date.now();r<0?r=0:r>t&&(r=t),this._refreshTimer=setTimeout(this.refreshToken.bind(this),r>e?r-e:r);}};locale.r$1([locale.m()],E.prototype,"creationTime",void 0),locale.r$1([locale.m()],E.prototype,"expires",void 0),locale.r$1([locale.m()],E.prototype,"isAdmin",void 0),locale.r$1([locale.m()],E.prototype,"oAuthState",void 0),locale.r$1([locale.m()],E.prototype,"resources",void 0),locale.r$1([locale.m()],E.prototype,"scope",void 0),locale.r$1([locale.m()],E.prototype,"server",void 0),locale.r$1([locale.m()],E.prototype,"ssl",void 0),locale.r$1([locale.m()],E.prototype,"token",void 0),locale.r$1([locale.m()],E.prototype,"tokenRefreshBuffer",void 0),locale.r$1([locale.m()],E.prototype,"userId",void 0),locale.r$1([locale.m()],E.prototype,"validity",void 0),E=locale.r$1([locale.a("esri.identity.Credential")],E);
4149
+
4150
+ /*
4151
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4152
+ See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4153
+ */
4154
+ class r extends j{}r.prototype.declaredClass="esri.identity.IdentityManager";const s=new r;locale.n$3(s);
4155
+
4156
+ const IdentityManager = /*#__PURE__*/Object.freeze({
4157
+ __proto__: null,
4158
+ 'default': s
4159
+ });
4160
+
4161
+ exports.CSS_UTILITY = CSS_UTILITY;
4162
+ exports.DEBOUNCE = DEBOUNCE;
4163
+ exports.Fragment = Fragment;
4164
+ exports.H = H;
4165
+ exports.Host = Host;
4166
+ exports.IdentityManager = IdentityManager;
4167
+ exports.createEvent = createEvent;
4168
+ exports.focusTrapStack = focusTrapStack;
4169
+ exports.forceUpdate = forceUpdate;
4170
+ exports.getAssetPath = getAssetPath;
4171
+ exports.h = h$1;
4172
+ exports.isBrowser = isBrowser;
4173
+ exports.proxyCustomElement = proxyCustomElement;
4174
+ exports.readTask = readTask;