q2-tecton-elements 1.54.3 → 1.55.0

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 (576) hide show
  1. package/dist/bundle-report.json +2135 -776
  2. package/dist/cjs/{index-76f63767.js → index-905f4c87.js} +3 -2
  3. package/dist/cjs/index-905f4c87.js.map +1 -0
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/q2-action-group.cjs.entry.js +45 -14
  6. package/dist/cjs/q2-action-group.cjs.entry.js.map +1 -1
  7. package/dist/cjs/q2-action-sheet.cjs.entry.js +4 -1364
  8. package/dist/cjs/q2-action-sheet.cjs.entry.js.map +1 -1
  9. package/dist/cjs/q2-avatar.cjs.entry.js +1 -1
  10. package/dist/cjs/q2-badge_7.cjs.entry.js +59 -22
  11. package/dist/cjs/q2-badge_7.cjs.entry.js.map +1 -1
  12. package/dist/cjs/q2-calendar.cjs.entry.js +2 -2
  13. package/dist/cjs/q2-calendar.cjs.entry.js.map +1 -1
  14. package/dist/cjs/q2-card.cjs.entry.js +1 -1
  15. package/dist/cjs/q2-carousel-pane.cjs.entry.js +3 -3
  16. package/dist/cjs/q2-carousel.cjs.entry.js +1 -1
  17. package/dist/cjs/q2-chart-area.cjs.entry.js +2 -2
  18. package/dist/cjs/q2-chart-bar.cjs.entry.js +2 -2
  19. package/dist/cjs/q2-chart-donut.cjs.entry.js +2 -2
  20. package/dist/cjs/q2-checkbox-group.cjs.entry.js +2 -2
  21. package/dist/cjs/q2-checkbox-group.cjs.entry.js.map +1 -1
  22. package/dist/cjs/q2-checkbox.cjs.entry.js +21 -21
  23. package/dist/cjs/q2-checkbox.cjs.entry.js.map +1 -1
  24. package/dist/cjs/q2-currency.cjs.entry.js +1 -1
  25. package/dist/cjs/q2-data-table.cjs.entry.js +1 -1
  26. package/dist/cjs/q2-detail.cjs.entry.js +2 -2
  27. package/dist/cjs/q2-dropdown-item.cjs.entry.js +22 -3
  28. package/dist/cjs/q2-dropdown-item.cjs.entry.js.map +1 -1
  29. package/dist/cjs/q2-dropdown.cjs.entry.js +1 -1
  30. package/dist/cjs/q2-editable-field.cjs.entry.js +1 -1
  31. package/dist/cjs/q2-file-picker.cjs.entry.js +2 -2
  32. package/dist/cjs/q2-file-picker.cjs.entry.js.map +1 -1
  33. package/dist/cjs/q2-form.cjs.entry.js +23 -0
  34. package/dist/cjs/q2-form.cjs.entry.js.map +1 -0
  35. package/dist/cjs/q2-formatted-text.cjs.entry.js +1 -1
  36. package/dist/cjs/q2-item_3.cjs.entry.js +3 -3
  37. package/dist/cjs/q2-legend.cjs.entry.js +2 -2
  38. package/dist/cjs/q2-legend.cjs.entry.js.map +1 -1
  39. package/dist/cjs/q2-loc.cjs.entry.js +20 -26
  40. package/dist/cjs/q2-loc.cjs.entry.js.map +1 -1
  41. package/dist/cjs/q2-message.cjs.entry.js +2 -2
  42. package/dist/cjs/q2-modal.cjs.entry.js +172 -0
  43. package/dist/cjs/q2-modal.cjs.entry.js.map +1 -0
  44. package/dist/cjs/q2-month-picker.cjs.entry.js +3 -3
  45. package/dist/cjs/q2-optgroup.cjs.entry.js +2 -2
  46. package/dist/cjs/q2-option-list_2.cjs.entry.js +9 -7
  47. package/dist/cjs/q2-option-list_2.cjs.entry.js.map +1 -1
  48. package/dist/cjs/q2-option.cjs.entry.js +37 -25
  49. package/dist/cjs/q2-option.cjs.entry.js.map +1 -1
  50. package/dist/cjs/q2-pagination.cjs.entry.js +4 -4
  51. package/dist/cjs/q2-pill.cjs.entry.js +2 -2
  52. package/dist/cjs/q2-radio-group.cjs.entry.js +2 -2
  53. package/dist/cjs/q2-radio-group.cjs.entry.js.map +1 -1
  54. package/dist/cjs/q2-radio.cjs.entry.js +1 -1
  55. package/dist/cjs/q2-relative-time.cjs.entry.js +2 -2
  56. package/dist/cjs/q2-resize-observer.cjs.entry.js +2 -2
  57. package/dist/cjs/q2-resize-observer.cjs.entry.js.map +1 -1
  58. package/dist/cjs/q2-section.cjs.entry.js +3 -3
  59. package/dist/cjs/q2-select.cjs.entry.js +10 -6
  60. package/dist/cjs/q2-select.cjs.entry.js.map +1 -1
  61. package/dist/cjs/q2-stepper-pane.cjs.entry.js +1 -1
  62. package/dist/cjs/q2-stepper-vertical.cjs.entry.js +2 -2
  63. package/dist/cjs/q2-stepper.cjs.entry.js +2 -2
  64. package/dist/cjs/q2-tag.cjs.entry.js +51 -9
  65. package/dist/cjs/q2-tag.cjs.entry.js.map +1 -1
  66. package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
  67. package/dist/cjs/q2-textarea.cjs.entry.js +3 -3
  68. package/dist/cjs/q2-textarea.cjs.entry.js.map +1 -1
  69. package/dist/cjs/q2-tooltip.cjs.entry.js +2 -2
  70. package/dist/cjs/q2-tooltip.cjs.entry.js.map +1 -1
  71. package/dist/cjs/sanitize-html-string-b8e3b24b.js +1366 -0
  72. package/dist/cjs/sanitize-html-string-b8e3b24b.js.map +1 -0
  73. package/dist/cjs/tecton-tab-pane.cjs.entry.js +2 -2
  74. package/dist/collection/collection-manifest.json +3 -1
  75. package/dist/collection/components/click-elsewhere/click-elsewhere.js.map +1 -1
  76. package/dist/collection/components/click-elsewhere/test/click-elsewhere-test.e2e.js.map +1 -1
  77. package/dist/collection/components/q2-action-group/q2-action-group.css +11 -4
  78. package/dist/collection/components/q2-action-group/q2-action-group.js +47 -13
  79. package/dist/collection/components/q2-action-group/q2-action-group.js.map +1 -1
  80. package/dist/collection/components/q2-action-group/test/q2-action-group-test.e2e.js +365 -0
  81. package/dist/collection/components/q2-action-group/test/q2-action-group-test.e2e.js.map +1 -0
  82. package/dist/collection/components/q2-action-group/test/{q2-action-group.spec.js → q2-action-group-test.spec.js} +67 -26
  83. package/dist/collection/components/q2-action-group/test/q2-action-group-test.spec.js.map +1 -0
  84. package/dist/collection/components/q2-action-sheet/q2-action-sheet.js +1 -1
  85. package/dist/collection/components/q2-action-sheet/q2-action-sheet.js.map +1 -1
  86. package/dist/collection/components/q2-action-sheet/test/q2-action-sheet-test.e2e.js.map +1 -1
  87. package/dist/collection/components/q2-avatar/q2-avatar.js +1 -1
  88. package/dist/collection/components/q2-avatar/q2-avatar.js.map +1 -1
  89. package/dist/collection/components/q2-avatar/test/q2-avatar-test.e2e.js.map +1 -1
  90. package/dist/collection/components/q2-badge/q2-badge.css +52 -41
  91. package/dist/collection/components/q2-badge/q2-badge.js +88 -22
  92. package/dist/collection/components/q2-badge/q2-badge.js.map +1 -1
  93. package/dist/collection/components/q2-badge/test/q2-badge-test.e2e.js +35 -126
  94. package/dist/collection/components/q2-badge/test/q2-badge-test.e2e.js.map +1 -1
  95. package/dist/collection/components/q2-badge/test/q2-badge-test.spec.js +415 -0
  96. package/dist/collection/components/q2-badge/test/q2-badge-test.spec.js.map +1 -0
  97. package/dist/collection/components/q2-btn/q2-btn.css +12 -10
  98. package/dist/collection/components/q2-btn/q2-btn.js.map +1 -1
  99. package/dist/collection/components/q2-btn/test/q2-btn-test.e2e.js.map +1 -1
  100. package/dist/collection/components/q2-calendar/q2-calendar-helpers.js.map +1 -1
  101. package/dist/collection/components/q2-calendar/q2-calendar-types.js.map +1 -1
  102. package/dist/collection/components/q2-calendar/q2-calendar-validation.js.map +1 -1
  103. package/dist/collection/components/q2-calendar/q2-calendar.css +2 -0
  104. package/dist/collection/components/q2-calendar/q2-calendar.js.map +1 -1
  105. package/dist/collection/components/q2-calendar/q2-month-picker.js +2 -2
  106. package/dist/collection/components/q2-calendar/q2-month-picker.js.map +1 -1
  107. package/dist/collection/components/q2-calendar/test/helpers-test.e2e.js.map +1 -1
  108. package/dist/collection/components/q2-calendar/test/q2-calendar-month-picker-test.e2e.js.map +1 -1
  109. package/dist/collection/components/q2-calendar/test/q2-calendar-test.e2e.js.map +1 -1
  110. package/dist/collection/components/q2-calendar/test/validation-test.e2e.js.map +1 -1
  111. package/dist/collection/components/q2-card/q2-card.js.map +1 -1
  112. package/dist/collection/components/q2-card/test/q2-card-test.e2e.js.map +1 -1
  113. package/dist/collection/components/q2-carousel/q2-carousel.js.map +1 -1
  114. package/dist/collection/components/q2-carousel/test/q2-carousel-test.e2e.js.map +1 -1
  115. package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.js +2 -2
  116. package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.js.map +1 -1
  117. package/dist/collection/components/q2-carousel-pane/test/q2-carousel-pane-test.e2e.js.map +1 -1
  118. package/dist/collection/components/q2-carousel-pane/test/q2-carousel-pane-test.spec.js.map +1 -1
  119. package/dist/collection/components/q2-chart-area/q2-chart-area.js +1 -1
  120. package/dist/collection/components/q2-chart-area/q2-chart-area.js.map +1 -1
  121. package/dist/collection/components/q2-chart-area/test/q2-chart-area-test.e2e.js.map +1 -1
  122. package/dist/collection/components/q2-chart-bar/q2-chart-bar.js +1 -1
  123. package/dist/collection/components/q2-chart-bar/q2-chart-bar.js.map +1 -1
  124. package/dist/collection/components/q2-chart-bar/test/q2-chart-bar-test.e2e.js.map +1 -1
  125. package/dist/collection/components/q2-chart-donut/q2-chart-donut.js +1 -1
  126. package/dist/collection/components/q2-chart-donut/q2-chart-donut.js.map +1 -1
  127. package/dist/collection/components/q2-chart-donut/test/q2-chart-donut-test.e2e.js.map +1 -1
  128. package/dist/collection/components/q2-checkbox/q2-checkbox.css +99 -62
  129. package/dist/collection/components/q2-checkbox/q2-checkbox.js +19 -19
  130. package/dist/collection/components/q2-checkbox/q2-checkbox.js.map +1 -1
  131. package/dist/collection/components/q2-checkbox/test/q2-checkbox-test.e2e.js +227 -208
  132. package/dist/collection/components/q2-checkbox/test/q2-checkbox-test.e2e.js.map +1 -1
  133. package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.css +8 -1
  134. package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.js.map +1 -1
  135. package/dist/collection/components/q2-checkbox-group/test/q2-checkbox-group-test.e2e.js.map +1 -1
  136. package/dist/collection/components/q2-currency/q2-currency.js +1 -1
  137. package/dist/collection/components/q2-currency/q2-currency.js.map +1 -1
  138. package/dist/collection/components/q2-currency/test/q2-currency-test.e2e.js.map +1 -1
  139. package/dist/collection/components/q2-data-table/q2-data-table.js.map +1 -1
  140. package/dist/collection/components/q2-data-table/test/q2-data-table-test.e2e.js.map +1 -1
  141. package/dist/collection/components/q2-detail/q2-detail.js +1 -1
  142. package/dist/collection/components/q2-detail/q2-detail.js.map +1 -1
  143. package/dist/collection/components/q2-detail/test/q2-detail-test.e2e.js.map +1 -1
  144. package/dist/collection/components/q2-dropdown/q2-dropdown.js.map +1 -1
  145. package/dist/collection/components/q2-dropdown/test/q2-dropdown-test.e2e.js +38 -2
  146. package/dist/collection/components/q2-dropdown/test/q2-dropdown-test.e2e.js.map +1 -1
  147. package/dist/collection/components/q2-dropdown-item/q2-dropdown-item.js +21 -2
  148. package/dist/collection/components/q2-dropdown-item/q2-dropdown-item.js.map +1 -1
  149. package/dist/collection/components/q2-dropdown-item/test/q2-dropdown-item-test.e2e.js +43 -2
  150. package/dist/collection/components/q2-dropdown-item/test/q2-dropdown-item-test.e2e.js.map +1 -1
  151. package/dist/collection/components/q2-editable-field/q2-editable-field.js.map +1 -1
  152. package/dist/collection/components/q2-editable-field/test/q2-editable-field-test.e2e.js.map +1 -1
  153. package/dist/collection/components/q2-example/q2-example.js.map +1 -1
  154. package/dist/collection/components/q2-example/test/q2-example.e2e.js.map +1 -1
  155. package/dist/collection/components/q2-example/test/q2-example.spec.js.map +1 -1
  156. package/dist/collection/components/q2-file-picker/q2-file-picker.css +2 -0
  157. package/dist/collection/components/q2-file-picker/q2-file-picker.js.map +1 -1
  158. package/dist/collection/components/q2-file-picker/test/q2-file-picker-test.e2e.js.map +1 -1
  159. package/dist/collection/components/q2-file-picker/test/q2-file-picker-test.spec.js.map +1 -1
  160. package/dist/collection/components/q2-form/q2-form.css +93 -0
  161. package/dist/collection/components/q2-form/q2-form.js +44 -0
  162. package/dist/collection/components/q2-form/q2-form.js.map +1 -0
  163. package/dist/collection/components/q2-form/test/q2-form-test.e2e.js +93 -0
  164. package/dist/collection/components/q2-form/test/q2-form-test.e2e.js.map +1 -0
  165. package/dist/collection/components/q2-formatted-text/q2-formatted-text.js +1 -1
  166. package/dist/collection/components/q2-formatted-text/q2-formatted-text.js.map +1 -1
  167. package/dist/collection/components/q2-formatted-text/test/q2-formatted-text-test.e2e.js.map +1 -1
  168. package/dist/collection/components/q2-icon/q2-icon-types.js.map +1 -1
  169. package/dist/collection/components/q2-icon/q2-icon.js.map +1 -1
  170. package/dist/collection/components/q2-icon/test/q2-icon-test.e2e.js +1 -352
  171. package/dist/collection/components/q2-icon/test/q2-icon-test.e2e.js.map +1 -1
  172. package/dist/collection/components/q2-icon/test/q2-icon-test.spec.js +464 -0
  173. package/dist/collection/components/q2-icon/test/q2-icon-test.spec.js.map +1 -0
  174. package/dist/collection/components/q2-input/formatting/alpha.js.map +1 -1
  175. package/dist/collection/components/q2-input/formatting/alpha.spec.js.map +1 -1
  176. package/dist/collection/components/q2-input/formatting/alphanumeric.js.map +1 -1
  177. package/dist/collection/components/q2-input/formatting/alphanumeric.spec.js.map +1 -1
  178. package/dist/collection/components/q2-input/formatting/credit-card.js.map +1 -1
  179. package/dist/collection/components/q2-input/formatting/credit-card.spec.js.map +1 -1
  180. package/dist/collection/components/q2-input/formatting/currency.js.map +1 -1
  181. package/dist/collection/components/q2-input/formatting/currency.spec.js.map +1 -1
  182. package/dist/collection/components/q2-input/formatting/date.js.map +1 -1
  183. package/dist/collection/components/q2-input/formatting/date.spec.js.map +1 -1
  184. package/dist/collection/components/q2-input/formatting/generic.js.map +1 -1
  185. package/dist/collection/components/q2-input/formatting/number.js.map +1 -1
  186. package/dist/collection/components/q2-input/formatting/numeric.js.map +1 -1
  187. package/dist/collection/components/q2-input/formatting/numeric.spec.js.map +1 -1
  188. package/dist/collection/components/q2-input/formatting/phone.js.map +1 -1
  189. package/dist/collection/components/q2-input/formatting/phone.spec.js.map +1 -1
  190. package/dist/collection/components/q2-input/formatting/postal.js.map +1 -1
  191. package/dist/collection/components/q2-input/formatting/postal.spec.js.map +1 -1
  192. package/dist/collection/components/q2-input/formatting/ssn.js.map +1 -1
  193. package/dist/collection/components/q2-input/formatting/ssn.spec.js.map +1 -1
  194. package/dist/collection/components/q2-input/formatting/tin.js.map +1 -1
  195. package/dist/collection/components/q2-input/formatting/tin.spec.js.map +1 -1
  196. package/dist/collection/components/q2-input/q2-input-types.js.map +1 -1
  197. package/dist/collection/components/q2-input/q2-input.css +3 -2
  198. package/dist/collection/components/q2-input/q2-input.js +4 -3
  199. package/dist/collection/components/q2-input/q2-input.js.map +1 -1
  200. package/dist/collection/components/q2-input/test/q2-input-credit-card-test.e2e.js.map +1 -1
  201. package/dist/collection/components/q2-input/test/q2-input-test.e2e.js.map +1 -1
  202. package/dist/collection/components/q2-input/test/q2-input-test.spec.js +10 -0
  203. package/dist/collection/components/q2-input/test/q2-input-test.spec.js.map +1 -1
  204. package/dist/collection/components/q2-item/q2-item.js +1 -1
  205. package/dist/collection/components/q2-item/q2-item.js.map +1 -1
  206. package/dist/collection/components/q2-item/test/q2-item-test.e2e.js.map +1 -1
  207. package/dist/collection/components/q2-item/test/q2-item-test.spec.js.map +1 -1
  208. package/dist/collection/components/q2-legend/q2-legend.css +1 -1
  209. package/dist/collection/components/q2-legend/q2-legend.js +1 -1
  210. package/dist/collection/components/q2-legend/q2-legend.js.map +1 -1
  211. package/dist/collection/components/q2-legend/test/q2-legend-test.e2e.js.map +1 -1
  212. package/dist/collection/components/q2-legend/test/q2-legend-test.spec.js.map +1 -1
  213. package/dist/collection/components/q2-link/q2-link.js.map +1 -1
  214. package/dist/collection/components/q2-link/test/q2-link-test.e2e.js.map +1 -1
  215. package/dist/collection/components/q2-link/test/q2-link-test.spec.js.map +1 -1
  216. package/dist/collection/components/q2-list/q2-list.js +1 -1
  217. package/dist/collection/components/q2-list/q2-list.js.map +1 -1
  218. package/dist/collection/components/q2-list/test/q2-list-test.e2e.js.map +1 -1
  219. package/dist/collection/components/q2-loading/q2-loading.js.map +1 -1
  220. package/dist/collection/components/q2-loading/skeleton/q2-loading-element/index.js.map +1 -1
  221. package/dist/collection/components/q2-loading/skeleton/shapes.js.map +1 -1
  222. package/dist/collection/components/q2-loading/test/q2-loading-element-test.e2e.js.map +1 -1
  223. package/dist/collection/components/q2-loading/test/q2-loading-test.e2e.js.map +1 -1
  224. package/dist/collection/components/q2-loc/q2-loc.js +19 -37
  225. package/dist/collection/components/q2-loc/q2-loc.js.map +1 -1
  226. package/dist/collection/components/q2-loc/test/q2-loc-test.e2e.js +1 -7
  227. package/dist/collection/components/q2-loc/test/q2-loc-test.e2e.js.map +1 -1
  228. package/dist/collection/components/q2-loc/test/q2-loc-test.spec.js +140 -82
  229. package/dist/collection/components/q2-loc/test/q2-loc-test.spec.js.map +1 -1
  230. package/dist/collection/components/q2-message/q2-message.js +1 -1
  231. package/dist/collection/components/q2-message/q2-message.js.map +1 -1
  232. package/dist/collection/components/q2-message/test/q2-message-test.e2e.js.map +1 -1
  233. package/dist/collection/components/q2-modal/q2-modal.css +223 -0
  234. package/dist/collection/components/q2-modal/q2-modal.js +470 -0
  235. package/dist/collection/components/q2-modal/q2-modal.js.map +1 -0
  236. package/dist/collection/components/q2-modal/test/q2-modal-test.e2e.js +102 -0
  237. package/dist/collection/components/q2-modal/test/q2-modal-test.e2e.js.map +1 -0
  238. package/dist/collection/components/q2-modal/test/q2-modal-test.spec.js +127 -0
  239. package/dist/collection/components/q2-modal/test/q2-modal-test.spec.js.map +1 -0
  240. package/dist/collection/components/q2-optgroup/q2-optgroup.js +1 -1
  241. package/dist/collection/components/q2-optgroup/q2-optgroup.js.map +1 -1
  242. package/dist/collection/components/q2-optgroup/test/q2-optgroup-test.e2e.js.map +1 -1
  243. package/dist/collection/components/q2-option/q2-option.js +51 -25
  244. package/dist/collection/components/q2-option/q2-option.js.map +1 -1
  245. package/dist/collection/components/q2-option/test/q2-option-test.e2e.js +40 -94
  246. package/dist/collection/components/q2-option/test/q2-option-test.e2e.js.map +1 -1
  247. package/dist/collection/components/q2-option/test/q2-option-test.spec.js +137 -19
  248. package/dist/collection/components/q2-option/test/q2-option-test.spec.js.map +1 -1
  249. package/dist/collection/components/q2-option-list/q2-option-list.js +7 -5
  250. package/dist/collection/components/q2-option-list/q2-option-list.js.map +1 -1
  251. package/dist/collection/components/q2-option-list/test/q2-option-list-test.e2e.js.map +1 -1
  252. package/dist/collection/components/q2-option-list/test/q2-option-list.spec.js.map +1 -1
  253. package/dist/collection/components/q2-pagination/q2-pagination.js +3 -3
  254. package/dist/collection/components/q2-pagination/q2-pagination.js.map +1 -1
  255. package/dist/collection/components/q2-pagination/test/q2-pagination-test.e2e.js.map +1 -1
  256. package/dist/collection/components/q2-pill/q2-pill.js +1 -1
  257. package/dist/collection/components/q2-pill/q2-pill.js.map +1 -1
  258. package/dist/collection/components/q2-pill/test/q2-pill-test.e2e.js.map +1 -1
  259. package/dist/collection/components/q2-popover/q2-popover.js +1 -1
  260. package/dist/collection/components/q2-popover/q2-popover.js.map +1 -1
  261. package/dist/collection/components/q2-popover/test/q2-popover-test.e2e.js.map +1 -1
  262. package/dist/collection/components/q2-popover/test/q2-popover-test.spec.js.map +1 -1
  263. package/dist/collection/components/q2-radio/q2-radio.js.map +1 -1
  264. package/dist/collection/components/q2-radio/test/q2-radio-test.e2e.js.map +1 -1
  265. package/dist/collection/components/q2-radio-group/q2-radio-group.css +4 -2
  266. package/dist/collection/components/q2-radio-group/q2-radio-group.js.map +1 -1
  267. package/dist/collection/components/q2-radio-group/test/q2-radio-group-test.e2e.js.map +1 -1
  268. package/dist/collection/components/q2-relative-time/q2-relative-time.js +1 -1
  269. package/dist/collection/components/q2-relative-time/q2-relative-time.js.map +1 -1
  270. package/dist/collection/components/q2-relative-time/test/q2-relative-time-test.e2e.js.map +1 -1
  271. package/dist/collection/components/q2-resize-observer/q2-resize-observer.js +2 -2
  272. package/dist/collection/components/q2-resize-observer/q2-resize-observer.js.map +1 -1
  273. package/dist/collection/components/q2-resize-observer/test/q2-resize-observer.e2e.js.map +1 -1
  274. package/dist/collection/components/q2-resize-observer/test/q2-resize-observer.spec.js.map +1 -1
  275. package/dist/collection/components/q2-section/q2-section.js +2 -2
  276. package/dist/collection/components/q2-section/q2-section.js.map +1 -1
  277. package/dist/collection/components/q2-section/test/q2-section-test.e2e.js.map +1 -1
  278. package/dist/collection/components/q2-select/q2-select.css +2 -2
  279. package/dist/collection/components/q2-select/q2-select.js +15 -4
  280. package/dist/collection/components/q2-select/q2-select.js.map +1 -1
  281. package/dist/collection/components/q2-select/test/q2-select-test.e2e.js +5 -1
  282. package/dist/collection/components/q2-select/test/q2-select-test.e2e.js.map +1 -1
  283. package/dist/collection/components/q2-select/test/q2-select-test.spec.js +85 -0
  284. package/dist/collection/components/q2-select/test/q2-select-test.spec.js.map +1 -0
  285. package/dist/collection/components/q2-stepper/q2-stepper.js +1 -1
  286. package/dist/collection/components/q2-stepper/q2-stepper.js.map +1 -1
  287. package/dist/collection/components/q2-stepper/test/q2-stepper-test.e2e.js.map +1 -1
  288. package/dist/collection/components/q2-stepper-pane/q2-stepper-pane.js.map +1 -1
  289. package/dist/collection/components/q2-stepper-pane/test/q2-stepper-pane-test.e2e.js.map +1 -1
  290. package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js +1 -1
  291. package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js.map +1 -1
  292. package/dist/collection/components/q2-stepper-vertical/test/q2-stepper-vertical-test.e2e.js.map +1 -1
  293. package/dist/collection/components/q2-tab-container/q2-tab-container.js +1 -1
  294. package/dist/collection/components/q2-tab-container/q2-tab-container.js.map +1 -1
  295. package/dist/collection/components/q2-tab-container/test/q2-tab-container-test.e2e.js.map +1 -1
  296. package/dist/collection/components/q2-tab-container/test/q2-tab-container-test.spec.js.map +1 -1
  297. package/dist/collection/components/q2-tab-pane/q2-tab-pane.js +1 -1
  298. package/dist/collection/components/q2-tab-pane/q2-tab-pane.js.map +1 -1
  299. package/dist/collection/components/q2-tab-pane/test/q2-tab-pane-test.e2e.js.map +1 -1
  300. package/dist/collection/components/q2-tag/q2-tag.css +9 -0
  301. package/dist/collection/components/q2-tag/q2-tag.js +65 -15
  302. package/dist/collection/components/q2-tag/q2-tag.js.map +1 -1
  303. package/dist/collection/components/q2-tag/test/q2-tag-test.e2e.js +131 -341
  304. package/dist/collection/components/q2-tag/test/q2-tag-test.e2e.js.map +1 -1
  305. package/dist/collection/components/q2-tag/test/q2-tag-test.spec.js +719 -0
  306. package/dist/collection/components/q2-tag/test/q2-tag-test.spec.js.map +1 -0
  307. package/dist/collection/components/q2-textarea/q2-textarea.css +2 -2
  308. package/dist/collection/components/q2-textarea/q2-textarea.js +1 -1
  309. package/dist/collection/components/q2-textarea/q2-textarea.js.map +1 -1
  310. package/dist/collection/components/q2-textarea/test/q2-textarea-test.e2e.js.map +1 -1
  311. package/dist/collection/components/q2-tooltip/q2-tooltip.css +0 -1
  312. package/dist/collection/components/q2-tooltip/q2-tooltip.js.map +1 -1
  313. package/dist/collection/components/q2-tooltip/test/q2-tooltip-test.e2e.js.map +1 -1
  314. package/dist/collection/components/tecton-tab-pane/tecton-tab-pane-types.js.map +1 -1
  315. package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.js +2 -2
  316. package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.js.map +1 -1
  317. package/dist/collection/components/tecton-tab-pane/test/tecton-tab-pane-test.e2e.js.map +1 -1
  318. package/dist/collection/index.js.map +1 -1
  319. package/dist/collection/utils/action-sheet.js.map +1 -1
  320. package/dist/collection/utils/charting.js.map +1 -1
  321. package/dist/collection/utils/helpers.js +1 -25
  322. package/dist/collection/utils/helpers.js.map +1 -1
  323. package/dist/collection/utils/index.js +2 -1
  324. package/dist/collection/utils/index.js.map +1 -1
  325. package/dist/collection/utils/mirror-emit.js +19 -0
  326. package/dist/collection/utils/mirror-emit.js.map +1 -0
  327. package/dist/collection/utils/sanitize-html-string.js.map +1 -1
  328. package/dist/collection/utils/sanitize-regex-string.js.map +1 -1
  329. package/dist/collection/utils/test/action-sheet-test.e2e.js.map +1 -1
  330. package/dist/collection/utils/test/index.spec.js.map +1 -1
  331. package/dist/components/index.js +4 -0
  332. package/dist/components/index.js.map +1 -1
  333. package/dist/components/index2.js +2 -1
  334. package/dist/components/index2.js.map +1 -1
  335. package/dist/components/q2-action-group.js +1 -116
  336. package/dist/components/q2-action-group.js.map +1 -1
  337. package/dist/components/q2-action-group2.js +151 -0
  338. package/dist/components/q2-action-group2.js.map +1 -0
  339. package/dist/components/q2-action-sheet.js +2 -1362
  340. package/dist/components/q2-action-sheet.js.map +1 -1
  341. package/dist/components/q2-avatar2.js +1 -1
  342. package/dist/components/q2-badge2.js +54 -16
  343. package/dist/components/q2-badge2.js.map +1 -1
  344. package/dist/components/q2-btn2.js +1 -1
  345. package/dist/components/q2-btn2.js.map +1 -1
  346. package/dist/components/q2-calendar.js +1 -1
  347. package/dist/components/q2-calendar.js.map +1 -1
  348. package/dist/components/q2-carousel-pane.js +2 -2
  349. package/dist/components/q2-chart-area.js +1 -1
  350. package/dist/components/q2-chart-bar.js +1 -1
  351. package/dist/components/q2-chart-donut.js +1 -1
  352. package/dist/components/q2-checkbox-group.js +1 -1
  353. package/dist/components/q2-checkbox-group.js.map +1 -1
  354. package/dist/components/q2-checkbox2.js +20 -20
  355. package/dist/components/q2-checkbox2.js.map +1 -1
  356. package/dist/components/q2-currency.js +1 -1
  357. package/dist/components/q2-detail.js +1 -1
  358. package/dist/components/q2-dropdown-item2.js +21 -2
  359. package/dist/components/q2-dropdown-item2.js.map +1 -1
  360. package/dist/components/q2-file-picker.js +1 -1
  361. package/dist/components/q2-file-picker.js.map +1 -1
  362. package/dist/components/q2-form.d.ts +11 -0
  363. package/dist/components/q2-form.js +39 -0
  364. package/dist/components/q2-form.js.map +1 -0
  365. package/dist/components/q2-formatted-text.js +1 -1
  366. package/dist/components/q2-input2.js +5 -4
  367. package/dist/components/q2-input2.js.map +1 -1
  368. package/dist/components/q2-item2.js +1 -1
  369. package/dist/components/q2-legend2.js +2 -2
  370. package/dist/components/q2-legend2.js.map +1 -1
  371. package/dist/components/q2-list2.js +1 -1
  372. package/dist/components/q2-loc.js +22 -33
  373. package/dist/components/q2-loc.js.map +1 -1
  374. package/dist/components/q2-message2.js +1 -1
  375. package/dist/components/q2-modal.d.ts +11 -0
  376. package/dist/components/q2-modal.js +231 -0
  377. package/dist/components/q2-modal.js.map +1 -0
  378. package/dist/components/q2-month-picker.js +2 -2
  379. package/dist/components/q2-optgroup2.js +1 -1
  380. package/dist/components/q2-option-list2.js +7 -5
  381. package/dist/components/q2-option-list2.js.map +1 -1
  382. package/dist/components/q2-option2.js +38 -26
  383. package/dist/components/q2-option2.js.map +1 -1
  384. package/dist/components/q2-pagination.js +3 -3
  385. package/dist/components/q2-pill.js +1 -1
  386. package/dist/components/q2-popover2.js +1 -1
  387. package/dist/components/q2-radio-group.js +1 -1
  388. package/dist/components/q2-radio-group.js.map +1 -1
  389. package/dist/components/q2-relative-time.js +1 -1
  390. package/dist/components/q2-resize-observer2.js +2 -2
  391. package/dist/components/q2-resize-observer2.js.map +1 -1
  392. package/dist/components/q2-section.js +2 -2
  393. package/dist/components/q2-select2.js +9 -5
  394. package/dist/components/q2-select2.js.map +1 -1
  395. package/dist/components/q2-stepper-vertical.js +1 -1
  396. package/dist/components/q2-stepper.js +1 -1
  397. package/dist/components/q2-tab-container.js +1 -1
  398. package/dist/components/q2-tab-pane.js +1 -1
  399. package/dist/components/q2-tag.js +50 -8
  400. package/dist/components/q2-tag.js.map +1 -1
  401. package/dist/components/q2-textarea.js +2 -2
  402. package/dist/components/q2-textarea.js.map +1 -1
  403. package/dist/components/q2-tooltip.js +1 -1
  404. package/dist/components/q2-tooltip.js.map +1 -1
  405. package/dist/components/sanitize-html-string.js +1364 -0
  406. package/dist/components/sanitize-html-string.js.map +1 -0
  407. package/dist/components/tecton-tab-pane.js +2 -2
  408. package/dist/esm/{index-504f1a9e.js → index-f2a66217.js} +3 -2
  409. package/dist/esm/index-f2a66217.js.map +1 -0
  410. package/dist/esm/loader.js +1 -1
  411. package/dist/esm/q2-action-group.entry.js +45 -14
  412. package/dist/esm/q2-action-group.entry.js.map +1 -1
  413. package/dist/esm/q2-action-sheet.entry.js +3 -1363
  414. package/dist/esm/q2-action-sheet.entry.js.map +1 -1
  415. package/dist/esm/q2-avatar.entry.js +1 -1
  416. package/dist/esm/q2-badge_7.entry.js +59 -22
  417. package/dist/esm/q2-badge_7.entry.js.map +1 -1
  418. package/dist/esm/q2-calendar.entry.js +2 -2
  419. package/dist/esm/q2-calendar.entry.js.map +1 -1
  420. package/dist/esm/q2-card.entry.js +1 -1
  421. package/dist/esm/q2-carousel-pane.entry.js +3 -3
  422. package/dist/esm/q2-carousel.entry.js +1 -1
  423. package/dist/esm/q2-chart-area.entry.js +2 -2
  424. package/dist/esm/q2-chart-bar.entry.js +2 -2
  425. package/dist/esm/q2-chart-donut.entry.js +2 -2
  426. package/dist/esm/q2-checkbox-group.entry.js +2 -2
  427. package/dist/esm/q2-checkbox-group.entry.js.map +1 -1
  428. package/dist/esm/q2-checkbox.entry.js +21 -21
  429. package/dist/esm/q2-checkbox.entry.js.map +1 -1
  430. package/dist/esm/q2-currency.entry.js +1 -1
  431. package/dist/esm/q2-data-table.entry.js +1 -1
  432. package/dist/esm/q2-detail.entry.js +2 -2
  433. package/dist/esm/q2-dropdown-item.entry.js +22 -3
  434. package/dist/esm/q2-dropdown-item.entry.js.map +1 -1
  435. package/dist/esm/q2-dropdown.entry.js +1 -1
  436. package/dist/esm/q2-editable-field.entry.js +1 -1
  437. package/dist/esm/q2-file-picker.entry.js +2 -2
  438. package/dist/esm/q2-file-picker.entry.js.map +1 -1
  439. package/dist/esm/q2-form.entry.js +19 -0
  440. package/dist/esm/q2-form.entry.js.map +1 -0
  441. package/dist/esm/q2-formatted-text.entry.js +1 -1
  442. package/dist/esm/q2-item_3.entry.js +3 -3
  443. package/dist/esm/q2-legend.entry.js +2 -2
  444. package/dist/esm/q2-legend.entry.js.map +1 -1
  445. package/dist/esm/q2-loc.entry.js +21 -27
  446. package/dist/esm/q2-loc.entry.js.map +1 -1
  447. package/dist/esm/q2-message.entry.js +2 -2
  448. package/dist/esm/q2-modal.entry.js +168 -0
  449. package/dist/esm/q2-modal.entry.js.map +1 -0
  450. package/dist/esm/q2-month-picker.entry.js +3 -3
  451. package/dist/esm/q2-optgroup.entry.js +2 -2
  452. package/dist/esm/q2-option-list_2.entry.js +9 -7
  453. package/dist/esm/q2-option-list_2.entry.js.map +1 -1
  454. package/dist/esm/q2-option.entry.js +37 -25
  455. package/dist/esm/q2-option.entry.js.map +1 -1
  456. package/dist/esm/q2-pagination.entry.js +4 -4
  457. package/dist/esm/q2-pill.entry.js +2 -2
  458. package/dist/esm/q2-radio-group.entry.js +2 -2
  459. package/dist/esm/q2-radio-group.entry.js.map +1 -1
  460. package/dist/esm/q2-radio.entry.js +1 -1
  461. package/dist/esm/q2-relative-time.entry.js +2 -2
  462. package/dist/esm/q2-resize-observer.entry.js +2 -2
  463. package/dist/esm/q2-resize-observer.entry.js.map +1 -1
  464. package/dist/esm/q2-section.entry.js +3 -3
  465. package/dist/esm/q2-select.entry.js +10 -6
  466. package/dist/esm/q2-select.entry.js.map +1 -1
  467. package/dist/esm/q2-stepper-pane.entry.js +1 -1
  468. package/dist/esm/q2-stepper-vertical.entry.js +2 -2
  469. package/dist/esm/q2-stepper.entry.js +2 -2
  470. package/dist/esm/q2-tag.entry.js +51 -9
  471. package/dist/esm/q2-tag.entry.js.map +1 -1
  472. package/dist/esm/q2-tecton-elements.js +1 -1
  473. package/dist/esm/q2-textarea.entry.js +3 -3
  474. package/dist/esm/q2-textarea.entry.js.map +1 -1
  475. package/dist/esm/q2-tooltip.entry.js +2 -2
  476. package/dist/esm/q2-tooltip.entry.js.map +1 -1
  477. package/dist/esm/sanitize-html-string-735c19f5.js +1364 -0
  478. package/dist/esm/sanitize-html-string-735c19f5.js.map +1 -0
  479. package/dist/esm/tecton-tab-pane.entry.js +2 -2
  480. package/dist/jest.setup.js +22 -0
  481. package/dist/jest.setup.js.map +1 -0
  482. package/dist/q2-tecton-elements/{index-504f1a9e.js → index-f2a66217.js} +9 -8
  483. package/dist/q2-tecton-elements/index-f2a66217.js.map +1 -0
  484. package/dist/q2-tecton-elements/q2-action-group.entry.js +49 -17
  485. package/dist/q2-tecton-elements/q2-action-group.entry.js.map +1 -1
  486. package/dist/q2-tecton-elements/q2-action-sheet.entry.js +121 -1331
  487. package/dist/q2-tecton-elements/q2-action-sheet.entry.js.map +1 -1
  488. package/dist/q2-tecton-elements/q2-avatar.entry.js +6 -6
  489. package/dist/q2-tecton-elements/q2-badge_7.entry.js +199 -164
  490. package/dist/q2-tecton-elements/q2-badge_7.entry.js.map +1 -1
  491. package/dist/q2-tecton-elements/q2-calendar.entry.js +180 -180
  492. package/dist/q2-tecton-elements/q2-calendar.entry.js.map +1 -1
  493. package/dist/q2-tecton-elements/q2-card.entry.js +1 -1
  494. package/dist/q2-tecton-elements/q2-carousel-pane.entry.js +21 -21
  495. package/dist/q2-tecton-elements/q2-carousel.entry.js +1 -1
  496. package/dist/q2-tecton-elements/q2-chart-area.entry.js +3 -3
  497. package/dist/q2-tecton-elements/q2-chart-bar.entry.js +3 -3
  498. package/dist/q2-tecton-elements/q2-chart-donut.entry.js +7 -7
  499. package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +5 -5
  500. package/dist/q2-tecton-elements/q2-checkbox-group.entry.js.map +1 -1
  501. package/dist/q2-tecton-elements/q2-checkbox.entry.js +92 -88
  502. package/dist/q2-tecton-elements/q2-checkbox.entry.js.map +1 -1
  503. package/dist/q2-tecton-elements/q2-currency.entry.js +6 -6
  504. package/dist/q2-tecton-elements/q2-data-table.entry.js +1 -1
  505. package/dist/q2-tecton-elements/q2-detail.entry.js +39 -39
  506. package/dist/q2-tecton-elements/q2-dropdown-item.entry.js +23 -6
  507. package/dist/q2-tecton-elements/q2-dropdown-item.entry.js.map +1 -1
  508. package/dist/q2-tecton-elements/q2-dropdown.entry.js +1 -1
  509. package/dist/q2-tecton-elements/q2-editable-field.entry.js +1 -1
  510. package/dist/q2-tecton-elements/q2-file-picker.entry.js +2 -2
  511. package/dist/q2-tecton-elements/q2-file-picker.entry.js.map +1 -1
  512. package/dist/q2-tecton-elements/q2-form.entry.js +25 -0
  513. package/dist/q2-tecton-elements/q2-form.entry.js.map +1 -0
  514. package/dist/q2-tecton-elements/q2-formatted-text.entry.js +2 -2
  515. package/dist/q2-tecton-elements/q2-item_3.entry.js +22 -22
  516. package/dist/q2-tecton-elements/q2-legend.entry.js +6 -6
  517. package/dist/q2-tecton-elements/q2-legend.entry.js.map +1 -1
  518. package/dist/q2-tecton-elements/q2-loc.entry.js +23 -32
  519. package/dist/q2-tecton-elements/q2-loc.entry.js.map +1 -1
  520. package/dist/q2-tecton-elements/q2-message.entry.js +21 -21
  521. package/dist/q2-tecton-elements/q2-modal.entry.js +226 -0
  522. package/dist/q2-tecton-elements/q2-modal.entry.js.map +1 -0
  523. package/dist/q2-tecton-elements/q2-month-picker.entry.js +14 -14
  524. package/dist/q2-tecton-elements/q2-optgroup.entry.js +8 -8
  525. package/dist/q2-tecton-elements/q2-option-list_2.entry.js +33 -27
  526. package/dist/q2-tecton-elements/q2-option-list_2.entry.js.map +1 -1
  527. package/dist/q2-tecton-elements/q2-option.entry.js +60 -40
  528. package/dist/q2-tecton-elements/q2-option.entry.js.map +1 -1
  529. package/dist/q2-tecton-elements/q2-pagination.entry.js +38 -38
  530. package/dist/q2-tecton-elements/q2-pill.entry.js +14 -14
  531. package/dist/q2-tecton-elements/q2-radio-group.entry.js +28 -28
  532. package/dist/q2-tecton-elements/q2-radio-group.entry.js.map +1 -1
  533. package/dist/q2-tecton-elements/q2-radio.entry.js +1 -1
  534. package/dist/q2-tecton-elements/q2-relative-time.entry.js +5 -5
  535. package/dist/q2-tecton-elements/q2-resize-observer.entry.js +5 -2
  536. package/dist/q2-tecton-elements/q2-resize-observer.entry.js.map +1 -1
  537. package/dist/q2-tecton-elements/q2-section.entry.js +19 -19
  538. package/dist/q2-tecton-elements/q2-select.entry.js +13 -9
  539. package/dist/q2-tecton-elements/q2-select.entry.js.map +1 -1
  540. package/dist/q2-tecton-elements/q2-stepper-pane.entry.js +1 -1
  541. package/dist/q2-tecton-elements/q2-stepper-vertical.entry.js +5 -5
  542. package/dist/q2-tecton-elements/q2-stepper.entry.js +22 -22
  543. package/dist/q2-tecton-elements/q2-tag.entry.js +84 -45
  544. package/dist/q2-tecton-elements/q2-tag.entry.js.map +1 -1
  545. package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
  546. package/dist/q2-tecton-elements/q2-tecton-elements.esm.js.map +1 -1
  547. package/dist/q2-tecton-elements/q2-textarea.entry.js +4 -4
  548. package/dist/q2-tecton-elements/q2-textarea.entry.js.map +1 -1
  549. package/dist/q2-tecton-elements/q2-tooltip.entry.js +2 -2
  550. package/dist/q2-tecton-elements/q2-tooltip.entry.js.map +1 -1
  551. package/dist/q2-tecton-elements/sanitize-html-string-735c19f5.js +1214 -0
  552. package/dist/q2-tecton-elements/sanitize-html-string-735c19f5.js.map +1 -0
  553. package/dist/q2-tecton-elements/tecton-tab-pane.entry.js +9 -9
  554. package/dist/types/builds/q2e/development/tecton/tecton/packages/q2-tecton-elements/.stencil/jest.setup.d.ts +1 -0
  555. package/dist/types/components/q2-action-group/q2-action-group.d.ts +5 -2
  556. package/dist/types/components/q2-badge/q2-badge.d.ts +17 -3
  557. package/dist/types/components/q2-checkbox/q2-checkbox.d.ts +3 -3
  558. package/dist/types/components/q2-dropdown-item/q2-dropdown-item.d.ts +8 -0
  559. package/dist/types/components/q2-form/q2-form.d.ts +6 -0
  560. package/dist/types/components/q2-loc/q2-loc.d.ts +5 -5
  561. package/dist/types/components/q2-modal/q2-modal.d.ts +80 -0
  562. package/dist/types/components/q2-option/q2-option.d.ts +11 -4
  563. package/dist/types/components/q2-select/q2-select.d.ts +1 -0
  564. package/dist/types/components/q2-tag/q2-tag.d.ts +19 -0
  565. package/dist/types/components.d.ts +193 -6
  566. package/dist/types/util.d.ts +1 -8
  567. package/dist/types/utils/helpers.d.ts +1 -13
  568. package/dist/types/utils/index.d.ts +3 -2
  569. package/dist/types/utils/mirror-emit.d.ts +11 -0
  570. package/package.json +3 -3
  571. package/dist/cjs/index-76f63767.js.map +0 -1
  572. package/dist/collection/components/q2-action-group/test/q2-action-group.e2e.js +0 -166
  573. package/dist/collection/components/q2-action-group/test/q2-action-group.e2e.js.map +0 -1
  574. package/dist/collection/components/q2-action-group/test/q2-action-group.spec.js.map +0 -1
  575. package/dist/esm/index-504f1a9e.js.map +0 -1
  576. package/dist/q2-tecton-elements/index-504f1a9e.js.map +0 -1
@@ -0,0 +1,1214 @@
1
+ var e = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
2
+
3
+ var t = {
4
+ exports: {}
5
+ };
6
+
7
+ /*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */ (function(t, n) {
8
+ (function(e, n) {
9
+ t.exports = n();
10
+ })(e, (function() {
11
+ const {entries: e, setPrototypeOf: t, isFrozen: n, getPrototypeOf: o, getOwnPropertyDescriptor: i} = Object;
12
+ let {freeze: r, seal: a, create: l} = Object;
13
+ // eslint-disable-line import/no-mutable-exports
14
+ let {apply: s, construct: c} = typeof Reflect !== "undefined" && Reflect;
15
+ if (!r) {
16
+ r = function freeze(e) {
17
+ return e;
18
+ };
19
+ }
20
+ if (!a) {
21
+ a = function seal(e) {
22
+ return e;
23
+ };
24
+ }
25
+ if (!s) {
26
+ s = function apply(e, t, n) {
27
+ return e.apply(t, n);
28
+ };
29
+ }
30
+ if (!c) {
31
+ c = function construct(e, t) {
32
+ return new e(...t);
33
+ };
34
+ }
35
+ const f = unapply(Array.prototype.forEach);
36
+ const u = unapply(Array.prototype.lastIndexOf);
37
+ const d = unapply(Array.prototype.pop);
38
+ const p = unapply(Array.prototype.push);
39
+ const m = unapply(Array.prototype.splice);
40
+ const g = unapply(String.prototype.toLowerCase);
41
+ const h = unapply(String.prototype.toString);
42
+ const y = unapply(String.prototype.match);
43
+ const T = unapply(String.prototype.replace);
44
+ const b = unapply(String.prototype.indexOf);
45
+ const w = unapply(String.prototype.trim);
46
+ const S = unapply(Object.prototype.hasOwnProperty);
47
+ const x = unapply(RegExp.prototype.test);
48
+ const k = unconstruct(TypeError);
49
+ /**
50
+ * Creates a new function that calls the given function with a specified thisArg and arguments.
51
+ *
52
+ * @param func - The function to be wrapped and called.
53
+ * @returns A new function that calls the given function with a specified thisArg and arguments.
54
+ */ function unapply(e) {
55
+ return function(t) {
56
+ for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++) {
57
+ o[i - 1] = arguments[i];
58
+ }
59
+ return s(e, t, o);
60
+ };
61
+ }
62
+ /**
63
+ * Creates a new function that constructs an instance of the given constructor function with the provided arguments.
64
+ *
65
+ * @param func - The constructor function to be wrapped and called.
66
+ * @returns A new function that constructs an instance of the given constructor function with the provided arguments.
67
+ */ function unconstruct(e) {
68
+ return function() {
69
+ for (var t = arguments.length, n = new Array(t), o = 0; o < t; o++) {
70
+ n[o] = arguments[o];
71
+ }
72
+ return c(e, n);
73
+ };
74
+ }
75
+ /**
76
+ * Add properties to a lookup table
77
+ *
78
+ * @param set - The set to which elements will be added.
79
+ * @param array - The array containing elements to be added to the set.
80
+ * @param transformCaseFunc - An optional function to transform the case of each element before adding to the set.
81
+ * @returns The modified set with added elements.
82
+ */ function addToSet(e, o) {
83
+ let i = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : g;
84
+ if (t) {
85
+ // Make 'in' and truthy checks like Boolean(set.constructor)
86
+ // independent of any properties defined on Object.prototype.
87
+ // Prevent prototype setters from intercepting set as a this value.
88
+ t(e, null);
89
+ }
90
+ let r = o.length;
91
+ while (r--) {
92
+ let t = o[r];
93
+ if (typeof t === "string") {
94
+ const e = i(t);
95
+ if (e !== t) {
96
+ // Config presets (e.g. tags.js, attrs.js) are immutable.
97
+ if (!n(o)) {
98
+ o[r] = e;
99
+ }
100
+ t = e;
101
+ }
102
+ }
103
+ e[t] = true;
104
+ }
105
+ return e;
106
+ }
107
+ /**
108
+ * Clean up an array to harden against CSPP
109
+ *
110
+ * @param array - The array to be cleaned.
111
+ * @returns The cleaned version of the array
112
+ */ function cleanArray(e) {
113
+ for (let t = 0; t < e.length; t++) {
114
+ const n = S(e, t);
115
+ if (!n) {
116
+ e[t] = null;
117
+ }
118
+ }
119
+ return e;
120
+ }
121
+ /**
122
+ * Shallow clone an object
123
+ *
124
+ * @param object - The object to be cloned.
125
+ * @returns A new object that copies the original.
126
+ */ function clone(t) {
127
+ const n = l(null);
128
+ for (const [o, i] of e(t)) {
129
+ const e = S(t, o);
130
+ if (e) {
131
+ if (Array.isArray(i)) {
132
+ n[o] = cleanArray(i);
133
+ } else if (i && typeof i === "object" && i.constructor === Object) {
134
+ n[o] = clone(i);
135
+ } else {
136
+ n[o] = i;
137
+ }
138
+ }
139
+ }
140
+ return n;
141
+ }
142
+ /**
143
+ * This method automatically checks if the prop is function or getter and behaves accordingly.
144
+ *
145
+ * @param object - The object to look up the getter function in its prototype chain.
146
+ * @param prop - The property name for which to find the getter function.
147
+ * @returns The getter function found in the prototype chain or a fallback function.
148
+ */ function lookupGetter(e, t) {
149
+ while (e !== null) {
150
+ const n = i(e, t);
151
+ if (n) {
152
+ if (n.get) {
153
+ return unapply(n.get);
154
+ }
155
+ if (typeof n.value === "function") {
156
+ return unapply(n.value);
157
+ }
158
+ }
159
+ e = o(e);
160
+ }
161
+ function fallbackValue() {
162
+ return null;
163
+ }
164
+ return fallbackValue;
165
+ }
166
+ const _ = r([ "a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr" ]);
167
+ const v = r([ "svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern" ]);
168
+ const A = r([ "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence" ]);
169
+ // List of SVG elements that are disallowed by default.
170
+ // We still need to know them so that we can do namespace
171
+ // checks properly in case one wants to add them to
172
+ // allow-list.
173
+ const E = r([ "animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use" ]);
174
+ const R = r([ "math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts" ]);
175
+ // Similarly to SVG, we want to know all MathML elements,
176
+ // even those that we disallow by default.
177
+ const D = r([ "maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none" ]);
178
+ const O = r([ "#text" ]);
179
+ const M = r([ "accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot" ]);
180
+ const z = r([ "accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan" ]);
181
+ const L = r([ "accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns" ]);
182
+ const I = r([ "xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink" ]);
183
+ // eslint-disable-next-line unicorn/better-regex
184
+ const N = a(/\{\{[\w\W]*|[\w\W]*\}\}/gm);
185
+ // Specify template detection regex for SAFE_FOR_TEMPLATES mode
186
+ const P = a(/<%[\w\W]*|[\w\W]*%>/gm);
187
+ const F = a(/\$\{[\w\W]*/gm);
188
+ // eslint-disable-line unicorn/better-regex
189
+ const C = a(/^data-[\-\w.\u00B7-\uFFFF]+$/);
190
+ // eslint-disable-line no-useless-escape
191
+ const H = a(/^aria-[\-\w]+$/);
192
+ // eslint-disable-line no-useless-escape
193
+ const U = a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i);
194
+ const B = a(/^(?:\w+script|data):/i);
195
+ const j = a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g);
196
+ const G = a(/^html$/i);
197
+ const W = a(/^[a-z][.\w]*(-[.\w]+)+$/i);
198
+ var q = Object.freeze({
199
+ __proto__: null,
200
+ ARIA_ATTR: H,
201
+ ATTR_WHITESPACE: j,
202
+ CUSTOM_ELEMENT: W,
203
+ DATA_ATTR: C,
204
+ DOCTYPE_NAME: G,
205
+ ERB_EXPR: P,
206
+ IS_ALLOWED_URI: U,
207
+ IS_SCRIPT_OR_DATA: B,
208
+ MUSTACHE_EXPR: N,
209
+ TMPLIT_EXPR: F
210
+ });
211
+ /* eslint-disable @typescript-eslint/indent */
212
+ // https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
213
+ const Y = {
214
+ element: 1,
215
+ attribute: 2,
216
+ text: 3,
217
+ cdataSection: 4,
218
+ entityReference: 5,
219
+ // Deprecated
220
+ entityNode: 6,
221
+ // Deprecated
222
+ progressingInstruction: 7,
223
+ comment: 8,
224
+ document: 9,
225
+ documentType: 10,
226
+ documentFragment: 11,
227
+ notation: 12
228
+ };
229
+ const X = function getGlobal() {
230
+ return typeof window === "undefined" ? null : window;
231
+ };
232
+ /**
233
+ * Creates a no-op policy for internal use only.
234
+ * Don't export this function outside this module!
235
+ * @param trustedTypes The policy factory.
236
+ * @param purifyHostElement The Script element used to load DOMPurify (to determine policy name suffix).
237
+ * @return The policy created (or null, if Trusted Types
238
+ * are not supported or creating the policy failed).
239
+ */ const $ = function _createTrustedTypesPolicy(e, t) {
240
+ if (typeof e !== "object" || typeof e.createPolicy !== "function") {
241
+ return null;
242
+ }
243
+ // Allow the callers to control the unique policy name
244
+ // by adding a data-tt-policy-suffix to the script element with the DOMPurify.
245
+ // Policy creation with duplicate names throws in Trusted Types.
246
+ let n = null;
247
+ const o = "data-tt-policy-suffix";
248
+ if (t && t.hasAttribute(o)) {
249
+ n = t.getAttribute(o);
250
+ }
251
+ const i = "dompurify" + (n ? "#" + n : "");
252
+ try {
253
+ return e.createPolicy(i, {
254
+ createHTML(e) {
255
+ return e;
256
+ },
257
+ createScriptURL(e) {
258
+ return e;
259
+ }
260
+ });
261
+ } catch (e) {
262
+ // Policy creation failed (most likely another DOMPurify script has
263
+ // already run). Skip creating the policy, as this will only cause errors
264
+ // if TT are enforced.
265
+ console.warn("TrustedTypes policy " + i + " could not be created.");
266
+ return null;
267
+ }
268
+ };
269
+ const V = function _createHooksMap() {
270
+ return {
271
+ afterSanitizeAttributes: [],
272
+ afterSanitizeElements: [],
273
+ afterSanitizeShadowDOM: [],
274
+ beforeSanitizeAttributes: [],
275
+ beforeSanitizeElements: [],
276
+ beforeSanitizeShadowDOM: [],
277
+ uponSanitizeAttribute: [],
278
+ uponSanitizeElement: [],
279
+ uponSanitizeShadowNode: []
280
+ };
281
+ };
282
+ function createDOMPurify() {
283
+ let t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : X();
284
+ const DOMPurify = e => createDOMPurify(e);
285
+ DOMPurify.version = "3.2.4";
286
+ DOMPurify.removed = [];
287
+ if (!t || !t.document || t.document.nodeType !== Y.document || !t.Element) {
288
+ // Not running in a browser, provide a factory function
289
+ // so that you can pass your own Window
290
+ DOMPurify.isSupported = false;
291
+ return DOMPurify;
292
+ }
293
+ let {document: n} = t;
294
+ const o = n;
295
+ const i = o.currentScript;
296
+ const {DocumentFragment: a, HTMLTemplateElement: s, Node: c, Element: N, NodeFilter: P, NamedNodeMap: F = t.NamedNodeMap || t.MozNamedAttrMap, HTMLFormElement: C, DOMParser: H, trustedTypes: B} = t;
297
+ const j = N.prototype;
298
+ const W = lookupGetter(j, "cloneNode");
299
+ const K = lookupGetter(j, "remove");
300
+ const J = lookupGetter(j, "nextSibling");
301
+ const Q = lookupGetter(j, "childNodes");
302
+ const Z = lookupGetter(j, "parentNode");
303
+ // As per issue #47, the web-components registry is inherited by a
304
+ // new document created via createHTMLDocument. As per the spec
305
+ // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)
306
+ // a new empty registry is used when creating a template contents owner
307
+ // document, so we use that as our parent document to ensure nothing
308
+ // is inherited.
309
+ if (typeof s === "function") {
310
+ const e = n.createElement("template");
311
+ if (e.content && e.content.ownerDocument) {
312
+ n = e.content.ownerDocument;
313
+ }
314
+ }
315
+ let ee;
316
+ let te = "";
317
+ const {implementation: ne, createNodeIterator: oe, createDocumentFragment: ie, getElementsByTagName: re} = n;
318
+ const {importNode: ae} = o;
319
+ let le = V();
320
+ /**
321
+ * Expose whether this browser supports running the full DOMPurify.
322
+ */ DOMPurify.isSupported = typeof e === "function" && typeof Z === "function" && ne && ne.createHTMLDocument !== undefined;
323
+ const {MUSTACHE_EXPR: se, ERB_EXPR: ce, TMPLIT_EXPR: fe, DATA_ATTR: ue, ARIA_ATTR: de, IS_SCRIPT_OR_DATA: pe, ATTR_WHITESPACE: me, CUSTOM_ELEMENT: ge} = q;
324
+ let {IS_ALLOWED_URI: he} = q;
325
+ /**
326
+ * We consider the elements and attributes below to be safe. Ideally
327
+ * don't add any new ones but feel free to remove unwanted ones.
328
+ */
329
+ /* allowed element names */ let ye = null;
330
+ const Te = addToSet({}, [ ..._, ...v, ...A, ...R, ...O ]);
331
+ /* Allowed attribute names */ let be = null;
332
+ const we = addToSet({}, [ ...M, ...z, ...L, ...I ]);
333
+ /*
334
+ * Configure how DOMPurify should handle custom elements and their attributes as well as customized built-in elements.
335
+ * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)
336
+ * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)
337
+ * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.
338
+ */ let Se = Object.seal(l(null, {
339
+ tagNameCheck: {
340
+ writable: true,
341
+ configurable: false,
342
+ enumerable: true,
343
+ value: null
344
+ },
345
+ attributeNameCheck: {
346
+ writable: true,
347
+ configurable: false,
348
+ enumerable: true,
349
+ value: null
350
+ },
351
+ allowCustomizedBuiltInElements: {
352
+ writable: true,
353
+ configurable: false,
354
+ enumerable: true,
355
+ value: false
356
+ }
357
+ }));
358
+ /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */ let xe = null;
359
+ /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */ let ke = null;
360
+ /* Decide if ARIA attributes are okay */ let _e = true;
361
+ /* Decide if custom data attributes are okay */ let ve = true;
362
+ /* Decide if unknown protocols are okay */ let Ae = false;
363
+ /* Decide if self-closing tags in attributes are allowed.
364
+ * Usually removed due to a mXSS issue in jQuery 3.0 */ let Ee = true;
365
+ /* Output should be safe for common template engines.
366
+ * This means, DOMPurify removes data attributes, mustaches and ERB
367
+ */ let Re = false;
368
+ /* Output should be safe even for XML used within HTML and alike.
369
+ * This means, DOMPurify removes comments when containing risky content.
370
+ */ let De = true;
371
+ /* Decide if document with <html>... should be returned */ let Oe = false;
372
+ /* Track whether config is already set on this instance of DOMPurify. */ let Me = false;
373
+ /* Decide if all elements (e.g. style, script) must be children of
374
+ * document.body. By default, browsers might move them to document.head */ let ze = false;
375
+ /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html
376
+ * string (or a TrustedHTML object if Trusted Types are supported).
377
+ * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead
378
+ */ let Le = false;
379
+ /* Decide if a DOM `DocumentFragment` should be returned, instead of a html
380
+ * string (or a TrustedHTML object if Trusted Types are supported) */ let Ie = false;
381
+ /* Try to return a Trusted Type object instead of a string, return a string in
382
+ * case Trusted Types are not supported */ let Ne = false;
383
+ /* Output should be free from DOM clobbering attacks?
384
+ * This sanitizes markups named with colliding, clobberable built-in DOM APIs.
385
+ */ let Pe = true;
386
+ /* Achieve full DOM Clobbering protection by isolating the namespace of named
387
+ * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules.
388
+ *
389
+ * HTML/DOM spec rules that enable DOM Clobbering:
390
+ * - Named Access on Window (§7.3.3)
391
+ * - DOM Tree Accessors (§3.1.5)
392
+ * - Form Element Parent-Child Relations (§4.10.3)
393
+ * - Iframe srcdoc / Nested WindowProxies (§4.8.5)
394
+ * - HTMLCollection (§4.2.10.2)
395
+ *
396
+ * Namespace isolation is implemented by prefixing `id` and `name` attributes
397
+ * with a constant string, i.e., `user-content-`
398
+ */ let Fe = false;
399
+ const Ce = "user-content-";
400
+ /* Keep element content when removing element? */ let He = true;
401
+ /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead
402
+ * of importing it into a new Document and returning a sanitized copy */ let Ue = false;
403
+ /* Allow usage of profiles like html, svg and mathMl */ let Be = {};
404
+ /* Tags to ignore content of when KEEP_CONTENT is true */ let je = null;
405
+ const Ge = addToSet({}, [ "annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp" ]);
406
+ /* Tags that are safe for data: URIs */ let We = null;
407
+ const qe = addToSet({}, [ "audio", "video", "img", "source", "image", "track" ]);
408
+ /* Attributes safe for values like "javascript:" */ let Ye = null;
409
+ const Xe = addToSet({}, [ "alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns" ]);
410
+ const $e = "http://www.w3.org/1998/Math/MathML";
411
+ const Ve = "http://www.w3.org/2000/svg";
412
+ const Ke = "http://www.w3.org/1999/xhtml";
413
+ /* Document namespace */ let Je = Ke;
414
+ let Qe = false;
415
+ /* Allowed XHTML+XML namespaces */ let Ze = null;
416
+ const et = addToSet({}, [ $e, Ve, Ke ], h);
417
+ let tt = addToSet({}, [ "mi", "mo", "mn", "ms", "mtext" ]);
418
+ let nt = addToSet({}, [ "annotation-xml" ]);
419
+ // Certain elements are allowed in both SVG and HTML
420
+ // namespace. We need to specify them explicitly
421
+ // so that they don't get erroneously deleted from
422
+ // HTML namespace.
423
+ const ot = addToSet({}, [ "title", "style", "font", "a", "script" ]);
424
+ /* Parsing of strict XHTML documents */ let it = null;
425
+ const rt = [ "application/xhtml+xml", "text/html" ];
426
+ const at = "text/html";
427
+ let lt = null;
428
+ /* Keep a reference to config to pass to hooks */ let st = null;
429
+ /* Ideally, do not touch anything below this line */
430
+ /* ______________________________________________ */ const ct = n.createElement("form");
431
+ const ft = function isRegexOrFunction(e) {
432
+ return e instanceof RegExp || e instanceof Function;
433
+ };
434
+ /**
435
+ * _parseConfig
436
+ *
437
+ * @param cfg optional config literal
438
+ */
439
+ // eslint-disable-next-line complexity
440
+ const ut = function _parseConfig() {
441
+ let e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
442
+ if (st && st === e) {
443
+ return;
444
+ }
445
+ /* Shield configuration object from tampering */ if (!e || typeof e !== "object") {
446
+ e = {};
447
+ }
448
+ /* Shield configuration object from prototype pollution */ e = clone(e);
449
+ it =
450
+ // eslint-disable-next-line unicorn/prefer-includes
451
+ rt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? at : e.PARSER_MEDIA_TYPE;
452
+ // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.
453
+ lt = it === "application/xhtml+xml" ? h : g;
454
+ /* Set configuration parameters */ ye = S(e, "ALLOWED_TAGS") ? addToSet({}, e.ALLOWED_TAGS, lt) : Te;
455
+ be = S(e, "ALLOWED_ATTR") ? addToSet({}, e.ALLOWED_ATTR, lt) : we;
456
+ Ze = S(e, "ALLOWED_NAMESPACES") ? addToSet({}, e.ALLOWED_NAMESPACES, h) : et;
457
+ Ye = S(e, "ADD_URI_SAFE_ATTR") ? addToSet(clone(Xe), e.ADD_URI_SAFE_ATTR, lt) : Xe;
458
+ We = S(e, "ADD_DATA_URI_TAGS") ? addToSet(clone(qe), e.ADD_DATA_URI_TAGS, lt) : qe;
459
+ je = S(e, "FORBID_CONTENTS") ? addToSet({}, e.FORBID_CONTENTS, lt) : Ge;
460
+ xe = S(e, "FORBID_TAGS") ? addToSet({}, e.FORBID_TAGS, lt) : {};
461
+ ke = S(e, "FORBID_ATTR") ? addToSet({}, e.FORBID_ATTR, lt) : {};
462
+ Be = S(e, "USE_PROFILES") ? e.USE_PROFILES : false;
463
+ _e = e.ALLOW_ARIA_ATTR !== false;
464
+ // Default true
465
+ ve = e.ALLOW_DATA_ATTR !== false;
466
+ // Default true
467
+ Ae = e.ALLOW_UNKNOWN_PROTOCOLS || false;
468
+ // Default false
469
+ Ee = e.ALLOW_SELF_CLOSE_IN_ATTR !== false;
470
+ // Default true
471
+ Re = e.SAFE_FOR_TEMPLATES || false;
472
+ // Default false
473
+ De = e.SAFE_FOR_XML !== false;
474
+ // Default true
475
+ Oe = e.WHOLE_DOCUMENT || false;
476
+ // Default false
477
+ Le = e.RETURN_DOM || false;
478
+ // Default false
479
+ Ie = e.RETURN_DOM_FRAGMENT || false;
480
+ // Default false
481
+ Ne = e.RETURN_TRUSTED_TYPE || false;
482
+ // Default false
483
+ ze = e.FORCE_BODY || false;
484
+ // Default false
485
+ Pe = e.SANITIZE_DOM !== false;
486
+ // Default true
487
+ Fe = e.SANITIZE_NAMED_PROPS || false;
488
+ // Default false
489
+ He = e.KEEP_CONTENT !== false;
490
+ // Default true
491
+ Ue = e.IN_PLACE || false;
492
+ // Default false
493
+ he = e.ALLOWED_URI_REGEXP || U;
494
+ Je = e.NAMESPACE || Ke;
495
+ tt = e.MATHML_TEXT_INTEGRATION_POINTS || tt;
496
+ nt = e.HTML_INTEGRATION_POINTS || nt;
497
+ Se = e.CUSTOM_ELEMENT_HANDLING || {};
498
+ if (e.CUSTOM_ELEMENT_HANDLING && ft(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {
499
+ Se.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck;
500
+ }
501
+ if (e.CUSTOM_ELEMENT_HANDLING && ft(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) {
502
+ Se.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;
503
+ }
504
+ if (e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === "boolean") {
505
+ Se.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;
506
+ }
507
+ if (Re) {
508
+ ve = false;
509
+ }
510
+ if (Ie) {
511
+ Le = true;
512
+ }
513
+ /* Parse profile info */ if (Be) {
514
+ ye = addToSet({}, O);
515
+ be = [];
516
+ if (Be.html === true) {
517
+ addToSet(ye, _);
518
+ addToSet(be, M);
519
+ }
520
+ if (Be.svg === true) {
521
+ addToSet(ye, v);
522
+ addToSet(be, z);
523
+ addToSet(be, I);
524
+ }
525
+ if (Be.svgFilters === true) {
526
+ addToSet(ye, A);
527
+ addToSet(be, z);
528
+ addToSet(be, I);
529
+ }
530
+ if (Be.mathMl === true) {
531
+ addToSet(ye, R);
532
+ addToSet(be, L);
533
+ addToSet(be, I);
534
+ }
535
+ }
536
+ /* Merge configuration parameters */ if (e.ADD_TAGS) {
537
+ if (ye === Te) {
538
+ ye = clone(ye);
539
+ }
540
+ addToSet(ye, e.ADD_TAGS, lt);
541
+ }
542
+ if (e.ADD_ATTR) {
543
+ if (be === we) {
544
+ be = clone(be);
545
+ }
546
+ addToSet(be, e.ADD_ATTR, lt);
547
+ }
548
+ if (e.ADD_URI_SAFE_ATTR) {
549
+ addToSet(Ye, e.ADD_URI_SAFE_ATTR, lt);
550
+ }
551
+ if (e.FORBID_CONTENTS) {
552
+ if (je === Ge) {
553
+ je = clone(je);
554
+ }
555
+ addToSet(je, e.FORBID_CONTENTS, lt);
556
+ }
557
+ /* Add #text in case KEEP_CONTENT is set to true */ if (He) {
558
+ ye["#text"] = true;
559
+ }
560
+ /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */ if (Oe) {
561
+ addToSet(ye, [ "html", "head", "body" ]);
562
+ }
563
+ /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */ if (ye.table) {
564
+ addToSet(ye, [ "tbody" ]);
565
+ delete xe.tbody;
566
+ }
567
+ if (e.TRUSTED_TYPES_POLICY) {
568
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML !== "function") {
569
+ throw k('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
570
+ }
571
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL !== "function") {
572
+ throw k('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
573
+ }
574
+ // Overwrite existing TrustedTypes policy.
575
+ ee = e.TRUSTED_TYPES_POLICY;
576
+ // Sign local variables required by `sanitize`.
577
+ te = ee.createHTML("");
578
+ } else {
579
+ // Uninitialized policy, attempt to initialize the internal dompurify policy.
580
+ if (ee === undefined) {
581
+ ee = $(B, i);
582
+ }
583
+ // If creating the internal policy succeeded sign internal variables.
584
+ if (ee !== null && typeof te === "string") {
585
+ te = ee.createHTML("");
586
+ }
587
+ }
588
+ // Prevent further manipulation of configuration.
589
+ // Not available in IE8, Safari 5, etc.
590
+ if (r) {
591
+ r(e);
592
+ }
593
+ st = e;
594
+ };
595
+ /* Keep track of all possible SVG and MathML tags
596
+ * so that we can perform the namespace checks
597
+ * correctly. */ const dt = addToSet({}, [ ...v, ...A, ...E ]);
598
+ const pt = addToSet({}, [ ...R, ...D ]);
599
+ /**
600
+ * @param element a DOM element whose namespace is being checked
601
+ * @returns Return false if the element has a
602
+ * namespace that a spec-compliant parser would never
603
+ * return. Return true otherwise.
604
+ */ const mt = function _checkValidNamespace(e) {
605
+ let t = Z(e);
606
+ // In JSDOM, if we're inside shadow DOM, then parentNode
607
+ // can be null. We just simulate parent in this case.
608
+ if (!t || !t.tagName) {
609
+ t = {
610
+ namespaceURI: Je,
611
+ tagName: "template"
612
+ };
613
+ }
614
+ const n = g(e.tagName);
615
+ const o = g(t.tagName);
616
+ if (!Ze[e.namespaceURI]) {
617
+ return false;
618
+ }
619
+ if (e.namespaceURI === Ve) {
620
+ // The only way to switch from HTML namespace to SVG
621
+ // is via <svg>. If it happens via any other tag, then
622
+ // it should be killed.
623
+ if (t.namespaceURI === Ke) {
624
+ return n === "svg";
625
+ }
626
+ // The only way to switch from MathML to SVG is via`
627
+ // svg if parent is either <annotation-xml> or MathML
628
+ // text integration points.
629
+ if (t.namespaceURI === $e) {
630
+ return n === "svg" && (o === "annotation-xml" || tt[o]);
631
+ }
632
+ // We only allow elements that are defined in SVG
633
+ // spec. All others are disallowed in SVG namespace.
634
+ return Boolean(dt[n]);
635
+ }
636
+ if (e.namespaceURI === $e) {
637
+ // The only way to switch from HTML namespace to MathML
638
+ // is via <math>. If it happens via any other tag, then
639
+ // it should be killed.
640
+ if (t.namespaceURI === Ke) {
641
+ return n === "math";
642
+ }
643
+ // The only way to switch from SVG to MathML is via
644
+ // <math> and HTML integration points
645
+ if (t.namespaceURI === Ve) {
646
+ return n === "math" && nt[o];
647
+ }
648
+ // We only allow elements that are defined in MathML
649
+ // spec. All others are disallowed in MathML namespace.
650
+ return Boolean(pt[n]);
651
+ }
652
+ if (e.namespaceURI === Ke) {
653
+ // The only way to switch from SVG to HTML is via
654
+ // HTML integration points, and from MathML to HTML
655
+ // is via MathML text integration points
656
+ if (t.namespaceURI === Ve && !nt[o]) {
657
+ return false;
658
+ }
659
+ if (t.namespaceURI === $e && !tt[o]) {
660
+ return false;
661
+ }
662
+ // We disallow tags that are specific for MathML
663
+ // or SVG and should never appear in HTML namespace
664
+ return !pt[n] && (ot[n] || !dt[n]);
665
+ }
666
+ // For XHTML and XML documents that support custom namespaces
667
+ if (it === "application/xhtml+xml" && Ze[e.namespaceURI]) {
668
+ return true;
669
+ }
670
+ // The code should never reach this place (this means
671
+ // that the element somehow got namespace that is not
672
+ // HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES).
673
+ // Return false just in case.
674
+ return false;
675
+ };
676
+ /**
677
+ * _forceRemove
678
+ *
679
+ * @param node a DOM node
680
+ */ const gt = function _forceRemove(e) {
681
+ p(DOMPurify.removed, {
682
+ element: e
683
+ });
684
+ try {
685
+ // eslint-disable-next-line unicorn/prefer-dom-node-remove
686
+ Z(e).removeChild(e);
687
+ } catch (t) {
688
+ K(e);
689
+ }
690
+ };
691
+ /**
692
+ * _removeAttribute
693
+ *
694
+ * @param name an Attribute name
695
+ * @param element a DOM node
696
+ */ const ht = function _removeAttribute(e, t) {
697
+ try {
698
+ p(DOMPurify.removed, {
699
+ attribute: t.getAttributeNode(e),
700
+ from: t
701
+ });
702
+ } catch (e) {
703
+ p(DOMPurify.removed, {
704
+ attribute: null,
705
+ from: t
706
+ });
707
+ }
708
+ t.removeAttribute(e);
709
+ // We void attribute values for unremovable "is" attributes
710
+ if (e === "is") {
711
+ if (Le || Ie) {
712
+ try {
713
+ gt(t);
714
+ } catch (e) {}
715
+ } else {
716
+ try {
717
+ t.setAttribute(e, "");
718
+ } catch (e) {}
719
+ }
720
+ }
721
+ };
722
+ /**
723
+ * _initDocument
724
+ *
725
+ * @param dirty - a string of dirty markup
726
+ * @return a DOM, filled with the dirty markup
727
+ */ const yt = function _initDocument(e) {
728
+ /* Create a HTML document */
729
+ let t = null;
730
+ let o = null;
731
+ if (ze) {
732
+ e = "<remove></remove>" + e;
733
+ } else {
734
+ /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */
735
+ const t = y(e, /^[\r\n\t ]+/);
736
+ o = t && t[0];
737
+ }
738
+ if (it === "application/xhtml+xml" && Je === Ke) {
739
+ // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)
740
+ e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>";
741
+ }
742
+ const i = ee ? ee.createHTML(e) : e;
743
+ /*
744
+ * Use the DOMParser API by default, fallback later if needs be
745
+ * DOMParser not work for svg when has multiple root element.
746
+ */ if (Je === Ke) {
747
+ try {
748
+ t = (new H).parseFromString(i, it);
749
+ } catch (e) {}
750
+ }
751
+ /* Use createHTMLDocument in case DOMParser is not available */ if (!t || !t.documentElement) {
752
+ t = ne.createDocument(Je, "template", null);
753
+ try {
754
+ t.documentElement.innerHTML = Qe ? te : i;
755
+ } catch (e) {
756
+ // Syntax error if dirtyPayload is invalid xml
757
+ }
758
+ }
759
+ const r = t.body || t.documentElement;
760
+ if (e && o) {
761
+ r.insertBefore(n.createTextNode(o), r.childNodes[0] || null);
762
+ }
763
+ /* Work on whole document or just its body */ if (Je === Ke) {
764
+ return re.call(t, Oe ? "html" : "body")[0];
765
+ }
766
+ return Oe ? t.documentElement : r;
767
+ };
768
+ /**
769
+ * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
770
+ *
771
+ * @param root The root element or node to start traversing on.
772
+ * @return The created NodeIterator
773
+ */ const Tt = function _createNodeIterator(e) {
774
+ return oe.call(e.ownerDocument || e, e,
775
+ // eslint-disable-next-line no-bitwise
776
+ P.SHOW_ELEMENT | P.SHOW_COMMENT | P.SHOW_TEXT | P.SHOW_PROCESSING_INSTRUCTION | P.SHOW_CDATA_SECTION, null);
777
+ };
778
+ /**
779
+ * _isClobbered
780
+ *
781
+ * @param element element to check for clobbering attacks
782
+ * @return true if clobbered, false if safe
783
+ */ const bt = function _isClobbered(e) {
784
+ return e instanceof C && (typeof e.nodeName !== "string" || typeof e.textContent !== "string" || typeof e.removeChild !== "function" || !(e.attributes instanceof F) || typeof e.removeAttribute !== "function" || typeof e.setAttribute !== "function" || typeof e.namespaceURI !== "string" || typeof e.insertBefore !== "function" || typeof e.hasChildNodes !== "function");
785
+ };
786
+ /**
787
+ * Checks whether the given object is a DOM node.
788
+ *
789
+ * @param value object to check whether it's a DOM node
790
+ * @return true is object is a DOM node
791
+ */ const wt = function _isNode(e) {
792
+ return typeof c === "function" && e instanceof c;
793
+ };
794
+ function _executeHooks(e, t, n) {
795
+ f(e, (e => {
796
+ e.call(DOMPurify, t, n, st);
797
+ }));
798
+ }
799
+ /**
800
+ * _sanitizeElements
801
+ *
802
+ * @protect nodeName
803
+ * @protect textContent
804
+ * @protect removeChild
805
+ * @param currentNode to check for permission to exist
806
+ * @return true if node was killed, false if left alive
807
+ */ const St = function _sanitizeElements(e) {
808
+ let t = null;
809
+ /* Execute a hook if present */ _executeHooks(le.beforeSanitizeElements, e, null);
810
+ /* Check if element is clobbered or can clobber */ if (bt(e)) {
811
+ gt(e);
812
+ return true;
813
+ }
814
+ /* Now let's check the element's type and name */ const n = lt(e.nodeName);
815
+ /* Execute a hook if present */ _executeHooks(le.uponSanitizeElement, e, {
816
+ tagName: n,
817
+ allowedTags: ye
818
+ });
819
+ /* Detect mXSS attempts abusing namespace confusion */ if (e.hasChildNodes() && !wt(e.firstElementChild) && x(/<[/\w]/g, e.innerHTML) && x(/<[/\w]/g, e.textContent)) {
820
+ gt(e);
821
+ return true;
822
+ }
823
+ /* Remove any occurrence of processing instructions */ if (e.nodeType === Y.progressingInstruction) {
824
+ gt(e);
825
+ return true;
826
+ }
827
+ /* Remove any kind of possibly harmful comments */ if (De && e.nodeType === Y.comment && x(/<[/\w]/g, e.data)) {
828
+ gt(e);
829
+ return true;
830
+ }
831
+ /* Remove element if anything forbids its presence */ if (!ye[n] || xe[n]) {
832
+ /* Check if we have a custom element to handle */
833
+ if (!xe[n] && kt(n)) {
834
+ if (Se.tagNameCheck instanceof RegExp && x(Se.tagNameCheck, n)) {
835
+ return false;
836
+ }
837
+ if (Se.tagNameCheck instanceof Function && Se.tagNameCheck(n)) {
838
+ return false;
839
+ }
840
+ }
841
+ /* Keep content except for bad-listed elements */ if (He && !je[n]) {
842
+ const t = Z(e) || e.parentNode;
843
+ const n = Q(e) || e.childNodes;
844
+ if (n && t) {
845
+ const o = n.length;
846
+ for (let i = o - 1; i >= 0; --i) {
847
+ const o = W(n[i], true);
848
+ o.__removalCount = (e.__removalCount || 0) + 1;
849
+ t.insertBefore(o, J(e));
850
+ }
851
+ }
852
+ }
853
+ gt(e);
854
+ return true;
855
+ }
856
+ /* Check whether element has a valid namespace */ if (e instanceof N && !mt(e)) {
857
+ gt(e);
858
+ return true;
859
+ }
860
+ /* Make sure that older browsers don't get fallback-tag mXSS */ if ((n === "noscript" || n === "noembed" || n === "noframes") && x(/<\/no(script|embed|frames)/i, e.innerHTML)) {
861
+ gt(e);
862
+ return true;
863
+ }
864
+ /* Sanitize element content to be template-safe */ if (Re && e.nodeType === Y.text) {
865
+ /* Get the element's text content */
866
+ t = e.textContent;
867
+ f([ se, ce, fe ], (e => {
868
+ t = T(t, e, " ");
869
+ }));
870
+ if (e.textContent !== t) {
871
+ p(DOMPurify.removed, {
872
+ element: e.cloneNode()
873
+ });
874
+ e.textContent = t;
875
+ }
876
+ }
877
+ /* Execute a hook if present */ _executeHooks(le.afterSanitizeElements, e, null);
878
+ return false;
879
+ };
880
+ /**
881
+ * _isValidAttribute
882
+ *
883
+ * @param lcTag Lowercase tag name of containing element.
884
+ * @param lcName Lowercase attribute name.
885
+ * @param value Attribute value.
886
+ * @return Returns true if `value` is valid, otherwise false.
887
+ */
888
+ // eslint-disable-next-line complexity
889
+ const xt = function _isValidAttribute(e, t, o) {
890
+ /* Make sure attribute cannot clobber */
891
+ if (Pe && (t === "id" || t === "name") && (o in n || o in ct)) {
892
+ return false;
893
+ }
894
+ /* Allow valid data-* attributes: At least one character after "-"
895
+ (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)
896
+ XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)
897
+ We don't need to check the value; it's always URI safe. */ if (ve && !ke[t] && x(ue, t)) ; else if (_e && x(de, t)) ; else if (!be[t] || ke[t]) {
898
+ if (
899
+ // First condition does a very basic check if a) it's basically a valid custom element tagname AND
900
+ // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
901
+ // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
902
+ kt(e) && (Se.tagNameCheck instanceof RegExp && x(Se.tagNameCheck, e) || Se.tagNameCheck instanceof Function && Se.tagNameCheck(e)) && (Se.attributeNameCheck instanceof RegExp && x(Se.attributeNameCheck, t) || Se.attributeNameCheck instanceof Function && Se.attributeNameCheck(t)) ||
903
+ // Alternative, second condition checks if it's an `is`-attribute, AND
904
+ // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
905
+ t === "is" && Se.allowCustomizedBuiltInElements && (Se.tagNameCheck instanceof RegExp && x(Se.tagNameCheck, o) || Se.tagNameCheck instanceof Function && Se.tagNameCheck(o))) ; else {
906
+ return false;
907
+ }
908
+ /* Check value is safe. First, is attr inert? If so, is safe */ } else if (Ye[t]) ; else if (x(he, T(o, me, ""))) ; else if ((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && b(o, "data:") === 0 && We[e]) ; else if (Ae && !x(pe, T(o, me, ""))) ; else if (o) {
909
+ return false;
910
+ } else ;
911
+ return true;
912
+ };
913
+ /**
914
+ * _isBasicCustomElement
915
+ * checks if at least one dash is included in tagName, and it's not the first char
916
+ * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name
917
+ *
918
+ * @param tagName name of the tag of the node to sanitize
919
+ * @returns Returns true if the tag name meets the basic criteria for a custom element, otherwise false.
920
+ */ const kt = function _isBasicCustomElement(e) {
921
+ return e !== "annotation-xml" && y(e, ge);
922
+ };
923
+ /**
924
+ * _sanitizeAttributes
925
+ *
926
+ * @protect attributes
927
+ * @protect nodeName
928
+ * @protect removeAttribute
929
+ * @protect setAttribute
930
+ *
931
+ * @param currentNode to sanitize
932
+ */ const _t = function _sanitizeAttributes(e) {
933
+ /* Execute a hook if present */
934
+ _executeHooks(le.beforeSanitizeAttributes, e, null);
935
+ const {attributes: t} = e;
936
+ /* Check if we have attributes; if not we might have a text node */ if (!t || bt(e)) {
937
+ return;
938
+ }
939
+ const n = {
940
+ attrName: "",
941
+ attrValue: "",
942
+ keepAttr: true,
943
+ allowedAttributes: be,
944
+ forceKeepAttr: undefined
945
+ };
946
+ let o = t.length;
947
+ /* Go backwards over all attributes; safely remove bad ones */ while (o--) {
948
+ const i = t[o];
949
+ const {name: r, namespaceURI: a, value: l} = i;
950
+ const s = lt(r);
951
+ let c = r === "value" ? l : w(l);
952
+ /* Execute a hook if present */ n.attrName = s;
953
+ n.attrValue = c;
954
+ n.keepAttr = true;
955
+ n.forceKeepAttr = undefined;
956
+ // Allows developers to see this is a property they can set
957
+ _executeHooks(le.uponSanitizeAttribute, e, n);
958
+ c = n.attrValue;
959
+ /* Full DOM Clobbering protection via namespace isolation,
960
+ * Prefix id and name attributes with `user-content-`
961
+ */ if (Fe && (s === "id" || s === "name")) {
962
+ // Remove the attribute with this value
963
+ ht(r, e);
964
+ // Prefix the value and later re-create the attribute with the sanitized value
965
+ c = Ce + c;
966
+ }
967
+ /* Work around a security issue with comments inside attributes */ if (De && x(/((--!?|])>)|<\/(style|title)/i, c)) {
968
+ ht(r, e);
969
+ continue;
970
+ }
971
+ /* Did the hooks approve of the attribute? */ if (n.forceKeepAttr) {
972
+ continue;
973
+ }
974
+ /* Remove attribute */ ht(r, e);
975
+ /* Did the hooks approve of the attribute? */ if (!n.keepAttr) {
976
+ continue;
977
+ }
978
+ /* Work around a security issue in jQuery 3.0 */ if (!Ee && x(/\/>/i, c)) {
979
+ ht(r, e);
980
+ continue;
981
+ }
982
+ /* Sanitize attribute content to be template-safe */ if (Re) {
983
+ f([ se, ce, fe ], (e => {
984
+ c = T(c, e, " ");
985
+ }));
986
+ }
987
+ /* Is `value` valid for this attribute? */ const u = lt(e.nodeName);
988
+ if (!xt(u, s, c)) {
989
+ continue;
990
+ }
991
+ /* Handle attributes that require Trusted Types */ if (ee && typeof B === "object" && typeof B.getAttributeType === "function") {
992
+ if (a) ; else {
993
+ switch (B.getAttributeType(u, s)) {
994
+ case "TrustedHTML":
995
+ {
996
+ c = ee.createHTML(c);
997
+ break;
998
+ }
999
+
1000
+ case "TrustedScriptURL":
1001
+ {
1002
+ c = ee.createScriptURL(c);
1003
+ break;
1004
+ }
1005
+ }
1006
+ }
1007
+ }
1008
+ /* Handle invalid data-* attribute set by try-catching it */ try {
1009
+ if (a) {
1010
+ e.setAttributeNS(a, r, c);
1011
+ } else {
1012
+ /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. "x-schema". */
1013
+ e.setAttribute(r, c);
1014
+ }
1015
+ if (bt(e)) {
1016
+ gt(e);
1017
+ } else {
1018
+ d(DOMPurify.removed);
1019
+ }
1020
+ } catch (e) {}
1021
+ }
1022
+ /* Execute a hook if present */ _executeHooks(le.afterSanitizeAttributes, e, null);
1023
+ };
1024
+ /**
1025
+ * _sanitizeShadowDOM
1026
+ *
1027
+ * @param fragment to iterate over recursively
1028
+ */ const vt = function _sanitizeShadowDOM(e) {
1029
+ let t = null;
1030
+ const n = Tt(e);
1031
+ /* Execute a hook if present */ _executeHooks(le.beforeSanitizeShadowDOM, e, null);
1032
+ while (t = n.nextNode()) {
1033
+ /* Execute a hook if present */
1034
+ _executeHooks(le.uponSanitizeShadowNode, t, null);
1035
+ /* Sanitize tags and elements */ St(t);
1036
+ /* Check attributes next */ _t(t);
1037
+ /* Deep shadow DOM detected */ if (t.content instanceof a) {
1038
+ _sanitizeShadowDOM(t.content);
1039
+ }
1040
+ }
1041
+ /* Execute a hook if present */ _executeHooks(le.afterSanitizeShadowDOM, e, null);
1042
+ };
1043
+ // eslint-disable-next-line complexity
1044
+ DOMPurify.sanitize = function(e) {
1045
+ let t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1046
+ let n = null;
1047
+ let i = null;
1048
+ let r = null;
1049
+ let l = null;
1050
+ /* Make sure we have a string to sanitize.
1051
+ DO NOT return early, as this will return the wrong type if
1052
+ the user has requested a DOM object rather than a string */ Qe = !e;
1053
+ if (Qe) {
1054
+ e = "\x3c!--\x3e";
1055
+ }
1056
+ /* Stringify, in case dirty is an object */ if (typeof e !== "string" && !wt(e)) {
1057
+ if (typeof e.toString === "function") {
1058
+ e = e.toString();
1059
+ if (typeof e !== "string") {
1060
+ throw k("dirty is not a string, aborting");
1061
+ }
1062
+ } else {
1063
+ throw k("toString is not a function");
1064
+ }
1065
+ }
1066
+ /* Return dirty HTML if DOMPurify cannot run */ if (!DOMPurify.isSupported) {
1067
+ return e;
1068
+ }
1069
+ /* Assign config vars */ if (!Me) {
1070
+ ut(t);
1071
+ }
1072
+ /* Clean up removed elements */ DOMPurify.removed = [];
1073
+ /* Check if dirty is correctly typed for IN_PLACE */ if (typeof e === "string") {
1074
+ Ue = false;
1075
+ }
1076
+ if (Ue) {
1077
+ /* Do some early pre-sanitization to avoid unsafe root nodes */
1078
+ if (e.nodeName) {
1079
+ const t = lt(e.nodeName);
1080
+ if (!ye[t] || xe[t]) {
1081
+ throw k("root node is forbidden and cannot be sanitized in-place");
1082
+ }
1083
+ }
1084
+ } else if (e instanceof c) {
1085
+ /* If dirty is a DOM element, append to an empty document to avoid
1086
+ elements being stripped by the parser */
1087
+ n = yt("\x3c!----\x3e");
1088
+ i = n.ownerDocument.importNode(e, true);
1089
+ if (i.nodeType === Y.element && i.nodeName === "BODY") {
1090
+ /* Node is already a body, use as is */
1091
+ n = i;
1092
+ } else if (i.nodeName === "HTML") {
1093
+ n = i;
1094
+ } else {
1095
+ // eslint-disable-next-line unicorn/prefer-dom-node-append
1096
+ n.appendChild(i);
1097
+ }
1098
+ } else {
1099
+ /* Exit directly if we have nothing to do */
1100
+ if (!Le && !Re && !Oe &&
1101
+ // eslint-disable-next-line unicorn/prefer-includes
1102
+ e.indexOf("<") === -1) {
1103
+ return ee && Ne ? ee.createHTML(e) : e;
1104
+ }
1105
+ /* Initialize the document to work on */ n = yt(e);
1106
+ /* Check we have a DOM node from the data */ if (!n) {
1107
+ return Le ? null : Ne ? te : "";
1108
+ }
1109
+ }
1110
+ /* Remove first element node (ours) if FORCE_BODY is set */ if (n && ze) {
1111
+ gt(n.firstChild);
1112
+ }
1113
+ /* Get node iterator */ const s = Tt(Ue ? e : n);
1114
+ /* Now start iterating over the created document */ while (r = s.nextNode()) {
1115
+ /* Sanitize tags and elements */
1116
+ St(r);
1117
+ /* Check attributes next */ _t(r);
1118
+ /* Shadow DOM detected, sanitize it */ if (r.content instanceof a) {
1119
+ vt(r.content);
1120
+ }
1121
+ }
1122
+ /* If we sanitized `dirty` in-place, return it. */ if (Ue) {
1123
+ return e;
1124
+ }
1125
+ /* Return sanitized string or DOM */ if (Le) {
1126
+ if (Ie) {
1127
+ l = ie.call(n.ownerDocument);
1128
+ while (n.firstChild) {
1129
+ // eslint-disable-next-line unicorn/prefer-dom-node-append
1130
+ l.appendChild(n.firstChild);
1131
+ }
1132
+ } else {
1133
+ l = n;
1134
+ }
1135
+ if (be.shadowroot || be.shadowrootmode) {
1136
+ /*
1137
+ AdoptNode() is not used because internal state is not reset
1138
+ (e.g. the past names map of a HTMLFormElement), this is safe
1139
+ in theory but we would rather not risk another attack vector.
1140
+ The state that is cloned by importNode() is explicitly defined
1141
+ by the specs.
1142
+ */
1143
+ l = ae.call(o, l, true);
1144
+ }
1145
+ return l;
1146
+ }
1147
+ let u = Oe ? n.outerHTML : n.innerHTML;
1148
+ /* Serialize doctype if allowed */ if (Oe && ye["!doctype"] && n.ownerDocument && n.ownerDocument.doctype && n.ownerDocument.doctype.name && x(G, n.ownerDocument.doctype.name)) {
1149
+ u = "<!DOCTYPE " + n.ownerDocument.doctype.name + ">\n" + u;
1150
+ }
1151
+ /* Sanitize final string template-safe */ if (Re) {
1152
+ f([ se, ce, fe ], (e => {
1153
+ u = T(u, e, " ");
1154
+ }));
1155
+ }
1156
+ return ee && Ne ? ee.createHTML(u) : u;
1157
+ };
1158
+ DOMPurify.setConfig = function() {
1159
+ let e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1160
+ ut(e);
1161
+ Me = true;
1162
+ };
1163
+ DOMPurify.clearConfig = function() {
1164
+ st = null;
1165
+ Me = false;
1166
+ };
1167
+ DOMPurify.isValidAttribute = function(e, t, n) {
1168
+ /* Initialize shared config vars if necessary. */
1169
+ if (!st) {
1170
+ ut({});
1171
+ }
1172
+ const o = lt(e);
1173
+ const i = lt(t);
1174
+ return xt(o, i, n);
1175
+ };
1176
+ DOMPurify.addHook = function(e, t) {
1177
+ if (typeof t !== "function") {
1178
+ return;
1179
+ }
1180
+ p(le[e], t);
1181
+ };
1182
+ DOMPurify.removeHook = function(e, t) {
1183
+ if (t !== undefined) {
1184
+ const n = u(le[e], t);
1185
+ return n === -1 ? undefined : m(le[e], n, 1)[0];
1186
+ }
1187
+ return d(le[e]);
1188
+ };
1189
+ DOMPurify.removeHooks = function(e) {
1190
+ le[e] = [];
1191
+ };
1192
+ DOMPurify.removeAllHooks = function() {
1193
+ le = V();
1194
+ };
1195
+ return DOMPurify;
1196
+ }
1197
+ var K = createDOMPurify();
1198
+ return K;
1199
+ }));
1200
+ })(t);
1201
+
1202
+ const n = t.exports;
1203
+
1204
+ function sanitizeHTMLString(e) {
1205
+ return n(window).sanitize(e, {
1206
+ FORBID_TAGS: [ "style" ],
1207
+ CUSTOM_ELEMENT_HANDLING: {
1208
+ tagNameCheck: /^q2-/
1209
+ }
1210
+ });
1211
+ }
1212
+
1213
+ export { sanitizeHTMLString as s };
1214
+ //# sourceMappingURL=sanitize-html-string-735c19f5.js.map