Sid Gifari File Manager
🏠 Root
/
home2
/
meumer25
/
public_html
/
wp-includes
/
js
/
dist
/
script-modules
/
interactivity
/
Editing: index.min.js
var me,m,jt,ft,V,Lt,Vt,zt,nt,$e,he,Kt,ct,it,ot,Jt,Me={},Be=[],Ar=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,We=Array.isArray;function B(e,t){for(var r in t)e[r]=t[r];return e}function ut(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function R(e,t,r){var n,o,i,s={};for(i in t)i=="key"?n=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?me.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return ve(e,s,n,o,null)}function ve(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++jt,__i:-1,__u:0};return o==null&&m.vnode!=null&&m.vnode(i),i}function Fe(e){return e.children}function ae(e,t){this.props=e,this.context=t}function fe(e,t){if(t==null)return e.__?fe(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?fe(e):null}function Hr(e){if(e.__P&&e.__d){var t=e.__v,r=t.__e,n=[],o=[],i=B({},t);i.__v=t.__v+1,m.vnode&&m.vnode(i),lt(e.__P,i,t,e.__n,e.__P.namespaceURI,32&t.__u?[r]:null,n,r??fe(t),!!(32&t.__u),o),i.__v=t.__v,i.__.__k[i.__i]=i,Zt(n,i,o),t.__e=t.__=null,i.__e!=r&&Qt(i)}}function Qt(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),Qt(e)}function st(e){(!e.__d&&(e.__d=!0)&&V.push(e)&&!qe.__r++||Lt!=m.debounceRendering)&&((Lt=m.debounceRendering)||Vt)(qe)}function qe(){try{for(var e,t=1;V.length;)V.length>t&&V.sort(zt),e=V.shift(),t=V.length,Hr(e)}finally{V.length=qe.__r=0}}function Xt(e,t,r,n,o,i,s,f,u,c,l){var a,_,p,w,E,h,d,v=n&&n.__k||Be,I=t.length;for(u=jr(r,t,v,u,I),a=0;a<I;a++)(p=r.__k[a])!=null&&(_=p.__i!=-1&&v[p.__i]||Me,p.__i=a,h=lt(e,p,_,o,i,s,f,u,c,l),w=p.__e,p.ref&&_.ref!=p.ref&&(_.ref&&pt(_.ref,null,p),l.push(p.ref,p.__c||w,p)),E==null&&w!=null&&(E=w),(d=!!(4&p.__u))||_.__k===p.__k?(u=Yt(p,u,e,d),d&&_.__e&&(_.__e=null)):typeof p.type=="function"&&h!==void 0?u=h:w&&(u=w.nextSibling),p.__u&=-7);return r.__e=E,u}function jr(e,t,r,n,o){var i,s,f,u,c,l=r.length,a=l,_=0;for(e.__k=new Array(o),i=0;i<o;i++)(s=t[i])!=null&&typeof s!="boolean"&&typeof s!="function"?(typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?s=e.__k[i]=ve(null,s,null,null,null):We(s)?s=e.__k[i]=ve(Fe,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?s=e.__k[i]=ve(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):e.__k[i]=s,u=i+_,s.__=e,s.__b=e.__b+1,f=null,(c=s.__i=Vr(s,r,u,a))!=-1&&(a--,(f=r[c])&&(f.__u|=2)),f==null||f.__v==null?(c==-1&&(o>l?_--:o<l&&_++),typeof s.type!="function"&&(s.__u|=4)):c!=u&&(c==u-1?_--:c==u+1?_++:(c>u?_--:_++,s.__u|=4))):e.__k[i]=null;if(a)for(i=0;i<l;i++)(f=r[i])!=null&&(2&f.__u)==0&&(f.__e==n&&(n=fe(f)),tr(f,f));return n}function Yt(e,t,r,n){var o,i;if(typeof e.type=="function"){for(o=e.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=e,t=Yt(o[i],t,r,n));return t}e.__e!=t&&(n&&(t&&e.type&&!t.parentNode&&(t=fe(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Vr(e,t,r,n){var o,i,s,f=e.key,u=e.type,c=t[r],l=c!=null&&(2&c.__u)==0;if(c===null&&f==null||l&&f==c.key&&u==c.type)return r;if(n>(l?1:0)){for(o=r-1,i=r+1;o>=0||i<t.length;)if((c=t[s=o>=0?o--:i++])!=null&&(2&c.__u)==0&&f==c.key&&u==c.type)return s}return-1}function At(e,t,r){t[0]=="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||Ar.test(t)?r:r+"px"}function Oe(e,t,r,n,o){var i,s;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||At(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||At(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(Kt,"$1")),s=t.toLowerCase(),t=s in e||t=="onFocusOut"||t=="onFocusIn"?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r[he]=n[he]:(r[he]=ct,e.addEventListener(t,i?ot:it,i)):e.removeEventListener(t,i?ot:it,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function Ht(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t[$e]==null)t[$e]=ct++;else if(t[$e]<r[he])return;return r(m.event?m.event(t):t)}}}function lt(e,t,r,n,o,i,s,f,u,c){var l,a,_,p,w,E,h,d,v,I,C,b,U,oe,rt,M=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(u=!!(32&r.__u),i=[f=t.__e=r.__e]),(l=m.__b)&&l(t);e:if(typeof M=="function")try{if(d=t.props,v=M.prototype&&M.prototype.render,I=(l=M.contextType)&&n[l.__c],C=l?I?I.props.value:l.__:n,r.__c?h=(a=t.__c=r.__c).__=a.__E:(v?t.__c=a=new M(d,C):(t.__c=a=new ae(d,C),a.constructor=M,a.render=Kr),I&&I.sub(a),a.state||(a.state={}),a.__n=n,_=a.__d=!0,a.__h=[],a._sb=[]),v&&a.__s==null&&(a.__s=a.state),v&&M.getDerivedStateFromProps!=null&&(a.__s==a.state&&(a.__s=B({},a.__s)),B(a.__s,M.getDerivedStateFromProps(d,a.__s))),p=a.props,w=a.state,a.__v=t,_)v&&M.getDerivedStateFromProps==null&&a.componentWillMount!=null&&a.componentWillMount(),v&&a.componentDidMount!=null&&a.__h.push(a.componentDidMount);else{if(v&&M.getDerivedStateFromProps==null&&d!==p&&a.componentWillReceiveProps!=null&&a.componentWillReceiveProps(d,C),t.__v==r.__v||!a.__e&&a.shouldComponentUpdate!=null&&a.shouldComponentUpdate(d,a.__s,C)===!1){t.__v!=r.__v&&(a.props=d,a.state=a.__s,a.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(se){se&&(se.__=t)}),Be.push.apply(a.__h,a._sb),a._sb=[],a.__h.length&&s.push(a);break e}a.componentWillUpdate!=null&&a.componentWillUpdate(d,a.__s,C),v&&a.componentDidUpdate!=null&&a.__h.push(function(){a.componentDidUpdate(p,w,E)})}if(a.context=C,a.props=d,a.__P=e,a.__e=!1,b=m.__r,U=0,v)a.state=a.__s,a.__d=!1,b&&b(t),l=a.render(a.props,a.state,a.context),Be.push.apply(a.__h,a._sb),a._sb=[];else do a.__d=!1,b&&b(t),l=a.render(a.props,a.state,a.context),a.state=a.__s;while(a.__d&&++U<25);a.state=a.__s,a.getChildContext!=null&&(n=B(B({},n),a.getChildContext())),v&&!_&&a.getSnapshotBeforeUpdate!=null&&(E=a.getSnapshotBeforeUpdate(p,w)),oe=l!=null&&l.type===Fe&&l.key==null?er(l.props.children):l,f=Xt(e,We(oe)?oe:[oe],t,r,n,o,i,s,f,u,c),a.base=t.__e,t.__u&=-161,a.__h.length&&s.push(a),h&&(a.__E=a.__=null)}catch(se){if(t.__v=null,u||i!=null)if(se.then){for(t.__u|=u?160:128;f&&f.nodeType==8&&f.nextSibling;)f=f.nextSibling;i[i.indexOf(f)]=null,t.__e=f}else{for(rt=i.length;rt--;)ut(i[rt]);at(t)}else t.__e=r.__e,t.__k=r.__k,se.then||at(t);m.__e(se,t,r)}else i==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):f=t.__e=zr(r.__e,t,r,n,o,i,s,u,c);return(l=m.diffed)&&l(t),128&t.__u?void 0:f}function at(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(at))}function Zt(e,t,r){for(var n=0;n<r.length;n++)pt(r[n],r[++n],r[++n]);m.__c&&m.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){m.__e(i,o.__v)}})}function er(e){return typeof e!="object"||e==null||e.__b>0?e:We(e)?e.map(er):B({},e)}function zr(e,t,r,n,o,i,s,f,u){var c,l,a,_,p,w,E,h=r.props||Me,d=t.props,v=t.type;if(v=="svg"?o="http://www.w3.org/2000/svg":v=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(c=0;c<i.length;c++)if((p=i[c])&&"setAttribute"in p==!!v&&(v?p.localName==v:p.nodeType==3)){e=p,i[c]=null;break}}if(e==null){if(v==null)return document.createTextNode(d);e=document.createElementNS(o,v,d.is&&d),f&&(m.__m&&m.__m(t,i),f=!1),i=null}if(v==null)h===d||f&&e.data==d||(e.data=d);else{if(i=i&&me.call(e.childNodes),!f&&i!=null)for(h={},c=0;c<e.attributes.length;c++)h[(p=e.attributes[c]).name]=p.value;for(c in h)p=h[c],c=="dangerouslySetInnerHTML"?a=p:c=="children"||c in d||c=="value"&&"defaultValue"in d||c=="checked"&&"defaultChecked"in d||Oe(e,c,null,p,o);for(c in d)p=d[c],c=="children"?_=p:c=="dangerouslySetInnerHTML"?l=p:c=="value"?w=p:c=="checked"?E=p:f&&typeof p!="function"||h[c]===p||Oe(e,c,p,h[c],o);if(l)f||a&&(l.__html==a.__html||l.__html==e.innerHTML)||(e.innerHTML=l.__html),t.__k=[];else if(a&&(e.innerHTML=""),Xt(t.type=="template"?e.content:e,We(_)?_:[_],t,r,n,v=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:r.__k&&fe(r,0),f,u),i!=null)for(c=i.length;c--;)ut(i[c]);f||(c="value",v=="progress"&&w==null?e.removeAttribute("value"):w!=null&&(w!==e[c]||v=="progress"&&!w||v=="option"&&w!=h[c])&&Oe(e,c,w,h[c],o),c="checked",E!=null&&E!=e[c]&&Oe(e,c,E,h[c],o))}return e}function pt(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(o){m.__e(o,r)}}function tr(e,t,r){var n,o;if(m.unmount&&m.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||pt(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(i){m.__e(i,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&tr(n[o],t,r||typeof e.type!="function");r||ut(e.__e),e.__c=e.__=e.__e=void 0}function Kr(e,t,r){return this.constructor(e,r)}function _t(e,t,r){var n,o,i,s;t==document&&(t=document.documentElement),m.__&&m.__(e,t),o=(n=typeof r=="function")?null:r&&r.__k||t.__k,i=[],s=[],lt(t,e=(!n&&r||t).__k=R(Fe,null,[e]),o||Me,Me,t.namespaceURI,!n&&r?[r]:o?null:t.firstChild?me.call(t.childNodes):null,i,!n&&r?r:o?o.__e:t.firstChild,n,s),Zt(i,e,s)}function dt(e,t){_t(e,t,dt)}function ce(e,t,r){var n,o,i,s,f=B({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?n=t[i]:i=="ref"?o=t[i]:f[i]=t[i]===void 0&&s!=null?s[i]:t[i];return arguments.length>2&&(f.children=arguments.length>3?me.call(arguments,2):r),ve(e.type,f,n||e.key,o||e.ref,null)}function rr(e){function t(r){var n,o;return this.getChildContext||(n=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&n.forEach(function(s){s.__e=!0,st(s)})},this.sub=function(i){n.add(i);var s=i.componentWillUnmount;i.componentWillUnmount=function(){n&&n.delete(i),s&&s.call(i)}}),r.children}return t.__c="__cC"+Jt++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}me=Be.slice,m={__e:function(e,t,r,n){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,n||{}),s=o.__d),s)return o.__E=o}catch(f){e=f}throw e}},jt=0,ft=function(e){return e!=null&&e.constructor===void 0},ae.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=B({},this.state),typeof e=="function"&&(e=e(B({},r),this.props)),e&&B(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),st(this))},ae.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),st(this))},ae.prototype.render=Fe,V=[],Vt=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,zt=function(e,t){return e.__v.__b-t.__v.__b},qe.__r=0,nt=Math.random().toString(8),$e="__d"+nt,he="__a"+nt,Kt=/(PointerCapture)$|Capture$/i,ct=0,it=Ht(!1),ot=Ht(!0),Jt=0;var Y,g,ht,nr,ye=0,lr=[],S=m,ir=S.__b,or=S.__r,sr=S.diffed,ar=S.__c,fr=S.unmount,cr=S.__;function ge(e,t){S.__h&&S.__h(g,e,ye||t),ye=0;var r=g.__H||(g.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Jr(e){return ye=1,Qr(pr,e)}function Qr(e,t,r){var n=ge(Y++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):pr(void 0,t),function(f){var u=n.__N?n.__N[0]:n.__[0],c=n.t(u,f);u!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=g,!g.__f)){var o=function(f,u,c){if(!n.__c.__H)return!0;var l=n.__c.__H.__.filter(function(_){return _.__c});if(l.every(function(_){return!_.__N}))return!i||i.call(this,f,u,c);var a=n.__c.props!==f;return l.some(function(_){if(_.__N){var p=_.__[0];_.__=_.__N,_.__N=void 0,p!==_.__[0]&&(a=!0)}}),i&&i.call(this,f,u,c)||a};g.__f=!0;var i=g.shouldComponentUpdate,s=g.componentWillUpdate;g.componentWillUpdate=function(f,u,c){if(this.__e){var l=i;i=void 0,o(f,u,c),i=l}s&&s.call(this,f,u,c)},g.shouldComponentUpdate=o}return n.__N||n.__}function we(e,t){var r=ge(Y++,3);!S.__s&&mt(r.__H,t)&&(r.__=e,r.u=t,g.__H.__h.push(r))}function Ae(e,t){var r=ge(Y++,4);!S.__s&&mt(r.__H,t)&&(r.__=e,r.u=t,g.__h.push(r))}function z(e){return ye=5,A(function(){return{current:e}},[])}function A(e,t){var r=ge(Y++,7);return mt(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function He(e,t){return ye=8,A(function(){return e},t)}function be(e){var t=g.context[e.__c],r=ge(Y++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(g)),t.props.value):e.__}function Xr(){for(var e;e=lr.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(Le),t.__h.some(vt),t.__h=[]}catch(r){t.__h=[],S.__e(r,e.__v)}}}S.__b=function(e){g=null,ir&&ir(e)},S.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),cr&&cr(e,t)},S.__r=function(e){or&&or(e),Y=0;var t=(g=e.__c).__H;t&&(ht===g?(t.__h=[],g.__h=[],t.__.some(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.some(Le),t.__h.some(vt),t.__h=[],Y=0)),ht=g},S.diffed=function(e){sr&&sr(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(lr.push(t)!==1&&nr===S.requestAnimationFrame||((nr=S.requestAnimationFrame)||Yr)(Xr)),t.__H.__.some(function(r){r.u&&(r.__H=r.u),r.u=void 0})),ht=g=null},S.__c=function(e,t){t.some(function(r){try{r.__h.some(Le),r.__h=r.__h.filter(function(n){return!n.__||vt(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],S.__e(n,r.__v)}}),ar&&ar(e,t)},S.unmount=function(e){fr&&fr(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.some(function(n){try{Le(n)}catch(o){t=o}}),r.__H=void 0,t&&S.__e(t,r.__v))};var ur=typeof requestAnimationFrame=="function";function Yr(e){var t,r=function(){clearTimeout(n),ur&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);ur&&(t=requestAnimationFrame(r))}function Le(e){var t=g,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),g=t}function vt(e){var t=g;e.__c=e.__(),g=t}function mt(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function pr(e,t){return typeof t=="function"?t(e):t}var Zr=Symbol.for("preact-signals");function Ve(){if(K>1)K--;else{for(var e,t=!1;Se!==void 0;){var r=Se;for(Se=void 0,yt++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&dr(r))try{r.c()}catch(o){t||(e=o,t=!0)}r=n}}if(yt=0,K--,t)throw e}}function Z(e){if(K>0)return e();K++;try{return e()}finally{Ve()}}var y=void 0;var Se=void 0,K=0,yt=0,je=0;function _r(e){if(y!==void 0){var t=e.n;if(t===void 0||t.t!==y)return t={i:0,S:e,p:y.s,n:void 0,t:y,e:void 0,x:void 0,r:t},y.s!==void 0&&(y.s.n=t),y.s=t,e.n=t,32&y.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=y.s,t.n=void 0,y.s.n=t,y.s=t),t}}function P(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}P.prototype.brand=Zr;P.prototype.h=function(){return!0};P.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};P.prototype.U=function(e){if(this.t!==void 0){var t=e.e,r=e.x;t!==void 0&&(t.x=r,e.e=void 0),r!==void 0&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r)}};P.prototype.subscribe=function(e){var t=this;return H(function(){var r=t.value,n=y;y=void 0;try{e(r)}finally{y=n}})};P.prototype.valueOf=function(){return this.value};P.prototype.toString=function(){return this.value+""};P.prototype.toJSON=function(){return this.value};P.prototype.peek=function(){var e=y;y=void 0;try{return this.value}finally{y=e}};Object.defineProperty(P.prototype,"value",{get:function(){var e=_r(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(yt>100)throw new Error("Cycle detected");this.v=e,this.i++,je++,K++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Ve()}}}});function k(e){return new P(e)}function dr(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function hr(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function vr(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function ue(e){P.call(this,void 0),this.x=e,this.s=void 0,this.g=je-1,this.f=4}(ue.prototype=new P).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===je))return!0;if(this.g=je,this.f|=1,this.i>0&&!dr(this))return this.f&=-2,!0;var e=y;try{hr(this),y=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return y=e,vr(this),this.f&=-2,!0};ue.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}P.prototype.S.call(this,e)};ue.prototype.U=function(e){if(this.t!==void 0&&(P.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};ue.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(ue.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=_r(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function xe(e){return new ue(e)}function mr(e){var t=e.u;if(e.u=void 0,typeof t=="function"){K++;var r=y;y=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,gt(e),n}finally{y=r,Ve()}}}function gt(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,mr(e)}function en(e){if(y!==this)throw new Error("Out-of-order effect");vr(this),y=e,this.f&=-2,8&this.f&>(this),Ve()}function Pe(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Pe.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};Pe.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,mr(this),hr(this),K++;var e=y;return y=this,en.bind(this,e)};Pe.prototype.N=function(){2&this.f||(this.f|=2,this.o=Se,Se=this)};Pe.prototype.d=function(){this.f|=8,1&this.f||gt(this)};function H(e){var t=new Pe(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}var bt,wt;function le(e,t){m[e]=t.bind(null,m[e]||function(){})}function ze(e){wt&&wt(),wt=e&&e.S()}function yr(e){var t=this,r=e.data,n=rn(r);n.value=r;var o=A(function(){for(var i=t.__v;i=i.__;)if(i.__c){i.__c.__$f|=4;break}return t.__$u.c=function(){var s;!ft(o.peek())&&((s=t.base)==null?void 0:s.nodeType)===3?t.base.data=o.peek():(t.__$f|=1,t.setState({}))},xe(function(){var s=n.value.value;return s===0?0:s===!0?"":s||""})},[]);return o.value}yr.displayName="_st";Object.defineProperties(P.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:yr},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});le("__b",function(e,t){if(typeof t.type=="string"){var r,n=t.props;for(var o in n)if(o!=="children"){var i=n[o];i instanceof P&&(r||(t.__np=r={}),r[o]=i,n[o]=i.peek())}}e(t)});le("__r",function(e,t){ze();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=(function(o){var i;return H(function(){i=this}),i.c=function(){n.__$f|=1,n.setState({})},i})())),bt=n,ze(r),e(t)});le("__e",function(e,t,r,n){ze(),bt=void 0,e(t,r,n)});le("diffed",function(e,t){ze(),bt=void 0;var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,o=t.props;if(n){var i=r.U;if(i)for(var s in i){var f=i[s];f!==void 0&&!(s in n)&&(f.d(),i[s]=void 0)}else r.U=i={};for(var u in n){var c=i[u],l=n[u];c===void 0?(c=tn(r,u,l,o),i[u]=c):c.o(l,o)}}}e(t)});function tn(e,t,r,n){var o=t in e&&e.ownerSVGElement===void 0,i=k(r);return{o:function(s,f){i.value=s,n=f},d:H(function(){var s=i.value.value;n[t]!==s&&(n[t]=s,o?e[t]=s:s?e.setAttribute(t,s):e.removeAttribute(t))})}}le("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var o in n){var i=n[o];i&&i.d()}}}}else{var s=t.__c;if(s){var f=s.__$u;f&&(s.__$u=void 0,f.d())}}e(t)});le("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});ae.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u;if(!(r&&r.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var n in t)return!0;for(var o in e)if(o!=="__source"&&e[o]!==this.props[o])return!0;for(var i in this.props)if(!(i in e))return!0;return!1};function rn(e){return A(function(){return k(e)},[])}var St=[],q=()=>St.slice(-1)[0],W=e=>{St.push(e)},F=()=>{St.pop()};var xt=[],D=()=>xt.slice(-1)[0],ee=e=>{xt.push(e)},j=()=>{xt.pop()};var nn=e=>D().context[e||q()],on=()=>{let e=D(),t={},{ref:r,attributes:n}=e;return Object.freeze({ref:r.current,attributes:Ee(n,t)})},Ke=k(0);function Pt(e){let t=D();return Pt.subscribe=Ke.value,J(t.serverContext[e||q()])}Pt.subscribe=0;var sn=e=>new Promise(t=>{let r=()=>{clearTimeout(n),window.cancelAnimationFrame(o),setTimeout(()=>{e(),t()})},n=setTimeout(r,100),o=window.requestAnimationFrame(r)}),te=typeof window.scheduler?.yield=="function"?window.scheduler.yield.bind(window.scheduler):()=>new Promise(e=>{setTimeout(e,0)}),gr=e=>{let[t]=performance.getEntriesByType("navigation");t.domContentLoadedEventStart>0?e():document.addEventListener("DOMContentLoaded",e)};function an(e,t){let r=()=>{},n=H(function(){return r=this.c.bind(this),this.x=e,this.c=t,e()});return{flush:r,dispose:n}}function fn(e){we(()=>{let t=null,r=!1;return t=an(e,async()=>{t&&!r&&(r=!0,await sn(t.flush),r=!1)}),t.dispose},[])}function O(e){let t=D(),r=q(),n;if(e?.constructor?.name==="GeneratorFunction"?n=async(...i)=>{let s=e(...i),f,u,c;for(;;){W(r),ee(t);try{u=c?s.throw(c):s.next(f),c=void 0}catch(l){throw l}finally{j(),F()}try{f=await u.value}catch(l){c=l}if(u.done){if(c)throw c;break}}return f}:n=(...i)=>{W(r),ee(t);try{return e(...i)}finally{F(),j()}},e.sync){let i=n;return i.sync=!0,i}return n}function Tt(e){fn(O(e))}function Q(e){we(O(e),[])}function cn(e,t){we(O(e),t)}function un(e,t){Ae(O(e),t)}function ln(e,t){return He(O(e),t)}function pn(e,t){return A(O(e),t)}var wr=(e,t)=>{t=[].concat(t);let r=t[t.length-1].nextSibling;function n(o,i){e.insertBefore(o,i||r)}return e.__k={nodeType:1,parentNode:e,firstChild:t[0],childNodes:t,insertBefore:n,appendChild:n,removeChild(o){e.removeChild(o)},contains(o){e.contains(o)}}};function br(e){return e.replace(/^-+|-+$/g,"").toLowerCase().replace(/-([a-z])/g,function(t,r){return r.toUpperCase()})}var Te=e=>{},T=e=>!!(e&&typeof e=="object"&&e.constructor===Object);function _n(e){let t=e;return t.sync=!0,t}var Et=new WeakMap,dn=e=>{let t=()=>!1;return{get(r,n){let o=r[n];return o&&typeof o=="object"?Ee(o,{errorMessage:e}):o},set:t,deleteProperty:t,defineProperty:t}};function Ee(e,t){let r=t?.errorMessage??"Cannot modify read-only object";if(!Et.has(e)){let n=dn(r);Et.set(e,new Proxy(e,n))}return Et.get(e)}var Je=k(0),Qe=Math.random().toString(36).slice(2);function J(e){return T(e)?Object.fromEntries(Object.entries(e).map(([t,r])=>[t,J(r)])):Array.isArray(e)?e.map(t=>J(t)):e}var Xe=new WeakMap,Sr=new WeakMap,It=new WeakMap,hn=new Set([Object,Array]),Ye=(e,t,r)=>{if(!re(t))throw Error("This object cannot be proxified.");if(!Xe.has(t)){let n=new Proxy(t,r);Xe.set(t,n),Sr.set(n,t),It.set(n,e)}return Xe.get(t)},Ze=e=>Xe.get(e),$=e=>It.get(e),re=e=>typeof e!="object"||e===null?!1:!It.has(e)&&hn.has(e.constructor),xr=e=>Sr.get(e);var vn={},Pr=class{owner;computedsByScope;valueSignal;getterSignal;pendingGetter;constructor(e){this.owner=e,this.computedsByScope=new WeakMap}setValue(e){this.update({value:e})}setGetter(e){this.update({get:e})}setPendingGetter(e){this.pendingGetter=e,queueMicrotask(()=>this.consolidateGetter())}consolidateGetter(){let e=this.pendingGetter;e&&(this.pendingGetter=void 0,this.update({get:e}))}getComputed(){let e=D()||vn;if(!this.valueSignal&&!this.getterSignal&&this.update({}),this.pendingGetter&&this.consolidateGetter(),!this.computedsByScope.has(e)){let t=()=>{let r=this.getterSignal?.value;return r?r.call(this.owner):this.valueSignal?.value};W($(this.owner)),this.computedsByScope.set(e,xe(O(t))),F()}return this.computedsByScope.get(e)}update({get:e,value:t}){this.valueSignal?(t!==this.valueSignal.peek()||e!==this.getterSignal.peek())&&Z(()=>{this.valueSignal.value=t,this.getterSignal.value=e}):(this.valueSignal=k(t),this.getterSignal=k(e))}};var mn=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(e=>typeof e=="symbol")),pe=new WeakMap,yn=(e,t)=>pe.has(e)&&pe.get(e).has(t),Ie=(e,t,r)=>{pe.has(e)||pe.set(e,new Map),t=typeof t=="number"?`${t}`:t;let n=pe.get(e);if(!n.has(t)){let o=$(e),i=new Pr(e);if(n.set(t,i),r){let{get:s,value:f}=r;s?i.setGetter(s):i.setValue(re(f)?G(o,f):f)}}return n.get(t)},L=new WeakMap,Ct=!1,N=Symbol("PENDING_GETTER"),gn={get(e,t,r){if(Ct||!e.hasOwnProperty(t)&&t in e||typeof t=="symbol"&&mn.has(t))return Reflect.get(e,t,r);let n=Object.getOwnPropertyDescriptor(e,t),i=Ie(r,t,n).getComputed().value;if(i===N)throw N;if(typeof i=="function"){let s=$(r);return(...f)=>{W(s);try{return i.call(r,...f)}finally{F()}}}return i},set(e,t,r,n){W($(n));try{return Reflect.set(e,t,r,n)}finally{F()}},defineProperty(e,t,r){let n=!(t in e),o=Reflect.defineProperty(e,t,r);if(o){let i=Ze(e),s=Ie(i,t),{get:f,value:u}=r;if(f)s.setGetter(f);else{let c=$(i);s.setValue(re(u)?G(c,u):u)}n&&L.has(e)&&L.get(e).value++,Array.isArray(e)&&pe.get(i)?.has("length")&&Ie(i,"length").setValue(e.length)}return o},deleteProperty(e,t){let r=Reflect.deleteProperty(e,t);return r&&(Ie(Ze(e),t).setValue(void 0),L.has(e)&&L.get(e).value++),r},ownKeys(e){return L.has(e)||L.set(e,k(0)),L._=L.get(e).value,Reflect.ownKeys(e)}},G=(e,t)=>Ye(e,t,gn),Nt=(e,t)=>{Ct=!0;try{return e[t]}finally{Ct=!1}},kt=(e,t,r=!0)=>{if(!(T(e)&&T(t)))return;let n=!1;for(let o in t){let i=!(o in e);n=n||i;let s=Object.getOwnPropertyDescriptor(t,o),f=Ze(e),u=!!f&&yn(f,o)&&Ie(f,o);if(typeof s.get=="function"||typeof s.set=="function")(r||i)&&(Object.defineProperty(e,o,{...s,configurable:!0,enumerable:!0}),s.get&&u&&u.setPendingGetter(s.get));else if(T(t[o])){let c=Object.getOwnPropertyDescriptor(e,o)?.value;if(i||r&&!T(c)){if(e[o]={},u){let l=$(f);u.setValue(G(l,e[o]))}kt(e[o],t[o],r)}else T(c)&&kt(e[o],t[o],r)}else if((r||i)&&(Object.defineProperty(e,o,s),u)){let{value:c}=s,l=$(f);u.setValue(re(c)?G(l,c):c)}}n&&L.has(e)&&L.get(e).value++},ne=(e,t,r=!0)=>Z(()=>kt(xr(e)||e,t,r));var Er=new WeakSet,wn={get:(e,t,r)=>{let n=Reflect.get(e,t),o=$(r);if(typeof n>"u"&&Er.has(r)){let i={};return Reflect.set(e,t,i),Ce(o,i,!1)}if(typeof n=="function"){W(o);let i=O(n);return F(),i}return T(n)&&re(n)?Ce(o,n,!1):n}},Ce=(e,t,r=!0)=>{let n=Ye(e,t,wn);return n&&r&&Er.add(n),n};var Rt=new WeakMap,_e=new WeakMap,Tr=new WeakSet,Ir=Reflect.getOwnPropertyDescriptor,bn={get:(e,t)=>{let r=_e.get(e),n=e[t];return t in e?n:r[t]},set:(e,t,r)=>{let n=_e.get(e),o=t in e||!(t in n)?e:n;return o[t]=r,!0},ownKeys:e=>[...new Set([...Object.keys(_e.get(e)),...Object.keys(e)])],getOwnPropertyDescriptor:(e,t)=>Ir(e,t)||Ir(_e.get(e),t),has:(e,t)=>Reflect.has(e,t)||Reflect.has(_e.get(e),t)},ke=(e,t={})=>{if(Tr.has(e))throw Error("This object cannot be proxified.");if(_e.set(e,t),!Rt.has(e)){let r=new Proxy(e,bn);Rt.set(e,r),Tr.add(r)}return Rt.get(e)};var Ne=new Map,Cr=new Map,et=new Map,Ut=new Map,Re=new Map,Sn=e=>Ut.get(e||q())||{};function Dt(e){let t=e||q();return Re.has(t)||Re.set(t,{}),Dt.subscribe=Je.value,J(Re.get(t))}Dt.subscribe=0;var ie="I acknowledge that using a private store means my plugin will inevitably break on the next store release.";function Ue(e,{state:t={},...r}={},{lock:n=!1}={}){if(Ne.has(e)){if(n!==ie&&!et.has(e))et.set(e,n);else{let i=et.get(e);if(!(n===ie||n!==!0&&n===i))throw Error(i?"Cannot unlock a private store with an invalid lock code":"Cannot lock a public store")}let o=Cr.get(e);ne(o,r),ne(o.state,t)}else{n!==ie&&et.set(e,n);let o={state:G(e,T(t)?t:{}),...r},i=Ce(e,o);Cr.set(e,o),Ne.set(e,i)}return Ne.get(e)}var Gt=(e=document)=>{let t=e.getElementById("wp-script-module-data-@wordpress/interactivity")??e.getElementById("wp-interactivity-data");if(t?.textContent)try{return JSON.parse(t.textContent)}catch{}return{}},Ot=e=>{Re.clear(),Ut.clear(),T(e?.state)&&Object.entries(e.state).forEach(([t,r])=>{let n=Ue(t,{},{lock:ie});ne(n.state,r,!1),Re.set(t,r)}),T(e?.config)&&Object.entries(e.config).forEach(([t,r])=>{Ut.set(t,r)}),T(e?.derivedStateClosures)&&Object.entries(e.derivedStateClosures).forEach(([t,r])=>{let n=Ue(t,{},{lock:ie});r.forEach(o=>{let i=o.split("."),s=i.splice(-1,1)[0],f=i.reduce((c,l)=>Nt(c,l),n),u=Object.getOwnPropertyDescriptor(f,s);T(u?.value)&&(f[s]=N)})})};function X(e){return e.suffix!==null}function de(e){return e.suffix===null}var kr=rr({client:{},server:{}}),$t={},Rr={},x=(e,t,{priority:r=10}={})=>{$t[e]=t,Rr[e]=r},xn=(e,t)=>{if(!t){Te(`Namespace missing for "${e}". The value for that path won't be resolved.`);return}let r=Ne.get(t);typeof r>"u"&&(r=Ue(t,{},{lock:ie}));let n={...r,context:D().context[t]};try{return e.split(".").reduce((i,s)=>i[s],n)}catch(o){if(o===N)return N}},Mt=({scope:e})=>((t,...r)=>{let{value:n,namespace:o}=t;if(typeof n!="string")throw new Error("The `value` prop should be a string path");let i=n[0]==="!"&&!!(n=n.slice(1));ee(e);let s=xn(n,o);if(typeof s=="function"){if(i){Te("Using a function with a negation operator is deprecated and will stop working in WordPress 6.9. Please use derived state instead.");let c=!s(...r);return j(),c}j();let u=(...c)=>{ee(e);let l=s(...c);return j(),l};if(s.sync){let c=u;c.sync=!0}return u}let f=s;return j(),i&&s!==N?!f:f}),Pn=e=>{let t=Object.keys(e).reduce((r,n)=>{if($t[n]){let o=Rr[n];(r[o]=r[o]||[]).push(n)}return r},{});return Object.entries(t).sort(([r],[n])=>parseInt(r)-parseInt(n)).map(([,r])=>r)},Ur=({directives:e,priorityLevels:[t,...r],element:n,originalProps:o,previousScope:i})=>{let s=z({}).current;s.evaluate=He(Mt({scope:s}),[]);let{client:f,server:u}=be(kr);s.context=f,s.serverContext=u,s.ref=i?.ref||z(null),n=ce(n,{ref:s.ref}),s.attributes=n.props;let c=r.length>0?R(Ur,{directives:e,priorityLevels:r,element:n,originalProps:o,previousScope:s}):n,l={...o,children:c},a={directives:e,props:l,element:n,context:kr,evaluate:s.evaluate};ee(s);for(let _ of t){let p=$t[_]?.(a);p!==void 0&&(l.children=p)}return j(),l.children},Nr=m.vnode;m.vnode=e=>{if(e.props.__directives){let t=e.props,r=t.__directives;r.key&&(e.key=r.key.find(de).value),delete t.__directives;let n=Pn(r);n.length>0&&(e.props={directives:r,priorityLevels:n,originalProps:t,type:e.type,element:R(e.type,t),top:!0},e.type=Ur)}Nr&&Nr(e)};function Mr(e){let t={get(r,n,o){let i=r[n];switch(n){case"currentTarget":break;case"preventDefault":case"stopImmediatePropagation":case"stopPropagation":break}return i instanceof Function?function(...s){return i.apply(this===o?r:this,s)}:i}};return new Proxy(e,t)}var En=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Tn=/\/\*[^]*?\*\/| +/g,Dr=/\n+/g,Gr=" ",In=e=>{let t=[{}],r,n;for(;r=En.exec(e.replace(Tn,""));)r[4]?t.shift():r[3]?(n=r[3].replace(Dr,Gr).trim(),t.unshift(t[0][n]=t[0][n]||{})):t[0][r[1]]=r[2].replace(Dr,Gr).trim();return t[0]},Or=e=>({directives:t,evaluate:r})=>{t[`on-${e}`].filter(X).forEach(n=>{let i=n.suffix.split("--",2)[0];Q(()=>{let s=u=>{let c=r(n);typeof c=="function"&&(c?.sync||(u=Mr(u)),c(u))},f=e==="window"?window:document;return f.addEventListener(i,s),()=>f.removeEventListener(i,s)})})},Cn=(e,t,r,n,o)=>{let i={...e.client,[t]:{...e.client[t],[n]:r}},s={...D(),context:i,serverContext:e.server};return o?Mt({scope:s})(o):r},kn=function*(e,t,r,n,o){let{current:i}=z(new Map);for(let s of r){let f=Cn(e,t,s,n,o);i.has(f)||i.set(f,ke(G(t,{[n]:void 0}),e.client[t])),yield[s,i.get(f),f]}},$r=e=>({directives:t,evaluate:r})=>{t[`on-async-${e}`].filter(X).forEach(n=>{let o=n.suffix.split("--",1)[0];Q(()=>{let i=async f=>{await te();let u=r(n);typeof u=="function"&&u(f)},s=e==="window"?window:document;return s.addEventListener(o,i,{passive:!0}),()=>s.removeEventListener(o,i)})})},De=new Map,Br=()=>{x("context",({directives:{context:e},props:{children:t},context:r})=>{let n=e.filter(de).reverse();if(!n.length)return;let{Provider:o}=r,{client:i,server:s}=be(r),f=z({}),u={},c={client:{...i},server:{...s}},l=new Set;return n.forEach(({value:a,namespace:_,uniqueId:p})=>{T(a)&&(f.current[_]||(f.current[_]=G(_,{})),ne(f.current[_],J(a),!1),u[_]=a,l.add(_))}),l.forEach(a=>{c.client[a]=ke(f.current[a],i[a]),c.server[a]=ke(u[a],s[a])}),R(o,{value:c},t)},{priority:5}),x("watch",({directives:{watch:e},evaluate:t})=>{e.forEach(r=>{Tt(()=>{let n,o=t(r);return typeof o=="function"&&(o=o()),o})})}),x("init",({directives:{init:e},evaluate:t})=>{e.forEach(r=>{Q(()=>{let n,o=t(r);return typeof o=="function"&&(o=o()),o})})}),x("on",({directives:{on:e},element:t,evaluate:r})=>{let n=new Map;e.filter(X).forEach(o=>{let i=o.suffix.split("--",2);n.has(i[0])||n.set(i[0],new Set),n.get(i[0]).add(o)}),n.forEach((o,i)=>{let s=t.props[`on${i}`];t.props[`on${i}`]=f=>{s&&s(f),o.forEach(u=>{let c,l=r(u);typeof l=="function"&&(l?.sync||(f=Mr(f)),l(f))})}})}),x("on-async",({directives:{"on-async":e},element:t,evaluate:r})=>{let n=new Map;e.filter(X).forEach(o=>{let i=o.suffix.split("--",1)[0];n.has(i)||n.set(i,new Set),n.get(i).add(o)}),n.forEach((o,i)=>{let s=t.props[`on${i}`];t.props[`on${i}`]=f=>{s&&s(f),o.forEach(async u=>{await te();let c=r(u);typeof c=="function"&&c(f)})}})}),x("on-window",Or("window")),x("on-document",Or("document")),x("on-async-window",$r("window")),x("on-async-document",$r("document")),x("class",({directives:{class:e},element:t,evaluate:r})=>{e.filter(X).forEach(n=>{let o=n.uniqueId?`${n.suffix}---${n.uniqueId}`:n.suffix,i=r(n);if(i===N)return;typeof i=="function"&&(i=i());let s=t.props.class||"",f=new RegExp(`(^|\\s)${o}(\\s|$)`,"g");i?f.test(s)||(t.props.class=s?`${s} ${o}`:o):t.props.class=s.replace(f," ").trim(),Q(()=>{i?t.ref.current.classList.add(o):t.ref.current.classList.remove(o)})})}),x("style",({directives:{style:e},element:t,evaluate:r})=>{e.filter(X).forEach(n=>{if(n.uniqueId)return;let o=n.suffix,i=r(n);i!==N&&(typeof i=="function"&&(i=i()),t.props.style=t.props.style||{},typeof t.props.style=="string"&&(t.props.style=In(t.props.style)),i?t.props.style[o]=i:delete t.props.style[o],Q(()=>{i?t.ref.current.style.setProperty(o,i):t.ref.current.style.removeProperty(o)}))})}),x("bind",({directives:{bind:e},element:t,evaluate:r})=>{e.filter(X).forEach(n=>{if(n.uniqueId)return;let o=n.suffix,i=r(n);i!==N&&(typeof i=="function"&&(i=i()),t.props[o]=i,Q(()=>{let s=t.ref.current;if(o==="style"){typeof i=="string"&&(s.style.cssText=i);return}else if(o!=="width"&&o!=="height"&&o!=="href"&&o!=="list"&&o!=="form"&&o!=="tabIndex"&&o!=="download"&&o!=="rowSpan"&&o!=="colSpan"&&o!=="role"&&o!=="popover"&&o in s)try{s[o]=i??"";return}catch{}i!=null&&(i!==!1||o[4]==="-")?s.setAttribute(o,o==="popover"&&i===!0?"":i):s.removeAttribute(o)}))})}),x("ignore",({element:{type:e,props:{innerHTML:t,...r}}})=>{let n=A(()=>t,[]);return R(e,{dangerouslySetInnerHTML:{__html:n},...r})}),x("text",({directives:{text:e},element:t,evaluate:r})=>{let n=e.filter(de);n.length&&n.forEach(o=>{if(!o.uniqueId)try{let i=r(o);if(i===N)return;typeof i=="function"&&(i=i()),t.props.children=typeof i=="object"?null:i.toString()}catch{t.props.children=null}})}),x("run",({directives:{run:e},evaluate:t})=>{e.forEach(r=>{let n=t(r);return typeof n=="function"&&(n=n()),n})}),x("each",({directives:{each:e,"each-key":t},context:r,element:n,evaluate:o})=>{if(n.type!=="template")return;let{Provider:i}=r,s=be(r),[f]=e,{namespace:u,suffix:c,uniqueId:l}=f;if(e.length>1||l)return;let a=o(f);if(a===N||(typeof a=="function"&&(a=a()),typeof a?.[Symbol.iterator]!="function"))return;let _=c?br(c):"item",p=[],w=kn(s,u,a,_,t?.[0]);for(let[E,h,d]of w){let v={client:{...s.client,[u]:h},server:{...s.server}};v.client[u][_]=E,p.push(R(i,{value:v,key:d},n.props.content))}return p},{priority:20}),x("each-child",({directives:{"each-child":e},element:t,evaluate:r})=>{let n=e.find(de);return n?r(n)===N?t:null:void 0},{priority:1}),x("router-region",({directives:{"router-region":e}})=>{let t=e.find(de);if(!t||t.suffix||t.uniqueId)return;let r=typeof t.value=="string"?t.value:t.value.id;De.has(r)||De.set(r,k());let n=De.get(r).value;if(Ae(()=>{n&&typeof n.type!="string"&&(Ke.value=Ke.peek()+1)},[n]),n&&typeof n.type!="string"){let o=D();return ce(n,{previousScope:o})}return n},{priority:1})};var Bt="data-wp-",tt=[],Nn=()=>tt[tt.length-1]??null,Rn=e=>!!(e&&typeof e=="object"&&e.constructor===Object),Un=/[^a-z0-9-_]/i;function Dn(e){let t=e.substring(8);if(Un.test(t))return null;let r=t.indexOf("--");if(r===-1)return{prefix:t,suffix:null,uniqueId:null};let n=t.substring(0,r),o=t.substring(r);if(o.startsWith("---")&&o[3]!=="-")return{prefix:n,suffix:null,uniqueId:o.substring(3)||null};let i=o.substring(2),s=i.indexOf("---");if(s!==-1&&i.substring(s)[3]!=="-"){let f=i.substring(s+3)||null;return i=i.substring(0,s)||null,{prefix:n,suffix:i,uniqueId:f}}return{prefix:n,suffix:i||null,uniqueId:null}}var Gn=/^([\w_\/-]+)::(.+)$/,qt=new WeakSet;function Ge(e){let t=new Set,r=new Set,n=document.createTreeWalker(e,205);function o(s){let{nodeType:f}=s;if(f===3)return s.data;if(f===4)return r.add(s),s.nodeValue;if(f===8||f===7)return t.add(s),null;let u=s,{attributes:c}=u,l=u.localName,a={},_=[],p=[],w=!1,E=!1;for(let h=0;h<c.length;h++){let d=c[h].name,v=c[h].value;if(d[Bt.length]&&d.slice(0,Bt.length)===Bt)if(d==="data-wp-ignore")w=!0;else{let I=Gn.exec(v),C=I?.[1]??null,b=I?.[2]??v;try{let U=JSON.parse(b);b=Rn(U)?U:b}catch{}if(d==="data-wp-interactive"){E=!0;let U=typeof b=="string"?b:typeof b?.namespace=="string"?b.namespace:null;tt.push(U)}else p.push([d,C,b])}else if(d==="ref")continue;v===""&&u[d]===!0?a[d]=!0:a[d]=v}if(w&&!E)return[R(l,{...a,innerHTML:u.innerHTML,__directives:{ignore:!0}})];if(E&&qt.add(u),p.length){a.__directives=p.reduce((h,[d,v,I])=>{let C=Dn(d);if(C===null)return h;let{prefix:b,suffix:U,uniqueId:oe}=C;return h[b]=h[b]||[],h[b].push({namespace:v??Nn(),value:I,suffix:U,uniqueId:oe}),h},{});for(let h in a.__directives)a.__directives[h].sort((d,v)=>{let I=d.suffix??"",C=v.suffix??"";if(I!==C)return I<C?-1:1;let b=d.uniqueId??"",U=v.uniqueId??"";return+(b>U)-+(b<U)})}if(a.__directives?.["each-child"])a.dangerouslySetInnerHTML={__html:u.innerHTML};else if(l==="template")a.content=[...u.content.childNodes].map(h=>Ge(h));else{let h=n.firstChild();if(h){for(;h;){let d=o(h);d&&_.push(d),h=n.nextSibling()}n.parentNode()}}return E&&tt.pop(),R(l,a,_)}let i=o(n.currentNode);return t.forEach(s=>s.remove()),r.forEach(s=>s.replaceWith(new window.Text(s.nodeValue??""))),i}var Wt=new WeakMap,Ft=e=>{let t=Array.isArray(e)?e[0]:e;if(!t.parentElement)throw Error("The passed region should be an element with a parent.");return Wt.has(t)||Wt.set(t,wr(t.parentElement,e)),Wt.get(t)},qr=new WeakMap,Wr,Fr=new Promise(e=>{Wr=e}),Lr=async()=>{let e=document.querySelectorAll("[data-wp-interactive]");for(let t of e)if(!qt.has(t)){await te();let r=Ft(t),n=Ge(t);qr.set(t,n),await te(),dt(n,r)}Wr(qr)};var vo=H,On="I acknowledge that using private APIs means my theme or plugin will inevitably break in the next version of WordPress.",mo=e=>{if(e===On)return{getRegionRootFragment:Ft,initialVdomPromise:Fr,toVdom:Ge,directive:x,getNamespace:q,h:R,cloneElement:ce,render:_t,proxifyState:G,parseServerData:Gt,populateServerData:Ot,batch:Z,routerRegions:De,deepReadOnly:Ee,navigationSignal:Je,sessionId:Qe,warn:Te};throw new Error("Forbidden access.")};Ot(Gt());Br();gr(Lr);window.history.replaceState({...window.history.state,wpInteractivityId:Qe},"");window.addEventListener("popstate",e=>{e.state!==null&&e.state?.wpInteractivityId!==Qe&&window.location.reload()});export{Sn as getConfig,nn as getContext,on as getElement,Pt as getServerContext,Dt as getServerState,mo as privateApis,te as splitTask,Ue as store,ln as useCallback,cn as useEffect,Q as useInit,un as useLayoutEffect,pn as useMemo,z as useRef,Jr as useState,Tt as useWatch,vo as watch,O as withScope,_n as withSyncEvent};
Save
Cancel