OwlCyberSecurity - MANAGER
Edit File: extendify-launch-88c0c0c69e0fea861eb5.js
(()=>{var e,t,r={251:(e,t,r)=>{"use strict";var o=r(196),n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var o,a={},c=null,u=null;for(o in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,o)&&!l.hasOwnProperty(o)&&(a[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===a[o]&&(a[o]=t[o]);return{$$typeof:n,type:e,key:c,ref:u,props:a,_owner:s.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},893:(e,t,r)=>{"use strict";e.exports=r(251)},250:(e,t,r)=>{"use strict";var o=r(196),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useState,i=o.useEffect,s=o.useLayoutEffect,l=o.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),o=a({inst:{value:r,getSnapshot:t}}),n=o[0].inst,u=o[1];return s((function(){n.value=r,n.getSnapshot=t,c(n)&&u({inst:n})}),[e,r,t]),i((function(){return c(n)&&u({inst:n}),e((function(){c(n)&&u({inst:n})}))}),[e]),l(r),r};t.useSyncExternalStore=void 0!==o.useSyncExternalStore?o.useSyncExternalStore:u},139:(e,t,r)=>{"use strict";var o=r(196),n=r(688),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useSyncExternalStore,s=o.useRef,l=o.useEffect,c=o.useMemo,u=o.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,o,n){var d=s(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=c((function(){function e(e){if(!l){if(l=!0,i=e,e=o(e),void 0!==n&&p.hasValue){var t=p.value;if(n(t,e))return s=t}return s=e}if(t=s,a(i,e))return t;var r=o(e);return void 0!==n&&n(t,r)?t:(i=e,s=r)}var i,s,l=!1,c=void 0===r?null:r;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,r,o,n]);var m=i(e,d[0],d[1]);return l((function(){p.hasValue=!0,p.value=m}),[m]),u(m),m}},688:(e,t,r)=>{"use strict";e.exports=r(250)},798:(e,t,r)=>{"use strict";e.exports=r(139)},196:e=>{"use strict";e.exports=window.React},967:(e,t)=>{var r;!function(){"use strict";var o={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=i(e,a(r)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)o.call(e,r)&&e[r]&&(t=i(t,r));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):void 0===(r=function(){return n}.apply(t,[]))||(e.exports=r)}()}},o={};function n(e){var t=o[e];if(void 0!==t)return t.exports;var a=o[e]={exports:{}};return r[e](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"==typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"==typeof r.then)return r}var a=Object.create(null);n.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>r[e]));return i.default=()=>r,n.d(a,i),a},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};n.r(e),n.d(e,{hasBrowserEnv:()=>wt,hasStandardBrowserEnv:()=>vt,hasStandardBrowserWebWorkerEnv:()=>xt,origin:()=>Et});var t={};n.r(t),n.d(t,{BarChart:()=>Fm,Checkmark:()=>Vm,Design:()=>jm,Donate:()=>Im,LeftCaret:()=>Bm,Logo:()=>Hm,Monetization:()=>Um,OpenEnvelope:()=>zm,Pencil:()=>$m,Planner:()=>Wm,PreviewIcon:()=>qm,PriceTag:()=>Zm,Radio:()=>Km,RefreshIcon:()=>Ym,RightCaret:()=>Xm,School:()=>Gm,SearchIcon:()=>Jm,Shop:()=>Qm,Speech:()=>eh,Spinner:()=>th,SpinnerIcon:()=>rh,Ticket:()=>oh});var r=n(196),o=n.t(r,2);const a=window.wp.element,i=window.wp.blockLibrary,s=window.wp.data,l=e=>{try{return JSON.parse(e)}catch(e){return{}}};var c=n(688);const u=()=>{},d=u(),p=Object,m=e=>e===d,h=e=>"function"==typeof e,f=(e,t)=>({...e,...t}),g=new WeakMap;let y=0;const w=e=>{const t=typeof e,r=e&&e.constructor,o=r==Date;let n,a;if(p(e)!==e||o||r==RegExp)n=o?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(n=g.get(e),n)return n;if(n=++y+"~",g.set(e,n),r==Array){for(n="@",a=0;a<e.length;a++)n+=w(e[a])+",";g.set(e,n)}if(r==p){n="#";const t=p.keys(e).sort();for(;!m(a=t.pop());)m(e[a])||(n+=a+":"+w(e[a])+",");g.set(e,n)}}return n},v=new WeakMap,b={},x={},E="undefined",k=typeof window!=E,S=typeof document!=E,C=(e,t)=>{const r=v.get(e);return[()=>!m(t)&&e.get(t)||b,o=>{if(!m(t)){const n=e.get(t);t in x||(x[t]=n),r[5](t,f(n,o),n||b)}},r[6],()=>!m(t)&&t in x?x[t]:!m(t)&&e.get(t)||b]};let P=!0;const[T,L]=k&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[u,u],M={isOnline:()=>P,isVisible:()=>{const e=S&&document.visibilityState;return m(e)||"hidden"!==e}},R={initFocus:e=>(S&&document.addEventListener("visibilitychange",e),T("focus",e),()=>{S&&document.removeEventListener("visibilitychange",e),L("focus",e)}),initReconnect:e=>{const t=()=>{P=!0,e()},r=()=>{P=!1};return T("online",t),T("offline",r),()=>{L("online",t),L("offline",r)}}},A=!r.useId,_=!k||"Deno"in window,O=e=>k&&typeof window.requestAnimationFrame!=E?window.requestAnimationFrame(e):setTimeout(e,1),N=_?r.useEffect:r.useLayoutEffect,D="undefined"!=typeof navigator&&navigator.connection,F=!_&&D&&(["slow-2g","2g"].includes(D.effectiveType)||D.saveData),V=e=>{if(h(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?w(e):"",t]};let j=0;const I=()=>++j;async function B(...e){const[t,r,o,n]=e,a=f({populateCache:!0,throwOnError:!0},"boolean"==typeof n?{revalidate:n}:n||{});let i=a.populateCache;const s=a.rollbackOnError;let l=a.optimisticData;const c=a.throwOnError;if(h(r)){const e=r,o=[],n=t.keys();for(const r of n)!/^\$(inf|sub)\$/.test(r)&&e(t.get(r)._k)&&o.push(r);return Promise.all(o.map(u))}return u(r);async function u(r){const[n]=V(r);if(!n)return;const[u,p]=C(t,n),[f,g,y,w]=v.get(t),b=()=>{const e=f[n];return(h(a.revalidate)?a.revalidate(u().data,r):!1!==a.revalidate)&&(delete y[n],delete w[n],e&&e[0])?e[0](2).then((()=>u().data)):u().data};if(e.length<3)return b();let x,E=o;const k=I();g[n]=[k,0];const S=!m(l),P=u(),T=P.data,L=P._c,M=m(L)?T:L;if(S&&(l=h(l)?l(M,T):l,p({data:l,_c:M})),h(E))try{E=E(M)}catch(e){x=e}if(E&&(e=>h(e.then))(E)){if(E=await E.catch((e=>{x=e})),k!==g[n][0]){if(x)throw x;return E}x&&S&&(e=>"function"==typeof s?s(e):!1!==s)(x)&&(i=!0,p({data:M,_c:d}))}if(i&&!x)if(h(i)){const e=i(E,M);p({data:e,error:d,_c:d})}else p({data:E,error:d,_c:d});if(g[n][1]=I(),Promise.resolve(b()).then((()=>{p({_c:d})})),!x)return E;if(c)throw x}}const H=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},U=(e,t)=>{if(!v.has(e)){const r=f(R,t),o={},n=B.bind(d,e);let a=u;const i={},s=(e,t)=>{const r=i[e]||[];return i[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},l=(t,r,o)=>{e.set(t,r);const n=i[t];if(n)for(const e of n)e(r,o)},c=()=>{if(!v.has(e)&&(v.set(e,[o,{},{},{},n,l,s]),!_)){const t=r.initFocus(setTimeout.bind(d,H.bind(d,o,0))),n=r.initReconnect(setTimeout.bind(d,H.bind(d,o,1)));a=()=>{t&&t(),n&&n(),v.delete(e)}}};return c(),[e,n,c,a]}return[e,v.get(e)[4]]},[z,$]=U(new Map),W=f({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(e,__,t,r,o)=>{const n=t.errorRetryCount,a=o.retryCount,i=~~((Math.random()+.5)*(1<<(a<8?a:8)))*t.errorRetryInterval;!m(n)&&a>n||setTimeout(r,i,o)},onDiscarded:u,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:F?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:F?5e3:3e3,compare:(e,t)=>w(e)==w(t),isPaused:()=>!1,cache:z,mutate:$,fallback:{}},M),q=(e,t)=>{const r=f(e,t);if(t){const{use:o,fallback:n}=e,{use:a,fallback:i}=t;o&&a&&(r.use=o.concat(a)),n&&i&&(r.fallback=f(n,i))}return r},Z=(0,r.createContext)({}),K=e=>{const{value:t}=e,o=(0,r.useContext)(Z),n=h(t),a=(0,r.useMemo)((()=>n?t(o):t),[n,o,t]),i=(0,r.useMemo)((()=>n?a:q(o,a)),[n,o,a]),s=a&&a.provider,l=(0,r.useRef)(d);s&&!l.current&&(l.current=U(s(i.cache||z),a));const c=l.current;return c&&(i.cache=c[0],i.mutate=c[1]),N((()=>{if(c)return c[2]&&c[2](),c[3]}),[]),(0,r.createElement)(Z.Provider,f(e,{value:i}))},Y=k&&window.__SWR_DEVTOOLS_USE__,X=Y?window.__SWR_DEVTOOLS_USE__:[],G=e=>h(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],J=()=>f(W,(0,r.useContext)(Z)),Q=X.concat((e=>(t,r,o)=>{const n=r&&((...e)=>{const[o]=V(t),[,,,n]=v.get(z);if(o.startsWith("$inf$"))return r(...e);const a=n[o];return m(a)?r(...e):(delete n[o],a)});return e(t,n,o)})),ee=e=>function(...t){const r=J(),[o,n,a]=G(t),i=q(r,a);let s=e;const{use:l}=i,c=(l||[]).concat(Q);for(let e=c.length;e--;)s=c[e](s);return s(o,n||i.fetcher||null,i)},te=(e,t,r)=>{const o=t[e]||(t[e]=[]);return o.push(r),()=>{const e=o.indexOf(r);e>=0&&(o[e]=o[o.length-1],o.pop())}};Y&&(window.__SWR_DEVTOOLS_REACT__=r);const re=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),oe={dedupe:!0},ne=p.defineProperty(K,"defaultValue",{value:W}),ae=ee(((e,t,o)=>{const{cache:n,compare:a,suspense:i,fallbackData:s,revalidateOnMount:l,revalidateIfStale:u,refreshInterval:p,refreshWhenHidden:g,refreshWhenOffline:y,keepPreviousData:w}=o,[b,x,E,k]=v.get(n),[S,P]=V(e),T=(0,r.useRef)(!1),L=(0,r.useRef)(!1),M=(0,r.useRef)(S),R=(0,r.useRef)(t),D=(0,r.useRef)(o),F=()=>D.current,j=()=>F().isVisible()&&F().isOnline(),[H,U,z,$]=C(n,S),W=(0,r.useRef)({}).current,q=m(s)?o.fallback[S]:s,Z=(e,t)=>{for(const r in W){const o=r;if("data"===o){if(!a(e[o],t[o])){if(!m(e[o]))return!1;if(!a(ae,t[o]))return!1}}else if(t[o]!==e[o])return!1}return!0},K=(0,r.useMemo)((()=>{const e=!!S&&!!t&&(m(l)?!F().isPaused()&&!i&&(!!m(u)||u):l),r=t=>{const r=f(t);return delete r._k,e?{isValidating:!0,isLoading:!0,...r}:r},o=H(),n=$(),a=r(o),s=o===n?a:r(n);let c=a;return[()=>{const e=r(H());return Z(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>s]}),[n,S]),Y=(0,c.useSyncExternalStore)((0,r.useCallback)((e=>z(S,((t,r)=>{Z(r,t)||e()}))),[n,S]),K[0],K[1]),X=!T.current,G=b[S]&&b[S].length>0,J=Y.data,Q=m(J)?q:J,ee=Y.error,ne=(0,r.useRef)(Q),ae=w?m(J)?ne.current:J:Q,ie=!(G&&!m(ee))&&(X&&!m(l)?l:!F().isPaused()&&(i?!m(Q)&&u:m(Q)||u)),se=!!(S&&t&&X&&ie),le=m(Y.isValidating)?se:Y.isValidating,ce=m(Y.isLoading)?se:Y.isLoading,ue=(0,r.useCallback)((async e=>{const t=R.current;if(!S||!t||L.current||F().isPaused())return!1;let r,n,i=!0;const s=e||{},l=!E[S]||!s.dedupe,c=()=>A?!L.current&&S===M.current&&T.current:S===M.current,u={isValidating:!1,isLoading:!1},p=()=>{U(u)},f=()=>{const e=E[S];e&&e[1]===n&&delete E[S]},g={isValidating:!0};m(H().data)&&(g.isLoading=!0);try{if(l&&(U(g),o.loadingTimeout&&m(H().data)&&setTimeout((()=>{i&&c()&&F().onLoadingSlow(S,o)}),o.loadingTimeout),E[S]=[t(P),I()]),[r,n]=E[S],r=await r,l&&setTimeout(f,o.dedupingInterval),!E[S]||E[S][1]!==n)return l&&c()&&F().onDiscarded(S),!1;u.error=d;const e=x[S];if(!m(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return p(),l&&c()&&F().onDiscarded(S),!1;const s=H().data;u.data=a(s,r)?s:r,l&&c()&&F().onSuccess(r,S,o)}catch(e){f();const t=F(),{shouldRetryOnError:r}=t;t.isPaused()||(u.error=e,l&&c()&&(t.onError(e,S,t),(!0===r||h(r)&&r(e))&&(F().revalidateOnFocus&&F().revalidateOnReconnect&&!j()||t.onErrorRetry(e,S,t,(e=>{const t=b[S];t&&t[0]&&t[0](3,e)}),{retryCount:(s.retryCount||0)+1,dedupe:!0}))))}return i=!1,p(),!0}),[S,n]),de=(0,r.useCallback)(((...e)=>B(n,M.current,...e)),[]);if(N((()=>{R.current=t,D.current=o,m(J)||(ne.current=J)})),N((()=>{if(!S)return;const e=ue.bind(d,oe);let t=0;const r=te(S,b,((r,o={})=>{if(0==r){const r=Date.now();F().revalidateOnFocus&&r>t&&j()&&(t=r+F().focusThrottleInterval,e())}else if(1==r)F().revalidateOnReconnect&&j()&&e();else{if(2==r)return ue();if(3==r)return ue(o)}}));return L.current=!1,M.current=S,T.current=!0,U({_k:P}),ie&&(m(Q)||_?e():O(e)),()=>{L.current=!0,r()}}),[S]),N((()=>{let e;function t(){const t=h(p)?p(H().data):p;t&&-1!==e&&(e=setTimeout(r,t))}function r(){H().error||!g&&!F().isVisible()||!y&&!F().isOnline()?t():ue(oe).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[p,g,y,S]),(0,r.useDebugValue)(ae),i&&m(Q)&&S){if(!A&&_)throw new Error("Fallback data is required when using suspense in SSR.");R.current=t,D.current=o,L.current=!1;const e=k[S];if(!m(e)){const t=de(e);re(t)}if(!m(ee))throw ee;{const e=ue(oe);m(ae)||(e.status="fulfilled",e.value=!0),re(e)}}return{mutate:de,get data(){return W.data=!0,ae},get error(){return W.error=!0,ee},get isValidating(){return W.isValidating=!0,le},get isLoading(){return W.isLoading=!0,ce}}})),ie=window.wp.apiFetch;var se=n.n(ie);const le=window.wp.i18n,ce={about:{ // translators: This string represents the title of an "About" page on a website that provides information about the website or organization. Please translate it in a way that fits the standard phrasing for an "About" page in the target language, considering the common usage in websites for that language. title:(0,le.__)("About","extendify-local"), // translators: This string represents the slug of an "About" page on a website that provides information about the website or organization. Please translate it in a way that fits a slug for an "About" page in the target language, considering the common usage in websites for that language. slug:(0,le.__)("about","extendify-local"),alias:["about","about-us","recognition","stats"]},blog:{ // translators: This string represents the title of a "Blog" page on a website that shows recent blog posts. Please translate it in a way that fits the standard phrasing for a "Blog" page in the target language, considering the common usage in websites for that language. title:(0,le.__)("Blog","extendify-local"), // translators: This string represents the slug of a "Blog" page on a website that shows recent blog posts. Please translate it in a way that fits a slug for a "Blog" page in the target language, considering the common usage in websites for that language. slug:(0,le.__)("blog","extendify-local"),alias:["blog","blog-categories","blog-section"]},book:{ // translators: This string represents the title of a "Book" page on a website that is meant for booking something. Please translate it in a way that fits the standard phrasing for a "Book" page in the target language, considering the common usage in websites for that language. title:(0,le.__)("Book","extendify-local"),alias:["book","booking"]},careers:{ // translators: This string represents the title of a "Careers" page on a website that is meant for listing available careers. Please translate it in a way that fits the standard phrasing for a "Careers" page in the target language, considering the common usage in websites for that language. title:(0,le.__)("Careers","extendify-local"), // translators: This string represents the slug of a "Careers" page on a website that is meant for listing available careers. Please translate it in a way that fits a slug for a "Careers" page in the target language, considering the common usage in websites for that language. Make sure to keep the slug lowercase and url-friendly. slug:(0,le.__)("careers","extendify-local"),alias:["careers","career","career-with-opening"]},contact:{ // translators: This string represents the title of a "Contact" page on a website that gives information for visitors on how to contact the website or organization. Please translate it in a way that fits the standard phrasing for a "Contact" page in the target language, considering the common usage in websites for that language. title:(0,le.__)("Contact","extendify-local"), // translators: This string represents the slug of a "Contact" page on a website that gives information for visitors on how to contact the website or organization. Please translate it in a way that fits a slug for a "Contact" page in the target language, considering the common usage in websites for that language. Make sure to keep the slug lowercase and url-friendly. slug:(0,le.__)("contact","extendify-local"),alias:["contact","contact-with-form"]},events:{ // translators: This string represents the title of an "Events" page on a website that lists events of any kind. Please translate it in a way that fits the standard phrasing for an "Events" page in the target language, considering the common usage in websites for that language. title:(0,le.__)("Events","extendify-local"), // translators: This string represents the slug of an "Events" page on a website that lists events of any kind. Please translate it in a way that fits a slug for an "Events" page in the target language, considering the common usage in websites for that language. Make sure to keep the slug lowercase and url-friendly. slug:(0,le.__)("events","extendify-local"),alias:["events","events-section"]},faq:{ // translators: This string represents the title of a "FAQ" page on a website that gives information related to frequently asked questions. Please translate it in a way that fits the standard phrasing for a "FAQ" page in the target language, considering the common usage in websites for that language. title:(0,le.__)("FAQ","extendify-local"), // translators: This string represents the slug of a "FAQ" page on a website that gives information related to frequently asked questions. Please translate it in a way that fits a slug for a "FAQ" page in the target language, considering the common usage in websites for that language. Make sure to keep the slug lowercase and url-friendly. slug:(0,le.__)("faq","extendify-local"),alias:["faq"]},features:{ // translators: This string represents the title of a "Features" page on a website that lists features of a product or service. Please translate it in a way that fits the standard phrasing for a "Features" page in the target language, considering the common usage in websites for that language. title:(0,le.__)("Features","extendify-local"), // translators: This string represents the slug of a "Features" page on a website that lists features of a product or service. Please translate it in a way that fits a slug for a "Features" page in the target language, considering the common usage in websites for that language. Make sure to keep the slug lowercase and url-friendly. slug:(0,le.__)("features","extendify-local"),alias:["features"]},gallery:{ // translators: This string represents the title of a "Gallery" page on a website that shows a collection of images. Please translate it in a way that fits the standard phrasing for a "Gallery" page in the target language, considering the common usage in websites for that language. title:(0,le.__)("Gallery","extendify-local"), // translators: This string represents the slug of a "Gallery" page on a website that shows a collection of images. Please translate it in a way that fits a slug for a "Gallery" page in the target language, considering the common usage in websites for that language. Make sure to keep the slug lowercase and url-friendly. slug:(0,le.__)("gallery","extendify-local"),alias:["gallery"]},home:{ // translators: This string represents the title of an "Home" page on a website. Please translate it in a way that fits the standard phrasing for a "Home" page in the target language, considering the common usage in websites for that language. title:(0,le.__)("Home","extendify-local"),alias:["home"]},menu:{ // translators: This string represents the title of a "Menu" page on a website that lists food or drink items. Please translate it in a way that fits the standard phrasing for a "Menu" page in the target language, considering the common usage in websites for that language. title:(0,le.__)("Menu","extendify-local"), // translators: This string represents the slug of a "Menu" page on a website that lists food or drink items. Please translate it in a way that fits a slug for a "Menu" page in the target language, considering the common usage in websites for that language. Make sure to keep the slug lowercase and url-friendly. slug:(0,le.__)("menu","extendify-local"),alias:["menu"]},porfolio:{ // translators: This string represents the title of a "Portfolio" page on a website that showcases a collection of work. Please translate it in a way that fits the standard phrasing for a "Portfolio" page in the target language, considering the common usage in websites for that language. title:(0,le.__)("Portfolio","extendify-local"), // translators: This string represents the slug of a "Portfolio" page on a website that showcases a collection of work. Please translate it in a way that fits a slug for a "Portfolio" page in the target language, considering the common usage in websites for that language. Make sure to keep the slug lowercase and url-friendly. slug:(0,le.__)("portfolio","extendify-local"),alias:["portfolio"]},pricing:{ // translators: This string represents the title of a "Pricing" page on a website that lists the pricing of products or services. Please translate it in a way that fits the standard phrasing for a "Pricing" page in the target language, considering the common usage in websites for that language. title:(0,le.__)("Pricing","extendify-local"), // translators: This string represents the slug of a "Pricing" page on a website that lists the pricing of products or services. Please translate it in a way that fits a slug for a "Pricing" page in the target language, considering the common usage in websites for that language. Make sure to keep the slug lowercase and url-friendly. slug:(0,le.__)("pricing","extendify-local"),alias:["pricing"]},products:{ // translators: This string represents the title of a "Products" page on a website that lists products. Please translate it in a way that fits the standard phrasing for a "Products" page in the target language, considering the common usage in websites for that language. title:(0,le.__)("Products","extendify-local"), // translators: This string represents the slug of a "Products" page on a website that lists products. Please translate it in a way that fits a slug for a "Products" page in the target language, considering the common usage in websites for that language. Make sure to keep the slug lowercase and url-friendly. slug:(0,le.__)("products","extendify-local"),alias:["products","best-sellers-products","featured-products","new-arrivals-product","on-sale-products","product-section","products-by-category","products-categories","top-rated-products"]},quote:{ // translators: This string represents the title of a "Quote" page on a website that allows visitors to request a quote. Please translate it in a way that fits the standard phrasing for a "Quote" page in the target language, considering the common usage in websites for that language. title:(0,le.__)("Quote","extendify-local"), // translators: This string represents the slug of a "Quote" page on a website that allows visitors to request a quote. Please translate it in a way that fits a slug for a "Quote" page in the target language, considering the common usage in websites for that language. Make sure to keep the slug lowercase and url-friendly. slug:(0,le.__)("quote","extendify-local"),alias:["quote"]},reservation:{ // translators: This string represents the title of a "Reservation" page on a website that allows visitors to make a reservation. Please translate it in a way that fits the standard phrasing for a "Reservation" page in the target language, considering the common usage in websites for that language. title:(0,le.__)("Reservation","extendify-local"), // translators: This string represents the slug of a "Reservation" page on a website that allows visitors to make a reservation. Please translate it in a way that fits a slug for a "Reservation" page in the target language, considering the common usage in websites for that language. Make sure to keep the slug lowercase and url-friendly. slug:(0,le.__)("reservation","extendify-local"),alias:["reservation"]},resources:{ // translators: This string represents the title of a "Resources" page on a website that provides resources. Please translate it in a way that fits the standard phrasing for a "Resources" page in the target language, considering the common usage in websites for that language. title:(0,le.__)("Resources","extendify-local"), // translators: This string represents the slug of a "Resources" page on a website that provides resources. Please translate it in a way that fits a slug for a "Resources" page in the target language, considering the common usage in websites for that language. Make sure to keep the slug lowercase and url-friendly. slug:(0,le.__)("resources","extendify-local"),alias:["resources","resource"]},serviceArea:{ // translators: This string represents the title of a "Service Area" page on a website that shows the service area of a business, including a map. Please translate it in a way that fits the standard phrasing for a "Service Area" page in the target language, considering the common usage in websites for that language. title:(0,le.__)("Service Area","extendify-local"), // translators: This string represents the slug of a "Service Area" page on a website that shows the service area of a business, including a map. Please translate it in a way that fits a slug for a "Service Area" page in the target language, considering the common usage in websites for that language. Make sure to keep the slug lowercase and url-friendly. slug:(0,le.__)("service-area","extendify-local"),alias:["service-area"]},services:{ // translators: This string represents the title of a "Services" page on a website that lists services. Please translate it in a way that fits the standard phrasing for a "Services" page in the target language, considering the common usage in websites for that language. title:(0,le.__)("Services","extendify-local"), // translators: This string represents the slug of a "Services" page on a website that lists services. Please translate it in a way that fits a slug for a "Services" page in the target language, considering the common usage in websites for that language. Make sure to keep the slug lowercase and url-friendly. slug:(0,le.__)("services","extendify-local"),alias:["services"]},specials:{ // translators: This string represents the title of a "Specials" page on a website that lists special offers. Please translate it in a way that fits the standard phrasing for a "Specials" page in the target language, considering the common usage in websites for that language. title:(0,le.__)("Specials","extendify-local"), // translators: This string represents the slug of a "Specials" page on a website that lists special offers. Please translate it in a way that fits a slug for a "Specials" page in the target language, considering the common usage in websites for that language. Make sure to keep the slug lowercase and url-friendly. slug:(0,le.__)("specials","extendify-local"),alias:["specials"]},team:{ // translators: This string represents the title of a "Team" page on a website that introduces the team members. Please translate it in a way that fits the standard phrasing for a "Team" page in the target language, considering the common usage in websites for title:(0,le.__)("Team","extendify-local"), // translators: This string represents the slug of a "Team" page on a website that introduces the team members. Please translate it in a way that fits a slug for a "Team" page in the target language, considering the common usage in websites for that language. Make sure to keep the slug lowercase and url-friendly. slug:(0,le.__)("team","extendify-local"),alias:["team"]},testimonials:{ // translators: This string represents the title of a "Testimonials" page on a website that showcases testimonials from customers. Please translate it in a way that fits the standard phrasing for a "Testimonials" page in the target language, considering the common usage in websites for that language. title:(0,le.__)("Testimonials","extendify-local"), // translators: This string represents the slug of a "Testimonials" page on a website that showcases testimonials from customers. Please translate it in a way that fits a slug for a "Testimonials" page in the target language, considering the common usage in websites for that language. Make sure to keep the slug lowercase and url-friendly. slug:(0,le.__)("testimonials","extendify-local"),alias:["testimonials","testimonial"]}};function ue(e,t){return function(){return e.apply(t,arguments)}}const{toString:de}=Object.prototype,{getPrototypeOf:pe}=Object,me=(e=>t=>{const r=de.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),he=e=>(e=e.toLowerCase(),t=>me(t)===e),fe=e=>t=>typeof t===e,{isArray:ge}=Array,ye=fe("undefined"),we=he("ArrayBuffer"),ve=fe("string"),be=fe("function"),xe=fe("number"),Ee=e=>null!==e&&"object"==typeof e,ke=e=>{if("object"!==me(e))return!1;const t=pe(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Se=he("Date"),Ce=he("File"),Pe=he("Blob"),Te=he("FileList"),Le=he("URLSearchParams"),[Me,Re,Ae,_e]=["ReadableStream","Request","Response","Headers"].map(he);function Oe(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let o,n;if("object"!=typeof e&&(e=[e]),ge(e))for(o=0,n=e.length;o<n;o++)t.call(null,e[o],o,e);else{const n=r?Object.getOwnPropertyNames(e):Object.keys(e),a=n.length;let i;for(o=0;o<a;o++)i=n[o],t.call(null,e[i],i,e)}}function Ne(e,t){t=t.toLowerCase();const r=Object.keys(e);let o,n=r.length;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const De="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Fe=e=>!ye(e)&&e!==De,Ve=(je="undefined"!=typeof Uint8Array&&pe(Uint8Array),e=>je&&e instanceof je);var je;const Ie=he("HTMLFormElement"),Be=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),He=he("RegExp"),Ue=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),o={};Oe(r,((r,n)=>{let a;!1!==(a=t(r,n,e))&&(o[n]=a||r)})),Object.defineProperties(e,o)},ze="abcdefghijklmnopqrstuvwxyz",$e="0123456789",We={DIGIT:$e,ALPHA:ze,ALPHA_DIGIT:ze+ze.toUpperCase()+$e},qe=he("AsyncFunction"),Ze=(Ke="function"==typeof setImmediate,Ye=be(De.postMessage),Ke?setImmediate:Ye?(Xe=`axios@${Math.random()}`,Ge=[],De.addEventListener("message",(({source:e,data:t})=>{e===De&&t===Xe&&Ge.length&&Ge.shift()()}),!1),e=>{Ge.push(e),De.postMessage(Xe,"*")}):e=>setTimeout(e));var Ke,Ye,Xe,Ge;const Je="undefined"!=typeof queueMicrotask?queueMicrotask.bind(De):"undefined"!=typeof process&&process.nextTick||Ze,Qe={isArray:ge,isArrayBuffer:we,isBuffer:function(e){return null!==e&&!ye(e)&&null!==e.constructor&&!ye(e.constructor)&&be(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||be(e.append)&&("formdata"===(t=me(e))||"object"===t&&be(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&we(e.buffer),t},isString:ve,isNumber:xe,isBoolean:e=>!0===e||!1===e,isObject:Ee,isPlainObject:ke,isReadableStream:Me,isRequest:Re,isResponse:Ae,isHeaders:_e,isUndefined:ye,isDate:Se,isFile:Ce,isBlob:Pe,isRegExp:He,isFunction:be,isStream:e=>Ee(e)&&be(e.pipe),isURLSearchParams:Le,isTypedArray:Ve,isFileList:Te,forEach:Oe,merge:function e(){const{caseless:t}=Fe(this)&&this||{},r={},o=(o,n)=>{const a=t&&Ne(r,n)||n;ke(r[a])&&ke(o)?r[a]=e(r[a],o):ke(o)?r[a]=e({},o):ge(o)?r[a]=o.slice():r[a]=o};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Oe(arguments[e],o);return r},extend:(e,t,r,{allOwnKeys:o}={})=>(Oe(t,((t,o)=>{r&&be(t)?e[o]=ue(t,r):e[o]=t}),{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,o)=>{let n,a,i;const s={};if(t=t||{},null==e)return t;do{for(n=Object.getOwnPropertyNames(e),a=n.length;a-- >0;)i=n[a],o&&!o(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==r&&pe(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:me,kindOfTest:he,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const o=e.indexOf(t,r);return-1!==o&&o===r},toArray:e=>{if(!e)return null;if(ge(e))return e;let t=e.length;if(!xe(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const r=o.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const o=[];for(;null!==(r=e.exec(t));)o.push(r);return o},isHTMLForm:Ie,hasOwnProperty:Be,hasOwnProp:Be,reduceDescriptors:Ue,freezeMethods:e=>{Ue(e,((t,r)=>{if(be(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const o=e[r];be(o)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},o=e=>{e.forEach((e=>{r[e]=!0}))};return ge(e)?o(e):o(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Ne,global:De,isContextDefined:Fe,ALPHABET:We,generateString:(e=16,t=We.ALPHA_DIGIT)=>{let r="";const{length:o}=t;for(;e--;)r+=t[Math.random()*o|0];return r},isSpecCompliantForm:function(e){return!!(e&&be(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,o)=>{if(Ee(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[o]=e;const n=ge(e)?[]:{};return Oe(e,((e,t)=>{const a=r(e,o+1);!ye(a)&&(n[t]=a)})),t[o]=void 0,n}}return e};return r(e,0)},isAsyncFn:qe,isThenable:e=>e&&(Ee(e)||be(e))&&be(e.then)&&be(e.catch),setImmediate:Ze,asap:Je};function et(e,t,r,o,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),o&&(this.request=o),n&&(this.response=n)}Qe.inherits(et,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Qe.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const tt=et.prototype,rt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{rt[e]={value:e}})),Object.defineProperties(et,rt),Object.defineProperty(tt,"isAxiosError",{value:!0}),et.from=(e,t,r,o,n,a)=>{const i=Object.create(tt);return Qe.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),et.call(i,e.message,t,r,o,n),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const ot=et;function nt(e){return Qe.isPlainObject(e)||Qe.isArray(e)}function at(e){return Qe.endsWith(e,"[]")?e.slice(0,-2):e}function it(e,t,r){return e?e.concat(t).map((function(e,t){return e=at(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const st=Qe.toFlatObject(Qe,{},null,(function(e){return/^is[A-Z]/.test(e)})),lt=function(e,t,r){if(!Qe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(r=Qe.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Qe.isUndefined(t[e])}))).metaTokens,n=r.visitor||c,a=r.dots,i=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&Qe.isSpecCompliantForm(t);if(!Qe.isFunction(n))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Qe.isDate(e))return e.toISOString();if(!s&&Qe.isBlob(e))throw new ot("Blob is not supported. Use a Buffer instead.");return Qe.isArrayBuffer(e)||Qe.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,r,n){let s=e;if(e&&!n&&"object"==typeof e)if(Qe.endsWith(r,"{}"))r=o?r:r.slice(0,-2),e=JSON.stringify(e);else if(Qe.isArray(e)&&function(e){return Qe.isArray(e)&&!e.some(nt)}(e)||(Qe.isFileList(e)||Qe.endsWith(r,"[]"))&&(s=Qe.toArray(e)))return r=at(r),s.forEach((function(e,o){!Qe.isUndefined(e)&&null!==e&&t.append(!0===i?it([r],o,a):null===i?r:r+"[]",l(e))})),!1;return!!nt(e)||(t.append(it(n,r,a),l(e)),!1)}const u=[],d=Object.assign(st,{defaultVisitor:c,convertValue:l,isVisitable:nt});if(!Qe.isObject(e))throw new TypeError("data must be an object");return function e(r,o){if(!Qe.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+o.join("."));u.push(r),Qe.forEach(r,(function(r,a){!0===(!(Qe.isUndefined(r)||null===r)&&n.call(t,r,Qe.isString(a)?a.trim():a,o,d))&&e(r,o?o.concat(a):[a])})),u.pop()}}(e),t};function ct(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ut(e,t){this._pairs=[],e&<(e,this,t)}const dt=ut.prototype;dt.append=function(e,t){this._pairs.push([e,t])},dt.toString=function(e){const t=e?function(t){return e.call(this,t,ct)}:ct;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const pt=ut;function mt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ht(e,t,r){if(!t)return e;const o=r&&r.encode||mt,n=r&&r.serialize;let a;if(a=n?n(t,r):Qe.isURLSearchParams(t)?t.toString():new pt(t,r).toString(o),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}const ft=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Qe.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},gt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},yt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:pt,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},wt="undefined"!=typeof window&&"undefined"!=typeof document,vt=(bt="undefined"!=typeof navigator&&navigator.product,wt&&["ReactNative","NativeScript","NS"].indexOf(bt)<0);var bt;const xt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Et=wt&&window.location.href||"http://localhost",kt={...e,...yt},St=function(e){function t(e,r,o,n){let a=e[n++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),s=n>=e.length;return a=!a&&Qe.isArray(o)?o.length:a,s?(Qe.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!i):(o[a]&&Qe.isObject(o[a])||(o[a]=[]),t(e,r,o[a],n)&&Qe.isArray(o[a])&&(o[a]=function(e){const t={},r=Object.keys(e);let o;const n=r.length;let a;for(o=0;o<n;o++)a=r[o],t[a]=e[a];return t}(o[a])),!i)}if(Qe.isFormData(e)&&Qe.isFunction(e.entries)){const r={};return Qe.forEachEntry(e,((e,o)=>{t(function(e){return Qe.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),o,r,0)})),r}return null},Ct={transitional:gt,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",o=r.indexOf("application/json")>-1,n=Qe.isObject(e);if(n&&Qe.isHTMLForm(e)&&(e=new FormData(e)),Qe.isFormData(e))return o?JSON.stringify(St(e)):e;if(Qe.isArrayBuffer(e)||Qe.isBuffer(e)||Qe.isStream(e)||Qe.isFile(e)||Qe.isBlob(e)||Qe.isReadableStream(e))return e;if(Qe.isArrayBufferView(e))return e.buffer;if(Qe.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(n){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return lt(e,new kt.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,o){return kt.isNode&&Qe.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=Qe.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return lt(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return n||o?(t.setContentType("application/json",!1),function(e,t,r){if(Qe.isString(e))try{return(0,JSON.parse)(e),Qe.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Ct.transitional,r=t&&t.forcedJSONParsing,o="json"===this.responseType;if(Qe.isResponse(e)||Qe.isReadableStream(e))return e;if(e&&Qe.isString(e)&&(r&&!this.responseType||o)){const r=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw ot.from(e,ot.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:kt.classes.FormData,Blob:kt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Qe.forEach(["delete","get","head","post","put","patch"],(e=>{Ct.headers[e]={}}));const Pt=Ct,Tt=Qe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Lt=Symbol("internals");function Mt(e){return e&&String(e).trim().toLowerCase()}function Rt(e){return!1===e||null==e?e:Qe.isArray(e)?e.map(Rt):String(e)}function At(e,t,r,o,n){return Qe.isFunction(o)?o.call(this,t,r):(n&&(t=r),Qe.isString(t)?Qe.isString(o)?-1!==t.indexOf(o):Qe.isRegExp(o)?o.test(t):void 0:void 0)}class _t{constructor(e){e&&this.set(e)}set(e,t,r){const o=this;function n(e,t,r){const n=Mt(t);if(!n)throw new Error("header name must be a non-empty string");const a=Qe.findKey(o,n);(!a||void 0===o[a]||!0===r||void 0===r&&!1!==o[a])&&(o[a||t]=Rt(e))}const a=(e,t)=>Qe.forEach(e,((e,r)=>n(e,r,t)));if(Qe.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(Qe.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let r,o,n;return e&&e.split("\n").forEach((function(e){n=e.indexOf(":"),r=e.substring(0,n).trim().toLowerCase(),o=e.substring(n+1).trim(),!r||t[r]&&Tt[r]||("set-cookie"===r?t[r]?t[r].push(o):t[r]=[o]:t[r]=t[r]?t[r]+", "+o:o)})),t})(e),t);else if(Qe.isHeaders(e))for(const[t,o]of e.entries())n(o,t,r);else null!=e&&n(t,e,r);return this}get(e,t){if(e=Mt(e)){const r=Qe.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=r.exec(e);)t[o[1]]=o[2];return t}(e);if(Qe.isFunction(t))return t.call(this,e,r);if(Qe.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Mt(e)){const r=Qe.findKey(this,e);return!(!r||void 0===this[r]||t&&!At(0,this[r],r,t))}return!1}delete(e,t){const r=this;let o=!1;function n(e){if(e=Mt(e)){const n=Qe.findKey(r,e);!n||t&&!At(0,r[n],n,t)||(delete r[n],o=!0)}}return Qe.isArray(e)?e.forEach(n):n(e),o}clear(e){const t=Object.keys(this);let r=t.length,o=!1;for(;r--;){const n=t[r];e&&!At(0,this[n],n,e,!0)||(delete this[n],o=!0)}return o}normalize(e){const t=this,r={};return Qe.forEach(this,((o,n)=>{const a=Qe.findKey(r,n);if(a)return t[a]=Rt(o),void delete t[n];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(n):String(n).trim();i!==n&&delete t[n],t[i]=Rt(o),r[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Qe.forEach(this,((r,o)=>{null!=r&&!1!==r&&(t[o]=e&&Qe.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[Lt]=this[Lt]={accessors:{}}).accessors,r=this.prototype;function o(e){const o=Mt(e);t[o]||(function(e,t){const r=Qe.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+r,{value:function(e,r,n){return this[o].call(this,t,e,r,n)},configurable:!0})}))}(r,e),t[o]=!0)}return Qe.isArray(e)?e.forEach(o):o(e),this}}_t.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Qe.reduceDescriptors(_t.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),Qe.freezeMethods(_t);const Ot=_t;function Nt(e,t){const r=this||Pt,o=t||r,n=Ot.from(o.headers);let a=o.data;return Qe.forEach(e,(function(e){a=e.call(r,a,n.normalize(),t?t.status:void 0)})),n.normalize(),a}function Dt(e){return!(!e||!e.__CANCEL__)}function Ft(e,t,r){ot.call(this,null==e?"canceled":e,ot.ERR_CANCELED,t,r),this.name="CanceledError"}Qe.inherits(Ft,ot,{__CANCEL__:!0});const Vt=Ft;function jt(e,t,r){const o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(new ot("Request failed with status code "+r.status,[ot.ERR_BAD_REQUEST,ot.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}const It=(e,t,r=3)=>{let o=0;const n=function(e,t){e=e||10;const r=new Array(e),o=new Array(e);let n,a=0,i=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=o[i];n||(n=l),r[a]=s,o[a]=l;let u=i,d=0;for(;u!==a;)d+=r[u++],u%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),l-n<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let r,o,n=0,a=1e3/t;const i=(t,a=Date.now())=>{n=a,r=null,o&&(clearTimeout(o),o=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-n;s>=a?i(e,t):(r=e,o||(o=setTimeout((()=>{o=null,i(r)}),a-s)))},()=>r&&i(r)]}((r=>{const a=r.loaded,i=r.lengthComputable?r.total:void 0,s=a-o,l=n(s);o=a,e({loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:l||void 0,estimated:l&&i&&a<=i?(i-a)/l:void 0,event:r,lengthComputable:null!=i,[t?"download":"upload"]:!0})}),r)},Bt=(e,t)=>{const r=null!=e;return[o=>t[0]({lengthComputable:r,total:e,loaded:o}),t[1]]},Ht=e=>(...t)=>Qe.asap((()=>e(...t))),Ut=kt.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function o(r){let o=r;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=o(window.location.href),function(e){const t=Qe.isString(e)?o(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0},zt=kt.hasStandardBrowserEnv?{write(e,t,r,o,n,a){const i=[e+"="+encodeURIComponent(t)];Qe.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),Qe.isString(o)&&i.push("path="+o),Qe.isString(n)&&i.push("domain="+n),!0===a&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function $t(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Wt=e=>e instanceof Ot?{...e}:e;function qt(e,t){t=t||{};const r={};function o(e,t,r){return Qe.isPlainObject(e)&&Qe.isPlainObject(t)?Qe.merge.call({caseless:r},e,t):Qe.isPlainObject(t)?Qe.merge({},t):Qe.isArray(t)?t.slice():t}function n(e,t,r){return Qe.isUndefined(t)?Qe.isUndefined(e)?void 0:o(void 0,e,r):o(e,t,r)}function a(e,t){if(!Qe.isUndefined(t))return o(void 0,t)}function i(e,t){return Qe.isUndefined(t)?Qe.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function s(r,n,a){return a in t?o(r,n):a in e?o(void 0,r):void 0}const l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(e,t)=>n(Wt(e),Wt(t),!0)};return Qe.forEach(Object.keys(Object.assign({},e,t)),(function(o){const a=l[o]||n,i=a(e[o],t[o],o);Qe.isUndefined(i)&&a!==s||(r[o]=i)})),r}const Zt=e=>{const t=qt({},e);let r,{data:o,withXSRFToken:n,xsrfHeaderName:a,xsrfCookieName:i,headers:s,auth:l}=t;if(t.headers=s=Ot.from(s),t.url=ht($t(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Qe.isFormData(o))if(kt.hasStandardBrowserEnv||kt.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(r=s.getContentType())){const[e,...t]=r?r.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(kt.hasStandardBrowserEnv&&(n&&Qe.isFunction(n)&&(n=n(t)),n||!1!==n&&Ut(t.url))){const e=a&&i&&zt.read(i);e&&s.set(a,e)}return t},Kt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const o=Zt(e);let n=o.data;const a=Ot.from(o.headers).normalize();let i,s,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:m}=o;function h(){c&&c(),u&&u(),o.cancelToken&&o.cancelToken.unsubscribe(i),o.signal&&o.signal.removeEventListener("abort",i)}let f=new XMLHttpRequest;function g(){if(!f)return;const o=Ot.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());jt((function(e){t(e),h()}),(function(e){r(e),h()}),{data:d&&"text"!==d&&"json"!==d?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:o,config:e,request:f}),f=null}f.open(o.method.toUpperCase(),o.url,!0),f.timeout=o.timeout,"onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(g)},f.onabort=function(){f&&(r(new ot("Request aborted",ot.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new ot("Network Error",ot.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const n=o.transitional||gt;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),r(new ot(t,n.clarifyTimeoutError?ot.ETIMEDOUT:ot.ECONNABORTED,e,f)),f=null},void 0===n&&a.setContentType(null),"setRequestHeader"in f&&Qe.forEach(a.toJSON(),(function(e,t){f.setRequestHeader(t,e)})),Qe.isUndefined(o.withCredentials)||(f.withCredentials=!!o.withCredentials),d&&"json"!==d&&(f.responseType=o.responseType),m&&([l,u]=It(m,!0),f.addEventListener("progress",l)),p&&f.upload&&([s,c]=It(p),f.upload.addEventListener("progress",s),f.upload.addEventListener("loadend",c)),(o.cancelToken||o.signal)&&(i=t=>{f&&(r(!t||t.type?new Vt(null,e,f):t),f.abort(),f=null)},o.cancelToken&&o.cancelToken.subscribe(i),o.signal&&(o.signal.aborted?i():o.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(o.url);y&&-1===kt.protocols.indexOf(y)?r(new ot("Unsupported protocol "+y+":",ot.ERR_BAD_REQUEST,e)):f.send(n||null)}))},Yt=(e,t)=>{let r,o=new AbortController;const n=function(e){if(!r){r=!0,i();const t=e instanceof Error?e:this.reason;o.abort(t instanceof ot?t:new Vt(t instanceof Error?t.message:t))}};let a=t&&setTimeout((()=>{n(new ot(`timeout ${t} of ms exceeded`,ot.ETIMEDOUT))}),t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",n):e.unsubscribe(n))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",n)));const{signal:s}=o;return s.unsubscribe=i,[s,()=>{a&&clearTimeout(a),a=null}]},Xt=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let o,n=0;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},Gt=(e,t,r,o,n)=>{const a=async function*(e,t,r){for await(const o of e)yield*Xt(ArrayBuffer.isView(o)?o:await r(String(o)),t)}(e,t,n);let i,s=0,l=e=>{i||(i=!0,o&&o(e))};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await a.next();if(t)return l(),void e.close();let n=o.byteLength;if(r){let e=s+=n;r(e)}e.enqueue(new Uint8Array(o))}catch(e){throw l(e),e}},cancel:e=>(l(e),a.return())},{highWaterMark:2})},Jt="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Qt=Jt&&"function"==typeof ReadableStream,er=Jt&&("function"==typeof TextEncoder?(tr=new TextEncoder,e=>tr.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var tr;const rr=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},or=Qt&&rr((()=>{let e=!1;const t=new Request(kt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),nr=Qt&&rr((()=>Qe.isReadableStream(new Response("").body))),ar={stream:nr&&(e=>e.body)};var ir;Jt&&(ir=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!ar[e]&&(ar[e]=Qe.isFunction(ir[e])?t=>t[e]():(t,r)=>{throw new ot(`Response type '${e}' is not supported`,ot.ERR_NOT_SUPPORT,r)})})));const sr={http:null,xhr:Kt,fetch:Jt&&(async e=>{let{url:t,method:r,data:o,signal:n,cancelToken:a,timeout:i,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=Zt(e);c=c?(c+"").toLowerCase():"text";let m,h,[f,g]=n||a||i?Yt([n,a],i):[];const y=()=>{!m&&setTimeout((()=>{f&&f.unsubscribe()})),m=!0};let w;try{if(l&&or&&"get"!==r&&"head"!==r&&0!==(w=await(async(e,t)=>{const r=Qe.toFiniteNumber(e.getContentLength());return null==r?(async e=>null==e?0:Qe.isBlob(e)?e.size:Qe.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:Qe.isArrayBufferView(e)||Qe.isArrayBuffer(e)?e.byteLength:(Qe.isURLSearchParams(e)&&(e+=""),Qe.isString(e)?(await er(e)).byteLength:void 0))(t):r})(u,o))){let e,r=new Request(t,{method:"POST",body:o,duplex:"half"});if(Qe.isFormData(o)&&(e=r.headers.get("content-type"))&&u.setContentType(e),r.body){const[e,t]=Bt(w,It(Ht(l)));o=Gt(r.body,65536,e,t,er)}}Qe.isString(d)||(d=d?"include":"omit"),h=new Request(t,{...p,signal:f,method:r.toUpperCase(),headers:u.normalize().toJSON(),body:o,duplex:"half",credentials:d});let n=await fetch(h);const a=nr&&("stream"===c||"response"===c);if(nr&&(s||a)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=n[t]}));const t=Qe.toFiniteNumber(n.headers.get("content-length")),[r,o]=s&&Bt(t,It(Ht(s),!0))||[];n=new Response(Gt(n.body,65536,r,(()=>{o&&o(),a&&y()}),er),e)}c=c||"text";let i=await ar[Qe.findKey(ar,c)||"text"](n,e);return!a&&y(),g&&g(),await new Promise(((t,r)=>{jt(t,r,{data:i,headers:Ot.from(n.headers),status:n.status,statusText:n.statusText,config:e,request:h})}))}catch(t){if(y(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new ot("Network Error",ot.ERR_NETWORK,e,h),{cause:t.cause||t});throw ot.from(t,t&&t.code,e,h)}})};Qe.forEach(sr,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const lr=e=>`- ${e}`,cr=e=>Qe.isFunction(e)||null===e||!1===e,ur=e=>{e=Qe.isArray(e)?e:[e];const{length:t}=e;let r,o;const n={};for(let a=0;a<t;a++){let t;if(r=e[a],o=r,!cr(r)&&(o=sr[(t=String(r)).toLowerCase()],void 0===o))throw new ot(`Unknown adapter '${t}'`);if(o)break;n[t||"#"+a]=o}if(!o){const e=Object.entries(n).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let r=t?e.length>1?"since :\n"+e.map(lr).join("\n"):" "+lr(e[0]):"as no adapter specified";throw new ot("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return o};function dr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Vt(null,e)}function pr(e){return dr(e),e.headers=Ot.from(e.headers),e.data=Nt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ur(e.adapter||Pt.adapter)(e).then((function(t){return dr(e),t.data=Nt.call(e,e.transformResponse,t),t.headers=Ot.from(t.headers),t}),(function(t){return Dt(t)||(dr(e),t&&t.response&&(t.response.data=Nt.call(e,e.transformResponse,t.response),t.response.headers=Ot.from(t.response.headers))),Promise.reject(t)}))}const mr={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{mr[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const hr={};mr.transitional=function(e,t,r){function o(e,t){return"[Axios v1.7.4] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,n,a)=>{if(!1===e)throw new ot(o(n," has been removed"+(t?" in "+t:"")),ot.ERR_DEPRECATED);return t&&!hr[n]&&(hr[n]=!0,console.warn(o(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,a)}};const fr={assertOptions:function(e,t,r){if("object"!=typeof e)throw new ot("options must be an object",ot.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let n=o.length;for(;n-- >0;){const a=o[n],i=t[a];if(i){const t=e[a],r=void 0===t||i(t,a,e);if(!0!==r)throw new ot("option "+a+" must be "+r,ot.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new ot("Unknown option "+a,ot.ERR_BAD_OPTION)}},validators:mr},gr=fr.validators;class yr{constructor(e){this.defaults=e,this.interceptors={request:new ft,response:new ft}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=qt(this.defaults,t);const{transitional:r,paramsSerializer:o,headers:n}=t;void 0!==r&&fr.assertOptions(r,{silentJSONParsing:gr.transitional(gr.boolean),forcedJSONParsing:gr.transitional(gr.boolean),clarifyTimeoutError:gr.transitional(gr.boolean)},!1),null!=o&&(Qe.isFunction(o)?t.paramsSerializer={serialize:o}:fr.assertOptions(o,{encode:gr.function,serialize:gr.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=n&&Qe.merge(n.common,n[t.method]);n&&Qe.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete n[e]})),t.headers=Ot.concat(a,n);const i=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[pr.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=i.length;let p=t;for(d=0;d<u;){const e=i[d++],t=i[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{c=pr.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return ht($t((e=qt(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Qe.forEach(["delete","get","head","options"],(function(e){yr.prototype[e]=function(t,r){return this.request(qt(r||{},{method:e,url:t,data:(r||{}).data}))}})),Qe.forEach(["post","put","patch"],(function(e){function t(t){return function(r,o,n){return this.request(qt(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}yr.prototype[e]=t(),yr.prototype[e+"Form"]=t(!0)}));const wr=yr;class vr{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const o=new Promise((e=>{r.subscribe(e),t=e})).then(e);return o.cancel=function(){r.unsubscribe(t)},o},e((function(e,o,n){r.reason||(r.reason=new Vt(e,o,n),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new vr((function(t){e=t}));return{token:t,cancel:e}}}const br=vr,xr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(xr).forEach((([e,t])=>{xr[t]=e}));const Er=xr,kr=function e(t){const r=new wr(t),o=ue(wr.prototype.request,r);return Qe.extend(o,wr.prototype,r,{allOwnKeys:!0}),Qe.extend(o,r,null,{allOwnKeys:!0}),o.create=function(r){return e(qt(t,r))},o}(Pt);kr.Axios=wr,kr.CanceledError=Vt,kr.CancelToken=br,kr.isCancel=Dt,kr.VERSION="1.7.4",kr.toFormData=lt,kr.AxiosError=ot,kr.Cancel=kr.CanceledError,kr.all=function(e){return Promise.all(e)},kr.spread=function(e){return function(t){return e.apply(null,t)}},kr.isAxiosError=function(e){return Qe.isObject(e)&&!0===e.isAxiosError},kr.mergeConfig=qt,kr.AxiosHeaders=Ot,kr.formToJSON=e=>St(Qe.isHTMLForm(e)?new FormData(e):e),kr.getAdapter=ur,kr.HttpStatusCode=Er,kr.default=kr;const Sr=kr.create({baseURL:window.extSharedData.root,headers:{"X-WP-Nonce":window.extSharedData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify-Launch":!0,"X-Extendify":!0}});Sr.interceptors.request.use((e=>Tr(e)),(e=>e)),Sr.interceptors.response.use((e=>Cr(e)),(e=>Pr(e)));const Cr=e=>Object.prototype.hasOwnProperty.call(e,"data")?e.data:e,Pr=e=>{if(e.response)return console.error(e.response),e.response.status>=400&&e.response.status<500?Promise.reject(e.response):Promise.reject(Cr(e.response))},Tr=e=>(e.headers["X-Extendify-Launch-Dev-Mode"]=window.location.search.indexOf("DEVMODE")>-1,e.headers["X-Extendify-Launch-Local-Mode"]=window.location.search.indexOf("LOCALMODE")>-1,e),Lr=window.extOnbData.wpRoot,Mr=(e,t)=>Sr.post("launch/options",{option:e,value:t}),Rr=async e=>{const{data:t}=await Sr.get("launch/options",{params:{option:e}});return t},Ar=e=>Sr.post(`${Lr}wp/v2/pages`,e),_r=e=>Sr.get(`${Lr}wp/v2/pages/${e}`),Or=async e=>{if(e?.wordpressSlug){try{const t=await Sr.post(`${Lr}wp/v2/plugins`,{slug:e.wordpressSlug,status:"active"});if(!t.ok)return t}catch(e){}try{return await Nr(e)}catch(e){}}},Nr=async e=>{const t=new URL(`${Lr}wp/v2/plugins`),r=new URLSearchParams(t.searchParams);r.set("search",e.wordpressSlug),t.search=r.toString();const o=await Sr.get(t.toString()),n=o?.[0]?.plugin;if(!n)throw new Error("Plugin not found");return await Sr.post(`${Lr}wp/v2/plugins/${n}`,{status:"active"})},Dr=(e,t)=>Sr.post(`${Lr}wp/v2/template-parts/${e}`,{slug:`${e}`,theme:"extendable",type:"wp_template_part",status:"publish", // translators: Launch is the product name. Unless otherwise specified by the glossary, do not translate this name. description:(0,le.__)("Added by Launch","extendify-local"),content:t}),Fr=["header","header-with-center-nav-and-social"],Vr=["footer","footer-social-icons","footer-with-center-logo-and-menu"],jr=async()=>{const e=await Sr.get(Lr+"wp/v2/global-styles/themes/extendable/variations");if(!Array.isArray(e))throw new Error("Could not get theme variations");return[...e].sort((()=>Math.random()-.5))},Ir=e=>se()({path:"extendify/v1/launch/create-navigation",method:"POST",data:{title:(0,le.__)("Header Navigation","extendify-local"),slug:"site-navigation",content:e}}),Br=e=>{try{return JSON.parse(e.match(/<!-- wp:navigation([\s\S]*?)-->/)[1])}catch(e){return{}}},Hr=(e,t)=>{const r=JSON.stringify({...Br(e),...t});return e.replace(/(<!--\s*wp:navigation\b[^>]*>)([^]*?)(<!--\s*\/wp:navigation\s*-->)/gi,`\x3c!-- wp:navigation ${r} /--\x3e`)},Ur=e=>se()({path:"/extendify/v1/shared/process-placeholders",method:"POST",data:{patterns:e}}),zr=window.wp.components;var $r=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))($r||{}),Wr=Object.defineProperty,qr=(e,t,r)=>(((e,t,r)=>{t in e?Wr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r);let Zr=new class{constructor(){qr(this,"current",this.detect()),qr(this,"handoffState","pending"),qr(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},Kr=(e,t)=>{Zr.isServer?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)};function Yr(e){let t=(0,r.useRef)(e);return Kr((()=>{t.current=e}),[e]),t}function Xr(e,t,o,n){let a=Yr(o);(0,r.useEffect)((()=>{function r(e){a.current(e)}return(e=null!=e?e:window).addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}),[e,t,n])}class Gr extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}}function Jr(e,t){let r=e(),o=new Set;return{getSnapshot:()=>r,subscribe:e=>(o.add(e),()=>o.delete(e)),dispatch(e,...n){let a=t[e].call(r,...n);a&&(r=a,o.forEach((e=>e())))}}}function Qr(e){return(0,r.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot)}let eo=new Gr((()=>Jr((()=>[]),{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(-1===t)return this;let r=this.slice();return r.splice(t,1),r}})));function to(e,t){let o=eo.get(t),n=(0,r.useId)(),a=Qr(o);if(Kr((()=>{if(e)return o.dispatch("ADD",n),()=>o.dispatch("REMOVE",n)}),[o,e]),!e)return!1;let i=a.indexOf(n),s=a.length;return-1===i&&(i=s,s+=1),i===s-1}let ro=function(e){let t=Yr(e);return r.useCallback(((...e)=>t.current(...e)),[t])};function oo(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function no(){let e=[],t={addEventListener:(e,r,o,n)=>(e.addEventListener(r,o,n),t.add((()=>e.removeEventListener(r,o,n)))),requestAnimationFrame(...e){let r=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(r)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let r=setTimeout(...e);return t.add((()=>clearTimeout(r)))},microTask(...e){let r={current:!0};return oo((()=>{r.current&&e[0]()})),t.add((()=>{r.current=!1}))},style(e,t,r){let o=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add((()=>{Object.assign(e.style,{[t]:o})}))},group(e){let t=no();return e(t),this.add((()=>t.dispose()))},add:t=>(e.includes(t)||e.push(t),()=>{let r=e.indexOf(t);if(r>=0)for(let t of e.splice(r,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function ao(e){return Zr.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let io=new Map,so=new Map;function lo(e){var t;let r=null!=(t=so.get(e))?t:0;return so.set(e,r+1),0!==r||(io.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>function(e){var t;let r=null!=(t=so.get(e))?t:1;if(1===r?so.delete(e):so.set(e,r-1),1!==r)return;let o=io.get(e);o&&(null===o["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",o["aria-hidden"]),e.inert=o.inert,io.delete(e))}(e)}function co(e,{allowed:t,disallowed:r}={}){let o=to(e,"inert-others");Kr((()=>{var e,n;if(!o)return;let a=no();for(let t of null!=(e=null==r?void 0:r())?e:[])t&&a.add(lo(t));let i=null!=(n=null==t?void 0:t())?n:[];for(let e of i){if(!e)continue;let t=ao(e);if(!t)continue;let r=e.parentElement;for(;r&&r!==t.body;){for(let e of r.children)i.some((t=>e.contains(t)))||a.add(lo(e));r=r.parentElement}}return a.dispose}),[o,t,r])}function uo(e,t,o){let n=Yr((e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&o()}));(0,r.useEffect)((()=>{if(!e)return;let r=null===t?null:t instanceof HTMLElement?t:t.current;if(!r)return;let o=no();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver((()=>n.current(r)));e.observe(r),o.add((()=>e.disconnect()))}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver((()=>n.current(r)));e.observe(r),o.add((()=>e.disconnect()))}return()=>o.dispose()}),[t,n,e])}function po(e,t,...r){if(e in t){let o=t[e];return"function"==typeof o?o(...r):o}let o=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,po),o}let mo=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(","),ho=["[data-autofocus]"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var fo,go,yo=((go=yo||{})[go.First=1]="First",go[go.Previous=2]="Previous",go[go.Next=4]="Next",go[go.Last=8]="Last",go[go.WrapAround=16]="WrapAround",go[go.NoScroll=32]="NoScroll",go[go.AutoFocus=64]="AutoFocus",go),wo=((fo=wo||{})[fo.Error=0]="Error",fo[fo.Overflow=1]="Overflow",fo[fo.Success=2]="Success",fo[fo.Underflow=3]="Underflow",fo),vo=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(vo||{});var bo=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(bo||{});var xo=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(xo||{});function Eo(e){null==e||e.focus({preventScroll:!0})}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let ko=["textarea","input"].join(",");function So(e,t,{sorted:r=!0,relativeTo:o=null,skipElements:n=[]}={}){let a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,i=Array.isArray(e)?r?function(e,t=(e=>e)){return e.slice().sort(((e,r)=>{let o=t(e),n=t(r);if(null===o||null===n)return 0;let a=o.compareDocumentPosition(n);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(ho)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e):function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(mo)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e);n.length>0&&i.length>1&&(i=i.filter((e=>!n.some((t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))))),o=null!=o?o:a.activeElement;let s,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,i.indexOf(o))-1;if(4&t)return Math.max(0,i.indexOf(o))+1;if(8&t)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,p=i.length;do{if(d>=p||d+p<=0)return 0;let e=c+d;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}s=i[e],null==s||s.focus(u),d+=l}while(s!==a.activeElement);return 6&t&&function(e){var t,r;return null!=(r=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,ko))&&r}(s)&&s.select(),2}function Co(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Po(){return Co()||/Android/gi.test(window.navigator.userAgent)}function To(e,t,o,n){let a=Yr(o);(0,r.useEffect)((()=>{if(e)return document.addEventListener(t,r,n),()=>document.removeEventListener(t,r,n);function r(e){a.current(e)}}),[e,t,n])}function Lo(e,t,o,n){let a=Yr(o);(0,r.useEffect)((()=>{if(e)return window.addEventListener(t,r,n),()=>window.removeEventListener(t,r,n);function r(e){a.current(e)}}),[e,t,n])}function Mo(...e){return(0,r.useMemo)((()=>ao(...e)),[...e])}function Ro(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var Ao=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Ao||{}),_o=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(_o||{});function Oo({ourProps:e,theirProps:t,slot:r,defaultTag:o,features:n,visible:a=!0,name:i,mergeRefs:s}){s=null!=s?s:Do;let l=Fo(t,e);if(a)return No(l,r,o,i,s);let c=null!=n?n:0;if(2&c){let{static:e=!1,...t}=l;if(e)return No(t,r,o,i,s)}if(1&c){let{unmount:e=!0,...t}=l;return po(e?0:1,{0:()=>null,1:()=>No({...t,hidden:!0,style:{display:"none"}},r,o,i,s)})}return No(l,r,o,i,s)}function No(e,t={},o,n,a){let{as:i=o,children:s,refName:l="ref",...c}=Io(e,["unmount","static"]),u=void 0!==e.ref?{[l]:e.ref}:{},d="function"==typeof s?s(t):s;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["aria-labelledby"]=void 0);let p={};if(t){let e=!1,r=[];for(let[o,n]of Object.entries(t))"boolean"==typeof n&&(e=!0),!0===n&&r.push(o.replace(/([A-Z])/g,(e=>`-${e.toLowerCase()}`)));if(e){p["data-headlessui-state"]=r.join(" ");for(let e of r)p[`data-${e}`]=""}}if(i===r.Fragment&&(Object.keys(jo(c)).length>0||Object.keys(jo(p)).length>0)){if((0,r.isValidElement)(d)&&!(Array.isArray(d)&&d.length>1)){let e=d.props,t=null==e?void 0:e.className,o="function"==typeof t?(...e)=>Ro(t(...e),c.className):Ro(t,c.className),n=o?{className:o}:{},i=Fo(d.props,jo(Io(c,["ref"])));for(let e in p)e in i&&delete p[e];return(0,r.cloneElement)(d,Object.assign({},i,p,u,{ref:a(d.ref,u.ref)},n))}if(Object.keys(jo(c)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(jo(c)).concat(Object.keys(jo(p))).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"))}return(0,r.createElement)(i,Object.assign({},Io(c,["ref"]),i!==r.Fragment&&u,i!==r.Fragment&&p),d)}function Do(...e){return e.every((e=>null==e))?void 0:t=>{for(let r of e)null!=r&&("function"==typeof r?r(t):r.current=t)}}function Fo(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let o of e)for(let e in o)e.startsWith("on")&&"function"==typeof o[e]?(null!=r[e]||(r[e]=[]),r[e].push(o[e])):t[e]=o[e];if(t.disabled||t["aria-disabled"])for(let e in r)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(r[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in r)Object.assign(t,{[e](t,...o){let n=r[e];for(let e of n){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...o)}}});return t}function Vo(e){var t;return Object.assign((0,r.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function jo(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function Io(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}var Bo=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Bo||{});let Ho=Vo((function(e,t){var r;let{features:o=1,...n}=e;return Oo({ourProps:{ref:t,"aria-hidden":2==(2&o)||(null!=(r=n["aria-hidden"])?r:void 0),hidden:4==(4&o)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&o)&&2!=(2&o)&&{display:"none"}}},theirProps:n,slot:{},defaultTag:"span",name:"Hidden"})})),Uo=(0,r.createContext)(null);function zo({children:e,node:t}){let[o,n]=(0,r.useState)(null),a=$o(null!=t?t:o);return r.createElement(Uo.Provider,{value:a},e,null===a&&r.createElement(Ho,{features:Bo.Hidden,ref:e=>{var t,r;if(e)for(let o of null!=(r=null==(t=ao(e))?void 0:t.querySelectorAll("html > *, body > *"))?r:[])if(o!==document.body&&o!==document.head&&o instanceof HTMLElement&&null!=o&&o.contains(e)){n(o);break}}}))}function $o(e=null){var t;return null!=(t=(0,r.useContext)(Uo))?t:e}function Wo(){let e;return{before({doc:t}){var r;let o=t.documentElement,n=null!=(r=t.defaultView)?r:window;e=Math.max(0,n.innerWidth-o.clientWidth)},after({doc:t,d:r}){let o=t.documentElement,n=Math.max(0,o.clientWidth-o.offsetWidth),a=Math.max(0,e-n);r.style(o,"paddingRight",`${a}px`)}}}function qo(){return Co()?{before({doc:e,d:t,meta:r}){function o(e){return r.containers.flatMap((e=>e())).some((t=>t.contains(e)))}t.microTask((()=>{var r;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let r=no();r.style(e.documentElement,"scrollBehavior","auto"),t.add((()=>t.microTask((()=>r.dispose()))))}let n=null!=(r=window.scrollY)?r:window.pageYOffset,a=null;t.addEventListener(e,"click",(t=>{if(t.target instanceof HTMLElement)try{let r=t.target.closest("a");if(!r)return;let{hash:n}=new URL(r.href),i=e.querySelector(n);i&&!o(i)&&(a=i)}catch{}}),!0),t.addEventListener(e,"touchstart",(e=>{if(e.target instanceof HTMLElement)if(o(e.target)){let r=e.target;for(;r.parentElement&&o(r.parentElement);)r=r.parentElement;t.style(r,"overscrollBehavior","contain")}else t.style(e.target,"touchAction","none")})),t.addEventListener(e,"touchmove",(e=>{if(e.target instanceof HTMLElement){if("INPUT"===e.target.tagName)return;if(o(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}}),{passive:!1}),t.add((()=>{var e;let t=null!=(e=window.scrollY)?e:window.pageYOffset;n!==t&&window.scrollTo(0,n),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)}))}))}}:{}}function Zo(e){let t={};for(let r of e)Object.assign(t,r(t));return t}let Ko=Jr((()=>new Map),{PUSH(e,t){var r;let o=null!=(r=this.get(e))?r:{doc:e,count:0,d:no(),meta:new Set};return o.count++,o.meta.add(t),this.set(e,o),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:r}){let o={doc:e,d:t,meta:Zo(r)},n=[qo(),Wo(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];n.forEach((({before:e})=>null==e?void 0:e(o))),n.forEach((({after:e})=>null==e?void 0:e(o)))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function Yo(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in o&&(e=>e.useSyncExternalStore)(o)((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=r.useState(Zr.isHandoffComplete);return t&&!1===Zr.isHandoffComplete&&n(!1),r.useEffect((()=>{!0!==t&&n(!0)}),[t]),r.useEffect((()=>Zr.handoff()),[]),!e&&t}Ko.subscribe((()=>{let e=Ko.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let e="hidden"===t.get(r.doc),o=0!==r.count;(o&&!e||!o&&e)&&Ko.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),0===r.count&&Ko.dispatch("TEARDOWN",r)}}));let Xo=Symbol();function Go(...e){let t=(0,r.useRef)(e);(0,r.useEffect)((()=>{t.current=e}),[e]);let o=ro((e=>{for(let r of t.current)null!=r&&("function"==typeof r?r(e):r.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[Xo])))?void 0:o}let Jo=(0,r.createContext)((()=>{}));function Qo({value:e,children:t}){return r.createElement(Jo.Provider,{value:e},t)}let en=(0,r.createContext)(null);en.displayName="OpenClosedContext";var tn=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(tn||{});function rn(){return(0,r.useContext)(en)}function on({value:e,children:t}){return r.createElement(en.Provider,{value:e},t)}function nn({children:e}){return r.createElement(en.Provider,{value:null},e)}let an=(0,r.createContext)(!1);function sn(e){return r.createElement(an.Provider,{value:e.force},e.children)}let ln=(0,r.createContext)(void 0),cn=(0,r.createContext)(null);function un(){let e=(0,r.useContext)(cn);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,un),e}return e}cn.displayName="DescriptionContext";let dn=Vo((function(e,t){let o=(0,r.useId)(),n=(0,r.useContext)(ln),{id:a=`headlessui-description-${o}`,...i}=e,s=un(),l=Go(t);Kr((()=>s.register(a)),[a,s.register]);let c=n||!1,u=(0,r.useMemo)((()=>({...s.slot,disabled:c})),[s.slot,c]);return Oo({ourProps:{ref:l,...s.props,id:a},theirProps:i,slot:u,defaultTag:"p",name:s.name||"Description"})})),pn=Object.assign(dn,{});function mn(){let[e]=(0,r.useState)(no);return(0,r.useEffect)((()=>()=>e.dispose()),[e]),e}function hn(){let e=(0,r.useRef)(!1);return Kr((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function fn(e){let t=ro(e),o=(0,r.useRef)(!1);(0,r.useEffect)((()=>(o.current=!1,()=>{o.current=!0,oo((()=>{o.current&&t()}))})),[t])}var gn=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(gn||{});function yn(e,t){let o=(0,r.useRef)([]),n=ro(e);(0,r.useEffect)((()=>{let e=[...o.current];for(let[r,a]of t.entries())if(o.current[r]!==a){let r=n(t,e);return o.current=t,r}}),[n,...t])}let wn=[];function vn(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let r of e.current)r.current instanceof HTMLElement&&t.add(r.current);return t}!function(e){function t(){"loading"!==document.readyState&&((()=>{function e(e){if(!(e.target instanceof HTMLElement)||e.target===document.body||wn[0]===e.target)return;let t=e.target;t=t.closest(mo),wn.unshift(null!=t?t:e.target),wn=wn.filter((e=>null!=e&&e.isConnected)),wn.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})})(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}();var bn=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(bn||{});let xn=Vo((function(e,t){let o=(0,r.useRef)(null),n=Go(o,t),{initialFocus:a,initialFocusFallback:i,containers:s,features:l=15,...c}=e;Yo()||(l=0);let u=Mo(o);!function(e,{ownerDocument:t}){let o=!!(8&e),n=function(e=!0){let t=(0,r.useRef)(wn.slice());return yn((([e],[r])=>{!0===r&&!1===e&&oo((()=>{t.current.splice(0)})),!1===r&&!0===e&&(t.current=wn.slice())}),[e,wn,t]),ro((()=>{var e;return null!=(e=t.current.find((e=>null!=e&&e.isConnected)))?e:null}))}(o);yn((()=>{o||(null==t?void 0:t.activeElement)===(null==t?void 0:t.body)&&Eo(n())}),[o]),fn((()=>{o&&Eo(n())}))}(l,{ownerDocument:u});let d=function(e,{ownerDocument:t,container:o,initialFocus:n,initialFocusFallback:a}){let i=(0,r.useRef)(null),s=to(!!(1&e),"focus-trap#initial-focus"),l=hn();return yn((()=>{if(0===e)return;if(!s)return void(null!=a&&a.current&&Eo(a.current));let r=o.current;r&&oo((()=>{if(!l.current)return;let o=null==t?void 0:t.activeElement;if(null!=n&&n.current){if((null==n?void 0:n.current)===o)return void(i.current=o)}else if(r.contains(o))return void(i.current=o);if(null!=n&&n.current)Eo(n.current);else{if(16&e){if(So(r,yo.First|yo.AutoFocus)!==wo.Error)return}else if(So(r,yo.First)!==wo.Error)return;if(null!=a&&a.current&&(Eo(a.current),(null==t?void 0:t.activeElement)===a.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}i.current=null==t?void 0:t.activeElement}))}),[a,s,e]),i}(l,{ownerDocument:u,container:o,initialFocus:a,initialFocusFallback:i});!function(e,{ownerDocument:t,container:r,containers:o,previousActiveElement:n}){let a=hn(),i=!!(4&e);Xr(null==t?void 0:t.defaultView,"focus",(e=>{if(!i||!a.current)return;let t=vn(o);r.current instanceof HTMLElement&&t.add(r.current);let s=n.current;if(!s)return;let l=e.target;l&&l instanceof HTMLElement?kn(t,l)?(n.current=l,Eo(l)):(e.preventDefault(),e.stopPropagation(),Eo(s)):Eo(n.current)}),!0)}(l,{ownerDocument:u,container:o,containers:s,previousActiveElement:d});let p=function(){let e=(0,r.useRef)(0);return Lo(!0,"keydown",(t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)}),!0),e}(),m=ro((e=>{let t=o.current;t&&po(p.current,{[gn.Forwards]:()=>{So(t,yo.First,{skipElements:[e.relatedTarget,i]})},[gn.Backwards]:()=>{So(t,yo.Last,{skipElements:[e.relatedTarget,i]})}})})),h=to(!!(2&l),"focus-trap#tab-lock"),f=mn(),g=(0,r.useRef)(!1),y={ref:n,onKeyDown(e){"Tab"==e.key&&(g.current=!0,f.requestAnimationFrame((()=>{g.current=!1})))},onBlur(e){if(!(4&l))return;let t=vn(s);o.current instanceof HTMLElement&&t.add(o.current);let r=e.relatedTarget;r instanceof HTMLElement&&"true"!==r.dataset.headlessuiFocusGuard&&(kn(t,r)||(g.current?So(o.current,po(p.current,{[gn.Forwards]:()=>yo.Next,[gn.Backwards]:()=>yo.Previous})|yo.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&Eo(e.target)))}};return r.createElement(r.Fragment,null,h&&r.createElement(Ho,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:Bo.Focusable}),Oo({ourProps:y,theirProps:c,defaultTag:"div",name:"FocusTrap"}),h&&r.createElement(Ho,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:Bo.Focusable}))})),En=Object.assign(xn,{features:bn});function kn(e,t){for(let r of e)if(r.contains(t))return!0;return!1}const Sn=window.ReactDOM;let Cn=r.Fragment,Pn=Vo((function(e,t){let o=e,n=(0,r.useRef)(null),a=Go(function(e,t=!0){return Object.assign(e,{[Xo]:t})}((e=>{n.current=e})),t),i=Mo(n),s=function(e){let t=(0,r.useContext)(an),o=(0,r.useContext)(Ln),n=Mo(e),[a,i]=(0,r.useState)((()=>{var e;if(!t&&null!==o)return null!=(e=o.current)?e:null;if(Zr.isServer)return null;let r=null==n?void 0:n.getElementById("headlessui-portal-root");if(r)return r;if(null===n)return null;let a=n.createElement("div");return a.setAttribute("id","headlessui-portal-root"),n.body.appendChild(a)}));return(0,r.useEffect)((()=>{null!==a&&(null!=n&&n.body.contains(a)||null==n||n.body.appendChild(a))}),[a,n]),(0,r.useEffect)((()=>{t||null!==o&&i(o.current)}),[o,i,t]),a}(n),[l]=(0,r.useState)((()=>{var e;return Zr.isServer?null:null!=(e=null==i?void 0:i.createElement("div"))?e:null})),c=(0,r.useContext)(Mn),u=Yo();return Kr((()=>{!s||!l||s.contains(l)||(l.setAttribute("data-headlessui-portal",""),s.appendChild(l))}),[s,l]),Kr((()=>{if(l&&c)return c.register(l)}),[c,l]),fn((()=>{var e;!s||!l||(l instanceof Node&&s.contains(l)&&s.removeChild(l),s.childNodes.length<=0&&(null==(e=s.parentElement)||e.removeChild(s)))})),u&&s&&l?(0,Sn.createPortal)(Oo({ourProps:{ref:a},theirProps:o,slot:{},defaultTag:Cn,name:"Portal"}),l):null})),Tn=r.Fragment,Ln=(0,r.createContext)(null),Mn=(0,r.createContext)(null),Rn=Vo((function(e,t){let o=Go(t),{enabled:n=!0,...a}=e;return n?r.createElement(Pn,{...a,ref:o}):Oo({ourProps:{ref:o},theirProps:a,slot:{},defaultTag:Cn,name:"Portal"})})),An=Vo((function(e,t){let{target:o,...n}=e,a={ref:Go(t)};return r.createElement(Ln.Provider,{value:o},Oo({ourProps:a,theirProps:n,defaultTag:Tn,name:"Popover.Group"}))})),On=Object.assign(Rn,{Group:An});var Nn,Dn=((Nn=Dn||{})[Nn.None=0]="None",Nn[Nn.Closed=1]="Closed",Nn[Nn.Enter=2]="Enter",Nn[Nn.Leave=4]="Leave",Nn);function Fn(e){let t={};for(let r in e)!0===e[r]&&(t[`data-${r}`]="");return t}function Vn(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||(null!=(t=e.as)?t:zn)!==r.Fragment||1===r.Children.count(e.children)}let jn=(0,r.createContext)(null);jn.displayName="TransitionContext";var In=(e=>(e.Visible="visible",e.Hidden="hidden",e))(In||{});let Bn=(0,r.createContext)(null);function Hn(e){return"children"in e?Hn(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Un(e,t){let o=Yr(e),n=(0,r.useRef)([]),a=hn(),i=mn(),s=ro(((e,t=_o.Hidden)=>{let r=n.current.findIndex((({el:t})=>t===e));-1!==r&&(po(t,{[_o.Unmount](){n.current.splice(r,1)},[_o.Hidden](){n.current[r].state="hidden"}}),i.microTask((()=>{var e;!Hn(n)&&a.current&&(null==(e=o.current)||e.call(o))})))})),l=ro((e=>{let t=n.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):n.current.push({el:e,state:"visible"}),()=>s(e,_o.Unmount)})),c=(0,r.useRef)([]),u=(0,r.useRef)(Promise.resolve()),d=(0,r.useRef)({enter:[],leave:[]}),p=ro(((e,r,o)=>{c.current.splice(0),t&&(t.chains.current[r]=t.chains.current[r].filter((([t])=>t!==e))),null==t||t.chains.current[r].push([e,new Promise((e=>{c.current.push(e)}))]),null==t||t.chains.current[r].push([e,new Promise((e=>{Promise.all(d.current[r].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===r?u.current=u.current.then((()=>null==t?void 0:t.wait.current)).then((()=>o(r))):o(r)})),m=ro(((e,t,r)=>{Promise.all(d.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=c.current.shift())||e()})).then((()=>r(t)))}));return(0,r.useMemo)((()=>({children:n,register:l,unregister:s,onStart:p,onStop:m,wait:u,chains:d})),[l,s,n,p,m,d,u])}Bn.displayName="NestingContext";let zn=r.Fragment,$n=Ao.RenderStrategy,Wn=Vo((function(e,t){let{show:o,appear:n=!1,unmount:a=!0,...i}=e,s=(0,r.useRef)(null),l=Go(...Vn(e)?[s,t]:null===t?[]:[t]);Yo();let c=rn();if(void 0===o&&null!==c&&(o=(c&tn.Open)===tn.Open),void 0===o)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,d]=(0,r.useState)(o?"visible":"hidden"),p=Un((()=>{o||d("hidden")})),[m,h]=(0,r.useState)(!0),f=(0,r.useRef)([o]);Kr((()=>{!1!==m&&f.current[f.current.length-1]!==o&&(f.current.push(o),h(!1))}),[f,o]);let g=(0,r.useMemo)((()=>({show:o,appear:n,initial:m})),[o,n,m]);uo(o,s,(()=>d("hidden"))),Kr((()=>{o?d("visible"):!Hn(p)&&null!==s.current&&d("hidden")}),[o,p]);let y={unmount:a},w=ro((()=>{var t;m&&h(!1),null==(t=e.beforeEnter)||t.call(e)})),v=ro((()=>{var t;m&&h(!1),null==(t=e.beforeLeave)||t.call(e)}));return r.createElement(Bn.Provider,{value:p},r.createElement(jn.Provider,{value:g},Oo({ourProps:{...y,as:r.Fragment,children:r.createElement(qn,{ref:l,...y,...i,beforeEnter:w,beforeLeave:v})},theirProps:{},defaultTag:r.Fragment,features:$n,visible:"visible"===u,name:"Transition"})))})),qn=Vo((function(e,t){var o,n;let{transition:a=!0,beforeEnter:i,afterEnter:s,beforeLeave:l,afterLeave:c,enter:u,enterFrom:d,enterTo:p,entered:m,leave:h,leaveFrom:f,leaveTo:g,...y}=e,w=(0,r.useRef)(null),v=Vn(e),b=Go(...v?[w,t]:null===t?[]:[t]),x=null==(o=y.unmount)||o?_o.Unmount:_o.Hidden,{show:E,appear:k,initial:S}=function(){let e=(0,r.useContext)(jn);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[C,P]=(0,r.useState)(E?"visible":"hidden"),T=function(){let e=(0,r.useContext)(Bn);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:L,unregister:M}=T;Kr((()=>L(w)),[L,w]),Kr((()=>{if(x===_o.Hidden&&w.current)return E&&"visible"!==C?void P("visible"):po(C,{hidden:()=>M(w),visible:()=>L(w)})}),[C,w,L,M,E,x]);let R=Yo();Kr((()=>{if(v&&R&&"visible"===C&&null===w.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[w,C,R,v]);let A=S&&!k,_=k&&E&&S,O=(0,r.useRef)(!1),N=Un((()=>{O.current||(P("hidden"),M(w))}),T),D=ro((e=>{O.current=!0;let t=e?"enter":"leave";N.onStart(w,t,(e=>{"enter"===e?null==i||i():"leave"===e&&(null==l||l())}))})),F=ro((e=>{let t=e?"enter":"leave";O.current=!1,N.onStop(w,t,(e=>{"enter"===e?null==s||s():"leave"===e&&(null==c||c())})),"leave"===t&&!Hn(N)&&(P("hidden"),M(w))}));(0,r.useEffect)((()=>{v&&a||(D(E),F(E))}),[E,v,a]);let V=!(!a||!v||!R||A),[,j]=function(e,t,o,n){let[a,i]=(0,r.useState)(o),{hasFlag:s,addFlag:l,removeFlag:c}=function(e=0){let[t,o]=(0,r.useState)(e),n=(0,r.useCallback)((e=>o(e)),[t]),a=(0,r.useCallback)((e=>o((t=>t|e))),[t]),i=(0,r.useCallback)((e=>(t&e)===e),[t]),s=(0,r.useCallback)((e=>o((t=>t&~e))),[o]),l=(0,r.useCallback)((e=>o((t=>t^e))),[o]);return{flags:t,setFlag:n,addFlag:a,hasFlag:i,removeFlag:s,toggleFlag:l}}(e&&a?3:0),u=(0,r.useRef)(!1),d=(0,r.useRef)(!1),p=mn();return Kr((function r(){var a;if(!e)return;o&&i(!0);let s=t.current;return s?(null==(a=null==n?void 0:n.start)||a.call(n,o),function(e,{prepare:t,run:r,done:o,inFlight:n}){let a=no();return function(e,{inFlight:t,prepare:r}){if(null!=t&&t.current)return void r();let o=e.style.transition;e.style.transition="none",r(),e.offsetHeight,e.style.transition=o}(e,{prepare:t,inFlight:n}),a.nextFrame((()=>{a.add(function(e,t){let r=function(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}(t),o=no();if(!e)return o.dispose;let{transitionDuration:n,transitionDelay:a}=getComputedStyle(e),[i,s]=[n,a].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t})),l=i+s;if(0!==l){let t=o.group((o=>{let n=o.setTimeout((()=>{r(),o.dispose()}),l);o.addEventListener(e,"transitionrun",(a=>{a.target===a.currentTarget&&(n(),o.addEventListener(e,"transitioncancel",(e=>{e.target===e.currentTarget&&(r(),t())})))}))}));o.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(r(),o.dispose())}))}else r();return o.dispose}(e,o)),r()})),a.dispose}(s,{inFlight:u,prepare(){d.current?d.current=!1:d.current=u.current,u.current=!0,!d.current&&(o?(l(3),c(4)):(l(4),c(2)))},run(){d.current?o?(c(3),l(4)):(c(4),l(3)):o?c(1):l(1)},done(){var e;d.current&&"function"==typeof s.getAnimations&&s.getAnimations().length>0||(u.current=!1,c(7),o||i(!1),null==(e=null==n?void 0:n.end)||e.call(n,o))}})):o?(l(3),p.nextFrame((()=>r()))):void 0}),[e,o,t,p]),e?[a,{closed:s(1),enter:s(2),leave:s(4),transition:s(2)||s(4)}]:[o,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}(V,w,E,{start:D,end:F}),I=jo({ref:b,className:(null==(n=Ro(y.className,_&&u,_&&d,j.enter&&u,j.enter&&j.closed&&d,j.enter&&!j.closed&&p,j.leave&&h,j.leave&&!j.closed&&f,j.leave&&j.closed&&g,!j.transition&&E&&m))?void 0:n.trim())||void 0,...Fn(j)}),B=0;return"visible"===C&&(B|=tn.Open),"hidden"===C&&(B|=tn.Closed),j.enter&&(B|=tn.Opening),j.leave&&(B|=tn.Closing),r.createElement(Bn.Provider,{value:N},r.createElement(on,{value:B},Oo({ourProps:I,theirProps:y,defaultTag:zn,features:$n,visible:"visible"===C,name:"Transition.Child"})))})),Zn=Vo((function(e,t){let o=null!==(0,r.useContext)(jn),n=null!==rn();return r.createElement(r.Fragment,null,!o&&n?r.createElement(Wn,{ref:t,...e}):r.createElement(qn,{ref:t,...e}))})),Kn=Object.assign(Wn,{Child:Zn,Root:Wn});var Yn=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Yn||{}),Xn=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Xn||{});let Gn={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},Jn=(0,r.createContext)(null);function Qn(e){let t=(0,r.useContext)(Jn);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Qn),t}return t}function ea(e,t){return po(t.type,Gn,e,t)}Jn.displayName="DialogContext";let ta=Vo((function(e,t){let o=(0,r.useId)(),{id:n=`headlessui-dialog-${o}`,open:a,onClose:i,initialFocus:s,role:l="dialog",autoFocus:c=!0,__demoMode:u=!1,unmount:d=!1,...p}=e,m=(0,r.useRef)(!1);l="dialog"===l||"alertdialog"===l?l:(m.current||(m.current=!0,console.warn(`Invalid role [${l}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog");let h=rn();void 0===a&&null!==h&&(a=(h&tn.Open)===tn.Open);let f=(0,r.useRef)(null),g=Go(f,t),y=Mo(f),w=a?0:1,[v,b]=(0,r.useReducer)(ea,{titleId:null,descriptionId:null,panelRef:(0,r.createRef)()}),x=ro((()=>i(!1))),E=ro((e=>b({type:0,id:e}))),k=!!Yo()&&0===w,[S,C]=function(){let e=(0,r.useContext)(Mn),t=(0,r.useRef)([]),o=ro((r=>(t.current.push(r),e&&e.register(r),()=>n(r)))),n=ro((r=>{let o=t.current.indexOf(r);-1!==o&&t.current.splice(o,1),e&&e.unregister(r)})),a=(0,r.useMemo)((()=>({register:o,unregister:n,portals:t})),[o,n,t]);return[t,(0,r.useMemo)((()=>function({children:e}){return r.createElement(Mn.Provider,{value:a},e)}),[a])]}(),P={get current(){var e;return null!=(e=v.panelRef.current)?e:f.current}},T=$o(),{resolveContainers:L}=function({defaultContainers:e=[],portals:t,mainTreeNode:r}={}){let o=Mo(r),n=ro((()=>{var n,a;let i=[];for(let t of e)null!==t&&(t instanceof HTMLElement?i.push(t):"current"in t&&t.current instanceof HTMLElement&&i.push(t.current));if(null!=t&&t.current)for(let e of t.current)i.push(e);for(let e of null!=(n=null==o?void 0:o.querySelectorAll("html > *, body > *"))?n:[])e!==document.body&&e!==document.head&&e instanceof HTMLElement&&"headlessui-portal-root"!==e.id&&(r&&(e.contains(r)||e.contains(null==(a=null==r?void 0:r.getRootNode())?void 0:a.host))||i.some((t=>e.contains(t)))||i.push(e));return i}));return{resolveContainers:n,contains:ro((e=>n().some((t=>t.contains(e)))))}}({mainTreeNode:T,portals:S,defaultContainers:[P]}),M=null!==h&&(h&tn.Closing)===tn.Closing;co(!u&&!M&&k,{allowed:ro((()=>{var e,t;return[null!=(t=null==(e=f.current)?void 0:e.closest("[data-headlessui-portal]"))?t:null]})),disallowed:ro((()=>{var e;return[null!=(e=null==T?void 0:T.closest("body > *:not(#headlessui-portal-root)"))?e:null]}))}),function(e,t,o){let n=to(e,"outside-click"),a=Yr((e=>{e.preventDefault(),x()})),i=(0,r.useCallback)((function(e,r){if(e.defaultPrevented)return;let o=r(e);if(null===o||!o.getRootNode().contains(o)||!o.isConnected)return;let n=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t);for(let t of n){if(null===t)continue;let r=t instanceof HTMLElement?t:t.current;if(null!=r&&r.contains(o)||e.composed&&e.composedPath().includes(r))return}return!function(e,t=0){var r;return e!==(null==(r=ao(e))?void 0:r.body)&&po(t,{0:()=>e.matches(mo),1(){let t=e;for(;null!==t;){if(t.matches(mo))return!0;t=t.parentElement}return!1}})}(o,bo.Loose)&&-1!==o.tabIndex&&e.preventDefault(),a.current(e,o)}),[a]),s=(0,r.useRef)(null);To(n,"pointerdown",(e=>{var t,r;s.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target}),!0),To(n,"mousedown",(e=>{var t,r;s.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target}),!0),To(n,"click",(e=>{Po()||s.current&&(i(e,(()=>s.current)),s.current=null)}),!0);let l=(0,r.useRef)({x:0,y:0});To(n,"touchstart",(e=>{l.current.x=e.touches[0].clientX,l.current.y=e.touches[0].clientY}),!0),To(n,"touchend",(e=>{let t=e.changedTouches[0].clientX,r=e.changedTouches[0].clientY;if(!(Math.abs(t-l.current.x)>=30||Math.abs(r-l.current.y)>=30))return i(e,(()=>e.target instanceof HTMLElement?e.target:null))}),!0),Lo(n,"blur",(e=>i(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}(k,L),function(e,t=("undefined"!=typeof document?document.defaultView:null),r){let o=to(e,"escape");Xr(t,"keydown",(e=>{o&&(e.defaultPrevented||e.key===$r.Escape&&r(e))}))}(k,null==y?void 0:y.defaultView,(e=>{e.preventDefault(),e.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur(),x()})),function(e,t,r=(()=>[document.body])){!function(e,t,r=(()=>({containers:[]}))){let o=Qr(Ko),n=t?o.get(t):void 0;n&&n.count,Kr((()=>{if(t&&e)return Ko.dispatch("PUSH",t,r),()=>Ko.dispatch("POP",t,r)}),[e,t])}(to(e,"scroll-lock"),t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],r]}}))}(!u&&!M&&k,y,L),uo(k,f,x);let[R,A]=function(){let[e,t]=(0,r.useState)([]);return[e.length>0?e.join(" "):void 0,(0,r.useMemo)((()=>function(e){let o=ro((e=>(t((t=>[...t,e])),()=>t((t=>{let r=t.slice(),o=r.indexOf(e);return-1!==o&&r.splice(o,1),r}))))),n=(0,r.useMemo)((()=>({register:o,slot:e.slot,name:e.name,props:e.props,value:e.value})),[o,e.slot,e.name,e.props,e.value]);return r.createElement(cn.Provider,{value:n},e.children)}),[t])]}(),_=(0,r.useMemo)((()=>[{dialogState:w,close:x,setTitleId:E,unmount:d},v]),[w,v,x,E,d]),O=(0,r.useMemo)((()=>({open:0===w})),[w]),N={ref:g,id:n,role:l,tabIndex:-1,"aria-modal":u?void 0:0===w||void 0,"aria-labelledby":v.titleId,"aria-describedby":R,unmount:d},D=!function(){var e;let[t]=(0,r.useState)((()=>"undefined"!=typeof window&&"function"==typeof window.matchMedia?window.matchMedia("(pointer: coarse)"):null)),[o,n]=(0,r.useState)(null!=(e=null==t?void 0:t.matches)&&e);return Kr((()=>{if(t)return t.addEventListener("change",e),()=>t.removeEventListener("change",e);function e(e){n(e.matches)}}),[t]),o}(),F=bn.None;return k&&!u&&(F|=bn.RestoreFocus,F|=bn.TabLock,c&&(F|=bn.AutoFocus),D&&(F|=bn.InitialFocus)),r.createElement(nn,null,r.createElement(sn,{force:!0},r.createElement(On,null,r.createElement(Jn.Provider,{value:_},r.createElement(An,{target:f},r.createElement(sn,{force:!1},r.createElement(A,{slot:O},r.createElement(C,null,r.createElement(En,{initialFocus:s,initialFocusFallback:f,containers:L,features:F},r.createElement(Qo,{value:x},Oo({ourProps:N,theirProps:p,slot:O,defaultTag:ra,features:oa,visible:0===w,name:"Dialog"})))))))))))})),ra="div",oa=Ao.RenderStrategy|Ao.Static,na=Vo((function(e,t){let{transition:o=!1,open:n,...a}=e,i=rn(),s=e.hasOwnProperty("open")||null!==i,l=e.hasOwnProperty("onClose");if(!s&&!l)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!s)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!l)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!i&&"boolean"!=typeof e.open)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if("function"!=typeof e.onClose)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return void 0===n&&!o||a.static?r.createElement(zo,null,r.createElement(ta,{ref:t,open:n,...a})):r.createElement(zo,null,r.createElement(Kn,{show:n,transition:o,unmount:a.unmount},r.createElement(ta,{ref:t,...a})))})),aa=Vo((function(e,t){let o=(0,r.useId)(),{id:n=`headlessui-dialog-panel-${o}`,transition:a=!1,...i}=e,[{dialogState:s,unmount:l},c]=Qn("Dialog.Panel"),u=Go(t,c.panelRef),d=(0,r.useMemo)((()=>({open:0===s})),[s]),p={ref:u,id:n,onClick:ro((e=>{e.stopPropagation()}))};return r.createElement(a?Zn:r.Fragment,{...a?{unmount:l}:{}},Oo({ourProps:p,theirProps:i,slot:d,defaultTag:"div",name:"Dialog.Panel"}))})),ia=(Vo((function(e,t){let{transition:o=!1,...n}=e,[{dialogState:a,unmount:i}]=Qn("Dialog.Backdrop"),s=(0,r.useMemo)((()=>({open:0===a})),[a]),l={ref:t,"aria-hidden":!0};return r.createElement(o?Zn:r.Fragment,{...o?{unmount:i}:{}},Oo({ourProps:l,theirProps:n,slot:s,defaultTag:"div",name:"Dialog.Backdrop"}))})),Vo((function(e,t){let o=(0,r.useId)(),{id:n=`headlessui-dialog-title-${o}`,...a}=e,[{dialogState:i,setTitleId:s}]=Qn("Dialog.Title"),l=Go(t);(0,r.useEffect)((()=>(s(n),()=>s(null))),[n,s]);let c=(0,r.useMemo)((()=>({open:0===i})),[i]);return Oo({ourProps:{ref:l,id:n},theirProps:a,slot:c,defaultTag:"h2",name:"Dialog.Title"})}))),sa=Object.assign(na,{Panel:aa,Title:ia,Description:pn});var la=n(967),ca=n.n(la),ua=n(893);const da=(0,r.createContext)(null);function pa(e){const t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}const ma=(0,r.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class ha extends r.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function fa({children:e,isPresent:t}){const o=(0,r.useId)(),n=(0,r.useRef)(null),a=(0,r.useRef)({width:0,height:0,top:0,left:0}),{nonce:i}=(0,r.useContext)(ma);return(0,r.useInsertionEffect)((()=>{const{width:e,height:r,top:s,left:l}=a.current;if(t||!n.current||!e||!r)return;n.current.dataset.motionPopId=o;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`\n [data-motion-pop-id="${o}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${r}px !important;\n top: ${s}px !important;\n left: ${l}px !important;\n }\n `),()=>{document.head.removeChild(c)}}),[t]),(0,ua.jsx)(ha,{isPresent:t,childRef:n,sizeRef:a,children:r.cloneElement(e,{ref:n})})}const ga=({children:e,initial:t,isPresent:o,onExitComplete:n,custom:a,presenceAffectsLayout:i,mode:s})=>{const l=pa(ya),c=(0,r.useId)(),u=(0,r.useMemo)((()=>({id:c,initial:t,isPresent:o,custom:a,onExitComplete:e=>{l.set(e,!0);for(const e of l.values())if(!e)return;n&&n()},register:e=>(l.set(e,!1),()=>l.delete(e))})),i?[Math.random()]:[o]);return(0,r.useMemo)((()=>{l.forEach(((e,t)=>l.set(t,!1)))}),[o]),r.useEffect((()=>{!o&&!l.size&&n&&n()}),[o]),"popLayout"===s&&(e=(0,ua.jsx)(fa,{isPresent:o,children:e})),(0,ua.jsx)(da.Provider,{value:u,children:e})};function ya(){return new Map}const wa=(0,r.createContext)({}),va=e=>e;let ba=va,xa=va;const Ea=e=>e.key||"";function ka(e){const t=[];return r.Children.forEach(e,(e=>{(0,r.isValidElement)(e)&&t.push(e)})),t}const Sa="undefined"!=typeof window,Ca=Sa?r.useLayoutEffect:r.useEffect,Pa=({children:e,exitBeforeEnter:t,custom:o,initial:n=!0,onExitComplete:a,presenceAffectsLayout:i=!0,mode:s="sync"})=>{xa(!t,"Replace exitBeforeEnter with mode='wait'");const l=(0,r.useMemo)((()=>ka(e)),[e]),c=l.map(Ea),u=(0,r.useRef)(!0),d=(0,r.useRef)(l),p=pa((()=>new Map)),[m,h]=(0,r.useState)(l),[f,g]=(0,r.useState)(l);Ca((()=>{u.current=!1,d.current=l;for(let e=0;e<f.length;e++){const t=Ea(f[e]);c.includes(t)?p.delete(t):!0!==p.get(t)&&p.set(t,!1)}}),[f,c.length,c.join("-")]);const y=[];if(l!==m){let e=[...l];for(let t=0;t<f.length;t++){const r=f[t],o=Ea(r);c.includes(o)||(e.splice(t,0,r),y.push(r))}return"wait"===s&&y.length&&(e=y),g(ka(e)),void h(l)}const{forceRender:w}=(0,r.useContext)(wa);return(0,ua.jsx)(ua.Fragment,{children:f.map((e=>{const t=Ea(e),r=l===f||c.includes(t);return(0,ua.jsx)(ga,{isPresent:r,initial:!(u.current&&!n)&&void 0,custom:r?void 0:o,presenceAffectsLayout:i,mode:s,onExitComplete:r?void 0:()=>{if(!p.has(t))return;p.set(t,!0);let e=!0;p.forEach((t=>{t||(e=!1)})),e&&(null==w||w(),g(d.current),a&&a())},children:e},t)}))})},Ta=(0,r.createContext)({}),La=(0,r.createContext)({strict:!1}),Ma=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ra="data-"+Ma("framerAppearId"),Aa=["read","resolveKeyframes","update","preRender","render","postRender"];function _a(e,t){let r=!1,o=!0;const n={delta:0,timestamp:0,isProcessing:!1},a=()=>r=!0,i=Aa.reduce(((e,t)=>(e[t]=function(e){let t=new Set,r=new Set,o=!1,n=!1;const a=new WeakSet;let i={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(l.schedule(t),e()),t(i)}const l={schedule:(e,n=!1,i=!1)=>{const s=i&&o?t:r;return n&&a.add(e),s.has(e)||s.add(e),e},cancel:e=>{r.delete(e),a.delete(e)},process:e=>{i=e,o?n=!0:(o=!0,[t,r]=[r,t],r.clear(),t.forEach(s),o=!1,n&&(n=!1,l.process(e)))}};return l}(a),e)),{}),{read:s,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:p}=i,m=()=>{const a=performance.now();r=!1,n.delta=o?1e3/60:Math.max(Math.min(a-n.timestamp,40),1),n.timestamp=a,n.isProcessing=!0,s.process(n),l.process(n),c.process(n),u.process(n),d.process(n),p.process(n),n.isProcessing=!1,r&&t&&(o=!1,e(m))},h=Aa.reduce(((t,a)=>{const s=i[a];return t[a]=(t,a=!1,i=!1)=>(r||(r=!0,o=!0,n.isProcessing||e(m)),s.schedule(t,a,i)),t}),{});return{schedule:h,cancel:e=>{for(let t=0;t<Aa.length;t++)i[Aa[t]].cancel(e)},state:n,steps:i}}const{schedule:Oa,cancel:Na}=_a(queueMicrotask,!1);function Da(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}const Fa=(0,r.createContext)({});let Va=!1;function ja(e,t,o,n,a){const{visualElement:i}=(0,r.useContext)(Ta),s=(0,r.useContext)(La),l=(0,r.useContext)(da),c=(0,r.useContext)(ma).reducedMotion,u=(0,r.useRef)();n=n||s.renderer,!u.current&&n&&(u.current=n(e,{visualState:t,parent:i,props:o,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:c}));const d=u.current,p=(0,r.useContext)(Fa);!d||d.projection||!a||"html"!==d.type&&"svg"!==d.type||function(e,t,r,o){const{layoutId:n,layout:a,drag:i,dragConstraints:s,layoutScroll:l,layoutRoot:c}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:Ba(e.parent)),e.projection.setOptions({layoutId:n,layout:a,alwaysMeasureLayout:Boolean(i)||s&&Da(s),visualElement:e,animationType:"string"==typeof a?a:"both",initialPromotionConfig:o,layoutScroll:l,layoutRoot:c})}(u.current,o,a,p),(0,r.useInsertionEffect)((()=>{d&&d.update(o,l)}));const m=(0,r.useRef)(Boolean(o[Ra]&&!window.HandoffComplete));return Ca((()=>{d&&(d.updateFeatures(),Oa.render(d.render),m.current&&d.animationState&&d.animationState.animateChanges())})),(0,r.useEffect)((()=>{d&&(!m.current&&d.animationState&&d.animationState.animateChanges(),m.current&&(m.current=!1,Va||(Va=!0,queueMicrotask(Ia))))})),d}function Ia(){window.HandoffComplete=!0}function Ba(e){if(e)return!1!==e.options.allowProjection?e.projection:Ba(e.parent)}function Ha(e,t,o){return(0,r.useCallback)((r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),o&&("function"==typeof o?o(r):Da(o)&&(o.current=r))}),[t])}function Ua(e){return"string"==typeof e||Array.isArray(e)}function za(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const $a=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Wa=["initial",...$a];function qa(e){return za(e.animate)||Wa.some((t=>Ua(e[t])))}function Za(e){return Boolean(qa(e)||e.variants)}function Ka(e){return Array.isArray(e)?e.join(" "):e}const Ya={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Xa={};for(const e in Ya)Xa[e]={isEnabled:t=>Ya[e].some((e=>!!t[e]))};const Ga=Symbol.for("motionComponentSymbol");function Ja({preloadedFeatures:e,createVisualElement:t,useRender:o,useVisualState:n,Component:a}){e&&function(e){for(const t in e)Xa[t]={...Xa[t],...e[t]}}(e);const i=(0,r.forwardRef)((function(e,i){let s;const l={...(0,r.useContext)(ma),...e,layoutId:Qa(e)},{isStatic:c}=l,u=function(e){const{initial:t,animate:o}=function(e,t){if(qa(e)){const{initial:t,animate:r}=e;return{initial:!1===t||Ua(t)?t:void 0,animate:Ua(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,r.useContext)(Ta));return(0,r.useMemo)((()=>({initial:t,animate:o})),[Ka(t),Ka(o)])}(e),d=n(e,c);if(!c&&Sa){(0,r.useContext)(La).strict;const e=function(e){const{drag:t,layout:r}=Xa;if(!t&&!r)return{};const o={...t,...r};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==r?void 0:r.isEnabled(e))?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}(l);s=e.MeasureLayout,u.visualElement=ja(a,d,l,t,e.ProjectionNode)}return(0,ua.jsxs)(Ta.Provider,{value:u,children:[s&&u.visualElement?(0,ua.jsx)(s,{visualElement:u.visualElement,...l}):null,o(a,e,Ha(d,u.visualElement,i),d,c,u.visualElement)]})}));return i[Ga]=a,i}function Qa({layoutId:e}){const t=(0,r.useContext)(wa).id;return t&&void 0!==e?t+"-"+e:e}function ei(e){function t(t,r={}){return Ja(e(t,r))}if("undefined"==typeof Proxy)return t;const r=new Map;return new Proxy(t,{get:(e,o)=>(r.has(o)||r.set(o,t(o)),r.get(o))})}const ti=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ri(e){return"string"==typeof e&&!e.includes("-")&&!!(ti.indexOf(e)>-1||/[A-Z]/u.test(e))}const oi={},ni=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ai=new Set(ni);function ii(e,{layout:t,layoutId:r}){return ai.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!oi[e]||"opacity"===e)}const si=e=>Boolean(e&&e.getVelocity),li=(e,t)=>t&&"number"==typeof e?t.transform(e):e,ci=(e,t,r)=>r>t?t:r<e?e:r,ui={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},di={...ui,transform:e=>ci(0,1,e)},pi={...ui,default:1},mi=e=>Math.round(1e5*e)/1e5,hi=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,fi=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,gi=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function yi(e){return"string"==typeof e}const wi=e=>({test:t=>yi(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),vi=wi("deg"),bi=wi("%"),xi=wi("px"),Ei=wi("vh"),ki=wi("vw"),Si={...bi,parse:e=>bi.parse(e)/100,transform:e=>bi.transform(100*e)},Ci={...ui,transform:Math.round},Pi={borderWidth:xi,borderTopWidth:xi,borderRightWidth:xi,borderBottomWidth:xi,borderLeftWidth:xi,borderRadius:xi,radius:xi,borderTopLeftRadius:xi,borderTopRightRadius:xi,borderBottomRightRadius:xi,borderBottomLeftRadius:xi,width:xi,maxWidth:xi,height:xi,maxHeight:xi,size:xi,top:xi,right:xi,bottom:xi,left:xi,padding:xi,paddingTop:xi,paddingRight:xi,paddingBottom:xi,paddingLeft:xi,margin:xi,marginTop:xi,marginRight:xi,marginBottom:xi,marginLeft:xi,rotate:vi,rotateX:vi,rotateY:vi,rotateZ:vi,scale:pi,scaleX:pi,scaleY:pi,scaleZ:pi,skew:vi,skewX:vi,skewY:vi,distance:xi,translateX:xi,translateY:xi,translateZ:xi,x:xi,y:xi,z:xi,perspective:xi,transformPerspective:xi,opacity:di,originX:Si,originY:Si,originZ:xi,zIndex:Ci,backgroundPositionX:xi,backgroundPositionY:xi,fillOpacity:di,strokeOpacity:di,numOctaves:Ci},Ti={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Li=ni.length,Mi=e=>t=>"string"==typeof t&&t.startsWith(e),Ri=Mi("--"),Ai=Mi("var(--"),_i=e=>!!Ai(e)&&Oi.test(e.split("/*")[0].trim()),Oi=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Ni(e,t,r){const{style:o,vars:n,transformOrigin:a}=e;let i=!1,s=!1;for(const e in t){const r=t[e];if(ai.has(e))i=!0;else if(Ri(e))n[e]=r;else{const t=li(r,Pi[e]);e.startsWith("origin")?(s=!0,a[e]=t):o[e]=t}}if(t.transform||(i||r?o.transform=function(e,t,r){let o="",n=!0;for(let a=0;a<Li;a++){const i=ni[a],s=e[i];if(void 0===s)continue;let l=!0;if(l="number"==typeof s?s===(i.startsWith("scale")?1:0):0===parseFloat(s),!l||r){const e=li(s,Pi[i]);l||(n=!1,o+=`${Ti[i]||i}(${e}) `),r&&(t[i]=e)}}return o=o.trim(),r?o=r(t,n?"":o):n&&(o="none"),o}(t,e.transform,r):o.transform&&(o.transform="none")),s){const{originX:e="50%",originY:t="50%",originZ:r=0}=a;o.transformOrigin=`${e} ${t} ${r}`}}const Di=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Fi(e,t,r){for(const o in t)si(t[o])||ii(o,r)||(e[o]=t[o])}function Vi(e,t){const o={},n=function(e,t){const o={};return Fi(o,e.style||{},e),Object.assign(o,function({transformTemplate:e},t){return(0,r.useMemo)((()=>{const r=Di();return Ni(r,t,e),Object.assign({},r.vars,r.style)}),[t])}(e,t)),o}(e,t);return e.drag&&!1!==e.dragListener&&(o.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(o.tabIndex=0),o.style=n,o}const ji=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ii(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ji.has(e)}let Bi=e=>!Ii(e);try{(Hi=require("@emotion/is-prop-valid").default)&&(Bi=e=>e.startsWith("on")?!Ii(e):Hi(e))}catch(e){}var Hi;function Ui(e,t,r){return"string"==typeof e?e:xi.transform(t+r*e)}const zi={offset:"stroke-dashoffset",array:"stroke-dasharray"},$i={offset:"strokeDashoffset",array:"strokeDasharray"};function Wi(e,{attrX:t,attrY:r,attrScale:o,originX:n,originY:a,pathLength:i,pathSpacing:s=1,pathOffset:l=0,...c},u,d){if(Ni(e,c,d),u)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:p,style:m,dimensions:h}=e;p.transform&&(h&&(m.transform=p.transform),delete p.transform),h&&(void 0!==n||void 0!==a||m.transform)&&(m.transformOrigin=function(e,t,r){return`${Ui(t,e.x,e.width)} ${Ui(r,e.y,e.height)}`}(h,void 0!==n?n:.5,void 0!==a?a:.5)),void 0!==t&&(p.x=t),void 0!==r&&(p.y=r),void 0!==o&&(p.scale=o),void 0!==i&&function(e,t,r=1,o=0,n=!0){e.pathLength=1;const a=n?zi:$i;e[a.offset]=xi.transform(-o);const i=xi.transform(t),s=xi.transform(r);e[a.array]=`${i} ${s}`}(p,i,s,l,!1)}const qi=()=>({...Di(),attrs:{}}),Zi=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Ki(e,t,o,n){const a=(0,r.useMemo)((()=>{const r=qi();return Wi(r,t,Zi(n),e.transformTemplate),{...r.attrs,style:{...r.style}}}),[t]);if(e.style){const t={};Fi(t,e.style,e),a.style={...t,...a.style}}return a}function Yi(e=!1){return(t,o,n,{latestValues:a},i)=>{const s=(ri(t)?Ki:Vi)(o,a,i,t),l=function(e,t,r){const o={};for(const n in e)"values"===n&&"object"==typeof e.values||(Bi(n)||!0===r&&Ii(n)||!t&&!Ii(n)||e.draggable&&n.startsWith("onDrag"))&&(o[n]=e[n]);return o}(o,"string"==typeof t,e),c=t!==r.Fragment?{...l,...s,ref:n}:{},{children:u}=o,d=(0,r.useMemo)((()=>si(u)?u.get():u),[u]);return(0,r.createElement)(t,{...c,children:d})}}function Xi(e,{style:t,vars:r},o,n){Object.assign(e.style,t,n&&n.getProjectionStyles(o));for(const t in r)e.style.setProperty(t,r[t])}const Gi=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ji(e,t,r,o){Xi(e,t,void 0,o);for(const r in t.attrs)e.setAttribute(Gi.has(r)?r:Ma(r),t.attrs[r])}function Qi(e,t,r){var o;const{style:n}=e,a={};for(const i in n)(si(n[i])||t.style&&si(t.style[i])||ii(i,e)||void 0!==(null===(o=null==r?void 0:r.getValue(i))||void 0===o?void 0:o.liveStyle))&&(a[i]=n[i]);return r&&n&&"string"==typeof n.willChange&&(r.applyWillChange=!1),a}function es(e,t,r){const o=Qi(e,t,r);for(const r in e)(si(e[r])||si(t[r]))&&(o[-1!==ni.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return o}function ts(e){const t=[{},{}];return null==e||e.values.forEach(((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()})),t}function rs(e,t,r,o){if("function"==typeof t){const[n,a]=ts(o);t=t(void 0!==r?r:e.custom,n,a)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[n,a]=ts(o);t=t(void 0!==r?r:e.custom,n,a)}return t}const os=e=>Array.isArray(e),ns=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),as=e=>os(e)?e[e.length-1]||0:e;function is(e){const t=si(e)?e.get():e;return ns(t)?t.toValue():t}const ss=new Set(["opacity","clipPath","filter","transform"]);function ls(e){return ai.has(e)?"transform":ss.has(e)?Ma(e):void 0}function cs(e,t){-1===e.indexOf(t)&&e.push(t)}function us(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const ds=e=>(t,o)=>{const n=(0,r.useContext)(Ta),a=(0,r.useContext)(da),i=()=>function({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:r,onMount:o},n,a,i,s){const l={latestValues:hs(n,a,i,!s&&e,t),renderState:r()};return o&&(l.mount=e=>o(n,e,l)),l}(e,t,n,a,o);return o?i():pa(i)};function ps(e,t){const r=ls(t);r&&cs(e,r)}function ms(e,t,r){const o=Array.isArray(t)?t:[t];for(let t=0;t<o.length;t++){const n=rs(e,o[t]);if(n){const{transitionEnd:e,transition:t,...o}=n;r(o,e)}}}function hs(e,t,r,o,n){var a;const i={},s=[],l=o&&void 0===(null===(a=e.style)||void 0===a?void 0:a.willChange),c=n(e,{});for(const e in c)i[e]=is(c[e]);let{initial:u,animate:d}=e;const p=qa(e),m=Za(e);t&&m&&!p&&!1!==e.inherit&&(void 0===u&&(u=t.initial),void 0===d&&(d=t.animate));let h=!!r&&!1===r.initial;h=h||!1===u;const f=h?d:u;return f&&"boolean"!=typeof f&&!za(f)&&ms(e,f,((e,t)=>{for(const t in e){let r=e[t];Array.isArray(r)&&(r=r[h?r.length-1:0]),null!==r&&(i[t]=r)}for(const e in t)i[e]=t[e]})),l&&(d&&!1!==u&&!za(d)&&ms(e,d,(e=>{for(const t in e)ps(s,t)})),s.length&&(i.willChange=s.join(","))),i}const{schedule:fs,cancel:gs,state:ys,steps:ws}=_a("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:va,!0),vs={useVisualState:ds({scrapeMotionValuesFromProps:es,createRenderState:qi,onMount:(e,t,{renderState:r,latestValues:o})=>{fs.read((()=>{try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}})),fs.render((()=>{Wi(r,o,Zi(t.tagName),e.transformTemplate),Ji(t,r)}))}})},bs={useVisualState:ds({applyWillChange:!0,scrapeMotionValuesFromProps:Qi,createRenderState:Di})};function xs(e,t,r,o={passive:!0}){return e.addEventListener(t,r,o),()=>e.removeEventListener(t,r)}const Es=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function ks(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const Ss=e=>t=>Es(t)&&e(t,ks(t));function Cs(e,t,r,o){return xs(e,t,Ss(r),o)}const Ps=(e,t)=>r=>t(e(r)),Ts=(...e)=>e.reduce(Ps);function Ls(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}const Ms=Ls("dragHorizontal"),Rs=Ls("dragVertical");function As(e){let t=!1;if("y"===e)t=Rs();else if("x"===e)t=Ms();else{const e=Ms(),r=Rs();e&&r?t=()=>{e(),r()}:(e&&e(),r&&r())}return t}function _s(){const e=As(!0);return!e||(e(),!1)}class Os{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Ns(e,t){const r=t?"pointerenter":"pointerleave",o=t?"onHoverStart":"onHoverEnd";return Cs(e.current,r,((r,n)=>{if("touch"===r.pointerType||_s())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const i=a[o];i&&fs.postRender((()=>i(r,n)))}),{passive:!e.getProps()[o]})}const Ds=(e,t)=>!!t&&(e===t||Ds(e,t.parentElement));function Fs(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,ks(r))}const Vs=new WeakMap,js=new WeakMap,Is=e=>{const t=Vs.get(e.target);t&&t(e)},Bs=e=>{e.forEach(Is)};const Hs={some:0,all:1},Us={inView:{Feature:class extends Os{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:o="some",once:n}=e,a={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof o?o:Hs[o]};return function(e,t,r){const o=function({root:e,...t}){const r=e||document;js.has(r)||js.set(r,{});const o=js.get(r),n=JSON.stringify(t);return o[n]||(o[n]=new IntersectionObserver(Bs,{root:e,...t})),o[n]}(t);return Vs.set(e,r),o.observe(e),()=>{Vs.delete(e),o.unobserve(e)}}(this.node.current,a,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,n&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:r,onViewportLeave:o}=this.node.getProps(),a=t?r:o;a&&a(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Os{constructor(){super(...arguments),this.removeStartListeners=va,this.removeEndListeners=va,this.removeAccessibleListeners=va,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=Cs(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:r,onTapCancel:o,globalTapTarget:n}=this.node.getProps(),a=n||Ds(this.node.current,e.target)?r:o;a&&fs.update((()=>a(e,t)))}),{passive:!(r.onTap||r.onPointerUp)}),n=Cs(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Ts(o,n),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=xs(this.node.current,"keydown",(e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=xs(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&Fs("up",((e,t)=>{const{onTap:r}=this.node.getProps();r&&fs.postRender((()=>r(e,t)))}))})),Fs("down",((e,t)=>{this.startPress(e,t)})))})),t=xs(this.node.current,"blur",(()=>{this.isPressing&&Fs("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=Ts(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&fs.postRender((()=>r(e,t)))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!_s()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&fs.postRender((()=>r(e,t)))}mount(){const e=this.node.getProps(),t=Cs(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=xs(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ts(t,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Os{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ts(xs(this.node.current,"focus",(()=>this.onFocus())),xs(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Os{mount(){this.unmount=Ts(Ns(this.node,!0),Ns(this.node,!1))}unmount(){}}}};function zs(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let o=0;o<r;o++)if(t[o]!==e[o])return!1;return!0}function $s(e,t,r){const o=e.getProps();return rs(o,t,void 0!==r?r:o.custom,e)}const Ws=e=>1e3*e,qs=e=>e/1e3,Zs={type:"spring",stiffness:500,damping:25,restSpeed:10},Ks={type:"keyframes",duration:.8},Ys={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Xs=(e,{keyframes:t})=>t.length>2?Ks:ai.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Zs:Ys;function Gs(e,t){return e[t]||e.default||e}const Js=e=>null!==e;function Qs(e,{repeat:t,repeatType:r="loop"},o){const n=e.filter(Js),a=t&&"loop"!==r&&t%2==1?0:n.length-1;return a&&void 0!==o?o:n[a]}let el;function tl(){el=void 0}const rl={now:()=>(void 0===el&&rl.set(ys.isProcessing?ys.timestamp:performance.now()),el),set:e=>{el=e,queueMicrotask(tl)}},ol=e=>/^0[^.\s]+$/u.test(e),nl=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),al=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function il(e,t,r=1){xa(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[o,n]=function(e){const t=al.exec(e);if(!t)return[,];const[,r,o,n]=t;return[`--${null!=r?r:o}`,n]}(e);if(!o)return;const a=window.getComputedStyle(t).getPropertyValue(o);if(a){const e=a.trim();return nl(e)?parseFloat(e):e}return _i(n)?il(n,t,r+1):n}const sl=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),ll=e=>e===ui||e===xi,cl=(e,t)=>parseFloat(e.split(", ")[t]),ul=(e,t)=>(r,{transform:o})=>{if("none"===o||!o)return 0;const n=o.match(/^matrix3d\((.+)\)$/u);if(n)return cl(n[1],t);{const t=o.match(/^matrix\((.+)\)$/u);return t?cl(t[1],e):0}},dl=new Set(["x","y","z"]),pl=ni.filter((e=>!dl.has(e))),ml={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:ul(4,13),y:ul(5,14)};ml.translateX=ml.x,ml.translateY=ml.y;const hl=e=>t=>t.test(e),fl=[ui,xi,bi,vi,ki,Ei,{test:e=>"auto"===e,parse:e=>e}],gl=e=>fl.find(hl(e)),yl=new Set;let wl=!1,vl=!1;function bl(){if(vl){const e=Array.from(yl).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),r=new Map;t.forEach((e=>{const t=function(e){const t=[];return pl.forEach((r=>{const o=e.getValue(r);void 0!==o&&(t.push([r,o.get()]),o.set(r.startsWith("scale")?1:0))})),t}(e);t.length&&(r.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=r.get(e);t&&t.forEach((([t,r])=>{var o;null===(o=e.getValue(t))||void 0===o||o.set(r)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}vl=!1,wl=!1,yl.forEach((e=>e.complete())),yl.clear()}function xl(){yl.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(vl=!0)}))}class El{constructor(e,t,r,o,n,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=o,this.element=n,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(yl.add(this),wl||(wl=!0,fs.read(xl),fs.resolveKeyframes(bl))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:r,motionValue:o}=this;for(let n=0;n<e.length;n++)if(null===e[n])if(0===n){const n=null==o?void 0:o.get(),a=e[e.length-1];if(void 0!==n)e[0]=n;else if(r&&t){const o=r.readValue(t,a);null!=o&&(e[0]=o)}void 0===e[0]&&(e[0]=a),o&&void 0===n&&o.set(e[0])}else e[n]=e[n-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),yl.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,yl.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const kl=(e,t)=>r=>Boolean(yi(r)&&gi.test(r)&&r.startsWith(e)||t&&!function(e){return null==e}(r)&&Object.prototype.hasOwnProperty.call(r,t)),Sl=(e,t,r)=>o=>{if(!yi(o))return o;const[n,a,i,s]=o.match(hi);return{[e]:parseFloat(n),[t]:parseFloat(a),[r]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},Cl={...ui,transform:e=>Math.round((e=>ci(0,255,e))(e))},Pl={test:kl("rgb","red"),parse:Sl("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:o=1})=>"rgba("+Cl.transform(e)+", "+Cl.transform(t)+", "+Cl.transform(r)+", "+mi(di.transform(o))+")"},Tl={test:kl("#"),parse:function(e){let t="",r="",o="",n="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),o=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),o=e.substring(3,4),n=e.substring(4,5),t+=t,r+=r,o+=o,n+=n),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(o,16),alpha:n?parseInt(n,16)/255:1}},transform:Pl.transform},Ll={test:kl("hsl","hue"),parse:Sl("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:o=1})=>"hsla("+Math.round(e)+", "+bi.transform(mi(t))+", "+bi.transform(mi(r))+", "+mi(di.transform(o))+")"},Ml={test:e=>Pl.test(e)||Tl.test(e)||Ll.test(e),parse:e=>Pl.test(e)?Pl.parse(e):Ll.test(e)?Ll.parse(e):Tl.parse(e),transform:e=>yi(e)?e:e.hasOwnProperty("red")?Pl.transform(e):Ll.transform(e)},Rl="number",Al="color",_l="var",Ol="var(",Nl="${}",Dl=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Fl(e){const t=e.toString(),r=[],o={color:[],number:[],var:[]},n=[];let a=0;const i=t.replace(Dl,(e=>(Ml.test(e)?(o.color.push(a),n.push(Al),r.push(Ml.parse(e))):e.startsWith(Ol)?(o.var.push(a),n.push(_l),r.push(e)):(o.number.push(a),n.push(Rl),r.push(parseFloat(e))),++a,Nl))).split(Nl);return{values:r,split:i,indexes:o,types:n}}function Vl(e){return Fl(e).values}function jl(e){const{split:t,types:r}=Fl(e),o=t.length;return e=>{let n="";for(let a=0;a<o;a++)if(n+=t[a],void 0!==e[a]){const t=r[a];n+=t===Rl?mi(e[a]):t===Al?Ml.transform(e[a]):e[a]}return n}}const Il=e=>"number"==typeof e?0:e,Bl={test:function(e){var t,r;return isNaN(e)&&yi(e)&&((null===(t=e.match(hi))||void 0===t?void 0:t.length)||0)+((null===(r=e.match(fi))||void 0===r?void 0:r.length)||0)>0},parse:Vl,createTransformer:jl,getAnimatableNone:function(e){const t=Vl(e);return jl(e)(t.map(Il))}},Hl=new Set(["brightness","contrast","saturate","opacity"]);function Ul(e){const[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[o]=r.match(hi)||[];if(!o)return e;const n=r.replace(o,"");let a=Hl.has(t)?1:0;return o!==r&&(a*=100),t+"("+a+n+")"}const zl=/\b([a-z-]*)\(.*?\)/gu,$l={...Bl,getAnimatableNone:e=>{const t=e.match(zl);return t?t.map(Ul).join(" "):e}},Wl={...Pi,color:Ml,backgroundColor:Ml,outlineColor:Ml,fill:Ml,stroke:Ml,borderColor:Ml,borderTopColor:Ml,borderRightColor:Ml,borderBottomColor:Ml,borderLeftColor:Ml,filter:$l,WebkitFilter:$l},ql=e=>Wl[e];function Zl(e,t){let r=ql(e);return r!==$l&&(r=Bl),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const Kl=new Set(["auto","none","0"]);class Yl extends El{constructor(e,t,r,o){super(e,t,r,o,null==o?void 0:o.owner,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:r}=this;if(!t.current)return;super.readKeyframes();for(let r=0;r<e.length;r++){let o=e[r];if("string"==typeof o&&(o=o.trim(),_i(o))){const n=il(o,t.current);void 0!==n&&(e[r]=n),r===e.length-1&&(this.finalKeyframe=o)}}if(this.resolveNoneKeyframes(),!sl.has(r)||2!==e.length)return;const[o,n]=e,a=gl(o),i=gl(n);if(a!==i)if(ll(a)&&ll(i))for(let t=0;t<e.length;t++){const r=e[t];"string"==typeof r&&(e[t]=parseFloat(r))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,r=[];for(let t=0;t<e.length;t++)("number"==typeof(o=e[t])?0===o:null===o||"none"===o||"0"===o||ol(o))&&r.push(t);var o;r.length&&function(e,t,r){let o,n=0;for(;n<e.length&&!o;){const t=e[n];"string"==typeof t&&!Kl.has(t)&&Fl(t).values.length&&(o=e[n]),n++}if(o&&r)for(const n of t)e[n]=Zl(r,o)}(e,r,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:r}=this;if(!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ml[r](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const o=t[t.length-1];void 0!==o&&e.getValue(r,o).jump(o,!1)}measureEndState(){var e;const{element:t,name:r,unresolvedKeyframes:o}=this;if(!t.current)return;const n=t.getValue(r);n&&n.jump(this.measuredOrigin,!1);const a=o.length-1,i=o[a];o[a]=ml[r](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==i&&void 0===this.finalKeyframe&&(this.finalKeyframe=i),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach((([e,r])=>{t.getValue(e).set(r)})),this.resolveNoneKeyframes()}}function Xl(e){let t;return()=>(void 0===t&&(t=e()),t)}const Gl=(e,t)=>!("zIndex"===t||"number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!Bl.test(e)&&"0"!==e||e.startsWith("url(")));class Jl{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:o=0,repeatDelay:n=0,repeatType:a="loop",...i}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:e,delay:t,type:r,repeat:o,repeatDelay:n,repeatType:a,...i},this.updateFinishedPromise()}get resolved(){return this._resolved||this.hasAttemptedResolve||(xl(),bl()),this._resolved}onKeyframesResolved(e,t){this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:n,delay:a,onComplete:i,onUpdate:s,isGenerator:l}=this.options;if(!l&&!function(e,t,r,o){const n=e[0];if(null===n)return!1;if("display"===t||"visibility"===t)return!0;const a=e[e.length-1],i=Gl(n,t),s=Gl(a,t);return ba(i===s,`You are trying to animate ${t} from "${n}" to "${a}". ${n} is not an animatable value - to enable this animation set ${n} to a value animatable to ${a} via the \`style\` property.`),!(!i||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}(e)||"spring"===r&&o)}(e,r,o,n)){if(!a)return null==s||s(Qs(e,this.options,t)),null==i||i(),void this.resolveFinishedPromise();this.options.duration=0}const c=this.initPlayback(e,t);!1!==c&&(this._resolved={keyframes:e,finalKeyframe:t,...c},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise((e=>{this.resolveFinishedPromise=e}))}}function Ql(e,t){return t?e*(1e3/t):0}const ec=5;function tc(e,t,r){const o=Math.max(t-ec,0);return Ql(r-e(o),t-o)}const rc=.001,oc=.01,nc=10,ac=.05,ic=1;const sc=12;function lc(e,t){return e*Math.sqrt(1-t*t)}const cc=["duration","bounce"],uc=["stiffness","damping","mass"];function dc(e,t){return t.some((t=>void 0!==e[t]))}function pc({keyframes:e,restDelta:t,restSpeed:r,...o}){const n=e[0],a=e[e.length-1],i={done:!1,value:n},{stiffness:s,damping:l,mass:c,duration:u,velocity:d,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!dc(e,uc)&&dc(e,cc)){const r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:o=1}){let n,a;ba(e<=Ws(nc),"Spring duration must be 10 seconds or less");let i=1-t;i=ci(ac,ic,i),e=ci(oc,nc,qs(e)),i<1?(n=t=>{const o=t*i,n=o*e,a=o-r,s=lc(t,i),l=Math.exp(-n);return rc-a/s*l},a=t=>{const o=t*i*e,a=o*r+r,s=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-o),c=lc(Math.pow(t,2),i);return(-n(t)+rc>0?-1:1)*((a-s)*l)/c}):(n=t=>Math.exp(-t*e)*((t-r)*e+1)-rc,a=t=>Math.exp(-t*e)*(e*e*(r-t)));const s=function(e,t,r){let o=r;for(let r=1;r<sc;r++)o-=e(o)/t(o);return o}(n,a,5/e);if(e=Ws(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*o;return{stiffness:t,damping:2*i*Math.sqrt(o*t),duration:e}}}(e);t={...t,...r,mass:1},t.isResolvedFromDuration=!0}return t}({...o,velocity:-qs(o.velocity||0)}),m=d||0,h=l/(2*Math.sqrt(s*c)),f=a-n,g=qs(Math.sqrt(s/c)),y=Math.abs(f)<5;let w;if(r||(r=y?.01:2),t||(t=y?.005:.5),h<1){const e=lc(g,h);w=t=>{const r=Math.exp(-h*g*t);return a-r*((m+h*g*f)/e*Math.sin(e*t)+f*Math.cos(e*t))}}else if(1===h)w=e=>a-Math.exp(-g*e)*(f+(m+g*f)*e);else{const e=g*Math.sqrt(h*h-1);w=t=>{const r=Math.exp(-h*g*t),o=Math.min(e*t,300);return a-r*((m+h*g*f)*Math.sinh(o)+e*f*Math.cosh(o))/e}}return{calculatedDuration:p&&u||null,next:e=>{const o=w(e);if(p)i.done=e>=u;else{let n=m;0!==e&&(n=h<1?tc(w,e,o):0);const s=Math.abs(n)<=r,l=Math.abs(a-o)<=t;i.done=s&&l}return i.value=i.done?a:o,i}}}function mc({keyframes:e,velocity:t=0,power:r=.8,timeConstant:o=325,bounceDamping:n=10,bounceStiffness:a=500,modifyTarget:i,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],p={done:!1,value:d},m=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let h=r*t;const f=d+h,g=void 0===i?f:i(f);g!==f&&(h=g-d);const y=e=>-h*Math.exp(-e/o),w=e=>g+y(e),v=e=>{const t=y(e),r=w(e);p.done=Math.abs(t)<=c,p.value=p.done?g:r};let b,x;const E=e=>{(e=>void 0!==s&&e<s||void 0!==l&&e>l)(p.value)&&(b=e,x=pc({keyframes:[p.value,m(p.value)],velocity:tc(w,e,p.value),damping:n,stiffness:a,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==b||(t=!0,v(e),E(e)),void 0!==b&&e>=b?x.next(e-b):(!t&&v(e),p)}}}const hc=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function fc(e,t,r,o){if(e===t&&r===o)return va;return n=>0===n||1===n?n:hc(function(e,t,r,o,n){let a,i,s=0;do{i=t+(r-t)/2,a=hc(i,o,n)-e,a>0?r=i:t=i}while(Math.abs(a)>1e-7&&++s<12);return i}(n,0,1,e,r),t,o)}const gc=fc(.42,0,1,1),yc=fc(0,0,.58,1),wc=fc(.42,0,.58,1),vc=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,bc=e=>t=>1-e(1-t),xc=e=>1-Math.sin(Math.acos(e)),Ec=bc(xc),kc=vc(xc),Sc=fc(.33,1.53,.69,.99),Cc=bc(Sc),Pc=vc(Cc),Tc={linear:va,easeIn:gc,easeInOut:wc,easeOut:yc,circIn:xc,circInOut:kc,circOut:Ec,backIn:Cc,backInOut:Pc,backOut:Sc,anticipate:e=>(e*=2)<1?.5*Cc(e):.5*(2-Math.pow(2,-10*(e-1)))},Lc=e=>{if(Array.isArray(e)){xa(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,r,o,n]=e;return fc(t,r,o,n)}return"string"==typeof e?(xa(void 0!==Tc[e],`Invalid easing type '${e}'`),Tc[e]):e},Mc=(e,t,r)=>{const o=t-e;return 0===o?1:(r-e)/o},Rc=(e,t,r)=>e+(t-e)*r;function Ac(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function _c(e,t){return r=>r>0?t:e}const Oc=(e,t,r)=>{const o=e*e,n=r*(t*t-o)+o;return n<0?0:Math.sqrt(n)},Nc=[Tl,Pl,Ll];function Dc(e){const t=(e=>Nc.find((t=>t.test(e))))(e);if(ba(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let r=t.parse(e);return t===Ll&&(r=function({hue:e,saturation:t,lightness:r,alpha:o}){e/=360,r/=100;let n=0,a=0,i=0;if(t/=100){const o=r<.5?r*(1+t):r+t-r*t,s=2*r-o;n=Ac(s,o,e+1/3),a=Ac(s,o,e),i=Ac(s,o,e-1/3)}else n=a=i=r;return{red:Math.round(255*n),green:Math.round(255*a),blue:Math.round(255*i),alpha:o}}(r)),r}const Fc=(e,t)=>{const r=Dc(e),o=Dc(t);if(!r||!o)return _c(e,t);const n={...r};return e=>(n.red=Oc(r.red,o.red,e),n.green=Oc(r.green,o.green,e),n.blue=Oc(r.blue,o.blue,e),n.alpha=Rc(r.alpha,o.alpha,e),Pl.transform(n))},Vc=new Set(["none","hidden"]);function jc(e,t){return r=>Rc(e,t,r)}function Ic(e){return"number"==typeof e?jc:"string"==typeof e?_i(e)?_c:Ml.test(e)?Fc:Uc:Array.isArray(e)?Bc:"object"==typeof e?Ml.test(e)?Fc:Hc:_c}function Bc(e,t){const r=[...e],o=r.length,n=e.map(((e,r)=>Ic(e)(e,t[r])));return e=>{for(let t=0;t<o;t++)r[t]=n[t](e);return r}}function Hc(e,t){const r={...e,...t},o={};for(const n in r)void 0!==e[n]&&void 0!==t[n]&&(o[n]=Ic(e[n])(e[n],t[n]));return e=>{for(const t in o)r[t]=o[t](e);return r}}const Uc=(e,t)=>{const r=Bl.createTransformer(t),o=Fl(e),n=Fl(t);return o.indexes.var.length===n.indexes.var.length&&o.indexes.color.length===n.indexes.color.length&&o.indexes.number.length>=n.indexes.number.length?Vc.has(e)&&!n.values.length||Vc.has(t)&&!o.values.length?function(e,t){return Vc.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}(e,t):Ts(Bc(function(e,t){var r;const o=[],n={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const i=t.types[a],s=e.indexes[i][n[i]],l=null!==(r=e.values[s])&&void 0!==r?r:0;o[a]=l,n[i]++}return o}(o,n),n.values),r):(ba(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),_c(e,t))};function zc(e,t,r){return"number"==typeof e&&"number"==typeof t&&"number"==typeof r?Rc(e,t,r):Ic(e)(e,t)}function $c({duration:e=300,keyframes:t,times:r,ease:o="easeInOut"}){const n=(e=>Array.isArray(e)&&"number"!=typeof e[0])(o)?o.map(Lc):Lc(o),a={done:!1,value:t[0]},i=function(e,t){return e.map((e=>e*t))}(r&&r.length===t.length?r:function(e){const t=[0];return function(e,t){const r=e[e.length-1];for(let o=1;o<=t;o++){const n=Mc(0,t,o);e.push(Rc(r,1,n))}}(t,e.length-1),t}(t),e),s=function(e,t,{clamp:r=!0,ease:o,mixer:n}={}){const a=e.length;if(xa(a===t.length,"Both input and output ranges must be the same length"),1===a)return()=>t[0];if(2===a&&e[0]===e[1])return()=>t[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const i=function(e,t,r){const o=[],n=r||zc,a=e.length-1;for(let r=0;r<a;r++){let a=n(e[r],e[r+1]);if(t){const e=Array.isArray(t)?t[r]||va:t;a=Ts(e,a)}o.push(a)}return o}(t,o,n),s=i.length,l=t=>{let r=0;if(s>1)for(;r<e.length-2&&!(t<e[r+1]);r++);const o=Mc(e[r],e[r+1],t);return i[r](o)};return r?t=>l(ci(e[0],e[a-1],t)):l}(i,t,{ease:Array.isArray(n)?n:(l=t,c=n,l.map((()=>c||wc)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(a.value=s(t),a.done=t>=e,a)}}const Wc=e=>{const t=({timestamp:t})=>e(t);return{start:()=>fs.update(t,!0),stop:()=>gs(t),now:()=>ys.isProcessing?ys.timestamp:rl.now()}},qc={decay:mc,inertia:mc,tween:$c,keyframes:$c,spring:pc},Zc=e=>e/100;class Kc extends Jl{constructor({KeyframeResolver:e=El,...t}){super(t),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:r,motionValue:o,keyframes:n}=this.options,a=(e,t)=>this.onKeyframesResolved(e,t);r&&o&&o.owner?this.resolver=o.owner.resolveKeyframes(n,a,r,o):this.resolver=new e(n,a,r,o),this.resolver.scheduleResolve()}initPlayback(e){const{type:t="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:n,velocity:a=0}=this.options,i=qc[t]||$c;let s,l;i!==$c&&"number"!=typeof e[0]&&(s=Ts(Zc,zc(e[0],e[1])),e=[0,100]);const c=i({...this.options,keyframes:e});"mirror"===n&&(l=i({...this.options,keyframes:[...e].reverse(),velocity:-a})),null===c.calculatedDuration&&(c.calculatedDuration=function(e){let t=0,r=e.next(t);for(;!r.done&&t<2e4;)t+=50,r=e.next(t);return t>=2e4?1/0:t}(c));const{calculatedDuration:u}=c,d=u+o;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:s,calculatedDuration:u,resolvedDuration:d,totalDuration:d*(r+1)-o}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:r}=this;if(!r){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:o,generator:n,mirroredGenerator:a,mapPercentToKeyframes:i,keyframes:s,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=r;if(null===this.startTime)return n.next(0);const{delay:d,repeat:p,repeatType:m,repeatDelay:h,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let w=this.currentTime,v=n;if(p){const e=Math.min(this.currentTime,c)/u;let t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,t=Math.min(t,p+1),Boolean(t%2)&&("reverse"===m?(r=1-r,h&&(r-=h/u)):"mirror"===m&&(v=a)),w=ci(0,1,r)*u}const b=y?{done:!1,value:s[0]}:v.next(w);i&&(b.value=i(b.value));let{done:x}=b;y||null===l||(x=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const E=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return E&&void 0!==o&&(b.value=Qs(s,this.options,o)),f&&f(b.value),E&&this.finish(),b}get duration(){const{resolved:e}=this;return e?qs(e.calculatedDuration):0}get time(){return qs(this.currentTime)}set time(e){e=Ws(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=qs(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=Wc,onPlay:t}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime&&"finished"!==this.state||(this.startTime=r),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Yc=e=>Array.isArray(e)&&"number"==typeof e[0];function Xc(e){return Boolean(!e||"string"==typeof e&&e in Jc||Yc(e)||Array.isArray(e)&&e.every(Xc))}const Gc=([e,t,r,o])=>`cubic-bezier(${e}, ${t}, ${r}, ${o})`,Jc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Gc([0,.65,.55,1]),circOut:Gc([.55,0,1,.45]),backIn:Gc([.31,.01,.66,-.59]),backOut:Gc([.33,1.53,.69,.99])};function Qc(e){return eu(e)||Jc.easeOut}function eu(e){return e?Yc(e)?Gc(e):Array.isArray(e)?e.map(Qc):Jc[e]:void 0}const tu=Xl((()=>Object.hasOwnProperty.call(Element.prototype,"animate")));class ru extends Jl{constructor(e){super(e);const{name:t,motionValue:r,keyframes:o}=this.options;this.resolver=new Yl(o,((e,t)=>this.onKeyframesResolved(e,t)),t,r),this.resolver.scheduleResolve()}initPlayback(e,t){var r;let{duration:o=300,times:n,ease:a,type:i,motionValue:s,name:l}=this.options;if(!(null===(r=s.owner)||void 0===r?void 0:r.current))return!1;if("spring"===(c=this.options).type||!Xc(c.ease)){const{onComplete:t,onUpdate:r,motionValue:s,...l}=this.options,c=function(e,t){const r=new Kc({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let o={done:!1,value:e[0]};const n=[];let a=0;for(;!o.done&&a<2e4;)o=r.sample(a),n.push(o.value),a+=10;return{times:void 0,keyframes:n,duration:a-10,ease:"linear"}}(e,l);1===(e=c.keyframes).length&&(e[1]=e[0]),o=c.duration,n=c.times,a=c.ease,i="keyframes"}var c;const u=function(e,t,r,{delay:o=0,duration:n=300,repeat:a=0,repeatType:i="loop",ease:s,times:l}={}){const c={[t]:r};l&&(c.offset=l);const u=eu(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:o,duration:n,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:a+1,direction:"reverse"===i?"alternate":"normal"})}(s.owner.current,l,e,{...this.options,duration:o,times:n,ease:a});return u.startTime=rl.now(),this.pendingTimeline?(u.timeline=this.pendingTimeline,this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:r}=this.options;s.set(Qs(e,this.options,t)),r&&r(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:o,times:n,type:i,ease:a,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return qs(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return qs(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.currentTime=Ws(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return va;const{animation:r}=t;r.timeline=e,r.onfinish=null}else this.pendingTimeline=e;return va}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:r,duration:o,type:n,ease:a,times:i}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:s,...l}=this.options,c=new Kc({...l,keyframes:r,duration:o,type:n,ease:a,times:i,isGenerator:!0}),u=Ws(this.time);e.setWithVelocity(c.sample(u-10).value,c.sample(u).value,10)}const{onStop:s}=this.options;s&&s(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:r,repeatDelay:o,repeatType:n,damping:a,type:i}=e;return tu()&&r&&ss.has(r)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!o&&"mirror"!==n&&0!==a&&"inertia"!==i}}const ou=Xl((()=>void 0!==window.ScrollTimeline));class nu{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,t){return Promise.all(this.animations).then(e).catch(t)}getAll(e){return this.animations[0][e]}setAll(e,t){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=t}attachTimeline(e){const t=this.animations.map((t=>{if(!ou()||!t.attachTimeline)return t.pause(),function(e,r){let o;const n=()=>{const{currentTime:e}=r,n=(null===e?0:e.value)/100;o!==n&&(e=>{t.time=t.duration*e})(n),o=n};return fs.update(n,!0),()=>gs(n)}(0,e);t.attachTimeline(e)}));return()=>{t.forEach(((e,t)=>{e&&e(),this.animations[t].stop()}))}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach((t=>t[e]()))}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const au=(e,t,r,o={},n,a,i)=>s=>{const l=Gs(o,e)||{},c=l.delay||o.delay||0;let{elapsed:u=0}=o;u-=Ws(c);let d={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{s(),l.onComplete&&l.onComplete(),i&&i()},onStop:i,name:e,motionValue:t,element:a?void 0:n};(function({when:e,delay:t,delayChildren:r,staggerChildren:o,staggerDirection:n,repeat:a,repeatType:i,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(l)||(d={...d,...Xs(e,d)}),d.duration&&(d.duration=Ws(d.duration)),d.repeatDelay&&(d.repeatDelay=Ws(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let p=!1;if((!1===d.type||0===d.duration&&!d.repeatDelay)&&(d.duration=0,0===d.delay&&(p=!0)),p&&!a&&void 0!==t.get()){const e=Qs(d.keyframes,l);if(void 0!==e)return fs.update((()=>{d.onUpdate(e),d.onComplete()})),new nu([])}return!a&&ru.supports(d)?new ru(d):new Kc(d)};class iu{constructor(){this.subscriptions=[]}add(e){return cs(this.subscriptions,e),()=>us(this.subscriptions,e)}notify(e,t,r){const o=this.subscriptions.length;if(o)if(1===o)this.subscriptions[0](e,t,r);else for(let n=0;n<o;n++){const o=this.subscriptions[n];o&&o(e,t,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const su={current:void 0};class lu{constructor(e,t={}){this.version="11.3.21",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const r=rl.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=rl.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new iu);const r=this.events[e].add(t);return"change"===e?()=>{r(),fs.read((()=>{this.events.change.getSize()||this.stop()}))}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return su.current&&su.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=rl.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Ql(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function cu(e,t){return new lu(e,t)}function uu(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,cu(r))}function du(e){return e.getProps()[Ra]}class pu extends lu{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(e){const t=ls(e);if(!t)return;const r=this.counts.get(t)||0;this.counts.set(t,r+1),0===r&&(this.output.push(t),this.update());let o=!1;return()=>{if(o)return;o=!0;const e=this.counts.get(t)-1;this.counts.set(t,e),0===e&&(us(this.output,t),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}function mu(e,t){var r;if(!e.applyWillChange)return;let o=e.getValue("willChange");return o||(null===(r=e.props.style)||void 0===r?void 0:r.willChange)||(o=new pu("auto"),e.addValue("willChange",o)),n=o,Boolean(si(n)&&n.add)?o.add(t):void 0;var n}function hu({protectedKeys:e,needsAnimating:t},r){const o=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,o}function fu(e,t,{delay:r=0,transitionOverride:o,type:n}={}){var a;let{transition:i=e.getDefaultTransition(),transitionEnd:s,...l}=t;o&&(i=o);const c=[],u=n&&e.animationState&&e.animationState.getState()[n];for(const t in l){const o=e.getValue(t,null!==(a=e.latestValues[t])&&void 0!==a?a:null),n=l[t];if(void 0===n||u&&hu(u,t))continue;const s={delay:r,elapsed:0,...Gs(i||{},t)};let d=!1;if(window.HandoffAppearAnimations){const r=du(e);if(r){const e=window.HandoffAppearAnimations(r,t,o,fs);null!==e&&(s.elapsed=e,d=!0)}}o.start(au(t,o,n,e.shouldReduceMotion&&ai.has(t)?{type:!1}:s,e,d,mu(e,t)));const p=o.animation;p&&c.push(p)}return s&&Promise.all(c).then((()=>{fs.update((()=>{s&&function(e,t){const r=$s(e,t);let{transitionEnd:o={},transition:n={},...a}=r||{};a={...a,...o};for(const t in a)uu(e,t,as(a[t]))}(e,s)}))})),c}function gu(e,t,r={}){var o;const n=$s(e,t,"exit"===r.type?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(a=r.transitionOverride);const i=n?()=>Promise.all(fu(e,n,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(o=0)=>{const{delayChildren:n=0,staggerChildren:i,staggerDirection:s}=a;return function(e,t,r=0,o=0,n=1,a){const i=[],s=(e.variantChildren.size-1)*o,l=1===n?(e=0)=>e*o:(e=0)=>s-e*o;return Array.from(e.variantChildren).sort(yu).forEach(((e,o)=>{e.notify("AnimationStart",t),i.push(gu(e,t,{...a,delay:r+l(o)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(i)}(e,t,n+o,i,s,r)}:()=>Promise.resolve(),{when:l}=a;if(l){const[e,t]="beforeChildren"===l?[i,s]:[s,i];return e().then((()=>t()))}return Promise.all([i(),s(r.delay)])}function yu(e,t){return e.sortNodePosition(t)}const wu=[...$a].reverse(),vu=$a.length;function bu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function xu(){return{animate:bu(!0),whileInView:bu(),whileHover:bu(),whileTap:bu(),whileDrag:bu(),whileFocus:bu(),exit:bu()}}let Eu=0;const ku={animation:{Feature:class extends Os{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=function(e){return t=>Promise.all(t.map((({animation:t,options:r})=>function(e,t,r={}){let o;if(e.notify("AnimationStart",t),Array.isArray(t)){const n=t.map((t=>gu(e,t,r)));o=Promise.all(n)}else if("string"==typeof t)o=gu(e,t,r);else{const n="function"==typeof t?$s(e,t,r.custom):t;o=Promise.all(fu(e,n,r))}return o.then((()=>{e.notify("AnimationComplete",t)}))}(e,t,r))))}(e),r=xu(),o=!0;const n=t=>(r,o)=>{var n;const a=$s(e,o,"exit"===t?null===(n=e.presenceContext)||void 0===n?void 0:n.custom:void 0);if(a){const{transition:e,transitionEnd:t,...o}=a;r={...r,...o,...t}}return r};function a(a){const i=e.getProps(),s=e.getVariantContext(!0)||{},l=[],c=new Set;let u={},d=1/0;for(let t=0;t<vu;t++){const h=wu[t],f=r[h],g=void 0!==i[h]?i[h]:s[h],y=Ua(g),w=h===a?f.isActive:null;!1===w&&(d=t);let v=g===s[h]&&g!==i[h]&&y;if(v&&o&&e.manuallyAnimateOnMount&&(v=!1),f.protectedKeys={...u},!f.isActive&&null===w||!g&&!f.prevProp||za(g)||"boolean"==typeof g)continue;let b=(p=f.prevProp,("string"==typeof(m=g)?m!==p:!!Array.isArray(m)&&!zs(m,p))||h===a&&f.isActive&&!v&&y||t>d&&y),x=!1;const E=Array.isArray(g)?g:[g];let k=E.reduce(n(h),{});!1===w&&(k={});const{prevResolvedValues:S={}}=f,C={...S,...k},P=t=>{b=!0,c.has(t)&&(x=!0,c.delete(t)),f.needsAnimating[t]=!0;const r=e.getValue(t);r&&(r.liveStyle=!1)};for(const e in C){const t=k[e],r=S[e];if(u.hasOwnProperty(e))continue;let o=!1;o=os(t)&&os(r)?!zs(t,r):t!==r,o?null!=t?P(e):c.add(e):void 0!==t&&c.has(e)?P(e):f.protectedKeys[e]=!0}f.prevProp=g,f.prevResolvedValues=k,f.isActive&&(u={...u,...k}),o&&e.blockInitialAnimation&&(b=!1),!b||v&&!x||l.push(...E.map((e=>({animation:e,options:{type:h}}))))}var p,m;if(c.size){const t={};c.forEach((r=>{const o=e.getBaseTarget(r),n=e.getValue(r);n&&(n.liveStyle=!0),t[r]=null!=o?o:null})),l.push({animation:t})}let h=Boolean(l.length);return!o||!1!==i.initial&&i.initial!==i.animate||e.manuallyAnimateOnMount||(h=!1),o=!1,h?t(l):Promise.resolve()}return{animateChanges:a,setActive:function(t,o){var n;if(r[t].isActive===o)return Promise.resolve();null===(n=e.variantChildren)||void 0===n||n.forEach((e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,o)})),r[t].isActive=o;const i=a(t);for(const e in r)r[e].protectedKeys={};return i},setAnimateFunction:function(r){t=r(e)},getState:()=>r,reset:()=>{r=xu(),o=!0}}}(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();za(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends Os{constructor(){super(...arguments),this.id=Eu++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const o=this.node.animationState.setActive("exit",!e);t&&!e&&o.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Su=(e,t)=>Math.abs(e-t);class Cu{constructor(e,t,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Lu(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){const r=Su(e.x,t.x),o=Su(e.y,t.y);return Math.sqrt(r**2+o**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!r)return;const{point:o}=e,{timestamp:n}=ys;this.history.push({...o,timestamp:n});const{onStart:a,onMove:i}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),i&&i(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Pu(t,this.transformPagePoint),fs.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:r,onSessionEnd:o,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const a=Lu("pointercancel"===e.type?this.lastMoveEventInfo:Pu(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,a),o&&o(e,a)},!Es(e))return;this.dragSnapToOrigin=n,this.handlers=t,this.transformPagePoint=r,this.contextWindow=o||window;const a=Pu(ks(e),this.transformPagePoint),{point:i}=a,{timestamp:s}=ys;this.history=[{...i,timestamp:s}];const{onSessionStart:l}=t;l&&l(e,Lu(a,this.history)),this.removeListeners=Ts(Cs(this.contextWindow,"pointermove",this.handlePointerMove),Cs(this.contextWindow,"pointerup",this.handlePointerUp),Cs(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),gs(this.updatePoint)}}function Pu(e,t){return t?{point:t(e.point)}:e}function Tu(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Lu({point:e},t){return{point:e,delta:Tu(e,Ru(t)),offset:Tu(e,Mu(t)),velocity:Au(t,.1)}}function Mu(e){return e[0]}function Ru(e){return e[e.length-1]}function Au(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,o=null;const n=Ru(e);for(;r>=0&&(o=e[r],!(n.timestamp-o.timestamp>Ws(t)));)r--;if(!o)return{x:0,y:0};const a=qs(n.timestamp-o.timestamp);if(0===a)return{x:0,y:0};const i={x:(n.x-o.x)/a,y:(n.y-o.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}const _u=.9999,Ou=1.0001,Nu=-.01,Du=.01;function Fu(e){return e.max-e.min}function Vu(e,t,r,o=.5){e.origin=o,e.originPoint=Rc(t.min,t.max,e.origin),e.scale=Fu(r)/Fu(t),e.translate=Rc(r.min,r.max,e.origin)-e.originPoint,(e.scale>=_u&&e.scale<=Ou||isNaN(e.scale))&&(e.scale=1),(e.translate>=Nu&&e.translate<=Du||isNaN(e.translate))&&(e.translate=0)}function ju(e,t,r,o){Vu(e.x,t.x,r.x,o?o.originX:void 0),Vu(e.y,t.y,r.y,o?o.originY:void 0)}function Iu(e,t,r){e.min=r.min+t.min,e.max=e.min+Fu(t)}function Bu(e,t,r){e.min=t.min-r.min,e.max=e.min+Fu(t)}function Hu(e,t,r){Bu(e.x,t.x,r.x),Bu(e.y,t.y,r.y)}function Uu(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function zu(e,t){let r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,o]=[o,r]),{min:r,max:o}}const $u=.35;function Wu(e,t,r){return{min:qu(e,t),max:qu(e,r)}}function qu(e,t){return"number"==typeof e?e:e[t]||0}const Zu=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),Ku=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Yu(e){return[e("x"),e("y")]}function Xu({top:e,left:t,right:r,bottom:o}){return{x:{min:t,max:r},y:{min:e,max:o}}}function Gu(e){return void 0===e||1===e}function Ju({scale:e,scaleX:t,scaleY:r}){return!Gu(e)||!Gu(t)||!Gu(r)}function Qu(e){return Ju(e)||ed(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ed(e){return td(e.x)||td(e.y)}function td(e){return e&&"0%"!==e}function rd(e,t,r){return r+t*(e-r)}function od(e,t,r,o,n){return void 0!==n&&(e=rd(e,n,o)),rd(e,r,o)+t}function nd(e,t=0,r=1,o,n){e.min=od(e.min,t,r,o,n),e.max=od(e.max,t,r,o,n)}function ad(e,{x:t,y:r}){nd(e.x,t.translate,t.scale,t.originPoint),nd(e.y,r.translate,r.scale,r.originPoint)}const id=.999999999999,sd=1.0000000000001;function ld(e,t){e.min=e.min+t,e.max=e.max+t}function cd(e,t,r,o,n=.5){nd(e,t,r,Rc(e.min,e.max,n),o)}function ud(e,t){cd(e.x,t.x,t.scaleX,t.scale,t.originX),cd(e.y,t.y,t.scaleY,t.scale,t.originY)}function dd(e,t){return Xu(function(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:o.y,right:o.x}}(e.getBoundingClientRect(),t))}const pd=({current:e})=>e?e.ownerDocument.defaultView:null,md=new WeakMap;class hd{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ku(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;const{dragSnapToOrigin:o}=this.getProps();this.panSession=new Cu(e,{onSessionStart:e=>{const{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(ks(e,"page").point)},onStart:(e,t)=>{var r;const{drag:o,dragPropagation:n,onDragStart:a}=this.getProps();if(o&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=As(o),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Yu((e=>{let t=this.getAxisMotionValue(e).get()||0;if(bi.test(t)){const{projection:r}=this.visualElement;if(r&&r.layout){const o=r.layout.layoutBox[e];o&&(t=Fu(o)*(parseFloat(t)/100))}}this.originPoint[e]=t})),a&&fs.postRender((()=>a(e,t))),null===(r=this.removeWillChange)||void 0===r||r.call(this),this.removeWillChange=mu(this.visualElement,"transform");const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:r,dragDirectionLock:o,onDirectionLock:n,onDrag:a}=this.getProps();if(!r&&!this.openGlobalLock)return;const{offset:i}=t;if(o&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(i),void(null!==this.currentDirection&&n&&n(this.currentDirection));this.updateAxis("x",t.point,i),this.updateAxis("y",t.point,i),this.visualElement.render(),a&&a(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>Yu((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:o,contextWindow:pd(this.visualElement)})}stop(e,t){var r;null===(r=this.removeWillChange)||void 0===r||r.call(this);const o=this.isDragging;if(this.cancel(),!o)return;const{velocity:n}=t;this.startAnimation(n);const{onDragEnd:a}=this.getProps();a&&fs.postRender((()=>a(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){const{drag:o}=this.getProps();if(!r||!fd(e,o,this.currentDirection))return;const n=this.getAxisMotionValue(e);let a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=function(e,{min:t,max:r},o){return void 0!==t&&e<t?e=o?Rc(t,e,o.min):Math.max(e,t):void 0!==r&&e>r&&(e=o?Rc(r,e,o.max):Math.min(e,r)),e}(a,this.constraints[e],this.elastic[e])),n.set(a)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,n=this.constraints;t&&Da(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!o)&&function(e,{top:t,left:r,bottom:o,right:n}){return{x:Uu(e.x,r,n),y:Uu(e.y,t,o)}}(o.layoutBox,t),this.elastic=function(e=$u){return!1===e?e=0:!0===e&&(e=$u),{x:Wu(e,"left","right"),y:Wu(e,"top","bottom")}}(r),n!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Yu((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(o.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Da(e))return!1;const r=e.current;xa(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const n=function(e,t,r){const o=dd(e,r),{scroll:n}=t;return n&&(ld(o.x,n.offset.x),ld(o.y,n.offset.y)),o}(r,o.root,this.visualElement.getTransformPagePoint());let a=function(e,t){return{x:zu(e.x,t.x),y:zu(e.y,t.y)}}(o.layout.layoutBox,n);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=Xu(e))}return a}startAnimation(e){const{drag:t,dragMomentum:r,dragElastic:o,dragTransition:n,dragSnapToOrigin:a,onDragTransitionEnd:i}=this.getProps(),s=this.constraints||{},l=Yu((i=>{if(!fd(i,t,this.currentDirection))return;let l=s&&s[i]||{};a&&(l={min:0,max:0});const c=o?200:1e6,u=o?40:1e7,d={type:"inertia",velocity:r?e[i]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(i,d)}));return Promise.all(l).then(i)}startAxisValueAnimation(e,t){const r=this.getAxisMotionValue(e);return r.start(au(e,r,0,t,this.visualElement,!1,mu(this.visualElement,e)))}stopAnimation(){Yu((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){Yu((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps();return r[t]||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Yu((t=>{const{drag:r}=this.getProps();if(!fd(t,r,this.currentDirection))return;const{projection:o}=this.visualElement,n=this.getAxisMotionValue(t);if(o&&o.layout){const{min:r,max:a}=o.layout.layoutBox[t];n.set(e[t]-Rc(r,a,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!Da(t)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Yu((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const r=t.get();o[e]=function(e,t){let r=.5;const o=Fu(e),n=Fu(t);return n>o?r=Mc(t.min,t.max-o,e.min):o>n&&(r=Mc(e.min,e.max-n,t.min)),ci(0,1,r)}({min:r,max:r},this.constraints[e])}}));const{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Yu((t=>{if(!fd(t,e,null))return;const r=this.getAxisMotionValue(t),{min:n,max:a}=this.constraints[t];r.set(Rc(n,a,o[t]))}))}addListeners(){if(!this.visualElement.current)return;md.set(this.visualElement,this);const e=Cs(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();Da(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,o=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),fs.read(t);const n=xs(window,"resize",(()=>this.scalePositionWithinConstraints())),a=r.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Yu((t=>{const r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))})),this.visualElement.render())}));return()=>{n(),e(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:n=!1,dragElastic:a=$u,dragMomentum:i=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:o,dragConstraints:n,dragElastic:a,dragMomentum:i}}}function fd(e,t,r){return!(!0!==t&&t!==e||null!==r&&r!==e)}const gd=e=>(t,r)=>{e&&fs.postRender((()=>e(t,r)))},yd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function wd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const vd={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!xi.test(e))return e;e=parseFloat(e)}return`${wd(e,t.target.x)}% ${wd(e,t.target.y)}%`}},bd={correct:(e,{treeScale:t,projectionDelta:r})=>{const o=e,n=Bl.parse(e);if(n.length>5)return o;const a=Bl.createTransformer(e),i="number"!=typeof n[0]?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;n[0+i]/=s,n[1+i]/=l;const c=Rc(s,l,.5);return"number"==typeof n[2+i]&&(n[2+i]/=c),"number"==typeof n[3+i]&&(n[3+i]/=c),a(n)}};class xd extends r.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:o}=this.props,{projection:n}=e;var a;a=kd,Object.assign(oi,a),n&&(t.group&&t.group.add(n),r&&r.register&&o&&r.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",(()=>{this.safeToRemove()})),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),yd.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:r,drag:o,isPresent:n}=this.props,a=r.projection;return a?(a.isPresent=n,o||e.layoutDependency!==t||void 0===t?a.willUpdate():this.safeToRemove(),e.isPresent!==n&&(n?a.promote():a.relegate()||fs.postRender((()=>{const e=a.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Oa.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:o}=e;o&&(o.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Ed(e){const[t,o]=function(){const e=(0,r.useContext)(da);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:o,register:n}=e,a=(0,r.useId)();(0,r.useEffect)((()=>n(a)),[]);const i=(0,r.useCallback)((()=>o&&o(a)),[a,o]);return!t&&o?[!1,i]:[!0]}(),n=(0,r.useContext)(wa);return(0,ua.jsx)(xd,{...e,layoutGroup:n,switchLayoutGroup:(0,r.useContext)(Fa),isPresent:t,safeToRemove:o})}const kd={borderRadius:{...vd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:vd,borderTopRightRadius:vd,borderBottomLeftRadius:vd,borderBottomRightRadius:vd,boxShadow:bd},Sd=["TopLeft","TopRight","BottomLeft","BottomRight"],Cd=Sd.length,Pd=e=>"string"==typeof e?parseFloat(e):e,Td=e=>"number"==typeof e||xi.test(e);function Ld(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Md=Ad(0,.5,Ec),Rd=Ad(.5,.95,va);function Ad(e,t,r){return o=>o<e?0:o>t?1:r(Mc(e,t,o))}function _d(e,t){e.min=t.min,e.max=t.max}function Od(e,t){_d(e.x,t.x),_d(e.y,t.y)}function Nd(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Dd(e,t,r,o,n){return e=rd(e-=t,1/r,o),void 0!==n&&(e=rd(e,1/n,o)),e}function Fd(e,t,[r,o,n],a,i){!function(e,t=0,r=1,o=.5,n,a=e,i=e){if(bi.test(t)&&(t=parseFloat(t),t=Rc(i.min,i.max,t/100)-i.min),"number"!=typeof t)return;let s=Rc(a.min,a.max,o);e===a&&(s-=t),e.min=Dd(e.min,t,r,s,n),e.max=Dd(e.max,t,r,s,n)}(e,t[r],t[o],t[n],t.scale,a,i)}const Vd=["x","scaleX","originX"],jd=["y","scaleY","originY"];function Id(e,t,r,o){Fd(e.x,t,Vd,r?r.x:void 0,o?o.x:void 0),Fd(e.y,t,jd,r?r.y:void 0,o?o.y:void 0)}function Bd(e){return 0===e.translate&&1===e.scale}function Hd(e){return Bd(e.x)&&Bd(e.y)}function Ud(e,t){return e.min===t.min&&e.max===t.max}function zd(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function $d(e,t){return zd(e.x,t.x)&&zd(e.y,t.y)}function Wd(e){return Fu(e.x)/Fu(e.y)}function qd(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Zd{constructor(){this.members=[]}add(e){cs(this.members,e),e.scheduleRender()}remove(e){if(us(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let r;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){r=t;break}}return!!r&&(this.promote(r),!0)}promote(e,t){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:o}=e.options;!1===o&&r.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Kd=(e,t)=>e.depth-t.depth;class Yd{constructor(){this.children=[],this.isDirty=!1}add(e){cs(this.children,e),this.isDirty=!0}remove(e){us(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Kd),this.isDirty=!1,this.children.forEach(e)}}const Xd={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Gd="undefined"!=typeof window&&void 0!==window.MotionDebug,Jd=["","X","Y","Z"],Qd={visibility:"hidden"};let ep=0;function tp(e,t,r,o){const{latestValues:n}=t;n[e]&&(r[e]=n[e],t.setStaticValue(e,0),o&&(o[e]=0))}function rp(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return!1;const{visualElement:t}=e.options;return!!t&&(!!du(t)||!(!e.parent||e.parent.hasCheckedOptimisedAppear)&&rp(e.parent))}function op({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:o,resetTransform:n}){return class{constructor(e={},r=(null==t?void 0:t())){this.id=ep++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Gd&&(Xd.totalNodes=Xd.resolvedTargetDeltas=Xd.recalculatedProjection=0),this.nodes.forEach(ip),this.nodes.forEach(mp),this.nodes.forEach(hp),this.nodes.forEach(sp),Gd&&window.MotionDebug.record(Xd)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Yd)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new iu),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,r=this.root.hasTreeAnimated){if(this.instance)return;var o;this.isSVG=(o=t)instanceof SVGElement&&"svg"!==o.tagName,this.instance=t;const{layoutId:n,layout:a,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(a||n)&&(this.isLayoutDirty=!0),e){let r;const o=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){const r=rl.now(),o=({timestamp:t})=>{const n=t-r;n>=250&&(gs(o),e(n-250))};return fs.read(o,!0),()=>gs(o)}(o),yd.hasAnimatedSinceResize&&(yd.hasAnimatedSinceResize=!1,this.nodes.forEach(pp))}))}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||a)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:o})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const n=this.options.transition||i.getDefaultTransition()||bp,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=i.getProps(),l=!this.targetLayout||!$d(this.targetLayout,o)||r,c=!t&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...Gs(n,"layout"),onPlay:a,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||pp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=o}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,gs(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(fp),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.HandoffCancelAllAnimations&&rp(this)&&window.HandoffCancelAllAnimations(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;const o=this.getTransformTemplate();this.prevTransformTemplateValue=o?o(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(cp);this.isUpdating||this.nodes.forEach(up),this.isUpdating=!1,this.nodes.forEach(dp),this.nodes.forEach(np),this.nodes.forEach(ap),this.clearAllSnapshots();const e=rl.now();ys.delta=ci(0,1e3/60,e-ys.timestamp),ys.timestamp=e,ys.isProcessing=!0,ws.update.process(ys),ws.preRender.process(ys),ws.render.process(ys),ys.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Oa.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(lp),this.sharedNodes.forEach(gp)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,fs.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){fs.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ku(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){const t=o(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!n)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Hd(this.projectionDelta),r=this.getTransformTemplate(),o=r?r(this.latestValues,""):void 0,a=o!==this.prevTransformTemplateValue;e&&(t||Qu(this.latestValues)||a)&&(n(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let r=this.removeElementScroll(t);var o;return e&&(r=this.removeTransform(r)),kp((o=r).x),kp(o.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:t}=this.options;if(!t)return Ku();const r=t.measureViewportBox();if(!(null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)&&!this.path.some(Cp)){const{scroll:e}=this.root;e&&(ld(r.x,e.offset.x),ld(r.y,e.offset.y))}return r}removeElementScroll(e){var t;const r=Ku();if(Od(r,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return r;for(let t=0;t<this.path.length;t++){const o=this.path[t],{scroll:n,options:a}=o;o!==this.root&&n&&a.layoutScroll&&(n.wasRoot&&Od(r,e),ld(r.x,n.offset.x),ld(r.y,n.offset.y))}return r}applyTransform(e,t=!1){const r=Ku();Od(r,e);for(let e=0;e<this.path.length;e++){const o=this.path[e];!t&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ud(r,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),Qu(o.latestValues)&&ud(r,o.latestValues)}return Qu(this.latestValues)&&ud(r,this.latestValues),r}removeTransform(e){const t=Ku();Od(t,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];if(!r.instance)continue;if(!Qu(r.latestValues))continue;Ju(r.latestValues)&&r.updateSnapshot();const o=Ku();Od(o,r.measurePageBox()),Id(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,o)}return Qu(this.latestValues)&&Id(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ys.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const r=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=r.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=r.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=r.isSharedProjectionDirty);const o=Boolean(this.resumingFrom)||this!==r;if(!(e||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:n,layoutId:a}=this.options;if(this.layout&&(n||a)){if(this.resolvedRelativeTargetAt=ys.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ku(),this.relativeTargetOrigin=Ku(),Hu(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Od(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var i,s,l;if(this.target||(this.target=Ku(),this.targetWithTransforms=Ku()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),i=this.target,s=this.relativeTarget,l=this.relativeParent.target,Iu(i.x,s.x,l.x),Iu(i.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Od(this.target,this.layout.layoutBox),ad(this.target,this.targetDelta)):Od(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ku(),this.relativeTargetOrigin=Ku(),Hu(this.relativeTargetOrigin,this.target,e.target),Od(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Gd&&Xd.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Ju(this.parent.latestValues)&&!ed(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),r=Boolean(this.resumingFrom)||this!==t;let o=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(o=!1),r&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(o=!1),this.resolvedRelativeTargetAt===ys.timestamp&&(o=!1),o)return;const{layout:n,layoutId:a}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!n&&!a)return;Od(this.layoutCorrected,this.layout.layoutBox);const i=this.treeScale.x,s=this.treeScale.y;!function(e,t,r,o=!1){const n=r.length;if(!n)return;let a,i;t.x=t.y=1;for(let s=0;s<n;s++){a=r[s],i=a.projectionDelta;const{visualElement:n}=a.options;n&&n.props.style&&"contents"===n.props.style.display||(o&&a.options.layoutScroll&&a.scroll&&a!==a.root&&ud(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,ad(e,i)),o&&Qu(a.latestValues)&&ud(e,a.latestValues))}t.x<sd&&t.x>id&&(t.x=1),t.y<sd&&t.y>id&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,r),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms=Ku());const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(Nd(this.prevProjectionDelta.x,this.projectionDelta.x),Nd(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),ju(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===i&&this.treeScale.y===s&&qd(this.projectionDelta.x,this.prevProjectionDelta.x)&&qd(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Gd&&Xd.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Zu(),this.projectionDelta=Zu(),this.projectionDeltaWithTransform=Zu()}setAnimationOrigin(e,t=!1){const r=this.snapshot,o=r?r.latestValues:{},n={...this.latestValues},a=Zu();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const i=Ku(),s=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(vp));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const r=t/1e3;yp(a.x,e.x,r),yp(a.y,e.y,r),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Hu(i,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,r,o){wp(e.x,t.x,r.x,o),wp(e.y,t.y,r.y,o)}(this.relativeTarget,this.relativeTargetOrigin,i,r),d&&function(e,t){return Ud(e.x,t.x)&&Ud(e.y,t.y)}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=Ku()),Od(d,this.relativeTarget)),s&&(this.animationValues=n,function(e,t,r,o,n,a){n?(e.opacity=Rc(0,void 0!==r.opacity?r.opacity:1,Md(o)),e.opacityExit=Rc(void 0!==t.opacity?t.opacity:1,0,Rd(o))):a&&(e.opacity=Rc(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,o));for(let n=0;n<Cd;n++){const a=`border${Sd[n]}Radius`;let i=Ld(t,a),s=Ld(r,a);void 0===i&&void 0===s||(i||(i=0),s||(s=0),0===i||0===s||Td(i)===Td(s)?(e[a]=Math.max(Rc(Pd(i),Pd(s),o),0),(bi.test(s)||bi.test(i))&&(e[a]+="%")):e[a]=s)}(t.rotate||r.rotate)&&(e.rotate=Rc(t.rotate||0,r.rotate||0,o))}(n,o,this.latestValues,r,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(gs(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=fs.update((()=>{yd.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r){const o=si(0)?0:cu(0);return o.start(au("",o,1e3,r)),o.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:r,layout:o,latestValues:n}=e;if(t&&r&&o){if(this!==e&&this.layout&&o&&Sp(this.options.animationType,this.layout.layoutBox,o.layoutBox)){r=this.target||Ku();const t=Fu(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;const o=Fu(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+o}Od(t,r),ud(t,n),ju(this.projectionDeltaWithTransform,this.layoutCorrected,t,n)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Zd),this.sharedNodes.get(e).add(t);const r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){const o=this.getStack();o&&o.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:r}=e;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(t=!0),!t)return;const o={};r.z&&tp("z",e,o,this.animationValues);for(let t=0;t<Jd.length;t++)tp(`rotate${Jd[t]}`,e,o,this.animationValues),tp(`skew${Jd[t]}`,e,o,this.animationValues);e.render();for(const t in o)e.setStaticValue(t,o[t]),this.animationValues&&(this.animationValues[t]=o[t]);e.scheduleRender()}getProjectionStyles(e){var t,r;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Qd;const o={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,o.opacity="",o.pointerEvents=is(null==e?void 0:e.pointerEvents)||"",o.transform=n?n(this.latestValues,""):"none",o;const a=this.getLead();if(!this.projectionDelta||!this.layout||!a.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=is(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!Qu(this.latestValues)&&(t.transform=n?n({},""):"none",this.hasProjected=!1),t}const i=a.animationValues||a.latestValues;this.applyTransformsToTarget(),o.transform=function(e,t,r){let o="";const n=e.x.translate/t.x,a=e.y.translate/t.y,i=(null==r?void 0:r.z)||0;if((n||a||i)&&(o=`translate3d(${n}px, ${a}px, ${i}px) `),1===t.x&&1===t.y||(o+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:e,rotate:t,rotateX:n,rotateY:a,skewX:i,skewY:s}=r;e&&(o=`perspective(${e}px) ${o}`),t&&(o+=`rotate(${t}deg) `),n&&(o+=`rotateX(${n}deg) `),a&&(o+=`rotateY(${a}deg) `),i&&(o+=`skewX(${i}deg) `),s&&(o+=`skewY(${s}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return 1===s&&1===l||(o+=`scale(${s}, ${l})`),o||"none"}(this.projectionDeltaWithTransform,this.treeScale,i),n&&(o.transform=n(i,o.transform));const{x:s,y:l}=this.projectionDelta;o.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,a.animationValues?o.opacity=a===this?null!==(r=null!==(t=i.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==r?r:1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:o.opacity=a===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0;for(const e in oi){if(void 0===i[e])continue;const{correct:t,applyTo:r}=oi[e],n="none"===o.transform?i[e]:t(i[e],a);if(r){const e=r.length;for(let t=0;t<e;t++)o[r[t]]=n}else o[e]=n}return this.options.layoutId&&(o.pointerEvents=a===this?is(null==e?void 0:e.pointerEvents)||"":"none"),o}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(cp),this.root.sharedNodes.clear()}}}function np(e){e.updateLayout()}function ap(e){var t;const r=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:o}=e.layout,{animationType:n}=e.options,a=r.source!==e.layout.source;"size"===n?Yu((e=>{const o=a?r.measuredBox[e]:r.layoutBox[e],n=Fu(o);o.min=t[e].min,o.max=o.min+n})):Sp(n,r.layoutBox,t)&&Yu((o=>{const n=a?r.measuredBox[o]:r.layoutBox[o],i=Fu(t[o]);n.max=n.min+i,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[o].max=e.relativeTarget[o].min+i)}));const i=Zu();ju(i,t,r.layoutBox);const s=Zu();a?ju(s,e.applyTransform(o,!0),r.measuredBox):ju(s,t,r.layoutBox);const l=!Hd(i);let c=!1;if(!e.resumeFrom){const o=e.getClosestProjectingParent();if(o&&!o.resumeFrom){const{snapshot:n,layout:a}=o;if(n&&a){const i=Ku();Hu(i,r.layoutBox,n.layoutBox);const s=Ku();Hu(s,t,a.layoutBox),$d(i,s)||(c=!0),o.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=i,e.relativeParent=o)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:r,delta:s,layoutDelta:i,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ip(e){Gd&&Xd.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function sp(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function lp(e){e.clearSnapshot()}function cp(e){e.clearMeasurements()}function up(e){e.isLayoutDirty=!1}function dp(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function pp(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function mp(e){e.resolveTargetDelta()}function hp(e){e.calcProjection()}function fp(e){e.resetSkewAndRotation()}function gp(e){e.removeLeadSnapshot()}function yp(e,t,r){e.translate=Rc(t.translate,0,r),e.scale=Rc(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function wp(e,t,r,o){e.min=Rc(t.min,r.min,o),e.max=Rc(t.max,r.max,o)}function vp(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const bp={duration:.45,ease:[.4,0,.1,1]},xp=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ep=xp("applewebkit/")&&!xp("chrome/")?Math.round:va;function kp(e){e.min=Ep(e.min),e.max=Ep(e.max)}function Sp(e,t,r){return"position"===e||"preserve-aspect"===e&&(o=Wd(t),n=Wd(r),.2,!(Math.abs(o-n)<=.2));var o,n}function Cp(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const Pp=op({attachResizeListener:(e,t)=>xs(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Tp={current:void 0},Lp=op({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Tp.current){const e=new Pp({});e.mount(window),e.setOptions({layoutScroll:!0}),Tp.current=e}return Tp.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Mp={pan:{Feature:class extends Os{constructor(){super(...arguments),this.removePointerDownListener=va}onPointerDown(e){this.session=new Cu(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:pd(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:gd(e),onStart:gd(t),onMove:r,onEnd:(e,t)=>{delete this.session,o&&fs.postRender((()=>o(e,t)))}}}mount(){this.removePointerDownListener=Cs(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Os{constructor(e){super(e),this.removeGroupControls=va,this.removeListeners=va,this.controls=new hd(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||va}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Lp,MeasureLayout:Ed}},Rp={current:null},Ap={current:!1},_p=new WeakMap,Op=[...fl,Ml,Bl],Np=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Dp=Wa.length;class Fp{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:n,visualState:a},i={}){this.applyWillChange=!1,this.resolveKeyframes=(e,t,r,o)=>new this.KeyframeResolver(e,t,r,o,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=El,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,fs.render(this.render,!1,!0))};const{latestValues:s,renderState:l}=a;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=o,this.options=i,this.blockInitialAnimation=Boolean(n),this.isControllingVariants=qa(t),this.isVariantNode=Za(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in u){const t=u[e];void 0!==s[e]&&si(t)&&t.set(s[e],!1)}}mount(e){this.current=e,_p.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),Ap.current||function(){if(Ap.current=!0,Sa)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Rp.current=e.matches;e.addListener(t),t()}else Rp.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Rp.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){_p.delete(this.current),this.projection&&this.projection.unmount(),gs(this.notifyUpdate),gs(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){const r=ai.has(e),o=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&fs.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)})),n=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{o(),n(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in Xa){const t=Xa[e];if(!t)continue;const{isEnabled:r,Feature:o}=t;if(!this.features[e]&&o&&r(this.props)&&(this.features[e]=new o(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ku()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Np.length;t++){const r=Np[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const o=e["on"+r];o&&(this.propEventSubscriptions[r]=this.on(r,o))}this.prevMotionValues=function(e,t,r){for(const o in t){const n=t[o],a=r[o];if(si(n))e.addValue(o,n);else if(si(a))e.addValue(o,cu(n,{owner:e}));else if(a!==n)if(e.hasValue(o)){const t=e.getValue(o);!0===t.liveStyle?t.jump(n):t.hasAnimated||t.set(n)}else{const t=e.getStaticValue(o);e.addValue(o,cu(void 0!==t?t:n,{owner:e}))}}for(const o in r)void 0===t[o]&&e.removeValue(o);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<Dp;e++){const r=Wa[e],o=this.props[r];(Ua(o)||!1===o)&&(t[r]=o)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=cu(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){var r;let o=void 0===this.latestValues[e]&&this.current?null!==(r=this.getBaseTargetFromProps(this.props,e))&&void 0!==r?r:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=o&&("string"==typeof o&&(nl(o)||ol(o))?o=parseFloat(o):!(e=>Op.find(hl(e)))(o)&&Bl.test(t)&&(o=Zl(e,t)),this.setBaseTarget(e,si(o)?o.get():o)),si(o)?o.get():o}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:r}=this.props;let o;if("string"==typeof r||"object"==typeof r){const n=rs(this.props,r,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);n&&(o=n[e])}if(r&&void 0!==o)return o;const n=this.getBaseTargetFromProps(this.props,e);return void 0===n||si(n)?void 0!==this.initialValues[e]&&void 0===o?void 0:this.baseTarget[e]:n}on(e,t){return this.events[e]||(this.events[e]=new iu),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Vp extends Fp{constructor(){super(...arguments),this.KeyframeResolver=Yl}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}}class jp extends Vp{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=Xi}readValueFromInstance(e,t){if(ai.has(t)){const e=ql(t);return e&&e.default||0}{const o=(r=e,window.getComputedStyle(r)),n=(Ri(t)?o.getPropertyValue(t):o[t])||0;return"string"==typeof n?n.trim():n}var r}measureInstanceViewportBox(e,{transformPagePoint:t}){return dd(e,t)}build(e,t,r){Ni(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return Qi(e,t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;si(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}class Ip extends Vp{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ku}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(ai.has(t)){const e=ql(t);return e&&e.default||0}return t=Gi.has(t)?t:Ma(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return es(e,t,r)}build(e,t,r){Wi(e,t,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,r,o){Ji(e,t,0,o)}mount(e){this.isSVGTag=Zi(e.tagName),super.mount(e)}}const Bp=(e,t)=>ri(e)?new Ip(t):new jp(t,{allowProjection:e!==r.Fragment}),Hp={...ku,...Us,...Mp,layout:{ProjectionNode:Lp,MeasureLayout:Ed}},Up=ei(((e,t)=>function(e,{forwardMotionProps:t=!1},r,o){return{...ri(e)?vs:bs,preloadedFeatures:r,useRender:Yi(t),createVisualElement:o,Component:e}}(e,t,Hp,Bp))),zp=e=>{let t;const r=new Set,o=(e,o)=>{const n="function"==typeof e?e(t):e;if(!Object.is(n,t)){const e=t;t=(null!=o?o:"object"!=typeof n||null===n)?n:Object.assign({},t,n),r.forEach((r=>r(t,e)))}},n=()=>t,a={setState:o,getState:n,getInitialState:()=>i,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},i=t=e(o,n,a);return a};var $p=n(798);const{useDebugValue:Wp}=r,{useSyncExternalStoreWithSelector:qp}=$p;let Zp=!1;const Kp=e=>e,Yp=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"==typeof e?(e=>e?zp(e):zp)(e):e,r=(e,r)=>function(e,t=Kp,r){r&&!Zp&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Zp=!0);const o=qp(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return Wp(o),o}(t,e,r);return Object.assign(r,t),r},Xp=e=>e?Yp(e):Yp,Gp=new Map,Jp=e=>{const t=Gp.get(e);return t?Object.fromEntries(Object.entries(t.stores).map((([e,t])=>[e,t.getState()]))):{}},Qp=(e,t={})=>(r,o,n)=>{const{enabled:a,anonymousActionType:i,store:s,...l}=t;let c;try{c=(null==a||a)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(e){}if(!c)return a&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(r,o,n);const{connection:u,...d}=((e,t,r)=>{if(void 0===e)return{type:"untracked",connection:t.connect(r)};const o=Gp.get(r.name);if(o)return{type:"tracked",store:e,...o};const n={connection:t.connect(r),stores:{}};return Gp.set(r.name,n),{type:"tracked",store:e,...n}})(s,c,l);let p=!0;n.setState=(e,t,a)=>{const c=r(e,t);if(!p)return c;const d=void 0===a?{type:i||"anonymous"}:"string"==typeof a?{type:a}:a;return void 0===s?(null==u||u.send(d,o()),c):(null==u||u.send({...d,type:`${s}/${d.type}`},{...Jp(l.name),[s]:n.getState()}),c)};const m=(...e)=>{const t=p;p=!1,r(...e),p=t},h=e(n.setState,o,n);if("untracked"===d.type?null==u||u.init(h):(d.stores[d.store]=n,null==u||u.init(Object.fromEntries(Object.entries(d.stores).map((([e,t])=>[e,e===d.store?h:t.getState()]))))),n.dispatchFromDevtools&&"function"==typeof n.dispatch){let e=!1;const t=n.dispatch;n.dispatch=(...r)=>{"__setState"!==r[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...r)}}return u.subscribe((e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):em(e.payload,(e=>{if("__setState"!==e.type)n.dispatchFromDevtools&&"function"==typeof n.dispatch&&n.dispatch(e);else{if(void 0===s)return void m(e.state);1!==Object.keys(e.state).length&&console.error('\n [zustand devtools middleware] Unsupported __setState action format. \n When using \'store\' option in devtools(), the \'state\' should have only one key, which is a value of \'store\' that was passed in devtools(),\n and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }\n ');const t=e.state[s];if(null==t)return;JSON.stringify(n.getState())!==JSON.stringify(t)&&m(t)}}));case"DISPATCH":switch(e.payload.type){case"RESET":return m(h),void 0===s?null==u?void 0:u.init(n.getState()):null==u?void 0:u.init(Jp(l.name));case"COMMIT":return void 0===s?void(null==u||u.init(n.getState())):null==u?void 0:u.init(Jp(l.name));case"ROLLBACK":return em(e.state,(e=>{if(void 0===s)return m(e),void(null==u||u.init(n.getState()));m(e[s]),null==u||u.init(Jp(l.name))}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return em(e.state,(e=>{void 0!==s?JSON.stringify(n.getState())!==JSON.stringify(e[s])&&m(e[s]):m(e)}));case"IMPORT_STATE":{const{nextLiftedState:r}=e.payload,o=null==(t=r.computedStates.slice(-1)[0])?void 0:t.state;if(!o)return;return m(void 0===s?o:o[s]),void(null==u||u.send(null,r))}case"PAUSE_RECORDING":return p=!p}return}})),h},em=(e,t)=>{let r;try{r=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==r&&t(r)};function tm(e,t){let r;try{r=e()}catch(e){return}return{getItem:e=>{var o;const n=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),a=null!=(o=r.getItem(e))?o:null;return a instanceof Promise?a.then(n):n(a)},setItem:(e,o)=>r.setItem(e,JSON.stringify(o,null==t?void 0:t.replacer)),removeItem:e=>r.removeItem(e)}}const rm=e=>t=>{try{const r=e(t);return r instanceof Promise?r:{then:e=>rm(e)(r),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>rm(t)(e)}}},om=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),((e,t)=>(r,o,n)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},i=!1;const s=new Set,l=new Set;let c;try{c=a.getStorage()}catch(e){}if(!c)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),r(...e)}),o,n);const u=rm(a.serialize),d=()=>{const e=a.partialize({...o()});let t;const r=u({state:e,version:a.version}).then((e=>c.setItem(a.name,e))).catch((e=>{t=e}));if(t)throw t;return r},p=n.setState;n.setState=(e,t)=>{p(e,t),d()};const m=e(((...e)=>{r(...e),d()}),o,n);let h;const f=()=>{var e;if(!c)return;i=!1,s.forEach((e=>e(o())));const t=(null==(e=a.onRehydrateStorage)?void 0:e.call(a,o()))||void 0;return rm(c.getItem.bind(c))(a.name).then((e=>{if(e)return a.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===a.version)return e.state;if(a.migrate)return a.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return h=a.merge(e,null!=(t=o())?t:m),r(h,!0),d()})).then((()=>{null==t||t(h,void 0),i=!0,l.forEach((e=>e(h)))})).catch((e=>{null==t||t(void 0,e)}))};return n.persist={setOptions:e=>{a={...a,...e},e.getStorage&&(c=e.getStorage())},clearStorage:()=>{null==c||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>f(),hasHydrated:()=>i,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},f(),h||m})(e,t)):((e,t)=>(r,o,n)=>{let a={storage:tm((()=>localStorage)),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},i=!1;const s=new Set,l=new Set;let c=a.storage;if(!c)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),r(...e)}),o,n);const u=()=>{const e=a.partialize({...o()});return c.setItem(a.name,{state:e,version:a.version})},d=n.setState;n.setState=(e,t)=>{d(e,t),u()};const p=e(((...e)=>{r(...e),u()}),o,n);let m;n.getInitialState=()=>p;const h=()=>{var e,t;if(!c)return;i=!1,s.forEach((e=>{var t;return e(null!=(t=o())?t:p)}));const n=(null==(t=a.onRehydrateStorage)?void 0:t.call(a,null!=(e=o())?e:p))||void 0;return rm(c.getItem.bind(c))(a.name).then((e=>{if(e){if("number"!=typeof e.version||e.version===a.version)return[!1,e.state];if(a.migrate)return[!0,a.migrate(e.state,e.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]})).then((e=>{var t;const[n,i]=e;if(m=a.merge(i,null!=(t=o())?t:p),r(m,!0),n)return u()})).then((()=>{null==n||n(m,void 0),m=o(),i=!0,l.forEach((e=>e(m)))})).catch((e=>{null==n||n(void 0,e)}))};return n.persist={setOptions:e=>{a={...a,...e},e.storage&&(c=e.storage)},clearStorage:()=>{null==c||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>h(),hasHydrated:()=>i,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},a.skipHydration||h(),m||p})(e,t),nm={siteType:{},siteStructure:void 0,siteInformation:{title:void 0},businessInformation:{description:void 0,tones:[],acceptTerms:!1},siteTypeSearch:[],style:null,pages:[],plugins:void 0,goals:void 0},am=`extendify-launch-user-selection-${window.extSharedData.siteId}`,im=l(window.extSharedData.userData.userSelectionData),sm="/extendify/v1/shared/user-selections-data",lm={getItem:async()=>await se()({path:sm}),setItem:async(e,t)=>await se()({path:sm,method:"POST",data:{state:t}})},cm=Xp(om(Qp(((e,t)=>{var r,o;return{...nm,...null!==(r=im?.state)&&void 0!==r?r:{},...null!==(o=JSON.parse(localStorage.getItem(am)||"{}")?.state)&&void 0!==o?o:{},setSiteType(t){e({...nm,siteType:t})},setSiteStructure(t){if(!["single-page","multi-page"].includes(t))throw new Error("Page structure doesn't exist");e({siteStructure:t})},setSiteTypeSearch(t){e((e=>({siteTypeSearch:[...e.siteTypeSearch,t].slice(-10)})))},setSiteInformation(r,o){const n={...t().siteInformation,[r]:o};e({siteInformation:n})},setBusinessInformation(r,o){const n={...t().businessInformation,[r]:o};e({businessInformation:n})},has(e,r){var o;return!!r?.id&&(null!==(o=t()?.[e])&&void 0!==o?o:[])?.some((e=>e.id===r.id))},add(r,o){var n;t().has(r,o)||e({[r]:[...null!==(n=t()?.[r])&&void 0!==n?n:[],o]})},addMany(r,o,n={}){var a;n.clearExisting?e({[r]:o}):e({[r]:[...null!==(a=t()?.[r])&&void 0!==a?a:[],...o]})},remove(r,o){e({[r]:t()?.[r]?.filter((e=>e.id!==o.id))})},removeMany(r,o){e({[r]:t()?.[r]?.filter((e=>!o.some((t=>t.id===e.id))))})},removeAll(t){e({[t]:[]})},toggle(e,r){t().has(e,r)?t().remove(e,r):t().add(e,r)},setStyle(t){e({style:t})},canLaunch(){var e,r;return Object.keys(null!==(e=t()?.siteType)&&void 0!==e?e:{})?.length>0&&Object.keys(null!==(r=t()?.style)&&void 0!==r?r:{})?.length>0},resetState(){e(nm)}}}),{name:"Extendify User Selections"}),{storage:tm((()=>lm)),skipHydration:!0})),um=({setPage:e})=>{var t,o,n;const i=null!==(t=window.extOnbData.resetSiteInformation.pagesIds)&&void 0!==t?t:[],s=null!==(o=window.extOnbData.resetSiteInformation.navigationsIds)&&void 0!==o?o:[],l=null!==(n=window.extOnbData.resetSiteInformation.templatePartsIds)&&void 0!==n?n:[],{resetState:c}=cm(),[u,d]=(0,a.useState)(!1),[p,m]=(0,a.useState)(!1),h=(0,a.useRef)(null);return(0,a.useEffect)((()=>{i.length>0&&(d(!0),e(0))}),[i.length,d,e]),(0,r.createElement)(Pa,null,u&&(0,r.createElement)(sa,{initialFocus:h,static:!0,open:u,as:Up.div,initial:!1,animate:{opacity:1},exit:{opacity:0},"data-test":"confirmation-launch",className:"extendify-launch extendify-launch-modal",onClose:()=>null},(0,r.createElement)("div",{className:"absolute top-0 mx-auto flex h-screen w-full items-center justify-center md:p-8"},(0,r.createElement)("div",{className:"fixed inset-0 bg-black/30",style:{backdropFilter:"blur(2px)",zIndex:99999},"aria-hidden":"true"}),(0,r.createElement)("div",{style:{zIndex:100099},className:"relative mx-6 max-w-screen-3xl rounded bg-white shadow-2xl sm:flex sm:overflow-hidden"},(0,r.createElement)(sa.Panel,{className:"flex flex-col"},(0,r.createElement)(sa.Title,{className:"m-0 flex items-center py-6 pl-8 pr-7 text-2xl font-bold text-gray-900"},(0,le.__)("Start over?","extendify-local")),(0,r.createElement)("div",{className:"relative max-w-screen-sm px-8 py-0 text-left text-base font-normal"},(0,le.__)("Go through the onboarding process again to create a new site.","extendify-local"),(0,r.createElement)("br",null),(0,r.createElement)("strong",null,(0,le.sprintf)( // translators: %3$s is the number of old pages (0,le.__)("%s pages created in the prior onboarding session will be deleted.","extendify-local"),i.length))),(0,r.createElement)("div",{className:"flex justify-end space-x-4 px-8 py-8 text-base"},(0,r.createElement)(dm,{"data-test":"modal-exit-button",onClick:()=>window.location.href=`${window.extSharedData.adminUrl}admin.php?page=extendify-assist`,disabled:p,className:"border-gray-200 bg-white text-design-main hover:bg-gray-50 focus:bg-gray-50"},(0,le.__)("Exit","extendify-local")),(0,r.createElement)(dm,{onClick:async()=>{m(!0),c();for(const e of i)try{await se()({path:`/wp/v2/pages/${e}`,method:"DELETE"})}catch(t){console.warn(`delete pages failed to delete a page (id: ${e}) with the following error`,t)}for(const e of s)try{await se()({path:`/wp/v2/navigation/${e}`,method:"DELETE"})}catch(t){console.warn(`delete navigation failed to delete a navigation (id: ${e}) with the following error`,t)}for(const e of l)try{await se()({path:`/wp/v2/template-parts/${e}?force=true`,method:"DELETE"})}catch(t){console.warn(`delete template failed to delete template (id: ${e}) with the following error`,t)}d(!1)},disabled:p,className:"border-design-main bg-design-main text-design-text","data-test":"modal-continue-button"},p?(0,r.createElement)("div",{className:"flex items-center justify-center"},(0,r.createElement)(zr.Spinner,null),(0,r.createElement)("div",null,(0,le.__)("Processing","extendify-local"))):(0,le.__)("Continue","extendify-local"))))))))},dm=(0,a.forwardRef)(((e,t)=>(0,r.createElement)("button",{ref:t,...e,className:ca()("button-focus flex items-center rounded border px-6 py-3 leading-6",{"cursor-not-allowed opacity-50":e.disabled},e.className),type:"button"},e.children))),pm=({show:e})=>e?(0,r.createElement)(Pa,null,(0,r.createElement)(Up.div,{className:"extendify-launch fixed bottom-[100px] z-max flex w-full justify-end px-12 pb-4"},(0,r.createElement)("div",{className:"shadow-2xl"},(0,r.createElement)(zr.Snackbar,null,(0,le.__)("Just a moment, this is taking longer than expected.","extendify-local"))))):null,mm=Qp((()=>({generating:!1})),{name:"Extendify Launch Globals"}),hm=Xp(mm),fm=({setAcceptTerms:e,acceptTerms:t,consentTermsHTML:o})=>(0,r.createElement)("div",{className:"flex flex-col"},(0,r.createElement)("label",{htmlFor:"accept-terms",className:"focus-within:text-design-mains ml-1 flex cursor-pointer items-center text-base"},(0,r.createElement)("span",{className:"relative"},(0,r.createElement)("input",{id:"accept-terms",className:"h-4 w-4 rounded-sm focus:ring-0 focus:ring-offset-0",type:"checkbox",onChange:()=>e(!t),checked:t}),(0,r.createElement)("svg",{className:ca()("absolute inset-0 block h-5 w-4",{"text-white":t,"text-transparent":!t}),viewBox:"1 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation"},(0,r.createElement)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"}))),(0,r.createElement)("span",{className:"m-0 ml-1.5 text-lg font-medium text-gray-900 md:text-base"},(0,le.__)("I agree (required to use AI Assistant)","extendify-local"))),(0,r.createElement)("p",{className:"m-0 mx-7 mb-2 mt-1 p-0 text-sm text-gray-700",dangerouslySetInnerHTML:{__html:o}})),gm=({description:e,setDescription:t})=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)("label",{htmlFor:"extendify-business-info-input",className:"m-0 text-lg font-medium leading-8 text-gray-900 md:text-base md:leading-10"},(0,le.__)("Website description","extendify-local")),(0,r.createElement)("textarea",{"data-test":"business-info-input",autoComplete:"off",autoFocus:!0,rows:"4",name:"business-info-input",id:"extendify-business-info-input",className:"input-focus placeholder:text-md h-40 w-full rounded-lg border border-gray-300 p-2 ring-offset-0 placeholder:italic placeholder:opacity-50",value:null!=e?e:"",onChange:e=>t(e.target.value),placeholder:(0,le.__)("E.g., We are a yoga studio in London with professionally trained instructors with focus on hot yoga for therapeutic purposes.","extendify-local")})),ym=()=>{const{businessInformation:e,setBusinessInformation:t}=cm(),o=[{label:(0,le.__)("Professional","extendify-local"),value:"professional"},{label:(0,le.__)("Friendly","extendify-local"),value:"friendly"},{label:(0,le.__)("Inspirational","extendify-local"),value:"inspirational"},{label:(0,le.__)("Informative","extendify-local"),value:"informative"},{label:(0,le.__)("Persuasive","extendify-local"),value:"persuasive"}];return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("label",{htmlFor:"extendify-business-info-tone",className:"m-0 text-lg font-medium leading-8 text-gray-900 md:text-base md:leading-10"},(0,le.__)("Select your site's tone (optional)","extendify-local")),(0,r.createElement)("div",{className:"justify-left flex w-full flex-wrap gap-2"},o.map((o=>{const n=e.tones?.find((({value:e})=>e===o.value));return(0,r.createElement)("div",{key:o.value,className:ca()("relative rounded border border-gray-300",{"bg-gray-100":n,"border-gray-300":!n})},(0,r.createElement)("label",{htmlFor:o.value,className:"flex h-full w-full cursor-pointer items-center justify-between p-2 text-gray-900"},(0,r.createElement)("div",{className:"flex flex-auto items-center"},(0,r.createElement)("span",{className:"relative mr-1 inline-block h-4 w-4 align-middle"},(0,r.createElement)("input",{id:o.value,className:"h-4 w-4 rounded-sm focus:ring-0 focus:ring-offset-0",type:"checkbox",onChange:()=>(r=>{let{tones:o}=e;const n=o?.find((({value:e})=>e===r.value))?o?.filter((({value:e})=>e!==r.value)):[...o,r];t("tones",n)})(o),checked:!!e.tones?.find((({value:e})=>e===o.value))}),(0,r.createElement)("svg",{className:ca()("absolute inset-0 -mt-px block h-4 w-4",{"text-white":n,"text-transparent":!n}),viewBox:"1 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation"},(0,r.createElement)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"}))),(0,r.createElement)("span",{className:"font-small text-sm"},o.label))))}))))},wm=({title:e,description:t})=>(0,r.createElement)("div",{className:"relative mx-auto w-full max-w-xl"},(0,r.createElement)("div",{className:"mb-8 flex flex-col gap-2 md:mb-12"},(0,r.createElement)("h2",{className:"m-0 text-center text-2xl leading-8 text-gray-900 md:leading-10"},e),t&&(0,r.createElement)("p",{className:"m-0 text-center text-base leading-6 text-gray-700"},t))),vm=e=>(0,r.createElement)("button",{...e,className:ca()("button-focus flex items-center rounded border px-6 py-3 leading-6",{"cursor-not-allowed opacity-50":e.disabled},e.className),type:"button"},e.children),bm="https://patterns.extendify.com",xm="https://ai.extendify.com",Em=async(e,t,r={})=>{const{showLocalizedCopy:o,wpVersion:n,wpLanguage:a,allowedPlugins:i}=window.extSharedData,{goals:s,plugins:l}=cm.getState(),c=new URL(`${bm}/api/${e}-templates`);c.searchParams.append("siteType",t?.slug),n&&c.searchParams.append("wpVersion",n),a&&c.searchParams.append("lang",a),s?.length&&c.searchParams.append("goals",JSON.stringify(s)),l?.length&&c.searchParams.append("plugins",JSON.stringify(l)),o&&c.searchParams.append("showLocalizedCopy",!0),i&&c.searchParams.append("allowedPlugins",JSON.stringify(i)),Object.entries(r).forEach((([e,t])=>{if(null!=t)return"object"==typeof t?c.searchParams.append(e,JSON.stringify(t)):void c.searchParams.append(e,t)}));const u=await fetch(c.toString(),{headers:{"Content-Type":"application/json"}});if(!u.ok)throw new Error("Bad response from server");return await u.json()},km=["partnerId","devbuild","version","siteId","wpLanguage","wpVersion"],Sm={...Object.fromEntries(Object.entries(window.extSharedData).filter((([e])=>km.includes(e))))},Cm=window.wp.blockEditor,Pm=window.wp.blocks,Tm=window.lodash,Lm=new WeakMap,Mm=({container:e,onLoad:t,ready:r,loadDelay:o})=>{const n=(()=>{const e=(0,a.useRef)(!1);return(0,a.useEffect)((()=>(e.current=!0,()=>e.current=!1))),e})(),[i,s]=(0,a.useState)(0),[l,c]=(0,a.useState)(null),[u,d]=(0,a.useState)(!1),p=(0,a.useRef)(!1),m=(0,a.useCallback)((async(e,t)=>{var r;if(e.getBoundingClientRect().top<t.getBoundingClientRect().top)return;p.current=!0;let o=t.querySelector('[style*="scale"]')?.style?.transform?.match(/scale\((.*?)\)/)?.[1];o=o?parseFloat(o):null;const n=t.offsetHeight/(null!==(r=o)&&void 0!==r?r:1);e.style.setProperty("max-height",`${n}px`,"important");const a=e.contentDocument.querySelectorAll(".wp-block-cover");for(const e of a)Lm.has(e)||Lm.set(e,e.style.minHeight),e.style.minHeight=Lm.get(e);t.offsetHeight,await new Promise((e=>requestAnimationFrame(e))),await new Promise((e=>requestAnimationFrame(e)));for(const t of a){if(!e.contentDocument?.defaultView)return;const r=parseFloat(e.contentDocument.defaultView.getComputedStyle(t).height);t.offsetHeight,t.style.minHeight=r>784?"784px":r+"px"}e.style.setProperty("max-height","none","important"),p.current=!1}),[]);return(0,a.useLayoutEffect)((()=>{if(!r)return;const o=setTimeout((()=>{const r=e?.querySelector("iframe[title]");if(!r)return s((e=>e+1));c(r),requestAnimationFrame((()=>t(r,e)))}),100);return()=>clearTimeout(o)}),[l,r,i,e,t]),(0,a.useLayoutEffect)((()=>{if(d(!1),!l?.contentDocument)return;const t={attributes:!1,childList:!0,subtree:!0};requestAnimationFrame((()=>r(l,e))),setTimeout((()=>r()),2e3);const r=(0,Tm.debounce)((()=>{n.current&&!p.current&&(a.disconnect(),m(l,e).then((()=>{setTimeout((()=>d(!0)),o),n.current&&a.observe(l.contentDocument,t)})))}),300),a=new MutationObserver(r);return a.observe(l.contentDocument,t),()=>{r.cancel(),a?.disconnect()}}),[l,e,n,r,m,o]),{loading:!l,ready:u}},Rm=e=>e.replace(/(https?:\/\/\S+\?w=\d+)/gi,"$1&q=10&auto=format,compress&fm=avif"),Am=async()=>{try{return await Sr.get("launch/ping"),!0}catch(e){}return await new Promise((e=>setTimeout(e,1e3))),Am()},_m=(e,t)=>e?.filter((e=>e.includes(t)))?.length,Om=JSON.parse('{"Bloom":"body { --wp--preset--color--foreground: #000000; --wp--preset--color--background: #ffffff; --wp--preset--color--primary: #014932; --wp--preset--color--secondary: #395144; --wp--preset--color--tertiary: #FFEFEA; --wp--preset--color--foreground-alt: #333333; --wp--custom--elements--button--border--radius: 0.4rem; --wp--custom--elements--button--color--background: var(--wp--preset--color--primary); --wp--custom--elements--button--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--hover--color--background: var(--wp--preset--color--foreground); --wp--custom--elements--button--hover--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--focus--color--background: var(--wp--preset--color--primary); --wp--custom--elements--button--focus--color--text: var(--wp--preset--color--background);}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{color: var(--wp--preset--color--foreground-alt);font-family: var(--wp--preset--font-family--ibm-plex-sans);}h1, h2, h3, h4, h5, h6{color: var(--wp--preset--color--foreground);font-family: var(--wp--preset--font-family--marcellus);}h1{font-weight: 400;}h2{font-weight: 400;}h3{font-weight: 400;}h4{font-weight: 400;}h5{font-weight: 400;}h6{font-weight: 400;}.wp-element-button, .wp-block-button__link{border-radius: 0.4rem;font-size: 1.0625rem;font-weight: var(--wp--custom--typography--font-weight--medium);line-height: inherit;padding-top: 0.838rem;padding-right: 2.5rem;padding-bottom: 0.838rem;padding-left: 2.5rem;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-color{color: var(--wp--preset--color--foreground-alt) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-background-color{background-color: var(--wp--preset--color--foreground-alt) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-border-color{border-color: var(--wp--preset--color--foreground-alt) !important;}.wp-block-button.is-style-outline .wp-block-button__link.wp-element-button { background: transparent none; border-color: currentColor; border-width: 2px; border-style: solid; color: currentColor; padding-top: 0.667em; padding-right: 1.33em; padding-bottom: 0.667em; padding-left: 1.33em; }","Brisbane":"body { --wp--preset--color--foreground: #f7fafc; --wp--preset--color--background: #3f5762; --wp--preset--color--primary: #F9F6DE; --wp--preset--color--secondary: #fcf8f2; --wp--preset--color--tertiary: #2d3f47; --wp--preset--color--foreground-alt: var(--wp--preset--color--foreground); --wp--custom--blocks--core-table--variant-stripes--color--background: var(--wp--preset--color--primary); --wp--custom--elements--button--color--background: var(--wp--preset--color--primary); --wp--custom--elements--button--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--hover--color--background: var(--wp--preset--color--foreground); --wp--custom--elements--button--hover--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--focus--color--background: var(--wp--preset--color--primary); --wp--custom--elements--button--focus--color--text: var(--wp--preset--color--background); }body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--radio-canada);line-height: var(--wp--custom--typography--line-height--medium);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--arsenal);}h1{font-weight: 500;letter-spacing: -0.01em;}h2{font-weight: 500;letter-spacing: 0.01em;}h3{font-weight: 600;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}.wp-block-button.is-style-outline .wp-block-button__link.wp-element-button { background: transparent none; border-color: currentColor; border-width: 2px; border-style: solid; color: currentColor; padding-top: 0.667em; padding-right: 1.33em; padding-bottom: 0.667em; padding-left: 1.33em; }","Cairo":"body { --wp--preset--color--foreground: #ffffff; --wp--preset--color--background: #393646; --wp--preset--color--primary: #F4EEE0; --wp--preset--color--secondary: #EFE1D1; --wp--preset--color--tertiary: #4F4557; --wp--preset--color--foreground-alt: var(--wp--preset--color--foreground); --wp--custom--elements--button--color--background: var(--wp--preset--color--primary); --wp--custom--elements--button--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--hover--color--background: var(--wp--preset--color--foreground); --wp--custom--elements--button--hover--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--focus--color--background: var(--wp--preset--color--primary); --wp--custom--elements--button--focus--color--text: var(--wp--preset--color--background); }body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--source-serif-pro);}h1{font-weight: var(--wp--custom--typography--font-weight--semi-bold);letter-spacing: 0;}h2{font-weight: var(--wp--custom--typography--font-weight--semi-bold);}h3{font-weight: var(--wp--custom--typography--font-weight--semi-bold);}h4{font-weight: var(--wp--custom--typography--font-weight--semi-bold);}h5{font-weight: var(--wp--custom--typography--font-weight--bold);}h6{font-weight: var(--wp--custom--typography--font-weight--bold);}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}.wp-block-button.is-style-outline .wp-block-button__link.wp-element-button { background: transparent none; border-color: currentColor; border-width: 2px; border-style: solid; color: currentColor; padding-top: 0.667em; padding-right: 1.33em; padding-bottom: 0.667em; padding-left: 1.33em; }","FusionSky":"body { --wp--preset--color--foreground: #000000; --wp--preset--color--background: #ffffff; --wp--preset--color--primary: #0B51C2; --wp--preset--color--secondary: #C4FF47; --wp--preset--color--tertiary: #F9FAFE; --wp--preset--color--foreground-alt: #333333; --wp--custom--elements--button--border--radius: 2rem; --wp--custom--elements--button--color--background: var(--wp--preset--color--secondary); --wp--custom--elements--button--color--text: var(--wp--preset--color--foreground); --wp--custom--elements--button--hover--color--background: var(--wp--preset--color--foreground); --wp--custom--elements--button--hover--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--focus--color--background: var(--wp--preset--color--foreground); --wp--custom--elements--button--focus--color--text: var(--wp--preset--color--background); }body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{color: var(--wp--preset--color--foreground-alt);font-family: var(--wp--preset--font-family--mulish);}h1, h2, h3, h4, h5, h6{color: var(--wp--preset--color--foreground);font-family: var(--wp--preset--font-family--jost);}h1{font-weight: 400;}h2{font-weight: 400;}h3{font-weight: 500;}h4{font-weight: 500;}h5{font-weight: 500;}h6{font-weight: 500;}.wp-element-button, .wp-block-button__link{background-color: var(--wp--preset--color--secondary);color: var(--wp--preset--color--foreground);font-size: inherit;font-weight: var(--wp--custom--typography--font-weight--medium);line-height: inherit;}.wp-element-button:visited, .wp-block-button__link:visited{color: var(--wp--preset--color--foreground);}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-color{color: var(--wp--preset--color--foreground-alt) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-background-color{background-color: var(--wp--preset--color--foreground-alt) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-border-color{border-color: var(--wp--preset--color--foreground-alt) !important;}.wp-block-button.is-style-outline .wp-block-button__link.wp-element-button { background: transparent none; border-color: currentColor; border-width: 2px; border-style: solid; color: currentColor; padding-top: 0.667em; padding-right: 1.33em; padding-bottom: 0.667em; padding-left: 1.33em; }","Gdansk":"body { --wp--preset--color--foreground: #fcece8; --wp--preset--color--background: #0c0c0b; --wp--preset--color--primary: #f5ac8e; --wp--preset--color--secondary: #9d2c1e; --wp--preset--color--tertiary: #50140d; --wp--preset--color--foreground-alt: var(--wp--preset--color--foreground); --wp--custom--elements--button--color--background: var(--wp--preset--color--primary); --wp--custom--elements--button--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--hover--color--background: var(--wp--preset--color--foreground); --wp--custom--elements--button--hover--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--focus--color--background: var(--wp--preset--color--primary); --wp--custom--elements--button--focus--color--text: var(--wp--preset--color--background); }body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--inter);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--montserrat);}h1{font-weight: var(--wp--custom--typography--font-weight--semi-bold);letter-spacing: 0;}h2{font-weight: var(--wp--custom--typography--font-weight--semi-bold);}h3{font-weight: var(--wp--custom--typography--font-weight--semi-bold);}h4{font-weight: var(--wp--custom--typography--font-weight--semi-bold);letter-spacing: 0.01em;}h5{font-weight: var(--wp--custom--typography--font-weight--bold);}h6{font-weight: var(--wp--custom--typography--font-weight--bold);letter-spacing: 0.02em;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}.wp-block-button.is-style-outline .wp-block-button__link.wp-element-button { background: transparent none; border-color: currentColor; border-width: 2px; border-style: solid; color: currentColor; padding-top: 0.667em; padding-right: 1.33em; padding-bottom: 0.667em; padding-left: 1.33em; }","Glasgow":"body { --wp--preset--color--background: #dbd3ce; --wp--preset--color--foreground: #13100f; --wp--preset--color--primary: #3b2300; --wp--preset--color--secondary: #d4a72c; --wp--preset--color--tertiary: #c6b6ac; --wp--preset--color--foreground-alt: var(--wp--preset--color--foreground); --wp--custom--elements--button--color--background: var(--wp--preset--color--primary); --wp--custom--elements--button--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--hover--color--background: var(--wp--preset--color--foreground); --wp--custom--elements--button--hover--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--focus--color--background: var(--wp--preset--color--primary); --wp--custom--elements--button--focus--color--text: var(--wp--preset--color--background); }body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--rubik);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--rubik);}h1{font-weight: 500;}h2{font-weight: 500;}h3{font-weight: 500;}h4{font-weight: 500;}h5{font-weight: 500;}h6{font-weight: 500;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}.wp-block-button.is-style-outline .wp-block-button__link.wp-element-button { background: transparent none; border-color: currentColor; border-width: 2px; border-style: solid; color: currentColor; padding-top: 0.667em; padding-right: 1.33em; padding-bottom: 0.667em; padding-left: 1.33em; }","Graphite":"body { --wp--preset--color--foreground: #000000; --wp--preset--color--background: #ffffff; --wp--preset--color--primary: #292929; --wp--preset--color--secondary: #303030; --wp--preset--color--tertiary: #E9E8E6; --wp--preset--color--foreground-alt: #444444; --wp--custom--elements--button--border--radius: 2rem; --wp--preset--color--foreground-alt: var(--wp--preset--color--foreground); --wp--custom--elements--button--color--background: var(--wp--preset--color--foreground); --wp--custom--elements--button--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--hover--color--background: var(--wp--preset--color--secondary); --wp--custom--elements--button--hover--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--focus--color--background: var(--wp--preset--color--foreground); --wp--custom--elements--button--focus--color--text: var(--wp--preset--color--background); }body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{color: var(--wp--preset--color--foreground-alt);font-family: var(--wp--preset--font-family--manrope);}h1, h2, h3, h4, h5, h6{color: var(--wp--preset--color--foreground);font-family: var(--wp--preset--font-family--gotu);font-weight: 400;}.wp-element-button, .wp-block-button__link{font-size: 1.0625rem;font-weight: var(--wp--custom--typography--font-weight--medium);line-height: inherit;padding-top: 0.838rem;padding-right: 2rem;padding-bottom: 0.838rem;padding-left: 2rem;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-color{color: var(--wp--preset--color--foreground-alt) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-background-color{background-color: var(--wp--preset--color--foreground-alt) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-border-color{border-color: var(--wp--preset--color--foreground-alt) !important;}.wp-block-button.is-style-outline .wp-block-button__link.wp-element-button { background: transparent none; border-color: currentColor; border-width: 2px; border-style: solid; color: currentColor; padding-top: 0.667em; padding-right: 1.33em; padding-bottom: 0.667em; padding-left: 1.33em; }","Hong Kong":"body { --wp--preset--color--background: #ffebe9; --wp--preset--color--foreground: #a40e26; --wp--preset--color--primary: #860000; --wp--preset--color--secondary: #ffcecb; --wp--preset--color--tertiary: #ffffff; --wp--preset--color--foreground-alt: var(--wp--preset--color--foreground); --wp--custom--elements--button--border--radius: 0.5rem; --wp--custom--elements--button--color--background: var(--wp--preset--color--foreground); --wp--custom--elements--button--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--hover--color--background: var(--wp--preset--color--primary); --wp--custom--elements--button--hover--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--focus--color--background: var(--wp--preset--color--foreground); --wp--custom--elements--button--focus--color--text: var(--wp--preset--color--background); --wp--custom--spacing--small: min(3rem, 4vw); }body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--space-mono);font-size: 1rem;font-weight: 400;line-height: var(--wp--custom--typography--line-height--large);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--space-mono);}h1{font-weight: 700;letter-spacing: normal;}h2{font-weight: 700;letter-spacing: normal;}h3{font-weight: 700;letter-spacing: normal;}h4{font-weight: 700;letter-spacing: normal;}h5{font-weight: 700;letter-spacing: normal;}h6{font-weight: 700;letter-spacing: normal;}.wp-element-button, .wp-block-button__link{border-radius: 0.5rem;font-size: var(--wp--preset--font-size--small);font-weight: 400;letter-spacing: 0.15rem;text-transform: uppercase;}.wp-element-button:hover, .wp-block-button__link:hover{background-color: var(--wp--preset--color--secondary);color: var(--wp--preset--color--primary);}.wp-element-button:focus, .wp-block-button__link:focus{background-color: var(--wp--preset--color--secondary);color: var(--wp--preset--color--primary);}.wp-element-button:active, .wp-block-button__link:active{background-color: var(--wp--preset--color--primary);color: var(--wp--preset--color--background);}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}.wp-block-button.is-style-outline .wp-block-button__link.wp-element-button { background: transparent none; border-color: currentColor; border-width: 2px; border-style: solid; color: currentColor; padding-top: 0.667em; padding-right: 1.33em; padding-bottom: 0.667em; padding-left: 1.33em; }","Kampala":"body { --wp--preset--color--background: #f7f9fe; --wp--preset--color--foreground: #010110; --wp--preset--color--primary: #0B119C; --wp--preset--color--secondary: #c1cbf9; --wp--preset--color--tertiary: #ffffff; --wp--preset--color--foreground-alt: var(--wp--preset--color--foreground); --wp--custom--elements--button--border--radius: 0.5rem; --wp--custom--elements--button--color--background: var(--wp--preset--color--primary); --wp--custom--elements--button--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--hover--color--background: var(--wp--preset--color--foreground); --wp--custom--elements--button--hover--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--focus--color--background: var(--wp--preset--color--primary); --wp--custom--elements--button--focus--color--text: var(--wp--preset--color--background); }body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--hind);}h1{letter-spacing: -0.01em;}h6{font-weight: 900;}.wp-element-button, .wp-block-button__link{border-radius: 0.5rem;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}.wp-block-button.is-style-outline .wp-block-button__link.wp-element-button { background: transparent none; border-color: currentColor; border-width: 2px; border-style: solid; color: currentColor; padding-top: 0.667em; padding-right: 1.33em; padding-bottom: 0.667em; padding-left: 1.33em; }","Lagoon":"body { --wp--preset--color--foreground: #292929; --wp--preset--color--background: #ffffff; --wp--preset--color--primary: #13607E; --wp--preset--color--secondary: #1F4F70; --wp--preset--color--tertiary: #faf7f8; --wp--preset--color--foreground-alt: #292929; --wp--custom--elements--button--color--background: var(--wp--preset--color--primary); --wp--custom--elements--button--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--hover--color--background: var(--wp--preset--color--foreground); --wp--custom--elements--button--hover--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--focus--color--background: var(--wp--preset--color--primary); --wp--custom--elements--button--focus--color--text: var(--wp--preset--color--background); }body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{color: var(--wp--preset--color--foreground-alt);font-family: var(--wp--preset--font-family--mulish);}h1, h2, h3, h4, h5, h6{color: var(--wp--preset--color--foreground);font-family: var(--wp--preset--font-family--baloo-tamma-2);}.wp-element-button, .wp-block-button__link{font-size: var(--wp--preset--font-size--small);font-weight: 600;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-color{color: var(--wp--preset--color--foreground-alt) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-background-color{background-color: var(--wp--preset--color--foreground-alt) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-border-color{border-color: var(--wp--preset--color--foreground-alt) !important;}.wp-block-button.is-style-outline .wp-block-button__link.wp-element-button { background: transparent none; border-color: currentColor; border-width: 2px; border-style: solid; color: currentColor; padding-top: 0.667em; padding-right: 1.33em; padding-bottom: 0.667em; padding-left: 1.33em; }","Odesa":"body { --wp--preset--color--foreground: #0b0449; --wp--preset--color--background: #ffffff; --wp--preset--color--primary: #0b0449; --wp--preset--color--secondary: #f3c8cf; --wp--preset--color--tertiary: #fcf9f5; --wp--preset--color--foreground-alt: #595769; --wp--custom--elements--button--border--radius: 2px; --wp--custom--elements--button--color--background: var(--wp--preset--color--primary); --wp--custom--elements--button--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--hover--color--background: var(--wp--preset--color--foreground); --wp--custom--elements--button--hover--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--focus--color--background: var(--wp--preset--color--primary); --wp--custom--elements--button--focus--color--text: var(--wp--preset--color--background); }body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{color: var(--wp--preset--color--foreground-alt);font-family: var(--wp--preset--font-family--roboto-flex);}h1, h2, h3, h4, h5, h6{color: var(--wp--preset--color--foreground);font-family: var(--wp--preset--font-family--source-serif-pro);}h1{font-weight: var(--wp--custom--typography--font-weight--semi-bold);letter-spacing: -0.01em;}h2{font-weight: var(--wp--custom--typography--font-weight--semi-bold);}h3{font-weight: var(--wp--custom--typography--font-weight--semi-bold);}h4{font-weight: var(--wp--custom--typography--font-weight--semi-bold);letter-spacing: 0.01em;}h5{font-weight: var(--wp--custom--typography--font-weight--bold);letter-spacing: 0.01em;text-transform: normal;}h6{font-weight: var(--wp--custom--typography--font-weight--black);letter-spacing: 0.02em;}.wp-element-button, .wp-block-button__link{border-radius: 2px;font-size: var(--wp--preset--font-size--small);}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-color{color: var(--wp--preset--color--foreground-alt) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-background-color{background-color: var(--wp--preset--color--foreground-alt) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-border-color{border-color: var(--wp--preset--color--foreground-alt) !important;}.wp-block-button.is-style-outline .wp-block-button__link.wp-element-button { background: transparent none; border-color: currentColor; border-width: 2px; border-style: solid; color: currentColor; padding-top: 0.667em; padding-right: 1.33em; padding-bottom: 0.667em; padding-left: 1.33em; }","Onyx":"body { --wp--preset--color--foreground: #FFFCFC; --wp--preset--color--background: #17181A; --wp--preset--color--primary: #FFFFFF; --wp--preset--color--secondary: #C4C4C4; --wp--preset--color--tertiary: #000000; --wp--preset--color--foreground-alt: var(--wp--preset--color--foreground); --wp--custom--elements--button--border--radius: 0.2rem; --wp--custom--elements--button--color--background: var(--wp--preset--color--primary); --wp--custom--elements--button--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--hover--color--background: var(--wp--preset--color--secondary); --wp--custom--elements--button--hover--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--focus--color--background: var(--wp--preset--color--primary); --wp--custom--elements--button--focus--color--text: var(--wp--preset--color--background); }body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--archivo);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--archivo);}h1{font-weight: 500;}h2{font-weight: 500;}h3{font-weight: 500;}h4{font-weight: 500;}h5{font-weight: 500;}h6{font-weight: 500;}.wp-element-button, .wp-block-button__link{border-radius: 0.2rem;font-size: 1.0625rem;font-weight: var(--wp--custom--typography--font-weight--medium);line-height: inherit;padding-top: 0.838rem;padding-right: 2.5rem;padding-bottom: 0.838rem;padding-left: 2.5rem;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}.wp-block-button.is-style-outline .wp-block-button__link.wp-element-button { background: transparent none; border-color: currentColor; border-width: 2px; border-style: solid; color: currentColor; padding-top: 0.667em; padding-right: 1.33em; padding-bottom: 0.667em; padding-left: 1.33em; }","Orange":"body { --wp--preset--color--background: #ffffff; --wp--preset--color--foreground: #1A1A1A; --wp--preset--color--primary: #DE3707; --wp--preset--color--secondary: #02235B; --wp--preset--color--tertiary: #f2f3f5; --wp--preset--color--foreground-alt: var(--wp--preset--color--foreground); --wp--preset--font-size--small: 1rem; --wp--preset--font-size--medium: 1.25rem; --wp--preset--font-size--large: 2.25rem; --wp--preset--font-size--x-large: 3rem; --wp--preset--font-size--xx-large: 3.75rem; --wp--custom--elements--button--border--radius: 2px; --wp--custom--elements--button--color--background: var(--wp--preset--color--primary); --wp--custom--elements--button--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--hover--color--background: var(--wp--preset--color--foreground); --wp--custom--elements--button--hover--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--focus--color--background: var(--wp--preset--color--primary); --wp--custom--elements--button--focus--color--text: var(--wp--preset--color--background); }body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--heebo);font-size: 1rem;}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--montserrat);}h1{font-weight: 700;letter-spacing: normal;text-transform: uppercase;}h2{font-weight: 700;letter-spacing: normal;text-transform: uppercase;}h3{font-weight: 700;letter-spacing: normal;text-transform: uppercase;}h4{font-weight: 700;letter-spacing: normal;text-transform: uppercase;}h5{font-weight: 500;letter-spacing: normal;}h6{font-weight: 500;letter-spacing: normal;}.wp-element-button, .wp-block-button__link{border-radius: 2px;}.wp-element-button:hover, .wp-block-button__link:hover{background-color: var(--wp--preset--color--secondary);color: var(--wp--preset--color--background);}.wp-element-button:focus, .wp-block-button__link:focus{background-color: var(--wp--preset--color--secondary);color: var(--wp--preset--color--background);}.wp-element-button:active, .wp-block-button__link:active{background-color: var(--wp--preset--color--foreground);color: var(--wp--preset--color--background);}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}.has-small-font-size{font-size: var(--wp--preset--font-size--small) !important;}.has-medium-font-size{font-size: var(--wp--preset--font-size--medium) !important;}.has-large-font-size{font-size: var(--wp--preset--font-size--large) !important;}.has-x-large-font-size{font-size: var(--wp--preset--font-size--x-large) !important;}.has-xx-large-font-size{font-size: var(--wp--preset--font-size--xx-large) !important;}.wp-block-button.is-style-outline .wp-block-button__link.wp-element-button { background: transparent none; border-color: currentColor; border-width: 2px; border-style: solid; color: currentColor; padding-top: 0.667em; padding-right: 1.33em; padding-bottom: 0.667em; padding-left: 1.33em; }","Piraeus":"body { --wp--preset--color--foreground: #ffffff; --wp--preset--color--background: #272725; --wp--preset--color--primary: #A89F84; --wp--preset--color--secondary: #3F2D0B; --wp--preset--color--tertiary: #32322D; --wp--preset--color--foreground-alt: var(--wp--preset--color--foreground); --wp--custom--elements--button--border--radius: 0; --wp--custom--elements--button--color--background: var(--wp--preset--color--primary); --wp--custom--elements--button--color--text: var(--wp--preset--color--foreground); --wp--custom--elements--button--hover--color--background: var(--wp--preset--color--foreground); --wp--custom--elements--button--hover--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--focus--color--background: var(--wp--preset--color--primary); --wp--custom--elements--button--focus--color--text: var(--wp--preset--color--foreground); --wp--custom--typography--font-smoothing--moz: auto; --wp--custom--typography--font-smoothing--webkit: auto; }body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--roboto-flex);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--geom);}h1{font-weight: var(--wp--custom--typography--font-weight--light);letter-spacing: -0.02em;}h2{font-weight: var(--wp--custom--typography--font-weight--light);}h3{font-weight: var(--wp--custom--typography--font-weight--light);letter-spacing: 0.04em;}h4{font-weight: var(--wp--custom--typography--font-weight--medium);}h5{font-weight: var(--wp--custom--typography--font-weight--semi-bold);letter-spacing: 0.01em;text-transform: normal;}h6{font-weight: var(--wp--custom--typography--font-weight--semi-bold);}.wp-element-button, .wp-block-button__link{background-color: var(--wp--preset--color--primary);border-radius: 0;color: var(--wp--preset--color--foreground);}.wp-element-button:visited, .wp-block-button__link:visited{color: var(--wp--preset--color--foreground);}.wp-element-button:active, .wp-block-button__link:active{background-color: var(--wp--preset--color--secondary);color: var(--wp--preset--color--foreground);}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}.wp-block-button.is-style-outline .wp-block-button__link.wp-element-button { background: transparent none; border-color: currentColor; border-width: 2px; border-style: solid; color: currentColor; padding-top: 0.667em; padding-right: 1.33em; padding-bottom: 0.667em; padding-left: 1.33em; }","Porto":"body { --wp--preset--color--foreground: #4D4848; --wp--preset--color--background: #F8FAF9; --wp--preset--color--primary: #854836; --wp--preset--color--secondary: #0D1B1E; --wp--preset--color--tertiary: #F8ECEA; --wp--preset--color--foreground-alt: var(--wp--preset--color--foreground); --wp--custom--elements--button--border--radius: 2rem; --wp--custom--elements--button--color--background: var(--wp--preset--color--primary); --wp--custom--elements--button--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--hover--color--background: var(--wp--preset--color--foreground); --wp--custom--elements--button--hover--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--focus--color--background: var(--wp--preset--color--primary); --wp--custom--elements--button--focus--color--text: var(--wp--preset--color--background); }body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--inconsolata);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--karla);}h1{letter-spacing: -0.07em;}h2{letter-spacing: -0.04em;}h3{letter-spacing: -0.03em;}h4{letter-spacing: -0.03em;}h5{font-weight: var(--wp--custom--typography--font-weight--bold);}h6{font-weight: var(--wp--custom--typography--font-weight--extra-bold);}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}.wp-block-button.is-style-outline .wp-block-button__link.wp-element-button { background: transparent none; border-color: currentColor; border-width: 2px; border-style: solid; color: currentColor; padding-top: 0.667em; padding-right: 1.33em; padding-bottom: 0.667em; padding-left: 1.33em; }","Rio":"body { --wp--preset--color--foreground: #010101; --wp--preset--color--background: #fbfbfb; --wp--preset--color--primary: #174c2f; --wp--preset--color--secondary: #ffd800; --wp--preset--color--tertiary: #A8E1FF; --wp--preset--color--foreground-alt: var(--wp--preset--color--foreground); --wp--custom--elements--button--border--radius: 2rem; --wp--custom--elements--button--color--background: var(--wp--preset--color--secondary); --wp--custom--elements--button--color--text: var(--wp--preset--color--foreground); --wp--custom--elements--button--hover--color--background: var(--wp--preset--color--primary); --wp--custom--elements--button--hover--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--focus--color--background: var(--wp--preset--color--secondary); --wp--custom--elements--button--focus--color--text: var(--wp--preset--color--foreground); --wp--custom--typography--font-smoothing--moz: auto; --wp--custom--typography--font-smoothing--webkit: auto; }body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--space-mono);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--space-mono);}h1{font-weight: var(--wp--custom--typography--font-weight--regular);}h2{font-weight: var(--wp--custom--typography--font-weight--regular);}h3{font-weight: var(--wp--custom--typography--font-weight--regular);}h4{font-weight: var(--wp--custom--typography--font-weight--regular);}h5{font-weight: var(--wp--custom--typography--font-weight--regular);}h6{font-weight: var(--wp--custom--typography--font-weight--regular);}.wp-element-button, .wp-block-button__link{background-color: var(--wp--preset--color--secondary);color: var(--wp--preset--color--foreground);}.wp-element-button:visited, .wp-block-button__link:visited{color: var(--wp--preset--color--foreground);}.wp-element-button:hover, .wp-block-button__link:hover{background-color: var(--wp--preset--color--primary);color: var(--wp--preset--color--background);}.wp-element-button:focus, .wp-block-button__link:focus{background-color: var(--wp--preset--color--primary);color: var(--wp--preset--color--background);}.wp-element-button:active, .wp-block-button__link:active{background-color: var(--wp--preset--color--foreground);color: var(--wp--preset--color--background);}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}.wp-block-button.is-style-outline .wp-block-button__link.wp-element-button { background: transparent none; border-color: currentColor; border-width: 2px; border-style: solid; color: currentColor; padding-top: 0.667em; padding-right: 1.33em; padding-bottom: 0.667em; padding-left: 1.33em; }","Santa Fe":"body { --wp--preset--color--foreground: #111111; --wp--preset--color--background: #ffffff; --wp--preset--color--primary: #2c0453; --wp--preset--color--secondary: #d5dce3; --wp--preset--color--tertiary: #f0ede4; --wp--preset--color--foreground-alt: var(--wp--preset--color--foreground); --wp--custom--typography--font-smoothing--moz: auto; --wp--custom--typography--font-smoothing--webkit: auto; --wp--custom--elements--button--border--radius: 2rem; --wp--custom--elements--button--color--background: var(--wp--preset--color--primary); --wp--custom--elements--button--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--hover--color--background: var(--wp--preset--color--foreground); --wp--custom--elements--button--hover--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--focus--color--background: var(--wp--preset--color--primary); --wp--custom--elements--button--focus--color--text: var(--wp--preset--color--background); }body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--radio-canada);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--noto-serif-display);}h1{font-weight: var(--wp--custom--typography--font-weight--medium);letter-spacing: 0;}h2{font-weight: var(--wp--custom--typography--font-weight--medium);letter-spacing: -0.01em;}h3{font-weight: var(--wp--custom--typography--font-weight--medium);}h4{font-weight: var(--wp--custom--typography--font-weight--medium);}h6{font-weight: var(--wp--custom--typography--font-weight--bold);}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}.wp-block-button.is-style-outline .wp-block-button__link.wp-element-button { background: transparent none; border-color: currentColor; border-width: 2px; border-style: solid; color: currentColor; padding-top: 0.667em; padding-right: 1.33em; padding-bottom: 0.667em; padding-left: 1.33em; }","Thimphu":"body { --wp--preset--color--foreground: #f24139; --wp--preset--color--background: #ffebcc; --wp--preset--color--primary: #f24139; --wp--preset--color--secondary: #3a312e; --wp--preset--color--tertiary: #ffdda6; --wp--preset--color--foreground-alt: var(--wp--preset--color--foreground); --wp--custom--elements--button--border--radius: 2rem; --wp--custom--elements--button--color--background: var(--wp--preset--color--secondary); --wp--custom--elements--button--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--hover--color--background: var(--wp--preset--color--foreground); --wp--custom--elements--button--hover--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--focus--color--background: var(--wp--preset--color--secondary); --wp--custom--elements--button--focus--color--text: var(--wp--preset--color--background); --wp--custom--typography--font-smoothing--moz: auto; --wp--custom--typography--font-smoothing--webkit: auto; }body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--heebo);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--heebo);}h1{font-weight: var(--wp--custom--typography--font-weight--medium);letter-spacing: 0;}h2{font-weight: var(--wp--custom--typography--font-weight--medium);}h3{font-weight: var(--wp--custom--typography--font-weight--medium);}h4{font-weight: var(--wp--custom--typography--font-weight--medium);}h5{font-weight: var(--wp--custom--typography--font-weight--semi-bold);}h6{font-weight: var(--wp--custom--typography--font-weight--black);}.wp-element-button, .wp-block-button__link{background-color: var(--wp--preset--color--secondary);color: var(--wp--preset--color--background);}.wp-element-button:hover, .wp-block-button__link:hover{background-color: var(--wp--preset--color--foreground);color: var(--wp--preset--color--background);}.wp-element-button:focus, .wp-block-button__link:focus{background-color: var(--wp--preset--color--foreground);color: var(--wp--preset--color--background);}.wp-element-button:active, .wp-block-button__link:active{background-color: var(--wp--preset--color--secondary);color: var(--wp--preset--color--foreground);}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}.wp-block-button.is-style-outline .wp-block-button__link.wp-element-button { background: transparent none; border-color: currentColor; border-width: 2px; border-style: solid; color: currentColor; padding-top: 0.667em; padding-right: 1.33em; padding-bottom: 0.667em; padding-left: 1.33em; }","Tokyo":"body { --wp--preset--color--foreground: #010101; --wp--preset--color--background: #ffffff; --wp--preset--color--primary: #d61935; --wp--preset--color--secondary: #e3f2f2; --wp--preset--color--tertiary: #ffeae6; --wp--preset--color--foreground-alt: var(--wp--preset--color--foreground); --wp--custom--elements--button--border--radius: 2rem; --wp--custom--elements--button--color--background: var(--wp--preset--color--primary); --wp--custom--elements--button--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--hover--color--background: var(--wp--preset--color--foreground); --wp--custom--elements--button--hover--color--text: var(--wp--preset--color--background); --wp--custom--elements--button--focus--color--background: var(--wp--preset--color--primary); --wp--custom--elements--button--focus--color--text: var(--wp--preset--color--background); --wp--custom--typography--font-smoothing--moz: auto; --wp--custom--typography--font-smoothing--webkit: auto; }body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--inter);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--oswald); text-transform: uppercase;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}"}'),Nm=(0,a.forwardRef)((({style:e},t)=>{const o=(0,a.useRef)(null),n=(0,a.useRef)(null),[i,s]=(0,a.useState)(!1),l=(0,a.useMemo)((()=>Om?.[e?.variation?.title]?(0,Cm.transformStyles)([{css:Om[e?.variation?.title]}],"html body.editor-styles-wrapper"):null),[e?.variation]),c=(0,a.useCallback)((e=>{let t=performance.now(),r=0;const o=()=>{if(r>=150)return;const n=`<style id="ext-tj">\n\t\t\t\t\thtml body.editor-styles-wrapper { background-color: var(--wp--preset--color--background) }\n\t\t\t\t\t${l}\n\t\t\t\t</style>`,a=performance.now();if(a-t<100)return requestAnimationFrame(o);t=a,e?.contentDocument?.querySelector("[href*=load-styles]")?.remove(),e.contentDocument?.getElementById("ext-tj")||e.contentDocument?.body?.insertAdjacentHTML("beforeend",n);const i=e.contentDocument?.querySelectorAll("iframe");i?.forEach((e=>{const t=`<style id="ext-tj">\n\t\t\t\t\t\tbody { background-color: transparent !important; }\n\t\t\t\t\t\tbody, body * { box-sizing: border-box !important; }\n\t\t\t\t\t\t${l}\n\t\t\t\t\t</style>`;e?.contentDocument?.querySelector("[href*=load-styles]")?.remove(),e?.contentDocument?.querySelector("body")?.classList.add("editor-styles-wrapper"),e&&!e.contentDocument?.getElementById("ext-tj")&&e.contentDocument?.body?.insertAdjacentHTML("beforeend",t)})),r++,requestAnimationFrame(o)};o()}),[l]),{ready:u}=Mm({container:t.current,ready:i,onLoad:c,loadDelay:400}),d=(0,a.useMemo)((()=>{const t=[ce.about.title,ce.blog.title,ce.contact.title],r=[e?.headerCode,e?.patterns?.map((({code:e})=>e)).flat().join(""),e?.footerCode].filter(Boolean).join("").replace(/<!-- wp:navigation[.\S\s]*?\/wp:navigation -->/g,`\x3c!-- wp:paragraph {"className":"tmp-nav"} --\x3e<p class="tmp-nav">${t.join(" | ")}</p >\x3c!-- /wp:paragraph --\x3e`).replace(/<!-- wp:navigation.*\/-->/g,`\x3c!-- wp:paragraph {"className":"tmp-nav"} --\x3e<p class="tmp-nav">${t.join(" | ")}</p >\x3c!-- /wp:paragraph --\x3e`).replace(/<!-- wp:site-logo.*\/-->/g,'\x3c!-- wp:paragraph {"className":"custom-logo"} --\x3e<img class="custom-logo" style="height: 40px;" src="https://assets.extendify.com/demo-content/logos/extendify-demo-logo.png">\x3c!-- /wp:paragraph --\x3e');return(0,Pm.rawHandler)({HTML:Rm(r)})}),[e]);return(0,a.useLayoutEffect)((()=>{s(!1);const e=setTimeout((()=>s(!0)),0);return()=>clearTimeout(e)}),[d]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Pa,null,u||(0,r.createElement)(Up.div,{initial:{opacity:.7},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"pointer-events-none absolute inset-0 z-30",style:{backgroundColor:"rgba(204, 204, 204, 0.25)",backgroundImage:"linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%)",backgroundSize:"600% 600%",animation:"extendify-loading-skeleton 10s ease-in-out infinite"}},(0,r.createElement)("div",{className:"absolute inset-0 flex items-center justify-center"},(0,r.createElement)(zr.Spinner,{className:"h-10 w-10 text-design-main"})))),(0,r.createElement)("div",{"data-test":"layout-preview",ref:n,className:ca()("group z-10 w-full bg-transparent",{"opacity-0":!u})},(0,r.createElement)("div",{ref:o,className:"relative m-auto max-w-[1440px] rounded-lg"},(0,r.createElement)(Cm.BlockPreview,{blocks:d,viewportWidth:1440,additionalStyles:[{css:'.rich-text [data-rich-text-placeholder]:after { content: "" }'}]}))))})),Dm=({label:e,slug:t,description:o,checked:n,onChange:a,locked:i=!1})=>(0,r.createElement)("label",{className:ca()("flex items-center px-4 py-3.5",{"cursor-not-allowed":i,"focus-within:text-design-mains hover:text-design-main":!i}),htmlFor:t},(0,r.createElement)("span",{className:"relative mr-3 inline-block h-5 w-5 align-middle"},(0,r.createElement)("input",{id:t,className:"m-0 h-5 w-5 rounded-sm",style:{"--ext-design-main":i?"#BBBBBB":void 0},disabled:i,type:"checkbox",onChange:i?void 0:a,checked:!!i||n}),(0,r.createElement)("svg",{className:ca()("absolute inset-0 block h-5 w-5",{"text-white":n,"text-transparent":!n}),viewBox:"1 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation"},(0,r.createElement)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"}))),(0,r.createElement)("span",{className:"flex grow flex-col overflow-hidden"},(0,r.createElement)("span",{className:"truncate text-base font-medium leading-tight"},e),o?(0,r.createElement)("span",{className:"block pt-1"},o):(0,r.createElement)("span",null))),Fm=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{opacity:"0.3",d:"M3 13H7V19H3V13ZM10 9H14V19H10V9ZM17 5H21V19H17V5Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M14 8H10C9.448 8 9 8.448 9 9V19C9 19.552 9.448 20 10 20H14C14.552 20 15 19.552 15 19V9C15 8.448 14.552 8 14 8ZM13 18H11V10H13V18ZM21 4H17C16.448 4 16 4.448 16 5V19C16 19.552 16.448 20 17 20H21C21.552 20 22 19.552 22 19V5C22 4.448 21.552 4 21 4ZM20 18H18V6H20V18ZM7 12H3C2.448 12 2 12.448 2 13V19C2 19.552 2.448 20 3 20H7C7.552 20 8 19.552 8 19V13C8 12.448 7.552 12 7 12ZM6 18H4V14H6V18Z",fill:"currentColor"}))})),Vm=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"}))})),jm=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{opacity:"0.3",d:"M11.5003 15.5L15.5003 11.4998L20.0004 15.9998L16.0004 19.9999L11.5003 15.5Z",fill:"currentColor"}),(0,r.createElement)("path",{opacity:"0.3",d:"M3.93958 7.94043L7.93961 3.94026L12.4397 8.44021L8.43968 12.4404L3.93958 7.94043Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M8.575 11.747L4.828 8L8 4.828L11.747 8.575L13.161 7.161L8 2L2 8L7.161 13.161L8.575 11.747ZM16.769 10.769L15.355 12.183L19.172 16L16 19.172L12.183 15.355L10.769 16.769L16 22L22 16L16.769 10.769Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M21.707 4.879L19.121 2.293C18.926 2.098 18.67 2 18.414 2C18.158 2 17.902 2.098 17.707 2.293L3 17V21H7L21.707 6.293C22.098 5.902 22.098 5.269 21.707 4.879ZM6.172 19H5V17.828L15.707 7.121L16.879 8.293L6.172 19ZM18.293 6.879L17.121 5.707L18.414 4.414L19.586 5.586L18.293 6.879Z",fill:"currentColor"}))})),Im=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{opacity:"0.3",d:"M20 6C20 9 19 13 19 13L13.3 17L12.6 16.4C11.8 15.6 11.8 14.2 12.6 13.4L14.8 11.2C14.8 8.7 12.1 7.2 9.89999 8.5C9.19999 9 8.59999 9.6 7.89999 10.3V13L5.89999 16C4.79999 16 3.89999 15.1 3.89999 14V10.4C3.89999 9.5 4.19999 8.6 4.79999 7.9L7.59999 4.4L14 2C14.9 4.4 16.8 5.8 20 6Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M13.2 18.2996L12 17.0996C10.7 15.7996 10.7 13.8996 12 12.5996L13.9 10.6996C13.8 10.0996 13.4 9.49961 12.8 9.19961C12.1 8.79961 11.3 8.79961 10.6 9.19961C10.1 9.49961 9.7 9.89961 9.3 10.3996C9.2 10.4996 9.2 10.4996 9.1 10.5996V12.9996H7V9.89961L7.3 9.59961C7.5 9.39961 7.6 9.29961 7.8 9.09961C8.3 8.59961 8.8 7.99961 9.5 7.59961C10.8 6.79961 12.4 6.79961 13.7 7.49961C15 8.29961 15.9 9.59961 15.9 11.1996V11.5996L13.4 14.0996C13.2 14.2996 13.1 14.5996 13.1 14.8996C13.1 15.1996 13.2 15.4996 13.4 15.6996L13.5 15.7996L18.2 12.4996C18.4 11.4996 19.1 8.39961 19.1 6.09961H21.1C21.1 9.19961 20.1 13.1996 20.1 13.2996L20 13.6996L13.2 18.2996Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M11 23.0005C9.7 23.0005 8.4 22.6005 7.3 21.7005C4.7 19.7005 4.3 15.9005 6.3 13.3005C8.1 11.0005 11.3 10.3005 13.9 11.8005L12.9 13.6005C11.2 12.7005 9.1 13.1005 7.9 14.6005C6.5 16.3005 6.8 18.8005 8.6 20.2005C10.3 21.6005 12.8 21.3005 14.2 19.5005C14.9 18.6005 15.2 17.4005 15 16.2005L17 15.8005C17.4 17.5005 16.9 19.3005 15.8 20.7005C14.5 22.2005 12.7 23.0005 11 23.0005Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M6 16.9996C4.3 16.9996 3 15.6996 3 13.9996V10.3996C3 9.29961 3.4 8.19961 4.1 7.29961L7.1 3.59961L13.7 1.09961L14.4 2.99961L8.3 5.29961L5.7 8.49961C5.2 9.09961 5 9.69961 5 10.3996V13.9996C5 14.5996 5.4 14.9996 6 14.9996V16.9996Z",fill:"currentColor"}))})),Bm=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:`icon ${t}`,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{d:"M15 17.5L10 12L15 6.5",stroke:"currentColor",strokeWidth:"1.75"}))})),Hm=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"0 0 2524 492",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{d:"M609.404 378.5C585.07 378.5 563.404 373 544.404 362C525.737 350.667 511.07 335.333 500.404 316C489.737 296.333 484.404 273.833 484.404 248.5C484.404 222.833 489.57 200.167 499.904 180.5C510.237 160.833 524.737 145.5 543.404 134.5C562.07 123.167 583.404 117.5 607.404 117.5C632.404 117.5 653.904 122.833 671.904 133.5C689.904 143.833 703.737 158.333 713.404 177C723.404 195.667 728.404 218 728.404 244V262.5L516.404 263L517.404 224H667.904C667.904 207 662.404 193.333 651.404 183C640.737 172.667 626.237 167.5 607.904 167.5C593.57 167.5 581.404 170.5 571.404 176.5C561.737 182.5 554.404 191.5 549.404 203.5C544.404 215.5 541.904 230.167 541.904 247.5C541.904 274.167 547.57 294.333 558.904 308C570.57 321.667 587.737 328.5 610.404 328.5C627.07 328.5 640.737 325.333 651.404 319C662.404 312.667 669.57 303.667 672.904 292H729.404C724.07 319 710.737 340.167 689.404 355.5C668.404 370.833 641.737 378.5 609.404 378.5Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M797.529 372H728.029L813.029 251L728.029 125H799.029L853.529 209L906.029 125H974.529L890.529 250.5L972.029 372H902.029L849.029 290.5L797.529 372Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M994.142 125H1150.14V176H994.142V125ZM1102.64 372H1041.64V48H1102.64V372Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M1278.62 378.5C1254.29 378.5 1232.62 373 1213.62 362C1194.96 350.667 1180.29 335.333 1169.62 316C1158.96 296.333 1153.62 273.833 1153.62 248.5C1153.62 222.833 1158.79 200.167 1169.12 180.5C1179.46 160.833 1193.96 145.5 1212.62 134.5C1231.29 123.167 1252.62 117.5 1276.62 117.5C1301.62 117.5 1323.12 122.833 1341.12 133.5C1359.12 143.833 1372.96 158.333 1382.62 177C1392.62 195.667 1397.62 218 1397.62 244V262.5L1185.62 263L1186.62 224H1337.12C1337.12 207 1331.62 193.333 1320.62 183C1309.96 172.667 1295.46 167.5 1277.12 167.5C1262.79 167.5 1250.62 170.5 1240.62 176.5C1230.96 182.5 1223.62 191.5 1218.62 203.5C1213.62 215.5 1211.12 230.167 1211.12 247.5C1211.12 274.167 1216.79 294.333 1228.12 308C1239.79 321.667 1256.96 328.5 1279.62 328.5C1296.29 328.5 1309.96 325.333 1320.62 319C1331.62 312.667 1338.79 303.667 1342.12 292H1398.62C1393.29 319 1379.96 340.167 1358.62 355.5C1337.62 370.833 1310.96 378.5 1278.62 378.5Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M1484.44 372H1423.44V125H1479.94L1484.94 157C1492.61 144.667 1503.44 135 1517.44 128C1531.78 121 1547.28 117.5 1563.94 117.5C1594.94 117.5 1618.28 126.667 1633.94 145C1649.94 163.333 1657.94 188.333 1657.94 220V372H1596.94V234.5C1596.94 213.833 1592.28 198.5 1582.94 188.5C1573.61 178.167 1560.94 173 1544.94 173C1525.94 173 1511.11 179 1500.44 191C1489.78 203 1484.44 219 1484.44 239V372Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M1798.38 378.5C1774.38 378.5 1753.71 373.167 1736.38 362.5C1719.38 351.5 1706.04 336.333 1696.38 317C1687.04 297.667 1682.38 275.167 1682.38 249.5C1682.38 223.833 1687.04 201.167 1696.38 181.5C1706.04 161.5 1719.88 145.833 1737.88 134.5C1755.88 123.167 1777.21 117.5 1801.88 117.5C1819.21 117.5 1835.04 121 1849.38 128C1863.71 134.667 1874.71 144.167 1882.38 156.5V0H1942.88V372H1886.88L1882.88 333.5C1875.54 347.5 1864.21 358.5 1848.88 366.5C1833.88 374.5 1817.04 378.5 1798.38 378.5ZM1811.88 322.5C1826.21 322.5 1838.54 319.5 1848.88 313.5C1859.21 307.167 1867.21 298.333 1872.88 287C1878.88 275.333 1881.88 262.167 1881.88 247.5C1881.88 232.5 1878.88 219.5 1872.88 208.5C1867.21 197.167 1859.21 188.333 1848.88 182C1838.54 175.333 1826.21 172 1811.88 172C1797.88 172 1785.71 175.333 1775.38 182C1765.04 188.333 1757.04 197.167 1751.38 208.5C1746.04 219.833 1743.38 232.833 1743.38 247.5C1743.38 262.167 1746.04 275.167 1751.38 286.5C1757.04 297.833 1765.04 306.667 1775.38 313C1785.71 319.333 1797.88 322.5 1811.88 322.5Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M1996.45 372V125H2057.45V372H1996.45ZM2026.45 75.5C2016.11 75.5 2007.28 72 1999.95 65C1992.95 57.6667 1989.45 48.8333 1989.45 38.5C1989.45 28.1667 1992.95 19.5 1999.95 12.5C2007.28 5.50001 2016.11 2.00002 2026.45 2.00002C2036.78 2.00002 2045.45 5.50001 2052.45 12.5C2059.78 19.5 2063.45 28.1667 2063.45 38.5C2063.45 48.8333 2059.78 57.6667 2052.45 65C2045.45 72 2036.78 75.5 2026.45 75.5Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M2085.97 125H2240.97V176H2085.97V125ZM2241.47 2.5V54.5C2238.14 54.5 2234.64 54.5 2230.97 54.5C2227.64 54.5 2224.14 54.5 2220.47 54.5C2205.14 54.5 2194.8 58.1667 2189.47 65.5C2184.47 72.8333 2181.97 82.6667 2181.97 95V372H2121.47V95C2121.47 72.3333 2125.14 54.1667 2132.47 40.5C2139.8 26.5 2150.14 16.3333 2163.47 10C2176.8 3.33334 2192.3 0 2209.97 0C2214.97 0 2220.14 0.166671 2225.47 0.5C2231.14 0.833329 2236.47 1.49999 2241.47 2.5Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M2330.4 125L2410.9 353L2377.9 415.5L2265.9 125H2330.4ZM2272.4 486.5V436H2308.9C2316.9 436 2323.9 435 2329.9 433C2335.9 431.333 2341.24 428 2345.9 423C2350.9 418 2355.07 410.667 2358.4 401L2460.9 125H2523.9L2402.9 427C2393.9 449.667 2382.57 466.167 2368.9 476.5C2355.24 486.833 2338.24 492 2317.9 492C2309.24 492 2301.07 491.5 2293.4 490.5C2286.07 489.833 2279.07 488.5 2272.4 486.5Z",fill:"currentColor"}),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M226.926 25.1299H310.197C333.783 25.1299 342.32 27.5938 350.948 32.1932C359.576 36.8108 366.326 43.5822 370.941 52.1969C375.556 60.8298 378 69.3715 378 92.9707V176.289C378 199.888 375.537 208.43 370.941 217.063C366.326 225.696 359.558 232.449 350.948 237.066C347.091 239.131 343.244 240.83 338.064 242.047V308.355C338.064 344.802 334.261 357.994 327.162 371.327C320.034 384.66 309.583 395.09 296.285 402.221C282.96 409.353 269.775 413.13 233.349 413.13H104.744C68.3172 413.13 55.1327 409.325 41.8073 402.221C28.4819 395.09 18.0583 384.632 10.9308 371.327C3.80323 358.023 0 344.802 0 308.355V179.706C0 143.259 3.80323 130.067 10.9026 116.734C18.0301 103.401 28.4819 92.9431 41.8073 85.8116C55.1045 78.7082 68.3172 74.9028 104.744 74.9028H159.808C160.841 64.0747 162.996 58.1666 166.165 52.2151C170.78 43.5822 177.547 36.8108 186.175 32.1932C194.785 27.5938 203.34 25.1299 226.926 25.1299ZM184.128 78.1641C184.128 62.7001 196.658 50.1641 212.114 50.1641H324.991C340.448 50.1641 352.978 62.7001 352.978 78.1641V191.096C352.978 206.56 340.448 219.096 324.991 219.096H212.114C196.658 219.096 184.128 206.56 184.128 191.096V78.1641Z",fill:"currentColor"}))})),Um=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{d:"M0 0h24v24H0V0z",fill:"none"}),(0,r.createElement)("path",{d:"M12 4c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8zm1.23 13.33V19H10.9v-1.69c-1.5-.31-2.77-1.28-2.86-2.97h1.71c.09.92.72 1.64 2.32 1.64 1.71 0 2.1-.86 2.1-1.39 0-.73-.39-1.41-2.34-1.87-2.17-.53-3.66-1.42-3.66-3.21 0-1.51 1.22-2.48 2.72-2.81V5h2.34v1.71c1.63.39 2.44 1.63 2.49 2.97h-1.71c-.04-.97-.56-1.64-1.94-1.64-1.31 0-2.1.59-2.1 1.43 0 .73.57 1.22 2.34 1.67 1.77.46 3.66 1.22 3.66 3.42-.01 1.6-1.21 2.48-2.74 2.77z",opacity:".3"}),(0,r.createElement)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm.31-8.86c-1.77-.45-2.34-.94-2.34-1.67 0-.84.79-1.43 2.1-1.43 1.38 0 1.9.66 1.94 1.64h1.71c-.05-1.34-.87-2.57-2.49-2.97V5H10.9v1.69c-1.51.32-2.72 1.3-2.72 2.81 0 1.79 1.49 2.69 3.66 3.21 1.95.46 2.34 1.15 2.34 1.87 0 .53-.39 1.39-2.1 1.39-1.6 0-2.23-.72-2.32-1.64H8.04c.1 1.7 1.36 2.66 2.86 2.97V19h2.34v-1.67c1.52-.29 2.72-1.16 2.73-2.77-.01-2.2-1.9-2.96-3.66-3.42z"}))})),zm=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{opacity:"0.3",d:"M12 14L3 9V19H21V9L12 14Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M21.008 6.24719L12 0.992188L2.992 6.24719C2.38 6.60419 2 7.26619 2 7.97519V18.0002C2 19.1032 2.897 20.0002 4 20.0002H20C21.103 20.0002 22 19.1032 22 18.0002V7.97519C22 7.26619 21.62 6.60419 21.008 6.24719ZM19.892 7.91219L12 12.8222L4.108 7.91119L12 3.30819L19.892 7.91219ZM4 18.0002V10.2002L12 15.1782L20 10.2002L20.001 18.0002H4Z",fill:"currentColor"}))})),$m=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{opacity:"0.3",d:"M7.03432 14.8828L16.2343 5.68249L18.2298 7.67791L9.02981 16.8782L7.03432 14.8828Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M3.669 17L3 21L7 20.331L3.669 17ZM21.707 4.879L19.121 2.293C18.926 2.098 18.67 2 18.414 2C18.158 2 17.902 2.098 17.707 2.293L5 15C5 15 6.005 15.005 6.5 15.5C6.995 15.995 6.984 16.984 6.984 16.984C6.984 16.984 8.003 17.003 8.5 17.5C8.997 17.997 9 19 9 19L21.707 6.293C22.098 5.902 22.098 5.269 21.707 4.879ZM8.686 15.308C8.588 15.05 8.459 14.789 8.289 14.539L15.951 6.877L17.123 8.049L9.461 15.711C9.21 15.539 8.946 15.408 8.686 15.308ZM18.537 6.635L17.365 5.463L18.414 4.414L19.586 5.586L18.537 6.635Z",fill:"currentColor"}))})),Wm=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{opacity:"0.3",d:"M4 5H20V9H4V5Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M12 13H17V18H12V13ZM6 2H8V5H6V2ZM16 2H18V5H16V2Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M19 22H5C3.9 22 3 21.1 3 20V6C3 4.9 3.9 4 5 4H19C20.1 4 21 4.9 21 6V20C21 21.1 20.1 22 19 22ZM5 6V20H19V6H5Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M4 8H20V10H4V8Z",fill:"currentColor"}))})),qm=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{d:"M12 6.5C15.79 6.5 19.17 8.63 20.82 12C19.17 15.37 15.8 17.5 12 17.5C8.2 17.5 4.83 15.37 3.18 12C4.83 8.63 8.21 6.5 12 6.5ZM12 4.5C7 4.5 2.73 7.61 1 12C2.73 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.61 17 4.5 12 4.5ZM12 9.5C13.38 9.5 14.5 10.62 14.5 12C14.5 13.38 13.38 14.5 12 14.5C10.62 14.5 9.5 13.38 9.5 12C9.5 10.62 10.62 9.5 12 9.5ZM12 7.5C9.52 7.5 7.5 9.52 7.5 12C7.5 14.48 9.52 16.5 12 16.5C14.48 16.5 16.5 14.48 16.5 12C16.5 9.52 14.48 7.5 12 7.5Z",fill:"currentColor"}))})),Zm=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{opacity:"0.3",d:"M20 11.414L10.707 20.707C10.518 20.896 10.267 21 10 21C9.733 21 9.482 20.896 9.293 20.707L3.293 14.707C3.104 14.518 3 14.267 3 14C3 13.733 3.104 13.482 3.293 13.293L12.586 4H20V11.414Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M10 22C9.466 22 8.964 21.792 8.586 21.414L2.586 15.414C2.208 15.036 2 14.534 2 14C2 13.466 2.208 12.964 2.586 12.586L12.172 3H21V11.828L11.414 21.414C11.036 21.792 10.534 22 10 22ZM13 5L4 14L10 20L19 11V5H13Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M16 7C15.7348 7 15.4804 7.10536 15.2929 7.29289C15.1054 7.48043 15 7.73478 15 8C15 8.26522 15.1054 8.51957 15.2929 8.70711C15.4804 8.89464 15.7348 9 16 9C16.2652 9 16.5196 8.89464 16.7071 8.70711C16.8946 8.51957 17 8.26522 17 8C17 7.73478 16.8946 7.48043 16.7071 7.29289C16.5196 7.10536 16.2652 7 16 7Z",fill:"currentColor"}))})),Km=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"-4 -4 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{stroke:"currentColor",d:"M6.5 0.5h0s6 0 6 6v0s0 6 -6 6h0s-6 0 -6 -6v0s0 -6 6 -6"}))})),Ym=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{fill:"currentColor",d:"M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z"}))})),Xm=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:`icon ${t}`,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{d:"M10 17.5L15 12L10 6.5",stroke:"currentColor",strokeWidth:"1.75"}))})),Gm=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{d:"M0 0h24v24H0V0z",fill:"none"}),(0,r.createElement)("path",{d:"M7 12.27v3.72l5 2.73 5-2.73v-3.72L12 15zM5.18 9L12 12.72 18.82 9 12 5.28z",opacity:".3"}),(0,r.createElement)("path",{d:"M12 3L1 9l4 2.18v6L12 21l7-3.82v-6l2-1.09V17h2V9L12 3zm5 12.99l-5 2.73-5-2.73v-3.72L12 15l5-2.73v3.72zm-5-3.27L5.18 9 12 5.28 18.82 9 12 12.72z"}))})),Jm=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{d:"M8 18.5504L12 14.8899",stroke:"#1E1E1E",strokeWidth:"1.5"}),(0,r.createElement)("path",{d:"M20.25 11.7523C20.25 14.547 18.092 16.7546 15.5 16.7546C12.908 16.7546 10.75 14.547 10.75 11.7523C10.75 8.95754 12.908 6.75 15.5 6.75C18.092 6.75 20.25 8.95754 20.25 11.7523Z",stroke:"#1E1E1E",strokeWidth:"1.5"}))})),Qm=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{opacity:"0.3",d:"M19.27 8H4.73L3 13.2V14H21V13.2L19.27 8ZM5 4H19V8H5V4Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M13 21H3V13H13V21ZM5 19H11V15H5V19Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M22 15H2V13.038L4.009 7H19.991L22 13.038V15ZM4.121 13H19.88L18.549 9H5.451L4.121 13Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M19 14H21V21H19V14ZM20 9H4V3H20V9ZM6 7H18V5H6V7Z",fill:"currentColor"}))})),eh=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{opacity:"0.3",d:"M21 11C21 6.6 17 3 12 3C7 3 3 6.6 3 11C3 15.4 7 19 12 19C12.7 19 13.4 18.9 14 18.8V21.3C16 20 20.5 16.5 21 11.9C21 11.6 21 11.3 21 11Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M13 23.1V20C7 20.6 2 16.3 2 11C2 6 6.5 2 12 2C17.5 2 22 6 22 11C22 11.3 22 11.6 21.9 12C21.3 17.5 15.6 21.4 14.5 22.2L13 23.1ZM15 17.6V19.3C16.9 17.8 19.6 15.1 20 11.7C20 11.5 20 11.2 20 11C20 7.1 16.4 4 12 4C7.6 4 4 7.1 4 11C4 15.4 8.6 18.9 13.8 17.8L15 17.6Z",fill:"currentColor"}))})),th=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("circle",{cx:"10",cy:"10",r:"10",fill:"black",fillOpacity:"0.4"}),(0,r.createElement)("ellipse",{cx:"15.5552",cy:"6.66656",rx:"2.22222",ry:"2.22222",fill:"white"}))})),rh=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{d:"M87.5 48.8281H75V51.1719H87.5V48.8281Z",fill:"black"}),(0,r.createElement)("path",{d:"M25 48.8281H12.5V51.1719H25V48.8281Z",fill:"black"}),(0,r.createElement)("path",{d:"M51.1719 75H48.8281V87.5H51.1719V75Z",fill:"black"}),(0,r.createElement)("path",{d:"M51.1719 12.5H48.8281V25H51.1719V12.5Z",fill:"black"}),(0,r.createElement)("path",{d:"M77.3433 75.6868L69.4082 67.7517L67.7511 69.4088L75.6862 77.344L77.3433 75.6868Z",fill:"black"}),(0,r.createElement)("path",{d:"M32.2457 30.5897L24.3105 22.6545L22.6534 24.3117L30.5885 32.2468L32.2457 30.5897Z",fill:"black"}),(0,r.createElement)("path",{d:"M77.3407 24.3131L75.6836 22.656L67.7485 30.5911L69.4056 32.2483L77.3407 24.3131Z",fill:"black"}),(0,r.createElement)("path",{d:"M32.2431 69.4074L30.5859 67.7502L22.6508 75.6854L24.3079 77.3425L32.2431 69.4074Z",fill:"black"}))})),oh=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{d:"M22 10V6C22 4.9 21.11 4 20 4H4C2.9 4 2 4.9 2 6V10C3.1 10 4 10.9 4 12C4 13.1 3.1 14 2 14V18C2 19.1 2.9 20 4 20H20C21.11 20 22 19.1 22 18V14C20.89 14 20 13.1 20 12C20 10.9 20.89 10 22 10ZM20 8.54C18.81 9.23 18 10.52 18 12C18 13.48 18.81 14.77 20 15.46V18H4V15.46C5.19 14.77 6 13.48 6 12C6 10.52 5.19 9.23 4 8.54V6H20V8.54Z",fill:"currentColor"}),(0,r.createElement)("path",{opacity:"0.3",d:"M18 12C18 13.48 18.81 14.77 20 15.46V18H4V15.46C5.19 14.77 6 13.48 6 12C6 10.52 5.19 9.23 4 8.54V6H20V8.54C18.81 9.23 18 10.52 18 12Z",fill:"currentColor"}))})),nh=({page:e,previewing:t,onPreview:o,checked:n,onChange:a,forceChecked:i=!1})=>(0,r.createElement)("div",{className:"flex items-center rounded border border-gray-300"},(0,r.createElement)("div",{className:ca()("grow overflow-hidden text-gray-900",{"bg-gray-300":i})},(0,r.createElement)(Dm,{label:e.name,slug:e.slug,checked:n,onChange:a,locked:i})),(0,r.createElement)("button",{type:"button",className:ca()("hidden h-full min-h-6 min-w-6 shrink cursor-pointer items-center border-l border-gray-300 px-4 py-3 lg:flex",{"bg-gray-100 text-gray-800":!t,"bg-design-main text-white":t}),onClick:o},(0,r.createElement)(qm,{className:"h-6 w-6"}))),ah=(e,t,r={})=>{const{data:o,error:n}=ae(e,(e=>t(e)),{revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1,...r});return{data:o,loading:!o&&!n,error:n}},ih=(e,t)=>Xp(Qp(t,{name:`Extendify Launch ${e}`})),sh=({siteType:e})=>(async e=>{const{siteInformation:t}=cm.getState(),r=await Em("page",e,{siteInformation:t});if(!r?.recommended)throw new Error("Could not get pages");return{recommended:r.recommended.map((({slug:e,...t})=>({...t,slug:e,id:e}))),optional:r.optional.map((({slug:e,...t})=>({...t,slug:e,id:e})))}})(e),lh=e=>({key:"pages-list",siteType:null!=e?e:cm?.getState().siteType}),ch=ih("Pages",(()=>({ready:!0,canSkip:!1,validation:null,onRemove:()=>{const{pages:e,remove:t}=cm.getState();e.forEach((e=>t("pages",e)))}}))),uh={component:()=>{const{data:e,loading:t}=ah(lh,sh),[o,n]=(0,a.useState)(),[i,s]=(0,a.useState)(),{pages:l,remove:c,removeAll:u,add:d,has:p,style:m}=cm(),h=(0,a.useRef)(),f=(0,a.useMemo)((()=>({id:"home-page",slug:"home-page",name:(0,le.__)("Home page","extendify-local"),patterns:m?.patterns.map((({code:e})=>e)).flat().map(((e,t)=>({name:`pattern-${t}`,code:e})))})),[m]),g=(0,a.useMemo)((()=>({...m,patterns:o?.patterns||[]})),[m,o]),y=e=>{if(!p("pages",e))return d("pages",e),n(e);c("pages",e)};return(0,a.useEffect)((()=>{let e;const t=requestAnimationFrame((()=>{e=requestAnimationFrame((()=>{h?.current?.scrollTo(0,0)}))}));return()=>{cancelAnimationFrame(t),cancelAnimationFrame(e)}}),[o]),(0,a.useEffect)((()=>{o||n(f)}),[o,f]),(0,a.useEffect)((()=>{e?.recommended&&(u("pages"),e.recommended.forEach((e=>d("pages",e))))}),[e?.recommended,u,d]),(0,r.createElement)(fh,null,(0,r.createElement)("div",{className:"grow space-y-4 overflow-y-scroll lg:flex lg:space-y-0"},(0,r.createElement)("div",{className:"l6:px-16 hidden h-full min-h-screen grow overflow-y-hidden bg-gray-100 px-4 pt-0 lg:block lg:min-h-0 lg:pb-0 xl:px-32"},(0,r.createElement)("div",{className:"flex h-full flex-col"},(0,r.createElement)("h3",{className:"my-2 text-center text-base font-medium text-gray-700 lg:my-4 lg:text-lg"},o?.name),(0,r.createElement)("div",{ref:h,className:"relative h-full grow overflow-x-hidden rounded-t-lg lg:h-auto lg:overflow-y-scroll"},o&&!t&&(0,r.createElement)(Nm,{ref:h,style:g})))),(0,r.createElement)("div",{className:"flex w-full flex-col items-center overflow-y-auto px-6 py-8 lg:max-w-lg lg:px-12 lg:py-16"},(0,r.createElement)(wm,{title:(0,le.__)("Pick the pages to add to your website","extendify-local"),description:(0,le.__)("We already selected the most common pages for your type of website.","extendify-local")}),(0,r.createElement)("div",{className:"flex w-full flex-col gap-4 pb-4","data-test":"recommended-pages"},(0,r.createElement)(nh,{page:f,previewing:f.id===o?.id,onPreview:()=>n(f),checked:!0,forceChecked:!0,onChange:()=>{}}),e?.recommended?.map((e=>(0,r.createElement)(nh,{key:e.id,page:e,previewing:e.id===o?.id,onPreview:()=>n(e),checked:p("pages",e),onChange:()=>y(e)})))),!i&&(0,r.createElement)("div",{className:"flex items-center justify-center"},(0,r.createElement)("button",{type:"button","data-test":"expand-more",onClick:s,className:"button-focus my-4 cursor-pointer bg-transparent text-center text-sm font-medium text-gray-900 hover:text-design-main"},(0,le.__)("View more pages","extendify-local"))),i&&(0,r.createElement)("div",{className:"flex w-full flex-col gap-4 pb-4","data-test":"optional-pages"},e?.optional?.map((e=>(0,r.createElement)(nh,{key:e.id,page:e,previewing:e.id===o?.id,onPreview:()=>n(e),checked:l?.some((t=>t.id===e.id)),onChange:()=>y(e)})))))))},fetcher:sh,fetchData:lh,state:ch},dh=()=>{const{currentPageIndex:e,setPage:t,addPage:o,removePage:n,replaceHistory:i,pushHistory:s}=Sf(),{siteStructure:l}=cm();return(0,a.useLayoutEffect)((()=>{"multi-page"!==l?n("page-select"):o("page-select",uh,"layout")}),[l,o,n]),(0,a.useEffect)((()=>{const r=()=>{null===history.state&&i(e)};window.addEventListener("load",r);const o=()=>{const r=e-1;-1===r&&history.go(-1),t(r),s(r)};return window.addEventListener("popstate",o),()=>{window.removeEventListener("load",r),window.removeEventListener("popstate",o)}}),[t,i,s,e]),(0,r.createElement)("div",{className:"flex justify-between"},(0,r.createElement)("span",{className:"flex-1 self-start"},(0,r.createElement)(mh,null)),(0,r.createElement)("span",{className:"hidden grow items-center justify-center md:flex"},(0,r.createElement)(ph,null)),(0,r.createElement)("span",{className:"flex flex-1 justify-end"},(0,r.createElement)(hh,null)))},ph=()=>{const{currentPageIndex:e,pages:t}=Sf(),o=Sf((e=>e.count())),n=Array.from(t.entries());return(0,r.createElement)("div",{className:"flex",role:"progressbar","aria-valuenow":e,"aria-valuemin":"0","aria-valuetext":n[e][1].state.getState().title,"aria-valuemax":o-1},n.map((([t],n)=>{const a=n<e?"bg-design-main":"bg-gray-200";return(0,r.createElement)("div",{key:t,className:"flex items-center"},n!==e&&(0,r.createElement)("div",{className:`${a} h-2.5 w-2.5 rounded-full`}),n===e&&(0,r.createElement)("div",{className:"flex h-4 w-4 items-center justify-center rounded-full bg-design-main"},(0,r.createElement)("div",{className:"h-1.5 w-1.5 rounded-full bg-white/80"})),n<o-1&&(0,r.createElement)("div",{className:`${a} h-0.5 w-16`}))})))},mh=()=>{const{previousPage:e,currentPageIndex:t}=Sf();return 0===t?(0,r.createElement)(vm,{onClick:()=>window.location.href=`${window.extSharedData.adminUrl}admin.php?page=extendify-assist`,className:"border-gray-200 bg-white text-design-main hover:bg-gray-50 focus:bg-gray-50"},(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Bm,{className:"mt-px h-5 w-5"}),(0,le.__)("Exit Launch","extendify-local"))):(0,r.createElement)(vm,{onClick:e,"data-test":"back-button",className:"border-gray-200 bg-white text-design-main hover:bg-gray-50 focus:bg-gray-50"},(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Bm,{className:"mt-px h-5 w-5"}),(0,le.__)("Back","extendify-local")))},hh=()=>{const{nextPage:e,currentPageIndex:t,pages:o}=Sf(),n=Sf((e=>e.count())),i=cm((e=>e.canLaunch())),s=t===n-1,l=Array.from(o.keys())[t],c=o.get(l).state,[u,d]=(0,a.useState)(!1),[p,m]=(0,a.useState)(!1),[h,f]=(0,a.useState)({}),[g,y]=(0,a.useState)(!1),w=()=>{if(h?.message){y(!0);const e=setTimeout((()=>{y(!1)}),3e3);return()=>clearTimeout(e)}i&&s?hm.setState({generating:!0}):e()};return(0,a.useEffect)((()=>{const{ready:e,canSkip:t,validation:r}=c?.getState()||{};return m(null!=t&&t),d(null!=e&&e),f(null!=r?r:{}),c.subscribe((e=>{m(e.canSkip),d(e.ready),f(e.validation)}))}),[c,t]),(0,r.createElement)(r.Fragment,null,p?(0,r.createElement)(vm,{onClick:()=>w(),"data-test":"back-button",className:"mr-2 border-gray-200 bg-white text-design-main hover:bg-gray-50 focus:bg-gray-50"},(0,r.createElement)(r.Fragment,null,(0,le.__)("Skip","extendify-local"),(0,r.createElement)(Xm,{className:"mt-px h-5 w-5"}))):(0,r.createElement)(vm,{onClick:w,disabled:!u,className:"border-design-main bg-design-main text-design-text","data-test":"next-button"},(0,r.createElement)(r.Fragment,null,(0,le.__)("Next","extendify-local"),(0,r.createElement)(Xm,{className:"mt-px h-5 w-5"}))),(0,r.createElement)(Pa,null,g&&h&&(0,r.createElement)(Up.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},className:"extendify-launch fixed bottom-[100px] z-max flex w-full justify-end pb-4"},(0,r.createElement)("div",{className:"shadow-2xl"},(0,r.createElement)(zr.Snackbar,{actions:h?.action?[h?.action]:[]},h?.message)))))},fh=({children:e,includeNav:t=!0})=>{var o;return(0,r.createElement)("div",{className:"flex h-[calc(100dvh)] flex-col"},(0,r.createElement)("div",{className:"w-full flex-none bg-banner-main px-6 py-5 md:px-12 md:py-6"},window.extSharedData?.partnerLogo?(0,r.createElement)("div",{className:"flex h-10 max-w-52 items-center overflow-hidden md:max-w-72"},(0,r.createElement)("img",{className:"max-h-full max-w-full object-contain",src:window.extSharedData.partnerLogo,alt:null!==(o=window.extSharedData?.partnerName)&&void 0!==o?o:""})):(0,r.createElement)(Hm,{className:"h-8 w-auto text-banner-text"})),e,t&&(0,r.createElement)("div",{className:"z-10 w-full flex-none border-t border-gray-100 bg-white px-6 py-5 shadow-surface md:px-12 md:py-6"},(0,r.createElement)(dh,null)))},gh=ih("Business Information",(()=>({ready:!0,canSkip:!0,validation:null,onRemove:()=>{}}))),yh=()=>{const{businessInformation:e,setBusinessInformation:t}=cm(),[o,n]=(0,a.useState)(e?.description||""),i=Sf((e=>e.nextPage)),s=window.extSharedData?.consentTermsHTML,l=window.extSharedData?.showAIConsent&&s;return(0,a.useEffect)((()=>{const e=setTimeout((()=>{t("description",o)}),500);return gh.setState({canSkip:!o}),()=>clearTimeout(e)}),[o,t]),(0,a.useEffect)((()=>{l&&(!e.acceptTerms&&e.description?gh.setState({validation:{message:(0,le.__)("Please accept the terms to continue","extendify-local")}}):gh.setState({validation:null}))}),[e,l]),(0,r.createElement)("form",{onSubmit:e=>{e.preventDefault(),gh.getState().ready&&i()}},(0,r.createElement)("div",{className:"mb-2"},(0,r.createElement)(gm,{description:o,setDescription:n})),(0,r.createElement)("div",{className:"mb-8"},(0,r.createElement)(ym,null)),l?(0,r.createElement)("div",{className:"mb-8 flex items-center"},(0,r.createElement)(fm,{consentTermsHTML:s,acceptTerms:e.acceptTerms,setAcceptTerms:e=>{t("acceptTerms",e)}})):null)},wh=e=>{const{label:t,description:o,Icon:n,checked:a,...i}=e;return(0,r.createElement)("label",{className:"flex h-full w-full items-center justify-between p-4 font-semibold text-gray-900",htmlFor:e.id},(0,r.createElement)("div",{className:"flex flex-auto items-center"},(0,r.createElement)("span",{className:"relative mr-3 inline-block h-5 w-5 align-middle"},(0,r.createElement)("input",{...i,checked:a,className:"m-0 h-5 w-5 rounded-sm",type:"checkbox"}),(0,r.createElement)("svg",{className:ca()("absolute inset-0 -mt-px block h-5 w-5",{"text-white":a,"text-transparent":!a}),viewBox:"1 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation"},(0,r.createElement)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"}))),(0,r.createElement)("span",null,(0,r.createElement)("span",{className:"text-sm font-medium"},t),o?(0,r.createElement)("span",{className:"block pr-4 pt-1 font-normal text-gray-700"},o):(0,r.createElement)("span",null))),n&&(0,r.createElement)(n,{className:"h-6 w-6 flex-none text-design-main"}))},vh=()=>(0,r.createElement)("p",{className:"w-full text-center text-base text-gray-700"},(0,le.__)("Loading...","extendify-local")),bh=e=>(async({siteTypeSlug:e})=>{const t=await Sr.get("launch/goals",{params:{site_type:null!=e?e:"all"}});if(!t?.data)throw new Error("Could not get goals");return t.data})(e),xh=()=>({key:"goals",siteTypeSlug:cm.getState()?.siteType?.slug}),Eh=()=>(async()=>{const e=await Sr.get("launch/suggested-plugins");if(!e?.data)throw new Error("Could not get suggested plugins");return e.data})(),kh=()=>({key:"plugins"}),Sh=ih("Goals",(()=>({title:(0,le.__)("Goals","extendify-local"),ready:!1,canSkip:!1,validation:null,onRemove:()=>{}}))),Ch=()=>{const{siteType:e}=cm(),{addMany:o,toggle:n,goals:i}=cm(),[s,l]=(0,a.useState)(null!=i?i:[]),{data:c}=ah(xh(),bh),{data:u}=ah(kh,Eh),d=Sf((e=>e.nextPage));return(0,a.useEffect)((()=>{Sh.setState({ready:!0})}),[]),(0,a.useEffect)((()=>{Sh.setState({ready:!1});const e=setTimeout((()=>{o("goals",s,{clearExisting:!0});const e=s?.map((e=>e.slug)),t=u?.filter((t=>t.goals.find((t=>e?.includes(t)))));o("plugins",t,{clearExisting:!0}),Sh.setState({ready:!0})}),750);return()=>clearTimeout(e)}),[s,o,n,u]),(0,r.createElement)("form",{"data-test":"goals-form",onSubmit:e=>{e.preventDefault(),d()},className:"goal-select grid w-full gap-4 xl:grid-cols-2"},(0,r.createElement)("input",{type:"submit",className:"hidden"}),c?.map(((e,o)=>{const n=s?.find((({slug:t})=>t===e.slug)),a=t[e.icon];return(0,r.createElement)("div",{key:e.id,className:ca()("relative rounded-lg border border-gray-300",{"bg-gray-100":n}),"data-test":"goal-item"},(0,r.createElement)("div",{className:"flex h-full items-center gap-4"},(0,r.createElement)(wh,{autoFocus:0===o,label:e.title,id:`goal-${e.slug}`,description:e.description,checked:!!s?.find((({slug:t})=>t===e.slug)),onChange:()=>(e=>{const t=s?.find((({slug:t})=>t===e.slug))?s?.filter((({slug:t})=>t!==e.slug)):[...s,e];l(t)})(e),Icon:a})))})))};var Ph={grad:.9,turn:360,rad:360/(2*Math.PI)},Th=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},Lh=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=Math.pow(10,t)),Math.round(r*e)/r+0},Mh=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=1),e>r?r:e>t?e:t},Rh=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Ah=function(e){return{r:Mh(e.r,0,255),g:Mh(e.g,0,255),b:Mh(e.b,0,255),a:Mh(e.a)}},_h=function(e){return{r:Lh(e.r),g:Lh(e.g),b:Lh(e.b),a:Lh(e.a,3)}},Oh=/^#([0-9a-f]{3,8})$/i,Nh=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Dh=function(e){var t=e.r,r=e.g,o=e.b,n=e.a,a=Math.max(t,r,o),i=a-Math.min(t,r,o),s=i?a===t?(r-o)/i:a===r?2+(o-t)/i:4+(t-r)/i:0;return{h:60*(s<0?s+6:s),s:a?i/a*100:0,v:a/255*100,a:n}},Fh=function(e){var t=e.h,r=e.s,o=e.v,n=e.a;t=t/360*6,r/=100,o/=100;var a=Math.floor(t),i=o*(1-r),s=o*(1-(t-a)*r),l=o*(1-(1-t+a)*r),c=a%6;return{r:255*[o,s,i,i,l,o][c],g:255*[l,o,o,s,i,i][c],b:255*[i,i,l,o,o,s][c],a:n}},Vh=function(e){return{h:Rh(e.h),s:Mh(e.s,0,100),l:Mh(e.l,0,100),a:Mh(e.a)}},jh=function(e){return{h:Lh(e.h),s:Lh(e.s),l:Lh(e.l),a:Lh(e.a,3)}},Ih=function(e){return Fh((r=(t=e).s,{h:t.h,s:(r*=((o=t.l)<50?o:100-o)/100)>0?2*r/(o+r)*100:0,v:o+r,a:t.a}));var t,r,o},Bh=function(e){return{h:(t=Dh(e)).h,s:(n=(200-(r=t.s))*(o=t.v)/100)>0&&n<200?r*o/100/(n<=100?n:200-n)*100:0,l:n/2,a:t.a};var t,r,o,n},Hh=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Uh=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,zh=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,$h=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Wh={string:[[function(e){var t=Oh.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?Lh(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?Lh(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=zh.exec(e)||$h.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Ah({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=Hh.exec(e)||Uh.exec(e);if(!t)return null;var r,o,n=Vh({h:(r=t[1],o=t[2],void 0===o&&(o="deg"),Number(r)*(Ph[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return Ih(n)},"hsl"]],object:[[function(e){var t=e.r,r=e.g,o=e.b,n=e.a,a=void 0===n?1:n;return Th(t)&&Th(r)&&Th(o)?Ah({r:Number(t),g:Number(r),b:Number(o),a:Number(a)}):null},"rgb"],[function(e){var t=e.h,r=e.s,o=e.l,n=e.a,a=void 0===n?1:n;if(!Th(t)||!Th(r)||!Th(o))return null;var i=Vh({h:Number(t),s:Number(r),l:Number(o),a:Number(a)});return Ih(i)},"hsl"],[function(e){var t=e.h,r=e.s,o=e.v,n=e.a,a=void 0===n?1:n;if(!Th(t)||!Th(r)||!Th(o))return null;var i=function(e){return{h:Rh(e.h),s:Mh(e.s,0,100),v:Mh(e.v,0,100),a:Mh(e.a)}}({h:Number(t),s:Number(r),v:Number(o),a:Number(a)});return Fh(i)},"hsv"]]},qh=function(e,t){for(var r=0;r<t.length;r++){var o=t[r][0](e);if(o)return[o,t[r][1]]}return[null,void 0]},Zh=function(e,t){var r=Bh(e);return{h:r.h,s:Mh(r.s+100*t,0,100),l:r.l,a:r.a}},Kh=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Yh=function(e,t){var r=Bh(e);return{h:r.h,s:r.s,l:Mh(r.l+100*t,0,100),a:r.a}},Xh=function(){function e(e){this.parsed=function(e){return"string"==typeof e?qh(e.trim(),Wh.string):"object"==typeof e&&null!==e?qh(e,Wh.object):[null,void 0]}(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return Lh(Kh(this.rgba),2)},e.prototype.isDark=function(){return Kh(this.rgba)<.5},e.prototype.isLight=function(){return Kh(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=_h(this.rgba)).r,r=e.g,o=e.b,a=(n=e.a)<1?Nh(Lh(255*n)):"","#"+Nh(t)+Nh(r)+Nh(o)+a;var e,t,r,o,n,a},e.prototype.toRgb=function(){return _h(this.rgba)},e.prototype.toRgbString=function(){return t=(e=_h(this.rgba)).r,r=e.g,o=e.b,(n=e.a)<1?"rgba("+t+", "+r+", "+o+", "+n+")":"rgb("+t+", "+r+", "+o+")";var e,t,r,o,n},e.prototype.toHsl=function(){return jh(Bh(this.rgba))},e.prototype.toHslString=function(){return t=(e=jh(Bh(this.rgba))).h,r=e.s,o=e.l,(n=e.a)<1?"hsla("+t+", "+r+"%, "+o+"%, "+n+")":"hsl("+t+", "+r+"%, "+o+"%)";var e,t,r,o,n},e.prototype.toHsv=function(){return e=Dh(this.rgba),{h:Lh(e.h),s:Lh(e.s),v:Lh(e.v),a:Lh(e.a,3)};var e},e.prototype.invert=function(){return Gh({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),Gh(Zh(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Gh(Zh(this.rgba,-e))},e.prototype.grayscale=function(){return Gh(Zh(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Gh(Yh(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Gh(Yh(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?Gh({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Lh(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=Bh(this.rgba);return"number"==typeof e?Gh({h:e,s:t.s,l:t.l,a:t.a}):Lh(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Gh(e).toHex()},e}(),Gh=function(e){return e instanceof Xh?e:new Xh(e)};const Jh=({style:e,onSelect:t,selected:o})=>{var n;const i=(0,a.useRef)(null),s=(0,a.useRef)(null),l=(0,a.useRef)(null),[c,u]=(0,a.useState)(!1),d=e?.variation,p=d?.settings?.color?.palette?.theme,m=(0,a.useMemo)((()=>Om?.[e?.variation?.title]?(0,Cm.transformStyles)([{css:Om[e?.variation?.title]}],"html body.editor-styles-wrapper"):null),[e?.variation]),h=(0,a.useCallback)((e=>{let t=performance.now(),r=0;const o=()=>{if(r>=150)return;const n=performance.now();if(n-t<100)return requestAnimationFrame(o);t=n,e?.contentDocument?.querySelector("[href*=load-styles]")?.remove();const a=`<style id="ext-tj">\n html body.editor-styles-wrapper { background-color: var(--wp--preset--color--background) }\n ${m}\n </style>`;e.contentDocument?.getElementById("ext-tj")||e.contentDocument?.body?.insertAdjacentHTML("beforeend",a),r++,requestAnimationFrame(o)};o()}),[m]),{loading:f,ready:g}=Mm({container:s.current,ready:c,onLoad:h,loadDelay:2e3}),y=(0,a.useMemo)((()=>{const t=[ce.about.title,ce.blog.title,ce.contact.title],r=[e?.headerCode,e?.patterns.map((({code:e})=>e)).flat().slice(0,3).join("\n"),e?.footerCode].filter(Boolean).join("").replace(/<!-- wp:navigation[.\S\s]*?\/wp:navigation -->/g,`\x3c!-- wp:paragraph {"className":"tmp-nav"} --\x3e<p class="tmp-nav">${t.join(" | ")}</p >\x3c!-- /wp:paragraph --\x3e`).replace(/<!-- wp:navigation.*\/-->/g,`\x3c!-- wp:paragraph {"className":"tmp-nav"} --\x3e<p class="tmp-nav">${t.join(" | ")}</p >\x3c!-- /wp:paragraph --\x3e`).replace(/<!-- wp:site-logo.*\/-->/g,'\x3c!-- wp:paragraph {"className":"custom-logo"} --\x3e<img class="custom-logo" style="height: 40px;" src="https://assets.extendify.com/demo-content/logos/extendify-demo-logo.png">\x3c!-- /wp:paragraph --\x3e');return(0,Pm.rawHandler)({HTML:Rm(r)})}),[e]);return(0,a.useEffect)((()=>{if(!l.current)return l.current=new IntersectionObserver((e=>{e[0].isIntersecting&&u(!0)})),l.current.observe(s.current),()=>l.current.disconnect()}),[]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{"data-test":"layout-preview",className:"relative h-full w-full overflow-hidden",ref:s,role:t?"button":void 0,tabIndex:t?0:void 0,"aria-label":t?(0,le.__)("Press to select","extendify-local"):void 0,"aria-selected":t?o:void 0,onKeyDown:r=>{["Enter","Space"," "].includes(r.key)&&t&&t({...e,variation:d})},onClick:t?()=>t({...e,variation:d}):()=>{}},c?(0,r.createElement)(Up.div,{ref:i,className:ca()("absolute inset-0 z-20",{"opacity-0":!g}),initial:{opacity:0},animate:{opacity:f?0:1}},(0,r.createElement)(Cm.BlockPreview,{blocks:y,viewportWidth:1400,additionalStyles:[{css:'.rich-text [data-rich-text-placeholder]:after { content: "" }'}]})):null,(0,r.createElement)(Pa,null,g||(0,r.createElement)(Up.div,{initial:{opacity:.7},animate:{opacity:1},exit:{opacity:0},transition:{duration:.5},className:"absolute inset-0 z-30",style:{backgroundColor:Gh(null!==(n=p?.find((({slug:e})=>"primary"===e))?.color)&&void 0!==n?n:"#ccc").alpha(.25).toRgbString(),backgroundImage:"linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%)",backgroundSize:"600% 600%",animation:"extendify-loading-skeleton 10s ease-in-out infinite"}}))))},Qh=async({siteType:e})=>{const t=await Em("home",e),{headers:r,footers:o}=await(async()=>{let e=await Sr.get(Lr+"wp/v2/template-parts");e=e?.filter((e=>"extendable"===e.theme));const t=e?.filter((e=>Fr.includes(e?.slug))),r=e?.filter((e=>Vr.includes(e?.slug)));return{headers:t,footers:r}})();if(!t?.length)throw new Error("Could not get styles");return t.map(((e,t)=>{var n,a;const i=r[t%r.length],s=o[t%o.length];return{...e,headerCode:null!==(n=i?.content?.raw?.trim())&&void 0!==n?n:"",footerCode:null!==(a=s?.content?.raw?.trim())&&void 0!==a?a:""}}))},ef=e=>({key:"home-pages-list",siteType:null!=e?e:cm?.getState().siteType}),tf=ih("Layout",(()=>({ready:!1,canSkip:!1,validation:null,onRemove:()=>{}}))),rf=({homeTemplate:e})=>{const{data:t}=ah("variations",jr),o=(()=>{const e=(0,a.useRef)(!1);return(0,a.useLayoutEffect)((()=>(e.current=!0,()=>e.current=!1))),e})(),[n,i]=(0,a.useState)([]),{setStyle:s,style:l}=cm(),c=(0,a.useCallback)((e=>s(e)),[s]),u=(0,a.useRef)(),d=(0,a.useRef)(!1);return(0,a.useEffect)((()=>{tf.setState({ready:!!l?.variation?.title})}),[l]),(0,a.useEffect)((()=>{e&&t&&(n.length||(s(null),(async()=>{const r=Array.from(e.entries());for(const[e,n]of r){if(!o.current)return;i((r=>[...r,{...n,variation:t[e%t.length]}]));const r=Math.floor(851*Math.random())+150;await new Promise((e=>setTimeout(e,r)))}})()))}),[e,o,t,n.length,s]),(0,a.useEffect)((()=>{if(!l||!n||d.current)return;const e=u.current?.querySelector(`#layout-style-${l.slug} [role="button"]`);e&&(d.current=!0,e.focus())}),[l,n]),(0,r.createElement)("div",{className:"grid gap-8 md:grid-cols-2 lg:grid-cols-3","data-test":"layout-preview-wrapper",ref:u},n?.map((e=>(0,r.createElement)("div",{className:"relative",key:e.id},(0,r.createElement)(Pa,null,(0,r.createElement)(Up.div,{initial:{opacity:0},animate:{opacity:1},duration:.7,className:ca()("relative cursor-pointer overflow-hidden rounded border border-gray-200 ring-offset-2 ring-offset-white focus-within:outline-none focus-within:ring-4 focus-within:ring-design-main focus-within:ring-offset-2 focus-within:ring-offset-white hover:outline-none hover:ring-4",{"ring-4 ring-design-main ring-offset-2 ring-offset-white hover:ring-design-main":l?.id===e.id,"hover:ring-gray-300":l?.id!==e.id}),style:{aspectRatio:"1.55"}},(0,r.createElement)(Jh,{style:e,onSelect:c,selected:l?.id===e.id}))),(0,r.createElement)("span",{"aria-hidden":"true"},l?.id===e.id?(0,r.createElement)(Vm,{className:"absolute right-0 top-0 z-50 m-2 h-6 w-6 -translate-y-5 translate-x-5 rounded-full bg-design-main text-design-text"}):null)))),e?.slice(n?.length).map(((e,t)=>(0,r.createElement)(Pa,{key:t},(0,r.createElement)(Up.div,{initial:{opacity:1},animate:{opacity:1},exit:{opacity:0},duration:.7,className:"relative bg-gray-50",style:{aspectRatio:"1.55",backgroundImage:"linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%)",backgroundSize:"600% 600%",animation:"extendify-loading-skeleton 10s ease-in-out infinite"}})))))},of=window.wp.htmlEntities,nf=async()=>({title:await Rr("blogname")}),af=()=>({key:"site-info"}),sf=ih("Site Information",(()=>({ready:!1,canSkip:!1,validation:null,onRemove:()=>{}}))),lf=()=>{var e;const{siteInformation:t,setSiteInformation:o}=cm(),n=Sf((e=>e.nextPage)),{data:i}=ah(af,nf),s=(0,a.useRef)(null),[l,c]=(0,a.useState)(t?.title);return(0,a.useEffect)((()=>{var e;void 0===t.title&&c(null!==(e=i?.title)&&void 0!==e?e:"")}),[i.title,t.title]),(0,a.useEffect)((()=>{if(void 0===l)return;sf.setState({ready:!1});const e=setTimeout((()=>{Mr("blogname",l),o("title",l),sf.setState({ready:!0})}),750);return()=>clearTimeout(e)}),[o,l]),(0,a.useEffect)((()=>{const e=requestAnimationFrame((()=>s.current?.focus()));return()=>cancelAnimationFrame(e)}),[]),void 0===t?.title?(0,r.createElement)(vh,null):(0,r.createElement)("form",{onSubmit:e=>{e.preventDefault(),sf.getState().ready&&n()}},(0,r.createElement)("label",{htmlFor:"extendify-site-title-input",className:"sr-only"},(0,le.__)("What's the name of your website?","extendify-local")),(0,r.createElement)("div",{className:"mb-8"},(0,r.createElement)("input",{"data-test":"site-title-input",autoComplete:"off",ref:s,type:"text",name:"site-title-input",id:"extendify-site-title-input",className:"input-focus h-12 w-full rounded border border-gray-200 px-4 py-6 ring-offset-0",value:null!==(e=(0,of.decodeEntities)(l))&&void 0!==e?e:"",onChange:e=>c(e.target.value),placeholder:(0,le.__)("Enter your website name","extendify-local")})))},cf=(0,a.forwardRef)((function({icon:e,size:t=24,...r},o){return(0,a.cloneElement)(e,{width:t,height:t,...r,ref:o})})),uf=window.wp.primitives,df=(0,ua.jsx)(uf.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ua.jsx)(uf.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"})}),pf=ih("Site Template Type",(()=>({ready:!1,canSkip:!1,validation:null,onRemove:()=>{}}))),mf=({title:e,description:t,onClick:o,selected:n,imageSrc:a})=>(0,r.createElement)("div",{"data-test":"site-template-type",className:ca()("relative flex-1 cursor-pointer overflow-hidden rounded border border-gray-200 ring-offset-2 ring-offset-white focus-within:outline-none focus-within:ring-4 focus-within:ring-design-main focus-within:ring-offset-2 focus-within:ring-offset-white hover:outline-none hover:ring-4",{"ring-4 ring-design-main ring-offset-2 ring-offset-white hover:ring-design-main":n,"hover:ring-gray-300":!n}),role:"button",tabIndex:0,"aria-label":(0,le.__)("Press to select","extendify-local"),"aria-selected":n,onKeyDown:e=>{["Enter","Space"," "].includes(e.key)&&(e.preventDefault(),o())},onClick:o},(0,r.createElement)("div",{className:"aspect-none hidden w-full justify-center overflow-hidden bg-gray-100 group-hover:opacity-75 lg:flex lg:h-80"},(0,r.createElement)("img",{alt:"",src:a,className:"h-full object-cover object-center lg:h-full"})),(0,r.createElement)("div",{className:"p-4 lg:p-6"},(0,r.createElement)("p",{className:"m-0 mb-4 p-0 text-gray-700"},t),(0,r.createElement)("div",{className:"flex items-center justify-between"},(0,r.createElement)("h1",{className:"m-0 p-0 text-lg font-semibold"},e),(0,r.createElement)(cf,{icon:df})))),hf=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),ff={dedupe:!0};p.defineProperty(K,"defaultValue",{value:W});const gf=ee(((e,t,o)=>{const{cache:n,compare:a,suspense:i,fallbackData:s,revalidateOnMount:l,revalidateIfStale:u,refreshInterval:p,refreshWhenHidden:g,refreshWhenOffline:y,keepPreviousData:w}=o,[b,x,E,k]=v.get(n),[S,P]=V(e),T=(0,r.useRef)(!1),L=(0,r.useRef)(!1),M=(0,r.useRef)(S),R=(0,r.useRef)(t),D=(0,r.useRef)(o),F=()=>D.current,j=()=>F().isVisible()&&F().isOnline(),[H,U,z,$]=C(n,S),W=(0,r.useRef)({}).current,q=m(s)?o.fallback[S]:s,Z=(e,t)=>{for(const r in W){const o=r;if("data"===o){if(!a(e[o],t[o])){if(!m(e[o]))return!1;if(!a(oe,t[o]))return!1}}else if(t[o]!==e[o])return!1}return!0},K=(0,r.useMemo)((()=>{const e=!!S&&!!t&&(m(l)?!F().isPaused()&&!i&&(!!m(u)||u):l),r=t=>{const r=f(t);return delete r._k,e?{isValidating:!0,isLoading:!0,...r}:r},o=H(),n=$(),a=r(o),s=o===n?a:r(n);let c=a;return[()=>{const e=r(H());return Z(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>s]}),[n,S]),Y=(0,c.useSyncExternalStore)((0,r.useCallback)((e=>z(S,((t,r)=>{Z(r,t)||e()}))),[n,S]),K[0],K[1]),X=!T.current,G=b[S]&&b[S].length>0,J=Y.data,Q=m(J)?q:J,ee=Y.error,re=(0,r.useRef)(Q),oe=w?m(J)?re.current:J:Q,ne=!(G&&!m(ee))&&(X&&!m(l)?l:!F().isPaused()&&(i?!m(Q)&&u:m(Q)||u)),ae=!!(S&&t&&X&&ne),ie=m(Y.isValidating)?ae:Y.isValidating,se=m(Y.isLoading)?ae:Y.isLoading,le=(0,r.useCallback)((async e=>{const t=R.current;if(!S||!t||L.current||F().isPaused())return!1;let r,n,i=!0;const s=e||{},l=!E[S]||!s.dedupe,c=()=>A?!L.current&&S===M.current&&T.current:S===M.current,u={isValidating:!1,isLoading:!1},p=()=>{U(u)},f=()=>{const e=E[S];e&&e[1]===n&&delete E[S]},g={isValidating:!0};m(H().data)&&(g.isLoading=!0);try{if(l&&(U(g),o.loadingTimeout&&m(H().data)&&setTimeout((()=>{i&&c()&&F().onLoadingSlow(S,o)}),o.loadingTimeout),E[S]=[t(P),I()]),[r,n]=E[S],r=await r,l&&setTimeout(f,o.dedupingInterval),!E[S]||E[S][1]!==n)return l&&c()&&F().onDiscarded(S),!1;u.error=d;const e=x[S];if(!m(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return p(),l&&c()&&F().onDiscarded(S),!1;const s=H().data;u.data=a(s,r)?s:r,l&&c()&&F().onSuccess(r,S,o)}catch(e){f();const t=F(),{shouldRetryOnError:r}=t;t.isPaused()||(u.error=e,l&&c()&&(t.onError(e,S,t),(!0===r||h(r)&&r(e))&&(F().revalidateOnFocus&&F().revalidateOnReconnect&&!j()||t.onErrorRetry(e,S,t,(e=>{const t=b[S];t&&t[0]&&t[0](3,e)}),{retryCount:(s.retryCount||0)+1,dedupe:!0}))))}return i=!1,p(),!0}),[S,n]),ce=(0,r.useCallback)(((...e)=>B(n,M.current,...e)),[]);if(N((()=>{R.current=t,D.current=o,m(J)||(re.current=J)})),N((()=>{if(!S)return;const e=le.bind(d,ff);let t=0;const r=te(S,b,((r,o={})=>{if(0==r){const r=Date.now();F().revalidateOnFocus&&r>t&&j()&&(t=r+F().focusThrottleInterval,e())}else if(1==r)F().revalidateOnReconnect&&j()&&e();else{if(2==r)return le();if(3==r)return le(o)}}));return L.current=!1,M.current=S,T.current=!0,U({_k:P}),ne&&(m(Q)||_?e():O(e)),()=>{L.current=!0,r()}}),[S]),N((()=>{let e;function t(){const t=h(p)?p(H().data):p;t&&-1!==e&&(e=setTimeout(r,t))}function r(){H().error||!g&&!F().isVisible()||!y&&!F().isOnline()?t():le(ff).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[p,g,y,S]),(0,r.useDebugValue)(oe),i&&m(Q)&&S){if(!A&&_)throw new Error("Fallback data is required when using suspense in SSR.");R.current=t,D.current=o,L.current=!1;const e=k[S];if(!m(e)){const t=ce(e);hf(t)}if(!m(ee))throw ee;{const e=le(ff);m(oe)||(e.status="fulfilled",e.value=!0),hf(e)}}return{mutate:ce,get data(){return W.data=!0,oe},get error(){return W.error=!0,ee},get isValidating(){return W.isValidating=!0,ie},get isLoading(){return W.isLoading=!0,se}}})),yf=((e,t)=>(...r)=>{const[o,n,a]=G(r),i=(a.use||[]).concat(t);return e(o,n,{...a,use:i})})(gf,(e=>(t,r,o)=>(o.revalidateOnFocus=!1,o.revalidateIfStale=!1,o.revalidateOnReconnect=!1,e(t,r,o)))),wf=ih("Site Industry",(()=>({ready:!1,canSkip:!1,validation:null,onRemove:()=>{}}))),vf=()=>{const{nextPage:e}=Sf(),{siteType:t,setSiteType:o,setSiteTypeSearch:n}=cm(),[i,s]=(0,a.useState)(""),[l,c]=(0,a.useState)(""),{data:u,loading:d}=(e=>{const{data:t,error:r}=yf(e||"cold-boot",(async()=>{const{wpLanguage:t}=window.extSharedData,r=performance.now(),o=new URL(`${bm}/api/site-types`);e&&o.searchParams.append("search",e),e||o.searchParams.append("boot","true"),t&&o.searchParams.append("lang",t);const n=await fetch(o.toString(),{headers:{"Content-Type":"application/json"}});if(!e)return;if(!n.ok)throw new Error("Bad response from server");const a=await n.json();if(!Array.isArray(a))throw new Error("Bad response from server");return{siteTypes:a,time:((performance.now()-r)/1e3).toFixed(4)}}));return{data:t,error:r,loading:!t&&!r}})(l),{siteTypes:p}=null!=u?u:{};return(0,a.useEffect)((()=>{wf.setState({ready:!!t?.slug})}),[t]),(0,a.useEffect)((()=>{if(!i)return;const e=setTimeout((()=>c(i)),300),t=setTimeout((()=>n(i)),1e3);return()=>{clearTimeout(e),clearTimeout(t)}}),[i,n]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"relative"},(0,r.createElement)("input",{autoFocus:!0,"data-test":"site-type-search",className:"input-focus relative z-20 m-0 h-14 w-full rounded border border-gray-300 px-4 shadow-sm outline-none ring-offset-0 focus:bg-white",autoComplete:"off",spellCheck:!1,placeholder:(0,le.__)("Search for your site type","extendify-local"),onChange:e=>s(e.target.value)})),d&&i&&(0,r.createElement)("div",{className:"mt-5 text-sm"},(0,le.__)("Searching...","extendify-local")),(0,r.createElement)("div",{className:"mt-5 flex flex-col gap-3","data-test":"site-type-list"},t?.name&&(!d||!i)&&(0,r.createElement)("div",{className:"group relative flex items-center justify-between gap-2 overflow-hidden rounded border border-gray-200 bg-gray-100 px-3 py-2.5 text-base transition-all duration-100 ease-in-out"},t.name,(0,r.createElement)(Vm,{className:"h-5 w-5"})),p?.map((t=>(0,r.createElement)("button",{key:t.id,type:"button",className:"group relative flex cursor-pointer items-center justify-between gap-2 overflow-hidden rounded border border-gray-200 bg-gray-50 px-3 py-2.5 text-base transition-all duration-100 ease-in-out hover:bg-gray-100",onClick:()=>(({slug:t,name:r,language:n})=>{e(),o({slug:t,name:r,language:n}),Mr("extendify_siteType",{slug:t,name:r,language:n})})(t)},t.name,(0,r.createElement)(Xm,{className:"invisible h-5 w-5 group-hover:visible"}))))))},bf=[["site-type",{component:()=>{const{loading:e}=cm();return(0,r.createElement)(fh,null,(0,r.createElement)("div",{className:"grow overflow-y-scroll px-6 py-8 md:px-32 md:py-16"},(0,r.createElement)(wm,{title:(0,le.__)("What is your WordPress site about?","extendify-local"),description:(0,le.__)("We will help you create your WordPress website quickly.","extendify-local")}),(0,r.createElement)("div",{className:"relative mx-auto w-full max-w-xl"},e?(0,r.createElement)(vh,null):(0,r.createElement)(vf,null))))},state:wf}],["site-title",{component:()=>{const{loading:e}=ah(af,nf);return(0,a.useEffect)((()=>{sf.setState({ready:!e})}),[e]),(0,r.createElement)(fh,null,(0,r.createElement)("div",{className:"grow overflow-y-scroll px-6 py-8 md:px-32 md:py-16"},(0,r.createElement)(wm,{title:(0,le.__)("What's the name of your new site?","extendify-local"),description:(0,le.__)("You can change this later.","extendify-local")}),(0,r.createElement)("div",{className:"relative mx-auto w-full max-w-xl"},e?(0,r.createElement)(vh,null):(0,r.createElement)(lf,null))))},fetcher:nf,fetchData:af,state:sf}],["goals",{component:()=>{const{loading:e}=ah(xh,bh),{loading:t}=ah(kh,Eh);return(0,r.createElement)(fh,null,(0,r.createElement)("div",{className:"grow overflow-y-scroll px-6 py-8 md:px-32 md:py-16"},(0,r.createElement)(wm,{title:(0,le.__)("What are your goals for your website?","extendify-local"),description:(0,le.__)("We'll make sure your website has what it needs to achieve your goals.","extendify-local")}),(0,r.createElement)("div",{className:"relative mx-auto w-full max-w-3xl"},e||t?(0,r.createElement)(vh,null):(0,r.createElement)(Ch,null))))},fetcher:[bh,Eh],fetchData:[xh,kh],state:Sh}],["site-structure",{component:()=>{const{siteStructure:e,setSiteStructure:t}=cm(),{removePage:o,addPage:n}=Sf(),[i,s]=(0,a.useState)(e);(0,a.useLayoutEffect)((()=>{if(i)return;const e=["single-page","multi-page"].sort((()=>Math.random()-.5));s(e[0]),t(e[0])}),[t,i]),(0,a.useEffect)((()=>{pf.setState({ready:!!e&&i})}),[e,n,o,i]);const l=(0,a.useMemo)((()=>[(0,r.createElement)(mf,{key:"single-page",onClick:()=>t("single-page"),selected:"single-page"===e,imageSrc:"https://assets.extendify.com/launch/single-page-website.webp",title:(0,le.__)("Single-Page Website","extendify-local"),description:(0,le.__)("All content displayed on one scrolling page.","extendify-local")}),(0,r.createElement)(mf,{key:"multi-page",onClick:()=>t("multi-page"),selected:"multi-page"===e,imageSrc:"https://assets.extendify.com/launch/multi-page-website.webp",title:(0,le.__)("Multi-Page Website","extendify-local"),description:(0,le.__)("Multiple interconnected pages.","extendify-local")})]),[e,t]),c="multi-page"===i?l.toReversed():l;return(0,r.createElement)(fh,null,(0,r.createElement)("div",{className:"grow overflow-y-scroll px-6 py-8 md:px-32 md:py-16"},(0,r.createElement)(wm,{title:(0,le.__)("Pick Your Site Structure","extendify-local")}),(0,r.createElement)("div",{className:"relative mx-auto flex w-full max-w-3xl flex-col gap-4 lg:flex-row lg:gap-8"},c)))},state:pf}],["layout",{component:()=>{const{loading:e,data:t}=ah(ef,Qh);return(0,r.createElement)(fh,null,(0,r.createElement)("div",{className:"grow overflow-y-scroll px-6 py-8 md:px-32 md:py-16"},(0,r.createElement)(wm,{title:(0,le.__)("Pick a design for your website","extendify-local"),description:(0,le.__)("You can personalize this later.","extendify-local")}),(0,r.createElement)("div",{className:"relative mx-auto w-full max-w-6xl"},e?(0,r.createElement)(vh,null):(0,r.createElement)(rf,{homeTemplate:t}))))},fetcher:Qh,fetchData:ef,state:tf}],["business-information",{component:()=>(0,r.createElement)(fh,null,(0,r.createElement)("div",{className:"grow overflow-y-scroll px-6 py-8 md:px-32 md:py-16"},(0,r.createElement)(wm,{title:(0,le.__)("Let us create custom copy for your website","extendify-local"),description:(0,le.__)("Our AI Assistant will take your input and create customized copy for each page. Describe your website or business with as much detail as you'd like and we'll use it to create your perfect site.","extendify-local")}),(0,r.createElement)("div",{className:"relative mx-auto w-full max-w-xl"},(0,r.createElement)(yh,null)))),state:gh}]],xf=bf?.filter((e=>!window.extOnbData?.partnerSkipSteps?.includes(e[0]))),Ef=Qp(((e,t)=>({pages:new Map(xf),currentPageIndex:0,count:()=>t().pages.size,getPageOrder:()=>Array.from(t().pages.keys()),getCurrentPageData:()=>t().pages.get(t().getCurrentPageSlug()),getCurrentPageSlug:()=>t().getPageOrder()[t().currentPageIndex]||(t().setPage(0),t().getPageOrder()[0]),getNextPageData:()=>{const e=t().currentPageIndex+1;return e>t().count()-1?{}:t().pages.get(t().getPageOrder()[e])},setPage:r=>{"string"==typeof r&&(r=t().getPageOrder().indexOf(r)),r>t().count()-1||r<0||e({currentPageIndex:r})},removePage:r=>{const o=t().pages.get(r);if(!o)return;const n=new Map;t().pages.forEach(((e,t)=>{t!==r&&n.set(t,e)})),e({pages:n}),o?.state?.getState()?.onRemove()},addPage:(r,o,n)=>{if(!t().pages.has(n))throw new Error(`Page ${n} not found`);if(t().pages.has(r))return;const a=new Map;t().pages.forEach(((e,t)=>{a.set(t,e),t===n&&a.set(r,o)})),e({pages:a})},pushHistory:e=>{history.pushState({currentPageIndex:e,currentPageKey:t().getPageOrder()[e],previousPageIndex:e-1},"")},replaceHistory:e=>{history.replaceState({currentPageIndex:e,currentPageKey:t().getPageOrder()[e],previousPageIndex:e-1},"")},nextPage:()=>{const e=t().currentPageIndex+1;t().pushHistory(e),t().setPage(e)},previousPage:()=>{const e=t().currentPageIndex-1;t().replaceHistory(e),t().setPage(e)}})),{name:"Extendify Launch Pages",serialize:!0}),kf=om(Ef,{name:`extendify-pages-${window.extSharedData.siteId}`,partialize:e=>{var t,r,o;return{currentPageIndex:null!==(t=e?.currentPageIndex)&&void 0!==t?t:0,currentPageSlug:null!==(r=e?.getCurrentPageSlug())&&void 0!==r?r:null,availablePages:null!==(o=e?.getPageOrder())&&void 0!==o?o:[]}}}),Sf=Xp(kf),Cf=({pages:e})=>{const[t,o]=(0,a.useState)(0);return(0,a.useEffect)((()=>{const t=setTimeout((()=>{o((t=>(t+1)%e.length))}),1e4);return()=>clearTimeout(t)}),[e.length,t]),(0,r.createElement)("div",{className:"mt-3"},(0,r.createElement)(Pf,{pageName:e[t]}))},Pf=({pageName:e})=>{const[t,o]=(0,a.useState)(!1),[n,i]=(0,a.useState)(!1),[s,l]=(0,a.useState)("");return(0,a.useLayoutEffect)((()=>{const e=window.getComputedStyle(document.body).getPropertyValue("--ext-banner-main");o(Gh(e).isLight())}),[]),(0,a.useEffect)((()=>{i(!1);const t=setTimeout((()=>{i(!0),l(e)}),700);return()=>clearTimeout(t)}),[e]),(0,r.createElement)(Pa,null,n?(0,r.createElement)(Up.div,{initial:{opacity:0,x:50},animate:{opacity:1,x:0,transition:{duration:.6}},exit:{opacity:0,x:-50},transition:{ease:"easeInOut"},className:"mt-12 w-96 rounded border-8 border-gray-200 border-opacity-25 p-4",style:{mixBlendMode:t?"difference":"plus-lighter"}},(0,r.createElement)("h1",{className:"mb-8 text-banner-text opacity-60",style:{mixBlendMode:"plus-lighter"}},s),(0,r.createElement)("div",{className:"space-y-6"},[0,1,2].map((e=>{const t=3*e;return(0,r.createElement)(Up.div,{"aria-hidden":"true",key:e,initial:{opacity:0},animate:{opacity:1},transition:e?{duration:t/2,delay:t}:{},role:"status",className:"max-w-sm space-y-2"},(0,r.createElement)(Tf,{i:e*t,className:"mb-3 h-3 w-48"}),(0,r.createElement)(Tf,{i:e*t,className:"h-2 w-full"}),(0,r.createElement)(Tf,{i:e*t,className:"h-2 w-full max-w-[90%]"}),(0,r.createElement)(Tf,{i:e*t,className:"h-2 w-full"}),(0,r.createElement)(Tf,{i:e*t,className:"h-2 w-full"}))})))):null)},Tf=({className:e,i:t})=>(0,r.createElement)("div",{className:`rounded-full ${e}`,style:{backgroundColor:"rgba(204, 204, 204, 0.25)",backgroundImage:"linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%)",backgroundSize:"600% 600%",animation:"extendify-loading-skeleton 10s ease-in-out infinite",animationDelay:`${t}s`,mixBlendMode:"plus-lighter"}});var Lf={};!function e(t,r,o,n){var a=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL),i="function"==typeof Path2D&&"function"==typeof DOMMatrix,s=function(){if(!t.OffscreenCanvas)return!1;var e=new OffscreenCanvas(1,1),r=e.getContext("2d");r.fillRect(0,0,1,1);var o=e.transferToImageBitmap();try{r.createPattern(o,"no-repeat")}catch(e){return!1}return!0}();function l(){}function c(e){var o=r.exports.Promise,n=void 0!==o?o:t.Promise;return"function"==typeof n?new n(e):(e(l,l),null)}var u,d,p,m,h,f,g,y,w,v,b,x=(u=s,d=new Map,{transform:function(e){if(u)return e;if(d.has(e))return d.get(e);var t=new OffscreenCanvas(e.width,e.height);return t.getContext("2d").drawImage(e,0,0),d.set(e,t),t},clear:function(){d.clear()}}),E=(h=Math.floor(1e3/60),f={},g=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(p=function(e){var t=Math.random();return f[t]=requestAnimationFrame((function r(o){g===o||g+h-1<o?(g=o,delete f[t],e()):f[t]=requestAnimationFrame(r)})),t},m=function(e){f[e]&&cancelAnimationFrame(f[e])}):(p=function(e){return setTimeout(e,h)},m=function(e){return clearTimeout(e)}),{frame:p,cancel:m}),k=(v={},function(){if(y)return y;if(!o&&a){var t=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join("\n");try{y=new Worker(URL.createObjectURL(new Blob([t])))}catch(e){return void 0!==typeof console&&"function"==typeof console.warn&&console.warn("🎊 Could not load worker",e),null}!function(e){function t(t,r){e.postMessage({options:t||{},callback:r})}e.init=function(t){var r=t.transferControlToOffscreen();e.postMessage({canvas:r},[r])},e.fire=function(r,o,n){if(w)return t(r,null),w;var a=Math.random().toString(36).slice(2);return w=c((function(o){function i(t){t.data.callback===a&&(delete v[a],e.removeEventListener("message",i),w=null,x.clear(),n(),o())}e.addEventListener("message",i),t(r,a),v[a]=i.bind(null,{data:{callback:a}})}))},e.reset=function(){for(var t in e.postMessage({reset:!0}),v)v[t](),delete v[t]}}(y)}return y}),S={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function C(e,t,r){return function(e,t){return t?t(e):e}(e&&null!=e[t]?e[t]:S[t],r)}function P(e){return e<0?0:Math.floor(e)}function T(e){return parseInt(e,16)}function L(e){return e.map(M)}function M(e){var t=String(e).replace(/[^0-9a-f]/gi,"");return t.length<6&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),{r:T(t.substring(0,2)),g:T(t.substring(2,4)),b:T(t.substring(4,6))}}function R(e){e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight}function A(e){var t=e.getBoundingClientRect();e.width=t.width,e.height=t.height}function _(e,r){var s,l=!e,u=!!C(r||{},"resize"),d=!1,p=C(r,"disableForReducedMotion",Boolean),m=a&&C(r||{},"useWorker")?k():null,h=l?R:A,f=!(!e||!m||!e.__confetti_initialized),g="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function y(t,r,a){for(var l,u,d,p,m=C(t,"particleCount",P),f=C(t,"angle",Number),g=C(t,"spread",Number),y=C(t,"startVelocity",Number),w=C(t,"decay",Number),v=C(t,"gravity",Number),b=C(t,"drift",Number),k=C(t,"colors",L),S=C(t,"ticks",Number),T=C(t,"shapes"),M=C(t,"scalar"),R=!!C(t,"flat"),A=function(e){var t=C(e,"origin",Object);return t.x=C(t,"x",Number),t.y=C(t,"y",Number),t}(t),_=m,O=[],N=e.width*A.x,D=e.height*A.y;_--;)O.push((void 0,void 0,u=(l={x:N,y:D,angle:f,spread:g,startVelocity:y,color:k[_%k.length],shape:T[(0,p=T.length,Math.floor(Math.random()*(p-0))+0)],ticks:S,decay:w,gravity:v,drift:b,scalar:M,flat:R}).angle*(Math.PI/180),d=l.spread*(Math.PI/180),{x:l.x,y:l.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*l.startVelocity+Math.random()*l.startVelocity,angle2D:-u+(.5*d-Math.random()*d),tiltAngle:(.5*Math.random()+.25)*Math.PI,color:l.color,shape:l.shape,tick:0,totalTicks:l.ticks,decay:l.decay,drift:l.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*l.gravity,ovalScalar:.6,scalar:l.scalar,flat:l.flat}));return s?s.addFettis(O):(s=function(e,t,r,a,s){var l,u,d=t.slice(),p=e.getContext("2d"),m=c((function(t){function c(){l=u=null,p.clearRect(0,0,a.width,a.height),x.clear(),s(),t()}l=E.frame((function t(){!o||a.width===n.width&&a.height===n.height||(a.width=e.width=n.width,a.height=e.height=n.height),a.width||a.height||(r(e),a.width=e.width,a.height=e.height),p.clearRect(0,0,a.width,a.height),(d=d.filter((function(e){return function(e,t){t.x+=Math.cos(t.angle2D)*t.velocity+t.drift,t.y+=Math.sin(t.angle2D)*t.velocity+t.gravity,t.velocity*=t.decay,t.flat?(t.wobble=0,t.wobbleX=t.x+10*t.scalar,t.wobbleY=t.y+10*t.scalar,t.tiltSin=0,t.tiltCos=0,t.random=1):(t.wobble+=t.wobbleSpeed,t.wobbleX=t.x+10*t.scalar*Math.cos(t.wobble),t.wobbleY=t.y+10*t.scalar*Math.sin(t.wobble),t.tiltAngle+=.1,t.tiltSin=Math.sin(t.tiltAngle),t.tiltCos=Math.cos(t.tiltAngle),t.random=Math.random()+2);var r=t.tick++/t.totalTicks,o=t.x+t.random*t.tiltCos,n=t.y+t.random*t.tiltSin,a=t.wobbleX+t.random*t.tiltCos,s=t.wobbleY+t.random*t.tiltSin;if(e.fillStyle="rgba("+t.color.r+", "+t.color.g+", "+t.color.b+", "+(1-r)+")",e.beginPath(),i&&"path"===t.shape.type&&"string"==typeof t.shape.path&&Array.isArray(t.shape.matrix))e.fill(function(e,t,r,o,n,a,i){var s=new Path2D(e),l=new Path2D;l.addPath(s,new DOMMatrix(t));var c=new Path2D;return c.addPath(l,new DOMMatrix([Math.cos(i)*n,Math.sin(i)*n,-Math.sin(i)*a,Math.cos(i)*a,r,o])),c}(t.shape.path,t.shape.matrix,t.x,t.y,.1*Math.abs(a-o),.1*Math.abs(s-n),Math.PI/10*t.wobble));else if("bitmap"===t.shape.type){var l=Math.PI/10*t.wobble,c=.1*Math.abs(a-o),u=.1*Math.abs(s-n),d=t.shape.bitmap.width*t.scalar,p=t.shape.bitmap.height*t.scalar,m=new DOMMatrix([Math.cos(l)*c,Math.sin(l)*c,-Math.sin(l)*u,Math.cos(l)*u,t.x,t.y]);m.multiplySelf(new DOMMatrix(t.shape.matrix));var h=e.createPattern(x.transform(t.shape.bitmap),"no-repeat");h.setTransform(m),e.globalAlpha=1-r,e.fillStyle=h,e.fillRect(t.x-d/2,t.y-p/2,d,p),e.globalAlpha=1}else if("circle"===t.shape)e.ellipse?e.ellipse(t.x,t.y,Math.abs(a-o)*t.ovalScalar,Math.abs(s-n)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):function(e,t,r,o,n,a,i,s,l){e.save(),e.translate(t,r),e.rotate(a),e.scale(o,n),e.arc(0,0,1,0,s,void 0),e.restore()}(e,t.x,t.y,Math.abs(a-o)*t.ovalScalar,Math.abs(s-n)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI);else if("star"===t.shape)for(var f=Math.PI/2*3,g=4*t.scalar,y=8*t.scalar,w=t.x,v=t.y,b=5,E=Math.PI/b;b--;)w=t.x+Math.cos(f)*y,v=t.y+Math.sin(f)*y,e.lineTo(w,v),f+=E,w=t.x+Math.cos(f)*g,v=t.y+Math.sin(f)*g,e.lineTo(w,v),f+=E;else e.moveTo(Math.floor(t.x),Math.floor(t.y)),e.lineTo(Math.floor(t.wobbleX),Math.floor(n)),e.lineTo(Math.floor(a),Math.floor(s)),e.lineTo(Math.floor(o),Math.floor(t.wobbleY));return e.closePath(),e.fill(),t.tick<t.totalTicks}(p,e)}))).length?l=E.frame(t):c()})),u=c}));return{addFettis:function(e){return d=d.concat(e),m},canvas:e,promise:m,reset:function(){l&&E.cancel(l),u&&u()}}}(e,O,h,r,a),s.promise)}function w(r){var o=p||C(r,"disableForReducedMotion",Boolean),n=C(r,"zIndex",Number);if(o&&g)return c((function(e){e()}));l&&s?e=s.canvas:l&&!e&&(e=function(e){var t=document.createElement("canvas");return t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.pointerEvents="none",t.style.zIndex=e,t}(n),document.body.appendChild(e)),u&&!f&&h(e);var a={width:e.width,height:e.height};function i(){if(m){var t={getBoundingClientRect:function(){if(!l)return e.getBoundingClientRect()}};return h(t),void m.postMessage({resize:{width:t.width,height:t.height}})}a.width=a.height=null}function w(){s=null,u&&(d=!1,t.removeEventListener("resize",i)),l&&e&&(document.body.contains(e)&&document.body.removeChild(e),e=null,f=!1)}return m&&!f&&m.init(e),f=!0,m&&(e.__confetti_initialized=!0),u&&!d&&(d=!0,t.addEventListener("resize",i,!1)),m?m.fire(r,a,w):y(r,a,w)}return w.reset=function(){m&&m.reset(),s&&s.reset()},w}function O(){return b||(b=_(null,{useWorker:!0,resize:!0})),b}r.exports=function(){return O().apply(this,arguments)},r.exports.reset=function(){O().reset()},r.exports.create=_,r.exports.shapeFromPath=function(e){if(!i)throw new Error("path confetti are not supported in this browser");var t,r;"string"==typeof e?t=e:(t=e.path,r=e.matrix);var o=new Path2D(t),n=document.createElement("canvas").getContext("2d");if(!r){for(var a,s,l=1e3,c=l,u=l,d=0,p=0,m=0;m<l;m+=2)for(var h=0;h<l;h+=2)n.isPointInPath(o,m,h,"nonzero")&&(c=Math.min(c,m),u=Math.min(u,h),d=Math.max(d,m),p=Math.max(p,h));a=d-c,s=p-u;var f=Math.min(10/a,10/s);r=[f,0,0,f,-Math.round(a/2+c)*f,-Math.round(s/2+u)*f]}return{type:"path",path:t,matrix:r}},r.exports.shapeFromText=function(e){var t,r=1,o="#000000",n='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';"string"==typeof e?t=e:(t=e.text,r="scalar"in e?e.scalar:r,n="fontFamily"in e?e.fontFamily:n,o="color"in e?e.color:o);var a=10*r,i=a+"px "+n,s=new OffscreenCanvas(a,a),l=s.getContext("2d");l.font=i;var c=l.measureText(t),u=Math.ceil(c.actualBoundingBoxRight+c.actualBoundingBoxLeft),d=Math.ceil(c.actualBoundingBoxAscent+c.actualBoundingBoxDescent),p=c.actualBoundingBoxLeft+2,m=c.actualBoundingBoxAscent+2;u+=4,d+=4,(l=(s=new OffscreenCanvas(u,d)).getContext("2d")).font=i,l.fillStyle=o,l.fillText(t,p,m);var h=1/r;return{type:"bitmap",bitmap:s.transferToImageBitmap(),matrix:[h,0,0,h,-u*h/2,-d*h/2]}}}(function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:this||{}}(),Lf,!1);const Mf=Lf.exports;Lf.exports.create;const Rf=/href="(#extendify-[\w|-]+)"/gi,Af=e=>e?.content?.raw?.match(Rf),_f=window.wp.mediaUtils,Of=window.wp.url,Nf=(e,t)=>e.filter((e=>!t.includes(e.name))).map((e=>({...e,innerBlocks:e.innerBlocks?Nf(e.innerBlocks,t):[]}))),Df=(e,t)=>e.replace(/(<div\s[^>]*class="[^"]*\bwp-block-group\b[^"]*")/,`$1 id="${t}"`),Ff=async e=>{const t=e.filter((e=>e.patternReplacementCode));if(!t?.length)return e;try{return await Ur(e)}catch(t){return await Ur(e).catch((()=>e))}},Vf=()=>{var e;const[t]=(0,a.useState)(!0),[o,n]=(0,a.useState)(!1),[i,s]=(0,a.useState)(["#ffffff"]),[l,c]=(0,a.useState)(!0),u=cm((e=>e.canLaunch())),{pages:d,style:p,plugins:m,goals:h,businessInformation:f,siteType:g,siteInformation:y,siteTypeSearch:w,siteStructure:v}=cm(),[b,x]=(0,a.useState)([]),[E,k]=(0,a.useState)([]),S=e=>x((t=>[e,...t])),C=e=>k((t=>[e,...t])),[P,T]=(0,a.useState)([]),{setPage:L}=Sf();((e=!0)=>{(0,a.useEffect)((()=>{if(!e)return;const t=e=>(e.preventDefault(),e.returnValue=""),r={capture:!0};return window.addEventListener("beforeunload",t,r),()=>{window.removeEventListener("beforeunload",t,r)}}),[e])})(l);const M=(0,a.useCallback)((async()=>{if(!u)throw new Error((0,le.__)("Site is not ready to launch.","extendify-local"));const e="single-page"===v,t="multi-page"===v,r="single-page"===v;try{var o,a,i;await Mr("permalink_structure","/%postname%/"),await Am(),S((0,le.__)("Applying your website styles","extendify-local")),C((0,le.__)("Creating a beautiful website","extendify-local")),await new Promise((e=>setTimeout(e,1e3))),await Am(),await(s=null!==(o=p?.variation)&&void 0!==o?o:{},((e,t)=>Sr.post(`${Lr}wp/v2/global-styles/${e}`,{id:e,settings:t.settings,styles:t.styles}))(window.extSharedData.globalStylesPostID,s)),await Am(),await Dr("extendable/header",p?.headerCode),await Am(),await Dr("extendable/footer",p?.footerCode),f.acceptTerms&&await("ai_consent",!0,se()({path:"/extendify/v1/shared/update-user-meta",method:"POST",data:{option:"ai_consent",value:true}}));const l=[...null!=m?m:[],...null!==(a=window.extSharedData?.requiredPlugins)&&void 0!==a?a:[]].sort((({wordpressSlug:e})=>"give"===e?-1:1)).reduce(((e,t)=>e.find((({wordpressSlug:e})=>e===t.wordpressSlug))?e:[...e,t]),[]);if(l?.length){S((0,le.__)("Installing necessary plugins","extendify-local"));for(const[e,t]of l.entries()){C((0,le.__)(`${e+1}/${l.length}: ${t.name}`,"extendify-local")),await Am();try{await Or(t)}catch(e){await Am(),await Or(t)}}S((0,le.__)("Populating data","extendify-local")),C((0,le.__)("Personalizing your experience","extendify-local")),await(async()=>await Sr.get("launch/prefetch-assist-data"))(),await Am()}S((0,le.__)("Adding page content","extendify-local")),C((0,le.__)("Starting off with a full website","extendify-local")),await new Promise((e=>setTimeout(e,1e3))),await Am();const u={name:ce.home.title,id:"home",patterns:p.patterns,slug:"home"},v={name:ce.blog.title,id:"blog",patterns:[],slug:"blog"};await Am(),f.description&&(C((0,le.__)("Creating pages with custom content","extendify-local")),[u,...d].forEach((e=>T((t=>[...t,e.name])))));const b=h?.find((e=>"blog"===e.slug)),x=[...d,u,b?v:null].filter(Boolean),E=[];for(const e of x){const t={...e,patterns:await Ff(e.patterns)};E.push(t)}const k=await(async(e,t)=>{if(!t.businessInformation.description)return e;const{siteId:r,partnerId:o,wpLanguage:n,wpVersion:a}=window.extSharedData,i=await Promise.allSettled(e.map((e=>(async(e,t)=>{const r=await fetch(`${xm}/api/patterns`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...Sm,page:e,userState:t})});if(!r.ok)throw new Error("Bad response from server");return await r.json()})(e,{...t,siteId:r,partnerId:o,siteVersion:a,language:n}).then((e=>e)).catch((()=>e)))));return i?.map(((t,r)=>t.value||e[r]))})(E,{goals:h,businessInformation:f,siteType:g,siteInformation:y,siteTypeSearch:w}),P=await(async(e,{stickyNav:t})=>{const r=[];for(const o of e){const e=o.patterns.map((({code:e})=>e)).join(""),n=Nf((0,Pm.rawHandler)({HTML:e}),["core/html"]),a=[],i=new Set;for(const[e,t]of n.entries()){const r=o.patterns[e].patternTypes?.[0],n=(0,Pm.serialize)(t),{slug:s}=Object.values(ce).find((({alias:e})=>e.includes(r)))||{};!i.has(s)&&s?(i.add(s),a.push(Df(n,s))):a.push(n)}let s,l={title:o.name,status:"publish",content:a.join(""),template:t?"no-title-sticky-header":"no-title",meta:{made_with_extendify_launch:!0}};try{s=await Ar(l)}catch(e){l.template="no-title",s=await Ar(l)}r.push({...s,originalSlug:o.slug})}const o=r.find((({originalSlug:e})=>"home"===e));o&&(await Mr("show_on_front","page"),await Mr("page_on_front",o.id));const n=r.find((({originalSlug:e})=>"blog"===e));return n&&await Mr("page_for_posts",n.id),r})(k,{stickyNav:r}),L=t?await(async e=>{const t=e.find((({originalSlug:e})=>e.startsWith("contact")))?.slug,r=e.filter(Af).map((({content:e})=>(0,Pm.rawHandler)({HTML:e.raw||""}).map((e=>(0,Pm.getBlockContent)(e))).filter((e=>e.match(Rf))).join(""))),o=e.filter((({slug:e})=>!e.startsWith("home"))).map((({slug:e})=>`/${e}`)),n=(await Promise.allSettled(r.map((e=>(async(e,t)=>{const r=new AbortController,o=setTimeout((()=>r.abort()),1e4);try{const o=await fetch(`${xm}/api/link-pages`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pageContent:e,availablePages:t}),signal:r.signal});if(!o.ok)throw new Error("Bad response from server");return await o.json()}finally{clearTimeout(o)}})(e,o)||{})))).filter((e=>"fulfilled"===e.status)).map((e=>e.value?.suggestedLinks||[])).reduce(((e,t)=>({...e,...t})),{}),a=Object.keys(n).filter((e=>o.includes(`/${n[e].replace(/^\//,"")}`))).map((e=>`\\"${e}\\"`)).join("|"),i=(await Promise.allSettled(e.filter(Af).map((e=>{const r=a?e.content.raw.replace(new RegExp(a,"g"),(r=>{if(!r||0===n.length)return"";const o=n[r.replace(/"/g,"")];return[e.slug,`/${e.slug}`,"/"].includes(o)?`/${null!=t?t:""}`:o.startsWith("/")?o:`/${o}`})):e.content.raw.replace(new RegExp(Rf,"g"),(e=>e?'href="#"':""));return o={id:e.id,content:r},Sr.post(`${Lr}wp/v2/pages/${o.id}`,o);var o})))).filter((e=>"fulfilled"===e.status)).map((e=>e.value));return e.map((e=>i.find((({id:t})=>t===e.id))||e)).map((t=>{const{originalSlug:r}=e.find((({id:e})=>e===t.id))||{};return{...t,originalSlug:r}}))})(P):P;T([]),await Am(),C((0,le.__)("Setting up site layout","extendify-local"));const M=h?.some((e=>"blog"===e.slug));let R=[...d,M?v:null,u].filter(Boolean).sort(((e,t)=>e?.name?.localeCompare(t?.name))),{data:A}=await Sr.get("launch/active-plugins");if(_m(A,"woocommerce")){const e=await Rr("woocommerce_shop_page_id"),t=await _r(e),r=await Rr("woocommerce_cart_page_id"),o=await _r(r);if(e&&t&&r&&o){const n={id:e,slug:t.slug,title:t.title.rendered},a={id:r,slug:o.slug,title:o.title.rendered};R=[...R,n,a]}}if(_m(A,"the-events-calendar")){const e={slug:"events",title:(0,le.__)("Events","extendify-local")};R=[...R,e]}_m(A,"wpforms-lite")&&await Mr("wpforms_activation_redirect","skip"),_m(A,"all-in-one-seo-pack")&&await Mr("aioseo_activation_redirect","skip"),_m(A,"google-analytics-for-wordpress")&&await Mr("_transient__monsterinsights_activation_redirect",null),await(async e=>{await Rr("site_logo").then((async t=>{if(!parseInt(t)){var r;const t=null!==(r=(0,Of.getFilename)(e))&&void 0!==r?r:"default-logo.png",o=await(await fetch(e)).blob();await(0,_f.uploadMedia)({filesList:[new File([o],t,{type:"image/x-png"})],onFileChange:async([e])=>{e.id&&await Mr("site_logo",e.id)},onError:console.error})}}))})("https://assets.extendify.com/demo-content/logos/extendify-demo-logo.png"),await Am();const _=e?await(async(e,t)=>{const r=e.map((({patternTypes:e})=>e?.[0])).filter(Boolean),o=new Set,n=r.map((e=>{const{title:t,slug:r}=Object.values(ce).find((({alias:t})=>t.includes(e)))||{};return r?o.has(r)?"":(o.add(r),`\x3c!-- wp:navigation-link { "label":"${t}", "type":"custom", "url":"#${r}", "isTopLevelLink":true } /--\x3e`):""})).join(""),a=await Ir(n);return Hr(t,{ref:a.id})})(null!==(i=u?.patterns)&&void 0!==i?i:[],p?.headerCode):await(async(e,t,r)=>{const o=({slug:e})=>t.find((({originalSlug:t})=>t===e))||{},n=e.filter((e=>o(e)?.id)).filter((({slug:e})=>"home"!==e)).map((e=>{const{id:t,title:r,link:n,type:a}=o(e);return`\x3c!-- wp:navigation-link { "label":"${r.rendered}", "type":"${a}", "id":"${t}", "url":"${n}", "kind":"post-type", "isTopLevelLink":true } /--\x3e`})).join(""),a=await Ir(n);return Hr(r,{ref:a.id})})(R,L,p?.headerCode);await Am(),await Dr("extendable/header",_),S((0,le.__)("Setting up your Site Assistant","extendify-local")),C((0,le.__)("Helping you to succeed","extendify-local")),await new Promise((e=>setTimeout(e,1e3))),await Am(),S((0,le.__)("Your website has been created!","extendify-local")),C((0,le.__)("Redirecting in 3, 2, 1...","extendify-local")),n(!0),c(!1),await new Promise((e=>setTimeout(e,2500))),await Am(),await Mr("extendify_onboarding_completed",(new Date).toISOString())}catch(e){if(console.error(e),e.status>=400&&e.status<500){c(!1);const e=(0,le.__)("We encountered a server error we cannot recover from. Please reload the page and try again.","extendify-local");alert(e),location.href=window.extSharedData.adminUrl}return await new Promise((e=>setTimeout(e,2e3))),M()}var s}),[d,m,p,u,h,f,g,y,w,T,v]);return(0,a.useEffect)((()=>{M().then((async()=>{L(0),await se()({path:"/extendify/v1/launch/post-launch-functions",method:"POST"}),window.location.replace(window.extSharedData.adminUrl+"admin.php?page=extendify-assist&extendify-launch-success")}))}),[M,L]),(0,a.useEffect)((()=>{const e=window.getComputedStyle(document.body),t=e?.getPropertyValue("--ext-banner-main"),r=e?.getPropertyValue("--ext-banner-text");t&&s([Gh(t).darken(.3).toHex(),Gh(r).alpha(.5).toHex(),Gh(t).lighten(.2).toHex()])}),[]),((e={},t=0,r=!1)=>{(0,a.useEffect)((()=>{if(!r)return;const o=Date.now()+t,n=()=>{Mf({...e,disableForReducedMotion:!0,zIndex:1e5}),Date.now()<o&&requestAnimationFrame((()=>{requestAnimationFrame(n)}))};n()}),[e,t,r])})({particleCount:3,angle:320,spread:220,origin:{x:0,y:0},colors:i},2500,o),(0,r.createElement)(Kn,{as:"div",show:t,appear:!0,enter:"transition-all ease-in-out duration-500",enterFrom:"md:w-40vw md:max-w-md",enterTo:"md:w-full md:max-w-full",className:"flex shrink-0 flex-col justify-between bg-banner-main px-10 py-12 text-banner-text md:h-screen"},(0,r.createElement)("div",{className:"max-w-prose"},(0,r.createElement)("div",{className:"md:min-h-48"},window.extSharedData?.partnerLogo?(0,r.createElement)("div",{className:"mb-8"},(0,r.createElement)("img",{style:{maxWidth:"200px"},src:window.extSharedData.partnerLogo,alt:null!==(e=window.extSharedData?.partnerName)&&void 0!==e?e:""})):(0,r.createElement)(Hm,{className:"logo mb-8 w-32 text-banner-text sm:w-40"}),(0,r.createElement)("div",{"data-test":"message-area"},b.map(((e,o)=>{if(!o)return(0,r.createElement)(Kn,{as:"div",appear:!0,show:t,enter:"transition-opacity duration-1000",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity duration-1000",leaveFrom:"opacity-100",leaveTo:"opacity-0",className:"flex items-center space-x-4 text-4xl",key:e},e)})),(0,r.createElement)("div",{className:"mt-6 flex items-center space-x-4"},(0,r.createElement)(th,{className:"spin"}),E.map(((e,o)=>{if(!o)return(0,r.createElement)(Kn,{as:"div",appear:!0,show:t,enter:"transition-opacity duration-1000",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity duration-1000",leaveFrom:"opacity-100",leaveTo:"opacity-0",className:"text-lg",key:e},e)}))),P.length>0?(0,r.createElement)(Cf,{pages:P}):null))))},jf=()=>(0,r.createElement)(fh,{includeNav:!1},(0,r.createElement)("div",{className:"grow overflow-y-scroll px-6 py-8 md:px-32 md:py-16"},(0,r.createElement)(wm,{title:(0,le.__)("One more thing before we start.","extendify-local")}),(0,r.createElement)("div",{className:"relative mx-auto w-full max-w-xl"},(0,r.createElement)("p",{className:"text-base"},(0,le.__)("Hey there, Launch is powered by Extendable and is required to proceed. You can install it from the link below and start over once activated.","extendify-local")),(0,r.createElement)("a",{className:"mt-4 text-base font-medium text-design-main underline",href:`${window.extSharedData.adminUrl}/theme-install.php?theme=extendable`},(0,le.__)("Take me there","extendify-local"))))),If=()=>{const{updateSettings:e}=(0,s.useDispatch)("core/block-editor"),[t,o]=(0,a.useState)(!1),{siteType:n}=cm(),c=Sf((e=>{const t=e.getCurrentPageData();return t?.component})),{fetcher:u,fetchData:d}=Sf((e=>e.getNextPageData())),{setPage:p,currentPageIndex:m}=Sf(),{mutate:h}=J(),{generating:f}=hm(),[g,y]=(0,a.useState)(!1),[w,v]=(0,a.useState)(!1),b=(0,s.useSelect)((e=>e("core").getCurrentTheme()));return(()=>{const{goals:e,pages:t,plugins:r,siteType:o,style:n,siteTypeSearch:i,siteStructure:s}=cm(),{generating:l}=hm(),{pages:c,currentPageIndex:u}=Sf(),[d,p]=(0,a.useState)([]),[m,h]=(0,a.useState)(new Set),f=(0,a.useRef)(!1);(0,a.useEffect)((()=>{const e=[...c].map((e=>e[0]));p((t=>t?.at(-1)===e[u]?t:[...t,e[u]]))}),[u,c]),(0,a.useEffect)((()=>{l&&p((e=>[...e,"launched"]))}),[l]),(0,a.useEffect)((()=>{Object.keys(null!=n?n:{})?.length&&h((e=>{const t=new Set(e);return t.add(n),t}))}),[n]),(0,a.useEffect)((()=>{let r=0,a=0;const l=u?1e3:0;return r=window.setTimeout((()=>{if(f.current)return;f.current=!0;const r=new AbortController;a=window.setTimeout((()=>{f.current=!1,r.abort()}),900),fetch("https://insights.extendify.com/api/v1/launch",{method:"POST",headers:{"Content-type":"application/json",Accept:"application/json","X-Extendify":"true"},signal:r.signal,body:JSON.stringify({siteType:o?.slug,siteCreatedAt:window.extSharedData?.siteCreatedAt,style:n?.variation?.title,siteStructure:s,pages:t?.map((e=>e.slug)),goals:e?.map((e=>e.slug)),lastCompletedStep:d?.at(-1),progress:d,stylesViewed:[...m].filter((e=>e?.variation)).map((e=>e.variation.title)),siteTypeSearches:i,insightsId:window.extSharedData?.siteId,activeTests:window.extOnbData?.activeTests?.length>0?JSON.stringify(window.extOnbData?.activeTests):void 0,hostPartner:window.extSharedData?.partnerId,language:window.extSharedData?.wpLanguage,siteURL:window.extSharedData?.home})}).catch((()=>{})).finally((()=>{f.current=!1}))}),l),()=>{f.current=!1,[r,a].forEach((e=>window.clearTimeout(e)))}}),[t,r,n,c,d,m,i,u,e,o,s])})(),(0,a.useEffect)((()=>{e(l(window.extOnbData.editorStyles))}),[e]),(0,a.useEffect)((()=>{(0,i.registerCoreBlocks)()}),[]),(0,a.useEffect)((()=>{b?.textdomain&&"extendable"!==b?.textdomain&&v(!0)}),[b]),(0,a.useEffect)((()=>{y(!0),Mr("extendify_launch_loaded",(new Date).toISOString())}),[]),(0,a.useEffect)((()=>{const e=[].concat(u),t=[].concat(d);e.length&&e.forEach(((e,r)=>{const o="function"==typeof t?.[r]?t[r]():t?.[r];h(o,(t=>t||e(o)),{revalidate:!1})}))}),[u,h,d]),g?(0,r.createElement)(ne,{value:{errorRetryInterval:1e3,onErrorRetry:(e,r,n,a,{retryCount:i})=>{403!==e?.data?.status?t||(console.error(r,e),o(!0),setTimeout((()=>{o(!1),a({retryCount:i})}),5e3)):window.location.reload()}}},(0,r.createElement)("div",{style:{zIndex:1e5},className:"fixed inset-0 h-screen w-screen overflow-y-auto bg-white md:overflow-hidden"},w?(0,r.createElement)(jf,null):n?.slug||0===m?f?(0,r.createElement)(Vf,null):c?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(um,{setPage:p}),(0,r.createElement)(c,null)):null:(p(0),null)),(0,r.createElement)(pm,{show:t})):null};requestAnimationFrame((()=>{const e=document.getElementById("extendify-launch-page");e&&("function"==typeof a.createRoot?(0,a.createRoot)(e).render((0,r.createElement)(If,null)):(0,a.render)((0,r.createElement)(If,null),e))}))})()})();