var t={622:(t,e,n)=>{n.d(e,{Ob:()=>B,Qv:()=>V,XX:()=>I,fF:()=>o,h:()=>b,q6:()=>z,uA:()=>k,zO:()=>s});var r,o,i,s,u,c,l,_,a,f,p,h,v={},d=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,g=Array.isArray;function m(t,e){for(var n in e)t[n]=e[n];return t}function w(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function b(t,e,n){var o,i,s,u={};for(s in e)"key"==s?o=e[s]:"ref"==s?i=e[s]:u[s]=e[s];if(arguments.length>2&&(u.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(s in t.defaultProps)void 0===u[s]&&(u[s]=t.defaultProps[s]);return x(t,u,o,i,null)}function x(t,e,n,r,s){var u={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==s?++i:s,__i:-1,__u:0};return null==s&&null!=o.vnode&&o.vnode(u),u}function S(t){return t.children}function k(t,e){this.props=t,this.context=e}function E(t,e){if(null==e)return t.__?E(t.__,t.__i+1):null;for(var n;ee&&u.sort(_));O.__r=0}function T(t,e,n,r,o,i,s,u,c,l,_){var a,f,p,h,y,g=r&&r.__k||d,m=e.length;for(n.__d=c,$(n,e,g),c=n.__d,a=0;a0?x(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=t,o.__b=t.__b+1,i=null,-1!==(u=o.__i=N(o,n,s,_))&&(_--,(i=n[u])&&(i.__u|=131072)),null==i||null===i.__v?(-1==u&&a--,"function"!=typeof o.type&&(o.__u|=65536)):u!==s&&(u==s-1?a--:u==s+1?a++:(u>s?a--:a++,o.__u|=65536))):o=t.__k[r]=null;if(_)for(r=0;r(null==c||131072&c.__u?0:1))for(;s>=0||u=0){if((c=e[s])&&!(131072&c.__u)&&o==c.key&&i===c.type)return s;s--}if(u2&&(c.children=arguments.length>3?r.call(arguments,2):n),x(t.type,c,o||t.key,i||t.ref,null)}function z(t,e){var n={__c:e="__cC"+h++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some((function(t){t.__e=!0,C(t)}))},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n&&n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}r=d.slice,o={__e:function(t,e,n,r){for(var o,i,s;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,r||{}),s=o.__d),s)return o.__E=o}catch(e){t=e}throw t}},i=0,s=function(t){return null!=t&&null==t.constructor},k.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=m({},this.state),"function"==typeof t&&(t=t(m({},n),this.props)),t&&m(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),C(this))},k.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),C(this))},k.prototype.render=S,u=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,_=function(t,e){return t.__v.__b-e.__v.__b},O.__r=0,a=0,f=U(!1),p=U(!0),h=0}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r={};n.d(r,{zj:()=>_e,SD:()=>dt,V6:()=>yt,$K:()=>gt,vT:()=>ae,jb:()=>ze,yT:()=>wt,M_:()=>pe,hb:()=>Pt,vJ:()=>kt,ip:()=>St,Nf:()=>Et,Kr:()=>Ct,li:()=>b,J0:()=>m,FH:()=>xt,v4:()=>bt,mh:()=>Tt});var o,i,s,u,c=n(622),l=0,_=[],a=c.fF,f=a.__b,p=a.__r,h=a.diffed,v=a.__c,d=a.unmount,y=a.__;function g(t,e){a.__h&&a.__h(i,t,l||e),l=0;var n=i.__H||(i.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function m(t){return l=1,function(t,e){var n=g(o++,2);if(n.t=t,!n.__c&&(n.__=[M(void 0,e),function(t){var e=n.__N?n.__N[0]:n.__[0],r=n.t(e,t);e!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=i,!i.u)){var r=function(t,e,r){if(!n.__c.__H)return!0;var o=n.__c.__H.__.filter((function(t){return!!t.__c}));if(o.every((function(t){return!t.__N})))return!s||s.call(this,t,e,r);var i=!1;return o.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(i=!0)}})),!(!i&&n.__c.props===t)&&(!s||s.call(this,t,e,r))};i.u=!0;var s=i.shouldComponentUpdate,u=i.componentWillUpdate;i.componentWillUpdate=function(t,e,n){if(this.__e){var o=s;s=void 0,r(t,e,n),s=o}u&&u.call(this,t,e,n)},i.shouldComponentUpdate=r}return n.__N||n.__}(M,t)}function w(t,e){var n=g(o++,3);!a.__s&&$(n.__H,e)&&(n.__=t,n.i=e,i.__H.__h.push(n))}function b(t){return l=5,x((function(){return{current:t}}),[])}function x(t,e){var n=g(o++,7);return $(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function S(t,e){return l=8,x((function(){return t}),e)}function k(t){var e=i.context[t.__c],n=g(o++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(i)),e.props.value):t.__}function E(){for(var t;t=_.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(O),t.__H.__h.forEach(T),t.__H.__h=[]}catch(e){t.__H.__h=[],a.__e(e,t.__v)}}a.__b=function(t){i=null,f&&f(t)},a.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),y&&y(t,e)},a.__r=function(t){p&&p(t),o=0;var e=(i=t.__c).__H;e&&(s===i?(e.__h=[],i.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.i=t.__N=void 0}))):(e.__h.forEach(O),e.__h.forEach(T),e.__h=[],o=0)),s=i},a.diffed=function(t){h&&h(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==_.push(e)&&u===a.requestAnimationFrame||((u=a.requestAnimationFrame)||C)(E)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.i=void 0}))),s=i=null},a.__c=function(t,e){e.some((function(t){try{t.__h.forEach(O),t.__h=t.__h.filter((function(t){return!t.__||T(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],a.__e(n,t.__v)}})),v&&v(t,e)},a.unmount=function(t){d&&d(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{O(t)}catch(t){e=t}})),n.__H=void 0,e&&a.__e(e,n.__v))};var P="function"==typeof requestAnimationFrame;function C(t){var e,n=function(){clearTimeout(r),P&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);P&&(e=requestAnimationFrame(n))}function O(t){var e=i,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),i=e}function T(t){var e=i;t.__c=t.__(),i=e}function $(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function M(t,e){return"function"==typeof e?e(t):e}var N=Symbol.for("preact-signals");function j(){if(A>1)A--;else{for(var t,e=!1;void 0!==F;){var n=F;for(F=void 0,L++;void 0!==n;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&B(n))try{n.c()}catch(n){e||(t=n,e=!0)}n=r}}if(L=0,A--,e)throw t}}function H(t){if(A>0)return t();A++;try{return t()}finally{j()}}var U,W=void 0,F=void 0,A=0,L=0,R=0;function D(t){if(void 0!==W){var e=t.n;if(void 0===e||e.t!==W)return e={i:0,S:t,p:W.s,n:void 0,t:W,e:void 0,x:void 0,r:e},void 0!==W.s&&(W.s.n=e),W.s=e,t.n=e,32&W.f&&t.S(e),e;if(-1===e.i)return e.i=0,void 0!==e.n&&(e.n.p=e.p,void 0!==e.p&&(e.p.n=e.n),e.p=W.s,e.n=void 0,W.s.n=e,W.s=e),e}}function I(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}function V(t){return new I(t)}function B(t){for(var e=t.s;void 0!==e;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function z(t){for(var e=t.s;void 0!==e;e=e.n){var n=e.S.n;if(void 0!==n&&(e.r=n),e.S.n=e,e.i=-1,void 0===e.n){t.s=e;break}}}function q(t){for(var e=t.s,n=void 0;void 0!==e;){var r=e.p;-1===e.i?(e.S.U(e),void 0!==r&&(r.n=e.n),void 0!==e.n&&(e.n.p=r)):n=e,e.S.n=e.r,void 0!==e.r&&(e.r=void 0),e=r}t.s=n}function J(t){I.call(this,void 0),this.x=t,this.s=void 0,this.g=R-1,this.f=4}function K(t){return new J(t)}function G(t){var e=t.u;if(t.u=void 0,"function"==typeof e){A++;var n=W;W=void 0;try{e()}catch(e){throw t.f&=-2,t.f|=8,X(t),e}finally{W=n,j()}}}function X(t){for(var e=t.s;void 0!==e;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,G(t)}function Q(t){if(W!==this)throw new Error("Out-of-order effect");q(this),W=t,this.f&=-2,8&this.f&&X(this),j()}function Y(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function Z(t){var e=new Y(t);try{e.c()}catch(t){throw e.d(),t}return e.d.bind(e)}function tt(t,e){c.fF[t]=e.bind(null,c.fF[t]||function(){})}function et(t){U&&U(),U=t&&t.S()}function nt(t){var e=this,n=t.data,r=function(t){return x((function(){return V(t)}),[])}(n);r.value=n;var o=x((function(){for(var t=e.__v;t=t.__;)if(t.__c){t.__c.__$f|=4;break}return e.__$u.c=function(){var t;(0,c.zO)(o.peek())||3!==(null==(t=e.base)?void 0:t.nodeType)?(e.__$f|=1,e.setState({})):e.base.data=o.peek()},K((function(){var t=r.value.value;return 0===t?0:!0===t?"":t||""}))}),[]);return o.value}function rt(t,e,n,r){var o=e in t&&void 0===t.ownerSVGElement,i=V(n);return{o:function(t,e){i.value=t,r=e},d:Z((function(){var n=i.value.value;r[e]!==n&&(r[e]=n,o?t[e]=n:n?t.setAttribute(e,n):t.removeAttribute(e))}))}}I.prototype.brand=N,I.prototype.h=function(){return!0},I.prototype.S=function(t){this.t!==t&&void 0===t.e&&(t.x=this.t,void 0!==this.t&&(this.t.e=t),this.t=t)},I.prototype.U=function(t){if(void 0!==this.t){var e=t.e,n=t.x;void 0!==e&&(e.x=n,t.e=void 0),void 0!==n&&(n.e=e,t.x=void 0),t===this.t&&(this.t=n)}},I.prototype.subscribe=function(t){var e=this;return Z((function(){var n=e.value,r=W;W=void 0;try{t(n)}finally{W=r}}))},I.prototype.valueOf=function(){return this.value},I.prototype.toString=function(){return this.value+""},I.prototype.toJSON=function(){return this.value},I.prototype.peek=function(){var t=W;W=void 0;try{return this.value}finally{W=t}},Object.defineProperty(I.prototype,"value",{get:function(){var t=D(this);return void 0!==t&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if(L>100)throw new Error("Cycle detected");this.v=t,this.i++,R++,A++;try{for(var e=this.t;void 0!==e;e=e.x)e.t.N()}finally{j()}}}}),(J.prototype=new I).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===R)return!0;if(this.g=R,this.f|=1,this.i>0&&!B(this))return this.f&=-2,!0;var t=W;try{z(this),W=this;var e=this.x();(16&this.f||this.v!==e||0===this.i)&&(this.v=e,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return W=t,q(this),this.f&=-2,!0},J.prototype.S=function(t){if(void 0===this.t){this.f|=36;for(var e=this.s;void 0!==e;e=e.n)e.S.S(e)}I.prototype.S.call(this,t)},J.prototype.U=function(t){if(void 0!==this.t&&(I.prototype.U.call(this,t),void 0===this.t)){this.f&=-33;for(var e=this.s;void 0!==e;e=e.n)e.S.U(e)}},J.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;void 0!==t;t=t.x)t.t.N()}},Object.defineProperty(J.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var t=D(this);if(this.h(),void 0!==t&&(t.i=this.i),16&this.f)throw this.v;return this.v}}),Y.prototype.c=function(){var t=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var e=this.x();"function"==typeof e&&(this.u=e)}finally{t()}},Y.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,G(this),z(this),A++;var t=W;return W=this,Q.bind(this,t)},Y.prototype.N=function(){2&this.f||(this.f|=2,this.o=F,F=this)},Y.prototype.d=function(){this.f|=8,1&this.f||X(this)},nt.displayName="_st",Object.defineProperties(I.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:nt},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),tt("__b",(function(t,e){if("string"==typeof e.type){var n,r=e.props;for(var o in r)if("children"!==o){var i=r[o];i instanceof I&&(n||(e.__np=n={}),n[o]=i,r[o]=i.peek())}}t(e)})),tt("__r",(function(t,e){et();var n,r=e.__c;r&&(r.__$f&=-2,void 0===(n=r.__$u)&&(r.__$u=n=function(){var t;return Z((function(){t=this})),t.c=function(){r.__$f|=1,r.setState({})},t}())),et(n),t(e)})),tt("__e",(function(t,e,n,r){et(),t(e,n,r)})),tt("diffed",(function(t,e){var n;if(et(),"string"==typeof e.type&&(n=e.__e)){var r=e.__np,o=e.props;if(r){var i=n.U;if(i)for(var s in i){var u=i[s];void 0===u||s in r||(u.d(),i[s]=void 0)}else n.U=i={};for(var c in r){var l=i[c],_=r[c];void 0===l?(l=rt(n,c,_,o),i[c]=l):l.o(_,o)}}}t(e)})),tt("unmount",(function(t,e){if("string"==typeof e.type){var n=e.__e;if(n){var r=n.U;if(r)for(var o in n.U=void 0,r){var i=r[o];i&&i.d()}}}else{var s=e.__c;if(s){var u=s.__$u;u&&(s.__$u=void 0,u.d())}}t(e)})),tt("__h",(function(t,e,n,r){(r<3||9===r)&&(e.__$f|=2),t(e,n,r)})),c.uA.prototype.shouldComponentUpdate=function(t,e){var n=this.__$u;if(!(n&&void 0!==n.s||4&this.__$f))return!0;if(3&this.__$f)return!0;for(var r in e)return!0;for(var o in t)if("__source"!==o&&t[o]!==this.props[o])return!0;for(var i in this.props)if(!(i in t))return!0;return!1};const ot=[],it=()=>ot.slice(-1)[0],st=t=>{ot.push(t)},ut=()=>{ot.pop()},ct=[],lt=()=>ct.slice(-1)[0],_t=t=>{ct.push(t)},at=()=>{ct.pop()},ft=new WeakMap,pt=()=>{throw new Error("Please use `data-wp-bind` to modify the attributes of an element.")},ht={get(t,e,n){const r=Reflect.get(t,e,n);return r&&"object"==typeof r?vt(r):r},set:pt,deleteProperty:pt},vt=t=>(ft.has(t)||ft.set(t,new Proxy(t,ht)),ft.get(t)),dt=t=>lt().context[t||it()],yt=()=>{const t=lt(),{ref:e,attributes:n}=t;return Object.freeze({ref:e.current,attributes:vt(n)})},gt=t=>lt().serverContext[t||it()],mt=t=>new Promise((e=>{const n=()=>{clearTimeout(r),window.cancelAnimationFrame(o),setTimeout((()=>{t(),e()}))},r=setTimeout(n,100),o=window.requestAnimationFrame(n)})),wt="function"==typeof window.scheduler?.yield?window.scheduler.yield.bind(window.scheduler):()=>new Promise((t=>{setTimeout(t,0)}));function bt(t){const e=lt(),n=it();let r;if(r="GeneratorFunction"===t?.constructor?.name?async(...r)=>{const o=t(...r);let i,s;for(;;){st(n),_t(e);try{s=o.next(i)}finally{at(),ut()}try{i=await s.value}catch(t){st(n),_t(e),o.throw(t)}finally{at(),ut()}if(s.done)break}return i}:(...r)=>{st(n),_t(e);try{return t(...r)}finally{ut(),at()}},t.sync){const t=r;return t.sync=!0,t}return r}function xt(t){!function(t){w((()=>{let e=null,n=!1;return e=function(t,e){let n=()=>{};const r=Z((function(){return n=this.c.bind(this),this.x=t,this.c=e,t()}));return{flush:n,dispose:r}}(t,(async()=>{e&&!n&&(n=!0,await mt(e.flush),n=!1)})),e.dispose}),[])}(bt(t))}function St(t){w(bt(t),[])}function kt(t,e){w(bt(t),e)}function Et(t,e){!function(t,e){var n=g(o++,4);!a.__s&&$(n.__H,e)&&(n.__=t,n.i=e,i.__h.push(n))}(bt(t),e)}function Pt(t,e){return S(bt(t),e)}function Ct(t,e){return x(bt(t),e)}new Set;const Ot=t=>Boolean(t&&"object"==typeof t&&t.constructor===Object);function Tt(t){const e=t;return e.sync=!0,e}const $t=new WeakMap,Mt=new WeakMap,Nt=new WeakMap,jt=new Set([Object,Array]),Ht=(t,e,n)=>{if(!Ft(e))throw Error("This object cannot be proxified.");if(!$t.has(e)){const r=new Proxy(e,n);$t.set(e,r),Mt.set(r,e),Nt.set(r,t)}return $t.get(e)},Ut=t=>$t.get(t),Wt=t=>Nt.get(t),Ft=t=>"object"==typeof t&&null!==t&&!Nt.has(t)&&jt.has(t.constructor),At={};class Lt{constructor(t){this.owner=t,this.computedsByScope=new WeakMap}setValue(t){this.update({value:t})}setGetter(t){this.update({get:t})}getComputed(){const t=lt()||At;if(this.valueSignal||this.getterSignal||this.update({}),!this.computedsByScope.has(t)){const e=()=>{const t=this.getterSignal?.value;return t?t.call(this.owner):this.valueSignal?.value};st(Wt(this.owner)),this.computedsByScope.set(t,K(bt(e))),ut()}return this.computedsByScope.get(t)}update({get:t,value:e}){this.valueSignal?e===this.valueSignal.peek()&&t===this.getterSignal.peek()||H((()=>{this.valueSignal.value=e,this.getterSignal.value=t})):(this.valueSignal=V(e),this.getterSignal=V(t))}}const Rt=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter((t=>"symbol"==typeof t))),Dt=new WeakMap,It=(t,e)=>Dt.has(t)&&Dt.get(t).has(e),Vt=new WeakSet,Bt=(t,e,n)=>{Dt.has(t)||Dt.set(t,new Map),e="number"==typeof e?`${e}`:e;const r=Dt.get(t);if(!r.has(e)){const o=Wt(t),i=new Lt(t);if(r.set(e,i),n){const{get:e,value:r}=n;if(e)i.setGetter(e);else{const e=Vt.has(t);i.setValue(Ft(r)?Jt(o,r,{readOnly:e}):r)}}}return r.get(e)},zt=new WeakMap;const qt={get(t,e,n){if(!t.hasOwnProperty(e)&&e in t||"symbol"==typeof e&&Rt.has(e))return Reflect.get(t,e,n);const r=Object.getOwnPropertyDescriptor(t,e),o=Bt(n,e,r).getComputed().value;if("function"==typeof o){const t=Wt(n);return(...e)=>{st(t);try{return o.call(n,...e)}finally{ut()}}}return o},set(t,e,n,r){if(Vt.has(r))return!1;st(Wt(r));try{return Reflect.set(t,e,n,r)}finally{ut()}},defineProperty(t,e,n){if(Vt.has(Ut(t)))return!1;const r=!(e in t),o=Reflect.defineProperty(t,e,n);if(o){const o=Ut(t),i=Bt(o,e),{get:s,value:u}=n;if(s)i.setGetter(s);else{const t=Wt(o);i.setValue(Ft(u)?Jt(t,u):u)}r&&zt.has(t)&&zt.get(t).value++,Array.isArray(t)&&Dt.get(o)?.has("length")&&Bt(o,"length").setValue(t.length)}return o},deleteProperty(t,e){if(Vt.has(Ut(t)))return!1;const n=Reflect.deleteProperty(t,e);return n&&(Bt(Ut(t),e).setValue(void 0),zt.has(t)&&zt.get(t).value++),n},ownKeys:t=>(zt.has(t)||zt.set(t,V(0)),zt._=zt.get(t).value,Reflect.ownKeys(t))},Jt=(t,e,n)=>{const r=Ht(t,e,qt);return n?.readOnly&&Vt.add(r),r},Kt=(t,e,n=!0)=>{if(!Ot(t)||!Ot(e))return;let r=!1;for(const o in e){const i=!(o in t);r=r||i;const s=Object.getOwnPropertyDescriptor(e,o),u=Ut(t),c=!!u&&It(u,o)&&Bt(u,o);if("function"==typeof s.get||"function"==typeof s.set)(n||i)&&(Object.defineProperty(t,o,{...s,configurable:!0,enumerable:!0}),s.get&&c&&c.setGetter(s.get));else if(Ot(e[o])){const r=Object.getOwnPropertyDescriptor(t,o)?.value;if(i||n&&!Ot(r)){if(t[o]={},c){const e=Wt(u);c.setValue(Jt(e,t[o]))}Kt(t[o],e[o],n)}else Ot(r)&&Kt(t[o],e[o],n)}else if((n||i)&&(Object.defineProperty(t,o,s),c)){const{value:t}=s,e=Wt(u);c.setValue(Ft(t)?Jt(e,t):t)}}r&&zt.has(t)&&zt.get(t).value++},Gt=(t,e,n=!0)=>H((()=>{return Kt((r=t,Mt.get(r)||t),e,n);var r})),Xt=new WeakSet,Qt={get:(t,e,n)=>{const r=Reflect.get(t,e),o=Wt(n);if(void 0===r&&Xt.has(n)){const n={};return Reflect.set(t,e,n),Yt(o,n,!1)}if("function"==typeof r){st(o);const t=bt(r);return ut(),t}return Ot(r)&&Ft(r)?Yt(o,r,!1):r}},Yt=(t,e,n=!0)=>{const r=Ht(t,e,Qt);return r&&n&&Xt.add(r),r},Zt=new WeakMap,te=new WeakMap,ee=new WeakSet,ne=Reflect.getOwnPropertyDescriptor,re={get:(t,e)=>{const n=te.get(t),r=t[e];return e in t?r:n[e]},set:(t,e,n)=>{const r=te.get(t);return(e in t||!(e in r)?t:r)[e]=n,!0},ownKeys:t=>[...new Set([...Object.keys(te.get(t)),...Object.keys(t)])],getOwnPropertyDescriptor:(t,e)=>ne(t,e)||ne(te.get(t),e),has:(t,e)=>Reflect.has(t,e)||Reflect.has(te.get(t),e)},oe=(t,e={})=>{if(ee.has(t))throw Error("This object cannot be proxified.");if(te.set(t,e),!Zt.has(t)){const e=new Proxy(t,re);Zt.set(t,e),ee.add(e)}return Zt.get(t)},ie=new Map,se=new Map,ue=new Map,ce=new Map,le=new Map,_e=t=>ce.get(t||it())||{},ae=t=>{const e=t||it();return le.has(e)||le.set(e,Jt(e,{},{readOnly:!0})),le.get(e)},fe="I acknowledge that using a private store means my plugin will inevitably break on the next store release.";function pe(t,{state:e={},...n}={},{lock:r=!1}={}){if(ie.has(t)){if(r===fe||ue.has(t)){const e=ue.get(t);if(r!==fe&&(!0===r||r!==e))throw e?Error("Cannot unlock a private store with an invalid lock code"):Error("Cannot lock a public store")}else ue.set(t,r);const o=se.get(t);Gt(o,n),Gt(o.state,e)}else{r!==fe&&ue.set(t,r);const o={state:Jt(t,Ot(e)?e:{}),...n},i=Yt(t,o);se.set(t,o),ie.set(t,i)}return ie.get(t)}const he=(t=document)=>{var e;const n=null!==(e=t.getElementById("wp-script-module-data-@wordpress/interactivity"))&&void 0!==e?e:t.getElementById("wp-interactivity-data");if(n?.textContent)try{return JSON.parse(n.textContent)}catch{}return{}},ve=t=>{Ot(t?.state)&&Object.entries(t.state).forEach((([t,e])=>{const n=pe(t,{},{lock:fe});Gt(n.state,e,!1),Gt(ae(t),e)})),Ot(t?.config)&&Object.entries(t.config).forEach((([t,e])=>{ce.set(t,e)}))},de=he();function ye(t){return null!==t.suffix}function ge(t){return null===t.suffix}ve(de);const me=(0,c.q6)({client:{},server:{}}),we={},be={},xe=(t,e,{priority:n=10}={})=>{we[t]=e,be[t]=n},Se=({scope:t})=>(e,...n)=>{let{value:r,namespace:o}=e;if("string"!=typeof r)throw new Error("The `value` prop should be a string path");const i="!"===r[0]&&!!(r=r.slice(1));_t(t);const s=((t,e)=>{if(!e)return;let n=ie.get(e);void 0===n&&(n=pe(e,{},{lock:fe}));const r={...n,context:lt().context[e]};try{return t.split(".").reduce(((t,e)=>t[e]),r)}catch(t){}})(r,o);if("function"==typeof s){if(i){const t=!s(...n);return at(),t}return at(),(...e)=>{_t(t);const n=s(...e);return at(),n}}const u=s;return at(),i?!u:u},ke=({directives:t,priorityLevels:[e,...n],element:r,originalProps:o,previousScope:i})=>{const s=b({}).current;s.evaluate=S(Se({scope:s}),[]);const{client:u,server:l}=k(me);s.context=u,s.serverContext=l,s.ref=i?.ref||b(null),r=(0,c.Ob)(r,{ref:s.ref}),s.attributes=r.props;const _=n.length>0?(0,c.h)(ke,{directives:t,priorityLevels:n,element:r,originalProps:o,previousScope:s}):r,a={...o,children:_},f={directives:t,props:a,element:r,context:me,evaluate:s.evaluate};_t(s);for(const t of e){const e=we[t]?.(f);void 0!==e&&(a.children=e)}return at(),a.children},Ee=c.fF.vnode;function Pe(t){return Ot(t)?Object.fromEntries(Object.entries(t).map((([t,e])=>[t,Pe(e)]))):Array.isArray(t)?t.map((t=>Pe(t))):t}function Ce(t){return new Proxy(t,{get(t,e,n){const r=t[e];return r instanceof Function?function(...e){return r.apply(this===n?t:this,e)}:r}})}c.fF.vnode=t=>{if(t.props.__directives){const e=t.props,n=e.__directives;n.key&&(t.key=n.key.find(ge).value),delete e.__directives;const r=(t=>{const e=Object.keys(t).reduce(((t,e)=>{if(we[e]){const n=be[e];(t[n]=t[n]||[]).push(e)}return t}),{});return Object.entries(e).sort((([t],[e])=>parseInt(t)-parseInt(e))).map((([,t])=>t))})(n);r.length>0&&(t.props={directives:n,priorityLevels:r,originalProps:e,type:t.type,element:(0,c.h)(t.type,e),top:!0},t.type=ke)}Ee&&Ee(t)};const Oe=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Te=/\/\*[^]*?\*\/| +/g,$e=/\n+/g,Me=t=>({directives:e,evaluate:n})=>{e[`on-${t}`].filter(ye).forEach((e=>{const r=e.suffix.split("--",1)[0];St((()=>{const o=t=>{const r=n(e);"function"==typeof r&&(r?.sync||(t=Ce(t)),r(t))},i="window"===t?window:document;return i.addEventListener(r,o),()=>i.removeEventListener(r,o)}))}))},Ne=t=>({directives:e,evaluate:n})=>{e[`on-async-${t}`].filter(ye).forEach((e=>{const r=e.suffix.split("--",1)[0];St((()=>{const o=async t=>{await wt();const r=n(e);"function"==typeof r&&r(t)},i="window"===t?window:document;return i.addEventListener(r,o,{passive:!0}),()=>i.removeEventListener(r,o)}))}))},je="wp",He=`data-${je}-ignore`,Ue=`data-${je}-interactive`,We=`data-${je}-`,Fe=[],Ae=new RegExp(`^data-${je}-([a-z0-9]+(?:-[a-z0-9]+)*)(?:--([a-z0-9_-]+))?$`,"i"),Le=/^([\w_\/-]+)::(.+)$/,Re=new WeakSet;function De(t){const e=document.createTreeWalker(t,205);return function t(n){const{nodeType:r}=n;if(3===r)return[n.data];if(4===r){var o;const t=e.nextSibling();return n.replaceWith(new window.Text(null!==(o=n.nodeValue)&&void 0!==o?o:"")),[n.nodeValue,t]}if(8===r||7===r){const t=e.nextSibling();return n.remove(),[null,t]}const i=n,{attributes:s}=i,u=i.localName,l={},_=[],a=[];let f=!1,p=!1;for(let t=0;t{const o=Ae.exec(e);if(null===o)return t;const i=o[1]||"",s=o[2]||null;var u;return t[i]=t[i]||[],t[i].push({namespace:null!=n?n:null!==(u=Fe[Fe.length-1])&&void 0!==u?u:null,value:r,suffix:s}),t}),{})),"template"===u)l.content=[...i.content.childNodes].map((t=>De(t)));else{let n=e.firstChild();if(n){for(;n;){const[r,o]=t(n);r&&_.push(r),n=o||e.nextSibling()}e.parentNode()}}return p&&Fe.pop(),[(0,c.h)(u,l,_)]}(e.currentNode)}const Ie=new WeakMap,Ve=t=>{if(!t.parentElement)throw Error("The passed region should be an element with a parent.");return Ie.has(t)||Ie.set(t,((t,e)=>{const n=(e=[].concat(e))[e.length-1].nextSibling;function r(e,r){t.insertBefore(e,r||n)}return t.__k={nodeType:1,parentNode:t,firstChild:e[0],childNodes:e,insertBefore:r,appendChild:r,removeChild(e){t.removeChild(e)}}})(t.parentElement,t)),Ie.get(t)},Be=new WeakMap,ze=t=>{if("I acknowledge that using private APIs means my theme or plugin will inevitably break in the next version of WordPress."===t)return{directivePrefix:je,getRegionRootFragment:Ve,initialVdom:Be,toVdom:De,directive:xe,getNamespace:it,h:c.h,cloneElement:c.Ob,render:c.XX,proxifyState:Jt,parseServerData:he,populateServerData:ve,batch:H};throw new Error("Forbidden access.")};xe("context",(({directives:{context:t},props:{children:e},context:n})=>{const{Provider:r}=n,o=t.find(ge),{client:i,server:s}=k(n),u=o.namespace,l=b(Jt(u,{})),_=b(Jt(u,{},{readOnly:!0})),a=x((()=>{const t={client:{...i},server:{...s}};if(o){const{namespace:e,value:n}=o;Ot(n),Gt(l.current,Pe(n),!1),Gt(_.current,Pe(n)),t.client[e]=oe(l.current,i[e]),t.server[e]=oe(_.current,s[e])}return t}),[o,i,s]);return(0,c.h)(r,{value:a},e)}),{priority:5}),xe("watch",(({directives:{watch:t},evaluate:e})=>{t.forEach((t=>{xt((()=>{let n=e(t);return"function"==typeof n&&(n=n()),n}))}))})),xe("init",(({directives:{init:t},evaluate:e})=>{t.forEach((t=>{St((()=>{let n=e(t);return"function"==typeof n&&(n=n()),n}))}))})),xe("on",(({directives:{on:t},element:e,evaluate:n})=>{const r=new Map;t.filter(ye).forEach((t=>{const e=t.suffix.split("--")[0];r.has(e)||r.set(e,new Set),r.get(e).add(t)})),r.forEach(((t,r)=>{const o=e.props[`on${r}`];e.props[`on${r}`]=e=>{t.forEach((t=>{o&&o(e);const r=n(t);"function"==typeof r&&(r?.sync||(e=Ce(e)),r(e))}))}}))})),xe("on-async",(({directives:{"on-async":t},element:e,evaluate:n})=>{const r=new Map;t.filter(ye).forEach((t=>{const e=t.suffix.split("--")[0];r.has(e)||r.set(e,new Set),r.get(e).add(t)})),r.forEach(((t,r)=>{const o=e.props[`on${r}`];e.props[`on${r}`]=e=>{o&&o(e),t.forEach((async t=>{await wt();const r=n(t);"function"==typeof r&&r(e)}))}}))})),xe("on-window",Me("window")),xe("on-document",Me("document")),xe("on-async-window",Ne("window")),xe("on-async-document",Ne("document")),xe("class",(({directives:{class:t},element:e,evaluate:n})=>{t.filter(ye).forEach((t=>{const r=t.suffix;let o=n(t);"function"==typeof o&&(o=o());const i=e.props.class||"",s=new RegExp(`(^|\\s)${r}(\\s|$)`,"g");o?s.test(i)||(e.props.class=i?`${i} ${r}`:r):e.props.class=i.replace(s," ").trim(),St((()=>{o?e.ref.current.classList.add(r):e.ref.current.classList.remove(r)}))}))})),xe("style",(({directives:{style:t},element:e,evaluate:n})=>{t.filter(ye).forEach((t=>{const r=t.suffix;let o=n(t);"function"==typeof o&&(o=o()),e.props.style=e.props.style||{},"string"==typeof e.props.style&&(e.props.style=(t=>{const e=[{}];let n,r;for(;n=Oe.exec(t.replace(Te,""));)n[4]?e.shift():n[3]?(r=n[3].replace($e," ").trim(),e.unshift(e[0][r]=e[0][r]||{})):e[0][n[1]]=n[2].replace($e," ").trim();return e[0]})(e.props.style)),o?e.props.style[r]=o:delete e.props.style[r],St((()=>{o?e.ref.current.style[r]=o:e.ref.current.style.removeProperty(r)}))}))})),xe("bind",(({directives:{bind:t},element:e,evaluate:n})=>{t.filter(ye).forEach((t=>{const r=t.suffix;let o=n(t);"function"==typeof o&&(o=o()),e.props[r]=o,St((()=>{const t=e.ref.current;if("style"!==r){if("width"!==r&&"height"!==r&&"href"!==r&&"list"!==r&&"form"!==r&&"tabIndex"!==r&&"download"!==r&&"rowSpan"!==r&&"colSpan"!==r&&"role"!==r&&r in t)try{return void(t[r]=null==o?"":o)}catch(t){}null==o||!1===o&&"-"!==r[4]?t.removeAttribute(r):t.setAttribute(r,o)}else"string"==typeof o&&(t.style.cssText=o)}))}))})),xe("ignore",(({element:{type:t,props:{innerHTML:e,...n}}})=>{const r=x((()=>e),[]);return(0,c.h)(t,{dangerouslySetInnerHTML:{__html:r},...n})})),xe("text",(({directives:{text:t},element:e,evaluate:n})=>{const r=t.find(ge);if(r)try{let t=n(r);"function"==typeof t&&(t=t()),e.props.children="object"==typeof t?null:t.toString()}catch(t){e.props.children=null}else e.props.children=null})),xe("run",(({directives:{run:t},evaluate:e})=>{t.forEach((t=>{let n=e(t);return"function"==typeof n&&(n=n()),n}))})),xe("each",(({directives:{each:t,"each-key":e},context:n,element:r,evaluate:o})=>{if("template"!==r.type)return;const{Provider:i}=n,s=k(n),[u]=t,{namespace:l}=u;let _=o(u);if("function"==typeof _&&(_=_()),"function"!=typeof _?.[Symbol.iterator])return;const a=ye(u)?u.suffix.replace(/^-+|-+$/g,"").toLowerCase().replace(/-([a-z])/g,(function(t,e){return e.toUpperCase()})):"item",f=[];for(const t of _){const n=oe(Jt(l,{}),s.client[l]),o={client:{...s.client,[l]:n},server:{...s.server}};o.client[l][a]=t;const u={...lt(),context:o.client,serverContext:o.server},_=e?Se({scope:u})(e[0]):t;f.push((0,c.h)(i,{value:o,key:_},r.props.content))}return f}),{priority:20}),xe("each-child",(()=>null),{priority:1}),(async()=>{const t=document.querySelectorAll(`[data-${je}-interactive]`);await new Promise((t=>{setTimeout(t,0)}));for(const e of t)if(!Re.has(e)){await wt();const t=Ve(e),n=De(e);Be.set(e,n),await wt(),(0,c.Qv)(n,t)}})();var qe=r.zj,Je=r.SD,Ke=r.V6,Ge=r.$K,Xe=r.vT,Qe=r.jb,Ye=r.yT,Ze=r.M_,tn=r.hb,en=r.vJ,nn=r.ip,rn=r.Nf,on=r.Kr,sn=r.li,un=r.J0,cn=r.FH,ln=r.v4,an=r.mh;export{qe as getConfig,Je as getContext,Ke as getElement,Ge as getServerContext,Xe as getServerState,Qe as privateApis,Ye as splitTask,Ze as store,tn as useCallback,en as useEffect,nn as useInit,rn as useLayoutEffect,on as useMemo,sn as useRef,un as useState,cn as useWatch,ln as withScope,an as withSyncEvent}; //# sourceMappingURL=index.min.js.map