HEX
Server: LiteSpeed
System: Linux premium212.web-hosting.com 4.18.0-553.124.4.lve.el8.x86_64 #1 SMP Fri May 15 13:02:13 UTC 2026 x86_64
User: vitanhod (1367)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: /home/vitanhod/www/wp-content/plugins/woocommerce/assets/client/blocks/woocommerce/wishlist.js
import*as e from"@wordpress/interactivity";import*as t from"@woocommerce/stores/woocommerce/shopper-lists";import*as n from"@woocommerce/stores/woocommerce/cart";var o={d:(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const r=(i={getConfig:()=>e.getConfig,getContext:()=>e.getContext,getElement:()=>e.getElement,store:()=>e.store},a={},o.d(a,i),a);var i,a;o.d({},{}),o.d({},{});const{entries:l,setPrototypeOf:c,isFrozen:s,getPrototypeOf:u,getOwnPropertyDescriptor:m}=Object;let{freeze:p,seal:f,create:d}=Object,{apply:g,construct:h}="undefined"!=typeof Reflect&&Reflect;p||(p=function(e){return e}),f||(f=function(e){return e}),g||(g=function(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)}),h||(h=function(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 T=L(Array.prototype.forEach),y=L(Array.prototype.lastIndexOf),E=L(Array.prototype.pop),A=L(Array.prototype.push),b=L(Array.prototype.splice),_=L(String.prototype.toLowerCase),S=L(String.prototype.toString),N=L(String.prototype.match),w=L(String.prototype.replace),C=L(String.prototype.indexOf),v=L(String.prototype.trim),R=L(Object.prototype.hasOwnProperty),D=L(RegExp.prototype.test),k=(I=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h(I,t)});var I;function L(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 g(e,t,o)}}function O(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_;c&&c(e,null);let o=t.length;for(;o--;){let r=t[o];if("string"==typeof r){const e=n(r);e!==r&&(s(t)||(t[o]=e),r=e)}e[r]=!0}return e}function x(e){for(let t=0;t<e.length;t++)R(e,t)||(e[t]=null);return e}function M(e){const t=d(null);for(const[n,o]of l(e))R(e,n)&&(Array.isArray(o)?t[n]=x(o):o&&"object"==typeof o&&o.constructor===Object?t[n]=M(o):t[n]=o);return t}function P(e,t){for(;null!==e;){const n=m(e,t);if(n){if(n.get)return L(n.get);if("function"==typeof n.value)return L(n.value)}e=u(e)}return function(){return null}}const U=p(["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"]),z=p(["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"]),H=p(["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"]),F=p(["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"]),B=p(["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"]),G=p(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),W=p(["#text"]),Y=p(["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"]),j=p(["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"]),q=p(["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"]),X=p(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),K=f(/\{\{[\w\W]*|[\w\W]*\}\}/gm),$=f(/<%[\w\W]*|[\w\W]*%>/gm),V=f(/\$\{[\w\W]*/gm),Z=f(/^data-[\-\w.\u00B7-\uFFFF]+$/),J=f(/^aria-[\-\w]+$/),Q=f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ee=f(/^(?:\w+script|data):/i),te=f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ne=f(/^html$/i),oe=f(/^[a-z][.\w]*(-[.\w]+)+$/i);var re=Object.freeze({__proto__:null,ARIA_ATTR:J,ATTR_WHITESPACE:te,CUSTOM_ELEMENT:oe,DATA_ATTR:Z,DOCTYPE_NAME:ne,ERB_EXPR:$,IS_ALLOWED_URI:Q,IS_SCRIPT_OR_DATA:ee,MUSTACHE_EXPR:K,TMPLIT_EXPR:V});const ie=function(){return"undefined"==typeof window?null:window};var ae=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ie();const n=t=>e(t);if(n.version="3.4.0",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:o}=t;const r=o,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:c,Node:s,Element:u,NodeFilter:m,NamedNodeMap:f=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:g,DOMParser:h,trustedTypes:I}=t,L=u.prototype,x=P(L,"cloneNode"),K=P(L,"remove"),$=P(L,"nextSibling"),V=P(L,"childNodes"),Z=P(L,"parentNode");if("function"==typeof c){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let J,ee="";const{implementation:te,createNodeIterator:oe,createDocumentFragment:ae,getElementsByTagName:le}=o,{importNode:ce}=r;let se={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof l&&"function"==typeof Z&&te&&void 0!==te.createHTMLDocument;const{MUSTACHE_EXPR:ue,ERB_EXPR:me,TMPLIT_EXPR:pe,DATA_ATTR:fe,ARIA_ATTR:de,IS_SCRIPT_OR_DATA:ge,ATTR_WHITESPACE:he,CUSTOM_ELEMENT:Te}=re;let{IS_ALLOWED_URI:ye}=re,Ee=null;const Ae=O({},[...U,...z,...H,...B,...W]);let be=null;const _e=O({},[...Y,...j,...q,...X]);let Se=Object.seal(d(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}})),Ne=null,we=null;const Ce=Object.seal(d(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ve=!0,Re=!0,De=!1,ke=!0,Ie=!1,Le=!0,Oe=!1,xe=!1,Me=!1,Pe=!1,Ue=!1,ze=!1,He=!0,Fe=!1,Be=!0,Ge=!1,We={},Ye=null;const je=O({},["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 Xe=O({},["audio","video","img","source","image","track"]);let Ke=null;const $e=O({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ve="http://www.w3.org/1998/Math/MathML",Ze="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml";let Qe=Je,et=!1,tt=null;const nt=O({},[Ve,Ze,Je],S);let ot=O({},["mi","mo","mn","ms","mtext"]),rt=O({},["annotation-xml"]);const it=O({},["title","style","font","a","script"]);let at=null;const lt=["application/xhtml+xml","text/html"];let ct=null,st=null;const ut=o.createElement("form"),mt=function(e){return e instanceof RegExp||e instanceof Function},pt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!st||st!==e){if(e&&"object"==typeof e||(e={}),e=M(e),at=-1===lt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ct="application/xhtml+xml"===at?S:_,Ee=R(e,"ALLOWED_TAGS")?O({},e.ALLOWED_TAGS,ct):Ae,be=R(e,"ALLOWED_ATTR")?O({},e.ALLOWED_ATTR,ct):_e,tt=R(e,"ALLOWED_NAMESPACES")?O({},e.ALLOWED_NAMESPACES,S):nt,Ke=R(e,"ADD_URI_SAFE_ATTR")?O(M($e),e.ADD_URI_SAFE_ATTR,ct):$e,qe=R(e,"ADD_DATA_URI_TAGS")?O(M(Xe),e.ADD_DATA_URI_TAGS,ct):Xe,Ye=R(e,"FORBID_CONTENTS")?O({},e.FORBID_CONTENTS,ct):je,Ne=R(e,"FORBID_TAGS")?O({},e.FORBID_TAGS,ct):M({}),we=R(e,"FORBID_ATTR")?O({},e.FORBID_ATTR,ct):M({}),We=!!R(e,"USE_PROFILES")&&e.USE_PROFILES,ve=!1!==e.ALLOW_ARIA_ATTR,Re=!1!==e.ALLOW_DATA_ATTR,De=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ke=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ie=e.SAFE_FOR_TEMPLATES||!1,Le=!1!==e.SAFE_FOR_XML,Oe=e.WHOLE_DOCUMENT||!1,Pe=e.RETURN_DOM||!1,Ue=e.RETURN_DOM_FRAGMENT||!1,ze=e.RETURN_TRUSTED_TYPE||!1,Me=e.FORCE_BODY||!1,He=!1!==e.SANITIZE_DOM,Fe=e.SANITIZE_NAMED_PROPS||!1,Be=!1!==e.KEEP_CONTENT,Ge=e.IN_PLACE||!1,ye=e.ALLOWED_URI_REGEXP||Q,Qe=e.NAMESPACE||Je,ot=e.MATHML_TEXT_INTEGRATION_POINTS||ot,rt=e.HTML_INTEGRATION_POINTS||rt,Se=e.CUSTOM_ELEMENT_HANDLING||d(null),e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Se.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Se.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Se.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ie&&(Re=!1),Ue&&(Pe=!0),We&&(Ee=O({},W),be=d(null),!0===We.html&&(O(Ee,U),O(be,Y)),!0===We.svg&&(O(Ee,z),O(be,j),O(be,X)),!0===We.svgFilters&&(O(Ee,H),O(be,j),O(be,X)),!0===We.mathMl&&(O(Ee,B),O(be,q),O(be,X))),Ce.tagCheck=null,Ce.attributeCheck=null,e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?Ce.tagCheck=e.ADD_TAGS:(Ee===Ae&&(Ee=M(Ee)),O(Ee,e.ADD_TAGS,ct))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?Ce.attributeCheck=e.ADD_ATTR:(be===_e&&(be=M(be)),O(be,e.ADD_ATTR,ct))),e.ADD_URI_SAFE_ATTR&&O(Ke,e.ADD_URI_SAFE_ATTR,ct),e.FORBID_CONTENTS&&(Ye===je&&(Ye=M(Ye)),O(Ye,e.FORBID_CONTENTS,ct)),e.ADD_FORBID_CONTENTS&&(Ye===je&&(Ye=M(Ye)),O(Ye,e.ADD_FORBID_CONTENTS,ct)),Be&&(Ee["#text"]=!0),Oe&&O(Ee,["html","head","body"]),Ee.table&&(O(Ee,["tbody"]),delete Ne.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw k('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw k('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');J=e.TRUSTED_TYPES_POLICY,ee=J.createHTML("")}else void 0===J&&(J=function(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}}(I,i)),null!==J&&"string"==typeof ee&&(ee=J.createHTML(""));p&&p(e),st=e}},ft=O({},[...z,...H,...F]),dt=O({},[...B,...G]),gt=function(e){A(n.removed,{element:e});try{Z(e).removeChild(e)}catch(t){K(e)}},ht=function(e,t){try{A(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){A(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Pe||Ue)try{gt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Tt=function(e){let t=null,n=null;if(Me)e="<remove></remove>"+e;else{const t=N(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===at&&Qe===Je&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=J?J.createHTML(e):e;if(Qe===Je)try{t=(new h).parseFromString(r,at)}catch(e){}if(!t||!t.documentElement){t=te.createDocument(Qe,"template",null);try{t.documentElement.innerHTML=et?ee:r}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),Qe===Je?le.call(t,Oe?"html":"body")[0]:Oe?t.documentElement:i},yt=function(e){return oe.call(e.ownerDocument||e,e,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},Et=function(e){return e instanceof g&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof f)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},At=function(e){return"function"==typeof s&&e instanceof s};function bt(e,t,o){T(e,e=>{e.call(n,t,o,st)})}const _t=function(e){let t=null;if(bt(se.beforeSanitizeElements,e,null),Et(e))return gt(e),!0;const o=ct(e.nodeName);if(bt(se.uponSanitizeElement,e,{tagName:o,allowedTags:Ee}),Le&&e.hasChildNodes()&&!At(e.firstElementChild)&&D(/<[/\w!]/g,e.innerHTML)&&D(/<[/\w!]/g,e.textContent))return gt(e),!0;if(Le&&e.namespaceURI===Je&&"style"===o&&At(e.firstElementChild))return gt(e),!0;if(7===e.nodeType)return gt(e),!0;if(Le&&8===e.nodeType&&D(/<[/\w]/g,e.data))return gt(e),!0;if(Ne[o]||!(Ce.tagCheck instanceof Function&&Ce.tagCheck(o))&&!Ee[o]){if(!Ne[o]&&Nt(o)){if(Se.tagNameCheck instanceof RegExp&&D(Se.tagNameCheck,o))return!1;if(Se.tagNameCheck instanceof Function&&Se.tagNameCheck(o))return!1}if(Be&&!Ye[o]){const t=Z(e)||e.parentNode,n=V(e)||e.childNodes;if(n&&t)for(let o=n.length-1;o>=0;--o){const r=x(n[o],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,$(e))}}return gt(e),!0}return e instanceof u&&!function(e){let t=Z(e);t&&t.tagName||(t={namespaceURI:Qe,tagName:"template"});const n=_(e.tagName),o=_(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===Ze?t.namespaceURI===Je?"svg"===n:t.namespaceURI===Ve?"svg"===n&&("annotation-xml"===o||ot[o]):Boolean(ft[n]):e.namespaceURI===Ve?t.namespaceURI===Je?"math"===n:t.namespaceURI===Ze?"math"===n&&rt[o]:Boolean(dt[n]):e.namespaceURI===Je?!(t.namespaceURI===Ze&&!rt[o])&&!(t.namespaceURI===Ve&&!ot[o])&&!dt[n]&&(it[n]||!ft[n]):!("application/xhtml+xml"!==at||!tt[e.namespaceURI]))}(e)?(gt(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!D(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ie&&3===e.nodeType&&(t=e.textContent,T([ue,me,pe],e=>{t=w(t,e," ")}),e.textContent!==t&&(A(n.removed,{element:e.cloneNode()}),e.textContent=t)),bt(se.afterSanitizeElements,e,null),!1):(gt(e),!0)},St=function(e,t,n){if(we[t])return!1;if(He&&("id"===t||"name"===t)&&(n in o||n in ut))return!1;if(Re&&!we[t]&&D(fe,t));else if(ve&&D(de,t));else if(Ce.attributeCheck instanceof Function&&Ce.attributeCheck(t,e));else if(!be[t]||we[t]){if(!(Nt(e)&&(Se.tagNameCheck instanceof RegExp&&D(Se.tagNameCheck,e)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(e))&&(Se.attributeNameCheck instanceof RegExp&&D(Se.attributeNameCheck,t)||Se.attributeNameCheck instanceof Function&&Se.attributeNameCheck(t,e))||"is"===t&&Se.allowCustomizedBuiltInElements&&(Se.tagNameCheck instanceof RegExp&&D(Se.tagNameCheck,n)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(n))))return!1}else if(Ke[t]);else if(D(ye,w(n,he,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==C(n,"data:")||!qe[e])if(De&&!D(ge,w(n,he,"")));else if(n)return!1;return!0},Nt=function(e){return"annotation-xml"!==e&&N(e,Te)},wt=function(e){bt(se.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Et(e))return;const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:be,forceKeepAttr:void 0};let r=t.length;for(;r--;){const i=t[r],{name:a,namespaceURI:l,value:c}=i,s=ct(a),u=c;let m="value"===a?u:v(u);if(o.attrName=s,o.attrValue=m,o.keepAttr=!0,o.forceKeepAttr=void 0,bt(se.uponSanitizeAttribute,e,o),m=o.attrValue,!Fe||"id"!==s&&"name"!==s||(ht(a,e),m="user-content-"+m),Le&&D(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,m)){ht(a,e);continue}if("attributename"===s&&N(m,"href")){ht(a,e);continue}if(o.forceKeepAttr)continue;if(!o.keepAttr){ht(a,e);continue}if(!ke&&D(/\/>/i,m)){ht(a,e);continue}Ie&&T([ue,me,pe],e=>{m=w(m,e," ")});const p=ct(e.nodeName);if(St(p,s,m)){if(J&&"object"==typeof I&&"function"==typeof I.getAttributeType)if(l);else switch(I.getAttributeType(p,s)){case"TrustedHTML":m=J.createHTML(m);break;case"TrustedScriptURL":m=J.createScriptURL(m)}if(m!==u)try{l?e.setAttributeNS(l,a,m):e.setAttribute(a,m),Et(e)?gt(e):E(n.removed)}catch(t){ht(a,e)}}else ht(a,e)}bt(se.afterSanitizeAttributes,e,null)},Ct=function(e){let t=null;const n=yt(e);for(bt(se.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)bt(se.uponSanitizeShadowNode,t,null),_t(t),wt(t),t.content instanceof a&&Ct(t.content);bt(se.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,i=null,l=null,c=null;if(et=!e,et&&(e="\x3c!--\x3e"),"string"!=typeof e&&!At(e)){if("function"!=typeof e.toString)throw k("toString is not a function");if("string"!=typeof(e=e.toString()))throw k("dirty is not a string, aborting")}if(!n.isSupported)return e;if(xe||pt(t),n.removed=[],"string"==typeof e&&(Ge=!1),Ge){if(e.nodeName){const t=ct(e.nodeName);if(!Ee[t]||Ne[t])throw k("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)o=Tt("\x3c!----\x3e"),i=o.ownerDocument.importNode(e,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?o=i:o.appendChild(i);else{if(!Pe&&!Ie&&!Oe&&-1===e.indexOf("<"))return J&&ze?J.createHTML(e):e;if(o=Tt(e),!o)return Pe?null:ze?ee:""}o&&Me&&gt(o.firstChild);const u=yt(Ge?e:o);for(;l=u.nextNode();)_t(l),wt(l),l.content instanceof a&&Ct(l.content);if(Ge)return e;if(Pe){if(Ie){o.normalize();let e=o.innerHTML;T([ue,me,pe],t=>{e=w(e,t," ")}),o.innerHTML=e}if(Ue)for(c=ae.call(o.ownerDocument);o.firstChild;)c.appendChild(o.firstChild);else c=o;return(be.shadowroot||be.shadowrootmode)&&(c=ce.call(r,c,!0)),c}let m=Oe?o.outerHTML:o.innerHTML;return Oe&&Ee["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&D(ne,o.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+m),Ie&&T([ue,me,pe],e=>{m=w(m,e," ")}),J&&ze?J.createHTML(m):m},n.setConfig=function(){pt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),xe=!0},n.clearConfig=function(){st=null,xe=!1},n.isValidAttribute=function(e,t,n){st||pt({});const o=ct(e),r=ct(t);return St(o,r,n)},n.addHook=function(e,t){"function"==typeof t&&A(se[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=y(se[e],t);return-1===n?void 0:b(se[e],n,1)[0]}return E(se[e])},n.removeHooks=function(e){se[e]=[]},n.removeAllHooks=function(){se={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();let le;const ce=["a","b","em","i","strong","p","br","abbr"],se=["target","href","rel","name","download","title"];const ue="I acknowledge that using a private store means my plugin will inevitably break on the next store release.",me="wishlist",pe=["a","b","em","i","strong","p","br","span","bdi","del","ins","img","picture","source"],fe=["class","target","href","rel","name","download","aria-hidden","src","srcset","sizes","alt","width","height","loading","decoding"],{state:de,actions:ge}=(0,r.store)("woocommerce/shopper-lists",{},{lock:ue}),{state:he,actions:Te}=(0,r.store)("woocommerce",{},{lock:ue}),ye=e=>{const t=document.createElement("textarea");return t.innerHTML=e,t.value},Ee=e=>de.lists[e]??null;(0,r.store)("woocommerce/wishlist",{state:{get currentItems(){return Ee(me)?.items??[]},get isCurrentItemPending(){const{listItem:e,pendingKeys:t}=(0,r.getContext)();return!!e&&!!t[e.key]},get isEmpty(){const e=Ee(me);return!!e&&!e.isLoading&&0===e.items.length},get isPriceHidden(){const{listItem:e}=(0,r.getContext)();return!e?.price_html},get isAddToCartHidden(){const{listItem:e}=(0,r.getContext)();return!e||!e.is_purchasable},get currentItemDisplayName(){const{listItem:e}=(0,r.getContext)();return e?ye(e.name):""},get currentItemRemoveLabel(){const{listItem:e}=(0,r.getContext)();if(!e)return"";const{removeLabelTemplate:t}=(0,r.getConfig)("woocommerce/wishlist");return t.replace("%s",ye(e.name))},get currentItemVariationLabel(){const{listItem:e}=(0,r.getContext)();return e&&(t=e).variation&&0!==t.variation.length?t.variation.map(e=>`${ye(e.attribute)}: ${ye(e.value)}`).join(", "):"";var t}},actions:{*onClickRemove(){const{listItem:e,pendingKeys:t}=(0,r.getContext)();if(e&&!t[e.key]){t[e.key]=!0;try{yield ge.removeItem(me,e.key)}finally{delete t[e.key]}}},*onClickAddToCart(){const{listItem:e,pendingKeys:t}=(0,r.getContext)();if(!e||!e.is_purchasable||t[e.key])return;const n=e.variation.map(({raw_attribute:e,value:t,attribute:n})=>({attribute:e||n,value:t})),o=e.variation_id>0,i={id:e.id,...o&&{variation:n}},a=he.findItemInCart(i),l=a?.quantity??0;t[e.key]=!0;try{yield Te.addCartItem({id:e.id,quantityToAdd:1,type:o?"variation":"simple",...o&&{variation:n}});const t=he.findItemInCart(i);if((t?.quantity??0)<=l)return;yield ge.removeItem(me,e.key)}finally{delete t[e.key]}}},callbacks:{updateInnerHtml:()=>{const{ref:e}=(0,r.getElement)(),{listItem:t,htmlField:n}=(0,r.getContext)();if(!e||!t||!n)return;const o=t[n];"string"==typeof o&&(e.innerHTML=function(e,t){const n={ALLOWED_TAGS:[...t?.tags||ce],ALLOWED_ATTR:[...t?.attr||se]},o=function(){if(void 0!==le)return le;if("undefined"==typeof window||!window.trustedTypes)return le=null,null;try{le=window.trustedTypes.createPolicy("woocommerce-sanitize-noop",{createHTML:e=>e})}catch(e){le=null,console.warn('Failed to create "woocommerce-sanitize-noop" trusted type policy:',e)}return le}();return o&&(n.TRUSTED_TYPES_POLICY=o),"HTMLBodyElement"===t?.returnType?n.RETURN_DOM=!0:"DocumentFragment"===t?.returnType&&(n.RETURN_DOM_FRAGMENT=!0),ae.sanitize(e??"",n)}(o,{tags:pe,attr:fe}))}}},{lock:ue});