(()=>{"use strict";vare={d:(t,n)=>{for(varrinn)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{privateApis:()=>E});constn=window.React,r=window.wp.element;functiono(){returno=Object.assign?Object.assign.bind():function(e){for(vart=1;t<arguments.length;t++){varn=arguments[t];for(varrinn)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}returne},o.apply(this,arguments)}vara;!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(a||(a={}));varu=function(e){returne};vari="beforeunload",c="popstate";functions(e){e.preventDefault(),e.returnValue=""}functionl(){vare=[];return{getlength(){returne.length},push:function(t){returne.push(t),function(){e=e.filter((function(e){returne!==t}))}},call:function(t){e.forEach((function(e){returne&&e(t)}))}}}functionf(){returnMath.random().toString(36).substr(2,8)}functionp(e){vart=e.pathname,n=void0===t?"/":t,r=e.search,o=void0===r?"":r,a=e.hash,u=void0===a?"":a;returno&&"?"!==o&&(n+="?"===o.charAt(0)?o:"?"+o),u&&"#"!==u&&(n+="#"===u.charAt(0)?u:"#"+u),n}functionh(e){vart={};if(e){varn=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));varr=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}returnt}constv=window.wp.url,d=function(e){void0===e&&(e={});vart=e.window,n=void0===t?document.defaultView:t,r=n.history;functionv(){vare=n.location,t=e.pathname,o=e.search,a=e.hash,i=r.state||{};return[i.idx,u({pathname:t,search:o,hash:a,state:i.usr||null,key:i.key||"default"})]}vard=null;n.addEventListener(c,(function(){if(d)P.call(d),d=null;else{vare=a.Pop,t=v(),n=t[0],r=t[1];if(P.length){if(null!=n){varo=g-n;o&&(d={action:e,location:r,retry:function(){_(-1*o)}},_(o))}}elseE(e)}}));varw=a.Pop,y=v(),g=y[0],b=y[1],m=l(),P=l();functionO(e){return"string"==typeofe?e:p(e)}functionS(e,t){returnvoid0===t&&(t=null),u(o({pathname:b.pathname,hash:"",search:""},"string"==typeofe?h(e):e,{state:t,key:f()}))}functionk(e,t){return[{usr:e.state,key:e.key,idx:t},O(e)]}functionx(e,t,n){return!P.length||(P.call({action:e,location:t,retry:n}),!1)}functionE(e){w=e;vart=v();g=t[0],b=t[1],m.call({action:w,location:b})}function_(e){r.go(e)}null==g&&(g=0,r.replaceState(o({},r.state,{idx:g}),""));varj={getaction(){returnw},getlocation(){returnb},createHref:O,push:functione(t,o){varu=a.Push,i=S(t,o);if(x(u,i,(function(){e(t,o)}))){varc=k(i,g+1),s=c[0],l=c[1];try{r.pushState(s,"",l)}catch(e){n.location.assign(l)}E(u)}},replace:functione(t,n){varo=a.Replace,u=S(t,n);if(x(o,u,(function(){e(t,n)}))){vari=k(u,g),c=i[0],s=i[1];r.replaceState(c,"",s),E(o)}},go:_,back:function(){_(-1)},forward:function(){_(1)},listen:function(e){returnm.push(e)},block:function(e){vart=P.push(e);return1===P.length&&n.addEventListener(i,s),function(){t(),P.length||n.removeEventListener(i,s)}}};returnj}(),w=d.push,y=d.replace;functiong(e){if(e.hasOwnProperty("wp_theme_preview"))returne;constt=newURLSearchParams(d.location.search).get("wp_theme_preview");returnnull===t?e:{...e,wp_theme_preview:t}}d.push=function(e,t){constn=(0,v.buildQueryString)(g(e));returnw.call(d,{search:n},t)},d.replace=function(e,t){constn=(0,v.buildQueryString)(g(e));returny.call(d,{search:n},t)};constb=d,m=(0,r.createContext)(),P=(0,r.createContext)();functionO(e){constt=newURLSearchParams(e.search);return{...e,params:Object.fromEntries(t.entries())}}constS=window.wp.privateApis,{lock:k,unlock:x}=(0,S.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/router"),E={};k(E,{useHistory:function(){return(0,r.useContext)(P)},useLocation:function(){return(0,r.useContext)(m)},RouterProvider:function({children:e}){const[t,o]=(0,r.useState)((()=>O(b.location)));return(0,r.useEffec