Files
chinese-family-tree-2/.next/static/chunks/17d171b4b84f176e.js
T
freedakgmail e44dd0bd95 0.0.8.0
2025-11-23 18:03:04 +08:00

1 line
22 KiB
JavaScript

(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,74799,e=>{"use strict";let{entries:t,setPrototypeOf:n,isFrozen:o,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object,{freeze:a,seal:l,create:c}=Object,{apply:s,construct:u}="undefined"!=typeof Reflect&&Reflect;a||(a=function(e){return e}),l||(l=function(e){return e}),s||(s=function(e,t){for(var n=arguments.length,o=Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return e.apply(t,o)}),u||(u=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return new e(...n)});let m=w(Array.prototype.forEach),p=w(Array.prototype.lastIndexOf),f=w(Array.prototype.pop),d=w(Array.prototype.push),h=w(Array.prototype.splice),g=w(String.prototype.toLowerCase),T=w(String.prototype.toString),y=w(String.prototype.match),A=w(String.prototype.replace),E=w(String.prototype.indexOf),_=w(String.prototype.trim),b=w(Object.prototype.hasOwnProperty),S=w(RegExp.prototype.test),N=($=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return u($,t)});function w(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return s(e,t,o)}}function v(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;n&&n(e,null);let i=t.length;for(;i--;){let n=t[i];if("string"==typeof n){let e=r(n);e!==n&&(o(t)||(t[i]=e),n=e)}e[n]=!0}return e}function C(e){let n=c(null);for(let[o,r]of t(e))b(e,o)&&(Array.isArray(r)?n[o]=function(e){for(let t=0;t<e.length;t++)b(e,t)||(e[t]=null);return e}(r):r&&"object"==typeof r&&r.constructor===Object?n[o]=C(r):n[o]=r);return n}function R(e,t){for(;null!==e;){let n=i(e,t);if(n){if(n.get)return w(n.get);if("function"==typeof n.value)return w(n.value)}e=r(e)}return function(){return null}}let D=a(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),k=a(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),O=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),L=a(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),x=a(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),I=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),M=a(["#text"]),U=a(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),P=a(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),z=a(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),H=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),F=l(/\{\{[\w\W]*|[\w\W]*\}\}/gm),G=l(/<%[\w\W]*|[\w\W]*%>/gm),W=l(/\$\{[\w\W]*/gm),B=l(/^data-[\-\w.\u00B7-\uFFFF]+$/),Y=l(/^aria-[\-\w]+$/),j=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=l(/^(?:\w+script|data):/i),K=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=l(/^html$/i);var $,V=Object.freeze({__proto__:null,ARIA_ATTR:Y,ATTR_WHITESPACE:K,CUSTOM_ELEMENT:l(/^[a-z][.\w]*(-[.\w]+)+$/i),DATA_ATTR:B,DOCTYPE_NAME:X,ERB_EXPR:G,IS_ALLOWED_URI:j,IS_SCRIPT_OR_DATA:q,MUSTACHE_EXPR:F,TMPLIT_EXPR:W});let Z=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null,o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));let r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}},J=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};var Q=function e(){let n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,r=t=>e(t);if(r.version="3.3.0",r.removed=[],!o||!o.document||9!==o.document.nodeType||!o.Element)return r.isSupported=!1,r;let{document:i}=o,l=i,s=l.currentScript,{DocumentFragment:u,HTMLTemplateElement:w,Node:F,Element:G,NodeFilter:W,NamedNodeMap:B=o.NamedNodeMap||o.MozNamedAttrMap,HTMLFormElement:Y,DOMParser:q,trustedTypes:K}=o,$=G.prototype,Q=R($,"cloneNode"),ee=R($,"remove"),et=R($,"nextSibling"),en=R($,"childNodes"),eo=R($,"parentNode");if("function"==typeof w){let e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let er="",{implementation:ei,createNodeIterator:ea,createDocumentFragment:el,getElementsByTagName:ec}=i,{importNode:es}=l,eu=J();r.isSupported="function"==typeof t&&"function"==typeof eo&&ei&&void 0!==ei.createHTMLDocument;let{MUSTACHE_EXPR:em,ERB_EXPR:ep,TMPLIT_EXPR:ef,DATA_ATTR:ed,ARIA_ATTR:eh,IS_SCRIPT_OR_DATA:eg,ATTR_WHITESPACE:eT,CUSTOM_ELEMENT:ey}=V,{IS_ALLOWED_URI:eA}=V,eE=null,e_=v({},[...D,...k,...O,...x,...M]),eb=null,eS=v({},[...U,...P,...z,...H]),eN=Object.seal(c(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ew=null,ev=null,eC=Object.seal(c(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),eR=!0,eD=!0,ek=!1,eO=!0,eL=!1,ex=!0,eI=!1,eM=!1,eU=!1,eP=!1,ez=!1,eH=!1,eF=!0,eG=!1,eW=!0,eB=!1,eY={},ej=null,eq=v({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),eK=null,eX=v({},["audio","video","img","source","image","track"]),e$=null,eV=v({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eZ="http://www.w3.org/1998/Math/MathML",eJ="http://www.w3.org/2000/svg",eQ="http://www.w3.org/1999/xhtml",e0=eQ,e1=!1,e2=null,e9=v({},[eZ,eJ,eQ],T),e3=v({},["mi","mo","mn","ms","mtext"]),e7=v({},["annotation-xml"]),e8=v({},["title","style","font","a","script"]),e4=null,e5=["application/xhtml+xml","text/html"],e6=null,te=null,tt=i.createElement("form"),tn=function(e){return e instanceof RegExp||e instanceof Function},to=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!te||te!==e){if(e&&"object"==typeof e||(e={}),e=C(e),e6="application/xhtml+xml"===(e4=-1===e5.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?T:g,eE=b(e,"ALLOWED_TAGS")?v({},e.ALLOWED_TAGS,e6):e_,eb=b(e,"ALLOWED_ATTR")?v({},e.ALLOWED_ATTR,e6):eS,e2=b(e,"ALLOWED_NAMESPACES")?v({},e.ALLOWED_NAMESPACES,T):e9,e$=b(e,"ADD_URI_SAFE_ATTR")?v(C(eV),e.ADD_URI_SAFE_ATTR,e6):eV,eK=b(e,"ADD_DATA_URI_TAGS")?v(C(eX),e.ADD_DATA_URI_TAGS,e6):eX,ej=b(e,"FORBID_CONTENTS")?v({},e.FORBID_CONTENTS,e6):eq,ew=b(e,"FORBID_TAGS")?v({},e.FORBID_TAGS,e6):C({}),ev=b(e,"FORBID_ATTR")?v({},e.FORBID_ATTR,e6):C({}),eY=!!b(e,"USE_PROFILES")&&e.USE_PROFILES,eR=!1!==e.ALLOW_ARIA_ATTR,eD=!1!==e.ALLOW_DATA_ATTR,ek=e.ALLOW_UNKNOWN_PROTOCOLS||!1,eO=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,eL=e.SAFE_FOR_TEMPLATES||!1,ex=!1!==e.SAFE_FOR_XML,eI=e.WHOLE_DOCUMENT||!1,eP=e.RETURN_DOM||!1,ez=e.RETURN_DOM_FRAGMENT||!1,eH=e.RETURN_TRUSTED_TYPE||!1,eU=e.FORCE_BODY||!1,eF=!1!==e.SANITIZE_DOM,eG=e.SANITIZE_NAMED_PROPS||!1,eW=!1!==e.KEEP_CONTENT,eB=e.IN_PLACE||!1,eA=e.ALLOWED_URI_REGEXP||j,e0=e.NAMESPACE||eQ,e3=e.MATHML_TEXT_INTEGRATION_POINTS||e3,e7=e.HTML_INTEGRATION_POINTS||e7,eN=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&tn(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(eN.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&tn(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(eN.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(eN.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),eL&&(eD=!1),ez&&(eP=!0),eY&&(eE=v({},M),eb=[],!0===eY.html&&(v(eE,D),v(eb,U)),!0===eY.svg&&(v(eE,k),v(eb,P),v(eb,H)),!0===eY.svgFilters&&(v(eE,O),v(eb,P),v(eb,H)),!0===eY.mathMl&&(v(eE,x),v(eb,z),v(eb,H))),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?eC.tagCheck=e.ADD_TAGS:(eE===e_&&(eE=C(eE)),v(eE,e.ADD_TAGS,e6))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?eC.attributeCheck=e.ADD_ATTR:(eb===eS&&(eb=C(eb)),v(eb,e.ADD_ATTR,e6))),e.ADD_URI_SAFE_ATTR&&v(e$,e.ADD_URI_SAFE_ATTR,e6),e.FORBID_CONTENTS&&(ej===eq&&(ej=C(ej)),v(ej,e.FORBID_CONTENTS,e6)),eW&&(eE["#text"]=!0),eI&&v(eE,["html","head","body"]),eE.table&&(v(eE,["tbody"]),delete ew.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw N('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw N('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');er=(n=e.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===n&&(n=Z(K,s)),null!==n&&"string"==typeof er&&(er=n.createHTML(""));a&&a(e),te=e}},tr=v({},[...k,...O,...L]),ti=v({},[...x,...I]),ta=function(e){let t=eo(e);t&&t.tagName||(t={namespaceURI:e0,tagName:"template"});let n=g(e.tagName),o=g(t.tagName);return!!e2[e.namespaceURI]&&(e.namespaceURI===eJ?t.namespaceURI===eQ?"svg"===n:t.namespaceURI===eZ?"svg"===n&&("annotation-xml"===o||e3[o]):!!tr[n]:e.namespaceURI===eZ?t.namespaceURI===eQ?"math"===n:t.namespaceURI===eJ?"math"===n&&e7[o]:!!ti[n]:e.namespaceURI===eQ?(t.namespaceURI!==eJ||!!e7[o])&&(t.namespaceURI!==eZ||!!e3[o])&&!ti[n]&&(e8[n]||!tr[n]):"application/xhtml+xml"===e4&&!!e2[e.namespaceURI])},tl=function(e){d(r.removed,{element:e});try{eo(e).removeChild(e)}catch(t){ee(e)}},tc=function(e,t){try{d(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){d(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(eP||ez)try{tl(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ts=function(e){let t=null,o=null;if(eU)e="<remove></remove>"+e;else{let t=y(e,/^[\r\n\t ]+/);o=t&&t[0]}"application/xhtml+xml"===e4&&e0===eQ&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let r=n?n.createHTML(e):e;if(e0===eQ)try{t=new q().parseFromString(r,e4)}catch(e){}if(!t||!t.documentElement){t=ei.createDocument(e0,"template",null);try{t.documentElement.innerHTML=e1?er:r}catch(e){}}let a=t.body||t.documentElement;return(e&&o&&a.insertBefore(i.createTextNode(o),a.childNodes[0]||null),e0===eQ)?ec.call(t,eI?"html":"body")[0]:eI?t.documentElement:a},tu=function(e){return ea.call(e.ownerDocument||e,e,W.SHOW_ELEMENT|W.SHOW_COMMENT|W.SHOW_TEXT|W.SHOW_PROCESSING_INSTRUCTION|W.SHOW_CDATA_SECTION,null)},tm=function(e){return e instanceof Y&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof B)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},tp=function(e){return"function"==typeof F&&e instanceof F};function tf(e,t,n){m(e,e=>{e.call(r,t,n,te)})}let td=function(e){let t=null;if(tf(eu.beforeSanitizeElements,e,null),tm(e))return tl(e),!0;let n=e6(e.nodeName);if(tf(eu.uponSanitizeElement,e,{tagName:n,allowedTags:eE}),ex&&e.hasChildNodes()&&!tp(e.firstElementChild)&&S(/<[/\w!]/g,e.innerHTML)&&S(/<[/\w!]/g,e.textContent)||7===e.nodeType||ex&&8===e.nodeType&&S(/<[/\w]/g,e.data))return tl(e),!0;if(!(eC.tagCheck instanceof Function&&eC.tagCheck(n))&&(!eE[n]||ew[n])){if(!ew[n]&&tg(n)&&(eN.tagNameCheck instanceof RegExp&&S(eN.tagNameCheck,n)||eN.tagNameCheck instanceof Function&&eN.tagNameCheck(n)))return!1;if(eW&&!ej[n]){let t=eo(e)||e.parentNode,n=en(e)||e.childNodes;if(n&&t){let o=n.length;for(let r=o-1;r>=0;--r){let o=Q(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,et(e))}}}return tl(e),!0}return e instanceof G&&!ta(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&S(/<\/no(script|embed|frames)/i,e.innerHTML)?(tl(e),!0):(eL&&3===e.nodeType&&(t=e.textContent,m([em,ep,ef],e=>{t=A(t,e," ")}),e.textContent!==t&&(d(r.removed,{element:e.cloneNode()}),e.textContent=t)),tf(eu.afterSanitizeElements,e,null),!1)},th=function(e,t,n){if(eF&&("id"===t||"name"===t)&&(n in i||n in tt))return!1;if(eD&&!ev[t]&&S(ed,t));else if(eR&&S(eh,t));else if(eC.attributeCheck instanceof Function&&eC.attributeCheck(t,e));else if(!eb[t]||ev[t]){if(!(tg(e)&&(eN.tagNameCheck instanceof RegExp&&S(eN.tagNameCheck,e)||eN.tagNameCheck instanceof Function&&eN.tagNameCheck(e))&&(eN.attributeNameCheck instanceof RegExp&&S(eN.attributeNameCheck,t)||eN.attributeNameCheck instanceof Function&&eN.attributeNameCheck(t,e))||"is"===t&&eN.allowCustomizedBuiltInElements&&(eN.tagNameCheck instanceof RegExp&&S(eN.tagNameCheck,n)||eN.tagNameCheck instanceof Function&&eN.tagNameCheck(n))))return!1}else if(e$[t]);else if(S(eA,A(n,eT,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===E(n,"data:")&&eK[e]);else if(ek&&!S(eg,A(n,eT,"")));else if(n)return!1;return!0},tg=function(e){return"annotation-xml"!==e&&y(e,ey)},tT=function(e){tf(eu.beforeSanitizeAttributes,e,null);let{attributes:t}=e;if(!t||tm(e))return;let o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:eb,forceKeepAttr:void 0},i=t.length;for(;i--;){let{name:a,namespaceURI:l,value:c}=t[i],s=e6(a),u="value"===a?c:_(c);if(o.attrName=s,o.attrValue=u,o.keepAttr=!0,o.forceKeepAttr=void 0,tf(eu.uponSanitizeAttribute,e,o),u=o.attrValue,eG&&("id"===s||"name"===s)&&(tc(a,e),u="user-content-"+u),ex&&S(/((--!?|])>)|<\/(style|title|textarea)/i,u)||"attributename"===s&&y(u,"href")){tc(a,e);continue}if(o.forceKeepAttr)continue;if(!o.keepAttr||!eO&&S(/\/>/i,u)){tc(a,e);continue}eL&&m([em,ep,ef],e=>{u=A(u,e," ")});let p=e6(e.nodeName);if(!th(p,s,u)){tc(a,e);continue}if(n&&"object"==typeof K&&"function"==typeof K.getAttributeType)if(l);else switch(K.getAttributeType(p,s)){case"TrustedHTML":u=n.createHTML(u);break;case"TrustedScriptURL":u=n.createScriptURL(u)}if(u!==c)try{l?e.setAttributeNS(l,a,u):e.setAttribute(a,u),tm(e)?tl(e):f(r.removed)}catch(t){tc(a,e)}}tf(eu.afterSanitizeAttributes,e,null)},ty=function e(t){let n=null,o=tu(t);for(tf(eu.beforeSanitizeShadowDOM,t,null);n=o.nextNode();)tf(eu.uponSanitizeShadowNode,n,null),td(n),tT(n),n.content instanceof u&&e(n.content);tf(eu.afterSanitizeShadowDOM,t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,i=null,a=null,c=null;if((e1=!e)&&(e="<!-->"),"string"!=typeof e&&!tp(e))if("function"==typeof e.toString){if("string"!=typeof(e=e.toString()))throw N("dirty is not a string, aborting")}else throw N("toString is not a function");if(!r.isSupported)return e;if(eM||to(t),r.removed=[],"string"==typeof e&&(eB=!1),eB){if(e.nodeName){let t=e6(e.nodeName);if(!eE[t]||ew[t])throw N("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof F)1===(i=(o=ts("<!---->")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?o=i:o.appendChild(i);else{if(!eP&&!eL&&!eI&&-1===e.indexOf("<"))return n&&eH?n.createHTML(e):e;if(!(o=ts(e)))return eP?null:eH?er:""}o&&eU&&tl(o.firstChild);let s=tu(eB?e:o);for(;a=s.nextNode();)td(a),tT(a),a.content instanceof u&&ty(a.content);if(eB)return e;if(eP){if(ez)for(c=el.call(o.ownerDocument);o.firstChild;)c.appendChild(o.firstChild);else c=o;return(eb.shadowroot||eb.shadowrootmode)&&(c=es.call(l,c,!0)),c}let p=eI?o.outerHTML:o.innerHTML;return eI&&eE["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&S(X,o.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+p),eL&&m([em,ep,ef],e=>{p=A(p,e," ")}),n&&eH?n.createHTML(p):p},r.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};to(e),eM=!0},r.clearConfig=function(){te=null,eM=!1},r.isValidAttribute=function(e,t,n){return te||to({}),th(e6(e),e6(t),n)},r.addHook=function(e,t){"function"==typeof t&&d(eu[e],t)},r.removeHook=function(e,t){if(void 0!==t){let n=p(eu[e],t);return -1===n?void 0:h(eu[e],n,1)[0]}return f(eu[e])},r.removeHooks=function(e){eu[e]=[]},r.removeAllHooks=function(){eu=J()},r}();e.s(["default",()=>Q])}]);