1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{94184:function(e,r){var n;/*! 2 Copyright (c) 2018 Jed Watson. 3 Licensed under the MIT License (MIT), see 4 http://jedwatson.github.io/classnames 5*/!function(){"use strict";var i={}.hasOwnProperty;function s(){for(var e=[],r=0;r<arguments.length;r++){var n=arguments[r];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var a=s.apply(null,n);a&&e.push(a)}}else if("object"===o){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var u in n)i.call(n,u)&&n[u]&&e.push(u)}}}return e.join(" ")}e.exports?(s.default=s,e.exports=s):void 0!==(n=(function(){return s}).apply(r,[]))&&(e.exports=n)}()},1989:function(e,r,n){var i=n(51789),s=n(80401),o=n(57667),a=n(21327),u=n(81866);function l(e){var r=-1,n=null==e?0:e.length;for(this.clear();++r<n;){var i=e[r];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=s,l.prototype.get=o,l.prototype.has=a,l.prototype.set=u,e.exports=l},38407:function(e,r,n){var i=n(27040),s=n(14125),o=n(82117),a=n(67518),u=n(54705);function l(e){var r=-1,n=null==e?0:e.length;for(this.clear();++r<n;){var i=e[r];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=s,l.prototype.get=o,l.prototype.has=a,l.prototype.set=u,e.exports=l},57071:function(e,r,n){var i=n(10852)(n(55639),"Map");e.exports=i},83369:function(e,r,n){var i=n(24785),s=n(11285),o=n(96e3),a=n(49916),u=n(95265);function l(e){var r=-1,n=null==e?0:e.length;for(this.clear();++r<n;){var i=e[r];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=s,l.prototype.get=o,l.prototype.has=a,l.prototype.set=u,e.exports=l},62705:function(e,r,n){var i=n(55639).Symbol;e.exports=i},29932:function(e){e.exports=function(e,r){for(var n=-1,i=null==e?0:e.length,s=Array(i);++n<i;)s[n]=r(e[n],n,e);return s}},34865:function(e,r,n){var i=n(89465),s=n(77813),o=Object.prototype.hasOwnProperty;e.exports=function(e,r,n){var a=e[r];o.call(e,r)&&s(a,n)&&(void 0!==n||r in e)||i(e,r,n)}},18470:function(e,r,n){var i=n(77813);e.exports=function(e,r){for(var n=e.length;n--;)if(i(e[n][0],r))return n;return -1}},89465:function(e,r,n){var i=n(38777);e.exports=function(e,r,n){"__proto__"==r&&i?i(e,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[r]=n}},44239:function(e,r,n){var i=n(62705),s=n(89607),o=n(2333),a=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?s(e):o(e)}},28458:function(e,r,n){var i=n(23560),s=n(15346),o=n(13218),a=n(80346),u=/^\[object .+?Constructor\]$/,l=Object.prototype,c=Function.prototype.toString,h=l.hasOwnProperty,d=RegExp("^"+c.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||s(e))&&(i(e)?d:u).test(a(e))}},10611:function(e,r,n){var i=n(34865),s=n(71811),o=n(65776),a=n(13218),u=n(40327);e.exports=function(e,r,n,l){if(!a(e))return e;r=s(r,e);for(var c=-1,h=r.length,d=h-1,f=e;null!=f&&++c<h;){var p=u(r[c]),m=n;if("__proto__"===p||"constructor"===p||"prototype"===p)break;if(c!=d){var y=f[p];void 0===(m=l?l(y,p,f):void 0)&&(m=a(y)?y:o(r[c+1])?[]:{})}i(f,p,m),f=f[p]}return e}},80531:function(e,r,n){var i=n(62705),s=n(29932),o=n(1469),a=n(33448),u=1/0,l=i?i.prototype:void 0,c=l?l.toString:void 0;e.exports=function e(r){if("string"==typeof r)return r;if(o(r))return s(r,e)+"";if(a(r))return c?c.call(r):"";var n=r+"";return"0"==n&&1/r==-u?"-0":n}},71811:function(e,r,n){var i=n(1469),s=n(15403),o=n(55514),a=n(79833);e.exports=function(e,r){return i(e)?e:s(e,r)?[e]:o(a(e))}},14429:function(e,r,n){var i=n(55639)["__core-js_shared__"];e.exports=i},38777:function(e,r,n){var i=n(10852),s=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=s},31957:function(e,r,n){var i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=i},45050:function(e,r,n){var i=n(37019);e.exports=function(e,r){var n=e.__data__;return i(r)?n["string"==typeof r?"string":"hash"]:n.map}},10852:function(e,r,n){var i=n(28458),s=n(47801);e.exports=function(e,r){var n=s(e,r);return i(n)?n:void 0}},89607:function(e,r,n){var i=n(62705),s=Object.prototype,o=s.hasOwnProperty,a=s.toString,u=i?i.toStringTag:void 0;
5e.exports=function(e){var r=o.call(e,u),n=e[u];try{e[u]=void 0;var i=!0}catch(e){}var s=a.call(e);return i&&(r?e[u]=n:delete e[u]),s}},47801:function(e){e.exports=function(e,r){return null==e?void 0:e[r]}},51789:function(e,r,n){var i=n(94536);e.exports=function(){this.__data__=i?i(null):{},this.size=0}},80401:function(e){e.exports=function(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}},57667:function(e,r,n){var i=n(94536),s=Object.prototype.hasOwnProperty;e.exports=function(e){var r=this.__data__;if(i){var n=r[e];return"__lodash_hash_undefined__"===n?void 0:n}return s.call(r,e)?r[e]:void 0}},21327:function(e,r,n){var i=n(94536),s=Object.prototype.hasOwnProperty;e.exports=function(e){var r=this.__data__;return i?void 0!==r[e]:s.call(r,e)}},81866:function(e,r,n){var i=n(94536);e.exports=function(e,r){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===r?"__lodash_hash_undefined__":r,this}},65776:function(e){var r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var i=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==i||"symbol"!=i&&r.test(e))&&e>-1&&e%1==0&&e<n}},15403:function(e,r,n){var i=n(1469),s=n(33448),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,r){if(i(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||s(e))||a.test(e)||!o.test(e)||null!=r&&e in Object(r)}},37019:function(e){e.exports=function(e){var r=typeof e;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e}},15346:function(e,r,n){var i,s=n(14429),o=(i=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";e.exports=function(e){return!!o&&o in e}},27040:function(e){e.exports=function(){this.__data__=[],this.size=0}},14125:function(e,r,n){var i=n(18470),s=Array.prototype.splice;e.exports=function(e){var r=this.__data__,n=i(r,e);return!(n<0)&&(n==r.length-1?r.pop():s.call(r,n,1),--this.size,!0)}},82117:function(e,r,n){var i=n(18470);e.exports=function(e){var r=this.__data__,n=i(r,e);return n<0?void 0:r[n][1]}},67518:function(e,r,n){var i=n(18470);e.exports=function(e){return i(this.__data__,e)>-1}},54705:function(e,r,n){var i=n(18470);e.exports=function(e,r){var n=this.__data__,s=i(n,e);return s<0?(++this.size,n.push([e,r])):n[s][1]=r,this}},24785:function(e,r,n){var i=n(1989),s=n(38407),o=n(57071);e.exports=function(){this.size=0,this.__data__={hash:new i,map:new(o||s),string:new i}}},11285:function(e,r,n){var i=n(45050);e.exports=function(e){var r=i(this,e).delete(e);return this.size-=r?1:0,r}},96e3:function(e,r,n){var i=n(45050);e.exports=function(e){return i(this,e).get(e)}},49916:function(e,r,n){var i=n(45050);e.exports=function(e){return i(this,e).has(e)}},95265:function(e,r,n){var i=n(45050);e.exports=function(e,r){var n=i(this,e),s=n.size;return n.set(e,r),this.size+=n.size==s?0:1,this}},24523:function(e,r,n){var i=n(88306);e.exports=function(e){var r=i(e,function(e){return 500===n.size&&n.clear(),e}),n=r.cache;return r}},94536:function(e,r,n){var i=n(10852)(Object,"create");e.exports=i},2333:function(e){var r=Object.prototype.toString;e.exports=function(e){return r.call(e)}},55639:function(e,r,n){var i=n(31957),s="object"==typeof self&&self&&self.Object===Object&&self,o=i||s||Function("return this")();e.exports=o},55514:function(e,r,n){var i=n(24523),s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=i(function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(s,function(e,n,i,s){r.push(i?s.replace(o,"$1"):n||e)}),r});e.exports=a},40327:function(e,r,n){var i=n(33448),s=1/0;e.exports=function(e){if("string"==typeof e||i(e))return e;var r=e+"";return"0"==r&&1/e==-s?"-0":r}},80346:function(e){var r=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},77813:function(e){e.exports=function(e,r){return e===r||e!=e&&r!=r}},1469:function(e){var r=Array.isArray;e.exports=r},23560:function(e,r,n){var i=n(44239),s=n(13218);e.exports=function(e){if(!s(e))return!1;var r=i(e);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}},13218:function(e){e.exports=function(e){var r=typeof e;return null!=e&&("object"==r||"function"==r)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,r,n){var i=n(44239),s=n(37005);e.exports=function(e){return"symbol"==typeof e||s(e)&&"[object Symbol]"==i(e)}},88306:function(e,r,n){var i=n(83369);function s(e,r){if("function"!=typeof e||null!=r&&"function"!=typeof r)throw TypeError("Expected a function");var n=function(){var i=arguments,s=r?r.apply(this,i):i[0],o=n.cache;if(o.has(s))return o.get(s);var a=e.apply(this,i);return n.cache=o.set(s,a)||o,a};return n.cache=new(s.Cache||i),n}s.Cache=i,e.exports=s},36968:function(e,r,n){var i=n(10611);e.exports=function(e,r,n){return null==e?e:i(e,r,n)}},79833:function(e,r,n){var i=n(80531);e.exports=function(e){return null==e?"":i(e)}},83454:function(e,r,n){"use strict";var i,s;e.exports=(null==(i=n.g.process)?void 0:i.env)&&"object"==typeof(null==(s=n.g.process)?void 0:s.env)?n.g.process:n(77663)},6840:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(647)}])},3899:function(e,r,n){"use strict";n.d(r,{Qq:function(){return b},V9:function(){return y},VS:function(){return m},Ys:function(){return v},uJ:function(){return p}});var i=n(85893),s=n(88238),o=n(94184),a=n.n(o),u=n(51526),l=n(3303),c=n(67294),h=n(73935),d=n(35238);
5let f=(0,c.createContext)({activeFlyoutId:null,setFlyoutId:()=>{}});function p(){return(0,c.useContext)(f)}function m(e){let{children:r}=e,[n,s]=(0,c.useState)(null);return(0,i.jsx)(f.Provider,{value:{activeFlyoutId:n,setFlyoutId:s},children:r})}function y(e){let{children:r}=e,{setFlyoutId:n}=(0,c.useContext)(f);return(0,i.jsxs)("header",{className:"flex items-center justify-between p-4 border-b border-brand-coal/5 dark:border-brand-beige/5",children:[r,(0,i.jsx)("button",{onClick:()=>n(null),children:(0,i.jsx)(d.FU5,{})})]})}function v(e){let{title:r="Open Flyout",flyoutId:n,className:s,children:o}=e,{setFlyoutId:a}=(0,c.useContext)(f);return(0,i.jsx)("button",{title:r,className:s,onClick:()=>a(n||null),children:o})}let g={damping:15,stiffness:180,mass:.15};function b(e){let{children:r,flyoutId:n}=e,{activeFlyoutId:o,setFlyoutId:d}=(0,c.useContext)(f),p=(0,s.ac)("(max-width: 640px)"),m=a()("fixed bg-brand-white dark:bg-brand-charcoal z-50 grid",{"bottom-0 left-0 w-full h-[85dvh]":p,"top-0 right-0 w-[450px] h-full":!p});(0,c.useEffect)(()=>{let e=e=>{"Escape"===e.key&&d(null)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[d]);let y=(0,i.jsx)(u.M,{children:n===o&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.E.div,{onClick:()=>d(null),initial:{opacity:0}
5,animate:{opacity:.5},exit:{opacity:0},className:"fixed top-0 left-0 z-40 w-full h-full bg-black"}),(0,i.jsx)(l.E.div,{...p?{initial:{opacity:0,y:"100%"},animate:{opacity:1,y:0},exit:{opacity:0,y:"100%"}}:{initial:{opacity:0,x:400},animate:{opacity:1,x:0},exit:{opacity:0,x:400}},transition:{type:"spring",...g},className:m,style:{gridTemplateRows:"auto 1fr auto"},children:r})]})});return(0,h.createPortal)(y,document.body)}},75709:function(e,r,n){"use strict";n.d(r,{T:function(){return p},ZP:function(){return g},nt:function(){return m}});var i=n(85893),s=n(67294),o=n(73935),a=n(70661),u=n(50423),l=n(24314),c=n(11163),h=n(41664),d=n.n(h);let f=(0,s.createContext)({showUpgradeModal:!1,setShowUpgradeModal:e=>{}}),p=e=>{let{children:r}=e,[n,o]=(0,s.useState)(!1),a=(0,s.useMemo)(()=>({showUpgradeModal:n,setShowUpgradeModal:o}),[n,o]);return(0,i.jsx)(f.Provider,{value:a,children:r})},m=()=>(0,s.useContext)(f),y=e=>{let{children:r,handleOverlayClick:n,handleClose:s}=e;return(0,i.jsx)("div",{onClick:n,className:"overlay w-[100dvw] h-[100dvh] fixed top-0 left-0 z-50 flex place-items-center bg-[rgba(123,94,164,.8)]",children:(0,i.jsxs)("dialog",{ref:e=>{e&&e.focus()},role:"dialog","aria-labelledby":"dialogTitle","aria-describedby":"dialogDesc",className:"w-10/12 max-w-[500px] p-6 block bg-brand-beige rounded-lg border border-brand-charcoal !shadow-[.4em_.4em_0] shadow-brand-charcoal",children:[(0,i.jsx)("button",{onClick:s,className:"absolute right-3 top-2 text-xl",title:"close",children:"â"}),r]})})},v=()=>{let{query:e}=(0,c.useRouter)(),r=e.courseId,n="/api/upgrade?product_id=".concat(r,"&s=upgrade_modal"),{data:s}=(0,a.v)(r),o=(0,l.q$)(r);return(0,i.jsxs)("div",{className:"text-center",children:[(0,i.jsx)("img",{src:"/images/courses/".concat(r,"/tier-starter-complete.svg"),alt:"query.gg course",className:"w-40 -mt-16 mb-4 inline-block"}),(0,i.jsx)("h2",{className:"font-display text-2xl mb-4",children:"Upgrade your Purchase"}),(0,i.jsxs)("p",{className:"text-lg font-medium",children:["Want to unlock the rest of ",o.productName,"?"]}),(0,i.jsx)("p",{className:"text-sm",children:"We'll give you a discount based on what you've already paid."}),(0,i.jsxs)(d(),{href:n,className:"bg-brand-purple text-brand-white inline-block hover:brightness-90 text-center text-lg mt-6 mb-1 px-4 py-2 rounded-lg",children:["Upgrade for"," ",(0,i.jsx)("span",{className:"line-through opacity-75",children:(0,u.T4)(s.priceOfFull)})," ",(0,i.jsx)("strong",{className:"font-semibold",children:(0,u.T4)(s.upgradePrice)})]})]})};function g(){let[e,r]=(0,s.useState)(null),{showUpgradeModal:n,setShowUpgradeModal:u}=m(),{query:l}=(0,c.useRouter)(),h=l.courseId,{data:d}=(0,a.v)(h);if((0,s.useEffect)(()=>{r(document.body)},[]),(0,s.useEffect)(()=>{!0!==n||d||u(!1)},[n,d]),!e||!1===n)return null;let f=null;return(d&&(f=(0,i.jsx)(v,{})),f)?(0,o.createPortal)((0,i.jsx)(y,{handleOverlayClick:e=>{e.target===e.currentTarget&&u(!1)},handleClose:()=>u(!1),children:f}),e):null}},55697:function(e,r,n){"use strict";n.d(r,{F:function(){return u},Z:function(){return l}});var i=n(85893),s=n(67294),o=n(30106);let a=(0,s.createContext)({theme:"dark",toggleTheme:()=>{}});function u(){return(0,s.useContext)(a)}function l(e){let{children:r}=e,[n,u]=(0,o.Z)("theme","dark");return(0,s.useEffect)(()=>{"light"===n?document.body.classList.remove("dark"):document.body.classList.add("dark")},[n]),(0,i.jsx)(a.Provider,{value:{theme:n,toggleTheme:()=>{"light"===n?u("dark"):u("light")}},children:r})}},70661:function(e,r,n){"use strict";n.d(r,{v:function(){return a}});var i=n(10777),s=n(22991);let o=async e=>{let r=await fetch("/api/upgrades/starter-to-full",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({courseId:e})});if(!r.ok)throw Error("Failed to fetch starter to full upgrade price");return r.json()},a=e=>{let r=(0,s.p9)();return(0,i.a)({queryKey:["upgrade",e],queryFn:()=>o(e),staleTime:1/0,enabled:!!r})}},22991:function(e,r,n){"use strict";n.d(r,{B9:function(){return g},HL:function(){return v},gI:function(){return y},p9:function(){return m}});var i=n(30202),s=n(10777),o=n(98029),a=n(67294),u=n(36968),l=n.n(u),c=n(86501),h=n(72451);async function d(){let e=await fetch("/api/auth/user");if(!e.ok)throw Error("Failed to fetch user");return e.json()}function f(e){return void 0!==e&&"sessionInvalid"in e&&!0===e.sessionInvalid}let p=!1;function m(){let e=(0,i.NL)(),{data:r,error:n}=(0,s.a)({queryKey:["user"],queryFn:d,staleTime:36e5});return((0,a.useEffect)(()=>{f(r)&&!p&&(p=!0,fetch("/api/auth/logout",{method:"POST"}).then(()=>{window.location.href="/login?session_expired=true"}))},[r]),f(r))?{loading:!0,revalidate:()=>e.invalidateQueries({queryKey:["user"]})}:{...r,loading:!n&&!r,revalidate:()=>e.invalidateQueries({queryKey:["user"]})}}
5function y(e){let{courseId:r,lessonId:n}=e;return(0,s.a)({queryKey:["lesson-data",r,n],queryFn:async()=>{var e,i,s,o;let a=await d();if(!f(a))return null==a?void 0:null===(o=a.courses)||void 0===o?void 0:null===(s=o[r])||void 0===s?void 0:null===(i=s.lessons)||void 0===i?void 0:null===(e=i[n])||void 0===e?void 0:e.code}})}function v(e){let{courseId:r,lessonId:n}=e,i=m();return(0,s.a)({queryKey:["completed",r,n],queryFn:async()=>{var e,s,o,a;return null==i?void 0:null===(a=i.courses)||void 0===a?void 0:null===(o=a[r])||void 0===o?void 0:null===(s=o.lessons)||void 0===s?void 0:null===(e=s[n])||void 0===e?void 0:e.completed}})}function g(e){let{_id:r,courseId:n,lessonId:s}=e,a=(0,i.NL)(),u=m();return(0,o.D)({mutationFn:e=>(null==u?void 0:u.uid)?(0,h.sI)({...e,_id:r,courseId:n,lessonId:s}):Promise.resolve(e),onMutate:async e=>{await a.cancelQueries();let r=a.getQueryData(["user"]);return a.setQueryData(["completed",n,s],i=>i?l()(i,"courses.".concat(n,".lessons.").concat(s),e):r),()=>{a.setQueryData(["completed",n,s],r)}},onError:(e,r,n)=>{c.ZP.error(e.message),null==n||n()},onSettled:()=>{a.invalidateQueries({queryKey:["completed",n,s]}),a.invalidateQueries({queryKey:["user"]})}})}},28115:function(e,r,n){"use strict";n.d(r,{H:function(){return v},Z:function(){return g}});var i=n(85893),s=n(11163),o=n(67294),a=n(86501),u=n(22991);async function l(e,r){let n=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,password:r})});return await n.json()}async function c(){let e=await fetch("/api/auth/logout",{method:"POST"});return await e.json()}async function h(e){let r=await fetch("/api/auth/reset",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e})});return await r.json()}async function d(e,r){let n=await fetch("/api/auth/confirmReset",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({actionCode:e,newPassword:r})});return await n.json()}async function f(e,r){let n=await fetch("/api/auth/updateUserPassword",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:e,currentPassword:r})});return await n.json()}async function p(e,r){let n=await fetch("/api/auth/updateUserEmail",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({newEmail:e,password:r})});return await n.json()}async function m(e){let{email:r,password:n,source:i}=e,s=await fetch("/api/auth/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:r,password:n,source:i})}),o=await s.json();if(o.error)throw o.error;return o}let y=o.createContext(null);function v(e){let{children:r}=e,n=function(){let e=(0,s.useRouter)(),r=(0,u.p9)();return{login:async(e,n)=>{let i=await l(e,n);return r.revalidate(),i},logout:async()=>{let n=await c();if(n.error)return a.ZP.error(n.error.message);r.revalidate(),e.push("/login")},register:m,resetPassword:h,confirmPasswordReset:d,updateEmail:p,updatePassword:f}}();return(0,i.jsx)(y.Provider,{value:n,children:r})}function g(){return o.useContext(y)}},30106:function(e,r,n){"use strict";n.d(r,{Z:function(){return s}});var i=n(67294);function s(e,r){let[n,s]=i.useState(()=>{{let n=window.localStorage.getItem(e);try{return n?JSON.parse(n):r}catch(e){return n}}return r});return[n,i.useCallback(r=>{try{s(n=>{let i=r instanceof Function?r(n):r;return window.localStorage.setItem(e,JSON.stringify(i)),i})}catch(e){}},[e])]}},8875:function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"actionAsyncStorage",{enumerable:!0,get:function(){return i}});let i=(0,n(95039).createAsyncLocalStorage)();("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),e.exports=r.default)},26208:function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"actionAsyncStorage",{enumerable:!0,get:function(){return i.actionAsyncStorage}});let i=n(8875);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
5dule",{value:!0}),Object.assign(r.default,r),e.exports=r.default)},95039:function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createAsyncLocalStorage",{enumerable:!0,get:function(){return o}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class i{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let s=globalThis.AsyncLocalStorage;function o(){return s?new s:new i}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),e.exports=r.default)},70827:function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(e,r){for(var n in r)Object.defineProperty(e,n,{enumerable:!0,get:r[n]})}(r,{ReadonlyURLSearchParams:function(){return l.ReadonlyURLSearchParams},RedirectType:function(){return l.RedirectType},ServerInsertedHTMLContext:function(){return c.ServerInsertedHTMLContext},notFound:function(){return l.notFound},permanentRedirect:function(){return l.permanentRedirect},redirect:function(){return l.redirect},useParams:function(){return p},usePathname:function(){return d},useRouter:function(){return f},useSearchParams:function(){return h},useSelectedLayoutSegment:function(){return y},useSelectedLayoutSegments:function(){return m},useServerInsertedHTML:function(){return c.useServerInsertedHTML}});let i=n(67294),s=n(15320),o=n(51083),a=n(55363),u=n(74722),l=n(34138),c=n(23617);function h(){let e=(0,i.useContext)(o.SearchParamsContext);return(0,i.useMemo)(()=>e?new l.ReadonlyURLSearchParams(e):null,[e])}function d(){return(0,i.useContext)(o.PathnameContext)}function f(){let e=(0,i.useContext)(s.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function p(){return(0,i.useContext)(o.PathParamsContext)}function m(e){void 0===e&&(e="children");let r=(0,i.useContext)(s.LayoutRouterContext);return r?function e(r,n,i,s){let o;if(void 0===i&&(i=!0),void 0===s&&(s=[]),i)o=r[1][n];else{var l;let e=r[1];o=null!=(l=e.children)?l:Object.values(e)[0]}if(!o)return s;let c=o[0],h=(0,a.getSegmentValue)(c);return!h||h.startsWith(u.PAGE_SEGMENT_KEY)?s:(s.push(h),e(o,n,!1,s))}(r.tree,e):null}function y(e){void 0===e&&(e="children");let r=m(e);if(!r||0===r.length)return null;let n="children"===e?r[0]:r[r.length-1];return n===u.DEFAULT_SEGMENT_KEY?null:n}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),e.exports=r.default)},34138:function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(e,r){for(var n in r)Object.defineProperty(e,n,{enumerable:!0,get:r[n]})}(r,{ReadonlyURLSearchParams:function(){return a},RedirectType:function(){return i.RedirectType},notFound:function(){return s.notFound},permanentRedirect:function(){return i.permanentRedirect},redirect:function(){return i.redirect}});let i=n(2830),s=n(79399);class o extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class a extends URLSearchParams{append(){throw new o}delete(){throw new o}set(){throw new o}sort(){throw new o}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),e.exports=r.default)},79399:function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(e,r){for(var n in r)Object.defineProperty(e,n,{enumerable:!0,get:r[n]})}(r,{isNotFoundError:function(){return s},notFound:function(){return i}});let n="NEXT_NOT_FOUND";function i(){let e=Error(n);throw e.digest=n,e}function s(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===n}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
5dule",{value:!0}),Object.assign(r.default,r),e.exports=r.default)},78074:function(e,r){"use strict";var n,i;Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"RedirectStatusCode",{enumerable:!0,get:function(){return n}}),(i=n||(n={}))[i.SeeOther=303]="SeeOther",i[i.TemporaryRedirect=307]="TemporaryRedirect",i[i.PermanentRedirect=308]="PermanentRedirect",("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),e.exports=r.default)},2830:function(e,r,n){"use strict";var i,s;Object.defineProperty(r,"__esModule",{value:!0}),function(e,r){for(var n in r)Object.defineProperty(e,n,{enumerable:!0,get:r[n]})}(r,{RedirectType:function(){return i},getRedirectError:function(){return c},getRedirectStatusCodeFromError:function(){return y},getRedirectTypeFromError:function(){return m},getURLFromRedirectError:function(){return p},isRedirectError:function(){return f},permanentRedirect:function(){return d},redirect:function(){return h}});let o=n(77218),a=n(26208),u=n(78074),l="NEXT_REDIRECT";function c(e,r,n){void 0===n&&(n=u.RedirectStatusCode.TemporaryRedirect);let i=Error(l);i.digest=l+";"+r+";"+e+";"+n+";";let s=o.requestAsyncStorage.getStore();return s&&(i.mutableCookies=s.mutableCookies),i}function h(e,r){void 0===r&&(r="replace");let n=a.actionAsyncStorage.getStore();throw c(e,r,(null==n?void 0:n.isAction)?u.RedirectStatusCode.SeeOther:u.RedirectStatusCode.TemporaryRedirect)}function d(e,r){void 0===r&&(r="replace");let n=a.actionAsyncStorage.getStore();throw c(e,r,(null==n?void 0:n.isAction)?u.RedirectStatusCode.SeeOther:u.RedirectStatusCode.PermanentRedirect)}function f(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[r,n,i,s]=e.digest.split(";",4),o=Number(s);return r===l&&("replace"===n||"push"===n)&&"string"==typeof i&&!isNaN(o)&&o in u.RedirectStatusCode}function p(e){return f(e)?e.digest.split(";",3)[2]:null}function m(e){if(!f(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function y(e){if(!f(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(s=i||(i={})).push="push",s.replace="replace",("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),e.exports=r.default)},6718:function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"requestAsyncStorage",{enumerable:!0,get:function(){return i}});let i=(0,n(95039).createAsyncLocalStorage)();("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),e.exports=r.default)},77218:function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(e,r){for(var n in r)Object.defineProperty(e,n,{enumerable:!0,get:r[n]})}(r,{getExpectedRequestStore:function(){return s},requestAsyncStorage:function(){return i.requestAsyncStorage}});let i=n(6718);function s(e){let r=i.requestAsyncStorage.getStore();if(r)return r;throw Error("`"+e+"` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context")}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),e.exports=r.default)},55363:function(e,r){"use strict";function n(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getSegmentValue",{enumerable:!0,get:function(){return n}}),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),e.exports=r.default)},46691:function(e,r){"use strict";var n,i,s,o;
5Object.defineProperty(r,"__esModule",{value:!0}),function(e,r){for(var n in r)Object.defineProperty(e,n,{enumerable:!0,get:r[n]})}(r,{ACTION_FAST_REFRESH:function(){return d},ACTION_NAVIGATE:function(){return u},ACTION_PREFETCH:function(){return h},ACTION_REFRESH:function(){return a},ACTION_RESTORE:function(){return l},ACTION_SERVER_ACTION:function(){return f},ACTION_SERVER_PATCH:function(){return c},PrefetchCacheEntryStatus:function(){return i},PrefetchKind:function(){return n},isThenable:function(){return p}});let a="refresh",u="navigate",l="restore",c="server-patch",h="prefetch",d="fast-refresh",f="server-action";function p(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(s=n||(n={})).AUTO="auto",s.FULL="full",s.TEMPORARY="temporary",(o=i||(i={})).fresh="fresh",o.reusable="reusable",o.expired="expired",o.stale="stale",("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),e.exports=r.default)},64318:function(e,r,n){"use strict";function i(e,r,n,i){return!1}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getDomainLocale",{enumerable:!0,get:function(){return i}}),n(98364),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),e.exports=r.default)},89577:function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return w}});let i=n(38754),s=n(85893),o=i._(n(67294)),a=n(71401),u=n(2045),l=n(27420),c=n(57201),h=n(11443),d=n(9953),f=n(15320),p=n(52905),m=n(64318),y=n(90953),v=n(46691),g=new Set;function b(e,r,n,i,s,o){if(o||(0,u.isLocalURL)(r)){if(!i.bypassPrefetchedCheck){let s=r+"%"+n+"%"+(void 0!==i.locale?i.locale:"locale"in e?e.locale:void 0);if(g.has(s))return;g.add(s)}(async()=>o?e.prefetch(r,s):e.prefetch(r,n,i))().catch(e=>{})}}function x(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let w=o.default.forwardRef(function(e,r){let n,i;let{href:l,as:g,children:w,prefetch:P=null,passHref:S,replace:C,shallow:T,scroll:E,locale:j,onClick:O,onMouseEnter:R,onTouchStart:k,legacyBehavior:A=!1,...M}=e;n=w,A&&("string"==typeof n||"number"==typeof n)&&(n=(0,s.jsx)("a",{children:n}));let L=o.default.useContext(d.RouterContext),_=o.default.useContext(f.AppRouterContext),V=null!=L?L:_,D=!L,F=!1!==P,I=null===P?v.PrefetchKind.AUTO:v.PrefetchKind.FULL,{href:N,as:q}=o.default.useMemo(()=>{if(!L){let e=x(l);return{href:e,as:g?x(g):e}}let[e,r]=(0,a.resolveHref)(L,l,!0);return{href:e,as:g?(0,a.resolveHref)(L,g):r||e}},[L,l,g]),z=o.default.useRef(N),B=o.default.useRef(q);A&&(i=o.default.Children.only(n));let U=A?i&&"object"==typeof i&&i.ref:r,[$,Q,H]=(0,p.useIntersection)({rootMargin:"200px"}),Z=o.default.useCallback(e=>{(B.current!==q||z.current!==N)&&(H(),B.current=q,z.current=N),$(e),U&&("function"==typeof U?U(e):"object"==typeof U&&(U.current=e))},[q,U,N,H,$]);o.default.useEffect(()=>{V&&Q&&F&&b(V,N,q,{locale:j},{kind:I},D)},[q,N,Q,j,F,null==L?void 0:L.locale,V,D,I]);let W={ref:Z,onClick(e){A||"function"!=typeof O||O(e),A&&i.props&&"function"==typeof i.props.onClick&&i.props.onClick(e),V&&!e.defaultPrevented&&function(e,r,n,i,s,a,l,c,h){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let r=e.currentTarget.getAttribute("target");return r&&"_self"!==r||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!h&&!(0,u.isLocalURL)(n)))return;e.preventDefault();let f=()=>{let e=null==l||l;"beforePopState"in r?r[s?"replace":"push"](n,i,{shallow:a,locale:c,scroll:e}):r[s?"replace":"push"](i||n,{scroll:e})};h?o.default.startTransition(f):f()}(e,V,N,q,C,T,E,j,D)},onMouseEnter(e){A||"function"!=typeof R||R(e),A&&i.props&&"function"==typeof i.props.onMouseEnter&&i.props.onMouseEnter(e),V&&(F||!D)&&b(V,N,q,{locale:j,priority:!0,bypassPrefetchedCheck:!0},{kind:I},D)},onTouchStart:function(e){A||"function"!=typeof k||k(e),A&&i.props&&"function"==typeof i.props.onTouchStart&&i.props.onTouchStart(e),V&&(F||!D)&&b(V,N,q,{locale:j,priority:!0,bypassPrefetchedCheck:!0},{kind:I},D)}};if((0,c.isAbsoluteUrl)(q))W.href=q;
5else if(!A||S||"a"===i.type&&!("href"in i.props)){let e=void 0!==j?j:null==L?void 0:L.locale,r=(null==L?void 0:L.isLocaleDomain)&&(0,m.getDomainLocale)(q,e,null==L?void 0:L.locales,null==L?void 0:L.domainLocales);W.href=r||(0,y.addBasePath)((0,h.addLocale)(q,e,null==L?void 0:L.defaultLocale))}return A?o.default.cloneElement(i,W):(0,s.jsx)("a",{...M,...W,children:n})});("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),e.exports=r.default)},52905:function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useIntersection",{enumerable:!0,get:function(){return l}});let i=n(67294),s=n(33815),o="function"==typeof IntersectionObserver,a=new Map,u=[];function l(e){let{rootRef:r,rootMargin:n,disabled:l}=e,c=l||!o,[h,d]=(0,i.useState)(!1),f=(0,i.useRef)(null),p=(0,i.useCallback)(e=>{f.current=e},[]);return(0,i.useEffect)(()=>{if(o){if(c||h)return;let e=f.current;if(e&&e.tagName)return function(e,r,n){let{id:i,observer:s,elements:o}=function(e){let r;let n={root:e.root||null,margin:e.rootMargin||""},i=u.find(e=>e.root===n.root&&e.margin===n.margin);if(i&&(r=a.get(i)))return r;let s=new Map;return r={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let r=s.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;r&&n&&r(n)})},e),elements:s},u.push(n),a.set(n,r),r}(n);return o.set(e,r),s.observe(e),function(){if(o.delete(e),s.unobserve(e),0===o.size){s.disconnect(),a.delete(i);let e=u.findIndex(e=>e.root===i.root&&e.margin===i.margin);e>-1&&u.splice(e,1)}}}(e,e=>e&&d(e),{root:null==r?void 0:r.current,rootMargin:n})}else if(!h){let e=(0,s.requestIdleCallback)(()=>d(!0));return()=>(0,s.cancelIdleCallback)(e)}},[c,n,r,h,f.current]),[p,h,(0,i.useCallback)(()=>{d(!1)},[])]}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),e.exports=r.default)},23617:function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(e,r){for(var n in r)Object.defineProperty(e,n,{enumerable:!0,get:r[n]})}(r,{ServerInsertedHTMLContext:function(){return s},useServerInsertedHTML:function(){return o}});let i=n(61757)._(n(67294)),s=i.default.createContext(null);function o(e){let r=(0,i.useContext)(s);r&&r(e)}},33141:function(e,r,n){"use strict";n.d(r,{w_:function(){return l}});var i=n(67294),s={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=i.createContext&&i.createContext(s),a=function(){return(a=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++)for(var s in r=arguments[n])Object.prototype.hasOwnProperty.call(r,s)&&
5(e[s]=r[s]);return e}).apply(this,arguments)},u=function(e,r){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>r.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)0>r.indexOf(i[s])&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(n[i[s]]=e[i[s]]);return n};function l(e){return function(r){return i.createElement(c,a({attr:a({},e.attr)},r),function e(r){return r&&r.map(function(r,n){return i.createElement(r.tag,a({key:n},r.attr),e(r.child))})}(e.child))}}function c(e){var r=function(r){var n,s=e.attr,o=e.size,l=e.title,c=u(e,["attr","size","title"]),h=o||r.size||"1em";return r.className&&(n=r.className),e.className&&(n=(n?n+" ":"")+e.className),i.createElement("svg",a({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,s,c,{className:n,style:a(a({color:e.color||r.color},r.style),e.style),height:h,width:h,xmlns:"http://www.w3.org/2000/svg"}),l&&i.createElement("title",null,l),e.children)};return void 0!==o?i.createElement(o.Consumer,null,function(e){return r(e)}):r(s)}},35238:function(e,r,n){"use strict";n.d(r,{FU5:function(){return o},Tcr:function(){return s},YTG:function(){return u},twx:function(){return a}});var i=n(33141);function s(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0zm0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M16.59 7.58L10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}}]})(e)}function o(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}}]})(e)}function a(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}}]})(e)}function u(e){return(0,i.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5v6z"}}]})(e)}},647:function(e,r,n){"use strict";n.r(r),n.d(r,{default:function(){return U}});var i=n(85893);n(8715),n(70855);var s=n(24139),o=n(27037),a=n(72008),u=n(48907),l=class extends u.F{constructor(e){super(),this.#t=!1,this.#e=e.defaultOptions,this.#r(e.options),this.#n=[],this.#i=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#s=e.state||function(e){let r="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==r,i=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=this.#s,this.scheduleGc()}#s;#o;#i;#a;#u;#n;#e;#t;get meta(){return this.options.meta}#r(e){this.options={...this.#e,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.#n.length||"idle"!==this.state.fetchStatus||this.#i.remove(this)}setData(e,r){let n=(0,s.oE)(this.state.data,e,this.options);return this.#l({data:n,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),n}setState(e,r){this.#l({type:"setState",state:e,setStateOptions:r})}cancel(e){let r=this.#a;return this.#u?.cancel(e),r?r.then(s.ZT).catch(s.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#s)}isActive(){return this.#n.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.#n.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,s.Kp)(this.state.dataUpdatedAt,e)}onFocus(){let e=this.#n.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#u?.continue()}onOnline(){let e=this.#n.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#u?.continue()}addObserver(e){this.#n.includes(e)||(this.#n.push(e),this.clearGcTimeout(),this.#i.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.#n.includes(e)&&(this.#n=this.#n.filter(r=>r!==e),this.#n.length||(this.#u&&(this.#t?this.#u.cancel({revert:!0}):this.#u.cancelRetry()),this.scheduleGc()),this.#i.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.#n.length}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}fetch(e,r){if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&r?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#u?.continueRetry(),this.#a}if(e&&this.#r(e),!this.options.queryFn){let e=this.#n.find(e=>e.options.queryFn);e&&this.#r(e.options)}let n=new AbortController,i={queryKey:this.queryKey,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#t=!0,n.signal)}
5)};s(i);let o={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.#t=!1,this.options.persister)?this.options.persister(this.options.queryFn,i,this):this.options.queryFn(i):Promise.reject(Error(`Missing queryFn: '${this.options.queryHash}'`))};s(o),this.options.behavior?.onFetch(o,this),this.#o=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#l({type:"fetch",meta:o.fetchOptions?.meta});let u=e=>{(0,a.DV)(e)&&e.silent||this.#l({type:"error",error:e}),(0,a.DV)(e)||(this.#i.config.onError?.(e,this),this.#i.config.onSettled?.(this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.#u=(0,a.Mz)({fn:o.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(void 0===e){u(Error(`${this.queryHash} data is undefined`));return}this.setData(e),this.#i.config.onSuccess?.(e,this),this.#i.config.onSettled?.(e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:u,onFail:(e,r)=>{this.#l({type:"failed",failureCount:e,error:r})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode}),this.#a=this.#u.promise,this.#a}#l(e){this.state=(r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:e.meta??null,fetchStatus:(0,a.Kw)(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let n=e.error;if((0,a.DV)(n)&&n.revert&&this.#o)return{...this.#o,fetchStatus:"idle"};return{...r,error:n,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}})(this.state),o.V.batch(()=>{this.#n.forEach(e=>{e.onQueryUpdate()}),this.#i.notify({query:this,type:"updated",action:e})})}},c=n(7506),h=class extends c.l{constructor(e={}){super(),this.config=e,this.#c=new Map}#c;build(e,r,n){let i=r.queryKey,o=r.queryHash??(0,s.Rm)(i,r),a=this.get(o);return a||(a=new l({cache:this,queryKey:i,queryHash:o,options:e.defaultQueryOptions(r),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(a)),a}add(e){this.#c.has(e.queryHash)||(this.#c.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let r=this.#c.get(e.queryHash);r&&(e.destroy(),r===e&&this.#c.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){o.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#c.get(e)}getAll(){return[...this.#c.values()]}find(e){let r={exact:!0,...e};return this.getAll().find(e=>(0,s._x)(r,e))}findAll(e={}){let r=this.getAll();return Object.keys(e).length>0?r.filter(r=>(0,s._x)(e,r)):r}notify(e){o.V.batch(()=>{this.listeners.forEach(r=>{r(e)})})}onFocus(){o.V.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){o.V.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},d=n(59289),f=class extends c.l{constructor(e={}){super(),this.config=e,this.#h=[],this.#d=0}#h;#d;#f;build(e,r,n){let i=new d.m({mutationCache:this,mutationId:++this.#d,options:e.defaultMutationOptions(r),state:n});return this.add(i),i}add(e){this.#h.push(e),this.notify({type:"added",mutation:e})}remove(e){this.#h=this.#h.filter(r=>r!==e),this.notify({type:"removed",mutation:e})}clear(){o.V.batch(()=>{this.#h.forEach(e=>{this.remove(e)})})}getAll(){return this.#h}find(e){let r={exact:!0,...e};return this.#h.find(e=>(0,s.X7)(r,e))}findAll(e={}){return this.#h.filter(r=>(0,s.X7)(e,r))}notify(e){o.V.batch(()=>
5{this.listeners.forEach(r=>{r(e)})})}resumePausedMutations(){return this.#f=(this.#f??Promise.resolve()).then(()=>{let e=this.#h.filter(e=>e.state.isPaused);return o.V.batch(()=>e.reduce((e,r)=>e.then(()=>r.continue().catch(s.ZT)),Promise.resolve()))}).then(()=>{this.#f=void 0}),this.#f}},p=n(66474),m=n(14304);function y(e,{pages:r,pageParams:n}){let i=r.length-1;return e.getNextPageParam(r[i],r,n[i],n)}var v=class{#p;#m;#e;#y;#v;#g;#b;#x;constructor(e={}){this.#p=e.queryCache||new h,this.#m=e.mutationCache||new f,this.#e=e.defaultOptions||{},this.#y=new Map,this.#v=new Map,this.#g=0}mount(){this.#g++,1===this.#g&&(this.#b=p.j.subscribe(()=>{p.j.isFocused()&&(this.resumePausedMutations(),this.#p.onFocus())}),this.#x=m.N.subscribe(()=>{m.N.isOnline()&&(this.resumePausedMutations(),this.#p.onOnline())}))}unmount(){this.#g--,0===this.#g&&(this.#b?.(),this.#b=void 0,this.#x?.(),this.#x=void 0)}isFetching(e){return this.#p.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#m.findAll({...e,status:"pe
5nding"}).length}getQueryData(e){return this.#p.find({queryKey:e})?.state.data}ensureQueryData(e){let r=this.getQueryData(e.queryKey);return void 0!==r?Promise.resolve(r):this.fetchQuery(e)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:r})=>[e,r.data])}setQueryData(e,r,n){let i=this.#p.find({queryKey:e}),o=i?.state.data,a=(0,s.SE)(r,o);if(void 0===a)return;let u=this.defaultQueryOptions({queryKey:e});return this.#p.build(this,u).setData(a,{...n,manual:!0})}setQueriesData(e,r,n){return o.V.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,r,n)]))}getQueryState(e){return this.#p.find({queryKey:e})?.state}removeQueries(e){let r=this.#p;o.V.batch(()=>{r.findAll(e).forEach(e=>{r.remove(e)})})}resetQueries(e,r){let n=this.#p,i={type:"active",...e};return o.V.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(i,r)))}cancelQueries(e={},r={}){let n={revert:!0,...r};return Promise.all(o.V.batch(()=>this.#p.findAll(e).map(e=>e.cancel(n)))).then(s.ZT).catch(s.ZT)}invalidateQueries(e={},r={}){return o.V.batch(()=>{if(this.#p.findAll(e).forEach(e=>{e.invalidate()}),"none"===e.refetchType)return Promise.resolve();let n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,r)})}refetchQueries(e={},r){let n={...r,cancelRefetch:r?.cancelRefetch??!0};return Promise.all(o.V.batch(()=>this.#p.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let r=e.fetch(void 0,n);return n.throwOnError||(r=r.catch(s.ZT)),"paused"===e.state.fetchStatus?Promise.resolve():r}))).then(s.ZT)}fetchQuery(e){let r=this.defaultQueryOptions(e);void 0===r.retry&&(r.retry=!1);let n=this.#p.build(this,r);return n.isStaleByTime(r.staleTime)?n.fetch(r):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(s.ZT).catch(s.ZT)}fetchInfiniteQuery(e){var r;return e.behavior=(r=e.pages,{onFetch:(e,n)=>{let i=async()=>{let n;let i=e.options,o=e.fetchOptions?.meta?.fetchMore?.direction,a=e.state.data?.pages||[],u=e.state.data?.pageParams||[],l=!1,c=r=>{Object.defineProperty(r,"signal",{enumerable:!0,get:()=>(e.signal.aborted?l=!0:e.signal.addEventListener("abort",()=>{l=!0}),e.signal)})},h=e.options.queryFn||(()=>Promise.reject(Error(`Missing queryFn: '${e.options.queryHash}'`))),d=async(r,n,i)=>{if(l)return Promise.reject();if(null==n&&r.pages.length)return Promise.resolve(r);let o={queryKey:e.queryKey,pageParam:n,direction:i?"backward":"forward",meta:e.options.meta};c(o);let a=await h(o),{maxPages:u}=e.options,d=i?s.Ht:s.VX;return{pages:d(r.pages,a,u),pageParams:d(r.pageParams,n,u)}};if(o&&a.length){let e="backward"===o,r={pages:a,pageParams:u},s=(e?function(e,{pages:r,pageParams:n}){return e.getPreviousPageParam?.(r[0],r,n[0],n)}:y)(i,r);n=await d(r,s,e)}else{n=await d({pages:[],pageParams:[]},u[0]??i.initialPageParam);let e=r??a.length;for(let r=1;r<e;r++){let e=y(i,n);n=await d(n,e)}}return n};e.options.persister?e.fetchFn=()=>e.options.persister?.(i,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n):e.fetchFn=i}}),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(s.ZT).catch(s.ZT)}resumePausedMutations(){return this.#m.resumePausedMutations()}getQueryCache(){return this.#p}getMutationCache(){return this.#m}getDefaultOptions(){return this.#e}setDefaultOptions(e){this.#e=e}setQueryDefaults(e,r){this.#y.set((0,s.Ym)(e),{queryKey:e,defaultOptions:r})}getQueryDefaults(e){let r=[...this.#y.values()],n={};return r.forEach(r=>{(0,s.to)(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}
5setMutationDefaults(e,r){this.#v.set((0,s.Ym)(e),{mutationKey:e,defaultOptions:r})}getMutationDefaults(e){let r=[...this.#v.values()],n={};return r.forEach(r=>{(0,s.to)(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e?._defaulted)return e;let r={...this.#e.queries,...e?.queryKey&&this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return r.queryHash||(r.queryHash=(0,s.Rm)(r.queryKey,r)),void 0===r.refetchOnReconnect&&(r.refetchOnReconnect="always"!==r.networkMode),void 0===r.throwOnError&&(r.throwOnError=!!r.suspense),void 0===r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r}defaultMutationOptions(e){return e?._defaulted?e:{...this.#e.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#p.clear(),this.#m.clear()}},g=n(30202),b=n(51526),x=n(67294),w=n(4298),P=n.n(w),S=n(83454);let C=(e,...r)=>{var n,i;let s=null!==(n=e.basePath)&&void 0!==n?n:"";return e.subdirectory&&(s+=`/${e.subdirectory}`),`${s}/js/${[null!==(i=e.scriptName)&&void 0!==i?i:"script",...r.sort().filter(e=>null!==e)].join(".")}.js`},T=e=>e?"plausible":"script",E=e=>{var r;return null!==(r=e.customDomain)&&void 0!==r?r:"https://plausible.io"},j=e=>{var r,n;return`${null!==(r=e.basePath)&&void 0!==r?r:""}/${null!==(n=e.subdirectory)&&void 0!==n?n:"proxy"}/api/event${e.trailingSlash?"/":""}`};function O(e){let{enabled:r=!0}=e,n={trailingSlash:"true"===S.env.next_plausible_trailingSlash,basePath:S.env.next_plausible_basePath,customDomain:S.env.next_plausible_customDomain,scriptName:S.env.next_plausible_scriptName,subdirectory:S.env.next_plausible_subdirectory};return x.createElement(x.Fragment,null,r&&x.createElement(P(),Object.assign({async:!0,defer:!0,"data-api":n?j(n):void 0,"data-domain":e.domain,"data-exclude":e.exclude,src:(n?"":E(e))+C(Object.assign(Object.assign({},n),{scriptName:n?n.scriptName:T(e.selfHosted)}),e.trackLocalhost?"local":null,e.manualPageviews?"manual":null,e.pageviewProps?"pageview-props":null,e.trackOutboundLinks?"outbound-links":null,e.exclude?"exclusions":null,e.revenue?"revenue":null,e.trackFileDownloads?"file-downloads":null,e.taggedEvents?"tagged-events":null,e.hash?"hash":null),integrity:e.integrity,crossOrigin:e.integrity?"anonymous":void 0},"object"==typeof e.pageviewProps?Object.fromEntries(Object.entries(e.pageviewProps).map(([e,r])=>[`event-${e}`,r])):void 0,e.scriptProps)),r&&x.createElement(P(),{id:"next-plausible-init",dangerouslySetInnerHTML:{__html:"window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }"}}),e.children)}var R=n(86501),k=n(3899),A=n(55697),M=n(11163),L=n(51886);let _=()=>{L.LV()};var V=e=>{let{children:r}=e,n=(0,M.useRouter)();return(0,x.useEffect)(()=>(L.LV(),n.events.on("routeChangeComplete",_),()=>{n.events.off("routeChangeComplete",_)}),[n.events]),r},D=n(28115),F=n(75709),I=n(39332),N=n(97836);let q=e=>{let{children:r}=e,n=(0,I.useRouter)();return(0,x.useEffect)(()=>{let e=new WebSocket("ws://localhost:3001");return e.onmessage=e=>{"refresh"===e.data&&n.refresh()},()=>{e.close()}},[n]),r};function z(e){let{children:r}=e;return"production"===N.Gv?r:(0,i.jsx)(q,{children:r})}n(19311);let B=new v({defaultOptions:{queries:{refetchOnWindowFocus:!1}}});function U(e){let{Component:r,pageProps:n,router:s}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(P(),{id:"fb-pixel",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"\n !function(f,b,e,v,n,t,s)\n {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n n.queue=[];t=b.createElement(e);t.async=!0;\n t.src=v;s=b.getElementsByTagName(e)[0];\n s.parentNode.insertBefore(t,s)}(window, document,'script',\n 'https://connect.facebook.net/en_US/fbevents.js');\n fbq('init', ".concat(L.ng,");\n fbq('init', ").concat(L.GV,");\n ")}}),(0,i.jsx)(P(),{id:"tw-pixel",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"\n !function(e,t,n,s,u,a){e.twq||(s=e.twq=function(){s.exe?s.exe.apply(s,arguments):s.queue.push(arguments);\n },s.version='1.1',s.queue=[],u=t.createElement(n),u.async=!0,u.src='https://static.ads-twitter.com/uwt.js',\n a=t.getElementsByTagName(n)[0],a.parentNode.insertBefore(u,a))}(window,document,'script');\n twq('config', \"".concat(L.T1,'");\n ')}}),(0,i.jsx)(g.aH,{client:B,children:(0,i.jsx)(V,{children:(0,i.jsx)(O,{domain:"fireship.dev",children:(0,i.jsx)(D.H,{children:(0,i.jsx)(A.Z,{children:(0,i.jsx)(k.
5VS,{children:(0,i.jsxs)(F.T,{children:[(0,i.jsx)(R.x7,{position:"bottom-left"}),(0,i.jsx)(b.M,{mode:"wait",initial:!0,children:(0,i.jsx)(z,{children:(0,i.jsx)(r,{...n},s.pathname)})})]})})})})})})})]})}},72451:function(e,r,n){"use strict";async function i(e){let r=await fetch("/api/auth/update-user-profile",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});return await r.json()}async function s(e,r,n,i){let s=await fetch("/api/submit-review",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e,review:r,social:n,courseId:i})});return await s.json()}async function o(e){let r=await fetch("/api/update-lesson",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});return await r.json()}async function a(e){let r=await fetch("/api/mark-lesson-started",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});return await r.json()}async function u(e){let{_id:r,content:n}=e,i=await fetch("/api/threads/new",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({_id:r,content:n})});return await i.json()}async function l(e){let{_id:r,threadId:n,content:i}=e,s=await fetch("/api/threads/comment",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({_id:r,threadId:n,content:i})});return await s.json()}async function c(e){let{_id:r,threadId:n,commentId:i,content:s}=e,o=await fetch("/api/threads/edit",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({_id:r,threadId:n,commentId:i,content:s})});return await o.json()}async function h(e){let{_id:r,threadId:n,commentId:i,reaction:s}=e,o=await fetch("/api/threads/reaction",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({_id:r,threadId:n,commentId:i,reaction:s})});return await o.json()}async function d(e){let r=await fetch("/api/threads/".concat(e));if(!r.ok)throw Error("Failed to fetch threads");return r.json()}async function f(e){let{_id:r,threadId:n}=e,i=await fetch("/api/threads/delete",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({_id:r,threadId:n})});return await i.json()}async function p(e){let{_id:r,threadId:n,commentId:i}=e,s=await fetch("/api/threads/delete-comment",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({_id:r,threadId:n,commentId:i})});if(!s.ok)throw Error("Failed to delete comment");return await s.json()}async function m(e){let r=await fetch("/api/active",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({seconds:e})});return await r.json()}n.d(r,{$z:function(){return l},Ap:function(){return u},DF:function(){return c},Lj:function(){return i},YF:function(){return p},aH:function(){return a},bJ:function(){return d},l8:function(){return f},r_:function(){return h},sI:function(){return o},uv:function(){return m},xi:function(){return s}})},97836:function(e,r,n){"use strict";n.d(r,{FH:function(){return o},Gv:function(){return s},qF:function(){return a}});var i=n(83454);let s="production",o="preview"===s?"https://".concat("platform-j5car4lo7-uidotdev.vercel.app","/"):"production"===s?"https://fireship.dev/":"http://localhost:3000/";"production"===s&&i.env.FIREBASE_PRIVATE_KEY;let a=["8r6M7yqY4ERshU0RA9IpPsf45ok1","2PVoPg4brJa3361QyFyCpehi4Ad2","rU7SFK7NVjcRxzu1l0nLkrZE9lp1","4ds9hkvJ8ohlMFhPFpLVWQB2ts83","mlmGJhXSkrg07s7TnmlhWLQW1bg1"]},24314:function(e,r,n){"use strict";n.d(r,{Ac:function(){return d},fb:function(){return u},Ff:function(){return m},q$:function(){return h},qS:function(){return y},A_:function(){return p},AA:function(){return f}});var i=n(85893);function s(e){let{width:r=200,height:n=37}=e;return(0,i.jsxs)("svg",{width:r,height:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 464 85",children:[(0,i.jsx)("title",{children:"react.gg"}),(0,i.jsx)("g",{fill:"currentColor",children:(0,i.jsx)("path",{d:"M62.17 1.29c18 0 27.06 8.46 22.98 25.27-2.98 12.04-9.35 16.71-22.48 18.2l-.2.7c10.25 1.39 13.73 4.77 13.03 15.22-.1 4.87-.7 11.64-.7 15.22H49.43c-4.38 0-5.27-1.59-4.87-7.96 1.39-13.13.89-15.72-4.38-15.72-1.99 0-2.79 0-4.68.1-2.19 9.45-3.88 17.81-4.67 23.58H0c2.88-10.74 5.67-21.39 9.65-37.3 3.98-15.82 6.56-26.56 8.95-37.31h43.57Zm-7.16 27.55c1.89-7.76-.3-9.95-5.57-9.95-1.19 0-3.68.1-6.07.2-1.39 5.87-2.88 11.84-4.28 17.51 1.99.1 4.48.1 7.36.1 4.58 0 7.06-2.29 8.55-7.86ZM159.56 1.29c-.7 2.39-1.79 6.57-2.69 9.95-.9 3.58-1.99 8.06-2.49 10.54-10.35-.2-21.39-.2-30.04-.2l-1.79 7.36c10.15 0 20.79-.1 29.34-.4-1.09 4.18-3.38 13.03-4.48 17.71-8.26-.3-19-.5-29.05-.5l-1.89 7.66c8.85 0 20.59-.1 30.14-.2-.9 2.88-2.09 7.56-2.98 11.54-1 3.78-2.09 8.16-2.69 11.14H80.06c2.88-10.44 5.77-21.39 9.65-37.3 3.98-15.82 6.67-27.06 8.95-37.3h60.88ZM231.49 1.29c-.6 9.95-2.98 55.71-2.69 74.6h-33.12c.7-2.88 1.59-7.66 2.49-13.43h-1
55.02c-1.99 5.67-3.58 10.44-4.38 13.43h-32.13c9.35-18.8 29.74-64.86 33.62-74.6h51.23Zm-31.04 44.27c.8-6.76 1.49-13.83 1.99-20.09.1-4.08.5-8.95.9-12.73h-.5c-1.59 3.78-3.48 8.55-5.47 12.83a420.39 420.39 0 0 0-7.96 19.99h11.04ZM283.21 30.34c1.79-7.16.1-9.55-4.58-9.55-4.97.1-8.06 2.79-11.34 16.21-3.28 13.03-1.19 16.81 4.08 16.81 4.38 0 7.06-3.68 8.46-9.25.3-1.09.5-2.39.8-3.68 4.77.1 9.85.1 14.82.1s9.95 0 14.82-.1c-.3 2.19-.8 4.28-1.29 6.17-5.67 22.58-15.72 30.14-41.08 30.14-29.54 0-38.5-13.63-31.33-41.98C243.02 9.05 255.76 0 281.52 0c28.85 0 36.31 10.54 32.53 26.26-.6 2.19-1.29 4.58-2.19 7.16-4.87-.2-9.85-.2-14.72-.2s-9.95 0-14.72.2c.3-1.09.6-2.19.79-3.08ZM383.78 1.29c-.99 3.48-2.39 8.95-3.58 13.83-1.29 4.77-2.69 10.64-3.48 14.42-4.58-.1-9.05-.2-13.43-.2-5.27 21.58-10.15 41.78-11.14 46.65-4.38-.3-11.64-.3-16.81-.3s-12.24 0-16.81.3c1.49-4.87 6.66-25.07 12.04-46.65-4.38.1-8.95.1-13.53.2 1.09-3.78 2.49-9.65 3.78-14.42 1.19-4.87 2.59-10.34 3.28-13.83h59.68Z"})}),(0,i.jsx)("g",{fill:"#f38ba3",children:(0,i.jsx)("path",{d:"M396.39 63.34c-4.46-1.71-6.39-4.96-6.39-9.36 0-7.27 5.23-11.35 15.2-11.35 1.21 0 11.29.05 18.67.05-.05.88-.05 4.74 0 5.95-2.04 0-5.67-.22-9.09-.39v.33c4.3 1.21 5.95 3.25 5.95 7 0 5.4-4.46 9.09-15.53 9.09-2.31 0-4.3-.17-6-.55-.94 1.05-1.38 2.09-1.38 3.03 0 1.16.99 1.71 2.7 1.71 5.4 0 9.92-.44 13.5-.44 6.61 0 9.64 2.09 9.64 7.16 0 5.51-3.97 8.81-18.12 8.81-15.04 0-17.13-2.48-17.13-5.78 0-2.59 2.04-4.13 5.73-5.12v-.17c-2.48-.72-3.36-2.2-3.36-3.91 0-2.81 2.59-4.85 5.62-5.95v-.11Zm2.7 10.58c-.72 0-1.38 0-1.98-.05-1.05.72-1.65 1.43-1.65 2.31 0 2.15 1.98 3.14 10.25 3.14 7.82 0 10.91-1.16 10.91-3.58 0-1.6-1.1-2.26-4.19-2.26-4.02 0-9.58.44-13.33.44Zm14.93-19.94c0-3.47-2.53-5.95-8.7-5.95s-8.59 2.59-8.59 5.89 2.53 5.56 8.59 5.56 8.7-2.15 8.7-5.51ZM435.83 63.34c-4.46-1.71-6.39-4.96-6.39-9.36 0-7.27 5.23-11.35 15.2-11.35 1.21 0 11.29.05 18.67.05-.05.88-.05 4.74 0 5.95-2.04 0-5.67-.22-9.09-.39v.33c4.3 1.21 5.95 3.25 5.95 7 0 5.4-4.46 9.09-15.53 9.09-2.31 0-4.3-.17-6-.55-.94 1.05-1.38 2.09-1.38 3.03 0 1.16.99 1.71 2.7 1.71 5.4 0 9.92-.44 13.5-.44 6.61 0 9.64 2.09 9.64 7.16 0 5.51-3.97 8.81-18.12 8.81-15.04 0-17.13-2.48-17.13-5.78 0-2.59 2.04-4.13 5.73-5.12v-.17c-2.48-.72-3.36-2.2-3.36-3.91 0-2.81 2.59-4.85 5.62-5.95v-.11Zm2.7 10.58c-.72 0-1.38 0-1.98-.05-1.05.72-1.65 1.43-1.65 2.31 0 2.15 1.98 3.14 10.25 3.14 7.82 0 10.91-1.16 10.91-3.58 0-1.6-1.1-2.26-4.19-2.26-4.02 0-9.58.44-13.33.44Zm14.93-19.94c0-3.47-2.53-5.95-8.7-5.95s-8.59 2.59-8.59 5.89 2.53 5.56 8.59 5.56 8.7-2.15 8.7-5.51Z"})}),(0,i.jsx)("circle",{cx:"372.11",cy:"69.79",r:"6",fill:"#f38ba3"})]})}n(67294);var o=n(97836);let a=["react","query","advanced-javascript","modern-javascript","react-router","typescript","react-with-typescript","classic-react","react-query","redux","nextjs","linux","vscode-tricks","js","supabase","git","firebase-security","sveltekit","deno"];o.Gv,[...a];let u=["react","query"],l=["/c/react/getting-started","/c/react/why-react","/c/react/why-react-quiz","/c/react/renders","/c/react/renders-quiz","/c/react/password-toggle-challenge","/c/react/function-props-challenge","/c/react/imperative-vs-declarative","/c/react/imperative-vs-declarative-quiz","/c/react/effects","/c/react/effects-quiz","/c/react/search-filter-challenge","/c/react/usemediaquery-challenge","/c/react/concurrent-rendering","/c/react/concurrent-rendering-quiz","/c/react/marathon-tabs-challenge","/c/query/getting-started","/c/query/why-react-query","/c/query/why-react-query-quiz","/c/query/book-title-challenge","/c/query/book-reviews-challenge","/c/query/data-synchronization","/c/query/data-synchronization-quiz"],c={subscription:{name:"Subscription",productName:"fireship.dev subscription",stripeProductId:"production"===o.Gv?"prod_Ix5jwMczrDOOqW":"prod_IYSWRUwvgdi326",landingPage:"https://fireship.dev",hasPreviewLessons:!1,lessonBlacklist:[],order:-1,convertkitTagId:5084323,style:"NA"},react:{name:"React",productName:"react.gg",slogan:"The interactive way to master modern React.",stripeProductId:"react",landingPage:"https://react.gg",variations:["react-starter"],hasPreviewLessons:!0,lessonBlacklist:[],hasAchievements:!0,order:1,logo:s,convertkitTagId:5084314,reviewTweet:"\uD83D\uDD79ï¸ I just finished react.gg from @fireship_dev\n\n",shareTweet:"I just started \uD83D\uDD79ï¸ reactgg by @fireship_dev. Come join me!\n\n",style:"new"},"react-starter":{name:"React",productName:"react.gg Starter Pack",stripeProductId:"react-starter",landingPage:"https://react.gg",hasPreviewLessons:!0,lessonBlacklist:["rebuilding-usehooks","usebattery-challenge","useclickaway-challenge","usecontinuousretry-challenge","usecopytoclipboard-challenge","usecountdown-challenge","usecounter-challenge","usedebounce-challenge","usedefault-challenge","usedocumenttitle-challenge","useeventlistener-challenge","usefavicon-challenge","usefetch-challenge","usegeolocation-challenge","usehistorystate-challenge","usehover-challenge","useidle-challenge","useintersectionobserver-challenge","useinterval-challenge","useintervalwhen-challenge","useisclient-challenge","useisfirstrender-challenge","usekeypress-challenge","uselist-challenge","uselocalstorage-challenge","uselockbodyscroll-challenge","uselogger-challenge","uselongpress-challenge","usemap-challenge","usemeasure-challenge","usemouse-challenge","usenetworkstate-challenge","useobjectstate-challenge","useorientation-challenge","usepageleave-challenge","useprevious-challenge","usepreferredlanguage-challenge","usequeue-challenge","userandominterval-challenge","userendercount-challenge","userenderinfo-challenge","usescript-challenge","usesessionstorage-challenge","useset-challenge","usethrottle-challenge","usetimeout-challenge","usetoggle-challenge","usevisibilitychange-challenge","usewindowscroll-challenge","usewindowsize-challenge","react-interview-questions","concurrent-rendering","concurrent-rendering-quiz","marathon-tabs-challenge","filter-marathon-results-challenge","actions","actions-quiz","file-upload-challenge","useoptimistic","useoptimistic-quiz","file-progress-challenge","composing-boundaries","composing-boundaries-quiz","book-search-ch
5allenge","book-router-challenge","composing-the-network","composing-the-network-quiz"],hasAchievements:!0,isVariantOf:"react",order:1,logo:s,convertkitTagId:5084321,style:"new"},query:{name:"React Query",slogan:"Master React Query with mystifying ease with the official React Query course.",productName:"query.gg",stripeProductId:"query",landingPage:"https://query.gg",variations:["query-starter"],hasPreviewLessons:!0,lessonBlacklist:[],hasAchievements:!0,order:2,logo:function(e){let{width:r=200,height:n=50}=e;return(0,i.jsxs)("svg",{width:r,height:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 50",children:[(0,i.jsx)("title",{children:"query.gg"}),(0,i.jsx)("path",{d:"M37.22 44.72c.56-.39.96-.89 1.21-1.51.57 0 1 .35 1.3 1.04.09.2.14.5.14.89s-.13.84-.39 1.33c-.26.49-.61.93-1.04 1.3-.94.76-2.02 1.14-3.22 1.14s-2.13-.16-2.95-.49c-1.31-.51-2.78-1.26-4.41-2.24-1.62-.98-2.86-1.67-3.7-2.06-.84-.39-1.64-.71-2.38-.94-1.28-.4-2.63-.6-4.04-.6-2.77 0-4.38 1.74-4.82 5.22-.85 0-1.61-.32-2.27-.95-.6-.59-.9-1.27-.9-2.04 0-2.03 1.13-3.39 3.39-4.08-3.82-1.65-6.47-4.74-7.96-9.25-.5-1.47-.82-2.89-.97-4.27-.16-1.38-.42-2.39-.8-3.03s-.92-1.13-1.61-1.47c1.34-.63 2.14-1.94 2.38-3.91.24-1.97.78-3.82 1.63-5.53s1.93-3.19 3.25-4.41c2.77-2.57 6.1-3.85 10-3.85s7.32 1.19 9.95 3.57c2.74 2.47 4.34 5.94 4.82 10.39.2 1.86.99 3.1 2.37 3.73-1.35.67-2.13 1.95-2.34 3.86-.22 1.91-.57 3.63-1.07 5.17-.5 1.54-1.14 2.93-1.95 4.16-1.62 2.52-3.83 4.25-6.61 5.2.45.12.92.27 1.42.44l1.48.53c.73.28 1.41.52 2.04.72 1.31 0 2.27-.44 2.88-1.32.36.11.67.29.95.56.28.26.42.53.42.79s-.02.49-.07.67c.57-.11 1.04-.35 1.4-.72s.6-.79.71-1.25c.46.09.84.29 1.14.58.5.53.74 1 .74 1.41 0 .54-.03.94-.09 1.21zM9.41 35.05c.23-.09.35-.25.35-.49 0-.34-.16-.87-.49-1.6-.82-1.87-1.23-5.29-1.23-10.25 0-3.62.43-6.7 1.3-9.23.11-.39.16-.68.16-.88s-.1-.33-.3-.39c-.73.91-1.25 1.82-1.55 2.71-.57 1.64-1.03 3.86-1.37 6.66-.05.4-.5.78-1.37 1.14.87.39 1.32.78 1.37 1.18.56 4.79 1.27 7.99 2.13 9.6.29.57.63 1.09 1 1.55zm7-12.34c-1.7.82-2.55 2.16-2.55 4.01v6.89c0 2.52 1.04 4.14 3.13 4.85.62.22 1.29.32 2.02.32s1.4-.11 2.01-.32c.61-.22 1.14-.54 1.59-.97.93-.9 1.39-2.19 1.39-3.87v-6.89c0-1.86-.83-3.19-2.51-4.01 1.67-.77 2.51-2.02 2.51-3.73v-5.54c0-1.72-.5-3.05-1.51-4.01-.94-.88-2.11-1.32-3.5-1.32-2.37 0-3.94.99-4.73 2.97-.26.67-.39 1.45-.39 2.37V19c0 1.75.85 2.99 2.55 3.73zm9.72-10.51c.43 1.3.65 3.53.65 6.7 0 1.79-.08 2.78-.23 2.95-.15.17-.31.31-.46.42-.28.19-.58.33-.9.44.93.42 1.42.82 1.46 1.21.15 1.52.23 2.83.23 3.93s-.02 1.99-.05 2.67c-.03.67-.08 1.29-.14 1.87-.12 1.22-.28 2.11-.46 2.67 1.21-.37 1.88-2.16 2.02-5.36.08-1.79.12-3.79.12-6s-.02-3.86-.07-4.96-.12-2.01-.21-2.73c-.19-1.64-.57-2.78-1.16-3.41-.17-.19-.43-.32-.79-.39zm41.8 21.46c.28.68.84 1.33 1.69 1.95-.54.22-1.22.73-2.03 1.53-.81.8-1.72 1.52-2.73 2.16-1.01.63-2 1.14-2.99 1.53-1.79.71-3.73 1.07-5.81 1.07s-3.97-.25-5.66-.74-3.1-1.17-4.21-2.02c-2.18-1.69-3.27-3.93-3.27-6.73v-6.42c0-.71-.15-1.24-.44-1.58-.46-.57-1.26-1.14-2.39-1.69 1.05-.48 1.73-.9 2.04-1.28.53-.6.79-1.28.79-2.04V9.6c-.53-1.19-1.48-1.79-2.85-1.79-.53 0-.96.13-1.3.39-.17-.23-.26-.5-.26-.8s.09-.58.27-.85c.18-.26.42-.49.73-.67.71-.43 1.53-.65 2.45-.65s1.77.26 2.54.77c.8-.51 1.7-.77 2.69-.77s1.89.26 2.69.77c.77-.51 1.5-.77 2.18-.77s1.24.06 1.67.17c.43.12.81.27 1.14.48.67.4 1 .9 1 1.51 0 .31-.09.58-.26.81-.34-.26-.77-.39-1.3-.39-1.38 0-2.33.6-2.85 1.79v9.79c0 .76.16 1.32.49 1.69.51.6 1.29 1.14 2.34 1.62-1.13.56-1.85 1.01-2.16 1.37-.45.56-.67 1.19-.67 1.9v6.47c0 1.87.7 3.41 2.11 4.62 1.3 1.1 2.78 1.65 4.43 1.65s3.27-.53 4.62-1.6c1.38-1.08 2.06-2.4 2.06-3.94v-7.4c0-.68-.15-1.18-.44-1.51-.45-.48-1.25-1-2.39-1.55 1.07-.53 1.75-.95 2.06-1.28.51-.54.77-1.14.77-1.81V9.3c-.67-.99-1.48-1.48-2.44-1.48s-1.66.13-2.11.39c-.17-.28-.25-.66-.25-1.15s.24-.91.72-1.28c.48-.36 1.11-.55 1.88-.55s1.46.2 2.06.6c.54-.4 1.16-.6 1.87-.6s1.33.21 1.87.63c.6-.42 1.27-.63 2-.63s1.31.19 1.75.57c.44.38.66.82.66 1.31s-.08.86-.23 1.09c-.45-.26-1.16-.39-2.15-.39s-1.77.5-2.38 1.48v10.32c0 .68.15 1.18.44 1.48.46.48 1.34 1.01 2.62 1.6-1.36.67-2.17 1.13-2.44 1.39-.42.42-.63.97-.63 1.67v7.89zm-21.57 1.39c.14-.83.21-3.51.21-8.04s0-7.29-.01-8.3-.02-1.83-.04-2.45c-.05-1.82-.22-2.93-.52-3.31-.3-.38-.58-.63-.85-.75 0 5.38-.09 8.44-.28 9.18-.22.62-.74 1.06-1.58 1.32.93.32 1.45.72 1.58 1.18.19.74.28 2.34.28 4.8s.04 3.91.1 4.36c.07.45.17.81.29 1.09.2.5.47.8.81.9zm37.23 6.61c-1.02 0-1.93-.25-2.71-.74-.79.49-1.52.74-2.19.74s-1.23-.06-1.66-.17c-.43-.12-.81-.27-1.14-.48-.67-.4-1-.9-1-1.51 0-.31.08-.58.26-.81.34.26.77.39 1.3.39 1.38 0 2.33-.59 2.85-1.76V25.98c0-.71-.15-1.24-.44-1.58-.46-.57-1.26-1.14-2.39-1.69 1.05-.48 1.73-.9 2.04-1.28.53-.6.79-1.28.79-2.04V9.6c-.53-1.19-1.48-1.79-2.85-1.79-.53 0-.96.13-1.3.39-.17-.23-.26-.5-.26-.8s.09-.58.27-.85c.18-.26.42-.49.73-.67.71-.43 1.53-.65 2.45-.65s1.77.26 2.54.77c.8-.51 1.72-.77 2.76-.77s1.98.3 2.83.9c1.64-.6 3.53-.9 5.68-.9 1.59 0 2.95.15 4.08.46l2.06.56c.25.06.49.09.72.09.43 0 .65-.31.65-.93 0-.15-.05-.42-.16-.79.43-.08.98-.12 1.65-.12s1.23.22 1.69.66c.46.44.7 1.07.7 1.9s-.15 1.43-.44 1.82c.42.62.63 1.37.63 2.26s-.3 1.64-.9 2.24c.19.46.28.92.28 1.36s-.07.84-.22 1.21c-.15.36-.33.67-.54.92-.43.45-.87.67-1.32.67-.65 0-1.24-.14-1.76-.42.19-.37.28-.92.28-1.65 0-1.7-.42-3.19-1.28-4.48-1.16-1.76-2.9-2.64-5.22-2.64-1.17 0-2.24.29-3.19.86-.95.57-1.62 1.39-2.01 2.46v8.98c.54.34 1.05.51 1.52.51s.83 0 1.07-.02c.24-.02.48-.05.73-.09.63-.09 1.12-.22 1.46-.37.65-.31.97-1.07.97-2.27 0-.68-.16-1.21-.49-1.58.31-.22.7-.32 1.16-.32 1.04 0 1.79.42 2.25 1.25.17.29.25.62.25.97s-.09.8-.28 1.32c.63.73.95 1.59.95 2.59s-.32 1.86-.95 2.59c.19.53.28 1 .28 1.43s-.08.83-.25 1.22c-.17.39-.38.7-.63.93-.48.43-1.02.65-1.62.65-.43 0-.82-.12-1.16-.37.33-.54.49-1.17.49-1.9 0-1.44-.39-2.33-1.18-2.67-.7-.28-1.49-.42-2.39-.42s-1.62.16-2.18.49v11.6c.9 1.58 2.63 2.37 5.2 2.37 2.91 0 4.89-.9 5.94-2.69 1.22-2.06 1.83-4.26 1.83-6.61 0-.68-.06-1.21-.19-1.58.39-.39.79-.58 1.21-.58s.73.06.95.17c.22.12.41.26.58.43.37.42.56.84.56 1.28l-.14 1.14c0 .29.08.53.23.72.31.32.46.63.46.92s-.09.63-.28 1.03c.36.2.68.5.96.89.29.39.43.8.43 1.22 0 .88-.37 1.67-1.11 2.37.33.46.49 1.13.49 2.01s-.25 1.62-.75 2.23c-.5.61-1.16.92-1.96.92-.43 0-.88-.05-1.34-.14.06-.34.09-.68.09-1.02 0-.71-.33-1.07-.97-1.07-.73 0-1.45.15-2.18.44
5-1.72.7-3.67 1.04-5.86 1.04s-4.05-.29-5.58-.86c-.8.57-1.74.86-2.81.86zm-2.06-6.61c.77-.29 1.2-1.31 1.28-3.04.09-1.73.14-4.13.14-7.19s0-5.1-.01-6.11-.02-1.83-.04-2.45c-.05-1.82-.22-2.93-.52-3.31-.3-.38-.58-.63-.85-.75 0 5.38-.09 8.44-.28 9.18-.22.62-.74 1.06-1.58 1.32.93.32 1.45.72 1.58 1.18.19.74.28 3.46.28 8.14v3.02zm5.84-.23s0 .09.02.12l-.02-.12zm32.31 6.1c-.79.49-1.69.74-2.69.74s-1.9-.25-2.69-.74c-.79.49-1.52.74-2.19.74s-1.23-.06-1.66-.17c-.43-.12-.81-.27-1.14-.48-.67-.4-1-.9-1-1.51 0-.31.08-.58.26-.81.34.26.77.39 1.3.39 1.38 0 2.33-.59 2.85-1.76V25.98c0-.71-.15-1.24-.44-1.58-.46-.57-1.26-1.14-2.39-1.69 1.05-.48 1.73-.9 2.04-1.28.53-.6.79-1.28.79-2.04V9.6c-.53-1.19-1.48-1.79-2.85-1.79-.53 0-.96.13-1.3.39-.17-.23-.26-.5-.26-.8s.09-.58.27-.85c.18-.26.42-.49.73-.67.71-.43 1.53-.65 2.45-.65s1.77.26 2.54.77c.8-.51 1.7-.77 2.69-.77s1.89.26 2.69.77c1.75-.66 3.68-1 5.81-1s3.91.19 5.35.58c1.44.39 2.67.94 3.71 1.65 2.09 1.44 3.39 3.44 3.9 6.01.2 1.14.94 2.01 2.2 2.6-1.21.68-2 1.76-2.37 3.25-.76 3.06-2.65 4.97-5.68 5.73 1.56.42 2.84 1.28 3.83 2.57 1.02 1.35 1.53 2.93 1.53 4.75v2.32c0 2.23.72 3.66 2.16 4.31.43.2.91.3 1.42.3s.94-.13 1.28-.39c.17.23.26.5.26.8s-.08.58-.23.85c-.15.26-.36.49-.63.67-.56.43-1.21.65-1.95.65s-1.47-.2-2.18-.6c-1.3.71-2.51.78-3.64.21-.43.26-.89.39-1.37.39s-.94-.11-1.38-.32-.83-.57-1.17-1.07c-.73-1.07-1.09-2.71-1.09-4.92v-1.72c0-3.57-1.02-5.89-3.06-6.96-.68-.36-1.48-.53-2.39-.53h-2.71v11.3c.42 1.1 1.21 1.65 2.39 1.65.53 0 .96-.13 1.3-.39.17.23.26.57.26 1.02s-.24.89-.73 1.31c-.49.42-1.22.64-2.19.64s-1.84-.25-2.6-.74zm-4.73-5.87c.77-.29 1.2-1.31 1.28-3.04.09-1.73.14-4.13.14-7.19s0-5.1-.01-6.11-.02-1.83-.04-2.45c-.05-1.82-.22-2.93-.52-3.31-.3-.38-.58-.63-.85-.75 0 5.38-.09 8.44-.28 9.18-.22.62-.74 1.06-1.58 1.32.93.32 1.45.72 1.58 1.18.19.74.28 3.46.28 8.14v3.02zM125.71 8.1c-2.97 0-4.45 1.15-4.45 3.46v9.49c0 .8.32 1.35.95 1.62.6.26 1.5.39 2.68.39s2.01-.07 2.48-.2c.47-.13.88-.36 1.22-.68.7-.66 1.04-1.78 1.04-3.34v-6.77c0-1.93-.8-3.17-2.41-3.71-.48-.17-.98-.26-1.51-.26zm5.24 20.6c.62.7.93 1.55.93 2.55v3.06c0 2.57.51 3.94 1.53 4.11.28.05.55.04.81-.02-.56-.87-.83-1.78-.83-2.74v-3.25c0-1.22-.17-2.09-.51-2.6-.59-.87-1.23-1.24-1.92-1.11zm.23-19.11c.48 1.08.72 2.81.72 5.2 0 4.1-.19 6.55-.58 7.35.85-.17 1.46-1.31 1.83-3.41l.19-.95c.17-1 .67-1.65 1.48-1.93-.6-.2-.99-.44-1.16-.72-.19-.32-.35-.88-.5-1.66-.15-.78-.3-1.41-.45-1.89-.16-.48-.32-.86-.49-1.14-.29-.5-.64-.78-1.04-.86zm30.43 31.33c-.79.49-1.69.74-2.69.74s-1.9-.25-2.69-.74c-.79.49-1.52.74-2.19.74s-1.24-.06-1.69-.17c-.46-.12-.86-.27-1.22-.48-.74-.4-1.11-.9-1.11-1.51 0-.31.08-.58.25-.81.34.26.79.39 1.36.39s1.14-.15 1.72-.44c.58-.29 1.02-.75 1.31-1.37V32.7c0-.71-.14-1.24-.42-1.58-.5-.6-1.3-1.18-2.41-1.72 1.04-.48 1.72-.9 2.04-1.25.53-.6.79-1.28.79-2.04v-.83l-9.32-16.14c-.9-.8-1.69-1.21-2.39-1.21s-1.24.13-1.65.39c-.17-.12-.25-.36-.25-.7s.05-.65.16-.94c.11-.29.28-.54.51-.75.5-.46 1.21-.7 2.16-.7s1.78.27 2.5.81c.77-.54 1.69-.81 2.75-.81s1.93.26 2.61.79c.82-.53 1.58-.79 2.3-.79s1.28.05 1.72.15c.43.1.81.25 1.14.45.7.4 1.06.96 1.09 1.67 0 .43-.09.7-.26.81-.42-.26-.83-.39-1.25-.39-.9 0-1.62.16-2.18.49l6.94 13.31 6.59-13.34c-.63-.39-1.37-.58-2.19-.58s-1.46.13-1.91.39c-.15-.23-.23-.6-.23-1.09s.21-.93.63-1.31c.42-.38 1.01-.57 1.79-.57s1.44.2 1.99.6c.5-.4 1.1-.6 1.81-.6s1.31.17 1.79.51c.68-.34 1.36-.51 2.04-.51s1.23.22 1.64.66c.41.44.61 1.01.61 1.7 0 .36-.08.6-.25.72-.4-.26-.9-.39-1.48-.39-1.02 0-1.92.28-2.71.84l-8.12 16.07v1.28c0 .76.16 1.32.49 1.69.53.59 1.31 1.12 2.34 1.6-1.11.54-1.82 1-2.13 1.37-.46.57-.7 1.21-.7 1.93v4.57c.28.62.71 1.08 1.29 1.37.58.29 1.16.44 1.73.44s1.03-.13 1.37-.39c.17.23.26.5.26.8s-.1.58-.3.85c-.2.26-.47.49-.81.67-.77.43-1.62.65-2.54.65s-1.77-.25-2.56-.74zm-4.73-5.87c.82-.31 1.27-1.52 1.35-3.64.01-.65.02-1.31.02-2v-3.87c0-.74-.14-1.35-.42-1.83l-4.75-8.6c-.67-1.16-1.14-1.88-1.44-2.16-.46-.43-1.02-.68-1.67-.74l6.96 12.9v1.14c0 .91-.06 1.54-.19 1.88-.19.59-.76 1.03-1.72 1.32 1.04.39 1.62.86 1.76 1.42.11.43.16.94.16 1.52s-.01 1.09-.04 1.52c-.02.43-.04.82-.04 1.16z",fill:"currentcolor"}),(0,i.jsx)("rect",{width:22.44,height:15.36,x:176.84,y:17.23,fill:"none",stroke:"currentcolor",strokeLinejoin:"round",strokeWidth:.42,rx:3.9,ry:3.9}),(0,i.jsxs)("g",{fill:"currentcolor",children:[(0,i.jsx)("path",{d:"M181.37 26.53c.15-.1.25-.17.29-.23s.07-.11.1-.16c.07-.12.16-.22.29-.29.13-.07.27-.1.41-.1.31 0 .53.13.67.39.11.2.24.34.39.4-.04.02-.08.05-.12.07a.36.36 0 00-.1.07c-.06.05-.13.13-.19.24s-.15.2-.27.28c-.12.08-.25.12-.38.12s-.28-.04-.41-.12a.811.811 0 01-.3-.31c-.08-.14-.15-.22-.22-.26s-.12-.07-.17-.09zm.91.25s-.03-.06-.04-.1c0-.04-.01-.11-.01-.22s.05-.24.16-.4c-.06 0-.11.01-.16.04-.05.02-.09.06-.12.1-.04.05-.06.08-.08.11-.01.03-.03.05-.06.08-.05.08-.09.12-.13.14.04.02.08.06.12.12.04.05.08.11.13.17.07.09.17.13.29.13-.02-.03-.03-.06-.05-.08-.02-.03-.04-.05-.05-.08zm2.44.59a.88.88 0 01-.3-.68c0-.4.24-.73.71-.99-.31-.22-.54-.56-.68-1.03-.05-.15-.09-.24
5-.14-.3-.07-.08-.19-.16-.35-.25a.7.7 0 00.31-.24c.07-.1.14-.23.19-.39s.13-.31.23-.46.22-.27.38-.38c.34-.24.77-.35 1.3-.35.17 0 .35.02.53.05.04-.3.17-.55.4-.76.22-.21.49-.32.79-.32.35 0 .65.09.89.28.13.1.26.14.39.11.01.22-.07.36-.25.42-.03.37-.19.56-.48.56-.12 0-.19 0-.21-.02.04-.04.06-.08.06-.14s-.02-.1-.07-.15c-.06.11-.19.16-.39.16-.11 0-.2-.05-.26-.16.1-.03.19-.08.25-.15.06-.07.09-.13.09-.19 0-.15-.08-.23-.24-.23-.31 0-.49.24-.54.72.5.21.82.55.96 1.01.09.31.26.52.5.63-.21.11-.36.23-.42.36a.69.69 0 00-.07.19c-.15.47-.38.81-.7 1.03-.32.22-.72.33-1.22.33-.32 0-.59-.04-.82-.12-.09.06-.14.12-.14.19s.01.13.04.18c.03.05.08.09.15.13.14.07.41.14.8.2.18.04.36-.08.55-.35.01.14.04.25.09.31.05.07.11.11.17.12.76.11 1.25.36 1.47.74.08.13.12.29.12.5s-.06.4-.19.59c-.13.19-.3.35-.52.49-.46.27-1.01.41-1.68.41-.78 0-1.38-.13-1.79-.38-.35-.22-.53-.51-.53-.85 0-.23.12-.45.35-.65.08-.07.16-.12.26-.17zm.4-2.11c.06-.04.08-.09.08-.14 0-.07 0-.14-.03-.21a2.81 2.81 0 010-1.55c.02-.07.03-.12.03-.16v-.1s-.01-.05-.03-.06c-.11.14-.19.29-.25.47-.05.18-.09.33-.12.47-.01.04-.09.09-.23.16.15.07.22.12.23.16l.08.35c.07.29.15.5.23.62zm.01 2.37c-.2.08-.29.24-.29.48 0 .19.14.36.42.51.32.17.72.26 1.22.26.61 0 1.01-.11 1.2-.32.05-.06.08-.12.08-.18s-.03-.12-.09-.17a.674.674 0 00-.24-.12c-.15-.05-.37-.09-.69-.13-.15-.02-.34.09-.56.33 0-.15-.03-.27-.08-.33-.05-.07-.1-.11-.15-.11-.32-.04-.59-.11-.82-.21zm-.22-.91s-.04.06-.04.11c.01.3.43.52 1.27.67.1.02.16.13.21.31.01-.06.07-.11.16-.15.09-.04.16-.06.19-.06.41.05.69.1.84.14.26.08.45.2.56.35.03-.04.05-.09.05-.15s-.03-.12-.09-.18a.695.695 0 00-.3-.16c-.24-.08-.56-.15-.96-.2-.4-.05-.69-.09-.85-.12s-.31-.08-.45-.13c-.3-.12-.5-.26-.6-.43zm1.08-1.44c.06.09.12.14.18.16.06.02.13.04.21.04s.15-.01.21-.04a.29.29 0 00.15-.12c.08-.11.12-.3.12-.57v-1.14c0-.27-.03-.44-.09-.53s-.12-.14-.18-.16c-.06-.02-.13-.04-.21-.04s-.15.01-.21.04-.11.06-.15.12c-.08.12-.12.31-.12.57v1.14c0 .27.03.44.09.53zm1.28-.03c.13-.04.2-.18.22-.41.02-.21.03-.45.03-.72 0-.41-.01-.67-.03-.79-.03-.15-.1-.25-.21-.3v2.22z"}),(0,i.jsx)("path",{d:"M189.77 27.37a.88.88 0 01-.3-.68c0-.4.24-.73.71-.99-.31-.22-.54-.56-.68-1.03-.05-.15-.09-.24-.14-.3-.07-.08-.19-.16-.35-.25a.7.7 0 00.31-.24c.07-.1.14-.23.19-.39s.13-.31.23-.46.22-.27.38-.38c.34-.24.77-.35 1.3-.35.17 0 .35.02.53.05.04-.3.17-.55.4-.76.22-.21.49-.32.79-.32.35 0 .65.09.89.28.13.1.26.14.39.11.01.22-.07.36-.25.42-.03.37-.19.56-.48.56-.12 0-.19 0-.21-.02.04-.04.06-.08.06-.14s-.02-.1-.07-.15c-.06.11-.19.16-.39.16-.11 0-.2-.05-.26-.16.1-.03.19-.08.25-.15.06-.07.09-.13.09-.19 0-.15-.08-.23-.24-.23-.31 0-.49.24-.54.72.5.21.82.55.96 1.01.09.31.26.52.5.63-.21.11-.36.23-.42.36a.69.69 0 00-.07.19c-.15.47-.38.81-.7 1.03-.32.22-.72.33-1.22.33-.32 0-.59-.04-.82-.12-.09.06-.14.12-.14.19s.01.13.04.18c.03.05.08.09.15.13.14.07.41.14.8.2.18.04.36-.08.55-.35.01.14.04.25.09.31.05.07.11.11.17.12.76.11 1.25.36 1.47.74.08.13.12.29.12.5s-.06.4-.19.59c-.13.19-.3.35-.52.49-.46.27-1.01.41-1.68.41-.78 0-1.38-.13-1.79-.38-.35-.22-.53-.51-.53-.85 0-.23.12-.45.35-.65.08-.07.16-.
512.26-.17zm.4-2.11c.06-.04.08-.09.08-.14 0-.07 0-.14-.03-.21a2.81 2.81 0 010-1.55c.02-.07.03-.12.03-.16v-.1s-.01-.05-.03-.06c-.11.14-.19.29-.25.47-.05.18-.09.33-.12.47-.01.04-.09.09-.23.16.15.07.22.12.23.16l.08.35c.07.29.15.5.23.62zm.01 2.37c-.2.08-.29.24-.29.48 0 .19.14.36.42.51.32.17.72.26 1.22.26.61 0 1.01-.11 1.2-.32.05-.06.08-.12.08-.18s-.03-.12-.09-.17a.674.674 0 00-.24-.12c-.15-.05-.37-.09-.69-.13-.15-.02-.34.09-.56.33 0-.15-.03-.27-.08-.33-.05-.07-.1-.11-.15-.11-.32-.04-.59-.11-.82-.21zm-.22-.91s-.04.06-.04.11c.01.3.43.52 1.27.67.1.02.16.13.21.31.01-.06.07-.11.16-.15.09-.04.16-.06.19-.06.41.05.69.1.84.14.26.08.45.2.56.35.03-.04.05-.09.05-.15s-.03-.12-.09-.18a.695.695 0 00-.3-.16c-.24-.08-.56-.15-.96-.2-.4-.05-.69-.09-.85-.12s-.31-.08-.45-.13c-.3-.12-.5-.26-.6-.43zm1.08-1.44c.06.09.12.14.18.16.06.02.13.04.21.04s.15-.01.21-.04a.29.29 0 00.15-.12c.08-.11.12-.3.12-.57v-1.14c0-.27-.03-.44-.09-.53s-.12-.14-.18-.16c-.06-.02-.13-.04-.21-.04s-.15.01-.21.04-.11.06-.15.12c-.08.12-.12.31-.12.57v1.14c0 .27.03.44.09.53zm1.28-.03c.13-.04.2-.18.22-.41.02-.21.03-.45.03-.72 0-.41-.01-.67-.03-.79-.03-.15-.1-.25-.21-.3v2.22z"})]})]})},convertkitTagId:5084315,reviewTweet:"\uD83D\uDD2E I just finished query.gg from @fireship_dev\n\n",shareTweet:"I just started \uD83D\uDD2E querygg by @fireship_dev and @tkdodo. Come join me!\n\n",style:"new"},"query-starter":{name:"React Query",productName:"query.gg Starter Pack",stripeProductId:"query-starter",landingPage:"https://query.gg",hasPreviewLessons:!0,lessonBlacklist:["customizing-defaults","customizing-defaults-quiz","managing-query-keys","managing-query-keys-quiz","performance-optimizations","performance-optimizations-quiz","error-handling","error-handling-quiz","validating-query-data","validating-query-data-quiz","offline-support","offline-support-quiz","persisting-queries-mutations","persisting-queries-mutations-quiz","persisting-mutations","persisting-mutations-quiz","building-an-adapter","building-an-adapter-quiz","testing","testing-quiz","server-side-rendering","suspense","streaming-ssr","websockets","customizing-defaults-challenge","managing-query-keys-challenge","error-handling-challenge","validating-query-data-challenge","optimized-book-search-ch
5allenge"],hasAchievements:!0,isVariantOf:"query",order:2,convertkitTagId:5084320,style:"new"},"react-query":{name:"React Query",productName:"React Query",stripeProductId:"production"===o.Gv?"prod_LMYAmNckk0Da2l":"prod_LGClEdJ3WAPLry",landingPage:"https://fireship.dev",hasPreviewLessons:!1,lessonBlacklist:[],order:2,hideFromNavbar:!0,convertkitTagId:5084324,style:"old"},"advanced-javascript":{name:"Advanced JavaScript",productName:"Advanced JavaScript",stripeProductId:"advanced-javascript",landingPage:"https://fireship.dev/advanced-javascript",slogan:"Take your JavaScript skills to the next level and master the mother language.",hasPreviewLessons:!1,lessonBlacklist:[],order:3,convertkitTagId:5084325,style:"old"},"modern-javascript":{name:"Modern JavaScript",productName:"Modern JavaScript",stripeProductId:"modern-javascript",landingPage:"https://fireship.dev/modern-javascript",hasPreviewLessons:!1,lessonBlacklist:[],order:4,convertkitTagId:5084326,slogan:"Lay a solid foundation for your JavaScript knowledge using the latest features.",style:"old"},"react-router":{name:"React Router",productName:"React Router",stripeProductId:"react-router",landingPage:"https://fireship.dev/react-router",hasPreviewLessons:!1,lessonBlacklist:[],order:5,convertkitTagId:5084330,slogan:"Weâll get you off to the races building complex apps with React Router.",style:"old"},typescript:{name:"TypeScript",productName:"TypeScript",stripeProductId:"typescript",landingPage:"https://fireship.dev/typescript",slogan:"Our course is the complete guide that takes you from zero to TypeScript hero.",hasPreviewLessons:!1,lessonBlacklist:[],order:6,convertkitTagId:5084331,style:"old"},"react-with-typescript":{name:"React with TypeScript",productName:"React + TypeScript",stripeProductId:"react-with-typescript",landingPage:"https://fireship.dev/react-with-typescript",slogan:"Feel comfortable working on any React app by adding TypeScript to your toolkit.",hasPreviewLessons:!1,lessonBlacklist:[],order:7,convertkitTagId:5084335,style:"old"},"classic-react":{name:"Classic React",productName:"Classic React",stripeProductId:"classic-react",landingPage:"https://fireship.dev/classic-react",hasPreviewLessons:!1,lessonBlacklist:[],order:8,convertkitTagId:5084336,style:"old",hideFromNavbar:!0},redux:{name:"Redux",productName:"Redux",stripeProductId:"redux",landingPage:"https://fireship.dev",hasPreviewLessons:!1,lessonBlacklist:[],order:9,convertkitTagId:5084337,style:"old",hideFromNavbar:!0},deno:{name:"Deno",productName:"Deno",stripeProductId:"deno",landingPage:"https://fireship.dev/deno",hasPreviewLessons:!1,lessonBlacklist:[],order:10,convertkitTagId:0,slogan:"Deno is a modern runtime for JS and TS to build secure and scalable applications.",style:"snack"}
5,nextjs:{name:"Next.js",productName:"Next.js",stripeProductId:"nextjs",landingPage:"https://fireship.dev/nextjs",hasPreviewLessons:!1,lessonBlacklist:[],order:11,convertkitTagId:0,slogan:"Learn the fundamentals of Next.js 15 and the App Router.",style:"snack"},sveltekit:{name:"Sveltekit",productName:"Sveltekit",stripeProductId:"sveltekit",landingPage:"https://fireship.dev/sveltekit",hasPreviewLessons:!1,lessonBlacklist:[],order:12,convertkitTagId:0,slogan:"Learn how to build awesome full-stack apps with SvelteKit",style:"snack"},linux:{name:"Linux",productName:"Linux",stripeProductId:"linux",landingPage:"https://fireship.dev/linux",hasPreviewLessons:!1,lessonBlacklist:[],order:13,convertkitTagId:0,slogan:"Learn Linux and start self-hosting your apps like an open-source freedom fighter",style:"snack"},"vscode-tricks":{name:"VSCode Tricks",productName:"VSCode Tricks",stripeProductId:"vscode-tricks",landingPage:"https://fireship.dev/vscode-tricks",hasPreviewLessons:!1,lessonBlacklist:[],order:14,convertkitTagId:0,slogan:"Write code faster with VS Code tips, tricks, and best practices",style:"snack"},js:{name:"JavaScript",productName:"JavaScript",stripeProductId:"js",landingPage:"https://fireship.dev/js",hasPreviewLessons:!1,lessonBlacklist:[],order:15,convertkitTagId:0,slogan:"Learn how to build real-world applications with JavaScript",style:"snack"},supabase:{name:"Supabase",productName:"Supabase",stripeProductId:"supabase",landingPage:"https://fireship.dev/supabase",hasPreviewLessons:!1,lessonBlacklist:[],order:16,convertkitTagId:0,slogan:"Build and deploy a full-stack, production-ready web app with Supabase, React, and Postgres",style:"snack"},git:{name:"Git",productName:"Git",stripeProductId:"git",landingPage:"https://fireship.dev/git",hasPreviewLessons:!1,lessonBlacklist:[],order:17,convertkitTagId:0,slogan:"Master the fundamentals of Git and GitHub from the ground up",style:"snack"},"firebase-security":{name:"Firebase Security",productName:"Firebase Security",stripeProductId:"firebase-security",landingPage:"https://fireship.dev/firebase-security",hasPreviewLessons:!1,lessonBlacklist:[],order:18,convertkitTagId:0,slogan:"Secure your Firebase app by mastering security rules",style:"snack"}},h=e=>c[e],d=(e,r)=>{if(Array.isArray(r)){if(r.includes(e))return!0;let n=h(e).variations||[];return 0!==n.length&&n.some(e=>null==r?void 0:r.includes(e))}return!1},f=e=>{let{lessonId:r,courseId:n,currentCourseAccess:i=[]}=e;if(l.includes("/c/".concat(n,"/").concat(r)))return!1;let s=h(n);if(null==s?void 0:s.lessonBlacklist.includes(r))return!0;if(i.includes(n))return!1;if(null==s?void 0:s.variations){for(let e of s.variations)if(i.includes(e))return h(e).lessonBlacklist.includes(r)}return!0},p=e=>{let r=h(e);return(null==r?void 0:r.style)==="snack"},m=()=>a.map(e=>c[e]).filter(e=>"new"===e.style||"old"===e.style).filter(e=>void 0===e.isVariantOf).filter(e=>!0!==e.hideFromNavbar).sort((e,r)=>e.order-r.order),y=()=>a.map(e=>c[e]).filter(e=>"snack"===e.style).sort((e,r)=>e.order-r.order)},51886:function(e,r,n){"use strict";n.d(r,{B:function(){return c},GV:function(){return o},LV:function(){return l},T1:function(){return a},ng:function(){return s}});var i=n(97836);let s=312702129964814,o=631271372233414,a="oeora",u="production"===i.Gv,l=()=>{u&&window.fbq("track","PageView")},c=async function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u?("Purchase"===e&&window.twq("event","tw-oeora-ogwo4",r),window.fbq("track",e,r)):console.log("[DEV] Send pixel event:",{name:e,options:r})}},50423:function(e,r,n){"use strict";n.d(r,{T4:function(){return o},tw:function(){return a},vN:function(){return u}});var i=n(97836);let s=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:0});function o(e){return s.format(e)}async function a(e){let{code:r,quantity:n=1,productId:s,ip:o,countryCode:a,ppp:u}=e;try{let e=await fetch("".concat(i.FH,"api/calculate-price"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({productId:s,quantity:n,code:r,ip:o,countryCode:a,ppp:u})});if(!e.ok)throw Error("Error fetching price");return e.json()}catch(e){return console.warn("Error fetching price",e),{productId:s,quantity:n,fullPricePerUnit:495,discounts:{bulk:null,ppp:null,code:null,user:null}}}}function u(e,r){let{ppp:n,code:i,bulk:s,user:o}=e.discounts,a=r&&(null==n?void 0:n.percentOff)||0,u=(null==i?void 0:i.percentOff)||0,l=(null==s?void 0:s.percentOff)||0,c=(null==o?void 0:o.percentOff)||0,h=Math.max(a,u,l,c);return 0===h?null:h===a&&(h===u||h===l||h===c)?u>=l&&u>=c?i:l>=u&&l>=c?s:o:h===a?n:h===u?i:h===l?s:o}},8715:function(){},70855:function(){},19311:function(){},77663:function(e){!function(){var r={229:function(e){var r,n,i,s=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function u(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(n){try{return r.call(null,e,0)}catch(n){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l=[],c=!1,h=-1;function d(){c&&i&&(c=!1,i.length?l=i.concat(l):h=-1,l.length&&f())}function f(){if(!c){var e=u(d);c=!0;for(var r=l.length;r;){for(i=l,l=[];++h<r;)i&&i[h].run();h=-1,r=l.length}i=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(r){try{return n.call(null,e)}catch(r){return n.call(this,e)}}}(e)}}function p(e,r){this.fun=e,this.array=r}function m(){}s.nextTick=function(e){var r=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)r[n-1]=arguments[n];l.push(new p(e,r)),1!==l.length||c||u(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=m,s.addListener=m,s.once=m,s.off=m,s.removeListener=m,s.removeAllListeners=m,s.emit=m,s.prependListener=m,s.prependOnceListener=m,s.listeners=function(e){return[]},s.binding=function(e){throw Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(e){throw Error("process.chdir is not supported")},s.umask=function(){return 0}}},n={};function i(e){var s=n[e];if(void 0!==s)return s.exports;var o=n[e]={exports:{}},a=!0;try{r[e](o,o.exports,i),a=!1}finally{a&&delete n[e]}return o.exports}i.ab="//";var s=i(229);e.exports=s}()},41664:function(e,r,n){e.exports=n(89577)},39332:function(e,r,n){e.exports=n(70827)},11163:function(e,r,n){e.exports=n(9090)},4298:function(e,r,n){e.exports=n(32892)},66474:function(e,r,n){"use strict";n.d(r,{j:function(){return o}});var i=n(7506),s=n(24139),o=new class extends i.l{#w;#P;#S;constructor(){super(),this.#S=e=>{if(!s.sk&&window.addEventListener){let r=()=>e();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}}}onSubscribe(){this.#P||this.setEventListener(this.#S)}onUnsubscribe(){this.hasListeners()||(this.#P?.(),this.#P=void 0)}setEventListener(e){this.#S=e,this.#P?.(),this.#P=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#w!==e&&(this.#w=e,this.onFocus())}
5onFocus(){this.listeners.forEach(e=>{e()})}isFocused(){return"boolean"==typeof this.#w?this.#w:globalThis.document?.visibilityState!=="hidden"}}},59289:function(e,r,n){"use strict";n.d(r,{R:function(){return u},m:function(){return a}});var i=n(27037),s=n(48907),o=n(72008),a=class extends s.F{constructor(e){super(),this.mutationId=e.mutationId,this.#e=e.defaultOptions,this.#m=e.mutationCache,this.#n=[],this.state=e.state||u(),this.setOptions(e.options),this.scheduleGc()}#n;#e;#m;#u;setOptions(e){this.options={...this.#e,...e},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#n.includes(e)||(this.#n.push(e),this.clearGcTimeout(),this.#m.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#n=this.#n.filter(r=>r!==e),this.scheduleGc(),this.#m.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#n.length||("pending"===this.state.status?this.scheduleGc():this.#m.remove(this))}continue(){return this.#u?.continue()??this.execute(this.state.variables)}async execute(e){let r="pending"===this.state.status;try{if(!r){this.#l({type:"pending",variables:e}),await this.#m.config.onMutate?.(e,this);let r=await this.options.onMutate?.(e);r!==this.state.context&&this.#l({type:"pending",context:r,variables:e})}let n=await (this.#u=(0,o.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,r)=>{this.#l({type:"failed",failureCount:e,error:r})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.#u.promise);return await this.#m.config.onSuccess?.(n,e,this.state.context,this),await this.options.onSuccess?.(n,e,this.state.context),await this.#m.config.onSettled?.(n,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(n,null,e,this.state.context),this.#l({type:"success",data:n}),n}catch(r){try{throw await this.#m.config.onError?.(r,e,this.state.context,this),await this.options.onError?.(r,e,this.state.context),await this.#m.config.onSettled?.(void 0,r,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,r,e,this.state.context),r}finally{this.#l({type:"error",error:r})}}}#l(e){this.state=(r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,o.Kw)(this.options.networkMode),status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),i.V.batch(()=>{this.#n.forEach(r=>{r.onMutationUpdate(e)}),this.#m.notify({mutation:this,type:"updated",action:e})})}};function u(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},27037:function(e,r,n){"use strict";n.d(r,{V:function(){return s}});var i=n(24139),s=function(){let e=[],r=0,n=e=>{e()},s=e=>{e()},o=s=>{r?e.push(s):(0,i.A4)(()=>{n(s)})},a=()=>{let r=e;e=[],r.length&&(0,i.A4)(()=>{s(()=>{r.forEach(e=>{n(e)})})})};return{batch:e=>{let n;r++;try{n=e()}finally{--r||a()}return n},batchCalls:e=>(...r)=>{o(()=>{e(...r)})},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{s=e}}}()},14304:function(e,r,n){"use strict";n.d(r,{N:function(){return o}});var i=n(7506),s=n(24139),o=new class extends i.l{#C=!0;#P;#S;constructor(){super(),this.#S=e=>{if(!s.sk&&window.addEventListener){let r=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#P||this.setEventListener(this.#S)}onUnsubscribe(){this.hasListeners()||(this.#P?.(),this.#P=void 0)}setEventListener(e){this.#S=e,this.#P?.(),this.#P=e(this.setOnline.bind(this))}
5setOnline(e){this.#C!==e&&(this.#C=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#C}}},48907:function(e,r,n){"use strict";n.d(r,{F:function(){return s}});var i=n(24139),s=class{#T;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,i.PN)(this.gcTime)&&(this.#T=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(i.sk?1/0:3e5))}clearGcTimeout(){this.#T&&(clearTimeout(this.#T),this.#T=void 0)}}},72008:function(e,r,n){"use strict";n.d(r,{DV:function(){return c},Kw:function(){return u},Mz:function(){return h}});var i=n(66474),s=n(14304),o=n(24139);function a(e){return Math.min(1e3*2**e,3e4)}function u(e){return(e??"online")!=="online"||s.N.isOnline()}var l=class{constructor(e){this.revert=e?.revert,this.silent=e?.silent}};function c(e){return e instanceof l}function h(e){let r,n,c,h=!1,d=0,f=!1,p=new Promise((e,r)=>{n=e,c=r}),m=()=>!i.j.isFocused()||"always"!==e.networkMode&&!s.N.isOnline(),y=i=>{f||(f=!0,e.onSuccess?.(i),r?.(),n(i))},v=n=>{f||(f=!0,e.onError?.(n),r?.(),c(n))},g=()=>new Promise(n=>{r=e=>{let r=f||!m();return r&&n(e),r},e.onPause?.()}).then(()=>{r=void 0,f||e.onContinue?.()}),b=()=>{let r;if(!f){try{r=e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(y).catch(r=>{if(f)return;let n=e.retry??(o.sk?0:3),i=e.retryDelay??a,s="function"==typeof i?i(d,r):i,u=!0===n||"number"==typeof n&&d<n||"function"==typeof n&&n(d,r);if(h||!u){v(r);return}d++,e.onFail?.(d,r),(0,o._v)(s).then(()=>{if(m())return g()}).then(()=>{h?v(r):b()})})}};return u(e.networkMode)?b():g().then(b),{promise:p,cancel:r=>{f||(v(new l(r)),e.abort?.())},continue:()=>r?.()?p:Promise.resolve(),cancelRetry:()=>{h=!0},continueRetry:()=>{h=!1}}}},7506:function(e,r,n){"use strict";n.d(r,{l:function(){return i}});var i=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},24139:function(e,r,n){"use strict";n.d(r,{A4:function(){return b},Ht:function(){return P},Kp:function(){return u},PN:function(){return a},Rm:function(){return h},SE:function(){return o},VS:function(){return p},VX:function(){return w},X7:function(){return c},Ym:function(){return d},ZT:function(){return s},_v:function(){return g},_x:function(){return l},oE:function(){return x},sk:function(){return i},to:function(){return f}});var i="undefined"==typeof window||"Deno"in window;function s(){}function o(e,r){return"function"==typeof e?e(r):e}function a(e){return"number"==typeof e&&e>=0&&e!==1/0}function u(e,r){return Math.max(e+(r||0)-Date.now(),0)}function l(e,r){let{type:n="all",exact:i,fetchStatus:s,predicate:o,queryKey:a,stale:u}=e;if(a){if(i){if(r.queryHash!==h(a,r.options))return!1}else if(!f(r.queryKey,a))return!1}if("all"!==n){let e=r.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof u||r.isStale()===u)&&(void 0===s||s===r.state.fetchStatus)&&(!o||!!o(r))}function c(e,r){let{exact:n,status:i,predicate:s,mutationKey:o}=e;if(o){if(!r.options.mutationKey)return!1;if(n){if(d(r.options.mutationKey)!==d(o))return!1}else if(!f(r.options.mutationKey,o))return!1}return(!i||r.state.status===i)&&(!s||!!s(r))}function h(e,r){return(r?.queryKeyHashFn||d)(e)}function d(e){return JSON.stringify(e,(e,r)=>y(r)?Object.keys(r).sort().reduce((e,n)=>(e[n]=r[n],e),{}):r)}function f(e,r){return e===r||typeof e==typeof r&&!!e&&!!r&&"object"==typeof e&&"object"==typeof r&&!Object.keys(r).some(n=>!f(e[n],r[n]))}function p(e,r){if(e&&!r||r&&!e)return!1;for(let n in e)if(e[n]!==r[n])return!1;return!0}function m(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function y(e){if(!v(e))return!1;let r=e.constructor;if(void 0===r)return!0;let n=r.prototype;return!!(v(n)&&n.hasOwnProperty("isPrototypeOf"))}function v(e){return"[object Object]"===Object.prototype.toString.call(e)}function g(e){return new Promise(r=>{setTimeout(r,e)})}function b(e){g(0).then(e)}function x(e,r,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,r):!1!==n.structuralSharing?function e(r,n){if(r===n)return r;let i=m(r)&&m(n);if(i||y(r)&&y(n)){let s=i?r.length:Object.keys(r).length,o=i?n:Object.keys(n),a=o.length,u=i?[]:{},l=0;for(let s=0;s<a;s++){let a=i?s:o[s];u[a]=e(r[a],n[a]),u[a]===r[a]&&l++}return s===a&&l===s?r:u}return n}(e,r):r}function w(e,r,n=0){let i=[...e,r];return n&&i.length>n?i.slice(1):i}function P(e,r,n=0){let i=[r,...e];return n&&i.length>n?i.slice(0,-1):i}},30202:function(e,r,n){"use strict";n.d(r,{NL:function(){return o},aH:function(){return a}});var i=n(67294),s=i.createContext(void 0),o=e=>{let r=i.useContext(s);if(e)return e;if(!r)throw Error("No QueryClient set, use QueryClientProvider to set one");return r},a=({client:e,children:r})=>(i.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),i.createElement(s.Provider,{value:e},r))},98029:function(e,r,n){"use strict";n.d(r,{D:function(){return d}});var i=n(67294),s=n(59289),o=n(27037),a=n(7506),u=n(24139),l=class extends a.l{constructor(e,r){super(),this.#E=void 0,this.#j=e,this.setOptions(r),this.bindMethods(),this.#O()}#j;#E;#R;#k;bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let r=this.options;this.options=this.#j.defaultMutationOptions(e),(0,u.VS)(r,this.options)||this.#j.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#R,observer:this}),this.#R?.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#R?.removeObserver(this)}onMutationUpdate(e){this.#O(),this.#A(e)}getCurrentResult(){return this.#E}reset(){this.#R=void 0,this.#O(),this.#A()}mutate(e,r){return this.#k=r,this.#R?.removeObserver(this),this.#R=this.#j.getMutationCache().build(this.#j,this.options),this.#R.addObserver(this),this.#R.execute(e)}#O(){let e=this.#R?.state??(0,s.R)();this.#E={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#A(e){o.V.batch(()=>{this.#k&&this.hasListeners()&&(e?.type==="success"?(this.#k.onSuccess?.(e.data,this.#E.variables,this.#E.context),this.#k.onSettled?.(e.data,null,this.#
5E.variables,this.#E.context)):e?.type==="error"&&(this.#k.onError?.(e.error,this.#E.variables,this.#E.context),this.#k.onSettled?.(void 0,e.error,this.#E.variables,this.#E.context))),this.listeners.forEach(e=>{e(this.#E)})})}},c=n(30202),h=n(86290);function d(e,r){let n=(0,c.NL)(r),[s]=i.useState(()=>new l(n,e));i.useEffect(()=>{s.setOptions(e)},[s,e]);let a=i.useSyncExternalStore(i.useCallback(e=>s.subscribe(o.V.batchCalls(e)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),u=i.useCallback((e,r)=>{s.mutate(e,r).catch(f)},[s]);if(a.error&&(0,h.L)(s.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:u,mutateAsync:a.mutate}}function f(){}},10777:function(e,r,n){"use strict";let i;n.d(r,{a:function(){return O}});var s=n(24139),o=n(27037),a=n(66474),u=n(7506),l=n(72008),c=class extends u.l{constructor(e,r){super(),this.#M=void 0,this.#L=void 0,this.#E=void 0,this.#_=new Set,this.#j=e,this.options=r,this.#V=null,this.bindMethods(),this.setOptions(r)}#j;#M;#L;#E;#D;#F;#V;#I;#N;#q;#z;#B;#U;#_;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#M.addObserver(this),h(this.#M,this.options)?this.#$():this.updateResult(),this.#Q())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return d(this.#M,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return d(this.#M,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#H(),this.#Z(),this.#M.removeObserver(this)}setOptions(e,r){let n=this.options,i=this.#M;if(this.options=this.#j.defaultQueryOptions(e),(0,s.VS)(n,this.options)||this.#j.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#M,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.#W();let o=this.hasListeners();o&&f(this.#M,i,this.options,n)&&this.#$(),this.updateResult(r),o&&(this.#M!==i||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.#G();let a=this.#K();o&&(this.#M!==i||this.options.enabled!==n.enabled||a!==this.#U)&&this.#Y(a)}getOptimisticResult(e){let r=this.#j.getQueryCache().build(this.#j,e),n=this.createResult(r,e);return(0,s.VS)(this.getCurrentResult(),n)||(this.#E=n,this.#F=this.options,this.#D=this.#M.state),n}getCurrentResult(){return this.#E}trackResult(e){let r={};return Object.keys(e).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.#_.add(n),e[n])})}),r}getCurrentQuery(){return this.#M}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let r=this.#j.defaultQueryOptions(e),n=this.#j.getQueryCache().build(this.#j,r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(e){return this.#$({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#E))}#$(e){this.#W();let r=this.#M.fetch(this.options,e);return e?.throwOnError||(r=r.catch(s.ZT)),r}#G(){if(this.#H(),s.sk||this.#E.isStale||!(0,s.PN)(this.options.staleTime))return;let e=(0,s.Kp)(this.#E.dataUpdatedAt,this.options.staleTime);this.#z=setTimeout(()=>{this.#E.isStale||this.updateResult()},e+1)}#K(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#M):this.options.refetchInterval)??!1}
5#Y(e){this.#Z(),this.#U=e,!s.sk&&!1!==this.options.enabled&&(0,s.PN)(this.#U)&&0!==this.#U&&(this.#B=setInterval(()=>{(this.options.refetchIntervalInBackground||a.j.isFocused())&&this.#$()},this.#U))}#Q(){this.#G(),this.#Y(this.#K())}#H(){this.#z&&(clearTimeout(this.#z),this.#z=void 0)}#Z(){this.#B&&(clearInterval(this.#B),this.#B=void 0)}createResult(e,r){let n;let i=this.#M,o=this.options,a=this.#E,u=this.#D,c=this.#F,d=e!==i?e.state:this.#L,{state:m}=e,{error:y,errorUpdatedAt:v,fetchStatus:g,status:b}=m,x=!1;if(r._optimisticResults){let n=this.hasListeners(),s=!n&&h(e,r),a=n&&f(e,i,r,o);(s||a)&&(g=(0,l.Kw)(e.options.networkMode)?"fetching":"paused",m.dataUpdatedAt||(b="pending")),"isRestoring"===r._optimisticResults&&(g="idle")}if(r.select&&void 0!==m.data){if(a&&m.data===u?.data&&r.select===this.#I)n=this.#N;else try{this.#I=r.select,n=r.select(m.data),n=(0,s.oE)(a?.data,n,r),this.#N=n,this.#V=null}catch(e){this.#V=e}}else n=m.data;if(void 0!==r.placeholderData&&void 0===n&&"pending"===b){let e;if(a?.isPlaceholderData&&r.placeholderData===c?.placeholderData)e=a.data;else if(e="function"==typeof r.placeholderData?r.placeholderData(this.#q?.state.data,this.#q):r.placeholderData,r.select&&void 0!==e)try{e=r.select(e),this.#V=null}catch(e){this.#V=e}void 0!==e&&(b="success",n=(0,s.oE)(a?.data,e,r),x=!0)}this.#V&&(y=this.#V,n=this.#N,v=Date.now(),b="error");let w="fetching"===g,P="pending"===b,S="error"===b,C=P&&w;return{status:b,fetchStatus:g,isPending:P,isSuccess:"success"===b,isError:S,isInitialLoading:C,isLoading:C,data:n,dataUpdatedAt:m.dataUpdatedAt,error:y,errorUpdatedAt:v,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>d.dataUpdateCount||m.errorUpdateCount>d.errorUpdateCount,isFetching:w,isRefetching:w&&!P,isLoadingError:S&&0===m.dataUpdatedAt,isPaused:"paused"===g,isPlaceholderData:x,isRefetchError:S&&0!==m.dataUpdatedAt,isStale:p(e,r),refetch:this.refetch}}updateResult(e){let r=this.#E,n=this.createResult(this.#M,this.options);if(this.#D=this.#M.state,this.#F=this.options,void 0!==this.#D.data&&(this.#q=this.#M),(0,s.VS)(n,r))return;this.#E=n;let i={};e?.listeners!==!1&&(()=>{if(!r)return!0;let{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.#_.size)return!0;let i=new Set(n??this.#_);return this.options.throwOnError&&i.add("error"),Object.keys(this.#E).some(e=>this.#E[e]!==r[e]&&i.has(e))})()&&(i.listeners=!0),this.#A({...i,...e})}#W(){let e=this.#j.getQueryCache().build(this.#j,this.options);if(e===this.#M)return;let r=this.#M;this.#M=e,this.#L=e.state,this.hasListeners()&&(r?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#Q()}#A(e){o.V.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#E)}),this.#j.getQueryCache().notify({query:this.#M,type:"observerResultsUpdated"})})}};function h(e,r){return!1!==r.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===r.retryOnMount)||e.state.dataUpdatedAt>0&&d(e,r,r.refetchOnMount)}function d(e,r,n){if(!1!==r.enabled){let i="function"==typeof n?n(e):n;return"always"===i||!1!==i&&p(e,r)}return!1}function f(e,r,n,i){return!1!==n.enabled&&(e!==r||!1===i.enabled)&&(!n.suspense||"error"!==e.state.status)&&p(e,n)}function p(e,r){return e.isStaleByTime(r.staleTime)}var m=n(67294),y=m.createContext((i=!1,{clearReset:()=>{i=!1},reset:()=>{i=!0},isReset:()=>i})),v=()=>m.useContext(y),g=n(30202),b=m.createContext(!1),x=()=>m.useContext(b);b.Provider;var w=n(86290),P=(e,r)=>{(e.suspense||e.throwOnError)&&!r.isReset()&&(e.retryOnMount=!1)},S=e=>{m.useEffect(()=>{e.clearReset()},[e])},C=({result:e,errorResetBoundary:r,throwOnError:n,query:i})=>e.isError&&!r.isReset()&&!e.isFetching&&(0,w.L)(n,[e.error,i]),T=e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)},E=(e,r)=>e?.suspense&&r.isPending,j=(e,r,n)=>r.fetchOptimistic(e).catch(()=>{n.clearReset()});function O(e,r){return function(e,r,n){let i=(0,g.NL)(n),s=x(),a=v(),u=i.defaultQueryOptions(e);u._optimisticResults=s?"isRestoring":"optimistic",T(u),P(u,a),S(a);let[l]=m.useState(()=>new r(i,u)),c=l.getOptimisticResult(u);if(m.useSyncExternalStore(m.useCallback(e=>{let r=s?()=>void 0:l.subscribe(o.V.batchCalls(e));return l.updateResult(),r},[l,s]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),m.useEffect(()=>{l.setOptions(u,{listeners:!1})},[u,l]),E(u,c))throw l.setOptions(u,{listeners:!1}),j(u,l,a);if(C({result:c,errorResetBoundary:a,throwOnError:u.throwOnError,query:l.getCurrentQuery()}))throw c.error;return u.notifyOnChangeProps?c:l.trackResult(c)}(e,c,r)}},86290:function(e,r,n){"use strict";function i(e,r){return"function"==typeof e?e(...r):!!e}n.d(r,{L:function(){return i}})},88238:function(e,r,n){"use strict";n.d(r,{O_:function(){return c},S1:function(){return l},Vd:function(){return o},_:function(){return y},ac:function(){return v},c3:function(){return u},m9:function(){return a}});var i=n(67294);function s(e,r){window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:r}))}function o(e){let r=i.useRef(null),n=i.useRef(e);return i.useLayoutEffect(()=>{n.current=e}),i.useEffect(()=>{let e=e=>{let i=r.current;i&&!i.contains(e.target)&&n.current(e)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[]),r}function a(){let[e,r]=i.useState(null);return[e,i.useCallback(e=>{(async()=>{try{if(navigator?.clipboard?.writeText)await navigator.clipboard.writeText(e),r(e);else throw Error("writeText not supported")}catch(n){!function(e){let r=document.createElement("textarea");r.value=e,document.body.appendChild(r),r.select(),document.execCommand("copy"),document.body.removeChild(r)}(e),r(e)}})()},[])]}function u(e=6e4){let[r,n]=i.useState(!1);return i.useEffect(()=>{var r;let i,s;let o=()=>{n(!0)},a=(r=r=>{n(!1),window.clearTimeout(i),i=window.setTimeout(o,e)},s=0,()=>{let e=Date.now();e-s>=500&&(r(),s=e)}),u=()=>{document.hidden||a()};return i=window.setTimeout(o,e),window.addEventListener("mousemove",a),window.addEventListener("mousedown",a),window.addEventListener("resize",a),window.addEventListener("keydown",a),window.addEventListener("touchstart",a),window.addEventListener("wheel",a),document.addEventListener("visibilitychange",u),()=>{window.removeEventListener("mousemove",a),window.removeEventListener("mousedown",a),window.removeEventListener("resize",a),window.removeEventListener("keydown",a),window.removeEventListener("touchstart",a),window.removeEventListener("wheel",a),document.removeEventListener("visibilitychange",u),window.clearTimeout(i)}},[e]),r}function l(e={}){let{threshold:r=1,root:n=null,rootMargin:s="0px"}=e,[o,a]=i.useState(null),u=i.useRef(null);return[i.useCallback(e=>{if(u.current&&(u.current.disconnect(),u.current=null),e?.nodeType===Node.ELEMENT_NODE){let i=new IntersectionObserver(([e])=>{a(e)},{threshold:r,root:n,rootMargin:s});i.observe(e),u.current=i}},[r,n,s]),o]}function c(){let[e,r]=i.useState(!1);return i.useEffect(()=>{r(!0)},[]),e}let h=(e,r)=>{let n=JSON.stringify(r);
5window.localStorage.setItem(e,n),s(e,n)},d=e=>{window.localStorage.removeItem(e),s(e,null)},f=e=>window.localStorage.getItem(e),p=e=>(window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)),m=()=>{throw Error("useLocalStorage is a client-only hook")};function y(e,r){let n=i.useSyncExternalStore(p,()=>f(e),m),s=i.useCallback(r=>{try{let i="function"==typeof r?r(JSON.parse(n)):r;null==i?d(e):h(e,i)}catch(e){console.warn(e)}},[e,n]);return i.useEffect(()=>{null===f(e)&&void 0!==r&&h(e,r)},[e,r]),[n?JSON.parse(n):r,s]}function v(e){let r=i.useCallback(r=>{let n=window.matchMedia(e);return n.addEventListener("change",r),()=>{n.removeEventListener("change",r)}},[e]);return i.useSyncExternalStore(r,()=>window.matchMedia(e).matches,()=>{throw Error("useMediaQuery is a client-only hook")})}},8046:function(e,r,n){"use strict";n.d(r,{Z:function(){return tr}});var i=n(45487),s=n(86917);let o={current:!1};var a=n(30404),u=n(90415),l=n(75129);let c=e=>e*e,h=(0,l.M)(c),d=(0,u.o)(c);var f=n(64606),p=n(30533),m=n(81662);let y=(e,r,n)=>(((1-3*n+3*r)*e+(3*n-6*r))*e+3*r)*e;function v(e,r,n,i){if(e===r&&n===i)return m.Z;let s=r=>(function(e,r,n,i,s){let o,a;let u=0;do(o=y(a=r+(n-r)/2,i,s)-e)>0?n=a:r=a;while(Math.abs(o)>1e-7&&++u<12);return a})(r,0,1,e,n);return e=>0===e||1===e?e:y(s(e),r,i)}var g=n(27255);let b=v(.33,1.53,.69,.99),x=(0,l.M)(b),w=(0,u.o)(x),P={linear:m.Z,easeIn:c,easeInOut:d,easeOut:h,circIn:g.Z7,circInOut:g.X7,circOut:g.Bn,backIn:x,backInOut:w,backOut:b,anticipate:e=>(e*=2)<1?.5*x(e):.5*(2-Math.pow(2,-10*(e-1)))},S=e=>{if(Array.isArray(e)){(0,i.k)(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[r,n,s,o]=e;return v(r,n,s,o)}return"string"==typeof e?((0,i.k)(void 0!==P[e],`Invalid easing type '${e}'`),P[e]):e},C=e=>Array.isArray(e)&&"number"!=typeof e[0];function T({keyframes:e,ease:r=d,times:n,duration:i=300}){e=[...e];let s=C(r)?r.map(S):S(r),o={done:!1,value:e[0]},a=(n&&n.length===e.length?n:(0,p.Y)(e)).map(e=>e*i);function u(){var r;return(0,f.s)(a,e,{ease:Array.isArray(s)?s:(r=e).map(()=>s||d).splice(0,r.length-1)})}let l=u();return{next:e=>(o.value=l(e),o.done=e>=i,o),flipTarget:()=>{e.reverse(),l=u()}}}var E=n(24169);function j(e,r){return e*Math.sqrt(1-r*r)}var O=n(3038);let R=["duration","bounce"],k=["stiffness","damping","mass"];function A(e,r){return r.some(r=>void 0!==e[r])}function M({keyframes:e,restDelta:r,restSpeed:n,...s}){let o=e[0],a=e[e.length-1],u={done:!1,value:o},{stiffness:l,damping:c,mass:h,velocity:d,duration:f,isResolvedFromDuration:p}=function(e){let r={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!A(e,k)&&A(e,R)){let n=function({duration:e=800,bounce:r=.25,velocity:n=0,mass:s=1}){let o,a;(0,i.K)(e<=1e4,"Spring duration must be 10 seconds or less");let u=1-r;u=(0,E.u)(.05,1,u),e=(0,E.u)(.01,10,e/1e3),u<1?(o=r=>{let i=r*u,s=i*e;return .001-(i-n)/j(r,u)*Math.exp(-s)},a=r=>{let i=r*u*e,s=Math.pow(u,2)*Math.pow(r,2)*e,a=j(Math.pow(r,2),u);return(i*n+n-s)*Math.exp(-i)*(-o(r)+.001>0?-1:1)/a}):(o=r=>-.001+Math.exp(-r*e)*((r-n)*e+1),a=r=>e*e*(n-r)*Math.exp(-r*e));let l=function(e,r,n){let i=n;for(let n=1;n<12;n++)i-=e(i)/r(i);return i}(o,a,5/e);if(e*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{let r=Math.pow(l,2)*s;return{stiffness:r,damping:2*u*Math.sqrt(s*r),duration:e}}}(e);(r={...r,...n,velocity:0,mass:1}).isResolvedFromDuration=!0}return r}(s),m=L,y=d?-(d/1e3):0,v=c/(2*Math.sqrt(l*h));function g(){let e=a-o,i=Math.sqrt(l/h)/1e3,s=5>Math.abs(e);if(n||(n=s?.01:2),r||(r=s?.005:.5),v<1){let r=j(i,v);m=n=>a-Math.exp(-v*i*n)*((y+v*i*e)/r*Math.sin(r*n)+e*Math.cos(r*n))}else if(1===v)m=r=>a-Math.exp(-i*r)*(e+(y+i*e)*r);else{let r=i*Math.sqrt(v*v-1);m=n=>{let s=Math.exp(-v*i*n),o=Math.min(r*n,300);return a-s*((y+v*i*e)*Math.sinh(o)+r*e*Math.cosh(o))/r}}}return g(),{next:e=>{let i=m(e);if(p)u.done=e>=f;else{let s=y;if(0!==e){if(v<1){let r=Math.max(0,e-5);s=(0,O.R)(i-m(r),e-r)}else s=0}let o=Math.abs(s)<=n,l=Math.abs(a-i)<=r;u.done=o&&l}return u.value=u.done?a:i,u},flipTarget:()=>{y=-y,[o,a]=[a,o],g()}}}M.needsInterpolation=(e,r)=>"string"==typeof e||"string"==typeof r;let L=e=>0,_={decay:function({keyframes:e=[0],velocity:r=0,power:n=.8,timeConstant:i=350,restDelta:s=.5,modifyTarget:o}){let a=e[0],u={done:!1,value:a},l=n*r,c=a+l,h=void 0===o?c:o(c);return h!==c&&(l=h-a),{next:e=>{let r=-l*Math.exp(-e/i);return u.done=!(r>s||r<-s),u.value=u.done?h:h+r,u},flipTarget:()=>{}}},keyframes:T,tween:T,spring:M};function V(e,r,n=0){return e-r-n}let D=e=>{let r=({delta:r})=>e(r);return{start:()=>a.Z_.update(r,!0),stop:()=>a.qY.update(r)}};function F({duration:e,driver:r=D,elapsed:n=0,repeat:i=0,repeatType:s="loop",repeatDelay:o=0,keyframes:a,autoplay:u=!0,onPlay:l,onStop:c,onComplete:h,onRepeat:d,onUp
5date:p,type:m="keyframes",...y}){let v,g;let b=n,x=0,w=e,P=!1,S=!0,C=_[a.length>2?"keyframes":m]||T,E=a[0],j=a[a.length-1],O={done:!1,value:E},{needsInterpolation:R}=C;R&&R(E,j)&&(g=(0,f.s)([0,100],[E,j],{clamp:!1}),a=[0,100]);let k=C({...y,duration:e,keyframes:a});function A(e){if(S||(e=-e),n+=e,P||(O=k.next(Math.max(0,n)),g&&(O.value=g(O.value)),P=S?O.done:n<=0),p&&p(O.value),P){if(0===x&&(w=void 0!==w?w:n),x<i){var r,a;r=n,a=w,(S?r>=a+o:r<=-o)&&(x++,"reverse"===s?n=function(e,r=0,n=0,i=!0){return i?V(r+-e,r,n):r-(e-r)+n}(n,w,o,S=x%2==0):(n=V(n,w,o),"mirror"===s&&k.flipTarget()),P=!1,d&&d())}else v&&v.stop(),h&&h()}}return u&&(l&&l(),(v=r(A)).start()),{stop:()=>{c&&c(),v&&v.stop()},set currentTime(t){n=b,A(t)},sample:r=>{n=b;let i=e&&"number"==typeof e?Math.max(.5*e,50):50,s=0;for(A(0);s<=r;)A(Math.min(r-s,i)),s+=i;return O}}}let I=([e,r,n,i])=>`cubic-bezier(${e}, ${r}, ${n}, ${i})`,N={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:I([0,.65,.55,1]),circOut:I([.55,0,1,.45]),backIn:I([.31,.01,.66,-.59]),backOut:I([.33,1.53,.69,.99])},q={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},z={},B={};for(let e in q)B[e]=()=>(void 0===z[e]&&(z[e]=q[e]()),z[e]);let U=new Set(["opacity","clipPath","filter","transform"]);var $=n(63378),Q=n(37367),H=n(94714);let Z={type:"spring",stiffness:500,damping:25,restSpeed:10},W=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),G={type:"keyframes",duration:.8},K={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Y=(e,{keyframes:r})=>r.length>2?G:H.G.has(e)?e.startsWith("scale")?W(r[1]):Z:K;var J=n(51550);let X=(e,r)=>"zIndex"!==e&&!!("number"==typeof r||Array.isArray(r)||"string"==typeof r&&J.P.test(r)&&!r.startsWith("url("));var tt=n(79135),te=n(31056);let tr=(e,r,n,u={})=>l=>{let c=(0,te.ev)(u,e)||{},h=c.delay||u.delay||0,{elapsed:d=0}=u;d-=(0,s.w)(h);let f=function(e,r,n,i){let s=X(r,n),o=void 0!==i.from?i.from:e.get();return("none"===o&&s&&"string"==typeof n?o=(0,tt.T)(r,n):(0,te.Fr)(o)&&"string"==typeof n?o=(0,te.GZ)(n):!Array.isArray(n)&&(0,te.Fr)(n)&&"string"==typeof o&&(n=(0,te.GZ)(o)),Array.isArray(n))?(null===n[0]&&(n[0]=o),n):[o,n]}(r,e,n,c),p=f[0],m=f[f.length-1],y=X(e,p),v=X(e,m);(0,i.K)(y===v,`You are trying to animate ${e} from "${p}" to "${m}". ${p} is not an animatable value - to enable this animation set ${p} to a value animatable to ${m} via the \`style\` property.`);let g={keyframes:f,velocity:r.getVelocity(),...c,elapsed:d,onUpdate:e=>{r.set(e),c.onUpdate&&c.onUpdate(e)},onComplete:()=>{l(),c.onComplete&&c.onComplete()}};if(!y||!v||o.current||!1===c.type)return function({keyframes:e,elapsed:r,onUpdate:n,onComplete:i}){let s=()=>{n&&n(e[e.length-1]),i&&i()};return r?{stop:(0,$.g)(s,-r)}:s()}(g);if("inertia"===c.type)return function({keyframes:e,velocity:r=0,min:n,max:i,power:s=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:u=10,restDelta:l=1,modifyTarget:c,driver:h,onUpdate:d,onComplete:f,onStop:p}){let m;let y=e[0];function v(e){return void 0!==n&&e<n||void 0!==i&&e>i}function g(e){return void 0===n?i:void 0===i?n:Math.abs(n-e)<Math.abs(i-e)?n:i}function b(e){m&&m.stop(),m=F({keyframes:[0,1],velocity:0,...e,driver:h,onUpdate:r=>{d&&d(r),e.onUpdate&&e.onUpdate(r)},onComplete:f,onStop:p})}function x(e){b({type:"spring",stiffness:a,damping:u,restDelta:l,...e})}if(v(y))x({velocity:r,keyframes:[y,g(y)]});else{let e,i,a=s*r+y;void 0!==c&&(a=c(a));let u=g(a),h=u===n?-1:1;b({type:"decay",keyframes:[y,0],velocity:r,timeConstant:o,power:s,restDelta:l,modifyTarget:c,onUpdate:v(a)?n=>{e=i,i=n,r=(0,O.R)(n-e,Q.frameData.delta),(1===h&&n>u||-1===h&&n<u)&&x({keyframes:[n,u],velocity:r})}:void 0})}return{stop:()=>m&&m.stop()}}(g);if((0,te.rw)(c)||(g={...g,...Y(e,g)}),g.duration&&(g.duration=(0,s.w)(g.duration)),g.repeatDelay&&(g.repeatDelay=(0,s.w)(g.repeatDelay)),r.owner&&r.owner.current instanceof HTMLElement&&!r.owner.getProps().onUpdate){let n=function(e,r,{onUpdate:n,onComplete:i,...s}){var o;if(!(B.waapi()&&U.has(r)&&!s.repeatDelay&&"mirror"!==s.repeatType&&0!==s.damping))return!1;let{keyframes:u,duration:l=300,elapsed:c=0,ease:h}=s;if("spring"===s.type||!(!(o=s.ease)||Array.isArray(o)||"string"==typeof o&&N[o])){if(s.repeat===1/0)return;let e=F({...s,elapsed:0}),r={done:!1,value:u[0]},n=[],i=0;for(;!r.done&&i<2e4;)r=e.sample(i),n.push(r.value),i+=10;u=n,l=i-10,h="linear"}let d=function(e,r,n,{delay:i=0,duration:s,repeat:o=0,repeatType:a="loop",ease:u,times:l}={}){return e.animate({[r]:n,offset:l},{delay:i,duration:s,easing:function(e){if(e)return Array.isArray(e)?I(e):N[e]}(u),fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,r,u,{...s,delay:-c,duration:l,ease:h});return d.onfinish=()=>{e.set(function(e,{repeat:r,repeatType:n="loop"}){let i=r&&"loop"!==n&&r%2==1?0:e.length-1;return e[i]}(u,s)),a.Z_.update(()=>d.cancel()),i&&i()},{get currentTime(){return d.currentTime||0},set currentTime(t){d.currentTime=t},stop:()=>{let{currentTime:r}=d;if(r){let n=F({...s,autoplay:!1});e.setWithVelocity(n.sample(r-10).value,n.sample(r).value,10)}a.Z_.update(()=>d.cancel())}}}(r,e,g);if(n)return n}return F(g)}},48488:function(e,r,n){"use strict";n.d(r,{C:function(){return i}});let i=e=>Array.isArray(e)},31056:function(e,r,n){"use strict";n.d(r,{Fr:function(){return o},GZ:function(){return a},ev:function(){return u}
5,rw:function(){return s}});var i=n(79135);function s({when:e,delay:r,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:o,repeatType:a,repeatDelay:u,from:l,elapsed:c,...h}){return!!Object.keys(h).length}function o(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function a(e){return"number"==typeof e?0:(0,i.T)("",e)}function u(e,r){return e[r]||e.default||e}},51526:function(e,r,n){"use strict";n.d(r,{M:function(){return y}});var i=n(67294),s=n(30404),o=n(58868);function a(){let e=(0,i.useRef)(!1);return(0,o.L)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var u=n(240),l=n(96681);class c extends i.Component{getSnapshotBeforeUpdate(e){let r=this.props.childRef.current;if(r&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=r.offsetHeight||0,e.width=r.offsetWidth||0,e.top=r.offsetTop,e.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function h({children:e,isPresent:r}){let n=(0,i.useId)(),s=(0,i.useRef)(null),o=(0,i.useRef)({width:0,height:0,top:0,left:0});return(0,i.useInsertionEffect)(()=>{let{width:e,height:i,top:a,left:u}=o.current;if(r||!s.current||!e||!i)return;s.current.dataset.motionPopId=n;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` 6 [data-motion-pop-id="${n}"] { 7 position: absolute !important; 8 width: ${e}px !important; 9 height: ${i}px !important; 10 top: ${a}px !important; 11 left: ${u}px !important; 12 } 13 `),()=>{document.head.removeChild(l)}},[r]),i.createElement(c,{isPresent:r,childRef:s,sizeRef:o},i.cloneElement(e,{ref:s}))}let d=({children:e,initial:r,isPresent:n,onExitComplete:s,custom:o,presenceAffectsLayout:a,mode:c})=>{let d=(0,l.h)(f),p=(0,i.useId)(),m=(0,i.useMemo)(()=>({id:p,initial:r,isPresent:n,custom:o,onExitComplete:e=>{for(let r of(d.set(e,!0),d.values()))if(!r)return;s&&s()},register:e=>(d.set(e,!1),()=>d.delete(e))}),a?void 0:[n]);return(0,i.useMemo)(()=>{d.forEach((e,r)=>d.set(r,!1))},[n]),i.useEffect(()=>{n||d.size||!s||s()},[n]),"popLayout"===c&&(e=i.createElement(h,{isPresent:n},e)),i.createElement(u.O.Provider,{value:m},e)};function f(){return new Map}var p=n(25364);let m=e=>e.key||"",y=({children:e,custom:r,initial:n=!0,onExitComplete:u,exitBeforeEnter:l,presenceAffectsLayout:c=!0,mode:h="sync"})=>{var f;l&&(h="wait");let[y]=function(){let e=a(),[r,n]=(0,i.useState)(0),o=(0,i.useCallback)(()=>{e.current&&n(r+1)},[r]);return[(0,i.useCallback)(()=>s.Z_.postRender(o),[o]),r]}(),v=(0,i.useContext)(p.p).forceRender;v&&(y=v);let g=a(),b=function(e){let r=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&r.push(e)}),r}(e),x=b,w=new Set,P=(0,i.useRef)(x),S=(0,i.useRef)(new Map).current,C=(0,i.useRef)(!0);if((0,o.L)(()=>{C.current=!1,function(e,r){e.forEach(e=>{let n=m(e);r.set(n,e)})}(b,S),P.current=x}),f=()=>{C.current=!0,S.clear(),w.clear()},(0,i.useEffect)(()=>()=>f(),[]),C.current)return i.createElement(i.Fragment,null,x.map(e=>i.createElement(d,{key:m(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:c,mode:h},e)));x=[...x];let T=P.current.map(m),E=b.map(m),j=T.length;for(let e=0;e<j;e++){let r=T[e];-1===E.indexOf(r)&&w.add(r)}return"wait"===h&&w.size&&(x=[]),w.forEach(e=>{if(-1!==E.indexOf(e))return;let n=S.get(e);if(!n)return;let s=T.indexOf(e);x.splice(s,0,i.createElement(d,{key:m(n),isPresent:!1,onExitComplete:()=>{S.delete(e),w.delete(e);let r=P.current.findIndex(r=>r.key===e);if(P.current.splice(r,1),!w.size){if(P.current=b,!1===g.current)return;y(),u&&u()}},custom:r,presenceAffectsLayout:c,mode:h},n))}),x=x.map(e=>{let r=e.key;return w.has(r)?e:i.createElement(d,{key:m(e),isPresent:!0,presenceAffectsLayout:c,mode:h},e)}),i.createElement(i.Fragment,null,w.size?x:x.map(e=>(0,i.cloneElement)(e)))}},25364:function(e,r,n){"use strict";n.d(r,{p:function(){return i}});let i=(0,n(67294).createContext)({})},16014:function(e,r,n){"use strict";n.d(r,{_:function(){return i}});let i=(0,n(67294).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},240:function(e,r,n){"use strict";n.d(r,{O:function(){return i}});let i=(0,n(67294).createContext)(null)},27255:function(e,r,n){"use strict";n.d(r,{Bn:function(){return a},X7:function(){return u},Z7:function(){return o}});var i=n(90415),s=n(75129);let o=e=>1-Math.sin(Math.acos(e)),a=(0,s.M)(o),u=(0,i.o)(a)},90415:function(e,r,n){"use strict";n.d(r,{o:function(){return i}});let i=e=>r=>r<=.5?e(2*r)/2:(2-e(2*(1-r)))/2},75129:function(e,r,n){"use strict";n.d(r,{M:function(){return i}});let i=e=>r=>1-e(1-r)},37367:function(e,r,n){"use strict";n.d(r,{frameData:function(){return i}});let i={delta:0,timestamp:0}},30404:function(e,r,n){"use strict";n.d(r,{qY:function(){return p},iW:function(){return m},Z_:function(){return f}});let i=1/60*1e3,s="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),o="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(s()),i);var a=n(37367);let u=!0,l=!1,c=!1,h=["read","update","preRender","render","postRender"],d=h.reduce((e,r)=>(e[r]=function(e){let r=[],n=[],i=0,s=!1,o=!1,a=new WeakSet,u={schedule:(e,o=!1,u=!1)=>{let l=u&&s,c=l?r:n;return o&&a.add(e),-1===c.indexOf(e)&&(c.push(e),l&&s&&(i=r.length)),e},cancel:e=>{let r=n.indexOf(e);-1!==r&&n.splice(r,1),a.delete(e)},process:l=>{if(s){o=!0;return}if(s=!0,[r,n]=[n,r],n.length=0,i=r.length)for(let n=0;n<i;n++){let i=r[n];i(l),a.has(i)&&(u.schedule(i),e())}s=!1,o&&(o=!1,u.process(l))}};return u}(()=>l=!0),e),{}),f=h.reduce((e,r)=>{let n=d[r];return e[r]=(e,r=!1,i=!1)=>(l||g(),n.schedule(e,r,i)),e},{}),p=h.reduce((e,r)=>(e[r]=d[r].cancel,e),{}),m=h.reduce((e,r)=>(e[r]=()=>d[r].process(a.frameData),e),{}),y=e=>d[e].process(a.frameData),v=e=>{l=!1,a.frameData.delta=u?i:Math.max(Math.min(e-a.frameData.timestamp,40),1),a.frameData.timestamp=e,c=!0,h.forEach(y),c=!1,l&&(u=!1,o(v))},g=()=>{l=!0,u=!0,c||o(v)}},3303:function(e,r,n){"use strict";n.d(r,{E:function(){return r9}});var i=n(67294),s=n(16014);let o=(0,i.createContext)({});var a=n(240),u=n(58868);let l=(0,i.createContext)({strict:!1});function c(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function h(e){return"string"==typeof e||Array.isArray(e)}function d(e){return"object"==typeof e&&"function"==typeof e.start}let f=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],p=["initial",...f];function m(e){return d(e.animate)||p.some(r=>h(e[r]))}function y(e){return!!(m(e)||e.variants)}function v(e){return Array.isArray(e)?e.join(" "):e}let g={animation:["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],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"]},b={};for(let e in g)b[e]={isEnabled:r=>g[e].some(e=>!!r[e])};
13var x=n(11741),w=n(96681);let P={hasAnimatedSinceResize:!0,hasEverUpdated:!1},S=1;var C=n(25364);let T=(0,i.createContext)({}),E=Symbol.for("motionComponentSymbol"),j=["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 O(e){if("string"!=typeof e||e.includes("-"));else if(j.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let R={};var k=n(94714);function A(e,{layout:r,layoutId:n}){return k.G.has(e)||e.startsWith("origin")||(r||void 0!==n)&&(!!R[e]||"opacity"===e)}var M=n(40406);let L={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},_=k._.length,V=e=>r=>"string"==typeof r&&r.startsWith(e),D=V("--"),F=V("var(--"),I=(e,r)=>r&&"number"==typeof e?r.transform(e):e;var N=n(36173);function q(e,r,n,i){let{style:s,vars:o,transform:a,transformOrigin:u}=e,l=!1,c=!1,h=!0;for(let e in r){let n=r[e];if(D(e)){o[e]=n;continue}let i=N.j[e],d=I(n,i);if(k.G.has(e)){if(l=!0,a[e]=d,!h)continue;n!==(i.default||0)&&(h=!1)}else e.startsWith("origin")?(c=!0,u[e]=d):s[e]=d}if(!r.transform&&(l||i?s.transform=function(e,{enableHardwareAcceleration:r=!0,allowTransformNone:n=!0},i,s){let o="";for(let r=0;r<_;r++){let n=k._[r];if(void 0!==e[n]){let r=L[n]||n;o+=`${r}(${e[n]}) `}}return r&&!e.z&&(o+="translateZ(0)"),o=o.trim(),s?o=s(e,i?"":o):n&&i&&(o="none"),o}(e.transform,n,h,i):s.transform&&(s.transform="none")),c){let{originX:e="50%",originY:r="50%",originZ:n=0}=u;s.transformOrigin=`${e} ${r} ${n}`}}let z=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function B(e,r,n){for(let i in r)(0,M.i)(r[i])||A(i,n)||(e[i]=r[i])}var U=n(91492),$=n(96190);function Q(e,r,n){return"string"==typeof e?e:$.px.transform(r+n*e)}let H={offset:"stroke-dashoffset",array:"stroke-dasharray"},Z={offset:"strokeDashoffset",array:"strokeDasharray"};function W(e,{attrX:r,attrY:n,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:u=0,...l},c,h,d){if(q(e,l,c,d),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:f,style:p,dimensions:m}=e;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(void 0!==i||void 0!==s||p.transform)&&(p.transformOrigin=function(e,r,n){let i=Q(r,e.x,e.width),s=Q(n,e.y,e.height);return`${i} ${s}`}(m,void 0!==i?i:.5,void 0!==s?s:.5)),void 0!==r&&(f.x=r),void 0!==n&&(f.y=n),void 0!==o&&function(e,r,n=1,i=0,s=!0){e.pathLength=1;let o=s?H:Z;e[o.offset]=$.px.transform(-i);let a=$.px.transform(r),u=$.px.transform(n);e[o.array]=`${a} ${u}`}(f,o,a,u,!1)}let G=()=>({...z(),attrs:{}}),K=e=>"string"==typeof e&&"svg"===e.toLowerCase();var Y=n(93193);function J(e,{style:r,vars:n},i,s){for(let o in Object.assign(e.style,r,s&&s.getProjectionStyles(i)),n)e.style.setProperty(o,n[o])}let X=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 tt(e,r,n,i){for(let n in J(e,r,void 0,i),r.attrs)e.setAttribute(X.has(n)?n:(0,Y.D)(n),r.attrs[n])}function te(e,r){let{style:n}=e,i={};for(let s in n)((0,M.i)(n[s])||r.style&&(0,M.i)(r.style[s])||A(s,e))&&(i[s]=n[s]);return i}function tr(e,r){let n=te(e,r);for(let i in e)((0,M.i)(e[i])||(0,M.i)(r[i]))&&(n["x"===i||"y"===i?"attr"+i.toUpperCase():i]=e[i]);return n}var tn=n(79432),ti=n(88722);function ts(e){let r=(0,M.i)(e)?e.get():e;return(0,ti.p)(r)?r.toValue():r}let to=e=>(r,n)=>{let s=(0,i.useContext)(o),u=(0,i.useContext)(a.O),l=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:r,onMount:n},i,s,o){let a={latestValues:function(e,r,n,i){let s={},o=i(e,{});for(let e in o)s[e]=ts(o[e]);let{initial:a,animate:u}=e,l=m(e),c=y(e);r&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=r.initial),void 0===u&&(u=r.animate));let h=!!n&&!1===n.initial,f=(h=h||!1===a)?u:a;return f&&"boolean"!=typeof f&&!d(f)&&(Array.isArray(f)?f:[f]).forEac
13h(r=>{let n=(0,tn.o)(e,r);if(!n)return;let{transitionEnd:i,transition:o,...a}=n;for(let e in a){let r=a[e];if(Array.isArray(r)){let e=h?r.length-1:0;r=r[e]}null!==r&&(s[e]=r)}for(let e in i)s[e]=i[e]}),s}(i,s,o,e),renderState:r()};return n&&(a.mount=e=>n(i,e,a)),a})(e,r,s,u);return n?l():(0,w.h)(l)},ta={useVisualState:to({scrapeMotionValuesFromProps:tr,createRenderState:G,onMount:(e,r,{renderState:n,latestValues:i})=>{try{n.dimensions="function"==typeof r.getBBox?r.getBBox():r.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}W(n,i,{enableHardwareAcceleration:!1},K(r.tagName),e.transformTemplate),tt(r,n)}})},tu={useVisualState:to({scrapeMotionValuesFromProps:te,createRenderState:z})};function tl(e,r,n,i={passive:!0}){return e.addEventListener(r,n,i),()=>e.removeEventListener(r,n)}let tc=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function th(e,r="page"){return{point:{x:e[r+"X"],y:e[r+"Y"]}}}let td=e=>r=>tc(r)&&e(r,th(r));function tf(e,r,n,i){return tl(e,r,td(n),i)}var tp=n(83624);function tm(e){let r=null;return()=>null===r&&(r=e,()=>{r=null})}let ty=tm("dragHorizontal"),tv=tm("dragVertical");function tg(e){let r=!1;if("y"===e)r=tv();else if("x"===e)r=ty();else{let e=ty(),n=tv();e&&n?r=()=>{e(),n()}:(e&&e(),n&&n())}return r}function tb(){let e=tg(!0);return!e||(e(),!1)}class tx{constructor(e){this.isMounted=!1,this.node=e}update(){}}function tw(e,r){let n="onHover"+(r?"Start":"End");return tf(e.current,"pointer"+(r?"enter":"leave"),(i,s)=>{if("touch"===i.type||tb())return;let o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",r),o[n]&&o[n](i,s)},{passive:!e.getProps()[n]})}class tP extends tx{mount(){this.unmount=(0,tp.z)(tw(this.node,!0),tw(this.node,!1))}unmount(){}}class tS extends tx{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(r){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=(0,tp.z)(tl(this.node.current,"focus",()=>this.onFocus()),tl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let tC=(e,r)=>!!r&&(e===r||tC(e,r.parentElement));var tT=n(81662);function tE(e,r){if(!r)return;let n=new PointerEvent("pointer"+e);r(n,th(n))}class tj extends tx{constructor(){super(...arguments),this.removeStartListeners=tT.Z,this.removeEndListeners=tT.Z,this.removeAccessibleListeners=tT.Z,this.startPointerPress=(e,r)=>{if(this.removeEndListeners(),this.isPressing)return;let n=this.node.getProps(),i=tf(window,"pointerup",(e,r)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:i}=this.node.getProps();tC(this.node.current,e.target)?n&&n(e,r):i&&i(e,r)},{passive:!(n.onTap||n.onPointerUp)}),s=tf(window,"pointercancel",(e,r)=>this.cancelPress(e,r),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=(0,tp.z)(i,s),this.startPress(e,r)},this.startAccessiblePress=()=>{let e=tl(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=tl(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&tE("up",this.node.getProps().onTap)}),tE("down",(e,r)=>{this.startPress(e,r)}))}),r=tl(this.node.current,"blur",()=>{this.isPressing&&tE("cancel",(e,r)=>this.cancelPress(e,r))});this.removeAccessibleListeners=(0,tp.z)(e,r)}}startPress(e,r){this.isPressing=!0;let{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&n(e,r)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!tb()}cancelPress(e,r){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&n(e,r)}mount(){let e=this.node.getProps(),r=tf(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=tl(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,tp.z)(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let tO=new WeakMap,tR=new WeakMap,tk=e=>{let r=tO.get(e.target);r&&r(e)},tA=e=>{e.forEach(tk)},tM={some:0,all:1};class tL extends tx{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}viewportFallback(){requestAnimationFrame(()=>{this.hasEnteredView=!0;let{onViewportEnter:e}=this.node.getProps();e&&e(null),this.node.animationState&&this.node.animationState.setActive("whileInView",!0)})}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:r,margin:n,amount:i="some",once:s,fallback:o=!0}=e;if("undefined"==typeof IntersectionObserver){o&&this.viewportFallback();return}let a={root:r?r.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:tM[i]};return function(e,r,n){let i=function({root:e,...r}){let n=e||document;tR.has(n)||tR.set(n,{});let i=tR.get(n),s=JSON.stringify(r);return i[s]||(i[s]=new IntersectionObserver(tA,{root:e,...r})),i[s]}(r);return tO.set(e,n),i.observe(e),()=>{tO.delete(e),i.unobserve(e)}}(this.node.current,a,e=>{let{isIntersecting:r}=e;if(this.isInView===r||(this.isInView=r,s&&!r&&this.hasEnteredView))return;r&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",r);let{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=r?n:i;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:r}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:r={}}={}){return n=>e[n]!==r[n]}(e,r))&&this.startObserver()}unmount(){}}var t_=n(48488);function tV(e,r){if(!Array.isArray(r))return!1;let n=r.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(r[i]!==e[i])return!1;return!0}var tD=n(21367),tF=n(52248);let tI=[...f].reverse(),tN=f.length;function tq(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class tz extends tx{constructor(e){super(e),e.animationState||(e.animationState=function(e){let r=r=>Promise.all(r.map(({animation:r,options:n})=>(0,tD.d5)(e,r,n))),n={animate:tq(!0),whileInView:tq(),whileHover:tq(),whileTap:tq(),whileDrag:tq(),whileFocus:tq(),exit:tq()},i=!0,s=(r,n)=>{let i=(0,tF.x)(e,n);if(i){let{transition:e,transitionEnd:n,...s}=i;r={...r,...s,...n}}return r};function o(o,a){let u=e.getProps(),l=e.getVariantContext(!0)||{},c=[],f=new Set,p={},m=1/0;for(let r=0;r<tN;r++){var y;let v=tI[r],g=n[v],b=void 0!==u[v]?u[v]:l[v],x=h(b),w=v===a?g.isActive:null;!1===w&&(m=r);let P=b===l[v]&&b!==u[v]&&x;if(P&&i&&e.manuallyAnimateOnMount&&(P=!1),g.protectedKeys={...p},!g.isActive&&null===w||!b&&!g.prevProp||d(b)||"boolean"==typeof b)continue;let S=(y=g.prevProp,"string"==typeof b?b!==y:!!Array.isArray(b)&&!tV(b,y
13)),C=S||v===a&&g.isActive&&!P&&x||r>m&&x,T=Array.isArray(b)?b:[b],E=T.reduce(s,{});!1===w&&(E={});let{prevResolvedValues:j={}}=g,O={...j,...E},R=e=>{C=!0,f.delete(e),g.needsAnimating[e]=!0};for(let e in O){let r=E[e],n=j[e];p.hasOwnProperty(e)||(r!==n?(0,t_.C)(r)&&(0,t_.C)(n)?!tV(r,n)||S?R(e):g.protectedKeys[e]=!0:void 0!==r?R(e):f.add(e):void 0!==r&&f.has(e)?R(e):g.protectedKeys[e]=!0)}g.prevProp=b,g.prevResolvedValues=E,g.isActive&&(p={...p,...E}),i&&e.blockInitialAnimation&&(C=!1),C&&!P&&c.push(...T.map(e=>({animation:e,options:{type:v,...o}})))}if(f.size){let r={};f.forEach(n=>{let i=e.getBaseTarget(n);void 0!==i&&(r[n]=i)}),c.push({animation:r})}let v=!!c.length;return i&&!1===u.initial&&!e.manuallyAnimateOnMount&&(v=!1),i=!1,v?r(c):Promise.resolve()}return{animateChanges:o,setActive:function(r,i,s){var a;if(n[r].isActive===i)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(r,i)}),n[r].isActive=i;let u=o(s,r);for(let e in n)n[e].protectedKeys={};return u},setAnimateFunction:function(n){r=n(e)},getState:()=>n}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();this.unmount(),d(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:r}=this.node.prevProps||{};e!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let tB=0;class tU extends tx{constructor(){super(...arguments),this.id=tB++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;let s=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});r&&!e&&s.then(()=>r(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}var t$=n(45487),tQ=n(30404),tH=n(86917);let tZ=(e,r)=>Math.abs(e-r);var tW=n(37367);class tG{constructor(e,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{var e,r;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=tJ(this.lastMoveEventInfo,this.history),i=null!==this.startEvent,s=(e=n.offset,r={x:0,y:0},Math.sqrt(tZ(e.x,r.x)**2+tZ(e.y,r.y)**2)>=3);if(!i&&!s)return;let{point:o}=n,{timestamp:a}=tW.frameData;this.history.push({...o,timestamp:a});let{onStart:u,onMove:l}=this.handlers;
13i||(u&&u(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(e,r)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=tK(r,this.transformPagePoint),tQ.Z_.update(this.updatePoint,!0)},this.handlePointerUp=(e,r)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let{onEnd:n,onSessionEnd:i}=this.handlers,s=tJ("pointercancel"===e.type?this.lastMoveEventInfo:tK(r,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,s),i&&i(e,s)},!tc(e))return;this.handlers=r,this.transformPagePoint=n;let i=tK(th(e),this.transformPagePoint),{point:s}=i,{timestamp:o}=tW.frameData;this.history=[{...s,timestamp:o}];let{onSessionStart:a}=r;a&&a(e,tJ(i,this.history)),this.removeListeners=(0,tp.z)(tf(window,"pointermove",this.handlePointerMove),tf(window,"pointerup",this.handlePointerUp),tf(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),tQ.qY.update(this.updatePoint)}}function tK(e,r){return r?{point:r(e.point)}:e}function tY(e,r){return{x:e.x-r.x,y:e.y-r.y}}function tJ({point:e},r){return{point:e,delta:tY(e,tX(r)),offset:tY(e,r[0]),velocity:function(e,r){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null,s=tX(e);for(;n>=0&&(i=e[n],!(s.timestamp-i.timestamp>(0,tH.w)(.1)));)n--;if(!i)return{x:0,y:0};let o=(s.timestamp-i.timestamp)/1e3;if(0===o)return{x:0,y:0};let a={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(r,0)}}function tX(e){return e[e.length-1]}var t1=n(23967),t0=n(80022);function t2(e){return e.max-e.min}function t3(e,r=0,n=.01){return Math.abs(e-r)<=n}function t4(e,r,n,i=.5){e.origin=i,e.originPoint=(0,t0.C)(r.min,r.max,e.origin),e.scale=t2(n)/t2(r),(t3(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=(0,t0.C)(n.min,n.max,e.origin)-e.originPoint,(t3(e.translate)||isNaN(e.translate))&&(e.translate=0)}function t5(e,r,n,i){t4(e.x,r.x,n.x,i?i.originX:void 0),t4(e.y,r.y,n.y,i?i.originY:void 0)}function t9(e,r,n){e.min=n.min+r.min,e.max=e.min+t2(r)}function t6(e,r,n){e.min=r.min-n.min,e.max=e.min+t2(r)}function t7(e,r,n){t6(e.x,r.x,n.x),t6(e.y,r.y,n.y)}var t8=n(24169);function et(e,r,n){return{min:void 0!==r?e.min+r:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function ee(e,r){let n=r.min-e.min,i=r.max-e.max;return r.max-r.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function er(e,r,n){return{min:en(e,r),max:en(e,n)}}function en(e,r){return"number"==typeof e?e:e[r]||0}let ei=()=>({translate:0,scale:1,origin:0,originPoint:0}),es=()=>({x:ei(),y:ei()}),eo=()=>({min:0,max:0}),ea=()=>({x:eo(),y:eo()});function eu(e){return[e("x"),e("y")]}function el({top:e,left:r,right:n,bottom:i}){return{x:{min:r,max:n},y:{min:e,max:i}}}function ec(e){return void 0===e||1===e}function eh({scale:e,scaleX:r,scaleY:n}){return!ec(e)||!ec(r)||!ec(n)}function ed(e){return eh(e)||ef(e)||e.z||e.rotate||e.rotateX||e.rotateY}function ef(e){var r,n;return(r=e.x)&&"0%"!==r||(n=e.y)&&"0%"!==n}function ep(e,r,n,i,s){return void 0!==s&&(e=i+s*(e-i)),i+n*(e-i)+r}function em(e,r=0,n=1,i,s){e.min=ep(e.min,r,n,i,s),e.max=ep(e.max,r,n,i,s)}function ey(e,{x:r,y:n}){em(e.x,r.translate,r.scale,r.originPoint),em(e.y,n.translate,n.scale,n.originPoint)}function ev(e){return Number.isInteger(e)?e:e>1.0000000000001||e<.999999999999?e:1}function eg(e,r){e.min=e.min+r,e.max=e.max+r}function eb(e,r,[n,i,s]){let o=void 0!==r[s]?r[s]:.5,a=(0,t0.C)(e.min,e.max,o);em(e,r[n],r[i],a,r.scale)}let ex=["x","scaleX","originX"],ew=["y","scaleY","originY"];function eP(e,r){eb(e.x,r,ex),eb(e.y,r,ew)}function eS(e,r){return el(function(e,r){if(!r)return e;let n=r({x:e.left,y:e.top}),i=r({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(e.getBoundingClientRect(),r))}var eC=n(8046);let eT=new WeakMap;class eE{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=ea(),this.visualElement=e}start(e,{snapToCursor:r=!1}={}){let{presenceContext:n}=this.visualElement;n&&!1===n.isPresent||(this.panSession=new tG(e,{onSessionStart:e=>{this.stopAnimation(),r&&this.snapToCursor(th(e,"page").point)},onStart:(e,r)=>{let{drag:n,dragPropagation:i,onDragStart:s}=this.getProps();if(n&&!i&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=tg(n),!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),eu(e=>{let r=this.getAxisMotionValue(e).get()||0;if($.aQ.test(r)){let{projection:n}=this.visualElement;if(n&&n.layout){let i=n.layout.layoutBox[e];if(i){let e=t2(i);r=parseFloat(r)/100*e}}}this.originPoint[e]=r}),s&&s(e,r);let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,r)=>{let{dragPropagation:n,dragDirectionLock:i,onDirectionLock:s,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:a}=r;if(i&&null===this.currentDirection){this.currentDirection=function(e,r=10){let n=null;return Math.abs(e.y)>r?n="y":Math.abs(e.x)>r&&(n="x"),n}(a),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",r.point,a),this.updateAxis("y",r.point,a),this.visualElement.render(),o&&o(e,r)},onSessionEnd:(e,r)=>this.stop(e,r)},{transformPagePoint:this.visualElement.getTransformPagePoint()}))}stop(e,r){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:i}=r;this.startAnimation(i);let{onDragEnd:s}=this.getProps();s&&s(e,r)}cancel(){this.isDragging=!1;let{projection:e,animationState:r}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(e,r,n){let{drag:i}=this.getProps();if(!n||!ej(e,i,this.currentDirection))return;let s=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:r,max:n},i){return void 0!==r&&e<r?e=i?(0,t0.C)(r,e,i.min):Math.max(e,r):void 0!==n&&e>n&&(e=i?(0,t0.C)(n,e,i.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),s.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;e&&c(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:r,left:n,bottom:i,right:s}){return{x:et(e.x,n,s),y:et(e.y,r,i)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:er(e,"left","right"),y:er(e,"top","bottom")}}(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&eu(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,r){let n={};return void 0!==r.min&&(n.min=r.min-e.min),void 0!==r.max&&(n.max=r.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:r,onMeasureDragConstraints:n}=this.getProps();if(!r||!c(r))return!1;let i=r.current;(0,t$.k)(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let o=function(e,r,n){let i=eS(e,n),{scroll:s}=r;return s&&(eg(i.x,s.offset.x),eg(i.y,s.offset.y)),i}(i,s.root,this.visualElement.getTransformPagePoint()),a={x:ee((e
13=s.layout.layoutBox).x,o.x),y:ee(e.y,o.y)};if(n){let e=n(function({x:e,y:r}){return{top:r.min,right:e.max,bottom:r.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=el(e))}return a}startAnimation(e){let{drag:r,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),u=this.constraints||{};return Promise.all(eu(a=>{if(!ej(a,r,this.currentDirection))return;let l=u&&u[a]||{};o&&(l={min:0,max:0});let c={type:"inertia",velocity:n?e[a]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(a,c)})).then(a)}startAxisValueAnimation(e,r){let n=this.getAxisMotionValue(e);return n.start((0,eC.Z)(e,n,0,r))}stopAnimation(){eu(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let r="_drag"+e.toUpperCase(),n=this.visualElement.getProps();return n[r]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){eu(r=>{let{drag:n}=this.getProps();if(!ej(r,n,this.currentDirection))return;let{projection:i}=this.visualElement,s=this.getAxisMotionValue(r);if(i&&i.layout){let{min:n,max:o}=i.layout.layoutBox[r];s.set(e[r]-(0,t0.C)(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!c(r)||!n||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};eu(e=>{let r=this.getAxisMotionValue(e);if(r){let n=r.get();i[e]=function(e,r){let n=.5,i=t2(e),s=t2(r);return s>i?n=(0,t1.Y)(r.min,r.max-i,e.min):i>s&&(n=(0,t1.Y)(e.min,e.max-s,r.min)),(0,t8.u)(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),eu(r=>{if(!ej(r,e,null))return;let n=this.getAxisMotionValue(r),{min:s,max:o}=this.constraints[r];n.set((0,t0.C)(s,o,i[r]))})}addListeners(){if(!this.visualElement.current)return;eT.set(this.visualElement,this);let e=tf(this.visualElement.current,"pointerdown",e=>{let{drag:r,dragListener:n=!0}=this.getProps();r&&n&&this.start(e)}),r=()=>{let{dragConstraints:e}=this.getProps();c(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",r);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),r();let s=tl(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:r})=>{this.isDragging&&r&&(eu(r=>{let n=this.getAxisMotionValue(r);n&&(this.originPoint[r]+=e[r].translate,n.set(n.get()+e[r].translate))}),this.visualElement.render())});return()=>{s(),e(),i(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function ej(e,r,n){return(!0===r||r===e)&&(null===n||n===e)}class eO extends tx{constructor(e){super(e),this.removeGroupControls=tT.Z,this.removeListeners=tT.Z,this.controls=new eE(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tT.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}class eR extends tx{constructor(){super(...arguments),this.removePointerDownListener=tT.Z}onPointerDown(e){this.session=new tG(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:r,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:e,onStart:r,onMove:n,onEnd:(e,r)=>{delete this.session,i&&i(e,r)}}}mount(){this.removePointerDownListener=tf(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function ek(e,r){return r.max===r.min?0:e/(r.max-r.min)*100}let eA={correct:(e,r)=>{if(!r.target)return e;if("string"==typeof e){if(!$.px.test(e))return e;e=parseFloat(e)}let n=ek(e,r.target.x),i=ek(e,r.target.y);return`${n}% ${i}%`}},eM=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function eL(e,r,n=1){(0,t$.k)(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[i,s]=function(e){let r=eM.exec(e);if(!r)return[,];let[,n,i]=r;return[n,i]}(e);if(!i)return;let o=window.getComputedStyle(r).getPropertyValue(i);return o?o.trim():F(s)?eL(s,r,n+1):s}var e_=n(51550);let eV="_$css",eD={correct:(e,{treeScale:r,projectionDelta:n})=>{let i=e,s=e.includes("var("),o=[];s&&(e=e.replace(eM,e=>(o.push(e),eV)));let a=e_.P.parse(e);if(a.length>5)return i;let u=e_.P.createTransformer(e),l="number"!=typeof a[0]?1:0,c=n.x.scale*r.x,h=n.y.scale*r.y;a[0+l]/=c,a[1+l]/=h;let d=(0,t0.C)(c,h,.5);"number"==typeof a[2+l]&&(a[2+l]/=d),"number"==typeof a[3+l]&&(a[3+l]/=d);let f=u(a);if(s){let e=0;f=f.replace(eV,()=>{let r=o[e];return e++,r})}return f}};class eF extends i.Component{componentDidMount(){let{visualElement:e,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=e;Object.assign(R,eN),s&&(r.group&&r.group.add(s),n&&n.register&&i&&n.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),P.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:r,visualElement:n,drag:i,isPresent:s}=this.props,o=n.projection;return o&&(o.isPresent=s,i||e.layoutDependency!==r||void 0===r?o.willUpdate():this.safeToRemove(),e.isPresent===s||(s?o.promote():o.relegate()||tQ.Z_.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:e,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function eI(e){let[r,n]=function(){let e=(0,i.useContext)(a.O);if(null===e)return[!0,null];let{isPresent:r,onExitComplete:n,register:s}=e,o=(0,i.useId)();return(0,i.useEffect)(()=>s(o),[]),!r&&n?[!1,()=>n&&n(o)]:[!0]}(),s=(0,i.useContext)(C.p);return i.createElement(eF,{...e,layoutGroup:s,switchLayoutGroup:(0,i.useContext)(T),isPresent:r,safeToRemove:n})}let eN={borderRadius:{...eA,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eA,borderTopRightRadius:eA,borderBottomLeftRadius:eA,borderBottomRightRadius:eA,boxShadow:eD};var eq=n(33234),ez=n(21560),eB=n(27255);let eU=["TopLeft","TopRight","BottomLeft","BottomRight"],e$=eU.length,eQ=e=>"string"==typeof e?parseFloat(e):e,eH=e=>"number"==typeof e||$.px.test(e);function eZ(e,r){return void 0!==e[r]?e[r]:e.borderRadius}let eW=eK(0,.5,eB.Bn),eG=eK(.5,.95,tT.Z);function eK(e,r,n){return i=>i<e?0:i>r?1:n((0,t1.Y)(e,r,i))}function eY(e,r){e.min=r.min,e.max=r.max}function eJ(e,r){eY(e.x,r.x),eY(e.y,r.y)}function eX(e,r,n,i,s){return e-=r,e=i+1/n*(e-i),void 0!==s&&(e=i+1/s*(e-i)),e}function e1(e,r,[n,i,s],o,a){!function(e,r=0,n=1,i=.5,s,o=e,a=e){if($.aQ.test(r)&&(r=parseFloat(r),r=(0,t0.C)(a.min,a.max,r/100)-a.min),"number"!=typeof r)return;let u=(0,t0.C)(o.min,o.max,i);e===o&&(u-=r),e.min=eX(e.min,r,n,u,s),e.max=eX(e.max,r,n,u,s)}(e,r[n],r[i],r[s],r.scale,o,a)}let e0=["x","scaleX","originX"],e2=["y","scaleY","originY"];function e3(e,r,n,i){e1(e.x,r,e0,n?n.x:void 0,i?i.x:void 0),e1(e.y,r,e2,n?n.y:void 0,i?i.y:void 0)}var e4=n(31056);function e5(e){return 0===e.translate&&1===e.scale}function e9(e){return e5(e.x)&&e5(e.y)}function e6(e,r){return e.x.min===r.x.min&&e.x.max===r.x.max&&e.y.min===r.y.min&&e.y.max===r.y.max}function e7(e){return t2(e.x)/t2(e.y)}var e8=n(10010);class rt{constructor(){this.members=[]}add(e){(0,e8.y4)(this.members,e),e.scheduleRender()}remove(e){if((0,e8.cl)(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let r;let n=this.members.findIndex(r=>e===r);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){r=n;break}}return!!r&&(this.promote(r),!0)}promote(e,r){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,r&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:i}=e.options;!1===i&&n.hide()}}
13exitAnimationComplete(){this.members.forEach(e=>{let{options:r,resumingFrom:n}=e;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function re(e,r,n){let i="",s=e.x.translate/r.x,o=e.y.translate/r.y;if((s||o)&&(i=`translate3d(${s}px, ${o}px, 0) `),(1!==r.x||1!==r.y)&&(i+=`scale(${1/r.x}, ${1/r.y}) `),n){let{rotate:e,rotateX:r,rotateY:s}=n;e&&(i+=`rotate(${e}deg) `),r&&(i+=`rotateX(${r}deg) `),s&&(i+=`rotateY(${s}deg) `)}let a=e.x.scale*r.x,u=e.y.scale*r.y;return(1!==a||1!==u)&&(i+=`scale(${a}, ${u})`),i||"none"}let rr=(e,r)=>e.depth-r.depth;class rn{constructor(){this.children=[],this.isDirty=!1}add(e){(0,e8.y4)(this.children,e),this.isDirty=!0}remove(e){(0,e8.cl)(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(rr),this.isDirty=!1,this.children.forEach(e)}}var ri=n(63378);let rs=["","X","Y","Z"],ro=0,ra={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ru({attachResizeListener:e,defaultParent:r,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(e,n={},i=null==r?void 0:r()){this.id=ro++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{ra.totalNodes=ra.resolvedTargetDeltas=ra.recalculatedProjection=0,this.nodes.forEach(rh),this.nodes.forEach(rv),this.nodes.forEach(rg),this.nodes.forEach(rd),window.MotionDebug&&window.MotionDebug.record(ra)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=e,this.latestValues=n,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new rn)}addEventListener(e,r){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ez.L),this.eventHandlers.get(e).add(r)}notifyListeners(e,...r){let n=this.eventHandlers.get(e);n&&n.notify(...r)}hasListeners(e){return this.eventHandlers.has(e)}registerPotentialNode(e,r){this.potentialNodes.set(e,r)}mount(r,n=!1){if(this.instance)return;this.isSVG=r instanceof SVGElement&&"svg"!==r.tagName,this.instance=r;let{layoutId:i,layout:s,visualElement:o}=this.options;if(o&&!o.current&&o.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),n&&(s||i)&&(this.isLayoutDirty=!0),e){let n;let i=()=>this.root.updateBlockedByResize=!1;e(r,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=(0,ri.g)(i,250),P.hasAnimatedSinceResize&&(P.hasAnimatedSinceResize=!1,this.nodes.forEach(ry))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&o&&(i||s)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:r,hasRelativeTargetChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||o.getDefaultTransition()||rC,{onLayoutAnimationStart:a,onLayoutAnimationComplete:u}=o.getProps(),l=!this.targetLayout||!e6(this.targetLayout,i)||n,c=!r&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||r&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);let r={...(0,e4.ev)(s,"layout"),onPlay:a,onComplete:u};(o.shouldReduceMotion||this.options.layoutRoot)&&(r.delay=0,r.type=!1),this.startAnimation(r)}else r||0!==this.animationProgress||ry(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,tQ.qY.preRender(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.forEac
13h(rb),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let r=this.path[e];r.shouldResetTransform=!0,r.updateScroll("snapshot"),r.options.layoutRoot&&r.willUpdate(!1)}let{layoutId:r,layout:n}=this.options;if(void 0===r&&!n)return;let i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rp);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(rT),this.potentialNodes.clear()),this.nodes.forEach(rm),this.nodes.forEach(rl),this.nodes.forEach(rc),this.clearAllSnapshots(),tQ.iW.update(),tQ.iW.preRender(),tQ.iW.render())}clearAllSnapshots(){this.nodes.forEach(rf),this.sharedNodes.forEach(rx)}scheduleUpdateProjection(){tQ.Z_.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){tQ.Z_.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(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();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ea(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:r}=this.options;r&&r.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let r=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(r=!1),r&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:i(this.instance),offset:n(this.instance)})}resetTransform(){if(!s)return;let e=this.isLayoutDirty||this.shouldResetTransform,r=this.projectionDelta&&!e9(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,o=i!==this.prevTransformTemplateValue;e&&(r||ed(this.latestValues)||o)&&(s(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var r;let n=this.measurePageBox(),i=this.removeElementScroll(n);return e&&(i=this.removeTransform(i)),rE((r=i).x),rE(r.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return ea();let r=e.measureViewportBox(),{scroll:n}=this.root;return n&&(eg(r.x,n.offset.x),eg(r.y,n.offset.y)),r}removeElementScroll(e){let r=ea();eJ(r,e);for(let n=0;n<this.path.length;n++){let i=this.path[n],{scroll:s,options:o}=i;if(i!==this.root&&s&&o.layoutScroll){if(s.isRoot){eJ(r,e);let{scroll:n}=this.root;n&&(eg(r.x,-n.offset.x),eg(r.y,-n.offset.y))}eg(r.x,s.offset.x),eg(r.y,s.offset.y)}}return r}applyTransform(e,r=!1){let n=ea();eJ(n,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];!r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&eP(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),ed(i.latestValues)&&eP(n,i.latestValues)}return ed(this.latestValues)&&eP(n,this.latestValues),n}removeTransform(e){let r=ea();eJ(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!ed(n.latestValues))continue;eh(n.latestValues)&&n.updateSnapshot();let i=ea();eJ(i,n.measurePageBox()),e3(r,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,i)}return ed(this.latestValues)&&e3(r,this.latestValues),r}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}resolveTargetDelta(){var e,r,n,i;let s=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isS
13haredProjectionDirty),!((this.resumingFrom||this!==s)&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:o,layoutId:a}=this.options;if(this.layout&&(o||a)){if(!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout?(this.relativeParent=e,this.relativeTarget=ea(),this.relativeTargetOrigin=ea(),t7(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),eJ(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=ea(),this.targetWithTransforms=ea()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(r=this.target,n=this.relativeTarget,i=this.relativeParent.target,t9(r.x,n.x,i.x),t9(r.y,n.y,i.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):eJ(this.target,this.layout.layoutBox),ey(this.target,this.targetDelta)):eJ(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target?(this.relativeParent=e,this.relativeTarget=ea(),this.relativeTargetOrigin=ea(),t7(this.relativeTargetOrigin,this.target,e.target),eJ(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ra.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||eh(this.parent.latestValues)||ef(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let r=this.getLead(),n=!!this.resumingFrom||this!==r,i=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(i=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),i)return;let{layout:s,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||o))return;eJ(this.layoutCorrected,this.layout.layoutBox),function(e,r,n,i=!1){let s,o;let a=n.length;if(a){r.x=r.y=1;for(let u=0;u<a;u++){o=(s=n[u]).projectionDelta;let a=s.instance;(!a||!a.style||"contents"!==a.style.display)&&(i&&s.options.layoutScroll&&s.scroll&&s!==s.root&&eP(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(r.x*=o.x.scale,r.y*=o.y.scale,ey(e,o)),i&&ed(s.latestValues)&&eP(e,s.latestValues))}r.x=ev(r.x),r.y=ev(r.y)}}(this.layoutCorrected,this.treeScale,this.path,n);let{target:a}=r;if(!a)return;this.projectionDelta||(this.projectionDelta=es(),this.projectionDeltaWithTransform=es());let u=this.treeScale.x,l=this.treeScale.y,c=this.projectionTransform;t5(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=re(this.projectionDelta,this.treeScale),(this.projectionTransform!==c||this.treeScale.x!==u||this.treeScale.y!==l)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),ra.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,r=!1){let n;let i=this.snapshot,s=i?i.latestValues:{},o={...this.latestValues},a=es();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!r;let u=ea(),l=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),h=!c||c.members.length<=1,d=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(rS));this.animationProgress=0,this.mixTargetDelta=r=>{var i,c;let f=r/1e3;rw(a.x,e.x,f),rw(a.y,e.y,f),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(t7(u,this.layout.layoutBox,this.relativeParent.layout.layoutBox),i=this.relativeTarget,c=this.relativeTargetOrigin,rP(i.x,c.x,u.x,f),rP(i.y,c.y,u.y,f),n&&e6(this.relativeTarget,n)&&(this.isProjectionDirty=!1),n||(n=ea()),eJ(n,this.relativeTarget)),l&&(this.animationValues=o,function(e,r,n,i,s,o){s?(e.opacity=(0,t0.C)(0,void 0!==n.opacity?n.opacity:1,eW(i)),e.opacityExit=(0,t0.C)(void 0!==r.opacity?r.opacity:1,0,eG(i))):o&&(e.opacity=(0,t0.C)(void 0!==r.opacity?r.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let s=0;s<e$;s++){let o=`border${eU[s]}Radius`,a=eZ(r,o),u=eZ(n,o);(void 0!==a||void 0!==u)&&(a||(a=0),u||(u=0),0===a||0===u||eH(a)===eH(u)?(e[o]=Math.max((0,t0.C)(eQ(a),eQ(u),i),0),($.aQ.test(u)||$.aQ.test(a))&&(e[o]+="%")):e[o]=u)}(r.rotate||n.rotate)&&(e.rotate=(0,t0.C)(r.rotate||0,n.rotate||0,i))}(o,s,this.latestValues,f,d,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=f},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&&(tQ.qY.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tQ.Z_.update(()=>{P.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,r,n={}){let i=(0,M.i)(0)?0:(0,eq.B)(0);return i.start((0,eC.Z)("",i,1e3,n)),{stop:()=>i.stop(),isAnimating:()=>i.isAnimating()}}(0,0,{...e,onUpdate:r=>{this.mixTargetDelta(r),e.onUpdate&&e.onUpdate(r)},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);let 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(){let e=this.getLead(),{targetWithTransforms:r,target:n,layout:i,latestValues:s}=e;
13if(r&&n&&i){if(this!==e&&this.layout&&i&&rj(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||ea();let r=t2(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+r;let i=t2(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+i}eJ(r,n),eP(r,s),t5(this.projectionDeltaWithTransform,this.layoutCorrected,r,s)}}registerSharedNode(e,r){this.sharedNodes.has(e)||this.sharedNodes.set(e,new rt),this.sharedNodes.get(e).add(r);let n=r.options.initialPromotionConfig;r.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(r):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:r}=this.options;return r&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:r}=this.options;return r?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:r,preserveFollowOpacity:n}={}){let i=this.getStack();i&&i.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let r=!1,{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(r=!0),!r)return;let i={};for(let r=0;r<rs.length;r++){let s="rotate"+rs[r];n[s]&&(i[s]=n[s],e.setStaticValue(s,0))}for(let r in e.render(),i)e.setStaticValue(r,i[r]);e.scheduleRender()}getProjectionStyles(e={}){var r,n;let i={};if(!this.instance||this.isSVG)return i;if(!this.isVisible)return{visibility:"hidden"};i.visibility="";let s=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=ts(e.pointerEvents)||"",i.transform=s?s(this.latestValues,""):"none",i;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let r={};return this.options.layoutId&&(r.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,r.pointerEvents=ts(e.pointerEvents)||""),this.hasProjected&&!ed(this.latestValues)&&(r.transform=s?s({},""):"none",this.hasProjected=!1),r}let a=o.animationValues||o.latestValues;this.applyTransformsToTarget(),i.transform=re(this.projectionDeltaWithTransform,this.treeScale,a),s&&(i.transform=s(a,i.transform));let{x:u,y:l}=this.projectionDelta;for(let e in i.transformOrigin=`${100*u.origin}% ${100*l.origin}% 0`,o.animationValues?i.opacity=o===this?null!==(n=null!==(r=a.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:i.opacity=o===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,R){if(void 0===a[e])continue;let{correct:r,applyTo:n}=R[e],s="none"===i.transform?a[e]:r(a[e],o);if(n){let e=n.length;for(let r=0;r<e;r++)i[n[r]]=s}else i[e]=s}return this.options.layoutId&&(i.pointerEvents=o===this?ts(e.pointerEvents)||"":"none"),i}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var r;return null===(r=e.currentAnimation)||void 0===r?void 0:r.stop()}),this.root.nodes.forEach(rp),this.root.sharedNodes.clear()}}}function rl(e){e.updateLayout()}function rc(e){var r;let n=(null===(r=e.resumeFrom)||void 0===r?void 0:r.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;"size"===s?eu(e=>{let i=o?n.measuredBox[e]:n.layoutBox[e],s=t2(i);i.min=r[e].min,i.max=i.min+s}):rj(s,n.layoutBox,r)&&eu(e=>{let i=o?n.measuredBox[e]:n.layoutBox[e],s=t2(r[e]);i.max=i.min+s});let a=es();t5(a,r,n.layoutBox);let u=es();o?t5(u,e.applyTransform(i,!0),n.measuredBox):t5(u,r,n.layoutBox);let l=!e9(a),c=!1;if(!e.resumeFrom){let i=e.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:s,layout:o}=i;if(s&&o){let a=ea();t7(a,n.layoutBox,s.layoutBox);let u=ea();t7(u,r,o.layoutBox),e6(a,u)||(c=!0),i.options.layoutRoot&&(e.relativeTarget=u,e.relativeTargetOrigin=a,e.relativeParent=i)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){let{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function rh(e){ra.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function rd(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function rf(e){e.clearSnapshot()}function rp(e){e.clearMeasurements()}function rm(e){let{visualElement:r}=e.options;r&&r.getProps().onBeforeLayoutMeasure&&r.notify("BeforeLayoutMeasure"),e.resetTransform()}function ry(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function rv(e){e.resolveTargetDelta()}function rg(e){e.calcProjection()}function rb(e){e.resetRotation()}function rx(e){e.removeLeadSnapshot()}function rw(e,r,n){e.translate=(0,t0.C)(r.translate,0,n),e.scale=(0,t0.C)(r.scale,1,n),e.origin=r.origin,e.originPoint=r.originPoint}function rP(e,r,n,i){e.min=(0,t0.C)(r.min,n.min,i),e.max=(0,t0.C)(r.max,n.max,i)}function rS(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let rC={duration:.45,ease:[.4,0,.1,1]};function rT(e,r){let n=e.root;for(let r=e.path.length-1;r>=0;r--)if(e.path[r].instance){n=e.path[r];break}
13let i=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${r}"]`);i&&e.mount(i,!0)}function rE(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function rj(e,r,n){return"position"===e||"preserve-aspect"===e&&!t3(e7(r),e7(n),.2)}let rO=ru({attachResizeListener:(e,r)=>tl(e,"resize",r),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rR={current:void 0},rk=ru({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rR.current){let e=new rO(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),rR.current=e}return rR.current},resetTransform:(e,r)=>{e.style.transform=void 0!==r?r:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});var rA=n(2728),rM=n(5759),rL=n(56440),r_=n(61649);let rV=new Set(["width","height","top","left","right","bottom","x","y"]),rD=e=>rV.has(e),rF=e=>Object.keys(e).some(rD),rI=e=>e===r_.Rx||e===$.px,rN=(e,r)=>parseFloat(e.split(", ")[r]),rq=(e,r)=>(n,{transform:i})=>{if("none"===i||!i)return 0;let s=i.match(/^matrix3d\((.+)\)$/);if(s)return rN(s[1],r);{let r=i.match(/^matrix\((.+)\)$/);return r?rN(r[1],e):0}},rz=new Set(["x","y","z"]),rB=k._.filter(e=>!rz.has(e)),rU={width:({x:e},{paddingLeft:r="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(r)-parseFloat(n),height:({y:e},{paddingTop:r="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(r)-parseFloat(n),top:(e,{top:r})=>parseFloat(r),left:(e,{left:r})=>parseFloat(r),bottom:({y:e},{top:r})=>parseFloat(r)+(e.max-e.min),right:({x:e},{left:r})=>parseFloat(r)+(e.max-e.min),x:rq(4,13),y:rq(5,14)},r$=(e,r,n)=>{let i=r.measureViewportBox(),s=getComputedStyle(r.current),{display:o}=s,a={};"none"===o&&r.setStaticValue("display",e.display||"block"),n.forEach(e=>{a[e]=rU[e](i,s)}),r.render();let u=r.measureViewportBox();return n.forEach(n=>{let i=r.getValue(n);i&&i.jump(a[n]),e[n]=rU[n](u,s)}),e},rQ=(e,r,n={},i={})=>{r={...r},i={...i};let s=Object.keys(r).filter(rD),o=[],a=!1,u=[];if(s.forEach(s=>{let l;let c=e.getValue(s);if(!e.hasValue(s))return;let h=n[s],d=(0,rL.C)(h),f=r[s];if((0,t_.C)(f)){let e=f.length,r=null===f[0]?1:0;h=f[r],d=(0,rL.C)(h);for(let n=r;n<e;n++)l?(0,t$.k)((0,rL.C)(f[n])===l,"All keyframes must be of the same type"):(l=(0,rL.C)(f[n]),(0,t$.k)(l===d||rI(d)&&rI(l),"Keyframes must be of the same dimension as the current value"))}else l=(0,rL.C)(f);if(d!==l){if(rI(d)&&rI(l)){let e=c.get();"string"==typeof e&&c.set(parseFloat(e)),"string"==typeof f?r[s]=parseFloat(f):Array.isArray(f)&&l===$.px&&(r[s]=f.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==l?void 0:l.transform)&&(0===h||0===f)?0===h?c.set(l.transform(h)):r[s]=d.transform(f):(a||(o=function(e){let r=[];return rB.forEach(n=>{let i=e.getValue(n);void 0!==i&&(r.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),r.length&&e.render(),r}(e),a=!0),u.push(s),i[s]=void 0!==i[s]?i[s]:r[s],c.jump(f))}}),!u.length)return{target:r,transitionEnd:i};{let n=u.indexOf("height")>=0?window.pageYOffset:null,s=r$(r,e,u);return o.length&&o.forEach(([r,n])=>{e.getValue(r).set(n)}),e.render(),x.j&&null!==n&&window.scrollTo({top:n}),{target:s,transitionEnd:i}}},rH=(e,r,n,i)=>{var s,o;let a=function(e,{...r},n){let i=e.current;if(!(i instanceof Element))return{target:r,transitionEnd:n};for(let s in n&&(n={...n}),e.values.forEach(e=>{let r=e.get();if(!F(r))return;let n=eL(r,i);n&&e.set(n)}),r){let e=r[s];if(!F(e))continue;let o=eL(e,i);o&&(r[s]=o,n&&void 0===n[s]&&(n[s]=e))}return{target:r,transitionEnd:n}}(e,r,i);return r=a.target,i=a.transitionEnd,s=r,o=i,rF(s)?rQ(e,s,n,o):{target:s,transitionEnd:o}},rZ={current:null},rW={current:!1};var rG=n(12490);let rK=Object.keys(b),rY=rK.length,rJ=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],rX=p.length;class r1{constructor({parent:e,props:r,presenceContext:n,reducedMotionConfig:i,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>tQ.Z_.render(this.render,!1,!0);let{latestValues:a,renderState:u}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=r.initial?{...a}:{},this.renderState=u,this.parent=e,this.props=r,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.isControllingVariants=m(r),this.isVariantNode=y(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:l,...c}=this.scrapeMotionValuesFromProps(r,{});for(let e in c){let r=c[e];void 0!==a[e]&&(0,M.i)(r)&&(r.set(a[e],!1),(0,rG.L)(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,r){return{}}mount(e){this.current=e,this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
13h((e,r)=>this.bindToMotionValue(r,e)),rW.current||function(){if(rW.current=!0,x.j){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),r=()=>rZ.current=e.matches;e.addListener(r),r()}else rZ.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rZ.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),tQ.qY.update(this.notifyUpdate),tQ.qY.render(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,r){let n=k.G.has(e),i=r.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&tQ.Z_.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),s()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...r},n,i,s,o){let a,u;for(let e=0;e<rY;e++){let n=rK[e],{isEnabled:i,Feature:s,ProjectionNode:o,MeasureLayout:l}=b[n];o&&(a=o),i(r)&&(!this.features[n]&&s&&(this.features[n]=new s(this)),l&&(u=l))}if(!this.projection&&a){this.projection=new a(s,this.latestValues,this.parent&&this.parent.projection);let{layoutId:e,layout:n,drag:i,dragConstraints:u,layoutScroll:l,layoutRoot:h}=r;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:!!i||u&&c(u),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:l,layoutRoot:h})}return u}updateFeatures(){for(let e in this.features){let r=this.features[e];r.isMounted?r.update(this.props,this.prevProps):(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ea()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,r){this.latestValues[e]=r}makeTargetAnimatable(e,r=!0){return this.makeTargetAnimatableFromInstance(e,this.props,r)}update(e,r){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let r=0;r<rJ.length;r++){let n=rJ[r];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i=e["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(e,r,n){let{willChange:i}=r;for(let s in r){let o=r[s],a=n[s];if((0,M.i)(o))e.addValue(s,o),(0,rG.L)(i)&&i.add(s);else if((0,M.i)(a))e.addValue(s,(0,eq.B)(o,{owner:e})),(0,rG.L)(i)&&i.remove(s);else if(a!==o){if(e.hasValue(s)){let r=e.getValue(s);r.hasAnimated||r.set(o)}else{let r=e.getStaticValue(s);e.addValue(s,(0,eq.B)(void 0!==r?r:o,{owner:e}))}}}for(let i in n)void 0===r[i]&&e.removeValue(i);return r}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),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){let e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}let r={};for(let e=0;e<rX;e++){let n=p[e],i=this.props[n];(h(i)||!1===i)&&(r[n]=i)}return r}addVariantChild(e){let r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(e),()=>r.variantChildren.delete(e)}addValue(e,r){r!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,r)),this.values.set(e,r),this.latestValues[e]=r.get()}removeValue(e){this.values.delete(e);let r=this.valueSubscriptions.get(e);r&&(r(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,r){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==r&&(n=(0,eq.B)(r,{owner:this}),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,r){this.baseTarget[e]=r}getBaseTarget(e){var r;let{initial:n}=this.props,i="string"==typeof n||"object"==typeof n?null===(r=(0,tn.o)(this.props,n))||void 0===r?void 0:r[e]:void 0;if(n&&void 0!==i)return i;let s=this.getBaseTargetFromProps(this.props,e);return void 0===s||(0,M.i)(s)?void 0!==this.initialValues[e]&&void 0===i?void 0:this.baseTarget[e]:s}on(e,r){return this.events[e]||(this.events[e]=new ez.L),this.events[e].add(r)}notify(e,...r){this.events[e]&&this.events[e].notify(...r)}}class r0 extends r1{sortInstanceNodePosition(e,r){return 2&e.compareDocumentPosition(r)?1:-1}getBaseTargetFromProps(e,r){return e.style?e.style[r]:void 0}removeValueFromRenderState(e,{vars:r,style:n}){delete r[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:r,...n},{transformValues:i},s){let o=(0,rM.P$)(n,e||{},this);if(i&&(r&&(r=i(r)),n&&(n=i(n)),o&&(o=i(o))),s){(0,rM.GJ)(this,n,o);let e=rH(this,n,o,r);r=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:r,...n}}}class r2 extends r0{readValueFromInstance(e,r){if(k.G.has(r)){let e=(0,rA.A)(r);return e&&e.default||0}{let n=window.getComputedStyle(e),i=(D(r)?n.getPropertyValue(r):n[r])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:r}){return eS(e,r)}build(e,r,n,i){q(e,r,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,r){return te(e,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;(0,M.i)(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,r,n,i){J(e,r,n,i)}}class r3 extends r0{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,r){return e[r]}readValueFromInstance(e,r){if(k.G.has(r)){let e=(0,rA.A)(r);return e&&e.default||0}return r=X.has(r)?r:(0,Y.D)(r),e.getAttribute(r)}measureInstanceViewportBox(){return ea()}scrapeMotionValuesFromProps(e,r){return tr(e,r)}build(e,r,n,i){W(e,r,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,r,n,i){tt(e,r,n,i)}mount(e){this.isSVGTag=K(e.tagName),super.mount(e)}}let r4=(e,r)=>O(e)?new r3(r,{enableHardwareAcceleration:!1}):new r2(r,{enableHardwareAcceleration:!0}),r5={animation:{Feature:tz},exit:{Feature:tU},inView:{Feature:tL},tap:{Feature:tj},focus:{Feature:tS},hover:{Feature:tP},pan:{Feature:eR},drag:{Feature:eO,ProjectionNode:rk,MeasureLayout:eI},layout:{ProjectionNode:rk,MeasureLayout:eI}},r9=function(e){function r(r,n={}){return function({preloadedFeatures:e,createVisualElement:r,useRender:n,useVisualState:d,Component:f}){e&&function(e){for(let r in e)b[r]={...b[r],...e[r]}}(e);let p=(0,i.forwardRef)(function(p,y){var g;let b;let E={...(0,i.useContext)(s._),...p,layoutId:function({layoutId:e}){let r=(0,i.useContext)(C.p).id;return r&&void 0!==e?r+"-"+e:e}(p)},{isStatic:j}=E,O=function(e){let{initial:r,animate:n}=function(e,r){if(m(e)){let{initial:r,animate:n}=e;return{initial:!1===r||h(r)?r:void 0,animate:h(n)?n:void 0}}return!1!==e.inherit?r:{}}(e,(0,i.useContext)(o));return(0,i.useMemo)(()=>({initial:r,animate:n}),[v(r),v(n)])}(p),R=j?void 0:(0,w.h)(()=>
13{if(P.hasEverUpdated)return S++}),k=d(p,j);if(!j&&x.j){O.visualElement=function(e,r,n,c){let h=(0,i.useContext)(o).visualElement,d=(0,i.useContext)(l),f=(0,i.useContext)(a.O),p=(0,i.useContext)(s._).reducedMotion,m=(0,i.useRef)();c=c||d.renderer,!m.current&&c&&(m.current=c(e,{visualState:r,parent:h,props:n,presenceContext:f,blockInitialAnimation:!!f&&!1===f.initial,reducedMotionConfig:p}));let y=m.current;return(0,i.useInsertionEffect)(()=>{y&&y.update(n,f)}),(0,u.L)(()=>{y&&y.render()}),(0,i.useEffect)(()=>{y&&y.updateFeatures()}),(window.HandoffAppearAnimations?u.L:i.useEffect)(()=>{y&&y.animationState&&y.animationState.animateChanges()}),y}(f,k,E,r);let n=(0,i.useContext)(T),c=(0,i.useContext)(l).strict;O.visualElement&&(b=O.visualElement.loadFeatures(E,c,e,R,n))}return i.createElement(o.Provider,{value:O},b&&O.visualElement?i.createElement(b,{visualElement:O.visualElement,...E}):null,n(f,p,R,(g=O.visualElement,(0,i.useCallback)(e=>{e&&k.mount&&k.mount(e),g&&(e?g.mount(e):g.unmount()),y&&("function"==typeof y?y(e):c(y)&&(y.current=e))},[g])),k,j,O.visualElement))});return p[E]=f,p}(e(r,n))}if("undefined"==typeof Proxy)return r;let n=new Map;return new Proxy(r,{get:(e,i)=>(n.has(i)||n.set(i,r(i)),n.get(i))})}((e,r)=>(function(e,{forwardMotionProps:r=!1},n,s){return{...O(e)?ta:tu,preloadedFeatures:n,useRender:function(e=!1){return(r,n,s,o,{latestValues:a},u)=>{let l=(O(r)?function(e,r,n,s){let o=(0,i.useMemo)(()=>{let n=G();return W(n,r,{enableHardwareAcceleration:!1},K(s),e.transformTemplate),{...n.attrs,style:{...n.style}}},[r]);if(e.style){let r={};B(r,e.style,e),o.style={...r,...o.style}}return o}:function(e,r,n){let s={},o=function(e,r,n){let s=e.style||{},o={};return B(o,s,e),Object.assign(o,function({transformTemplate:e},r,n){return(0,i.useMemo)(()=>{let i=z();return q(i,r,{enableHardwareAcceleration:!n},e),Object.assign({},i.vars,i.style)},[r])}(e,r,n)),e.transformValues?e.transformValues(o):o}(e,r,n);return e.drag&&!1!==e.dragListener&&(s.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(s.tabIndex=0),s.style=o,s})(n,a,u,r),c={...(0,U.L)(n,"string"==typeof r,e),...l,ref:o},{children:h}=n,d=(0,i.useMemo)(()=>(0,M.i)(h)?h.get():h,[h]);return s&&(c["data-projection-id"]=s),(0,i.createElement)(r,{...c,children:d})}}(r),createVisualElement:s,Component:e}})(e,r,r5,r4))},93193:function(e,r,n){"use strict";n.d(r,{D:function(){return i}});let i=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},91492:function(e,r,n){"use strict";n.d(r,{L:function(){return u},K:function(){return a}});let i=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function s(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||i.has(e)}let o=e=>!s(e);function a(e){e&&(o=r=>r.startsWith("on")?!s(r):e(r))}try{a(require("@emotion/is-prop-valid").default)}catch(e){}function u(e,r,n){let i={};for(let a in e)("values"!==a||"object"!=typeof e.values)&&(o(a)||!0===n&&s(a)||!r&&!s(a)||e.draggable&&a.startsWith("onDrag"))&&(i[a]=e[a]);return i}},79135:function(e,r,n){"use strict";n.d(r,{T:function(){return a}});var i=n(51550),s=n(97197),o=n(2728);function a(e,r){let n=(0,o.A)(e);return n!==s.h&&(n=i.P),n.getAnimatableNone?n.getAnimatableNone(r):void 0}},2728:function(e,r,n){"use strict";n.d(r,{A:function(){return a}});var i=n(85385),s=n(97197);let o={...n(36173).j,color:i.$,backgroundColor:i.$,outlineColor:i.$,fill:i.$,stroke:i.$,borderColor:i.$,borderTopColor:i.$,borderRightColor:i.$,borderBottomColor:i.$,borderLeftColor:i.$,filter:s.h,WebkitFilter:s.h},a=e=>o[e]},56440:function(e,r,n){"use strict";n.d(r,{$:function(){return a},C:function(){return u}});var i=n(61649),s=n(96190),o=n(88340);let a=[i.Rx,s.px,s.aQ,s.RW,s.vw,s.vh,{test:e=>"auto"===e,parse:e=>e}],u=e=>a.find((0,o.l)(e))},36173:function(e,r,n){"use strict";n.d(r,{j:function(){return a}});var i=n(61649),s=n(96190);let o={...i.Rx,transform:Math.round},a={borderWidth:s.px,borderTopWidth:s.px,borderRightWidth:s.px,borderBottomWidth:s.px,borderLeftWidth:s.px,borderRadius:s.px,radius:s.px,borderTopLeftRadius:s.px,borderTopRightRadius:s.px,borderBottomRightRadius:s.px,borderBottomLeftRadius:s.px,width:s.px,maxWidth:s.px,height:s.px,maxHeight:s.px,size:s.px,top:s.px,right:s.px,bottom:s.px,left:s.px,padding:s.px,paddingTop:s.px,paddingRight:s.px,paddingBottom:s.px,paddingLeft:s.px,margin:s.px,marginTop:s.px,marginRight:s.px,marginBottom:s.px,marginLeft:s.px,rotate:s.RW,rotateX:s.RW,rotateY:s.RW,rotateZ:s.RW,scale:i.bA,scaleX:i.bA,scaleY:i.bA,scaleZ:i.bA,skew:s.RW,skewX:s.RW,skewY:s.RW,distance:s.px,translateX:s.px,translateY:s.px,translateZ:s.px,x:s.px,y:s.px,z:s.px,perspective:s.px,transformPerspective:s.px,opacity:i.Fq,originX:s.$C,originY:s.$C,originZ:s.px,zIndex:o,fillOpacity:i.Fq,strokeOpacity:i.Fq,numOctaves:o}},88340:function(e,r,n){"use strict";n.d(r,{l:function(){return i}});let i=e=>r=>r.test(e)},94714:function(e,r,n){"use strict";n.d(r,{G:function(){return s},_:function(){return i}});let i=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],s=new Set(i)},21367:function(e,r,n){"use strict";n.d(r,{d5:function(){return h},p_:function(){return p}});var i=n(5759),s=n(52248),o=n(94714),a=n(12490);let u="data-"+(0,n(93193).D)("framerAppearId");
13var l=n(8046),c=n(30404);function h(e,r,n={}){let i;if(e.notify("AnimationStart",r),Array.isArray(r))i=Promise.all(r.map(r=>d(e,r,n)));else if("string"==typeof r)i=d(e,r,n);else{let o="function"==typeof r?(0,s.x)(e,r,n.custom):r;i=f(e,o,n)}return i.then(()=>e.notify("AnimationComplete",r))}function d(e,r,n={}){let i=(0,s.x)(e,r,n.custom),{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);let a=i?()=>f(e,i,n):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(i=0)=>{let{delayChildren:s=0,staggerChildren:a,staggerDirection:u}=o;return function(e,r,n=0,i=0,s=1,o){let a=[],u=(e.variantChildren.size-1)*i,l=1===s?(e=0)=>e*i:(e=0)=>u-e*i;return Array.from(e.variantChildren).sort(m).forEach((e,i)=>{e.notify("AnimationStart",r),a.push(d(e,r,{...o,delay:n+l(i)}).then(()=>e.notify("AnimationComplete",r)))}),Promise.all(a)}(e,r,s+i,a,u,n)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([a(),u(n.delay)]);{let[e,r]="beforeChildren"===l?[a,u]:[u,a];return e().then(r)}}function f(e,r,{delay:n=0,transitionOverride:s,type:h}={}){let{transition:d=e.getDefaultTransition(),transitionEnd:f,...p}=e.makeTargetAnimatable(r),m=e.getValue("willChange");s&&(d=s);let y=[],v=h&&e.animationState&&e.animationState.getState()[h];for(let r in p){let i=e.getValue(r),s=p[r];if(!i||void 0===s||v&&function({protectedKeys:e,needsAnimating:r},n){let i=e.hasOwnProperty(n)&&!0!==r[n];return r[n]=!1,i}(v,r))continue;let h={delay:n,elapsed:0,...d};if(window.HandoffAppearAnimations&&!i.hasAnimated){let n=e.getProps()[u];n&&(h.elapsed=window.HandoffAppearAnimations(n,r,i,c.Z_))}let f=i.start((0,l.Z)(r,i,s,e.shouldReduceMotion&&o.G.has(r)?{type:!1}:h));(0,a.L)(m)&&(m.add(r),f=f.then(()=>m.remove(r))),y.push(f)}return Promise.all(y).then(()=>{f&&(0,i.CD)(e,f)})}function p(e){e.values.forEach(e=>e.stop())}function m(e,r){return e.sortNodePosition(r)}},52248:function(e,r,n){"use strict";n.d(r,{x:function(){return s}});var i=n(79432);function s(e,r,n){let s=e.getProps();return(0,i.o)(s,r,void 0!==n?n:s.custom,function(e){let r={};return e.values.forEach((e,n)=>r[n]=e.get()),r}(e),function(e){let r={};return e.values.forEach((e,n)=>r[n]=e.getVelocity()),r}(e))}},79432:function(e,r,n){"use strict";function i(e,r,n,i={},s={}){return"function"==typeof r&&(r=r(void 0!==n?n:e.custom,i,s)),"string"==typeof r&&(r=e.variants&&e.variants[r]),"function"==typeof r&&(r=r(void 0!==n?n:e.custom,i,s)),r}n.d(r,{o:function(){return i}})},5759:function(e,r,n){"use strict";n.d(r,{GJ:function(){return b},P$:function(){return x},CD:function(){return y},gg:function(){return g}});let i=e=>/^\-?\d*\.?\d+$/.test(e),s=e=>/^0[^.\s]+$/.test(e);var o=n(88722),a=n(33234),u=n(51550),l=n(79135),c=n(85385),h=n(56440),d=n(88340);let f=[...h.$,c.$,u.P],p=e=>f.find((0,d.l)(e));var m=n(52248);function y(e,r){let n=(0,m.x)(e,r),{transitionEnd:i={},transition:s={},...u}=n?e.makeTargetAnimatable(n,!1):{};for(let r in u={...u,...i}){let n=(0,o.Y)(u[r]);e.hasValue(r)?e.getValue(r).set(n):e.addValue(r,(0,a.B)(n))}}function v(e,r){[...r].reverse().forEach(n=>{let i=e.getVariant(n);i&&y(e,i),e.variantChildren&&e.variantChildren.forEach(e=>{v(e,r)})})}function g(e,r){return Array.isArray(r)?v(e,r):"string"==typeof r?v(e,[r]):void y(e,r)}function b(e,r,n){var o,c;let h=Object.keys(r).filter(r=>!e.hasValue(r)),d=h.length;if(d)for(let f=0;f<d;f++){let d=h[f],m=r[d],y=null;Array.isArray(m)&&(y=m[0]),null===y&&(y=null!==(c=null!==(o=n[d])&&void 0!==o?o:e.readValue(d))&&void 0!==c?c:r[d]),null!=y&&("string"==typeof y&&(i(y)||s(y))?y=parseFloat(y):!p(y)&&u.P.test(m)&&(y=(0,l.T)(d,m)),e.addValue(d,(0,a.B)(y,{owner:e})),void 0===n[d]&&(n[d]=y),null!==y&&e.setBaseTarget(d,y))}}function x(e,r,n){let i={};for(let s in e){let e=function(e,r){if(r)return(r[e]||r.default||r).from}(s,r);if(void 0!==e)i[s]=e;else{let e=n.getValue(s);e&&(i[s]=e.get())}}return i}},10010:function(e,r,n){"use strict";function i(e,r){-1===e.indexOf(r)&&e.push(r)}function s(e,r){let n=e.indexOf(r);n>-1&&e.splice(n,1)}n.d(r,{cl:function(){return s},y4:function(){return i}})},24169:function(e,r,n){"use strict";n.d(r,{u:function(){return i}});let i=(e,r,n)=>Math.min(Math.max(n,e),r)},63378:function(e,r,n){"use strict";n.d(r,{g:function(){return s}});var i=n(30404);function s(e,r){let n=performance.now(),s=({timestamp:o})=>{let a=o-n;a>=r&&(i.qY.read(s),e(a-r))};return i.Z_.read(s,!0),()=>i.qY.read(s)}},45487:function(e,r,n){"use strict";n.d(r,{K:function(){return s},k:function(){return o}});var i=n(81662);let s=i.Z,o=i.Z},64606:function(e,r,n){"use strict";n.d(r,{s:function(){return T}});var i=n(45487),s=n(85385),o=n(24169),a=n(80022);function u(e,r,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(r-e)*6*n:n<.5?r:n<2/3?e+(r-e)*(2/3-n)*6:e}var l=n(26382),c=n(40819),h=n(93184);let d=(e,r,n)=>{let i=e*e;return Math.sqrt(Math.max(0,n*(r*r-i)+i))},f=[l.$,c.m,h.J],p=e=>f.find(r=>r.test(e));function m(e){let r=p(e);(0,i.k)(!!r,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=r.parse(e);return r===h.J&&(n=function({hue:e,saturation:r,lightness:n,alpha:i}
13){e/=360,n/=100;let s=0,o=0,a=0;if(r/=100){let i=n<.5?n*(1+r):n+r-n*r,l=2*n-i;s=u(l,i,e+1/3),o=u(l,i,e),a=u(l,i,e-1/3)}else s=o=a=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*a),alpha:i}}(n)),n}let y=(e,r)=>{let n=m(e),i=m(r),s={...n};return e=>(s.red=d(n.red,i.red,e),s.green=d(n.green,i.green,e),s.blue=d(n.blue,i.blue,e),s.alpha=(0,a.C)(n.alpha,i.alpha,e),c.m.transform(s))};var v=n(83624),g=n(51550);function b(e,r){return"number"==typeof e?n=>(0,a.C)(e,r,n):s.$.test(e)?y(e,r):P(e,r)}let x=(e,r)=>{let n=[...e],i=n.length,s=e.map((e,n)=>b(e,r[n]));return e=>{for(let r=0;r<i;r++)n[r]=s[r](e);return n}},w=(e,r)=>{let n={...e,...r},i={};for(let s in n)void 0!==e[s]&&void 0!==r[s]&&(i[s]=b(e[s],r[s]));return e=>{for(let r in i)n[r]=i[r](e);return n}},P=(e,r)=>{let n=g.P.createTransformer(r),s=(0,g.V)(e),o=(0,g.V)(r);return s.numColors===o.numColors&&s.numNumbers>=o.numNumbers?(0,v.z)(x(s.values,o.values),n):((0,i.K)(!0,`Complex values '${e}' and '${r}' 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.`),n=>`${n>0?r:e}`)};var S=n(23967);let C=(e,r)=>n=>(0,a.C)(e,r,n);function T(e,r,{clamp:n=!0,ease:a,mixer:u}={}){let l=e.length;(0,i.k)(l===r.length,"Both input and output ranges must be the same length"),(0,i.k)(!a||!Array.isArray(a)||a.length===l-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[l-1]&&(e=[...e].reverse(),r=[...r].reverse());let c=function(e,r,n){let i=[],o=n||function(e){if("number"==typeof e);else if("string"==typeof e)return s.$.test(e)?y:P;else if(Array.isArray(e))return x;else if("object"==typeof e)return w;return C}(e[0]),a=e.length-1;for(let n=0;n<a;n++){let s=o(e[n],e[n+1]);if(r){let e=Array.isArray(r)?r[n]:r;s=(0,v.z)(e,s)}i.push(s)}return i}(r,a,u),h=c.length,d=r=>{let n=0;if(h>1)for(;n<e.length-2&&!(r<e[n+1]);n++);let i=(0,S.Y)(e[n],e[n+1],r);return c[n](i)};return n?r=>d((0,o.u)(e[0],e[l-1],r)):d}},11741:function(e,r,n){"use strict";n.d(r,{j:function(){return i}});let i="undefined"!=typeof document},80022:function(e,r,n){"use strict";n.d(r,{C:function(){return i}});let i=(e,r,n)=>-n*e+n*r+e},81662:function(e,r,n){"use strict";n.d(r,{Z:function(){return i}});let i=e=>e},30533:function(e,r,n){"use strict";n.d(r,{Y:function(){return o}});var i=n(80022),s=n(23967);function o(e){let r=[0];return!function(e,r){let n=e[e.length-1];for(let o=1;o<=r;o++){let a=(0,s.Y)(0,r,o);e.push((0,i.C)(n,1,a))}}(r,e.length-1),r}},83624:function(e,r,n){"use strict";n.d(r,{z:function(){return s}});let i=(e,r)=>n=>r(e(n)),s=(...e)=>e.reduce(i)},23967:function(e,r,n){"use strict";n.d(r,{Y:function(){return i}});let i=(e,r,n)=>{let i=r-e;return 0===i?1:(n-e)/i}},88722:function(e,r,n){"use strict";n.d(r,{Y:function(){return o},p:function(){return s}});var i=n(48488);let s=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),o=e=>(0,i.C)(e)?e[e.length-1]||0:e},21560:function(e,r,n){"use strict";n.d(r,{L:function(){return s}});var i=n(10010);class s{constructor(){this.subscriptions=[]}add(e){return(0,i.y4)(this.subscriptions,e),()=>(0,i.cl)(this.subscriptions,e)}notify(e,r,n){let i=this.subscriptions.length;if(i){if(1===i)this.subscriptions[0](e,r,n);else for(let s=0;s<i;s++){let i=this.subscriptions[s];i&&i(e,r,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},86917:function(e,r,n){"use strict";n.d(r,{w:function(){return i}});let i=e=>1e3*e},96681:function(e,r,n){"use strict";n.d(r,{h:function(){return s}});var i=n(67294);function s(e){let r=(0,i.useRef)(null);return null===r.current&&(r.current=e()),r.current}},58868:function(e,r,n){"use strict";n.d(r,{L:function(){return s}});var i=n(67294);let s=n(11741).j?i.useLayoutEffect:i.useEffect},3038:function(e,r,n){"use strict";function i(e,r){return r?1e3/r*e:0}n.d(r,{R:function(){return i}})},33234:function(e,r,n){"use strict";n.d(r,{B:function(){return c}});var i=n(37367),s=n(30404),o=n(21560),a=n(3038);let u=e=>!isNaN(parseFloat(e));class l{constructor(e,r={}){this.version="9.1.7",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,r=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:o}=i.frameData;this.lastUpdated!==o&&(this.timeDelta=n,this.lastUpdated=o,s.Z_.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>s.Z_.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=u(this.current),this.owner=r.owner}onChange(e){return this.on("change",e)}on(e,r){this.events[e]||(this.events[e]=new o.L);let n=this.events[e].add(r);return"change"===e?()=>{n(),s.Z_.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,r){this.passiveEffect=e,this.stopPassiveEffect=r}set(e,r=!0){r&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,r)}setWithVelocity(e,r,n){this.set(r),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,a.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=e(r)||null,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(){this.animation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function c(e,r){return new l(e,r)}},26382:function(e,r,n){"use strict";n.d(r,{$:function(){return s}});var i=n(40819);let s={test:(0,n(98834).i)("#"),parse:function(e){let r="",n="",i="",s="";return e.length>5?(r=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),s=e.substring(7,9)):(r=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),s=e.substring(4,5),r+=r,n+=n,i+=i,s+=s),{red:parseInt(r,16),green:parseInt(n,16),blue:parseInt(i,16),alph
13a:s?parseInt(s,16)/255:1}},transform:i.m.transform}},93184:function(e,r,n){"use strict";n.d(r,{J:function(){return u}});var i=n(61649),s=n(96190),o=n(36430),a=n(98834);let u={test:(0,a.i)("hsl","hue"),parse:(0,a.d)("hue","saturation","lightness"),transform:({hue:e,saturation:r,lightness:n,alpha:a=1})=>"hsla("+Math.round(e)+", "+s.aQ.transform((0,o.Nw)(r))+", "+s.aQ.transform((0,o.Nw)(n))+", "+(0,o.Nw)(i.Fq.transform(a))+")"}},85385:function(e,r,n){"use strict";n.d(r,{$:function(){return u}});var i=n(36430),s=n(26382),o=n(93184),a=n(40819);let u={test:e=>a.m.test(e)||s.$.test(e)||o.J.test(e),parse:e=>a.m.test(e)?a.m.parse(e):o.J.test(e)?o.J.parse(e):s.$.parse(e),transform:e=>(0,i.HD)(e)?e:e.hasOwnProperty("red")?a.m.transform(e):o.J.transform(e)}},40819:function(e,r,n){"use strict";n.d(r,{m:function(){return c}});var i=n(24169),s=n(61649),o=n(36430),a=n(98834);let u=e=>(0,i.u)(0,255,e),l={...s.Rx,transform:e=>Math.round(u(e))},c={test:(0,a.i)("rgb","red"),parse:(0,a.d)("red","green","blue"),transform:({red:e,green:r,blue:n,alpha:i=1})=>"rgba("+l.transform(e)+", "+l.transform(r)+", "+l.transform(n)+", "+(0,o.Nw)(s.Fq.transform(i))+")"}},98834:function(e,r,n){"use strict";n.d(r,{d:function(){return o},i:function(){return s}});var i=n(36430);let s=(e,r)=>n=>!!((0,i.HD)(n)&&i.mj.test(n)&&n.startsWith(e)||r&&Object.prototype.hasOwnProperty.call(n,r)),o=(e,r,n)=>s=>{if(!(0,i.HD)(s))return s;let[o,a,u,l]=s.match(i.KP);return{[e]:parseFloat(o),[r]:parseFloat(a),[n]:parseFloat(u),alpha:void 0!==l?parseFloat(l):1}}},97197:function(e,r,n){"use strict";n.d(r,{h:function(){return l}});var i=n(51550),s=n(36430);let o=new Set(["brightness","contrast","saturate","opacity"]);function a(e){let[r,n]=e.slice(0,-1).split("(");if("drop-shadow"===r)return e;let[i]=n.match(s.KP)||[];if(!i)return e;let a=n.replace(i,""),u=o.has(r)?1:0;return i!==n&&(u*=100),r+"("+u+a+")"}let u=/([a-z-]*)\(.*?\)/g,l={...i.P,getAnimatableNone:e=>{let r=e.match(u);return r?r.map(a).join(" "):e}}},51550:function(e,r,n){"use strict";n.d(r,{P:function(){return f},V:function(){return l}});var i=n(85385),s=n(61649),o=n(36430);let a="${c}",u="${n}";function l(e){"number"==typeof e&&(e=`${e}`);let r=[],n=0,l=0,c=e.match(o.dA);c&&(n=c.length,e=e.replace(o.dA,a),r.push(...c.map(i.$.parse)));let h=e.match(o.KP);return h&&(l=h.length,e=e.replace(o.KP,u),r.push(...h.map(s.Rx.parse))),{values:r,numColors:n,numNumbers:l,tokenised:e}}function c(e){return l(e).values}function h(e){let{values:r,numColors:n,tokenised:s}=l(e),c=r.length;return e=>{let r=s;for(let s=0;s<c;s++)r=r.replace(s<n?a:u,s<n?i.$.transform(e[s]):(0,o.Nw)(e[s]));return r}}let d=e=>"number"==typeof e?0:e,f={test:function(e){var r,n;return isNaN(e)&&(0,o.HD)(e)&&((null===(r=e.match(o.KP))||void 0===r?void 0:r.length)||0)+((null===(n=e.match(o.dA))||void 0===n?void 0:n.length)||0)>0},parse:c,createTransformer:h,getAnimatableNone:function(e){let r=c(e);return h(e)(r.map(d))}}},61649:function(e,r,n){"use strict";n.d(r,{Fq:function(){return o},Rx:function(){return s},bA:function(){return a}});var i=n(24169);let s={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},o={...s,transform:e=>(0,i.u)(0,1,e)},a={...s,default:1}},96190:function(e,r,n){"use strict";n.d(r,{$C:function(){return h},RW:function(){return o},aQ:function(){return a},px:function(){return u},vh:function(){return l},vw:function(){return c}});var i=n(36430);let s=e=>({test:r=>(0,i.HD)(r)&&r.endsWith(e)&&1===r.split(" ").length,parse:parseFloat,transform:r=>`${r}${e}`}),o=s("deg"),a=s("%"),u=s("px"),l=s("vh"),c=s("vw"),h={...a,parse:e=>a.parse(e)/100,transform:e=>a.transform(100*e)}},36430:function(e,r,n){"use strict";n.d(r,{HD:function(){return u},KP:function(){return s},Nw:function(){return i},dA:function(){return o},mj:function(){return a}});let i=e=>Math.round(1e5*e)/1e5,s=/(-)?([\d]*\.?[\d])+/g,o=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,a=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function u(e){return"string"==typeof e}},12490:function(e,r,n){"use strict";n.d(r,{L:function(){return s}});var i=n(40406);function s(e){return!!((0,i.i)(e)&&e.add)}},40406:function(e,r,n){"use strict";n.d(r,{i:function(){return i}});let i=e=>!!(e&&e.getVelocity)},86501:function(e,r,n){"use strict";let i,s;n.d(r,{x7:function(){return td},ZP:function(){return tf},Am:function(){return N}});var o,a=n(67294);let u={data:""},l=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||u,c=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,h=/\/\*[^]*?\*\/| +/g,d=/\n+/g,f=(e,r)=>{let n="",i="",s="";for(let o in e){let a=e[o];"@"==o[0]?"i"==o[1]?n=o+" "+a+";":i+="f"==o[1]?f(a,o):o+"{"+f(a,"k"==o[1]?"":r)+"}":"object"==typeof a?i+=f(a,r?r.replace(/([^,])+/g,e=>o.replace(/(^:.*)|([^,])+/g,r=>/&/.test(r)?r.replace(/&/g,e):e?e+" "+r:r)):o):null!=a&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),s+=f.p?f.p(o,a):o+":"+a+";")}return n+(r&&s?r+"{"+s+"}":s)+i},p={},m=e=>{if("object"==typeof e){let r="";for(let n in e)r+=n+m(e[n]);return r}return e},y=(e,r,n,i,s)=>{var o;let a=m(e),u=p[a]||(p[a]=(e=>{let r=0,n=11;for(;r<e.length;)n=101*n+e.charCodeAt(r++)>>>0;return"go"+n})(a));if(!p[u]){let r=a!==e?e:(e=>{let r,n,i=[{}];for(;r=c.exec(e.replace(h,""));)r[4]?i.shift():r[3]?(n=r[3].replace(d," ").trim(),i.unshift(i[0][n]=i[0][n]||{})):i[0][r[1]]=r[2].replace(d," ").trim();return i[0]})(e);p[u]=f(s?{["@keyframes "+u]:r}:r,n?"":"."+u)}let l=n&&p.g?p.g:null;return n&&(p.g=p[u]),o=p[u],l?r.data=r.data.replace(l,o):-1===r.data.indexOf(o)&&(r.data=i?o+r.data:r.data+o),u},v=(e,r,n)=>e.reduce((e,i,s)=>{let o=r[s];if(o&&o.call){let e=o(n),r=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=r?"."+r:e&&"object"==typeof e?e.props?"":f(e,""):!1===e?"":e}return e+i+(null==o?"":o)},"");function g(e){let r=this||{},n=e.call?e(r.p):e;
13return y(n.unshift?n.raw?v(n,[].slice.call(arguments,1),r.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(r.p):n),{}):n,l(r.target),r.g,r.o,r.k)}g.bind({g:1});let b,x,w,P=g.bind({k:1});function S(e,r){let n=this||{};return function(){let i=arguments;function s(o,a){let u=Object.assign({},o),l=u.className||s.className;n.p=Object.assign({theme:x&&x()},u),n.o=/ *go\d+/.test(l),u.className=g.apply(n,i)+(l?" "+l:""),r&&(u.ref=a);let c=e;return e[0]&&(c=u.as||e,delete u.as),w&&c[0]&&w(u),b(c,u)}return r?r(s):s}}var C=e=>"function"==typeof e,T=(e,r)=>C(e)?e(r):e,E=(i=0,()=>(++i).toString()),j=()=>{if(void 0===s&&"u">typeof window){let e=matchMedia("(prefers-reduced-motion: reduce)");s=!e||e.matches}return s},O=new Map,R=e=>{if(O.has(e))return;let r=setTimeout(()=>{O.delete(e),_({type:4,toastId:e})},1e3);O.set(e,r)},k=e=>{let r=O.get(e);r&&clearTimeout(r)},A=(e,r)=>{switch(r.type){case 0:return{...e,toasts:[r.toast,...e.toasts].slice(0,20)};case 1:return r.toast.id&&k(r.toast.id),{...e,toasts:e.toasts.map(e=>e.id===r.toast.id?{...e,...r.toast}:e)};case 2:let{toast:n}=r;return e.toasts.find(e=>e.id===n.id)?A(e,{type:1,toast:n}):A(e,{type:0,toast:n});case 3:let{toastId:i}=r;return i?R(i):e.toasts.forEach(e=>{R(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===i||void 0===i?{...e,visible:!1}:e)};case 4:return void 0===r.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==r.toastId)};case 5:return{...e,pausedAt:r.time};case 6:let s=r.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+s}))}}},M=[],L={toasts:[],pausedAt:void 0},_=e=>{L=A(L,e),M.forEach(e=>{e(L)})},V={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},D=(e={})=>{let[r,n]=(0,a.useState)(L);(0,a.useEffect)(()=>(M.push(n),()=>{let e=M.indexOf(n);e>-1&&M.splice(e,1)}),[r]);let i=r.toasts.map(r=>{var n,i;return{...e,...e[r.type],...r,duration:r.duration||(null==(n=e[r.type])?void 0:n.duration)||(null==e?void 0:e.duration)||V[r.type],style:{...e.style,...null==(i=e[r.type])?void 0:i.style,...r.style}}});return{...r,toasts:i}},F=(e,r="blank",n)=>({createdAt:Date.now(),visible:!0,type:r,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||E()}),I=e=>(r,n)=>{let i=F(r,e,n);return _({type:2,toast:i}),i.id},N=(e,r)=>I("blank")(e,r);N.error=I("error"),N.success=I("success"),N.loading=I("loading"),N.custom=I("custom"),N.dismiss=e=>{_({type:3,toastId:e})},N.remove=e=>_({type:4,toastId:e}),N.promise=(e,r,n)=>{let i=N.loading(r.loading,{...n,...null==n?void 0:n.loading});return e.then(e=>(N.success(T(r.success,e),{id:i,...n,...null==n?void 0:n.success}),e)).catch(e=>{N.error(T(r.error,e),{id:i,...n,...null==n?void 0:n.error})}),e};var q=(e,r)=>{_({type:1,toast:{id:e,height:r}})},z=()=>{_({type:5,time:Date.now()})},B=e=>{let{toasts:r,pausedAt:n}=D(e);(0,a.useEffect)(()=>{if(n)return;let e=Date.now(),i=r.map(r=>{if(r.duration===1/0)return;let n=(r.duration||0)+r.pauseDuration-(e-r.createdAt);if(n<0){r.visible&&N.dismiss(r.id);return}return setTimeout(()=>N.dismiss(r.id),n)});return()=>{i.forEach(e=>e&&clearTimeout(e))}},[r,n]);let i=(0,a.useCallback)(()=>{n&&_({type:6,time:Date.now()})},[n]),s=(0,a.useCallback)((e,n)=>{let{reverseOrder:i=!1,gutter:s=8,defaultPosition:o}=n||{},a=r.filter(r=>(r.position||o)===(e.position||o)&&r.height),u=a.findIndex(r=>
vendor: 4,262 bytes, lines 13-184
13r.id===e.id),l=a.filter((e,r)=>r<u&&e.visible).length;return a.filter(e=>e.visible).slice(...i?[l+1]:[0,l]).reduce((e,r)=>e+(r.height||0)+s,0)},[r]);return{toasts:r,handlers:{updateHeight:q,startPause:z,endPause:i,calculateOffset:s}}},U=P` 14from { 15 transform: scale(0) rotate(45deg); 16 opacity: 0; 17} 18to { 19 transform: scale(1) rotate(45deg); 20 opacity: 1; 21}`,$=P` 22from { 23 transform: scale(0); 24 opacity: 0; 25} 26to { 27 transform: scale(1); 28 opacity: 1; 29}`,Q=P` 30from { 31 transform: scale(0) rotate(90deg); 32 opacity: 0; 33} 34to { 35 transform: scale(1) rotate(90deg); 36 opacity: 1; 37}`,H=S("div")` 38 width: 20px; 39 opacity: 0; 40 height: 20px; 41 border-radius: 10px; 42 background: ${e=>e.primary||"#ff4b4b"}; 43 position: relative; 44 transform: rotate(45deg); 45 46 animation: ${U} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 47 forwards; 48 animation-delay: 100ms; 49 50 &:after, 51 &:before { 52 content: ''; 53 animation: ${$} 0.15s ease-out forwards; 54 animation-delay: 150ms; 55 position: absolute; 56 border-radius: 3px; 57 opacity: 0; 58 background: ${e=>e.secondary||"#fff"}; 59 bottom: 9px; 60 left: 4px; 61 height: 2px; 62 width: 12px; 63 } 64 65 &:before { 66 animation: ${Q} 0.15s ease-out forwards; 67 animation-delay: 180ms; 68 transform: rotate(90deg); 69 } 70`,Z=P` 71 from { 72 transform: rotate(0deg); 73 } 74 to { 75 transform: rotate(360deg); 76 } 77`,W=S("div")` 78 width: 12px; 79 height: 12px; 80 box-sizing: border-box; 81 border: 2px solid; 82 border-radius: 100%; 83 border-color: ${e=>e.secondary||"#e0e0e0"}; 84 border-right-color: ${e=>e.primary||"#616161"}; 85 animation: ${Z} 1s linear infinite; 86`,G=P` 87from { 88 transform: scale(0) rotate(45deg); 89 opacity: 0; 90} 91to { 92 transform: scale(1) rotate(45deg); 93 opacity: 1; 94}`,K=P` 950% { 96 height: 0; 97 width: 0; 98 opacity: 0; 99} 10040% { 101 height: 0; 102 width: 6px; 103 opacity: 1; 104} 105100% { 106 opacity: 1; 107 height: 10px; 108}`,Y=S("div")` 109 width: 20px; 110 opacity: 0; 111 height: 20px; 112 border-radius: 10px; 113 background: ${e=>e.primary||"#61d345"}; 114 position: relative; 115 transform: rotate(45deg); 116 117 animation: ${G} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 118 forwards; 119 animation-delay: 100ms; 120 &:after { 121 content: ''; 122 box-sizing: border-box; 123 animation: ${K} 0.2s ease-out forwards; 124 opacity: 0; 125 animation-delay: 200ms; 126 position: absolute; 127 border-right: 2px solid; 128 border-bottom: 2px solid; 129 border-color: ${e=>e.secondary||"#fff"}; 130 bottom: 6px; 131 left: 6px; 132 height: 10px; 133 width: 6px; 134 } 135`,J=S("div")` 136 position: absolute; 137`,X=S("div")` 138 position: relative; 139 display: flex; 140 justify-content: center; 141 align-items: center; 142 min-width: 20px; 143 min-height: 20px; 144`,tt=P` 145from { 146 transform: scale(0.6); 147 opacity: 0.4; 148} 149to { 150 transform: scale(1); 151 opacity: 1; 152}`,te=S("div")` 153 position: relative; 154 transform: scale(0.6); 155 opacity: 0.4; 156 min-width: 20px; 157 animation: ${tt} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) 158 forwards; 159`,tr=({toast:e})=>{let{icon:r,type:n,iconTheme:i}=e;return void 0!==r?"string"==typeof r?a.createElement(te,null,r):r:"blank"===n?null:a.createElement(X,null,a.createElement(W,{...i}),"loading"!==n&&a.createElement(J,null,"error"===n?a.createElement(H,{...i}):a.createElement(Y,{...i})))},tn=e=>` 1600% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;} 161100% {transform: translate3d(0,0,0) scale(1); opacity:1;} 162`,ti=e=>` 1630% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} 164100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;} 165`,ts=S("div")` 166 display: flex; 167 align-items: center; 168 background: #fff; 169 color: #363636; 170 line-height: 1.3; 171 will-change: transform; 172 box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); 173 max-width: 350px; 174 pointer-events: auto; 175 padding: 8px 10px; 176 border-radius: 8px; 177`,to=S("div")` 178 display: flex; 179 justify-content: center; 180 margin: 4px 10px; 181 color: inherit; 182 flex: 1 1 auto; 183 white-space: pre-line; 184`,ta=(e,r)=>{let n=e.includes("top")?1:-1,[i,s]=j()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[tn(n),ti(n)];return{animation:r?`${P(i)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${P(s)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},tu=a.memo(({toast:e,position:r,style:n,children:i})=>
184{let s=e.height?ta(e.position||r||"top-center",e.visible):{opacity:0},o=a.createElement(tr,{toast:e}),u=a.createElement(to,{...e.ariaProps},T(e.message,e));return a.createElement(ts,{className:e.className,style:{...s,...n,...e.style}},"function"==typeof i?i({icon:o,message:u}):a.createElement(a.Fragment,null,o,u))});o=a.createElement,f.p=void 0,b=o,x=void 0,w=void 0;var tl=({id:e,className:r,style:n,onHeightUpdate:i,children:s})=>{let o=a.useCallback(r=>{if(r){let n=()=>{i(e,r.getBoundingClientRect().height)};n(),new MutationObserver(n).observe(r,{subtree:!0,childList:!0,characterData:!0})}},[e,i]);return a.createElement("div",{ref:o,className:r,style:n},s)},tc=(e,r)=>{let n=e.includes("top"),i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:j()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${r*(n?1:-1)}px)`,...n?{top:0}:{bottom:0},...i}},th=g` 185 z-index: 9999; 186 > * { 187 pointer-events: auto; 188 } 189`,td=({reverseOrder:e,position:r="top-center",toastOptions:n,gutter:i,children:s,containerStyle:o,containerClassName:u})=>{let{toasts:l,handlers:c}=B(n);return a.createElement("div",{style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...o},className:u,onMouseEnter:c.startPause,onMouseLeave:c.endPause},l.map(n=>{let o=n.position||r,u=tc(o,c.calculateOffset(n,{reverseOrder:e,gutter:i,defaultPosition:r}));return a.createElement(tl,{id:n.id,key:n.id,onHeightUpdate:c.updateHeight,className:n.visible?th:"",style:u},"custom"===n.type?T(n.message,n):s?s(n):a.createElement(tu,{toast:n,position:o}))}))},tf=N}},function(e){var r=function(r){return e(e.s=r)};e.O(0,[9774,179],function(){return r(6840),r(9090)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.