html-react-parser 6.1.2 → 6.1.4

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.
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).HTMLReactParser=t(e.React)}(this,function(e){"use strict";function t(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var i,o={},a={};function s(){if(i)return a;var e;i=1,Object.defineProperty(a,"__esModule",{value:!0}),function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(e||(e={})),e.Root,e.Text,e.Directive,e.Comment,e.Script,e.Style,e.Tag,e.CDATA,e.Doctype;class t{parent=null;prev=null;next=null;startIndex=null;endIndex=null;get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return f(this,e)}}class n extends t{data;constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}}class r extends n{type=e.Text;get nodeType(){return 3}}class o extends n{type=e.Comment;get nodeType(){return 8}}class s extends n{type=e.Directive;name;constructor(e,t){super(t),this.name=e}get nodeType(){return 1}"x-name";"x-publicId";"x-systemId"}class l extends t{children;constructor(e){super(),this.children=e}get firstChild(){return this.children[0]??null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}}class c extends l{type=e.CDATA;get nodeType(){return 4}}class u extends l{type=e.Root;get nodeType(){return 9}}class d extends l{name;attribs;type;constructor(t,n,r=[],i=("script"===t?e.Script:"style"===t?e.Style:e.Tag)){super(r),this.name=t,this.attribs=n,this.type=i}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>({name:e,value:this.attribs[e],namespace:this["x-attribsNamespace"]?.[e],prefix:this["x-attribsPrefix"]?.[e]}))}namespace;"x-attribsNamespace";"x-attribsPrefix"}function p(t){return(n=t).type===e.Tag||n.type===e.Script||n.type===e.Style;var n}function f(t,n=!1){let i;if(function(t){return t.type===e.Text}(t))i=new r(t.data);else if(function(t){return t.type===e.Comment}(t))i=new o(t.data);else if(p(t)){const e=n?h(t.children):[],r=new d(t.name,{...t.attribs},e);for(const t of e)t.parent=r;null!=t.namespace&&(r.namespace=t.namespace),t["x-attribsNamespace"]&&(r["x-attribsNamespace"]={...t["x-attribsNamespace"]}),t["x-attribsPrefix"]&&(r["x-attribsPrefix"]={...t["x-attribsPrefix"]}),i=r}else if(function(t){return t.type===e.CDATA}(t)){const e=n?h(t.children):[],r=new c(e);for(const t of e)t.parent=r;i=r}else if(function(t){return t.type===e.Root}(t)){const e=n?h(t.children):[],r=new u(e);for(const t of e)t.parent=r;t["x-mode"]&&(r["x-mode"]=t["x-mode"]),i=r}else{if(!function(t){return t.type===e.Directive}(t))throw new Error(`Not implemented yet: ${t.type}`);{const e=new s(t.name,t.data);null!=t["x-name"]&&(e["x-name"]=t["x-name"],e["x-publicId"]=t["x-publicId"],e["x-systemId"]=t["x-systemId"]),i=e}}return i.startIndex=t.startIndex,i.endIndex=t.endIndex,null!=t.sourceCodeLocation&&(i.sourceCodeLocation=t.sourceCodeLocation),i}function h(e){const t=e.map(e=>f(e,!0));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}var m=["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"].reduce(function(e,t){return e[t.toLowerCase()]=t,e},{}),g=new RegExp("\r","g"),y="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now().toString(),"__"),x=new RegExp(y,"g");function v(e){for(var t={},n=0,r=e.length;n<r;n++){var i=e[n];t[i.name]=i.value}return t}function b(e){var t=function(e){return m[e]}(e=e.toLowerCase());return t||e}function k(e,t){var n="<"+t,r=e.toLowerCase().indexOf(n);if(-1===r)return!1;var i=e[r+n.length];return">"===i||" "===i||"\t"===i||"\n"===i||"\r"===i||"/"===i}function w(e){return e.replace(x,"\r")}function T(e,t,n){var i,a,l,c;void 0===t&&(t=null);for(var u,p=[],f=0,h=e.length;f<h;f++){var m=e[f];switch(m.nodeType){case 1:var g=b(m.nodeName);(u=new d(g,v(m.attributes))).children=T("template"===g?m.content.childNodes:m.childNodes,u);break;case 3:u=new r(w(null!==(i=m.nodeValue)&&void 0!==i?i:""));break;case 8:u=new o(null!==(a=m.nodeValue)&&void 0!==a?a:"");break;default:continue}var y=null!==(l=p[f-1])&&void 0!==l?l:null;y&&(y.next=u),u.parent=t,u.prev=y,u.next=null,p.push(u)}return n&&((u=new s(n.substring(0,n.indexOf(" ")).toLowerCase(),n)).next=null!==(c=p[0])&&void 0!==c?c:null,u.parent=t,p.unshift(u),p[1]&&(p[1].prev=p[0])),p}var E="html",C="head",S="body",O=/<([a-zA-Z]+[0-9]?)/;function N(e,t){return t?t.createHTML(e):e}var P=function(e,t,n){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},A=function(e,t,n){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},I="object"==typeof window&&window.DOMParser;if("function"==typeof I){var _=new I;P=A=function(e,t,n){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),_.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var R=document.implementation.createHTMLDocument();P=function(e,t,n){if(t){var r=R.documentElement.querySelector(t);return r&&(r.innerHTML=N(e,n)),R}return R.documentElement.innerHTML=N(e,n),R}}var D,M="object"==typeof document&&document.createElement("template");M&&M.content&&(D=function(e,t){return M.innerHTML=N(e,t),M.content.childNodes});var L=function(){return document.createDocumentFragment().childNodes};function F(e,t){var n,r,i,o,a,s;e=function(e){return e.replace(g,y)}(e);var l=O.exec(e),c=null===(n=null==l?void 0:l[1])||void 0===n?void 0:n.toLowerCase();switch(c){case E:var u=A(e);if(!k(e,C))null===(r=null==(p=u.querySelector(C))?void 0:p.parentNode)||void 0===r||r.removeChild(p);if(!k(e,S))null===(i=null==(p=u.querySelector(S))?void 0:p.parentNode)||void 0===i||i.removeChild(p);return u.querySelectorAll(E);case C:case S:var d=P(e,void 0,t).querySelectorAll(c);return k(e,S)&&k(e,C)?null!==(a=null===(o=d[0].parentNode)||void 0===o?void 0:o.childNodes)&&void 0!==a?a:L():d;default:return D?D(e,t):null!==(s=null==(p=P(e,S,t).querySelector(S))?void 0:p.childNodes)&&void 0!==s?s:L();var p}}var j=/<(![a-zA-Z\s]+)>/;return a.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var n=j.exec(e),r=n?n[1]:void 0;return T(F(e,null==t?void 0:t.trustedTypePolicy),null,r)},a}var l,c,u={},d={},p={};function f(){if(l)return p;l=1;p.SAME=0;return p.CAMELCASE=1,p.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},p}var h,m,g,y,x,v,b,k={},w={};function T(){if(g)return w;g=1;var e=w&&w.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(w,"__esModule",{value:!0}),w.default=function(e,n){let r=null;if(!e||"string"!=typeof e)return r;const i=(0,t.default)(e),o="function"==typeof n;return i.forEach(e=>{if("declaration"!==e.type)return;const{property:t,value:i}=e;o?n(t,i,e):i&&(r=r||{},r[t]=i)}),r};const t=e(function(){if(m)return h;m=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,l="";function c(e){return e?e.replace(s,l):l}return h=function(s,u){if("string"!=typeof s)throw new TypeError("First argument must be a string");if(!s)return[];u=u||{};var d=1,p=1;function f(e){var n=e.match(t);n&&(d+=n.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function h(){var e={line:d,column:p};return function(t){return t.position=new m(e),x(),t}}function m(e){this.start=e,this.end={line:d,column:p},this.source=u.source}function g(e){var t=new Error(u.source+":"+d+":"+p+": "+e);if(t.reason=e,t.filename=u.source,t.line=d,t.column=p,t.source=s,!u.silent)throw t}function y(e){var t=e.exec(s);if(t){var n=t[0];return f(n),s=s.slice(n.length),t}}function x(){y(n)}function v(e){var t;for(e=e||[];t=b();)!1!==t&&e.push(t);return e}function b(){var e=h();if("/"==s.charAt(0)&&"*"==s.charAt(1)){for(var t=2;l!=s.charAt(t)&&("*"!=s.charAt(t)||"/"!=s.charAt(t+1));)++t;if(t+=2,l===s.charAt(t-1))return g("End of comment missing");var n=s.slice(2,t-2);return p+=2,f(n),s=s.slice(t),p+=2,e({type:"comment",comment:n})}}function k(){var t=h(),n=y(r);if(n){if(b(),!y(i))return g("property missing ':'");var s=y(o),u=t({type:"declaration",property:c(n[0].replace(e,l)),value:s?c(s[0].replace(e,l)):l});return y(a),u}}return m.prototype.content=s,x(),function(){var e,t=[];for(v(t);e=k();)!1!==e&&(t.push(e),v(t));return t}()}}());return w}function E(){if(x)return y;x=1;var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty;let a=T();var s,l;l=null!=(s=a)?e(i(s)):{},a=((e,i,a,s)=>{if(i&&"object"==typeof i||"function"==typeof i)for(var l,c=r(i),u=0,d=c.length;u<d;u++)l=c[u],o.call(e,l)||l===a||t(e,l,{get:(e=>i[e]).bind(null,l),enumerable:!(s=n(i,l))||s.enumerable});return e})(s&&s.__esModule?l:t(l,"default",{value:s,enumerable:!0}),s);const c=/^--[a-zA-Z0-9_-]+$/,u=/-([a-z])/g,d=/^[^-]+$/,p=/^-(webkit|moz|ms|o|khtml)-/,f=/^-(ms)-/,h=(e,t)=>t.toUpperCase(),m=(e,t)=>`${t}-`,g=(e,t={})=>(e=>!e||d.test(e)||c.test(e))(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(f,m):e.replace(p,m)).replace(u,h));return y=function(e,t){const n={};return e&&"string"==typeof e?((0,a.default)(e,(e,r)=>{e&&r&&(n[g(e,t)]=r)}),n):n}}function C(){return v||(v=1,function(t){var n=k&&k.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=function(e,t){if(!e.includes("-"))return Boolean(t&&"string"==typeof t.is);if(o.has(e))return!1;return!0},t.setStyleProp=function(e,t){if("string"!=typeof e)return;if(!e.trim())return void(t.style={});try{t.style=(0,i.default)(e,a)}catch(e){t.style={}}};const r=e,i=n(E()),o=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);const a={reactCompat:!0};t.PRESERVE_CUSTOM_ATTRIBUTES=Number(r.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);t.canTextBeChildOfNode=e=>!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name);t.returnFirstArg=e=>e}(k)),k}function S(){if(b)return u;b=1,Object.defineProperty(u,"__esModule",{value:!0}),u.default=function(a={},s){const l={},c=Boolean(a.type&&i[a.type]);for(const i in a){const u=a[i];if((0,e.isCustomAttribute)(i)){l[i]=u;continue}const d=i.toLowerCase();let p=o(d);if(p){const t=(0,e.getPropertyInfo)(p);switch(n.includes(p)&&r.includes(s)&&!c&&(p=o("default"+d)),l[p]=u,null==t?void 0:t.type){case e.BOOLEAN:l[p]=!0;break;case e.OVERLOADED_BOOLEAN:""===u&&(l[p]=!0)}continue}t.PRESERVE_CUSTOM_ATTRIBUTES&&(l[i]=u)}return(0,t.setStyleProp)(a.style,l),l};const e=function(){if(c)return d;function e(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}c=1;const t={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(n=>{t[n]=new e(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([n,r])=>{t[n]=new e(n,1,!1,r,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(n=>{t[n]=new e(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(n=>{t[n]=new e(n,2,!1,n,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(n=>{t[n]=new e(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(n=>{t[n]=new e(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(n=>{t[n]=new e(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(n=>{t[n]=new e(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(n=>{t[n]=new e(n,5,!1,n.toLowerCase(),null,!1,!1)});const n=/[\-\:]([a-z])/g,r=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(i=>{const o=i.replace(n,r);t[o]=new e(o,1,!1,i,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(i=>{const o=i.replace(n,r);t[o]=new e(o,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(i=>{const o=i.replace(n,r);t[o]=new e(o,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(n=>{t[n]=new e(n,1,!1,n.toLowerCase(),null,!1,!1)}),t.xlinkHref=new e("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(n=>{t[n]=new e(n,1,!1,n.toLowerCase(),null,!0,!0)});const{CAMELCASE:i,SAME:o,possibleStandardNames:a}=f(),s=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[: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]*$")),l=Object.keys(a).reduce((e,t)=>{const n=a[t];return n===o?e[t]=t:n===i?e[t.toLowerCase()]=t:e[t]=n,e},{});return d.BOOLEAN=3,d.BOOLEANISH_STRING=2,d.NUMERIC=5,d.OVERLOADED_BOOLEAN=4,d.POSITIVE_NUMERIC=6,d.RESERVED=0,d.STRING=1,d.getPropertyInfo=function(e){return t.hasOwnProperty(e)?t[e]:null},d.isCustomAttribute=s,d.possibleStandardNames=l,d}(),t=C(),n=["checked","value"],r=["input","select","textarea"],i={reset:!0,submit:!0};function o(t){return e.possibleStandardNames[t]}return u}var O,N={};!function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(O||(O={})),O.Root,O.Text,O.Directive,O.Comment,O.Script,O.Style,O.Tag,O.CDATA,O.Doctype;class P{parent=null;prev=null;next=null;startIndex=null;endIndex=null;get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return q(this,e)}}class A extends P{data;constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}}class I extends A{type=O.Text;get nodeType(){return 3}}class _ extends A{type=O.Comment;get nodeType(){return 8}}class R extends A{type=O.Directive;name;constructor(e,t){super(t),this.name=e}get nodeType(){return 1}"x-name";"x-publicId";"x-systemId"}class D extends P{children;constructor(e){super(),this.children=e}get firstChild(){return this.children[0]??null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}}class M extends D{type=O.CDATA;get nodeType(){return 4}}class L extends D{type=O.Root;get nodeType(){return 9}}class F extends D{name;attribs;type;constructor(e,t,n=[],r=("script"===e?O.Script:"style"===e?O.Style:O.Tag)){super(n),this.name=e,this.attribs=t,this.type=r}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>({name:e,value:this.attribs[e],namespace:this["x-attribsNamespace"]?.[e],prefix:this["x-attribsPrefix"]?.[e]}))}namespace;"x-attribsNamespace";"x-attribsPrefix"}function j(e){return(t=e).type===O.Tag||t.type===O.Script||t.type===O.Style;var t}function H(e){return e.type===O.CDATA}function z(e){return e.type===O.Text}function B(e){return e.type===O.Comment}function V(e){return e.type===O.Directive}function U(e){return e.type===O.Root}function q(e,t=!1){let n;if(z(e))n=new I(e.data);else if(B(e))n=new _(e.data);else if(j(e)){const r=t?X(e.children):[],i=new F(e.name,{...e.attribs},r);for(const e of r)e.parent=i;null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]={...e["x-attribsPrefix"]}),n=i}else if(H(e)){const r=t?X(e.children):[],i=new M(r);for(const e of r)e.parent=i;n=i}else if(U(e)){const r=t?X(e.children):[],i=new L(r);for(const e of r)e.parent=i;e["x-mode"]&&(i["x-mode"]=e["x-mode"]),n=i}else{if(!V(e))throw new Error(`Not implemented yet: ${e.type}`);{const t=new R(e.name,e.data);null!=e["x-name"]&&(t["x-name"]=e["x-name"],t["x-publicId"]=e["x-publicId"],t["x-systemId"]=e["x-systemId"]),n=t}}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function X(e){const t=e.map(e=>q(e,!0));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}const W={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class G{dom=[];root=new L(this.dom);callback;options;elementCB;done=!1;tagStack=[this.root];lastNode=null;parser=null;constructor(e,t,n){"function"==typeof t&&(n=t,t=W),"object"==typeof e&&(t=e,e=void 0),this.callback=e??null,this.options=t??W,this.elementCB=n??null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new L(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(e){this.handleCallback(e)}onclosetag(){this.lastNode=null;const e=this.tagStack.pop();this.options.withEndIndices&&this.parser&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)}onopentag(e,t){const n=this.options.xmlMode?O.Tag:void 0,r=new F(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)}ontext(e){const{lastNode:t}=this;if(t&&t.type===O.Text)t.data+=e,this.options.withEndIndices&&this.parser&&(t.endIndex=this.parser.endIndex);else{const t=new I(e);this.addNode(t),this.lastNode=t}}oncomment(e){if(this.lastNode&&this.lastNode.type===O.Comment)return void(this.lastNode.data+=e);const t=new _(e);this.addNode(t),this.lastNode=t}oncommentend(){this.lastNode=null}oncdatastart(){const e=new I(""),t=new M([e]);this.addNode(t),e.parent=t,this.lastNode=e}oncdataend(){this.lastNode=null}onprocessinginstruction(e,t){const n=new R(e,t);this.addNode(n)}handleCallback(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e}addNode(e){const t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&this.parser&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&this.parser&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null}}var Y,$,Z=r(Object.freeze({__proto__:null,CDATA:M,Comment:_,DataNode:A,Document:L,DomHandler:G,Element:F,Node:P,NodeWithChildren:D,ProcessingInstruction:R,Text:I,cloneNode:q,default:G,hasChildren:function(e){return Object.hasOwn(e,"children")},isCDATA:H,isComment:B,isDirective:V,isDocument:U,isTag:j,isText:z}));function K(){if(Y)return N;Y=1;var t=N&&N.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(N,"__esModule",{value:!0}),N.default=function e(t,n={}){var r,c,u,d,p;const f=[],h="function"==typeof n.replace,m=null!==(r=n.transform)&&void 0!==r?r:o.returnFirstArg,{cloneElement:g,createElement:y,isValidElement:x}=null!==(c=n.library)&&void 0!==c?c:a,v=t.length;s(t);for(let r=0;r<v;r++){const a=t[r];if(h){let e=null===(u=n.replace)||void 0===u?void 0:u.call(n,a,r);if(x(e)){v>1&&(e=g(e,{key:null!==(d=e.key)&&void 0!==d?d:r})),f.push(m(e,a,r));continue}}if("text"===a.type){const e=!a.data.trim().length;if(e&&a.parent&&!(0,o.canTextBeChildOfNode)(a.parent))continue;if(n.trim&&e)continue;f.push(m(a.data,a,r));continue}const s=a;let c,b={};switch(l(s)?((0,o.setStyleProp)(s.attribs.style,s.attribs),b=s.attribs):s.attribs&&(b=(0,i.default)(s.attribs,s.name)),a.type){case"script":case"style":a.children[0]&&(b.dangerouslySetInnerHTML={__html:a.children[0].data});break;case"tag":"textarea"===a.name&&a.children[0]?b.defaultValue=a.children[0].data:(null===(p=a.children)||void 0===p?void 0:p.length)&&(c=e(a.children,n));break;default:continue}v>1&&(b.key=r),f.push(m(y(a.name,b,c),a,r))}return 1===f.length?f[0]:f};const n=Z,r=e,i=t(S()),o=C(),a={cloneElement:r.cloneElement,createElement:r.createElement,isValidElement:r.isValidElement};function s(e){for(const t of e)"tag"!==t.type&&"script"!==t.type&&"style"!==t.type||(Object.setPrototypeOf(t,n.Element.prototype),s(t.children))}function l(e){return o.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,o.isCustomComponent)(e.name,e.attribs)}return N}var J=($||($=1,function(e){var t=o&&o.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=function(e,t){var r;if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];const o=Object.assign(Object.assign({},null!==(r=null==t?void 0:t.htmlparser2)&&void 0!==r?r:l),{trustedTypePolicy:null==t?void 0:t.trustedTypePolicy});return(0,i.default)((0,n.default)(e,o),t)};const n=t(s());e.htmlToDOM=n.default;const r=t(S());e.attributesToProps=r.default;const i=t(K());e.domToReact=i.default;var a=Z;Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return a.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return a.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return a.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return a.Text}});const l={lowerCaseAttributeNames:!1}}(o)),o),Q=n(J),ee=t({__proto__:null,default:Q},[J]);const te=Q;return Object.assign(te,ee),te});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).HTMLReactParser=t(e.React)}(this,function(e){"use strict";function t(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch(e){}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var o,i,a={},s={},l={},c={};!function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(i||(i={})),i.Root,i.Text,i.Directive,i.Comment,i.Script,i.Style,i.Tag,i.CDATA,i.Doctype;class u{parent=null;prev=null;next=null;startIndex=null;endIndex=null;get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return O(this,e)}}class d extends u{data;constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}}class p extends d{type=i.Text;get nodeType(){return 3}}class f extends d{type=i.Comment;get nodeType(){return 8}}class h extends d{type=i.Directive;name;constructor(e,t){super(t),this.name=e}get nodeType(){return 1}"x-name";"x-publicId";"x-systemId"}class m extends u{children;constructor(e){super(),this.children=e}get firstChild(){return this.children[0]??null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}}class g extends m{type=i.CDATA;get nodeType(){return 4}}class y extends m{type=i.Root;get nodeType(){return 9}}class x extends m{name;attribs;type;constructor(e,t,n=[],r=("script"===e?i.Script:"style"===e?i.Style:i.Tag)){super(n),this.name=e,this.attribs=t,this.type=r}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>({name:e,value:this.attribs[e],namespace:this["x-attribsNamespace"]?.[e],prefix:this["x-attribsPrefix"]?.[e]}))}namespace;"x-attribsNamespace";"x-attribsPrefix"}function b(e){return(t=e).type===i.Tag||t.type===i.Script||t.type===i.Style;var t}function v(e){return e.type===i.CDATA}function k(e){return e.type===i.Text}function w(e){return e.type===i.Comment}function E(e){return e.type===i.Directive}function T(e){return e.type===i.Root}function O(e,t=!1){let n;if(k(e))n=new p(e.data);else if(w(e))n=new f(e.data);else if(b(e)){const r=t?S(e.children):[],o=new x(e.name,{...e.attribs},r);for(const e of r)e.parent=o;null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]={...e["x-attribsPrefix"]}),n=o}else if(v(e)){const r=t?S(e.children):[],o=new g(r);for(const e of r)e.parent=o;n=o}else if(T(e)){const r=t?S(e.children):[],o=new y(r);for(const e of r)e.parent=o;e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else{if(!E(e))throw new Error(`Not implemented yet: ${e.type}`);{const t=new h(e.name,e.data);null!=e["x-name"]&&(t["x-name"]=e["x-name"],t["x-publicId"]=e["x-publicId"],t["x-systemId"]=e["x-systemId"]),n=t}}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function S(e){const t=e.map(e=>O(e,!0));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}const C={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class N{dom=[];root=new y(this.dom);callback;options;elementCB;done=!1;tagStack=[this.root];lastNode=null;parser=null;constructor(e,t,n){"function"==typeof t&&(n=t,t=C),"object"==typeof e&&(t=e,e=void 0),this.callback=e??null,this.options=t??C,this.elementCB=n??null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new y(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(e){this.handleCallback(e)}onclosetag(){this.lastNode=null;const e=this.tagStack.pop();this.options.withEndIndices&&this.parser&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)}onopentag(e,t){const n=this.options.xmlMode?i.Tag:void 0,r=new x(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)}ontext(e){const{lastNode:t}=this;if(t&&t.type===i.Text)t.data+=e,this.options.withEndIndices&&this.parser&&(t.endIndex=this.parser.endIndex);else{const t=new p(e);this.addNode(t),this.lastNode=t}}oncomment(e){if(this.lastNode&&this.lastNode.type===i.Comment)return void(this.lastNode.data+=e);const t=new f(e);this.addNode(t),this.lastNode=t}oncommentend(){this.lastNode=null}oncdatastart(){const e=new p(""),t=new g([e]);this.addNode(t),e.parent=t,this.lastNode=e}oncdataend(){this.lastNode=null}onprocessinginstruction(e,t){const n=new h(e,t);this.addNode(n)}handleCallback(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e}addNode(e){const t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&this.parser&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&this.parser&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null}}var P,A=r(Object.freeze({__proto__:null,CDATA:g,Comment:f,DataNode:d,Document:y,DomHandler:N,Element:x,Node:u,NodeWithChildren:m,ProcessingInstruction:h,Text:p,cloneNode:O,default:N,hasChildren:function(e){return Object.hasOwn(e,"children")},isCDATA:v,isComment:w,isDirective:E,isDocument:T,isTag:b,isText:k}));function _(){if(P)return l;P=1;const e=function(){if(o)return c;o=1;const e=["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"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{});return c.CASE_SENSITIVE_TAG_NAMES_MAP=e,c}();let t=A;const n=new RegExp("\r","g"),r=`__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_${Date.now().toString()}__`,i=new RegExp(r,"g");function a(e){const t={};let n=0;const r=e.length;for(;n<r;n++){const r=e[n];t[r.name]=r.value}return t}function s(t){const n=function(t){return e.CASE_SENSITIVE_TAG_NAMES_MAP[t]}(t=t.toLowerCase());return n||t}function u(e){return e.replace(i,"\r")}return l.escapeSpecialCharacters=function(e){return e.replace(n,r)},l.formatDOM=function e(n,r=null,o){const i=[];let l,c=0;const d=n.length;for(;c<d;c++){const o=n[c];switch(o.nodeType){case 1:{const n=s(o.nodeName);l=new t.Element(n,a(o.attributes)),l.children=e("template"===n?o.content.childNodes:o.childNodes,l);break}case 3:l=new t.Text(u(o.nodeValue??""));break;case 8:l=new t.Comment(o.nodeValue??"");break;default:continue}const d=i[c-1]??null;d&&(d.next=l),l.parent=r,l.prev=d,l.next=null,i.push(l)}return o&&(l=new t.ProcessingInstruction(o.substring(0,o.indexOf(" ")).toLowerCase(),o),l.next=i[0]??null,l.parent=r,i.unshift(l),i[1]&&(i[1].prev=i[0])),i},l.hasOpenTag=function(e,t){const n="<"+t,r=e.toLowerCase().indexOf(n);if(-1===r)return!1;const o=e[r+n.length];return">"===o||" "===o||"\t"===o||"\n"===o||"\r"===o||"/"===o},l}var M,I,R={};function L(){return I||(I=1,function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=_(),n=function(){if(M)return R;M=1;const e=_(),t="html",n="head",r="body",o=/<([a-zA-Z]+[0-9]?)/;function i(e,t){return t?t.createHTML(e):e}let a=(e,t,n)=>{throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},s=(e,t,n)=>{throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};const l="object"==typeof window&&window.DOMParser;if("function"==typeof l){const e=new l,t="text/html";s=(n,r,o)=>(r&&(n=`<${r}>${n}</${r}>`),e.parseFromString(n,t)),a=s}if("object"==typeof document&&document.implementation){const e=document.implementation.createHTMLDocument();a=function(t,n,r){if(n){const o=e.documentElement.querySelector(n);return o&&(o.innerHTML=i(t,r)),e}return e.documentElement.innerHTML=i(t,r),e}}const c="object"==typeof document&&document.createElement("template");let u;c&&c.content&&(u=(e,t)=>(c.innerHTML=i(e,t),c.content.childNodes));const d=()=>document.createDocumentFragment().childNodes;return R.default=function(i,l){i=e.escapeSpecialCharacters(i);const c=o.exec(i)?.[1]?.toLowerCase();switch(c){case t:{const o=s(i);if(!e.hasOpenTag(i,n)){const e=o.querySelector(n);e?.parentNode?.removeChild(e)}if(!e.hasOpenTag(i,r)){const e=o.querySelector(r);e?.parentNode?.removeChild(e)}return o.querySelectorAll(t)}case n:case r:{const t=a(i,void 0,l).querySelectorAll(c);return e.hasOpenTag(i,r)&&e.hasOpenTag(i,n)?t[0].parentNode?.childNodes??d():t}default:return u?u(i,l):a(i,r,l).querySelector(r)?.childNodes??d()}},R}(),r=/<(![a-zA-Z\s]+)>/;e.default=function(e,o){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];const i=r.exec(e),a=i?i[1]:void 0;return t.formatDOM(n.default(e,o?.trustedTypePolicy),null,a)}}(s)),s}var D,j,F={},H={},z={};function B(){if(D)return z;D=1;z.SAME=0;return z.CAMELCASE=1,z.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},z}var V,U,q,X,W,G,$,Y,Z={};function K(){if(X)return q;X=1;var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,o=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty;let a=function(){if(U)return V;U=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,l="";function c(e){return e?e.replace(s,l):l}return V=function(s,u){if("string"!=typeof s)throw new TypeError("First argument must be a string");if(!s)return[];u=u||{};var d=1,p=1;function f(e){var n=e.match(t);n&&(d+=n.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function h(){var e={line:d,column:p};return function(t){return t.position=new m(e),x(),t}}function m(e){this.start=e,this.end={line:d,column:p},this.source=u.source}function g(e){var t=new Error(u.source+":"+d+":"+p+": "+e);if(t.reason=e,t.filename=u.source,t.line=d,t.column=p,t.source=s,!u.silent)throw t}function y(e){var t=e.exec(s);if(t){var n=t[0];return f(n),s=s.slice(n.length),t}}function x(){y(n)}function b(e){var t;for(e=e||[];t=v();)!1!==t&&e.push(t);return e}function v(){var e=h();if("/"==s.charAt(0)&&"*"==s.charAt(1)){for(var t=2;l!=s.charAt(t)&&("*"!=s.charAt(t)||"/"!=s.charAt(t+1));)++t;if(t+=2,l===s.charAt(t-1))return g("End of comment missing");var n=s.slice(2,t-2);return p+=2,f(n),s=s.slice(t),p+=2,e({type:"comment",comment:n})}}function k(){var t=h(),n=y(r);if(n){if(v(),!y(o))return g("property missing ':'");var s=y(i),u=t({type:"declaration",property:c(n[0].replace(e,l)),value:s?c(s[0].replace(e,l)):l});return y(a),u}}return m.prototype.content=s,x(),function(){var e,t=[];for(b(t);e=k();)!1!==e&&(t.push(e),b(t));return t}()}}();var s,l;return l=null!=(s=a)?e(o(s)):{},a=((e,o,a,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(var l,c=r(o),u=0,d=c.length;u<d;u++)l=c[u],i.call(e,l)||l===a||t(e,l,{get:(e=>o[e]).bind(null,l),enumerable:!(s=n(o,l))||s.enumerable});return e})(s&&s.__esModule?l:t(l,"default",{value:s,enumerable:!0}),s),q=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;const r=(0,a.default)(e),o="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;const{property:r,value:i}=e;o?t(r,i,e):i&&(n=n??{},n[r]=i)}),n}}function J(){if(G)return W;G=1;var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,o=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty;let a=K();var s,l;l=null!=(s=a)?e(o(s)):{},a=((e,o,a,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(var l,c=r(o),u=0,d=c.length;u<d;u++)l=c[u],i.call(e,l)||l===a||t(e,l,{get:(e=>o[e]).bind(null,l),enumerable:!(s=n(o,l))||s.enumerable});return e})(s&&s.__esModule?l:t(l,"default",{value:s,enumerable:!0}),s);const c=/^--[a-zA-Z0-9_-]+$/,u=/-([a-z])/g,d=/^[^-]+$/,p=/^-(webkit|moz|ms|o|khtml)-/,f=/^-(ms)-/,h=(e,t)=>t.toUpperCase(),m=(e,t)=>`${t}-`,g=(e,t={})=>(e=>!e||d.test(e)||c.test(e))(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(f,m):e.replace(p,m)).replace(u,h));return W=function(e,t){const n={};return e&&"string"==typeof e?((0,a.default)(e,(e,r)=>{e&&r&&(n[g(e,t)]=r)}),n):n}}function Q(){return $||($=1,function(t){var n=Z&&Z.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=function(e,t){if(!e.includes("-"))return Boolean(t&&"string"==typeof t.is);if(i.has(e))return!1;return!0},t.setStyleProp=function(e,t){if("string"!=typeof e)return;if(!e.trim())return void(t.style={});try{t.style=(0,o.default)(e,a)}catch(e){t.style={}}};const r=e,o=n(J()),i=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);const a={reactCompat:!0};t.PRESERVE_CUSTOM_ATTRIBUTES=Number(r.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);t.canTextBeChildOfNode=e=>!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name);t.returnFirstArg=e=>e}(Z)),Z}function ee(){if(Y)return F;Y=1,Object.defineProperty(F,"__esModule",{value:!0}),F.default=function(a={},s){const l={},c=Boolean(a.type&&o[a.type]);for(const o in a){const u=a[o];if((0,e.isCustomAttribute)(o)){l[o]=u;continue}const d=o.toLowerCase();let p=i(d);if(p){const t=(0,e.getPropertyInfo)(p);switch(n.includes(p)&&r.includes(s)&&!c&&(p=i("default"+d)),l[p]=u,null==t?void 0:t.type){case e.BOOLEAN:l[p]=!0;break;case e.OVERLOADED_BOOLEAN:""===u&&(l[p]=!0)}continue}t.PRESERVE_CUSTOM_ATTRIBUTES&&(l[o]=u)}return(0,t.setStyleProp)(a.style,l),l};const e=function(){if(j)return H;function e(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}j=1;const t={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(n=>{t[n]=new e(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([n,r])=>{t[n]=new e(n,1,!1,r,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(n=>{t[n]=new e(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(n=>{t[n]=new e(n,2,!1,n,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(n=>{t[n]=new e(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(n=>{t[n]=new e(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(n=>{t[n]=new e(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(n=>{t[n]=new e(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(n=>{t[n]=new e(n,5,!1,n.toLowerCase(),null,!1,!1)});const n=/[\-\:]([a-z])/g,r=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(o=>{const i=o.replace(n,r);t[i]=new e(i,1,!1,o,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(o=>{const i=o.replace(n,r);t[i]=new e(i,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(o=>{const i=o.replace(n,r);t[i]=new e(i,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(n=>{t[n]=new e(n,1,!1,n.toLowerCase(),null,!1,!1)}),t.xlinkHref=new e("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(n=>{t[n]=new e(n,1,!1,n.toLowerCase(),null,!0,!0)});const{CAMELCASE:o,SAME:i,possibleStandardNames:a}=B(),s=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[: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]*$")),l=Object.keys(a).reduce((e,t)=>{const n=a[t];return n===i?e[t]=t:n===o?e[t.toLowerCase()]=t:e[t]=n,e},{});return H.BOOLEAN=3,H.BOOLEANISH_STRING=2,H.NUMERIC=5,H.OVERLOADED_BOOLEAN=4,H.POSITIVE_NUMERIC=6,H.RESERVED=0,H.STRING=1,H.getPropertyInfo=function(e){return t.hasOwnProperty(e)?t[e]:null},H.isCustomAttribute=s,H.possibleStandardNames=l,H}(),t=Q(),n=["checked","value"],r=["input","select","textarea"],o={reset:!0,submit:!0};function i(t){return e.possibleStandardNames[t]}return F}var te,ne,re={};function oe(){if(te)return re;te=1;var t=re&&re.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(re,"__esModule",{value:!0}),re.default=function e(t,n={}){var r,c,u,d,p;const f=[],h="function"==typeof n.replace,m=null!==(r=n.transform)&&void 0!==r?r:i.returnFirstArg,{cloneElement:g,createElement:y,isValidElement:x}=null!==(c=n.library)&&void 0!==c?c:a,b=t.length;s(t);for(let r=0;r<b;r++){const a=t[r];if(h){let e=null===(u=n.replace)||void 0===u?void 0:u.call(n,a,r);if(x(e)){b>1&&(e=g(e,{key:null!==(d=e.key)&&void 0!==d?d:r})),f.push(m(e,a,r));continue}}if("text"===a.type){const e=!a.data.trim().length;if(e&&a.parent&&!(0,i.canTextBeChildOfNode)(a.parent))continue;if(n.trim&&e)continue;f.push(m(a.data,a,r));continue}const s=a;let c,v={};switch(l(s)?((0,i.setStyleProp)(s.attribs.style,s.attribs),v=s.attribs):s.attribs&&(v=(0,o.default)(s.attribs,s.name)),a.type){case"script":case"style":a.children[0]&&(v.dangerouslySetInnerHTML={__html:a.children[0].data});break;case"tag":"textarea"===a.name&&a.children[0]?v.defaultValue=a.children[0].data:(null===(p=a.children)||void 0===p?void 0:p.length)&&(c=e(a.children,n));break;default:continue}b>1&&(v.key=r),f.push(m(y(a.name,v,c),a,r))}return 1===f.length?f[0]:f};const n=A,r=e,o=t(ee()),i=Q(),a={cloneElement:r.cloneElement,createElement:r.createElement,isValidElement:r.isValidElement};function s(e){for(const t of e)"tag"!==t.type&&"script"!==t.type&&"style"!==t.type||(Object.setPrototypeOf(t,n.Element.prototype),s(t.children))}function l(e){return i.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,i.isCustomComponent)(e.name,e.attribs)}return re}var ie=(ne||(ne=1,function(e){var t=a&&a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=function(e,t){var r;if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];const i=Object.assign(Object.assign({},null!==(r=null==t?void 0:t.htmlparser2)&&void 0!==r?r:s),{trustedTypePolicy:null==t?void 0:t.trustedTypePolicy});return(0,o.default)((0,n.default)(e,i),t)};const n=t(L());e.htmlToDOM=n.default;const r=t(ee());e.attributesToProps=r.default;const o=t(oe());e.domToReact=o.default;var i=A;Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return i.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return i.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return i.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return i.Text}});const s={lowerCaseAttributeNames:!1}}(a)),a),ae=n(ie),se=t({__proto__:null,default:ae},[ie]);const le=ae;return Object.assign(le,se),le});
2
2
  //# sourceMappingURL=html-react-parser.min.js.map