!function(){var e={485:function(e,t){var n;
/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var i=a.apply(null,n);i&&e.push(i)}}else if("object"===o){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(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=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.wp.element;function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(null,arguments)}function r(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}function i(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const s=(0,e.createContext)({theme_version:"1.0.0",theme_name:"Word"}),l=s.Provider;s.Consumer;var c=s,u=window.wp.i18n,d=ctEvents,h=n.n(d);var p,f=function(){const{theme_name:t,theme_custom_description:n,dashboard_has_heading:r}=(0,e.useContext)(c);let a={content:null};return h().trigger("ct:dashboard:heading:after",a),(0,e.createElement)("div",null,(0,e.createElement)("h2",{onClick:function(e){return e.shiftKey&&h().trigger("ct:dashboard:heading:advanced-click")}},"yes"===r&&(0,e.createElement)("svg",{width:"35",height:"35",viewBox:"0 0 35 35"},(0,e.createElement)("path",{fill:"#1e1e1e",d:"M35,17.5C35,7.8,27.2,0,17.5,0C7.8,0,0,7.8,0,17.5C0,27.2,7.8,35,17.5,35C27.2,35,35,27.2,35,17.5z"}),(0,e.createElement)("path",{fill:"#ffffff",d:"M16.3,13.7h3.9c0.5,0,0.9,0.4,0.9,1c0,0.5-0.4,1-1,1h-3.1L16.3,13.7z M24.2,17.6c0.6-0.8,1-1.9,1-3c0-1.1-0.4-2.1-1-2.9c-0.9-1.2-2.3-2-3.9-2.1c0,0-0.1,0-0.1,0v0h-9.4c-0.2,0-0.4,0.3-0.3,0.5l2.3,5.5h-1.9c-0.2,0-0.4,0.3-0.3,0.5l3.9,9.5h5.8c2.7,0,5-2.2,5-5C25.2,19.5,24.8,18.5,24.2,17.6C24.2,17.6,24.2,17.6,24.2,17.6zM16.3,19.6h3.9c0.5,0,0.9,0.4,0.9,1c0,0.5-0.4,1-1,1h-3.1L16.3,19.6z"}),"/>"),t,"yes"===r&&a.content),(0,e.createElement)("p",null,n||(0,u.__)("The most innovative, intuitive and lightning fast WordPress theme. Build your next web project visually, in no time.","blocksy")))},m=React;
/**
 * @remix-run/router v1.23.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */
function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(p||(p={}));const y="popstate";function g(e,t){if(!1===e||null==e)throw new Error(t)}function b(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function w(e,t){return{usr:e.state,key:e.key,idx:t}}function _(e,t,n,r){return void 0===n&&(n=null),v({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?k(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function E(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function k(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function x(e,t,n,r){void 0===r&&(r={});let{window:a=document.defaultView,v5Compat:o=!1}=r,i=a.history,s=p.Pop,l=null,c=u();function u(){return(i.state||{idx:null}).idx}function d(){s=p.Pop;let e=u(),t=null==e?null:e-c;c=e,l&&l({action:s,location:f.location,delta:t})}function h(e){let t="null"!==a.location.origin?a.location.origin:a.location.href,n="string"==typeof e?e:E(e);return n=n.replace(/ $/,"%20"),g(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==c&&(c=0,i.replaceState(v({},i.state,{idx:c}),""));let f={get action(){return s},get location(){return e(a,i)},listen(e){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(y,d),l=e,()=>{a.removeEventListener(y,d),l=null}},createHref:e=>t(a,e),createURL:h,encodeLocation(e){let t=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s=p.Push;let r=_(f.location,e,t);n&&n(r,e),c=u()+1;let d=w(r,c),h=f.createHref(r);try{i.pushState(d,"",h)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(h)}o&&l&&l({action:s,location:f.location,delta:1})},replace:function(e,t){s=p.Replace;let r=_(f.location,e,t);n&&n(r,e),c=u();let a=w(r,c),d=f.createHref(r);i.replaceState(a,"",d),o&&l&&l({action:s,location:f.location,delta:0})},go:e=>i.go(e)};return f}var S;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(S||(S={}));const C=new Set(["lazy","caseSensitive","path","id","index","children"]);function M(e,t,n,r){return void 0===n&&(n=[]),void 0===r&&(r={}),e.map((e,a)=>{let o=[...n,String(a)],i="string"==typeof e.id?e.id:o.join("-");if(g(!0!==e.index||!e.children,"Cannot specify children on an index route"),g(!r[i],'Found a route id collision on id "'+i+"\".  Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let n=v({},e,t(e),{id:i});return r[i]=n,n}{let n=v({},e,t(e),{id:i,children:void 0});return r[i]=n,e.children&&(n.children=M(e.children,t,o,r)),n}})}function P(e,t,n){return void 0===n&&(n="/"),R(e,t,n,!1)}function R(e,t,n,r){let a=$(("string"==typeof t?k(t):t).pathname||"/",n);if(null==a)return null;let o=D(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(o);let i=null;for(let e=0;null==i&&e<o.length;++e){let t=F(a);i=V(o[e],t,r)}return i}function D(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let a=(e,a,o)=>{let i={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};i.relativePath.startsWith("/")&&(g(i.relativePath.startsWith(r),'Absolute route path "'+i.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(r.length));let s=J([r,i.relativePath]),l=n.concat(i);e.children&&e.children.length>0&&(g(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),D(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:U(s,e.index),routesMeta:l})};return e.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of O(e.path))a(e,t,n);else a(e,t)}),t}function O(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return a?[o,""]:[o];let i=O(r.join("/")),s=[];return s.push(...i.map(e=>""===e?o:[o,e].join("/"))),a&&s.push(...i),s.map(t=>e.startsWith("/")&&""===t?"/":t)}const z=/^:[\w-]+$/,L=3,j=2,A=1,T=10,I=-2,N=e=>"*"===e;function U(e,t){let n=e.split("/"),r=n.length;return n.some(N)&&(r+=I),t&&(r+=j),n.filter(e=>!N(e)).reduce((e,t)=>e+(z.test(t)?L:""===t?A:T),r)}function V(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,a={},o="/",i=[];for(let e=0;e<r.length;++e){let s=r[e],l=e===r.length-1,c="/"===o?t:t.slice(o.length)||"/",u=B({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},c),d=s.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=B({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!u)return null;Object.assign(a,u.params),i.push({params:a,pathname:J([o,u.pathname]),pathnameBase:Y(J([o,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(o=J([o,u.pathnameBase]))}return i}function B(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);b("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"));e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))");let o=new RegExp(a,t?void 0:"i");return[o,r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:r.reduce((e,t,n)=>{let{paramName:r,isOptional:a}=t;if("*"===r){let e=s[n]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[r]=a&&!l?void 0:(l||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:i,pattern:e}}function F(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return b(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function $(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function H(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function q(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function W(e,t){let n=q(e);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function Q(e,t,n,r){let a;void 0===r&&(r=!1),"string"==typeof e?a=k(e):(a=v({},e),g(!a.pathname||!a.pathname.includes("?"),H("?","pathname","search",a)),g(!a.pathname||!a.pathname.includes("#"),H("#","pathname","hash",a)),g(!a.search||!a.search.includes("#"),H("#","search","hash",a)));let o,i=""===e||""===a.pathname,s=i?"/":a.pathname;if(null==s)o=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:a=""}="string"==typeof e?k(e):e,o=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:o,search:G(r),hash:K(a)}}(a,o),c=s&&"/"!==s&&s.endsWith("/"),u=(i||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}const J=e=>e.join("/").replace(/\/\/+/g,"/"),Y=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),G=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",K=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;class X{constructor(e,t,n,r){void 0===r&&(r=!1),this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Z(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const ee=["post","put","patch","delete"],te=new Set(ee),ne=["get",...ee],re=new Set(ne),ae=new Set([301,302,303,307,308]),oe=new Set([307,308]),ie={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},se={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},le={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ce=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ue=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),de="remix-router-transitions";function he(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,n=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement,r=!n;let a;if(g(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;a=e=>({hasErrorBoundary:t(e)})}else a=ue;let o,i,s,l={},c=M(e.routes,a,void 0,l),u=e.basename||"/",d=e.dataStrategy||Ee,h=e.patchRoutesOnNavigation,f=v({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),m=null,y=new Set,w=null,E=null,k=null,x=null!=e.hydrationData,C=P(c,e.history.location,u),D=!1,O=null;if(null==C&&!h){let t=Te(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Ae(c);C=n,O={[r.id]:t}}if(C&&!e.hydrationData){ct(C,c,e.history.location.pathname).active&&(C=null)}if(C)if(C.some(e=>e.route.lazy))i=!1;else if(C.some(e=>e.route.loader))if(f.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=C.findIndex(e=>void 0!==n[e.route.id]);i=C.slice(0,e+1).every(e=>!ye(e.route,t,n))}else i=C.every(e=>!ye(e.route,t,n))}else i=null!=e.hydrationData;else i=!0;else if(i=!1,C=[],f.v7_partialHydration){let t=ct(null,c,e.history.location.pathname);t.active&&t.matches&&(D=!0,C=t.matches)}let z,L,j={historyAction:e.history.action,location:e.history.location,matches:C,initialized:i,navigation:ie,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||O,fetchers:new Map,blockers:new Map},A=p.Pop,T=!1,I=!1,N=new Map,U=null,V=!1,B=!1,F=[],H=new Set,q=new Map,W=0,Q=-1,J=new Map,Y=new Set,G=new Map,K=new Map,X=new Set,ee=new Map,te=new Map;function ne(e,t){void 0===t&&(t={}),j=v({},j,e);let n=[],r=[];f.v7_fetcherPersist&&j.fetchers.forEach((e,t)=>{"idle"===e.state&&(X.has(t)?r.push(t):n.push(t))}),X.forEach(e=>{j.fetchers.has(e)||q.has(e)||r.push(e)}),[...y].forEach(e=>e(j,{deletedFetchers:r,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),f.v7_fetcherPersist?(n.forEach(e=>j.fetchers.delete(e)),r.forEach(e=>Ne(e))):r.forEach(e=>X.delete(e))}function re(t,n,r){var a,i;let s,{flushSync:l}=void 0===r?{}:r,u=null!=j.actionData&&null!=j.navigation.formMethod&&We(j.navigation.formMethod)&&"loading"===j.navigation.state&&!0!==(null==(a=t.state)?void 0:a._isRedirect);s=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:u?j.actionData:null;let d=n.loaderData?ze(j.loaderData,n.loaderData,n.matches||[],n.errors):j.loaderData,h=j.blockers;h.size>0&&(h=new Map(h),h.forEach((e,t)=>h.set(t,le)));let f,m=!0===T||null!=j.navigation.formMethod&&We(j.navigation.formMethod)&&!0!==(null==(i=t.state)?void 0:i._isRedirect);if(o&&(c=o,o=void 0),V||A===p.Pop||(A===p.Push?e.history.push(t,t.state):A===p.Replace&&e.history.replace(t,t.state)),A===p.Pop){let e=N.get(j.location.pathname);e&&e.has(t.pathname)?f={currentLocation:j.location,nextLocation:t}:N.has(t.pathname)&&(f={currentLocation:t,nextLocation:j.location})}else if(I){let e=N.get(j.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),N.set(j.location.pathname,e)),f={currentLocation:j.location,nextLocation:t}}ne(v({},n,{actionData:s,loaderData:d,historyAction:A,location:t,initialized:!0,navigation:ie,revalidation:"idle",restoreScrollPosition:lt(t,n.matches||j.matches),preventScrollReset:m,blockers:h}),{viewTransitionOpts:f,flushSync:!0===l}),A=p.Pop,T=!1,I=!1,V=!1,B=!1,F=[]}async function ae(t,n,r){z&&z.abort(),z=null,A=t,V=!0===(r&&r.startUninterruptedRevalidation),function(e,t){if(w&&k){let n=st(e,t);w[n]=k()}}(j.location,j.matches),T=!0===(r&&r.preventScrollReset),I=!0===(r&&r.enableViewTransition);let a=o||c,i=r&&r.overrideNavigation,s=null!=r&&r.initialHydration&&j.matches&&j.matches.length>0&&!D?j.matches:P(a,n,u),l=!0===(r&&r.flushSync);if(s&&j.initialized&&!B&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(j.location,n)&&!(r&&r.submission&&We(r.submission.formMethod)))return void re(n,{matches:s},{flushSync:l});let d=ct(s,a,n.pathname);if(d.active&&d.matches&&(s=d.matches),!s){let{error:e,notFoundMatches:t,route:r}=ot(n.pathname);return void re(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:l})}z=new AbortController;let h,m=Me(e.history,n,z.signal,r&&r.submission);if(r&&r.pendingError)h=[je(s).route.id,{type:S.error,error:r.pendingError}];else if(r&&r.submission&&We(r.submission.formMethod)){let t=await async function(e,t,n,r,a,o){void 0===o&&(o={});_e();let i,s=function(e,t){let n={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return n}(t,n);if(ne({navigation:s},{flushSync:!0===o.flushSync}),a){let n=await ut(r,t.pathname,e.signal);if("aborted"===n.type)return{shortCircuited:!0};if("error"===n.type){let e=je(n.partialMatches).route.id;return{matches:n.partialMatches,pendingActionResult:[e,{type:S.error,error:n.error}]}}if(!n.matches){let{notFoundMatches:e,error:n,route:r}=ot(t.pathname);return{matches:e,pendingActionResult:[r.id,{type:S.error,error:n}]}}r=n.matches}let l=Ke(r,t);if(l.route.action||l.route.lazy){if(i=(await ge("action",j,e,[l],r,null))[l.route.id],e.signal.aborted)return{shortCircuited:!0}}else i={type:S.error,error:Te(405,{method:e.method,pathname:t.pathname,routeId:l.route.id})};if(Fe(i)){let t;if(o&&null!=o.replace)t=o.replace;else{t=Ce(i.response.headers.get("Location"),new URL(e.url),u)===j.location.pathname+j.location.search}return await me(e,i,!0,{submission:n,replace:t}),{shortCircuited:!0}}if(Ve(i))throw Te(400,{type:"defer-action"});if(Be(i)){let e=je(r,l.route.id);return!0!==(o&&o.replace)&&(A=p.Push),{matches:r,pendingActionResult:[e.route.id,i]}}return{matches:r,pendingActionResult:[l.route.id,i]}}(m,n,r.submission,s,d.active,{replace:r.replace,flushSync:l});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(Be(r)&&Z(r.error)&&404===r.error.status)return z=null,void re(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}s=t.matches||s,h=t.pendingActionResult,i=Ze(n,r.submission),l=!1,d.active=!1,m=Me(e.history,m.url,m.signal)}let{shortCircuited:y,matches:g,loaderData:b,errors:_}=await async function(t,n,r,a,i,s,l,d,h,p,m){let y=i||Ze(n,s),g=s||l||Xe(y),b=!(V||f.v7_partialHydration&&h);if(a){if(b){let e=he(m);ne(v({navigation:y},void 0!==e?{actionData:e}:{}),{flushSync:p})}let e=await ut(r,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=je(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=ot(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}r=e.matches}let w=o||c,[_,E]=ve(e.history,j,r,g,n,f.v7_partialHydration&&!0===h,f.v7_skipActionErrorRevalidation,B,F,H,X,G,Y,w,u,m);if(it(e=>!(r&&r.some(t=>t.route.id===e))||_&&_.some(t=>t.route.id===e)),Q=++W,0===_.length&&0===E.length){let e=qe();return re(n,v({matches:r,loaderData:{},errors:m&&Be(m[1])?{[m[0]]:m[1].error}:null},Le(m),e?{fetchers:new Map(j.fetchers)}:{}),{flushSync:p}),{shortCircuited:!0}}if(b){let e={};if(!a){e.navigation=y;let t=he(m);void 0!==t&&(e.actionData=t)}E.length>0&&(e.fetchers=function(e){return e.forEach(e=>{let t=j.fetchers.get(e.key),n=et(void 0,t?t.data:void 0);j.fetchers.set(e.key,n)}),new Map(j.fetchers)}(E)),ne(e,{flushSync:p})}E.forEach(e=>{$e(e.key),e.controller&&q.set(e.key,e.controller)});let k=()=>E.forEach(e=>$e(e.key));z&&z.signal.addEventListener("abort",k);let{loaderResults:x,fetcherResults:S}=await be(j,r,_,E,t);if(t.signal.aborted)return{shortCircuited:!0};z&&z.signal.removeEventListener("abort",k);E.forEach(e=>q.delete(e.key));let C=Ie(x);if(C)return await me(t,C.result,!0,{replace:d}),{shortCircuited:!0};if(C=Ie(S),C)return Y.add(C.key),await me(t,C.result,!0,{replace:d}),{shortCircuited:!0};let{loaderData:M,errors:P}=Oe(j,r,x,m,E,S,ee);ee.forEach((e,t)=>{e.subscribe(n=>{(n||e.done)&&ee.delete(t)})}),f.v7_partialHydration&&h&&j.errors&&(P=v({},j.errors,P));let R=qe(),D=Ge(Q),O=R||D||E.length>0;return v({matches:r,loaderData:M,errors:P},O?{fetchers:new Map(j.fetchers)}:{})}(m,n,s,d.active,i,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&!0===r.initialHydration,l,h);y||(z=null,re(n,v({matches:g||s},Le(h),{loaderData:b,errors:_})))}function he(e){return e&&!Be(e[1])?{[e[0]]:e[1].data}:j.actionData?0===Object.keys(j.actionData).length?null:j.actionData:void 0}async function me(r,a,o,i){let{submission:s,fetcherSubmission:l,preventScrollReset:c,replace:d}=void 0===i?{}:i;a.response.headers.has("X-Remix-Revalidate")&&(B=!0);let h=a.response.headers.get("Location");g(h,"Expected a Location header on the redirect Response"),h=Ce(h,new URL(r.url),u);let f=_(j.location,h,{_isRedirect:!0});if(n){let n=!1;if(a.response.headers.has("X-Remix-Reload-Document"))n=!0;else if(ce.test(h)){const r=e.history.createURL(h);n=r.origin!==t.location.origin||null==$(r.pathname,u)}if(n)return void(d?t.location.replace(h):t.location.assign(h))}z=null;let m=!0===d||a.response.headers.has("X-Remix-Replace")?p.Replace:p.Push,{formMethod:y,formAction:b,formEncType:w}=j.navigation;!s&&!l&&y&&b&&w&&(s=Xe(j.navigation));let E=s||l;if(oe.has(a.response.status)&&E&&We(E.formMethod))await ae(m,f,{submission:v({},E,{formAction:h}),preventScrollReset:c||T,enableViewTransition:o?I:void 0});else{let e=Ze(f,s);await ae(m,f,{overrideNavigation:e,fetcherSubmission:l,preventScrollReset:c||T,enableViewTransition:o?I:void 0})}}async function ge(e,t,n,r,o,i){let s,c={};try{s=await ke(d,e,t,n,r,o,i,l,a)}catch(e){return r.forEach(t=>{c[t.route.id]={type:S.error,error:e}}),c}for(let[e,t]of Object.entries(s))if(Ue(t)){let r=t.result;c[e]={type:S.redirect,response:Se(r,n,e,o,u,f.v7_relativeSplatPath)}}else c[e]=await xe(t);return c}async function be(t,n,r,a,o){let i=t.matches,s=ge("loader",t,o,r,n,null),l=Promise.all(a.map(async n=>{if(n.matches&&n.match&&n.controller){let r=(await ge("loader",t,Me(e.history,n.path,n.controller.signal),[n.match],n.matches,n.key))[n.match.route.id];return{[n.key]:r}}return Promise.resolve({[n.key]:{type:S.error,error:Te(404,{pathname:n.path})}})})),c=await s,u=(await l).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([Qe(n,c,o.signal,i,t.loaderData),Je(n,u,a)]),{loaderResults:c,fetcherResults:u}}function _e(){B=!0,F.push(...it()),G.forEach((e,t)=>{q.has(t)&&H.add(t),$e(t)})}function Pe(e,t,n){void 0===n&&(n={}),j.fetchers.set(e,t),ne({fetchers:new Map(j.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function Re(e,t,n,r){void 0===r&&(r={});let a=je(j.matches,t);Ne(e),ne({errors:{[a.route.id]:n},fetchers:new Map(j.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function De(e){return K.set(e,(K.get(e)||0)+1),X.has(e)&&X.delete(e),j.fetchers.get(e)||se}function Ne(e){let t=j.fetchers.get(e);!q.has(e)||t&&"loading"===t.state&&J.has(e)||$e(e),G.delete(e),J.delete(e),Y.delete(e),f.v7_fetcherPersist&&X.delete(e),H.delete(e),j.fetchers.delete(e)}function $e(e){let t=q.get(e);t&&(t.abort(),q.delete(e))}function He(e){for(let t of e){let e=tt(De(t).data);j.fetchers.set(t,e)}}function qe(){let e=[],t=!1;for(let n of Y){let r=j.fetchers.get(n);g(r,"Expected fetcher: "+n),"loading"===r.state&&(Y.delete(n),e.push(n),t=!0)}return He(e),t}function Ge(e){let t=[];for(let[n,r]of J)if(r<e){let e=j.fetchers.get(n);g(e,"Expected fetcher: "+n),"loading"===e.state&&($e(n),J.delete(n),t.push(n))}return He(t),t.length>0}function nt(e){j.blockers.delete(e),te.delete(e)}function rt(e,t){let n=j.blockers.get(e)||le;g("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,"Invalid blocker state transition: "+n.state+" -> "+t.state);let r=new Map(j.blockers);r.set(e,t),ne({blockers:r})}function at(e){let{currentLocation:t,nextLocation:n,historyAction:r}=e;if(0===te.size)return;te.size>1&&b(!1,"A router only supports one blocker at a time");let a=Array.from(te.entries()),[o,i]=a[a.length-1],s=j.blockers.get(o);return s&&"proceeding"===s.state?void 0:i({currentLocation:t,nextLocation:n,historyAction:r})?o:void 0}function ot(e){let t=Te(404,{pathname:e}),n=o||c,{matches:r,route:a}=Ae(n);return it(),{notFoundMatches:r,route:a,error:t}}function it(e){let t=[];return ee.forEach((n,r)=>{e&&!e(r)||(n.cancel(),t.push(r),ee.delete(r))}),t}function st(e,t){if(E){return E(e,t.map(e=>function(e,t){let{route:n,pathname:r,params:a}=e;return{id:n.id,pathname:r,params:a,data:t[n.id],handle:n.handle}}(e,j.loaderData)))||e.key}return e.key}function lt(e,t){if(w){let n=st(e,t),r=w[n];if("number"==typeof r)return r}return null}function ct(e,t,n){if(h){if(!e){return{active:!0,matches:R(t,n,u,!0)||[]}}if(Object.keys(e[0].params).length>0){return{active:!0,matches:R(t,n,u,!0)}}}return{active:!1,matches:null}}async function ut(e,t,n,r){if(!h)return{type:"success",matches:e};let i=e;for(;;){let e=null==o,s=o||c,d=l;try{await h({signal:n,path:t,matches:i,fetcherKey:r,patch:(e,t)=>{n.aborted||we(e,t,s,d,a)}})}catch(e){return{type:"error",error:e,partialMatches:i}}finally{e&&!n.aborted&&(c=[...c])}if(n.aborted)return{type:"aborted"};let p=P(s,t,u);if(p)return{type:"success",matches:p};let f=R(s,t,u,!0);if(!f||i.length===f.length&&i.every((e,t)=>e.route.id===f[t].route.id))return{type:"success",matches:null};i=f}}return s={get basename(){return u},get future(){return f},get state(){return j},get routes(){return c},get window(){return t},initialize:function(){if(m=e.history.listen(t=>{let{action:n,location:r,delta:a}=t;if(L)return L(),void(L=void 0);b(0===te.size||null!=a,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=at({currentLocation:j.location,nextLocation:r,historyAction:n});if(o&&null!=a){let t=new Promise(e=>{L=e});return e.history.go(-1*a),void rt(o,{state:"blocked",location:r,proceed(){rt(o,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),t.then(()=>e.history.go(a))},reset(){let e=new Map(j.blockers);e.set(o,le),ne({blockers:e})}})}return ae(n,r)}),n){!function(e,t){try{let n=e.sessionStorage.getItem(de);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(e){}}(t,N);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(de,JSON.stringify(n))}catch(e){b(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(t,N);t.addEventListener("pagehide",e),U=()=>t.removeEventListener("pagehide",e)}return j.initialized||ae(p.Pop,j.location,{initialHydration:!0}),s},subscribe:function(e){return y.add(e),()=>y.delete(e)},enableScrollRestoration:function(e,t,n){if(w=e,k=t,E=n||null,!x&&j.navigation===ie){x=!0;let e=lt(j.location,j.matches);null!=e&&ne({restoreScrollPosition:e})}return()=>{w=null,k=null,E=null}},navigate:async function t(n,r){if("number"==typeof n)return void e.history.go(n);let a=pe(j.location,j.matches,u,f.v7_prependBasename,n,f.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:o,submission:i,error:s}=fe(f.v7_normalizeFormMethod,!1,a,r),l=j.location,c=_(j.location,o,r&&r.state);c=v({},c,e.history.encodeLocation(c));let d=r&&null!=r.replace?r.replace:void 0,h=p.Push;!0===d?h=p.Replace:!1===d||null!=i&&We(i.formMethod)&&i.formAction===j.location.pathname+j.location.search&&(h=p.Replace);let m=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,y=!0===(r&&r.flushSync),g=at({currentLocation:l,nextLocation:c,historyAction:h});if(!g)return await ae(h,c,{submission:i,pendingError:s,preventScrollReset:m,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:y});rt(g,{state:"blocked",location:c,proceed(){rt(g,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),t(n,r)},reset(){let e=new Map(j.blockers);e.set(g,le),ne({blockers:e})}})},fetch:function(t,n,a,i){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");$e(t);let s=!0===(i&&i.flushSync),l=o||c,d=pe(j.location,j.matches,u,f.v7_prependBasename,a,f.v7_relativeSplatPath,n,null==i?void 0:i.relative),h=P(l,d,u),p=ct(h,l,d);if(p.active&&p.matches&&(h=p.matches),!h)return void Re(t,n,Te(404,{pathname:d}),{flushSync:s});let{path:m,submission:v,error:y}=fe(f.v7_normalizeFormMethod,!0,d,i);if(y)return void Re(t,n,y,{flushSync:s});let b=Ke(h,m),w=!0===(i&&i.preventScrollReset);v&&We(v.formMethod)?async function(t,n,r,a,i,s,l,d,h){function p(e){if(!e.route.action&&!e.route.lazy){let e=Te(405,{method:h.formMethod,pathname:r,routeId:n});return Re(t,n,e,{flushSync:l}),!0}return!1}if(_e(),G.delete(t),!s&&p(a))return;let m=j.fetchers.get(t);Pe(t,function(e,t){let n={state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0};return n}(h,m),{flushSync:l});let v=new AbortController,y=Me(e.history,r,v.signal,h);if(s){let e=await ut(i,new URL(y.url).pathname,y.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Re(t,n,e.error,{flushSync:l});if(!e.matches)return void Re(t,n,Te(404,{pathname:r}),{flushSync:l});if(p(a=Ke(i=e.matches,r)))return}q.set(t,v);let b=W,w=await ge("action",j,y,[a],i,t),_=w[a.route.id];if(y.signal.aborted)return void(q.get(t)===v&&q.delete(t));if(f.v7_fetcherPersist&&X.has(t)){if(Fe(_)||Be(_))return void Pe(t,tt(void 0))}else{if(Fe(_))return q.delete(t),Q>b?void Pe(t,tt(void 0)):(Y.add(t),Pe(t,et(h)),me(y,_,!1,{fetcherSubmission:h,preventScrollReset:d}));if(Be(_))return void Re(t,n,_.error)}if(Ve(_))throw Te(400,{type:"defer-action"});let E=j.navigation.location||j.location,k=Me(e.history,E,v.signal),x=o||c,S="idle"!==j.navigation.state?P(x,j.navigation.location,u):j.matches;g(S,"Didn't find any matches after fetcher action");let C=++W;J.set(t,C);let M=et(h,_.data);j.fetchers.set(t,M);let[R,D]=ve(e.history,j,S,h,E,!1,f.v7_skipActionErrorRevalidation,B,F,H,X,G,Y,x,u,[a.route.id,_]);D.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=j.fetchers.get(t),r=et(void 0,n?n.data:void 0);j.fetchers.set(t,r),$e(t),e.controller&&q.set(t,e.controller)}),ne({fetchers:new Map(j.fetchers)});let O=()=>D.forEach(e=>$e(e.key));v.signal.addEventListener("abort",O);let{loaderResults:L,fetcherResults:T}=await be(j,S,R,D,k);if(v.signal.aborted)return;v.signal.removeEventListener("abort",O),J.delete(t),q.delete(t),D.forEach(e=>q.delete(e.key));let I=Ie(L);if(I)return me(k,I.result,!1,{preventScrollReset:d});if(I=Ie(T),I)return Y.add(I.key),me(k,I.result,!1,{preventScrollReset:d});let{loaderData:N,errors:U}=Oe(j,S,L,void 0,D,T,ee);if(j.fetchers.has(t)){let e=tt(_.data);j.fetchers.set(t,e)}Ge(C),"loading"===j.navigation.state&&C>Q?(g(A,"Expected pending action"),z&&z.abort(),re(j.navigation.location,{matches:S,loaderData:N,errors:U,fetchers:new Map(j.fetchers)})):(ne({errors:U,loaderData:ze(j.loaderData,N,S,U),fetchers:new Map(j.fetchers)}),B=!1)}(t,n,m,b,h,p.active,s,w,v):(G.set(t,{routeId:n,path:m}),async function(t,n,r,a,o,i,s,l,c){let u=j.fetchers.get(t);Pe(t,et(c,u?u.data:void 0),{flushSync:s});let d=new AbortController,h=Me(e.history,r,d.signal);if(i){let e=await ut(o,new URL(h.url).pathname,h.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Re(t,n,e.error,{flushSync:s});if(!e.matches)return void Re(t,n,Te(404,{pathname:r}),{flushSync:s});a=Ke(o=e.matches,r)}q.set(t,d);let p=W,f=await ge("loader",j,h,[a],o,t),m=f[a.route.id];Ve(m)&&(m=await Ye(m,h.signal,!0)||m);q.get(t)===d&&q.delete(t);if(h.signal.aborted)return;if(X.has(t))return void Pe(t,tt(void 0));if(Fe(m))return Q>p?void Pe(t,tt(void 0)):(Y.add(t),void await me(h,m,!1,{preventScrollReset:l}));if(Be(m))return void Re(t,n,m.error);g(!Ve(m),"Unhandled fetcher deferred data"),Pe(t,tt(m.data))}(t,n,m,b,h,p.active,s,w,v))},revalidate:function(){_e(),ne({revalidation:"loading"}),"submitting"!==j.navigation.state&&("idle"!==j.navigation.state?ae(A||j.historyAction,j.navigation.location,{overrideNavigation:j.navigation,enableViewTransition:!0===I}):ae(j.historyAction,j.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:De,deleteFetcher:function(e){let t=(K.get(e)||0)-1;t<=0?(K.delete(e),X.add(e),f.v7_fetcherPersist||Ne(e)):K.set(e,t),ne({fetchers:new Map(j.fetchers)})},dispose:function(){m&&m(),U&&U(),y.clear(),z&&z.abort(),j.fetchers.forEach((e,t)=>Ne(t)),j.blockers.forEach((e,t)=>nt(t))},getBlocker:function(e,t){let n=j.blockers.get(e)||le;return te.get(e)!==t&&te.set(e,t),n},deleteBlocker:nt,patchRoutes:function(e,t){let n=null==o;we(e,t,o||c,l,a),n&&(c=[...c],ne({}))},_internalFetchControllers:q,_internalActiveDeferreds:ee,_internalSetRoutes:function(e){l={},o=M(e,a,void 0,l)}},s}Symbol("deferred");function pe(e,t,n,r,a,o,i,s){let l,c;if(i){l=[];for(let e of t)if(l.push(e),e.route.id===i){c=e;break}}else l=t,c=t[t.length-1];let u=Q(a||".",W(l,o),$(e.pathname,n)||e.pathname,"path"===s);if(null==a&&(u.search=e.search,u.hash=e.hash),(null==a||""===a||"."===a)&&c){let e=Ge(u.search);if(c.route.index&&!e)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&e){let e=new URLSearchParams(u.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();u.search=n?"?"+n:""}}return r&&"/"!==n&&(u.pathname="/"===u.pathname?n:J([n,u.pathname])),E(u)}function fe(e,t,n,r){if(!r||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(r))return{path:n};if(r.formMethod&&!qe(r.formMethod))return{path:n,error:Te(405,{method:r.formMethod})};let a,o,i=()=>({path:n,error:Te(400,{type:"invalid-body"})}),s=r.formMethod||"get",l=e?s.toUpperCase():s.toLowerCase(),c=Ne(n);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!We(l))return i();let e="string"==typeof r.body?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((e,t)=>{let[n,r]=t;return""+e+n+"="+r+"\n"},""):String(r.body);return{path:n,submission:{formMethod:l,formAction:c,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===r.formEncType){if(!We(l))return i();try{let e="string"==typeof r.body?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:l,formAction:c,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return i()}}}if(g("function"==typeof FormData,"FormData is not available in this environment"),r.formData)a=Pe(r.formData),o=r.formData;else if(r.body instanceof FormData)a=Pe(r.body),o=r.body;else if(r.body instanceof URLSearchParams)a=r.body,o=Re(a);else if(null==r.body)a=new URLSearchParams,o=new FormData;else try{a=new URLSearchParams(r.body),o=Re(a)}catch(e){return i()}let u={formMethod:l,formAction:c,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(We(u.formMethod))return{path:n,submission:u};let d=k(n);return t&&d.search&&Ge(d.search)&&a.append("index",""),d.search="?"+a,{path:E(d),submission:u}}function me(e,t,n){void 0===n&&(n=!1);let r=e.findIndex(e=>e.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function ve(e,t,n,r,a,o,i,s,l,c,u,d,h,p,f,m){let y=m?Be(m[1])?m[1].error:m[1].data:void 0,g=e.createURL(t.location),b=e.createURL(a),w=n;o&&t.errors?w=me(n,Object.keys(t.errors)[0],!0):m&&Be(m[1])&&(w=me(n,m[0]));let _=m?m[1].statusCode:void 0,E=i&&_&&_>=400,k=w.filter((e,n)=>{let{route:a}=e;if(a.lazy)return!0;if(null==a.loader)return!1;if(o)return ye(a,t.loaderData,t.errors);if(function(e,t,n){let r=!t||n.route.id!==t.route.id,a=void 0===e[n.route.id];return r||a}(t.loaderData,t.matches[n],e)||l.some(t=>t===e.route.id))return!0;let i=t.matches[n],c=e;return be(e,v({currentUrl:g,currentParams:i.params,nextUrl:b,nextParams:c.params},r,{actionResult:y,actionStatus:_,defaultShouldRevalidate:!E&&(s||g.pathname+g.search===b.pathname+b.search||g.search!==b.search||ge(i,c))}))}),x=[];return d.forEach((e,a)=>{if(o||!n.some(t=>t.route.id===e.routeId)||u.has(a))return;let i=P(p,e.path,f);if(!i)return void x.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let l=t.fetchers.get(a),d=Ke(i,e.path),m=!1;h.has(a)?m=!1:c.has(a)?(c.delete(a),m=!0):m=l&&"idle"!==l.state&&void 0===l.data?s:be(d,v({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:n[n.length-1].params},r,{actionResult:y,actionStatus:_,defaultShouldRevalidate:!E&&s})),m&&x.push({key:a,routeId:e.routeId,path:e.path,matches:i,match:d,controller:new AbortController})}),[k,x]}function ye(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=null!=t&&void 0!==t[e.id],a=null!=n&&void 0!==n[e.id];return!(!r&&a)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!r&&!a)}function ge(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function be(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function we(e,t,n,r,a){var o;let i;if(e){let t=r[e];g(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),i=t.children}else i=n;let s=M(t.filter(e=>!i.some(t=>_e(e,t))),a,[e||"_","patch",String((null==(o=i)?void 0:o.length)||"0")],r);i.push(...s)}function _e(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||e.children.every((e,n)=>{var r;return null==(r=t.children)?void 0:r.some(t=>_e(e,t))}))}async function Ee(e){let{matches:t}=e,n=t.filter(e=>e.shouldLoad);return(await Promise.all(n.map(e=>e.resolve()))).reduce((e,t,r)=>Object.assign(e,{[n[r].route.id]:t}),{})}async function ke(e,t,n,r,a,o,i,s,l,c){let u=o.map(e=>e.route.lazy?async function(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let a=n[e.id];g(a,"No route found in manifest");let o={};for(let e in r){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;b(!t,'Route "'+a.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||C.has(e)||(o[e]=r[e])}Object.assign(a,o),Object.assign(a,v({},t(a),{lazy:void 0}))}(e.route,l,s):void 0),d=o.map((e,n)=>{let o=u[n],i=a.some(t=>t.route.id===e.route.id);return v({},e,{shouldLoad:i,resolve:async n=>(n&&"GET"===r.method&&(e.route.lazy||e.route.loader)&&(i=!0),i?async function(e,t,n,r,a,o){let i,s,l=r=>{let i,l=new Promise((e,t)=>i=t);s=()=>i(),t.signal.addEventListener("abort",s);let c=a=>"function"!=typeof r?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+n.route.id+"]")):r({request:t,params:n.params,context:o},...void 0!==a?[a]:[]),u=(async()=>{try{let e=await(a?a(e=>c(e)):c());return{type:"data",result:e}}catch(e){return{type:"error",result:e}}})();return Promise.race([u,l])};try{let a=n.route[e];if(r)if(a){let e,[t]=await Promise.all([l(a).catch(t=>{e=t}),r]);if(void 0!==e)throw e;i=t}else{if(await r,a=n.route[e],!a){if("action"===e){let e=new URL(t.url),r=e.pathname+e.search;throw Te(405,{method:t.method,pathname:r,routeId:n.route.id})}return{type:S.data,result:void 0}}i=await l(a)}else{if(!a){let e=new URL(t.url);throw Te(404,{pathname:e.pathname+e.search})}i=await l(a)}g(void 0!==i.result,"You defined "+("action"===e?"an action":"a loader")+' for route "'+n.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){return{type:S.error,result:e}}finally{s&&t.signal.removeEventListener("abort",s)}return i}(t,r,e,o,n,c):Promise.resolve({type:S.data,result:void 0}))})}),h=await e({matches:d,request:r,params:o[0].params,fetcherKey:i,context:c});try{await Promise.all(u)}catch(e){}return h}async function xe(e){let{result:t,type:n}=e;if(He(t)){let e;try{let n=t.headers.get("Content-Type");e=n&&/\bapplication\/json\b/.test(n)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:S.error,error:e}}return n===S.error?{type:S.error,error:new X(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:S.data,data:e,statusCode:t.status,headers:t.headers}}var r,a,o,i,s,l,c,u;return n===S.error?$e(t)?t.data instanceof Error?{type:S.error,error:t.data,statusCode:null==(o=t.init)?void 0:o.status,headers:null!=(i=t.init)&&i.headers?new Headers(t.init.headers):void 0}:{type:S.error,error:new X((null==(r=t.init)?void 0:r.status)||500,void 0,t.data),statusCode:Z(t)?t.status:void 0,headers:null!=(a=t.init)&&a.headers?new Headers(t.init.headers):void 0}:{type:S.error,error:t,statusCode:Z(t)?t.status:void 0}:function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(t)?{type:S.deferred,deferredData:t,statusCode:null==(s=t.init)?void 0:s.status,headers:(null==(l=t.init)?void 0:l.headers)&&new Headers(t.init.headers)}:$e(t)?{type:S.data,data:t.data,statusCode:null==(c=t.init)?void 0:c.status,headers:null!=(u=t.init)&&u.headers?new Headers(t.init.headers):void 0}:{type:S.data,data:t}}function Se(e,t,n,r,a,o){let i=e.headers.get("Location");if(g(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!ce.test(i)){let s=r.slice(0,r.findIndex(e=>e.route.id===n)+1);i=pe(new URL(t.url),s,a,!0,i,o),e.headers.set("Location",i)}return e}function Ce(e,t,n){if(ce.test(e)){let r=e,a=r.startsWith("//")?new URL(t.protocol+r):new URL(r),o=null!=$(a.pathname,n);if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function Me(e,t,n,r){let a=e.createURL(Ne(t)).toString(),o={signal:n};if(r&&We(r.formMethod)){let{formMethod:e,formEncType:t}=r;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(r.json)):"text/plain"===t?o.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?o.body=Pe(r.formData):o.body=r.formData}return new Request(a,o)}function Pe(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function Re(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function De(e,t,n,r,a){let o,i={},s=null,l=!1,c={},u=n&&Be(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let d=n.route.id,h=t[d];if(g(!Fe(h),"Cannot handle redirect results in processLoaderData"),Be(h)){let t=h.error;if(void 0!==u&&(t=u,u=void 0),s=s||{},a)s[d]=t;else{let n=je(e,d);null==s[n.route.id]&&(s[n.route.id]=t)}i[d]=void 0,l||(l=!0,o=Z(h.error)?h.error.status:500),h.headers&&(c[d]=h.headers)}else Ve(h)?(r.set(d,h.deferredData),i[d]=h.deferredData.data,null==h.statusCode||200===h.statusCode||l||(o=h.statusCode),h.headers&&(c[d]=h.headers)):(i[d]=h.data,h.statusCode&&200!==h.statusCode&&!l&&(o=h.statusCode),h.headers&&(c[d]=h.headers))}),void 0!==u&&n&&(s={[n[0]]:u},i[n[0]]=void 0),{loaderData:i,errors:s,statusCode:o||200,loaderHeaders:c}}function Oe(e,t,n,r,a,o,i){let{loaderData:s,errors:l}=De(t,n,r,i,!1);return a.forEach(t=>{let{key:n,match:r,controller:a}=t,i=o[n];if(g(i,"Did not find corresponding fetcher result"),!a||!a.signal.aborted)if(Be(i)){let t=je(e.matches,null==r?void 0:r.route.id);l&&l[t.route.id]||(l=v({},l,{[t.route.id]:i.error})),e.fetchers.delete(n)}else if(Fe(i))g(!1,"Unhandled fetcher revalidation redirect");else if(Ve(i))g(!1,"Unhandled fetcher deferred data");else{let t=tt(i.data);e.fetchers.set(n,t)}}),{loaderData:s,errors:l}}function ze(e,t,n,r){let a=v({},t);for(let o of n){let n=o.route.id;if(t.hasOwnProperty(n)?void 0!==t[n]&&(a[n]=t[n]):void 0!==e[n]&&o.route.loader&&(a[n]=e[n]),r&&r.hasOwnProperty(n))break}return a}function Le(e){return e?Be(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function je(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function Ae(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Te(e,t){let{pathname:n,routeId:r,method:a,type:o,message:i}=void 0===t?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(s="Bad Request",a&&n&&r?l="You made a "+a+' request to "'+n+'" but did not provide a `loader` for route "'+r+'", so there is no way to handle the request.':"defer-action"===o?l="defer() is not supported in actions":"invalid-body"===o&&(l="Unable to encode submission body")):403===e?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):404===e?(s="Not Found",l='No route matches URL "'+n+'"'):405===e&&(s="Method Not Allowed",a&&n&&r?l="You made a "+a.toUpperCase()+' request to "'+n+'" but did not provide an `action` for route "'+r+'", so there is no way to handle the request.':a&&(l='Invalid request method "'+a.toUpperCase()+'"')),new X(e||500,s,new Error(l),!0)}function Ie(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(Fe(r))return{key:n,result:r}}}function Ne(e){return E(v({},"string"==typeof e?k(e):e,{hash:""}))}function Ue(e){return He(e.result)&&ae.has(e.result.status)}function Ve(e){return e.type===S.deferred}function Be(e){return e.type===S.error}function Fe(e){return(e&&e.type)===S.redirect}function $e(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function He(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function qe(e){return re.has(e.toLowerCase())}function We(e){return te.has(e.toLowerCase())}async function Qe(e,t,n,r,a){let o=Object.entries(t);for(let i=0;i<o.length;i++){let[s,l]=o[i],c=e.find(e=>(null==e?void 0:e.route.id)===s);if(!c)continue;let u=r.find(e=>e.route.id===c.route.id),d=null!=u&&!ge(u,c)&&void 0!==(a&&a[c.route.id]);Ve(l)&&d&&await Ye(l,n,!1).then(e=>{e&&(t[s]=e)})}}async function Je(e,t,n){for(let r=0;r<n.length;r++){let{key:a,routeId:o,controller:i}=n[r],s=t[a];e.find(e=>(null==e?void 0:e.route.id)===o)&&(Ve(s)&&(g(i,"Expected an AbortController for revalidating fetcher deferred result"),await Ye(s,i.signal,!0).then(e=>{e&&(t[a]=e)})))}}async function Ye(e,t,n){if(void 0===n&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:S.data,data:e.deferredData.unwrappedData}}catch(e){return{type:S.error,error:e}}return{type:S.data,data:e.deferredData.data}}}function Ge(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function Ke(e,t){let n="string"==typeof t?k(t).search:t.search;if(e[e.length-1].route.index&&Ge(n||""))return e[e.length-1];let r=q(e);return r[r.length-1]}function Xe(e){let{formMethod:t,formAction:n,formEncType:r,text:a,formData:o,json:i}=e;if(t&&n&&r)return null!=a?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:a}:null!=o?{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}:void 0}function Ze(e,t){if(t){return{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}return{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function et(e,t){if(e){return{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}}return{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function tt(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}
/**
 * React Router v6.30.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */
function nt(){return nt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nt.apply(this,arguments)}const rt=m.createContext(null);const at=m.createContext(null);const ot=m.createContext(null);const it=m.createContext(null);const st=m.createContext({outlet:null,matches:[],isDataRoute:!1});const lt=m.createContext(null);function ct(){return null!=m.useContext(it)}function ut(){return ct()||g(!1),m.useContext(it).location}function dt(e){ct()||g(!1);let{pathname:t}=ut();return m.useMemo(()=>B(e,F(t)),[t,e])}function ht(e){m.useContext(ot).static||m.useLayoutEffect(e)}function pt(){let{isDataRoute:e}=m.useContext(st);return e?function(){let{router:e}=xt(Et.UseNavigateStable),t=Ct(kt.UseNavigateStable),n=m.useRef(!1);ht(()=>{n.current=!0});let r=m.useCallback(function(r,a){void 0===a&&(a={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,nt({fromRouteId:t},a)))},[e,t]);return r}():function(){ct()||g(!1);let e=m.useContext(rt),{basename:t,future:n,navigator:r}=m.useContext(ot),{matches:a}=m.useContext(st),{pathname:o}=ut(),i=JSON.stringify(W(a,n.v7_relativeSplatPath)),s=m.useRef(!1);ht(()=>{s.current=!0});let l=m.useCallback(function(n,a){if(void 0===a&&(a={}),!s.current)return;if("number"==typeof n)return void r.go(n);let l=Q(n,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:J([t,l.pathname])),(a.replace?r.replace:r.push)(l,a.state,a)},[t,r,i,o,e]);return l}()}const ft=m.createContext(null);function mt(e,t){let{relative:n}=void 0===t?{}:t,{future:r}=m.useContext(ot),{matches:a}=m.useContext(st),{pathname:o}=ut(),i=JSON.stringify(W(a,r.v7_relativeSplatPath));return m.useMemo(()=>Q(e,JSON.parse(i),o,"path"===n),[e,i,o,n])}function vt(e,t,n,r){ct()||g(!1);let{navigator:a}=m.useContext(ot),{matches:o}=m.useContext(st),i=o[o.length-1],s=i?i.params:{},l=(i&&i.pathname,i?i.pathnameBase:"/");i&&i.route;let c,u=ut();if(t){var d;let e="string"==typeof t?k(t):t;"/"===l||(null==(d=e.pathname)?void 0:d.startsWith(l))||g(!1),c=e}else c=u;let h=c.pathname||"/",f=h;if("/"!==l){let e=l.replace(/^\//,"").split("/");f="/"+h.replace(/^\//,"").split("/").slice(e.length).join("/")}let v=P(e,{pathname:f});let y=_t(v&&v.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:J([l,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:J([l,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),o,n,r);return t&&y?m.createElement(it.Provider,{value:{location:nt({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:p.Pop}},y):y}function yt(){let e=function(){var e;let t=m.useContext(lt),n=St(kt.UseRouteError),r=Ct(kt.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=Z(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r};return m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),n?m.createElement("pre",{style:a},n):null,null)}const gt=m.createElement(yt,null);class bt extends m.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?m.createElement(st.Provider,{value:this.props.routeContext},m.createElement(lt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function wt(e){let{routeContext:t,match:n,children:r}=e,a=m.useContext(rt);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),m.createElement(st.Provider,{value:t},r)}function _t(e,t,n,r){var a;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){var o;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(o=r)&&o.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let i=e,s=null==(a=n)?void 0:a.errors;if(null!=s){let e=i.findIndex(e=>e.route.id&&void 0!==(null==s?void 0:s[e.route.id]));e>=0||g(!1),i=i.slice(0,Math.min(i.length,e+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:r}=n,a=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||a){l=!0,i=c>=0?i.slice(0,c+1):[i[0]];break}}}return i.reduceRight((e,r,a)=>{let o,u=!1,d=null,h=null;var p;n&&(o=s&&r.route.id?s[r.route.id]:void 0,d=r.route.errorElement||gt,l&&(c<0&&0===a?(p="route-fallback",!1||Mt[p]||(Mt[p]=!0),u=!0,h=null):c===a&&(u=!0,h=r.route.hydrateFallbackElement||null)));let f=t.concat(i.slice(0,a+1)),v=()=>{let t;return t=o?d:u?h:r.route.Component?m.createElement(r.route.Component,null):r.route.element?r.route.element:e,m.createElement(wt,{match:r,routeContext:{outlet:e,matches:f,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===a)?m.createElement(bt,{location:n.location,revalidation:n.revalidation,component:d,error:o,children:v(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):v()},null)}var Et=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Et||{}),kt=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(kt||{});function xt(e){let t=m.useContext(rt);return t||g(!1),t}function St(e){let t=m.useContext(at);return t||g(!1),t}function Ct(e){let t=function(){let e=m.useContext(st);return e||g(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||g(!1),n.route.id}const Mt={};function Pt(e,t){null==e||e.v7_startTransition,void 0===(null==e?void 0:e.v7_relativeSplatPath)&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}m.startTransition;function Rt(e){return function(e){let t=m.useContext(st).outlet;return t?m.createElement(ft.Provider,{value:e},t):t}(e.context)}function Dt(e){g(!1)}function Ot(e){let{basename:t="/",children:n=null,location:r,navigationType:a=p.Pop,navigator:o,static:i=!1,future:s}=e;ct()&&g(!1);let l=t.replace(/^\/*/,"/"),c=m.useMemo(()=>({basename:l,navigator:o,static:i,future:nt({v7_relativeSplatPath:!1},s)}),[l,s,o,i]);"string"==typeof r&&(r=k(r));let{pathname:u="/",search:d="",hash:h="",state:f=null,key:v="default"}=r,y=m.useMemo(()=>{let e=$(u,l);return null==e?null:{location:{pathname:e,search:d,hash:h,state:f,key:v},navigationType:a}},[l,u,d,h,f,v,a]);return null==y?null:m.createElement(ot.Provider,{value:c},m.createElement(it.Provider,{children:n,value:y}))}new Promise(()=>{});m.Component;function zt(e,t){void 0===t&&(t=[]);let n=[];return m.Children.forEach(e,(e,r)=>{if(!m.isValidElement(e))return;let a=[...t,r];if(e.type===m.Fragment)return void n.push.apply(n,zt(e.props.children,a));e.type!==Dt&&g(!1),e.props.index&&e.props.children&&g(!1);let o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=zt(e.props.children,a)),n.push(o)}),n}function Lt(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:m.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:m.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:m.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}var jt=ReactDOM;
/**
 * React Router DOM v6.30.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */
function At(){return At=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},At.apply(this,arguments)}function Tt(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const It=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Nt=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"];try{window.__reactRouterVersion="6"}catch(e){}function Ut(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=At({},t,{errors:Vt(t.errors)})),t}function Vt(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[e]=new X(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let t=window[r.__subType];if("function"==typeof t)try{let a=new t(r.message);a.stack="",n[e]=a}catch(e){}}if(null==n[e]){let t=new Error(r.message);t.stack="",n[e]=t}}else n[e]=r;return n}const Bt=m.createContext({isTransitioning:!1});const Ft=m.createContext(new Map);const $t=m.startTransition,Ht=jt.flushSync;m.useId;function qt(e){Ht?Ht(e):e()}class Wt{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}}function Qt(e){let{fallbackElement:t,router:n,future:r}=e,[a,o]=m.useState(n.state),[i,s]=m.useState(),[l,c]=m.useState({isTransitioning:!1}),[u,d]=m.useState(),[h,p]=m.useState(),[f,v]=m.useState(),y=m.useRef(new Map),{v7_startTransition:g}=r||{},b=m.useCallback(e=>{g?function(e){$t?$t(e):e()}(e):e()},[g]),w=m.useCallback((e,t)=>{let{deletedFetchers:r,flushSync:a,viewTransitionOpts:i}=t;e.fetchers.forEach((e,t)=>{void 0!==e.data&&y.current.set(t,e.data)}),r.forEach(e=>y.current.delete(e));let l=null==n.window||null==n.window.document||"function"!=typeof n.window.document.startViewTransition;if(i&&!l){if(a){qt(()=>{h&&(u&&u.resolve(),h.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})});let t=n.window.document.startViewTransition(()=>{qt(()=>o(e))});return t.finished.finally(()=>{qt(()=>{d(void 0),p(void 0),s(void 0),c({isTransitioning:!1})})}),void qt(()=>p(t))}h?(u&&u.resolve(),h.skipTransition(),v({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(s(e),c({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))}else a?qt(()=>o(e)):b(()=>o(e))},[n.window,h,u,y,b]);m.useLayoutEffect(()=>n.subscribe(w),[n,w]),m.useEffect(()=>{l.isTransitioning&&!l.flushSync&&d(new Wt)},[l]),m.useEffect(()=>{if(u&&i&&n.window){let e=i,t=u.promise,r=n.window.document.startViewTransition(async()=>{b(()=>o(e)),await t});r.finished.finally(()=>{d(void 0),p(void 0),s(void 0),c({isTransitioning:!1})}),p(r)}},[b,i,u,n.window]),m.useEffect(()=>{u&&i&&a.location.key===i.location.key&&u.resolve()},[u,h,a.location,i]),m.useEffect(()=>{!l.isTransitioning&&f&&(s(f.state),c({isTransitioning:!0,flushSync:!1,currentLocation:f.currentLocation,nextLocation:f.nextLocation}),v(void 0))},[l.isTransitioning,f]),m.useEffect(()=>{},[]);let _=m.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:e=>n.navigate(e),push:(e,t,r)=>n.navigate(e,{state:t,preventScrollReset:null==r?void 0:r.preventScrollReset}),replace:(e,t,r)=>n.navigate(e,{replace:!0,state:t,preventScrollReset:null==r?void 0:r.preventScrollReset})}),[n]),E=n.basename||"/",k=m.useMemo(()=>({router:n,navigator:_,static:!1,basename:E}),[n,_,E]),x=m.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return m.useEffect(()=>Pt(r,n.future),[r,n.future]),m.createElement(m.Fragment,null,m.createElement(rt.Provider,{value:k},m.createElement(at.Provider,{value:a},m.createElement(Ft.Provider,{value:y.current},m.createElement(Bt.Provider,{value:l},m.createElement(Ot,{basename:E,location:a.location,navigationType:a.historyAction,navigator:_,future:x},a.initialized||n.future.v7_partialHydration?m.createElement(Jt,{routes:n.routes,future:n.future,state:a}):t))))),null)}const Jt=m.memo(Yt);function Yt(e){let{routes:t,future:n,state:r}=e;return vt(t,void 0,r,n)}const Gt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Kt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Xt=m.forwardRef(function(e,t){let n,{onClick:r,relative:a,reloadDocument:o,replace:i,state:s,target:l,to:c,preventScrollReset:u,viewTransition:d}=e,h=Tt(e,It),{basename:p}=m.useContext(ot),f=!1;if("string"==typeof c&&Kt.test(c)&&(n=c,Gt))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),n=$(t.pathname,p);t.origin===e.origin&&null!=n?c=n+t.search+t.hash:f=!0}catch(e){}let v=function(e,t){let{relative:n}=void 0===t?{}:t;ct()||g(!1);let{basename:r,navigator:a}=m.useContext(ot),{hash:o,pathname:i,search:s}=mt(e,{relative:n}),l=i;return"/"!==r&&(l="/"===i?r:J([r,i])),a.createHref({pathname:l,search:s,hash:o})}(c,{relative:a}),y=function(e,t){let{target:n,replace:r,state:a,preventScrollReset:o,relative:i,viewTransition:s}=void 0===t?{}:t,l=pt(),c=ut(),u=mt(e,{relative:i});return m.useCallback(t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==r?r:E(c)===E(u);l(e,{replace:n,state:a,preventScrollReset:o,relative:i,viewTransition:s})}},[c,l,u,r,a,n,e,o,i,s])}(c,{replace:i,state:s,target:l,preventScrollReset:u,relative:a,viewTransition:d});return m.createElement("a",At({},h,{href:n||v,onClick:f||o?r:function(e){r&&r(e),e.defaultPrevented||y(e)},ref:t,target:l}))});const Zt=m.forwardRef(function(e,t){let{"aria-current":n="page",caseSensitive:r=!1,className:a="",end:o=!1,style:i,to:s,viewTransition:l,children:c}=e,u=Tt(e,Nt),d=mt(s,{relative:u.relative}),h=ut(),p=m.useContext(at),{navigator:f,basename:v}=m.useContext(ot),y=null!=p&&function(e,t){void 0===t&&(t={});let n=m.useContext(Bt);null==n&&g(!1);let{basename:r}=nn(en.useViewTransitionState),a=mt(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=$(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=$(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=B(a.pathname,i)||null!=B(a.pathname,o)}(d)&&!0===l,b=f.encodeLocation?f.encodeLocation(d).pathname:d.pathname,w=h.pathname,_=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;r||(w=w.toLowerCase(),_=_?_.toLowerCase():null,b=b.toLowerCase()),_&&v&&(_=$(_,v)||_);const E="/"!==b&&b.endsWith("/")?b.length-1:b.length;let k,x=w===b||!o&&w.startsWith(b)&&"/"===w.charAt(E),S=null!=_&&(_===b||!o&&_.startsWith(b)&&"/"===_.charAt(b.length)),C={isActive:x,isPending:S,isTransitioning:y},M=x?n:void 0;k="function"==typeof a?a(C):[a,x?"active":null,S?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let P="function"==typeof i?i(C):i;return m.createElement(Xt,At({},u,{"aria-current":M,className:k,ref:t,style:P,to:s,viewTransition:l}),"function"==typeof c?c(C):c)});var en,tn;function nn(e){let t=m.useContext(rt);return t||g(!1),t}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(en||(en={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(tn||(tn={}));const rn=["getProps"],an=["path","text"],on=["path","text"];function sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sn(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var cn=function(){const n=ut(),a=[],o=[];h().trigger("ct:dashboard:navigation-links",a),h().trigger("ct:dashboard:end-navigation-links",o);const i=function(e,t){const{getProps:a}=e,o=r(e,rn);if(a&&"function"==typeof a){const e=n.pathname,r=t.startsWith("/")?t:`/${t}`,i=e.startsWith("/")?e:`/${e}`,s=a({isPartiallyCurrent:i.startsWith(r)||"/"!==r&&i.includes(r),isCurrent:i===r||"/"===r&&"/"===i});return ln(ln({},o),s)}return o};ctDashboardLocalizations.plugin_data.hide_plugins_tab;return(0,e.createElement)("ul",{className:"dashboard-navigation"},(0,e.createElement)("li",null,(0,e.createElement)(Zt,{to:"/",className:function(e){let{isActive:t}=e;return t?"active":""}},(0,u.__)("Home","blocksy"))),a.map(function(n){let{path:a,text:o}=n,s=r(n,an);return(0,e.createElement)("li",{key:a},(0,e.createElement)(Zt,t({to:a},i(s,a),{className:function(e){let{isActive:t}=e;return t?"active":""}}),o))}),!ctDashboardLocalizations.plugin_data.hide_plugins_tab&&(0,e.createElement)("li",null,(0,e.createElement)(Zt,{to:"/plugins",className:function(e){let{isActive:t}=e;return t?"active":""}},(0,u.__)("Useful Plugins","blocksy"))),!ctDashboardLocalizations.plugin_data.hide_changelogs_tab&&(0,e.createElement)("li",null,(0,e.createElement)(Zt,{to:"/changelog",className:function(e){let{isActive:t}=e;return t?"active":""}},(0,u.__)("Changelog","blocksy"))),o.map(function(n){let{path:a,text:o}=n,s=r(n,on);return(0,e.createElement)("li",{key:a},(0,e.createElement)(Zt,t({to:a},i(s,a),{className:function(e){let{isActive:t}=e;return t?"active":""}}),o))}))},un=n(485),dn=n.n(un);const hn=function(){const t=ctDashboardLocalizations.plugin_data||{},n=t.facebook||{},r=t.video_tutorials||{},a=t.knowledge_base||{},o=t.support||{};return[{key:"facebook",hide:t.hide_support_facebook_section,icon:(0,e.createElement)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M8.6 6.7c0-1.9 1.5-3.5 3.4-3.5s3.4 1.5 3.4 3.5-1.5 3.5-3.4 3.5-3.4-1.6-3.4-3.5zM22 11.3h-3.9c.5.5.7 1.2.7 2v5.9c0 .6-.2 1.2-.3 1.7H22c1.2-.8 2-2.2 2-3.8v-3.7c0-1.2-.9-2.1-2-2.1zm.8-4.1c0-1.6-1.3-2.9-2.9-2.9-1.6 0-2.9 1.3-2.9 2.9 0 1.6 1.3 2.9 2.9 2.9 1.7 0 2.9-1.3 2.9-2.9zM5.2 13c.1-.7.3-1.3.7-1.8H1.8c-1 .1-1.8.9-1.8 2V17c0 1.6.8 2.9 2 3.8h3.5c-.2-.6-.3-1.3-.3-2.1V13zM4 4.4c-1.6 0-2.9 1.3-2.9 2.9 0 1.6 1.3 2.9 2.9 2.9s2.9-1.3 2.9-2.9c0-1.7-1.3-2.9-2.9-2.9zm11.2 6.9H8.8c-1.1 0-2 .9-2 2v5.5c0 .7.2 1.4.4 2.1h9.5c.3-.6.4-1.3.4-2.1v-5.5c.1-1.1-.8-2-1.9-2z"})),title:n.title||(0,u.__)("Facebook Community","blocksy"),description:n.description||(0,u.__)("Share ideas, help others, ask questions and discuss your next project in our friendly community.","blocksy"),link:n.link||"https://www.facebook.com/groups/blocksy.community",buttonText:n.buttonText||(0,u.__)("Join Our Community","blocksy")},{key:"video_tutorials",hide:t.hide_support_video_section,icon:(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M13.3 3.7 8.5.4C7.4-.3 5.9-.1 5.2 1c-.3.4-.5.9-.5 1.4v19.1c0 1.3 1.1 2.4 2.4 2.4.5 0 1-.2 1.4-.4l4.7-3.3 9-6.3c1.1-.8 1.4-2.3.6-3.4l-.6-.6-8.9-6.2z"})),title:r.title||(0,u.__)("Video Tutorials","blocksy"),description:r.description||(0,u.__)("Learn how to do just about anything within Blocksy by following our byte-sized video tutorials.","blocksy"),link:r.link||"https://creativethemes.com/blocksy/video-tutorials/",buttonText:r.buttonText||(0,u.__)("Watch Tutorials","blocksy")},{key:"knowledge_base",hide:t.hide_support_docs_section,icon:(0,e.createElement)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M24 4.1v13.8c0 .7-.5 1.2-1.2 1.3-2 .1-6.1.5-8.9 1.9-.4.2-.9-.1-.9-.6V5.7c0-.2.1-.4.3-.5 2.7-1.7 7.2-2.1 9.4-2.3.7-.1 1.3.5 1.3 1.2zM1.4 2.9C.6 2.8 0 3.4 0 4.1v13.8c0 .7.5 1.2 1.2 1.3 2 .1 6.1.5 8.9 1.9.4.2.9-.1.9-.5V5.7c0-.2-.1-.4-.3-.5C8.1 3.5 3.6 3 1.4 2.9z"})),title:a.title||(0,u.__)("Knowledge Base","blocksy"),description:a.description||(0,u.__)("Dive in with our documentation and learn tips and tricks about Blocksy and its components.","blocksy"),link:a.link||"https://creativethemes.com/blocksy/docs/",buttonText:a.buttonText||(0,u.__)("View Documentation","blocksy")},{key:"support",hide:t.hide_support_section,icon:(0,e.createElement)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M8.3 7.3 4.1 3C6.2 1.1 9 0 12 0s5.8 1.1 7.9 3l-4.3 4.3C14.6 6.5 13.4 6 12 6s-2.6.5-3.7 1.3zM12 18c-1.4 0-2.6-.5-3.7-1.3L4.1 21c2.1 1.9 4.9 3 7.9 3s5.8-1.1 7.9-3l-4.3-4.3c-1 .8-2.2 1.3-3.6 1.3zm9-13.9-4.3 4.3c.8 1 1.3 2.3 1.3 3.7s-.5 2.6-1.3 3.7l4.3 4.3c1.9-2.1 3-4.9 3-7.9s-1.1-6-3-8.1zM6 12c0-1.4.5-2.6 1.3-3.7L3 4.1C1.1 6.2 0 9 0 12s1.1 5.8 3 7.9l4.3-4.3C6.5 14.6 6 13.4 6 12z"})),title:o.title||(0,u.__)("Support","blocksy"),description:o.description||(0,u.__)("If your questions have not been answered by documentation or video tutorials, drop us a line.","blocksy"),link:o.link||ctDashboardLocalizations.support_url,buttonText:o.buttonText||(0,u.__)("Submit a Ticket","blocksy")}].filter(function(e){return!e.hide})};var pn=function(t){let{placement:n="bottom",render:r=function(t){return(0,e.createElement)("div",{class:"ct-support-container-wrapper"},t)}}=t;const a=hn();if(0===a.length)return null;return r((0,e.createElement)("ul",{className:"ct-support-container","data-placement":n},a.map(function(t){let{key:n,icon:r,title:a,description:o,link:i,buttonText:s}=t;return(0,e.createElement)("li",{key:n},(0,e.createElement)("h4",null,(0,e.createElement)("span",null,r),a),(0,e.createElement)("p",null,o),(0,e.createElement)("a",{href:i,className:"ct-button","data-hover":"blue",target:"_blank"},s))})))},fn=jQuery,mn=n.n(fn);const vn=function(t){let{href:n=""}=t;return ctDashboardLocalizations.plugin_data.hide_docs_section?null:(0,e.createElement)("a",{href:n,target:"_blank"},(0,e.createElement)("svg",{width:"14px",height:"14px",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M23 2.1h-6.6c-1.8 0-3.4.9-4.4 2.3C11 3 9.4 2.1 7.6 2.1H1c-.6 0-1 .4-1 1v16.5c0 .6.4 1 1 1h7.7c1.3 0 2.3 1 2.3 2.3 0 .6.4 1 1 1s1-.4 1-1c0-1.3 1-2.3 2.3-2.3H23c.6 0 1-.4 1-1V3.1c0-.6-.4-1-1-1zM11 19.3c-.7-.4-1.5-.7-2.3-.7H2V4.1h5.6c1.9 0 3.4 1.5 3.4 3.4v11.8zm11-.7h-6.7c-.8 0-1.6.2-2.3.7V7.5c0-1.9 1.5-3.4 3.4-3.4H22v14.5z"})),(0,u.__)("Documentation","blocksy"))};var yn=function(){const{is_companion_active:t,companion_download_link:n,child_download_link:r}=(0,e.useContext)(c);let a={content:null},o={content:null};const[i,s]=(0,e.useState)(!1),[l,d]=(0,e.useState)(!1);h().trigger("ct:dashboard:home:before",a),h().trigger("ct:dashboard:home:after",o);const p=l||t,f=hn();return(0,e.createElement)("section",null,a.content,(0,e.createElement)("div",{className:"ct-dashboard-home-container","data-columns":0===f.length?"1":"2"},(0,e.createElement)("section",null,(0,e.createElement)("h4",null,(0,u.__)("Customizer Shortcuts","blocksy")),(0,e.createElement)("ul",{className:"ct-customizer-shortcuts-list"},(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,u.__)("Color Options","blocksy")),(0,e.createElement)("p",null,(0,u.__)("Manage the colour palette, as well as setting colours for different elements of the website.","blocksy")),(0,e.createElement)("div",{className:"ct-shortcut-actions"},(0,e.createElement)(vn,{href:"https://creativethemes.com/blocksy/docs/general-options/colors/"}),(0,e.createElement)("a",{href:`${ctDashboardLocalizations.customizer_url}${encodeURI("[section]=color")}`,target:"_blank"},(0,e.createElement)("svg",{width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M4 11c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v7c0 .6.4 1 1 1zM12 11c-.6 0-1 .4-1 1v9c0 .6.4 1 1 1s1-.4 1-1v-9c0-.6-.4-1-1-1zM20 13c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v9c0 .6.4 1 1 1zM7 13H1c-.6 0-1 .4-1 1s.4 1 1 1h2v6c0 .6.4 1 1 1s1-.4 1-1v-6h2c.6 0 1-.4 1-1s-.4-1-1-1zM15 7h-2V3c0-.6-.4-1-1-1s-1 .4-1 1v4H9c-.6 0-1 .4-1 1s.4 1 1 1h6c.6 0 1-.4 1-1s-.4-1-1-1zM23 15h-6c-.6 0-1 .4-1 1s.4 1 1 1h2v4c0 .6.4 1 1 1s1-.4 1-1v-4h2c.6 0 1-.4 1-1s-.4-1-1-1z"})),(0,u.__)("Customize","blocksy")))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,u.__)("Typography Options","blocksy")),(0,e.createElement)("p",null,(0,u.__)("Set the footer type, number of columns, spacing and colors.","blocksy")),(0,e.createElement)("div",{className:"ct-shortcut-actions"},(0,e.createElement)(vn,{href:"https://creativethemes.com/blocksy/docs/general-options/typography/"}),(0,e.createElement)("a",{href:`${ctDashboardLocalizations.customizer_url}${encodeURI("[section]=typography")}`,target:"_blank"},(0,e.createElement)("svg",{width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M4 11c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v7c0 .6.4 1 1 1zM12 11c-.6 0-1 .4-1 1v9c0 .6.4 1 1 1s1-.4 1-1v-9c0-.6-.4-1-1-1zM20 13c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v9c0 .6.4 1 1 1zM7 13H1c-.6 0-1 .4-1 1s.4 1 1 1h2v6c0 .6.4 1 1 1s1-.4 1-1v-6h2c.6 0 1-.4 1-1s-.4-1-1-1zM15 7h-2V3c0-.6-.4-1-1-1s-1 .4-1 1v4H9c-.6 0-1 .4-1 1s.4 1 1 1h6c.6 0 1-.4 1-1s-.4-1-1-1zM23 15h-6c-.6 0-1 .4-1 1s.4 1 1 1h2v4c0 .6.4 1 1 1s1-.4 1-1v-4h2c.6 0 1-.4 1-1s-.4-1-1-1z"})),(0,u.__)("Customize","blocksy")))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,u.__)("Header Options","blocksy")),(0,e.createElement)("p",null,(0,u.__)("Configure the header to your liking with an easy to use drag and drop builder.","blocksy")),(0,e.createElement)("div",{className:"ct-shortcut-actions"},(0,e.createElement)(vn,{href:"https://creativethemes.com/blocksy/docs/header-elements/header-builder-elements/"}),(0,e.createElement)("a",{href:`${ctDashboardLocalizations.customizer_url}${encodeURI("[section]=header")}`,target:"_blank"},(0,e.createElement)("svg",{width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M4 11c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v7c0 .6.4 1 1 1zM12 11c-.6 0-1 .4-1 1v9c0 .6.4 1 1 1s1-.4 1-1v-9c0-.6-.4-1-1-1zM20 13c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v9c0 .6.4 1 1 1zM7 13H1c-.6 0-1 .4-1 1s.4 1 1 1h2v6c0 .6.4 1 1 1s1-.4 1-1v-6h2c.6 0 1-.4 1-1s-.4-1-1-1zM15 7h-2V3c0-.6-.4-1-1-1s-1 .4-1 1v4H9c-.6 0-1 .4-1 1s.4 1 1 1h6c.6 0 1-.4 1-1s-.4-1-1-1zM23 15h-6c-.6 0-1 .4-1 1s.4 1 1 1h2v4c0 .6.4 1 1 1s1-.4 1-1v-4h2c.6 0 1-.4 1-1s-.4-1-1-1z"})),(0,u.__)("Customize","blocksy")))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,u.__)("Footer Options","blocksy")),(0,e.createElement)("p",null,(0,u.__)("Arrange your footer in a way that actually makes sense with our drag and drop builder.","blocksy")),(0,e.createElement)("div",{className:"ct-shortcut-actions"},(0,e.createElement)(vn,{href:"https://creativethemes.com/blocksy/docs/footer-options/footer-introduction/"}),(0,e.createElement)("a",{href:`${ctDashboardLocalizations.customizer_url}${encodeURI("[section]=footer")}`,target:"_blank"},(0,e.createElement)("svg",{width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M4 11c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v7c0 .6.4 1 1 1zM12 11c-.6 0-1 .4-1 1v9c0 .6.4 1 1 1s1-.4 1-1v-9c0-.6-.4-1-1-1zM20 13c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v9c0 .6.4 1 1 1zM7 13H1c-.6 0-1 .4-1 1s.4 1 1 1h2v6c0 .6.4 1 1 1s1-.4 1-1v-6h2c.6 0 1-.4 1-1s-.4-1-1-1zM15 7h-2V3c0-.6-.4-1-1-1s-1 .4-1 1v4H9c-.6 0-1 .4-1 1s.4 1 1 1h6c.6 0 1-.4 1-1s-.4-1-1-1zM23 15h-6c-.6 0-1 .4-1 1s.4 1 1 1h2v4c0 .6.4 1 1 1s1-.4 1-1v-4h2c.6 0 1-.4 1-1s-.4-1-1-1z"})),(0,u.__)("Customize","blocksy")))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,u.__)("Blog Options","blocksy")),(0,e.createElement)("p",null,(0,u.__)("Adjust your blog roll options in a single place and make it stand out in the crowd.","blocksy")),(0,e.createElement)("div",{className:"ct-shortcut-actions"},(0,e.createElement)(vn,{href:"https://creativethemes.com/blocksy/docs/post-types/blog-posts/"}),(0,e.createElement)("a",{href:`${ctDashboardLocalizations.customizer_url}${encodeURI("[section]=blog_posts")}`,target:"_blank"},(0,e.createElement)("svg",{width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M4 11c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v7c0 .6.4 1 1 1zM12 11c-.6 0-1 .4-1 1v9c0 .6.4 1 1 1s1-.4 1-1v-9c0-.6-.4-1-1-1zM20 13c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v9c0 .6.4 1 1 1zM7 13H1c-.6 0-1 .4-1 1s.4 1 1 1h2v6c0 .6.4 1 1 1s1-.4 1-1v-6h2c.6 0 1-.4 1-1s-.4-1-1-1zM15 7h-2V3c0-.6-.4-1-1-1s-1 .4-1 1v4H9c-.6 0-1 .4-1 1s.4 1 1 1h6c.6 0 1-.4 1-1s-.4-1-1-1zM23 15h-6c-.6 0-1 .4-1 1s.4 1 1 1h2v4c0 .6.4 1 1 1s1-.4 1-1v-4h2c.6 0 1-.4 1-1s-.4-1-1-1z"})),(0,u.__)("Customize","blocksy")))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,u.__)("Posts Options","blocksy")),(0,e.createElement)("p",null,(0,u.__)("Set the footer type, number of columns, spacing and colors.","blocksy")),(0,e.createElement)("div",{className:"ct-shortcut-actions"},(0,e.createElement)(vn,{href:"https://creativethemes.com/blocksy/docs/post-types/single-posts/"}),(0,e.createElement)("a",{href:`${ctDashboardLocalizations.customizer_url}${encodeURI("[section]=single_blog_posts")}`,target:"_blank"},(0,e.createElement)("svg",{width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M4 11c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v7c0 .6.4 1 1 1zM12 11c-.6 0-1 .4-1 1v9c0 .6.4 1 1 1s1-.4 1-1v-9c0-.6-.4-1-1-1zM20 13c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v9c0 .6.4 1 1 1zM7 13H1c-.6 0-1 .4-1 1s.4 1 1 1h2v6c0 .6.4 1 1 1s1-.4 1-1v-6h2c.6 0 1-.4 1-1s-.4-1-1-1zM15 7h-2V3c0-.6-.4-1-1-1s-1 .4-1 1v4H9c-.6 0-1 .4-1 1s.4 1 1 1h6c.6 0 1-.4 1-1s-.4-1-1-1zM23 15h-6c-.6 0-1 .4-1 1s.4 1 1 1h2v4c0 .6.4 1 1 1s1-.4 1-1v-4h2c.6 0 1-.4 1-1s-.4-1-1-1z"})),(0,u.__)("Customize","blocksy")))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,u.__)("Page Options","blocksy")),(0,e.createElement)("p",null,(0,u.__)("Set the page container width, spacing, sidebar and more.","blocksy")),(0,e.createElement)("div",{className:"ct-shortcut-actions"},(0,e.createElement)(vn,{href:"https://creativethemes.com/blocksy/docs/post-types/pages/"}),(0,e.createElement)("a",{href:`${ctDashboardLocalizations.customizer_url}${encodeURI("[section]=single_pages")}`,target:"_blank"},(0,e.createElement)("svg",{width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M4 11c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v7c0 .6.4 1 1 1zM12 11c-.6 0-1 .4-1 1v9c0 .6.4 1 1 1s1-.4 1-1v-9c0-.6-.4-1-1-1zM20 13c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v9c0 .6.4 1 1 1zM7 13H1c-.6 0-1 .4-1 1s.4 1 1 1h2v6c0 .6.4 1 1 1s1-.4 1-1v-6h2c.6 0 1-.4 1-1s-.4-1-1-1zM15 7h-2V3c0-.6-.4-1-1-1s-1 .4-1 1v4H9c-.6 0-1 .4-1 1s.4 1 1 1h6c.6 0 1-.4 1-1s-.4-1-1-1zM23 15h-6c-.6 0-1 .4-1 1s.4 1 1 1h2v4c0 .6.4 1 1 1s1-.4 1-1v-4h2c.6 0 1-.4 1-1s-.4-1-1-1z"})),(0,u.__)("Customize","blocksy")))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,u.__)("Sidebar Options","blocksy")),(0,e.createElement)("p",null,(0,u.__)("Change the sidebar behaviour and style with a nice set of options that come in handy.","blocksy")),(0,e.createElement)("div",{className:"ct-shortcut-actions"},(0,e.createElement)(vn,{href:"https://creativethemes.com/blocksy/docs/general-options/sidebar/"}),(0,e.createElement)("a",{href:`${ctDashboardLocalizations.customizer_url}${encodeURI("[section]=sidebar")}`,target:"_blank"},(0,e.createElement)("svg",{width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M4 11c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v7c0 .6.4 1 1 1zM12 11c-.6 0-1 .4-1 1v9c0 .6.4 1 1 1s1-.4 1-1v-9c0-.6-.4-1-1-1zM20 13c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1s-1 .4-1 1v9c0 .6.4 1 1 1zM7 13H1c-.6 0-1 .4-1 1s.4 1 1 1h2v6c0 .6.4 1 1 1s1-.4 1-1v-6h2c.6 0 1-.4 1-1s-.4-1-1-1zM15 7h-2V3c0-.6-.4-1-1-1s-1 .4-1 1v4H9c-.6 0-1 .4-1 1s.4 1 1 1h6c.6 0 1-.4 1-1s-.4-1-1-1zM23 15h-6c-.6 0-1 .4-1 1s.4 1 1 1h2v4c0 .6.4 1 1 1s1-.4 1-1v-4h2c.6 0 1-.4 1-1s-.4-1-1-1z"})),(0,u.__)("Customize","blocksy")))))),(0,e.createElement)(pn,{placement:"sidebar",render:function(t){return(0,e.createElement)("aside",null,(0,e.createElement)("h4",null,(0,u.__)("Need help or advice?","blocksy")),t)}})),o.content,"active"!==t&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"ct-dashboard-home-downloads"},(0,e.createElement)("ul",null,(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,e.createElement)("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 20 20"},(0,e.createElement)("path",{d:"M3.1,0c-0.4,0-0.8,0.2-1,0.6L0.2,3.9C0.1,4.1,0,4.2,0,4.4v13.3C0,19,1,20,2.2,20h15.6c1.2,0,2.2-1,2.2-2.2V4.4c0-0.2-0.1-0.4-0.2-0.6l-1.9-3.3c-0.2-0.3-0.6-0.6-1-0.6H3.1z M3.7,2.2h12.6l1.3,2.2H2.4L3.7,2.2z M2.2,6.7h15.6v11.1H2.2V6.7zM8.9,8.3v3.3H5.6l4.4,4.4l4.4-4.4h-3.3V8.3H8.9z"})),(0,u.__)("Blocksy Companion","blocksy")),(0,e.createElement)("p",null,(0,u.__)("By downloading and installing this plugin you will have access to demo templates, extensions and a lot more stunning features.","blocksy")),(0,e.createElement)("a",{className:"ct-button",onClick:function(e){e.stopPropagation(),s(!0),mn().ajax(ajaxurl,{type:"POST",data:{action:"blocksy_notice_button_click",nonce:ct_localizations.nonce}}).then(function(e){let{success:t,data:n}=e;t&&(d(n.status),"active"===n.status&&location.assign(n.pluginUrl)),s(!1)})}},i?(0,u.__)("Installing & activating...","blocksy"):"uninstalled"===p?(0,u.__)("Install Blocksy Companion","blocksy"):"installed"===p?(0,u.__)("Activate Blocksy Companion","blocksy"):(0,u.__)("Blocksy Companion active!","blocksy"))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,e.createElement)("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 20 20"},(0,e.createElement)("path",{d:"M3.1,0c-0.4,0-0.8,0.2-1,0.6L0.2,3.9C0.1,4.1,0,4.2,0,4.4v13.3C0,19,1,20,2.2,20h15.6c1.2,0,2.2-1,2.2-2.2V4.4c0-0.2-0.1-0.4-0.2-0.6l-1.9-3.3c-0.2-0.3-0.6-0.6-1-0.6H3.1z M3.7,2.2h12.6l1.3,2.2H2.4L3.7,2.2z M2.2,6.7h15.6v11.1H2.2V6.7zM8.9,8.3v3.3H5.6l4.4,4.4l4.4-4.4h-3.3V8.3H8.9z"})),(0,u.__)("Blocksy Child Theme","blocksy")),(0,e.createElement)("p",null,(0,u.__)("By using a child theme you can modify any file without the fear of breaking something in the parent theme.","blocksy")),(0,e.createElement)("a",{className:"ct-button",href:r,target:"_blank"},(0,u.__)("Download now","blocksy")))))))};var gn=function(t){let{status:n,plugin:r,onPluginsSync:a}=t;const[o,i]=(0,e.useState)(!1),s=async function(e,t){const n=new FormData;n.append("plugin",e),n.append("action",t),n.append("nonce",ctDashboardLocalizations.dashboard_actions_nonce),i(!0);try{await fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:n}),a()}catch(e){}i(!1)};return(0,e.createElement)("li",null,(0,e.createElement)("h4",{className:"ct-plugin-title"},r.title,o&&(0,e.createElement)("svg",{width:"15",height:"15",viewBox:"0 0 100 100"},(0,e.createElement)("g",{transform:"translate(50,50)"},(0,e.createElement)("g",{transform:"scale(1)"},(0,e.createElement)("circle",{cx:"0",cy:"0",r:"50",fill:"#687c93"}),(0,e.createElement)("circle",{cx:"0",cy:"-26",r:"12",fill:"#ffffff",transform:"rotate(161.634)"},(0,e.createElement)("animateTransform",{attributeName:"transform",type:"rotate",calcMode:"linear",values:"0 0 0;360 0 0",keyTimes:"0;1",dur:"1s",begin:"0s",repeatCount:"indefinite"})))))),r.description&&(0,e.createElement)("div",{className:"ct-plugin-description"},r.description),(0,e.createElement)("div",{className:"ct-plugin-actions"},"activated"===n&&(0,e.createElement)("a",{onClick:function(){return s(r.name,"premium_plugin_deactivate")},className:"ct-button"},(0,u.__)("Deactivate","blocksy")),"deactivated"===n&&(0,e.createElement)("a",{onClick:function(){return s(r.name,"premium_plugin_activate")},className:"ct-button-primary"},(0,u.__)("Activate","blocksy")),"uninstalled"===n&&!r.comingsoon&&"link"!==r.type&&(0,e.createElement)("a",{onClick:function(){return s(r.name,"premium_plugin_download")},className:"ct-button"},(0,u.__)("Install","blocksy")),"uninstalled"===n&&!r.comingsoon&&"link"===r.type&&(0,e.createElement)("a",{href:r.link,className:"ct-button",target:"_blank"},(0,u.__)("Download","blocksy")),"uninstalled"===n&&r.comingsoon&&(0,e.createElement)("span",{className:"ct-badge"},(0,u.__)("COMING SOON","blocksy"))))},bn=An(),wn=e=>On(e,bn),_n=An();wn.write=e=>On(e,_n);var En=An();wn.onStart=e=>On(e,En);var kn=An();wn.onFrame=e=>On(e,kn);var xn=An();wn.onFinish=e=>On(e,xn);var Sn=[];wn.setTimeout=(e,t)=>{const n=wn.now()+t,r=()=>{const e=Sn.findIndex(e=>e.cancel==r);~e&&Sn.splice(e,1),Rn-=~e?1:0},a={time:n,handler:e,cancel:r};return Sn.splice(Cn(n),0,a),Rn+=1,zn(),a};var Cn=e=>~(~Sn.findIndex(t=>t.time>e)||~Sn.length);wn.cancel=e=>{En.delete(e),kn.delete(e),xn.delete(e),bn.delete(e),_n.delete(e)},wn.sync=e=>{Dn=!0,wn.batchedUpdates(e),Dn=!1},wn.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,wn.onStart(n)}return r.handler=e,r.cancel=()=>{En.delete(n),t=null},r};var Mn="undefined"!=typeof window?window.requestAnimationFrame:()=>{};wn.use=e=>Mn=e,wn.now="undefined"!=typeof performance?()=>performance.now():Date.now,wn.batchedUpdates=e=>e(),wn.catch=console.error,wn.frameLoop="always",wn.advance=()=>{"demand"!==wn.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):jn()};var Pn=-1,Rn=0,Dn=!1;function On(e,t){Dn?(t.delete(e),e(0)):(t.add(e),zn())}function zn(){Pn<0&&(Pn=0,"demand"!==wn.frameLoop&&Mn(Ln))}function Ln(){~Pn&&(Mn(Ln),wn.batchedUpdates(jn))}function jn(){const e=Pn;Pn=wn.now();const t=Cn(Pn);t&&(Tn(Sn.splice(0,t),e=>e.handler()),Rn-=t),Rn?(En.flush(),bn.flush(e?Math.min(64,Pn-e):16.667),kn.flush(),_n.flush(),xn.flush()):Pn=-1}function An(){let e=new Set,t=e;return{add(n){Rn+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(Rn-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,Rn-=t.size,Tn(t,t=>t(n)&&e.add(t)),Rn+=e.size,t=e)}}}function Tn(e,t){e.forEach(e=>{try{t(e)}catch(e){wn.catch(e)}})}var In=Object.defineProperty,Nn={};function Un(){}((e,t)=>{for(var n in t)In(e,n,{get:t[n],enumerable:!0})})(Nn,{assign:()=>Zn,colors:()=>Gn,createStringInterpolator:()=>Wn,skipAnimation:()=>Kn,to:()=>Qn,willAdvance:()=>Xn});var Vn={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function Bn(e,t){if(Vn.arr(e)){if(!Vn.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var Fn=(e,t)=>e.forEach(t);function $n(e,t,n){if(Vn.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var Hn=e=>Vn.und(e)?[]:Vn.arr(e)?e:[e];function qn(e,t){if(e.size){const n=Array.from(e);e.clear(),Fn(n,t)}}var Wn,Qn,Jn=(e,...t)=>qn(e,e=>e(...t)),Yn=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Gn=null,Kn=!1,Xn=Un,Zn=e=>{e.to&&(Qn=e.to),e.now&&(wn.now=e.now),void 0!==e.colors&&(Gn=e.colors),null!=e.skipAnimation&&(Kn=e.skipAnimation),e.createStringInterpolator&&(Wn=e.createStringInterpolator),e.requestAnimationFrame&&wn.use(e.requestAnimationFrame),e.batchedUpdates&&(wn.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Xn=e.willAdvance),e.frameLoop&&(wn.frameLoop=e.frameLoop)},er=new Set,tr=[],nr=[],rr=0,ar={get idle(){return!er.size&&!tr.length},start(e){rr>e.priority?(er.add(e),wn.onStart(or)):(ir(e),wn(lr))},advance:lr,sort(e){if(rr)wn.onFrame(()=>ar.sort(e));else{const t=tr.indexOf(e);~t&&(tr.splice(t,1),sr(e))}},clear(){tr=[],er.clear()}};function or(){er.forEach(ir),er.clear(),wn(lr)}function ir(e){tr.includes(e)||sr(e)}function sr(e){tr.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(tr,t=>t.priority>e.priority),0,e)}function lr(e){const t=nr;for(let n=0;n<tr.length;n++){const r=tr[n];rr=r.priority,r.idle||(Xn(r),r.advance(e),r.idle||t.push(r))}return rr=0,(nr=tr).length=0,(tr=t).length>0}var cr="[-+]?\\d*\\.?\\d+",ur=cr+"%";function dr(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var hr=new RegExp("rgb"+dr(cr,cr,cr)),pr=new RegExp("rgba"+dr(cr,cr,cr,cr)),fr=new RegExp("hsl"+dr(cr,ur,ur)),mr=new RegExp("hsla"+dr(cr,ur,ur,cr)),vr=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,yr=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gr=/^#([0-9a-fA-F]{6})$/,br=/^#([0-9a-fA-F]{8})$/;function wr(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function _r(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r,o=wr(a,r,e+1/3),i=wr(a,r,e),s=wr(a,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*i)<<16|Math.round(255*s)<<8}function Er(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function kr(e){return(parseFloat(e)%360+360)%360/360}function xr(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Sr(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Cr(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=gr.exec(e))?parseInt(t[1]+"ff",16)>>>0:Gn&&void 0!==Gn[e]?Gn[e]:(t=hr.exec(e))?(Er(t[1])<<24|Er(t[2])<<16|Er(t[3])<<8|255)>>>0:(t=pr.exec(e))?(Er(t[1])<<24|Er(t[2])<<16|Er(t[3])<<8|xr(t[4]))>>>0:(t=vr.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=br.exec(e))?parseInt(t[1],16)>>>0:(t=yr.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=fr.exec(e))?(255|_r(kr(t[1]),Sr(t[2]),Sr(t[3])))>>>0:(t=mr.exec(e))?(_r(kr(t[1]),Sr(t[2]),Sr(t[3]))|xr(t[4]))>>>0:null}(e);if(null===t)return e;t=t||0;return`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`}var Mr=(e,t,n)=>{if(Vn.fun(e))return e;if(Vn.arr(e))return Mr({range:e,output:t,extrapolate:n});if(Vn.str(e.output[0]))return Wn(e);const r=e,a=r.output,o=r.range||[0,1],i=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,a,o,i,s,l){let c=l?l(e):e;if(c<t){if("identity"===i)return c;"clamp"===i&&(c=t)}if(c>n){if("identity"===s)return c;"clamp"===s&&(c=n)}if(r===a)return r;if(t===n)return e<=t?r:a;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=o(c),r===-1/0?c=-c:a===1/0?c+=r:c=c*(a-r)+r;return c}(e,o[t],o[t+1],a[t],a[t+1],l,i,s,r.map)}};var Pr=1.70158,Rr=1.525*Pr,Dr=Pr+1,Or=2*Math.PI/3,zr=2*Math.PI/4.5,Lr=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},jr={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Dr*e*e*e-Pr*e*e,easeOutBack:e=>1+Dr*Math.pow(e-1,3)+Pr*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-Rr)/2:(Math.pow(2*e-2,2)*((Rr+1)*(2*e-2)+Rr)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Or),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Or)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*zr)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*zr)/2+1,easeInBounce:e=>1-Lr(1-e),easeOutBounce:Lr,easeInOutBounce:e=>e<.5?(1-Lr(1-2*e))/2:(1+Lr(2*e-1))/2,steps:(e,t="end")=>n=>{const r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e,a="end"===t?Math.floor(r):Math.ceil(r);return o=0,i=1,s=a/e,Math.min(Math.max(s,o),i);var o,i,s}},Ar=Symbol.for("FluidValue.get"),Tr=Symbol.for("FluidValue.observers"),Ir=e=>Boolean(e&&e[Ar]),Nr=e=>e&&e[Ar]?e[Ar]():e,Ur=e=>e[Tr]||null;function Vr(e,t){const n=e[Tr];n&&n.forEach(e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)})}var Br=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Fr(this,e)}},Fr=(e,t)=>Wr(e,Ar,t);function $r(e,t){if(e[Ar]){let n=e[Tr];n||Wr(e,Tr,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Hr(e,t){const n=e[Tr];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Tr]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var qr,Wr=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Qr=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Jr=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Yr=new RegExp(`(${Qr.source})(%|[a-z]+)`,"i"),Gr=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Kr=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Xr=e=>{const[t,n]=Zr(e);if(!t||Yn())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&Kr.test(n)?Xr(n):n||e},Zr=e=>{const t=Kr.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},ea=(e,t,n,r,a)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${a})`,ta=e=>{qr||(qr=Gn?new RegExp(`(${Object.keys(Gn).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(e=>Nr(e).replace(Kr,Xr).replace(Jr,Cr).replace(qr,Cr)),n=t.map(e=>e.match(Qr).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>Mr({...e,output:t}));return e=>{const n=!Yr.test(t[0])&&t.find(e=>Yr.test(e))?.replace(Qr,"");let a=0;return t[0].replace(Qr,()=>`${r[a++](e)}${n||""}`).replace(Gr,ea)}},na="react-spring: ",ra=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${na}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},aa=ra(console.warn);var oa=ra(console.warn);function ia(e){return Vn.str(e)&&("#"==e[0]||/\d/.test(e)||!Yn()&&Kr.test(e)||e in(Gn||{}))}var sa=Yn()?m.useEffect:m.useLayoutEffect;function la(){const e=(0,m.useState)()[1],t=(()=>{const e=(0,m.useRef)(!1);return sa(()=>(e.current=!0,()=>{e.current=!1}),[]),e})();return()=>{t.current&&e(Math.random())}}var ca=e=>(0,m.useEffect)(e,ua),ua=[];var da=Symbol.for("Animated:node"),ha=e=>e&&e[da],pa=(e,t)=>{return n=e,r=da,a=t,Object.defineProperty(n,r,{value:a,writable:!0,configurable:!0});var n,r,a},fa=e=>e&&e[da]&&e[da].getPayload(),ma=class{constructor(){pa(this,this)}getPayload(){return this.payload||[]}},va=class extends ma{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Vn.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new va(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Vn.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Vn.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},ya=class extends va{constructor(e){super(0),this._string=null,this._toString=Mr({output:[e,e]})}static create(e){return new ya(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(Vn.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=Mr({output:[this.getValue(),e]})),this._value=0,super.reset()}},ga={dependencies:null},ba=class extends ma{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return $n(this.source,(n,r)=>{var a;(a=n)&&a[da]===a?t[r]=n.getValue(e):Ir(n)?t[r]=Nr(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Fn(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return $n(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){ga.dependencies&&Ir(e)&&ga.dependencies.add(e);const t=fa(e);t&&Fn(t,e=>this.add(e))}},wa=class extends ba{constructor(e){super(e)}static create(e){return new wa(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(_a)),!0)}};function _a(e){return(ia(e)?ya:va).create(e)}function Ea(e){const t=ha(e);return t?t.constructor:Vn.arr(e)?wa:ia(e)?ya:va}var ka=(e,t)=>{const n=!Vn.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,m.forwardRef)((r,a)=>{const o=(0,m.useRef)(null),i=n&&(0,m.useCallback)(e=>{o.current=function(e,t){e&&(Vn.fun(e)?e(t):e.current=t);return t}(a,e)},[a]),[s,l]=function(e,t){const n=new Set;ga.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new ba(e),ga.dependencies=null,[e,n]}(r,t),c=la(),u=()=>{const e=o.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,s.getValue(!0)))&&c()},d=new xa(u,l),h=(0,m.useRef)();sa(()=>(h.current=d,Fn(l,e=>$r(e,d)),()=>{h.current&&(Fn(h.current.deps,e=>Hr(e,h.current)),wn.cancel(h.current.update))})),(0,m.useEffect)(u,[]),ca(()=>()=>{const e=h.current;Fn(e.deps,t=>Hr(t,e))});const p=t.getComponentProps(s.getValue());return m.createElement(e,{...p,ref:i})})},xa=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&wn.write(this.update)}};var Sa=Symbol.for("AnimatedComponent"),Ca=e=>Vn.str(e)?e:e&&Vn.str(e.displayName)?e.displayName:Vn.fun(e)&&e.name||null;function Ma(e,...t){return Vn.fun(e)?e(...t):e}var Pa=(e,t)=>!0===e||!!(t&&e&&(Vn.fun(e)?e(t):Hn(e).includes(t))),Ra=(e,t)=>Vn.obj(e)?t&&e[t]:e,Da=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Oa=e=>e,za=(e,t=Oa)=>{let n=La;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const a of n){const n=t(e[a],a);Vn.und(n)||(r[a]=n)}return r},La=["config","onProps","onStart","onChange","onPause","onResume","onRest"],ja={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Aa(e){const t=function(e){const t={};let n=0;if($n(e,(e,r)=>{ja[r]||(t[r]=e,n++)}),n)return t}(e);if(t){const n={to:t};return $n(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function Ta(e){return e=Nr(e),Vn.arr(e)?e.map(Ta):ia(e)?Nn.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Ia(e){for(const t in e)return!0;return!1}function Na(e){return Vn.fun(e)||Vn.arr(e)&&Vn.obj(e[0])}function Ua(e,t){e.ref?.delete(e),t?.delete(e)}function Va(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var Ba={tension:170,friction:26,mass:1,damping:1,easing:jr.linear,clamp:!1},Fa=class{constructor(){this.velocity=0,Object.assign(this,Ba)}};function $a(e,t){if(Vn.und(t.decay)){const n=!Vn.und(t.tension)||!Vn.und(t.friction);!n&&Vn.und(t.frequency)&&Vn.und(t.damping)&&Vn.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var Ha=[],qa=class{constructor(){this.changed=!1,this.values=Ha,this.toValues=null,this.fromValues=Ha,this.config=new Fa,this.immediate=!1}};function Wa(e,{key:t,props:n,defaultProps:r,state:a,actions:o}){return new Promise((i,s)=>{let l,c,u=Pa(n.cancel??r?.cancel,t);if(u)p();else{Vn.und(n.pause)||(a.paused=Pa(n.pause,t));let e=r?.pause;!0!==e&&(e=a.paused||Pa(e,t)),l=Ma(n.delay||0,t),e?(a.resumeQueue.add(h),o.pause()):(o.resume(),h())}function d(){a.resumeQueue.add(h),a.timeouts.delete(c),c.cancel(),l=c.time-wn.now()}function h(){l>0&&!Nn.skipAnimation?(a.delayed=!0,c=wn.setTimeout(p,l),a.pauseQueue.add(d),a.timeouts.add(c)):p()}function p(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(d),a.timeouts.delete(c),e<=(a.cancelId||0)&&(u=!0);try{o.start({...n,callId:e,cancel:u},i)}catch(e){s(e)}}})}var Qa=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?Ga(e.get()):t.every(e=>e.noop)?Ja(e.get()):Ya(e.get(),t.every(e=>e.finished)),Ja=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Ya=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Ga=e=>({value:e,cancelled:!0,finished:!1});function Ka(e,t,n,r){const{callId:a,parentId:o,onRest:i}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{n.asyncId=a,n.asyncTo=e;const c=za(t,(e,t)=>"onRest"===t?void 0:e);let u,d;const h=new Promise((e,t)=>(u=e,d=t)),p=e=>{const t=a<=(n.cancelId||0)&&Ga(r)||a!==n.asyncId&&Ya(r,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const o=new Za,i=new eo;return(async()=>{if(Nn.skipAnimation)throw Xa(n),i.result=Ya(r,!1),d(i),i;p(o);const s=Vn.obj(e)?{...e}:{...t,to:e};s.parentId=a,$n(c,(e,t)=>{Vn.und(s[t])&&(s[t]=e)});const l=await r.start(s);return p(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()};let m;if(Nn.skipAnimation)return Xa(n),Ya(r,!1);try{let t;t=Vn.arr(e)?(async e=>{for(const t of e)await f(t)})(e):Promise.resolve(e(f,r.stop.bind(r))),await Promise.all([t.then(u),h]),m=Ya(r.get(),!0,!1)}catch(e){if(e instanceof Za)m=e.result;else{if(!(e instanceof eo))throw e;m=e.result}}finally{a==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return Vn.fun(i)&&wn.batchedUpdates(()=>{i(m,r,r.item)}),m})():l}function Xa(e,t){qn(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Za=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},eo=class extends Error{constructor(){super("SkipAnimationSignal")}},to=e=>e instanceof ro,no=1,ro=class extends Br{constructor(){super(...arguments),this.id=no++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=ha(this);return e&&e.getValue()}to(...e){return Nn.to(this,e)}interpolate(...e){return aa(`${na}The "interpolate" function is deprecated in v9 (use "to" instead)`),Nn.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Vr(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ar.sort(this),Vr(this,{type:"priority",parent:this,priority:e})}},ao=Symbol.for("SpringPhase"),oo=e=>(1&e[ao])>0,io=e=>(2&e[ao])>0,so=e=>(4&e[ao])>0,lo=(e,t)=>t?e[ao]|=3:e[ao]&=-3,co=(e,t)=>t?e[ao]|=4:e[ao]&=-5,uo=class extends ro{constructor(e,t){if(super(),this.animation=new qa,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Vn.und(e)||!Vn.und(t)){const n=Vn.obj(e)?{...e}:{...t,from:e};Vn.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(io(this)||this._state.asyncTo)||so(this)}get goal(){return Nr(this.animation.to)}get velocity(){const e=ha(this);return e instanceof va?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return oo(this)}get isAnimating(){return io(this)}get isPaused(){return so(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:a}=r;const{config:o}=r,i=fa(r.to);!i&&Ir(r.to)&&(a=Hn(Nr(r.to))),r.values.forEach((s,l)=>{if(s.done)return;const c=s.constructor==ya?1:i?i[l].lastPosition:a[l];let u=r.immediate,d=c;if(!u){if(d=s.lastPosition,o.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[l],a=null!=s.v0?s.v0:s.v0=Vn.arr(o.velocity)?o.velocity[l]:o.velocity;let i;const h=o.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if(Vn.und(o.duration))if(o.decay){const e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*t);d=n+a/(1-e)*(1-r),u=Math.abs(s.lastPosition-d)<=h,i=a*r}else{i=null==s.lastVelocity?a:s.lastVelocity;const t=o.restVelocity||h/10,r=o.clamp?0:o.bounce,l=!Vn.und(r),p=n==c?s.v0>0:n<c;let f,m=!1;const v=1,y=Math.ceil(e/v);for(let e=0;e<y&&(f=Math.abs(i)>t,f||(u=Math.abs(c-d)<=h,!u));++e){l&&(m=d==c||d>c==p,m&&(i=-i*r,d=c));i+=(1e-6*-o.tension*(d-c)+.001*-o.friction*i)/o.mass*v,d+=i*v}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(o.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),d=n+o.easing(r)*(c-n),i=(d-s.lastPosition)/e,u=1==r}s.lastVelocity=i,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}i&&!i[l].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,o.round)&&(n=!0)});const s=ha(this),l=s.getValue();if(t){const e=Nr(r.to);l===e&&!n||o.decay?n&&o.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(l)}set(e){return wn.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(io(this)){const{to:e,config:t}=this.animation;wn.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Vn.und(e)?(n=this.queue||[],this.queue=[]):n=[Vn.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>Qa(this,e))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Xa(this._state,e&&this._lastCallId),wn.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=Vn.obj(n)?n[t]:n,(null==n||Na(n))&&(n=void 0),r=Vn.obj(r)?r[t]:r,null==r&&(r=void 0);const a={to:n,from:r};return oo(this)||(e.reverse&&([n,r]=[r,n]),r=Nr(r),Vn.und(r)?ha(this)||this._set(n):this._set(r)),a}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,za(e,(e,t)=>/^on/.test(t)?Ra(e,n):e)),yo(this,e,"onProps"),go(this,"onProps",e,this);const a=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const o=this._state;return Wa(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{so(this)||(co(this,!0),Jn(o.pauseQueue),go(this,"onPause",Ya(this,ho(this,this.animation.to)),this))},resume:()=>{so(this)&&(co(this,!1),io(this)&&this._resume(),Jn(o.resumeQueue),go(this,"onResume",Ya(this,ho(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=po(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Ga(this));const r=!Vn.und(e.to),a=!Vn.und(e.from);if(r||a){if(!(t.callId>this._lastToId))return n(Ga(this));this._lastToId=t.callId}const{key:o,defaultProps:i,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;!a||r||t.default&&!Vn.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const h=!Bn(d,c);h&&(s.from=d),d=Nr(d);const p=!Bn(u,l);p&&this._focus(u);const f=Na(t.to),{config:m}=s,{decay:v,velocity:y}=m;(r||a)&&(m.velocity=0),t.config&&!f&&function(e,t,n){n&&($a(n={...n},t),t={...n,...t}),$a(e,t),Object.assign(e,t);for(const t in Ba)null==e[t]&&(e[t]=Ba[t]);let{frequency:r,damping:a}=e;const{mass:o}=e;Vn.und(r)||(r<.01&&(r=.01),a<0&&(a=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*a*o/r)}(m,Ma(t.config,o),t.config!==i.config?Ma(i.config,o):void 0);let g=ha(this);if(!g||Vn.und(u))return n(Ya(this,!0));const b=Vn.und(t.reset)?a&&!t.default:!Vn.und(d)&&Pa(t.reset,o),w=b?d:this.get(),_=Ta(u),E=Vn.num(_)||Vn.arr(_)||ia(_),k=!f&&(!E||Pa(i.immediate||t.immediate,o));if(p){const e=Ea(u);if(e!==g.constructor){if(!k)throw Error(`Cannot animate between ${g.constructor.name} and ${e.name}, as the "to" prop suggests`);g=this._set(_)}}const x=g.constructor;let S=Ir(u),C=!1;if(!S){const e=b||!oo(this)&&h;(p||e)&&(C=Bn(Ta(w),_),S=!C),(Bn(s.immediate,k)||k)&&Bn(m.decay,v)&&Bn(m.velocity,y)||(S=!0)}if(C&&io(this)&&(s.changed&&!b?S=!0:S||this._stop(l)),!f&&((S||Ir(l))&&(s.values=g.getPayload(),s.toValues=Ir(u)?null:x==ya?[1]:Hn(_)),s.immediate!=k&&(s.immediate=k,k||b||this._set(l)),S)){const{onRest:e}=s;Fn(vo,e=>yo(this,t,e));const r=Ya(this,ho(this,l));Jn(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&wn.batchedUpdates(()=>{s.changed=!b,e?.(r,this),b?Ma(i.onRest,r):s.onStart?.(r,this)})}b&&this._set(w),f?n(Ka(t.to,t,this._state,this)):S?this._start():io(this)&&!p?this._pendingCalls.add(n):n(Ja(w))}_focus(e){const t=this.animation;e!==t.to&&(Ur(this)&&this._detach(),t.to=e,Ur(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Ir(t)&&($r(t,this),to(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ir(e)&&Hr(e,this)}_set(e,t=!0){const n=Nr(e);if(!Vn.und(n)){const e=ha(this);if(!e||!Bn(n,e.getValue())){const r=Ea(n);e&&e.constructor==r?e.setValue(n):pa(this,r.create(n)),e&&wn.batchedUpdates(()=>{this._onChange(n,t)})}}return ha(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,go(this,"onStart",Ya(this,ho(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Ma(this.animation.onChange,e,this)),Ma(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;ha(this).reset(Nr(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),io(this)||(lo(this,!0),so(this)||this._resume())}_resume(){Nn.skipAnimation?this.finish():ar.start(this)}_stop(e,t){if(io(this)){lo(this,!1);const n=this.animation;Fn(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Vr(this,{type:"idle",parent:this});const r=t?Ga(this.get()):Ya(this.get(),ho(this,e??n.to));Jn(this._pendingCalls,r),n.changed&&(n.changed=!1,go(this,"onRest",r,this))}}};function ho(e,t){const n=Ta(t);return Bn(Ta(e.get()),n)}function po(e,t=e.loop,n=e.to){const r=Ma(t);if(r){const a=!0!==r&&Aa(r),o=(a||e).reverse,i=!a||a.reset;return fo({...e,loop:t,default:!1,pause:void 0,to:!o||Na(n)?n:void 0,from:i?e.from:void 0,reset:i,...a})}}function fo(e){const{to:t,from:n}=e=Aa(e),r=new Set;return Vn.obj(t)&&mo(t,r),Vn.obj(n)&&mo(n,r),e.keys=r.size?Array.from(r):null,e}function mo(e,t){$n(e,(e,n)=>null!=e&&t.add(n))}var vo=["onStart","onRest","onChange","onPause","onResume"];function yo(e,t,n){e.animation[n]=t[n]!==Da(t,n)?Ra(t[n],e.key):void 0}function go(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var bo=["onStart","onChange","onRest"],wo=1,_o=class{constructor(e,t){this.id=wo++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];Vn.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(fo(e)),this}start(e){let{queue:t}=this;return e?t=Hn(e).map(fo):this.queue=[],this._flush?this._flush(this,t):(Po(this,t),Eo(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Fn(Hn(t),t=>n[t].stop(!!e))}else Xa(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(Vn.und(e))this.start({pause:!0});else{const t=this.springs;Fn(Hn(e),e=>t[e].pause())}return this}resume(e){if(Vn.und(e))this.start({pause:!1});else{const t=this.springs;Fn(Hn(e),e=>t[e].resume())}return this}each(e){$n(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,a=this._changed.size>0;(r&&!this._started||a&&!this._started)&&(this._started=!0,qn(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));const o=!r&&this._started,i=a||o&&n.size?this.get():null;a&&t.size&&qn(t,([e,t])=>{t.value=i,e(t,this,this._item)}),o&&(this._started=!1,qn(n,([e,t])=>{t.value=i,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}wn.onFrame(this._onFrame)}};function Eo(e,t){return Promise.all(t.map(t=>ko(e,t))).then(t=>Qa(e,t))}async function ko(e,t,n){const{keys:r,to:a,from:o,loop:i,onRest:s,onResolve:l}=t,c=Vn.obj(t.default)&&t.default;i&&(t.loop=!1),!1===a&&(t.to=null),!1===o&&(t.from=null);const u=Vn.arr(a)||Vn.fun(a)?a:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Fn(bo,n=>{const r=t[n];if(Vn.fun(r)){const a=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=a.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):a.set(r,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Jn(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),p=!0===t.cancel||!0===Da(t,"cancel");(u||p&&d.asyncId)&&h.push(Wa(++e._lastAsyncId,{props:t,state:d,actions:{pause:Un,resume:Un,start(t,n){p?(Xa(d,e._lastAsyncId),n(Ga(e))):(t.onRest=s,n(Ka(u,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});const f=Qa(e,await Promise.all(h));if(i&&f.finished&&(!n||!f.noop)){const n=po(t,i,a);if(n)return Po(e,[n]),ko(e,n,!0)}return l&&wn.batchedUpdates(()=>l(f,e,e.item)),f}function xo(e,t){const n={...e.springs};return t&&Fn(Hn(t),e=>{Vn.und(e.keys)&&(e=fo(e)),Vn.obj(e.to)||(e={...e,to:void 0}),Mo(n,e,e=>Co(e))}),So(e,n),n}function So(e,t){$n(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,$r(t,e))})}function Co(e,t){const n=new uo;return n.key=e,t&&$r(n,t),n}function Mo(e,t,n){t.keys&&Fn(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function Po(e,t){Fn(t,t=>{Mo(e.springs,t,t=>Co(t,e))})}var Ro,Do,Oo=({children:e,...t})=>{const n=(0,m.useContext)(zo),r=t.pause||!!n.pause,a=t.immediate||!!n.immediate;t=function(e,t){const[n]=(0,m.useState)(()=>({inputs:t,result:e()})),r=(0,m.useRef)(),a=r.current;let o=a;o?Boolean(t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,o.inputs))||(o={inputs:t,result:e()}):o=n;return(0,m.useEffect)(()=>{r.current=o,a==n&&(n.inputs=n.result=void 0)},[o]),o.result}(()=>({pause:r,immediate:a}),[r,a]);const{Provider:o}=zo;return m.createElement(o,{value:t},e)},zo=(Ro=Oo,Do={},Object.assign(Ro,m.createContext(Do)),Ro.Provider._context=Ro,Ro.Consumer._context=Ro,Ro);Oo.Provider=zo.Provider,Oo.Consumer=zo.Consumer;var Lo=()=>{const e=[],t=function(t){oa(`${na}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return Fn(e,(e,a)=>{if(Vn.und(t))r.push(e.start());else{const o=n(t,e,a);o&&r.push(e.start(o))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return Fn(e,e=>e.pause(...arguments)),this},t.resume=function(){return Fn(e,e=>e.resume(...arguments)),this},t.set=function(t){Fn(e,(e,n)=>{const r=Vn.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){const n=[];return Fn(e,(e,r)=>{if(Vn.und(t))n.push(e.start());else{const a=this._getProps(t,e,r);a&&n.push(e.start(a))}}),n},t.stop=function(){return Fn(e,e=>e.stop(...arguments)),this},t.update=function(t){return Fn(e,(e,n)=>e.update(this._getProps(t,e,n))),this};const n=function(e,t,n){return Vn.fun(e)?e(n,t):e};return t._getProps=n,t};function jo(e,t,n){const r=Vn.fun(t)&&t,{reset:a,sort:o,trail:i=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:c,ref:u,config:d}=r?r():t,h=(0,m.useMemo)(()=>r||3==arguments.length?Lo():void 0,[]),p=Hn(e),f=[],v=(0,m.useRef)(null),y=a?null:v.current;sa(()=>{v.current=f}),ca(()=>(Fn(f,e=>{h?.add(e.ctrl),e.ctrl.ref=h}),()=>{Fn(v.current,e=>{e.expired&&clearTimeout(e.expirationId),Ua(e.ctrl,h),e.ctrl.stop(!0)})}));const g=function(e,{key:t,keys:n=t},r){if(null===n){const t=new Set;return e.map(e=>{const n=r&&r.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):Ao++})}return Vn.und(n)?e:Vn.fun(n)?e.map(n):Hn(n)}(p,r?r():t,y),b=a&&v.current||[];sa(()=>Fn(b,({ctrl:e,item:t,key:n})=>{Ua(e,h),Ma(c,t,n)}));const w=[];if(y&&Fn(y,(e,t)=>{e.expired?(clearTimeout(e.expirationId),b.push(e)):~(t=w[t]=g.indexOf(e.key))&&(f[t]=e)}),Fn(p,(e,t)=>{f[t]||(f[t]={key:g[t],item:e,phase:"mount",ctrl:new _o},f[t].ctrl.item=e)}),w.length){let e=-1;const{leave:n}=r?r():t;Fn(w,(t,r)=>{const a=y[r];~t?(e=f.indexOf(a),f[e]={...a,item:p[t]}):n&&f.splice(++e,0,a)})}Vn.fun(o)&&f.sort((e,t)=>o(e.item,t.item));let _=-i;const E=la(),k=za(t),x=new Map,S=(0,m.useRef)(new Map),C=(0,m.useRef)(!1);Fn(f,(e,n)=>{const a=e.key,o=e.phase,c=r?r():t;let h,p;const f=Ma(c.delay||0,a);if("mount"==o)h=c.enter,p="enter";else{const e=g.indexOf(a)<0;if("leave"!=o)if(e)h=c.leave,p="leave";else{if(!(h=c.update))return;p="update"}else{if(e)return;h=c.enter,p="enter"}}if(h=Ma(h,e.item,n),h=Vn.obj(h)?Aa(h):{to:h},!h.config){const t=d||k.config;h.config=Ma(t,e.item,n,p)}_+=i;const m={...k,delay:f+_,ref:u,immediate:c.immediate,reset:!1,...h};if("enter"==p&&Vn.und(m.from)){const a=r?r():t,o=Vn.und(a.initial)||y?a.from:a.initial;m.from=Ma(o,e.item,n)}const{onResolve:b}=m;m.onResolve=e=>{Ma(b,e);const t=v.current,n=t.find(e=>e.key===a);if(n&&(!e.cancelled||"update"==n.phase)&&n.ctrl.idle){const e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){const t=Ma(s,n.item);if(!1!==t){const r=!0===t?0:t;if(n.expired=!0,!e&&r>0)return void(r<=2147483647&&(n.expirationId=setTimeout(E,r)))}}e&&t.some(e=>e.expired)&&(S.current.delete(n),l&&(C.current=!0),E())}};const w=xo(e.ctrl,m);"leave"===p&&l?S.current.set(e,{phase:p,springs:w,payload:m}):x.set(e,{phase:p,springs:w,payload:m})});const M=(0,m.useContext)(Oo),P=function(e){const t=(0,m.useRef)();return(0,m.useEffect)(()=>{t.current=e}),t.current}(M),R=M!==P&&Ia(M);sa(()=>{R&&Fn(f,e=>{e.ctrl.start({default:M})})},[M]),Fn(x,(e,t)=>{if(S.current.size){const e=f.findIndex(e=>e.key===t.key);f.splice(e,1)}}),sa(()=>{Fn(S.current.size?S.current:x,({phase:e,payload:t},n)=>{const{ctrl:r}=n;n.phase=e,h?.add(r),R&&"enter"==e&&r.start({default:M}),t&&(Va(r,t.ref),!r.ref&&!h||C.current?(r.start(t),C.current&&(C.current=!1)):r.update(t))})},a?void 0:n);const D=e=>m.createElement(m.Fragment,null,f.map((t,n)=>{const{springs:r}=x.get(t)||t.ctrl,a=e({...r},t.item,t,n);return a&&a.type?m.createElement(a.type,{...a.props,key:Vn.str(t.key)||Vn.num(t.key)?t.key:t.ctrl.id,ref:a.ref}):a}));return h?[D,h]:D}var Ao=1;function To({items:e,children:t,...n}){return jo(e,n)(t)}var Io=class extends ro{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Mr(...t);const n=this._get(),r=Ea(n);pa(this,r.create(n))}advance(e){const t=this._get();Bn(t,this.get())||(ha(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Uo(this._active)&&Vo(this)}_get(){const e=Vn.arr(this.source)?this.source.map(Nr):Hn(Nr(this.source));return this.calc(...e)}_start(){this.idle&&!Uo(this._active)&&(this.idle=!1,Fn(fa(this),e=>{e.done=!1}),Nn.skipAnimation?(wn.batchedUpdates(()=>this.advance()),Vo(this)):ar.start(this))}_attach(){let e=1;Fn(Hn(this.source),t=>{Ir(t)&&$r(t,this),to(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Fn(Hn(this.source),e=>{Ir(e)&&Hr(e,this)}),this._active.clear(),Vo(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=Hn(this.source).reduce((e,t)=>Math.max(e,(to(t)?t.priority:0)+1),0))}};function No(e){return!1!==e.idle}function Uo(e){return!e.size||Array.from(e).every(No)}function Vo(e){e.idle||(e.idle=!0,Fn(fa(e),e=>{e.done=!0}),Vr(e,{type:"idle",parent:e}))}Nn.assign({createStringInterpolator:ta,to:(e,t)=>new Io(e,t)});ar.advance;var Bo=/^--/;function Fo(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Bo.test(e)||Ho.hasOwnProperty(e)&&Ho[e]?(""+t).trim():t+"px"}var $o={};var Ho={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qo=["Webkit","Ms","Moz","O"];Ho=Object.keys(Ho).reduce((e,t)=>(qo.forEach(n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t]),e),Ho);var Wo=/^(matrix|translate|scale|rotate|skew)/,Qo=/^(translate)/,Jo=/^(rotate|skew)/,Yo=(e,t)=>Vn.num(e)&&0!==e?e+t:e,Go=(e,t)=>Vn.arr(e)?e.every(e=>Go(e,t)):Vn.num(e)?e===t:parseFloat(e)===t,Ko=class extends ba{constructor({x:e,y:t,z:n,...r}){const a=[],o=[];(e||t||n)&&(a.push([e||0,t||0,n||0]),o.push(e=>[`translate3d(${e.map(e=>Yo(e,"px")).join(",")})`,Go(e,0)])),$n(r,(e,t)=>{if("transform"===t)a.push([e||""]),o.push(e=>[e,""===e]);else if(Wo.test(t)){if(delete r[t],Vn.und(e))return;const n=Qo.test(t)?"px":Jo.test(t)?"deg":"";a.push(Hn(e)),o.push("rotate3d"===t?([e,t,r,a])=>[`rotate3d(${e},${t},${r},${Yo(a,n)})`,Go(a,0)]:e=>[`${t}(${e.map(e=>Yo(e,n)).join(",")})`,Go(e,t.startsWith("scale")?1:0)])}}),a.length&&(r.transform=new Xo(a,o)),super(r)}},Xo=class extends Br{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Fn(this.inputs,(n,r)=>{const a=Nr(n[0]),[o,i]=this.transforms[r](Vn.arr(a)?a:n.map(Nr));e+=" "+o,t=t&&i}),t?"none":e}observerAdded(e){1==e&&Fn(this.inputs,e=>Fn(e,e=>Ir(e)&&$r(e,this)))}observerRemoved(e){0==e&&Fn(this.inputs,e=>Fn(e,e=>Ir(e)&&Hr(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),Vr(this,e)}};Nn.assign({batchedUpdates:jt.unstable_batchedUpdates,createStringInterpolator:ta,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var Zo=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new ba(e),getComponentProps:r=e=>e}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{const t=Ca(e)||"Anonymous";return(e=Vn.str(e)?o[e]||(o[e]=ka(e,a)):e[Sa]||(e[Sa]=ka(e,a))).displayName=`Animated(${t})`,e};return $n(e,(t,n)=>{Vn.arr(e)&&(n=Ca(t)),o[n]=o(t)}),{animated:o}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{className:r,style:a,children:o,scrollTop:i,scrollLeft:s,viewBox:l,...c}=t,u=Object.values(c),d=Object.keys(c).map(t=>n||e.hasAttribute(t)?t:$o[t]||($o[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));void 0!==o&&(e.textContent=o);for(const t in a)if(a.hasOwnProperty(t)){const n=Fo(t,a[t]);Bo.test(t)?e.style.setProperty(t,n):e.style[t]=n}d.forEach((t,n)=>{e.setAttribute(t,u[n])}),void 0!==r&&(e.className=r),void 0!==i&&(e.scrollTop=i),void 0!==s&&(e.scrollLeft=s),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new Ko(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),ei=Zo.animated;let ti=null,ni=ctDashboardLocalizations.clean_install_plugins;var ri=function(){const[t,n]=(0,e.useState)(!ti),[r,a]=(0,e.useState)(ti||[]),o=Object.values(ni).map(function(e,t){return e.name=Object.keys(ni)[t],e}),i=async function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&n(!0);const e=new FormData;e.append("action","get_premium_plugins_status"),e.append("nonce",ctDashboardLocalizations.dashboard_actions_nonce);try{const t=await fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:e});if(200===t.status){const{success:e,data:n}=await t.json();e&&(a(n),ti=n)}}catch(e){}n(!1)};return(0,e.useEffect)(function(){i(!ti)},[]),(0,e.createElement)("div",null,(0,e.createElement)(To,{items:t,from:{opacity:0},enter:[{opacity:1}],leave:[{opacity:0}],initial:null,config:function(e,t){return{duration:300}}},function(t,n){return n?(0,e.createElement)(ei.p,{style:t,className:"ct-loading-text"},(0,e.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 100 100"},(0,e.createElement)("g",{transform:"translate(50,50)"},(0,e.createElement)("g",{transform:"scale(1)"},(0,e.createElement)("circle",{cx:"0",cy:"0",r:"50",fill:"currentColor"}),(0,e.createElement)("circle",{cx:"0",cy:"-26",r:"12",fill:"#ffffff",transform:"rotate(161.634)"},(0,e.createElement)("animateTransform",{attributeName:"transform",type:"rotate",calcMode:"linear",values:"0 0 0;360 0 0",keyTimes:"0;1",dur:"1s",begin:"0s",repeatCount:"indefinite"}))))),(0,u.__)("Loading Plugins Status...","blocksy")):(0,e.createElement)(ei.div,{style:t},o.length>0&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("ul",{className:"ct-recommended-plugins-list"},o.map(function(t){return(0,e.createElement)(gn,{plugin:t,key:t.name,onPluginsSync:function(){return i()},status:(r.find(function(e){let{name:n}=e;return n===t.name})||{}).status})})),(0,e.createElement)(pn,null)))}))},ai=window.wp.date;let oi=null;const ii=function(t){let{versionDescriptor:n}=t;const[r,...a]=n.descriptor.split(/\r?\n/);return(0,e.createElement)("section",null,(0,e.createElement)("h2",null,(0,u.sprintf)((0,u.__)("Version: %s","blocksy"),n.version),(0,e.createElement)("span",null,(0,u.sprintf)((0,u.__)("Released on %s","blocksy"),n.date))),(0,e.createElement)("div",{className:"ct-release-info",dangerouslySetInnerHTML:{__html:`<ul><li>\n\n                        ${a.join("\n").trim().split("\n").map(function(e){return e.replace(/^-\s/,"")}).map(function(e){return e.replace(/`(.*?)`/g,"<code>$1</code>")}).map(function(e){return e.replace(/\[(.*?)\]\((.*?)\)/g,'<a href="$2">$1</a>')}).join("</li><li>")}\n                        </li></ul>`.replace(/New:/g,'<span class="new" title="New"></span>').replace(/Improvement:/g,'<span class="improvement" title="Enhance"></span>').replace(/Fix:/g,'<span class="fix" title="Fix"></span>')}}))};var si=function(){const[t,n]=(0,e.useState)(!oi),[r,a]=(0,e.useState)(oi),[o,i]=(0,e.useState)(0);let s=!1;window.ctDashboardLocalizations&&window.ctDashboardLocalizations.plugin_data&&window.ctDashboardLocalizations.plugin_data.has_beta_consent&&(s=window.ctDashboardLocalizations.plugin_data.has_beta_consent);return(0,e.useEffect)(function(){!async function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&n(!0);const e=new FormData;e.append("action","get_latest_changelog");try{const t=await fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:e});if(200===t.status){const{success:e,data:n}=await t.json();e&&n.changelog&&(a(n.changelog),oi=n.changelog)}}catch(e){}n(!1)}(!oi)},[]),(0,e.createElement)("section",{className:"ct-changelog-wrapper"},(0,e.createElement)(To,{items:t,from:{opacity:0},enter:[{opacity:1}],leave:[{opacity:0}],initial:null,config:function(e,t){return{duration:300}}},function(t,n){return n?(0,e.createElement)(ei.p,{className:"ct-loading-text",style:t},(0,e.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 100 100"},(0,e.createElement)("g",{transform:"translate(50,50)"},(0,e.createElement)("g",{transform:"scale(1)"},(0,e.createElement)("circle",{cx:"0",cy:"0",r:"50",fill:"currentColor"}),(0,e.createElement)("circle",{cx:"0",cy:"-26",r:"12",fill:"#ffffff",transform:"rotate(161.634)"},(0,e.createElement)("animateTransform",{attributeName:"transform",type:"rotate",calcMode:"linear",values:"0 0 0;360 0 0",keyTimes:"0;1",dur:"1s",begin:"0s",repeatCount:"indefinite"}))))),(0,u.__)("Loading changelog...","blocksy")):(0,e.createElement)(ei.div,{style:t},(0,e.createElement)("div",{className:dn()("changelog-info",{"has-sources":r&&r.length>1})},r&&r.length>1&&(0,e.createElement)("ul",{className:"changelog-sources"},r.map(function(t,n){let{title:r}=t;return(0,e.createElement)("li",{className:dn()({active:n===o}),onClick:function(){return i(n)},key:r},r)})),(0,e.createElement)("ul",{className:"changelog-explanation"},(0,e.createElement)("li",null,(0,e.createElement)("span",{className:"new"})," ",(0,u.__)("New","blocksy")),(0,e.createElement)("li",null,(0,e.createElement)("span",{className:"fix"})," ",(0,u.__)("Fix","blocksy")),(0,e.createElement)("li",null,(0,e.createElement)("span",{className:"improvement"}),(0,u.__)("Improvement","blocksy")))),(0,e.createElement)("div",{className:"changelog-items"},r[o].changelog?function(e){let{hasBetas:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(n=e,n.replace(/[\u00A0-\u9999<>\&]/g,function(e){return"&#"+e.charCodeAt(0)+";"})).replace(/\r/g,"").replace(/(\r\n|\r|\n){3,}/g,"$1\n\n").split("\n\n").map(function(e){let[t,n]=e.split(/\r?\n/)[0].split(":");return{version:t,date:(0,ai.dateI18n)("F j, Y",new Date(n.trim())),descriptor:e}}).filter(function(e){let{version:n}=e;return!!t||-1===n.indexOf("beta")});var n}(r[o].changelog,{hasBetas:s}).map(function(t){return(0,e.createElement)(ii,{key:t.version,versionDescriptor:t})}):(0,u.__)("No changelog present at the moment.","blocksy")))}))};const li=["Component"],ci=["Component","key","path"];function ui(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function di(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ui(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ui(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}window.ctDashboardLocalizations.DashboardContext=c;class hi extends e.Component{constructor(){super(...arguments),i(this,"state",{hasError:!1,error:null})}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error("Dashboard Route Error:",e,t),this.props.onError&&this.props.onError(e,t)}render(){return this.state.hasError?null:this.props.children}}const pi=function(n){let{Component:a}=n,o=r(n,li);const i=pt(),s=ut(),l=function(){let{matches:e}=m.useContext(st),t=e[e.length-1];return t?t.params:{}}(),c=dt("*");return(0,e.createElement)(hi,null,(0,e.createElement)(a,t({},o,l,{navigate:i,location:s,match:c})))},fi=function(){return(0,e.createElement)("div",null,(0,e.createElement)(Rt,null))},mi=function(){const t=pt(),n=ut(),r=dt;return(0,e.createElement)(l,{value:di(di(di({},{theme_version:"1.0.0",theme_name:"Word"}),ctDashboardLocalizations),{},{Link:Xt,useLocation:ut,navigate:t,useMatch:r,history:{push:t,location:n},location:n})},(0,e.createElement)("header",null,(0,e.createElement)(f,null),(0,e.createElement)(cn,null)),(0,e.createElement)("section",null,(0,e.createElement)(fi,null)))},vi=function(){const n=[];return h().trigger("ct:dashboard:routes",n),a=zt((0,e.createElement)(Dt,{path:"/",element:(0,e.createElement)(mi,null)},(0,e.createElement)(Dt,{index:!0,element:(0,e.createElement)(yn,null)}),(0,e.createElement)(Dt,{path:"plugins",element:(0,e.createElement)(ri,null)}),(0,e.createElement)(Dt,{path:"changelog",element:(0,e.createElement)(si,null)}),n.map(function(n){let{Component:a,key:o,path:i}=n,s=r(n,ci);return(0,e.createElement)(Dt,{key:o||i,path:i,element:(0,e.createElement)(pi,t({Component:a},s))})}))),he({basename:null==o?void 0:o.basename,future:At({},null==o?void 0:o.future,{v7_prependBasename:!0}),history:(i={window:null==o?void 0:o.window},void 0===i&&(i={}),x(function(e,t){let{pathname:n="/",search:r="",hash:a=""}=k(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),_("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:E(t))},function(e,t){b("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},i)),hydrationData:(null==o?void 0:o.hydrationData)||Ut(),routes:a,mapRouteProperties:Lt,dataStrategy:null==o?void 0:o.dataStrategy,patchRoutesOnNavigation:null==o?void 0:o.patchRoutesOnNavigation,window:null==o?void 0:o.window}).initialize();var a,o,i};var yi=function(){const t=(0,e.useMemo)(function(){return vi()},[]);return(0,e.createElement)(Qt,{router:t,future:{v7_startTransition:!0}})};document.addEventListener("DOMContentLoaded",function(){if(ctDashboardLocalizations.plugin_data&&document.getElementById("ct-dashboard")){(0,e.createRoot)(document.getElementById("ct-dashboard")).render((0,e.createElement)(yi,null))}})}()}();