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