@undrr/undrr-mangrove 2.0.0-alpha.4 → 2.0.0-beta.3

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 (122) hide show
  1. package/README.md +51 -306
  2. package/components/BookCard.js +2 -2
  3. package/components/BookCard.js.LICENSE.txt +0 -2
  4. package/components/Breadcrumbs.js +2 -2
  5. package/components/Checkbox.js +2 -2
  6. package/components/Chips.js +2 -2
  7. package/components/CtaButton.js +2 -2
  8. package/components/EmbedContainer.js +2 -2
  9. package/components/Footer.js +2 -2
  10. package/components/FormAction.js +2 -2
  11. package/components/FormErrorSummary.js +2 -2
  12. package/components/FormGroup.js +2 -2
  13. package/components/FullWidth.js +2 -2
  14. package/components/Gallery.js +2 -2
  15. package/components/Hero.js +2 -2
  16. package/components/HighlightBox.js +2 -2
  17. package/components/HorizontalBookCard.js +2 -2
  18. package/components/HorizontalBookCard.js.LICENSE.txt +1 -1
  19. package/components/HorizontalCard.js +2 -2
  20. package/components/HorizontalCard.js.LICENSE.txt +1 -1
  21. package/components/IconCard.js +2 -2
  22. package/components/IconCard.js.LICENSE.txt +1 -1
  23. package/components/Loader.js +2 -2
  24. package/components/MegaMenu.js +2 -2
  25. package/components/PageHeader.js +2 -2
  26. package/components/Pager.js +2 -2
  27. package/components/QuoteHighlight.js +2 -2
  28. package/components/Radio.js +2 -2
  29. package/components/ScrollContainer.js +2 -2
  30. package/components/Select.js +2 -2
  31. package/components/ShareButtons.js +2 -2
  32. package/components/ShowMore.js +2 -2
  33. package/components/SkipLink.js +6 -0
  34. package/components/SkipLink.js.LICENSE.txt +9 -0
  35. package/components/StatsCard.js +2 -2
  36. package/components/StatsCard.js.LICENSE.txt +1 -1
  37. package/components/SyndicationSearchWidget.js +2 -2
  38. package/components/Tab.js +2 -2
  39. package/components/TextCta.js +2 -2
  40. package/components/TextCta.js.LICENSE.txt +1 -1
  41. package/components/TextInput.js +2 -2
  42. package/components/Textarea.js +2 -2
  43. package/components/UserFeedback.js +2 -2
  44. package/components/VerticalCard.js +2 -2
  45. package/components/VerticalCard.js.LICENSE.txt +1 -1
  46. package/components/assets/a4133008bd4d2c4a42e5ca0c6db8fe9b.svg +22 -0
  47. package/components/assets/f1605b17c97ebdc56cfaa75033e7283d.svg +21 -0
  48. package/components/hydrate.js +1 -1
  49. package/css/style-all.css +51 -45
  50. package/css/style-all.css.map +1 -1
  51. package/css/style-delta.css +50 -44
  52. package/css/style-delta.css.map +1 -1
  53. package/css/style-gutenberg.css +23 -24
  54. package/css/style-gutenberg.css.map +1 -1
  55. package/css/style-irp.css +51 -45
  56. package/css/style-irp.css.map +1 -1
  57. package/css/style-mcr.css +51 -45
  58. package/css/style-mcr.css.map +1 -1
  59. package/css/style-preventionweb.css +51 -45
  60. package/css/style-preventionweb.css.map +1 -1
  61. package/css/style.css +50 -44
  62. package/css/style.css.map +1 -1
  63. package/error-pages/401.html +2 -2
  64. package/error-pages/403.html +2 -2
  65. package/error-pages/404.html +2 -2
  66. package/error-pages/429.html +2 -2
  67. package/error-pages/500.html +2 -2
  68. package/error-pages/502.html +2 -2
  69. package/error-pages/503.html +2 -2
  70. package/error-pages/504.html +2 -2
  71. package/error-pages/5xx.html +2 -2
  72. package/error-pages/challenge.html +2 -2
  73. package/error-pages/managed-challenge.html +2 -2
  74. package/fonts/mangrove-icon-set/config.json +2 -4
  75. package/js/README.md +12 -12
  76. package/js/__tests__/show-more.test.js +6 -2
  77. package/js/__tests__/table-of-contents.test.js +1 -3
  78. package/js/on-this-page-nav.js +117 -73
  79. package/js/preview-access.js +35 -31
  80. package/js/show-more.js +6 -2
  81. package/package.json +9 -9
  82. package/scss/Atom/BaseTypography/Code/code.scss +16 -8
  83. package/scss/Atom/Icons/_icon-definitions.scss +77 -1
  84. package/scss/Atom/Icons/icons.scss +110 -38
  85. package/scss/Atom/Images/AuthorImage/author-image.scss +197 -51
  86. package/scss/Atom/Layout/Grid/grid.scss +14 -8
  87. package/scss/Atom/Logo/logo.scss +37 -0
  88. package/scss/Atom/Table/table.scss +20 -21
  89. package/scss/Atom/Tag/tag.scss +99 -86
  90. package/scss/Components/Breadcrumbs/breadcrumbs.scss +49 -86
  91. package/scss/Components/Buttons/CtaButton/cta-button.scss +23 -3
  92. package/scss/Components/Buttons/ShareButtons/share-buttons.scss +51 -58
  93. package/scss/Components/Cards/Card/card.scss +143 -2
  94. package/scss/Components/Cards/StatsCard/stats-card.scss +1 -1
  95. package/scss/Components/ErrorPages/error-pages.scss +1 -1
  96. package/scss/Components/Gallery/gallery.scss +2 -1
  97. package/scss/Components/Hero/hero.scss +30 -80
  98. package/scss/Components/MegaMenu/mega-menu.scss +77 -10
  99. package/scss/Components/OnThisPageNav/on-this-page-nav.scss +33 -8
  100. package/scss/Components/PageHeader/page-header.scss +179 -52
  101. package/scss/Components/Pager/pager.scss +4 -3
  102. package/scss/Components/ScrollContainer/scroll-container.scss +35 -8
  103. package/scss/Components/SyndicationSearchWidget/_deprecated-teaser-hide.scss +21 -7
  104. package/scss/Components/SyndicationSearchWidget/syndication-search-widget.scss +48 -17
  105. package/scss/Components/TableOfContents/table-of-contents.scss +34 -12
  106. package/scss/Components/TextCta/text-cta.scss +94 -33
  107. package/scss/Patterns/HubHeader/hub-header.scss +406 -0
  108. package/scss/Patterns/_shared/pattern-demo.scss +47 -0
  109. package/scss/Utilities/FullWidth/full-width.scss +10 -1
  110. package/scss/Utilities/PagePatterns/page-patterns.scss +42 -0
  111. package/scss/Utilities/SkipLink/skip-link.scss +40 -0
  112. package/scss/assets/fonts/noto-kufi-arabic/noto-kufi-arabic.scss +52 -18
  113. package/scss/assets/fonts/noto-sans-arabic/noto-sans-arabic.scss +52 -18
  114. package/scss/assets/scss/_components.scss +4 -0
  115. package/scss/assets/scss/_fonts.scss +2 -2
  116. package/scss/assets/scss/_mixins.scss +4 -3
  117. package/scss/assets/scss/_utility.scss +348 -115
  118. package/scss/assets/scss/_variables.scss +16 -15
  119. package/scss/assets/scss/generated/_tokens-irp.scss +9 -0
  120. package/scss/assets/scss/generated/_tokens-mangrove.scss +1 -1
  121. package/scss/assets/scss/generated/_tokens-mcr.scss +8 -0
  122. package/scss/assets/scss/generated/_tokens-preventionweb.scss +9 -0
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * This is a UNDRR Mangrove component: https://github.com/unisdr/undrr-mangrove?tab=readme-ov-file
3
- * Compiled on: 2026-09-09T07:00:30.610Z
3
+ * Compiled on: 2026-09-15T18:17:37.724Z
4
4
  */
5
5
  /*! For license information please see StatsCard.js.LICENSE.txt */
6
- import"react";var e={7261(e,t,n){var r=n(654);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}},8433(e,t,n){e.exports=n(7261)()},654(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9755(e,t){var n=Symbol.for("react.transitional.element");function r(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}}Symbol.for("react.fragment"),t.jsx=r,t.jsxs=r},2783(e,t,n){e.exports=n(9755)}};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.d=(e,t)=>{if(Array.isArray(t))for(var r=0;r<t.length;){var o=t[r++],a=t[r++];n.o(e,o)?0===a&&r++:0===a?Object.defineProperty(e,o,{enumerable:!0,value:t[r++]}):Object.defineProperty(e,o,{enumerable:!0,get:a})}else for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r=n(8433),o=n.n(r),a=n(2783);const i=({type:e=2,children:t,className:n,tabIndex:r,...o})=>{const i=`h${Math.min(Math.max(parseInt(e,10)||2,1),6)}`;return(0,a.jsx)(i,{className:n,tabIndex:r,...o,children:t})};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 s(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=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t);else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)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 c=Object.entries,u=Object.setPrototypeOf,f=Object.isFrozen,m=Object.getPrototypeOf,p=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),N=H(Array.prototype.lastIndexOf),E=H(Array.prototype.pop),_=H(Array.prototype.push),A=H(Array.prototype.splice),v=Array.isArray,O=H(String.prototype.toLowerCase),w=H(String.prototype.toString),x=H(String.prototype.match),k=H(String.prototype.replace),R=H(String.prototype.indexOf),I=H(String.prototype.trim),D=H(Number.prototype.toString),C=H(Boolean.prototype.toString),L="undefined"==typeof BigInt?null:H(BigInt.prototype.toString),M="undefined"==typeof Symbol?null:H(Symbol.prototype.toString),P=H(Object.prototype.hasOwnProperty),z=H(Object.prototype.toString),U=H(RegExp.prototype.test),j=(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]:O;if(u&&u(e,null),!v(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++)P(e,t)||(e[t]=null);return e}function G(e){const t=g(null);for(const r of c(e)){var n=s(r,2);const o=n[0],a=n[1];P(e,o)&&(v(a)?t[o]=W(a):a&&"object"==typeof a&&a.constructor===Object?t[o]=G(a):t[o]=a)}return t}function Y(e,t){for(;null!==e;){const n=p(e,t);if(n){if(n.get)return H(n.get);if("function"==typeof n.value)return H(n.value)}e=m(e)}return function(){return null}}const $=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"]),q=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"]),X=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"]),K=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"]),V=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","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","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]+$/),se=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ce=h(/^(?:\w+script|data):/i),ue=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fe=h(/^html$/i),me=h(/^[a-z][.\w]*(-[.\w]+)+$/i),pe=h(/<[/\w!]/g),de=h(/<[/\w]/g),he=h(/<\/no(script|embed|frames)/i),ge=h(/\/>/i),ye=function(){return"undefined"==typeof window?null:window},be=function(e,t,n,r){return P(e,t)&&v(e[t])?B(r.base?G(r.base):{},e[t],r.transform):n};var Te=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ye();const n=t=>e(t);if(n.version="3.4.12",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,s=t.Element,u=t.NodeFilter;void 0===t.NamedNodeMap&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const f=t.DOMParser,m=t.trustedTypes,p=s.prototype,y=Y(p,"cloneNode"),b=Y(p,"remove"),T=Y(p,"nextSibling"),F=Y(p,"childNodes"),H=Y(p,"parentNode"),W=Y(p,"shadowRoot"),Te=Y(p,"attributes"),Se=l&&l.prototype?Y(l.prototype,"nodeType"):null,Ne=l&&l.prototype?Y(l.prototype,"nodeName"):null;if("function"==typeof i){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let Ee,_e,Ae="",ve=!1,Oe=0;const we=function(){if(Oe>0)throw j('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.')},xe=function(e){we(),Oe++;try{return Ee.createHTML(e)}finally{Oe--}},ke=r,Re=ke.implementation,Ie=ke.createNodeIterator,De=ke.createDocumentFragment,Ce=ke.getElementsByTagName,Le=o.importNode;let Me={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof c&&"function"==typeof H&&Re&&void 0!==Re.createHTMLDocument;const Pe=re,ze=oe,Ue=ae,je=ie,Fe=le,He=ce,Be=ue,We=me;let Ge=se,Ye=null;const $e=B({},[...$,...q,...X,...V,...J]);let qe=null;const Xe=B({},[...Q,...ee,...te,...ne]);let Ke=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}})),Ve=null,Ze=null;const Je=Object.seal(g(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Qe=!0,et=!0,tt=!1,nt=!0,rt=!1,ot=!0,at=!1,it=!1,lt=null,st=null,ct=!1,ut=!1,ft=!1,mt=!1,pt=!0,dt=!1;const ht="user-content-";let gt=!0,yt=!1,bt={},Tt=null;const St=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 Et=B({},["audio","video","img","source","image","track"]);let _t=null;const At=B({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),vt="http://www.w3.org/1998/Math/MathML",Ot="http://www.w3.org/2000/svg",wt="http://www.w3.org/1999/xhtml";let xt=wt,kt=!1,Rt=null;const It=B({},[vt,Ot,wt],w),Dt=d(["mi","mo","mn","ms","mtext"]);let Ct=B({},Dt);const Lt=d(["annotation-xml"]);let Mt=B({},Lt);const Pt=B({},["title","style","font","a","script"]);let zt=null;const Ut=["application/xhtml+xml","text/html"];let jt=null,Ft=null;const Ht=r.createElement("form"),Bt=function(e){return e instanceof RegExp||e instanceof Function},Wt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Ft&&Ft===e)return;e&&"object"==typeof e||(e={}),e=G(e),zt=-1===Ut.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,jt="application/xhtml+xml"===zt?w:O,Ye=be(e,"ALLOWED_TAGS",$e,{transform:jt}),qe=be(e,"ALLOWED_ATTR",Xe,{transform:jt}),Rt=be(e,"ALLOWED_NAMESPACES",It,{transform:w}),_t=be(e,"ADD_URI_SAFE_ATTR",At,{transform:jt,base:At}),Nt=be(e,"ADD_DATA_URI_TAGS",Et,{transform:jt,base:Et}),Tt=be(e,"FORBID_CONTENTS",St,{transform:jt}),Ve=be(e,"FORBID_TAGS",G({}),{transform:jt}),Ze=be(e,"FORBID_ATTR",G({}),{transform:jt}),bt=!!P(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?G(e.USE_PROFILES):e.USE_PROFILES),Qe=!1!==e.ALLOW_ARIA_ATTR,et=!1!==e.ALLOW_DATA_ATTR,tt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,nt=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,rt=e.SAFE_FOR_TEMPLATES||!1,ot=!1!==e.SAFE_FOR_XML,at=e.WHOLE_DOCUMENT||!1,ut=e.RETURN_DOM||!1,ft=e.RETURN_DOM_FRAGMENT||!1,mt=e.RETURN_TRUSTED_TYPE||!1,ct=e.FORCE_BODY||!1,pt=!1!==e.SANITIZE_DOM,dt=e.SANITIZE_NAMED_PROPS||!1,gt=!1!==e.KEEP_CONTENT,yt=e.IN_PLACE||!1,Ge=function(e){try{return U(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:se,xt="string"==typeof e.NAMESPACE?e.NAMESPACE:wt,Ct=P(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?G(e.MATHML_TEXT_INTEGRATION_POINTS):B({},Dt),Mt=P(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?G(e.HTML_INTEGRATION_POINTS):B({},Lt);const t=P(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?G(e.CUSTOM_ELEMENT_HANDLING):g(null);if(Ke=g(null),P(t,"tagNameCheck")&&Bt(t.tagNameCheck)&&(Ke.tagNameCheck=t.tagNameCheck),P(t,"attributeNameCheck")&&Bt(t.attributeNameCheck)&&(Ke.attributeNameCheck=t.attributeNameCheck),P(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(Ke.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),h(Ke),rt&&(et=!1),ft&&(ut=!0),bt&&(Ye=B({},J),qe=g(null),!0===bt.html&&(B(Ye,$),B(qe,Q)),!0===bt.svg&&(B(Ye,q),B(qe,ee),B(qe,ne)),!0===bt.svgFilters&&(B(Ye,X),B(qe,ee),B(qe,ne)),!0===bt.mathMl&&(B(Ye,V),B(qe,te),B(qe,ne))),Je.tagCheck=null,Je.attributeCheck=null,P(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?Je.tagCheck=e.ADD_TAGS:v(e.ADD_TAGS)&&(Ye===$e&&(Ye=G(Ye)),B(Ye,e.ADD_TAGS,jt))),P(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?Je.attributeCheck=e.ADD_ATTR:v(e.ADD_ATTR)&&(qe===Xe&&(qe=G(qe)),B(qe,e.ADD_ATTR,jt))),P(e,"ADD_URI_SAFE_ATTR")&&v(e.ADD_URI_SAFE_ATTR)&&B(_t,e.ADD_URI_SAFE_ATTR,jt),P(e,"FORBID_CONTENTS")&&v(e.FORBID_CONTENTS)&&(Tt===St&&(Tt=G(Tt)),B(Tt,e.FORBID_CONTENTS,jt)),P(e,"ADD_FORBID_CONTENTS")&&v(e.ADD_FORBID_CONTENTS)&&(Tt===St&&(Tt=G(Tt)),B(Tt,e.ADD_FORBID_CONTENTS,jt)),gt&&(Ye["#text"]=!0),at&&B(Ye,["html","head","body"]),Ye.table&&(B(Ye,["tbody"]),delete Ve.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw j('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw j('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=Ee;Ee=e.TRUSTED_TYPES_POLICY;try{Ae=xe("")}catch(e){throw Ee=t,e}}else null===e.TRUSTED_TYPES_POLICY?(Ee=void 0,Ae=""):(void 0===Ee&&(ve||(_e=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}}(m,a),ve=!0),Ee=_e),Ee&&"string"==typeof Ae&&(Ae=xe("")));d&&d(e),Ft=e},Gt=B({},[...q,...X,...K]),Yt=B({},[...V,...Z]),$t=function(e){_(n.removed,{element:e});try{H(e).removeChild(e)}catch(t){if(b(e),!H(e))throw j("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},qt=function(e){Vt(e);const t=F(e);if(t){const e=[];S(t,t=>{_(e,t)}),S(e,e=>{try{b(e)}catch(e){}})}const n=Te(e);if(n)for(let t=n.length-1;t>=0;--t){const r=n[t],o=r&&r.name;if("string"==typeof o)try{e.removeAttribute(o)}catch(e){}}},Xt=function(e,t){try{_(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){_(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ut||ft)try{$t(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Kt=function(e){const t=Te(e);if(t)for(let n=t.length-1;n>=0;--n){const r=t[n],o=r&&r.name;if("string"==typeof o&&!qe[jt(o)])try{e.removeAttribute(o)}catch(e){}}},Vt=function(e){const t=[e];for(;t.length>0;){const e=t.pop();1===(Se?Se(e):e.nodeType)&&Kt(e);const n=F(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},Zt=function(e){let t=null,n=null;if(ct)e="<remove></remove>"+e;else{const t=x(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===zt&&xt===wt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=Ee?xe(e):e;if(xt===wt)try{t=(new f).parseFromString(o,zt)}catch(e){}if(!t||!t.documentElement){t=Re.createDocument(xt,"template",null);try{t.documentElement.innerHTML=kt?Ae:o}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),xt===wt?Ce.call(t,at?"html":"body")[0]:at?t.documentElement:a},Jt=function(e){return Ie.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Qt=function(e){return e=k(e,Pe," "),e=k(e,ze," "),k(e,Ue," ")},en=function(e){var t;e.normalize();const n=Ie.call(e.ownerDocument||e,e,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let r=n.nextNode();for(;r;)r.data=Qt(r.data),r=n.nextNode();const o=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");o&&S(o,e=>{nn(e.content)&&en(e.content)})},tn=function(e){const t=Ne?Ne(e):null;return"string"==typeof t&&"form"===jt(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==Te(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==Se(e)||e.childNodes!==F(e))},nn=function(e){if(!Se||"object"!=typeof e||null===e)return!1;try{return 11===Se(e)}catch(e){return!1}},rn=function(e){if(!Se||"object"!=typeof e||null===e)return!1;try{return"number"==typeof Se(e)}catch(e){return!1}};function on(e,t,r){0!==e.length&&S(e,e=>{e.call(n,t,r,Ft)})}const an=function(e,t){if(on(Me.beforeSanitizeElements,e,null),e!==t&&null===H(e))return!0;if(tn(e))return $t(e),!0;const r=jt(Ne?Ne(e):e.nodeName);if(on(Me.uponSanitizeElement,e,{tagName:r,allowedTags:Ye}),e!==t&&null===H(e))return!0;if(function(e,t){return!!(ot&&e.hasChildNodes()&&!rn(e.firstElementChild)&&U(pe,e.textContent)&&U(pe,e.innerHTML))||!(!ot||e.namespaceURI!==wt||"style"!==t||!rn(e.firstElementChild))||7===e.nodeType||!(!ot||8!==e.nodeType||!U(de,e.data))}(e,r))return $t(e),!0;if(Ve[r]||!(Je.tagCheck instanceof Function&&Je.tagCheck(r))&&!Ye[r]){const t=function(e,t){if(!Ve[t]&&cn(t)){if(Ke.tagNameCheck instanceof RegExp&&U(Ke.tagNameCheck,t))return!1;if(Ke.tagNameCheck instanceof Function&&Ke.tagNameCheck(t))return!1}if(gt&&!Tt[t]){const t=H(e),n=F(e);if(n&&t)for(let r=n.length-1;r>=0;--r){const o=yt?n[r]:y(n[r],!0);t.insertBefore(o,T(e))}}return $t(e),!0}(e,r);return!1===t&&on(Me.afterSanitizeElements,e,null),t}if(1===(Se?Se(e):e.nodeType)&&!function(e){let t=H(e);t&&t.tagName||(t={namespaceURI:xt,tagName:"template"});const n=O(e.tagName),r=O(t.tagName);return!!Rt[e.namespaceURI]&&(e.namespaceURI===Ot?function(e,t,n){return t.namespaceURI===wt?"svg"===e:t.namespaceURI===vt?"svg"===e&&("annotation-xml"===n||Ct[n]):Boolean(Gt[e])}(n,t,r):e.namespaceURI===vt?function(e,t,n){return t.namespaceURI===wt?"math"===e:t.namespaceURI===Ot?"math"===e&&Mt[n]:Boolean(Yt[e])}(n,t,r):e.namespaceURI===wt?function(e,t,n){return!(t.namespaceURI===Ot&&!Mt[n])&&!(t.namespaceURI===vt&&!Ct[n])&&!Yt[e]&&(Pt[e]||!Gt[e])}(n,t,r):!("application/xhtml+xml"!==zt||!Rt[e.namespaceURI]))}(e))return $t(e),!0;if(("noscript"===r||"noembed"===r||"noframes"===r)&&U(he,e.innerHTML))return $t(e),!0;if(rt&&3===e.nodeType){const t=Qt(e.textContent);e.textContent!==t&&(_(n.removed,{element:e.cloneNode()}),e.textContent=t)}return on(Me.afterSanitizeElements,e,null),!1},ln=function(e,t,n){if(Ze[t])return!1;if(ot&&"patchsrc"===t)return!1;if(ot&&"for"===t&&"label"!==e&&"output"!==e)return!1;if(pt&&("id"===t||"name"===t)&&(n in r||n in Ht))return!1;const o=qe[t]||Je.attributeCheck instanceof Function&&Je.attributeCheck(t,e);if(et&&U(je,t));else if(Qe&&U(Fe,t));else if(o){if(_t[t]);else if(U(Ge,k(n,Be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==R(n,"data:")||!Nt[e])if(tt&&!U(He,k(n,Be,"")));else if(n)return!1}else if(!(cn(e)&&(Ke.tagNameCheck instanceof RegExp&&U(Ke.tagNameCheck,e)||Ke.tagNameCheck instanceof Function&&Ke.tagNameCheck(e))&&(Ke.attributeNameCheck instanceof RegExp&&U(Ke.attributeNameCheck,t)||Ke.attributeNameCheck instanceof Function&&Ke.attributeNameCheck(t,e))||"is"===t&&Ke.allowCustomizedBuiltInElements&&(Ke.tagNameCheck instanceof RegExp&&U(Ke.tagNameCheck,n)||Ke.tagNameCheck instanceof Function&&Ke.tagNameCheck(n))))return!1;return!0},sn=B({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),cn=function(e){return!sn[O(e)]&&U(We,e)},un=function(e,t,n,r){if(Ee&&"object"==typeof m&&"function"==typeof m.getAttributeType&&!n)switch(m.getAttributeType(e,t)){case"TrustedHTML":return xe(r);case"TrustedScriptURL":return function(e){we(),Oe++;try{return Ee.createScriptURL(e)}finally{Oe--}}(r)}return r},fn=function(e,t,r,o){try{r?e.setAttributeNS(r,t,o):e.setAttribute(t,o),tn(e)?$t(e):E(n.removed)}catch(n){Xt(t,e)}},mn=function(e){on(Me.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||tn(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:qe,forceKeepAttr:void 0};let r=t.length;const o=jt(e.nodeName);for(;r--;){const a=t[r],i=a.name,l=a.namespaceURI,s=a.value,c=jt(i),u=s;let f="value"===i?u:I(u);n.attrName=c,n.attrValue=f,n.keepAttr=!0,n.forceKeepAttr=void 0,on(Me.uponSanitizeAttribute,e,n),f=n.attrValue,!dt||"id"!==c&&"name"!==c||0===R(f,ht)||(Xt(i,e),f=ht+f),ot&&U(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)||"attributename"===c&&x(f,"href")?Xt(i,e):n.forceKeepAttr||(!n.keepAttr||!nt&&U(ge,f)?Xt(i,e):(rt&&(f=Qt(f)),ln(o,c,f)?(f=un(o,c,l,f),f!==u&&fn(e,i,l,f)):Xt(i,e)))}on(Me.afterSanitizeAttributes,e,null)},pn=function(e){let t=null;const n=Jt(e);for(on(Me.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(on(Me.uponSanitizeShadowNode,t,null),an(t,e),mn(t),nn(t.content)&&pn(t.content),1===(Se?Se(t):t.nodeType)){const e=W(t);nn(e)&&(dn(e),pn(e))}on(Me.afterSanitizeShadowDOM,e,null)},dn=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){pn(e.shadow);continue}const n=e.node,r=1===(Se?Se(n):n.nodeType),o=F(n);if(o)for(let e=o.length-1;e>=0;--e)t.push({node:o[e],shadow:null});if(r){const e=Ne?Ne(n):null;if("string"==typeof e&&"template"===jt(e)){const e=n.content;nn(e)&&t.push({node:e,shadow:null})}}if(r){const e=W(n);nn(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(kt=!e,kt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!rn(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return D(e);case"boolean":return C(e);case"bigint":return L?L(e):"0";case"symbol":return M?M(e):"Symbol()";case"undefined":default:return z(e);case"function":case"object":{if(null===e)return z(e);const t=e,n=Y(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:z(e)}return z(e)}}}(e)))throw j("dirty is not a string, aborting");if(!n.isSupported)return e;it?(Ye=lt,qe=st):Wt(t),(Me.uponSanitizeElement.length>0||Me.uponSanitizeAttribute.length>0)&&(Ye=G(Ye)),Me.uponSanitizeAttribute.length>0&&(qe=G(qe)),n.removed=[];const s=yt&&"string"!=typeof e&&rn(e);if(s){!function(e){if(!ot)return;const t=[e];for(;t.length>0;){const e=t.pop(),n=Se?Se(e):e.nodeType;if(7===n||8===n&&U(de,e.data)){try{b(e)}catch(e){}continue}if(1===n){const t=e,n=jt(Ne?Ne(e):e.nodeName);try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&"label"!==n&&"output"!==n&&t.removeAttribute("for")}catch(e){}}const r=F(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}}(e);const t=Ne?Ne(e):e.nodeName;if("string"==typeof t){const n=jt(t);if(!Ye[n]||Ve[n])throw qt(e),j("root node is forbidden and cannot be sanitized in-place")}if(tn(e))throw qt(e),j("root node is clobbered and cannot be sanitized in-place");try{dn(e)}catch(t){throw qt(e),t}}else if(rn(e))r=Zt("\x3c!----\x3e"),a=r.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a),dn(a);else{if(!ut&&!rt&&!at&&-1===e.indexOf("<"))return Ee&&mt?xe(e):e;if(r=Zt(e),!r)return ut?null:mt?Ae:""}r&&ct&&$t(r.firstChild);const c=s?e:r,u=Jt(c);try{for(;i=u.nextNode();)an(i,c),mn(i),nn(i.content)&&pn(i.content)}catch(t){throw s&&(qt(e),S(n.removed,e=>{e.element&&Vt(e.element)})),t}if(s)return S(n.removed,e=>{e.element&&Vt(e.element)}),rt&&en(e),e;if(ut){if(rt&&en(r),ft)for(l=De.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(qe.shadowroot||qe.shadowrootmode)&&(l=Le.call(o,l,!0)),l}let f=at?r.outerHTML:r.innerHTML;return at&&Ye["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&U(fe,r.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+f),rt&&(f=Qt(f)),Ee&&mt?xe(f):f},n.setConfig=function(){Wt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),it=!0,lt=Ye,st=qe},n.clearConfig=function(){Ft=null,it=!1,lt=null,st=null,Ee=_e,Ae=""},n.isValidAttribute=function(e,t,n){Ft||Wt({});const r=jt(e),o=jt(t);return ln(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&P(Me,e)&&_(Me[e],t)},n.removeHook=function(e,t){if(P(Me,e)){if(void 0!==t){const n=N(Me[e],t);return-1===n?void 0:A(Me[e],n,1)[0]}return E(Me[e])}},n.removeHooks=function(e){P(Me,e)&&(Me[e]=[])},n.removeAllHooks=function(){Me={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();function Se({icon:e,label:t,value:n,bottomLabel:r,summaryText:o,link:i,className:l="",...s}){const c="mg-stats-card-item",u=["mg-card",c,i&&`${c}--linked`,l].filter(Boolean).join(" "),f=i?(0,a.jsx)("a",{href:i,className:`${c}__value`,children:n}):(0,a.jsx)("data",{className:`${c}__value`,value:n,children:n});return(0,a.jsxs)("article",{className:u,...s,children:[e&&(0,a.jsx)("span",{className:`${c}__icon`,"aria-hidden":"true",children:(0,a.jsx)("span",{className:e})}),t&&(0,a.jsx)("span",{className:`${c}__label`,children:t}),f,r&&(0,a.jsx)("strong",{className:`${c}__bottom-label`,children:r}),o&&(0,a.jsx)("p",{className:`${c}__summary`,dangerouslySetInnerHTML:{__html:Te.sanitize(o)}})]})}Se.propTypes={icon:o().string,label:o().string,value:o().oneOfType([o().string,o().number]).isRequired,bottomLabel:o().string,summaryText:o().string,link:o().string,className:o().string};const Ne=[];function Ee({title:e,stats:t=Ne,variant:n="default",className:r="",...o}){const l="mg-stats-card",s=t.length;let c="mg-grid";s>0&&s<=12?c=`mg-grid mg-grid__col-${s}`:s>12&&(c="mg-grid mg-grid--auto-fit");const u=[l,n&&`${l}--${n}`,r].filter(Boolean).join(" ");return(0,a.jsxs)("section",{className:u,"aria-label":e||"Statistics",...o,children:[e&&(0,a.jsx)(i,{type:"2",children:e}),(0,a.jsx)("div",{className:c,children:t.map((e,t)=>(0,a.jsx)(Se,{icon:e.icon,label:e.label,value:e.value,bottomLabel:e.bottomLabel,summaryText:e.summaryText,link:e.link},t))})]})}Ee.propTypes={title:o().string,stats:o().arrayOf(o().shape({icon:o().string,label:o().string,value:o().oneOfType([o().string,o().number]).isRequired,bottomLabel:o().string,summaryText:o().string,link:o().string})),variant:o().oneOf(["default","compact","highlighted","negative"]),className:o().string};const _e=Ee;function Ae(e){const{dataset:t}=e,n={title:t.title||void 0,variant:t.variant||"default",className:t.className||""};try{n.stats=t.stats?JSON.parse(t.stats):[]}catch{n.stats=[]}return n}export{Ee as StatsCard,_e as default,Ae as fromElement};
6
+ import"react";var t={2694(t,e,n){var r=n(6925);function o(){}function a(){}a.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},5556(t,e,n){t.exports=n(2694)()},6925(t){t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}};const e={};function n(r){const o=e[r];if(void 0!==o)return o.exports;const a=e[r]={exports:{}};return t[r](a,a.exports,n),a.exports}n.n=t=>{const e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.cw=t=>{var e;return()=>{if(t){var n=t;t=0,e={exports:{}},n.call(e.exports,e,e.exports)}return e.exports}},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r=n.cw(function(t,e){var n=Symbol.for("react.transitional.element");function r(t,e,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==e.key&&(o=""+e.key),"key"in e)for(var a in r={},e)"key"!==a&&(r[a]=e[a]);else r=e;return e=r.ref,{$$typeof:n,type:t,key:o,ref:void 0!==e?e:null,props:r}}Symbol.for("react.fragment"),e.jsx=r,e.jsxs=r}),o=n.cw(function(t,e){t.exports=r()}),a=n(5556),i=n.n(a);o();const l=({type:t=2,children:e,className:n,tabIndex:o,...a})=>{const i=`h${Math.min(Math.max(parseInt(t,10)||2,1),6)}`;return(0,r().jsx)(i,{className:n,tabIndex:o,...a,children:e})};function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,s=!1;try{if(a=(n=n.call(t)).next,0===e);else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const u=Object.entries,f=Object.setPrototypeOf,p=Object.isFrozen,m=Object.getPrototypeOf,d=Object.getOwnPropertyDescriptor;let h=Object.freeze,g=Object.seal,y=Object.create,b="undefined"!=typeof Reflect&&Reflect,T=b.apply,S=b.construct;h||(h=function(t){return t}),g||(g=function(t){return t}),T||(T=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return t.apply(e,r)}),S||(S=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return new t(...n)});const v=B(Array.prototype.forEach),A=B(Array.prototype.lastIndexOf),E=B(Array.prototype.pop),w=B(Array.prototype.push),x=B(Array.prototype.splice),_=Array.isArray,N=B(String.prototype.toLowerCase),O=B(String.prototype.toString),k=B(String.prototype.match),D=B(String.prototype.replace),R=B(String.prototype.indexOf),C=B(String.prototype.trim),I=B(Number.prototype.toString),L=B(Boolean.prototype.toString),M="undefined"==typeof BigInt?null:B(BigInt.prototype.toString),z="undefined"==typeof Symbol?null:B(Symbol.prototype.toString),P=B(Object.prototype.hasOwnProperty),j=B(Object.prototype.toString),U=B(RegExp.prototype.test),F=(H=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return S(H,e)});var H;function B(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return T(t,e,r)}}function W(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:N;if(f&&f(t,null),!_(e))return t;let r=e.length;for(;r--;){let o=e[r];if("string"==typeof o){const t=n(o);t!==o&&(p(e)||(e[r]=t),o=t)}t[o]=!0}return t}function Y(t){for(let e=0;e<t.length;e++)P(t,e)||(t[e]=null);return t}function $(t){const e=y(null);for(const r of u(t)){var n=s(r,2);const o=n[0],a=n[1];P(t,o)&&(_(a)?e[o]=Y(a):a&&"object"==typeof a&&a.constructor===Object?e[o]=$(a):e[o]=a)}return e}function G(t,e){for(;null!==t;){const n=d(t,e);if(n){if(n.get)return B(n.get);if("function"==typeof n.value)return B(n.value)}t=m(t)}return function(){return null}}const q=h(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),X=h(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),K=h(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),V=h(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Z=h(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),J=h(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Q=h(["#text"]),tt=h(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),et=h(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),nt=h(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),rt=h(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ot=g(/{{[\w\W]*|^[\w\W]*}}/g),at=g(/<%[\w\W]*|^[\w\W]*%>/g),it=g(/\${[\w\W]*/g),lt=g(/^data-[\-\w.\u00B7-\uFFFF]+$/),ct=g(/^aria-[\-\w]+$/),st=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ut=g(/^(?:\w+script|data):/i),ft=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),pt=g(/^html$/i),mt=g(/^[a-z][.\w]*(-[.\w]+)+$/i),dt=g(/<[/\w!]/g),ht=g(/<[/\w]/g),gt=g(/<\/no(script|embed|frames)/i),yt=g(/\/>/i),bt=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],Tt=h(W({},bt)),St=function(){const t={};return v(bt,e=>{t[e]=g(new RegExp("</"+e+"(?=[\\t\\n\\f\\r />])","i"))}),h(t)}(),vt=function(){return"undefined"==typeof window?null:window},At=function(t,e,n,r){return P(t,e)&&_(t[e])?W(r.base?$(r.base):{},t[e],r.transform):n},Et=function(t,e,n){const r=P(t,e)?t[e]:void 0;return r&&"object"==typeof r?$(r):n()};var wt=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vt();const n=e=>t(e);if(n.version="3.4.15",n.removed=[],!e||!e.document||9!==e.document.nodeType||!e.Element)return n.isSupported=!1,n;let r=e.document;const o=r,a=o.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,l=e.Node,c=e.Element,s=e.NodeFilter;void 0===e.NamedNodeMap&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const f=e.DOMParser,p=e.trustedTypes,m=c.prototype,d=G(m,"cloneNode"),b=G(m,"remove"),T=G(m,"removeAttributeNode"),S=G(m,"nextSibling"),H=G(m,"childNodes"),B=G(m,"parentNode"),Y=G(m,"shadowRoot"),bt=G(m,"attributes"),wt=l&&l.prototype?G(l.prototype,"nodeType"):null,xt=l&&l.prototype?G(l.prototype,"nodeName"):null,_t=l&&l.prototype?G(l.prototype,"ownerDocument"):null,Nt=function(t){return wt?wt(t):t.nodeType},Ot=function(t){return xt?xt(t):t.nodeName};if("function"==typeof i){const t=r.createElement("template");t.content&&t.content.ownerDocument&&(r=t.content.ownerDocument)}let kt,Dt,Rt="",Ct=!1,It=0;const Lt=function(){if(It>0)throw F('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Mt=function(t){Lt(),It++;try{return kt.createHTML(t)}finally{It--}},zt=r,Pt=zt.implementation,jt=zt.createNodeIterator,Ut=zt.createDocumentFragment,Ft=zt.getElementsByTagName,Ht=o.importNode;let Bt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof u&&"function"==typeof B&&Pt&&void 0!==Pt.createHTMLDocument;const Wt=ot,Yt=at,$t=it,Gt=lt,qt=ct,Xt=ut,Kt=ft,Vt=mt;let Zt=st,Jt=null;const Qt=W({},[...q,...X,...K,...Z,...Q]);let te=null;const ee=W({},[...tt,...et,...nt,...rt]);let ne=Object.seal(y(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),re=null,oe=null;const ae=Object.seal(y(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ie=!0,le=!0,ce=!1,se=!0,ue=!1,fe=!0,pe=!1,me=!1,de=null,he=null,ge=!1,ye=!1,be=!1,Te=!1,Se=!0,ve=!1;const Ae="user-content-";let Ee=!0,we=!1,xe={},_e=null;const Ne=W({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Oe=null;const ke=W({},["audio","video","img","source","image","track"]);let De=null;const Re=W({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ce="http://www.w3.org/1998/Math/MathML",Ie="http://www.w3.org/2000/svg",Le="http://www.w3.org/1999/xhtml";let Me=Le,ze=!1,Pe=null;const je=W({},[Ce,Ie,Le],O),Ue=h(["mi","mo","mn","ms","mtext"]);let Fe=W({},Ue);const He=h(["annotation-xml"]);let Be=W({},He);const We=W({},["title","style","font","a","script"]);let Ye=null;const $e=["application/xhtml+xml","text/html"];let Ge=null,qe=null;const Xe=r.createElement("form"),Ke=function(t){return t instanceof RegExp||t instanceof Function},Ve=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(qe&&qe===t)return;t&&"object"==typeof t||(t={}),t=$(t),Ye=-1===$e.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,Ge="application/xhtml+xml"===Ye?O:N,Jt=At(t,"ALLOWED_TAGS",Qt,{transform:Ge}),te=At(t,"ALLOWED_ATTR",ee,{transform:Ge}),Pe=At(t,"ALLOWED_NAMESPACES",je,{transform:O}),De=At(t,"ADD_URI_SAFE_ATTR",Re,{transform:Ge,base:Re}),Oe=At(t,"ADD_DATA_URI_TAGS",ke,{transform:Ge,base:ke}),_e=At(t,"FORBID_CONTENTS",Ne,{transform:Ge}),re=At(t,"FORBID_TAGS",$({}),{transform:Ge}),oe=At(t,"FORBID_ATTR",$({}),{transform:Ge}),xe=!!P(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?$(t.USE_PROFILES):t.USE_PROFILES),ie=!1!==t.ALLOW_ARIA_ATTR,le=!1!==t.ALLOW_DATA_ATTR,ce=t.ALLOW_UNKNOWN_PROTOCOLS||!1,se=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,ue=t.SAFE_FOR_TEMPLATES||!1,fe=!1!==t.SAFE_FOR_XML,pe=t.WHOLE_DOCUMENT||!1,ye=t.RETURN_DOM||!1,be=t.RETURN_DOM_FRAGMENT||!1,Te=t.RETURN_TRUSTED_TYPE||!1,ge=t.FORCE_BODY||!1,Se=!1!==t.SANITIZE_DOM,ve=t.SANITIZE_NAMED_PROPS||!1,Ee=!1!==t.KEEP_CONTENT,we=t.IN_PLACE||!1,Zt=function(t){try{return U(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:st,Me="string"==typeof t.NAMESPACE?t.NAMESPACE:Le,Fe=Et(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>W({},Ue)),Be=Et(t,"HTML_INTEGRATION_POINTS",()=>W({},He));const e=Et(t,"CUSTOM_ELEMENT_HANDLING",()=>y(null));if(ne=y(null),P(e,"tagNameCheck")&&Ke(e.tagNameCheck)&&(ne.tagNameCheck=e.tagNameCheck),P(e,"attributeNameCheck")&&Ke(e.attributeNameCheck)&&(ne.attributeNameCheck=e.attributeNameCheck),P(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&(ne.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),g(ne),ue&&(le=!1),be&&(ye=!0),xe&&(Jt=W({},Q),te=y(null),!0===xe.html&&(W(Jt,q),W(te,tt)),!0===xe.svg&&(W(Jt,X),W(te,et),W(te,rt)),!0===xe.svgFilters&&(W(Jt,K),W(te,et),W(te,rt)),!0===xe.mathMl&&(W(Jt,Z),W(te,nt),W(te,rt))),ae.tagCheck=null,ae.attributeCheck=null,P(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?ae.tagCheck=t.ADD_TAGS:_(t.ADD_TAGS)&&(Jt===Qt&&(Jt=$(Jt)),W(Jt,t.ADD_TAGS,Ge))),P(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?ae.attributeCheck=t.ADD_ATTR:_(t.ADD_ATTR)&&(te===ee&&(te=$(te)),W(te,t.ADD_ATTR,Ge))),P(t,"ADD_FORBID_CONTENTS")&&_(t.ADD_FORBID_CONTENTS)&&(_e===Ne&&(_e=$(_e)),W(_e,t.ADD_FORBID_CONTENTS,Ge)),Ee&&(Jt["#text"]=!0),pe&&W(Jt,["html","head","body"]),Jt.table&&(W(Jt,["tbody"]),delete re.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw F('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw F('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const e=kt;kt=t.TRUSTED_TYPES_POLICY;try{Rt=Mt("")}catch(t){throw kt=e,t}}else null===t.TRUSTED_TYPES_POLICY?(kt=void 0,Rt=""):(void 0===kt&&(Ct||(Dt=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(p,a),Ct=!0),kt=Dt),kt&&"string"==typeof Rt&&(Rt=Mt("")));h&&h(t),qe=t},Ze=W({},[...X,...K,...V]),Je=W({},[...Z,...J]),Qe=function(t){w(n.removed,{element:t});try{B(t).removeChild(t)}catch(e){if(b(t),!B(t))throw F("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},tn=function(t,e,n){try{T(t,e)}catch(e){try{t.removeAttribute(n)}catch(t){}}},en=function(t){on(t);const e=H(t);if(e){const t=[];v(e,e=>{w(t,e)}),v(t,t=>{try{b(t)}catch(t){}})}const n=bt(t);if(n)for(let e=n.length-1;e>=0;--e){const r=n[e],o=r&&r.name;"string"==typeof o&&tn(t,r,o)}},nn=function(t,e,r){if(!r)try{r=e.getAttributeNode(t)}catch(t){r=null}w(n.removed,{attribute:r||null,from:e});try{r?T(e,r):e.removeAttribute(t)}catch(n){try{e.removeAttribute(t)}catch(t){}}if("is"===t)if(ye||be)try{Qe(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},rn=function(t){const e=bt(t);if(e)for(let n=e.length-1;n>=0;--n){const r=e[n],o=r&&r.name;"string"!=typeof o||te[Ge(o)]||tn(t,r,o)}},on=function(t){const e=[t];for(;e.length>0;){const t=e.pop();1===Nt(t)&&rn(t);const n=H(t);if(n)for(let t=n.length-1;t>=0;--t)e.push(n[t])}},an=function(t,e){return!!fe&&("patchsrc"===t||"for"===t&&"label"!==e&&"output"!==e)},ln=function(t){let e=null,n=null;if(ge)t="<remove></remove>"+t;else{const e=k(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===Ye&&Me===Le&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const o=kt?Mt(t):t;if(Me===Le)try{e=(new f).parseFromString(o,Ye)}catch(t){}if(!e||!e.documentElement){e=Pt.createDocument(Me,"template",null);try{e.documentElement.innerHTML=ze?Rt:o}catch(t){}}const a=e.body||e.documentElement;return t&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),Me===Le?Ft.call(e,pe?"html":"body")[0]:pe?e.documentElement:a},cn=function(t){const e=_t?_t(t):t.ownerDocument;return jt.call(e||t,t,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null)},sn=function(t){return t=D(t,Wt," "),t=D(t,Yt," "),D(t,$t," ")},un=function(t){var e;t.normalize();const n=_t?_t(t):t.ownerDocument,r=jt.call(n||t,t,s.SHOW_TEXT|s.SHOW_COMMENT|s.SHOW_CDATA_SECTION|s.SHOW_PROCESSING_INSTRUCTION,null);let o=r.nextNode();for(;o;)o.data=sn(o.data),o=r.nextNode();const a=null===(e=t.querySelectorAll)||void 0===e?void 0:e.call(t,"template");a&&v(a,t=>{pn(t.content)&&un(t.content)})},fn=function(t){const e=xt?xt(t):null;return"string"==typeof e&&"form"===Ge(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==bt(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.removeAttributeNode||"function"!=typeof t.getAttributeNode||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==wt(t)||t.childNodes!==H(t))},pn=function(t){if(!wt||"object"!=typeof t||null===t)return!1;try{return 11===wt(t)}catch(t){return!1}},mn=function(t){if(!wt||"object"!=typeof t||null===t)return!1;try{return"number"==typeof wt(t)}catch(t){return!1}};function dn(t,e,r){0!==t.length&&v(t,t=>{t.call(n,e,r,qe)})}const hn=function(t,e){if(t instanceof RegExp)return U(t,e);if(t instanceof Function){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Boolean(t(e,...r))}return!1},gn=function(t,e,n,r){return 0===t.length?e:e===n||e===r?$(e):e},yn=function(t,e){return t!==e&&null===B(t)&&(we&&on(t),!0)},bn=function(t,e){if(dn(Bt.beforeSanitizeElements,t,null),yn(t,e))return!0;if(fn(t))return Qe(t),!0;const r=Ge(Ot(t));if(Jt=gn(Bt.uponSanitizeElement,Jt,Qt,de),dn(Bt.uponSanitizeElement,t,{tagName:r,allowedTags:Jt}),yn(t,e))return!0;if(function(t,e){return!!(fe&&t.hasChildNodes()&&!mn(t.firstElementChild)&&U(dt,t.textContent)&&U(dt,t.innerHTML))||!!(fe&&t.namespaceURI===Le&&Tt[e]&&(mn(t.firstElementChild)||"string"==typeof t.textContent&&U(St[e],t.textContent)))||7===t.nodeType||!(!fe||8!==t.nodeType||!U(ht,t.data))}(t,r))return Qe(t),!0;if(re[r]||!(ae.tagCheck instanceof Function&&ae.tagCheck(r))&&!Jt[r]){const n=function(t,e,n){if(!re[e]&&vn(e)&&hn(ne.tagNameCheck,e))return!1;if(Ee&&!_e[e]){const e=B(t),r=H(t);if(r&&e)for(let o=r.length-1;o>=0;--o){const a=t===n?d(r[o],!0):r[o];e.insertBefore(a,S(t))}}return Qe(t),!0}(t,r,e);return!1===n&&dn(Bt.afterSanitizeElements,t,null),n}if(1===Nt(t)&&!function(t){let e=B(t);e&&e.tagName||(e={namespaceURI:Me,tagName:"template"});const n=N(t.tagName),r=N(e.tagName);return!!Pe[t.namespaceURI]&&(t.namespaceURI===Ie?function(t,e,n){return e.namespaceURI===Le?"svg"===t:e.namespaceURI===Ce?"svg"===t&&("annotation-xml"===n||Fe[n]):Boolean(Ze[t])}(n,e,r):t.namespaceURI===Ce?function(t,e,n){return e.namespaceURI===Le?"math"===t:e.namespaceURI===Ie?"math"===t&&Be[n]:Boolean(Je[t])}(n,e,r):t.namespaceURI===Le?function(t,e,n){return!(e.namespaceURI===Ie&&!Be[n])&&!(e.namespaceURI===Ce&&!Fe[n])&&!Je[t]&&(We[t]||!Ze[t])}(n,e,r):!("application/xhtml+xml"!==Ye||!Pe[t.namespaceURI]))}(t))return Qe(t),!0;if(("noscript"===r||"noembed"===r||"noframes"===r)&&U(gt,t.innerHTML))return Qe(t),!0;if(ue&&3===t.nodeType){const e=sn(t.textContent);t.textContent!==e&&(w(n.removed,{element:t.cloneNode()}),t.textContent=e)}return dn(Bt.afterSanitizeElements,t,null),!1},Tn=function(t,e,n){if(oe[e])return!1;if(an(e,t))return!1;if(Se&&("id"===e||"name"===e)&&(n in r||n in Xe))return!1;const o=te[e]||ae.attributeCheck instanceof Function&&ae.attributeCheck(e,t);return!(!le||!U(Gt,e))||!(!ie||!U(qt,e))||(o?!(!De[e]&&!U(Zt,D(n,Kt,""))&&("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==R(n,"data:")||!Oe[t])&&(!ce||U(Xt,D(n,Kt,"")))&&n):vn(t)&&hn(ne.tagNameCheck,t)&&hn(ne.attributeNameCheck,e,t)||"is"===e&&ne.allowCustomizedBuiltInElements&&hn(ne.tagNameCheck,n))},Sn=W({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),vn=function(t){return!Sn[N(t)]&&U(Vt,t)},An=function(t,e,n,r){if(kt&&"object"==typeof p&&"function"==typeof p.getAttributeType&&!n)switch(p.getAttributeType(t,e)){case"TrustedHTML":return Mt(r);case"TrustedScriptURL":return function(t){Lt(),It++;try{return kt.createScriptURL(t)}finally{It--}}(r)}return r},En=function(t,e,n,r){try{return n?t.setAttributeNS(n,e,r):t.setAttribute(e,r),!fn(t)||(Qe(t),!1)}catch(n){return nn(e,t),!1}},wn=function(t){dn(Bt.beforeSanitizeAttributes,t,null);const e=t.attributes;if(!e||fn(t))return;te=gn(Bt.uponSanitizeAttribute,te,ee,he);const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:te,forceKeepAttr:void 0};let o=e.length;const a=Ge(t.nodeName);for(;o--;){const i=e[o],l=i.name,c=i.namespaceURI,s=i.value,u=Ge(l),f=s;let p="value"===l?f:C(f),m=!1;r.attrName=u,r.attrValue=p,r.keepAttr=!0,r.forceKeepAttr=void 0,dn(Bt.uponSanitizeAttribute,t,r),p=r.attrValue,!ve||"id"!==u&&"name"!==u||0===R(p,Ae)||(nn(l,t,i),p=Ae+p,m=!0),fe&&U(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,p)||"attributename"===u&&k(p,"href")?nn(l,t,i):r.forceKeepAttr||(r.keepAttr&&(se||!U(yt,p))?(ue&&(p=sn(p)),Tn(a,u,p)?(p=An(a,u,c,p),p!==f&&En(t,l,c,p)&&m&&E(n.removed)):nn(l,t,i)):nn(l,t,i))}dn(Bt.afterSanitizeAttributes,t,null)},xn=function(t){let e=null;const n=cn(t);for(dn(Bt.beforeSanitizeShadowDOM,t,null);e=n.nextNode();)if(dn(Bt.uponSanitizeShadowNode,e,null),bn(e,t),wn(e),pn(e.content)&&xn(e.content),1===Nt(e)){const t=Y(e);pn(t)&&(_n(t),xn(t))}dn(Bt.afterSanitizeShadowDOM,t,null)},_n=function(t){const e=[{node:t,shadow:null}];for(;e.length>0;){const t=e.pop();if(t.shadow){xn(t.shadow);continue}const n=t.node,r=1===Nt(n),o=H(n);if(o)for(let t=o.length-1;t>=0;--t)e.push({node:o[t],shadow:null});if(r){const t=xt?xt(n):null;if("string"==typeof t&&"template"===Ge(t)){const t=n.content;pn(t)&&e.push({node:t,shadow:null})}}if(r){const t=Y(n);pn(t)&&e.push({node:null,shadow:t},{node:t,shadow:null})}}};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,i=null,l=null;if(ze=!t,ze&&(t="\x3c!--\x3e"),"string"!=typeof t&&!mn(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return I(t);case"boolean":return L(t);case"bigint":return M?M(t):"0";case"symbol":return z?z(t):"Symbol()";case"undefined":default:return j(t);case"function":case"object":{if(null===t)return j(t);const e=t,n=G(e,"toString");if("function"==typeof n){const t=n(e);return"string"==typeof t?t:j(t)}return j(t)}}}(t)))throw F("dirty is not a string, aborting");if(!n.isSupported)return t;me?(Jt=de,te=he):Ve(e),(Bt.uponSanitizeElement.length>0||Bt.uponSanitizeAttribute.length>0)&&(Jt=$(Jt)),Bt.uponSanitizeAttribute.length>0&&(te=$(te)),n.removed=[];const c=we&&"string"!=typeof t&&mn(t);if(c){!function(t){if(!fe)return;const e=[t];for(;e.length>0;){const t=e.pop(),n=Nt(t);if(7===n||8===n&&U(ht,t.data)){try{b(t)}catch(t){}continue}if(1===n){const e=t,n=Ge(Ot(t));try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&an("for",n)&&e.removeAttribute("for")}catch(t){}}const r=H(t);if(r)for(let t=r.length-1;t>=0;--t)e.push(r[t])}}(t);const e=Ot(t);if("string"==typeof e){const n=Ge(e);if(!Jt[n]||re[n])throw en(t),F("root node is forbidden and cannot be sanitized in-place")}if(fn(t))throw en(t),F("root node is clobbered and cannot be sanitized in-place");try{_n(t)}catch(e){throw en(t),e}}else if(mn(t))r=ln("\x3c!----\x3e"),a=r.ownerDocument.importNode(t,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a),_n(r);else{if(!ye&&!ue&&!pe&&-1===t.indexOf("<"))return kt&&Te?Mt(t):t;if(r=ln(t),!r)return ye?null:Te?Rt:""}r&&ge&&Qe(r.firstChild);const s=c?t:r;try{const t=cn(s);for(;i=t.nextNode();)bn(i,s),wn(i),pn(i.content)&&xn(i.content)}catch(e){throw c&&(en(t),v(n.removed,t=>{t.element&&on(t.element)})),e}if(c)return v(n.removed,t=>{t.element&&on(t.element)}),ue&&un(t),t;if(ye){if(ue&&un(r),be)for(l=Ut.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(te.shadowroot||te.shadowrootmode)&&(l=Ht.call(o,l,!0)),l}let u=pe?r.outerHTML:r.innerHTML;return pe&&Jt["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&U(pt,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),ue&&(u=sn(u)),kt&&Te?Mt(u):u},n.setConfig=function(){Ve(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),me=!0,de=Jt,he=te},n.clearConfig=function(){qe=null,me=!1,de=null,he=null,kt=Dt,Rt=""},n.isValidAttribute=function(t,e,n){qe||Ve({});const r=Ge(t),o=Ge(e);return Tn(r,o,n)},n.addHook=function(t,e){"function"==typeof e&&P(Bt,t)&&w(Bt[t],e)},n.removeHook=function(t,e){if(P(Bt,t)){if(void 0!==e){const n=A(Bt[t],e);return-1===n?void 0:x(Bt[t],n,1)[0]}return E(Bt[t])}},n.removeHooks=function(t){P(Bt,t)&&(Bt[t]=[])},n.removeAllHooks=function(){Bt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();function xt({icon:t,label:e,value:n,bottomLabel:o,summaryText:a,link:i,className:l="",...c}){const s="mg-stats-card-item",u=["mg-card",s,i&&`${s}--linked`,l].filter(Boolean).join(" "),f=i?(0,r().jsx)("a",{href:i,className:`${s}__value`,children:n}):(0,r().jsx)("data",{className:`${s}__value`,value:n,children:n});return(0,r().jsxs)("article",{className:u,...c,children:[t&&(0,r().jsx)("span",{className:`${s}__icon`,"aria-hidden":"true",children:(0,r().jsx)("span",{className:t})}),e&&(0,r().jsx)("span",{className:`${s}__label`,children:e}),f,o&&(0,r().jsx)("strong",{className:`${s}__bottom-label`,children:o}),a&&(0,r().jsx)("p",{className:`${s}__summary`,dangerouslySetInnerHTML:{__html:wt.sanitize(a)}})]})}xt.propTypes={icon:i().string,label:i().string,value:i().oneOfType([i().string,i().number]).isRequired,bottomLabel:i().string,summaryText:i().string,link:i().string,className:i().string};const _t=[];function Nt({title:t,stats:e=_t,variant:n="default",className:o="",...a}){const i="mg-stats-card",c=e.length;let s="mg-grid";c>0&&c<=12?s=`mg-grid mg-grid__col-${c}`:c>12&&(s="mg-grid mg-grid--auto-fit");const u=[i,n&&`${i}--${n}`,o].filter(Boolean).join(" ");return(0,r().jsxs)("section",{className:u,"aria-label":t||"Statistics",...a,children:[t&&(0,r().jsx)(l,{type:"2",children:t}),(0,r().jsx)("div",{className:s,children:e.map((t,e)=>(0,r().jsx)(xt,{icon:t.icon,label:t.label,value:t.value,bottomLabel:t.bottomLabel,summaryText:t.summaryText,link:t.link},e))})]})}Nt.propTypes={title:i().string,stats:i().arrayOf(i().shape({icon:i().string,label:i().string,value:i().oneOfType([i().string,i().number]).isRequired,bottomLabel:i().string,summaryText:i().string,link:i().string})),variant:i().oneOf(["default","compact","highlighted","negative"]),className:i().string};const Ot=Nt;function kt(t){const{dataset:e}=t,n={title:e.title||void 0,variant:e.variant||"default",className:e.className||""};try{n.stats=e.stats?JSON.parse(e.stats):[]}catch{n.stats=[]}return n}export{Nt as StatsCard,Ot as default,kt as fromElement};
@@ -1,4 +1,4 @@
1
- /*! @license DOMPurify 3.4.12 | (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.12/LICENSE */
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 */
2
2
 
3
3
  /**
4
4
  * @license React