@undrr/undrr-mangrove 2.0.0-rc.3 → 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 (177) hide show
  1. package/README.md +19 -10
  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 +3 -3
  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 +111 -91
  58. package/css/style-all.css.map +1 -1
  59. package/css/style-delta.css +111 -91
  60. package/css/style-delta.css.map +1 -1
  61. package/css/style-gutenberg.css +9 -9
  62. package/css/style-irp.css +111 -91
  63. package/css/style-irp.css.map +1 -1
  64. package/css/style-mcr.css +111 -91
  65. package/css/style-mcr.css.map +1 -1
  66. package/css/style-preventionweb.css +111 -91
  67. package/css/style-preventionweb.css.map +1 -1
  68. package/css/style.css +111 -91
  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 +2 -2
  75. package/error-pages/403.html +2 -2
  76. package/error-pages/404.html +3 -3
  77. package/error-pages/429.html +2 -2
  78. package/error-pages/500.html +5 -5
  79. package/error-pages/502.html +2 -2
  80. package/error-pages/503.html +2 -2
  81. package/error-pages/504.html +2 -2
  82. package/error-pages/5xx.html +3 -3
  83. package/error-pages/challenge.html +2 -2
  84. package/error-pages/managed-challenge.html +2 -2
  85. package/js/README.md +1 -0
  86. package/js/cite-this.js +352 -0
  87. package/js/hub-header.js +217 -0
  88. package/package.json +6 -1
  89. package/scss/Atom/BaseTypography/Abbr/abbr.scss +1 -1
  90. package/scss/Atom/BaseTypography/Blockquote/blockquote.scss +1 -1
  91. package/scss/Atom/BaseTypography/Cite/cite.scss +1 -1
  92. package/scss/Atom/BaseTypography/Code/code.scss +1 -1
  93. package/scss/Atom/BaseTypography/Mark/mark.scss +1 -1
  94. package/scss/Atom/BaseTypography/Quotation/quotation.scss +1 -1
  95. package/scss/Atom/BaseTypography/Small/small.scss +1 -1
  96. package/scss/Atom/Colors/color.scss +1 -1
  97. package/scss/Atom/EmptyState/empty-state.scss +1 -1
  98. package/scss/Atom/Icons/_icon-definitions.scss +35 -3
  99. package/scss/Atom/Icons/icons.scss +1 -1
  100. package/scss/Atom/Images/AuthorImage/author-image.scss +1 -1
  101. package/scss/Atom/Images/Image/image.scss +1 -1
  102. package/scss/Atom/Images/ImageCaptionCredit/image-caption-credit.scss +7 -2
  103. package/scss/Atom/Images/ImageCredit/image-credit.scss +1 -1
  104. package/scss/Atom/Layout/Container/container.scss +1 -1
  105. package/scss/Atom/Layout/Grid/grid.scss +1 -1
  106. package/scss/Atom/Layout/Spacing/spacing.scss +1 -1
  107. package/scss/Atom/Logo/logo.scss +1 -1
  108. package/scss/Atom/Navigation/Breadcrumb/breadcrumb.scss +1 -1
  109. package/scss/Atom/Navigation/MenuItems/menu-items.scss +1 -1
  110. package/scss/Atom/ReachElement/Details/details.scss +1 -1
  111. package/scss/Atom/ReachElement/Figcaption/figcaption.scss +1 -1
  112. package/scss/Atom/StatusLabel/status-label.scss +1 -1
  113. package/scss/Atom/Table/table.scss +1 -1
  114. package/scss/Atom/Tag/tag.scss +1 -1
  115. package/scss/Atom/Video/video.scss +1 -1
  116. package/scss/Components/Boilerplate/boilerplate.scss +1 -1
  117. package/scss/Components/Breadcrumbs/breadcrumbs.scss +1 -1
  118. package/scss/Components/Buttons/Chips/chips.scss +1 -1
  119. package/scss/Components/Buttons/CopyButton/copy-button.scss +1 -1
  120. package/scss/Components/Buttons/CtaButton/buttons.scss +1 -1
  121. package/scss/Components/Buttons/CtaButton/cta-button.scss +1 -1
  122. package/scss/Components/Buttons/ShareButtons/share-buttons.scss +90 -1
  123. package/scss/Components/Cards/Card/card.scss +1 -1
  124. package/scss/Components/Cards/StatsCard/stats-card.scss +1 -1
  125. package/scss/Components/CiteThis/cite-this.scss +186 -0
  126. package/scss/Components/CookieConsentBanner/cookie-consent-banner.scss +1 -1
  127. package/scss/Components/DataViz/Legend/legend.scss +1 -1
  128. package/scss/Components/ErrorPages/error-pages.scss +1 -1
  129. package/scss/Components/Footer/footer.scss +1 -1
  130. package/scss/Components/Forms/Checkbox/checkbox.scss +1 -1
  131. package/scss/Components/Forms/FormAction/form-action.scss +1 -1
  132. package/scss/Components/Forms/FormGroup/form-group.scss +1 -1
  133. package/scss/Components/Forms/InputFields/input-fields.scss +1 -1
  134. package/scss/Components/Forms/Radio/radio.scss +1 -1
  135. package/scss/Components/Forms/Range/range.scss +1 -1
  136. package/scss/Components/Forms/SegmentedControl/segmented-control.scss +1 -1
  137. package/scss/Components/Forms/Select/select.scss +1 -1
  138. package/scss/Components/Forms/TextInput/text-input.scss +1 -1
  139. package/scss/Components/Forms/Textarea/textarea.scss +1 -1
  140. package/scss/Components/Forms/_form-base.scss +1 -1
  141. package/scss/Components/Gallery/gallery.scss +1 -1
  142. package/scss/Components/Hero/hero.scss +1 -1
  143. package/scss/Components/HighlightBox/highlight-box.scss +1 -1
  144. package/scss/Components/MegaMenu/mega-menu.scss +1 -1
  145. package/scss/Components/MegaMenu/megamenu.scss +1 -1
  146. package/scss/Components/Navigation/Drawer/drawer.scss +1 -1
  147. package/scss/Components/Navigation/Tree/tree.scss +1 -1
  148. package/scss/Components/Notice/notice.scss +1 -1
  149. package/scss/Components/OnThisPageNav/on-this-page-nav.scss +1 -1
  150. package/scss/Components/PageHeader/page-header.scss +14 -29
  151. package/scss/Components/Pager/pager.scss +1 -1
  152. package/scss/Components/PreviewAccess/preview-access.scss +1 -1
  153. package/scss/Components/ProgressBar/progress-bar.scss +215 -0
  154. package/scss/Components/QuoteHighlight/quote-highlight.scss +1 -1
  155. package/scss/Components/ScrollContainer/scroll-container.scss +1 -1
  156. package/scss/Components/Snackbar/snackbar.scss +1 -1
  157. package/scss/Components/SyndicationSearchWidget/_deprecated-teaser-hide.scss +1 -1
  158. package/scss/Components/SyndicationSearchWidget/syndication-search-widget.scss +1 -1
  159. package/scss/Components/Tab/tab.scss +1 -1
  160. package/scss/Components/TableOfContents/table-of-contents.scss +1 -1
  161. package/scss/Components/TextCta/text-cta.scss +1 -1
  162. package/scss/Components/TextCta/textcta.scss +1 -1
  163. package/scss/Components/UserFeedback/user-feedback.scss +1 -1
  164. package/scss/Molecules/ImageCaption/image-caption.scss +17 -3
  165. package/scss/Molecules/SectionHeader/section-header.scss +1 -1
  166. package/scss/Molecules/SectionHeader/sectionheader.scss +1 -1
  167. package/scss/Patterns/HubHeader/hub-header.scss +1 -1
  168. package/scss/Patterns/_shared/pattern-demo.scss +1 -1
  169. package/scss/Utilities/EmbedContainer/embed-container.scss +1 -1
  170. package/scss/Utilities/FullWidth/full-width.scss +1 -1
  171. package/scss/Utilities/Loader/loader.scss +55 -12
  172. package/scss/Utilities/Normalize/normalize.scss +1 -1
  173. package/scss/Utilities/PagePatterns/page-patterns.scss +1 -1
  174. package/scss/Utilities/ShowMore/show-more.scss +1 -1
  175. package/scss/Utilities/SkipLink/skip-link.scss +1 -1
  176. package/scss/assets/scss/_components.scss +2 -0
  177. 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-20T12:11:45.319Z
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 Hero.js.LICENSE.txt */
9
9
  import"react";var e={2694(e,r,t){var a=t(6925);function n(){}function i(){}i.resetWarningCache=n,e.exports=function(){function e(e,r,t,n,i,o){if(o!==a){var s=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 s.name="Invariant Violation",s}}function r(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:i,resetWarningCache:n};return t.PropTypes=t,t}},5556(e,r,t){e.exports=t(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}};const r={};function t(a){const n=r[a];if(void 0!==n)return n.exports;const i=r[a]={exports:{}};return e[a](i,i.exports,t),i.exports}t.n=e=>{const r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.cw=e=>{var r;return()=>{if(e){var t=e;e=0,r={exports:{}},t.call(r.exports,r,r.exports)}return r.exports}},t.d=(e,r)=>{for(var a in r)t.o(r,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:r[a]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);var a=t.cw(function(e,r){var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function n(e,r,a){var n=null;if(void 0!==a&&(n=""+a),void 0!==r.key&&(n=""+r.key),"key"in r)for(var i in a={},r)"key"!==i&&(a[i]=r[i]);else a=r;return r=a.ref,{$$typeof:t,type:e,key:n,ref:void 0!==r?r:null,props:a}}r.Fragment=a,r.jsx=n,r.jsxs=n}),n=t.cw(function(e,r){e.exports=a()}),i=t(5556),o=t.n(i);function s({label:e,Type:r="Primary",Variant:t="Default",Outline:n=!1,State:i="Default",href:o="#",onClick:s,className:l,...m}){const c="Disabled"===i,d=["mg-button","CTA"===t&&"mg-button-cta","mg-button-"+("Secondary"===r?"secondary":"primary"),n&&"mg-button-outline",c&&"disabled",l].filter(Boolean).join(" ");return(0,a().jsx)("a",{className:d,...m,...c?{"aria-disabled":"true",tabIndex:-1}:{href:o,onClick:s},children:e})}n(),s.propTypes={label:o().string.isRequired,Type:o().oneOf(["Primary","Secondary"]),Variant:o().oneOf(["Default","CTA"]),Outline:o().bool,State:o().oneOf(["Default","Disabled"]),href:o().string,onClick:o().func,className:o().string};const l=(...e)=>e.filter(Boolean).length>0?e.filter(Boolean).join(" "):null,m={primary:"",secondary:"secondary",tertiary:"tertiary",quaternary:"quaternary"},c={"2/3":"2-3","1/2":"1-2","1/3":"1-3"};function d({item:e,HeadingTag:r}){return e.link?(0,a().jsx)(r,{className:"mg-hero__title",children:(0,a().jsx)("a",{href:e.link,dangerouslySetInnerHTML:{__html:e.title}})}):(0,a().jsx)(r,{className:"mg-hero__title",dangerouslySetInnerHTML:{__html:e.title}})}function g({media:e}){if(!e)return null;const r=e.type||"image";return"video"===r?(0,a().jsx)("div",{className:"mg-hero__media mg-hero__media--video",children:(0,a().jsx)("iframe",{src:e.src,title:e.title||"Embedded video",className:"mg-hero__media-iframe",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})}):"html"===r?(0,a().jsx)("div",{className:"mg-hero__media mg-hero__media--html",dangerouslySetInnerHTML:{__html:e.html||""}}):(0,a().jsx)("div",{className:"mg-hero__media",children:(0,a().jsx)("img",{src:e.src,alt:e.alt||"",className:"mg-hero__media-img"})})}function u({item:e,HeadingTag:r}){const t=e.buttons||[e.primary_button&&{label:e.primary_button,type:"Primary"},e.secondary_button&&{label:e.secondary_button,type:"Secondary"}].filter(Boolean);return(0,a().jsxs)("article",{className:"mg-hero__content",children:[e.logo?.src&&(0,a().jsx)("img",{className:"mg-hero__logo",src:e.logo.src,alt:e.logo.alt||""}),(0,a().jsx)("div",{className:"mg-hero__meta",children:e.label&&(0,a().jsx)("span",{className:"mg-hero__label",children:e.label})}),(0,a().jsx)(d,{item:e,HeadingTag:r}),(0,a().jsx)("div",{className:"mg-hero__summaryText",children:(0,a().jsx)("span",{dangerouslySetInnerHTML:{__html:e.summaryText}})}),(0,a().jsx)("div",{className:"mg-hero__meta meta-detail",children:e.detail&&(0,a().jsx)("span",{className:"mg-hero__label detail",children:e.detail})}),t.length>0&&(0,a().jsx)("div",{className:"mg-hero__buttons",children:t.map((e,r)=>(0,a().jsx)(s,{Type:e.type,Variant:"CTA",label:e.label,href:e.url,onClick:e.onClick,target:e.target,rel:e.rel},`${e.label}-${r}`))})]})}function p({data:e,variant:r="primary",layout:t="background",headingLevel:n="h1",split:i="2/3",size:o="default",contained:s=!1}){const d=m[r],p=n;if("split"===t){const r=c[i]||"2-3";return(0,a().jsx)(a().Fragment,{children:e.map((e,t)=>(0,a().jsx)("section",{className:l("mg-hero","mg-hero--split",`mg-hero--split-${r}`,"immersive"===o&&"mg-hero--immersive",s&&"mg-hero--contained",d&&`mg-hero--${d}`),children:(0,a().jsxs)("div",{className:l("mg-hero__split-grid","mg-container",!e.media&&"mg-hero__split-grid--no-media"),children:[(0,a().jsx)(u,{item:e,HeadingTag:p}),e.media&&(0,a().jsx)(g,{media:e.media})]})},t))})}return(0,a().jsx)(a().Fragment,{children:e.map((e,r)=>(0,a().jsx)("section",{className:l("mg-hero","immersive"===o&&"mg-hero--immersive",s&&"mg-hero--contained",!e.imgback&&"mg-hero--no-image",d&&`mg-hero--${d}`),style:e.imgback?{backgroundImage:`url(${e.imgback})`}:void 0,children:(0,a().jsx)("div",{className:"mg-hero__overlay",children:(0,a().jsx)(u,{item:e,HeadingTag:p})})},r))})}p.propTypes={data:o().arrayOf(o().shape({imgback:o().string,label:o().string,title:o().string.isRequired,link:o().string,summaryText:o().string,detail:o().string,primary_button:o().string,secondary_button:o().string,logo:o().shape({src:o().string.isRequired,alt:o().string}),buttons:o().arrayOf(o().shape({label:o().string.isRequired,url:o().string,type:o().oneOf(["Primary","Secondary"]),onClick:o().func,target:o().string,rel:o().string})),media:o().shape({type:o().oneOf(["image","video","html"]),src:o().string,alt:o().string,title:o().string,html:o().string})})).isRequired,variant:o().oneOf(["primary","secondary","tertiary","quaternary"]),layout:o().oneOf(["background","split"]),headingLevel:o().oneOf(["h1","h2","h3"]),split:o().oneOf(["2/3","1/2","1/3"]),size:o().oneOf(["default","immersive"]),contained:o().bool};export{p as Hero,m as variantOptions};
@@ -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-20T12:11:45.319Z
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 HighlightBox.js.LICENSE.txt */
9
9
  import"react";var e={2694(e,r,t){var o=t(6925);function n(){}function a(){}a.resetWarningCache=n,e.exports=function(){function e(e,r,t,n,a,i){if(i!==o){var s=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 s.name="Invariant Violation",s}}function r(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:a,resetWarningCache:n};return t.PropTypes=t,t}},5556(e,r,t){e.exports=t(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}};const r={};function t(o){const n=r[o];if(void 0!==n)return n.exports;const a=r[o]={exports:{}};return e[o](a,a.exports,t),a.exports}t.n=e=>{const r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.cw=e=>{var r;return()=>{if(e){var t=e;e=0,r={exports:{}},t.call(r.exports,r,r.exports)}return r.exports}},t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);var o=t.cw(function(e,r){var t=Symbol.for("react.transitional.element");Symbol.for("react.fragment"),r.jsx=function(e,r,o){var n=null;if(void 0!==o&&(n=""+o),void 0!==r.key&&(n=""+r.key),"key"in r)for(var a in o={},r)"key"!==a&&(o[a]=r[a]);else o=r;return r=o.ref,{$$typeof:t,type:e,key:n,ref:void 0!==r?r:null,props:o}}}),n=t.cw(function(e,r){e.exports=o()}),a=t(5556),i=t.n(a);function s({children:e,variant:r="default",centered:t=!1,float:n=null,className:a=""}){const i=["mg-highlight-box","default"!==r&&`mg-highlight-box--${r}`,t&&"mg-highlight-box--centered",n&&`mg-highlight-box--float-${n}`,a].filter(Boolean).join(" ");return(0,o().jsx)("div",{className:i,children:e})}n(),s.propTypes={children:i().node,variant:i().oneOf(["default","primary","secondary"]),centered:i().bool,float:i().oneOf(["start","end"]),className:i().string};const c=s;export{s as HighlightBox,c 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-20T12:11:45.319Z
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 HorizontalBookCard.js.LICENSE.txt */
9
- import"react";var e={2694(e,t,n){var r=n(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,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 t(){return e}e.isRequired=e;var n={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 n.PropTypes=n,n}},5556(e,t,n){e.exports=n(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}};const t={};function n(r){const o=t[r];if(void 0!==o)return o.exports;const a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.cw=e=>{var t;return()=>{if(e){var n=e;e=0,t={exports:{}},n.call(t.exports,t,t.exports)}return t.exports}},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r=n.cw(function(e,t){var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var a in r={},t)"key"!==a&&(r[a]=t[a]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:o,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=o,t.jsxs=o}),o=n.cw(function(e,t){e.exports=r()}),a=n(5556),i=n.n(a);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t);else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||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 s=Object.entries,u=Object.setPrototypeOf,f=Object.isFrozen,p=Object.getPrototypeOf,m=Object.getOwnPropertyDescriptor;let d=Object.freeze,h=Object.seal,g=Object.create,y="undefined"!=typeof Reflect&&Reflect,b=y.apply,T=y.construct;d||(d=function(e){return e}),h||(h=function(e){return e}),b||(b=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),T||(T=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const S=H(Array.prototype.forEach),v=H(Array.prototype.lastIndexOf),A=H(Array.prototype.pop),w=H(Array.prototype.push),E=H(Array.prototype.splice),_=Array.isArray,x=H(String.prototype.toLowerCase),O=H(String.prototype.toString),N=H(String.prototype.match),k=H(String.prototype.replace),D=H(String.prototype.indexOf),C=H(String.prototype.trim),R=H(Number.prototype.toString),I=H(Boolean.prototype.toString),L="undefined"==typeof BigInt?null:H(BigInt.prototype.toString),z="undefined"==typeof Symbol?null:H(Symbol.prototype.toString),M=H(Object.prototype.hasOwnProperty),P=H(Object.prototype.toString),j=H(RegExp.prototype.test),U=(F=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return T(F,t)});var F;function H(e){return function(t){t instanceof RegExp&&(t.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 b(e,t,r)}}function B(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x;if(u&&u(e,null),!_(t))return e;let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(f(t)||(t[r]=e),o=e)}e[o]=!0}return e}function W(e){for(let t=0;t<e.length;t++)M(e,t)||(e[t]=null);return e}function Y(e){const t=g(null);for(const r of s(e)){var n=c(r,2);const o=n[0],a=n[1];M(e,o)&&(_(a)?t[o]=W(a):a&&"object"==typeof a&&a.constructor===Object?t[o]=Y(a):t[o]=a)}return t}function G(e,t){for(;null!==e;){const n=m(e,t);if(n){if(n.get)return H(n.get);if("function"==typeof n.value)return H(n.value)}e=p(e)}return function(){return null}}const q=d(["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"]),$=d(["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"]),V=d(["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"]),X=d(["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"]),K=d(["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"]),Z=d(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),J=d(["#text"]),Q=d(["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"]),ee=d(["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"]),te=d(["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"]),ne=d(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),re=h(/{{[\w\W]*|^[\w\W]*}}/g),oe=h(/<%[\w\W]*|^[\w\W]*%>/g),ae=h(/\${[\w\W]*/g),ie=h(/^data-[\-\w.\u00B7-\uFFFF]+$/),le=h(/^aria-[\-\w]+$/),ce=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),se=h(/^(?:\w+script|data):/i),ue=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fe=h(/^html$/i),pe=h(/^[a-z][.\w]*(-[.\w]+)+$/i),me=h(/<[/\w!]/g),de=h(/<[/\w]/g),he=h(/<\/no(script|embed|frames)/i),ge=h(/\/>/i),ye=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],be=d(B({},ye)),Te=function(){const e={};return S(ye,t=>{e[t]=h(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),d(e)}(),Se=function(){return"undefined"==typeof window?null:window},ve=function(e,t,n,r){return M(e,t)&&_(e[t])?B(r.base?Y(r.base):{},e[t],r.transform):n},Ae=function(e,t,n){const r=M(e,t)?e[t]:void 0;return r&&"object"==typeof r?Y(r):n()};var we=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Se();const n=t=>e(t);if(n.version="3.4.15",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let r=t.document;const o=r,a=o.currentScript;t.DocumentFragment;const i=t.HTMLTemplateElement,l=t.Node,c=t.Element,u=t.NodeFilter;void 0===t.NamedNodeMap&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const f=t.DOMParser,p=t.trustedTypes,m=c.prototype,y=G(m,"cloneNode"),b=G(m,"remove"),T=G(m,"removeAttributeNode"),F=G(m,"nextSibling"),H=G(m,"childNodes"),W=G(m,"parentNode"),ye=G(m,"shadowRoot"),we=G(m,"attributes"),Ee=l&&l.prototype?G(l.prototype,"nodeType"):null,_e=l&&l.prototype?G(l.prototype,"nodeName"):null,xe=l&&l.prototype?G(l.prototype,"ownerDocument"):null,Oe=function(e){return Ee?Ee(e):e.nodeType},Ne=function(e){return _e?_e(e):e.nodeName};if("function"==typeof i){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ke,De,Ce="",Re=!1,Ie=0;const Le=function(){if(Ie>0)throw U('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.')},ze=function(e){Le(),Ie++;try{return ke.createHTML(e)}finally{Ie--}},Me=r,Pe=Me.implementation,je=Me.createNodeIterator,Ue=Me.createDocumentFragment,Fe=Me.getElementsByTagName,He=o.importNode;let Be={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof s&&"function"==typeof W&&Pe&&void 0!==Pe.createHTMLDocument;const We=re,Ye=oe,Ge=ae,qe=ie,$e=le,Ve=se,Xe=ue,Ke=pe;let Ze=ce,Je=null;const Qe=B({},[...q,...$,...V,...K,...J]);let et=null;const tt=B({},[...Q,...ee,...te,...ne]);let nt=Object.seal(g(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}})),rt=null,ot=null;const at=Object.seal(g(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let it=!0,lt=!0,ct=!1,st=!0,ut=!1,ft=!0,pt=!1,mt=!1,dt=null,ht=null,gt=!1,yt=!1,bt=!1,Tt=!1,St=!0,vt=!1;const At="user-content-";let wt=!0,Et=!1,_t={},xt=null;const Ot=B({},["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 Nt=null;const kt=B({},["audio","video","img","source","image","track"]);let Dt=null;const Ct=B({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Rt="http://www.w3.org/1998/Math/MathML",It="http://www.w3.org/2000/svg",Lt="http://www.w3.org/1999/xhtml";let zt=Lt,Mt=!1,Pt=null;const jt=B({},[Rt,It,Lt],O),Ut=d(["mi","mo","mn","ms","mtext"]);let Ft=B({},Ut);const Ht=d(["annotation-xml"]);let Bt=B({},Ht);const Wt=B({},["title","style","font","a","script"]);let Yt=null;const Gt=["application/xhtml+xml","text/html"];let qt=null,$t=null;const Vt=r.createElement("form"),Xt=function(e){return e instanceof RegExp||e instanceof Function},Kt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if($t&&$t===e)return;e&&"object"==typeof e||(e={}),e=Y(e),Yt=-1===Gt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,qt="application/xhtml+xml"===Yt?O:x,Je=ve(e,"ALLOWED_TAGS",Qe,{transform:qt}),et=ve(e,"ALLOWED_ATTR",tt,{transform:qt}),Pt=ve(e,"ALLOWED_NAMESPACES",jt,{transform:O}),Dt=ve(e,"ADD_URI_SAFE_ATTR",Ct,{transform:qt,base:Ct}),Nt=ve(e,"ADD_DATA_URI_TAGS",kt,{transform:qt,base:kt}),xt=ve(e,"FORBID_CONTENTS",Ot,{transform:qt}),rt=ve(e,"FORBID_TAGS",Y({}),{transform:qt}),ot=ve(e,"FORBID_ATTR",Y({}),{transform:qt}),_t=!!M(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?Y(e.USE_PROFILES):e.USE_PROFILES),it=!1!==e.ALLOW_ARIA_ATTR,lt=!1!==e.ALLOW_DATA_ATTR,ct=e.ALLOW_UNKNOWN_PROTOCOLS||!1,st=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ut=e.SAFE_FOR_TEMPLATES||!1,ft=!1!==e.SAFE_FOR_XML,pt=e.WHOLE_DOCUMENT||!1,yt=e.RETURN_DOM||!1,bt=e.RETURN_DOM_FRAGMENT||!1,Tt=e.RETURN_TRUSTED_TYPE||!1,gt=e.FORCE_BODY||!1,St=!1!==e.SANITIZE_DOM,vt=e.SANITIZE_NAMED_PROPS||!1,wt=!1!==e.KEEP_CONTENT,Et=e.IN_PLACE||!1,Ze=function(e){try{return j(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:ce,zt="string"==typeof e.NAMESPACE?e.NAMESPACE:Lt,Ft=Ae(e,"MATHML_TEXT_INTEGRATION_POINTS",()=>B({},Ut)),Bt=Ae(e,"HTML_INTEGRATION_POINTS",()=>B({},Ht));const t=Ae(e,"CUSTOM_ELEMENT_HANDLING",()=>g(null));if(nt=g(null),M(t,"tagNameCheck")&&Xt(t.tagNameCheck)&&(nt.tagNameCheck=t.tagNameCheck),M(t,"attributeNameCheck")&&Xt(t.attributeNameCheck)&&(nt.attributeNameCheck=t.attributeNameCheck),M(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(nt.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),h(nt),ut&&(lt=!1),bt&&(yt=!0),_t&&(Je=B({},J),et=g(null),!0===_t.html&&(B(Je,q),B(et,Q)),!0===_t.svg&&(B(Je,$),B(et,ee),B(et,ne)),!0===_t.svgFilters&&(B(Je,V),B(et,ee),B(et,ne)),!0===_t.mathMl&&(B(Je,K),B(et,te),B(et,ne))),at.tagCheck=null,at.attributeCheck=null,M(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?at.tagCheck=e.ADD_TAGS:_(e.ADD_TAGS)&&(Je===Qe&&(Je=Y(Je)),B(Je,e.ADD_TAGS,qt))),M(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?at.attributeCheck=e.ADD_ATTR:_(e.ADD_ATTR)&&(et===tt&&(et=Y(et)),B(et,e.ADD_ATTR,qt))),M(e,"ADD_FORBID_CONTENTS")&&_(e.ADD_FORBID_CONTENTS)&&(xt===Ot&&(xt=Y(xt)),B(xt,e.ADD_FORBID_CONTENTS,qt)),wt&&(Je["#text"]=!0),pt&&B(Je,["html","head","body"]),Je.table&&(B(Je,["tbody"]),delete rt.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw U('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw U('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=ke;ke=e.TRUSTED_TYPES_POLICY;try{Ce=ze("")}catch(e){throw ke=t,e}}else null===e.TRUSTED_TYPES_POLICY?(ke=void 0,Ce=""):(void 0===ke&&(Re||(De=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(p,a),Re=!0),ke=De),ke&&"string"==typeof Ce&&(Ce=ze("")));d&&d(e),$t=e},Zt=B({},[...$,...V,...X]),Jt=B({},[...K,...Z]),Qt=function(e){w(n.removed,{element:e});try{W(e).removeChild(e)}catch(t){if(b(e),!W(e))throw U("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},en=function(e,t,n){try{T(e,t)}catch(t){try{e.removeAttribute(n)}catch(e){}}},tn=function(e){on(e);const t=H(e);if(t){const e=[];S(t,t=>{w(e,t)}),S(e,e=>{try{b(e)}catch(e){}})}const n=we(e);if(n)for(let t=n.length-1;t>=0;--t){const r=n[t],o=r&&r.name;"string"==typeof o&&en(e,r,o)}},nn=function(e,t,r){if(!r)try{r=t.getAttributeNode(e)}catch(e){r=null}w(n.removed,{attribute:r||null,from:t});try{r?T(t,r):t.removeAttribute(e)}catch(n){try{t.removeAttribute(e)}catch(e){}}if("is"===e)if(yt||bt)try{Qt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},rn=function(e){const t=we(e);if(t)for(let n=t.length-1;n>=0;--n){const r=t[n],o=r&&r.name;"string"!=typeof o||et[qt(o)]||en(e,r,o)}},on=function(e){const t=[e];for(;t.length>0;){const e=t.pop();1===Oe(e)&&rn(e);const n=H(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},an=function(e,t){return!!ft&&("patchsrc"===e||"for"===e&&"label"!==t&&"output"!==t)},ln=function(e){let t=null,n=null;if(gt)e="<remove></remove>"+e;else{const t=N(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Yt&&zt===Lt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=ke?ze(e):e;if(zt===Lt)try{t=(new f).parseFromString(o,Yt)}catch(e){}if(!t||!t.documentElement){t=Pe.createDocument(zt,"template",null);try{t.documentElement.innerHTML=Mt?Ce:o}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),zt===Lt?Fe.call(t,pt?"html":"body")[0]:pt?t.documentElement:a},cn=function(e){const t=xe?xe(e):e.ownerDocument;return je.call(t||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},sn=function(e){return e=k(e,We," "),e=k(e,Ye," "),k(e,Ge," ")},un=function(e){var t;e.normalize();const n=xe?xe(e):e.ownerDocument,r=je.call(n||e,e,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let o=r.nextNode();for(;o;)o.data=sn(o.data),o=r.nextNode();const a=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");a&&S(a,e=>{pn(e.content)&&un(e.content)})},fn=function(e){const t=_e?_e(e):null;return"string"==typeof t&&"form"===qt(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==we(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.removeAttributeNode||"function"!=typeof e.getAttributeNode||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==Ee(e)||e.childNodes!==H(e))},pn=function(e){if(!Ee||"object"!=typeof e||null===e)return!1;try{return 11===Ee(e)}catch(e){return!1}},mn=function(e){if(!Ee||"object"!=typeof e||null===e)return!1;try{return"number"==typeof Ee(e)}catch(e){return!1}};function dn(e,t,r){0!==e.length&&S(e,e=>{e.call(n,t,r,$t)})}const hn=function(e,t){if(e instanceof RegExp)return j(e,t);if(e 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(e(t,...r))}return!1},gn=function(e,t,n,r){return 0===e.length?t:t===n||t===r?Y(t):t},yn=function(e,t){return e!==t&&null===W(e)&&(Et&&on(e),!0)},bn=function(e,t){if(dn(Be.beforeSanitizeElements,e,null),yn(e,t))return!0;if(fn(e))return Qt(e),!0;const r=qt(Ne(e));if(Je=gn(Be.uponSanitizeElement,Je,Qe,dt),dn(Be.uponSanitizeElement,e,{tagName:r,allowedTags:Je}),yn(e,t))return!0;if(function(e,t){return!!(ft&&e.hasChildNodes()&&!mn(e.firstElementChild)&&j(me,e.textContent)&&j(me,e.innerHTML))||!!(ft&&e.namespaceURI===Lt&&be[t]&&(mn(e.firstElementChild)||"string"==typeof e.textContent&&j(Te[t],e.textContent)))||7===e.nodeType||!(!ft||8!==e.nodeType||!j(de,e.data))}(e,r))return Qt(e),!0;if(rt[r]||!(at.tagCheck instanceof Function&&at.tagCheck(r))&&!Je[r]){const n=function(e,t,n){if(!rt[t]&&vn(t)&&hn(nt.tagNameCheck,t))return!1;if(wt&&!xt[t]){const t=W(e),r=H(e);if(r&&t)for(let o=r.length-1;o>=0;--o){const a=e===n?y(r[o],!0):r[o];t.insertBefore(a,F(e))}}return Qt(e),!0}(e,r,t);return!1===n&&dn(Be.afterSanitizeElements,e,null),n}if(1===Oe(e)&&!function(e){let t=W(e);t&&t.tagName||(t={namespaceURI:zt,tagName:"template"});const n=x(e.tagName),r=x(t.tagName);return!!Pt[e.namespaceURI]&&(e.namespaceURI===It?function(e,t,n){return t.namespaceURI===Lt?"svg"===e:t.namespaceURI===Rt?"svg"===e&&("annotation-xml"===n||Ft[n]):Boolean(Zt[e])}(n,t,r):e.namespaceURI===Rt?function(e,t,n){return t.namespaceURI===Lt?"math"===e:t.namespaceURI===It?"math"===e&&Bt[n]:Boolean(Jt[e])}(n,t,r):e.namespaceURI===Lt?function(e,t,n){return!(t.namespaceURI===It&&!Bt[n])&&!(t.namespaceURI===Rt&&!Ft[n])&&!Jt[e]&&(Wt[e]||!Zt[e])}(n,t,r):!("application/xhtml+xml"!==Yt||!Pt[e.namespaceURI]))}(e))return Qt(e),!0;if(("noscript"===r||"noembed"===r||"noframes"===r)&&j(he,e.innerHTML))return Qt(e),!0;if(ut&&3===e.nodeType){const t=sn(e.textContent);e.textContent!==t&&(w(n.removed,{element:e.cloneNode()}),e.textContent=t)}return dn(Be.afterSanitizeElements,e,null),!1},Tn=function(e,t,n){if(ot[t])return!1;if(an(t,e))return!1;if(St&&("id"===t||"name"===t)&&(n in r||n in Vt))return!1;const o=et[t]||at.attributeCheck instanceof Function&&at.attributeCheck(t,e);return!(!lt||!j(qe,t))||!(!it||!j($e,t))||(o?!(!Dt[t]&&!j(Ze,k(n,Xe,""))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==D(n,"data:")||!Nt[e])&&(!ct||j(Ve,k(n,Xe,"")))&&n):vn(e)&&hn(nt.tagNameCheck,e)&&hn(nt.attributeNameCheck,t,e)||"is"===t&&nt.allowCustomizedBuiltInElements&&hn(nt.tagNameCheck,n))},Sn=B({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),vn=function(e){return!Sn[x(e)]&&j(Ke,e)},An=function(e,t,n,r){if(ke&&"object"==typeof p&&"function"==typeof p.getAttributeType&&!n)switch(p.getAttributeType(e,t)){case"TrustedHTML":return ze(r);case"TrustedScriptURL":return function(e){Le(),Ie++;try{return ke.createScriptURL(e)}finally{Ie--}}(r)}return r},wn=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!fn(e)||(Qt(e),!1)}catch(n){return nn(t,e),!1}},En=function(e){dn(Be.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||fn(e))return;et=gn(Be.uponSanitizeAttribute,et,tt,ht);const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:et,forceKeepAttr:void 0};let o=t.length;const a=qt(e.nodeName);for(;o--;){const i=t[o],l=i.name,c=i.namespaceURI,s=i.value,u=qt(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(Be.uponSanitizeAttribute,e,r),p=r.attrValue,!vt||"id"!==u&&"name"!==u||0===D(p,At)||(nn(l,e,i),p=At+p,m=!0),ft&&j(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,p)||"attributename"===u&&N(p,"href")?nn(l,e,i):r.forceKeepAttr||(r.keepAttr&&(st||!j(ge,p))?(ut&&(p=sn(p)),Tn(a,u,p)?(p=An(a,u,c,p),p!==f&&wn(e,l,c,p)&&m&&A(n.removed)):nn(l,e,i)):nn(l,e,i))}dn(Be.afterSanitizeAttributes,e,null)},_n=function(e){let t=null;const n=cn(e);for(dn(Be.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(dn(Be.uponSanitizeShadowNode,t,null),bn(t,e),En(t),pn(t.content)&&_n(t.content),1===Oe(t)){const e=ye(t);pn(e)&&(xn(e),_n(e))}dn(Be.afterSanitizeShadowDOM,e,null)},xn=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){_n(e.shadow);continue}const n=e.node,r=1===Oe(n),o=H(n);if(o)for(let e=o.length-1;e>=0;--e)t.push({node:o[e],shadow:null});if(r){const e=_e?_e(n):null;if("string"==typeof e&&"template"===qt(e)){const e=n.content;pn(e)&&t.push({node:e,shadow:null})}}if(r){const e=ye(n);pn(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,i=null,l=null;if(Mt=!e,Mt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!mn(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return R(e);case"boolean":return I(e);case"bigint":return L?L(e):"0";case"symbol":return z?z(e):"Symbol()";case"undefined":default:return P(e);case"function":case"object":{if(null===e)return P(e);const t=e,n=G(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:P(e)}return P(e)}}}(e)))throw U("dirty is not a string, aborting");if(!n.isSupported)return e;mt?(Je=dt,et=ht):Kt(t),(Be.uponSanitizeElement.length>0||Be.uponSanitizeAttribute.length>0)&&(Je=Y(Je)),Be.uponSanitizeAttribute.length>0&&(et=Y(et)),n.removed=[];const c=Et&&"string"!=typeof e&&mn(e);if(c){!function(e){if(!ft)return;const t=[e];for(;t.length>0;){const e=t.pop(),n=Oe(e);if(7===n||8===n&&j(de,e.data)){try{b(e)}catch(e){}continue}if(1===n){const t=e,n=qt(Ne(e));try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&an("for",n)&&t.removeAttribute("for")}catch(e){}}const r=H(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}}(e);const t=Ne(e);if("string"==typeof t){const n=qt(t);if(!Je[n]||rt[n])throw tn(e),U("root node is forbidden and cannot be sanitized in-place")}if(fn(e))throw tn(e),U("root node is clobbered and cannot be sanitized in-place");try{xn(e)}catch(t){throw tn(e),t}}else if(mn(e))r=ln("\x3c!----\x3e"),a=r.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a),xn(r);else{if(!yt&&!ut&&!pt&&-1===e.indexOf("<"))return ke&&Tt?ze(e):e;if(r=ln(e),!r)return yt?null:Tt?Ce:""}r&&gt&&Qt(r.firstChild);const s=c?e:r;try{const e=cn(s);for(;i=e.nextNode();)bn(i,s),En(i),pn(i.content)&&_n(i.content)}catch(t){throw c&&(tn(e),S(n.removed,e=>{e.element&&on(e.element)})),t}if(c)return S(n.removed,e=>{e.element&&on(e.element)}),ut&&un(e),e;if(yt){if(ut&&un(r),bt)for(l=Ue.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(et.shadowroot||et.shadowrootmode)&&(l=He.call(o,l,!0)),l}let u=pt?r.outerHTML:r.innerHTML;return pt&&Je["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&j(fe,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),ut&&(u=sn(u)),ke&&Tt?ze(u):u},n.setConfig=function(){Kt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),mt=!0,dt=Je,ht=et},n.clearConfig=function(){$t=null,mt=!1,dt=null,ht=null,ke=De,Ce=""},n.isValidAttribute=function(e,t,n){$t||Kt({});const r=qt(e),o=qt(t);return Tn(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&M(Be,e)&&w(Be[e],t)},n.removeHook=function(e,t){if(M(Be,e)){if(void 0!==t){const n=v(Be[e],t);return-1===n?void 0:E(Be[e],n,1)[0]}return A(Be[e])}},n.removeHooks=function(e){M(Be,e)&&(Be[e]=[])},n.removeAllHooks=function(){Be={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();function Ee({label:e,Type:t="Primary",Variant:n="Default",Outline:o=!1,State:a="Default",href:i="#",onClick:l,className:c,...s}){const u="Disabled"===a,f=["mg-button","CTA"===n&&"mg-button-cta","mg-button-"+("Secondary"===t?"secondary":"primary"),o&&"mg-button-outline",u&&"disabled",c].filter(Boolean).join(" ");return(0,r().jsx)("a",{className:f,...s,...u?{"aria-disabled":"true",tabIndex:-1}:{href:i,onClick:l},children:e})}function _e(e){return"string"==typeof e&&""!==e.trim()?e:null}function xe({title:e,link:t=null,target:n,rel:o}){const a=e?.trim();return(0,r().jsx)("header",{className:"mg-card__title",children:t?(0,r().jsx)("a",{href:t,target:n,rel:o,children:a}):a})}function Oe({label:e,link:t=null}){return e?t?(0,r().jsx)("a",{href:t,className:"mg-card__label mg-card__label--active",children:e}):(0,r().jsx)("span",{className:"mg-card__label",children:e}):null}o(),Ee.propTypes={label:i().string.isRequired,Type:i().oneOf(["Primary","Secondary"]),Variant:i().oneOf(["Default","CTA"]),Outline:i().bool,State:i().oneOf(["Default","Disabled"]),href:i().string,onClick:i().func,className:i().string},xe.propTypes={title:i().string,link:i().string,target:i().string,rel:i().string},Oe.propTypes={label:i().string,link:i().string};const Ne=(...e)=>e.filter(Boolean).length>0?e.filter(Boolean).join(" "):null;function ke({data:e,variant:t="primary",className:n}){const o=t&&"primary"!==t?`mg-card--${t}`:null;return(0,r().jsx)(r().Fragment,{children:e.map((e,t)=>{const a=_e(e.link),i=_e(e.buttonLink)??a;return(0,r().jsxs)("article",{className:Ne("mg-card","mg-card__hc","mg-card-book__hc",o,!a&&"mg-card--no-link",n),children:[e.imgback&&(0,r().jsx)("div",{className:"mg-card__visual",children:(0,r().jsx)("img",{src:e.imgback,alt:e.imgalt,className:"mg-card__image"})}),(0,r().jsxs)("div",{className:"mg-card__content",children:[(e.label1||e.label2)&&(0,r().jsxs)("div",{className:"mg-card__meta",children:[(0,r().jsx)(Oe,{label:e.label1,link:a}),(0,r().jsx)(Oe,{label:e.label2,link:a})]}),(0,r().jsx)(xe,{title:e.title,link:a,target:e.target,rel:e.rel}),e.summaryText&&(0,r().jsx)("p",{className:"mg-card__summary",dangerouslySetInnerHTML:{__html:we.sanitize(e.summaryText)}}),e.button&&i&&(0,r().jsx)(Ee,{Type:"Primary",Variant:"CTA",label:e.button,href:i,target:e.target,rel:e.rel})]})]},t)})})}ke.propTypes={data:i().array.isRequired,variant:i().oneOf(["primary","secondary","tertiary","quaternary"]),className:i().string};export{ke as HorizontalBookCard};
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"),r=Symbol.for("react.fragment");function o(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}}e.Fragment=r,e.jsx=o,e.jsxs=o}),o=n.cw(function(t,e){t.exports=r()}),i=n(5556),a=n.n(i);function l(t,e){this.v=t,this.k=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,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 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.")}()}function u(t){var e,n;function r(e,n){try{var i=t[e](n),a=i.value,c=a instanceof l;Promise.resolve(c?a.v:a).then(function(n){if(c){var l="return"===e&&a.k?e:"next";if(!a.k||n.done)return r(l,n);n=t[l](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)}u.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},u.prototype.next=function(t){return this._invoke("next",t)},u.prototype.throw=function(t){return this._invoke("throw",t)},u.prototype.return=function(t){return this._invoke("return",t)};const f=Object.entries,p=Object.setPrototypeOf,m=Object.isFrozen,d=Object.getPrototypeOf,h=Object.getOwnPropertyDescriptor;let y=Object.freeze,g=Object.seal,b=Object.create,T="undefined"!=typeof Reflect&&Reflect,S=T.apply,v=T.construct;y||(y=function(t){return t}),g||(g=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)}),v||(v=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 A=W(Array.prototype.forEach);Array.prototype.indexOf;const w=W(Array.prototype.lastIndexOf),x=W(Array.prototype.pop),_=W(Array.prototype.push);Array.prototype.slice;const E=W(Array.prototype.splice),O=Array.isArray,k=W(String.prototype.toLowerCase),N=W(String.prototype.toString),D=W(String.prototype.match),C=W(String.prototype.replace),R=W(String.prototype.indexOf),I=W(String.prototype.trim),L=W(Number.prototype.toString),P=W(Boolean.prototype.toString),z="undefined"==typeof BigInt?null:W(BigInt.prototype.toString),M="undefined"==typeof Symbol?null:W(Symbol.prototype.toString),j=W(Object.prototype.hasOwnProperty),U=W(Object.prototype.toString),F=W(RegExp.prototype.test),H=(B=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return v(B,e)});var B;function W(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 Y(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:k;if(p&&p(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&&(m(e)||(e[r]=t),o=t)}t[o]=!0}return t}function G(t){for(let e=0;e<t.length;e++)j(t,e)||(t[e]=null);return t}function q(t){const e=b(null);for(const r of f(t)){var n=s(r,2);const o=n[0],i=n[1];j(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 $(t,e){for(;null!==t;){const n=h(t,e);if(n){if(n.get)return W(n.get);if("function"==typeof n.value)return W(n.value)}t=d(t)}return function(){return null}}const V=y(["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=y(["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=y(["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"]),Z=y(["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"]),J=y(["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"]),Q=y(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),tt=y(["#text"]),et=y(["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"]),nt=y(["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"]),rt=y(["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"]),ot=y(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),it=g(/{{[\w\W]*|^[\w\W]*}}/g),at=g(/<%[\w\W]*|^[\w\W]*%>/g),lt=g(/\${[\w\W]*/g),ct=g(/^data-[\-\w.\u00B7-\uFFFF]+$/),st=g(/^aria-[\-\w]+$/),ut=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ft=g(/^(?:\w+script|data):/i),pt=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),mt=g(/^html$/i),dt=g(/^[a-z][.\w]*(-[.\w]+)+$/i),ht=g(/<[/\w!]/g),yt=g(/<[/\w]/g),gt=g(/<\/no(script|embed|frames)/i),bt=g(/\/>/i),Tt=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],St=y(Y({},Tt)),vt=function(){const t={};return A(Tt,e=>{t[e]=g(new RegExp("</"+e+"(?=[\\t\\n\\f\\r />])","i"))}),y(t)}(),At=function(){return"undefined"==typeof window?null:window},wt=function(t,e,n,r){return j(t,e)&&O(t[e])?Y(r.base?q(r.base):{},t[e],r.transform):n},xt=function(t,e,n){const r=j(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]:At();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,p=e.trustedTypes,m=c.prototype,d=$(m,"cloneNode"),h=$(m,"remove"),T=$(m,"removeAttributeNode"),S=$(m,"nextSibling"),v=$(m,"childNodes"),B=$(m,"parentNode"),W=$(m,"shadowRoot"),G=$(m,"attributes"),Tt=l&&l.prototype?$(l.prototype,"nodeType"):null,_t=l&&l.prototype?$(l.prototype,"nodeName"):null,Et=l&&l.prototype?$(l.prototype,"ownerDocument"):null,Ot=function(t){return Tt?Tt(t):t.nodeType},kt=function(t){return _t?_t(t):t.nodeName};if("function"==typeof a){const t=r.createElement("template");t.content&&t.content.ownerDocument&&(r=t.content.ownerDocument)}let Nt,Dt,Ct="",Rt=!1,It=0;const Lt=function(){if(It>0)throw H('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.')},Pt=function(t){Lt(),It++;try{return Nt.createHTML(t)}finally{It--}},zt=r,Mt=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 f&&"function"==typeof B&&Mt&&void 0!==Mt.createHTMLDocument;const Wt=it,Yt=at,Gt=lt,qt=ct,$t=st,Vt=ft,Xt=pt,Kt=dt;let Zt=ut,Jt=null;const Qt=Y({},[...V,...X,...K,...J,...tt]);let te=null;const ee=Y({},[...et,...nt,...rt,...ot]);let ne=Object.seal(b(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(b(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,Te=!1,Se=!0,ve=!1;const Ae="user-content-";let we=!0,xe=!1,_e={},Ee=null;const Oe=Y({},["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 ke=null;const Ne=Y({},["audio","video","img","source","image","track"]);let De=null;const Ce=Y({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Re="http://www.w3.org/1998/Math/MathML",Ie="http://www.w3.org/2000/svg",Le="http://www.w3.org/1999/xhtml";let Pe=Le,ze=!1,Me=null;const je=Y({},[Re,Ie,Le],N),Ue=y(["mi","mo","mn","ms","mtext"]);let Fe=Y({},Ue);const He=y(["annotation-xml"]);let Be=Y({},He);const We=Y({},["title","style","font","a","script"]);let Ye=null;const Ge=["application/xhtml+xml","text/html"];let qe=null,$e=null;const Ve=r.createElement("form"),Xe=function(t){return t instanceof RegExp||t instanceof Function},Ke=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if($e&&$e===t)return;t&&"object"==typeof t||(t={}),t=q(t),Ye=-1===Ge.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,qe="application/xhtml+xml"===Ye?N:k,Jt=wt(t,"ALLOWED_TAGS",Qt,{transform:qe}),te=wt(t,"ALLOWED_ATTR",ee,{transform:qe}),Me=wt(t,"ALLOWED_NAMESPACES",je,{transform:N}),De=wt(t,"ADD_URI_SAFE_ATTR",Ce,{transform:qe,base:Ce}),ke=wt(t,"ADD_DATA_URI_TAGS",Ne,{transform:qe,base:Ne}),Ee=wt(t,"FORBID_CONTENTS",Oe,{transform:qe}),re=wt(t,"FORBID_TAGS",q({}),{transform:qe}),oe=wt(t,"FORBID_ATTR",q({}),{transform:qe}),_e=!!j(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,Te=t.RETURN_TRUSTED_TYPE||!1,ye=t.FORCE_BODY||!1,Se=!1!==t.SANITIZE_DOM,ve=t.SANITIZE_NAMED_PROPS||!1,we=!1!==t.KEEP_CONTENT,xe=t.IN_PLACE||!1,Zt=function(t){try{return F(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:ut,Pe="string"==typeof t.NAMESPACE?t.NAMESPACE:Le,Fe=xt(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>Y({},Ue)),Be=xt(t,"HTML_INTEGRATION_POINTS",()=>Y({},He));const e=xt(t,"CUSTOM_ELEMENT_HANDLING",()=>b(null));if(ne=b(null),j(e,"tagNameCheck")&&Xe(e.tagNameCheck)&&(ne.tagNameCheck=e.tagNameCheck),j(e,"attributeNameCheck")&&Xe(e.attributeNameCheck)&&(ne.attributeNameCheck=e.attributeNameCheck),j(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&(ne.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),g(ne),ue&&(le=!1),be&&(ge=!0),_e&&(Jt=Y({},tt),te=b(null),!0===_e.html&&(Y(Jt,V),Y(te,et)),!0===_e.svg&&(Y(Jt,X),Y(te,nt),Y(te,ot)),!0===_e.svgFilters&&(Y(Jt,K),Y(te,nt),Y(te,ot)),!0===_e.mathMl&&(Y(Jt,J),Y(te,rt),Y(te,ot))),ie.tagCheck=null,ie.attributeCheck=null,j(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?ie.tagCheck=t.ADD_TAGS:O(t.ADD_TAGS)&&(Jt===Qt&&(Jt=q(Jt)),Y(Jt,t.ADD_TAGS,qe))),j(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?ie.attributeCheck=t.ADD_ATTR:O(t.ADD_ATTR)&&(te===ee&&(te=q(te)),Y(te,t.ADD_ATTR,qe))),j(t,"ADD_FORBID_CONTENTS")&&O(t.ADD_FORBID_CONTENTS)&&(Ee===Oe&&(Ee=q(Ee)),Y(Ee,t.ADD_FORBID_CONTENTS,qe)),we&&(Jt["#text"]=!0),pe&&Y(Jt,["html","head","body"]),Jt.table&&(Y(Jt,["tbody"]),delete re.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const e=Nt;Nt=t.TRUSTED_TYPES_POLICY;try{Ct=Pt("")}catch(t){throw Nt=e,t}}else null===t.TRUSTED_TYPES_POLICY?(Nt=void 0,Ct=""):(void 0===Nt&&(Rt||(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,i),Rt=!0),Nt=Dt),Nt&&"string"==typeof Ct&&(Ct=Pt("")));y&&y(t),$e=t},Ze=Y({},[...X,...K,...Z]),Je=Y({},[...J,...Q]),Qe=function(t){_(n.removed,{element:t});try{B(t).removeChild(t)}catch(e){if(h(t),!B(t))throw H("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=v(t);if(e){const t=[];A(e,e=>{_(t,e)}),A(t,t=>{try{h(t)}catch(t){}})}const n=G(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?T(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=G(t);if(e)for(let n=e.length-1;n>=0;--n){const r=e[n],o=r&&r.name;"string"!=typeof o||te[qe(o)]||tn(t,r,o)}},on=function(t){const e=[t];for(;e.length>0;){const t=e.pop();1===Ot(t)&&rn(t);const n=v(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=D(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===Ye&&Pe===Le&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const o=Nt?Pt(t):t;if(Pe===Le)try{e=(new u).parseFromString(o,Ye)}catch(t){}if(!e||!e.documentElement){e=Mt.createDocument(Pe,"template",null);try{e.documentElement.innerHTML=ze?Ct:o}catch(t){}}const i=e.body||e.documentElement;return t&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),Pe===Le?Ft.call(e,pe?"html":"body")[0]:pe?e.documentElement:i},cn=function(t){const e=Et?Et(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,Gt," ")},un=function(t){var e;t.normalize();const n=Et?Et(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&&A(i,t=>{pn(t.content)&&un(t.content)})},fn=function(t){const e=_t?_t(t):null;return"string"==typeof e&&"form"===qe(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==G(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!==Tt(t)||t.childNodes!==v(t))},pn=function(t){if(!Tt||"object"!=typeof t||null===t)return!1;try{return 11===Tt(t)}catch(t){return!1}},mn=function(t){if(!Tt||"object"!=typeof t||null===t)return!1;try{return"number"==typeof Tt(t)}catch(t){return!1}};function dn(t,e,r){0!==t.length&&A(t,t=>{t.call(n,e,r,$e)})}const hn=function(t,e){if(t instanceof RegExp)return F(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===B(t)&&(xe&&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=qe(kt(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)&&F(ht,t.textContent)&&F(ht,t.innerHTML))||!!(fe&&t.namespaceURI===Le&&St[e]&&(mn(t.firstElementChild)||"string"==typeof t.textContent&&F(vt[e],t.textContent)))||7===t.nodeType||!(!fe||8!==t.nodeType||!F(yt,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]&&vn(e)&&hn(ne.tagNameCheck,e))return!1;if(we&&!Ee[e]){const e=B(t),r=v(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,S(t))}}return Qe(t),!0}(t,r,e);return!(!1!==n||(dn(Bt.afterSanitizeElements,t,null),!gn(t,e)))||n}if(1===Ot(t)&&!function(t){let e=B(t);e&&e.tagName||(e={namespaceURI:Pe,tagName:"template"});const n=k(t.tagName),r=k(e.tagName);return!!Me[t.namespaceURI]&&(t.namespaceURI===Ie?function(t,e,n){return e.namespaceURI===Le?"svg"===t:e.namespaceURI===Re?"svg"===t&&("annotation-xml"===n||Fe[n]):Boolean(Ze[t])}(n,e,r):t.namespaceURI===Re?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===Re&&!Fe[n])&&!Je[t]&&(We[t]||!Ze[t])}(n,e,r):!("application/xhtml+xml"!==Ye||!Me[t.namespaceURI]))}(t))return Qe(t),!0;if(("noscript"===r||"noembed"===r||"noframes"===r)&&F(gt,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)},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 Ve))return!1;const o=te[e]||ie.attributeCheck instanceof Function&&ie.attributeCheck(e,t);return!(!le||!F(qt,e))||!(!ae||!F($t,e))||(o?!(!De[e]&&!F(Zt,C(n,Xt,""))&&("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==R(n,"data:")||!ke[t])&&(!ce||F(Vt,C(n,Xt,"")))&&n):vn(t)&&hn(ne.tagNameCheck,t)&&hn(ne.attributeNameCheck,e,t)||"is"===e&&ne.allowCustomizedBuiltInElements&&hn(ne.tagNameCheck,n))},Sn=Y({},["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[k(t)]&&F(Kt,t)},An=function(t,e,n,r){if(Nt&&"object"==typeof p&&"function"==typeof p.getAttributeType&&!n)switch(p.getAttributeType(t,e)){case"TrustedHTML":return Pt(r);case"TrustedScriptURL":return function(t){Lt(),It++;try{return Nt.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}},xn=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=qe(t.nodeName);for(;i--;){const e=r[i],l=e.name,c=e.namespaceURI,s=e.value,u=qe(l),f=s;let p="value"===l?f:I(f),m=!1;o.attrName=u,o.attrValue=p,o.keepAttr=!0,o.forceKeepAttr=void 0,dn(Bt.uponSanitizeAttribute,t,o),p=o.attrValue,!ve||"id"!==u&&"name"!==u||0===R(p,Ae)||(nn(l,t,e),p=Ae+p,m=!0),fe&&F(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,p)||"attributename"===u&&D(p,"href")?nn(l,t,e):o.forceKeepAttr||(!o.keepAttr||!se&&F(bt,p)?nn(l,t,e):(ue&&(p=sn(p)),Tn(a,u,p)?(p=An(a,u,c,p),p!==f&&wn(t,l,c,p)&&m&&x(n.removed)):nn(l,t,e)))}dn(Bt.afterSanitizeAttributes,t,null),gn(t,e)},_n=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),xn(e,t),pn(e.content)&&_n(e.content),1===Ot(e)){const t=W(e);pn(t)&&(En(t),_n(t))}dn(Bt.afterSanitizeShadowDOM,t,null)},En=function(t){const e=[{node:t,shadow:null}];for(;e.length>0;){const t=e.pop();if(t.shadow){_n(t.shadow);continue}const n=t.node,r=1===Ot(n),o=v(n);if(o)for(let t=o.length-1;t>=0;--t)e.push({node:o[t],shadow:null});if(r){const t=_t?_t(n):null;if("string"==typeof t&&"template"===qe(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 L(t);case"boolean":return P(t);case"bigint":return z?z(t):"0";case"symbol":return M?M(t):"Symbol()";case"undefined":default:return U(t);case"function":case"object":{if(null===t)return U(t);const e=t,n=$(e,"toString");if("function"==typeof n){const t=n(e);return"string"==typeof t?t:U(t)}return U(t)}}}(t)))throw H("dirty is not a string, aborting");if(!n.isSupported)return t;me?(Jt=de,te=he):Ke(e),(Bt.uponSanitizeElement.length>0||Bt.uponSanitizeAttribute.length>0)&&(Jt=q(Jt)),Bt.uponSanitizeAttribute.length>0&&(te=q(te)),n.removed=[];const c=xe&&"string"!=typeof t&&mn(t);if(c){!function(t){if(!fe)return;const e=[t];for(;e.length>0;){const t=e.pop(),n=Ot(t);if(7===n||8===n&&F(yt,t.data)){try{h(t)}catch(t){}continue}if(1===n){const e=t,n=qe(kt(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=v(t);if(r)for(let t=r.length-1;t>=0;--t)e.push(r[t])}}(t);const e=kt(t);if("string"==typeof e){const n=qe(e);if(!Jt[n]||re[n])throw en(t),H("root node is forbidden and cannot be sanitized in-place")}if(fn(t))throw en(t),H("root node is clobbered and cannot be sanitized in-place");try{En(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),En(r);else{if(!ge&&!ue&&!pe&&-1===t.indexOf("<"))return Nt&&Te?Pt(t):t;if(r=ln(t),!r)return ge?null:Te?Ct:""}r&&ye&&Qe(r.firstChild);const s=c?t:r;try{const t=cn(s);for(;a=t.nextNode();)bn(a,s),xn(a,s),pn(a.content)&&_n(a.content)}catch(e){throw c&&(en(t),A(n.removed,t=>{t.element&&on(t.element)})),e}if(c){let e=!1;if(A(n.removed,n=>{n.element&&(n.element===t&&(e=!0),on(n.element))}),e)throw H("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&&F(mt,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),ue&&(u=sn(u)),Nt&&Te?Pt(u):u},n.setConfig=function(){Ke(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),me=!0,de=Jt,he=te},n.clearConfig=function(){$e=null,me=!1,de=null,he=null,Nt=Dt,Ct=""},n.isValidAttribute=function(t,e,n){$e||Ke({});const r=qe(t),o=qe(e);return Tn(r,o,n)},n.addHook=function(t,e){"function"==typeof e&&j(Bt,t)&&_(Bt[t],e)},n.removeHook=function(t,e){if(j(Bt,t)){if(void 0!==e){const n=w(Bt[t],e);return-1===n?void 0:E(Bt[t],n,1)[0]}return x(Bt[t])}},n.removeHooks=function(t){j(Bt,t)&&(Bt[t]=[])},n.removeAllHooks=function(){Bt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();function Et({label:t,Type:e="Primary",Variant:n="Default",Outline:o=!1,State:i="Default",href:a="#",onClick:l,className:c,...s}){const u="Disabled"===i,f=["mg-button","CTA"===n&&"mg-button-cta","mg-button-"+("Secondary"===e?"secondary":"primary"),o&&"mg-button-outline",u&&"disabled",c].filter(Boolean).join(" ");return(0,r().jsx)("a",{className:f,...s,...u?{"aria-disabled":"true",tabIndex:-1}:{href:a,onClick:l},children:t})}function Ot(t){return"string"==typeof t&&""!==t.trim()?t:null}function kt({title:t,link:e=null,target:n,rel:o}){const i=t?.trim();return(0,r().jsx)("header",{className:"mg-card__title",children:e?(0,r().jsx)("a",{href:e,target:n,rel:o,children:i}):i})}function Nt({label:t,link:e=null}){return t?e?(0,r().jsx)("a",{href:e,className:"mg-card__label mg-card__label--active",children:t}):(0,r().jsx)("span",{className:"mg-card__label",children:t}):null}o(),Et.propTypes={label:a().string.isRequired,Type:a().oneOf(["Primary","Secondary"]),Variant:a().oneOf(["Default","CTA"]),Outline:a().bool,State:a().oneOf(["Default","Disabled"]),href:a().string,onClick:a().func,className:a().string},kt.propTypes={title:a().string,link:a().string,target:a().string,rel:a().string},Nt.propTypes={label:a().string,link:a().string};const Dt=(...t)=>t.filter(Boolean).length>0?t.filter(Boolean).join(" "):null;function Ct({data:t,variant:e="primary",className:n}){const o=e&&"primary"!==e?`mg-card--${e}`:null;return(0,r().jsx)(r().Fragment,{children:t.map((t,e)=>{const i=Ot(t.link),a=Ot(t.buttonLink)??i;return(0,r().jsxs)("article",{className:Dt("mg-card","mg-card__hc","mg-card-book__hc",o,!i&&"mg-card--no-link",n),children:[t.imgback&&(0,r().jsx)("div",{className:"mg-card__visual",children:(0,r().jsx)("img",{src:t.imgback,alt:t.imgalt,className:"mg-card__image"})}),(0,r().jsxs)("div",{className:"mg-card__content",children:[(t.label1||t.label2)&&(0,r().jsxs)("div",{className:"mg-card__meta",children:[(0,r().jsx)(Nt,{label:t.label1,link:i}),(0,r().jsx)(Nt,{label:t.label2,link:i})]}),(0,r().jsx)(kt,{title:t.title,link:i,target:t.target,rel:t.rel}),t.summaryText&&(0,r().jsx)("p",{className:"mg-card__summary",dangerouslySetInnerHTML:{__html:_t.sanitize(t.summaryText)}}),t.button&&a&&(0,r().jsx)(Et,{Type:"Primary",Variant:"CTA",label:t.button,href:a,target:t.target,rel:t.rel})]})]},e)})})}Ct.propTypes={data:a().array.isRequired,variant:a().oneOf(["primary","secondary","tertiary","quaternary"]),className:a().string};export{Ct as HorizontalBookCard};
@@ -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
@@ -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-20T12:11:45.319Z
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 HorizontalCard.js.LICENSE.txt */
9
- import"react";var e={2694(e,t,n){var r=n(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,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 t(){return e}e.isRequired=e;var n={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 n.PropTypes=n,n}},5556(e,t,n){e.exports=n(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}};const t={};function n(r){const o=t[r];if(void 0!==o)return o.exports;const a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.cw=e=>{var t;return()=>{if(e){var n=e;e=0,t={exports:{}},n.call(t.exports,t,t.exports)}return t.exports}},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r=n.cw(function(e,t){var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var a in r={},t)"key"!==a&&(r[a]=t[a]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:o,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=o,t.jsxs=o}),o=n.cw(function(e,t){e.exports=r()}),a=n(5556),i=n.n(a);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t);else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||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 s=Object.entries,u=Object.setPrototypeOf,f=Object.isFrozen,p=Object.getPrototypeOf,m=Object.getOwnPropertyDescriptor;let d=Object.freeze,h=Object.seal,y=Object.create,g="undefined"!=typeof Reflect&&Reflect,b=g.apply,T=g.construct;d||(d=function(e){return e}),h||(h=function(e){return e}),b||(b=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),T||(T=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const S=H(Array.prototype.forEach),v=H(Array.prototype.lastIndexOf),A=H(Array.prototype.pop),w=H(Array.prototype.push),E=H(Array.prototype.splice),x=Array.isArray,_=H(String.prototype.toLowerCase),O=H(String.prototype.toString),N=H(String.prototype.match),k=H(String.prototype.replace),D=H(String.prototype.indexOf),C=H(String.prototype.trim),R=H(Number.prototype.toString),I=H(Boolean.prototype.toString),L="undefined"==typeof BigInt?null:H(BigInt.prototype.toString),z="undefined"==typeof Symbol?null:H(Symbol.prototype.toString),M=H(Object.prototype.hasOwnProperty),P=H(Object.prototype.toString),j=H(RegExp.prototype.test),U=(F=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return T(F,t)});var F;function H(e){return function(t){t instanceof RegExp&&(t.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 b(e,t,r)}}function B(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_;if(u&&u(e,null),!x(t))return e;let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(f(t)||(t[r]=e),o=e)}e[o]=!0}return e}function W(e){for(let t=0;t<e.length;t++)M(e,t)||(e[t]=null);return e}function Y(e){const t=y(null);for(const r of s(e)){var n=c(r,2);const o=n[0],a=n[1];M(e,o)&&(x(a)?t[o]=W(a):a&&"object"==typeof a&&a.constructor===Object?t[o]=Y(a):t[o]=a)}return t}function G(e,t){for(;null!==e;){const n=m(e,t);if(n){if(n.get)return H(n.get);if("function"==typeof n.value)return H(n.value)}e=p(e)}return function(){return null}}const q=d(["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"]),$=d(["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"]),V=d(["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"]),X=d(["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"]),K=d(["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"]),Z=d(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),J=d(["#text"]),Q=d(["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"]),ee=d(["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"]),te=d(["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"]),ne=d(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),re=h(/{{[\w\W]*|^[\w\W]*}}/g),oe=h(/<%[\w\W]*|^[\w\W]*%>/g),ae=h(/\${[\w\W]*/g),ie=h(/^data-[\-\w.\u00B7-\uFFFF]+$/),le=h(/^aria-[\-\w]+$/),ce=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),se=h(/^(?:\w+script|data):/i),ue=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fe=h(/^html$/i),pe=h(/^[a-z][.\w]*(-[.\w]+)+$/i),me=h(/<[/\w!]/g),de=h(/<[/\w]/g),he=h(/<\/no(script|embed|frames)/i),ye=h(/\/>/i),ge=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],be=d(B({},ge)),Te=function(){const e={};return S(ge,t=>{e[t]=h(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),d(e)}(),Se=function(){return"undefined"==typeof window?null:window},ve=function(e,t,n,r){return M(e,t)&&x(e[t])?B(r.base?Y(r.base):{},e[t],r.transform):n},Ae=function(e,t,n){const r=M(e,t)?e[t]:void 0;return r&&"object"==typeof r?Y(r):n()};var we=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Se();const n=t=>e(t);if(n.version="3.4.15",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let r=t.document;const o=r,a=o.currentScript;t.DocumentFragment;const i=t.HTMLTemplateElement,l=t.Node,c=t.Element,u=t.NodeFilter;void 0===t.NamedNodeMap&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const f=t.DOMParser,p=t.trustedTypes,m=c.prototype,g=G(m,"cloneNode"),b=G(m,"remove"),T=G(m,"removeAttributeNode"),F=G(m,"nextSibling"),H=G(m,"childNodes"),W=G(m,"parentNode"),ge=G(m,"shadowRoot"),we=G(m,"attributes"),Ee=l&&l.prototype?G(l.prototype,"nodeType"):null,xe=l&&l.prototype?G(l.prototype,"nodeName"):null,_e=l&&l.prototype?G(l.prototype,"ownerDocument"):null,Oe=function(e){return Ee?Ee(e):e.nodeType},Ne=function(e){return xe?xe(e):e.nodeName};if("function"==typeof i){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ke,De,Ce="",Re=!1,Ie=0;const Le=function(){if(Ie>0)throw U('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.')},ze=function(e){Le(),Ie++;try{return ke.createHTML(e)}finally{Ie--}},Me=r,Pe=Me.implementation,je=Me.createNodeIterator,Ue=Me.createDocumentFragment,Fe=Me.getElementsByTagName,He=o.importNode;let Be={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof s&&"function"==typeof W&&Pe&&void 0!==Pe.createHTMLDocument;const We=re,Ye=oe,Ge=ae,qe=ie,$e=le,Ve=se,Xe=ue,Ke=pe;let Ze=ce,Je=null;const Qe=B({},[...q,...$,...V,...K,...J]);let et=null;const tt=B({},[...Q,...ee,...te,...ne]);let nt=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}})),rt=null,ot=null;const at=Object.seal(y(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let it=!0,lt=!0,ct=!1,st=!0,ut=!1,ft=!0,pt=!1,mt=!1,dt=null,ht=null,yt=!1,gt=!1,bt=!1,Tt=!1,St=!0,vt=!1;const At="user-content-";let wt=!0,Et=!1,xt={},_t=null;const Ot=B({},["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 Nt=null;const kt=B({},["audio","video","img","source","image","track"]);let Dt=null;const Ct=B({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Rt="http://www.w3.org/1998/Math/MathML",It="http://www.w3.org/2000/svg",Lt="http://www.w3.org/1999/xhtml";let zt=Lt,Mt=!1,Pt=null;const jt=B({},[Rt,It,Lt],O),Ut=d(["mi","mo","mn","ms","mtext"]);let Ft=B({},Ut);const Ht=d(["annotation-xml"]);let Bt=B({},Ht);const Wt=B({},["title","style","font","a","script"]);let Yt=null;const Gt=["application/xhtml+xml","text/html"];let qt=null,$t=null;const Vt=r.createElement("form"),Xt=function(e){return e instanceof RegExp||e instanceof Function},Kt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if($t&&$t===e)return;e&&"object"==typeof e||(e={}),e=Y(e),Yt=-1===Gt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,qt="application/xhtml+xml"===Yt?O:_,Je=ve(e,"ALLOWED_TAGS",Qe,{transform:qt}),et=ve(e,"ALLOWED_ATTR",tt,{transform:qt}),Pt=ve(e,"ALLOWED_NAMESPACES",jt,{transform:O}),Dt=ve(e,"ADD_URI_SAFE_ATTR",Ct,{transform:qt,base:Ct}),Nt=ve(e,"ADD_DATA_URI_TAGS",kt,{transform:qt,base:kt}),_t=ve(e,"FORBID_CONTENTS",Ot,{transform:qt}),rt=ve(e,"FORBID_TAGS",Y({}),{transform:qt}),ot=ve(e,"FORBID_ATTR",Y({}),{transform:qt}),xt=!!M(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?Y(e.USE_PROFILES):e.USE_PROFILES),it=!1!==e.ALLOW_ARIA_ATTR,lt=!1!==e.ALLOW_DATA_ATTR,ct=e.ALLOW_UNKNOWN_PROTOCOLS||!1,st=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ut=e.SAFE_FOR_TEMPLATES||!1,ft=!1!==e.SAFE_FOR_XML,pt=e.WHOLE_DOCUMENT||!1,gt=e.RETURN_DOM||!1,bt=e.RETURN_DOM_FRAGMENT||!1,Tt=e.RETURN_TRUSTED_TYPE||!1,yt=e.FORCE_BODY||!1,St=!1!==e.SANITIZE_DOM,vt=e.SANITIZE_NAMED_PROPS||!1,wt=!1!==e.KEEP_CONTENT,Et=e.IN_PLACE||!1,Ze=function(e){try{return j(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:ce,zt="string"==typeof e.NAMESPACE?e.NAMESPACE:Lt,Ft=Ae(e,"MATHML_TEXT_INTEGRATION_POINTS",()=>B({},Ut)),Bt=Ae(e,"HTML_INTEGRATION_POINTS",()=>B({},Ht));const t=Ae(e,"CUSTOM_ELEMENT_HANDLING",()=>y(null));if(nt=y(null),M(t,"tagNameCheck")&&Xt(t.tagNameCheck)&&(nt.tagNameCheck=t.tagNameCheck),M(t,"attributeNameCheck")&&Xt(t.attributeNameCheck)&&(nt.attributeNameCheck=t.attributeNameCheck),M(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(nt.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),h(nt),ut&&(lt=!1),bt&&(gt=!0),xt&&(Je=B({},J),et=y(null),!0===xt.html&&(B(Je,q),B(et,Q)),!0===xt.svg&&(B(Je,$),B(et,ee),B(et,ne)),!0===xt.svgFilters&&(B(Je,V),B(et,ee),B(et,ne)),!0===xt.mathMl&&(B(Je,K),B(et,te),B(et,ne))),at.tagCheck=null,at.attributeCheck=null,M(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?at.tagCheck=e.ADD_TAGS:x(e.ADD_TAGS)&&(Je===Qe&&(Je=Y(Je)),B(Je,e.ADD_TAGS,qt))),M(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?at.attributeCheck=e.ADD_ATTR:x(e.ADD_ATTR)&&(et===tt&&(et=Y(et)),B(et,e.ADD_ATTR,qt))),M(e,"ADD_FORBID_CONTENTS")&&x(e.ADD_FORBID_CONTENTS)&&(_t===Ot&&(_t=Y(_t)),B(_t,e.ADD_FORBID_CONTENTS,qt)),wt&&(Je["#text"]=!0),pt&&B(Je,["html","head","body"]),Je.table&&(B(Je,["tbody"]),delete rt.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw U('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw U('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=ke;ke=e.TRUSTED_TYPES_POLICY;try{Ce=ze("")}catch(e){throw ke=t,e}}else null===e.TRUSTED_TYPES_POLICY?(ke=void 0,Ce=""):(void 0===ke&&(Re||(De=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(p,a),Re=!0),ke=De),ke&&"string"==typeof Ce&&(Ce=ze("")));d&&d(e),$t=e},Zt=B({},[...$,...V,...X]),Jt=B({},[...K,...Z]),Qt=function(e){w(n.removed,{element:e});try{W(e).removeChild(e)}catch(t){if(b(e),!W(e))throw U("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},en=function(e,t,n){try{T(e,t)}catch(t){try{e.removeAttribute(n)}catch(e){}}},tn=function(e){on(e);const t=H(e);if(t){const e=[];S(t,t=>{w(e,t)}),S(e,e=>{try{b(e)}catch(e){}})}const n=we(e);if(n)for(let t=n.length-1;t>=0;--t){const r=n[t],o=r&&r.name;"string"==typeof o&&en(e,r,o)}},nn=function(e,t,r){if(!r)try{r=t.getAttributeNode(e)}catch(e){r=null}w(n.removed,{attribute:r||null,from:t});try{r?T(t,r):t.removeAttribute(e)}catch(n){try{t.removeAttribute(e)}catch(e){}}if("is"===e)if(gt||bt)try{Qt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},rn=function(e){const t=we(e);if(t)for(let n=t.length-1;n>=0;--n){const r=t[n],o=r&&r.name;"string"!=typeof o||et[qt(o)]||en(e,r,o)}},on=function(e){const t=[e];for(;t.length>0;){const e=t.pop();1===Oe(e)&&rn(e);const n=H(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},an=function(e,t){return!!ft&&("patchsrc"===e||"for"===e&&"label"!==t&&"output"!==t)},ln=function(e){let t=null,n=null;if(yt)e="<remove></remove>"+e;else{const t=N(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Yt&&zt===Lt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=ke?ze(e):e;if(zt===Lt)try{t=(new f).parseFromString(o,Yt)}catch(e){}if(!t||!t.documentElement){t=Pe.createDocument(zt,"template",null);try{t.documentElement.innerHTML=Mt?Ce:o}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),zt===Lt?Fe.call(t,pt?"html":"body")[0]:pt?t.documentElement:a},cn=function(e){const t=_e?_e(e):e.ownerDocument;return je.call(t||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},sn=function(e){return e=k(e,We," "),e=k(e,Ye," "),k(e,Ge," ")},un=function(e){var t;e.normalize();const n=_e?_e(e):e.ownerDocument,r=je.call(n||e,e,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let o=r.nextNode();for(;o;)o.data=sn(o.data),o=r.nextNode();const a=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");a&&S(a,e=>{pn(e.content)&&un(e.content)})},fn=function(e){const t=xe?xe(e):null;return"string"==typeof t&&"form"===qt(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==we(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.removeAttributeNode||"function"!=typeof e.getAttributeNode||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==Ee(e)||e.childNodes!==H(e))},pn=function(e){if(!Ee||"object"!=typeof e||null===e)return!1;try{return 11===Ee(e)}catch(e){return!1}},mn=function(e){if(!Ee||"object"!=typeof e||null===e)return!1;try{return"number"==typeof Ee(e)}catch(e){return!1}};function dn(e,t,r){0!==e.length&&S(e,e=>{e.call(n,t,r,$t)})}const hn=function(e,t){if(e instanceof RegExp)return j(e,t);if(e 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(e(t,...r))}return!1},yn=function(e,t,n,r){return 0===e.length?t:t===n||t===r?Y(t):t},gn=function(e,t){return e!==t&&null===W(e)&&(Et&&on(e),!0)},bn=function(e,t){if(dn(Be.beforeSanitizeElements,e,null),gn(e,t))return!0;if(fn(e))return Qt(e),!0;const r=qt(Ne(e));if(Je=yn(Be.uponSanitizeElement,Je,Qe,dt),dn(Be.uponSanitizeElement,e,{tagName:r,allowedTags:Je}),gn(e,t))return!0;if(function(e,t){return!!(ft&&e.hasChildNodes()&&!mn(e.firstElementChild)&&j(me,e.textContent)&&j(me,e.innerHTML))||!!(ft&&e.namespaceURI===Lt&&be[t]&&(mn(e.firstElementChild)||"string"==typeof e.textContent&&j(Te[t],e.textContent)))||7===e.nodeType||!(!ft||8!==e.nodeType||!j(de,e.data))}(e,r))return Qt(e),!0;if(rt[r]||!(at.tagCheck instanceof Function&&at.tagCheck(r))&&!Je[r]){const n=function(e,t,n){if(!rt[t]&&vn(t)&&hn(nt.tagNameCheck,t))return!1;if(wt&&!_t[t]){const t=W(e),r=H(e);if(r&&t)for(let o=r.length-1;o>=0;--o){const a=e===n?g(r[o],!0):r[o];t.insertBefore(a,F(e))}}return Qt(e),!0}(e,r,t);return!1===n&&dn(Be.afterSanitizeElements,e,null),n}if(1===Oe(e)&&!function(e){let t=W(e);t&&t.tagName||(t={namespaceURI:zt,tagName:"template"});const n=_(e.tagName),r=_(t.tagName);return!!Pt[e.namespaceURI]&&(e.namespaceURI===It?function(e,t,n){return t.namespaceURI===Lt?"svg"===e:t.namespaceURI===Rt?"svg"===e&&("annotation-xml"===n||Ft[n]):Boolean(Zt[e])}(n,t,r):e.namespaceURI===Rt?function(e,t,n){return t.namespaceURI===Lt?"math"===e:t.namespaceURI===It?"math"===e&&Bt[n]:Boolean(Jt[e])}(n,t,r):e.namespaceURI===Lt?function(e,t,n){return!(t.namespaceURI===It&&!Bt[n])&&!(t.namespaceURI===Rt&&!Ft[n])&&!Jt[e]&&(Wt[e]||!Zt[e])}(n,t,r):!("application/xhtml+xml"!==Yt||!Pt[e.namespaceURI]))}(e))return Qt(e),!0;if(("noscript"===r||"noembed"===r||"noframes"===r)&&j(he,e.innerHTML))return Qt(e),!0;if(ut&&3===e.nodeType){const t=sn(e.textContent);e.textContent!==t&&(w(n.removed,{element:e.cloneNode()}),e.textContent=t)}return dn(Be.afterSanitizeElements,e,null),!1},Tn=function(e,t,n){if(ot[t])return!1;if(an(t,e))return!1;if(St&&("id"===t||"name"===t)&&(n in r||n in Vt))return!1;const o=et[t]||at.attributeCheck instanceof Function&&at.attributeCheck(t,e);return!(!lt||!j(qe,t))||!(!it||!j($e,t))||(o?!(!Dt[t]&&!j(Ze,k(n,Xe,""))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==D(n,"data:")||!Nt[e])&&(!ct||j(Ve,k(n,Xe,"")))&&n):vn(e)&&hn(nt.tagNameCheck,e)&&hn(nt.attributeNameCheck,t,e)||"is"===t&&nt.allowCustomizedBuiltInElements&&hn(nt.tagNameCheck,n))},Sn=B({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),vn=function(e){return!Sn[_(e)]&&j(Ke,e)},An=function(e,t,n,r){if(ke&&"object"==typeof p&&"function"==typeof p.getAttributeType&&!n)switch(p.getAttributeType(e,t)){case"TrustedHTML":return ze(r);case"TrustedScriptURL":return function(e){Le(),Ie++;try{return ke.createScriptURL(e)}finally{Ie--}}(r)}return r},wn=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!fn(e)||(Qt(e),!1)}catch(n){return nn(t,e),!1}},En=function(e){dn(Be.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||fn(e))return;et=yn(Be.uponSanitizeAttribute,et,tt,ht);const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:et,forceKeepAttr:void 0};let o=t.length;const a=qt(e.nodeName);for(;o--;){const i=t[o],l=i.name,c=i.namespaceURI,s=i.value,u=qt(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(Be.uponSanitizeAttribute,e,r),p=r.attrValue,!vt||"id"!==u&&"name"!==u||0===D(p,At)||(nn(l,e,i),p=At+p,m=!0),ft&&j(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,p)||"attributename"===u&&N(p,"href")?nn(l,e,i):r.forceKeepAttr||(r.keepAttr&&(st||!j(ye,p))?(ut&&(p=sn(p)),Tn(a,u,p)?(p=An(a,u,c,p),p!==f&&wn(e,l,c,p)&&m&&A(n.removed)):nn(l,e,i)):nn(l,e,i))}dn(Be.afterSanitizeAttributes,e,null)},xn=function(e){let t=null;const n=cn(e);for(dn(Be.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(dn(Be.uponSanitizeShadowNode,t,null),bn(t,e),En(t),pn(t.content)&&xn(t.content),1===Oe(t)){const e=ge(t);pn(e)&&(_n(e),xn(e))}dn(Be.afterSanitizeShadowDOM,e,null)},_n=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){xn(e.shadow);continue}const n=e.node,r=1===Oe(n),o=H(n);if(o)for(let e=o.length-1;e>=0;--e)t.push({node:o[e],shadow:null});if(r){const e=xe?xe(n):null;if("string"==typeof e&&"template"===qt(e)){const e=n.content;pn(e)&&t.push({node:e,shadow:null})}}if(r){const e=ge(n);pn(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,i=null,l=null;if(Mt=!e,Mt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!mn(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return R(e);case"boolean":return I(e);case"bigint":return L?L(e):"0";case"symbol":return z?z(e):"Symbol()";case"undefined":default:return P(e);case"function":case"object":{if(null===e)return P(e);const t=e,n=G(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:P(e)}return P(e)}}}(e)))throw U("dirty is not a string, aborting");if(!n.isSupported)return e;mt?(Je=dt,et=ht):Kt(t),(Be.uponSanitizeElement.length>0||Be.uponSanitizeAttribute.length>0)&&(Je=Y(Je)),Be.uponSanitizeAttribute.length>0&&(et=Y(et)),n.removed=[];const c=Et&&"string"!=typeof e&&mn(e);if(c){!function(e){if(!ft)return;const t=[e];for(;t.length>0;){const e=t.pop(),n=Oe(e);if(7===n||8===n&&j(de,e.data)){try{b(e)}catch(e){}continue}if(1===n){const t=e,n=qt(Ne(e));try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&an("for",n)&&t.removeAttribute("for")}catch(e){}}const r=H(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}}(e);const t=Ne(e);if("string"==typeof t){const n=qt(t);if(!Je[n]||rt[n])throw tn(e),U("root node is forbidden and cannot be sanitized in-place")}if(fn(e))throw tn(e),U("root node is clobbered and cannot be sanitized in-place");try{_n(e)}catch(t){throw tn(e),t}}else if(mn(e))r=ln("\x3c!----\x3e"),a=r.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a),_n(r);else{if(!gt&&!ut&&!pt&&-1===e.indexOf("<"))return ke&&Tt?ze(e):e;if(r=ln(e),!r)return gt?null:Tt?Ce:""}r&&yt&&Qt(r.firstChild);const s=c?e:r;try{const e=cn(s);for(;i=e.nextNode();)bn(i,s),En(i),pn(i.content)&&xn(i.content)}catch(t){throw c&&(tn(e),S(n.removed,e=>{e.element&&on(e.element)})),t}if(c)return S(n.removed,e=>{e.element&&on(e.element)}),ut&&un(e),e;if(gt){if(ut&&un(r),bt)for(l=Ue.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(et.shadowroot||et.shadowrootmode)&&(l=He.call(o,l,!0)),l}let u=pt?r.outerHTML:r.innerHTML;return pt&&Je["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&j(fe,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),ut&&(u=sn(u)),ke&&Tt?ze(u):u},n.setConfig=function(){Kt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),mt=!0,dt=Je,ht=et},n.clearConfig=function(){$t=null,mt=!1,dt=null,ht=null,ke=De,Ce=""},n.isValidAttribute=function(e,t,n){$t||Kt({});const r=qt(e),o=qt(t);return Tn(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&M(Be,e)&&w(Be[e],t)},n.removeHook=function(e,t){if(M(Be,e)){if(void 0!==t){const n=v(Be[e],t);return-1===n?void 0:E(Be[e],n,1)[0]}return A(Be[e])}},n.removeHooks=function(e){M(Be,e)&&(Be[e]=[])},n.removeAllHooks=function(){Be={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();function Ee({label:e,Type:t="Primary",Variant:n="Default",Outline:o=!1,State:a="Default",href:i="#",onClick:l,className:c,...s}){const u="Disabled"===a,f=["mg-button","CTA"===n&&"mg-button-cta","mg-button-"+("Secondary"===t?"secondary":"primary"),o&&"mg-button-outline",u&&"disabled",c].filter(Boolean).join(" ");return(0,r().jsx)("a",{className:f,...s,...u?{"aria-disabled":"true",tabIndex:-1}:{href:i,onClick:l},children:e})}function xe(e){return"string"==typeof e&&""!==e.trim()?e:null}function _e({title:e,link:t=null,target:n,rel:o}){const a=e?.trim();return(0,r().jsx)("header",{className:"mg-card__title",children:t?(0,r().jsx)("a",{href:t,target:n,rel:o,children:a}):a})}function Oe({label:e,link:t=null}){return e?t?(0,r().jsx)("a",{href:t,className:"mg-card__label mg-card__label--active",children:e}):(0,r().jsx)("span",{className:"mg-card__label",children:e}):null}o(),Ee.propTypes={label:i().string.isRequired,Type:i().oneOf(["Primary","Secondary"]),Variant:i().oneOf(["Default","CTA"]),Outline:i().bool,State:i().oneOf(["Default","Disabled"]),href:i().string,onClick:i().func,className:i().string},_e.propTypes={title:i().string,link:i().string,target:i().string,rel:i().string},Oe.propTypes={label:i().string,link:i().string};const Ne=(...e)=>e.filter(Boolean).length>0?e.filter(Boolean).join(" "):null;function ke({data:e,variant:t="primary",className:n}){const o=t&&"primary"!==t?`mg-card--${t}`:null;return(0,r().jsx)(r().Fragment,{children:e.map((e,t)=>{const a=xe(e.link),i=xe(e.buttonLink)??a;return(0,r().jsxs)("article",{className:Ne("mg-card","mg-card__hc",o,!a&&"mg-card--no-link",n),children:[e.imgback&&(0,r().jsx)("div",{className:"mg-card__visual",children:(0,r().jsx)("img",{src:e.imgback,alt:e.imgalt,className:"mg-card__image"})}),(0,r().jsxs)("div",{className:"mg-card__content",children:[(e.label1||e.label2)&&(0,r().jsxs)("div",{className:"mg-card__meta",children:[(0,r().jsx)(Oe,{label:e.label1,link:a}),(0,r().jsx)(Oe,{label:e.label2,link:a})]}),(0,r().jsx)(_e,{title:e.title,link:a,target:e.target,rel:e.rel}),e.summaryText&&(0,r().jsx)("p",{className:"mg-card__summary",dangerouslySetInnerHTML:{__html:we.sanitize(e.summaryText)}}),e.button&&i&&(0,r().jsx)(Ee,{Type:"Primary",Variant:"CTA",label:e.button,href:i,target:e.target,rel:e.rel})]})]},t)})})}ke.propTypes={data:i().array.isRequired,variant:i().oneOf(["primary","secondary","tertiary","quaternary"]),className:i().string};export{ke as HorizontalCard};
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"),r=Symbol.for("react.fragment");function o(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}}e.Fragment=r,e.jsx=o,e.jsxs=o}),o=n.cw(function(t,e){t.exports=r()}),i=n(5556),a=n.n(i);function l(t,e){this.v=t,this.k=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,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 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.")}()}function u(t){var e,n;function r(e,n){try{var i=t[e](n),a=i.value,c=a instanceof l;Promise.resolve(c?a.v:a).then(function(n){if(c){var l="return"===e&&a.k?e:"next";if(!a.k||n.done)return r(l,n);n=t[l](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)}u.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},u.prototype.next=function(t){return this._invoke("next",t)},u.prototype.throw=function(t){return this._invoke("throw",t)},u.prototype.return=function(t){return this._invoke("return",t)};const f=Object.entries,p=Object.setPrototypeOf,m=Object.isFrozen,d=Object.getPrototypeOf,h=Object.getOwnPropertyDescriptor;let y=Object.freeze,g=Object.seal,b=Object.create,T="undefined"!=typeof Reflect&&Reflect,S=T.apply,v=T.construct;y||(y=function(t){return t}),g||(g=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)}),v||(v=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 A=W(Array.prototype.forEach);Array.prototype.indexOf;const w=W(Array.prototype.lastIndexOf),x=W(Array.prototype.pop),_=W(Array.prototype.push);Array.prototype.slice;const E=W(Array.prototype.splice),O=Array.isArray,k=W(String.prototype.toLowerCase),N=W(String.prototype.toString),D=W(String.prototype.match),C=W(String.prototype.replace),R=W(String.prototype.indexOf),I=W(String.prototype.trim),L=W(Number.prototype.toString),P=W(Boolean.prototype.toString),z="undefined"==typeof BigInt?null:W(BigInt.prototype.toString),M="undefined"==typeof Symbol?null:W(Symbol.prototype.toString),j=W(Object.prototype.hasOwnProperty),U=W(Object.prototype.toString),F=W(RegExp.prototype.test),H=(B=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return v(B,e)});var B;function W(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 Y(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:k;if(p&&p(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&&(m(e)||(e[r]=t),o=t)}t[o]=!0}return t}function G(t){for(let e=0;e<t.length;e++)j(t,e)||(t[e]=null);return t}function q(t){const e=b(null);for(const r of f(t)){var n=s(r,2);const o=n[0],i=n[1];j(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 $(t,e){for(;null!==t;){const n=h(t,e);if(n){if(n.get)return W(n.get);if("function"==typeof n.value)return W(n.value)}t=d(t)}return function(){return null}}const V=y(["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=y(["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=y(["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"]),Z=y(["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"]),J=y(["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"]),Q=y(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),tt=y(["#text"]),et=y(["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"]),nt=y(["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"]),rt=y(["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"]),ot=y(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),it=g(/{{[\w\W]*|^[\w\W]*}}/g),at=g(/<%[\w\W]*|^[\w\W]*%>/g),lt=g(/\${[\w\W]*/g),ct=g(/^data-[\-\w.\u00B7-\uFFFF]+$/),st=g(/^aria-[\-\w]+$/),ut=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ft=g(/^(?:\w+script|data):/i),pt=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),mt=g(/^html$/i),dt=g(/^[a-z][.\w]*(-[.\w]+)+$/i),ht=g(/<[/\w!]/g),yt=g(/<[/\w]/g),gt=g(/<\/no(script|embed|frames)/i),bt=g(/\/>/i),Tt=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],St=y(Y({},Tt)),vt=function(){const t={};return A(Tt,e=>{t[e]=g(new RegExp("</"+e+"(?=[\\t\\n\\f\\r />])","i"))}),y(t)}(),At=function(){return"undefined"==typeof window?null:window},wt=function(t,e,n,r){return j(t,e)&&O(t[e])?Y(r.base?q(r.base):{},t[e],r.transform):n},xt=function(t,e,n){const r=j(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]:At();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,p=e.trustedTypes,m=c.prototype,d=$(m,"cloneNode"),h=$(m,"remove"),T=$(m,"removeAttributeNode"),S=$(m,"nextSibling"),v=$(m,"childNodes"),B=$(m,"parentNode"),W=$(m,"shadowRoot"),G=$(m,"attributes"),Tt=l&&l.prototype?$(l.prototype,"nodeType"):null,_t=l&&l.prototype?$(l.prototype,"nodeName"):null,Et=l&&l.prototype?$(l.prototype,"ownerDocument"):null,Ot=function(t){return Tt?Tt(t):t.nodeType},kt=function(t){return _t?_t(t):t.nodeName};if("function"==typeof a){const t=r.createElement("template");t.content&&t.content.ownerDocument&&(r=t.content.ownerDocument)}let Nt,Dt,Ct="",Rt=!1,It=0;const Lt=function(){if(It>0)throw H('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.')},Pt=function(t){Lt(),It++;try{return Nt.createHTML(t)}finally{It--}},zt=r,Mt=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 f&&"function"==typeof B&&Mt&&void 0!==Mt.createHTMLDocument;const Wt=it,Yt=at,Gt=lt,qt=ct,$t=st,Vt=ft,Xt=pt,Kt=dt;let Zt=ut,Jt=null;const Qt=Y({},[...V,...X,...K,...J,...tt]);let te=null;const ee=Y({},[...et,...nt,...rt,...ot]);let ne=Object.seal(b(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(b(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,Te=!1,Se=!0,ve=!1;const Ae="user-content-";let we=!0,xe=!1,_e={},Ee=null;const Oe=Y({},["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 ke=null;const Ne=Y({},["audio","video","img","source","image","track"]);let De=null;const Ce=Y({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Re="http://www.w3.org/1998/Math/MathML",Ie="http://www.w3.org/2000/svg",Le="http://www.w3.org/1999/xhtml";let Pe=Le,ze=!1,Me=null;const je=Y({},[Re,Ie,Le],N),Ue=y(["mi","mo","mn","ms","mtext"]);let Fe=Y({},Ue);const He=y(["annotation-xml"]);let Be=Y({},He);const We=Y({},["title","style","font","a","script"]);let Ye=null;const Ge=["application/xhtml+xml","text/html"];let qe=null,$e=null;const Ve=r.createElement("form"),Xe=function(t){return t instanceof RegExp||t instanceof Function},Ke=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if($e&&$e===t)return;t&&"object"==typeof t||(t={}),t=q(t),Ye=-1===Ge.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,qe="application/xhtml+xml"===Ye?N:k,Jt=wt(t,"ALLOWED_TAGS",Qt,{transform:qe}),te=wt(t,"ALLOWED_ATTR",ee,{transform:qe}),Me=wt(t,"ALLOWED_NAMESPACES",je,{transform:N}),De=wt(t,"ADD_URI_SAFE_ATTR",Ce,{transform:qe,base:Ce}),ke=wt(t,"ADD_DATA_URI_TAGS",Ne,{transform:qe,base:Ne}),Ee=wt(t,"FORBID_CONTENTS",Oe,{transform:qe}),re=wt(t,"FORBID_TAGS",q({}),{transform:qe}),oe=wt(t,"FORBID_ATTR",q({}),{transform:qe}),_e=!!j(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,Te=t.RETURN_TRUSTED_TYPE||!1,ye=t.FORCE_BODY||!1,Se=!1!==t.SANITIZE_DOM,ve=t.SANITIZE_NAMED_PROPS||!1,we=!1!==t.KEEP_CONTENT,xe=t.IN_PLACE||!1,Zt=function(t){try{return F(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:ut,Pe="string"==typeof t.NAMESPACE?t.NAMESPACE:Le,Fe=xt(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>Y({},Ue)),Be=xt(t,"HTML_INTEGRATION_POINTS",()=>Y({},He));const e=xt(t,"CUSTOM_ELEMENT_HANDLING",()=>b(null));if(ne=b(null),j(e,"tagNameCheck")&&Xe(e.tagNameCheck)&&(ne.tagNameCheck=e.tagNameCheck),j(e,"attributeNameCheck")&&Xe(e.attributeNameCheck)&&(ne.attributeNameCheck=e.attributeNameCheck),j(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&(ne.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),g(ne),ue&&(le=!1),be&&(ge=!0),_e&&(Jt=Y({},tt),te=b(null),!0===_e.html&&(Y(Jt,V),Y(te,et)),!0===_e.svg&&(Y(Jt,X),Y(te,nt),Y(te,ot)),!0===_e.svgFilters&&(Y(Jt,K),Y(te,nt),Y(te,ot)),!0===_e.mathMl&&(Y(Jt,J),Y(te,rt),Y(te,ot))),ie.tagCheck=null,ie.attributeCheck=null,j(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?ie.tagCheck=t.ADD_TAGS:O(t.ADD_TAGS)&&(Jt===Qt&&(Jt=q(Jt)),Y(Jt,t.ADD_TAGS,qe))),j(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?ie.attributeCheck=t.ADD_ATTR:O(t.ADD_ATTR)&&(te===ee&&(te=q(te)),Y(te,t.ADD_ATTR,qe))),j(t,"ADD_FORBID_CONTENTS")&&O(t.ADD_FORBID_CONTENTS)&&(Ee===Oe&&(Ee=q(Ee)),Y(Ee,t.ADD_FORBID_CONTENTS,qe)),we&&(Jt["#text"]=!0),pe&&Y(Jt,["html","head","body"]),Jt.table&&(Y(Jt,["tbody"]),delete re.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const e=Nt;Nt=t.TRUSTED_TYPES_POLICY;try{Ct=Pt("")}catch(t){throw Nt=e,t}}else null===t.TRUSTED_TYPES_POLICY?(Nt=void 0,Ct=""):(void 0===Nt&&(Rt||(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,i),Rt=!0),Nt=Dt),Nt&&"string"==typeof Ct&&(Ct=Pt("")));y&&y(t),$e=t},Ze=Y({},[...X,...K,...Z]),Je=Y({},[...J,...Q]),Qe=function(t){_(n.removed,{element:t});try{B(t).removeChild(t)}catch(e){if(h(t),!B(t))throw H("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=v(t);if(e){const t=[];A(e,e=>{_(t,e)}),A(t,t=>{try{h(t)}catch(t){}})}const n=G(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?T(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=G(t);if(e)for(let n=e.length-1;n>=0;--n){const r=e[n],o=r&&r.name;"string"!=typeof o||te[qe(o)]||tn(t,r,o)}},on=function(t){const e=[t];for(;e.length>0;){const t=e.pop();1===Ot(t)&&rn(t);const n=v(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=D(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===Ye&&Pe===Le&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const o=Nt?Pt(t):t;if(Pe===Le)try{e=(new u).parseFromString(o,Ye)}catch(t){}if(!e||!e.documentElement){e=Mt.createDocument(Pe,"template",null);try{e.documentElement.innerHTML=ze?Ct:o}catch(t){}}const i=e.body||e.documentElement;return t&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),Pe===Le?Ft.call(e,pe?"html":"body")[0]:pe?e.documentElement:i},cn=function(t){const e=Et?Et(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,Gt," ")},un=function(t){var e;t.normalize();const n=Et?Et(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&&A(i,t=>{pn(t.content)&&un(t.content)})},fn=function(t){const e=_t?_t(t):null;return"string"==typeof e&&"form"===qe(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==G(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!==Tt(t)||t.childNodes!==v(t))},pn=function(t){if(!Tt||"object"!=typeof t||null===t)return!1;try{return 11===Tt(t)}catch(t){return!1}},mn=function(t){if(!Tt||"object"!=typeof t||null===t)return!1;try{return"number"==typeof Tt(t)}catch(t){return!1}};function dn(t,e,r){0!==t.length&&A(t,t=>{t.call(n,e,r,$e)})}const hn=function(t,e){if(t instanceof RegExp)return F(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===B(t)&&(xe&&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=qe(kt(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)&&F(ht,t.textContent)&&F(ht,t.innerHTML))||!!(fe&&t.namespaceURI===Le&&St[e]&&(mn(t.firstElementChild)||"string"==typeof t.textContent&&F(vt[e],t.textContent)))||7===t.nodeType||!(!fe||8!==t.nodeType||!F(yt,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]&&vn(e)&&hn(ne.tagNameCheck,e))return!1;if(we&&!Ee[e]){const e=B(t),r=v(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,S(t))}}return Qe(t),!0}(t,r,e);return!(!1!==n||(dn(Bt.afterSanitizeElements,t,null),!gn(t,e)))||n}if(1===Ot(t)&&!function(t){let e=B(t);e&&e.tagName||(e={namespaceURI:Pe,tagName:"template"});const n=k(t.tagName),r=k(e.tagName);return!!Me[t.namespaceURI]&&(t.namespaceURI===Ie?function(t,e,n){return e.namespaceURI===Le?"svg"===t:e.namespaceURI===Re?"svg"===t&&("annotation-xml"===n||Fe[n]):Boolean(Ze[t])}(n,e,r):t.namespaceURI===Re?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===Re&&!Fe[n])&&!Je[t]&&(We[t]||!Ze[t])}(n,e,r):!("application/xhtml+xml"!==Ye||!Me[t.namespaceURI]))}(t))return Qe(t),!0;if(("noscript"===r||"noembed"===r||"noframes"===r)&&F(gt,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)},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 Ve))return!1;const o=te[e]||ie.attributeCheck instanceof Function&&ie.attributeCheck(e,t);return!(!le||!F(qt,e))||!(!ae||!F($t,e))||(o?!(!De[e]&&!F(Zt,C(n,Xt,""))&&("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==R(n,"data:")||!ke[t])&&(!ce||F(Vt,C(n,Xt,"")))&&n):vn(t)&&hn(ne.tagNameCheck,t)&&hn(ne.attributeNameCheck,e,t)||"is"===e&&ne.allowCustomizedBuiltInElements&&hn(ne.tagNameCheck,n))},Sn=Y({},["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[k(t)]&&F(Kt,t)},An=function(t,e,n,r){if(Nt&&"object"==typeof p&&"function"==typeof p.getAttributeType&&!n)switch(p.getAttributeType(t,e)){case"TrustedHTML":return Pt(r);case"TrustedScriptURL":return function(t){Lt(),It++;try{return Nt.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}},xn=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=qe(t.nodeName);for(;i--;){const e=r[i],l=e.name,c=e.namespaceURI,s=e.value,u=qe(l),f=s;let p="value"===l?f:I(f),m=!1;o.attrName=u,o.attrValue=p,o.keepAttr=!0,o.forceKeepAttr=void 0,dn(Bt.uponSanitizeAttribute,t,o),p=o.attrValue,!ve||"id"!==u&&"name"!==u||0===R(p,Ae)||(nn(l,t,e),p=Ae+p,m=!0),fe&&F(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,p)||"attributename"===u&&D(p,"href")?nn(l,t,e):o.forceKeepAttr||(!o.keepAttr||!se&&F(bt,p)?nn(l,t,e):(ue&&(p=sn(p)),Tn(a,u,p)?(p=An(a,u,c,p),p!==f&&wn(t,l,c,p)&&m&&x(n.removed)):nn(l,t,e)))}dn(Bt.afterSanitizeAttributes,t,null),gn(t,e)},_n=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),xn(e,t),pn(e.content)&&_n(e.content),1===Ot(e)){const t=W(e);pn(t)&&(En(t),_n(t))}dn(Bt.afterSanitizeShadowDOM,t,null)},En=function(t){const e=[{node:t,shadow:null}];for(;e.length>0;){const t=e.pop();if(t.shadow){_n(t.shadow);continue}const n=t.node,r=1===Ot(n),o=v(n);if(o)for(let t=o.length-1;t>=0;--t)e.push({node:o[t],shadow:null});if(r){const t=_t?_t(n):null;if("string"==typeof t&&"template"===qe(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 L(t);case"boolean":return P(t);case"bigint":return z?z(t):"0";case"symbol":return M?M(t):"Symbol()";case"undefined":default:return U(t);case"function":case"object":{if(null===t)return U(t);const e=t,n=$(e,"toString");if("function"==typeof n){const t=n(e);return"string"==typeof t?t:U(t)}return U(t)}}}(t)))throw H("dirty is not a string, aborting");if(!n.isSupported)return t;me?(Jt=de,te=he):Ke(e),(Bt.uponSanitizeElement.length>0||Bt.uponSanitizeAttribute.length>0)&&(Jt=q(Jt)),Bt.uponSanitizeAttribute.length>0&&(te=q(te)),n.removed=[];const c=xe&&"string"!=typeof t&&mn(t);if(c){!function(t){if(!fe)return;const e=[t];for(;e.length>0;){const t=e.pop(),n=Ot(t);if(7===n||8===n&&F(yt,t.data)){try{h(t)}catch(t){}continue}if(1===n){const e=t,n=qe(kt(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=v(t);if(r)for(let t=r.length-1;t>=0;--t)e.push(r[t])}}(t);const e=kt(t);if("string"==typeof e){const n=qe(e);if(!Jt[n]||re[n])throw en(t),H("root node is forbidden and cannot be sanitized in-place")}if(fn(t))throw en(t),H("root node is clobbered and cannot be sanitized in-place");try{En(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),En(r);else{if(!ge&&!ue&&!pe&&-1===t.indexOf("<"))return Nt&&Te?Pt(t):t;if(r=ln(t),!r)return ge?null:Te?Ct:""}r&&ye&&Qe(r.firstChild);const s=c?t:r;try{const t=cn(s);for(;a=t.nextNode();)bn(a,s),xn(a,s),pn(a.content)&&_n(a.content)}catch(e){throw c&&(en(t),A(n.removed,t=>{t.element&&on(t.element)})),e}if(c){let e=!1;if(A(n.removed,n=>{n.element&&(n.element===t&&(e=!0),on(n.element))}),e)throw H("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&&F(mt,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),ue&&(u=sn(u)),Nt&&Te?Pt(u):u},n.setConfig=function(){Ke(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),me=!0,de=Jt,he=te},n.clearConfig=function(){$e=null,me=!1,de=null,he=null,Nt=Dt,Ct=""},n.isValidAttribute=function(t,e,n){$e||Ke({});const r=qe(t),o=qe(e);return Tn(r,o,n)},n.addHook=function(t,e){"function"==typeof e&&j(Bt,t)&&_(Bt[t],e)},n.removeHook=function(t,e){if(j(Bt,t)){if(void 0!==e){const n=w(Bt[t],e);return-1===n?void 0:E(Bt[t],n,1)[0]}return x(Bt[t])}},n.removeHooks=function(t){j(Bt,t)&&(Bt[t]=[])},n.removeAllHooks=function(){Bt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();function Et({label:t,Type:e="Primary",Variant:n="Default",Outline:o=!1,State:i="Default",href:a="#",onClick:l,className:c,...s}){const u="Disabled"===i,f=["mg-button","CTA"===n&&"mg-button-cta","mg-button-"+("Secondary"===e?"secondary":"primary"),o&&"mg-button-outline",u&&"disabled",c].filter(Boolean).join(" ");return(0,r().jsx)("a",{className:f,...s,...u?{"aria-disabled":"true",tabIndex:-1}:{href:a,onClick:l},children:t})}function Ot(t){return"string"==typeof t&&""!==t.trim()?t:null}function kt({title:t,link:e=null,target:n,rel:o}){const i=t?.trim();return(0,r().jsx)("header",{className:"mg-card__title",children:e?(0,r().jsx)("a",{href:e,target:n,rel:o,children:i}):i})}function Nt({label:t,link:e=null}){return t?e?(0,r().jsx)("a",{href:e,className:"mg-card__label mg-card__label--active",children:t}):(0,r().jsx)("span",{className:"mg-card__label",children:t}):null}o(),Et.propTypes={label:a().string.isRequired,Type:a().oneOf(["Primary","Secondary"]),Variant:a().oneOf(["Default","CTA"]),Outline:a().bool,State:a().oneOf(["Default","Disabled"]),href:a().string,onClick:a().func,className:a().string},kt.propTypes={title:a().string,link:a().string,target:a().string,rel:a().string},Nt.propTypes={label:a().string,link:a().string};const Dt=(...t)=>t.filter(Boolean).length>0?t.filter(Boolean).join(" "):null;function Ct({data:t,variant:e="primary",className:n}){const o=e&&"primary"!==e?`mg-card--${e}`:null;return(0,r().jsx)(r().Fragment,{children:t.map((t,e)=>{const i=Ot(t.link),a=Ot(t.buttonLink)??i;return(0,r().jsxs)("article",{className:Dt("mg-card","mg-card__hc",o,!i&&"mg-card--no-link",n),children:[t.imgback&&(0,r().jsx)("div",{className:"mg-card__visual",children:(0,r().jsx)("img",{src:t.imgback,alt:t.imgalt,className:"mg-card__image"})}),(0,r().jsxs)("div",{className:"mg-card__content",children:[(t.label1||t.label2)&&(0,r().jsxs)("div",{className:"mg-card__meta",children:[(0,r().jsx)(Nt,{label:t.label1,link:i}),(0,r().jsx)(Nt,{label:t.label2,link:i})]}),(0,r().jsx)(kt,{title:t.title,link:i,target:t.target,rel:t.rel}),t.summaryText&&(0,r().jsx)("p",{className:"mg-card__summary",dangerouslySetInnerHTML:{__html:_t.sanitize(t.summaryText)}}),t.button&&a&&(0,r().jsx)(Et,{Type:"Primary",Variant:"CTA",label:t.button,href:a,target:t.target,rel:t.rel})]})]},e)})})}Ct.propTypes={data:a().array.isRequired,variant:a().oneOf(["primary","secondary","tertiary","quaternary"]),className:a().string};export{Ct as HorizontalCard};
@@ -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