PageSourceSearch

https://www.sretks.com/_next/static/chunks/pages/_app-30eb8014546d77ec.js

js sretks.com collected 2026-10-04 05:47:55 UTC 193,104 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{4184:function(t,e){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(n){var i=typeof n;if("string"===i||"number"===i)t.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&t.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&t.push(s);else t.push(n.toString())}}return t.join(" ")}t.exports?(o.default=o,t.exports=o):void 0===(n=function(){return o}.apply(e,[]))||(t.exports=n)}()},4394:function(t,e,n){"use strict";n.d(e,{k:function(){return o},K:function(){return r}});var r=function(){},o=function(){}},3454:function(t,e,n){"use strict";var r,o;t.exports=(null===(r=n.g.process)||void 0===r?void 0:r.env)&&"object"===typeof(null===(o=n.g.process)||void 0===o?void 0:o.env)?n.g.process:n(7663)},6363:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(7234)}])},7234:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return V}});var r=n(5893),o=(n(9901),n(2804)),i=n(7294);function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var s=new(function(){function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.intialized=!1,this.width=0,this._isWidthChanged=!1,this._isDeviceChanged=!0,this._deviceList=[{width:0,type:"sp"},{width:768,type:"tablet"},{width:1440,type:"pc"}],this._deviceNumber=-1,this.init=function(){e.intialized||(e.intialized=!0,window.addEventListener("resize",e.updateDevice),e.updateDevice())},this.updateDevice=function(){e._isDeviceChanged=!1;var t=window.innerHeight;if(document.documentElement.style.setProperty("--screen_height_real","".concat(t,"px")),document.documentElement.style.setProperty("--screen_height_real_num","".concat(t)),e.width!==window.innerWidth){document.documentElement.style.setProperty("--screen_height_base","".concat(t,"px")),document.documentElement.style.setProperty("--screen_height_base_num","".concat(t)),e.width=window.innerWidth;for(var n=-1,r=e.deviceList.length,o=0;o<r&&e.width>=e.deviceList[o].width;o++)n=o;n!==e._deviceNumber&&(e._isDeviceChanged=!0),e._deviceNumber=n,e._isWidthChanged=!0}else e._isWidthChanged=!1}}var e,n,r;return e=t,(n=[{key:"isWidthChanged",get:function(){return this._isWidthChanged},set:function(t){this._isWidthChanged=t}},{key:"deviceList",get:function(){return this._deviceList},set:function(t){this._deviceList=t}},{key:"deviceType",get:function(){return this._deviceList[this._deviceNumber]?this._deviceList[this._deviceNumber].type:null}},{key:"isDeviceChanged",get:function(){return this._isDeviceChanged}}])&&a(e.prototype,n),r&&a(e,r),t}()),u=n(7779),l=0,c=function(){var t=(0,o.Zl)(u.Dd),e=(0,o.Zl)(u.aP);(0,i.useEffect)((function(){s.deviceList=[{width:0,type:"sp"},{width:768,type:"pc"}],s.init(),r(),window.addEventListener("resize",r);var t=new Image;t.src="/assets/loading.gif",t.onload=n,document.fonts.ready.then((function(t){n()}))}),[]);var n=function(){2===++l&&setTimeout((function(){e(!0)}),4e3)},r=function(){s.isDeviceChanged&&s.deviceType&&t(s.deviceType)};return null},d=n(655),f=n(4394),p=n(7107),h=n(5759);function v(){var t=!1,e=[],n=new Set,r={subscribe:function(t){return n.add(t),function(){n.delete(t)}},start:function(r,o){if(t){var i=[];return n.forEach((function(t){i.push((0,p.d5)(t,r,{transitionOverride:o}))})),Promise.all(i)}return new Promise((function(t){e.push({animation:[r,o],resolve:t})}))},set:function(e){return(0,f.k)(t,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),n.forEach((function(t){(0,h.gg)(t,e)}))},stop:function(){n.forEach((function(t){(0,p.p_)(t)}))},mount:function(){return t=!0,e.forEach((function(t){var e=t.animation,n=t.resolve;r.start.apply(r,(0,d.ev)([],(0,d.CR)(e),!1)).then(n)})),function(){t=!1,r.stop()}}};return r}var m=n(6681);var y=n(5172),g=n(4184),b=n.n(g),S=n(8543),_=n.n(S),w=null,T=function(t){var e=t.active,n=(0,o.sJ)(u.aP),a=(0,i.useState)(new Array(100)),s=a[0],l=a[1];(0,i.useEffect)((function(){return clearTimeout(w),n?c():e&&d(),function(){}}),[n,e]);var c=function(){for(var t=s.concat([]),e=0;e<t.length;e++)t[e]=f(0);l(t)},d=function(){for(var t=s.concat([]),e=0;e<t.length;e++)Math.random()>.9?t[e]=f(30):t[e]=f(.2);l(t),w=setTimeout((function(){d()}),50)},f=function(t){return Math.random()*t-t/2};return(0,r.jsx)(r.Fragment,{children:function(){var t=[],e=s.length,n=100/(e-1);return s.map((function(o,i){t.push((0,r.jsx)("div",{className:_().load__image__bg,style:{height:"".concat(100/e,"%"),backgroundPosition:"50% ".concat(i*n,"%"),backgroundSize:"100%",transform:"translateX(".concat(o,"%)")}},"image__".concat(i)))})),t}()})},x={opacity:0,transition:{duration:3},transitionEnd:{display:"none"}},A=function(){var t=(0,o.sJ)(u.jd),e=(0,o.sJ)(u.aP),n=(0,i.useState)(!1),a=n[0],s=n[1],l=(0,i.useRef)(null),c=(0,i.useRef)(null),d=function(){var t=(0,m.h)(v);return(0,i.useEffect)(t.mount,[]),t}();return(0,i.useEffect)((function(){if(e){var n=t.loaded/t.loadTotal;isNaN(n)||(t.loaded===t.loadTotal?s(!0):l.current&&(l.current.style.transform="scale( ".concat(.75*n+.25," )")))}}),[t]),(0,i.useEffect)((function(){return a&&d.start(x),function(){}}),[a]),(0,r.jsx)(y.E.section,{animate:d,className:_().container,children:(0,r.jsxs)("div",{className:_().load__container,children:[(0,r.jsx)("div",{ref:l,className:b()(_().load__bar,a?_().inactive:null)}),(0,r.jsx)("div",{className:b()(_().load__text,_().text__en,a?_().inactive:null),children:e?"LOADING":"SRETKS"}),(0,r.jsx)("div",{ref:c,className:b()(_().load__image,a?_().inactive:null),children:(0,r.jsx)(T,{active:!a})})]})})};function R(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function E(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){R(t,e,n[e])}))}return t}var V=function(t){var e=t.Component,n=t.pageProps;return(0,r.jsxs)(o.Wh,{children:[(0,r.jsx)(A,{}),(0,r.jsx)(e,E({},n)),(0,r.jsx)(c,{})]})}}
1,7779:function(t,e,n){"use strict";n.d(e,{Dd:function(){return o},aP:function(){return i},jd:function(){return a}});var r=n(2804),o=(0,r.cn)({key:"deviceTypeState",default:"pc"}),i=(0,r.cn)({key:"appReadyState",default:!1}),a=(0,r.cn)({key:"loadState",default:{loaded:0,loadTotal:0}})},8543:function(t){t.exports={text__en:"loading_text__en__zFw50",text__jp:"loading_text__jp__1kMcG",container:"loading_container__qTxKj",load__container:"loading_load__container__Pjkry",load__bar:"loading_load__bar__D8HGm",inactive:"loading_inactive__n5VIX",load__image:"loading_load__image__JpTsr",load__image__bg:"loading_load__image__bg__Alt63",load__text:"loading_load__text__uFsAE",text:"loading_text__vDdgS",none:"loading_none__VjWy_"}},9901:function(){},7663:function(t){!function(){var e={162:function(t){var e,n,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"===typeof setTimeout?setTimeout:o}catch(t){e=o}try{n="function"===typeof clearTimeout?clearTimeout:i}catch(t){n=i}}();var s,u=[],l=!1,c=-1;function d(){l&&s&&(l=!1,s.length?u=s.concat(u):c=-1,u.length&&f())}function f(){if(!l){var t=a(d);l=!0;for(var e=u.length;e;){for(s=u,u=[];++c<e;)s&&s[c].run();c=-1,e=u.length}s=null,l=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function h(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new p(t,e)),1!==u.length||l||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}},a=!0;try{e[t](i,i.exports,r),a=!1}finally{a&&delete n[t]}return i.exports}r.ab="//";var o=r(162);t.exports=o}()},2804:function(t,e,n){"use strict";n.d(e,{Wh:function(){return Ja},cn:function(){return Qa},sJ:function(){return ts},Zl:function(){return es}});var r=n(7294),o=n(3935);var i=function(t){const e=new Error(t);if(void 0===e.stack)try{throw e}catch(n){}return e};var a=function(t){return!!t&&"function"===typeof t.then};var s=function(t,e){if(null!=t)return t;throw i(null!==e&&void 0!==e?e:"Got unexpected null or undefined")};function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class l{getValue(){throw i("BaseLoadable")}toPromise(){throw i("BaseLoadable")}valueMaybe(){throw i("BaseLoadable")}valueOrThrow(){throw i(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw i("BaseLoadable")}promiseOrThrow(){throw i(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw i("BaseLoadable")}errorOrThrow(){throw i(`Loadable expected error, but in "${this.state}" state`)}is(t){return t.state===this.state&&t.contents===this.contents}map(t){throw i("BaseLoadable")}}class c extends l{constructor(t){super(),u(this,"state","hasValue"),u(this,"contents",void 0),this.contents=t}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(t){try{const e=t(this.contents);return a(e)?v(e):y(e)?e:p(e)}catch(e){return a(e)?v(e.next((()=>this.map(t)))):h(e)}}}class d extends l{constructor(t){super(),u(this,"state","hasError"),u(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(t){return this}}class f extends l{constructor(t){super(),u(this,"state","loading"),u(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(t){return v(this.contents.then((e=>{const n=t(e);if(y(n)){const t=n;switch(t.state){case"hasValue":case"loading":return t.contents;case"hasError":throw t.contents}}return n})).catch((e=>{if(a(e))return e.then((()=>this.map(t).contents));throw e})))}}function p(t){return Object.freeze(new c(t))}function h(t){return Object.freeze(new d(t))}function v(t){return Object.freeze(new f(t))}function m(t){const e=function(t){return t.every((t=>"hasValue"===t.state))?p(t.map((t=>t.contents))):t.some((t=>"hasError"===t.state))?h(s(t.find((t=>"hasError"===t.state)),"Invalid loadable passed to loadableAll").contents):v(Promise.all(t.map((t=>t.contents))))}((Array.isArray(t)?t:Object.getOwnPropertyNames(t).map((e=>t[e]))).map((t=>y(t)?t:a(t)?v(t):p(t))));return Array.isArray(t)?e:e.map((e=>Object.getOwnPropertyNames(t).reduce(((t,n,r)=>({...t,[n]:e[r]})),{})))}function y(t){return t instanceof l}const g={of:t=>a(t)?v(t):y(t)?t:p(t),error:t=>h(t),all:m,isLoadable:y};var b={loadableWithValue:p,loadableWithError:h,loadableWithPromise:v,loadableLoading:function(){return Object.freeze(new f(new Promise((()=>{}))))},loadableAll:m,isLoadable:y,RecoilLoadable:g},S=b.loadableWithValue,_=b.loadableWithError,w=b.loadableWithPromise,T=b.loadableLoading,x=b.loadableAll,A=b.isLoadable,R=b.RecoilLoadable,E=Object.freeze({__proto__:null,loadableWithValue:S,loadableWithError:_,loadableWithPromise:w,loadableLoading:T,loadableAll:
1x,isLoadable:A,RecoilLoadable:R});class V{constructor(t){u(this,"key",void 0),this.key=t}}class C extends V{}class k extends V{}var P={AbstractRecoilValue:V,RecoilState:C,RecoilValueReadOnly:k,isRecoilValue:function(t){return t instanceof C||t instanceof k}},L=P.AbstractRecoilValue,M=P.RecoilState,N=P.RecoilValueReadOnly,D=P.isRecoilValue,O=Object.freeze({__proto__:null,AbstractRecoilValue:L,RecoilState:M,RecoilValueReadOnly:N,isRecoilValue:D});var U=function(t,...e){0};const B=(new Map).set("recoil_hamt_2020",!0).set("recoil_sync_external_store",!0).set("recoil_suppress_rerender_in_callback",!0).set("recoil_memory_managament_2020",!0);function I(t){var e;return null!==(e=B.get(t))&&void 0!==e&&e}I.setPass=t=>{B.set(t,!0)},I.setFail=t=>{B.set(t,!1)},I.clear=()=>{B.clear()};var j=I;var F=function(t,e){return function*(){let n=0;for(const r of t)yield e(r,n++)}()};var z=function(t,e,{error:n}={}){return null};class ${}const W=new $;class H extends Error{constructor(t){super(`Tried to set the value of Recoil selector ${t} using an updater function, but it is an async selector in a pending or error state; this is not supported.`)}}const G=new Map,q=new Map;class Y extends Error{}const Z=new Map;function K(t){return Z.get(t)}var X={nodes:G,recoilValues:q,registerNode:function(t){if(G.has(t.key)){const e=`Duplicate atom key "${t.key}". This is a FATAL ERROR in\n      production. But it is safe to ignore this warning if it occurred because of\n      hot module replacement.`;console.warn(e)}G.set(t.key,t);const e=null==t.set?new O.RecoilValueReadOnly(t.key):new O.RecoilState(t.key);return q.set(t.key,e),e},getNode:function(t){const e=G.get(t);if(null==e)throw new Y(`Missing definition for RecoilValue: "${t}""`);return e},getNodeMaybe:function(t){return G.get(t)},deleteNodeConfigIfPossible:function(t){var e;if(!j("recoil_memory_managament_2020"))return;const n=G.get(t);var r;null!==n&&void 0!==n&&null!==(e=n.shouldDeleteConfigOnRelease)&&void 0!==e&&e.call(n)&&(G.delete(t),null===(r=K(t))||void 0===r||r(),Z.delete(t))},setConfigDeletionHandler:function(t,e){j("recoil_memory_managament_2020")&&(void 0===e?Z.delete(t):Z.set(t,e))},getConfigDeletionHandler:K,recoilValuesForKeys:function(t){return F(t,(t=>s(q.get(t))))},NodeMissingError:Y,DefaultValue:$,DEFAULT_VALUE:W,RecoilValueNotReady:H};var J={enqueueExecution:function(t,e){e()}};var Q,tt,et=(Q=function(t){var e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n={},r=Math.pow(2,5),o=r-1,i=r/2,a=r/4,s={},u=function(t){return function(){return t}},l=n.hash=function(t){var n="undefined"===typeof t?"undefined":e(t);if("number"===n)return t;"string"!==n&&(t+="");for(var r=0,o=0,i=t.length;o<i;++o)r=(r<<5)-r+t.charCodeAt(o)|0;return r},c=function(t,e){return e>>>t&o},d=function(t){return 1<<t},f=function(t,e){return n=t&e-1,n=(n=(858993459&(n-=n>>1&1431655765))+(n>>2&858993459))+(n>>4)&252645135,127&(n+=n>>8)+(n>>16);var n},p=function(t,e,n,r){var o=r;if(!t){var i=r.length;o=new Array(i);for(var a=0;a<i;++a)o[a]=r[a]}return o[e]=n,o},h=function(t,e,n){var r=n.length-1,o=0,i=0,a=n;if(t)o=i=e;else for(a=new Array(r);o<e;)a[i++]=n[o++];for(++o;o<=r;)a[i++]=n[o++];return t&&(a.length=r),a},v={__hamt_isEmpty:!0},m=function(t){return t===v||t&&t.__hamt_isEmpty},y=function(t,e,n,r){return{type:1,edit:t,hash:e,key:n,value:r,_modify:T}},g=function(t,e,n){return{type:2,edit:t,hash:e,children:n,_modify:x}},b=function(t,e,n){return{type:3,edit:t,mask:e,children:n,_modify:A}},S=function(t,e,n){return{type:4,edit:t,size:e,children:n,_modify:R}},_=function t(e,n,r,o,i,a){if(r===i)return g(e,r,[a,o]);var s=c(n,r),u=c(n,i);return b(e,d(s)|d(u),s===u?[t(e,n+5,r,o,i,a)]:s<u?[o,a]:[a,o])},w=function(t,e){return t===e.edit},T=function(t,e,n,r,o,i,a){if(e(i,this.key)){var u=r(this.value);return u===this.value?this:u===s?(--a.value,v):w(t,this)?(this.value=u,this):y(t,o,i,u)}var l=r();return l===s?this:(++a.value,_(t,n,this.hash,this,o,y(t,o,i,l)))},x=function(t,e,n,r,o,i,a){if(o===this.hash){var u=function(t,e,n,r,o,i,a,u){for(var l=o.length,c=0;c<l;++c){var d=o[c];if(n(a,d.key)){var f=d.value,v=i(f);return v===f?o:v===s?(--u.value,h(t,c,o)):p(t,c,y(e,r,a,v),o)}}var m=i();return m===s?o:(++u.value,p(t,l,y(e,r,a,m),o))}(w(t,this),t,e,this.hash,this.children,r,i,a);return u===this.children?this:u.length>1?g(t,this.hash,u):u[0]}var l=r();return l===s?this:(++a.value,_(t,n,this.hash,this,o,y(t,o,i,l)))},A=function(t,e,n,r,o,a,s){var u=this.mask,l=this.children,y=c(n,o),g=d(y),_=f(u,g),T=u&g,x=T?l[_]:v,A=x._modify(t,e,n+5,r,o,a,s);if(x===A)return this;var R,E=w(t,this),V=u,C=void 0;if(T&&m(A)){if(!(V&=~g))return v;if(l.length<=2&&((R=l[1^_])===v||1===R.type||2===R.type))return l[1^_];C=h(E,_,l)}else if(T||m(A))C=p(E,_,A,l);else{if(l.length>=i)return function(t,e,n,r,o){for(var i=[],a=r,s=0,u=0;a;++u)1&a&&(i[u]=o[s++]),a>>>=1;return i[e]=n,S(t,s+1,i)}(t,y,A,u,l);V|=g,C=function(t,e,n,r){var o=r.length;if(t){for(var i=o;i>=e;)r[i--]=r[i];return r[e]=n,r}for(var a=0,s=0,u=new Array(o+1);a<e;)u[s++]=r[a++];for(u[e]=n;a<o;)u[++s]=r[a++];return u}(E,_,A,l)}return E?(this.mask=V,this.children=C,this):b(t,V,C)},R=function(t,e,n,r,o,i,s){var u=this.size,l=this.children,d=c(n,o),f=l[d],h=(f||v)._modify(t,e,n+5,r,o,i,s);if(f===h)return this;var y=w(t,this),g=void 0;if(m(f)&&!m(h))++u,g=p(y,d,h,l);else if(!m(f)&&m(h)){if(--u<=a)return function(t,e,n,r){for(var o=new Array(e-1),i=0,a=0,s=0,u=r.length;s<u;++s)if(s!==n){var l=r[s];l&&!m(l)&&(o[i++]=l,a|=1<<s)}return b(t,a,o)}(t,u,d,l);g=p(y,d,v,l)}else g=p(y,d,h,l);return y?(this.size=u,this.children=g,this):S(t,u,g)};function E(t,e,n,r,o){this._editable=t,this._edit=e,this._config=n,this._root=r,this._size=o}v._modify=function(t,e,n,r,o,i,a){var u=r();return u===s?v:(++a.value,y(t,o,i,u))},E.prototype.setTree=function(t,e){return this._editable?(this._root=t,this._size=e,this):t===this._root?this:new E(this._editable,this._edit,this._config,t,e)};
vendor: 5,446 bytes, line 1
1var V=n.tryGetHash=function(t,e,n,r){for(var o=r._root,i=0,a=r._config.keyEq;;)switch(o.type){case 1:return a(n,o.key)?o.value:t;case 2:if(e===o.hash)for(var s=o.children,u=0,l=s.length;u<l;++u){var p=s[u];if(a(n,p.key))return p.value}return t;case 3:var h=c(i,e),v=d(h);if(o.mask&v){o=o.children[f(o.mask,v)],i+=5;break}return t;case 4:if(o=o.children[c(i,e)]){i+=5;break}return t;default:return t}};E.prototype.tryGetHash=function(t,e,n){return V(t,e,n,this)};var C=n.tryGet=function(t,e,n){return V(t,n._config.hash(e),e,n)};E.prototype.tryGet=function(t,e){return C(t,e,this)};var k=n.getHash=function(t,e,n){return V(void 0,t,e,n)};E.prototype.getHash=function(t,e){return k(t,e,this)},n.get=function(t,e){return V(void 0,e._config.hash(t),t,e)},E.prototype.get=function(t,e){return C(e,t,this)};var P=n.has=function(t,e,n){return V(s,t,e,n)!==s};E.prototype.hasHash=function(t,e){return P(t,e,this)};var L=n.has=function(t,e){return P(e._config.hash(t),t,e)};E.prototype.has=function(t){return L(t,this)};var M=function(t,e){return t===e};n.make=function(t){return new E(0,0,{keyEq:t&&t.keyEq||M,hash:t&&t.hash||l},v,0)},n.empty=n.make();var N=n.isEmpty=function(t){return t&&!!m(t._root)};E.prototype.isEmpty=function(){return N(this)};var D=n.modifyHash=function(t,e,n,r){var o={value:r._size},i=r._root._modify(r._editable?r._edit:NaN,r._config.keyEq,0,t,e,n,o);return r.setTree(i,o.value)};E.prototype.modifyHash=function(t,e,n){return D(n,t,e,this)};var O=n.modify=function(t,e,n){return D(t,n._config.hash(e),e,n)};E.prototype.modify=function(t,e){return O(e,t,this)};var U=n.setHash=function(t,e,n,r){return D(u(n),t,e,r)};E.prototype.setHash=function(t,e,n){return U(t,e,n,this)};var B=n.set=function(t,e,n){return U(n._config.hash(t),t,e,n)};E.prototype.set=function(t,e){return B(t,e,this)};var I=u(s),j=n.removeHash=function(t,e,n){return D(I,t,e,n)};E.prototype.removeHash=E.prototype.deleteHash=function(t,e){return j(t,e,this)};var F=n.remove=function(t,e){return j(e._config.hash(t),t,e)};E.prototype.remove=E.prototype.delete=function(t){return F(t,this)};var z=n.beginMutation=function(t){return new E(t._editable+1,t._edit+1,t._config,t._root,t._size)};E.prototype.beginMutation=function(){return z(this)};var $=n.endMutation=function(t){return t._editable=t._editable&&t._editable-1,t};E.prototype.endMutation=function(){return $(this)};var W=n.mutate=function(t,e){var n=z(e);return t(n),$(n)};E.prototype.mutate=function(t){return W(t,this)};var H=function(t){return t&&G(t[0],t[1],t[2],t[3],t[4])},G=function(t,e,n,r,o){for(;n<t;){var i=e[n++];if(i&&!m(i))return q(i,r,[t,e,n,r,o])}return H(o)},q=function(t,e,n){switch(t.type){case 1:return{value:e(t),rest:n};case 2:case 4:case 3:var r=t.children;return G(r.length,r,0,e,n);default:return H(n)}},Y={done:!0};function Z(t){this.v=t}Z.prototype.next=function(){if(!this.v)return Y;var t=this.v;return this.v=H(t.rest),t},Z.prototype[Symbol.iterator]=function(){return this};var K=function(t,e){return new Z(q(t._root,e))},X=function(t){return[t.key,t.value]},J=n.entries=function(t){return K(t,X)};E.prototype.entries=E.prototype[Symbol.iterator]=function(){return J(this)};var Q=function(t){return t.key},tt=n.keys=function(t){return K(t,Q)};E.prototype.keys=function(){return tt(this)};var et=function(t){return t.value},nt=n.values=E.prototype.values=function(t){return K(t,et)};E.prototype.values=function(){return nt(this)};var rt=n.fold=function(t,e,n){var r=n._root;if(1===r.type)return t(e,r.value,r.key);for(var o=[r.children],i=void 0;i=o.pop();)for(var a=0,s=i.length;a<s;){var u=i[a++];u&&u.type&&(1===u.type?e=t(e,u.value,u.key):o.push(u.children))}return e};E.prototype.fold=function(t,e){return rt(t,e,this)};var ot=n.forEach=function(t,e){return rt((function(n,r,o){return t(r,o,e)}),null,e)};E.prototype.forEach=function(t){return ot(t,this)};var it=n.count=function(t){return t._size};E.prototype.count=function(){return it(this)},Object.defineProperty(E.prototype,"size",{get:E.prototype.count}),t.exports?t.exports=n:(void 0).hamt=n},Q(tt={exports:{}},tt.exports),tt.exports);class nt{constructor(t){u(this,"_map",void 0),this._map=new Map(null===t||void 0===t?void 0:t.entries())}keys(){return this._map.keys()}entries(){return this._map.entries()}get(t){return this._map.get(t)}has(t){return this._map.has(t)}set(t,e){return this._map.set(t,e),this}delete(t){return this._map.delete(t),this}clone(){return ot(this)}toMap(){return new Map(this._map)}}class rt{constructor(t){if(u(this,"_hamt",et.empty.beginMutation()),t instanceof rt){const e=t._hamt.endMutation();t._hamt=e.beginMutation(),this._hamt=e.beginMutation()}else if(t)for(const[e,n]of t.entries())this._hamt.set(e,n)}keys(){return this._hamt.keys()}entries(){return this._hamt.entries()}get(t){return this._hamt.get(t)}has(t){return this._hamt.has(t)}set(t,e){return this._hamt.set(t,e),this}delete(t){return this._hamt.delete(t),this}clone(){return ot(this)}toMap(){return new Map(this._hamt)}}function ot(t){return j("recoil_hamt_2020")?new rt(t):new nt(t)}var it=ot,at=Object.freeze({__proto__:null,persistentMap:it});var st=function(t,...e){const n=new Set;t:for(const r of t){for(const t of e)if(t.has(r))continue t;n.add(r)}return n};var ut=function(t,e){const n=new Map;return t.forEach(((t,r)=>{n.set(r,e(t,r))})),n};function lt(t,e,n){const{nodeDeps:r,nodeToNodeSubscriptions:o}=e;t.forEach(((t,e)=>{const i=r.get(e);if(i&&n&&i!==n.nodeDeps.get(e))return;r.set(e,new Set(t));
1if((null==i?t:st(t,i)).forEach((t=>{o.has(t)||o.set(t,new Set);s(o.get(t)).add(e)})),i){st(i,t).forEach((t=>{if(!o.has(t))return;const n=s(o.get(t));n.delete(e),0===n.size&&o.delete(t)}))}}))}var ct={addToDependencyMap:function(t,e,n){n.has(t)||n.set(t,new Set),s(n.get(t)).add(e)},cloneGraph:function(t){return{nodeDeps:ut(t.nodeDeps,(t=>new Set(t))),nodeToNodeSubscriptions:ut(t.nodeToNodeSubscriptions,(t=>new Set(t)))}},graph:function(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}},mergeDepsIntoDependencyMap:function(t,e){t.forEach(((t,n)=>{e.has(n)||e.set(n,new Set);const r=s(e.get(n));t.forEach((t=>r.add(t)))}))},saveDependencyMapToStore:function(t,e,n){var r,o,i,a;const s=e.getState();n!==s.currentTree.version&&n!==(null===(r=s.nextTree)||void 0===r?void 0:r.version)&&n!==(null===(o=s.previousTree)||void 0===o?void 0:o.version)&&z("Tried to save dependencies to a discarded tree");const u=e.getGraph(n);if(lt(t,u),n===(null===(i=s.previousTree)||void 0===i?void 0:i.version)){lt(t,e.getGraph(s.currentTree.version),u)}if(n===(null===(a=s.previousTree)||void 0===a?void 0:a.version)||n===s.currentTree.version){var l;const n=null===(l=s.nextTree)||void 0===l?void 0:l.version;if(void 0!==n){lt(t,e.getGraph(n),u)}}}};let dt=0;let ft=0;let pt=0;var ht={getNextTreeStateVersion:()=>dt++,getNextStoreID:()=>ft++,getNextComponentID:()=>pt++};const{persistentMap:vt}=at,{graph:mt}=ct,{getNextTreeStateVersion:yt}=ht;function gt(){const t=yt();return{version:t,stateID:t,transactionMetadata:{},dirtyAtoms:new Set,atomValues:vt(),nonvalidatedAtoms:vt()}}var bt={makeEmptyTreeState:gt,makeEmptyStoreState:function(){const t=gt();return{currentTree:t,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:(new Map).set(t.version,mt()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}},getNextTreeStateVersion:yt};class St{}var _t={RetentionZone:St,retentionZone:function(){return new St}};var wt={setByAddingToSet:function(t,e){const n=new Set(t);return n.add(e),n},setByDeletingFromSet:function(t,e){const n=new Set(t);return n.delete(e),n},mapBySettingInMap:function(t,e,n){const r=new Map(t);return r.set(e,n),r},mapByUpdatingInMap:function(t,e,n){const r=new Map(t);return r.set(e,n(r.get(e))),r},mapByDeletingFromMap:function(t,e){const n=new Map(t);return n.delete(e),n},mapByDeletingMultipleFromMap:function(t,e){const n=new Map(t);return e.forEach((t=>n.delete(t))),n}};var Tt=function*(t,e){let n=0;for(const r of t)e(r,n++)&&(yield r)};var xt=function(t,e){return new Proxy(t,{get:(t,n)=>(!(n in t)&&n in e&&(t[n]=e[n]()),t[n]),ownKeys:t=>Object.keys(t)})};const{getNode:At,getNodeMaybe:Rt,recoilValuesForKeys:Et}=X,{RetentionZone:Vt}=_t,{setByAddingToSet:Ct}=wt,kt=Object.freeze(new Set);class Pt extends Error{}function Lt(t,e,n,r){const o=t.getState();if(o.nodeCleanupFunctions.has(n))return;const i=At(n),a=function(t,e,n){if(!j("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:r}=t.getState().retention;function o(t){let n=r.get(t);n||r.set(t,n=new Set),n.add(e)}if(n instanceof Vt)o(n);else if(Array.isArray(n))for(const i of n)o(i);return()=>{if(!j("recoil_memory_managament_2020"))return;const{retention:r}=t.getState();function o(t){const n=r.nodesRetainedByZone.get(t);null===n||void 0===n||n.delete(e),n&&0===n.size&&r.nodesRetainedByZone.delete(t)}if(n instanceof Vt)o(n);else if(Array.isArray(n))for(const t of n)o(t)}}(t,n,i.retainedBy),s=i.init(t,e,r);o.nodeCleanupFunctions.set(n,(()=>{s(),a()}))}function Mt(t,e,n){return At(n).peek(t,e)}function Nt(t,e,n){const r=new Set,o=Array.from(n),i=t.getGraph(e.version);for(let s=o.pop();s;s=o.pop()){var a;r.add(s);const t=null!==(a=i.nodeToNodeSubscriptions.get(s))&&void 0!==a?a:kt;for(const e of t)r.has(e)||o.push(e)}return r}var Dt,Ot,Ut,Bt={getNodeLoadable:function(t,e,n){return Lt(t,e,n,"get"),At(n).get(t,e)},peekNodeLoadable:Mt,setNodeValue:function(t,e,n,r){const o=At(n);if(null==o.set)throw new Pt(`Attempt to set read-only RecoilValue: ${n}`);const i=o.set;return Lt(t,e,n,"set"),i(t,e,r)}
1,initializeNode:function(t,e,n){Lt(t,t.getState().currentTree,e,n)},cleanUpNode:function(t,e){var n;const r=t.getState();null===(n=r.nodeCleanupFunctions.get(e))||void 0===n||n(),r.nodeCleanupFunctions.delete(e)},setUnvalidatedAtomValue_DEPRECATED:function(t,e,n){var r;const o=Rt(e);return null===o||void 0===o||null===(r=o.invalidate)||void 0===r||r.call(o,t),{...t,atomValues:t.atomValues.clone().delete(e),nonvalidatedAtoms:t.nonvalidatedAtoms.clone().set(e,n),dirtyAtoms:Ct(t.dirtyAtoms,e)}},peekNodeInfo:function(t,e,n){const r=t.getState(),o=t.getGraph(e.version),i=At(n).nodeType;return xt({type:i},{loadable:()=>Mt(t,e,n),isActive:()=>r.knownAtoms.has(n)||r.knownSelectors.has(n),isSet:()=>"selector"!==i&&e.atomValues.has(n),isModified:()=>e.dirtyAtoms.has(n),deps:()=>{var t;return Et(null!==(t=o.nodeDeps.get(n))&&void 0!==t?t:[])},subscribers:()=>{var o,i;return{nodes:Et(Tt(Nt(t,e,new Set([n])),(t=>t!==n))),components:F(null!==(o=null===(i=r.nodeToComponentSubscriptions.get(n))||void 0===i?void 0:i.values())&&void 0!==o?o:[],(([t])=>({name:t})))}}})},getDownstreamNodes:Nt};const It=null!==(Dt=r.createMutableSource)&&void 0!==Dt?Dt:r.unstable_createMutableSource,jt=null!==(Ot=r.useMutableSource)&&void 0!==Ot?Ot:r.unstable_useMutableSource,Ft=null!==(Ut=r.useSyncExternalStore)&&void 0!==Ut?Ut:r.unstable_useSyncExternalStore;var zt={createMutableSource:It,useMutableSource:jt,useSyncExternalStore:Ft,reactMode:function(){return j("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:j("recoil_sync_external_store")&&null!=Ft?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:j("recoil_mutable_source")&&null!=jt&&"undefined"!==typeof window&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?j("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:j("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}}};const{getDownstreamNodes:$t,getNodeLoadable:Wt,setNodeValue:Ht}=Bt,{getNextComponentID:Gt}=ht,{getNode:qt,getNodeMaybe:Yt}=X,{DefaultValue:Zt,RecoilValueNotReady:Kt}=X,{reactMode:Xt}=zt,{AbstractRecoilValue:Jt,RecoilState:Qt,RecoilValueReadOnly:te,isRecoilValue:ee}=O;function ne(t,e,n){if("set"===n.type){const{recoilValue:r,valueOrUpdater:o}=n,i=function(t,e,{key:n},r){if("function"===typeof r){const o=Wt(t,e,n);if("loading"===o.state)throw new Kt(n);if("hasError"===o.state)throw o.contents;return r(o.contents)}return r}(t,e,r,o),a=Ht(t,e,r.key,i);for(const[t,n]of a.entries())re(e,t,n)}else if("setLoadable"===n.type){const{recoilValue:{key:t},loadable:r}=n;re(e,t,r)}else if("markModified"===n.type){const{recoilValue:{key:t}}=n;e.dirtyAtoms.add(t)}else if("setUnvalidated"===n.type){var r;const{recoilValue:{key:t},unvalidatedValue:o}=n,i=Yt(t);null===i||void 0===i||null===(r=i.invalidate)||void 0===r||r.call(i,e),e.atomValues.delete(t),e.nonvalidatedAtoms.set(t,o),e.dirtyAtoms.add(t)}else z(`Unknown action ${n.type}`)}function re(t,e,n){"hasValue"===n.state&&n.contents instanceof Zt?t.atomValues.delete(e):t.atomValues.set(e,n),t.dirtyAtoms.add(e),t.nonvalidatedAtoms.delete(e)}function oe(t,e){t.replaceState((n=>{const r=se(n);for(const o of e)ne(t,r,o);return ue(t,r),r}))}function ie(t,e){if(ae.length){const n=ae[ae.length-1];let r=n.get(t);r||n.set(t,r=[]),r.push(e)}else oe(t,[e])}const ae=[];function se(t){return{...t,atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(t.dirtyAtoms)}}function ue(t,e){const n=$t(t,e,e.dirtyAtoms);for(const i of n){var r,o;null===(r=Yt(i))||void 0===r||null===(o=r.invalidate)||void 0===o||o.call(r,e)}}function le(t,e,n){ie(t,{type:"set",recoilValue:e,valueOrUpdater:n})}var ce={RecoilValueReadOnly:te,AbstractRecoilValue:Jt,RecoilState:Qt,getRecoilValueAsLoadable:function(t,{key:e},n=t.getState().currentTree){var r,o;const i=t.getState();n.version!==i.currentTree.version&&n.version!==(null===(r=i.nextTree)||void 0===r?void 0:r.version)&&n.version!==(null===(o=i.previousTree)||void 0===o?void 0:o.version)&&z("Tried to read from a discarded tree");const a=Wt(t,n,e);return"loading"===a.state&&a.contents.catch((()=>{})),a}
1,setRecoilValue:le,setRecoilValueLoadable:function(t,e,n){if(n instanceof Zt)return le(t,e,n);ie(t,{type:"setLoadable",recoilValue:e,loadable:n})},markRecoilValueModified:function(t,e){ie(t,{type:"markModified",recoilValue:e})},setUnvalidatedRecoilValue:function(t,e,n){ie(t,{type:"setUnvalidated",recoilValue:e,unvalidatedValue:n})},subscribeToRecoilValue:function(t,{key:e},n,r=null){const o=Gt(),i=t.getState();i.nodeToComponentSubscriptions.has(e)||i.nodeToComponentSubscriptions.set(e,new Map),s(i.nodeToComponentSubscriptions.get(e)).set(o,[null!==r&&void 0!==r?r:"<not captured>",n]);const a=Xt();if(a.early&&("LEGACY"===a.mode||"MUTABLE_SOURCE"===a.mode)){const r=t.getState().nextTree;r&&r.dirtyAtoms.has(e)&&n(r)}return{release:()=>{const n=t.getState(),r=n.nodeToComponentSubscriptions.get(e);void 0!==r&&r.has(o)?(r.delete(o),0===r.size&&n.nodeToComponentSubscriptions.delete(e)):z(`Subscription missing at release time for atom ${e}. This is a bug in Recoil.`)}}},isRecoilValue:ee,applyAtomValueWrites:function(t,e){const n=t.clone();return e.forEach(((t,e)=>{"hasValue"===t.state&&t.contents instanceof Zt?n.delete(e):n.set(e,t)})),n},batchStart:function(){const t=new Map;return ae.push(t),()=>{for(const[e,n]of t)oe(e,n);ae.pop()!==t&&z("Incorrect order of batch popping")}},writeLoadableToTreeState:re,invalidateDownstreams:ue,copyTreeState:se,refreshRecoilValue:function(t,e){var n;const{currentTree:r}=t.getState(),o=qt(e.key);null===(n=o.clearCache)||void 0===n||n.call(o,t,r)},invalidateDownstreams_FOR_TESTING:ue};var de=function(t,e,n){const r=t.entries();let o=r.next();for(;!o.done;){const i=o.value;if(e.call(n,i[1],i[0],t))return!0;o=r.next()}return!1};const{cleanUpNode:fe}=Bt,{deleteNodeConfigIfPossible:pe,getNode:he}=X,{RetentionZone:ve}=_t,me=new Set;function ye(t,e){const n=t.getState(),r=n.currentTree;if(n.nextTree)return void z("releaseNodesNowOnCurrentTree should only be called at the end of a batch");const o=new Set;for(const a of e)if(a instanceof ve)for(const t of be(n,a))o.add(t);else o.add(a);const i=function(t,e){const n=t.getState(),r=n.currentTree,o=t.getGraph(r.version),i=new Set,a=new Set;return u(e),i;function u(e){const l=new Set,c=function(t,e,n,r,o){const i=t.getGraph(e.version),a=[],u=new Set;for(;n.size>0;)l(s(n.values().next().value));return a;function l(t){if(r.has(t)||o.has(t))return void n.delete(t);if(u.has(t))return;const e=i.nodeToNodeSubscriptions.get(t);if(e)for(const n of e)l(n);u.add(t),n.delete(t),a.push(t)}}(t,r,e,i,a);for(const t of c){var d;if("recoilRoot"===he(t).retainedBy){a.add(t);continue}if((null!==(d=n.retention.referenceCounts.get(t))&&void 0!==d?d:0)>0){a.add(t);continue}if(Se(t).some((t=>n.retention.referenceCounts.get(t)))){a.add(t);continue}const e=o.nodeToNodeSubscriptions.get(t);e&&de(e,(t=>a.has(t)))?a.add(t):(i.add(t),l.add(t))}const f=new Set;for(const t of l)for(const e of null!==(p=o.nodeDeps.get(t))&&void 0!==p?p:me){var p;i.has(e)||f.add(e)}f.size&&u(f)}}(t,o);for(const a of i)ge(t,r,a)}function ge(t,e,n){if(!j("recoil_memory_managament_2020"))return;fe(t,n);const r=t.getState();r.knownAtoms.delete(n),r.knownSelectors.delete(n),r.nodeTransactionSubscriptions.delete(n),r.retention.referenceCounts.delete(n);const o=Se(n);for(const u of o){var i;null===(i=r.retention.nodesRetainedByZone.get(u))||void 0===i||i.delete(n)}e.atomValues.delete(n),e.dirtyAtoms.delete(n),e.nonvalidatedAtoms.delete(n);const a=r.graphsByVersion.get(e.version);if(a){const t=a.nodeDeps.get(n);if(void 0!==t){a.nodeDeps.delete(n);for(const e of t){var s;null===(s=a.nodeToNodeSubscriptions.get(e))||void 0===s||s.delete(n)}}a.nodeToNodeSubscriptions.delete(n)}pe(n)}function be(t,e){var n;return null!==(n=t.retention.nodesRetainedByZone.get(e))&&void 0!==n?n:me}function Se(t){const e=he(t).retainedBy;return void 0===e||"components"===e||"recoilRoot"===e?[]:e instanceof ve?[e]:e}function _e(t,e){if(!j("recoil_memory_managament_2020"))return;t.getState().retention.referenceCounts.delete(e),function(t,e){const n=t.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(e):ye(t,new Set([e]))}(t,e)}var we={SUSPENSE_TIMEOUT_MS:12e4,updateRetainCount:function(t,e,n){var r;if(!j("recoil_memory_managament_2020"))return;const o=t.getState().retention.referenceCounts,i=(null!==(r=o.get(e))&&void 0!==r?r:0)+n;0===i?_e(t,e):o.set(e,i)},updateRetainCountToZero:_e,releaseScheduledRetainablesNow:function(t){if(!j("recoil_memory_managament_2020"))return;const e=t.getState();ye(t,e.retention.retainablesToCheckForRelease),e.retention.retainablesToCheckForRelease.clear()},retainedByOptionWithDefault:function(t){return void 0===t?"recoilRoot":t}};const{unstable_batchedUpdates:Te}=o;var xe={unstable_batchedUpdates:Te};const{unstable_batchedUpdates:Ae}=xe;var Re={unstable_batchedUpdates:Ae};const{batchStart:Ee}=ce,{unstable_batchedUpdates:Ve}=Re;let Ce=Ve;var ke={getBatcher:()=>Ce,setBatcher:t=>{Ce=t},batchUpdates:t=>{Ce((()=>{let e=()=>{};try{e=Ee(),t()}finally{e()}}))}};var Pe=function*(t){for(const e of t)for(const t of e)yield t};var Le={isSSR:"undefined"===typeof window,isReactNative:"undefined"!==typeof navigator&&"ReactNative"===navigator.product};var Me={memoizeWithArgsHash:function(t,e){let n;return(...r)=>{n||(n={});const o=e(...r);return Object.hasOwnProperty.call(n,o)||(n[o]=t.apply(this,r)),n[o]}},memoizeOneWithArgsHash:function(t,e){let n,r;return(...o)=>{const i=e(...o);return n===i||(n=i,r=t.apply(this,o)),r}},memoizeOneWithArgsHashAndInvalidation:function(t,e){let n,r;return[(...o)=>{const i=e(...o);return n===i||(n=i,r=t.apply(this,o)),r},()=>{n=null}]}};const{batchUpdates:Ne}=ke,{initializeNode:De,peekNodeInfo:Oe}=Bt,{graph:Ue}=ct,{getNextStoreID:Be}=ht,{DEFAULT_VALUE:Ie,recoilValues:je,recoilValuesForKeys:Fe}=X,{AbstractRecoilValue:ze,getRecoilValueAsLoadable:$e,setRecoilValue:We,setUnvalidatedRecoilValue:He}=ce,{updateRetainCount:Ge}=we,{getNextTreeStateVersion:qe,makeEmptyStoreState:Ye}=bt,{isSSR:Ze}=Le,{memoizeOneWithArgsHashAndInvalidation:Ke}=Me;class Xe{constructor(t){u(this,"_store",void 0),u(this,"_refCount",1),u(this,"getLoadable",(t=>(this.checkRefCount_INTERNAL(),$e(this._store,t)))),u(this,"getPromise",(t=>
1(this.checkRefCount_INTERNAL(),this.getLoadable(t).toPromise()))),u(this,"getNodes_UNSTABLE",(t=>{if(this.checkRefCount_INTERNAL(),!0===(null===t||void 0===t?void 0:t.isModified)){if(!1===(null===t||void 0===t?void 0:t.isInitialized))return[];const e=this._store.getState().currentTree;return Fe(e.dirtyAtoms)}const e=this._store.getState().knownAtoms,n=this._store.getState().knownSelectors;return null==(null===t||void 0===t?void 0:t.isInitialized)?je.values():!0===t.isInitialized?Fe(Pe([this._store.getState().knownAtoms,this._store.getState().knownSelectors])):Tt(je.values(),(({key:t})=>!e.has(t)&&!n.has(t)))})),u(this,"getInfo_UNSTABLE",(({key:t})=>(this.checkRefCount_INTERNAL(),Oe(this._store,this._store.getState().currentTree,t)))),u(this,"map",(t=>{this.checkRefCount_INTERNAL();const e=new en(this,Ne);return t(e),e})),u(this,"asyncMap",(async t=>{this.checkRefCount_INTERNAL();const e=new en(this,Ne);return e.retain(),await t(e),e.autoRelease_INTERNAL(),e})),this._store={storeID:Be(),getState:()=>t,replaceState:e=>{t.currentTree=e(t.currentTree)},getGraph:e=>{const n=t.graphsByVersion;if(n.has(e))return s(n.get(e));const r=Ue();return n.set(e,r),r},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw i("Cannot subscribe to Snapshots")}};for(const e of this._store.getState().knownAtoms)De(this._store,e,"get"),Ge(this._store,e,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0&&z("Attempt to retain() Snapshot that was already released."),this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){Ze||window.setTimeout((()=>this._release()),0)}_release(){if(this._refCount--,0===this._refCount){if(this._store.getState().nodeCleanupFunctions.forEach((t=>t())),this._store.getState().nodeCleanupFunctions.clear(),!j("recoil_memory_managament_2020"))return}else this._refCount}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){j("recoil_memory_managament_2020")&&this._refCount}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}}function Je(t,e,n=!1){const r=t.getState(),o=n?qe():e.version;return{currentTree:n?{version:o,stateID:o,transactionMetadata:{...e.transactionMetadata},dirtyAtoms:new Set(e.dirtyAtoms),atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone()}:e,commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(r.knownAtoms),knownSelectors:new Set(r.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:(new Map).set(o,t.getGraph(e.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(F(r.nodeCleanupFunctions.entries(),(([t])=>[t,()=>{}])))}}const[Qe,tn]=Ke(((t,e)=>{const n=t.getState(),r="current"===e?n.currentTree:s(n.previousTree);return new Xe(Je(t,r))}),((t,e)=>{var n;return String(e)+String(t.storeID)+String(t.getState().currentTree.version)+String(null===(n=t.getState().previousTree)||void 0===n?void 0:n.version)}));class en extends Xe{constructor(t,e){super(Je(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0)),u(this,"_batch",void 0),u(this,"set",((t,e)=>{this.checkRefCount_INTERNAL();const n=this.getStore_INTERNAL();this._batch((()=>{Ge(n,t.key,1),We(this.getStore_INTERNAL(),t,e)}))})),u(this,"reset",(t=>{this.checkRefCount_INTERNAL();const e=this.getStore_INTERNAL();this._batch((()=>{Ge(e,t.key,1),We(this.getStore_INTERNAL(),t,Ie)}))})),u(this,"setUnvalidatedAtomValues_DEPRECATED",(t=>{this.checkRefCount_INTERNAL();const e=this.getStore_INTERNAL();Ne((()=>{for(const[n,r]of t.entries())Ge(e,n,1),He(e,new ze(n),r)}))})),this._batch=e}}var nn={Snapshot:Xe,MutableSnapshot:en,freshSnapshot:function(t){const e=new Xe(Ye());return null!=t?e.map(t):e}
1,cloneSnapshot:function(t,e="current"){const n=Qe(t,e);return n.isRetained()?n:(tn(),Qe(t,e))}},rn=nn.Snapshot,on=nn.MutableSnapshot,an=nn.freshSnapshot,sn=nn.cloneSnapshot,un=Object.freeze({__proto__:null,Snapshot:rn,MutableSnapshot:on,freshSnapshot:an,cloneSnapshot:sn});var ln=function(...t){const e=new Set;for(const n of t)for(const t of n)e.add(t);return e};const{useRef:cn}=r;var dn=function(t){const e=cn(t);return e.current===t&&"function"===typeof t&&(e.current=t()),e};const{getNextTreeStateVersion:fn,makeEmptyStoreState:pn}=bt,{cleanUpNode:hn,getDownstreamNodes:vn,initializeNode:mn,setNodeValue:yn,setUnvalidatedAtomValue_DEPRECATED:gn}=Bt,{graph:bn}=ct,{cloneGraph:Sn}=ct,{getNextStoreID:_n}=ht,{createMutableSource:wn,reactMode:Tn}=zt,{applyAtomValueWrites:xn}=ce,{releaseScheduledRetainablesNow:An}=we,{freshSnapshot:Rn}=un,{useCallback:En,useContext:Vn,useEffect:Cn,useMemo:kn,useRef:Pn,useState:Ln}=r;function Mn(){throw i("This component must be used inside a <RecoilRoot> component.")}const Nn=Object.freeze({storeID:_n(),getState:Mn,replaceState:Mn,getGraph:Mn,subscribeToTransactions:Mn,addTransactionMetadata:Mn});let Dn=!1;function On(t){if(Dn)throw i("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const e=t.getState();if(null===e.nextTree){j("recoil_memory_managament_2020")&&j("recoil_release_on_cascading_update_killswitch_2021")&&e.commitDepth>0&&An(t);const n=e.currentTree.version,r=fn();e.nextTree={...e.currentTree,version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}},e.graphsByVersion.set(r,Sn(s(e.graphsByVersion.get(n))))}}const Un=r.createContext({current:Nn}),Bn=()=>Vn(Un),In=r.createContext(null);function jn(t,e,n){const r=vn(t,n,n.dirtyAtoms);for(const o of r){const t=e.nodeToComponentSubscriptions.get(o);if(t)for(const[e,[r,o]]of t)o(n)}}function Fn(t){const e=t.getState(),n=e.currentTree,r=n.dirtyAtoms;if(r.size){for(const[n,o]of e.nodeTransactionSubscriptions)if(r.has(n))for(const[e,r]of o)r(t);for(const[n,r]of e.transactionSubscriptions)r(t);(!Tn().early||e.suspendedComponentResolvers.size>0)&&(jn(t,e,n),e.suspendedComponentResolvers.forEach((t=>t())),e.suspendedComponentResolvers.clear())}e.queuedComponentCallbacks_DEPRECATED.forEach((t=>t(n))),e.queuedComponentCallbacks_DEPRECATED.splice(0,e.queuedComponentCallbacks_DEPRECATED.length)}function zn({setNotifyBatcherOfChange:t}){const e=Bn(),[,n]=Ln([]);return t((()=>n({}))),Cn((()=>(t((()=>n({}
1))),()=>{t((()=>{}))})),[t]),Cn((()=>{J.enqueueExecution("Batcher",(()=>{!function(t){const e=t.getState();e.commitDepth++;try{const{nextTree:n}=e;if(null===n)return;e.previousTree=e.currentTree,e.currentTree=n,e.nextTree=null,Fn(t),null!=e.previousTree?e.graphsByVersion.delete(e.previousTree.version):z("Ended batch with no previous state, which is unexpected","recoil"),e.previousTree=null,j("recoil_memory_managament_2020")&&An(t)}finally{e.commitDepth--}}(e.current)}))})),null}let $n=0;function Wn({initializeState_DEPRECATED:t,initializeState:e,store_INTERNAL:n,children:o}){let i;const a=t=>{const e=i.current.graphsByVersion;if(e.has(t))return s(e.get(t));const n=bn();return e.set(t,n),n},u=(t,e)=>{if(null==e){const{transactionSubscriptions:e}=p.current.getState(),n=$n++;return e.set(n,t),{release:()=>{e.delete(n)}}}{const{nodeTransactionSubscriptions:n}=p.current.getState();n.has(e)||n.set(e,new Map);const r=$n++;return s(n.get(e)).set(r,t),{release:()=>{const t=n.get(e);t&&(t.delete(r),0===t.size&&n.delete(e))}}}},l=t=>{On(p.current);for(const e of Object.keys(t))s(p.current.getState().nextTree).transactionMetadata[e]=t[e]},c=t=>{On(p.current);const e=s(i.current.nextTree);let n;try{Dn=!0,n=t(e)}finally{Dn=!1}n!==e&&(i.current.nextTree=n,Tn().early&&jn(p.current,i.current,n),s(d.current)())},d=Pn(null),f=En((t=>{d.current=t}),[d]),p=dn((()=>null!==n&&void 0!==n?n:{storeID:_n(),getState:()=>i.current,replaceState:c,getGraph:a,subscribeToTransactions:u,addTransactionMetadata:l}));null!=n&&(p.current=n),i=dn((()=>null!=t?function(t,e){const n=pn();return e({set:(e,r)=>{const o=n.currentTree,i=yn(t,o,e.key,r),a=new Set(i.keys()),s=o.nonvalidatedAtoms.clone();for(const t of a)s.delete(t);n.currentTree={...o,dirtyAtoms:ln(o.dirtyAtoms,a),atomValues:xn(o.atomValues,i),nonvalidatedAtoms:s}},setUnvalidatedAtomValues:t=>{t.forEach(((t,e)=>{n.currentTree=gn(n.currentTree,e,t)}))}}),n}(p.current,t):null!=e?function(t){const e=Rn().map(t),n=e.getStore_INTERNAL().getState();return e.retain(),n.nodeCleanupFunctions.forEach((t=>t())),n.nodeCleanupFunctions.clear(),n}(e):pn()));const h=kn((()=>null===wn||void 0===wn?void 0:wn(i,(()=>i.current.currentTree.version))),[i]);return Cn((()=>{const t=p.current;for(const e of new Set(t.getState().knownAtoms))mn(t,e,"get");return()=>{for(const e of t.getState().knownAtoms)hn(t,e)}}),[p]),r.createElement(Un.Provider,{value:p},r.createElement(In.Provider,{value:h},r.createElement(zn,{setNotifyBatcherOfChange:f}),o))}var Hn={RecoilRoot:function(t){const{override:e,...n}=t,o=Bn();return!1===e&&o.current!==Nn?t.children:r.createElement(Wn,n)},useStoreRef:Bn,useRecoilMutableSource:function(){const t=Vn(In);return null==t&&U("Attempted to use a Recoil hook outside of a <RecoilRoot>. <RecoilRoot> must be an ancestor of any component that uses Recoil hooks."),t},useRecoilStoreID:function(){return Bn().current.storeID},notifyComponents_FOR_TESTING:jn,sendEndOfBatchNotifications_FOR_TESTING:Fn};var Gn=function(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(let n=0,r=t.length;n<r;n++)if(t[n]!==e[n])return!1;return!0};const{useEffect:qn,useRef:Yn}=r;var Zn=function(t){const e=Yn();return qn((()=>{e.current=t})),e.current};const{useStoreRef:Kn}=Hn,{SUSPENSE_TIMEOUT_MS:Xn}=we,{updateRetainCount:Jn}=we,{RetentionZone:Qn}=_t,{useEffect:tr,useRef:er}=r,{isSSR:nr}=Le;var rr=function(t){if(j("recoil_memory_managament_2020"))return function(t){const e=(Array.isArray(t)?t:[t]).map((t=>t instanceof Qn?t:t.key)),n=Kn();tr((()=>{if(!j("recoil_memory_managament_2020"))return;const t=n.current;if(r.current&&!nr)window.clearTimeout(r.current),r.current=null;else for(const n of e)Jn(t,n,1);return()=>{for(const n of e)Jn(t,n,-1)}}),[n,...e]);const r=er(),o=Zn(e);if(!nr&&(void 0===o||!Gn(o,e))){const t=n.current;for(const n of e)Jn(t,n,1);if(o)for(const e of o)Jn(t,e,-1);r.current&&window.clearTimeout(r.current),r.current=window.setTimeout((()=>{r.current=null;for(const n of e)Jn(t,n,-1)}),Xn)}}(t)};const{useRef:or}=r;var ir=function(){return or(),"<component name not available>"};const{batchUpdates:ar}=ke,{DEFAULT_VALUE:sr}=X,{reactMode:ur,useMutableSource:lr,useSyncExternalStore:cr}=zt,{useRecoilMutableSource:dr,useStoreRef:fr}=Hn,{isRecoilValue:pr}=O,{AbstractRecoilValue:hr,getRecoilValueAsLoadable:vr,setRecoilValue:mr,setUnvalidatedRecoilValue:yr,subscribeToRecoilValue:gr}=ce,{useCallback:br,useEffect:Sr,useMemo:_r,useRef:wr,useState:Tr}=r,{setByAddingToSet:xr}=wt;function Ar(t,e,n){if("hasValue"===t.state)return t.contents;if("loading"===t.state){throw new Promise((t=>{n.current.getState().suspendedComponentResolvers.add(t)}))}throw"hasError"===t.state?t.contents:i(`Invalid value of loadable atom "${e.key}"`)}function Rr(t){const e=fr(),n=ir(),r=br((()=>{var n;const r=e.current,o=r.getState(),i=ur().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return{loadable:vr(r,t,i),key:t.key}}),[e,t]),o=br((t=>{let e;return()=>{var n,r;const o=t();return null!==(n=e)&&void 0!==n&&n.loadable.is(o.loadable)&&(null===(r=e)||void 0===r?void 0:r.key)===o.key?e:(e=o,o)}}),[]),i=_r((()=>o(r)),[r,o]),a=br((r=>{const o=e.current;return gr(o,t,r,n).release}),[e,t,n]);return cr(a,i,i).loadable}function Er(t){const e=fr(),n=br((()=>{var n;const r=e.current,o=r.getState(),i=ur().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return vr(r,t,i)}),[e,t]),r=br((()=>n()),[n]),o=ir(),a=br(((r,i)=>{const a=e.current;return gr(a,t,(()=>{if(!j("recoil_suppress_rerender_in_callback"))return i();const t=n();l.current.is(t)||i(),l.current=t}),o).release}),[e,t,o,n]),s=dr();if(null==s)throw i("Recoil hooks must be used in components contained within a <RecoilRoot> component.");const u=lr(s,r,a),l=wr(u);return Sr((()=>{l.current=u})),u}function Vr(t){const e=fr(),n=ir(),r=br((()=>{var n;const r=e.current,o=r.getState(),i=ur().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return vr(r,t,i)}),[e,t]),o=br((()=>({loadable:r(),key:t.key})),[r,t.key]),i=br((t=>{const e=o();return t.loadable.is(e.loadable)&&t.key===e.key?t:e}),[o]);Sr((()=>{const r=gr(e.current,t,(t=>{s(i)}),n);return s(i),r.release}),[n,t,e,i]);const[a,s]=Tr(o);return a.key!==t.key?o().loadable:a.loadable}function Cr(t){const e=fr(),[,n]=Tr([]),r=ir(),o=br((()=>{var n;const r=e.current,o=r.getState(),i=ur().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return vr(r,t,i)}),[e,t]),i=o(),a=wr(i);return Sr((()=>{a.current=i})),Sr((()=>{const i=e.current,s=i.getState(),u=gr(i,t,(t=>{var e;if(!j("recoil_suppress_rerender_in_callback"))return n([]);const r=o();null!==(e=a.current)&&void 0!==e&&e.is(r)||n(r),a.current=r}),r);if(s.nextTree)i.getState().queuedComponentCallbacks_DEPRECATED.push((()=>{a.current=null,n([])}));else{var l;if(!j("recoil_suppress_rerender_in_callback"))return n([]);const t=o();null!==(l=a.current)&&void 0!==l&&l.is(t)||n(t),a.current=t}return u.release}),[r,o,t,e]),i}function kr(t){return j("recoil_memory_managament_2020")&&rr(t),{TRANSITION_SUPPORT:Vr,SYNC_EXTERNAL_STORE:Rr,MUTABLE_SOURCE:Er,LEGACY:Cr}[ur().mode](t)}function Pr(t){const e=fr();return Ar(kr(t),t,e)}function Lr(t){const e=fr();return br((n=>{mr(e.current,t,n)}),[e,t])}function Mr(t){return j("recoil_memory_managament_2020")&&rr(t),Vr(t)}function Nr(t){const e=fr();return Ar(Mr(t),t,e)}var Dr={recoilComponentGetRecoilValueCount_FOR_TESTING:{current:0},useRecoilInterface:function(){const t=ir(),e=fr(),[,n]=Tr([]),r=wr(new Set);
1r.current=new Set;const o=wr(new Set),i=wr(new Map),a=br((t=>{const e=i.current.get(t);e&&(e.release(),i.current.delete(t))}),[i]),s=br(((t,e)=>{i.current.has(e)&&n([])}),[]);return Sr((()=>{const n=e.current;st(r.current,o.current).forEach((e=>{if(i.current.has(e))return void U(`Double subscription to RecoilValue "${e}"`);const r=gr(n,new hr(e),(t=>s(t,e)),t);i.current.set(e,r);n.getState().nextTree?n.getState().queuedComponentCallbacks_DEPRECATED.push((()=>{s(n.getState(),e)})):s(n.getState(),e)})),st(o.current,r.current).forEach((t=>{a(t)})),o.current=r.current})),Sr((()=>{const n=i.current;return st(r.current,new Set(n.keys())).forEach((r=>{const o=gr(e.current,new hr(r),(t=>s(t,r)),t);n.set(r,o)})),()=>n.forEach(((t,e)=>a(e)))}),[t,e,a,s]),_r((()=>{function t(t){return n=>{mr(e.current,t,n)}}function n(t){var n;r.current.has(t.key)||(r.current=xr(r.current,t.key));const o=e.current.getState();return vr(e.current,t,ur().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree)}function o(t){return Ar(n(t),t,e)}
1return{getRecoilValue:o,getRecoilValueLoadable:n,getRecoilState:function(e){return[o(e),t(e)]},getRecoilStateLoadable:function(e){return[n(e),t(e)]},getSetRecoilState:t,getResetRecoilState:function(t){return()=>mr(e.current,t,sr)}}}),[r,e])},useRecoilState:function(t){return[Pr(t),Lr(t)]},useRecoilStateLoadable:function(t){return[kr(t),Lr(t)]},useRecoilValue:Pr,useRecoilValueLoadable:kr,useResetRecoilState:function(t){const e=fr();return br((()=>{mr(e.current,t,sr)}),[e,t])},useSetRecoilState:Lr,useSetUnvalidatedAtomValues:function(){const t=fr();return(e,n={})=>{ar((()=>{t.current.addTransactionMetadata(n),e.forEach(((e,n)=>yr(t.current,new hr(n),e)))}))}},useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Mr,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Nr,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:function(t){return[Nr(t),Lr(t)]}};var Or=function(t,e){const n=new Map;for(const[r,o]of t)e(o,r)&&n.set(r,o);return n};var Ur=function(t,e){const n=new Set;for(const r of t)e(r)&&n.add(r);return n};var Br=function(...t){const e=new Map;for(let n=0;n<t.length;n++){const r=t[n].keys();let o;for(;!(o=r.next()).done;)e.set(o.value,t[n].get(o.value))}return e};const{batchUpdates:Ir}=ke,{DEFAULT_VALUE:jr,getNode:Fr,nodes:zr}=X,{useStoreRef:$r}
1=Hn,{AbstractRecoilValue:Wr,setRecoilValueLoadable:Hr}=ce,{SUSPENSE_TIMEOUT_MS:Gr}=we,{cloneSnapshot:qr}=un,{useCallback:Yr,useEffect:Zr,useRef:Kr,useState:Xr}=r,{isSSR:Jr}=Le;function Qr(t){const e=$r();Zr((()=>e.current.subscribeToTransactions(t).release),[t,e])}function to(t){const e=t.atomValues.toMap(),n=ut(Or(e,((t,e)=>{const n=Fr(e).persistence_UNSTABLE;return null!=n&&"none"!==n.type&&"hasValue"===t.state})),(t=>t.contents));return Br(t.nonvalidatedAtoms.toMap(),n)}function eo(t,e){var n;const r=t.getState(),o=null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree,i=e.getStore_INTERNAL().getState().currentTree;Ir((()=>{const n=new Set;for(const t of[o.atomValues.keys(),i.atomValues.keys()])for(const e of t){var r,a;(null===(r=o.atomValues.get(e))||void 0===r?void 0:r.contents)!==(null===(a=i.atomValues.get(e))||void 0===a?void 0:a.contents)&&Fr(e).shouldRestoreFromSnapshots&&n.add(e)}n.forEach((e=>{Hr(t,new Wr(e),i.atomValues.has(e)?s(i.atomValues.get(e)):jr)})),t.replaceState((t=>({...t,stateID:e.getID()})))}))}var no={useRecoilSnapshot:function(){const t=$r(),[e,n]=Xr((()=>qr(t.current))),r=Zn(e),o=Kr(),i=Kr();if(Qr(Yr((t=>n(qr(t))),[])),Zr((()=>{const t=e.retain();var n;o.current&&!Jr&&(window.clearTimeout(o.current),o.current=null,null===(n=i.current)||void 0===n||n.call(i),i.current=null);return t}),[e]),r!==e&&!Jr){var a;if(o.current)window.clearTimeout(o.current),o.current=null,null===(a=i.current)||void 0===a||a.call(i),i.current=null;i.current=e.retain(),o.current=window.setTimeout((()=>{var t;o.current=null,null===(t=i.current)||void 0===t||t.call(i),i.current=null}),Gr)}return e},gotoSnapshot:eo,useGotoRecoilSnapshot:function(){const t=$r();return Yr((e=>eo(t.current,e)),[t])},useRecoilTransactionObserver:function(t){Qr(Yr((e=>{const n=qr(e,"current"),r=qr(e,"previous");t({snapshot:n,previousSnapshot:r})}),[t]))},useTransactionObservation_DEPRECATED:function(t){Qr(Yr((e=>{let n=e.getState().previousTree;const r=e.getState().currentTree;n||(z("Transaction subscribers notified without a previous tree being present -- this is a bug in Recoil"),n=e.getState().currentTree);const o=to(r),i=to(n),a=ut(zr,(t=>{var e,n,r,o;return{persistence_UNSTABLE:{type:null!==(e=null===(n=t.persistence_UNSTABLE)||void 0===n?void 0:n.type)&&void 0!==e?e:"none",backButton:null!==(r=null===(o=t.persistence_UNSTABLE)||void 0===o?void 0:o.backButton)&&void 0!==r&&r}}})),s=Ur(r.dirtyAtoms,(t=>o.has(t)||i.has(t)));t({atomValues:o,previousAtomValues:i,atomInfo:a,modifiedAtoms:s,transactionMetadata:{...r.transactionMetadata}})}),[t]))},useTransactionSubscription_DEPRECATED:Qr};const{peekNodeInfo:ro}=Bt,{useStoreRef:oo}=Hn;var io=function(){const t=oo();return({key:e})=>ro(t.current,t.current.getState().currentTree,e)};const{reactMode:ao}=zt,{RecoilRoot:so,useStoreRef:uo}=Hn,{useMemo:lo}=r;var co=function(){"MUTABLE_SOURCE"===ao().mode&&console.warn("Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode.  Please consider upgrading to recoil_sync_external_store mode.");const t=uo().current;return lo((()=>function({children:e}){return r.createElement(so,{store_INTERNAL:t},e)}),[t])};const{loadableWithValue:fo}=E,{initializeNode:po}=Bt,{DEFAULT_VALUE:ho,getNode:vo}=X,{copyTreeState:mo,getRecoilValueAsLoadable:yo,invalidateDownstreams:go,writeLoadableToTreeState:bo}=ce;function So(t){return"atom"===vo(t.key).nodeType}class _o{constructor(t,e){u(this,"_store",void 0),u(this,"_treeState",void 0),u(this,"_changes",void 0),u(this,"get",(t=>{if(this._changes.has(t.key))return this._changes.get(t.key);if(!So(t))throw i("Reading selectors within atomicUpdate is not supported");const e=yo(this._store,t,this._treeState);if("hasValue"===e.state)return e.contents;throw"hasError"===e.state?e.contents:i(`Expected Recoil atom ${t.key} to have a value, but it is in a loading state.`)})),u(this,"set",((t,e)=>{if(!So(t))throw i("Setting selectors within atomicUpdate is not supported");if("function"===typeof e){const n=this.get(t);this._changes.set(t.key,e(n))}else po(this._store,t.key,"set"),this._changes.set(t.key,e)})),u(this,"reset",(t=>{this.set(t,ho)})),this._store=t,this._treeState=e,this._changes=new Map}
1newTreeState_INTERNAL(){if(0===this._changes.size)return this._treeState;const t=mo(this._treeState);for(const[e,n]of this._changes)bo(t,e,fo(n));return go(this._store,t),t}}var wo=function(t){return e=>{t.replaceState((n=>{const r=new _o(t,n);return e(r),r.newTreeState_INTERNAL()}))}},To=wo,xo=Object.freeze({__proto__:null,atomicUpdater:To});var Ao=function(t,e){if(!t)throw new Error(e)};const{atomicUpdater:Ro}=xo,{batchUpdates:Eo}=ke,{DEFAULT_VALUE:Vo}=X,{useStoreRef:Co}=Hn,{refreshRecoilValue:ko,setRecoilValue:Po}=ce,{Snapshot:Lo,cloneSnapshot:Mo}=un,{gotoSnapshot:No}=no,{useCallback:Do}=r;class Oo{}const Uo=new Oo;function Bo(t,e,n,r){let o=Uo;return Eo((()=>{const a="useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create.  Please see the docs at recoiljs.org for details.";if("function"!==typeof e)throw i(a);const s=xt({...null!==r&&void 0!==r?r:{},set:(e,n)=>Po(t,e,n),reset:e=>Po(t,e,Vo),refresh:e=>ko(t,e),gotoSnapshot:e=>No(t,e),transact_UNSTABLE:e=>Ro(t)(e)},{snapshot:()=>Mo(t)}),u=e(s);if("function"!==typeof u)throw i(a);o=u(...n)})),o instanceof Oo&&Ao(!1),o}var Io={recoilCallback:Bo,useRecoilCallback:function(t,e){const n=Co();return Do(((...e)=>Bo(n.current,t,e)),null!=e?[...e,n]:void 0)}};const{useStoreRef:jo}=Hn,{refreshRecoilValue:Fo}=ce,{useCallback:zo}=r;var $o=function(t){const e=jo();return zo((()=>{const n=e.current;Fo(n,t)}),[t,e])};const{atomicUpdater:Wo}=xo,{useStoreRef:Ho}=Hn,{useMemo:Go}=r;var qo=function(t,e){const n=Ho();return Go((()=>(...e)=>{Wo(n.current)((n=>{t(n)(...e)}))}),null!=e?[...e,n]:void 0)};const Yo=(t,e,n)=>{var r;if(null==t)return;if(null===n||void 0===n||null===(r=n.onNodeVisit)||void 0===r||r.call(n,t),"leaf"===t.type)return t;const o=e(t.nodeKey);return Yo(t.branches.get(o),e,n)},Zo=(t,e,n,r,o,i,a)=>{var s;let u;if(null==t)if(0===e.length)u={type:"leaf",value:r,parent:n,branchKey:o};else{const[t,...s]=e,[l,c]=t;u={type:"branch",nodeKey:l,parent:n,branches:new Map,branchKey:o},u.branches.set(c,Zo(null,s,u,r,c,i,a))}else if(u=t,e.length){const[n,...o]=e,[s,l]=n;if("branch"!==t.type||t.nodeKey!==s)return z("Existing cache must have a branch midway through the route with matching node key. Resetting cache."),a(),u;t.branches.set(l,Zo(t.branches.get(l),o,t,r,l,i,a))}return null===i||void 0===i||null===(s=i.onNodeVisit)||void 0===s||s.call(i,u),u},Ko=(t,e,n)=>n?(n.branches.delete(e.branchKey),Xo(t,n,n.parent)):t===e,Xo=(t,e,n)=>n?(0===e.branches.size&&n.branches.delete(e.branchKey),Xo(t,n,n.parent)):t===e,Jo=t=>"leaf"===t.type?1:Array.from(t.branches.values()).reduce(((t,e)=>t+Jo(e)),0);var Qo=class{constructor(t){var e,n,r;u(this,"_numLeafs",void 0),u(this,"_root",void 0),u(this,"_onHit",void 0),u(this,"_onSet",void 0),u(this,"_mapNodeValue",void 0),this._numLeafs=0,this._root=null,this._onHit=null!==(e=null===t||void 0===t?void 0:t.onHit)&&void 0!==e?e:()=>{},this._onSet=null!==(n=null===t||void 0===t?void 0:t.onSet)&&void 0!==n?n:()=>{},this._mapNodeValue=null!==(r=null===t||void 0===t?void 0:t.mapNodeValue)&&void 0!==r?r:t=>t}size(){return this._numLeafs}root(){return this._root}get(t,e){var n;return null===(n=this.getLeafNode(t,e))||void 0===n?void 0:n.value}getLeafNode(t,e){return Yo(this.root(),(e=>this._mapNodeValue(t(e))),{onNodeVisit:t=>{null===e||void 0===e||e.onNodeVisit(t),"leaf"===t.type&&this._onHit(t)}})}set(t,e,n){let r,o=null;const i=()=>{o=Zo(this.root(),t.map((([t,e])=>[t,this._mapNodeValue(e)])),null,e,null,{onNodeVisit:t=>{null===n||void 0===n||n.onNodeVisit(t),"leaf"===t.type&&(r=t)}},(()=>{this.clear(),i()}))};i(),this.root()||(this._root=o),this._numLeafs++,this._onSet(s(r))}delete(t){if(!this.root())return!1;const e=s(this.root());return!!Ko(e,t,t.parent)&&(t===e||"branch"===e.type&&!e.branches.size?(this._root=null,this._numLeafs=0,!0):(this._numLeafs-=Jo(t),!0))}clear(){this._numLeafs=0,this._root=null}},ti=Object.freeze({__proto__:null,TreeCache:Qo});var ei=class{constructor(t){var e;u(this,"_maxSize",void 0),u(this,"_size",void 0),u(this,"_head",void 0),u(this,"_tail",void 0),u(this,"_map",void 0),u(this,"_keyMapper",void 0),this._maxSize=t.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=null!==(e=t.mapKey)&&void 0!==e?e:t=>t}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(t){return this._map.has(this._keyMapper(t))}get(t){const e=this._keyMapper(t),n=this._map.get(e);if(n)return this.set(t,n.value),n.value}set(t,e){const n=this._keyMapper(t);this._map.get(n)&&this.delete(t);const r=this.head(),o={key:t,right:r,left:null,value:e};r?r.left=o:this._tail=o,this._map.set(n,o),this._head=o,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const t=this.tail();t&&this.delete(t.key)}delete(t){const e=this._keyMapper(t);if(!this._size||!this._map.has(e))return;const n=s(this._map.get(e)),r=n.right,o=n.left;r&&(r.left=n.left),o&&(o.right=n.right),n===this.head()&&(this._head=r),n===this.tail()&&(this._tail=o),this._map.delete(e),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}},ni=Object.freeze({__proto__:null,LRUCache:ei});const{LRUCache:ri}=ni,{TreeCache:oi}=ti;var ii=function(t,e=(t=>t)){const n=new ri({maxSize:t}),r=new oi({mapNodeValue:e,onHit:t=>{n.set(t,!0)},onSet:e=>{const o=n.tail();n.set(e,!0),o&&r.size()>t&&r.delete(o.key)}});return r};function ai(t,e,n){if("string"===typeof t&&!t.includes('"')&&!t.includes("\\"))return`"${t}"`;switch(typeof t){case"undefined":return"";case"boolean":return t?"true":"false";case"number":case"symbol":return String(t);case"string":return JSON.stringify(t);case"function":if(!0!==(null===e||void 0===e?void 0:e.allowFunctions))throw i("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${t.name})__`}if(null===t)return"null";var r;if("object"!==typeof t)return null!==(r=JSON.stringify(t))&&void 0!==r?r:"";if(a(t))return"__PROMISE__";if(Array.isArray(t))return`[${t.map(((t,n)=>ai(t,e,n.toString())))}]`;if("function"===typeof t.toJSON)return ai(t.toJSON(n),e,n);if(t instanceof Map){const r={};for(const[n,o]of t)r["string"===typeof n?n:ai(n,e)]=o;return ai(r,e,n)}return t instanceof Set?ai(Array.from(t).sort(((t,n)=>ai(t,e).localeCompare(ai(n,e)))),e,n):void 0!==Symbol&&null!=t[Symbol.iterator]&&"function"===typeof t[Symbol.iterator]?ai(Array.from(t),e,
1n):`{${Object.keys(t).filter((e=>void 0!==t[e])).sort().map((n=>`${ai(n,e)}:${ai(t[n],e,n)}`)).join(",")}}`}var si=function(t,e={allowFunctions:!1}){return ai(t,e)};const{TreeCache:ui}=ti,li={equality:"reference",eviction:"keep-all",maxSize:1/0};var ci=function({equality:t=li.equality,eviction:e=li.eviction,maxSize:n=li.maxSize}=li){const r=function(t){switch(t){case"reference":return t=>t;case"value":return t=>si(t)}throw i(`Unrecognized equality policy ${t}`)}(t),o=function(t,e,n){switch(t){case"keep-all":return new ui({mapNodeValue:n});case"lru":return ii(s(e),n);case"most-recent":return ii(1,n)}throw i(`Unrecognized eviction policy ${t}`)}(e,n,r);return o};const{isReactNative:di,isSSR:fi}=Le;var pi={startPerfBlock:function(t){return()=>null}};const{loadableWithError:hi,loadableWithPromise:vi,loadableWithValue:mi}=E,{getNodeLoadable:yi,peekNodeLoadable:gi,setNodeValue:bi}=Bt,{saveDependencyMapToStore:Si}=ct,{DEFAULT_VALUE:_i,RecoilValueNotReady:wi,getConfigDeletionHandler:Ti,getNode:xi,registerNode:Ai}=X,{isRecoilValue:Ri}=O,{markRecoilValueModified:Ei}=ce,{retainedByOptionWithDefault:Vi}=we,{recoilCallback:Ci}=Io,{startPerfBlock:ki}=pi;class Pi{}const Li=new Pi,Mi=[],Ni=new Map,Di=(()=>{let t=0;return()=>t++})();var Oi=function(t){let e=null;const{key:n,get:r,cachePolicy_UNSTABLE:o}=t,u=null!=t.set?t.set:void 0,l=new Set,c=ci(null!==o&&void 0!==o?o:{equality:"reference",eviction:"keep-all"}),d=Vi(t.retainedBy_UNSTABLE),f=new Map;let p=0;function h(){return!j("recoil_memory_managament_2020")||p>0}function v(t){return t.getState().knownSelectors.add(n),p++,()=>{p--}}function m(){return void 0!==Ti(n)&&!h()}function y(t,e,n,r,o){L(e,r,o),w(t,e,new Set(o.keys()),n),g(t,n)}function g(t,n){P(t,n)&&k(t);const r=Ni.get(n);if(void 0!==r){for(const t of r)Ei(t,s(e));Ni.delete(n)}}function b(t,e){let n=Ni.get(e);null==n&&Ni.set(e,n=new Set),n.add(t)}function S(t,e,n){const r=t.getState().knownSelectors.has(n);if(r&&e.atomValues.has(n))return s(e.atomValues.get(n));const o=yi(t,e,n);return"loading"!==o.state&&r&&e.atomValues.set(n,o),o}function _(t,e,n,r,o,i){return e.then((r=>{if(!h())throw k(t),Li;null!=i.loadingDepKey&&i.loadingDepPromise===e?n.atomValues.set(i.loadingDepKey,mi(r)):t.getState().knownSelectors.forEach((t=>{n.atomValues.delete(t)}));const a=x(t,n);if(a&&"loading"!==a.state){if((P(t,o)||null==V(t))&&g(t,o),"hasValue"===a.state)return a.contents;throw a.contents}if(!P(t,o)){const t=R(n);if("loading"===(null===t||void 0===t?void 0:t.latestLoadable.state))return t.latestLoadable.contents}const[s,u]=T(t,n,o);if(C(t,o,u),"loading"!==s.state&&y(t,n,o,s,u),"hasError"===s.state)throw s.contents;return s.contents})).catch((e=>{if(e instanceof Pi)throw Li;if(!h())throw k(t),Li;const i=hi(e);throw y(t,n,o,i,r),e}))}function w(t,e,r,o){var i,a,s,u,c,d,f;(P(t,o)||e.version===(null===(i=t.getState())||void 0===i||null===(a=i.currentTree)||void 0===a?void 0:a.version)||e.version===(null===(s=t.getState())||void 0===s||null===(u=s.nextTree)||void 0===u?void 0:u.version))&&(Si(new Map([[n,r]]),t,null!==(c=null===(d=t.getState())||void 0===d||null===(f=d.nextTree)||void 0===f?void 0:f.version)&&void 0!==c?c:t.getState().currentTree.version),r.forEach((t=>l.add(t))))}function T(t,o,s){const u=ki(n);let l=!0;const c=()=>{u(),l=!1};let d,f,p=!1;const v={loadingDepKey:null,loadingDepPromise:null},m=new Map,g=new Set;function b(e){const{key:n}=e;!function(t,e,n,r,o){n.add(r),w(t,e,n,o)}(t,o,g,n,s);const r=S(t,o,n);switch(m.set(n,r),r.state){case"hasValue":return r.contents;case"hasError":throw r.contents;case"loading":throw v.loadingDepKey=n,v.loadingDepPromise=r.contents,r.contents}throw i("Invalid Loadable state")}w(t,o,g,s);const T=n=>(...r)=>{if(l)throw i("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated.  It c
1an be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");return null==e&&Ao(!1),Ci(t,n,r,{node:e})};try{d=r({get:b,getCallback:T}),d=Ri(d)?b(d):d,a(d)?d=function(t,e,n,r,o,i){return e.then((e=>{if(!h())throw k(t),Li;const i=mi(e);return y(t,n,o,i,r),e})).catch((e=>{if(!h())throw k(t),Li;if(C(t,o,r),a(e))return _(t,e,n,r,o,i);const s=hi(e);throw y(t,n,o,s,r),e}))}(t,d,o,m,s,v).finally(c):c()}catch(x){d=x,a(d)?d=_(t,d,o,m,s,v).finally(c):(p=!0,c())}return f=p?hi(d):a(d)?vi(d):mi(d),[f,m]}function x(t,e){const r=new Set,o=V(t);let a;try{a=c.get((n=>{"string"!==typeof n&&Ao(!1);return S(t,e,n).contents}),{onNodeVisit:t=>{"branch"===t.type&&t.nodeKey!==n&&r.add(t.nodeKey)}})}catch(s){throw i(`Problem with cache lookup for selector "${n}": ${s.message}`)}return a&&w(t,e,r,null===o||void 0===o?void 0:o.latestExecutionId),a}function A(t,e){const n=Di(),[r,o]=T(t,e,n);return"loading"===r.state?(!function(t,e,n,r,o){f.set(t,{depValuesDiscoveredSoFarDuringAsyncWork:r,latestExecutionId:e,latestLoadable:n,stateVersion:o.version})}(t,n,r,o,e),b(t,n)):(k(t),L(e,r,o)),r}function R(t){var e;const[,n]=null!==(e=Array.from(f.entries()).find((([e,n])=>null!=n.latestLoadable&&null!=n.latestExecutionId&&!function(t,e){var n,r;const o=V(t),i=null!==(n=null===o||void 0===o?void 0:o.depValuesDiscoveredSoFarDuringAsyncWork)&&void 0!==n?n:new Map,a=Array((null!==(r=E.get(e.version))&&void 0!==r?r:new Map).entries()),s=E.has(e.version)&&a.length===i.size&&a.every((([t,e])=>i.get(t)===e));if(null==i||e.version===(null===o||void 0===o?void 0:o.stateVersion)||s)return!1;return E.set(e.version,new Map(i)),Array.from(i).some((([n,r])=>S(t,e,n).contents!==r.contents))}(e,t))))&&void 0!==e?e:[];return n}const E=new Map;function V(t){return f.get(t)}function C(t,e,n){if(P(t,e)){const e=V(t);null!=e&&(e.depValuesDiscoveredSoFarDuringAsyncWork=n)}}function k(t){f.delete(t)}function P(t,e){var n;return e===(null===(n=V(t))||void 0===n?void 0:n.latestExecutionId)}function L(t,e,r){t.atomValues.set(n,e);try{c.set(function(t){return Array.from(t.entries()).map((([t,e])=>[t,e.contents]))}(r),e)}catch(o){throw i(`Problem with setting cache for selector "${n}": ${o.message}`)}}function M(t,e){return c.get((n=>{var r;return"string"!==typeof n&&Ao(!1),null===(r=gi(t,e,n))||void 0===r?void 0:r.contents}))}function N(t,e){return function(t){if(Mi.includes(n)){const t=`Recoil selector has circular dependencies: ${Mi.slice(Mi.indexOf(n)).join(" \u2192 ")}`;return hi(i(t))}Mi.push(n);try{return t()}finally{Mi.pop()}}((()=>function(t,e){const n=x(t,e);if(null!=n)return k(t),n;const r=R(e);var o;return null!=r?("loading"===(null===(o=r.latestLoadable)||void 0===o?void 0:o.state)&&b(t,s(r.latestExecutionId)),s(r.latestLoadable)):A(t,e)}(t,e)))}function D(t){t.atomValues.delete(n)}function O(t,n){null==e&&Ao(!1);for(const e of l){var r;const o=xi(e);null===(r=o.clearCache)||void 0===r||r.call(o,t,n)}l.clear(),D(n),c.clear(),Ei(t,e)}if(null!=u){return e=Ai({key:n,nodeType:"selector",peek:M,get:N,set:(t,e,n)=>{let r=!1;const o=new Map;function s({key:n}){if(r)throw i("Recoil: Async selector sets are not currently supported.");const o=S(t,e,n);if("hasValue"===o.state)return o.contents;throw"loading"===o.state?new wi(n):o.contents}function l(n,a){if(r)throw i("Recoil: Async selector sets are not currently supported.");const u="function"===typeof a?a(s(n)):a;bi(t,e,n.key,u).forEach(((t,e)=>o.set(e,t)))}const c=u({set:l,get:s,reset:function(t){l(t,_i)}},n);if(void 0!==c)throw a(c)?i("Recoil: Async selector sets are not currently supported."):i("Recoil: selector set should be a void function.");return r=!0,o},init:v,invalidate:D,clearCache:O,shouldDeleteConfigOnRelease:m,dangerouslyAllowMutability:t.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:d})}return e=Ai({key:n,nodeType:"selector",peek:M,get:N,init:v,invalidate:D,clearCache:O,shouldDeleteConfigOnRelease:m,dangerouslyAllowMutability:t.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:d})};const{loadableWithError:Ui,loadableWithPromise:Bi,loadableWithValue:Ii}=E,{peekNodeInfo:ji}
1=Bt,{DEFAULT_VALUE:Fi,DefaultValue:zi,getConfigDeletionHandler:$i,registerNode:Wi,setConfigDeletionHandler:Hi}=X,{isRecoilValue:Gi}=O,{getRecoilValueAsLoadable:qi,markRecoilValueModified:Yi,setRecoilValue:Zi,setRecoilValueLoadable:Ki}=ce,{retainedByOptionWithDefault:Xi}=we;function Ji(t){const{key:e,persistence_UNSTABLE:n}=t,r=Xi(t.retainedBy_UNSTABLE);let o,u=0,l=a(t.default)?Bi(t.default.then((t=>(l=Ii(t),t))).catch((t=>{throw l=Ui(t),t}))):Ii(t.default);d(t.default);const c=new Map;function d(t){return t}function f(t,n){var r,i;return null!==(r=null!==(i=n.atomValues.get(e))&&void 0!==i?i:o)&&void 0!==r?r:l}const p=Wi({key:e,nodeType:"atom",peek:f,get:function(t,r){if(r.atomValues.has(e))return s(r.atomValues.get(e));if(r.nonvalidatedAtoms.has(e)){if(null!=o)return o;if(null==n)return U(`Tried to restore a persisted value for atom ${e} but it has no persistence settings.`),l;const t=r.nonvalidatedAtoms.get(e),i=n.validator(t,Fi),a=i instanceof zi?l:Ii(i);return o=a,o}return l},set:function(t,n,r){if(n.atomValues.has(e)){const t=s(n.atomValues.get(e));if("hasValue"===t.state&&r===t.contents)return new Map}else if(!n.nonvalidatedAtoms.has(e)&&r instanceof zi)return new Map;return o=void 0,(new Map).set(e,Ii(r))},init:function(n,r,o){var s;if(u++,n.getState().knownAtoms.add(e),"loading"===l.state){const t=()=>{var t;(null!==(t=n.getState().nextTree)&&void 0!==t?t:n.getState().currentTree).atomValues.has(e)||Yi(n,p)};l.contents.finally(t)}const d=null!==(s=t.effects)&&void 0!==s?s:t.effects_UNSTABLE;if(null!=d){let t=!0,s=Fi,u=!1,y=null;function g(o){if(t&&o.key===e){const t=s;return t instanceof zi?f(n,r):a(t)?Bi(t.then((t=>t instanceof zi?l.toPromise():t))):Ii(t)}return qi(n,o)}function b(t){return g(t).toPromise()}function S(r){var o;const i=ji(n,null!==(o=n.getState().nextTree)&&void 0!==o?o:n.getState().currentTree,r.key);return!t||r.key!==e||s instanceof zi?i:{...i,isSet:!0,loadable:g(r)}}const _=e=>r=>{if(t){const t=g(p),n="hasValue"===t.state?t.contents:Fi;s="function"===typeof r?r(n):r,a(s)&&(s=s.then((t=>(y={effect:e,value:t},t))))}else{if(a(r))throw i("Setting atoms to async values is not implemented.");"function"!==typeof r&&(y={effect:e,value:r}),Zi(n,p,"function"===typeof r?t=>{const n=r(t);return y={effect:e,value:n},n}:r)}},w=t=>()=>_(t)(Fi),T=t=>r=>{var o;const{release:i}=n.subscribeToTransactions((n=>{var o;let{currentTree:i,previousTree:a}=n.getState();a||(z("Transaction subscribers notified without a next tree being present -- this is a bug in Recoil"),a=i);const s=null!==(o=i.atomValues.get(e))&&void 0!==o?o:l;if("hasValue"===s.state){var u,c,d,f;const n=s.contents,o=null!==(u=a.atomValues.get(e))&&void 0!==u?u:l,p="hasValue"===o.state?o.contents:Fi;(null===(c=y)||void 0===c?void 0:c.effect)!==t||(null===(d=y)||void 0===d?void 0:d.value)!==n?r(n,p,!i.atomValues.has(e)):(null===(f=y)||void 0===f?void 0:f.effect)===t&&(y=null)}}),e);c.set(n,[...null!==(o=c.get(n))&&void 0!==o?o:[],i])};for(const e of d)try{const t=e({node:p,storeID:n.storeID,trigger:o,setSelf:_(e),resetSelf:w(e),onSet:T(e),getPromise:b,getLoadable:g,getInfo_UNSTABLE:S});var h;if(null!=t)c.set(n,[...null!==(h=c.get(n))&&void 0!==h?h:[],t])}catch(m){s=m,u=!0}if(t=!1,!(s instanceof zi)){var v;const t=s,o=u?Ui(s):a(t)?Bi(function(t,n){const r=n.then((n=>{var o,i;return(null===(i=(null!==(o=t.getState().nextTree)&&void 0!==o?o:t.getState().currentTree).atomValues.get(e))||void 0===i?void 0:i.contents)===r&&Zi(t,p,n),n})).catch((n=>{var o,i;throw(null===(i=(null!==(o=t.getState().nextTree)&&void 0!==o?o:t.getState().currentTree).atomValues.get(e))||void 0===i?void 0:i.contents)===r&&Ki(t,p,Ui(n)),n}));return r}(n,t)):Ii(t);r.atomValues.set(e,o),null===(v=n.getState().nextTree)||void 0===v||v.atomValues.set(e,o)}}return()=>{var t;u--,null===(t=c.get(n))||void 0===t||t.forEach((t=>t())),c.delete(n)}},invalidate:function(){o=void 0},shouldDeleteConfigOnRelease:function(){return void 0!==$i(e)&&u<=0},dangerouslyAllowMutability:t.dangerouslyAllowMutability,persistence_UNSTABLE:t.persistence_UNSTABLE?{type:t.persistence_UNSTABLE.type,backButton:t.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:r});return p}function Qi(t){const{default:e,...n}=t;return Gi(e)?function(t){const e=Qi({...t,default:Fi,persistence_UNSTABLE:void 0===t.persistence_UNSTABLE?void 0:{...t.persistence_UNSTABLE,validator:e=>
1e instanceof zi?e:s(t.persistence_UNSTABLE).validator(e,Fi)},effects:t.effects,effects_UNSTABLE:t.effects_UNSTABLE}),n=Oi({key:`${t.key}__withFallback`,get:({get:n})=>{const r=n(e);return r instanceof zi?t.default:r},set:({set:t},n)=>t(e,n),dangerouslyAllowMutability:t.dangerouslyAllowMutability});return Hi(n.key,$i(t.key)),n}({...n,default:e}):Ji({...n,default:e})}var ta=Qi;var ea=class{constructor(t){var e;u(this,"_map",void 0),u(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=null!==(e=null===t||void 0===t?void 0:t.mapKey)&&void 0!==e?e:t=>t}size(){return this._map.size}has(t){return this._map.has(this._keyMapper(t))}get(t){return this._map.get(this._keyMapper(t))}set(t,e){this._map.set(this._keyMapper(t),e)}delete(t){this._map.delete(this._keyMapper(t))}clear(){this._map.clear()}},na=Object.freeze({__proto__:null,MapCache:ea});const{LRUCache:ra}=ni,{MapCache:oa}=na,ia={equality:"reference",eviction:"none",maxSize:1/0};var aa=function({equality:t=ia.equality,eviction:e=ia.eviction,maxSize:n=ia.maxSize}=ia){const r=function(t){switch(t){case"reference":return t=>t;case"value":return t=>si(t)}throw i(`Unrecognized equality policy ${t}`)}(t),o=function(t,e,n){switch(t){case"keep-all":return new oa({mapKey:n});case"lru":return new ra({mapKey:n,maxSize:s(e)});case"most-recent":return new ra({mapKey:n,maxSize:1})}throw i(`Unrecognized eviction policy ${t}`)}(e,n,r);return o};const{setConfigDeletionHandler:sa}=X;var ua=function(t){var e,n;const r=aa({equality:null!==(e=null===(n=t.cachePolicyForParams_UNSTABLE)||void 0===n?void 0:n.equality)&&void 0!==e?e:"value",eviction:"keep-all"});return e=>{var n,o;const i=r.get(e);if(null!=i)return i;const{cachePolicyForParams_UNSTABLE:a,...s}=t,u=ta({...s,key:`${t.key}__${null!==(n=si(e))&&void 0!==n?n:"void"}`,default:"function"===typeof t.default?t.default(e):t.default,retainedBy_UNSTABLE:"function"===typeof t.retainedBy_UNSTABLE?t.retainedBy_UNSTABLE(e):t.retainedBy_UNSTABLE,effects:"function"===typeof t.effects?t.effects(e):"function"===typeof t.effects_UNSTABLE?t.effects_UNSTABLE(e):null!==(o=t.effects)&&void 0!==o?o:t.effects_UNSTABLE});return r.set(e,u),sa(u.key,(()=>{r.delete(e)})),u}};const{setConfigDeletionHandler:la}=X;let ca=0;var da=function(t){var e,n;const r=aa({equality:null!==(e=null===(n=t.cachePolicyForParams_UNSTABLE)||void 0===n?void 0:n.equality)&&void 0!==e?e:"value",eviction:"keep-all"});return e=>{var n;const o=r.get(e);if(null!=o)return o;const i=`${t.key}__selectorFamily/${null!==(n=si(e,{allowFunctions:!0}))&&void 0!==n?n:"void"}/${ca++}`,a=n=>t.get(e)(n),s=t.cachePolicy_UNSTABLE,u="function"===typeof t.retainedBy_UNSTABLE?t.retainedBy_UNSTABLE(e):t.retainedBy_UNSTABLE;let l;if(null!=t.set){const n=t.set;l=Oi({key:i,get:a,set:(t,r)=>n(e)(t,r),cachePolicy_UNSTABLE:s,dangerouslyAllowMutability:t.dangerouslyAllowMutability,retainedBy_UNSTABLE:u})}else l=Oi({key:i,get:a,cachePolicy_UNSTABLE:s,dangerouslyAllowMutability:t.dangerouslyAllowMutability,retainedBy_UNSTABLE:u});return r.set(e,l),la(l.key,(()=>{r.delete(e)})),l}};const fa=da({key:"__constant",get:t=>()=>t,cachePolicyForParams_UNSTABLE:{equality:"reference"}});var pa=function(t){return fa(t)};const ha=da({key:"__error",get:t=>()=>{throw i(t)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});var va=function(t){return ha(t)};var ma=function(t){return t};const{loadableWithError:ya,loadableWithPromise:ga,loadableWithValue:ba}=E;function Sa(t,e){const n=Array(e.length).fill(void 0),r=Array(e.length).fill(void 0);for(const[i,a]of e.entries())try{n[i]=t(a)}catch(o){r[i]=o}return[n,r]}function _a(t){return null!=t&&!a(t)}function wa(t){return Array.isArray(t)?t:Object.getOwnPropertyNames(t).map((e=>t[e]))}function Ta(t,e){return Array.isArray(t)?e:Object.getOwnPropertyNames(t).reduce(((t,n,r)=>({...t,[n]:e[r]})),{})}function xa(t,e,n){return Ta(t,n.map(((t,n)=>null==t?ba(e[n]):a(t)?ga(t):ya(t))))}var Aa={waitForNone:da({key:"__waitForNone",get:t=>({get:e})=>{const n=wa(t),[r,o]=Sa(e,n);return xa(t,r,o)},dangerouslyAllowMutability:!0}),waitForAny:da({key:"__waitForAny",get:t=>({get:e})=>
1{const n=wa(t),[r,o]=Sa(e,n);return o.some((t=>!a(t)))?xa(t,r,o):new Promise((e=>{for(const[n,i]of o.entries())a(i)&&i.then((i=>{r[n]=i,o[n]=void 0,e(xa(t,r,o))})).catch((i=>{o[n]=i,e(xa(t,r,o))}))}))},dangerouslyAllowMutability:!0}),waitForAll:da({key:"__waitForAll",get:t=>({get:e})=>{const n=wa(t),[r,o]=Sa(e,n);if(o.every((t=>null==t)))return Ta(t,r);const i=o.find(_a);if(null!=i)throw i;return Promise.all(o).then((e=>{return Ta(t,(n=r,e.map(((t,e)=>void 0===t?n[e]:t))));var n}))},dangerouslyAllowMutability:!0}),waitForAllSettled:da({key:"__waitForAllSettled",get:t=>({get:e})=>{const n=wa(t),[r,o]=Sa(e,n);return o.every((t=>!a(t)))?xa(t,r,o):Promise.all(o.map(((t,e)=>a(t)?t.then((t=>{r[e]=t,o[e]=void 0})).catch((t=>{r[e]=void 0,o[e]=t})):null))).then((()=>xa(t,r,o)))},dangerouslyAllowMutability:!0}),noWait:da({key:"__noWait",get:t=>({get:e})=>{try{return ba(e(t))}catch(n){return a(n)?ga(n):ya(n)}},dangerouslyAllowMutability:!0})};const{RecoilLoadable:Ra}=E,{DefaultValue:Ea}=X,{RecoilRoot:Va,useRecoilStoreID:Ca}=Hn,{isRecoilValue:ka}=O,{retentionZone:Pa}=_t,{freshSnapshot:La}=un,{useRecoilState:Ma,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Na,useRecoilStateLoadable:Da,useRecoilValue:Oa,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Ua,useRecoilValueLo
1adable:Ba,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Ia,useResetRecoilState:ja,useSetRecoilState:Fa}=Dr,{useGotoRecoilSnapshot:za,useRecoilSnapshot:$a,useRecoilTransactionObserver:Wa}=no,{useRecoilCallback:Ha}=Io,{noWait:Ga,waitForAll:qa,waitForAllSettled:Ya,waitForAny:Za,waitForNone:Ka}=Aa;var Xa={DefaultValue:Ea,isRecoilValue:ka,RecoilLoadable:Ra,RecoilRoot:Va,useRecoilStoreID:Ca,useRecoilBridgeAcrossReactRoots_UNSTABLE:co,atom:ta,selector:Oi,atomFamily:ua,selectorFamily:da,constSelector:pa,errorSelector:va,readOnlySelector:ma,noWait:Ga,waitForNone:Ka,waitForAny:Za,waitForAll:qa,waitForAllSettled:Ya,useRecoilValue:Oa,useRecoilValueLoadable:Ba,useRecoilState:Ma,useRecoilStateLoadable:Da,useSetRecoilState:Fa,useResetRecoilState:ja,useGetRecoilValueInfo_UNSTABLE:io,useRecoilRefresher_UNSTABLE:$o,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Ia,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Ua,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Na,useRecoilCallback:Ha,useRecoilTransaction_UNSTABLE:qo,useGotoRecoilSnapshot:za,useRecoilSnapshot:$a,useRecoilTransactionObserver_UNSTABLE:Wa,snapshot_UNSTABLE:La,useRetain:rr,retentionZone:Pa},Ja=Xa.RecoilRoot,Qa=Xa.atom,ts=Xa.useRecoilValue,es=Xa.useSetRecoilState},655:function(t,e,n){"use strict";n.d(e,{ZT:function(){return o},pi:function(){return i},_T:function(){return a},CR:function(){return s},ev:function(){return u}});var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)};function o(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}Object.create;function s(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function u(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}Object.create},8488:function(t,e,n){"use strict";n.d(e,{C:function(){return r}});var r=function(t){return Array.isArray(t)}},1593:function(t,e,n){"use strict";n.d(e,{ev:function(){return bt},b8:function(){return St}});var r=n(655),o=n(4394),i=n(6773);const a=.001;function s({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let s,l;(0,o.K)(t<=1e4,"Spring duration must be 10 seconds or less");let c=1-e;c=(0,i.u)(.05,1,c),t=(0,i.u)(.01,10,t/1e3),c<1?(s=e=>{const r=e*c,o=r*t,i=r-n,s=u(e,c),l=Math.exp(-o);return a-i/s*l},l=e=>{const r=e*c*t,o=r*n+n,i=Math.pow(c,2)*Math.pow(e,2)*t,l=Math.exp(-r),d=u(Math.pow(e,2),c);return(-s(e)+a>0?-1:1)*((o-i)*l)/d}):(s=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,l=e=>Math.exp(-e*t)*(t*t*(n-e)));const d=function(t,e,n){let r=n;for(let o=1;o<12;o++)r-=t(r)/e(r);return r}(s,l,5/t);if(t*=1e3,isNaN(d))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(d,2)*r;return{stiffness:e,damping:2*c*Math.sqrt(r*e),duration:t}}}function u(t,e){return t*Math.sqrt(1-e*e)}const l=["duration","bounce"],c=["stiffness","damping","mass"];function d(t,e){return e.some((e=>void 0!==t[e]))}function f(t){var{from:e=0,to:n=1,restSpeed:o=2,restDelta:i}=t,a=(0,r._T)(t,["from","to","restSpeed","restDelta"]);const f={done:!1,value:e};let{stiffness:h,damping:v,mass:m,velocity:y,duration:g,isResolvedFromDuration:b}=function(t){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!d(t,c)&&d(t,l)){const n=s(t);e=Object.assign(Object.assign(Object.assign({},e),n),{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}(a),S=p,_=p;function w(){const t=y?-y/1e3:0,r=n-e,o=v/(2*Math.sqrt(h*m)),a=Math.sqrt(h/m)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-e)/100,.4)),o<1){const e=u(a,o);S=i=>{const s=Math.exp(-o*a*i);return n-s*((t+o*a*r)/e*Math.sin(e*i)+r*Math.cos(e*i))},_=n=>{const i=Math.exp(-o*a*n);return o*a*i*(Math.sin(e*n)*(t+o*a*r)/e+r*Math.cos(e*n))-i*(Math.cos(e*n)*(t+o*a*r)-e*r*Math.sin(e*n))}}else if(1===o)S=e=>n-Math.exp(-a*e)*(r+(t+a*r)*e);else{const e=a*Math.sqrt(o*o-1);S=i=>{const s=Math.exp(-o*a*i),u=Math.min(e*i,300);return n-s*((t+o*a*r)*Math.sinh(u)+e*r*Math.cosh(u))/e}}}return w(),{next:t=>{const e=S(t);if(b)f.done=t>=g;else{const r=1e3*_(t),a=Math.abs(r)<=o,s=Math.abs(n-e)<=i;f.done=a&&s}return f.value=f.done?n:e,f},flipTarget:()=>{y=-y,[e,n]=[n,e],w()}}}f.needsInterpolation=(t,e)=>"string"===typeof t||"string"===typeof e;const p=t=>0;var h=n(9326),v=n(2453),m=n(2960),y=n(8059),g=n(4582);function b(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function S({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let o=0,i=0,a=0;if(e/=100){const r=n<.5?n*(1+e):n+e-n*e,s=2*n-r;o=b(s,r,t+1/3),i=b(s,r,t),a=b(s,r,t-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}const _=(t,e,n)=>{const r=t*t,o=e*e;return Math.sqrt(Math.max(0,n*(o-r)+r))},w=[m.$,y.m,g.J],T=t=>w.find((e=>e.test(t))),x=t=>`'${t}' is not an animatable color. Use the equivalent color code instead.`,A=(t,e)=>{let n=T(t),r=T(e);
1(0,o.k)(!!n,x(t)),(0,o.k)(!!r,x(e));let i=n.parse(t),a=r.parse(e);n===g.J&&(i=S(i),n=y.m),r===g.J&&(a=S(a),r=y.m);const s=Object.assign({},i);return t=>{for(const e in s)"alpha"!==e&&(s[e]=_(i[e],a[e],t));return s.alpha=(0,v.C)(i.alpha,a.alpha,t),n.transform(s)}};var R=n(7405),E=n(8407),V=n(734),C=n(9897);function k(t,e){return(0,V.e)(t)?n=>(0,v.C)(t,e,n):R.$.test(t)?A(t,e):N(t,e)}const P=(t,e)=>{const n=[...t],r=n.length,o=t.map(((t,n)=>k(t,e[n])));return t=>{for(let e=0;e<r;e++)n[e]=o[e](t);return n}},L=(t,e)=>{const n=Object.assign(Object.assign({},t),e),r={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(r[o]=k(t[o],e[o]));return t=>{for(const e in r)n[e]=r[e](t);return n}};function M(t){const e=E.P.parse(t),n=e.length;let r=0,o=0,i=0;for(let a=0;a<n;a++)r||"number"===typeof e[a]?r++:void 0!==e[a].hue?i++:o++;return{parsed:e,numNumbers:r,numRGB:o,numHSL:i}}const N=(t,e)=>{const n=E.P.createTransformer(e),r=M(t),i=M(e);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?(0,C.z)(P(r.parsed,i.parsed),n):((0,o.K)(!0,`Complex values '${t}' and '${e}' 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?e:t}`)},D=(t,e)=>n=>(0,v.C)(t,e,n);function O(t,e,n){const r=[],o=n||("number"===typeof(i=t[0])?D:"string"===typeof i?R.$.test(i)?A:N:Array.isArray(i)?P:"object"===typeof i?L:void 0);var i;const a=t.length-1;for(let s=0;s<a;s++){let n=o(t[s],t[s+1]);if(e){const t=Array.isArray(e)?e[s]:e;n=(0,C.z)(t,n)}r.push(n)}return r}function U(t,e,{clamp:n=!0,ease:r,mixer:a}={}){const s=t.length;(0,o.k)(s===e.length,"Both input and output ranges must be the same length"),(0,o.k)(!r||!Array.isArray(r)||r.length===s-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),t[0]>t[s-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());const u=O(e,r,a),l=2===s?function([t,e],[n]){return r=>n((0,h.Y)(t,e,r))}(t,u):function(t,e){const n=t.length,r=n-1;return o=>{let i=0,a=!1;if(o<=t[0]?a=!0:o>=t[r]&&(i=r-1,a=!0),!a){let e=1;for(;e<n&&!(t[e]>o||e===r);e++);i=e-1}const s=(0,h.Y)(t[i],t[i+1],o);return e[i](s)}}(t,u);return n?e=>l((0,i.u)(t[0],t[s-1],e)):l}var B=n(4710);function I(t,e){return t.map((()=>e||B.mZ)).splice(0,t.length-1)}function j({from:t=0,to:e=1,ease:n,offset:r,duration:o=300}){const i={done:!1,value:t},a=Array.isArray(e)?e:[t,e],s=function(t,e){return t.map((t=>t*e))}(r&&r.length===a.length?r:function(t){const e=t.length;return t.map(((t,n)=>0!==n?n/(e-1):0))}(a),o);function u(){return U(s,a,{ease:Array.isArray(n)?n:I(a,n)})}let l=u();return{next:t=>(i.value=l(t),i.done=t>=o,i),flipTarget:()=>{a.reverse(),l=u()}}}const F={keyframes:j,spring:f,decay:function({velocity:t=0,from:e=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:i}){const a={done:!1,value:e};let s=n*t;const u=e+s,l=void 0===i?u:i(u);return l!==u&&(s=l-e),{next:t=>{const e=-s*Math.exp(-t/r);return a.done=!(e>o||e<-o),a.value=a.done?l:l+e,a},flipTarget:()=>{}}}};var z=n(4735);function $(t,e,n=0){return t-e-n}const W=t=>{const e=({delta:e})=>t(e);return{start:()=>z.ZP.update(e,!0),stop:()=>z.qY.update(e)}};function H(t){var e,n,{from:o,autoplay:i=!0,driver:a=W,elapsed:s=0,repeat:u=0,repeatType:l="loop",repeatDelay:c=0,onPlay:d,onStop:p,onComplete:h,onRepeat:v,onUpdate:m}=t,y=(0,r._T)(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let g,b,S,{to:_}=y,w=0,T=y.duration,x=!1,A=!0;const R=function(t){if(Array.isArray(t.to))return j;if(F[t.type])return F[t.type];const e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?j:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?f:j}(y);(null===(n=(e=R).needsInterpolation)||void 0===n?void 0:n.call(e,o,_))&&(S=U([0,100],[o,_],{clamp:!1}),o=0,_=100);const E=R(Object.assign(Object.assign({},y),{from:o,to:_}));
1function V(){w++,"reverse"===l?(A=w%2===0,s=function(t,e,n=0,r=!0){return r?$(e+-t,e,n):e-(t-e)+n}(s,T,c,A)):(s=$(s,T,c),"mirror"===l&&E.flipTarget()),x=!1,v&&v()}function C(t){if(A||(t=-t),s+=t,!x){const t=E.next(Math.max(0,s));b=t.value,S&&(b=S(b)),x=A?t.done:s<=0}null===m||void 0===m||m(b),x&&(0===w&&(null!==T&&void 0!==T||(T=s)),w<u?function(t,e,n,r){return r?t>=e+n:t<=-n}(s,T,c,A)&&V():(g.stop(),h&&h()))}return i&&(null===d||void 0===d||d(),g=a(C),g.start()),{stop:()=>{null===p||void 0===p||p(),g.stop()}}}var G=n(9296);var q=n(6917);const Y=(t,e)=>1-3*e+3*t,Z=(t,e)=>3*e-6*t,K=t=>3*t,X=(t,e,n)=>((Y(e,n)*t+Z(e,n))*t+K(e))*t,J=(t,e,n)=>3*Y(e,n)*t*t+2*Z(e,n)*t+K(e);const Q=.1;function tt(t,e,n,r){if(t===e&&n===r)return B.GE;const o=new Float32Array(11);for(let a=0;a<11;++a)o[a]=X(a*Q,t,n);function i(e){let r=0,i=1;for(;10!==i&&o[i]<=e;++i)r+=Q;--i;const a=r+(e-o[i])/(o[i+1]-o[i])*Q,s=J(a,t,n);return s>=.001?function(t,e,n,r){for(let o=0;o<8;++o){const o=J(e,n,r);if(0===o)return e;e-=(X(e,n,r)-t)/o}return e}(e,a,t,n):0===s?a:function(t,e,n,r,o){let i,a,s=0;do{a=e+(n-e)/2,i=X(a,r,o)-t,i>0?n=a:e=a}while(Math.abs(i)>1e-7&&++s<10);return a}(e,r,r+Q,t,n)}return t=>0===t||1===t?t:X(i(t),e,r)}var et={linear:B.GE,easeIn:B.YQ,easeInOut:B.mZ,easeOut:B.Vv,circIn:B.Z7,circInOut:B.X7,circOut:B.Bn,backIn:B.G2,backInOut:B.XL,backOut:B.CG,anticipate:B.LU,bounceIn:B.h9,bounceInOut:B.yD,bounceOut:B.gJ},nt=function(t){if(Array.isArray(t)){(0,o.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");var e=(0,r.CR)(t,4);return tt(e[0],e[1],e[2],e[3])}return"string"===typeof t?((0,o.k)(void 0!==et[t],"Invalid easing type '".concat(t,"'")),et[t]):t},rt=function(t,e){return"zIndex"!==t&&(!("number"!==typeof e&&!Array.isArray(e))||!("string"!==typeof e||!E.P.test(e)||e.startsWith("url(")))},ot=n(8488),it=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},at=function(t){return{type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}},st=function(){return{type:"keyframes",ease:"linear",duration:.3}},ut=function(t){return{type:"keyframes",duration:.8,values:t}},lt={x:it,y:it,z:it,rotate:it,rotateX:it,rotateY:it,rotateZ:it,scaleX:at,scaleY:at,scale:at,opacity:st,backgroundColor:st,color:st,default:at},ct=n(9135),dt=!1,ft=n(8715);var pt=!1;function ht(t){var e=t.ease,n=t.times,i=t.yoyo,a=t.flip,s=t.loop,u=(0,r._T)(t,["ease","times","yoyo","flip","loop"]),l=(0,r.pi)({},u);return n&&(l.offset=n),u.duration&&(l.duration=(0,q.w)(u.duration)),u.repeatDelay&&(l.repeatDelay=(0,q.w)(u.repeatDelay)),e&&(l.ease=function(t){return Array.isArray(t)&&"number"!==typeof t[0]}(e)?e.map(nt):nt(e)),"tween"===u.type&&(l.type="keyframes"),(i||s||a)&&((0,o.K)(!pt,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),pt=!0,i?l.repeatType="reverse":s?l.repeatType="loop":a&&(l.repeatType="mirror"),l.repeat=s||i||a||u.repeat),"spring"!==u.type&&(l.type="keyframes"),l}function vt(t,e,n){var o;return Array.isArray(e.to)&&(null!==(o=t.duration)&&void 0!==o||(t.duration=.8)),function(t){Array.isArray(t.to)&&null===t.to[0]&&(t.to=(0,r.ev)([],(0,r.CR)(t.to),!1),t.to[0]=t.from)}(e),function(t){t.when,t.delay,t.delayChildren,t.staggerChildren,t.staggerDirection,t.repeat,t.repeatType,t.repeatDelay,t.from;var e=(0,r._T)(t,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(e).length}(t)||(t=(0,r.pi)((0,r.pi)({},t),function(t,e){var n;return n=(0,ot.C)(e)?ut:lt[t]||lt.default,(0,r.pi)({to:e},n(e))}(n,e.to))),(0,r.pi)((0,r.pi)({},e),ht(t))}function mt(t,e,n,i,a){var s,u=bt(i,t),l=null!==(s=u.from)&&void 0!==s?s:e.get(),c=rt(t,n);"none"===l&&c&&"string"===typeof n?l=(0,ct.T)(t,n):yt(l)&&"string"===typeof n?l=gt(n):!Array.isArray(n)&&yt(n)&&"string"===typeof l&&(n=gt(l));var d=rt(t,l);return(0,o.K)(d===c,"You are trying to animate ".concat(t,' from "').concat(l,'" to "').concat(n,'". ').concat(l," is not an animatable value - to enable this animation set ").concat(l," to a value animatable to ").concat(n," via the `style` property.")),d&&c&&!1!==u.type?function(){var o={from:l,to:n,velocity:e.getVelocity(),onComplete:a,onUp
1date:function(t){return e.set(t)}};return"inertia"===u.type||"decay"===u.type?function({from:t=0,velocity:e=0,min:n,max:r,power:o=.8,timeConstant:i=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:u=1,modifyTarget:l,driver:c,onUpdate:d,onComplete:f,onStop:p}){let h;function v(t){return void 0!==n&&t<n||void 0!==r&&t>r}function m(t){return void 0===n?r:void 0===r||Math.abs(n-t)<Math.abs(r-t)?n:r}function y(t){null===h||void 0===h||h.stop(),h=H(Object.assign(Object.assign({},t),{driver:c,onUpdate:e=>{var n;null===d||void 0===d||d(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:f,onStop:p}))}function g(t){y(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:u},t))}if(v(t))g({from:t,velocity:e,to:m(t)});else{let r=o*e+t;"undefined"!==typeof l&&(r=l(r));const a=m(r),s=a===n?-1:1;let c,d;const f=t=>{c=d,d=t,e=(0,G.R)(t-c,(0,z.$B)().delta),(1===s&&t>a||-1===s&&t<a)&&g({from:t,to:a,velocity:e})};y({type:"decay",from:t,velocity:e,timeConstant:i,power:o,restDelta:u,modifyTarget:l,onUpdate:v(r)?f:void 0})}return{stop:()=>null===h||void 0===h?void 0:h.stop()}}((0,r.pi)((0,r.pi)({},o),u)):H((0,r.pi)((0,r.pi)({},vt(u,o,t)),{onUpdate:function(t){var e;o.onUpdate(t),null===(e=u.onUpdate)||void 0===e||e.call(u,t)},onComplete:function(){var t;o.onComplete(),null===(t=u.onComplete)||void 0===t||t.call(u)}}))}:function(){var t,r,o=(0,ft.Y)(n);return e.set(o),a(),null===(t=null===u||void 0===u?void 0:u.onUpdate)||void 0===t||t.call(u,o),null===(r=null===u||void 0===u?void 0:u.onComplete)||void 0===r||r.call(u),{stop:function(){}}}}function yt(t){return 0===t||"string"===typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function gt(t){return"number"===typeof t?0:(0,ct.T)("",t)}function bt(t,e){return t[e]||t.default||t}function St(t,e,n,r){return void 0===r&&(r={}),dt&&(r={type:!1}),e.start((function(o){var i,a,s=mt(t,e,n,r,o),u=function(t,e){var n,r;return null!==(r=null!==(n=(bt(t,e)||{}).delay)&&void 0!==n?n:t.delay)&&void 0!==r?r:0}(r,t),l=function(){return a=s()};return u?i=window.setTimeout(l,(0,q.w)(u)):l(),function(){clearTimeout(i),null===a||void 0===a||a.stop()}}))}},5172:function(t,e,n){"use strict";n.d(e,{E:function(){return zr}});var r=n(655),o=n(7294),i=n(3454),a=("undefined"===typeof i||i.env,"production"),s=function(t){return{isEnabled:function(e){return t.some((function(t){return!!e[t]}))}}},u={measureLayout:s(["layout","layoutId","drag"]),animation:s(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:s(["exit"]),drag:s(["drag","dragControls"]),focus:s(["whileFocus"]),hover:s(["whileHover","onHoverStart","onHoverEnd"]),tap:s(["whileTap","onTap","onTapStart","onTapCancel"]),pan:s(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:s(["whileInView","onViewportEnter","onViewportLeave"])};var l=n(4394),c=(0,o.createContext)({strict:!1}),d=Object.keys(u),f=d.length;var p=(0,o.createContext)({transformPagePoint:function(t){return t},isStatic:!1,reducedMotion:"never"}),h=(0,o.createContext)({});var v=(0,o.createContext)(null),m="undefined"!==typeof document,y=m?o.useLayoutEffect:o.useEffect,g={current:null},b=!1;function S(){return!b&&function(){if(b=!0,m)if(window.matchMedia){var t=window.matchMedia("(prefers-reduced-motion)"),e=function(){return g.current=t.matches};t.addListener(e),e()}else g.current=!1}(),(0,r.CR)((0,o.useState)(g.current),1)[0]}function _(t,e,n,r){var i=(0,o.useContext)(c),a=(0,o.useContext)(h).visualElement,s=(0,o.useContext)(v),u=function(){var t=S(),e=(0,o.useContext)(p).reducedMotion;return"never"!==e&&("always"===e||t)}(),l=(0,o.useRef)(void 0);r||(r=i.renderer),!l.current&&r&&(l.current=r(t,{visualState:e,parent:a,props:n,presenceId:null===s||void 0===s?void 0:s.id,blockInitialAnimation:!1===(null===s||void 0===s?void 0:s.initial),shouldReduceMotion:u}));var d=l.current;return y((function(){null===d||void 0===d||d.syncRender()})),(0,o.useEffect)((function(){var t;null===(t=null===d||void 0===d?void 0:d.animationState)||void 0===t||t.animateChanges()})),y((function(){return function(){return null===d||void 0===d?void 0:d.notifyUnmount()}}),[]),d}function w(t){return"object"===typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var T=n(7909);function x(t){var e=function(t,e){if((0,T.O6)(t)){var n=t.initial,r=t.animate;return{initial:!1===n||(0,T.$L)(n)?n:void 0,animate:(0,T.$L)(r)?r:void 0}}return!1!==t.inherit?e:{}}(t,(0,o.useContext)(h)),n=e.initial,r=e.animate;return(0,o.useMemo)((function(){return{initial:n,animate:r}}
1),[A(n),A(r)])}function A(t){return Array.isArray(t)?t.join(" "):t}var R=n(6681),E=n(4735),V=n(2453),C=n(3234),k=function(t){return Boolean(null!==t&&"object"===typeof t&&t.getVelocity)},P=n(1593);var L=n(1560),M=n(4710),N=n(9326),D=n(2969),O=["TopLeft","TopRight","BottomLeft","BottomRight"],U=O.length,B=function(t){return"string"===typeof t?parseFloat(t):t},I=function(t){return"number"===typeof t||D.px.test(t)};function j(t,e){var n;return null!==(n=t[e])&&void 0!==n?n:t.borderRadius}var F=$(0,.5,M.Bn),z=$(.5,.95,M.GE);function $(t,e,n){return function(r){return r<t?0:r>e?1:n((0,N.Y)(t,e,r))}}function W(t,e){t.min=e.min,t.max=e.max}function H(t,e){W(t.x,e.x),W(t.y,e.y)}function G(t){return void 0===t||1===t}function q(t){var e=t.scale,n=t.scaleX,r=t.scaleY;return!G(e)||!G(n)||!G(r)}function Y(t){return q(t)||Z(t.x)||Z(t.y)||t.z||t.rotate||t.rotateX||t.rotateY}function Z(t){return t&&"0%"!==t}function K(t,e,n){return n+e*(t-n)}function X(t,e,n,r,o){return void 0!==o&&(t=K(t,o,r)),K(t,n,r)+e}function J(t,e,n,r,o){void 0===e&&(e=0),void 0===n&&(n=1),t.min=X(t.min,e,n,r,o),t.max=X(t.max,e,n,r,o)}function Q(t,e){var n=e.x,r=e.y;J(t.x,n.translate,n.scale,n.originPoint),J(t.y,r.translate,r.scale,r.originPoint)}function tt(t,e){t.min=t.min+e,t.max=t.max+e}function et(t,e,n){var o=(0,r.CR)(n,3),i=o[0],a=o[1],s=o[2],u=void 0!==e[s]?e[s]:.5,l=(0,V.C)(t.min,t.max,u);J(t,e[i],e[a],l,e.scale)}var nt=["x","scaleX","originX"],rt=["y","scaleY","originY"];function ot(t,e){et(t.x,e,nt),et(t.y,e,rt)}const it=t=>t.hasOwnProperty("x")&&t.hasOwnProperty("y"),at=t=>it(t)&&t.hasOwnProperty("z");var st=n(734);const ut=(t,e)=>Math.abs(t-e);function lt(t,e){if((0,st.e)(t)&&(0,st.e)(e))return ut(t,e);if(it(t)&&it(e)){const n=ut(t.x,e.x),r=ut(t.y,e.y),o=at(t)&&at(e)?ut(t.z,e.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}function ct(t){return t.max-t.min}function dt(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=.01),lt(t,e)<n}function ft(t,e,n,r){void 0===r&&(r=.5),t.origin=r,t.originPoint=(0,V.C)(e.min,e.max,t.origin),t.scale=ct(n)/ct(e),(dt(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=(0,V.C)(n.min,n.max,t.origin)-t.originPoint,(dt(t.translate)||isNaN(t.translate))&&(t.translate=0)}function pt(t,e,n,r){ft(t.x,e.x,n.x,null===r||void 0===r?void 0:r.originX),ft(t.y,e.y,n.y,null===r||void 0===r?void 0:r.originY)}function ht(t,e,n){t.min=n.min+e.min,t.max=t.min+ct(e)}function vt(t,e,n){t.min=e.min-n.min,t.max=t.min+ct(e)}function mt(t,e,n){vt(t.x,e.x,n.x),vt(t.y,e.y,n.y)}function yt(t,e,n,r,o){return t=K(t-=e,1/n,r),void 0!==o&&(t=K(t,1/o,r)),t}function gt(t,e,n,o,i){var a=(0,r.CR)(n,3),s=a[0],u=a[1],l=a[2];!function(t,e,n,r,o,i,a){if(void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===i&&(i=t),void 0===a&&(a=t),D.aQ.test(e)&&(e=parseFloat(e),e=(0,V.C)(a.min,a.max,e/100)-a.min),"number"===typeof e){var s=(0,V.C)(i.min,i.max,r);t===i&&(s-=e),t.min=yt(t.min,e,n,s,o),t.max=yt(t.max,e,n,s,o)}}(t,e[s],e[u],e[l],e.scale,o,i)}var bt=["x","scaleX","originX"],St=["y","scaleY","originY"];function _t(t,e,n,r){gt(t.x,e,bt,null===n||void 0===n?void 0:n.x,null===r||void 0===r?void 0:r.x),gt(t.y,e,St,null===n||void 0===n?void 0:n.y,null===r||void 0===r?void 0:r.y)}function wt(t){return 0===t.translate&&1===t.scale}function Tt(t){return wt(t.x)&&wt(t.y)}function xt(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}var At=n(10),Rt=function(){function t(){this.members=[]}return t.prototype.add=function(t){(0,At.y4)(this.members,t),t.scheduleRender()},t.prototype.remove=function(t){if((0,At.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){var e=this.members[this.members.length-1];e&&this.promote(e)}},t.prototype.relegate=function(t){var e,n=this.members.findIndex((function(e){return t===e}));if(0===n)return!1;for(var r=n;r>=0;r--){var o=this.members[r];if(!1!==o.isPresent){e=o;break}}return!!e&&(this.promote(e),!0)},t.prototype.promote=function(t,e){var n,r=this.lead;t!==r&&(this.prevLead=r,this.lead=t,t.show(),r&&(r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,e&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues,t.snapshot.isShared=!0),(null===(n=t.root)||void 0===n?void 0:n.isUpdating)&&(t.isLayoutDirty=!0),!1===t.options.crossfade&&r.hide()))},t.prototype.exitAnimationComplete=function(){this.members.forEac
1h((function(t){var e,n,r,o,i;null===(n=(e=t.options).onExitComplete)||void 0===n||n.call(e),null===(i=null===(r=t.resumingFrom)||void 0===r?void 0:(o=r.options).onExitComplete)||void 0===i||i.call(o)}))},t.prototype.scheduleRender=function(){this.members.forEach((function(t){t.instance&&t.scheduleRender(!1)}))},t.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},t}(),Et={};function Vt(t,e,n){var r=t.x.translate/e.x,o=t.y.translate/e.y,i="translate3d(".concat(r,"px, ").concat(o,"px, 0) ");if(n){var a=n.rotate,s=n.rotateX,u=n.rotateY;a&&(i+="rotate(".concat(a,"deg) ")),s&&(i+="rotateX(".concat(s,"deg) ")),u&&(i+="rotateY(".concat(u,"deg) "))}return"translate3d(0px, 0px, 0) scale(1, 1)"===(i+="scale(".concat(t.x.scale,", ").concat(t.y.scale,")"))?"none":i}function Ct(t){return[t("x"),t("y")]}var kt=n(4714),Pt=function(t,e){return t.depth-e.depth},Lt=function(){function t(){this.children=[],this.isDirty=!1}return t.prototype.add=function(t){(0,At.y4)(this.children,t),this.isDirty=!0},t.prototype.remove=function(t){(0,At.cl)(this.children,t),this.isDirty=!0},t.prototype.forEach=function(t){this.isDirty&&this.children.sort(Pt),this.isDirty=!1,this.children.forEach(t)},t}(),Mt=n(8715);function Nt(t){var e=k(t)?t.get():t;return(0,Mt.p)(e)?e.toValue():e}var Dt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ot(t){var e=t.attachResizeListener,n=t.defaultParent,o=t.measureScroll,i=t.resetTransform;return function(){function t(t,e,o){var i=this;void 0===e&&(e={}),void 0===o&&(o=null===n||void 0===n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!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=function(){i.isUpdating&&(i.isUpdating=!1,i.clearAllSnapshots())},this.updateProjection=function(){i.nodes.forEach($t),i.nodes.forEach(Wt)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=t,this.latestValues=e,this.root=o?o.root||o:this,this.path=o?(0,r.ev)((0,r.ev)([],(0,r.CR)(o.path),!1),[o],!1):[],this.parent=o,this.depth=o?o.depth+1:0,t&&this.root.registerPotentialNode(t,this);for(var a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new Lt)}return t.prototype.addEventListener=function(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new L.L),this.eventHandlers.get(t).add(e)},t.prototype.notifyListeners=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var o=this.eventHandlers.get(t);null===o||void 0===o||o.notify.apply(o,(0,r.ev)([],(0,r.CR)(e),!1))},t.prototype.hasListeners=function(t){return this.eventHandlers.has(t)},t.prototype.registerPotentialNode=function(t,e){this.potentialNodes.set(t,e)},t.prototype.mount=function(t,n){var o,i=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;var a=this.options,s=a.layoutId,u=a.layout,l=a.visualElement;if(l&&!l.getInstance()&&l.mount(t),this.root.nodes.add(this),null===(o=this.parent)||void 0===o||o.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(u||s)&&(this.isLayoutDirty=!0),e){var c,d=function(){return i.root.updateBlockedByResize=!1};e(t,(function(){i.root.updateBlockedByResize=!0,clearTimeout(c),c=window.setTimeout(d,250),Dt.hasAnimatedSinceResize&&(Dt.hasAnimatedSinceResize=!1,i.nodes.forEach(zt))}))}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&l&&(s||u)&&this.addEventListener("didUpdate",(function(t){var e,n,o,a,s,u=t.delta,c=t.hasLayoutChanged,d=t.hasRelativeTargetChanged,f=t.layout;if(i.isTreeAnimationBlocked())return i.target=void 0,void(i.relativeTarget=void 0);var p=null!==(n=null!==(e=i.options.transition)&&void 0!==e?e:l.getDefaultTransition())&&void 0!==n?n:Kt,h=l.getProps(),v=h.onLayoutAnimationStart,m=h.onLayoutAnimationComplete,y=!i.targetLayout||!xt(i.targetLayout,f)||d,g=!c&&d;if((null===(o=i.resumeFrom)||void 0===o?void 0:o.instance)||g||c&&(y||!i.currentAnimation)){i.resumeFrom&&(i.resumingFrom=i.resumeFrom,i.resumingFrom.resumingFrom=void 0),i.setAnimationOrigin(u,g);var b=(0,r.pi)((0,r.pi)({},(0,P.ev)(p,"layout")),{onPlay:v,onComplete:m});l.shouldReduceMotion&&(b.delay=0,b.type=!1),i.startAnimation(b)}else c||0!==i.animationProgress||i.finishAnimation(),i.isLead()&&(null===(s=(a=i.options).onExitComplete)||void 0===s||s.call(a));i.targetLayout=f}))}},t.prototype.unmount=function(){var t,e;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(t=this.getStack())||void 0===t||t.remove(this),null===(e=this.parent)||void 0===e||e.children.delete(this),this.instance=void 0,E.qY.preRender(this.updateProjection)},t.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},t.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},t.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},t.prototype.isTreeAnimationBlocked=function(){var t;return this.isAnimationBlocked||(null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimationBlocked())||!1}
1,t.prototype.startUpdate=function(){var t;this.isUpdateBlocked()||(this.isUpdating=!0,null===(t=this.nodes)||void 0===t||t.forEach(Ht))},t.prototype.willUpdate=function(t){var e,n,r;if(void 0===t&&(t=!0),this.root.isUpdateBlocked())null===(n=(e=this.options).onExitComplete)||void 0===n||n.call(e);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var o=0;o<this.path.length;o++){var i=this.path[o];i.shouldResetTransform=!0,i.updateScroll()}var a=this.options,s=a.layoutId,u=a.layout;if(void 0!==s||u){var l=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null===l||void 0===l?void 0:l(this.latestValues,""),this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}}},t.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(jt);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Xt),this.potentialNodes.clear()),this.nodes.forEach(Ft),this.nodes.forEach(Ut),this.nodes.forEach(Bt),this.clearAllSnapshots(),E.iW.update(),E.iW.preRender(),E.iW.render())},t.prototype.clearAllSnapshots=function(){this.nodes.forEach(It),this.sharedNodes.forEach(Gt)},t.prototype.scheduleUpdateProjection=function(){E.ZP.preRender(this.updateProjection,!1,!0)},t.prototype.scheduleCheckAfterUnmount=function(){var t=this;E.ZP.postRender((function(){t.isLayoutDirty?t.root.didUpdate():t.root.checkUpdateFailed()}))},t.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var t=this.measure(),e=this.removeTransform(this.removeElementScroll(t));Qt(e),this.snapshot={measured:t,layout:e,latestValues:{}}}},t.prototype.updateLayout=function(){var t;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var e=0;e<this.path.length;e++){this.path[e].updateScroll()}var n=this.measure();Qt(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(t=this.options.visualElement)||void 0===t||t.notifyLayoutMeasure(this.layout.actual,null===r||void 0===r?void 0:r.actual)}},t.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.scroll=o(this.instance))},t.prototype.resetTransform=function(){var t;if(i){var e=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!Tt(this.projectionDelta),r=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate,o=null===r||void 0===r?void 0:r(this.latestValues,""),a=o!==this.prevTransformTemplateValue;e&&(n||Y(this.latestValues)||a)&&(i(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}},t.prototype.measure=function(){var t=this.options.visualElement;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};var e=t.measureViewportBox(),n=this.root.scroll;return n&&(tt(e.x,n.x),tt(e.y,n.y)),e},t.prototype.removeElementScroll=function(t){var e={x:{min:0,max:0},y:{min:0,max:0}};H(e,t);for(var n=0;n<this.path.length;n++){var r=this.path[n],o=r.scroll,i=r.options;r!==this.root&&o&&i.layoutScroll&&(tt(e.x,o.x),tt(e.y,o.y))}return e},t.prototype.applyTransform=function(t,e){void 0===e&&(e=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};H(n,t);for(var r=0;r<this.path.length;r++){var o=this.path[r];!e&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ot(n,{x:-o.scroll.x,y:-o.scroll.y}),Y(o.latestValues)&&ot(n,o.latestValues)}return Y(this.latestValues)&&ot(n,this.latestValues),n},t.prototype.removeTransform=function(t){var e,n={x:{min:0,max:0},y:{min:0,max:0}};H(n,t);for(var r=0;r<this.path.length;r++){var o=this.path[r];if(o.instance&&Y(o.latestValues)){q(o.latestValues)&&o.updateSnapshot();var i={x:{min:0,max:0},y:{min:0,max:0}};H(i,o.measure()),_t(n,o.latestValues,null===(e=o.snapshot)||void 0===e?void 0:e.layout,i)}}return Y(this.latestValues)&&_t(n,this.latestValues),n},t.prototype.setTargetDelta=function(t){this.targetDelta=t,this.root.scheduleUpdateProjection()},t.prototype.setOptions=function(t){var e;this.options=(0,r.pi)((0,r.pi)((0,r.pi)({},this.options),t),{crossfade:null===(e=t.crossfade)||void 0===e||e})},t.prototype.clearMeasurements=function(){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},t.prototype.resolveTargetDelta=function(){var t,e,n,r,o=this.options,i=o.layout,a=o.layoutId;this.layout&&(i||a)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},mt(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),H(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(t=this.relativeParent)||void 0===t?void 0:t.target)?(e=this.target,n=this.relativeTarget,r=this.relativeParent.target,ht(e.x,n.x,r.x),ht(e.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):H(this.target,this.layout.actual),Q(this.target,this.targetDelta)):H(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},mt(this.relativeTargetOrigin,this.target,this.relativeParent.target),H(this.relativeTarget,this.relativeTargetOrigin)))))},t.prototype.getClosestProjectingParent=function(){if(this.parent&&!Y(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},t.prototype.calcProjection=function(){var t,e=this.options,n=e.layout,r=e.layoutId;if(this.isTreeAnimating=Boolean((null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var o=this.getLead();H(this.layoutCorrected,this.layout.actual),function(t,e,n,r){var o,i;void 0===r&&(r=!1);var a=n.length;if(a){var s,u;e.x=e.y=1;for(var l=0;l<a;l++)u=(s=n[l]).projectionDelta,"contents"!==(null===(i=null===(o=s.instance)||void 0===o?void 0:o.style)||void 0===i?void 0:i.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&ot(t,{x:-s.scroll.x,y:-s.scroll.y}),u&&(e.x*=u.x.scale,e.y*=u.y.scale,Q(t,u)),r&&Y(s.latestValues)&&ot(t,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==o);var i=o.target;if(i){this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});var a=this.treeScale.x,s=this.treeScale.y,u=this.projectionTransform;pt(this.projectionDelta,this.layoutCorrected,i,this.latestValues),this.projectionTransform=Vt(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",i))}}},t.prototype.hide=function(){this.isVisible=!1},t.prototype.show=function(){this.isVisible=!0},t.prototype.scheduleRender=function(t){var e,n,r;void 0===t&&(t=!0),null===(n=(e=this.options).scheduleRender)||void 0===n||n.call(e),t&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},t.prototype.setAnimationOrigin=function(t,e){var n,o=this;void 0===e&&(e=!1);var i=this.snapshot,a=(null===i||void 0===i?void 0:i.latestValues)||{},s=(0,r.pi)({},this.latestValues),u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!e;var l={x:{min:0,max:0},y:{min:0,max:0}}
1,c=null===i||void 0===i?void 0:i.isShared,d=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,f=Boolean(c&&!d&&!0===this.options.crossfade&&!this.path.some(Zt));this.animationProgress=0,this.mixTargetDelta=function(e){var n,r,i,p,h,v=e/1e3;qt(u.x,t.x,v),qt(u.y,t.y,v),o.setTargetDelta(u),o.relativeTarget&&o.relativeTargetOrigin&&o.layout&&(null===(n=o.relativeParent)||void 0===n?void 0:n.layout)&&(mt(l,o.layout.actual,o.relativeParent.layout.actual),r=o.relativeTarget,i=o.relativeTargetOrigin,p=l,h=v,Yt(r.x,i.x,p.x,h),Yt(r.y,i.y,p.y,h)),c&&(o.animationValues=s,function(t,e,n,r,o,i){var a,s,u,l;o?(t.opacity=(0,V.C)(0,null!==(a=n.opacity)&&void 0!==a?a:1,F(r)),t.opacityExit=(0,V.C)(null!==(s=e.opacity)&&void 0!==s?s:1,0,z(r))):i&&(t.opacity=(0,V.C)(null!==(u=e.opacity)&&void 0!==u?u:1,null!==(l=n.opacity)&&void 0!==l?l:1,r));for(var c=0;c<U;c++){var d="border".concat(O[c],"Radius"),f=j(e,d),p=j(n,d);void 0===f&&void 0===p||(f||(f=0),p||(p=0),0===f||0===p||I(f)===I(p)?(t[d]=Math.max((0,V.C)(B(f),B(p),r),0),(D.aQ.test(p)||D.aQ.test(f))&&(t[d]+="%")):t[d]=p)}(e.rotate||n.rotate)&&(t.rotate=(0,V.C)(e.rotate||0,n.rotate||0,r))}(s,a,o.latestValues,v,f,d)),o.root.scheduleUpdateProjection(),o.scheduleRender(),o.animationProgress=v},this.mixTargetDelta(0)},t.prototype.startAnimation=function(t){var e,n,o=this;this.notifyListeners("animationStart"),null===(e=this.currentAnimation)||void 0===e||e.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(E.qY.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=E.ZP.update((function(){Dt.hasAnimatedSinceResize=!0,o.currentAnimation=function(t,e,n){void 0===n&&(n={});var r=k(t)?t:(0,C.B)(t);return(0,P.b8)("",r,e,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,1e3,(0,r.pi)((0,r.pi)({},t),{onUpdate:function(e){var n;o.mixTargetDelta(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:function(){var e;null===(e=t.onComplete)||void 0===e||e.call(t),o.completeAnimation()}})),o.resumingFrom&&(o.resumingFrom.currentAnimation=o.currentAnimation),o.pendingAnimation=void 0}))},t.prototype.completeAnimation=function(){var t;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(t=this.getStack())||void 0===t||t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},t.prototype.finishAnimation=function(){var t;this.currentAnimation&&(null===(t=this.mixTargetDelta)||void 0===t||t.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},t.prototype.applyTransformsToTarget=function(){var t=this.getLead(),e=t.targetWithTransforms,n=t.target,r=t.layout,o=t.latestValues;e&&n&&r&&(H(e,n),ot(e,o),pt(this.projectionDeltaWithTransform,this.layoutCorrected,e,o))},t.prototype.registerSharedNode=function(t,e){var n,r,o;this.sharedNodes.has(t)||this.sharedNodes.set(t,new Rt),this.sharedNodes.get(t).add(e),e.promote({transition:null===(n=e.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(o=null===(r=e.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===o?void 0:o.call(r,e)})},t.prototype.isLead=function(){var t=this.getStack();return!t||t.lead===this},t.prototype.getLead=function(){var t;return this.options.layoutId&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this},t.prototype.getPrevLead=function(){var t;return this.options.layoutId?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0},t.prototype.getStack=function(){var t=this.options.layoutId;if(t)return this.root.sharedNodes.get(t)},t.prototype.promote=function(t){var e=void 0===t?{}:t,n=e.needsReset,r=e.transition,o=e.preserveFollowOpacity,i=this.getStack();i&&i.promote(this,o),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},t.prototype.relegate=function(){var t=this.getStack();return!!t&&t.relegate(this)},t.prototype.resetRotation=function(){var t=this.options.visualElement;if(t){for(var e=!1,n={},r=0;r<kt.r$.length;r++){var o="rotate"+kt.r$[r];t.getStaticValue(o)&&(e=!0,n[o]=t.getStaticValue(o),t.setStaticValue(o,0))}if(e){for(var o in null===t||void 0===t||t.syncRender(),n)t.setStaticValue(o,n[o]);t.scheduleRender()}}},t.prototype.getProjectionStyles=function(t){var e,n,r,o,i,a;void 0===t&&(t={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var u=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=Nt(t.pointerEvents)||"",s.transform=u?u(this.latestValues,""):"none",s;var l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){var c={};return this.options.layoutId&&(c.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,c.pointerEvents=Nt(t.pointerEvents)||""),this.hasProjected&&!Y(this.latestValues)&&(c.transform=u?u({},""):"none",this.hasProjected=!1),c}var d=l.animationValues||l.latestValues;this.applyTransformsToTarget(),s.transform=Vt(this.projectionDeltaWithTransform,this.treeScale,d),u&&(s.transform=u(d,s.transform));var f=this.projectionDelta,p=f.x,h=f.y;for(var v in s.transformOrigin="".concat(100*p.origin,"% ").concat(100*h.origin,"% 0"),l.animationValues?s.opacity=l===this?null!==(o=null!==(r=d.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==o?o:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:s.opacity=l===this?null!==(i=d.opacity)&&void 0!==i?i:"":null!==(a=d.opacityExit)&&void 0!==a?a:0,Et)if(void 0!==d[v]){var m=Et[v],y=m.correct,g=m.applyTo,b=y(d[v],l);if(g)for(var S=g.length,_=0;_<S;_++)s[g[_]]=b;else s[v]=b}return this.options.layoutId&&(s.pointerEvents=l===this?Nt(t.pointerEvents)||"":"none"),s},t.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0}
1,t.prototype.resetTree=function(){this.root.nodes.forEach((function(t){var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(jt),this.root.sharedNodes.clear()},t}()}function Ut(t){t.updateLayout()}function Bt(t){var e,n,r,o,i=null!==(n=null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)&&void 0!==n?n:t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){var a=t.layout,s=a.actual,u=a.measured;"size"===t.options.animationType?Ct((function(t){var e=i.isShared?i.measured[t]:i.layout[t],n=ct(e);e.min=s[t].min,e.max=e.min+n})):"position"===t.options.animationType&&Ct((function(t){var e=i.isShared?i.measured[t]:i.layout[t],n=ct(s[t]);e.max=e.min+n}));var l={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};pt(l,s,i.layout);var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i.isShared?pt(c,t.applyTransform(u,!0),i.measured):pt(c,s,i.layout);var d=!Tt(l),f=!1;if(!t.resumeFrom&&(t.relativeParent=t.getClosestProjectingParent(),t.relativeParent&&!t.relativeParent.resumeFrom)){var p=t.relativeParent,h=p.snapshot,v=p.layout;if(h&&v){var m={x:{min:0,max:0},y:{min:0,max:0}};mt(m,i.layout,h.layout);var y={x:{min:0,max:0},y:{min:0,max:0}};mt(y,s,v.actual),xt(m,y)||(f=!0)}}t.notifyListeners("didUpdate",{layout:s,snapshot:i,delta:c,layoutDelta:l,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else t.isLead()&&(null===(o=(r=t.options).onExitComplete)||void 0===o||o.call(r));t.options.transition=void 0}function It(t){t.clearSnapshot()}function jt(t){t.clearMeasurements()}function Ft(t){var e=t.options.visualElement;(null===e||void 0===e?void 0:e.getProps().onBeforeLayoutMeasure)&&e.notifyBeforeLayoutMeasure(),t.resetTransform()}function zt(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function $t(t){t.resolveTargetDelta()}function Wt(t){t.calcProjection()}function Ht(t){t.resetRotation()}function Gt(t){t.removeLeadSnapshot()}function qt(t,e,n){t.translate=(0,V.C)(e.translate,0,n),t.scale=(0,V.C)(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Yt(t,e,n,r){t.min=(0,V.C)(e.min,n.min,r),t.max=(0,V.C)(e.max,n.max,r)}function Zt(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}var Kt={duration:.45,ease:[.4,0,.1,1]};function Xt(t,e){for(var n=t.root,r=t.path.length-1;r>=0;r--)if(Boolean(t.path[r].instance)){n=t.path[r];break}var o=(n&&n!==t.root?n.instance:document).querySelector('[data-projection-id="'.concat(e,'"]'));o&&t.mount(o,!0)}function Jt(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function Qt(t){Jt(t.x),Jt(t.y)}var te=1;var ee=(0,o.createContext)({}),ne=(0,o.createContext)({});var re=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},e.prototype.componentDidUpdate=function(){},e.prototype.updateProps=function(){var t=this.props,e=t.visualElement,n=t.props;e&&e.setProps(n)},e.prototype.render=function(){return this.props.children},e}(o.Component);function oe(t){var e=t.preloadedFeatures,n=t.createVisualElement,i=t.projectionNodeConstructor,s=t.useRender,v=t.useVisualState,y=t.Component;return e&&function(t){for(var e in t)null!==t[e]&&("projectionNodeConstructor"===e?u.projectionNodeConstructor=t[e]:u[e].Component=t[e])}(e),(0,o.forwardRef)((function(t,g){var b=function(t){var e,n=t.layoutId,r=null===(e=(0,o.useContext)(ee))||void 0===e?void 0:e.id;return r&&void 0!==n?r+"-"+n:n}(t);t=(0,r.pi)((0,r.pi)({},t),{layoutId:b});var S=(0,o.useContext)(p),T=null,A=x(t),E=S.isStatic?void 0:(0,R.h)((function(){if(Dt.hasEverUpdated)return te++})),V=v(t,S.isStatic);return!S.isStatic&&m&&(A.visualElement=_(y,V,(0,r.pi)((0,r.pi)({},S),t),n),function(t,e,n,r){var i,a=e.layoutId,s=e.layout,u=e.drag,l=e.dragConstraints,c=e.layoutScroll,d=(0,o.useContext)(ne);r&&n&&!(null===n||void 0===n?void 0:n.projection)&&(n.projection=new r(t,n.getLatestValues(),null===(i=n.parent)||void 0===i?void 0:i.projection),n.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:Boolean(u)||l&&w(l),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"===typeof s?s:"both",initialPromotionConfig:d,layoutScroll:c}))}(E,t,A.visualElement,i||u.projectionNodeConstructor),T=function(t,e,n){var i=[],s=(0,o.useContext)(c);if(!e)return null;"production"!==a&&n&&s.strict&&(0,l.k)(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var p=0;p<f;p++){var h=d[p],v=u[h],m=v.isEnabled,y=v.Component;m(t)&&y&&i.push(o.createElement(y,(0,r.pi)({key:h},t,{visualElement:e})))}return i}(t,A.visualElement,e)),o.createElement(re,{visualElement:A.visualElement,props:(0,r.pi)((0,r.pi)({},S),t)},T,o.createElement(h.Provider,{value:A},s(y,t,E,function(t,e,n){return(0,o.useCallback)((function(r){var o;r&&(null===(o=t.mount)||void 0===o||o.call(t,r)),e&&(r?e.mount(r):e.unmount()),n&&("function"===typeof n?n(r):w(n)&&(n.current=r))}),[e])}(V,A.visualElement,g),V,S.isStatic,A.visualElement)))}))}function ie(t){function e(e,n){return void 0===n&&(n={}),oe(t(e,n))}if("undefined"===typeof Proxy)return e;var n=new Map;return new Proxy(e,{get:function(t,r){return n.has(r)||n.set(r,e(r)),n.get(r)}})}var ae=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function se(t){return"string"===typeof t&&!t.includes("-")&&!!(ae.indexOf(t)>-1||/[A-Z]/.test(t))}function ue(t,e){var n=e.layout,r=e.layoutId;return(0,kt._c)(t)||(0,kt.Ee)(t)||(n||void 0!==r)&&(!!Et[t]||"opacity"===t)}var le={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function ce(t){return t.startsWith("--")}var de=function(t,e){return e&&"number"===typeof t?e.transform(t):t},fe=n(6173);function pe(t,e,n,r){var o,i=t.style,a=t.vars,s=t.transform,u=t.transformKeys,l=t.transformOrigin;u.length=0;var c=!1,d=!1,f=!0;for(var p in e){var h=e[p];if(ce(p))a[p]=h;else{var v=fe.j[p],m=de(h,v);if((0,kt._c)(p)){if(c=!0,s[p]=m,u.push(p),!f)continue;h!==(null!==(o=v.default)&&void 0!==o?o:0)&&(f=!1)}else(0,kt.Ee)(p)?(l[p]=m,d=!0):i[p]=m}}c?i.transform=function(t,e,n,r){var o=t.transform,i=t.transformKeys,a=e.enableHardwareAcceleration,s=void 0===a||a,u=e.allowTransformNone,l=void 0===u||u,c="";i.sort(kt.s3);for(var d=!1,f=i.length,p=0;p<f;p++){var h=i[p];c+="".concat(le[h]||h,"(").concat(o[h],") "),"z"===h&&(d=!0)}return!d&&s?c+="translateZ(0)":c=c.trim(),r?c=r(o,n?"":c):l&&n&&(c="none"),c}(t,n,f,r):r?i.transform=r({},""):!e.transform&&i.transform&&(i.transform="none"),d&&(i.transformOrigin=function(t){var e=t.originX,n=void 0===e?"50%":e,r=t.originY,o=void 0===r?"50%":r,i=t.originZ,a=void 0===i?0:i;return"".concat(n," ").concat(o," ").concat(a)}(l))}var he=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function ve(t,e,n){for(var r in e)k(e[r])||ue(r,n)||(t[r]=e[r])}function me(t,e,n){var i={};return ve(i,t.style||{},t),Object.assign(i,function(t,e,n){var i=t.transformTemplate;return(0,o.useMemo)((function(){var t={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};pe(t,e,{enableHardwareAcceleration:!n},i);var o=t.vars,a=t.style;return(0,r.pi)((0,r.pi)({},o),a)}),[e])}(t,e,n)),t.transformValues&&(i=t.transformValues(i)),i}function ye(t,e,n){var r={},o=me(t,e,n);return Boolean(t.drag)&&!1!==t.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),r.style=o,r}var ge=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function be(t){return ge.has(t)}var Se,_e=function(t){return!be(t)};try{(Se=require("@emotion/is-prop-valid").default)&&(_e=function(t){return t.startsWith("on")?!be(t):Se(t)})}catch($r){}function we(t,e,n){return"string"===typeof t?t:D.px.transform(e+n*t)}var Te={offset:"stroke-dashoffset",array:"stroke-dasharray"},xe={offset:"strokeDashoffset",array:"strokeDasharray"};function Ae(t,e,n,o){var i=e.attrX,a=e.attrY,s=e.originX,u=e.originY,l=e.pathLength,c=e.pathSpacing,d=void 0===c?1:c,f=e.pathOffset,p=void 0===f?0:f;pe(t,(0,r._T)(e,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,o),t.attrs=t.style,t.style={};var h=t.attrs,v=t.style,m=t.dimensions;h.transform&&(m&&(v.transform=h.transform),delete h.transform),m&&(void 0!==s||void 0!==u||v.transform)&&(v.transformOrigin=function(t,e,n){var r=we(e,t.x,t.width),o=we(n,t.y,t.height);return"".concat(r," ").concat(o)}(m,void 0!==s?s:.5,void 0!==u?u:.5)),void 0!==i&&(h.x=i),void 0!==a&&(h.y=a),void 0!==l&&function(t,e,n,r,o){void 0===n&&(n=1),void 0===r&&(r=0),void 0===o&&(o=!0),t.pathLength=1;var i=o?Te:xe;t[i.offset]=D.px.transform(-r);var a=D.px.transform(e),s=D.px.transform(n);t[i.array]="".concat(a," ").concat(s)}(h,l,d,p,!1)}var Re=function(){return(0,r.pi)((0,r.pi)({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function Ee(t,e){var n=(0,o.useMemo)((function(){var n=Re();return Ae(n,e,{enableHardwareAcceleration:!1},t.transformTemplate),(0,r.pi)((0,r.pi)({},n.attrs),{style:(0,r.pi)({},n.style)})}),[e]);if(t.style){var i={};ve(i,t.style,t),n.style=(0,r.pi)((0,r.pi)({},i),n.style)}return n}function Ve(t){void 0===t&&(t=!1);return function(e,n,i,a,s,u){var l=s.latestValues,c=(se(e)?Ee:ye)(n,l,u),d=function(t,e,n){var r={};for(var o in t)(_e(o)||!0===n&&be(o)||!e&&!be(o)||t.draggable&&o.startsWith("onDrag"))&&(r[o]=t[o]);return r}(n,"string"===typeof e,t),f=(0,r.pi)((0,r.pi)((0,r.pi)({},d),c),{ref:a});return i&&(f["data-projection-id"]=i),(0,o.createElement)(e,f)}}var Ce=/([a-z])([A-Z])/g,ke=function(t){return t.replace(Ce,"$1-$2").toLowerCase()};function Pe(t,e,n,r){var o=e.style,i=e.vars;for(var a in Object.assign(t.style,o,r&&r.getProjectionStyles(n)),i)t.style.setProperty(a,i[a])}var Le=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Me(t,e,n,r){for(var o in Pe(t,e,void 0,r),e.attrs)t.setAttribute(Le.has(o)?o:ke(o),e.attrs[o])}function Ne(t){var e=t.style,n={};for(var r in e)(k(e[r])||ue(r,t))&&(n[r]=e[r]);return n}function De(t){var e=Ne(t);for(var n in t){if(k(t[n]))e["x"===n||"y"===n?"attr"+n.toUpperCase():n]=t[n]}return e}function Oe(t){return"object"===typeof t&&"function"===typeof t.start}function Ue(t,e,n,r){var o=t.scrapeMotionValuesFromProps,i=t.createRenderState,a=t.onMount,s={latestValues:Ie(e,n,r,o),renderState:i()};return a&&(s.mount=function(t){return a(e,t,s)}),s}var Be=function(t){return function(e,n){var r=(0,o.useContext)(h),i=(0,o.useContext)(v);return n?Ue(t,e,r,i):(0,R.h)((function(){return Ue(t,e,r,i)}))}};function Ie(t,e,n,o){var i={},a=!1===(null===n||void 0===n?void 0:n.initial),s=o(t);for(var u in s)i[u]=Nt(s[u]);var l=t.initial,c=t.animate,d=(0,T.O6)(t),f=(0,T.e8)(t);e&&f&&!d&&!1!==t.inherit&&(null!==l&&void 0!==l||(l=e.initial),null!==c&&void 0!==c||(c=e.animate));var p=a||!1===l,h=p?c:l;h&&"boolean"!==typeof h&&!Oe(h)&&(Array.isArray(h)?h:[h]).forEac
1h((function(e){var n=(0,T.oQ)(t,e);if(n){var o=n.transitionEnd;n.transition;var a=(0,r._T)(n,["transitionEnd","transition"]);for(var s in a){var u=a[s];if(Array.isArray(u))u=u[p?u.length-1:0];null!==u&&(i[s]=u)}for(var s in o)i[s]=o[s]}}));return i}var je,Fe={useVisualState:Be({scrapeMotionValuesFromProps:De,createRenderState:Re,onMount:function(t,e,n){var r=n.renderState,o=n.latestValues;try{r.dimensions="function"===typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(i){r.dimensions={x:0,y:0,width:0,height:0}}Ae(r,o,{enableHardwareAcceleration:!1},t.transformTemplate),Me(e,r)}})},ze={useVisualState:Be({scrapeMotionValuesFromProps:Ne,createRenderState:he})};function $e(t,e,n,r){return void 0===r&&(r={passive:!0}),t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n)}}function We(t,e,n,r){(0,o.useEffect)((function(){var o=t.current;if(n&&o)return $e(o,e,n,r)}),[t,e,n,r])}function He(t){return"undefined"!==typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function Ge(t){return!!t.touches}!function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"}(je||(je={}));var qe={pageX:0,pageY:0};function Ye(t,e){void 0===e&&(e="page");var n=t.touches[0]||t.changedTouches[0]||qe;return{x:n[e+"X"],y:n[e+"Y"]}}function Ze(t,e){return void 0===e&&(e="page"),{x:t[e+"X"],y:t[e+"Y"]}}function Ke(t,e){return void 0===e&&(e="page"),{point:Ge(t)?Ye(t,e):Ze(t,e)}}var Xe=function(t,e){void 0===e&&(e=!1);var n,r=function(e){return t(e,Ke(e))};return e?(n=r,function(t){var e=t instanceof MouseEvent;(!e||e&&0===t.button)&&n(t)}):r},Je={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Qe={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function tn(t){return m&&null===window.onpointerdown?t:m&&null===window.ontouchstart?Qe[t]:m&&null===window.onmousedown?Je[t]:t}function en(t,e,n,r){return $e(t,tn(e),Xe(n,"pointerdown"===e),r)}function nn(t,e,n,r){return We(t,tn(e),n&&Xe(n,"pointerdown"===e),r)}function rn(t){var e=null;return function(){return null===e&&(e=t,function(){e=null})}}var on=rn("dragHorizontal"),an=rn("dragVertical");function sn(t){var e=!1;if("y"===t)e=an();else if("x"===t)e=on();else{var n=on(),r=an();n&&r?e=function(){n(),r()}:(n&&n(),r&&r())}return e}function un(){var t=sn(!0);return!t||(t(),!1)}function ln(t,e,n){return function(r,o){var i;He(r)&&!un()&&(null===(i=t.animationState)||void 0===i||i.setActive(je.Hover,e),null===n||void 0===n||n(r,o))}}var cn=function(t,e){return!!e&&(t===e||cn(t,e.parentElement))};function dn(t){return(0,o.useEffect)((function(){return function(){return t()}}),[])}var fn=n(9897);var pn=new Set;var hn=new WeakMap,vn=new WeakMap,mn=function(t){var e;null===(e=hn.get(t.target))||void 0===e||e(t)},yn=function(t){t.forEach(mn)};function gn(t,e,n){var o=function(t){var e=t.root,n=(0,r._T)(t,["root"]),o=e||document;vn.has(o)||vn.set(o,{});var i=vn.get(o),a=JSON.stringify(n);return i[a]||(i[a]=new IntersectionObserver(yn,(0,r.pi)({root:e},n))),i[a]}(e);return hn.set(t,n),o.observe(t),function(){hn.delete(t),o.unobserve(t)}}var bn={some:0,all:1};function Sn(t,e,n,r){var i=r.root,a=r.margin,s=r.amount,u=void 0===s?"some":s,l=r.once;(0,o.useEffect)((function(){if(t){var r={root:null===i||void 0===i?void 0:i.current,rootMargin:a,threshold:"number"===typeof u?u:bn[u]};return gn(n.getInstance(),r,(function(t){var r,o=t.isIntersecting;if(e.isInView!==o&&(e.isInView=o,!l||o||!e.hasEnteredView)){o&&(e.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(je.InView,o);var i=n.getProps(),a=o?i.onViewportEnter:i.onViewportLeave;null===a||void 0===a||a(t)}}))}}),[t,i,a,u])}function _n(t,e,n,r){var i=r.fallback,s=void 0===i||i;(0,o.useEffect)((function(){var r,o;t&&s&&("production"!==a&&(r="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",!1||pn.has(r)||(console.warn(r),o&&console.warn(o),pn.add(r))),requestAnimationFrame((function(){var t;e.hasEnteredView=!0;var r=n.getProps().onViewportEnter;null===r||void 0===r||r(null),null===(t=n.animationState)||void 0===t||t.setActive(je.InView,!0)})))}),[t])}var wn=function(t){return function(e){return t(e),null}},Tn={inView:wn((function(t){var e=t.visualElement,n=t.whileInView,r=t.onViewportEnter,i=t.onViewportLeave,a=t.viewport,s=void 0===a?{}:a,u=(0,o.useRef)({hasEnteredView:!1,isInView:!1}),l=Boolean(n||r||i);
1s.once&&u.current.hasEnteredView&&(l=!1),("undefined"===typeof IntersectionObserver?_n:Sn)(l,u.current,e,s)})),tap:wn((function(t){var e=t.onTap,n=t.onTapStart,r=t.onTapCancel,i=t.whileTap,a=t.visualElement,s=e||n||r||i,u=(0,o.useRef)(!1),l=(0,o.useRef)(null),c={passive:!(n||e||r||v)};function d(){var t;null===(t=l.current)||void 0===t||t.call(l),l.current=null}function f(){var t;return d(),u.current=!1,null===(t=a.animationState)||void 0===t||t.setActive(je.Tap,!1),!un()}function p(t,n){f()&&(cn(a.getInstance(),t.target)?null===e||void 0===e||e(t,n):null===r||void 0===r||r(t,n))}function h(t,e){f()&&(null===r||void 0===r||r(t,e))}function v(t,e){var r;d(),u.current||(u.current=!0,l.current=(0,fn.z)(en(window,"pointerup",p,c),en(window,"pointercancel",h,c)),null===(r=a.animationState)||void 0===r||r.setActive(je.Tap,!0),null===n||void 0===n||n(t,e))}nn(a,"pointerdown",s?v:void 0,c),dn(d)})),focus:wn((function(t){var e=t.whileFocus,n=t.visualElement;We(n,"focus",e?function(){var t;null===(t=n.animationState)||void 0===t||t.setActive(je.Focus,!0)}:void 0),We(n,"blur",e?function(){var t;null===(t=n.animationState)||void 0===t||t.setActive(je.Focus,!1)}:void 0)})),hover:wn((function(t){var e=t.onHoverStart,n=t.onHoverEnd,r=t.whileHover,o=t.visualElement;nn(o,"pointerenter",e||r?ln(o,!0,e):void 0,{passive:!e}),nn(o,"pointerleave",n||r?ln(o,!1,n):void 0,{passive:!n})}))},xn=0,An=function(){return xn++};function Rn(){var t=(0,o.useContext)(v);if(null===t)return[!0,null];var e=t.isPresent,n=t.onExitComplete,r=t.register,i=(0,R.h)(An);(0,o.useEffect)((function(){return r(i)}),[]);return!e&&n?[!1,function(){return null===n||void 0===n?void 0:n(i)}]:[!0]}var En=n(8488);function Vn(t,e){if(!Array.isArray(e))return!1;var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}var Cn=n(7107),kn=[je.Animate,je.InView,je.Focus,je.Hover,je.Tap,je.Drag,je.Exit],Pn=(0,r.ev)([],(0,r.CR)(kn),!1).reverse(),Ln=kn.length;function Mn(t){var e=function(t){return function(e){return Promise.all(e.map((function(e){var n=e.animation,r=e.options;return(0,Cn.d5)(t,n,r)})))}}(t),n=function(){var t;return(t={})[je.Animate]=Nn(!0),t[je.InView]=Nn(),t[je.Hover]=Nn(),t[je.Tap]=Nn(),t[je.Drag]=Nn(),t[je.Focus]=Nn(),t[je.Exit]=Nn(),t}(),o={},i=!0,a=function(e,n){var o=(0,T.x5)(t,n);if(o){o.transition;var i=o.transitionEnd,a=(0,r._T)(o,["transition","transitionEnd"]);e=(0,r.pi)((0,r.pi)((0,r.pi)({},e),a),i)}return e};function s(s,u){for(var l,c=t.getProps(),d=t.getVariantContext(!0)||{},f=[],p=new Set,h={},v=1/0,m=function(e){var o=Pn[e],m=n[o],y=null!==(l=c[o])&&void 0!==l?l:d[o],g=(0,T.$L)(y),b=o===u?m.isActive:null;!1===b&&(v=e);var S=y===d[o]&&y!==c[o]&&g;if(S&&i&&t.manuallyAnimateOnMount&&(S=!1),m.protectedKeys=(0,r.pi)({},h),!m.isActive&&null===b||!y&&!m.prevProp||Oe(y)||"boolean"===typeof y)return"continue";var _=function(t,e){if("string"===typeof e)return e!==t;if((0,T.A0)(e))return!Vn(e,t);return!1}(m.prevProp,y),w=_||o===u&&m.isActive&&!S&&g||e>v&&g,x=Array.isArray(y)?y:[y],A=x.reduce(a,{});!1===b&&(A={});var R=m.prevResolvedValues,E=void 0===R?{}:R,V=(0,r.pi)((0,r.pi)({},E),A),C=function(t){w=!0,p.delete(t),m.needsAnimating[t]=!0};for(var k in V){var P=A[k],L=E[k];h.hasOwnProperty(k)||(P!==L?(0,En.C)(P)&&(0,En.C)(L)?!Vn(P,L)||_?C(k):m.protectedKeys[k]=!0:void 0!==P?C(k):p.add(k):void 0!==P&&p.has(k)?C(k):m.protectedKeys[k]=!0)}m.prevProp=y,m.prevResolvedValues=A,m.isActive&&(h=(0,r.pi)((0,r.pi)({},h),A)),i&&t.blockInitialAnimation&&(w=!1),w&&!S&&f.push.apply(f,(0,r.ev)([],(0,r.CR)(x.map((function(t){return{animation:t,options:(0,r.pi)({type:o},s)}}))),!1))},y=0;y<Ln;y++)m(y);if(o=(0,r.pi)({},h),p.size){var g={};p.forEach((function(e){var n=t.getBaseTarget(e);void 0!==n&&(g[e]=n)})),f.push({animation:g})}var b=Boolean(f.length);return i&&!1===c.initial&&!t.manuallyAnimateOnMount&&(b=!1),i=!1,b?e(f):Promise.resolve()}return{isAnimated:function(t){return void 0!==o[t]},animateChanges:s,setActive:function(e,r,o){var i;if(n[e].isActive===r)return Promise.resolve();null===(i=t.variantChildren)||void 0===i||i.forEach((function(t){var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,r)})),n[e].isActive=r;var a=s(o,e);for(var u in n)n[u].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:function(){return n}}}function Nn(t){return void 0===t&&(t=!1),{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Dn={animation:wn((function(t){var e=t.visualElement,n=t.animate;e.animationState||(e.animationState=Mn(e)),Oe(n)&&(0,o.useEffect)((function(){return n.subscribe(e)}),[n])})),exit:wn((function(t){var e=t.custom,n=t.visualElement,i=(0,r.CR)(Rn(),2),a=i[0],s=i[1],u=(0,o.useContext)(v);(0,o.useEffect)((function(){var t,r;n.isPresent=a;var o=null===(t=n.animationState)||void 0===t?void 0:t.setActive(je.Exit,!a,{custom:null!==(r=null===u||void 0===u?void 0:u.custom)&&void 0!==r?r:e});!a&&(null===o||void 0===o||o.then(s))}),[a])}))},On=n(6917),Un=function(){function t(t,e,n){var o=this,i=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(o.lastMoveEvent&&o.lastMoveEventInfo){var t=jn(o.lastMoveEventInfo,o.history),e=null!==o.startEvent,n=lt(t.offset,{x:0,y:0})>=3;if(e||n){var i=t.point,a=(0,E.$B)().timestamp;o.history.push((0,r.pi)((0,r.pi)({},i),{timestamp:a}));var s=o.handlers,u=s.onStart,l=s.onMove;e||(u&&u(o.lastMoveEvent,t),o.startEvent=o.lastMoveEvent),l&&l(o.lastMoveEvent,t)}}},this.handlePointerMove=function(t,e){o.lastMoveEvent=t,o.lastMoveEventInfo=Bn(e,o.transformPagePoint),He(t)&&0===t.buttons?o.handlePointerUp(t,e):E.ZP.update(o.updatePoint,!0)},this.handlePointerUp=function(t,e){o.end();var n=o.handlers,r=n.onEnd,i=n.onSessionEnd,a=jn(Bn(e,o.transformPagePoint),o.history);o.startEvent&&r&&r(t,a),i&&i(t,a)},!(Ge(t)&&t.touches.length>1)){this.handlers=e,this.transformPagePoint=i;var a=Bn(Ke(t),this.transformPagePoint),s=a.point,u=(0,E.$B)().timestamp;this.history=[(0,r.pi)((0,r.pi)({},s),{timestamp:u})];var l=e.onSessionStart;l&&l(t,jn(a,this.history)),this.removeListeners=(0,fn.z)(en(window,"pointermove",this.handlePointerMove),en(window,"pointerup",this.handlePointerUp),en(window,"pointercancel",this.handlePointerUp))}}return t.prototype.updateHandlers=function(t){this.handlers=t},t.prototype.end=function(){this.removeListeners&&this.removeListeners(),E.qY.update(this.updatePoint)},t}();function Bn(t,e){return e?{point:e(t.point)}:t}function In(t,e){return{x:t.x-e.x,y:t.y-e.y}}function jn(t,e){var n=t.point;return{point:n,delta:In(n,zn(e)),offset:In(n,Fn(e)),velocity:$n(e,.1)}}function Fn(t){return t[0]}function zn(t){return t[t.length-1]}function $n(t,e){if(t.length<2)return{x:0,y:0};for(var n=t.length-1,r=null,o=zn(t);n>=0&&(r=t[n],!(o.timestamp-r.timestamp>(0,On.w)(e)));)n--;if(!r)return{x:0,y:0};var i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}var Wn=n(6773);function Hn(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function Gn(t,e){var n,o=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&(o=(n=(0,r.CR)([i,o],2))[0],i=n[1]),{min:o,max:i}}var qn=.35;function Yn(t,e,n){return{min:Zn(t,e),max:Zn(t,n)}}function Zn(t,e){var n;return"number"===typeof t?t:null!==(n=t[e])&&void 0!==n?n:0}function Kn(t){var e=t.top;return{x:{min:t.left,max:t.right},y:{min:e,max:t.bottom}}}function Xn(t,e){return Kn(function(t,e){if(!e)return t;var n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}var Jn=new WeakMap,Qn=function(){function t(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=t}return t.prototype.start=function(t,e){var n=this,r=(void 0===e?{}:e).snapToCursor,o=void 0!==r&&r;if(!1!==this.visualElement.isPresent){this.panSession=new Un(t,{onSessionStart:function(t){n.stopAnimation(),o&&n.snapToCursor(Ke(t,"page").point)},onStart:function(t,e){var r,o=n.getProps(),i=o.drag,a=o.dragPropagation,s=o.onDragStart;(!i||a||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=sn(i),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),Ct((function(t){var e,r,o=n.getAxisMotionValue(t).get()||0;if(D.aQ.test(o)){var i=null===(r=null===(e=n.visualElement.projection)||void 0===e?void 0:e.layout)||void 0===r?void 0:r.actual[t];if(i)o=ct(i)*(parseFloat(o)/100)}n.originPoint[t]=o})),null===s||void 0===s||s(t,e),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(je.Drag,!0))},onMove:function(t,e){var r=n.getProps(),o=r.dragPropagation,i=r.dragDirectionLock,a=r.onDirectionLock,s=r.onDrag;if(o||n.openGlobalLock){var u=e.offset;if(i&&null===n.currentDirection)return n.currentDirection=function(t,e){void 0===e&&(e=10);var n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(u),void(null!==n.currentDirection&&(null===a||void 0===a||a(n.currentDirection)));n.updateAxis("x",e.point,u),n.updateAxis("y",e.point,u),n.visualElement.syncRender(),null===s||void 0===s||s(t,e)}},onSessionEnd:function(t,e){return n.stop(t,e)}},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},t.prototype.stop=function(t,e){var n=this.isDragging;if(this.cancel(),n){var r=e.velocity;this.startAnimation(r);var o=this.getProps().onDragEnd;null===o||void 0===o||o(t,e)}},t.prototype.cancel=function(){var t,e;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(t=this.panSession)||void 0===t||t.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(e=this.visualElement.animationState)||void 0===e||e.setActive(je.Drag,!1)},t.prototype.updateAxis=function(t,e,n){var r=this.getProps().drag;if(n&&tr(t,r,this.currentDirection)){var o=this.getAxisMotionValue(t),i=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(i=function(t,e,n){var r=e.min,o=e.max;return void 0!==r&&t<r?t=n?(0,V.C)(r,t,n.min):Math.max(t,r):void 0!==o&&t>o&&(t=n?(0,V.C)(o,t,n.max):Math.min(t,o)),t}(i,this.constraints[t],this.elastic[t])),o.set(i)}}
1,t.prototype.resolveConstraints=function(){var t=this,e=this.getProps(),n=e.dragConstraints,r=e.dragElastic,o=(this.visualElement.projection||{}).layout,i=this.constraints;n&&w(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!o)&&function(t,e){var n=e.top,r=e.left,o=e.bottom,i=e.right;return{x:Hn(t.x,r,i),y:Hn(t.y,n,o)}}(o.actual,n),this.elastic=function(t){return void 0===t&&(t=qn),!1===t?t=0:!0===t&&(t=qn),{x:Yn(t,"left","right"),y:Yn(t,"top","bottom")}}(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ct((function(e){t.getAxisMotionValue(e)&&(t.constraints[e]=function(t,e){var n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(o.actual[e],t.constraints[e]))}))},t.prototype.resolveRefConstraints=function(){var t=this.getProps(),e=t.dragConstraints,n=t.onMeasureDragConstraints;if(!e||!w(e))return!1;var r=e.current;(0,l.k)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var o=this.visualElement.projection;if(!o||!o.layout)return!1;var i=function(t,e,n){var r=Xn(t,n),o=e.scroll;return o&&(tt(r.x,o.x),tt(r.y,o.y)),r}(r,o.root,this.visualElement.getTransformPagePoint()),a=function(t,e){return{x:Gn(t.x,e.x),y:Gn(t.y,e.y)}}(o.layout.actual,i);if(n){var s=n(function(t){var e=t.x,n=t.y;return{top:n.min,right:e.max,bottom:n.max,left:e.min}}(a));this.hasMutatedConstraints=!!s,s&&(a=Kn(s))}return a},t.prototype.startAnimation=function(t){var e=this,n=this.getProps(),o=n.drag,i=n.dragMomentum,a=n.dragElastic,s=n.dragTransition,u=n.dragSnapToOrigin,l=n.onDragTransitionEnd,c=this.constraints||{},d=Ct((function(n){var l;if(tr(n,o,e.currentDirection)){var d=null!==(l=null===c||void 0===c?void 0:c[n])&&void 0!==l?l:{};u&&(d={min:0,max:0});var f=a?200:1e6,p=a?40:1e7,h=(0,r.pi)((0,r.pi)({type:"inertia",velocity:i?t[n]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10},s),d);return e.startAxisValueAnimation(n,h)}}));return Promise.all(d).then(l)},t.prototype.startAxisValueAnimation=function(t,e){var n=this.getAxisMotionValue(t);return(0,P.b8)(t,n,0,e)},t.prototype.stopAnimation=function(){var t=this;Ct((function(e){return t.getAxisMotionValue(e).stop()}))},t.prototype.getAxisMotionValue=function(t){var e,n,r="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[r];return o||this.visualElement.getValue(t,null!==(n=null===(e=this.visualElement.getProps().initial)||void 0===e?void 0:e[t])&&void 0!==n?n:0)},t.prototype.snapToCursor=function(t){var e=this;Ct((function(n){if(tr(n,e.getProps().drag,e.currentDirection)){var r=e.visualElement.projection,o=e.getAxisMotionValue(n);if(r&&r.layout){var i=r.layout.actual[n],a=i.min,s=i.max;o.set(t[n]-(0,V.C)(a,s,.5))}}}))},t.prototype.scalePositionWithinConstraints=function(){var t,e=this,n=this.getProps(),r=n.drag,o=n.dragConstraints,i=this.visualElement.projection;if(w(o)&&i&&this.constraints){this.stopAnimation();var a={x:0,y:0};Ct((function(t){var n=e.getAxisMotionValue(t);if(n){var r=n.get();a[t]=function(t,e){var n=.5,r=ct(t),o=ct(e);return o>r?n=(0,N.Y)(e.min,e.max-r,t.min):r>o&&(n=(0,N.Y)(t.min,t.max-o,e.min)),(0,Wn.u)(0,1,n)}({min:r,max:r},e.constraints[t])}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(t=i.root)||void 0===t||t.updateScroll(),i.updateLayout(),this.resolveConstraints(),Ct((function(t){if(tr(t,r,null)){var n=e.getAxisMotionValue(t),o=e.constraints[t],i=o.min,s=o.max;n.set((0,V.C)(i,s,a[t]))}}))}},t.prototype.addListeners=function(){var t,e=this;Jn.set(this.visualElement,this);var n=en(this.visualElement.getInstance(),"pointerdown",(function(t){var n=e.getProps(),r=n.drag,o=n.dragListener;r&&(void 0===o||o)&&e.start(t)})),r=function(){w(e.getProps().dragConstraints)&&(e.constraints=e.resolveRefConstraints())},o=this.visualElement.projection,i=o.addEventListener("measure",r);o&&!o.layout&&(null===(t=o.root)||void 0===t||t.updateScroll(),o.updateLayout()),r();var a=$e(window,"resize",(function(){return e.scalePositionWithinConstraints()}));return o.addEventListener("didUpdate",(function(t){var n=t.delta,r=t.hasLayoutChanged;e.isDragging&&r&&(Ct((function(t){var r=e.getAxisMotionValue(t);r&&(e.originPoint[t]+=n[t].translate,r.set(r.get()+n[t].translate))})),e.visualElement.syncRender())})),function(){a(),n(),i()}},t.prototype.getProps=function(){var t=this.visualElement.getProps(),e=t.drag,n=void 0!==e&&e,o=t.dragDirectionLock,i=void 0!==o&&o,a=t.dragPropagation,s=void 0!==a&&a,u=t.dragConstraints,l=void 0!==u&&u,c=t.dragElastic,d=void 0===c?qn:c,f=t.dragMomentum,p=void 0===f||f;return(0,r.pi)((0,r.pi)({},t),{drag:n,dragDirectionLock:i,dragPropagation:s,dragConstraints:l,dragElastic:d,dragMomentum:p})},t}();function tr(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}var er={pan:wn((function(t){var e=t.onPan,n=t.onPanStart,r=t.onPanEnd,i=t.onPanSessionStart,a=t.visualElement,s=e||n||r||i,u=(0,o.useRef)(null),l=(0,o.useContext)(p).transformPagePoint,c={onSessionStart:i,onStart:n,onMove:e,onEnd:function(t,e){u.current=null,r&&r(t,e)}};(0,o.useEffect)((function(){null!==u.current&&u.current.updateHandlers(c)}
1)),nn(a,"pointerdown",s&&function(t){u.current=new Un(t,c,{transformPagePoint:l})}),dn((function(){return u.current&&u.current.end()}))})),drag:wn((function(t){var e=t.dragControls,n=t.visualElement,r=(0,R.h)((function(){return new Qn(n)}));(0,o.useEffect)((function(){return e&&e.subscribe(r)}),[r,e]),(0,o.useEffect)((function(){return r.addListeners()}),[r])}))},nr=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];var rr=function(t){var e=t.treeType,n=void 0===e?"":e,o=t.build,i=t.getBaseTarget,a=t.makeTargetAnimatable,s=t.measureViewportBox,u=t.render,l=t.readValueFromInstance,c=t.removeValueFromRenderState,d=t.sortNodePosition,f=t.scrapeMotionValuesFromProps;return function(t,e){var p=t.parent,h=t.props,v=t.presenceId,m=t.blockInitialAnimation,y=t.visualState,g=t.shouldReduceMotion;void 0===e&&(e={});var b,S,_=!1,w=y.latestValues,x=y.renderState,A=function(){var t=nr.map((function(){return new L.L})),e={},n={clearAllListeners:function(){return t.forEach((function(t){return t.clear()}))},updatePropListeners:function(t){nr.forEach((function(r){var o,i="on"+r,a=t[i];
1null===(o=e[r])||void 0===o||o.call(e),a&&(e[r]=n[i](a))}))}};return t.forEach((function(t,e){n["on"+nr[e]]=function(e){return t.add(e)},n["notify"+nr[e]]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.notify.apply(t,(0,r.ev)([],(0,r.CR)(e),!1))}})),n}(),R=new Map,V=new Map,P={},M=(0,r.pi)({},w);function N(){b&&_&&(D(),u(b,x,h.style,$.projection))}function D(){o($,x,w,e,h)}function O(){A.notifyUpdate(w)}function U(t,e){var n=e.onChange((function(e){w[t]=e,h.onUpdate&&E.ZP.update(O,!1,!0)})),r=e.onRenderRequest($.scheduleRender);V.set(t,(function(){n(),r()}))}var B=f(h);for(var I in B){var j=B[I];void 0!==w[I]&&k(j)&&j.set(w[I],!1)}var F=(0,T.O6)(h),z=(0,T.e8)(h),$=(0,r.pi)((0,r.pi)({treeType:n,current:null,depth:p?p.depth+1:0,parent:p,children:new Set,presenceId:v,shouldReduceMotion:g,variantChildren:z?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null===p||void 0===p?void 0:p.isMounted()),blockInitialAnimation:m,isMounted:function(){return Boolean(b)},mount:function(t){_=!0,b=$.current=t,$.projection&&$.projection.mount(t),z&&p&&!F&&(S=null===p||void 0===p?void 0:p.addVariantChild($)),R.forEach((function(t,e){return U(e,t)})),null===p||void 0===p||p.children.add($),$.setProps(h)},unmount:function(){var t;null===(t=$.projection)||void 0===t||t.unmount(),E.qY.update(O),E.qY.render(N),V.forEach((function(t){return t()})),null===S||void 0===S||S(),null===p||void 0===p||p.children.delete($),A.clearAllListeners(),b=void 0,_=!1},addVariantChild:function(t){var e,n=$.getClosestVariantNode();if(n)return null===(e=n.variantChildren)||void 0===e||e.add(t),function(){return n.variantChildren.delete(t)}},sortNodePosition:function(t){return d&&n===t.treeType?d($.getInstance(),t.getInstance()):0},getClosestVariantNode:function(){return z?$:null===p||void 0===p?void 0:p.getClosestVariantNode()},getLayoutId:function(){return h.layoutId},getInstance:function(){return b},getStaticValue:function(t){return w[t]},setStaticValue:function(t,e){return w[t]=e},getLatestValues:function(){return w},setVisibility:function(t){$.isVisible!==t&&($.isVisible=t,$.scheduleRender())},makeTargetAnimatable:function(t,e){return void 0===e&&(e=!0),a($,t,h,e)},measureViewportBox:function(){return s(b,h)},addValue:function(t,e){$.hasValue(t)&&$.removeValue(t),R.set(t,e),w[t]=e.get(),U(t,e)},removeValue:function(t){var e;R.delete(t),null===(e=V.get(t))||void 0===e||e(),V.delete(t),delete w[t],c(t,x)},hasValue:function(t){return R.has(t)},getValue:function(t,e){var n=R.get(t);return void 0===n&&void 0!==e&&(n=(0,C.B)(e),$.addValue(t,n)),n},forEachValue:function(t){return R.forEach(t)},readValue:function(t){var n;return null!==(n=w[t])&&void 0!==n?n:l(b,t,e)},setBaseTarget:function(t,e){M[t]=e},getBaseTarget:function(t){if(i){var e=i(h,t);if(void 0!==e&&!k(e))return e}return M[t]}},A),{build:function(){return D(),x},scheduleRender:function(){E.ZP.render(N,!1,!0)},syncRender:N,setProps:function(t){(t.transformTemplate||h.transformTemplate)&&$.scheduleRender(),h=t,A.updatePropListeners(t),P=function(t,e,n){var r;for(var o in e){var i=e[o],a=n[o];if(k(i))t.addValue(o,i);else if(k(a))t.addValue(o,(0,C.B)(i));else if(a!==i)if(t.hasValue(o)){var s=t.getValue(o);!s.hasAnimated&&s.set(i)}else t.addValue(o,(0,C.B)(null!==(r=t.getStaticValue(o))&&void 0!==r?r:i))}for(var o in n)void 0===e[o]&&t.removeValue(o);return e}($,f(h),P)},getProps:function(){return h},getVariant:function(t){var e;return null===(e=h.variants)||void 0===e?void 0:e[t]},getDefaultTransition:function(){return h.transition},getTransformPagePoint:function(){return h.transformPagePoint},getVariantContext:function(t){if(void 0===t&&(t=!1),t)return null===p||void 0===p?void 0:p.getVariantContext();if(!F){var e=(null===p||void 0===p?void 0:p.getVariantContext())||{};return void 0!==h.initial&&(e.initial=h.initial),e}for(var n={},r=0;r<ir;r++){var o=or[r],i=h[o];((0,T.$L)(i)||!1===i)&&(n[o]=i)}return n}});return $}},or=(0,r.ev)(["initial"],(0,r.CR)(kn),!1),ir=or.length,ar=n(5759);function sr(t){return"string"===typeof t&&t.startsWith("var(--")}var ur=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function lr(t,e,n){void 0===n&&(n=1),(0,l.k)(n<=4,'Max CSS variable fallback depth detected in property "'.concat(t,'". This may indicate a circular fallback dependency.'));var o=(0,r.CR)(function(t){var e=ur.exec(t);if(!e)return[,];var n=(0,r.CR)(e,3);return[n[1],n[2]]}(t),2),i=o[0],a=o[1];if(i){var s=window.getComputedStyle(e).getPropertyValue(i);return s?s.trim():sr(a)?lr(a,e,n+1):a}}var cr,dr=n(1248),fr=n(6440),pr=new Set(["width","height","top","left","right","bottom","x","y"]),hr=function(t){return pr.has(t)},vr=function(t,e){t.set(e,!1),t.set(e)},mr=function(t){return t===dr.Rx||t===D.px};!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(cr||(cr={}));var yr=function(t,e){return parseFloat(t.split(", ")[e])},gr=function(t,e){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var i=o.match(/^matrix3d\((.+)\)$/);if(i)return yr(i[1],e);var a=o.match(/^matrix\((.+)\)$/);return a?yr(a[1],t):0}},br=new Set(["x","y","z"]),Sr=kt.Gl.filter((function(t){return!br.has(t)}));var _r={width:function(t,e){var n=t.x,r=e.paddingLeft,o=void 0===r?"0":r,i=e.paddingRight,a=void 0===i?"0":i;return n.max-n.min-parseFloat(o)-parseFloat(a)},height:function(t,e){var n=t.y,r=e.paddingTop,o=void 0===r?"0":r,i=e.paddingBottom,a=void 0===i?"0":i;return n.max-n.min-parseFloat(o)-parseFloat(a)},top:function(t,e){var n=e.top;return parseFloat(n)},left:function(t,e){var n=e.left;return parseFloat(n)},bottom:function(t,e){var n=t.y,r=e.top;return parseFloat(r)+(n.max-n.min)},right:function(t,e){var n=t.x,r=e.left;return parseFloat(r)+(n.max-n.min)},x:gr(4,13),y:gr(5,14)},wr=function(t,e,n,o){void 0===n&&(n={}),void 0===o&&(o={}),e=(0,r.pi)({},e),o=(0,r.pi)({},o);var i=Object.keys(e).filter(hr),a=[],s=!1,u=[];
1if(i.forEach((function(r){var i=t.getValue(r);if(t.hasValue(r)){var c,d=n[r],f=(0,fr.C)(d),p=e[r];if((0,En.C)(p)){var h=p.length,v=null===p[0]?1:0;d=p[v],f=(0,fr.C)(d);for(var m=v;m<h;m++)c?(0,l.k)((0,fr.C)(p[m])===c,"All keyframes must be of the same type"):(c=(0,fr.C)(p[m]),(0,l.k)(c===f||mr(f)&&mr(c),"Keyframes must be of the same dimension as the current value"))}else c=(0,fr.C)(p);if(f!==c)if(mr(f)&&mr(c)){var y=i.get();"string"===typeof y&&i.set(parseFloat(y)),"string"===typeof p?e[r]=parseFloat(p):Array.isArray(p)&&c===D.px&&(e[r]=p.map(parseFloat))}else(null===f||void 0===f?void 0:f.transform)&&(null===c||void 0===c?void 0:c.transform)&&(0===d||0===p)?0===d?i.set(c.transform(d)):e[r]=f.transform(p):(s||(a=function(t){var e=[];return Sr.forEach((function(n){var r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),e.length&&t.syncRender(),e}(t),s=!0),u.push(r),o[r]=void 0!==o[r]?o[r]:e[r],vr(i,p))}})),u.length){var c=u.indexOf("height")>=0?window.pageYOffset:null,d=function(t,e,n){var r=e.measureViewportBox(),o=e.getInstance(),i=getComputedStyle(o),a=i.display,s={};"none"===a&&e.setStaticValue("display",t.display||"block"),n.forEach((function(t){s[t]=_r[t](r,i)})),e.syncRender();var u=e.measureViewportBox();return n.forEach((function(n){var r=e.getValue(n);vr(r,s[n]),t[n]=_r[n](u,i)})),t}(e,t,u);return a.length&&a.forEach((function(e){var n=(0,r.CR)(e,2),o=n[0],i=n[1];t.getValue(o).set(i)})),t.syncRender(),null!==c&&window.scrollTo({top:c}),{target:d,transitionEnd:o}}return{target:e,transitionEnd:o}};function Tr(t,e,n,r){return function(t){return Object.keys(t).some(hr)}(e)?wr(t,e,n,r):{target:e,transitionEnd:r}}var xr=function(t,e,n,o){var i=function(t,e,n){var o,i=(0,r._T)(e,[]),a=t.getInstance();if(!(a instanceof Element))return{target:i,transitionEnd:n};for(var s in n&&(n=(0,r.pi)({},n)),t.forEachValue((function(t){var e=t.get();if(sr(e)){var n=lr(e,a);n&&t.set(n)}})),i){var u=i[s];if(sr(u)){var l=lr(u,a);l&&(i[s]=l,n&&(null!==(o=n[s])&&void 0!==o||(n[s]=u)))}}return{target:i,transitionEnd:n}}(t,e,o);return Tr(t,e=i.target,n,o=i.transitionEnd)},Ar=n(2728);var Rr={treeType:"dom",readValueFromInstance:function(t,e){if((0,kt._c)(e)){var n=(0,Ar.A)(e);return n&&n.default||0}var r,o=(r=t,window.getComputedStyle(r));return(ce(e)?o.getPropertyValue(e):o[e])||0},sortNodePosition:function(t,e){return 2&t.compareDocumentPosition(e)?1:-1},getBaseTarget:function(t,e){var n;return null===(n=t.style)||void 0===n?void 0:n[e]},measureViewportBox:function(t,e){return Xn(t,e.transformPagePoint)},resetTransform:function(t,e,n){var r=n.transformTemplate;e.style.transform=r?r({},""):"none",t.scheduleRender()},restoreTransform:function(t,e){t.style.transform=e.style.transform},removeValueFromRenderState:function(t,e){var n=e.vars,r=e.style;delete n[t],delete r[t]},makeTargetAnimatable:function(t,e,n,o){var i=n.transformValues;void 0===o&&(o=!0);var a=e.transition,s=e.transitionEnd,u=(0,r._T)(e,["transition","transitionEnd"]),l=(0,ar.P$)(u,a||{},t);if(i&&(s&&(s=i(s)),u&&(u=i(u)),l&&(l=i(l))),o){(0,ar.GJ)(t,u,l);var c=xr(t,u,l,s);s=c.transitionEnd,u=c.target}return(0,r.pi)({transition:a,transitionEnd:s},u)},scrapeMotionValuesFromProps:Ne,build:function(t,e,n,r,o){void 0!==t.isVisible&&(e.style.visibility=t.isVisible?"visible":"hidden"),pe(e,n,r,o.transformTemplate)},render:Pe},Er=rr(Rr),Vr=rr((0,r.pi)((0,r.pi)({},Rr),{getBaseTarget:function(t,e){return t[e]},readValueFromInstance:function(t,e){var n;return(0,kt._c)(e)?(null===(n=(0,Ar.A)(e))||void 0===n?void 0:n.default)||0:(e=Le.has(e)?e:ke(e),t.getAttribute(e))},scrapeMotionValuesFromProps:De,build:function(t,e,n,r,o){Ae(e,n,r,o.transformTemplate)},render:Me})),Cr=function(t,e){return se(t)?Vr(e,{enableHardwareAcceleration:!1}):Er(e,{enableHardwareAcceleration:!0})};function kr(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}var Pr={correct:function(t,e){if(!e.target)return t;if("string"===typeof t){if(!D.px.test(t))return t;t=parseFloat(t)}var n=kr(t,e.target.x),r=kr(t,e.target.y);return"".concat(n,"% ").concat(r,"%")}},Lr=n(8407),Mr="_$css",Nr={correct:function(t,e){var n=e.treeScale,r=e.projectionDelta,o=t,i=t.includes("var("),a=[];i&&(t=t.replace(ur,(function(t){return a.push(t),Mr})));var s=Lr.P.parse(t);if(s.length>5)return o;var u=Lr.P.createTransformer(t),l="number"!==typeof s[0]?1:0,c=r.x.scale*n.x,d=r.y.scale*n.y;s[0+l]/=c,s[1+l]/=d;var f=(0,V.C)(c,d,.5);"number"===typeof s[2+l]&&(s[2+l]/=f),"number"===typeof s[3+l]&&(s[3+l]/=f);var p=u(s);if(i){var h=0;
1p=p.replace(Mr,(function(){var t=a[h];return h++,t}))}return p}},Dr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.componentDidMount=function(){var t,e=this,n=this.props,o=n.visualElement,i=n.layoutGroup,a=n.switchLayoutGroup,s=n.layoutId,u=o.projection;t=Or,Object.assign(Et,t),u&&((null===i||void 0===i?void 0:i.group)&&i.group.add(u),(null===a||void 0===a?void 0:a.register)&&s&&a.register(u),u.root.didUpdate(),u.addEventListener("animationComplete",(function(){e.safeToRemove()})),u.setOptions((0,r.pi)((0,r.pi)({},u.options),{onExitComplete:function(){return e.safeToRemove()}}))),Dt.hasEverUpdated=!0},e.prototype.getSnapshotBeforeUpdate=function(t){var e=this,n=this.props,r=n.layoutDependency,o=n.visualElement,i=n.drag,a=n.isPresent,s=o.projection;return s?(s.isPresent=a,i||t.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||E.ZP.postRender((function(){var t;(null===(t=s.getStack())||void 0===t?void 0:t.members.length)||e.safeToRemove()}))),null):null},e.prototype.componentDidUpdate=function(){var t=this.props.visualElement.projection;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())},e.prototype.componentWillUnmount=function(){var t=this.props,e=t.visualElement,n=t.layoutGroup,r=t.switchLayoutGroup,o=e.projection;o&&(o.scheduleCheckAfterUnmount(),(null===n||void 0===n?void 0:n.group)&&n.group.remove(o),(null===r||void 0===r?void 0:r.deregister)&&r.deregister(o))},e.prototype.safeToRemove=function(){var t=this.props.safeToRemove;null===t||void 0===t||t()},e.prototype.render=function(){return null},e}(o.Component);var Or={borderRadius:(0,r.pi)((0,r.pi)({},Pr),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Pr,borderTopRightRadius:Pr,borderBottomLeftRadius:Pr,borderBottomRightRadius:Pr,boxShadow:Nr},Ur={measureLayout:function(t){var e=(0,r.CR)(Rn(),2),n=e[0],i=e[1],a=(0,o.useContext)(ee);return o.createElement(Dr,(0,r.pi)({},t,{layoutGroup:a,switchLayoutGroup:(0,o.useContext)(ne),isPresent:n,safeToRemove:i}))}},Br=Ot({attachResizeListener:function(t,e){return $e(t,"resize",e)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}}}),Ir={current:void 0},jr=Ot({measureScroll:function(t){return{x:t.scrollLeft,y:t.scrollTop}},defaultParent:function(){if(!Ir.current){var t=new Br(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),Ir.current=t}return Ir.current},resetTransform:function(t,e){t.style.transform=null!==e&&void 0!==e?e:"none"}}),Fr=(0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)({},Dn),Tn),er),Ur),zr=ie((function(t,e){return function(t,e,n,o,i){var a=e.forwardMotionProps,s=void 0!==a&&a,u=se(t)?Fe:ze;return(0,r.pi)((0,r.pi)({},u),{preloadedFeatures:n,useRender:Ve(s),createVisualElement:o,projectionNodeConstructor:i,Component:t})}(t,e,Fr,Cr,jr)}))},9135:function(t,e,n){"use strict";n.d(e,{T:function(){return a}});var r=n(5738),o=n(8407),i=n(2728);function a(t,e){var n,a=(0,i.A)(t);return a!==r.h&&(a=o.P),null===(n=a.getAnimatableNone)||void 0===n?void 0:n.call(a,e)}},2728:function(t,e,n){"use strict";n.d(e,{A:function(){return u}});var r=n(655),o=n(7405),i=n(5738),a=n(6173),s=(0,r.pi)((0,r.pi)({},a.j),{color:o.$,backgroundColor:o.$,outlineColor:o.$,fill:o.$,stroke:o.$,borderColor:o.$,borderTopColor:o.$,borderRightColor:o.$,borderBottomColor:o.$,borderLeftColor:o.$,filter:i.h,WebkitFilter:i.h}),u=function(t){return s[t]}},6440:function(t,e,n){"use strict";n.d(e,{$:function(){return a},C:function(){return s}});var r=n(1248),o=n(2969),i=n(8340),a=[r.Rx,o.px,o.aQ,o.RW,o.vw,o.vh,{test:function(t){return"auto"===t},parse:function(t){return t}}],s=function(t){return a.find((0,i.l)(t))}},6173:function(t,e,n){"use strict";n.d(e,{j:function(){return s}});var r=n(2969),o=n(1248),i=n(655),a=(0,i.pi)((0,i.pi)({},o.Rx),{transform:Math.round}),s={borderWidth:r.px,borderTopWidth:r.px,borderRightWidth:r.px,borderBottomWidth:r.px,borderLeftWidth:r.px,borderRadius:r.px,radius:r.px,borderTopLeftRadius:r.px,borderTopRightRadius:r.px,borderBottomRightRadius:r.px,borderBottomLeftRadius:r.px,width:r.px,maxWidth:r.px,height:r.px,maxHeight:r.px,size:r.px,top:r.px,right:r.px,bottom:r.px,left:r.px,padding:r.px,paddingTop:r.px,paddingRight:r.px,paddingBottom:r.px,paddingLeft:r.px,margin:r.px,marginTop:r.px,marginRight:r.px,marginBottom:r.px,marginLeft:r.px,rotate:r.RW,rotateX:r.RW,rotateY:r.RW,rotateZ:r.RW,scale:o.bA,scaleX:o.bA,scaleY:o.bA,scaleZ:o.bA,skew:r.RW,skewX:r.RW,skewY:r.RW,distance:r.px,translateX:r.px,translateY:r.px,translateZ:r.px,x:r.px,y:r.px,z:r.px,perspective:r.px,transformPerspective:r.px,opacity:o.Fq,originX:r.$C,originY:r.$C,originZ:r.px,zIndex:a,fillOpacity:o.Fq,strokeOpacity:o.Fq,numOctaves:a}},8340:function(t,e,n){"use strict";n.d(e,{l:function(){return r}});var r=function(t){return function(e){return e.test(t)}}},4714:function(t,e,n){"use strict";n.d(e,{Ee:function(){return l},_c:function(){return s},s3:function(){return i},r$:function(){return r},Gl:function(){return o}});var r=["","X","Y","Z"],o=["transformPerspective","x","y","z"];function i(t,e){return o.indexOf(t)-o.indexOf(e)}["translate","scale","rotate","skew"].forEach((function(t){return r.forEach((function(e){return o.push(t+e)}))}));var a=new Set(o);function s(t){return a.has(t)}var u=new Set(["originX","originY","originZ"]);function l(t){return u.has(t)}},7107:function(t,e,n){"use strict";n.d(e,{d5:function(){return u},p_:function(){return d}});var r=n(655),o=n(1593),i=n(5759),a=n(7909),s=n(4714);function u(t,e,n){var r;if(void 0===n&&(n={}),t.notifyAnimationStart(e),Array.isArray(e)){var o=e.map((function(e){return l(t,e,n)}
1));r=Promise.all(o)}else if("string"===typeof e)r=l(t,e,n);else{var i="function"===typeof e?(0,a.x5)(t,e,n.custom):e;r=c(t,i,n)}return r.then((function(){return t.notifyAnimationComplete(e)}))}function l(t,e,n){var o;void 0===n&&(n={});var i=(0,a.x5)(t,e,n.custom),s=(i||{}).transition,u=void 0===s?t.getDefaultTransition()||{}:s;n.transitionOverride&&(u=n.transitionOverride);var d=i?function(){return c(t,i,n)}:function(){return Promise.resolve()},p=(null===(o=t.variantChildren)||void 0===o?void 0:o.size)?function(o){void 0===o&&(o=0);var i=u.delayChildren,a=void 0===i?0:i,s=u.staggerChildren,c=u.staggerDirection;return function(t,e,n,o,i,a){void 0===n&&(n=0);void 0===o&&(o=0);void 0===i&&(i=1);var s=[],u=(t.variantChildren.size-1)*o,c=1===i?function(t){return void 0===t&&(t=0),t*o}:function(t){return void 0===t&&(t=0),u-t*o};return Array.from(t.variantChildren).sort(f).forEach((function(t,o){s.push(l(t,e,(0,r.pi)((0,r.pi)({},a),{delay:n+c(o)})).then((function(){return t.notifyAnimationComplete(e)})))})),Promise.all(s)}(t,e,a+o,s,c,n)}:function(){return Promise.resolve()},h=u.when;if(h){var v=(0,r.CR)("beforeChildren"===h?[d,p]:[p,d],2),m=v[0],y=v[1];return m().then(y)}return Promise.all([d(),p(n.delay)])}function c(t,e,n){var a,u=void 0===n?{}:n,l=u.delay,c=void 0===l?0:l,d=u.transitionOverride,f=u.type,h=t.makeTargetAnimatable(e),v=h.transition,m=void 0===v?t.getDefaultTransition():v,y=h.transitionEnd,g=(0,r._T)(h,["transition","transitionEnd"]);d&&(m=d);var b=[],S=f&&(null===(a=t.animationState)||void 0===a?void 0:a.getState()[f]);for(var _ in g){var w=t.getValue(_),T=g[_];if(!(!w||void 0===T||S&&p(S,_))){var x=(0,r.pi)({delay:c},m);t.shouldReduceMotion&&(0,s._c)(_)&&(x=(0,r.pi)((0,r.pi)({},x),{type:!1,delay:0}));var A=(0,o.b8)(_,w,T,x);b.push(A)}}return Promise.all(b).then((function(){y&&(0,i.CD)(t,y)}))}function d(t){t.forEachValue((function(t){return t.stop()}))}function f(t,e){return t.sortNodePosition(e)}function p(t,e){var n=t.protectedKeys,r=t.needsAnimating,o=n.hasOwnProperty(e)&&!0!==r[e];return r[e]=!1,o}},5759:function(t,e,n){"use strict";n.d(e,{GJ:function(){return b},P$:function(){return _},CD:function(){return m},gg:function(){return g}});var r=n(655),o=n(8407),i=function(t){return/^0[^.\s]+$/.test(t)},a=n(8715),s=n(3234),u=n(9135),l=n(7405),c=n(6440),d=n(8340),f=(0,r.ev)((0,r.ev)([],(0,r.CR)(c.$),!1),[l.$,o.P],!1),p=function(t){return f.find((0,d.l)(t))},h=n(7909);function v(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,s.B)(n))}function m(t,e){var n=(0,h.x5)(t,e),o=n?t.makeTargetAnimatable(n,!1):{},i=o.transitionEnd,s=void 0===i?{}:i;o.transition;var u=(0,r._T)(o,["transitionEnd","transition"]);for(var l in u=(0,r.pi)((0,r.pi)({},u),s)){v(t,l,(0,a.Y)(u[l]))}}function y(t,e){(0,r.ev)([],(0,r.CR)(e),!1).reverse().forEach((function(n){var r,o=t.getVariant(n);o&&m(t,o),null===(r=t.variantChildren)||void 0===r||r.forEach((function(t){y(t,e)}))}))}function g(t,e){return Array.isArray(e)?y(t,e):"string"===typeof e?y(t,[e]):void m(t,e)}function b(t,e,n){var r,a,l,c,d=Object.keys(e).filter((function(e){return!t.hasValue(e)})),f=d.length;if(f)for(var h=0;h<f;h++){var v=d[h],m=e[v],y=null;Array.isArray(m)&&(y=m[0]),null===y&&(y=null!==(a=null!==(r=n[v])&&void 0!==r?r:t.readValue(v))&&void 0!==a?a:e[v]),void 0!==y&&null!==y&&("string"===typeof y&&(/^\-?\d*\.?\d+$/.test(y)||i(y))?y=parseFloat(y):!p(y)&&o.P.test(m)&&(y=(0,u.T)(v,m)),t.addValue(v,(0,s.B)(y)),null!==(l=(c=n)[v])&&void 0!==l||(c[v]=y),t.setBaseTarget(v,y))}}function S(t,e){if(e)return(e[t]||e.default||e).from}function _(t,e,n){var r,o,i={};for(var a in t)i[a]=null!==(r=S(a,e))&&void 0!==r?r:null===(o=n.getValue(a))||void 0===o?void 0:o.get();return i}},7909:function(t,e,n){"use strict";function r(t){return Array.isArray(t)}function o(t){return"string"===typeof t||r(t)}function i(t,e,n,r,o){var i;return void 0===r&&(r={}),void 0===o&&(o={}),"function"===typeof e&&(e=e(null!==n&&void 0!==n?n:t.custom,r,o)),"string"===typeof e&&(e=null===(i=t.variants)||void 0===i?void 0:i[e]),"function"===typeof e&&(e=e(null!==n&&void 0!==n?n:t.custom,r,o)),e}function a(t,e,n){var r=t.getProps();return i(r,e,null!==n&&void 0!==n?n:r.custom,function(t){var e={};return t.forEachValue((function(t,n){return e[n]=t.get()})),e}(t),function(t){var e={};return t.forEachValue((function(t,n){return e[n]=t.getVelocity()})),e}(t))}function s(t){var e;return"function"===typeof(null===(e=t.animate)||void 0===e?void 0:e.start)||o(t.initial)||o(t.animate)||o(t.whileHover)||o(t.whileDrag)||o(t.whileTap)||o(t.whileFocus)||o(t.exit)}function u(t){return Boolean(s(t)||t.variants)}n.d(e,{O6:function(){return s},e8:function(){return u},$L:function(){return o},A0:function(){return r},x5:function(){return a},oQ:function(){return i}})},10:function(t,e,n){"use strict";function r(t,e){-1===t.indexOf(e)&&t.push(e)}function o(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{y4:function(){return r},cl:function(){return o}})},8715:function(t,e,n){"use strict";n.d(e,{p:function(){return o},Y:function(){return i}});var r=n(8488),o=function(t){return Boolean(t&&"object"===typeof t&&t.mix&&t.toValue)},i=function(t){return(0,r.C)(t)?t[t.length-1]||0:t}},1560:function(t,e,n){"use strict";n.d(e,{L:function(){return o}});var r=n(10),o=function(){function t(){this.subscriptions=[]}return t.prototype.add=function(t){var e=this;return(0,r.y4)(this.subscriptions,t),function(){return(0,r.cl)(e.subscriptions,t)}},t.prototype.notify=function(t,e,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(var o=0;o<r;o++){var i=this.subscriptions[o];i&&i(t,e,n)}},t.prototype.getSize=function(){return this.subscriptions.length},t.prototype.clear=function(){this.subscriptions.length=0},t}()},6917:function(t,e,n){"use strict";n.d(e,{w:function(){return r}});var r=function(t){return 1e3*t}},6681:function(t,e,n){"use strict";n.d(e,{h:function(){return o}});var r=n(7294);function o(t){var e=(0,r.useRef)(null);return null===e.current&&(e.current=t()),e.current}},3234:function(t,e,n){"use strict";n.d(e,{B:function(){return s}});var r=n(4735),o=n(9296),i=n(1560),a=function(){function t(t){var e,n=this;this.version="6.3.10",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new i.L,this.velocityUpdateSubscribers=new i.L,this.renderSubscribers=new i.L,this.canTrackVelocity=!1,this.updateAndNotify=function(t,e){void 0===e&&(e=!0),n.prev=n.current,n.current=t;var o=(0,r.$B)(),i=o.delta,a=o.timestamp;n.lastUpdated!==a&&(n.timeDelta=i,n.lastUpdated=a,r.ZP.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),e&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return r.ZP.postRender(n.velocityCheck)},this.velocityCheck=function(t){t.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e)))}return t.prototype.onChange=function(t){return this.updateSubscribers.add(t)},t.prototype.clearListeners=function(){this.updateSubscribers.clear()},t.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},t.prototype.attach=function(t){this.passiveEffect=t},t.prototype.set=function(t,e){void 0===e&&(e=!0),e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)},t.prototype.get=function(){return this.current},t.prototype.getPrevious=function(){return this.prev},t.prototype.getVelocity=function(){return this.canTrackVelocity?(0,o.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},t.prototype.start=function(t){var e=this;return this.stop(),new Promise((function(n){e.hasAnimated=!0,e.stopAnimation=t(n)})).then((function(){return e.clearAnimation()}))},t.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},t.prototype.isAnimating=function(){return!!this.stopAnimation},t.prototype.clearAnimation=function(){this.stopAnimation=null},t.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},t}();function s(t){return new a(t)}},4735:function(t,e,n){"use strict";n.d(e,{qY:function(){return p},ZP:function(){return b},iW:function(){return h},$B:function(){return g}});const r=1/60*1e3,o="undefined"!==typeof performance?()=>performance.now():()=>Date.now(),i="undefined"!==typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(o())),r);let a=!0,s=!1,u=!1;const l={delta:0,timestamp:0},c=["read","update","preRender","render","postRender"],d=c.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(t,i=!1,s=!1)=>{const u=s&&o,l=u?e:n;return i&&a.add(t),-1===l.indexOf(t)&&(l.push(t),u&&o&&(r=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),a.delete(t)},process:u=>{if(o)i=!0;else{if(o=!0,[e,n]=[n,e],n.length=0,r=e.length,r)for(let n=0;n<r;n++){const r=e[n];r(u),a.has(r)&&(s.schedule(r),t())}o=!1,i&&(i=!1,s.process(u))}}};return s}((()=>s=!0)),t)),{}),f=c.reduce(((t,e)=>{const n=d[e];return t[e]=(t,e=!1,r=!1)=>(s||y(),n.schedule(t,e,r)),t}),{}),p=c.reduce(((t,e)=>(t[e]=d[e].cancel,t)),{}),h=c.reduce(((t,e)=>(t[e]=()=>d[e].process(l),t)),{}),v=t=>d[t].process(l),m=t=>{s=!1,l.delta=a?r:Math.max(Math.min(t-l.timestamp,40),1),l.timestamp=t,u=!0,c.forEac
1h(v),u=!1,s&&(a=!1,i(m))},y=()=>{s=!0,a=!0,u||i(m)},g=()=>l;var b=f},4710:function(t,e,n){"use strict";n.d(e,{LU:function(){return y},G2:function(){return h},XL:function(){return m},CG:function(){return v},h9:function(){return b},yD:function(){return S},gJ:function(){return g},Z7:function(){return d},X7:function(){return p},Bn:function(){return f},YQ:function(){return s},mZ:function(){return c},Vv:function(){return l},GE:function(){return a}});const r=t=>e=>1-t(1-e),o=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,i=t=>e=>e*e*((t+1)*e-t),a=t=>t,s=(u=2,t=>Math.pow(t,u));var u;const l=r(s),c=o(s),d=t=>1-Math.sin(Math.acos(t)),f=r(d),p=o(f),h=i(1.525),v=r(h),m=o(h),y=(t=>{const e=i(t);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))})(1.525),g=t=>{if(1===t||0===t)return t;const e=t*t;return t<.36363636363636365?7.5625*e:t<.7272727272727273?9.075*e-9.9*t+3.4:t<.9?12.066481994459833*e-19.63545706371191*t+8.898060941828255:10.8*t*t-20.52*t+10.72},b=r(g),S=t=>t<.5?.5*(1-g(1-2*t)):.5*g(2*t-1)+.5},6773:function(t,e,n){"use strict";n.d(e,{u:function(){return r}});const r=(t,e,n)=>Math.min(Math.max(n,t),e)},734:function(t,e,n){"use strict";n.d(e,{e:function(){return r}});const r=t=>"number"===typeof t},2453:function(t,e,n){"use strict";n.d(e,{C:function(){return r}});const r=(t,e,n)=>-n*t+n*e+t},9897:function(t,e,n){"use strict";n.d(e,{z:function(){return o}});const r=(t,e)=>n=>e(t(n)),o=(...t)=>t.reduce(r)},9326:function(t,e,n){"use strict";n.d(e,{Y:function(){return r}});const r=(t,e,n)=>{const r=e-t;return 0===r?1:(n-t)/r}},9296:function(t,e,n){"use strict";function r(t,e){return e?t*(1e3/e):0}n.d(e,{R:function(){return r}})},2960:function(t,e,n){"use strict";n.d(e,{$:function(){return o}});var r=n(8059);const o={test:(0,n(3953).i)("#"),parse:function(t){let e="",n="",r="",o="";return t.length>5?(e=t.substr(1,2),n=t.substr(3,2),r=t.substr(5,2),o=t.substr(7,2)):(e=t.substr(1,1),n=t.substr(2,1),r=t.substr(3,1),o=t.substr(4,1),e+=e,n+=n,r+=r,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:r.m.transform}},4582:function(t,e,n){"use strict";n.d(e,{J:function(){return s}});var r=n(1248),o=n(2969),i=n(6777),a=n(3953);const s={test:(0,a.i)("hsl","hue"),parse:(0,a.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:a=1})=>"hsla("+Math.round(t)+", "+o.aQ.transform((0,i.Nw)(e))+", "+o.aQ.transform((0,i.Nw)(n))+", "+(0,i.Nw)(r.Fq.transform(a))+")"}},7405:function(t,e,n){"use strict";n.d(e,{$:function(){return s}});var r=n(6777),o=n(2960),i=n(4582),a=n(8059);const s={test:t=>a.m.test(t)||o.$.test(t)||i.J.test(t),parse:t=>a.m.test(t)?a.m.parse(t):i.J.test(t)?i.J.parse(t):o.$.parse(t),transform:t=>(0,r.HD)(t)?t:t.hasOwnProperty("red")?a.m.transform(t):i.J.transform(t)}},8059:function(t,e,n){"use strict";n.d(e,{m:function(){return u}});var r=n(1248),o=n(6777),i=n(3953);const a=(0,o.uZ)(0,255),s=Object.assign(Object.assign({},r.Rx),{transform:t=>Math.round(a(t))}),u={test:(0,i.i)("rgb","red"),parse:(0,i.d)("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+s.transform(t)+", "+s.transform(e)+", "+s.transform(n)+", "+(0,o.Nw)(r.Fq.transform(i))+")"}},3953:function(t,e,n){"use strict";n.d(e,{i:function(){return o},d:function(){return i}});var r=n(6777);const o=(t,e)=>n=>Boolean((0,r.HD)(n)&&r.mj.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),i=(t,e,n)=>o=>{if(!(0,r.HD)(o))return o;const[i,a,s,u]=o.match(r.KP);return{[t]:parseFloat(i),[e]:parseFloat(a),[n]:parseFloat(s),alpha:void 0!==u?parseFloat(u):1}}},5738:function(t,e,n){"use strict";n.d(e,{h:function(){return u}});var r=n(8407),o=n(6777);const i=new Set(["brightness","contrast","saturate","opacity"]);function a(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[r]=n.match(o.KP)||[];if(!r)return t;const a=n.replace(r,"");let s=i.has(e)?1:0;return r!==n&&(s*=100),e+"("+s+a+")"}const s=/([a-z-]*)\(.*?\)/g,u=Object.assign(Object.assign({},r.P),{getAnimatableNone:t=>{const e=t.match(s);return e?e.map(a).join(" "):t}})},8407:function(t,e,n){"use strict";n.d(e,{P:function(){return f}});var r=n(7405),o=n(1248),i=n(6777);const a="${c}",s="${n}";function u(t){"number"===typeof t&&(t=`${t}`);const e=[];let n=0;const u=t.match(i.dA);u&&(n=u.length,t=t.replace(i.dA,a),e.push(...u.map(r.$.parse)));const l=t.match(i.KP);return l&&(t=t.replace(i.KP,s),e.push(...l.map(o.Rx.parse))),{values:e,numColors:n,tokenised:t}}function l(t){return u(t).values}function c(t){const{values:e,numColors:n,tokenised:o}=u(t),l=e.length;return t=>{let e=o;for(let o=0;o<l;o++)e=e.replace(o<n?a:s,o<n?r.$.transform(t[o]):(0,i.Nw)(t[o]));return e}}const d=t=>"number"===typeof t?0:t;const f={test:function(t){var e,n,r,o;return isNaN(t)&&(0,i.HD)(t)&&(null!==(n=null===(e=t.match(i.KP))||void 0===e?void 0:e.length)&&void 0!==n?n:0)+(null!==(o=null===(r=t.match(i.dA))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:l,createTransformer:c,getAnimatableNone:function(t){const e=l(t);return c(t)(e.map(d))}}},1248:function(t,e,n){"use strict";n.d(e,{Fq:function(){return i},Rx:function(){return o},bA:function(){return a}});var r=n(6777);const o={test:t=>"number"===typeof t,parse:parseFloat,transform:t=>t},i=Object.assign(Object.assign({},o),{transform:(0,r.uZ)(0,1)}),a=Object.assign(Object.assign({},o),{default:1})},2969:function(t,e,n){"use strict";n.d(e,{RW:function(){return i},aQ:function(){return a},$C:function(){return c},px:function(){return s},vh:function(){return u},vw:function(){return l}});var r=n(6777);const o=t=>({test:e=>(0,r.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),i=o("deg"),a=o("%"),s=o("px"),u=o("vh"),l=o("vw"),c=Object.assign(Object.assign({},a),{parse:t=>a.parse(t)/100,transform:t=>a.transform(100*t)})},6777:function(t,e,n){"use strict";n.d(e,{uZ:function(){return r},dA:function(){return a},KP:function(){return i},HD:function(){return u},Nw:function(){return o},mj:function(){return s}});const r=(t,e)=>n=>Math.max(Math.min(n,e),t),o=t=>
1t%1?Number(t.toFixed(5)):t,i=/(-)?([\d]*\.?[\d])+/g,a=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,s=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function u(t){return"string"===typeof t}}},function(t){var e=function(e){return t(t.s=e)};t.O(0,[774,179],(function(){return e(6363),e(387)}));var n=t.O();_N_E=n}]);

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.