@sumcode/svgify
Version:
A lightweight React component designed to dynamically render and style SVG icons.
32 lines (30 loc) • 83.9 kB
JavaScript
var index=function(de,Y){"use strict";var Vt=document.createElement("style");Vt.textContent=`.svg-font-icon{display:inline-block}.svg_modifier_style{fill:currentColor;stroke:currentColor}.svg_modifier_style_stroke *{stroke:inherit;fill:none}.svg_modifier_style_fill *{fill:inherit;stroke:none}.svg_modifier_style_both *{stroke:inherit;fill:inherit}
`,document.head.appendChild(Vt);var D=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function In(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ze={exports:{}},pe={};/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var zt;function Mn(){if(zt)return pe;zt=1;var e=Y,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(l,f,u){var c,p={},_=null,O=null;u!==void 0&&(_=""+u),f.key!==void 0&&(_=""+f.key),f.ref!==void 0&&(O=f.ref);for(c in f)n.call(f,c)&&!o.hasOwnProperty(c)&&(p[c]=f[c]);if(l&&l.defaultProps)for(c in f=l.defaultProps,f)p[c]===void 0&&(p[c]=f[c]);return{$$typeof:t,type:l,key:_,ref:O,props:p,_owner:i.current}}return pe.Fragment=r,pe.jsx=a,pe.jsxs=a,pe}var he={};/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var qt;function Bn(){return qt||(qt=1,process.env.NODE_ENV!=="production"&&function(){var e=Y,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),m=Symbol.iterator,g="@@iterator";function y(s){if(s===null||typeof s!="object")return null;var h=m&&s[m]||s[g];return typeof h=="function"?h:null}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(s){{for(var h=arguments.length,v=new Array(h>1?h-1:0),b=1;b<h;b++)v[b-1]=arguments[b];x("error",s,v)}}function x(s,h,v){{var b=C.ReactDebugCurrentFrame,A=b.getStackAddendum();A!==""&&(h+="%s",v=v.concat([A]));var P=v.map(function(R){return String(R)});P.unshift("Warning: "+h),Function.prototype.apply.call(console[s],console,P)}}var B=!1,L=!1,I=!1,q=!1,ce=!1,Se;Se=Symbol.for("react.module.reference");function ma(s){return!!(typeof s=="string"||typeof s=="function"||s===n||s===o||ce||s===i||s===u||s===c||q||s===O||B||L||I||typeof s=="object"&&s!==null&&(s.$$typeof===_||s.$$typeof===p||s.$$typeof===a||s.$$typeof===l||s.$$typeof===f||s.$$typeof===Se||s.getModuleId!==void 0))}function ga(s,h,v){var b=s.displayName;if(b)return b;var A=h.displayName||h.name||"";return A!==""?v+"("+A+")":v}function hn(s){return s.displayName||"Context"}function K(s){if(s==null)return null;if(typeof s.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case n:return"Fragment";case r:return"Portal";case o:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case c:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case l:var h=s;return hn(h)+".Consumer";case a:var v=s;return hn(v._context)+".Provider";case f:return ga(s,s.render,"ForwardRef");case p:var b=s.displayName||null;return b!==null?b:K(s.type)||"Memo";case _:{var A=s,P=A._payload,R=A._init;try{return K(R(P))}catch{return null}}}return null}var oe=Object.assign,Te=0,mn,gn,yn,vn,En,bn,_n;function Sn(){}Sn.__reactDisabledLog=!0;function ya(){{if(Te===0){mn=console.log,gn=console.info,yn=console.warn,vn=console.error,En=console.group,bn=console.groupCollapsed,_n=console.groupEnd;var s={configurable:!0,enumerable:!0,value:Sn,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}Te++}}function va(){{if(Te--,Te===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:oe({},s,{value:mn}),info:oe({},s,{value:gn}),warn:oe({},s,{value:yn}),error:oe({},s,{value:vn}),group:oe({},s,{value:En}),groupCollapsed:oe({},s,{value:bn}),groupEnd:oe({},s,{value:_n})})}Te<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Nt=C.ReactCurrentDispatcher,Ft;function Xe(s,h,v){{if(Ft===void 0)try{throw Error()}catch(A){var b=A.stack.trim().match(/\n( *(at )?)/);Ft=b&&b[1]||""}return`
`+Ft+s}}var Lt=!1,Je;{var Ea=typeof WeakMap=="function"?WeakMap:Map;Je=new Ea}function Tn(s,h){if(!s||Lt)return"";{var v=Je.get(s);if(v!==void 0)return v}var b;Lt=!0;var A=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var P;P=Nt.current,Nt.current=null,ya();try{if(h){var R=function(){throw Error()};if(Object.defineProperty(R.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(R,[])}catch(W){b=W}Reflect.construct(s,[],R)}else{try{R.call()}catch(W){b=W}s.call(R.prototype)}}else{try{throw Error()}catch(W){b=W}s()}}catch(W){if(W&&b&&typeof W.stack=="string"){for(var w=W.stack.split(`
`),U=b.stack.split(`
`),k=w.length-1,F=U.length-1;k>=1&&F>=0&&w[k]!==U[F];)F--;for(;k>=1&&F>=0;k--,F--)if(w[k]!==U[F]){if(k!==1||F!==1)do if(k--,F--,F<0||w[k]!==U[F]){var G=`
`+w[k].replace(" at new "," at ");return s.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",s.displayName)),typeof s=="function"&&Je.set(s,G),G}while(k>=1&&F>=0);break}}}finally{Lt=!1,Nt.current=P,va(),Error.prepareStackTrace=A}var fe=s?s.displayName||s.name:"",ae=fe?Xe(fe):"";return typeof s=="function"&&Je.set(s,ae),ae}function ba(s,h,v){return Tn(s,!1)}function _a(s){var h=s.prototype;return!!(h&&h.isReactComponent)}function Ye(s,h,v){if(s==null)return"";if(typeof s=="function")return Tn(s,_a(s));if(typeof s=="string")return Xe(s);switch(s){case u:return Xe("Suspense");case c:return Xe("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case f:return ba(s.render);case p:return Ye(s.type,h,v);case _:{var b=s,A=b._payload,P=b._init;try{return Ye(P(A),h,v)}catch{}}}return""}var we=Object.prototype.hasOwnProperty,wn={},Rn=C.ReactDebugCurrentFrame;function Ke(s){if(s){var h=s._owner,v=Ye(s.type,s._source,h?h.type:null);Rn.setExtraStackFrame(v)}else Rn.setExtraStackFrame(null)}function Sa(s,h,v,b,A){{var P=Function.call.bind(we);for(var R in s)if(P(s,R)){var w=void 0;try{if(typeof s[R]!="function"){var U=Error((b||"React class")+": "+v+" type `"+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[R]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw U.name="Invariant Violation",U}w=s[R](h,R,b,v,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(k){w=k}w&&!(w instanceof Error)&&(Ke(A),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",b||"React class",v,R,typeof w),Ke(null)),w instanceof Error&&!(w.message in wn)&&(wn[w.message]=!0,Ke(A),E("Failed %s type: %s",v,w.message),Ke(null))}}}var Ta=Array.isArray;function jt(s){return Ta(s)}function wa(s){{var h=typeof Symbol=="function"&&Symbol.toStringTag,v=h&&s[Symbol.toStringTag]||s.constructor.name||"Object";return v}}function Ra(s){try{return On(s),!1}catch{return!0}}function On(s){return""+s}function Cn(s){if(Ra(s))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",wa(s)),On(s)}var Re=C.ReactCurrentOwner,Oa={key:!0,ref:!0,__self:!0,__source:!0},An,Pn,It;It={};function Ca(s){if(we.call(s,"ref")){var h=Object.getOwnPropertyDescriptor(s,"ref").get;if(h&&h.isReactWarning)return!1}return s.ref!==void 0}function Aa(s){if(we.call(s,"key")){var h=Object.getOwnPropertyDescriptor(s,"key").get;if(h&&h.isReactWarning)return!1}return s.key!==void 0}function Pa(s,h){if(typeof s.ref=="string"&&Re.current&&h&&Re.current.stateNode!==h){var v=K(Re.current.type);It[v]||(E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',K(Re.current.type),s.ref),It[v]=!0)}}function xa(s,h){{var v=function(){An||(An=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",h))};v.isReactWarning=!0,Object.defineProperty(s,"key",{get:v,configurable:!0})}}function ka(s,h){{var v=function(){Pn||(Pn=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",h))};v.isReactWarning=!0,Object.defineProperty(s,"ref",{get:v,configurable:!0})}}var Da=function(s,h,v,b,A,P,R){var w={$$typeof:t,type:s,key:h,ref:v,props:R,_owner:P};return w._store={},Object.defineProperty(w._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(w,"_self",{configurable:!1,enumerable:!1,writable:!1,value:b}),Object.defineProperty(w,"_source",{configurable:!1,enumerable:!1,writable:!1,value:A}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w};function Na(s,h,v,b,A){{var P,R={},w=null,U=null;v!==void 0&&(Cn(v),w=""+v),Aa(h)&&(Cn(h.key),w=""+h.key),Ca(h)&&(U=h.ref,Pa(h,A));for(P in h)we.call(h,P)&&!Oa.hasOwnProperty(P)&&(R[P]=h[P]);if(s&&s.defaultProps){var k=s.defaultProps;for(P in k)R[P]===void 0&&(R[P]=k[P])}if(w||U){var F=typeof s=="function"?s.displayName||s.name||"Unknown":s;w&&xa(R,F),U&&ka(R,F)}return Da(s,w,U,A,b,Re.current,R)}}var Mt=C.ReactCurrentOwner,xn=C.ReactDebugCurrentFrame;function ue(s){if(s){var h=s._owner,v=Ye(s.type,s._source,h?h.type:null);xn.setExtraStackFrame(v)}else xn.setExtraStackFrame(null)}var Bt;Bt=!1;function Ut(s){return typeof s=="object"&&s!==null&&s.$$typeof===t}function kn(){{if(Mt.current){var s=K(Mt.current.type);if(s)return`
Check the render method of \``+s+"`."}return""}}function Fa(s){return""}var Dn={};function La(s){{var h=kn();if(!h){var v=typeof s=="string"?s:s.displayName||s.name;v&&(h=`
Check the top-level render call using <`+v+">.")}return h}}function Nn(s,h){{if(!s._store||s._store.validated||s.key!=null)return;s._store.validated=!0;var v=La(h);if(Dn[v])return;Dn[v]=!0;var b="";s&&s._owner&&s._owner!==Mt.current&&(b=" It was passed a child from "+K(s._owner.type)+"."),ue(s),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',v,b),ue(null)}}function Fn(s,h){{if(typeof s!="object")return;if(jt(s))for(var v=0;v<s.length;v++){var b=s[v];Ut(b)&&Nn(b,h)}else if(Ut(s))s._store&&(s._store.validated=!0);else if(s){var A=y(s);if(typeof A=="function"&&A!==s.entries)for(var P=A.call(s),R;!(R=P.next()).done;)Ut(R.value)&&Nn(R.value,h)}}}function ja(s){{var h=s.type;if(h==null||typeof h=="string")return;var v;if(typeof h=="function")v=h.propTypes;else if(typeof h=="object"&&(h.$$typeof===f||h.$$typeof===p))v=h.propTypes;else return;if(v){var b=K(h);Sa(v,s.props,"prop",b,s)}else if(h.PropTypes!==void 0&&!Bt){Bt=!0;var A=K(h);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",A||"Unknown")}typeof h.getDefaultProps=="function"&&!h.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ia(s){{for(var h=Object.keys(s.props),v=0;v<h.length;v++){var b=h[v];if(b!=="children"&&b!=="key"){ue(s),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",b),ue(null);break}}s.ref!==null&&(ue(s),E("Invalid attribute `ref` supplied to `React.Fragment`."),ue(null))}}var Ln={};function jn(s,h,v,b,A,P){{var R=ma(s);if(!R){var w="";(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(w+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var U=Fa();U?w+=U:w+=kn();var k;s===null?k="null":jt(s)?k="array":s!==void 0&&s.$$typeof===t?(k="<"+(K(s.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):k=typeof s,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",k,w)}var F=Na(s,h,v,A,P);if(F==null)return F;if(R){var G=h.children;if(G!==void 0)if(b)if(jt(G)){for(var fe=0;fe<G.length;fe++)Fn(G[fe],s);Object.freeze&&Object.freeze(G)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Fn(G,s)}if(we.call(h,"key")){var ae=K(s),W=Object.keys(h).filter(function(za){return za!=="key"}),Ht=W.length>0?"{key: someKey, "+W.join(": ..., ")+": ...}":"{key: someKey}";if(!Ln[ae+Ht]){var Va=W.length>0?"{"+W.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`,Ht,ae,Va,ae),Ln[ae+Ht]=!0}}return s===n?Ia(F):ja(F),F}}function Ma(s,h,v){return jn(s,h,v,!0)}function Ba(s,h,v){return jn(s,h,v,!1)}var Ua=Ba,Ha=Ma;he.Fragment=n,he.jsx=Ua,he.jsxs=Ha}()),he}process.env.NODE_ENV==="production"?Ze.exports=Mn():Ze.exports=Bn();var Wt=Ze.exports,$t={},Qe={},et={};Object.defineProperty(et,"__esModule",{value:!0}),et.default=zn;var Gt="html",Xt="head",Oe="body",Un=/<([a-zA-Z]+[0-9]?)/,Jt=/<head[^]*>/i,Yt=/<body[^]*>/i,Ce=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},tt=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},Kt=typeof window=="object"&&window.DOMParser;if(typeof Kt=="function"){var Hn=new Kt,Vn="text/html";tt=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),Hn.parseFromString(e,Vn)},Ce=tt}if(typeof document=="object"&&document.implementation){var Ae=document.implementation.createHTMLDocument();Ce=function(e,t){if(t){var r=Ae.documentElement.querySelector(t);return r&&(r.innerHTML=e),Ae}return Ae.documentElement.innerHTML=e,Ae}}var Pe=typeof document=="object"&&document.createElement("template"),rt;Pe&&Pe.content&&(rt=function(e){return Pe.innerHTML=e,Pe.content.childNodes});function zn(e){var t,r,n=e.match(Un),i=n&&n[1]?n[1].toLowerCase():"";switch(i){case Gt:{var o=tt(e);if(!Jt.test(e)){var a=o.querySelector(Xt);(t=a==null?void 0:a.parentNode)===null||t===void 0||t.removeChild(a)}if(!Yt.test(e)){var a=o.querySelector(Oe);(r=a==null?void 0:a.parentNode)===null||r===void 0||r.removeChild(a)}return o.querySelectorAll(Gt)}case Xt:case Oe:{var l=Ce(e).querySelectorAll(i);return Yt.test(e)&&Jt.test(e)?l[0].parentNode.childNodes:l}default:{if(rt)return rt(e);var a=Ce(e,Oe).querySelector(Oe);return a.childNodes}}}var xe={},nt={},it={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function r(n){return n.type===t.Tag||n.type===t.Script||n.type===t.Style}e.isTag=r,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(it);var T={},Z=D&&D.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),me=D&&D.__assign||function(){return me=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},me.apply(this,arguments)};Object.defineProperty(T,"__esModule",{value:!0}),T.cloneNode=T.hasChildren=T.isDocument=T.isDirective=T.isComment=T.isText=T.isCDATA=T.isTag=T.Element=T.Document=T.CDATA=T.NodeWithChildren=T.ProcessingInstruction=T.Comment=T.Text=T.DataNode=T.Node=void 0;var H=it,ot=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),at(this,t)},e}();T.Node=ot;var ke=function(e){Z(t,e);function t(r){var n=e.call(this)||this;return n.data=r,n}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),t}(ot);T.DataNode=ke;var Zt=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=H.ElementType.Text,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(ke);T.Text=Zt;var Qt=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=H.ElementType.Comment,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(ke);T.Comment=Qt;var er=function(e){Z(t,e);function t(r,n){var i=e.call(this,n)||this;return i.name=r,i.type=H.ElementType.Directive,i}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(ke);T.ProcessingInstruction=er;var De=function(e){Z(t,e);function t(r){var n=e.call(this)||this;return n.children=r,n}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),t}(ot);T.NodeWithChildren=De;var tr=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=H.ElementType.CDATA,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(De);T.CDATA=tr;var rr=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=H.ElementType.Root,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(De);T.Document=rr;var nr=function(e){Z(t,e);function t(r,n,i,o){i===void 0&&(i=[]),o===void 0&&(o=r==="script"?H.ElementType.Script:r==="style"?H.ElementType.Style:H.ElementType.Tag);var a=e.call(this,i)||this;return a.name=r,a.attribs=n,a.type=o,a}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var i,o;return{name:n,value:r.attribs[n],namespace:(i=r["x-attribsNamespace"])===null||i===void 0?void 0:i[n],prefix:(o=r["x-attribsPrefix"])===null||o===void 0?void 0:o[n]}})},enumerable:!1,configurable:!0}),t}(De);T.Element=nr;function ir(e){return(0,H.isTag)(e)}T.isTag=ir;function or(e){return e.type===H.ElementType.CDATA}T.isCDATA=or;function ar(e){return e.type===H.ElementType.Text}T.isText=ar;function sr(e){return e.type===H.ElementType.Comment}T.isComment=sr;function lr(e){return e.type===H.ElementType.Directive}T.isDirective=lr;function cr(e){return e.type===H.ElementType.Root}T.isDocument=cr;function qn(e){return Object.prototype.hasOwnProperty.call(e,"children")}T.hasChildren=qn;function at(e,t){t===void 0&&(t=!1);var r;if(ar(e))r=new Zt(e.data);else if(sr(e))r=new Qt(e.data);else if(ir(e)){var n=t?st(e.children):[],i=new nr(e.name,me({},e.attribs),n);n.forEach(function(f){return f.parent=i}),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=me({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=me({},e["x-attribsPrefix"])),r=i}else if(or(e)){var n=t?st(e.children):[],o=new tr(n);n.forEach(function(u){return u.parent=o}),r=o}else if(cr(e)){var n=t?st(e.children):[],a=new rr(n);n.forEach(function(u){return u.parent=a}),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),r=a}else if(lr(e)){var l=new er(e.name,e.data);e["x-name"]!=null&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),r=l}else throw new Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}T.cloneNode=at;function st(e){for(var t=e.map(function(n){return at(n,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}(function(e){var t=D&&D.__createBinding||(Object.create?function(l,f,u,c){c===void 0&&(c=u);var p=Object.getOwnPropertyDescriptor(f,u);(!p||("get"in p?!f.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return f[u]}}),Object.defineProperty(l,c,p)}:function(l,f,u,c){c===void 0&&(c=u),l[c]=f[u]}),r=D&&D.__exportStar||function(l,f){for(var u in l)u!=="default"&&!Object.prototype.hasOwnProperty.call(f,u)&&t(f,l,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var n=it,i=T;r(T,e);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},a=function(){function l(f,u,c){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(c=u,u=o),typeof f=="object"&&(u=f,f=void 0),this.callback=f??null,this.options=u??o,this.elementCB=c??null}return l.prototype.onparserinit=function(f){this.parser=f},l.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},l.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},l.prototype.onerror=function(f){this.handleCallback(f)},l.prototype.onclosetag=function(){this.lastNode=null;var f=this.tagStack.pop();this.options.withEndIndices&&(f.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(f)},l.prototype.onopentag=function(f,u){var c=this.options.xmlMode?n.ElementType.Tag:void 0,p=new i.Element(f,u,void 0,c);this.addNode(p),this.tagStack.push(p)},l.prototype.ontext=function(f){var u=this.lastNode;if(u&&u.type===n.ElementType.Text)u.data+=f,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{var c=new i.Text(f);this.addNode(c),this.lastNode=c}},l.prototype.oncomment=function(f){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=f;return}var u=new i.Comment(f);this.addNode(u),this.lastNode=u},l.prototype.oncommentend=function(){this.lastNode=null},l.prototype.oncdatastart=function(){var f=new i.Text(""),u=new i.CDATA([f]);this.addNode(u),f.parent=u,this.lastNode=f},l.prototype.oncdataend=function(){this.lastNode=null},l.prototype.onprocessinginstruction=function(f,u){var c=new i.ProcessingInstruction(f,u);this.addNode(c)},l.prototype.handleCallback=function(f){if(typeof this.callback=="function")this.callback(f,this.dom);else if(f)throw f},l.prototype.addNode=function(f){var u=this.tagStack[this.tagStack.length-1],c=u.children[u.children.length-1];this.options.withStartIndices&&(f.startIndex=this.parser.startIndex),this.options.withEndIndices&&(f.endIndex=this.parser.endIndex),u.children.push(f),c&&(f.prev=c,c.next=f),f.parent=u,this.lastNode=null},l}();e.DomHandler=a,e.default=a})(nt);var ur={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce(function(t,r){return t[r.toLowerCase()]=r,t},{})})(ur),Object.defineProperty(xe,"__esModule",{value:!0}),xe.formatAttributes=fr,xe.formatDOM=dr;var Ne=nt,Wn=ur;function $n(e){return Wn.CASE_SENSITIVE_TAG_NAMES_MAP[e]}function fr(e){for(var t={},r=0,n=e.length;r<n;r++){var i=e[r];t[i.name]=i.value}return t}function Gn(e){e=e.toLowerCase();var t=$n(e);return t||e}function dr(e,t,r){t===void 0&&(t=null);for(var n=[],i,o=0,a=e.length;o<a;o++){var l=e[o];switch(l.nodeType){case 1:{var f=Gn(l.nodeName);i=new Ne.Element(f,fr(l.attributes)),i.children=dr(f==="template"?l.content.childNodes:l.childNodes,i);break}case 3:i=new Ne.Text(l.nodeValue);break;case 8:i=new Ne.Comment(l.nodeValue);break;default:continue}var u=n[o-1]||null;u&&(u.next=i),i.parent=t,i.prev=u,i.next=null,n.push(i)}return r&&(i=new Ne.ProcessingInstruction(r.substring(0,r.indexOf(" ")).toLowerCase(),r),i.next=n[0]||null,i.parent=t,n.unshift(i),n[1]&&(n[1].prev=n[0])),n}var Xn=D&&D.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.default=Zn;var Jn=Xn(et),Yn=xe,Kn=/<(![a-zA-Z\s]+)>/;function Zn(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(Kn),r=t?t[1]:void 0;return(0,Yn.formatDOM)((0,Jn.default)(e),null,r)}var Fe={},X={},Le={},Qn=0;Le.SAME=Qn;var ei=1;Le.CAMELCASE=ei,Le.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1};const pr=0,Q=1,je=2,Ie=3,lt=4,hr=5,mr=6;function ti(e){return j.hasOwnProperty(e)?j[e]:null}function M(e,t,r,n,i,o,a){this.acceptsBooleans=t===je||t===Ie||t===lt,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}const j={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(e=>{j[e]=new M(e,pr,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{j[e]=new M(e,Q,!1,t,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(e=>{j[e]=new M(e,je,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{j[e]=new M(e,je,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{j[e]=new M(e,Ie,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(e=>{j[e]=new M(e,Ie,!0,e,null,!1,!1)}),["capture","download"].forEach(e=>{j[e]=new M(e,lt,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(e=>{j[e]=new M(e,mr,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(e=>{j[e]=new M(e,hr,!1,e.toLowerCase(),null,!1,!1)});const ct=/[\-\:]([a-z])/g,ut=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{const t=e.replace(ct,ut);j[t]=new M(t,Q,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{const t=e.replace(ct,ut);j[t]=new M(t,Q,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(e=>{const t=e.replace(ct,ut);j[t]=new M(t,Q,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(e=>{j[e]=new M(e,Q,!1,e.toLowerCase(),null,!1,!1)});const ri="xlinkHref";j[ri]=new M("xlinkHref",Q,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(e=>{j[e]=new M(e,Q,!1,e.toLowerCase(),null,!0,!0)});const{CAMELCASE:ni,SAME:ii,possibleStandardNames:gr}=Le,oi=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD"+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ai=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+oi+"]*$")),si=Object.keys(gr).reduce((e,t)=>{const r=gr[t];return r===ii?e[t]=t:r===ni?e[t.toLowerCase()]=t:e[t]=r,e},{});X.BOOLEAN=Ie,X.BOOLEANISH_STRING=je,X.NUMERIC=hr,X.OVERLOADED_BOOLEAN=lt,X.POSITIVE_NUMERIC=mr,X.RESERVED=pr,X.STRING=Q,X.getPropertyInfo=ti,X.isCustomAttribute=ai,X.possibleStandardNames=si;var ft={},dt={},yr=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,li=/\n/g,ci=/^\s*/,ui=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,fi=/^:\s*/,di=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,pi=/^[;\s]*/,hi=/^\s+|\s+$/g,mi=`
`,vr="/",Er="*",te="",gi="comment",yi="declaration",vi=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function i(m){var g=m.match(li);g&&(r+=g.length);var y=m.lastIndexOf(mi);n=~y?m.length-y:n+m.length}function o(){var m={line:r,column:n};return function(g){return g.position=new a(m),u(),g}}function a(m){this.start=m,this.end={line:r,column:n},this.source=t.source}a.prototype.content=e;function l(m){var g=new Error(t.source+":"+r+":"+n+": "+m);if(g.reason=m,g.filename=t.source,g.line=r,g.column=n,g.source=e,!t.silent)throw g}function f(m){var g=m.exec(e);if(g){var y=g[0];return i(y),e=e.slice(y.length),g}}function u(){f(ci)}function c(m){var g;for(m=m||[];g=p();)g!==!1&&m.push(g);return m}function p(){var m=o();if(!(vr!=e.charAt(0)||Er!=e.charAt(1))){for(var g=2;te!=e.charAt(g)&&(Er!=e.charAt(g)||vr!=e.charAt(g+1));)++g;if(g+=2,te===e.charAt(g-1))return l("End of comment missing");var y=e.slice(2,g-2);return n+=2,i(y),e=e.slice(g),n+=2,m({type:gi,comment:y})}}function _(){var m=o(),g=f(ui);if(g){if(p(),!f(fi))return l("property missing ':'");var y=f(di),C=m({type:yi,property:br(g[0].replace(yr,te)),value:y?br(y[0].replace(yr,te)):te});return f(pi),C}}function O(){var m=[];c(m);for(var g;g=_();)g!==!1&&(m.push(g),c(m));return m}return u(),O()};function br(e){return e?e.replace(hi,te):te}var Ei=D&&D.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(dt,"__esModule",{value:!0});var bi=Ei(vi);function _i(e,t){var r=null;if(!e||typeof e!="string")return r;var n=(0,bi.default)(e),i=typeof t=="function";return n.forEach(function(o){if(o.type==="declaration"){var a=o.property,l=o.value;i?t(a,l,o):l&&(r=r||{},r[a]=l)}}),r}dt.default=_i;var Me={};Object.defineProperty(Me,"__esModule",{value:!0}),Me.camelCase=void 0;var Si=/^--[a-zA-Z0-9-]+$/,Ti=/-([a-z])/g,wi=/^[^-]+$/,Ri=/^-(webkit|moz|ms|o|khtml)-/,Oi=/^-(ms)-/,Ci=function(e){return!e||wi.test(e)||Si.test(e)},Ai=function(e,t){return t.toUpperCase()},_r=function(e,t){return"".concat(t,"-")},Pi=function(e,t){return t===void 0&&(t={}),Ci(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(Oi,_r):e=e.replace(Ri,_r),e.replace(Ti,Ai))};Me.camelCase=Pi;var xi=D&&D.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},ki=xi(dt),Di=Me;function pt(e,t){var r={};return!e||typeof e!="string"||(0,ki.default)(e,function(n,i){n&&i&&(r[(0,Di.camelCase)(n,t)]=i)}),r}pt.default=pt;var Ni=pt;(function(e){var t=D&&D.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=void 0,e.isCustomComponent=o,e.setStyleProp=l;var r=Y,n=t(Ni),i=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function o(c,p){return c.includes("-")?!i.has(c):!!(p&&typeof p.is=="string")}var a={reactCompat:!0};function l(c,p){if(typeof c=="string"){if(!c.trim()){p.style={};return}try{p.style=(0,n.default)(c,a)}catch{p.style={}}}}e.PRESERVE_CUSTOM_ATTRIBUTES=Number(r.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var f=function(c){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(c.name)};e.canTextBeChildOfNode=f;var u=function(c){return c};e.returnFirstArg=u})(ft),Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.default=Ii;var ge=X,Sr=ft,Fi=["checked","value"],Li=["input","select","textarea"],ji={reset:!0,submit:!0};function Ii(e,t){e===void 0&&(e={});var r={},n=!!(e.type&&ji[e.type]);for(var i in e){var o=e[i];if((0,ge.isCustomAttribute)(i)){r[i]=o;continue}var a=i.toLowerCase(),l=Tr(a);if(l){var f=(0,ge.getPropertyInfo)(l);switch(Fi.includes(l)&&Li.includes(t)&&!n&&(l=Tr("default"+a)),r[l]=o,f&&f.type){case ge.BOOLEAN:r[l]=!0;break;case ge.OVERLOADED_BOOLEAN:o===""&&(r[l]=!0);break}continue}Sr.PRESERVE_CUSTOM_ATTRIBUTES&&(r[i]=o)}return(0,Sr.setStyleProp)(e.style,r),r}function Tr(e){return ge.possibleStandardNames[e]}var ht={},Mi=D&&D.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ht,"__esModule",{value:!0}),ht.default=wr;var mt=Y,Bi=Mi(Fe),ye=ft,Ui={cloneElement:mt.cloneElement,createElement:mt.createElement,isValidElement:mt.isValidElement};function wr(e,t){t===void 0&&(t={});for(var r=[],n=typeof t.replace=="function",i=t.transform||ye.returnFirstArg,o=t.library||Ui,a=o.cloneElement,l=o.createElement,f=o.isValidElement,u=e.length,c=0;c<u;c++){var p=e[c];if(n){var _=t.replace(p,c);if(f(_)){u>1&&(_=a(_,{key:_.key||c})),r.push(i(_,p,c));continue}}if(p.type==="text"){var O=!p.data.trim().length;if(O&&p.parent&&!(0,ye.canTextBeChildOfNode)(p.parent)||t.trim&&O)continue;r.push(i(p.data,p,c));continue}var m=p,g={};Hi(m)?((0,ye.setStyleProp)(m.attribs.style,m.attribs),g=m.attribs):m.attribs&&(g=(0,Bi.default)(m.attribs,m.name));var y=void 0;switch(p.type){case"script":case"style":p.children[0]&&(g.dangerouslySetInnerHTML={__html:p.children[0].data});break;case"tag":p.name==="textarea"&&p.children[0]?g.defaultValue=p.children[0].data:p.children&&p.children.length&&(y=wr(p.children,t));break;default:continue}u>1&&(g.key=c),r.push(i(l(p.name,g,y),p,c))}return r.length===1?r[0]:r}function Hi(e){return ye.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&(0,ye.isCustomComponent)(e.name,e.attribs)}(function(e){var t=D&&D.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=l;var r=t(Qe);e.htmlToDOM=r.default;var n=t(Fe);e.attributesToProps=n.default;var i=t(ht);e.domToReact=i.default;var o=nt;Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return o.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return o.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return o.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return o.Text}});var a={lowerCaseAttributeNames:!1};function l(f,u){if(typeof f!="string")throw new TypeError("First argument must be a string");return f?(0,i.default)((0,r.default)(f,(u==null?void 0:u.htmlparser2)||a),u):[]}})($t);const Rr=In($t),Vi=Rr.default||Rr;function Or(e,t){return function(){return e.apply(t,arguments)}}const{toString:zi}=Object.prototype,{getPrototypeOf:gt}=Object,Be=(e=>t=>{const r=zi.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),J=e=>(e=e.toLowerCase(),t=>Be(t)===e),Ue=e=>t=>typeof t===e,{isArray:se}=Array,ve=Ue("undefined");function qi(e){return e!==null&&!ve(e)&&e.constructor!==null&&!ve(e.constructor)&&$(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Cr=J("ArrayBuffer");function Wi(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Cr(e.buffer),t}const $i=Ue("string"),$=Ue("function"),Ar=Ue("number"),He=e=>e!==null&&typeof e=="object",Gi=e=>e===!0||e===!1,Ve=e=>{if(Be(e)!=="object")return!1;const t=gt(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Xi=J("Date"),Ji=J("File"),Yi=J("Blob"),Ki=J("FileList"),Zi=e=>He(e)&&$(e.pipe),Qi=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||$(e.append)&&((t=Be(e))==="formdata"||t==="object"&&$(e.toString)&&e.toString()==="[object FormData]"))},eo=J("URLSearchParams"),[to,ro,no,io]=["ReadableStream","Request","Response","Headers"].map(J),oo=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ee(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),se(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let l;for(n=0;n<a;n++)l=o[n],t.call(null,e[l],l,e)}}function Pr(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const re=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,xr=e=>!ve(e)&&e!==re;function yt(){const{caseless:e}=xr(this)&&this||{},t={},r=(n,i)=>{const o=e&&Pr(t,i)||i;Ve(t[o])&&Ve(n)?t[o]=yt(t[o],n):Ve(n)?t[o]=yt({},n):se(n)?t[o]=n.slice():t[o]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&Ee(arguments[n],r);return t}const ao=(e,t,r,{allOwnKeys:n}={})=>(Ee(t,(i,o)=>{r&&$(i)?e[o]=Or(i,r):e[o]=i},{allOwnKeys:n}),e),so=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),lo=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},co=(e,t,r,n)=>{let i,o,a;const l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!n||n(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=r!==!1&>(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},uo=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},fo=e=>{if(!e)return null;if(se(e))return e;let t=e.length;if(!Ar(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},po=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&>(Uint8Array)),ho=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=n.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},mo=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},go=J("HTMLFormElement"),yo=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),kr=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),vo=J("RegExp"),Dr=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Ee(r,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(n[o]=a||i)}),Object.defineProperties(e,n)},Eo=e=>{Dr(e,(t,r)=>{if($(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if($(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},bo=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return se(e)?n(e):n(String(e).split(t)),r},_o=()=>{},So=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,vt="ab