File: /home/ddir12/up/elementor-pro/assets/js/86c7dbc8d8e46f0e7ee5.bundle.min.js
/*! elementor-pro - v4.1.0 - 08-06-2026 */
/*! For license information please see 86c7dbc8d8e46f0e7ee5.bundle.min.js.LICENSE.txt */
"use strict";(self.webpackChunkelementor_pro=self.webpackChunkelementor_pro||[]).push([[786],{4786(e){const{entries:t,setPrototypeOf:n,isFrozen:o,getPrototypeOf:r,getOwnPropertyDescriptor:a}=Object;let{freeze:i,seal:l,create:c}=Object,{apply:s,construct:u}="undefined"!=typeof Reflect&&Reflect;i||(i=function freeze(e){return e}),l||(l=function seal(e){return e}),s||(s=function apply(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return e.apply(t,o)}),u||(u=function construct(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return new e(...n)});const p=unapply(Array.prototype.forEach),m=unapply(Array.prototype.lastIndexOf),d=unapply(Array.prototype.pop),f=unapply(Array.prototype.push),T=unapply(Array.prototype.splice),h=Array.isArray,g=unapply(String.prototype.toLowerCase),y=unapply(String.prototype.toString),S=unapply(String.prototype.match),_=unapply(String.prototype.replace),A=unapply(String.prototype.indexOf),E=unapply(String.prototype.trim),b=unapply(Number.prototype.toString),N=unapply(Boolean.prototype.toString),R="undefined"==typeof BigInt?null:unapply(BigInt.prototype.toString),D="undefined"==typeof Symbol?null:unapply(Symbol.prototype.toString),O=unapply(Object.prototype.hasOwnProperty),k=unapply(Object.prototype.toString),I=unapply(RegExp.prototype.test),w=function unconstruct(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return u(e,n)}}(TypeError);function unapply(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return s(e,t,o)}}function addToSet(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;if(n&&n(e,null),!h(t))return e;let a=t.length;for(;a--;){let n=t[a];if("string"==typeof n){const e=r(n);e!==n&&(o(t)||(t[a]=e),n=e)}e[n]=!0}return e}function cleanArray(e){for(let t=0;t<e.length;t++){O(e,t)||(e[t]=null)}return e}function clone(e){const n=c(null);for(const[o,r]of t(e)){O(e,o)&&(h(r)?n[o]=cleanArray(r):r&&"object"==typeof r&&r.constructor===Object?n[o]=clone(r):n[o]=r)}return n}function lookupGetter(e,t){for(;null!==e;){const n=a(e,t);if(n){if(n.get)return unapply(n.get);if("function"==typeof n.value)return unapply(n.value)}e=r(e)}return function fallbackValue(){return null}}const C=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),x=i(["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"]),L=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),v=i(["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"]),M=i(["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"]),P=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),z=i(["#text"]),U=i(["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"]),F=i(["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"]),H=i(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),G=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=l(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=l(/<%[\w\W]*|[\w\W]*%>/gm),j=l(/\$\{[\w\W]*/gm),Y=l(/^data-[\-\w.\u00B7-\uFFFF]+$/),X=l(/^aria-[\-\w]+$/),q=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),V=l(/^(?:\w+script|data):/i),$=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K=l(/^html$/i),Z=l(/^[a-z][.\w]*(-[.\w]+)+$/i);var J=Object.freeze({__proto__:null,ARIA_ATTR:X,ATTR_WHITESPACE:$,CUSTOM_ELEMENT:Z,DATA_ATTR:Y,DOCTYPE_NAME:K,ERB_EXPR:W,IS_ALLOWED_URI:q,IS_SCRIPT_OR_DATA:V,MUSTACHE_EXPR:B,TMPLIT_EXPR:j});const Q=1,ee=3,te=7,ne=8,oe=9,re=function getGlobal(){return"undefined"==typeof window?null:window};var ae=function createDOMPurify(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re();const DOMPurify=e=>createDOMPurify(e);if(DOMPurify.version="3.4.2",DOMPurify.removed=[],!e||!e.document||e.document.nodeType!==oe||!e.Element)return DOMPurify.isSupported=!1,DOMPurify;let{document:n}=e;const o=n,r=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:l,Node:s,Element:u,NodeFilter:B,NamedNodeMap:W=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:j,DOMParser:Y,trustedTypes:X}=e,V=u.prototype,$=lookupGetter(V,"cloneNode"),Z=lookupGetter(V,"remove"),ae=lookupGetter(V,"nextSibling"),ie=lookupGetter(V,"childNodes"),le=lookupGetter(V,"parentNode");if("function"==typeof l){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let ce,se="";const{implementation:ue,createNodeIterator:pe,createDocumentFragment:me,getElementsByTagName:de}=n,{importNode:fe}=o;let Te={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};DOMPurify.isSupported="function"==typeof t&&"function"==typeof le&&ue&&void 0!==ue.createHTMLDocument;const{MUSTACHE_EXPR:he,ERB_EXPR:ge,TMPLIT_EXPR:ye,DATA_ATTR:Se,ARIA_ATTR:_e,IS_SCRIPT_OR_DATA:Ae,ATTR_WHITESPACE:Ee,CUSTOM_ELEMENT:be}=J;let{IS_ALLOWED_URI:Ne}=J,Re=null;const De=addToSet({},[...C,...x,...L,...M,...z]);let Oe=null;const ke=addToSet({},[...U,...F,...H,...G]);let Ie=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}})),we=null,Ce=null;const xe=Object.seal(c(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Le=!0,ve=!0,Me=!1,Pe=!0,ze=!1,Ue=!0,Fe=!1,He=!1,Ge=!1,Be=!1,We=!1,je=!1,Ye=!0,Xe=!1;const qe="user-content-";let Ve=!0,$e=!1,Ke={},Ze=null;const Je=addToSet({},["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"]);let Qe=null;const et=addToSet({},["audio","video","img","source","image","track"]);let tt=null;const nt=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ot="http://www.w3.org/1998/Math/MathML",rt="http://www.w3.org/2000/svg",at="http://www.w3.org/1999/xhtml";let it=at,lt=!1,ct=null;const st=addToSet({},[ot,rt,at],y);let ut=addToSet({},["mi","mo","mn","ms","mtext"]),pt=addToSet({},["annotation-xml"]);const mt=addToSet({},["title","style","font","a","script"]);let dt=null;const ft=["application/xhtml+xml","text/html"];let Tt=null,ht=null;const gt=n.createElement("form"),yt=function isRegexOrFunction(e){return e instanceof RegExp||e instanceof Function},St=function _parseConfig(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(ht&&ht===e)return;e&&"object"==typeof e||(e={}),e=clone(e),dt=-1===ft.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Tt="application/xhtml+xml"===dt?y:g,Re=O(e,"ALLOWED_TAGS")&&h(e.ALLOWED_TAGS)?addToSet({},e.ALLOWED_TAGS,Tt):De,Oe=O(e,"ALLOWED_ATTR")&&h(e.ALLOWED_ATTR)?addToSet({},e.ALLOWED_ATTR,Tt):ke,ct=O(e,"ALLOWED_NAMESPACES")&&h(e.ALLOWED_NAMESPACES)?addToSet({},e.ALLOWED_NAMESPACES,y):st,tt=O(e,"ADD_URI_SAFE_ATTR")&&h(e.ADD_URI_SAFE_ATTR)?addToSet(clone(nt),e.ADD_URI_SAFE_ATTR,Tt):nt,Qe=O(e,"ADD_DATA_URI_TAGS")&&h(e.ADD_DATA_URI_TAGS)?addToSet(clone(et),e.ADD_DATA_URI_TAGS,Tt):et,Ze=O(e,"FORBID_CONTENTS")&&h(e.FORBID_CONTENTS)?addToSet({},e.FORBID_CONTENTS,Tt):Je,we=O(e,"FORBID_TAGS")&&h(e.FORBID_TAGS)?addToSet({},e.FORBID_TAGS,Tt):clone({}),Ce=O(e,"FORBID_ATTR")&&h(e.FORBID_ATTR)?addToSet({},e.FORBID_ATTR,Tt):clone({}),Ke=!!O(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?clone(e.USE_PROFILES):e.USE_PROFILES),Le=!1!==e.ALLOW_ARIA_ATTR,ve=!1!==e.ALLOW_DATA_ATTR,Me=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Pe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ze=e.SAFE_FOR_TEMPLATES||!1,Ue=!1!==e.SAFE_FOR_XML,Fe=e.WHOLE_DOCUMENT||!1,Be=e.RETURN_DOM||!1,We=e.RETURN_DOM_FRAGMENT||!1,je=e.RETURN_TRUSTED_TYPE||!1,Ge=e.FORCE_BODY||!1,Ye=!1!==e.SANITIZE_DOM,Xe=e.SANITIZE_NAMED_PROPS||!1,Ve=!1!==e.KEEP_CONTENT,$e=e.IN_PLACE||!1,Ne=function isRegex(e){try{return I(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:q,it="string"==typeof e.NAMESPACE?e.NAMESPACE:at,ut=O(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?clone(e.MATHML_TEXT_INTEGRATION_POINTS):addToSet({},["mi","mo","mn","ms","mtext"]),pt=O(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?clone(e.HTML_INTEGRATION_POINTS):addToSet({},["annotation-xml"]);const t=O(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?clone(e.CUSTOM_ELEMENT_HANDLING):c(null);if(Ie=c(null),O(t,"tagNameCheck")&&yt(t.tagNameCheck)&&(Ie.tagNameCheck=t.tagNameCheck),O(t,"attributeNameCheck")&&yt(t.attributeNameCheck)&&(Ie.attributeNameCheck=t.attributeNameCheck),O(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(Ie.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),ze&&(ve=!1),We&&(Be=!0),Ke&&(Re=addToSet({},z),Oe=c(null),!0===Ke.html&&(addToSet(Re,C),addToSet(Oe,U)),!0===Ke.svg&&(addToSet(Re,x),addToSet(Oe,F),addToSet(Oe,G)),!0===Ke.svgFilters&&(addToSet(Re,L),addToSet(Oe,F),addToSet(Oe,G)),!0===Ke.mathMl&&(addToSet(Re,M),addToSet(Oe,H),addToSet(Oe,G))),xe.tagCheck=null,xe.attributeCheck=null,O(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?xe.tagCheck=e.ADD_TAGS:h(e.ADD_TAGS)&&(Re===De&&(Re=clone(Re)),addToSet(Re,e.ADD_TAGS,Tt))),O(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?xe.attributeCheck=e.ADD_ATTR:h(e.ADD_ATTR)&&(Oe===ke&&(Oe=clone(Oe)),addToSet(Oe,e.ADD_ATTR,Tt))),O(e,"ADD_URI_SAFE_ATTR")&&h(e.ADD_URI_SAFE_ATTR)&&addToSet(tt,e.ADD_URI_SAFE_ATTR,Tt),O(e,"FORBID_CONTENTS")&&h(e.FORBID_CONTENTS)&&(Ze===Je&&(Ze=clone(Ze)),addToSet(Ze,e.FORBID_CONTENTS,Tt)),O(e,"ADD_FORBID_CONTENTS")&&h(e.ADD_FORBID_CONTENTS)&&(Ze===Je&&(Ze=clone(Ze)),addToSet(Ze,e.ADD_FORBID_CONTENTS,Tt)),Ve&&(Re["#text"]=!0),Fe&&addToSet(Re,["html","head","body"]),Re.table&&(addToSet(Re,["tbody"]),delete we.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ce=e.TRUSTED_TYPES_POLICY,se=ce.createHTML("")}else void 0===ce&&(ce=function _createTrustedTypesPolicy(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const 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}}(X,r)),null!==ce&&"string"==typeof se&&(se=ce.createHTML(""));i&&i(e),ht=e},_t=addToSet({},[...x,...L,...v]),At=addToSet({},[...M,...P]),Et=function _forceRemove(e){f(DOMPurify.removed,{element:e});try{le(e).removeChild(e)}catch(t){Z(e)}},bt=function _removeAttribute(e,t){try{f(DOMPurify.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){f(DOMPurify.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Be||We)try{Et(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Nt=function _initDocument(e){let t=null,o=null;if(Ge)e="<remove></remove>"+e;else{const t=S(e,/^[\r\n\t ]+/);o=t&&t[0]}"application/xhtml+xml"===dt&&it===at&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=ce?ce.createHTML(e):e;if(it===at)try{t=(new Y).parseFromString(r,dt)}catch(e){}if(!t||!t.documentElement){t=ue.createDocument(it,"template",null);try{t.documentElement.innerHTML=lt?se:r}catch(e){}}const a=t.body||t.documentElement;return e&&o&&a.insertBefore(n.createTextNode(o),a.childNodes[0]||null),it===at?de.call(t,Fe?"html":"body")[0]:Fe?t.documentElement:a},Rt=function _createNodeIterator(e){return pe.call(e.ownerDocument||e,e,B.SHOW_ELEMENT|B.SHOW_COMMENT|B.SHOW_TEXT|B.SHOW_PROCESSING_INSTRUCTION|B.SHOW_CDATA_SECTION,null)},Dt=function _isClobbered(e){return e instanceof j&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof W)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Ot=function _isNode(e){return"function"==typeof s&&e instanceof s};function _executeHooks(e,t,n){p(e,e=>{e.call(DOMPurify,t,n,ht)})}const kt=function _sanitizeElements(e){let t=null;if(_executeHooks(Te.beforeSanitizeElements,e,null),Dt(e))return Et(e),!0;const n=Tt(e.nodeName);if(_executeHooks(Te.uponSanitizeElement,e,{tagName:n,allowedTags:Re}),Ue&&e.hasChildNodes()&&!Ot(e.firstElementChild)&&I(/<[/\w!]/g,e.innerHTML)&&I(/<[/\w!]/g,e.textContent))return Et(e),!0;if(Ue&&e.namespaceURI===at&&"style"===n&&Ot(e.firstElementChild))return Et(e),!0;if(e.nodeType===te)return Et(e),!0;if(Ue&&e.nodeType===ne&&I(/<[/\w]/g,e.data))return Et(e),!0;if(we[n]||!(xe.tagCheck instanceof Function&&xe.tagCheck(n))&&!Re[n]){if(!we[n]&&Ct(n)){if(Ie.tagNameCheck instanceof RegExp&&I(Ie.tagNameCheck,n))return!1;if(Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(n))return!1}if(Ve&&!Ze[n]){const t=le(e)||e.parentNode,n=ie(e)||e.childNodes;if(n&&t){for(let o=n.length-1;o>=0;--o){const r=$(n[o],!0);t.insertBefore(r,ae(e))}}}return Et(e),!0}return e instanceof u&&!function _checkValidNamespace(e){let t=le(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});const n=g(e.tagName),o=g(t.tagName);return!!ct[e.namespaceURI]&&(e.namespaceURI===rt?t.namespaceURI===at?"svg"===n:t.namespaceURI===ot?"svg"===n&&("annotation-xml"===o||ut[o]):Boolean(_t[n]):e.namespaceURI===ot?t.namespaceURI===at?"math"===n:t.namespaceURI===rt?"math"===n&&pt[o]:Boolean(At[n]):e.namespaceURI===at?!(t.namespaceURI===rt&&!pt[o])&&!(t.namespaceURI===ot&&!ut[o])&&!At[n]&&(mt[n]||!_t[n]):!("application/xhtml+xml"!==dt||!ct[e.namespaceURI]))}(e)?(Et(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!I(/<\/no(script|embed|frames)/i,e.innerHTML)?(ze&&e.nodeType===ee&&(t=e.textContent,p([he,ge,ye],e=>{t=_(t,e," ")}),e.textContent!==t&&(f(DOMPurify.removed,{element:e.cloneNode()}),e.textContent=t)),_executeHooks(Te.afterSanitizeElements,e,null),!1):(Et(e),!0)},It=function _isValidAttribute(e,t,o){if(Ce[t])return!1;if(Ye&&("id"===t||"name"===t)&&(o in n||o in gt))return!1;const r=Oe[t]||xe.attributeCheck instanceof Function&&xe.attributeCheck(t,e);if(ve&&!Ce[t]&&I(Se,t));else if(Le&&I(_e,t));else if(!r||Ce[t]){if(!(Ct(e)&&(Ie.tagNameCheck instanceof RegExp&&I(Ie.tagNameCheck,e)||Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(e))&&(Ie.attributeNameCheck instanceof RegExp&&I(Ie.attributeNameCheck,t)||Ie.attributeNameCheck instanceof Function&&Ie.attributeNameCheck(t,e))||"is"===t&&Ie.allowCustomizedBuiltInElements&&(Ie.tagNameCheck instanceof RegExp&&I(Ie.tagNameCheck,o)||Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(o))))return!1}else if(tt[t]);else if(I(Ne,_(o,Ee,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==A(o,"data:")||!Qe[e]){if(Me&&!I(Ae,_(o,Ee,"")));else if(o)return!1}else;return!0},wt=addToSet({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ct=function _isBasicCustomElement(e){return!wt[g(e)]&&I(be,e)},xt=function _sanitizeAttributes(e){_executeHooks(Te.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Dt(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Oe,forceKeepAttr:void 0};let o=t.length;for(;o--;){const r=t[o],{name:a,namespaceURI:i,value:l}=r,c=Tt(a),s=l;let u="value"===a?s:E(s);if(n.attrName=c,n.attrValue=u,n.keepAttr=!0,n.forceKeepAttr=void 0,_executeHooks(Te.uponSanitizeAttribute,e,n),u=n.attrValue,!Xe||"id"!==c&&"name"!==c||0===A(u,qe)||(bt(a,e),u=qe+u),Ue&&I(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){bt(a,e);continue}if("attributename"===c&&S(u,"href")){bt(a,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){bt(a,e);continue}if(!Pe&&I(/\/>/i,u)){bt(a,e);continue}ze&&p([he,ge,ye],e=>{u=_(u,e," ")});const m=Tt(e.nodeName);if(It(m,c,u)){if(ce&&"object"==typeof X&&"function"==typeof X.getAttributeType)if(i);else switch(X.getAttributeType(m,c)){case"TrustedHTML":u=ce.createHTML(u);break;case"TrustedScriptURL":u=ce.createScriptURL(u)}if(u!==s)try{i?e.setAttributeNS(i,a,u):e.setAttribute(a,u),Dt(e)?Et(e):d(DOMPurify.removed)}catch(t){bt(a,e)}}else bt(a,e)}_executeHooks(Te.afterSanitizeAttributes,e,null)},Lt=function _sanitizeShadowDOM(e){let t=null;const n=Rt(e);for(_executeHooks(Te.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)_executeHooks(Te.uponSanitizeShadowNode,t,null),kt(t),xt(t),t.content instanceof a&&Lt(t.content);_executeHooks(Te.afterSanitizeShadowDOM,e,null)};return DOMPurify.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,i=null,l=null;if(lt=!e,lt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Ot(e)&&"string"!=typeof(e=function stringifyValue(e){switch(typeof e){case"string":return e;case"number":return b(e);case"boolean":return N(e);case"bigint":return R?R(e):"0";case"symbol":return D?D(e):"Symbol()";case"undefined":default:return k(e);case"function":case"object":{if(null===e)return k(e);const t=e,n=lookupGetter(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:k(e)}return k(e)}}}(e)))throw w("dirty is not a string, aborting");if(!DOMPurify.isSupported)return e;if(He||St(t),DOMPurify.removed=[],"string"==typeof e&&($e=!1),$e){const t=e.nodeName;if("string"==typeof t){const e=Tt(t);if(!Re[e]||we[e])throw w("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)n=Nt("\x3c!----\x3e"),r=n.ownerDocument.importNode(e,!0),r.nodeType===Q&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!Be&&!ze&&!Fe&&-1===e.indexOf("<"))return ce&&je?ce.createHTML(e):e;if(n=Nt(e),!n)return Be?null:je?se:""}n&&Ge&&Et(n.firstChild);const c=Rt($e?e:n);for(;i=c.nextNode();)kt(i),xt(i),i.content instanceof a&&Lt(i.content);if($e)return e;if(Be){if(ze){n.normalize();let e=n.innerHTML;p([he,ge,ye],t=>{e=_(e,t," ")}),n.innerHTML=e}if(We)for(l=me.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(Oe.shadowroot||Oe.shadowrootmode)&&(l=fe.call(o,l,!0)),l}let u=Fe?n.outerHTML:n.innerHTML;return Fe&&Re["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&I(K,n.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+u),ze&&p([he,ge,ye],e=>{u=_(u,e," ")}),ce&&je?ce.createHTML(u):u},DOMPurify.setConfig=function(){St(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),He=!0},DOMPurify.clearConfig=function(){ht=null,He=!1},DOMPurify.isValidAttribute=function(e,t,n){ht||St({});const o=Tt(e),r=Tt(t);return It(o,r,n)},DOMPurify.addHook=function(e,t){"function"==typeof t&&f(Te[e],t)},DOMPurify.removeHook=function(e,t){if(void 0!==t){const n=m(Te[e],t);return-1===n?void 0:T(Te[e],n,1)[0]}return d(Te[e])},DOMPurify.removeHooks=function(e){Te[e]=[]},DOMPurify.removeAllHooks=function(){Te={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},DOMPurify}();e.exports=ae}}]);