@undrr/undrr-mangrove 2.0.0 → 2.0.1

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 (175) hide show
  1. package/README.md +9 -5
  2. package/components/BookCard.js +2 -2
  3. package/components/Breadcrumbs.js +2 -2
  4. package/components/Checkbox.js +2 -2
  5. package/components/Chips.js +2 -2
  6. package/components/CopyButton.js +2 -2
  7. package/components/CtaButton.js +2 -2
  8. package/components/Drawer.js +3 -3
  9. package/components/Drawer.js.LICENSE.txt +3 -1
  10. package/components/EmbedContainer.js +2 -2
  11. package/components/Footer.js +2 -2
  12. package/components/FormAction.js +2 -2
  13. package/components/FormErrorSummary.js +2 -2
  14. package/components/FormGroup.js +2 -2
  15. package/components/FullWidth.js +2 -2
  16. package/components/Gallery.js +2 -2
  17. package/components/Hero.js +2 -2
  18. package/components/HighlightBox.js +2 -2
  19. package/components/HorizontalBookCard.js +3 -3
  20. package/components/HorizontalBookCard.js.LICENSE.txt +3 -1
  21. package/components/HorizontalCard.js +3 -3
  22. package/components/HorizontalCard.js.LICENSE.txt +3 -1
  23. package/components/IconCard.js +3 -3
  24. package/components/IconCard.js.LICENSE.txt +3 -1
  25. package/components/Legend.js +2 -2
  26. package/components/Loader.js +3 -3
  27. package/components/MegaMenu.js +2 -2
  28. package/components/Notice.js +2 -2
  29. package/components/PageHeader.js +2 -2
  30. package/components/Pager.js +2 -2
  31. package/components/ProgressBar.js +9 -0
  32. package/components/ProgressBar.js.LICENSE.txt +9 -0
  33. package/components/QuoteHighlight.js +3 -3
  34. package/components/QuoteHighlight.js.LICENSE.txt +3 -1
  35. package/components/Radio.js +2 -2
  36. package/components/Range.js +2 -2
  37. package/components/ScrollContainer.js +2 -2
  38. package/components/SegmentedControl.js +2 -2
  39. package/components/Select.js +2 -2
  40. package/components/ServiceNotice.js +2 -2
  41. package/components/ShareButtons.js +3 -3
  42. package/components/ShowMore.js +2 -2
  43. package/components/SkipLink.js +2 -2
  44. package/components/StatsCard.js +3 -3
  45. package/components/StatsCard.js.LICENSE.txt +3 -1
  46. package/components/SyndicationSearchWidget.js +3 -3
  47. package/components/Tab.js +2 -2
  48. package/components/TextCta.js +3 -3
  49. package/components/TextCta.js.LICENSE.txt +3 -1
  50. package/components/TextInput.js +2 -2
  51. package/components/Textarea.js +2 -2
  52. package/components/Tree.js +2 -2
  53. package/components/UserFeedback.js +2 -2
  54. package/components/VerticalCard.js +3 -3
  55. package/components/VerticalCard.js.LICENSE.txt +3 -1
  56. package/components/hydrate.js +2 -2
  57. package/css/style-all.css +110 -90
  58. package/css/style-all.css.map +1 -1
  59. package/css/style-delta.css +110 -90
  60. package/css/style-delta.css.map +1 -1
  61. package/css/style-gutenberg.css +9 -9
  62. package/css/style-irp.css +110 -90
  63. package/css/style-irp.css.map +1 -1
  64. package/css/style-mcr.css +110 -90
  65. package/css/style-mcr.css.map +1 -1
  66. package/css/style-preventionweb.css +110 -90
  67. package/css/style-preventionweb.css.map +1 -1
  68. package/css/style.css +110 -90
  69. package/css/style.css.map +1 -1
  70. package/docs/EDITORIAL-MANUAL.md +193 -0
  71. package/docs/llms-editorial-manual.txt +200 -0
  72. package/docs/llms-page-building.txt +1140 -0
  73. package/docs/llms-search-widget.txt +765 -0
  74. package/error-pages/401.html +1 -1
  75. package/error-pages/403.html +1 -1
  76. package/error-pages/404.html +1 -1
  77. package/error-pages/429.html +1 -1
  78. package/error-pages/500.html +1 -1
  79. package/error-pages/502.html +1 -1
  80. package/error-pages/503.html +1 -1
  81. package/error-pages/504.html +1 -1
  82. package/error-pages/5xx.html +1 -1
  83. package/error-pages/challenge.html +1 -1
  84. package/error-pages/managed-challenge.html +1 -1
  85. package/js/cite-this.js +352 -0
  86. package/package.json +6 -1
  87. package/scss/Atom/BaseTypography/Abbr/abbr.scss +1 -1
  88. package/scss/Atom/BaseTypography/Blockquote/blockquote.scss +1 -1
  89. package/scss/Atom/BaseTypography/Cite/cite.scss +1 -1
  90. package/scss/Atom/BaseTypography/Code/code.scss +1 -1
  91. package/scss/Atom/BaseTypography/Mark/mark.scss +1 -1
  92. package/scss/Atom/BaseTypography/Quotation/quotation.scss +1 -1
  93. package/scss/Atom/BaseTypography/Small/small.scss +1 -1
  94. package/scss/Atom/Colors/color.scss +1 -1
  95. package/scss/Atom/EmptyState/empty-state.scss +1 -1
  96. package/scss/Atom/Icons/_icon-definitions.scss +35 -3
  97. package/scss/Atom/Icons/icons.scss +1 -1
  98. package/scss/Atom/Images/AuthorImage/author-image.scss +1 -1
  99. package/scss/Atom/Images/Image/image.scss +1 -1
  100. package/scss/Atom/Images/ImageCaptionCredit/image-caption-credit.scss +7 -2
  101. package/scss/Atom/Images/ImageCredit/image-credit.scss +1 -1
  102. package/scss/Atom/Layout/Container/container.scss +1 -1
  103. package/scss/Atom/Layout/Grid/grid.scss +1 -1
  104. package/scss/Atom/Layout/Spacing/spacing.scss +1 -1
  105. package/scss/Atom/Logo/logo.scss +1 -1
  106. package/scss/Atom/Navigation/Breadcrumb/breadcrumb.scss +1 -1
  107. package/scss/Atom/Navigation/MenuItems/menu-items.scss +1 -1
  108. package/scss/Atom/ReachElement/Details/details.scss +1 -1
  109. package/scss/Atom/ReachElement/Figcaption/figcaption.scss +1 -1
  110. package/scss/Atom/StatusLabel/status-label.scss +1 -1
  111. package/scss/Atom/Table/table.scss +1 -1
  112. package/scss/Atom/Tag/tag.scss +1 -1
  113. package/scss/Atom/Video/video.scss +1 -1
  114. package/scss/Components/Boilerplate/boilerplate.scss +1 -1
  115. package/scss/Components/Breadcrumbs/breadcrumbs.scss +1 -1
  116. package/scss/Components/Buttons/Chips/chips.scss +1 -1
  117. package/scss/Components/Buttons/CopyButton/copy-button.scss +1 -1
  118. package/scss/Components/Buttons/CtaButton/buttons.scss +1 -1
  119. package/scss/Components/Buttons/CtaButton/cta-button.scss +1 -1
  120. package/scss/Components/Buttons/ShareButtons/share-buttons.scss +90 -1
  121. package/scss/Components/Cards/Card/card.scss +1 -1
  122. package/scss/Components/Cards/StatsCard/stats-card.scss +1 -1
  123. package/scss/Components/CiteThis/cite-this.scss +186 -0
  124. package/scss/Components/CookieConsentBanner/cookie-consent-banner.scss +1 -1
  125. package/scss/Components/DataViz/Legend/legend.scss +1 -1
  126. package/scss/Components/ErrorPages/error-pages.scss +1 -1
  127. package/scss/Components/Footer/footer.scss +1 -1
  128. package/scss/Components/Forms/Checkbox/checkbox.scss +1 -1
  129. package/scss/Components/Forms/FormAction/form-action.scss +1 -1
  130. package/scss/Components/Forms/FormGroup/form-group.scss +1 -1
  131. package/scss/Components/Forms/InputFields/input-fields.scss +1 -1
  132. package/scss/Components/Forms/Radio/radio.scss +1 -1
  133. package/scss/Components/Forms/Range/range.scss +1 -1
  134. package/scss/Components/Forms/SegmentedControl/segmented-control.scss +1 -1
  135. package/scss/Components/Forms/Select/select.scss +1 -1
  136. package/scss/Components/Forms/TextInput/text-input.scss +1 -1
  137. package/scss/Components/Forms/Textarea/textarea.scss +1 -1
  138. package/scss/Components/Forms/_form-base.scss +1 -1
  139. package/scss/Components/Gallery/gallery.scss +1 -1
  140. package/scss/Components/Hero/hero.scss +1 -1
  141. package/scss/Components/HighlightBox/highlight-box.scss +1 -1
  142. package/scss/Components/MegaMenu/mega-menu.scss +1 -1
  143. package/scss/Components/MegaMenu/megamenu.scss +1 -1
  144. package/scss/Components/Navigation/Drawer/drawer.scss +1 -1
  145. package/scss/Components/Navigation/Tree/tree.scss +1 -1
  146. package/scss/Components/Notice/notice.scss +1 -1
  147. package/scss/Components/OnThisPageNav/on-this-page-nav.scss +1 -1
  148. package/scss/Components/PageHeader/page-header.scss +1 -1
  149. package/scss/Components/Pager/pager.scss +1 -1
  150. package/scss/Components/PreviewAccess/preview-access.scss +1 -1
  151. package/scss/Components/ProgressBar/progress-bar.scss +215 -0
  152. package/scss/Components/QuoteHighlight/quote-highlight.scss +1 -1
  153. package/scss/Components/ScrollContainer/scroll-container.scss +1 -1
  154. package/scss/Components/Snackbar/snackbar.scss +1 -1
  155. package/scss/Components/SyndicationSearchWidget/_deprecated-teaser-hide.scss +1 -1
  156. package/scss/Components/SyndicationSearchWidget/syndication-search-widget.scss +1 -1
  157. package/scss/Components/Tab/tab.scss +1 -1
  158. package/scss/Components/TableOfContents/table-of-contents.scss +1 -1
  159. package/scss/Components/TextCta/text-cta.scss +1 -1
  160. package/scss/Components/TextCta/textcta.scss +1 -1
  161. package/scss/Components/UserFeedback/user-feedback.scss +1 -1
  162. package/scss/Molecules/ImageCaption/image-caption.scss +17 -3
  163. package/scss/Molecules/SectionHeader/section-header.scss +1 -1
  164. package/scss/Molecules/SectionHeader/sectionheader.scss +1 -1
  165. package/scss/Patterns/HubHeader/hub-header.scss +1 -1
  166. package/scss/Patterns/_shared/pattern-demo.scss +1 -1
  167. package/scss/Utilities/EmbedContainer/embed-container.scss +1 -1
  168. package/scss/Utilities/FullWidth/full-width.scss +1 -1
  169. package/scss/Utilities/Loader/loader.scss +55 -12
  170. package/scss/Utilities/Normalize/normalize.scss +1 -1
  171. package/scss/Utilities/PagePatterns/page-patterns.scss +1 -1
  172. package/scss/Utilities/ShowMore/show-more.scss +1 -1
  173. package/scss/Utilities/SkipLink/skip-link.scss +1 -1
  174. package/scss/assets/scss/_components.scss +2 -0
  175. package/scss/assets/scss/_variables.scss +2 -2
@@ -2,8 +2,8 @@
2
2
  * UNDRR Mangrove component library
3
3
  * Storybook: https://mangrove.undrr.org/
4
4
  * LLMs context: https://mangrove.undrr.org/llms.txt
5
- * Repository: https://github.com/unisdr/undrr-mangrove
6
- * Compiled on: 2026-09-24T08:35:35.831Z
5
+ * Repository: https://github.com/PreventionWeb/undrr-mangrove
6
+ * Compiled on: 2026-10-12T16:04:17.202Z
7
7
  */
8
8
  /*! For license information please see ShowMore.js.LICENSE.txt */
9
9
  import{default as e,useEffect as t,useId as o,useRef as r}from"react";var s={2694(e,t,o){var r=o(6925);function s(){}function n(){}n.resetWarningCache=s,e.exports=function(){function e(e,t,o,s,n,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:n,resetWarningCache:s};return o.PropTypes=o,o}},5556(e,t,o){e.exports=o(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}};const n={};function a(e){const t=n[e];if(void 0!==t)return t.exports;const o=n[e]={exports:{}};return s[e](o,o.exports,a),o.exports}a.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.cw=e=>{var t;return()=>{if(e){var o=e;e=0,t={exports:{}},o.call(t.exports,t,t.exports)}return t.exports}},a.d=(e,t)=>{for(var o in t)a.o(t,o)&&!a.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var l=a.cw(function(e,t){var o=Symbol.for("react.transitional.element");function r(e,t,r){var s=null;if(void 0!==r&&(s=""+r),void 0!==t.key&&(s=""+t.key),"key"in t)for(var n in r={},t)"key"!==n&&(r[n]=t[n]);else r=t;return t=r.ref,{$$typeof:o,type:e,key:s,ref:void 0!==t?t:null,props:r}}Symbol.for("react.fragment"),t.jsx=r,t.jsxs=r}),i=a.cw(function(e,t){e.exports=l()}),c=a(5556),m=a.n(c);const d=Symbol.for("undrr.mangrove.showMore.targetCounter");function p(e){const t=[];return(e?e instanceof HTMLElement?[e]:e:document.querySelectorAll("[data-mg-show-more]")).forEach(o=>{if(!e&&o.hasAttribute("data-mg-show-more-skip-auto-init"))return;if(o.dataset.mgShowMoreInitialized)return;const r=o.dataset.mgShowMoreTarget||".mg-show-more--container",s=function(e,t){for(let o=e.parentElement;o;o=o.parentElement){const e=o.querySelector(t);if(e)return e}return document.querySelector(t)}(o,r);if(!s)return void console.warn(`[mg-show-more] Target not found: "${r}"`);o.dataset.mgShowMoreInitialized="true";const n=s.classList.contains("mg-show-more--collapsed"),a=o.classList.contains("mg-show-more--button--open"),l=o.textContent,i=o.getAttribute("aria-controls"),c=o.getAttribute("role"),m=e=>{" "!==e.key&&"Spacebar"!==e.key||(e.preventDefault(),o.click())};o.dataset.dataVfGoogleAnalyticsLabel="Show more: "+(o.dataset.mgShowMoreLabelCollapsed||"Show more"),""===s.id&&(s.id=function(){for(;;){const e=globalThis[d],t=Number.isSafeInteger(e)&&e>=0?e:0;globalThis[d]=t+1;const o=`mg-show-more-target-${t}`;if(!document.getElementById(o))return o}}()),o.setAttribute("aria-controls",s.id),"BUTTON"!==o.tagName&&(o.setAttribute("role","button"),o.addEventListener("keydown",m));const p=e=>{e.preventDefault(),s.classList.toggle("mg-show-more--collapsed"),o.textContent=s.classList.contains("mg-show-more--collapsed")?o.dataset.mgShowMoreLabelCollapsed||"Show more":o.dataset.mgShowMoreLabelOpen||"Show less",s.classList.contains("mg-show-more--collapsed")?o.classList.remove("mg-show-more--button--open"):o.classList.add("mg-show-more--button--open")};o.addEventListener("click",p);const u=e=>{o===e.target||o.contains(e.target)||s.classList.contains("mg-show-more--collapsed")&&o.click()};s.addEventListener("focusin",u);const g=()=>{s.classList.contains("mg-show-more--collapsed")&&o.click()};s.addEventListener("click",g),o.click(),t.push(()=>{o.removeEventListener("click",p),o.removeEventListener("keydown",m),s.removeEventListener("focusin",u),s.removeEventListener("click",g),s.classList.toggle("mg-show-more--collapsed",n),o.classList.toggle("mg-show-more--button--open",a),o.textContent=l;for(const[e,t]of[["aria-controls",i],["role",c]])null===t?o.removeAttribute(e):o.setAttribute(e,t);delete o.dataset.mgShowMoreInitialized})}),()=>t.splice(0).forEach(e=>e())}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>p(),!1):p(),i();const u=[];function g({item:o,id:s,labelOpen:n,labelCollapsed:a}){const i=r(null);return t(()=>p(i.current),[]),t(()=>{const e=i.current,t=document.getElementById(s);e.textContent=t.classList.contains("mg-show-more--collapsed")?a:n},[s,n,a]),(0,l().jsxs)(e.Fragment,{children:[(0,l().jsx)("div",{id:s,className:o.collapsable_wrapper_class,children:o.collapsable_text}),(0,l().jsx)("button",{ref:i,type:"button",className:"mg-button mg-button-primary mg-show-more--button","data-mg-show-more":"true","data-mg-show-more-skip-auto-init":"true","data-mg-show-more-target":`#${s}`,"data-mg-show-more-label-open":n,"data-mg-show-more-label-collapsed":a,children:a})]})}const f=m().shape({button_text:m().string,collapsable_wrapper_class:m().string.isRequired,collapsable_text:m().string.isRequired});function h({data:t=u,labelOpen:r="Show less",labelCollapsed:s="Show more"}){const n=o().replace(/[^a-zA-Z0-9_-]/g,"");return(0,l().jsx)(e.Fragment,{children:t.map((e,t)=>(0,l().jsx)(g,{item:e,id:`mg-show-more-${n}-${t}`,labelOpen:r,labelCollapsed:s},t))})}g.propTypes={item:f.isRequired,id:m().string.isRequired,labelOpen:m().string.isRequired,labelCollapsed:m().string.isRequired},h.propTypes={data:m().arrayOf(f).isRequired,labelOpen:m().string,labelCollapsed:m().string};const b=h;export{h as ShowMore,b as default};
@@ -2,8 +2,8 @@
2
2
  * UNDRR Mangrove component library
3
3
  * Storybook: https://mangrove.undrr.org/
4
4
  * LLMs context: https://mangrove.undrr.org/llms.txt
5
- * Repository: https://github.com/unisdr/undrr-mangrove
6
- * Compiled on: 2026-09-24T08:35:35.831Z
5
+ * Repository: https://github.com/PreventionWeb/undrr-mangrove
6
+ * Compiled on: 2026-10-12T16:04:17.202Z
7
7
  */
8
8
  /*! For license information please see SkipLink.js.LICENSE.txt */
9
9
  import"react";var e={2694(e,t,r){var n=r(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,a,s){if(s!==n){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return r.PropTypes=r,r}},5556(e,t,r){e.exports=r(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}};const t={};function r(n){const o=t[n];if(void 0!==o)return o.exports;const a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.cw=e=>{var t;return()=>{if(e){var r=e;e=0,t={exports:{}},r.call(t.exports,t,t.exports)}return t.exports}},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n=r.cw(function(e,t){var r=Symbol.for("react.transitional.element");Symbol.for("react.fragment"),t.jsx=function(e,t,n){var o=null;if(void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),"key"in t)for(var a in n={},t)"key"!==a&&(n[a]=t[a]);else n=t;return t=n.ref,{$$typeof:r,type:e,key:o,ref:void 0!==t?t:null,props:n}}}),o=r.cw(function(e,t){e.exports=n()}),a=r(5556),s=r.n(a);function c({targetId:e="main-content",label:t="Skip to main content",className:r,onClick:o,...a}){const s=["mg-skip-link",r].filter(Boolean).join(" ");return(0,n().jsx)("a",{className:s,href:`#${e}`,onClick:t=>{const r="undefined"==typeof document?null:document.getElementById(e);r&&r.focus(),o&&o(t)},...a,children:t})}o(),c.propTypes={targetId:s().string,label:s().string,className:s().string,onClick:s().func};const i=c;export{c as SkipLink,i as default};
@@ -2,8 +2,8 @@
2
2
  * UNDRR Mangrove component library
3
3
  * Storybook: https://mangrove.undrr.org/
4
4
  * LLMs context: https://mangrove.undrr.org/llms.txt
5
- * Repository: https://github.com/unisdr/undrr-mangrove
6
- * Compiled on: 2026-09-24T08:35:35.831Z
5
+ * Repository: https://github.com/PreventionWeb/undrr-mangrove
6
+ * Compiled on: 2026-10-12T16:04:17.202Z
7
7
  */
8
8
  /*! For license information please see StatsCard.js.LICENSE.txt */
9
- import"react";var t={2694(t,e,n){var r=n(6925);function o(){}function a(){}a.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},5556(t,e,n){t.exports=n(2694)()},6925(t){t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}};const e={};function n(r){const o=e[r];if(void 0!==o)return o.exports;const a=e[r]={exports:{}};return t[r](a,a.exports,n),a.exports}n.n=t=>{const e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.cw=t=>{var e;return()=>{if(t){var n=t;t=0,e={exports:{}},n.call(e.exports,e,e.exports)}return e.exports}},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r=n.cw(function(t,e){var n=Symbol.for("react.transitional.element");function r(t,e,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==e.key&&(o=""+e.key),"key"in e)for(var a in r={},e)"key"!==a&&(r[a]=e[a]);else r=e;return e=r.ref,{$$typeof:n,type:t,key:o,ref:void 0!==e?e:null,props:r}}Symbol.for("react.fragment"),e.jsx=r,e.jsxs=r}),o=n.cw(function(t,e){t.exports=r()}),a=n(5556),i=n.n(a);o();const l=({type:t=2,children:e,className:n,tabIndex:o,...a})=>{const i=`h${Math.min(Math.max(parseInt(t,10)||2,1),6)}`;return(0,r().jsx)(i,{className:n,tabIndex:o,...a,children:e})};function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,s=!1;try{if(a=(n=n.call(t)).next,0===e);else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const u=Object.entries,f=Object.setPrototypeOf,p=Object.isFrozen,m=Object.getPrototypeOf,d=Object.getOwnPropertyDescriptor;let h=Object.freeze,g=Object.seal,y=Object.create,b="undefined"!=typeof Reflect&&Reflect,T=b.apply,S=b.construct;h||(h=function(t){return t}),g||(g=function(t){return t}),T||(T=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return t.apply(e,r)}),S||(S=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return new t(...n)});const v=B(Array.prototype.forEach),A=B(Array.prototype.lastIndexOf),E=B(Array.prototype.pop),w=B(Array.prototype.push),x=B(Array.prototype.splice),_=Array.isArray,N=B(String.prototype.toLowerCase),O=B(String.prototype.toString),k=B(String.prototype.match),D=B(String.prototype.replace),R=B(String.prototype.indexOf),C=B(String.prototype.trim),I=B(Number.prototype.toString),L=B(Boolean.prototype.toString),M="undefined"==typeof BigInt?null:B(BigInt.prototype.toString),z="undefined"==typeof Symbol?null:B(Symbol.prototype.toString),P=B(Object.prototype.hasOwnProperty),j=B(Object.prototype.toString),U=B(RegExp.prototype.test),F=(H=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return S(H,e)});var H;function B(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return T(t,e,r)}}function W(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:N;if(f&&f(t,null),!_(e))return t;let r=e.length;for(;r--;){let o=e[r];if("string"==typeof o){const t=n(o);t!==o&&(p(e)||(e[r]=t),o=t)}t[o]=!0}return t}function Y(t){for(let e=0;e<t.length;e++)P(t,e)||(t[e]=null);return t}function $(t){const e=y(null);for(const r of u(t)){var n=s(r,2);const o=n[0],a=n[1];P(t,o)&&(_(a)?e[o]=Y(a):a&&"object"==typeof a&&a.constructor===Object?e[o]=$(a):e[o]=a)}return e}function G(t,e){for(;null!==t;){const n=d(t,e);if(n){if(n.get)return B(n.get);if("function"==typeof n.value)return B(n.value)}t=m(t)}return function(){return null}}const q=h(["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","search","section","select","shadow","slot","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"]),X=h(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),K=h(["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"]),V=h(["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"]),Z=h(["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"]),J=h(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Q=h(["#text"]),tt=h(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),et=h(["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","dominant-baseline","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","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","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-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","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"]),nt=h(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),rt=h(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ot=g(/{{[\w\W]*|^[\w\W]*}}/g),at=g(/<%[\w\W]*|^[\w\W]*%>/g),it=g(/\${[\w\W]*/g),lt=g(/^data-[\-\w.\u00B7-\uFFFF]+$/),ct=g(/^aria-[\-\w]+$/),st=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ut=g(/^(?:\w+script|data):/i),ft=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),pt=g(/^html$/i),mt=g(/^[a-z][.\w]*(-[.\w]+)+$/i),dt=g(/<[/\w!]/g),ht=g(/<[/\w]/g),gt=g(/<\/no(script|embed|frames)/i),yt=g(/\/>/i),bt=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],Tt=h(W({},bt)),St=function(){const t={};return v(bt,e=>{t[e]=g(new RegExp("</"+e+"(?=[\\t\\n\\f\\r />])","i"))}),h(t)}(),vt=function(){return"undefined"==typeof window?null:window},At=function(t,e,n,r){return P(t,e)&&_(t[e])?W(r.base?$(r.base):{},t[e],r.transform):n},Et=function(t,e,n){const r=P(t,e)?t[e]:void 0;return r&&"object"==typeof r?$(r):n()};var wt=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vt();const n=e=>t(e);if(n.version="3.4.15",n.removed=[],!e||!e.document||9!==e.document.nodeType||!e.Element)return n.isSupported=!1,n;let r=e.document;const o=r,a=o.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,l=e.Node,c=e.Element,s=e.NodeFilter;void 0===e.NamedNodeMap&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const f=e.DOMParser,p=e.trustedTypes,m=c.prototype,d=G(m,"cloneNode"),b=G(m,"remove"),T=G(m,"removeAttributeNode"),S=G(m,"nextSibling"),H=G(m,"childNodes"),B=G(m,"parentNode"),Y=G(m,"shadowRoot"),bt=G(m,"attributes"),wt=l&&l.prototype?G(l.prototype,"nodeType"):null,xt=l&&l.prototype?G(l.prototype,"nodeName"):null,_t=l&&l.prototype?G(l.prototype,"ownerDocument"):null,Nt=function(t){return wt?wt(t):t.nodeType},Ot=function(t){return xt?xt(t):t.nodeName};if("function"==typeof i){const t=r.createElement("template");t.content&&t.content.ownerDocument&&(r=t.content.ownerDocument)}let kt,Dt,Rt="",Ct=!1,It=0;const Lt=function(){if(It>0)throw F('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Mt=function(t){Lt(),It++;try{return kt.createHTML(t)}finally{It--}},zt=r,Pt=zt.implementation,jt=zt.createNodeIterator,Ut=zt.createDocumentFragment,Ft=zt.getElementsByTagName,Ht=o.importNode;let Bt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof u&&"function"==typeof B&&Pt&&void 0!==Pt.createHTMLDocument;const Wt=ot,Yt=at,$t=it,Gt=lt,qt=ct,Xt=ut,Kt=ft,Vt=mt;let Zt=st,Jt=null;const Qt=W({},[...q,...X,...K,...Z,...Q]);let te=null;const ee=W({},[...tt,...et,...nt,...rt]);let ne=Object.seal(y(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),re=null,oe=null;const ae=Object.seal(y(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ie=!0,le=!0,ce=!1,se=!0,ue=!1,fe=!0,pe=!1,me=!1,de=null,he=null,ge=!1,ye=!1,be=!1,Te=!1,Se=!0,ve=!1;const Ae="user-content-";let Ee=!0,we=!1,xe={},_e=null;const Ne=W({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Oe=null;const ke=W({},["audio","video","img","source","image","track"]);let De=null;const Re=W({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ce="http://www.w3.org/1998/Math/MathML",Ie="http://www.w3.org/2000/svg",Le="http://www.w3.org/1999/xhtml";let Me=Le,ze=!1,Pe=null;const je=W({},[Ce,Ie,Le],O),Ue=h(["mi","mo","mn","ms","mtext"]);let Fe=W({},Ue);const He=h(["annotation-xml"]);let Be=W({},He);const We=W({},["title","style","font","a","script"]);let Ye=null;const $e=["application/xhtml+xml","text/html"];let Ge=null,qe=null;const Xe=r.createElement("form"),Ke=function(t){return t instanceof RegExp||t instanceof Function},Ve=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(qe&&qe===t)return;t&&"object"==typeof t||(t={}),t=$(t),Ye=-1===$e.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,Ge="application/xhtml+xml"===Ye?O:N,Jt=At(t,"ALLOWED_TAGS",Qt,{transform:Ge}),te=At(t,"ALLOWED_ATTR",ee,{transform:Ge}),Pe=At(t,"ALLOWED_NAMESPACES",je,{transform:O}),De=At(t,"ADD_URI_SAFE_ATTR",Re,{transform:Ge,base:Re}),Oe=At(t,"ADD_DATA_URI_TAGS",ke,{transform:Ge,base:ke}),_e=At(t,"FORBID_CONTENTS",Ne,{transform:Ge}),re=At(t,"FORBID_TAGS",$({}),{transform:Ge}),oe=At(t,"FORBID_ATTR",$({}),{transform:Ge}),xe=!!P(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?$(t.USE_PROFILES):t.USE_PROFILES),ie=!1!==t.ALLOW_ARIA_ATTR,le=!1!==t.ALLOW_DATA_ATTR,ce=t.ALLOW_UNKNOWN_PROTOCOLS||!1,se=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,ue=t.SAFE_FOR_TEMPLATES||!1,fe=!1!==t.SAFE_FOR_XML,pe=t.WHOLE_DOCUMENT||!1,ye=t.RETURN_DOM||!1,be=t.RETURN_DOM_FRAGMENT||!1,Te=t.RETURN_TRUSTED_TYPE||!1,ge=t.FORCE_BODY||!1,Se=!1!==t.SANITIZE_DOM,ve=t.SANITIZE_NAMED_PROPS||!1,Ee=!1!==t.KEEP_CONTENT,we=t.IN_PLACE||!1,Zt=function(t){try{return U(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:st,Me="string"==typeof t.NAMESPACE?t.NAMESPACE:Le,Fe=Et(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>W({},Ue)),Be=Et(t,"HTML_INTEGRATION_POINTS",()=>W({},He));const e=Et(t,"CUSTOM_ELEMENT_HANDLING",()=>y(null));if(ne=y(null),P(e,"tagNameCheck")&&Ke(e.tagNameCheck)&&(ne.tagNameCheck=e.tagNameCheck),P(e,"attributeNameCheck")&&Ke(e.attributeNameCheck)&&(ne.attributeNameCheck=e.attributeNameCheck),P(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&(ne.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),g(ne),ue&&(le=!1),be&&(ye=!0),xe&&(Jt=W({},Q),te=y(null),!0===xe.html&&(W(Jt,q),W(te,tt)),!0===xe.svg&&(W(Jt,X),W(te,et),W(te,rt)),!0===xe.svgFilters&&(W(Jt,K),W(te,et),W(te,rt)),!0===xe.mathMl&&(W(Jt,Z),W(te,nt),W(te,rt))),ae.tagCheck=null,ae.attributeCheck=null,P(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?ae.tagCheck=t.ADD_TAGS:_(t.ADD_TAGS)&&(Jt===Qt&&(Jt=$(Jt)),W(Jt,t.ADD_TAGS,Ge))),P(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?ae.attributeCheck=t.ADD_ATTR:_(t.ADD_ATTR)&&(te===ee&&(te=$(te)),W(te,t.ADD_ATTR,Ge))),P(t,"ADD_FORBID_CONTENTS")&&_(t.ADD_FORBID_CONTENTS)&&(_e===Ne&&(_e=$(_e)),W(_e,t.ADD_FORBID_CONTENTS,Ge)),Ee&&(Jt["#text"]=!0),pe&&W(Jt,["html","head","body"]),Jt.table&&(W(Jt,["tbody"]),delete re.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw F('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw F('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const e=kt;kt=t.TRUSTED_TYPES_POLICY;try{Rt=Mt("")}catch(t){throw kt=e,t}}else null===t.TRUSTED_TYPES_POLICY?(kt=void 0,Rt=""):(void 0===kt&&(Ct||(Dt=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(p,a),Ct=!0),kt=Dt),kt&&"string"==typeof Rt&&(Rt=Mt("")));h&&h(t),qe=t},Ze=W({},[...X,...K,...V]),Je=W({},[...Z,...J]),Qe=function(t){w(n.removed,{element:t});try{B(t).removeChild(t)}catch(e){if(b(t),!B(t))throw F("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},tn=function(t,e,n){try{T(t,e)}catch(e){try{t.removeAttribute(n)}catch(t){}}},en=function(t){on(t);const e=H(t);if(e){const t=[];v(e,e=>{w(t,e)}),v(t,t=>{try{b(t)}catch(t){}})}const n=bt(t);if(n)for(let e=n.length-1;e>=0;--e){const r=n[e],o=r&&r.name;"string"==typeof o&&tn(t,r,o)}},nn=function(t,e,r){if(!r)try{r=e.getAttributeNode(t)}catch(t){r=null}w(n.removed,{attribute:r||null,from:e});try{r?T(e,r):e.removeAttribute(t)}catch(n){try{e.removeAttribute(t)}catch(t){}}if("is"===t)if(ye||be)try{Qe(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},rn=function(t){const e=bt(t);if(e)for(let n=e.length-1;n>=0;--n){const r=e[n],o=r&&r.name;"string"!=typeof o||te[Ge(o)]||tn(t,r,o)}},on=function(t){const e=[t];for(;e.length>0;){const t=e.pop();1===Nt(t)&&rn(t);const n=H(t);if(n)for(let t=n.length-1;t>=0;--t)e.push(n[t])}},an=function(t,e){return!!fe&&("patchsrc"===t||"for"===t&&"label"!==e&&"output"!==e)},ln=function(t){let e=null,n=null;if(ge)t="<remove></remove>"+t;else{const e=k(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===Ye&&Me===Le&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const o=kt?Mt(t):t;if(Me===Le)try{e=(new f).parseFromString(o,Ye)}catch(t){}if(!e||!e.documentElement){e=Pt.createDocument(Me,"template",null);try{e.documentElement.innerHTML=ze?Rt:o}catch(t){}}const a=e.body||e.documentElement;return t&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),Me===Le?Ft.call(e,pe?"html":"body")[0]:pe?e.documentElement:a},cn=function(t){const e=_t?_t(t):t.ownerDocument;return jt.call(e||t,t,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null)},sn=function(t){return t=D(t,Wt," "),t=D(t,Yt," "),D(t,$t," ")},un=function(t){var e;t.normalize();const n=_t?_t(t):t.ownerDocument,r=jt.call(n||t,t,s.SHOW_TEXT|s.SHOW_COMMENT|s.SHOW_CDATA_SECTION|s.SHOW_PROCESSING_INSTRUCTION,null);let o=r.nextNode();for(;o;)o.data=sn(o.data),o=r.nextNode();const a=null===(e=t.querySelectorAll)||void 0===e?void 0:e.call(t,"template");a&&v(a,t=>{pn(t.content)&&un(t.content)})},fn=function(t){const e=xt?xt(t):null;return"string"==typeof e&&"form"===Ge(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==bt(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.removeAttributeNode||"function"!=typeof t.getAttributeNode||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==wt(t)||t.childNodes!==H(t))},pn=function(t){if(!wt||"object"!=typeof t||null===t)return!1;try{return 11===wt(t)}catch(t){return!1}},mn=function(t){if(!wt||"object"!=typeof t||null===t)return!1;try{return"number"==typeof wt(t)}catch(t){return!1}};function dn(t,e,r){0!==t.length&&v(t,t=>{t.call(n,e,r,qe)})}const hn=function(t,e){if(t instanceof RegExp)return U(t,e);if(t instanceof Function){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Boolean(t(e,...r))}return!1},gn=function(t,e,n,r){return 0===t.length?e:e===n||e===r?$(e):e},yn=function(t,e){return t!==e&&null===B(t)&&(we&&on(t),!0)},bn=function(t,e){if(dn(Bt.beforeSanitizeElements,t,null),yn(t,e))return!0;if(fn(t))return Qe(t),!0;const r=Ge(Ot(t));if(Jt=gn(Bt.uponSanitizeElement,Jt,Qt,de),dn(Bt.uponSanitizeElement,t,{tagName:r,allowedTags:Jt}),yn(t,e))return!0;if(function(t,e){return!!(fe&&t.hasChildNodes()&&!mn(t.firstElementChild)&&U(dt,t.textContent)&&U(dt,t.innerHTML))||!!(fe&&t.namespaceURI===Le&&Tt[e]&&(mn(t.firstElementChild)||"string"==typeof t.textContent&&U(St[e],t.textContent)))||7===t.nodeType||!(!fe||8!==t.nodeType||!U(ht,t.data))}(t,r))return Qe(t),!0;if(re[r]||!(ae.tagCheck instanceof Function&&ae.tagCheck(r))&&!Jt[r]){const n=function(t,e,n){if(!re[e]&&vn(e)&&hn(ne.tagNameCheck,e))return!1;if(Ee&&!_e[e]){const e=B(t),r=H(t);if(r&&e)for(let o=r.length-1;o>=0;--o){const a=t===n?d(r[o],!0):r[o];e.insertBefore(a,S(t))}}return Qe(t),!0}(t,r,e);return!1===n&&dn(Bt.afterSanitizeElements,t,null),n}if(1===Nt(t)&&!function(t){let e=B(t);e&&e.tagName||(e={namespaceURI:Me,tagName:"template"});const n=N(t.tagName),r=N(e.tagName);return!!Pe[t.namespaceURI]&&(t.namespaceURI===Ie?function(t,e,n){return e.namespaceURI===Le?"svg"===t:e.namespaceURI===Ce?"svg"===t&&("annotation-xml"===n||Fe[n]):Boolean(Ze[t])}(n,e,r):t.namespaceURI===Ce?function(t,e,n){return e.namespaceURI===Le?"math"===t:e.namespaceURI===Ie?"math"===t&&Be[n]:Boolean(Je[t])}(n,e,r):t.namespaceURI===Le?function(t,e,n){return!(e.namespaceURI===Ie&&!Be[n])&&!(e.namespaceURI===Ce&&!Fe[n])&&!Je[t]&&(We[t]||!Ze[t])}(n,e,r):!("application/xhtml+xml"!==Ye||!Pe[t.namespaceURI]))}(t))return Qe(t),!0;if(("noscript"===r||"noembed"===r||"noframes"===r)&&U(gt,t.innerHTML))return Qe(t),!0;if(ue&&3===t.nodeType){const e=sn(t.textContent);t.textContent!==e&&(w(n.removed,{element:t.cloneNode()}),t.textContent=e)}return dn(Bt.afterSanitizeElements,t,null),!1},Tn=function(t,e,n){if(oe[e])return!1;if(an(e,t))return!1;if(Se&&("id"===e||"name"===e)&&(n in r||n in Xe))return!1;const o=te[e]||ae.attributeCheck instanceof Function&&ae.attributeCheck(e,t);return!(!le||!U(Gt,e))||!(!ie||!U(qt,e))||(o?!(!De[e]&&!U(Zt,D(n,Kt,""))&&("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==R(n,"data:")||!Oe[t])&&(!ce||U(Xt,D(n,Kt,"")))&&n):vn(t)&&hn(ne.tagNameCheck,t)&&hn(ne.attributeNameCheck,e,t)||"is"===e&&ne.allowCustomizedBuiltInElements&&hn(ne.tagNameCheck,n))},Sn=W({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),vn=function(t){return!Sn[N(t)]&&U(Vt,t)},An=function(t,e,n,r){if(kt&&"object"==typeof p&&"function"==typeof p.getAttributeType&&!n)switch(p.getAttributeType(t,e)){case"TrustedHTML":return Mt(r);case"TrustedScriptURL":return function(t){Lt(),It++;try{return kt.createScriptURL(t)}finally{It--}}(r)}return r},En=function(t,e,n,r){try{return n?t.setAttributeNS(n,e,r):t.setAttribute(e,r),!fn(t)||(Qe(t),!1)}catch(n){return nn(e,t),!1}},wn=function(t){dn(Bt.beforeSanitizeAttributes,t,null);const e=t.attributes;if(!e||fn(t))return;te=gn(Bt.uponSanitizeAttribute,te,ee,he);const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:te,forceKeepAttr:void 0};let o=e.length;const a=Ge(t.nodeName);for(;o--;){const i=e[o],l=i.name,c=i.namespaceURI,s=i.value,u=Ge(l),f=s;let p="value"===l?f:C(f),m=!1;r.attrName=u,r.attrValue=p,r.keepAttr=!0,r.forceKeepAttr=void 0,dn(Bt.uponSanitizeAttribute,t,r),p=r.attrValue,!ve||"id"!==u&&"name"!==u||0===R(p,Ae)||(nn(l,t,i),p=Ae+p,m=!0),fe&&U(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,p)||"attributename"===u&&k(p,"href")?nn(l,t,i):r.forceKeepAttr||(r.keepAttr&&(se||!U(yt,p))?(ue&&(p=sn(p)),Tn(a,u,p)?(p=An(a,u,c,p),p!==f&&En(t,l,c,p)&&m&&E(n.removed)):nn(l,t,i)):nn(l,t,i))}dn(Bt.afterSanitizeAttributes,t,null)},xn=function(t){let e=null;const n=cn(t);for(dn(Bt.beforeSanitizeShadowDOM,t,null);e=n.nextNode();)if(dn(Bt.uponSanitizeShadowNode,e,null),bn(e,t),wn(e),pn(e.content)&&xn(e.content),1===Nt(e)){const t=Y(e);pn(t)&&(_n(t),xn(t))}dn(Bt.afterSanitizeShadowDOM,t,null)},_n=function(t){const e=[{node:t,shadow:null}];for(;e.length>0;){const t=e.pop();if(t.shadow){xn(t.shadow);continue}const n=t.node,r=1===Nt(n),o=H(n);if(o)for(let t=o.length-1;t>=0;--t)e.push({node:o[t],shadow:null});if(r){const t=xt?xt(n):null;if("string"==typeof t&&"template"===Ge(t)){const t=n.content;pn(t)&&e.push({node:t,shadow:null})}}if(r){const t=Y(n);pn(t)&&e.push({node:null,shadow:t},{node:t,shadow:null})}}};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,i=null,l=null;if(ze=!t,ze&&(t="\x3c!--\x3e"),"string"!=typeof t&&!mn(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return I(t);case"boolean":return L(t);case"bigint":return M?M(t):"0";case"symbol":return z?z(t):"Symbol()";case"undefined":default:return j(t);case"function":case"object":{if(null===t)return j(t);const e=t,n=G(e,"toString");if("function"==typeof n){const t=n(e);return"string"==typeof t?t:j(t)}return j(t)}}}(t)))throw F("dirty is not a string, aborting");if(!n.isSupported)return t;me?(Jt=de,te=he):Ve(e),(Bt.uponSanitizeElement.length>0||Bt.uponSanitizeAttribute.length>0)&&(Jt=$(Jt)),Bt.uponSanitizeAttribute.length>0&&(te=$(te)),n.removed=[];const c=we&&"string"!=typeof t&&mn(t);if(c){!function(t){if(!fe)return;const e=[t];for(;e.length>0;){const t=e.pop(),n=Nt(t);if(7===n||8===n&&U(ht,t.data)){try{b(t)}catch(t){}continue}if(1===n){const e=t,n=Ge(Ot(t));try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&an("for",n)&&e.removeAttribute("for")}catch(t){}}const r=H(t);if(r)for(let t=r.length-1;t>=0;--t)e.push(r[t])}}(t);const e=Ot(t);if("string"==typeof e){const n=Ge(e);if(!Jt[n]||re[n])throw en(t),F("root node is forbidden and cannot be sanitized in-place")}if(fn(t))throw en(t),F("root node is clobbered and cannot be sanitized in-place");try{_n(t)}catch(e){throw en(t),e}}else if(mn(t))r=ln("\x3c!----\x3e"),a=r.ownerDocument.importNode(t,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a),_n(r);else{if(!ye&&!ue&&!pe&&-1===t.indexOf("<"))return kt&&Te?Mt(t):t;if(r=ln(t),!r)return ye?null:Te?Rt:""}r&&ge&&Qe(r.firstChild);const s=c?t:r;try{const t=cn(s);for(;i=t.nextNode();)bn(i,s),wn(i),pn(i.content)&&xn(i.content)}catch(e){throw c&&(en(t),v(n.removed,t=>{t.element&&on(t.element)})),e}if(c)return v(n.removed,t=>{t.element&&on(t.element)}),ue&&un(t),t;if(ye){if(ue&&un(r),be)for(l=Ut.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(te.shadowroot||te.shadowrootmode)&&(l=Ht.call(o,l,!0)),l}let u=pe?r.outerHTML:r.innerHTML;return pe&&Jt["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&U(pt,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),ue&&(u=sn(u)),kt&&Te?Mt(u):u},n.setConfig=function(){Ve(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),me=!0,de=Jt,he=te},n.clearConfig=function(){qe=null,me=!1,de=null,he=null,kt=Dt,Rt=""},n.isValidAttribute=function(t,e,n){qe||Ve({});const r=Ge(t),o=Ge(e);return Tn(r,o,n)},n.addHook=function(t,e){"function"==typeof e&&P(Bt,t)&&w(Bt[t],e)},n.removeHook=function(t,e){if(P(Bt,t)){if(void 0!==e){const n=A(Bt[t],e);return-1===n?void 0:x(Bt[t],n,1)[0]}return E(Bt[t])}},n.removeHooks=function(t){P(Bt,t)&&(Bt[t]=[])},n.removeAllHooks=function(){Bt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();function xt({icon:t,label:e,value:n,bottomLabel:o,summaryText:a,link:i,className:l="",...c}){const s="mg-stats-card-item",u=["mg-card",s,i&&`${s}--linked`,l].filter(Boolean).join(" "),f=i?(0,r().jsx)("a",{href:i,className:`${s}__value`,children:n}):(0,r().jsx)("data",{className:`${s}__value`,value:n,children:n});return(0,r().jsxs)("article",{className:u,...c,children:[t&&(0,r().jsx)("span",{className:`${s}__icon`,"aria-hidden":"true",children:(0,r().jsx)("span",{className:t})}),e&&(0,r().jsx)("span",{className:`${s}__label`,children:e}),f,o&&(0,r().jsx)("strong",{className:`${s}__bottom-label`,children:o}),a&&(0,r().jsx)("p",{className:`${s}__summary`,dangerouslySetInnerHTML:{__html:wt.sanitize(a)}})]})}xt.propTypes={icon:i().string,label:i().string,value:i().oneOfType([i().string,i().number]).isRequired,bottomLabel:i().string,summaryText:i().string,link:i().string,className:i().string};const _t=[];function Nt({title:t,stats:e=_t,variant:n="default",className:o="",...a}){const i="mg-stats-card",c=e.length;let s="mg-grid";c>0&&c<=12?s=`mg-grid mg-grid__col-${c}`:c>12&&(s="mg-grid mg-grid--auto-fit");const u=[i,n&&`${i}--${n}`,o].filter(Boolean).join(" ");return(0,r().jsxs)("section",{className:u,"aria-label":t||"Statistics",...a,children:[t&&(0,r().jsx)(l,{type:"2",children:t}),(0,r().jsx)("div",{className:s,children:e.map((t,e)=>(0,r().jsx)(xt,{icon:t.icon,label:t.label,value:t.value,bottomLabel:t.bottomLabel,summaryText:t.summaryText,link:t.link},e))})]})}Nt.propTypes={title:i().string,stats:i().arrayOf(i().shape({icon:i().string,label:i().string,value:i().oneOfType([i().string,i().number]).isRequired,bottomLabel:i().string,summaryText:i().string,link:i().string})),variant:i().oneOf(["default","compact","highlighted","negative"]),className:i().string};const Ot=Nt;function kt(t){const{dataset:e}=t,n={title:e.title||void 0,variant:e.variant||"default",className:e.className||""};try{n.stats=e.stats?JSON.parse(e.stats):[]}catch{n.stats=[]}return n}export{Nt as StatsCard,Ot as default,kt as fromElement};
9
+ import"react";var t={2694(t,e,n){var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5556(t,e,n){t.exports=n(2694)()},6925(t){t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}};const e={};function n(r){const o=e[r];if(void 0!==o)return o.exports;const i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=t=>{const e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.cw=t=>{var e;return()=>{if(t){var n=t;t=0,e={exports:{}},n.call(e.exports,e,e.exports)}return e.exports}},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r=n.cw(function(t,e){var n=Symbol.for("react.transitional.element");function r(t,e,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==e.key&&(o=""+e.key),"key"in e)for(var i in r={},e)"key"!==i&&(r[i]=e[i]);else r=e;return e=r.ref,{$$typeof:n,type:t,key:o,ref:void 0!==e?e:null,props:r}}Symbol.for("react.fragment"),e.jsx=r,e.jsxs=r}),o=n.cw(function(t,e){t.exports=r()}),i=n(5556),a=n.n(i);o();const l=({type:t=2,children:e,className:n,tabIndex:o,...i})=>{const a=`h${Math.min(Math.max(parseInt(t,10)||2,1),6)}`;return(0,r().jsx)(a,{className:n,tabIndex:o,...i,children:e})};function c(t,e){this.v=t,this.k=e}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t){var e,n;function r(e,n){try{var i=t[e](n),a=i.value,l=a instanceof c;Promise.resolve(l?a.v:a).then(function(n){if(l){var c="return"===e&&a.k?e:"next";if(!a.k||n.done)return r(c,n);n=t[c](n).value}o(!!i.done,n)},function(t){r("throw",t)})}catch(t){o(2,t)}}function o(t,o){2===t?e.reject(o):e.resolve({value:o,done:t}),(e=e.next)?r(e.key,e.arg):n=null}this._invoke=function(t,o){return new Promise(function(i,a){var l={key:t,arg:o,resolve:i,reject:a,next:null};n?n=n.next=l:(e=n=l,r(t,o))})},"function"!=typeof t.return&&(this.return=void 0)}f.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},f.prototype.next=function(t){return this._invoke("next",t)},f.prototype.throw=function(t){return this._invoke("throw",t)},f.prototype.return=function(t){return this._invoke("return",t)};const p=Object.entries,m=Object.setPrototypeOf,d=Object.isFrozen,h=Object.getPrototypeOf,y=Object.getOwnPropertyDescriptor;let g=Object.freeze,b=Object.seal,v=Object.create,T="undefined"!=typeof Reflect&&Reflect,S=T.apply,x=T.construct;g||(g=function(t){return t}),b||(b=function(t){return t}),S||(S=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return t.apply(e,r)}),x||(x=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return new t(...n)});const w=Y(Array.prototype.forEach);Array.prototype.indexOf;const A=Y(Array.prototype.lastIndexOf),E=Y(Array.prototype.pop),_=Y(Array.prototype.push);Array.prototype.slice;const N=Y(Array.prototype.splice),O=Array.isArray,k=Y(String.prototype.toLowerCase),D=Y(String.prototype.toString),R=Y(String.prototype.match),C=Y(String.prototype.replace),I=Y(String.prototype.indexOf),L=Y(String.prototype.trim),M=Y(Number.prototype.toString),z=Y(Boolean.prototype.toString),P="undefined"==typeof BigInt?null:Y(BigInt.prototype.toString),j="undefined"==typeof Symbol?null:Y(Symbol.prototype.toString),U=Y(Object.prototype.hasOwnProperty),F=Y(Object.prototype.toString),H=Y(RegExp.prototype.test),B=(W=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return x(W,e)});var W;function Y(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return S(t,e,r)}}function $(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:k;if(m&&m(t,null),!O(e))return t;let r=e.length;for(;r--;){let o=e[r];if("string"==typeof o){const t=n(o);t!==o&&(d(e)||(e[r]=t),o=t)}t[o]=!0}return t}function G(t){for(let e=0;e<t.length;e++)U(t,e)||(t[e]=null);return t}function q(t){const e=v(null);for(const r of p(t)){var n=u(r,2);const o=n[0],i=n[1];U(t,o)&&(O(i)?e[o]=G(i):i&&"object"==typeof i&&i.constructor===Object?e[o]=q(i):e[o]=i)}return e}function X(t,e){for(;null!==t;){const n=y(t,e);if(n){if(n.get)return Y(n.get);if("function"==typeof n.value)return Y(n.value)}t=h(t)}return function(){return null}}const K=g(["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","search","section","select","shadow","slot","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"]),V=g(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Z=g(["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"]),J=g(["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"]),Q=g(["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"]),tt=g(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),et=g(["#text"]),nt=g(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),rt=g(["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","dominant-baseline","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","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","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-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","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"]),ot=g(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),it=g(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),at=b(/{{[\w\W]*|^[\w\W]*}}/g),lt=b(/<%[\w\W]*|^[\w\W]*%>/g),ct=b(/\${[\w\W]*/g),st=b(/^data-[\-\w.\u00B7-\uFFFF]+$/),ut=b(/^aria-[\-\w]+$/),ft=b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),pt=b(/^(?:\w+script|data):/i),mt=b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),dt=b(/^html$/i),ht=b(/^[a-z][.\w]*(-[.\w]+)+$/i),yt=b(/<[/\w!]/g),gt=b(/<[/\w]/g),bt=b(/<\/no(script|embed|frames)/i),vt=b(/\/>/i),Tt=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],St=g($({},Tt)),xt=function(){const t={};return w(Tt,e=>{t[e]=b(new RegExp("</"+e+"(?=[\\t\\n\\f\\r />])","i"))}),g(t)}(),wt=function(){return"undefined"==typeof window?null:window},At=function(t,e,n,r){return U(t,e)&&O(t[e])?$(r.base?q(r.base):{},t[e],r.transform):n},Et=function(t,e,n){const r=U(t,e)?t[e]:void 0;return r&&"object"==typeof r?q(r):n()};var _t=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wt();const n=e=>t(e);if(n.version="3.4.16",n.removed=[],!e||!e.document||9!==e.document.nodeType||!e.Element)return n.isSupported=!1,n;let r=e.document;const o=r,i=o.currentScript;e.DocumentFragment;const a=e.HTMLTemplateElement,l=e.Node,c=e.Element,s=e.NodeFilter;void 0===e.NamedNodeMap&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const u=e.DOMParser,f=e.trustedTypes,m=c.prototype,d=X(m,"cloneNode"),h=X(m,"remove"),y=X(m,"removeAttributeNode"),T=X(m,"nextSibling"),S=X(m,"childNodes"),x=X(m,"parentNode"),W=X(m,"shadowRoot"),Y=X(m,"attributes"),G=l&&l.prototype?X(l.prototype,"nodeType"):null,Tt=l&&l.prototype?X(l.prototype,"nodeName"):null,_t=l&&l.prototype?X(l.prototype,"ownerDocument"):null,Nt=function(t){return G?G(t):t.nodeType},Ot=function(t){return Tt?Tt(t):t.nodeName};if("function"==typeof a){const t=r.createElement("template");t.content&&t.content.ownerDocument&&(r=t.content.ownerDocument)}let kt,Dt,Rt="",Ct=!1,It=0;const Lt=function(){if(It>0)throw B('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Mt=function(t){Lt(),It++;try{return kt.createHTML(t)}finally{It--}},zt=r,Pt=zt.implementation,jt=zt.createNodeIterator,Ut=zt.createDocumentFragment,Ft=zt.getElementsByTagName,Ht=o.importNode;let Bt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof p&&"function"==typeof x&&Pt&&void 0!==Pt.createHTMLDocument;const Wt=at,Yt=lt,$t=ct,Gt=st,qt=ut,Xt=pt,Kt=mt,Vt=ht;let Zt=ft,Jt=null;const Qt=$({},[...K,...V,...Z,...Q,...et]);let te=null;const ee=$({},[...nt,...rt,...ot,...it]);let ne=Object.seal(v(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),re=null,oe=null;const ie=Object.seal(v(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ae=!0,le=!0,ce=!1,se=!0,ue=!1,fe=!0,pe=!1,me=!1,de=null,he=null,ye=!1,ge=!1,be=!1,ve=!1,Te=!0,Se=!1;const xe="user-content-";let we=!0,Ae=!1,Ee={},_e=null;const Ne=$({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Oe=null;const ke=$({},["audio","video","img","source","image","track"]);let De=null;const Re=$({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ce="http://www.w3.org/1998/Math/MathML",Ie="http://www.w3.org/2000/svg",Le="http://www.w3.org/1999/xhtml";let Me=Le,ze=!1,Pe=null;const je=$({},[Ce,Ie,Le],D),Ue=g(["mi","mo","mn","ms","mtext"]);let Fe=$({},Ue);const He=g(["annotation-xml"]);let Be=$({},He);const We=$({},["title","style","font","a","script"]);let Ye=null;const $e=["application/xhtml+xml","text/html"];let Ge=null,qe=null;const Xe=r.createElement("form"),Ke=function(t){return t instanceof RegExp||t instanceof Function},Ve=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(qe&&qe===t)return;t&&"object"==typeof t||(t={}),t=q(t),Ye=-1===$e.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,Ge="application/xhtml+xml"===Ye?D:k,Jt=At(t,"ALLOWED_TAGS",Qt,{transform:Ge}),te=At(t,"ALLOWED_ATTR",ee,{transform:Ge}),Pe=At(t,"ALLOWED_NAMESPACES",je,{transform:D}),De=At(t,"ADD_URI_SAFE_ATTR",Re,{transform:Ge,base:Re}),Oe=At(t,"ADD_DATA_URI_TAGS",ke,{transform:Ge,base:ke}),_e=At(t,"FORBID_CONTENTS",Ne,{transform:Ge}),re=At(t,"FORBID_TAGS",q({}),{transform:Ge}),oe=At(t,"FORBID_ATTR",q({}),{transform:Ge}),Ee=!!U(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?q(t.USE_PROFILES):t.USE_PROFILES),ae=!1!==t.ALLOW_ARIA_ATTR,le=!1!==t.ALLOW_DATA_ATTR,ce=t.ALLOW_UNKNOWN_PROTOCOLS||!1,se=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,ue=t.SAFE_FOR_TEMPLATES||!1,fe=!1!==t.SAFE_FOR_XML,pe=t.WHOLE_DOCUMENT||!1,ge=t.RETURN_DOM||!1,be=t.RETURN_DOM_FRAGMENT||!1,ve=t.RETURN_TRUSTED_TYPE||!1,ye=t.FORCE_BODY||!1,Te=!1!==t.SANITIZE_DOM,Se=t.SANITIZE_NAMED_PROPS||!1,we=!1!==t.KEEP_CONTENT,Ae=t.IN_PLACE||!1,Zt=function(t){try{return H(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:ft,Me="string"==typeof t.NAMESPACE?t.NAMESPACE:Le,Fe=Et(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>$({},Ue)),Be=Et(t,"HTML_INTEGRATION_POINTS",()=>$({},He));const e=Et(t,"CUSTOM_ELEMENT_HANDLING",()=>v(null));if(ne=v(null),U(e,"tagNameCheck")&&Ke(e.tagNameCheck)&&(ne.tagNameCheck=e.tagNameCheck),U(e,"attributeNameCheck")&&Ke(e.attributeNameCheck)&&(ne.attributeNameCheck=e.attributeNameCheck),U(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&(ne.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),b(ne),ue&&(le=!1),be&&(ge=!0),Ee&&(Jt=$({},et),te=v(null),!0===Ee.html&&($(Jt,K),$(te,nt)),!0===Ee.svg&&($(Jt,V),$(te,rt),$(te,it)),!0===Ee.svgFilters&&($(Jt,Z),$(te,rt),$(te,it)),!0===Ee.mathMl&&($(Jt,Q),$(te,ot),$(te,it))),ie.tagCheck=null,ie.attributeCheck=null,U(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?ie.tagCheck=t.ADD_TAGS:O(t.ADD_TAGS)&&(Jt===Qt&&(Jt=q(Jt)),$(Jt,t.ADD_TAGS,Ge))),U(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?ie.attributeCheck=t.ADD_ATTR:O(t.ADD_ATTR)&&(te===ee&&(te=q(te)),$(te,t.ADD_ATTR,Ge))),U(t,"ADD_FORBID_CONTENTS")&&O(t.ADD_FORBID_CONTENTS)&&(_e===Ne&&(_e=q(_e)),$(_e,t.ADD_FORBID_CONTENTS,Ge)),we&&(Jt["#text"]=!0),pe&&$(Jt,["html","head","body"]),Jt.table&&($(Jt,["tbody"]),delete re.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw B('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw B('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const e=kt;kt=t.TRUSTED_TYPES_POLICY;try{Rt=Mt("")}catch(t){throw kt=e,t}}else null===t.TRUSTED_TYPES_POLICY?(kt=void 0,Rt=""):(void 0===kt&&(Ct||(Dt=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(f,i),Ct=!0),kt=Dt),kt&&"string"==typeof Rt&&(Rt=Mt("")));g&&g(t),qe=t},Ze=$({},[...V,...Z,...J]),Je=$({},[...Q,...tt]),Qe=function(t){_(n.removed,{element:t});try{x(t).removeChild(t)}catch(e){if(h(t),!x(t))throw B("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},tn=function(t,e,n){try{y(t,e)}catch(e){try{t.removeAttribute(n)}catch(t){}}},en=function(t){on(t);const e=S(t);if(e){const t=[];w(e,e=>{_(t,e)}),w(t,t=>{try{h(t)}catch(t){}})}const n=Y(t);if(n)for(let e=n.length-1;e>=0;--e){const r=n[e],o=r&&r.name;"string"==typeof o&&tn(t,r,o)}},nn=function(t,e,r){if(!r)try{r=e.getAttributeNode(t)}catch(t){r=null}_(n.removed,{attribute:r||null,from:e});try{r?y(e,r):e.removeAttribute(t)}catch(n){try{e.removeAttribute(t)}catch(t){}}if("is"===t)if(ge||be)try{Qe(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},rn=function(t){const e=Y(t);if(e)for(let n=e.length-1;n>=0;--n){const r=e[n],o=r&&r.name;"string"!=typeof o||te[Ge(o)]||tn(t,r,o)}},on=function(t){const e=[t];for(;e.length>0;){const t=e.pop();1===Nt(t)&&rn(t);const n=S(t);if(n)for(let t=n.length-1;t>=0;--t)e.push(n[t])}},an=function(t,e){return!!fe&&("patchsrc"===t||"for"===t&&"label"!==e&&"output"!==e)},ln=function(t){let e=null,n=null;if(ye)t="<remove></remove>"+t;else{const e=R(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===Ye&&Me===Le&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const o=kt?Mt(t):t;if(Me===Le)try{e=(new u).parseFromString(o,Ye)}catch(t){}if(!e||!e.documentElement){e=Pt.createDocument(Me,"template",null);try{e.documentElement.innerHTML=ze?Rt:o}catch(t){}}const i=e.body||e.documentElement;return t&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),Me===Le?Ft.call(e,pe?"html":"body")[0]:pe?e.documentElement:i},cn=function(t){const e=_t?_t(t):t.ownerDocument;return jt.call(e||t,t,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null)},sn=function(t){return t=C(t,Wt," "),t=C(t,Yt," "),C(t,$t," ")},un=function(t){var e;t.normalize();const n=_t?_t(t):t.ownerDocument,r=jt.call(n||t,t,s.SHOW_TEXT|s.SHOW_COMMENT|s.SHOW_CDATA_SECTION|s.SHOW_PROCESSING_INSTRUCTION,null);let o=r.nextNode();for(;o;)o.data=sn(o.data),o=r.nextNode();const i=null===(e=t.querySelectorAll)||void 0===e?void 0:e.call(t,"template");i&&w(i,t=>{pn(t.content)&&un(t.content)})},fn=function(t){const e=Tt?Tt(t):null;return"string"==typeof e&&"form"===Ge(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==Y(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.removeAttributeNode||"function"!=typeof t.getAttributeNode||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==G(t)||t.childNodes!==S(t))},pn=function(t){if(!G||"object"!=typeof t||null===t)return!1;try{return 11===G(t)}catch(t){return!1}},mn=function(t){if(!G||"object"!=typeof t||null===t)return!1;try{return"number"==typeof G(t)}catch(t){return!1}};function dn(t,e,r){0!==t.length&&w(t,t=>{t.call(n,e,r,qe)})}const hn=function(t,e){if(t instanceof RegExp)return H(t,e);if(t instanceof Function){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Boolean(t(e,...r))}return!1},yn=function(t,e,n,r){return 0===t.length?e:e===n||e===r?q(e):e},gn=function(t,e){return t!==e&&null===x(t)&&(Ae&&on(t),!0)},bn=function(t,e){if(dn(Bt.beforeSanitizeElements,t,null),gn(t,e))return!0;if(fn(t))return Qe(t),!0;const r=Ge(Ot(t));if(Jt=yn(Bt.uponSanitizeElement,Jt,Qt,de),dn(Bt.uponSanitizeElement,t,{tagName:r,allowedTags:Jt}),gn(t,e))return!0;if(function(t,e){return!!(fe&&t.hasChildNodes()&&!mn(t.firstElementChild)&&H(yt,t.textContent)&&H(yt,t.innerHTML))||!!(fe&&t.namespaceURI===Le&&St[e]&&(mn(t.firstElementChild)||"string"==typeof t.textContent&&H(xt[e],t.textContent)))||7===t.nodeType||!(!fe||8!==t.nodeType||!H(gt,t.data))}(t,r))return Qe(t),!0;if(re[r]||!(ie.tagCheck instanceof Function&&ie.tagCheck(r))&&!Jt[r]){const n=function(t,e,n){if(!re[e]&&Sn(e)&&hn(ne.tagNameCheck,e))return!1;if(we&&!_e[e]){const e=x(t),r=S(t);if(r&&e)for(let o=r.length-1;o>=0;--o){const i=t===n?d(r[o],!0):r[o];e.insertBefore(i,T(t))}}return Qe(t),!0}(t,r,e);return!(!1!==n||(dn(Bt.afterSanitizeElements,t,null),!gn(t,e)))||n}if(1===Nt(t)&&!function(t){let e=x(t);e&&e.tagName||(e={namespaceURI:Me,tagName:"template"});const n=k(t.tagName),r=k(e.tagName);return!!Pe[t.namespaceURI]&&(t.namespaceURI===Ie?function(t,e,n){return e.namespaceURI===Le?"svg"===t:e.namespaceURI===Ce?"svg"===t&&("annotation-xml"===n||Fe[n]):Boolean(Ze[t])}(n,e,r):t.namespaceURI===Ce?function(t,e,n){return e.namespaceURI===Le?"math"===t:e.namespaceURI===Ie?"math"===t&&Be[n]:Boolean(Je[t])}(n,e,r):t.namespaceURI===Le?function(t,e,n){return!(e.namespaceURI===Ie&&!Be[n])&&!(e.namespaceURI===Ce&&!Fe[n])&&!Je[t]&&(We[t]||!Ze[t])}(n,e,r):!("application/xhtml+xml"!==Ye||!Pe[t.namespaceURI]))}(t))return Qe(t),!0;if(("noscript"===r||"noembed"===r||"noframes"===r)&&H(bt,t.innerHTML))return Qe(t),!0;if(ue&&3===t.nodeType){const e=sn(t.textContent);t.textContent!==e&&(_(n.removed,{element:t.cloneNode()}),t.textContent=e)}return dn(Bt.afterSanitizeElements,t,null),gn(t,e)},vn=function(t,e,n){if(oe[e])return!1;if(an(e,t))return!1;if(Te&&("id"===e||"name"===e)&&(n in r||n in Xe))return!1;const o=te[e]||ie.attributeCheck instanceof Function&&ie.attributeCheck(e,t);return!(!le||!H(Gt,e))||!(!ae||!H(qt,e))||(o?!(!De[e]&&!H(Zt,C(n,Kt,""))&&("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==I(n,"data:")||!Oe[t])&&(!ce||H(Xt,C(n,Kt,"")))&&n):Sn(t)&&hn(ne.tagNameCheck,t)&&hn(ne.attributeNameCheck,e,t)||"is"===e&&ne.allowCustomizedBuiltInElements&&hn(ne.tagNameCheck,n))},Tn=$({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Sn=function(t){return!Tn[k(t)]&&H(Vt,t)},xn=function(t,e,n,r){if(kt&&"object"==typeof f&&"function"==typeof f.getAttributeType&&!n)switch(f.getAttributeType(t,e)){case"TrustedHTML":return Mt(r);case"TrustedScriptURL":return function(t){Lt(),It++;try{return kt.createScriptURL(t)}finally{It--}}(r)}return r},wn=function(t,e,n,r){try{return n?t.setAttributeNS(n,e,r):t.setAttribute(e,r),!fn(t)||(Qe(t),!1)}catch(n){return nn(e,t),!1}},An=function(t,e){if(dn(Bt.beforeSanitizeAttributes,t,null),gn(t,e))return;const r=t.attributes;if(!r||fn(t))return;te=yn(Bt.uponSanitizeAttribute,te,ee,he);const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:te,forceKeepAttr:void 0};let i=r.length;const a=Ge(t.nodeName);for(;i--;){const e=r[i],l=e.name,c=e.namespaceURI,s=e.value,u=Ge(l),f=s;let p="value"===l?f:L(f),m=!1;o.attrName=u,o.attrValue=p,o.keepAttr=!0,o.forceKeepAttr=void 0,dn(Bt.uponSanitizeAttribute,t,o),p=o.attrValue,!Se||"id"!==u&&"name"!==u||0===I(p,xe)||(nn(l,t,e),p=xe+p,m=!0),fe&&H(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,p)||"attributename"===u&&R(p,"href")?nn(l,t,e):o.forceKeepAttr||(!o.keepAttr||!se&&H(vt,p)?nn(l,t,e):(ue&&(p=sn(p)),vn(a,u,p)?(p=xn(a,u,c,p),p!==f&&wn(t,l,c,p)&&m&&E(n.removed)):nn(l,t,e)))}dn(Bt.afterSanitizeAttributes,t,null),gn(t,e)},En=function(t){let e=null;const n=cn(t);for(dn(Bt.beforeSanitizeShadowDOM,t,null);e=n.nextNode();)if(dn(Bt.uponSanitizeShadowNode,e,null),bn(e,t),An(e,t),pn(e.content)&&En(e.content),1===Nt(e)){const t=W(e);pn(t)&&(_n(t),En(t))}dn(Bt.afterSanitizeShadowDOM,t,null)},_n=function(t){const e=[{node:t,shadow:null}];for(;e.length>0;){const t=e.pop();if(t.shadow){En(t.shadow);continue}const n=t.node,r=1===Nt(n),o=S(n);if(o)for(let t=o.length-1;t>=0;--t)e.push({node:o[t],shadow:null});if(r){const t=Tt?Tt(n):null;if("string"==typeof t&&"template"===Ge(t)){const t=n.content;pn(t)&&e.push({node:t,shadow:null})}}if(r){const t=W(n);pn(t)&&e.push({node:null,shadow:t},{node:t,shadow:null})}}};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,a=null,l=null;if(ze=!t,ze&&(t="\x3c!--\x3e"),"string"!=typeof t&&!mn(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return M(t);case"boolean":return z(t);case"bigint":return P?P(t):"0";case"symbol":return j?j(t):"Symbol()";case"undefined":default:return F(t);case"function":case"object":{if(null===t)return F(t);const e=t,n=X(e,"toString");if("function"==typeof n){const t=n(e);return"string"==typeof t?t:F(t)}return F(t)}}}(t)))throw B("dirty is not a string, aborting");if(!n.isSupported)return t;me?(Jt=de,te=he):Ve(e),(Bt.uponSanitizeElement.length>0||Bt.uponSanitizeAttribute.length>0)&&(Jt=q(Jt)),Bt.uponSanitizeAttribute.length>0&&(te=q(te)),n.removed=[];const c=Ae&&"string"!=typeof t&&mn(t);if(c){!function(t){if(!fe)return;const e=[t];for(;e.length>0;){const t=e.pop(),n=Nt(t);if(7===n||8===n&&H(gt,t.data)){try{h(t)}catch(t){}continue}if(1===n){const e=t,n=Ge(Ot(t));try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&an("for",n)&&e.removeAttribute("for")}catch(t){}}const r=S(t);if(r)for(let t=r.length-1;t>=0;--t)e.push(r[t])}}(t);const e=Ot(t);if("string"==typeof e){const n=Ge(e);if(!Jt[n]||re[n])throw en(t),B("root node is forbidden and cannot be sanitized in-place")}if(fn(t))throw en(t),B("root node is clobbered and cannot be sanitized in-place");try{_n(t)}catch(e){throw en(t),e}}else if(mn(t))r=ln("\x3c!----\x3e"),i=r.ownerDocument.importNode(t,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i),_n(r);else{if(!ge&&!ue&&!pe&&-1===t.indexOf("<"))return kt&&ve?Mt(t):t;if(r=ln(t),!r)return ge?null:ve?Rt:""}r&&ye&&Qe(r.firstChild);const s=c?t:r;try{const t=cn(s);for(;a=t.nextNode();)bn(a,s),An(a,s),pn(a.content)&&En(a.content)}catch(e){throw c&&(en(t),w(n.removed,t=>{t.element&&on(t.element)})),e}if(c){let e=!1;if(w(n.removed,n=>{n.element&&(n.element===t&&(e=!0),on(n.element))}),e)throw B("a node selected for removal could not be safely returned; refusing to sanitize in place");return ue&&un(t),t}if(ge){if(ue&&un(r),be)for(l=Ut.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(te.shadowroot||te.shadowrootmode)&&(l=Ht.call(o,l,!0)),l}let u=pe?r.outerHTML:r.innerHTML;return pe&&Jt["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&H(dt,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),ue&&(u=sn(u)),kt&&ve?Mt(u):u},n.setConfig=function(){Ve(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),me=!0,de=Jt,he=te},n.clearConfig=function(){qe=null,me=!1,de=null,he=null,kt=Dt,Rt=""},n.isValidAttribute=function(t,e,n){qe||Ve({});const r=Ge(t),o=Ge(e);return vn(r,o,n)},n.addHook=function(t,e){"function"==typeof e&&U(Bt,t)&&_(Bt[t],e)},n.removeHook=function(t,e){if(U(Bt,t)){if(void 0!==e){const n=A(Bt[t],e);return-1===n?void 0:N(Bt[t],n,1)[0]}return E(Bt[t])}},n.removeHooks=function(t){U(Bt,t)&&(Bt[t]=[])},n.removeAllHooks=function(){Bt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();function Nt({icon:t,label:e,value:n,bottomLabel:o,summaryText:i,link:a,className:l="",...c}){const s="mg-stats-card-item",u=["mg-card",s,a&&`${s}--linked`,l].filter(Boolean).join(" "),f=a?(0,r().jsx)("a",{href:a,className:`${s}__value`,children:n}):(0,r().jsx)("data",{className:`${s}__value`,value:n,children:n});return(0,r().jsxs)("article",{className:u,...c,children:[t&&(0,r().jsx)("span",{className:`${s}__icon`,"aria-hidden":"true",children:(0,r().jsx)("span",{className:t})}),e&&(0,r().jsx)("span",{className:`${s}__label`,children:e}),f,o&&(0,r().jsx)("strong",{className:`${s}__bottom-label`,children:o}),i&&(0,r().jsx)("p",{className:`${s}__summary`,dangerouslySetInnerHTML:{__html:_t.sanitize(i)}})]})}Nt.propTypes={icon:a().string,label:a().string,value:a().oneOfType([a().string,a().number]).isRequired,bottomLabel:a().string,summaryText:a().string,link:a().string,className:a().string};const Ot=[];function kt({title:t,stats:e=Ot,variant:n="default",className:o="",...i}){const a="mg-stats-card",c=e.length;let s="mg-grid";c>0&&c<=12?s=`mg-grid mg-grid__col-${c}`:c>12&&(s="mg-grid mg-grid--auto-fit");const u=[a,n&&`${a}--${n}`,o].filter(Boolean).join(" ");return(0,r().jsxs)("section",{className:u,"aria-label":t||"Statistics",...i,children:[t&&(0,r().jsx)(l,{type:"2",children:t}),(0,r().jsx)("div",{className:s,children:e.map((t,e)=>(0,r().jsx)(Nt,{icon:t.icon,label:t.label,value:t.value,bottomLabel:t.bottomLabel,summaryText:t.summaryText,link:t.link},e))})]})}kt.propTypes={title:a().string,stats:a().arrayOf(a().shape({icon:a().string,label:a().string,value:a().oneOfType([a().string,a().number]).isRequired,bottomLabel:a().string,summaryText:a().string,link:a().string})),variant:a().oneOf(["default","compact","highlighted","negative"]),className:a().string};const Dt=kt;function Rt(t){const{dataset:e}=t,n={title:e.title||void 0,variant:e.variant||"default",className:e.className||""};try{n.stats=e.stats?JSON.parse(e.stats):[]}catch{n.stats=[]}return n}export{kt as StatsCard,Dt as default,Rt as fromElement};
@@ -1,4 +1,6 @@
1
- /*! @license DOMPurify 3.4.15 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.15/LICENSE */
1
+ /*! @license DOMPurify 3.4.16 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.16/LICENSE */
2
+
3
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
2
4
 
3
5
  /**
4
6
  * @license React