PageSourceSearch

https://goldsand.fi/assets/app-cqJdu5PJ.js

js goldsand.fi collected 2026-10-07 23:06:52 UTC 372,934 bytes, 18 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/client-DRJOb1Hk.js","assets/react-BRNZa73l.js","assets/Home-DZ3Vmjlx.js","assets/articles-B3a2B26P.js","assets/faq-Cz8T4JWa.js","assets/Waitlist-DyaHnt7p.js","assets/About-Bz9SR0OT.js","assets/members-CrMehlv7.js","assets/CalloutBar-DtGPotR9.js","assets/Faq-BYmW6BrF.js","assets/ReturnsArticle-DEhZa_8m.js","assets/ArticleVisuals-CQXcJOIt.js","assets/RiskArticle-DHS0dujS.js","assets/Privacy-B2lspgF_.js","assets/LegalDoc-B9mKkeFj.js","assets/Terms-3PtgR9JN.js","assets/Shariah-BU1KuoVs.js"])))=>i.map(i=>d[i]);
2import{a as e,i as t,n,o as r,r as i,t as a}from"./react-BRNZa73l.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var o=n((e=>{var t=a(),n=Symbol.for(`react.element`),r=Symbol.for(`react.fragment`),i=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var a,c={},l=null,u=null;for(a in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)i.call(t,a)&&!s.hasOwnProperty(a)&&(c[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps,t)c[a]===void 0&&(c[a]=t[a]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:o.current}}e.Fragment=r,e.jsx=c,e.jsxs=c})),s=n(((e,t)=>{t.exports=o()})),c=n(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),l=n(((e,t)=>{var n=c();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),u=n(((e,t)=>{t.exports=l()()})),d=n(((e,t)=>{var n=typeof Element<`u`,r=typeof Map==`function`,i=typeof Set==`function`,a=typeof ArrayBuffer==`function`&&!!ArrayBuffer.isView;function o(e,t){if(e===t)return!0;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(e.constructor!==t.constructor)return!1;var s,c,l;if(Array.isArray(e)){if(s=e.length,s!=t.length)return!1;for(c=s;c--!==0;)if(!o(e[c],t[c]))return!1;return!0}var u;if(r&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!t.has(c.value[0]))return!1;for(u=e.entries();!(c=u.next()).done;)if(!o(c.value[1],t.get(c.value[0])))return!1;return!0}if(i&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!t.has(c.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(s=e.length,s!=t.length)return!1;for(c=s;c--!==0;)if(e[c]!==t[c])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf==`function`&&typeof t.valueOf==`function`)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString==`function`&&typeof t.toString==`function`)return e.toString()===t.toString();if(l=Object.keys(e),s=l.length,s!==Object.keys(t).length)return!1;for(c=s;c--!==0;)if(!Object.prototype.hasOwnProperty.call(t,l[c]))return!1;if(n&&e instanceof Element)return!1;for(c=s;c--!==0;)if(!((l[c]===`_owner`||l[c]===`__v`||l[c]===`__o`)&&e.$$typeof)&&!o(e[l[c]],t[l[c]]))return!1;return!0}return e!==e&&t!==t}t.exports=function(e,t){try{return o(e,t)}catch(e){if((e.message||``).match(/stack|recursion/i))return console.warn(`react-fast-compare cannot handle circular refs`),!1;throw e}}})),f=n(((e,t)=>
2{t.exports=function(e,t,n,r,i,a,o,s){if(!e){var c;if(t===void 0)c=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var l=[n,r,i,a,o,s],u=0;c=Error(t.replace(/%s/g,function(){return l[u++]})),c.name=`Invariant Violation`}throw c.framesToPop=1,c}}})),p=n(((e,t)=>{t.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<a.length;c++){var l=a[c];if(!s(l))return!1;var u=e[l],d=t[l];if(i=n?n.call(r,u,d,l):void 0,i===!1||i===void 0&&u!==d)return!1}return!0}})),m=s(),h=r(a()),g=r(u()),_=r(d()),v=r(f()),y=r(p());function b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}function x(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,S(e,t)}function S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(e,t)}function C(e,t){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(i[n]=e[n]);return i}var w={BASE:`base`,BODY:`body`,HEAD:`head`,HTML:`html`,LINK:`link`,META:`meta`,NOSCRIPT:`noscript`,SCRIPT:`script`,STYLE:`style`,TITLE:`title`,FRAGMENT:`Symbol(react.fragment)`},T={rel:[`amphtml`,`canonical`,`alternate`]},E={type:[`application/ld+json`]},ee={charset:``,name:[`robots`,`description`],property:[`og:type`,`og:title`,`og:url`,`og:image`,`og:image:alt`,`og:description`,`twitter:url`,`twitter:title`,`twitter:description`,`twitter:image`,`twitter:image:alt`,`twitter:card`,`twitter:site`]},te=Object.keys(w).map(function(e){return w[e]}),D={accesskey:`accessKey`,charset:`charSet`,class:`className`,contenteditable:`contentEditable`,contextmenu:`contextMenu`,"http-equiv":`httpEquiv`,itemprop:`itemProp`,tabindex:`tabIndex`},ne=Object.keys(D).reduce(function(e,t){return e[D[t]]=t,e},{}),re=function(e,t){for(var n=e.length-1;n>=0;--n){var r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},ie=function(e){var t=re(e,w.TITLE),n=re(e,`titleTemplate`);if(Array.isArray(t)&&(t=t.join(``)),n&&t)return n.replace(/%s/g,function(){return t});var r=re(e,`defaultTitle`);return t||r||void 0},ae=function(e){return re(e,`onChangeClientState`)||function(){}},O=function(e,t){return t.filter(function(t){return t[e]!==void 0}).map(function(t){return t[e]}).reduce(function(e,t){return b({},e,t)},{})},oe=function(e,t){return t.filter(function(e){return e[w.BASE]!==void 0}).map(function(e){return e[w.BASE]}).reverse().reduce(function(t,n){if(!t.length)for(var r=Object.keys(n),i=0;i<r.length;i+=1){var a=r[i].toLowerCase();if(e.indexOf(a)!==-1&&n[a])return t.concat(n)}return t},[])},se=function(e,t,n){var r={};return n.filter(function(t){return!!Array.isArray(t[e])||(t[e]!==void 0&&console&&typeof console.warn==`function`&&console.warn(`Helmet: `+e+` should be of type "Array". Instead found type "`+typeof t[e]+`"`),!1)}).map(function(t){return t[e]}).reverse().reduce(function(e,n){var i={};n.filter(function(e){for(var n,a=Object.keys(e),o=0;o<a.length;o+=1){var s=a[o],c=s.toLowerCase();t.indexOf(c)===-1||n===`rel`&&e[n].toLowerCase()===`canonical`||c===`rel`&&e[c].toLowerCase()===`stylesheet`||(n=c),t.indexOf(s)===-1||s!==`innerHTML`&&s!==`cssText`&&s!==`itemprop`||(n=s)}if(!n||!e[n])return!1;var l=e[n].toLowerCase();return r[n]||(r[n]={}),i[n]||(i[n]={}),!r[n][l]&&(i[n][l]=!0,!0)}).reverse().forEach(function(t){return e.push(t)});for(var a=Object.keys(i),o=0;o<a.length;o+=1){var s=a[o];r[s]=b({},r[s],i[s])}return e},[]).reverse()},ce=function(e,t){if(Array.isArray(e)&&e.length){for(var n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},k=function(e){return Array.isArray(e)?e.join(``):e},le=function(e,t){return Array.isArray(e)?e.reduce(function(e,n){return function(e,t){for(var n=Object.keys(e),r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1}(n,t)?e.priority.push(n):e.default.push(n),e},{priority:[],default:[]}):{default:e}},ue=function(e,t){var n;return b({},e,((n={})[t]=void 0,n))},de=[w.NOSCRIPT,w.SCRIPT,w.STYLE],fe=function(e,t){return t===void 0&&(t=!0),!1===t?String(e):String(e).replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#x27;`)},pe=function(e){return Object.keys(e).reduce(function(t,n){var r=e[n]===void 0?``+n:n+`="`+e[n]+`"`;return t?t+` `+r:r},``)},me=function(e,t){return t===void 0&&(t={}),Object.keys(e).reduce(function(t,n){return t[D[n]||n]=e[n],t},t)},he=function(e,t){return t.map(function(t,n){var r,i=((r={key:n})[`data-rh`]=!0,r);return Object.keys(t).forEach(function(e){var n=D[e]||e;n===`innerHTML`||n===`cssText`?i.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:i[n]=t[e]}),h.createElement(e,i)})},A=function(e,t,n){switch(e){case w.TITLE:return{toComponent:function(){return n=t.titleAttributes,(r={key:e=t.title})[`data-rh`]=!0,i=me(n,r),[h.createElement(w.TITLE,i,e)];var e,n,r,i},toString:function(){return function(e,t,n,r){var i=pe(n),a=k(t);return i?`<`+e+` data-rh="true" `+i+`>`+fe(a,r)+`</`+e+`>`:`<`+e+` data-rh="true">`+fe(a,r)+`</`+e+`>`}(e,t.title,t.titleAttributes,n)}};case`bodyAttributes`:case`htmlAttributes`:return{toComponent:function(){return me(t)},toString:function(){return pe(t)}};default:return{toComponent:function(){return he(e,t)},toString:function(){return function(e,t,n){return t.reduce(function(t,r){var i=Object.keys(r).filter(function(e){return!(e===`innerHTML`||e===`cssText`)}).reduce(function(e,t){var i=r[t]===void 0?t:t+`="`+fe(r[t],n)+`"`;return e?e+` `+i:i},``),a=r.innerHTML||r.cssText||``,o=de.indexOf(e)===-1;return t+`<`+e+` data-rh="true" `+i+(o?`/>`:`>`+a+`</`+e+`>`)},``)}(e,t,n)}}}},ge=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,i=e.htmlAttributes,a=e.noscriptTags,o=e.styleTags,s=e.title,c=s===void 0?``:s,l=e.titleAttributes,u=e.linkTags,d=e.metaTags,f=e.scriptTags,p={toComponent:function(){},toString:function(){return``}};if(e.prioritizeSeoTags){var m=function(e){var t=e.linkTags,n=e.scriptTags,r=e.encode,i=le(e.metaTags,ee),a=le(t,T),o=le(n,E);return{priorityMethods:{toComponent:function(){return[].concat(he(w.META,i.priority),he(w.LINK,a.priority),he(w.SCRIPT,o.priority))},toString:function(){return A(w.META,i.priority,r)+` `+A(w.LINK,a.priority,r)+` `+A(w.SCRIPT,o.priority,r)}},metaTags:i.default,linkTags:a.default,scriptTags:o.default}}(e);p=m.priorityMethods,u=m.linkTags,d=m.metaTags,f=m.scriptTags}return{priority:p,base:A(w.BASE,t,r),bodyAttributes:A(`bodyAttributes`,n,r),htmlAttributes:A(`htmlAttributes`,i,r),link:A(w.LINK,u,r),meta:A(w.META,d,r),noscript:A(w.NOSCRIPT,a,r),script:A(w.SCRIPT,f,r),style:A(w.STYLE,o,r),title:A(w.TITLE,{title:c,titleAttributes:l},r)}},_e=[],ve=function(e,t){var n=this;t===void 0&&(t=typeof document<`u`),this.instances=[],this.value={setHelmet:function(e){n.context.helmet=e},helmetInstances:{get:function(){return n.canUseDOM?_e:n.instances},add:function(e){(n.canUseDOM?_e:n.instances).push(e)},remove:function(e){var t=(n.canUseDOM?_e:n.instances).indexOf(e);(n.canUseDOM?_e:n.instances).splice(t,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=ge({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:``,titleAttributes:{}}))},ye=h.createContext({}),be=g.default.shape({setHelmet:g.default.func,helmetInstances:g.default.shape({get:g.default.func,add:g.default.func,remove:g.default.func})}),xe=typeof document<`u`,Se=function(e){function t(n){var r;return(r=e.call(this,n)||this).helmetData=new ve(r.props.context,t.canUseDOM),r}return x(t,e),t.prototype.render=function(){return h.createElement(ye.Provider,{value:this.helmetData.value},this.props.children)},t}(h.Component);
2Se.canUseDOM=xe,Se.propTypes={context:g.default.shape({helmet:g.default.shape()}),children:g.default.node.isRequired},Se.defaultProps={context:{}},Se.displayName=`HelmetProvider`;var Ce=function(e,t){var n,r=document.head||document.querySelector(w.HEAD),i=r.querySelectorAll(e+`[data-rh]`),a=[].slice.call(i),o=[];return t&&t.length&&t.forEach(function(t){var r=document.createElement(e);for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(i===`innerHTML`?r.innerHTML=t.innerHTML:i===`cssText`?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(i,t[i]===void 0?``:t[i]));r.setAttribute(`data-rh`,`true`),a.some(function(e,t){return n=t,r.isEqualNode(e)})?a.splice(n,1):o.push(r)}),a.forEach(function(e){return e.parentNode.removeChild(e)}),o.forEach(function(e){return r.appendChild(e)}),{oldTags:a,newTags:o}},we=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(`data-rh`),i=r?r.split(`,`):[],a=[].concat(i),o=Object.keys(t),s=0;s<o.length;s+=1){var c=o[s],l=t[c]||``;n.getAttribute(c)!==l&&n.setAttribute(c,l),i.indexOf(c)===-1&&i.push(c);var u=a.indexOf(c);u!==-1&&a.splice(u,1)}for(var d=a.length-1;d>=0;--d)n.removeAttribute(a[d]);i.length===a.length?n.removeAttribute(`data-rh`):n.getAttribute(`data-rh`)!==o.join(`,`)&&n.setAttribute(`data-rh`,o.join(`,`))}},Te=function(e,t){var n=e.baseTag,r=e.htmlAttributes,i=e.linkTags,a=e.metaTags,o=e.noscriptTags,s=e.onChangeClientState,c=e.scriptTags,l=e.styleTags,u=e.title,d=e.titleAttributes;we(w.BODY,e.bodyAttributes),we(w.HTML,r),function(e,t){e!==void 0&&document.title!==e&&(document.title=k(e)),we(w.TITLE,t)}(u,d);var f={baseTag:Ce(w.BASE,n),linkTags:Ce(w.LINK,i),metaTags:Ce(w.META,a),noscriptTags:Ce(w.NOSCRIPT,o),scriptTags:Ce(w.SCRIPT,c),styleTags:Ce(w.STYLE,l)},p={},m={};Object.keys(f).forEach(function(e){var t=f[e],n=t.newTags,r=t.oldTags;n.length&&(p[e]=n),r.length&&(m[e]=f[e].oldTags)}),t&&t(),s(e,p,m)},Ee=null,De=function(e){function t(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).rendered=!1,t}x(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!(0,y.default)(e,this.props)},n.componentDidUpdate=function(){this.emitChange()},n.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},n.emitChange=function(){var e,t,n=this.props.context,r=n.setHelmet,i=null,a=(e=n.helmetInstances.get().map(function(e){var t=b({},e.props);return delete t.context,t}),{baseTag:oe([`href`],e),bodyAttributes:O(`bodyAttributes`,e),defer:re(e,`defer`),encode:re(e,`encodeSpecialCharacters`),htmlAttributes:O(`htmlAttributes`,e),linkTags:se(w.LINK,[`rel`,`href`],e),metaTags:se(w.META,[`name`,`charset`,`http-equiv`,`property`,`itemprop`],e),noscriptTags:se(w.NOSCRIPT,[`innerHTML`],e),onChangeClientState:ae(e),scriptTags:se(w.SCRIPT,[`src`,`innerHTML`],e),styleTags:se(w.STYLE,[`cssText`],e),title:ie(e),titleAttributes:O(`titleAttributes`,e),prioritizeSeoTags:ce(e,`prioritizeSeoTags`)});Se.canUseDOM?(t=a,Ee&&cancelAnimationFrame(Ee),t.defer?Ee=requestAnimationFrame(function(){Te(t,function(){Ee=null})}):(Te(t),Ee=null)):ge&&(i=ge(a)),r(i)},n.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},n.render=function(){return this.init(),null},t}(h.Component);De.propTypes={context:be.isRequired},De.displayName=`HelmetDispatcher`;var Oe=[`children`],ke=[`children`],Ae=function(e){function t(){return e.apply(this,arguments)||this}x(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!(0,_.default)(ue(this.props,`helmetData`),ue(e,`helmetData`))},n.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case w.SCRIPT:case w.NOSCRIPT:return{innerHTML:t};case w.STYLE:return{cssText:t};default:throw Error(`<`+e.type+` /> elements are self-closing and can not contain children. Refer to our API for more information.`)}},n.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return b({},r,((t={})[n.type]=[].concat(r[n.type]||[],[b({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},n.mapObjectTypeChildren=function(e){var t,n,r=e.child,i=e.newProps,a=e.newChildProps,o=e.nestedChildren;switch(r.type){case w.TITLE:return b({},i,((t={})[r.type]=o,t.titleAttributes=b({},a),t));case w.BODY:return b({},i,{bodyAttributes:b({},a)});case w.HTML:return b({},i,{htmlAttributes:b({},a)});default:return b({},i,((n={})[r.type]=b({},a),n))}},n.mapArrayTypeChildrenToProps=function(e,t){var n=b({},t);return Object.keys(e).forEach(function(t){var r;n=b({},n,((r={})[t]=e[t],r))}),n}
2,n.warnOnInvalidChildren=function(e,t){return(0,v.default)(te.some(function(t){return e.type===t}),typeof e.type==`function`?`You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.`:`Only elements types `+te.join(`, `)+` are allowed. Helmet does not support rendering <`+e.type+`> elements. Refer to our API for more information.`),(0,v.default)(!t||typeof t==`string`||Array.isArray(t)&&!t.some(function(e){return typeof e!=`string`}),`Helmet expects a string as a child of <`+e.type+`>. Did you forget to wrap your children in braces? ( <`+e.type+">{``}</"+e.type+`> ) Refer to our API for more information.`),!0},n.mapChildrenToProps=function(e,t){var n=this,r={};return h.Children.forEach(e,function(e){if(e&&e.props){var i=e.props,a=i.children,o=C(i,Oe),s=Object.keys(o).reduce(function(e,t){return e[ne[t]||t]=o[t],e},{}),c=e.type;switch(typeof c==`symbol`?c=c.toString():n.warnOnInvalidChildren(e,a),c){case w.FRAGMENT:t=n.mapChildrenToProps(a,t);break;case w.LINK:case w.META:case w.NOSCRIPT:case w.SCRIPT:case w.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:s,nestedChildren:a});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:a})}}}),this.mapArrayTypeChildrenToProps(r,t)},n.render=function(){var e=this.props,t=e.children,n=C(e,ke),r=b({},n),i=n.helmetData;return t&&(r=this.mapChildrenToProps(t,r)),!i||i instanceof ve||(i=new ve(i.context,i.instances)),i?h.createElement(De,b({},r,{context:i.value,helmetData:void 0})):h.createElement(ye.Consumer,null,function(e){return h.createElement(De,b({},r,{context:e}))})},t}(h.Component);Ae.propTypes={base:g.default.object,bodyAttributes:g.default.object,children:g.default.oneOfType([g.default.arrayOf(g.default.node),g.default.node]),defaultTitle:g.default.string,defer:g.default.bool,encodeSpecialCharacters:g.default.bool,htmlAttributes:g.default.object,link:g.default.arrayOf(g.default.object),meta:g.default.arrayOf(g.default.object),noscript:g.default.arrayOf(g.default.object),onChangeClientState:g.default.func,script:g.default.arrayOf(g.default.object),style:g.default.arrayOf(g.default.object),title:g.default.string,titleAttributes:g.default.object,titleTemplate:g.default.string,prioritizeSeoTags:g.default.bool,helmetData:g.default.object},Ae.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},Ae.displayName=`Helmet`;var je=n((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=typeof setTimeout==`function`?setTimeout:null,_=typeof clearTimeout==`function`?clearTimeout:null,v=typeof setImmediate<`u`?setImmediate:null;typeof navigator<`u`&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function b(e){if(h=!1,y(e),!m)if(n(c)!==null)m=!0,ie(x);else{var t=n(l);t!==null&&ae(b,t.startTime-e)}}function x(t,i){m=!1,h&&(h=!1,_(w),w=-1),p=!0;var a=f;try{for(y(i),d=n(c);d!==null&&(!(d.expirationTime>i)||t&&!ee());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=i);i=e.unstable_now(),typeof s==`function`?d.callback=s:d===n(c)&&r(c),y(i)}else r(c);d=n(c)}if(d!==null)var u=!0;else{var g=n(l);g!==null&&ae(b,g.startTime-i),u=!1}return u}finally{d=null,f=a,p=!1}}var S=!1,C=null,w=-1,T=5,E=-1;function ee(){return!(e.unstable_now()-E<T)}function te(){if(C!==null){var t=e.unstable_now();E=t;var n=!0;try{n=C(!0,t)}finally{n?D():(S=!1,C=null)}}else S=!1}var D;if(typeof v==`function`)D=function(){v(te)};else if(typeof MessageChannel<`u`){var ne=new MessageChannel,re=ne.port2;ne.port1.onmessage=te,D=function(){re.postMessage(null)}}else D=function(){g(te,0)};function ie(e){C=e,S||(S=!0,D())}function ae(t,n){w=g(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,ie(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):T=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(_(w),w=-1):h=!0,ae(b,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,ie(x))),r},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Me=n(((e,t)=>{t.exports=je()})),Ne=n((e=>{var t=a(),n=Me();function r(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n]);return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var i=new Set,o={};function s(e,t){c(e,t),c(e+`Capture`,t)}function c(e,t){for(o[e]=t,e=0;e<t.length;e++)i.add(t[e])}var l=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),u=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},p={};function m(e){return u.call(p,e)?!0:u.call(f,e)?!1:d.test(e)?p[e]=!0:(f[e]=!0,!1)}function h(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case`function`:case`symbol`:return!0;case`boolean`:return r?!1:n===null?(e=e.toLowerCase().slice(0,5),e!==`data-`&&e!==`aria-`):!n.acceptsBooleans;default:return!1}}function g(e,t,n,r){if(t==null||h(e,t,n,r))return!0;
vendor: 23,564 bytes, lines 2-6
2if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function _(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var v={};`children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style`.split(` `).forEach(function(e){v[e]=new _(e,0,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0];v[t]=new _(t,1,!1,e[1],null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){v[e]=new _(e,2,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){v[e]=new _(e,2,!1,e,null,!1,!1)}),`allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope`.split(` `).forEach(function(e){v[e]=new _(e,3,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){v[e]=new _(e,3,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){v[e]=new _(e,4,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){v[e]=new _(e,6,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){v[e]=new _(e,5,!1,e.toLowerCase(),null,!1,!1)});var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}`accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height`.split(` `).forEach(function(e){var t=e.replace(y,b);v[t]=new _(t,1,!1,e,null,!1,!1)}),`xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type`.split(` `).forEach(function(e){var t=e.replace(y,b);v[t]=new _(t,1,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(function(e){var t=e.replace(y,b);v[t]=new _(t,1,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){v[e]=new _(e,1,!1,e.toLowerCase(),null,!1,!1)}),v.xlinkHref=new _(`xlinkHref`,1,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){v[e]=new _(e,1,!1,e.toLowerCase(),null,!0,!0)});function x(e,t,n,r){var i=v.hasOwnProperty(t)?v[t]:null;(i===null?r||!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`:i.type!==0)&&(g(t,n,i,r)&&(n=null),r||i===null?m(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,``+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type!==3&&``:n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&!0===n?``:``+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var S=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,C=Symbol.for(`react.element`),w=Symbol.for(`react.portal`),T=Symbol.for(`react.fragment`),E=Symbol.for(`react.strict_mode`),ee=Symbol.for(`react.profiler`),te=Symbol.for(`react.provider`),D=Symbol.for(`react.context`),ne=Symbol.for(`react.forward_ref`),re=Symbol.for(`react.suspense`),ie=Symbol.for(`react.suspense_list`),ae=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),oe=Symbol.for(`react.offscreen`),se=Symbol.iterator;function ce(e){return typeof e!=`object`||!e?null:(e=se&&e[se]||e[`@@iterator`],typeof e==`function`?e:null)}var k=Object.assign,le;function ue(e){if(le===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);le=t&&t[1]||``}return`
3`+le+e}var de=!1;function fe(e,t){if(!e||de)return``;de=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&typeof t.stack==`string`){for(var i=t.stack.split(`
4`),a=r.stack.split(`
5`),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s]){var c=`
6`+i[o].replace(` at new `,` at `);return e.displayName&&c.includes(`<anonymous>`)&&(c=c.replace(`<anonymous>`,e.displayName)),c}while(1<=o&&0<=s);break}}}finally{de=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?ue(e):``}function pe(e){switch(e.tag){case 5:return ue(e.type);case 16:return ue(`Lazy`);case 13:return ue(`Suspense`);case 19:return ue(`SuspenseList`);case 0:case 2:case 15:return e=fe(e.type,!1),e;case 11:return e=fe(e.type.render,!1),e;case 1:return e=fe(e.type,!0),e;default:return``}}function me(e){if(e==null)return null;if(typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case T:return`Fragment`;case w:return`Portal`;case ee:return`Profiler`;case E:return`StrictMode`;case re:return`Suspense`;case ie:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case D:return(e.displayName||`Context`)+`.Consumer`;case te:return(e._context.displayName||`Context`)+`.Provider`;case ne:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ae:return t=e.displayName||null,t===null?me(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return me(e(t))}catch{}}return null}function he(e){var t=e.type;switch(e.tag){case 24:return`Cache`;case 9:return(t.displayName||`Context`)+`.Consumer`;case 10:return(t._context.displayName||`Context`)+`.Provider`;case 18:return`DehydratedFragment`;case 11:return e=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return me(t);case 8:return t===E?`StrictMode`:`Mode`;case 22:return`Offscreen`;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t}return null}function A(e){switch(typeof e){case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function ge(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function _e(e){var t=ge(e)?`checked`:`value`,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=``+e[t];if(!e.hasOwnProperty(t)&&n!==void 0&&typeof n.get==`function`&&typeof n.set==`function`){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ve(e){e._valueTracker||=_e(e)}function ye(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=ge(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function be(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function xe(e,t){var n=t.checked;return k({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Se(e,t){var n=t.defaultValue==null?``:t.defaultValue,r=t.checked==null?t.defaultChecked:t.checked;n=A(t.value==null?n:t.value),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===`checkbox`||t.type===`radio`?t.checked!=null:t.value!=null}}function Ce(e,t){t=t.checked,t!=null&&x(e,`checked`,t,!1)}function we(e,t){Ce(e,t);var n=A(t.value),r=t.type;if(n!=null)r===`number`?(n===0&&e.value===``||e.value!=n)&&(e.value=``+n):e.value!==``+n&&(e.value=``+n);else if(r===`submit`||r===`reset`){e.removeAttribute(`value`);return}t.hasOwnProperty(`value`)?Ee(e,t.type,n):t.hasOwnProperty(`defaultValue`)&&Ee(e,t.type,A(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Te(e,t,n){if(t.hasOwnProperty(`value`)||t.hasOwnProperty(`defaultValue`)){var r=t.type;if(!(r!==`submit`&&r!==`reset`||t.value!==void 0&&t.value!==null))return;t=``+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==``&&(e.name=``),e.defaultChecked=!!e._wrapperState.initialChecked,n!==``&&(e.name=n)}function Ee(e,t,n){(t!==`number`||be(e.ownerDocument)!==e)&&(n==null?e.defaultValue=``+e._wrapperState.initialValue:e.defaultValue!==``+n&&(e.defaultValue=``+n))}var De=Array.isArray;function Oe(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+A(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function ke(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(r(91));return k({},t,{value:void 0,defaultValue:void 0,children:``+e._wrapperState.initialValue})}function Ae(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(r(92));if(De(n)){if(1<n.length)throw Error(r(93));n=n[0]}t=n}t??=``,n=t}e._wrapperState={initialValue:A(n)}}function je(e,t){var n=A(t.value),r=A(t.defaultValue);n!=null&&(n=``+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=``+r)}function Ne(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==``&&t!==null&&(e.value=t)}function Pe(e){switch(e){case`svg`:return`http://www.w3.org/2000/svg`;case`math`:return`http://www.w3.org/1998/Math/MathML`;default:return`http://www.w3.org/1999/xhtml`}}function Fe(e,t){return e==null||e===`http://www.w3.org/1999/xhtml`?Pe(t):e===`http://www.w3.org/2000/svg`&&t===`foreignObject`?`http://www.w3.org/1999/xhtml`:e}var j,M=function(e){return typeof MSApp<`u`&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==`http://www.w3.org/2000/svg`||`innerHTML`in e)e.innerHTML=t;else{for(j||=document.createElement(`div`),j.innerHTML=`<svg>`+t.valueOf().toString()+`</svg>`,t=j.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ie(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Le={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},N=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(Le).forEach(function(e){N.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Le[t]=Le[e]})});function Re(e,t,n){return t==null||typeof t==`boolean`||t===``?``:n||typeof t!=`number`||t===0||Le.hasOwnProperty(e)&&Le[e]?(``+t).trim():t+`px`}function ze(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=n.indexOf(`--`)===0,i=Re(n,t[n],r);n===`float`&&(n=`cssFloat`),r?e.setProperty(n,i):e[n]=i}}var Be=k({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ve(e,t){if(t){if(Be[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(r(60));if(typeof t.dangerouslySetInnerHTML!=`object`||!(`__html`in t.dangerouslySetInnerHTML))throw Error(r(61))}if(t.style!=null&&typeof t.style!=`object`)throw Error(r(62))}}function He(e,t){if(e.indexOf(`-`)===-1)return typeof t.is==`string`;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Ue=null;function We(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var P=null,Ge=null,Ke=null;function qe(e){if(e=Gi(e)){if(typeof P!=`function`)throw Error(r(280));var t=e.stateNode;t&&(t=qi(t),P(e.stateNode,e.type,t))}}function Je(e){Ge?Ke?Ke.push(e):Ke=[e]:Ge=e}function Ye(){if(Ge){var e=Ge,t=Ke;if(Ke=Ge=null,qe(e),t)for(e=0;e<t.length;e++)qe(t[e])}}function Xe(e,t){return e(t)}function Ze(){}var Qe=!1;function $e(e,t,n){if(Qe)return e(t,n);Qe=!0;try{return Xe(e,t,n)}finally{Qe=!1,(Ge!==null||Ke!==null)&&(Ze(),Ye())}}function et(e,t){var n=e.stateNode;if(n===null)return null;var i=qi(n);if(i===null)return null;n=i[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(i=!i.disabled)||(e=e.type,i=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!i;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(r(231,t,typeof n));return n}var tt=!1;if(l)try{var nt={};Object.defineProperty(nt,"passive",{get:function(){tt=!0}}),window.addEventListener(`test`,nt,nt),window.removeEventListener(`test`,nt,nt)}catch{tt=!1}function rt(e,t,n,r,i,a,o,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var it=!1,at=null,ot=!1,st=null,ct={onError:function(e){it=!0,at=e}};function lt(e,t,n,r,i,a,o,s,c){it=!1,at=null,rt.apply(ct,arguments)}function ut(e,t,n,i,a,o,s,c,l){if(lt.apply(this,arguments),it){if(it){var u=at;it=!1,at=null}else throw Error(r(198));ot||(ot=!0,st=u)}}function dt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ft(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function pt(e){if(dt(e)!==e)throw Error(r(188))}function mt(e){var t=e.alternate;if(!t){if(t=dt(e),t===null)throw Error(r(188));return t===e?e:null}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return pt(a),e;if(o===i)return pt(a),t;o=o.sibling}throw Error(r(188))}if(n.return!==i.return)n=a,i=o;else{for(var s=!1,c=a.child;c;){if(c===n){s=!0,n=a,i=o;break}if(c===i){s=!0,i=a,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,i=a;break}if(c===i){s=!0,i=o,n=a;break}c=c.sibling}if(!s)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function ht(e){return e=mt(e),e===null?null:gt(e)}function gt(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=gt(e);if(t!==null)return t;e=e.sibling}return null}var _t=n.unstable_scheduleCallback,vt=n.unstable_cancelCallback,yt=n.unstable_shouldYield,bt=n.unstable_requestPaint,F=n.unstable_now,xt=n.unstable_getCurrentPriorityLevel,St=n.unstable_ImmediatePriority,Ct=n.unstable_UserBlockingPriority,wt=n.unstable_NormalPriority,Tt=n.unstable_LowPriority,Et=n.unstable_IdlePriority,Dt=null,Ot=null;function kt(e){if(Ot&&typeof Ot.onCommitFiberRoot==`function`)try{Ot.onCommitFiberRoot(Dt,e,void 0,(e.current.flags&128)==128)}catch{}}var At=Math.clz32?Math.clz32:Nt,jt=Math.log,Mt=Math.LN2;function Nt(e){return e>>>=0,e===0?32:31-(jt(e)/Mt|0)|0}var Pt=64,Ft=4194304;function It(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Lt(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s===0?(a&=o,a!==0&&(r=It(a))):r=It(s)}else o=n&~i,o===0?a!==0&&(r=It(a)):r=It(o);if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===16&&a&4194240))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-At(t),i=1<<n,r|=e[n],t&=~i;return r}function Rt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function zt(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-At(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Rt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}}function Bt(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function Vt(){var e=Pt;return Pt<<=1,!(Pt&4194240)&&(Pt=64),e}function Ht(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ut(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-At(t),e[t]=n}function Wt(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-At(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function Gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-At(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var I=0;function Kt(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var qt,Jt,Yt,Xt,Zt,Qt=!1,$t=[],en=null,tn=null,nn=null,rn=new Map,an=new Map,on=[],sn=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit`.split(` `);function cn(e,t){switch(e){case`focusin`:case`focusout`:en=null;break;case`dragenter`:case`dragleave`:tn=null;break;case`mouseover`:case`mouseout`:nn=null;break;case`pointerover`:case`pointerout`:rn.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:an.delete(t.pointerId)}}function ln(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Gi(t),t!==null&&Jt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function un(e,t,n,r,i){switch(t){case`focusin`:return en=ln(en,e,t,n,r,i),!0;case`dragenter`:return tn=ln(tn,e,t,n,r,i),!0;case`mouseover`:return nn=ln(nn,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return rn.set(a,ln(rn.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,an.set(a,ln(an.get(a)||null,e,t,n,r,i)),!0}return!1}function dn(e){var t=Wi(e.target);if(t!==null){var n=dt(t);if(n!==null){if(t=n.tag,t===13){if(t=ft(n),t!==null){e.blockedOn=t,Zt(e.priority,function(){Yt(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function fn(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Cn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ue=r,n.target.dispatchEvent(r),Ue=null}else return t=Gi(n),t!==null&&Jt(t),e.blockedOn=n,!1;t.shift()}return!0}function pn(e,t,n){fn(e)&&n.delete(t)}function mn(){Qt=!1,en!==null&&fn(en)&&(en=null),tn!==null&&fn(tn)&&(tn=null),nn!==null&&fn(nn)&&(nn=null),rn.forEach(pn),an.forEach(pn)}function hn(e,t){e.blockedOn===t&&(e.blockedOn=null,Qt||(Qt=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,mn)))}function gn(e){function t(t){return hn(t,e)}if(0<$t.length){hn($t[0],e);for(var n=1;n<$t.length;n++){var r=$t[n];r.blockedOn===e&&(r.blockedOn=null)}}for(en!==null&&hn(en,e),tn!==null&&hn(tn,e),nn!==null&&hn(nn,e),rn.forEach(t),an.forEach(t),n=0;n<on.length;n++)r=on[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<on.length&&(n=on[0],n.blockedOn===null);)dn(n),n.blockedOn===null&&on.shift()}var _n=S.ReactCurrentBatchConfig,vn=!0;function yn(e,t,n,r){var i=I,a=_n.transition;_n.transition=null;try{I=1,xn(e,t,n,r)}finally{I=i,_n.transition=a}}function bn(e,t,n,r){var i=I,a=_n.transition;_n.transition=null;try{I=4,xn(e,t,n,r)}finally{I=i,_n.transition=a}}function xn(e,t,n,r){if(vn){var i=Cn(e,t,n,r);if(i===null)gi(e,t,r,Sn,n),cn(e,r);else if(un(i,e,t,n,r))r.stopPropagation();else if(cn(e,r),t&4&&-1<sn.indexOf(e)){for(;i!==null;){var a=Gi(i);if(a!==null&&qt(a),a=Cn(e,t,n,r),a===null&&gi(e,t,r,Sn,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else gi(e,t,r,null,n)}}var Sn=null;function Cn(e,t,n,r){if(Sn=null,e=We(r),e=Wi(e),e!==null)if(t=dt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ft(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Sn=e,null}function wn(e){switch(e){case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`
vendor: 5,031 bytes, line 6
6:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 1;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`toggle`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 4;case`message`:switch(xt()){case St:return 1;case Ct:return 4;case wt:case Tt:return 16;case Et:return 536870912;default:return 16}default:return 16}}var Tn=null,En=null,Dn=null;function On(){if(Dn)return Dn;var e,t=En,n=t.length,r,i=`value`in Tn?Tn.value:Tn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Dn=i.slice(e,1<r?1-r:void 0)}function kn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function An(){return!0}function jn(){return!1}function Mn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?An:jn,this.isPropagationStopped=jn,this}return k(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=An)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=An)},persist:function(){},isPersistent:An}),t}var Nn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pn=Mn(Nn),Fn=k({},Nn,{view:0,detail:0}),In=Mn(Fn),Ln,Rn,zn,Bn=k({},Fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==zn&&(zn&&e.type===`mousemove`?(Ln=e.screenX-zn.screenX,Rn=e.screenY-zn.screenY):Rn=Ln=0,zn=e),Ln)},movementY:function(e){return`movementY`in e?e.movementY:Rn}}),Vn=Mn(Bn),Hn=Mn(k({},Bn,{dataTransfer:0})),Un=Mn(k({},Fn,{relatedTarget:0})),Wn=Mn(k({},Nn,{animationName:0,elapsedTime:0,pseudoElement:0})),Gn=Mn(k({},Nn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Kn=Mn(k({},Nn,{data:0})),qn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Jn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Yn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Xn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Yn[e])?!!t[e]:!1}function Zn(){return Xn}var Qn=Mn(k({},Fn,{key:function(e){if(e.key){var t=qn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=kn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Jn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zn,charCode:function(e){return e.type===`keypress`?kn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?kn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),$n=Mn(k({},Bn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),er=Mn(k({},Fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zn})),tr=Mn(k({},Nn,{propertyName:0,elapsedTime:0,pseudoElement:0})),nr=Mn(k({},Bn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}
vendor: 96,696 bytes, lines 6-9
6)),rr=[9,13,27,32],ir=l&&`CompositionEvent`in window,ar=null;l&&`documentMode`in document&&(ar=document.documentMode);var or=l&&`TextEvent`in window&&!ar,sr=l&&(!ir||ar&&8<ar&&11>=ar),cr=` `,lr=!1;function ur(e,t){switch(e){case`keyup`:return rr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function dr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var fr=!1;function pr(e,t){switch(e){case`compositionend`:return dr(t);case`keypress`:return t.which===32?(lr=!0,cr):null;case`textInput`:return e=t.data,e===cr&&lr?null:e;default:return null}}function mr(e,t){if(fr)return e===`compositionend`||!ir&&ur(e,t)?(e=On(),Dn=En=Tn=null,fr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return sr&&t.locale!==`ko`?null:t.data;default:return null}}var hr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function gr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!hr[e.type]:t===`textarea`}function _r(e,t,n,r){Je(r),t=vi(t,`onChange`),0<t.length&&(n=new Pn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var vr=null,yr=null;function br(e){di(e,0)}function xr(e){if(ye(Ki(e)))return e}function Sr(e,t){if(e===`change`)return t}var Cr=!1;if(l){var wr;if(l){var Tr=`oninput`in document;if(!Tr){var Er=document.createElement(`div`);Er.setAttribute(`oninput`,`return;`),Tr=typeof Er.oninput==`function`}wr=Tr}else wr=!1;Cr=wr&&(!document.documentMode||9<document.documentMode)}function Dr(){vr&&(vr.detachEvent(`onpropertychange`,Or),yr=vr=null)}function Or(e){if(e.propertyName===`value`&&xr(yr)){var t=[];_r(t,yr,e,We(e)),$e(br,t)}}function kr(e,t,n){e===`focusin`?(Dr(),vr=t,yr=n,vr.attachEvent(`onpropertychange`,Or)):e===`focusout`&&Dr()}function Ar(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return xr(yr)}function jr(e,t){if(e===`click`)return xr(t)}function Mr(e,t){if(e===`input`||e===`change`)return xr(t)}function Nr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Pr=typeof Object.is==`function`?Object.is:Nr;function Fr(e,t){if(Pr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!u.call(t,i)||!Pr(e[i],t[i]))return!1}return!0}function Ir(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Lr(e,t){var n=Ir(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Ir(n)}}function Rr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zr(){for(var e=window,t=be();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=be(e.document)}return t}function Br(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}function Vr(e){var t=zr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Rr(n.ownerDocument.documentElement,n)){if(r!==null&&Br(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),`selectionStart`in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Lr(n,a);var o=Lr(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus==`function`&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Hr=l&&`documentMode`in document&&11>=document.documentMode,Ur=null,Wr=null,Gr=null,Kr=!1;function qr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Kr||Ur==null||Ur!==be(r)||(r=Ur,`selectionStart`in r&&Br(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Gr&&Fr(Gr,r)||(Gr=r,r=vi(Wr,`onSelect`),0<r.length&&(t=new Pn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Ur)))}function Jr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Yr={animationend:Jr(`Animation`,`AnimationEnd`),animationiteration:Jr(`Animation`,`AnimationIteration`),animationstart:Jr(`Animation`,`AnimationStart`),transitionend:Jr(`Transition`,`TransitionEnd`)},Xr={},Zr={};l&&(Zr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Yr.animationend.animation,delete Yr.animationiteration.animation,delete Yr.animationstart.animation),`TransitionEvent`in window||delete Yr.transitionend.transition);function Qr(e){if(Xr[e])return Xr[e];if(!Yr[e])return e;var t=Yr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Zr)return Xr[e]=t[n];return e}var $r=Qr(`animationend`),ei=Qr(`animationiteration`),ti=Qr(`animationstart`),ni=Qr(`transitionend`),ri=new Map,ii=`abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);function ai(e,t){ri.set(e,t),s(t,[e])}for(var oi=0;oi<ii.length;oi++){var si=ii[oi];ai(si.toLowerCase(),`on`+(si[0].toUpperCase()+si.slice(1)))}ai($r,`onAnimationEnd`),ai(ei,`onAnimationIteration`),ai(ti,`onAnimationStart`),ai(`dblclick`,`onDoubleClick`),ai(`focusin`,`onFocus`),ai(`focusout`,`onBlur`),ai(ni,`onTransitionEnd`),c(`onMouseEnter`,[`mouseout`,`mouseover`]),c(`onMouseLeave`,[`mouseout`,`mouseover`]),c(`onPointerEnter`,[`pointerout`,`pointerover`]),c(`onPointerLeave`,[`pointerout`,`pointerover`]),s(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),s(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),s(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),s(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),s(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),s(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var ci=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),li=new Set(`cancel close invalid load scroll toggle`.split(` `).concat(ci));function ui(e,t,n){var r=e.type||`unknown-event`;e.currentTarget=n,ut(r,t,void 0,e),e.currentTarget=null}function di(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;ui(i,s,l),a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;ui(i,s,l),a=c}}}if(ot)throw e=st,ot=!1,st=null,e}function L(e,t){var n=t[Vi];n===void 0&&(n=t[Vi]=new Set);var r=e+`__bubble`;n.has(r)||(hi(t,e,2,!1),n.add(r))}function fi(e,t,n){var r=0;t&&(r|=4),hi(n,e,r,t)}var pi=`_reactListening`+Math.random().toString(36).slice(2);function mi(e){if(!e[pi]){e[pi]=!0,i.forEach(function(t){t!==`selectionchange`&&(li.has(t)||fi(t,!1,e),fi(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[pi]||(t[pi]=!0,fi(`selectionchange`,!1,t))}}function hi(e,t,n,r){switch(wn(t)){case 1:var i=yn;break;case 4:i=bn;break;default:i=xn}n=i.bind(null,t,n,e),i=void 0,!tt||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function gi(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;s!==null;){if(o=Wi(s),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue a}s=s.parentNode}}r=r.return}$e(function(){var r=a,i=We(n),o=[];a:{var s=ri.get(e);if(s!==void 0){var c=Pn,l=e;switch(e){case`keypress`:if(kn(n)===0)break a;case`keydown`:case`keyup`:c=Qn;break;case`focusin`:l=`focus`,c=Un;break;case`focusout`:l=`blur`,c=Un;break;case`beforeblur`:case`afterblur`:c=Un;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=Vn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=Hn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=er;break;case $r:case ei:case ti:c=Wn;break;case ni:c=tr;break;case`scroll`:c=In;break;case`wheel`:c=nr;break;case`copy`:case`cut`:case`paste`:c=Gn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=$n}var u=(t&4)!=0,d=!u&&e===`scroll`,f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){m=p;var h=m.stateNode;if(m.tag===5&&h!==null&&(m=h,f!==null&&(h=et(p,f),h!=null&&u.push(_i(p,h,m)))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==Ue&&(l=n.relatedTarget||n.fromElement)&&(Wi(l)||l[Bi]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Wi(l):null,l!==null&&(d=dt(l),l!==d||l.tag!==5&&l.tag!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=Vn,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=$n,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:Ki(c),m=l==null?s:Ki(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Wi(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=c,f=l,p=0,m=u;m;m=yi(m))p++;for(m=0,h=f;h;h=yi(h))m++;for(;0<p-m;)u=yi(u),p--;for(;0<m-p;)f=yi(f),m--;for(;p--;){if(u===f||f!==null&&u===f.alternate)break b;u=yi(u),f=yi(f)}u=null}else u=null;c!==null&&bi(o,s,c,u,!1),l!==null&&d!==null&&bi(o,d,l,u,!0)}}a:{if(s=r?Ki(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=Sr;else if(gr(s))if(Cr)g=Mr;else{g=Ar;var _=kr}else(c=s.nodeName)&&c.toLowerCase()===`input`&&(s.type===`checkbox`||s.type===`radio`)&&(g=jr);if(g&&=g(e,r)){_r(o,g,n,i);break a}_&&_(e,s,r),e===`focusout`&&(_=s._wrapperState)&&_.controlled&&s.type===`number`&&Ee(s,`number`,s.value)}switch(_=r?Ki(r):window,e){case`focusin`:(gr(_)||_.contentEditable===`true`)&&(Ur=_,Wr=r,Gr=null);break;case`focusout`:Gr=Wr=Ur=null;break;case`mousedown`:Kr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Kr=!1,qr(o,n,i);break;case`selectionchange`:if(Hr)break;case`keydown`:case`keyup`:qr(o,n,i)}var v;if(ir)b:{switch(e){case`compositionstart`:var y=`onCompositionStart`;break b;case`compositionend`:y=`onCompositionEnd`;break b;case`compositionupdate`:y=`onCompositionUpdate`;break b}y=void 0}else fr?ur(e,n)&&(y=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(y=`onCompositionStart`);y&&(sr&&n.locale!==`ko`&&(fr||y!==`onCompositionStart`?y===`onCompositionEnd`&&fr&&(v=On()):(Tn=i,En=`value`in Tn?Tn.value:Tn.textContent,fr=!0)),_=vi(r,y),0<_.length&&(y=new Kn(y,e,null,n,i),o.push({event:y,listeners:_}),v?y.data=v:(v=dr(n),v!==null&&(y.data=v)))),(v=or?pr(e,n):mr(e,n))&&(r=vi(r,`onBeforeInput`),0<r.length&&(i=new Kn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:i,listeners:r}),i.data=v))}di(o,t)})}function _i(e,t,n){return{instance:e,listener:t,currentTarget:n}}function vi(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=et(e,n),a!=null&&r.unshift(_i(e,a,i)),a=et(e,t),a!=null&&r.push(_i(e,a,i))),e=e.return}return r}function yi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function bi(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&l!==null&&(s=l,i?(c=et(n,a),c!=null&&o.unshift(_i(n,c,s))):i||(c=et(n,a),c!=null&&o.push(_i(n,c,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var xi=/\r\n?/g,Si=/\u0000|\uFFFD/g;function Ci(e){return(typeof e==`string`?e:``+e).replace(xi,`
7`).replace(Si,``)}function wi(e,t,n){if(t=Ci(t),Ci(e)!==t&&n)throw Error(r(425))}function Ti(){}var Ei=null,Di=null;function Oi(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ki=typeof setTimeout==`function`?setTimeout:void 0,Ai=typeof clearTimeout==`function`?clearTimeout:void 0,ji=typeof Promise==`function`?Promise:void 0,Mi=typeof queueMicrotask==`function`?queueMicrotask:ji===void 0?ki:function(e){return ji.resolve(null).then(e).catch(Ni)};function Ni(e){setTimeout(function(){throw e})}function Pi(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`){if(r===0){e.removeChild(i),gn(t);return}r--}else n!==`$`&&n!==`$?`&&n!==`$!`||r++;n=i}while(n);gn(t)}function Fi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`)break;if(t===`/$`)return null}}return e}function Ii(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`){if(t===0)return e;t--}else n===`/$`&&t++}e=e.previousSibling}return null}var Li=Math.random().toString(36).slice(2),Ri=`__reactFiber$`+Li,zi=`__reactProps$`+Li,Bi=`__reactContainer$`+Li,Vi=`__reactEvents$`+Li,Hi=`__reactListeners$`+Li,Ui=`__reactHandles$`+Li;function Wi(e){var t=e[Ri];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Bi]||n[Ri]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ii(e);e!==null;){if(n=e[Ri])return n;e=Ii(e)}return t}e=n,n=e.parentNode}return null}function Gi(e){return e=e[Ri]||e[Bi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ki(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function qi(e){return e[zi]||null}var Ji=[],Yi=-1;function Xi(e){return{current:e}}function R(e){0>Yi||(e.current=Ji[Yi],Ji[Yi]=null,Yi--)}function z(e,t){Yi++,Ji[Yi]=e.current,e.current=t}var Zi={},Qi=Xi(Zi),$i=Xi(!1),ea=Zi;function ta(e,t){var n=e.type.contextTypes;if(!n)return Zi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function B(e){return e=e.childContextTypes,e!=null}function na(){R($i),R(Qi)}function ra(e,t,n){if(Qi.current!==Zi)throw Error(r(168));z(Qi,t),z($i,n)}function ia(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!=`function`)return n;for(var a in i=i.getChildContext(),i)if(!(a in t))throw Error(r(108,he(e)||`Unknown`,a));return k({},n,i)}function aa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Zi,ea=Qi.current,z(Qi,e),z($i,$i.current),!0}function oa(e,t,n){var i=e.stateNode;if(!i)throw Error(r(169));n?(e=ia(e,t,ea),i.__reactInternalMemoizedMergedChildContext=e,R($i),R(Qi),z(Qi,e)):R($i),z($i,n)}var sa=null,ca=!1,la=!1;function ua(e){sa===null?sa=[e]:sa.push(e)}function da(e){ca=!0,ua(e)}function fa(){if(!la&&sa!==null){la=!0;var e=0,t=I;try{var n=sa;for(I=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}sa=null,ca=!1}catch(t){throw sa!==null&&(sa=sa.slice(e+1)),_t(St,fa),t}finally{I=t,la=!1}}return null}var pa=[],ma=0,ha=null,ga=0,_a=[],va=0,ya=null,ba=1,xa=``;function Sa(e,t){pa[ma++]=ga,pa[ma++]=ha,ha=e,ga=t}function Ca(e,t,n){_a[va++]=ba,_a[va++]=xa,_a[va++]=ya,ya=e;var r=ba;e=xa;var i=32-At(r)-1;r&=~(1<<i),n+=1;var a=32-At(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ba=1<<32-At(t)+i|n<<i|r,xa=a+e}else ba=1<<a|n<<i|r,xa=e}function wa(e){e.return!==null&&(Sa(e,1),Ca(e,1,0))}function Ta(e){for(;e===ha;)ha=pa[--ma],pa[ma]=null,ga=pa[--ma],pa[ma]=null;for(;e===ya;)ya=_a[--va],_a[va]=null,xa=_a[--va],_a[va]=null,ba=_a[--va],_a[va]=null}var Ea=null,Da=null,V=!1,H=null;function Oa(e,t){var n=ql(5,null,null,0);n.elementType=`DELETED`,n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function ka(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t===null?!1:(e.stateNode=t,Ea=e,Da=Fi(t.firstChild),!0);case 6:return t=e.pendingProps===``||t.nodeType!==3?null:t,t===null?!1:(e.stateNode=t,Ea=e,Da=null,!0);case 13:return t=t.nodeType===8?t:null,t===null?!1:(n=ya===null?null:{id:ba,overflow:xa},e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ql(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ea=e,Da=null,!0);default:return!1}}function Aa(e){return(e.mode&1)!=0&&(e.flags&128)==0}function ja(e){if(V){var t=Da;if(t){var n=t;if(!ka(e,t)){if(Aa(e))throw Error(r(418));t=Fi(n.nextSibling);var i=Ea;t&&ka(e,t)?Oa(i,n):(e.flags=e.flags&-4097|2,V=!1,Ea=e)}}else{if(Aa(e))throw Error(r(418));e.flags=e.flags&-4097|2,V=!1,Ea=e}}}function Ma(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ea=e}function Na(e){if(e!==Ea)return!1;if(!V)return Ma(e),V=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!==`head`&&t!==`body`&&!Oi(e.type,e.memoizedProps)),t&&=Da){if(Aa(e))throw Pa(),Error(r(418));for(;t;)Oa(e,t),t=Fi(t.nextSibling)}if(Ma(e),e.tag===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(317));a:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`){if(t===0){Da=Fi(e.nextSibling);break a}t--}else n!==`$`&&n!==`$!`&&n!==`$?`||t++}e=e.nextSibling}Da=null}}else Da=Ea?Fi(e.stateNode.nextSibling):null;return!0}function Pa(){for(var e=Da;e;)e=Fi(e.nextSibling)}function Fa(){Da=Ea=null,V=!1}function Ia(e){H===null?H=[e]:H.push(e)}var La=S.ReactCurrentBatchConfig;function Ra(e,t,n){if(e=n.ref,e!==null&&typeof e!=`function`&&typeof e!=`object`){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(r(309));var i=n.stateNode}if(!i)throw Error(r(147,e));var a=i,o=``+e;return t!==null&&t.ref!==null&&typeof t.ref==`function`&&t.ref._stringRef===o?t.ref:(t=function(e){var t=a.refs;e===null?delete t[o]:t[o]=e},t._stringRef=o,t)}if(typeof e!=`string`)throw Error(r(284));if(!n._owner)throw Error(r(290,e))}return e}function za(e,t){throw e=Object.prototype.toString.call(t),Error(r(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e))}function Ba(e){var t=e._init;return t(e._payload)}function Va(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function i(e,t){for(e=new Map;t!==null;)t.key===null?e.set(t.index,t):e.set(t.key,t),t=t.sibling;return e}function a(e,t){return e=Xl(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=2,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=2),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=eu(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===T?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===O&&Ba(i)===t.type)?(r=a(t,n.props),r.ref=Ra(e,t,n),r.return=e,r):(r=Zl(n.type,n.key,n.props,null,e.mode,r),r.ref=Ra(e,t,n),r.return=e,r)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=tu(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=Ql(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`)return t=eu(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case C:return n=Zl(t.type,t.key,t.props,null,e.mode,n),n.ref=Ra(e,null,t),n.return=e,n;case w:return t=tu(t,e.mode,n),t.return=e,t;case O:var r=t._init;return f(e,r(t._payload),n)}if(De(t)||ce(t))return t=Ql(t,e.mode,n,null),t.return=e,t;za(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case C:return n.key===i?l(e,t,n,r):null;case w:return n.key===i?u(e,t,n,r):null;case O:return i=n._init,p(e,t,i(n._payload),r)}if(De(n)||ce(n))return i===null?d(e,t,n,r,null):null;za(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case C:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case w:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:var a=r._init;return m(e,t,n,a(r._payload),i)}if(De(r)||ce(r))return e=e.get(n)||null,d(t,e,r,i,null);za(t,r)}return null}function h(r,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(r,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(r,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(r,d),V&&Sa(r,h),l;if(d===null){for(;h<s.length;h++)d=f(r,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return V&&Sa(r,h),l}for(d=i(r,d);h<s.length;h++)g=m(d,r,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(r,e)}),V&&Sa(r,h),l}function g(a,s,c,l){var u=ce(c);if(typeof u!=`function`)throw Error(r(150));if(c=u.call(c),c==null)throw Error(r(151));for(var d=u=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),V&&Sa(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return V&&Sa(a,g),u}for(h=i(a,h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),V&&Sa(a,g),u}function _(e,r,i,o){if(typeof i==`object`&&i&&i.type===T&&i.key===null&&(i=i.props.children),typeof i==`object`&&i){switch(i.$$typeof){case C:a:{for(var c=i.key,l=r;l!==null;){if(l.key===c){if(c=i.type,c===T){if(l.tag===7){n(e,l.sibling),r=a(l,i.props.children),r.return=e,e=r;break a}}else if(l.elementType===c||typeof c==`object`&&c&&c.$$typeof===O&&Ba(c)===l.type){n(e,l.sibling),r=a(l,i.props),r.ref=Ra(e,l,i),r.return=e,e=r;break a}n(e,l);break}else t(e,l);l=l.sibling}i.type===T?(r=Ql(i.props.children,e.mode,o,i.key),r.return=e,e=r):(o=Zl(i.type,i.key,i.props,null,e.mode,o),o.ref=Ra(e,r,i),o.return=e,e=o)}return s(e);case w:a:{for(l=i.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),r=a(r,i.children||[]),r.return=e,e=r;break a}else{n(e,r);break}else t(e,r);r=r.sibling}r=tu(i,e.mode,o),r.return=e,e=r}return s(e);case O:return l=i._init,_(e,r,l(i._payload),o)}if(De(i))return h(e,r,i,o);if(ce(i))return g(e,r,i,o);za(e,i)}return typeof i==`string`&&i!==``||typeof i==`number`?(i=``+i,r!==null&&r.tag===6?(n(e,r.sibling),r=a(r,i),r.return=e,e=r):(n(e,r),r=eu(i,e.mode,o),r.return=e,e=r),s(e)):n(e,r)}return _}var Ha=Va(!0),Ua=Va(!1),Wa=Xi(null),Ga=null,Ka=null,qa=null;function Ja(){qa=Ka=Ga=null}function Ya(e){var t=Wa.current;R(Wa),e._currentValue=t}function Xa(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Za(e,t){Ga=e,qa=Ka=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Is=!0),e.firstContext=null)}function Qa(e){var t=e._currentValue;if(qa!==e)if(e={context:e,memoizedValue:t,next:null},Ka===null){if(Ga===null)throw Error(r(308));Ka=e,Ga.dependencies={lanes:0,firstContext:e}}else Ka=Ka.next=e;return t}var $a=null;function eo(e){$a===null?$a=[e]:$a.push(e)}function to(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,eo(t)):(n.next=i.next,i.next=n),t.interleaved=n,no(e,r)}function no(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var U=!1;function ro(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function io(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ao(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function oo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,X&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,no(e,n)}return i=r.interleaved,i===null?(t.next=t,eo(r)):(t.next=i.next,i.next=t),r.interleaved=t,no(e,n)}function W(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194240)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gt(e,n)}}function so(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function co(e,t,n,r){var i=e.updateQueue;U=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});a:{var m=e,h=s;switch(f=t,p=n,h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(p,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(p,d,f):m,f==null)break a;d=k({},d,f);break a;case 2:U=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(1);if(u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Xc|=o,e.lanes=o,e.memoizedState=d}}function lo(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],a=i.callback;if(a!==null){if(i.callback=null,i=n,typeof a!=`function`)throw Error(r(191,a));a.call(i)}}}var uo={},fo=Xi(uo),po=Xi(uo),mo=Xi(uo);function ho(e){if(e===uo)throw Error(r(174));return e}function go(e,t){switch(z(mo,t),z(po,e),z(fo,uo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fe(null,``);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Fe(t,e)}R(fo),z(fo,t)}function _o(){R(fo),R(po),R(mo)}function vo(e){ho(mo.current);var t=ho(fo.current),n=Fe(t,e.type);t!==n&&(z(po,e),z(fo,n))}function yo(e){po.current===e&&(R(fo),R(po))}var G=Xi(0);function bo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===`$?`||n.data===`$!`))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var xo=[];function So(){for(var e=0;e<xo.length;e++)xo[e]._workInProgressVersionPrimary=null;xo.length=0}var Co=S.ReactCurrentDispatcher,wo=S.ReactCurrentBatchConfig,To=0,K=null,Eo=null,Do=null,Oo=!1,ko=!1,Ao=0,jo=0;function Mo(){throw Error(r(321))}function No(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Pr(e[n],t[n]))return!1;return!0}function Po(e,t,n,i,a,o){if(To=o,K=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Co.current=e===null||e.memoizedState===null?gs:_s,e=n(i,a),ko){o=0;do{if(ko=!1,Ao=0,25<=o)throw Error(r(301));o+=1,Do=Eo=null,t.updateQueue=null,Co.current=vs,e=n(i,a)}while(ko)}if(Co.current=hs,t=Eo!==null&&Eo.next!==null,To=0,Do=Eo=K=null,Oo=!1,t)throw Error(r(300));return e}function Fo(){var e=Ao!==0;return Ao=0,e}function Io(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Do===null?K.memoizedState=Do=e:Do=Do.next=e,Do}function Lo(){if(Eo===null){var e=K.alternate;e=e===null?null:e.memoizedState}else e=Eo.next;var t=Do===null?K.memoizedState:Do.next;if(t!==null)Do=t,Eo=e;else{if(e===null)throw Error(r(310));Eo=e,e={memoizedState:Eo.memoizedState,baseState:Eo.baseState,baseQueue:Eo.baseQueue,queue:Eo.queue,next:null},Do===null?K.memoizedState=Do=e:Do=Do.next=e}return Do}function Ro(e,t){return typeof t==`function`?t(e):t}function zo(e){var t=Lo(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=Eo,a=i.baseQueue,o=n.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}i.baseQueue=a=o,n.pending=null}if(a!==null){o=a.next,i=i.baseState;var c=s=null,l=null,u=o;do{var d=u.lane;if((To&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(c=l=f,s=i):l=l.next=f,K.lanes|=d,Xc|=d}u=u.next}while(u!==null&&u!==o);l===null?s=i:l.next=c,Pr(i,t.memoizedState)||(Is=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=l,n.lastRenderedState=i}if(e=n.interleaved,e!==null){a=e;do o=a.lane,K.lanes|=o,Xc|=o,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Bo(e){var t=Lo(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Pr(o,t.memoizedState)||(Is=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Vo(){}function Ho(e,t){var n=K,i=Lo(),a=t(),o=!Pr(i.memoizedState,a);if(o&&(i.memoizedState=a,Is=!0),i=i.queue,$o(q.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||Do!==null&&Do.memoizedState.tag&1){if(n.flags|=2048,Jo(9,Wo.bind(null,n,i,a,t),void 0,null),Wc===null)throw Error(r(349));To&30||Uo(n,t,a)}return a}function Uo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=K.updateQueue,t===null?(t={lastEffect:null,stores:null},K.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Wo(e,t,n,r){t.value=n,t.getSnapshot=r,Go(t)&&Ko(e)}function q(e,t,n){return n(function(){Go(t)&&Ko(e)})}function Go(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Pr(e,n)}catch{return!0}}function Ko(e){var t=no(e,1);t!==null&&gl(t,e,1,-1)}function qo(e){var t=Io();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:e},t.queue=e,e=e.dispatch=ds.bind(null,K,e),[t.memoizedState,e]}function Jo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=K.updateQueue,t===null?(t={lastEffect:null,stores:null},K.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Yo(){return Lo().memoizedState}function Xo(e,t,n,r){var i=Io();K.flags|=e,i.memoizedState=Jo(1|t,n,void 0,r===void 0?null:r)}function Zo(e,t,n,r){var i=Lo();r=r===void 0?null:r;var a=void 0;if(Eo!==null){var o=Eo.memoizedState;if(a=o.destroy,r!==null&&No(r,o.deps)){i.memoizedState=Jo(t,n,a,r);return}}K.flags|=e,i.memoizedState=Jo(1|t,n,a,r)}function Qo(e,t){return Xo(8390656,8,e,t)}function $o(e,t){return Zo(2048,8,e,t)}function es(e,t){return Zo(4,2,e,t)}function ts(e,t){return Zo(4,4,e,t)}function ns(e,t){if(typeof t==`function`)return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function rs(e,t,n){return n=n==null?null:n.concat([e]),Zo(4,4,ns.bind(null,t,e),n)}function is(){}function as(e,t){var n=Lo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&No(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function os(e,t){var n=Lo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&No(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ss(e,t,n){return To&21?(Pr(n,t)||(n=Vt(),K.lanes|=n,Xc|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Is=!0),e.memoizedState=n)}function cs(e,t){var n=I;I=n!==0&&4>n?n:4,e(!0);var r=wo.transition;wo.transition={};try{e(!1),t()}finally{I=n,wo.transition=r}}function ls(){return Lo().memoizedState}function us(e,t,n){var r=hl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},fs(e))ps(t,n);else if(n=to(e,t,n,r),n!==null){var i=ml();gl(n,e,r,i),ms(n,t,r)}}function ds(e,t,n){var r=hl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(fs(e))ps(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Pr(s,o)){var c=t.interleaved;c===null?(i.next=i,eo(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}n=to(e,t,i,r),n!==null&&(i=ml(),gl(n,e,r,i),ms(n,t,r))}}function fs(e){var t=e.alternate;return e===K||t!==null&&t===K}function ps(e,t){ko=Oo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ms(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gt(e,n)}}var hs={readContext:Qa,useCallback:Mo,useContext:Mo,useEffect:Mo,useImperativeHandle:Mo,useInsertionEffect:Mo,useLayoutEffect:Mo,useMemo:Mo,useReducer:Mo,useRef:Mo,useState:Mo,useDebugValue:Mo,useDeferredValue:Mo,useTransition:Mo,useMutableSource:Mo,useSyncExternalStore:Mo,useId:Mo,unstable_isNewReconciler:!1},gs={readContext:Qa,useCallback:function(e,t){return Io().memoizedState=[e,t===void 0?null:t],e},useContext:Qa,useEffect:Qo,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),Xo(4194308,4,ns.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Xo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Xo(4,2,e,t)},useMemo:function(e,t){var n=Io();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Io();return t=n===void 0?t:n(t),r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=us.bind(null,K,e),[r.memoizedState,e]},useRef:function(e){var t=Io();return e={current:e},t.memoizedState=e},useState:qo,useDebugValue:is,useDeferredValue:function(e){return Io().memoizedState=e},useTransition:function(){var e=qo(!1),t=e[0];return e=cs.bind(null,e[1]),Io().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=K,a=Io();if(V){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Wc===null)throw Error(r(349));To&30||Uo(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Qo(q.bind(null,i,o,e),[e]),i.flags|=2048,Jo(9,Wo.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=Io(),t=Wc.identifierPrefix;if(V){var n=xa,r=ba;n=(r&~(1<<32-At(r)-1)).toString(32)+n,t=`:`+t+`R`+n,n=Ao++,0<n&&(t+=`H`+n.toString(32)),t+=`:`}else n=jo++,t=`:`+t+`r`+n.toString(32)+`:`;return e.memoizedState=t},unstable_isNewReconciler:!1},_s={readContext:Qa,useCallback:as,useContext:Qa,useEffect:$o,useImperativeHandle:rs,useInsertionEffect:es,useLayoutEffect:ts,useMemo:os,useReducer:zo,useRef:Yo,useState:function(){return zo(Ro)},useDebugValue:is,useDeferredValue:function(e){return ss(Lo(),Eo.memoizedState,e)},useTransition:function(){return[zo(Ro)[0],Lo().memoizedState]},useMutableSource:Vo,useSyncExternalStore:Ho,useId:ls,unstable_isNewReconciler:!1},vs={readContext:Qa,useCallback:as,useContext:Qa,useEffect:$o,useImperativeHandle:rs,useInsertionEffect:es,useLayoutEffect:ts,useMemo:os,useReducer:Bo,useRef:Yo,useState:function(){return Bo(Ro)},useDebugValue:is,useDeferredValue:function(e){var t=Lo();return Eo===null?t.memoizedState=e:ss(t,Eo.memoizedState,e)},useTransition:function(){return[Bo(Ro)[0],Lo().memoizedState]},useMutableSource:Vo,useSyncExternalStore:Ho,useId:ls,unstable_isNewReconciler:!1};function ys(e,t){if(e&&e.defaultProps){for(var n in t=k({},t),e=e.defaultProps,e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function bs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:k({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var xs={isMounted:function(e){return(e=e._reactInternals)?dt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ml(),i=hl(e),a=ao(r,i);a.payload=t,n!=null&&(a.callback=n),t=oo(e,a,i),t!==null&&(gl(t,e,i,r),W(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ml(),i=hl(e),a=ao(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=oo(e,a,i),t!==null&&(gl(t,e,i,r),W(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ml(),r=hl(e),i=ao(n,r);i.tag=2,t!=null&&(i.callback=t),t=oo(e,i,r),t!==null&&(gl(t,e,r,n),W(t,e,r))}};function Ss(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Fr(n,r)||!Fr(i,a):!0}function Cs(e,t,n){var r=!1,i=Zi,a=t.contextType;return typeof a==`object`&&a?a=Qa(a):(i=B(t)?ea:Qi.current,r=t.contextTypes,a=(r=r!=null)?ta(e,i):Zi),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=xs,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function ws(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&xs.enqueueReplaceState(t,t.state,null)}function Ts(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},ro(e);var a=t.contextType;typeof a==`object`&&a?i.context=Qa(a):(a=B(t)?ea:Qi.current,i.context=ta(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(bs(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==`function`||typeof i.getSnapshotBeforeUpdate==`function`||typeof i.UNSAFE_componentWillMount!=`function`&&typeof i.componentWillMount!=`function`||(t=i.state,typeof i.componentWillMount==`function`&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount==`function`&&i.UNSAFE_componentWillMount(),t!==i.state&&xs.enqueueReplaceState(i,i.state,null),co(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4194308)}function Es(e,t){try{var n=``,r=t;do n+=pe(r),r=r.return;while(r);var i=n}catch(e){i=`
8Error generating stack: `+e.message+`
9`+e.stack}return{value:e,source:t,stack:i,digest:null}}function Ds(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Os(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var ks=typeof WeakMap==`function`?WeakMap:Map;function As(e,t,n){n=ao(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){il||(il=!0,al=r),Os(e,t)},n}function js(e,t,n){n=ao(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==`function`){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Os(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){Os(e,t),typeof r!=`function`&&(ol===null?ol=new Set([this]):ol.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}function Ms(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ks;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Bl.bind(null,e,t,n),t.then(e,e))}function Ns(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t===null||t.dehydrated!==null),t)return e;e=e.return}while(e!==null);return null}function Ps(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=ao(-1,1),t.tag=2,oo(n,t,1))),n.lanes|=1),e)}var Fs=S.ReactCurrentOwner,Is=!1;function J(e,t,n,r){t.child=e===null?Ua(t,null,n,r):Ha(t,e.child,n,r)}function Ls(e,t,n,r,i){n=n.render;var a=t.ref;return Za(t,i),r=Po(e,t,n,r,a,i),n=Fo(),e!==null&&!Is?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,rc(e,t,i)):(V&&n&&wa(t),t.flags|=1,J(e,t,r,i),t.child)}function Rs(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Jl(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,zs(e,t,a,r,i)):(e=Zl(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&i)===0){var o=a.memoizedProps;if(n=n.compare,n=n===null?Fr:n,n(o,r)&&e.ref===t.ref)return rc(e,t,i)}return t.flags|=1,e=Xl(a,r),e.ref=t.ref,e.return=t,t.child=e}function zs(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Fr(a,r)&&e.ref===t.ref)if(Is=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Is=!0);else return t.lanes=e.lanes,rc(e,t,i)}return Hs(e,t,n,r,i)}function Bs(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`)if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},z(qc,Z),Z|=n;else{if(!(n&1073741824))return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,z(qc,Z),Z|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a===null?n:a.baseLanes,z(qc,Z),Z|=r}else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),z(qc,Z),Z|=r;return J(e,t,i,n),t.child}function Vs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Hs(e,t,n,r,i){var a=B(n)?ea:Qi.current;return a=ta(t,a),Za(t,i),n=Po(e,t,n,r,a,i),r=Fo(),e!==null&&!Is?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,rc(e,t,i)):(V&&r&&wa(t),t.flags|=1,J(e,t,n,i),t.child)}function Us(e,t,n,r,i){if(B(n)){var a=!0;aa(t)}else a=!1;if(Za(t,i),t.stateNode===null)nc(e,t),Cs(t,n,r),Ts(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=Qa(l):(l=B(n)?ea:Qi.current,l=ta(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&ws(t,o,r,l),U=!1;var f=t.memoizedState;o.state=f,co(t,r,o,i),c=t.memoizedState,s!==r||f!==c||$i.current||U?(typeof u==`function`&&(bs(t,n,u,r),c=t.memoizedState),(s=U||Ss(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4194308)):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,io(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:ys(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=Qa(c):(c=B(n)?ea:Qi.current,c=ta(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&ws(t,o,r,c),U=!1,f=t.memoizedState,o.state=f,co(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||$i.current||U?(typeof p==`function`&&(bs(t,n,p,r),m=t.memoizedState),(l=U||Ss(t,n,l,r,f,m,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ws(e,t,n,r,a,i)}function Ws(e,t,n,r,i,a){Vs(e,t);var o=(t.flags&128)!=0;if(!r&&!o)return i&&oa(t,n,!1),rc(e,t,a);r=t.stateNode,Fs.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Ha(t,e.child,null,a),t.child=Ha(t,null,s,a)):J(e,t,s,a),t.memoizedState=r.state,i&&oa(t,n,!0),t.child}function Gs(e){var t=e.stateNode;t.pendingContext?ra(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ra(e,t.context,!1),go(e,t.containerInfo)}function Ks(e,t,n,r,i){return Fa(),Ia(i),t.flags|=256,J(e,t,n,r),t.child}var qs={dehydrated:null,treeContext:null,retryLane:0};function Js(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ys(e,t,n){var r=t.pendingProps,i=G.current,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!=0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),z(G,i&1),e===null)return ja(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data===`$!`?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:`hidden`,children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=$l(o,r,0,null),e=Ql(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Js(n),t.memoizedState=qs,e):Xs(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return Qs(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var c={mode:`hidden`,children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Xl(i,c),r.subtreeFlags=i.subtreeFlags&14680064),s===null?(a=Ql(a,o,n,null),a.flags|=2):a=Xl(s,a),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?Js(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=qs,r}return a=e.child,e=a.sibling,r=Xl(a,{mode:`visible`,children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Xs(e,t){return t=$l({mode:`visible`,children:t},e.mode,0,null),t.return=e,e.child=t}function Zs(e,t,n,r){return r!==null&&Ia(r),Ha(t,e.child,null,n),e=Xs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Qs(e,t,n,i,a,o,s){if(n)return t.flags&256?(t.flags&=-257,i=Ds(Error(r(422))),Zs(e,t,s,i)):t.memoizedState===null?(o=i.fallback,a=t.mode,i=$l({mode:`visible`,children:i.children},a,0,null),o=Ql(o,a,s,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&1&&Ha(t,e.child,null,s),t.child.memoizedState=Js(s),t.memoizedState=qs,o):(t.child=e.child,t.flags|=128,null);if(!(t.mode&1))return Zs(e,t,s,null);if(a.data===`$!`){if(i=a.nextSibling&&a.nextSibling.dataset,i)var c=i.dgst;return i=c,o=Error(r(419)),i=Ds(o,i,void 0),Zs(e,t,s,i)}if(c=(s&e.childLanes)!==0,Is||c){if(i=Wc,i!==null){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(i.suspendedLanes|s))===0?a:0,a!==0&&a!==o.retryLane&&(o.retryLane=a,no(e,a),gl(i,e,a,-1))}return Al(),i=Ds(Error(r(421))),Zs(e,t,s,i)}return a.data===`$?`?(t.flags|=128,t.child=e.child,t=Hl.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,Da=Fi(a.nextSibling),Ea=t,V=!0,H=null,e!==null&&(_a[va++]=ba,_a[va++]=xa,_a[va++]=ya,ba=e.id,xa=e.overflow,ya=t),t=Xs(t,i.children),t.flags|=4096,t)}function $s(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Xa(e.return,t,n)}function ec(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function tc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(J(e,t,r.children,n),r=G.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$s(e,n,t);else if(e.tag===19)$s(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(z(G,r),!(t.mode&1))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&bo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ec(t,!1,i,n,a);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&bo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ec(t,!0,n,null,a);break;case`together`:ec(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function nc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function rc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Xc|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=Xl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Xl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ic(e,t,n){switch(t.tag){case 3:Gs(t),Fa();break;case 5:vo(t);break;case 1:B(t.type)&&aa(t);break;case 4:go(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;z(Wa,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(z(G,G.current&1),e=rc(e,t,n),e===null?null:e.sibling):Ys(e,t,n):(z(G,G.current&1),t.flags|=128,null);z(G,G.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return tc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),z(G,G.current),r)break;return null;case 22:case 23:return t.lanes=0,Bs(e,t,n)}return rc(e,t,n)}var ac=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},oc=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ho(fo.current);var a=null;switch(n){case`input`:i=xe(e,i),r=xe(e,r),a=[];break;case`select`:i=k({},i,{value:void 0}),r=k({},r,{value:void 0}),a=[];break;case`textarea`:i=ke(e,i),r=ke(e,r),a=[];break;default:typeof i.onClick!=`function`&&typeof r.onClick==`function`&&(e.onclick=Ti)}Ve(n,r);var s;for(u in n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u===`style`){var c=i[u];for(s in c)c.hasOwnProperty(s)&&(n||={},n[s]=``)}else u!==`dangerouslySetInnerHTML`&&u!==`children`&&u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&u!==`autoFocus`&&(o.hasOwnProperty(u)?a||=[]:(a||=[]).push(u,null));for(u in r){var l=r[u];if(c=i?.[u],r.hasOwnProperty(u)&&l!==c&&(l!=null||c!=null))if(u===`style`)if(c){for(s in c)!c.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||={},n[s]=``);for(s in l)l.hasOwnProperty(s)&&c[s]!==l[s]&&(n||={},n[s]=l[s])}else n||(a||=[],a.push(u,n)),n=l;else u===`dangerouslySetInnerHTML`?(l=l?l.__html:void 0,c=c?c.__html:void 0,l!=null&&c!==l&&(a||=[]).push(u,l)):u===`children`?typeof l!=`string`&&typeof l!=`number`||(a||=[]).push(u,``+l):u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&(o.hasOwnProperty(u)?(l!=null&&u===`onScroll`&&L(`scroll`,e),a||c===l||(a=[])):(a||=[]).push(u,l))}n&&(a||=[]).push(`style`,n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},sc=function(e,t,n,r){n!==r&&(t.flags|=4)};function cc(e,t){if(!V)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function lc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function uc(e,t,n){var i=t.pendingProps;switch(Ta(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lc(t),null;case 1:return B(t.type)&&na(),lc(t),null;case 3:return i=t.stateNode,_o(),R($i),R(Qi),So(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Na(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,H!==null&&(bl(H),H=null))),lc(t),null;case 5:yo(t);var a=ho(mo.current);if(n=t.type,e!==null&&t.stateNode!=null)oc(e,t,n,i,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(r(166));return lc(t),null}if(e=ho(fo.current),Na(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[Ri]=t,i[zi]=s,e=(t.mode&1)!=0,n){case`dialog`:L(`cancel`,i),L(`close`,i);break;case`iframe`:case`object`:case`embed`:L(`load`,i);break;case`video`:case`audio`:for(a=0;a<ci.length;a++)L(ci[a],i);break;case`source`:L(`error`,i);break;case`img`:case`image`:case`link`:L(`error`,i),L(`load`,i);break;case`details`:L(`toggle`,i);break;case`input`:Se(i,s),L(`invalid`,i);break;case`select`:i._wrapperState={wasMultiple:!!s.multiple},L(`invalid`,i);break;case`textarea`:Ae(i,s),L(`invalid`,i)}for(var c in Ve(n,s),a=null,s)if(s.hasOwnProperty(c)){var l=s[c];c===`children`?typeof l==`string`?i.textContent!==l&&(!0!==s.suppressHydrationWarning&&wi(i.textContent,l,e),a=[`children`,l]):typeof l==`number`&&i.textContent!==``+l&&(!0!==s.suppressHydrationWarning&&wi(i.textContent,l,e),a=[`children`,``+l]):o.hasOwnProperty(c)&&l!=null&&c===`onScroll`&&L(`scroll`,i)}switch(n){case`input`:ve(i),Te(i,s,!0);break;case`textarea`:ve(i),Ne(i);break;case`select`:case`option`:break;default:typeof s.onClick==`function`&&(i.onclick=Ti)}i=a,t.updateQueue=i,i!==null&&(t.flags|=4)}else{c=a.nodeType===9?a:a.ownerDocument,e===`http://www.w3.org/1999/xhtml`&&(e=Pe(n)),e===`http://www.w3.org/1999/xhtml`?n===`script`?(e=c.createElement(`div`),e.innerHTML=`<script><\/script>`,e=e.removeChild(e.firstChild)):typeof i.is==`string`?e=c.createElement(n,{is:i.is}):(e=c.createElement(n),n===`select`&&(c=e,i.multiple?c.multiple=!0:i.size&&(c.size=i.size))):e=c.createElementNS(e,n),e[Ri]=t,e[zi]=i,ac(e,t,!1,!1),t.stateNode=e;a:{switch(c=He(n,i),n){case`dialog`:L(`cancel`,e),L(`close`,e),a=i;break;case`iframe`:case`object`:case`embed`:L(`load`,e),a=i;break;case`video`:case`audio`:for(a=0;a<ci.length;a++)L(ci[a],e);a=i;break;case`source`:L(`error`,e),a=i;break;case`img`:case`image`:case`link`:L(`error`,e),L(`load`,e),a=i;break;case`details`:L(`toggle`,e),a=i;break;case`input`:Se(e,i),a=xe(e,i),L(`invalid`,e);break;case`option`:a=i;break;case`select`:e._wrapperState={wasMultiple:!!i.multiple},a=k({},i,{value:void 0}),L(`invalid`,e);break;case`textarea`:Ae(e,i),a=ke(e,i),L(`invalid`,e);break;default:a=i}for(s in Ve(n,a),l=a,l)if(l.hasOwnProperty(s)){var u=l[s];s===`style`?ze(e,u):s===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,u!=null&&M(e,u)):s===`children`?typeof u==`string`?(n!==`textarea`||u!==``)&&Ie(e,u):typeof u==`number`&&Ie(e,``+u):s!==`suppressContentEditableWarning`&&s!==`suppressHydrationWarning`&&s!==`autoFocus`&&(o.hasOwnProperty(s)?u!=null&&s===`onScroll`&&L(`scroll`,e):u!=null&&x(e,s,u,c))}switch(n){case`input`:ve(e),Te(e,i,!1);break;case`textarea`:ve(e),Ne(e);break;case`option`:i.value!=null&&e.setAttribute(`value`,``+A(i.value));break;case`select`:e.multiple=!!i.multiple,s=i.value,s==null?i.defaultValue!=null&&Oe(e,!!i.multiple,i.defaultValue,!0):Oe(e,!!i.multiple,s,!1);break;default:typeof a.onClick==`function`&&(e.onclick=Ti)}switch(n){case`button`:case`input`:case`select`:case`textarea`:i=!!i.autoFocus;break a;case`img`:i=!0;break a;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return lc(t),null;case 6:if(e&&t.stateNode!=null)sc(e,t,e.memoizedProps,i);else{if(typeof i!=`string`&&t.stateNode===null)throw Error(r(166));if(n=ho(mo.current),ho(fo.current),Na(t)){if(i=t.stateNode,n=t.memoizedProps,i[Ri]=t,(s=i.nodeValue!==n)&&(e=Ea,e!==null))switch(e.tag){case 3:wi(i.nodeValue,n,(e.mode&1)!=0);break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&wi(i.nodeValue,n,(e.mode&1)!=0)}s&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[Ri]=t,t.stateNode=i}return lc(t),null;case 13:if(R(G),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(V&&Da!==null&&t.mode&1&&!(t.flags&128))Pa(),Fa(),t.flags|=98560,s=!1;else if(s=Na(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s===null?null:s.dehydrated,!s)throw Error(r(317));s[Ri]=t}else Fa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;lc(t),s=!1}else H!==null&&(bl(H),H=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||G.current&1?Jc===0&&(Jc=3):Al())),t.updateQueue!==null&&(t.flags|=4),lc(t),null);case 4:return _o(),e===null&&mi(t.stateNode.containerInfo),lc(t),null;case 10:return Ya(t.type._context),lc(t),null;case 17:return B(t.type)&&na(),lc(t),null;case 19:if(R(G),s=t.memoizedState,s===null)return lc(t),null;if(i=(t.flags&128)!=0,c=s.rendering,c===null)if(i)cc(s,!1);else{if(Jc!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=bo(e),c!==null){for(t.flags|=128,cc(s,!1),i=c.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)s=n,e=i,s.flags&=14680066,c=s.alternate,c===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return z(G,G.current&1|2),t.child}e=e.sibling}s.tail!==null&&F()>nl&&(t.flags|=128,i=!0,cc(s,!1),t.lanes=4194304)}else{if(!i)if(e=bo(c),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),cc(s,!0),s.tail===null&&s.tailMode===`hidden`&&!c.alternate&&!V)return lc(t),null}else 2*F()-s.renderingStartTime>nl&&n!==1073741824&&(t.flags|=128,i=!0,cc(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(n=s.last,n===null?t.child=c:n.sibling=c,s.last=c)}return s.tail===null?(lc(t),null):(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=F(),t.sibling=null,n=G.current,z(G,i?n&1|2:n&1),t);case 22:case 23:return El(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?Z&1073741824&&(lc(t),t.subtreeFlags&6&&(t.flags|=8192)):lc(t),null;case 24:return null;case 25:return null}throw Error(r(156,t.tag))}function dc(e,t){switch(Ta(t),t.tag){case 1:return B(t.type)&&na(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _o(),R($i),R(Qi),So(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return yo(t),null;case 13:if(R(G),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return R(G),null;case 4:return _o(),null;case 10:return Ya(t.type._context),null;case 22:case 23:return El(),null;case 24:return null;default:return null}}var fc=!1,pc=!1,mc=typeof WeakSet==`function`?WeakSet:Set,Y=null;function hc(e,t){var n=e.ref;if(n!==null)if(typeof n==`function`)try{n(null)}catch(n){Q(e,t,n)}else n.current=null}function gc(e,t,n){try{n()}catch(n){Q(e,t,n)}}var _c=!1;function vc(e,t){if(Ei=vn,e=zr(),Br(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Di={focusedElem:e,selectionRange:n},vn=!1,Y=t;Y!==null;)if(t=Y,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,_=h.memoizedState,v=t.stateNode;v.__reactInternalSnapshotBeforeUpdate=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:ys(t.type,g),_)}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent=``:y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(e){Q(t,t.return,e)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return h=_c,_c=!1,h}function yc(e,t,n){var r=t.updateQueue;if(r=r===null?null:r.lastEffect,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&gc(t,n,a)}i=i.next}while(i!==r)}}function bc(e,t){if(t=t.updateQueue,t=t===null?null:t.lastEffect,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function xc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t==`function`?t(e):t.current=e}}function Sc(e){var t=e.alternate;t!==null&&(e.alternate=null,Sc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ri],delete t[zi],delete t[Vi],delete t[Hi],delete t[Ui])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Cc(e){return e.tag===5||e.tag===3||e.tag===4}function wc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Cc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Tc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ti));else if(r!==4&&(e=e.child,e!==null))for(Tc(e,t,n),e=e.sibling;e!==null;)Tc(e,t,n),e=e.sibling}function Ec(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ec(e,t,n),e=e.sibling;e!==null;)Ec(e,t,n),e=e.sibling}var Dc=null,Oc=!1;function kc(e,t,n){for(n=n.child;n!==null;)Ac(e,t,n),n=n.sibling}function Ac(e,t,n){if(Ot&&typeof Ot.onCommitFiberUnmount==`function`)try{Ot.onCommitFiberUnmount(Dt,n)}catch{}switch(n.tag){case 5:pc||hc(n,t);case 6:var r=Dc,i=Oc;Dc=null,kc(e,t,n),Dc=r,Oc=i,Dc!==null&&(Oc?(e=Dc,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Dc.removeChild(n.stateNode));break;case 18:Dc!==null&&(Oc?(e=Dc,n=n.stateNode,e.nodeType===8?Pi(e.parentNode,n):e.nodeType===1&&Pi(e,n),gn(e)):Pi(Dc,n.stateNode));break;case 4:r=Dc,i=Oc,Dc=n.stateNode.containerInfo,Oc=!0,kc(e,t,n),Dc=r,Oc=i;break;case 0:case 11:case 14:case 15:if(!pc&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&gc(n,t,o),i=i.next}while(i!==r)}kc(e,t,n);break;case 1:if(!pc&&(hc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Q(n,t,e)}kc(e,t,n);break;case 21:kc(e,t,n);break;case 22:n.mode&1?(pc=(r=pc)||n.memoizedState!==null,kc(e,t,n),pc=r):kc(e,t,n);break;default:kc(e,t,n)}}function jc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new mc),t.forEach(function(t){var r=Ul.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Mc(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];try{var o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 5:Dc=c.stateNode,Oc=!1;break a;case 3:Dc=c.stateNode.containerInfo,Oc=!0;break a;case 4:Dc=c.stateNode.containerInfo,Oc=!0;break a}c=c.return}if(Dc===null)throw Error(r(160));Ac(o,s,a),Dc=null,Oc=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(e){Q(a,t,e)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Nc(t,e),t=t.sibling}function Nc(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Mc(t,e),Pc(e),i&4){try{yc(3,e,e.return),bc(3,e)}catch(t){Q(e,e.return,t)}try{yc(5,e,e.return)}catch(t){Q(e,e.return,t)}}break;case 1:Mc(t,e),Pc(e),i&512&&n!==null&&hc(n,n.return);break;case 5:if(Mc(t,e),Pc(e),i&512&&n!==null&&hc(n,n.return),e.flags&32){var a=e.stateNode;try{Ie(a,``)}catch(t){Q(e,e.return,t)}}if(i&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,s=n===null?o:n.memoizedProps,c=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{c===`input`&&o.type===`radio`&&o.name!=null&&Ce(a,o),He(c,s);var u=He(c,o);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];d===`style`?ze(a,f):d===`dangerouslySetInnerHTML`?M(a,f):d===`children`?Ie(a,f):x(a,d,f,u)}switch(c){case`input`:we(a,o);break;case`textarea`:je(a,o);break;case`select`:var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m==null?p!==!!o.multiple&&(o.defaultValue==null?Oe(a,!!o.multiple,o.multiple?[]:``,!1):Oe(a,!!o.multiple,o.defaultValue,!0)):Oe(a,!!o.multiple,m,!1)}a[zi]=o}catch(t){Q(e,e.return,t)}}break;case 6:if(Mc(t,e),Pc(e),i&4){if(e.stateNode===null)throw Error(r(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(t){Q(e,e.return,t)}}break;case 3:if(Mc(t,e),Pc(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{gn(t.containerInfo)}catch(t){Q(e,e.return,t)}break;case 4:Mc(t,e),Pc(e);break;case 13:Mc(t,e),Pc(e),a=e.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||(tl=F())),i&4&&jc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(pc=(u=pc)||d,Mc(t,e),pc=u):Mc(t,e),Pc(e),i&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(Y=e,d=e.child;d!==null;){for(f=Y=d;Y!==null;){switch(p=Y,m=p.child,p.tag){case 0:case 11:case 14:case 15:yc(4,p,p.return);break;case 1:hc(p,p.return);var h=p.stateNode;if(typeof h.componentWillUnmount==`function`){i=p,n=p.return;try{t=i,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){Q(i,n,e)}}break;case 5:hc(p,p.return);break;case 22:if(p.memoizedState!==null){Rc(f);continue}}m===null?Rc(f):(m.return=p,Y=m)}d=d.sibling}a:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{a=f.stateNode,u?(o=a.style,typeof o.setProperty==`function`?o.setProperty(`display`,`none`,`important`):o.display=`none`):(c=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty(`display`)?l.display:null,c.style.display=Re(`display`,s))}catch(t){Q(e,e.return,t)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?``:f.memoizedProps}catch(t){Q(e,e.return,t)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break a;for(;f.sibling===null;){if(f.return===null||f.return===e)break a;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Mc(t,e),Pc(e),i&4&&jc(e);break;case 21:break;default:Mc(t,e),Pc(e)}}function Pc(e){var t=e.flags;if(t&2){try{a:{for(var n=e.return;n!==null;){if(Cc(n)){var i=n;break a}n=n.return}throw Error(r(160))}switch(i.tag){case 5:var a=i.stateNode;i.flags&32&&(Ie(a,``),i.flags&=-33),Ec(e,wc(e),a);break;case 3:case 4:var o=i.stateNode.containerInfo;Tc(e,wc(e),o);break;default:throw Error(r(161))}}catch(t){Q(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Fc(e,t,n){Y=e,Ic(e,t,n)}function Ic(e,t,n){for(var r=(e.mode&1)!=0;Y!==null;){var i=Y,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||fc;if(!o){var s=i.alternate,c=s!==null&&s.memoizedState!==null||pc;s=fc;var l=pc;if(fc=o,(pc=c)&&!l)for(Y=i;Y!==null;)o=Y,c=o.child,o.tag===22&&o.memoizedState!==null||c===null?zc(i):(c.return=o,Y=c);for(;a!==null;)Y=a,Ic(a,t,n),a=a.sibling;Y=i,fc=s,pc=l}Lc(e,t,n)}else i.subtreeFlags&8772&&a!==null?(a.return=i,Y=a):Lc(e,t,n)}}function Lc(e){for(;Y!==null;){var t=Y;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:pc||bc(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!pc)if(n===null)i.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:ys(t.type,n.memoizedProps);i.componentDidUpdate(a,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&lo(t,o,i);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}lo(t,s,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;var l=t.memoizedProps;switch(t.type){case`button`:case`input`:case`select`:case`textarea`:l.autoFocus&&n.focus();break;case`img`:l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&gn(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}pc||t.flags&512&&xc(t)}catch(e){Q(t,t.return,e)}}if(t===e){Y=null;break}if(n=t.sibling,n!==null){n.return=t.return,Y=n;break}Y=t.return}}function Rc(e){for(;Y!==null;){var t=Y;if(t===e){Y=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Y=n;break}Y=t.return}}function zc(e){for(;Y!==null;){var t=Y;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{bc(4,t)}catch(e){Q(t,n,e)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==`function`){var i=t.return;try{r.componentDidMount()}catch(e){Q(t,i,e)}}var a=t.return;try{xc(t)}catch(e){Q(t,a,e)}break;case 5:var o=t.return;try{xc(t)}catch(e){Q(t,o,e)}}}catch(e){Q(t,t.return,e)}if(t===e){Y=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Y=s;break}Y=t.return}}var Bc=Math.ceil,Vc=S.ReactCurrentDispatcher,Hc=S.ReactCurrentOwner,Uc=S.ReactCurrentBatchConfig,X=0,Wc=null,Gc=null,Kc=0,Z=0,qc=Xi(0),Jc=0,Yc=null,Xc=0,Zc=0,Qc=0,$c=null,el=null,tl=0,nl=1/0,rl=null,il=!1,al=null,ol=null,sl=!1,cl=null,ll=0,ul=0,dl=null,fl=-1,pl=0;function ml(){return X&6?F():fl===-1?fl=F():fl}function hl(e){return e.mode&1?X&2&&Kc!==0?Kc&-Kc:La.transition===null?(e=I,e===0?(e=window.event,e=e===void 0?16:wn(e.type),e):e):(pl===0&&(pl=Vt()),pl):1}function gl(e,t,n,i){if(50<ul)throw ul=0,dl=null,Error(r(185));Ut(e,n,i),(!(X&2)||e!==Wc)&&(e===Wc&&(!(X&2)&&(Zc|=n),Jc===4&&Sl(e,Kc)),_l(e,i),n===1&&X===0&&!(t.mode&1)&&(nl=F()+500,ca&&fa()))}function _l(e,t){var n=e.callbackNode;zt(e,t);var r=Lt(e,e===Wc?Kc:0);if(r===0)n!==null&&vt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&vt(n),t===1)e.tag===0?da(Cl.bind(null,e)):ua(Cl.bind(null,e)),Mi(function(){!(X&6)&&fa()}),n=null;else{switch(Kt(r)){case 1:n=St;break;case 4:n=Ct;break;case 16:n=wt;break;case 536870912:n=Et;break;default:n=wt}n=Gl(n,vl.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function vl(e,t){if(fl=-1,pl=0,X&6)throw Error(r(327));var n=e.callbackNode;if(Rl()&&e.callbackNode!==n)return null;var i=Lt(e,e===Wc?Kc:0);if(i===0)return null;if(i&30||(i&e.expiredLanes)!==0||t)t=jl(e,i);else{t=i;var a=X;X|=2;var o=kl();(Wc!==e||Kc!==t)&&(rl=null,nl=F()+500,Dl(e,t));do try{Nl();break}catch(t){Ol(e,t)}while(1);Ja(),Vc.current=o,X=a,Gc===null?(Wc=null,Kc=0,t=Jc):t=0}if(t!==0){if(t===2&&(a=Bt(e),a!==0&&(i=a,t=yl(e,a))),t===1)throw n=Yc,Dl(e,0),Sl(e,i),_l(e,F()),n;if(t===6)Sl(e,i);else{if(a=e.current.alternate,!(i&30)&&!xl(a)&&(t=jl(e,i),t===2&&(o=Bt(e),o!==0&&(i=o,t=yl(e,o))),t===1))throw n=Yc,Dl(e,0),Sl(e,i),_l(e,F()),n;switch(e.finishedWork=a,e.finishedLanes=i,t){case 0:case 1:throw Error(r(345));case 2:Il(e,el,rl);break;case 3:if(Sl(e,i),(i&130023424)===i&&(t=tl+500-F(),10<t)){if(Lt(e,0)!==0)break;if(a=e.suspendedLanes,(a&i)!==i){ml(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=ki(Il.bind(null,e,el,rl),t);break}Il(e,el,rl);break;case 4:if(Sl(e,i),(i&4194240)===i)break;for(t=e.eventTimes,a=-1;0<i;){var s=31-At(i);o=1<<s,s=t[s],s>a&&(a=s),i&=~o}if(i=a,i=F()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Bc(i/1960))-i,10<i){e.timeoutHandle=ki(Il.bind(null,e,el,rl),i);break}Il(e,el,rl);break;case 5:Il(e,el,rl);break;default:throw Error(r(329))}}}return _l(e,F()),e.callbackNode===n?vl.bind(null,e):null}function yl(e,t){var n=$c;return e.current.memoizedState.isDehydrated&&(Dl(e,t).flags|=256),e=jl(e,t),e!==2&&(t=el,el=n,t!==null&&bl(t)),e}function bl(e){el===null?el=e:el.push.apply(el,e)}function xl(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Pr(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Sl(e,t){for(t&=~Qc,t&=~Zc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-At(t),r=1<<n;e[n]=-1,t&=~r}}function Cl(e){if(X&6)throw Error(r(327));Rl();var t=Lt(e,0);if(!(t&1))return _l(e,F()),null;var n=jl(e,t);if(e.tag!==0&&n===2){var i=Bt(e);i!==0&&(t=i,n=yl(e,i))}if(n===1)throw n=Yc,Dl(e,0),Sl(e,t),_l(e,F()),n;if(n===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Il(e,el,rl),_l(e,F()),null}function wl(e,t){var n=X;X|=1;try{return e(t)}finally{X=n,X===0&&(nl=F()+500,ca&&fa())}}function Tl(e){cl!==null&&cl.tag===0&&!(X&6)&&Rl();var t=X;X|=1;var n=Uc.transition,r=I;try{if(Uc.transition=null,I=1,e)return e()}finally{I=r,Uc.transition=n,X=t,!(X&6)&&fa()}}function El(){Z=qc.current,R(qc)}function Dl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ai(n)),Gc!==null)for(n=Gc.return;n!==null;){var r=n;switch(Ta(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&na();break;case 3:_o(),R($i),R(Qi),So();break;case 5:yo(r);break;case 4:_o();break;case 13:R(G);break;case 19:R(G);break;case 10:Ya(r.type._context);break;case 22:case 23:El()}n=n.return}if(Wc=e,Gc=e=Xl(e.current,null),Kc=Z=t,Jc=0,Yc=null,Qc=Zc=Xc=0,el=$c=null,$a!==null){for(t=0;t<$a.length;t++)if(n=$a[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}$a=null}return e}function Ol(e,t){do{var n=Gc;try{if(Ja(),Co.current=hs,Oo){for(var i=K.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}Oo=!1}if(To=0,Do=Eo=K=null,ko=!1,Ao=0,Hc.current=null,n===null||n.return===null){Jc=1,Yc=t,Gc=null;break}a:{var o=e,s=n.return,c=n,l=t;if(t=Kc,c.flags|=32768,typeof l==`object`&&l&&typeof l.then==`function`){var u=l,d=c,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=Ns(s);if(m!==null){m.flags&=-257,Ps(m,s,c,o,t),m.mode&1&&Ms(o,u,t),t=m,l=u;var h=t.updateQueue;if(h===null){var g=new Set;g.add(l),t.updateQueue=g}else h.add(l);break a}else{if(!(t&1)){Ms(o,u,t),Al();break a}l=Error(r(426))}}else if(V&&c.mode&1){var _=Ns(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Ps(_,s,c,o,t),Ia(Es(l,c));break a}}o=l=Es(l,c),Jc!==4&&(Jc=2),$c===null?$c=[o]:$c.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=As(o,l,t);so(o,v);break a;case 1:c=l;var y=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError==`function`||b!==null&&typeof b.componentDidCatch==`function`&&(ol===null||!ol.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=js(o,c,t);so(o,x);break a}}o=o.return}while(o!==null)}Fl(n)}catch(e){t=e,Gc===n&&n!==null&&(Gc=n=n.return);continue}break}while(1)}function kl(){var e=Vc.current;return Vc.current=hs,e===null?hs:e}function Al(){(Jc===0||Jc===3||Jc===2)&&(Jc=4),Wc===null||!(Xc&268435455)&&!(Zc&268435455)||Sl(Wc,Kc)}function jl(e,t){var n=X;X|=2;var i=kl();(Wc!==e||Kc!==t)&&(rl=null,Dl(e,t));do try{Ml();break}catch(t){Ol(e,t)}while(1);if(Ja(),X=n,Vc.current=i,Gc!==null)throw Error(r(261));return Wc=null,Kc=0,Jc}function Ml(){for(;Gc!==null;)Pl(Gc)}function Nl(){for(;Gc!==null&&!yt();)Pl(Gc)}function Pl(e){var t=Wl(e.alternate,e,Z);e.memoizedProps=e.pendingProps,t===null?Fl(e):Gc=t,Hc.current=null}function Fl(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=dc(n,t),n!==null){n.flags&=32767,Gc=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Jc=6,Gc=null;return}}else if(n=uc(n,t,Z),n!==null){Gc=n;return}if(t=t.sibling,t!==null){Gc=t;return}Gc=t=e}while(t!==null);Jc===0&&(Jc=5)}function Il(e,t,n){var r=I,i=Uc.transition;try{Uc.transition=null,I=1,Ll(e,t,n,r)}finally{Uc.transition=i,I=r}return null}function Ll(e,t,n,i){do Rl();while(cl!==null);if(X&6)throw Error(r(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Wt(e,o),e===Wc&&(Gc=Wc=null,Kc=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||sl||(sl=!0,Gl(wt,function(){return Rl(),null})),o=(n.flags&15990)!=0,n.subtreeFlags&15990||o){o=Uc.transition,Uc.transition=null;var s=I;I=1;var c=X;X|=4,Hc.current=null,vc(e,n),Nc(n,e),Vr(Di),vn=!!Ei,Di=Ei=null,e.current=n,Fc(n,e,a),bt(),X=c,I=s,Uc.transition=o}else e.current=n;if(sl&&(sl=!1,cl=e,ll=a),o=e.pendingLanes,o===0&&(ol=null),kt(n.stateNode,i),_l(e,F()),t!==null)for(i=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],i(a.value,{componentStack:a.stack,digest:a.digest});if(il)throw il=!1,e=al,al=null,e;return ll&1&&e.tag!==0&&Rl(),o=e.pendingLanes,o&1?e===dl?ul++:(ul=0,dl=e):ul=0,fa(),null}function Rl(){if(cl!==null){var e=Kt(ll),t=Uc.transition,n=I;try{if(Uc.transition=null,I=16>e?16:e,cl===null)var i=!1;else{if(e=cl,cl=null,ll=0,X&6)throw Error(r(331));var a=X;for(X|=4,Y=e.current;Y!==null;){var o=Y,s=o.child;if(Y.flags&16){var c=o.deletions;if(c!==null){for(var l=0;l<c.length;l++){var u=c[l];for(Y=u;Y!==null;){var d=Y;switch(d.tag){case 0:case 11:case 15:yc(8,d,o)}var f=d.child;if(f!==null)f.return=d,Y=f;else for(;Y!==null;){d=Y;var p=d.sibling,m=d.return;if(Sc(d),d===u){Y=null;break}if(p!==null){p.return=m,Y=p;break}Y=m}}}var h=o.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var _=g.sibling;g.sibling=null,g=_}while(g!==null)}}Y=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,Y=s;else b:for(;Y!==null;){if(o=Y,o.flags&2048)switch(o.tag){case 0:case 11:case 15:yc(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,Y=v;break b}Y=o.return}}var y=e.current;for(Y=y;Y!==null;){s=Y;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,Y=b;else b:for(s=y;Y!==null;){if(c=Y,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:bc(9,c)}}catch(e){Q(c,c.return,e)}if(c===s){Y=null;break b}var x=c.sibling;if(x!==null){x.return=c.return,Y=x;break b}Y=c.return}}if(X=a,fa(),Ot&&typeof Ot.onPostCommitFiberRoot==`function`)try{Ot.onPostCommitFiberRoot(Dt,e)}catch{}i=!0}return i}finally{I=n,Uc.transition=t}}return!1}function zl(e,t,n){t=Es(n,t),t=As(e,t,1),e=oo(e,t,1),t=ml(),e!==null&&(Ut(e,1,t),_l(e,t))}function Q(e,t,n){if(e.tag===3)zl(e,e,n);else for(;t!==null;){if(t.tag===3){zl(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(ol===null||!ol.has(r))){e=Es(n,e),e=js(t,e,1),t=oo(t,e,1),e=ml(),t!==null&&(Ut(t,1,e),_l(t,e));break}}t=t.return}}function Bl(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ml(),e.pingedLanes|=e.suspendedLanes&n,Wc===e&&(Kc&n)===n&&(Jc===4||Jc===3&&(Kc&130023424)===Kc&&500>F()-tl?Dl(e,0):Qc|=n),_l(e,t)}function Vl(e,t){t===0&&(e.mode&1?(t=Ft,Ft<<=1,!(Ft&130023424)&&(Ft=4194304)):t=1);var n=ml();e=no(e,t),e!==null&&(Ut(e,t,n),_l(e,n))}function Hl(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Vl(e,n)}function Ul(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(r(314))}i!==null&&i.delete(t),Vl(e,n)}var Wl=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||$i.current)Is=!0;else{if((e.lanes&n)===0&&!(t.flags&128))return Is=!1,ic(e,t,n);Is=!!(e.flags&131072)}else Is=!1,V&&t.flags&1048576&&Ca(t,ga,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;nc(e,t),e=t.pendingProps;var a=ta(t,Qi.current);Za(t,n),a=Po(null,t,i,e,a,n);var o=Fo();return t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,B(i)?(o=!0,aa(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,ro(t),a.updater=xs,t.stateNode=a,a._reactInternals=t,Ts(t,i,e,n),t=Ws(null,t,i,!0,o,n)):(t.tag=0,V&&o&&wa(t),J(null,t,a,n),t=t.child),t;case 16:i=t.elementType;a:{switch(nc(e,t),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=Yl(i),e=ys(i,e),a){case 0:t=Hs(null,t,i,e,n);break a;case 1:t=Us(null,t,i,e,n);break a;case 11:t=Ls(null,t,i,e,n);break a;case 14:t=Rs(null,t,i,ys(i.type,e),n);break a}throw Error(r(306,i,``))}return t;case 0:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ys(i,a),Hs(e,t,i,a,n);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ys(i,a),Us(e,t,i,a,n);case 3:a:{if(Gs(t),e===null)throw Error(r(387));i=t.pendingProps,o=t.memoizedState,a=o.element,io(e,t),co(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Es(Error(r(423)),t),t=Ks(e,t,i,n,a);break a}else if(i!==a){a=Es(Error(r(424)),t),t=Ks(e,t,i,n,a);break a}else for(Da=Fi(t.stateNode.containerInfo.firstChild),Ea=t,V=!0,H=null,n=Ua(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Fa(),i===a){t=rc(e,t,n);break a}J(e,t,i,n)}t=t.child}return t;case 5:return vo(t),e===null&&ja(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,Oi(i,a)?s=null:o!==null&&Oi(i,o)&&(t.flags|=32),Vs(e,t),J(e,t,s,n),t.child;case 6:return e===null&&ja(t),null;case 13:return Ys(e,t,n);case 4:return go(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ha(t,null,i,n):J(e,t,i,n),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ys(i,a),Ls(e,t,i,a,n);case 7:return J(e,t,t.pendingProps,n),t.child;case 8:return J(e,t,t.pendingProps.children,n),t.child;case 12:return J(e,t,t.pendingProps.children,n),t.child;case 10:a:{if(i=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,z(Wa,i._currentValue),i._currentValue=s,o!==null)if(Pr(o.value,s)){if(o.children===a.children&&!$i.current){t=rc(e,t,n);break a}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){s=o.child;for(var l=c.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=ao(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Xa(o.return,n,t),c.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(r(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),Xa(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}J(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,Za(t,n),a=Qa(a),i=i(a),t.flags|=1,J(e,t,i,n),t.child;case 14:return i=t.type,a=ys(i,t.pendingProps),a=ys(i.type,a),Rs(e,t,i,a,n);case 15:return zs(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ys(i,a),nc(e,t),t.tag=1,B(i)?(e=!0,aa(t)):e=!1,Za(t,n),Cs(t,i,a),Ts(t,i,a,n),Ws(null,t,i,!0,e,n);case 19:return tc(e,t,n);case 22:return Bs(e,t,n)}throw Error(r(156,t.tag))};function Gl(e,t){return _t(e,t)}function Kl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ql(e,t,n,r){return new Kl(e,t,n,r)}function Jl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Yl(e){if(typeof e==`function`)return+!!Jl(e);if(e!=null){if(e=e.$$typeof,e===ne)return 11;if(e===ae)return 14}return 2}function Xl(e,t){var n=e.alternate;return n===null?(n=ql(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Zl(e,t,n,i,a,o){var s=2;if(i=e,typeof e==`function`)Jl(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case T:return Ql(n.children,a,o,t);case E:s=8,a|=8;break;case ee:return e=ql(12,n,t,a|2),e.elementType=ee,e.lanes=o,e;case re:return e=ql(13,n,t,a),e.elementType=re,e.lanes=o,e;case ie:return e=ql(19,n,t,a),e.elementType=ie,e.lanes=o,e;case oe:return $l(n,a,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case te:s=10;break a;case D:s=9;break a;case ne:s=11;break a;case ae:s=14;break a;case O:s=16,i=null;break a}throw Error(r(130,e==null?e:typeof e,``))}return t=ql(s,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function Ql(e,t,n,r){return e=ql(7,e,r,t),e.lanes=n,e}function $l(e,t,n,r){return e=ql(22,e,r,t),e.elementType=oe,e.lanes=n,e.stateNode={isHidden:!1},e}function eu(e,t,n){return e=ql(6,e,null,t),e.lanes=n,e}function tu(e,t,n){return t=ql(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function nu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ht(0),this.expirationTimes=Ht(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ht(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ru(e,t,n,r,i,a,o,s,c){return e=new nu(e,t,n,s,c),t===1?(t=1,!0===a&&(t|=8)):t=0,a=ql(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ro(a),e}function iu(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:w,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function au(e){if(!e)return Zi;e=e._reactInternals;a:{if(dt(e)!==e||e.tag!==1)throw Error(r(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break a;case 1:if(B(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break a}}t=t.return}while(t!==null);throw Error(r(171))}if(e.tag===1){var n=e.type;if(B(n))return ia(e,n,t)}return t}function ou(e,t,n,r,i,a,o,s,c){return e=ru(n,r,!0,e,i,a,o,s,c),e.context=au(null),n=e.current,r=ml(),i=hl(n),a=ao(r,i),a.callback=t??null,oo(n,a,i),e.current.lanes=i,Ut(e,i,r),_l(e,r),e}function su(e,t,n,r){var i=t.current,a=ml(),o=hl(i);return n=au(n),t.context===null?t.context=n:t.pendingContext=n,t=ao(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=oo(i,t,o),e!==null&&(gl(e,i,o,a),W(e,i,o)),o}function cu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function lu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function uu(e,t){lu(e,t),(e=e.alternate)&&lu(e,t)}function du(){return null}var fu=typeof reportError==`function`?reportError:function(e){console.error(e)};function pu(e){this._internalRoot=e}$.prototype.render=pu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));su(e,t,null,null)},$.prototype.unmount=pu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Tl(function(){su(null,e,null,null)}),t[Bi]=null}};function $(e){this._internalRoot=e}$.prototype.unstable_scheduleHydration=function(e){if(e){var t=Xt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<on.length&&t!==0&&t<on[n].priority;n++);on.splice(n,0,e),n===0&&dn(e)}};function mu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function hu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function gu(){}function _u(e,t,n,r,i){if(i){if(typeof r==`function`){var a=r;r=function(){var e=cu(o);a.call(e)}}var o=ou(t,r,e,0,null,!1,!1,``,gu);return e._reactRootContainer=o,e[Bi]=o.current,mi(e.nodeType===8?e.parentNode:e),Tl(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r==`function`){var s=r;r=function(){var e=cu(c);s.call(e)}}var c=ru(e,0,!1,null,null,!1,!1,``,gu);return e._reactRootContainer=c,e[Bi]=c.current,mi(e.nodeType===8?e.parentNode:e),Tl(function(){su(t,c,n,r)}),c}function vu(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i==`function`){var s=i;i=function(){var e=cu(o);s.call(e)}}su(t,o,e,i)}else o=_u(n,t,e,i,r);return cu(o)}qt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=It(t.pendingLanes);n!==0&&(Gt(t,n|1),_l(t,F()),!(X&6)&&(nl=F()+500,fa()))}break;case 13:Tl(function(){var t=no(e,1);t!==null&&gl(t,e,1,ml())}),uu(e,1)}},Jt=function(e){if(e.tag===13){var t=no(e,134217728);t!==null&&gl(t,e,134217728,ml()),uu(e,134217728)}},Yt=function(e){if(e.tag===13){var t=hl(e),n=no(e,t);n!==null&&gl(n,e,t,ml()),uu(e,t)}},Xt=function(){return I},Zt=function(e,t){var n=I;try{return I=e,t()}finally{I=n}},P=function(e,t,n){switch(t){case`input`:if(we(e,n),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name=`+JSON.stringify(``+t)+`][type="radio"]`),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=qi(i);if(!a)throw Error(r(90));ye(i),we(i,a)}}}break;case`textarea`:je(e,n);break;case`select`:t=n.value,t!=null&&Oe(e,!!n.multiple,t,!1)}},Xe=wl,Ze=Tl;var yu={usingClientEntryPoint:!1,Events:[Gi,Ki,qi,Je,Ye,wl]},bu={findFiberByHostInstance:Wi,bundleType:0,version:`18.3.1`,rendererPackageName:`react-dom`},xu={bundleType:bu.bundleType,version:bu.version,rendererPackageName:bu.rendererPackageName,rendererConfig:bu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:S.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ht(e),e===null?null:e.stateNode},findFiberByHostInstance:bu.findFiberByHostInstance||du,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:`18.3.1-next-f1338f8080-20240426`};
9if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Su.isDisabled&&Su.supportsFiber)try{Dt=Su.inject(xu),Ot=Su}catch{}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yu,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!mu(t))throw Error(r(200));return iu(e,t,null,n)},e.createRoot=function(e,t){if(!mu(e))throw Error(r(299));var n=!1,i=``,a=fu;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=ru(e,1,!1,null,null,n,!1,i,a),e[Bi]=t.current,mi(e.nodeType===8?e.parentNode:e),new pu(t)},e.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(r(188)):(e=Object.keys(e).join(`,`),Error(r(268,e)));return e=ht(t),e=e===null?null:e.stateNode,e},e.flushSync=function(e){return Tl(e)},e.hydrate=function(e,t,n){if(!hu(t))throw Error(r(200));return vu(null,e,t,!0,n)},e.hydrateRoot=function(e,t,n){if(!mu(e))throw Error(r(405));var i=n!=null&&n.hydratedSources||null,a=!1,o=``,s=fu;if(n!=null&&(!0===n.unstable_strictMode&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=ou(t,null,e,1,n??null,a,!1,o,s),e[Bi]=t.current,mi(e),i)for(e=0;e<i.length;e++)n=i[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new $(t)},e.render=function(e,t,n){if(!hu(t))throw Error(r(200));return vu(null,e,t,!1,n)},e.unmountComponentAtNode=function(e){if(!hu(e))throw Error(r(40));return e._reactRootContainer?(Tl(function(){vu(null,null,e,!1,function(){e._reactRootContainer=null,e[Bi]=null})}),!0):!1},e.unstable_batchedUpdates=wl,e.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!hu(n))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return vu(e,t,n,!1,i)},e.version=`18.3.1-next-f1338f8080-20240426`})),Pe=n(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Ne()})),Fe=r(Pe());function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j.apply(null,arguments)}var M;(function(e){e.Pop=`POP`,e.Push=`PUSH`,e.Replace=`REPLACE`})(M||={});var Ie=`popstate`;function Le(e){e===void 0&&(e={});function t(e,t){let{pathname:n,search:r,hash:i}=e.location;return Ve(``,{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||`default`)}function n(e,t){return typeof t==`string`?t:He(t)}return We(t,n,null,e)}function N(e,t){if(e===!1||e==null)throw Error(t)}function Re(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function ze(){return Math.random().toString(36).substr(2,8)}function Be(e,t){return{usr:e.state,key:e.key,idx:t}}function Ve(e,t,n,r){return n===void 0&&(n=null),j({pathname:typeof e==`string`?e:e.pathname,search:``,hash:``},typeof t==`string`?Ue(t):t,{state:n,key:t&&t.key||r||ze()})}function He(e){let{pathname:t=`/`,search:n=``,hash:r=``}=e;return n&&n!==`?`&&(t+=n.charAt(0)===`?`?n:`?`+n),r&&r!==`#`&&(t+=r.charAt(0)===`#`?r:`#`+r),t}function Ue(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function We(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=M.Pop,c=null,l=u();l??(l=0,o.replaceState(j({},o.state,{idx:l}),``));function u(){return(o.state||{idx:null}).idx}function d(){s=M.Pop;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=M.Push;let r=Ve(h.location,e,t);n&&n(r,e),l=u()+1;let d=Be(r,l),f=h.createHref(r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=M.Replace;let r=Ve(h.location,e,t);n&&n(r,e),l=u();let i=Be(r,l),d=h.createHref(r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){let t=i.location.origin===`null`?i.location.href:i.location.origin,n=typeof e==`string`?e:He(e);return n=n.replace(/ $/,`%20`),N(t,`No window.location.(origin|href) available to create URL for href: `+n),new URL(n,t)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(Ie,d),c=e,()=>{i.removeEventListener(Ie,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}var P;(function(e){e.data=`data`,e.deferred=`deferred`,e.redirect=`redirect`,e.error=`error`})(P||={});var Ge=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`]);function Ke(e){return e.index===!0}function qe(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((e,i)=>
vendor: 32,110 bytes, lines 9-10
9{let a=[...n,String(i)],o=typeof e.id==`string`?e.id:a.join(`-`);if(N(e.index!==!0||!e.children,`Cannot specify children on an index route`),N(!r[o],`Found a route id collision on id "`+o+`".  Route id's must be globally unique within Data Router usages`),Ke(e)){let n=j({},e,t(e),{id:o});return r[o]=n,n}else{let n=j({},e,t(e),{id:o,children:void 0});return r[o]=n,e.children&&(n.children=qe(e.children,t,a,r)),n}})}function Je(e,t,n){return n===void 0&&(n=`/`),Ye(e,t,n,!1)}function Ye(e,t,n,r){let i=pt((typeof t==`string`?Ue(t):t).pathname||`/`,n);if(i==null)return null;let a=Ze(e);$e(a);let o=null,s=ft(i);for(let e=0;o==null&&e<a.length;++e)o=lt(a[e],s,r);return o}function Xe(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function Ze(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r=``);let i=(e,i,a)=>{let o={relativePath:a===void 0?e.path||``:a,caseSensitive:e.caseSensitive===!0,childrenIndex:i,route:e};o.relativePath.startsWith(`/`)&&(N(o.relativePath.startsWith(r),`Absolute route path "`+o.relativePath+`" nested under path `+(`"`+r+`" is not valid. An absolute child route path `)+`must start with the combined path of all its parent routes.`),o.relativePath=o.relativePath.slice(r.length));let s=St([r,o.relativePath]),c=n.concat(o);e.children&&e.children.length>0&&(N(e.index!==!0,`Index routes must not have child routes. Please remove `+(`all child routes from route path "`+s+`".`)),Ze(e.children,t,c,s)),!(e.path==null&&!e.index)&&t.push({path:s,score:st(s,e.index),routesMeta:c})};return e.forEach((e,t)=>{var n;if(e.path===``||!((n=e.path)!=null&&n.includes(`?`)))i(e,t);else for(let n of Qe(e.path))i(e,t,n)}),t}function Qe(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=Qe(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function $e(e){e.sort((e,t)=>e.score===t.score?ct(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var et=/^:[\w-]+$/,tt=3,nt=2,rt=1,it=10,at=-2,ot=e=>e===`*`;function st(e,t){let n=e.split(`/`),r=n.length;return n.some(ot)&&(r+=at),t&&(r+=nt),n.filter(e=>!ot(e)).reduce((e,t)=>e+(et.test(t)?tt:t===``?rt:it),r)}function ct(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function lt(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u=ut({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),d=s.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=ut({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!u)return null;Object.assign(i,u.params),o.push({params:i,pathname:St([a,u.pathname]),pathnameBase:Ct(St([a,u.pathnameBase])),route:d}),u.pathnameBase!==`/`&&(a=St([a,u.pathnameBase]))}return o}function ut(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=dt(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,t,n)=>{let{paramName:r,isOptional:i}=t;if(r===`*`){let e=s[n]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let c=s[n];return i&&!c?e[r]=void 0:e[r]=(c||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function dt(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Re(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "`+e+`" will be treated as if it were `+(`"`+e.replace(/\*$/,`/*`)+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+(`please change the route path to "`+e.replace(/\*$/,`/*`)+`".`));let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:n!=null}),n?`/?([^\\/]+)?`:`/([^\\/]+)`));return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function ft(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return Re(!1,`The URL path "`+e+`" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent `+(`encoding (`+t+`).`)),e}}function pt(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}var mt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ht=e=>mt.test(e);function gt(e,t){t===void 0&&(t=`/`);let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?Ue(e):e,a;if(n)if(ht(n))a=n;else{if(n.includes(`//`)){let e=n;n=xt(n),Re(!1,`Pathnames cannot have embedded double slashes - normalizing `+(e+` -> `+n))}a=n.startsWith(`/`)?_t(n.substring(1),`/`):_t(n,t)}else a=t;return{pathname:a,search:wt(r),hash:Tt(i)}}function _t(e,t){let n=t.replace(/\/+$/,``).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function vt(e,t,n,r){return`Cannot include a '`+e+`' character in a manually specified `+("`to."+t+"` field ["+JSON.stringify(r)+`].  Please separate it out to the `)+("`to."+n+"` field. Alternatively you may provide the full path as ")+`a string in <Link to="..."> and the router will parse it for you.`}function yt(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function bt(e,t){let n=yt(e);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function F(e,t,n,r){r===void 0&&(r=!1);let i;typeof e==`string`?i=Ue(e):(i=j({},e),N(!i.pathname||!i.pathname.includes(`?`),vt(`?`,`pathname`,`search`,i)),N(!i.pathname||!i.pathname.includes(`#`),vt(`#`,`pathname`,`hash`,i)),N(!i.search||!i.search.includes(`#`),vt(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=gt(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var xt=e=>e.replace(/\/\/+/g,`/`),St=e=>xt(e.join(`/`)),Ct=e=>e.replace(/\/+$/,``).replace(/^\/*/,`/`),wt=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Tt=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Et=class{constructor(e,t,n,r){r===void 0&&(r=!1),this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Dt(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}var Ot=[`post`,`put`,`patch`,`delete`],kt=new Set(Ot),At=[`get`,...Ot],jt=new Set(At),Mt=new Set([301,302,303,307,308]),Nt=new Set([307,308]),Pt={state:`idle`,location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ft={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},It={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},Lt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Rt=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),zt=`remix-router-transitions`;function Bt(e){let t=e.window?e.window:typeof window<`u`?window:void 0,n=t!==void 0&&t.document!==void 0&&t.document.createElement!==void 0,r=!n;N(e.routes.length>0,`You must provide a non-empty routes array to createRouter`);let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;i=e=>({hasErrorBoundary:t(e)})}else i=Rt;let a={},o=qe(e.routes,i,void 0,a),s,c=e.basename||`/`,l=e.dataStrategy||Qt,u=e.patchRoutesOnNavigation,d=j({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),f=null,p=new Set,m=null,h=null,g=null,_=e.hydrationData!=null,v=Je(o,e.history.location,c),y=!1,b=null;if(v==null&&!u){let t=mn(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=pn(o);v=n,b={[r.id]:t}}v&&!e.hydrationData&&it(v,o,e.history.location.pathname).active&&(v=null);let x;if(!v){if(x=!1,v=[],d.v7_partialHydration){let t=it(null,o,e.history.location.pathname);t.active&&t.matches&&(y=!0,v=t.matches)}}else if(v.some(e=>e.route.lazy))x=!1;else if(!v.some(e=>e.route.loader))x=!0;else if(d.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=v.findIndex(e=>n[e.route.id]!==void 0);x=v.slice(0,e+1).every(e=>!I(e.route,t,n))}else x=v.every(e=>!I(e.route,t,n))}else x=e.hydrationData!=null;let S,C={historyAction:e.history.action,location:e.history.location,matches:v,initialized:x,navigation:Pt,restoreScrollPosition:e.hydrationData==null&&null,preventScrollReset:!1,revalidation:`idle`,loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||b,fetchers:new Map,blockers:new Map},w=M.Pop,T=!1,E,ee=!1,te=new Map,D=null,ne=!1,re=!1,ie=[],ae=new Set,O=new Map,oe=0,se=-1,ce=new Map,k=new Set,le=new Map,ue=new Map,de=new Set,fe=new Map,pe=new Map,me;function he(){if(f=e.history.listen(t=>{let{action:n,location:r,delta:i}=t;if(me){me(),me=void 0;return}Re(pe.size===0||i!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let a=Ze({currentLocation:C.location,nextLocation:r,historyAction:n});if(a&&i!=null){let t=new Promise(e=>{me=e});e.history.go(i*-1),Ke(a,{state:`blocked`,location:r,proceed(){Ke(a,{state:`proceeding`,proceed:void 0,reset:void 0,location:r}),t.then(()=>e.history.go(i))},reset(){let e=new Map(C.blockers);e.set(a,It),_e({blockers:e})}});return}return xe(n,r)}),n){Rn(t,te);let e=()=>zn(t,te);t.addEventListener(`pagehide`,e),D=()=>t.removeEventListener(`pagehide`,e)}return C.initialized||xe(M.Pop,C.location,{initialHydration:!0}),S}function A(){f&&f(),D&&D(),p.clear(),E&&E.abort(),C.fetchers.forEach((e,t)=>Ie(t)),C.blockers.forEach((e,t)=>Ge(t))}function ge(e){return p.add(e),()=>p.delete(e)}function _e(e,t){t===void 0&&(t={}),C=j({},C,e);let n=[],r=[];d.v7_fetcherPersist&&C.fetchers.forEach((e,t)=>{e.state===`idle`&&(de.has(t)?r.push(t):n.push(t))}),de.forEach(e=>{!C.fetchers.has(e)&&!O.has(e)&&r.push(e)}),[...p].forEach(e=>e(C,{deletedFetchers:r,viewTransitionOpts:t.viewTransitionOpts,flushSync:t.flushSync===!0})),d.v7_fetcherPersist?(n.forEach(e=>C.fetchers.delete(e)),r.forEach(e=>Ie(e))):r.forEach(e=>de.delete(e))}function ve(t,n,r){let{flushSync:i}=r===void 0?{}:r,a=C.actionData!=null&&C.navigation.formMethod!=null&&En(C.navigation.formMethod)&&C.navigation.state===`loading`&&t.state?._isRedirect!==!0,c;c=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:a?C.actionData:null;let l=n.loaderData?un(C.loaderData,n.loaderData,n.matches||[],n.errors):C.loaderData,u=C.blockers;u.size>0&&(u=new Map(u),u.forEach((e,t)=>u.set(t,It)));let d=T===!0||C.navigation.formMethod!=null&&En(C.navigation.formMethod)&&t.state?._isRedirect!==!0;s&&=(o=s,void 0),ne||w===M.Pop||(w===M.Push?e.history.push(t,t.state):w===M.Replace&&e.history.replace(t,t.state));let f;if(w===M.Pop){let e=te.get(C.location.pathname);e&&e.has(t.pathname)?f={currentLocation:C.location,nextLocation:t}:te.has(t.pathname)&&(f={currentLocation:t,nextLocation:C.location})}else if(ee){let e=te.get(C.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),te.set(C.location.pathname,e)),f={currentLocation:C.location,nextLocation:t}}_e(j({},n,{actionData:c,loaderData:l,historyAction:w,location:t,initialized:!0,navigation:Pt,revalidation:`idle`,restoreScrollPosition:rt(t,n.matches||C.matches),preventScrollReset:d,blockers:u}),{viewTransitionOpts:f,flushSync:i===!0}),w=M.Pop,T=!1,ee=!1,ne=!1,re=!1,ie=[]}async function ye(t,n){if(typeof t==`number`){e.history.go(t);return}let r=Ht(C.location,C.matches,c,d.v7_prependBasename,t,d.v7_relativeSplatPath,n?.fromRouteId,n?.relative),{path:i,submission:a,error:o}=Ut(d.v7_normalizeFormMethod,!1,r,n),s=C.location,l=Ve(C.location,i,n&&n.state);l=j({},l,e.history.encodeLocation(l));let u=n&&n.replace!=null?n.replace:void 0,f=M.Push;u===!0?f=M.Replace:u===!1||a!=null&&En(a.formMethod)&&a.formAction===C.location.pathname+C.location.search&&(f=M.Replace);let p=n&&`preventScrollReset`in n?n.preventScrollReset===!0:void 0,m=(n&&n.flushSync)===!0,h=Ze({currentLocation:s,nextLocation:l,historyAction:f});if(h){Ke(h,{state:`blocked`,location:l,proceed(){Ke(h,{state:`proceeding`,proceed:void 0,reset:void 0,location:l}),ye(t,n)},reset(){let e=new Map(C.blockers);e.set(h,It),_e({blockers:e})}});return}return await xe(f,l,{submission:a,pendingError:o,preventScrollReset:p,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:m})}function be(){if(Me(),_e({revalidation:`loading`}),C.navigation.state!==`submitting`){if(C.navigation.state===`idle`){xe(C.historyAction,C.location,{startUninterruptedRevalidation:!0});return}xe(w||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation,enableViewTransition:ee===!0})}}async function xe(t,n,r){E&&E.abort(),E=null,w=t,ne=(r&&r.startUninterruptedRevalidation)===!0,nt(C.location,C.matches),T=(r&&r.preventScrollReset)===!0,ee=(r&&r.enableViewTransition)===!0;let i=s||o,a=r&&r.overrideNavigation,l=r!=null&&r.initialHydration&&C.matches&&C.matches.length>0&&!y?C.matches:Je(i,n,c),u=(r&&r.flushSync)===!0;if(l&&C.initialized&&!re&&_n(C.location,n)&&!(r&&r.submission&&En(r.submission.formMethod))){ve(n,{matches:l},{flushSync:u});return}let d=it(l,i,n.pathname);if(d.active&&d.matches&&(l=d.matches),!l){let{error:e,notFoundMatches:t,route:r}=Qe(n.pathname);ve(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:u});return}E=new AbortController;let f=an(e.history,n,E.signal,r&&r.submission),p;if(r&&r.pendingError)p=[fn(l).route.id,{type:P.error,error:r.pendingError}];else if(r&&r.submission&&En(r.submission.formMethod)){let t=await Se(f,n,r.submission,l,d.active,{replace:r.replace,flushSync:u});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(bn(r)&&Dt(r.error)&&r.error.status===404){E=null,ve(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}l=t.matches||l,p=t.pendingActionResult,a=Nn(n,r.submission),u=!1,d.active=!1,f=an(e.history,f.url,f.signal)}let{shortCircuited:m,matches:h,loaderData:g,errors:_}=await Ce(f,n,l,d.active,a,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&r.initialHydration===!0,u,p);m||(E=null,ve(n,j({matches:h||l},dn(p),{loaderData:g,errors:_})))}async function Se(t,n,r,i,a,o){if(o===void 0&&(o={}),Me(),_e({navigation:Pn(n,r)},{flushSync:o.flushSync===!0}),a){let e=await at(i,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){let t=fn(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:P.error,error:e.error}]}}else if(e.matches)i=e.matches;else{let{notFoundMatches:e,error:t,route:r}=Qe(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:P.error,error:t}]}}}let s,l=jn(i,n);if(!l.route.action&&!l.route.lazy)s={type:P.error,error:mn(405,{method:t.method,pathname:n.pathname,routeId:l.route.id})};else if(s=(await Ae(`action`,C,t,[l],i,null))[l.route.id],t.signal.aborted)return{shortCircuited:!0};if(xn(s)){let n;return n=o&&o.replace!=null?o.replace:rn(s.response.headers.get(`Location`),new URL(t.url),c,e.history)===C.location.pathname+C.location.search,await ke(t,s,!0,{submission:r,replace:n}),{shortCircuited:!0}}if(yn(s))throw mn(400,{type:`defer-action`});if(bn(s)){let e=fn(i,l.route.id);return(o&&o.replace)!==!0&&(w=M.Push),{matches:i,pendingActionResult:[e.route.id,s]}}return{matches:i,pendingActionResult:[l.route.id,s]}}async function Ce(t,n,r,i,a,l,u,f,p,m,h){let g=a||Nn(n,l),_=l||u||Mn(g),v=!ne&&(!d.v7_partialHydration||!p);if(i){if(v){let e=we(h);_e(j({navigation:g},e===void 0?{}:{actionData:e}),{flushSync:m})}let e=await at(r,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){let t=fn(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}else if(e.matches)r=e.matches;else{let{error:e,notFoundMatches:t,route:r}=Qe(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let y=s||o,[b,x]=Gt(e.history,C,r,_,n,d.v7_partialHydration&&p===!0,d.v7_skipActionErrorRevalidation,re,ie,ae,de,le,k,y,c,h);if($e(e=>!(r&&r.some(t=>t.route.id===e))||b&&b.some(t=>t.route.id===e)),se=++oe,b.length===0&&x.length===0){let e=He();return ve(n,j({matches:r,loaderData:{},errors:h&&bn(h[1])?{[h[0]]:h[1].error}:null},dn(h),e?{fetchers:new Map(C.fetchers)}:{}),{flushSync:m}),{shortCircuited:!0}}if(v){let e={};if(!i){e.navigation=g;let t=we(h);t!==void 0&&(e.actionData=t)}x.length>0&&(e.fetchers=Te(x)),_e(e,{flushSync:m})}x.forEach(e=>{ze(e.key),e.controller&&O.set(e.key,e.controller)});let S=()=>x.forEach(e=>ze(e.key));E&&E.signal.addEventListener(`abort`,S);let{loaderResults:w,fetcherResults:T}=await je(C,r,b,x,t);if(t.signal.aborted)return{shortCircuited:!0};E&&E.signal.removeEventListener(`abort`,S),x.forEach(e=>O.delete(e.key));let ee=hn(w);if(ee)return await ke(t,ee.result,!0,{replace:f}),{shortCircuited:!0};if(ee=hn(T),ee)return k.add(ee.key),await ke(t,ee.result,!0,{replace:f}),{shortCircuited:!0};let{loaderData:te,errors:D}=ln(C,r,w,h,x,T,fe);fe.forEach((e,t)=>{e.subscribe(n=>{(n||e.done)&&fe.delete(t)})}),d.v7_partialHydration&&p&&C.errors&&(D=j({},C.errors,D));let ce=He(),ue=Ue(se),pe=ce||ue||x.length>0;return j({matches:r,loaderData:te,errors:D},pe?{fetchers:new Map(C.fetchers)}:{})}function we(e){if(e&&!bn(e[1]))return{[e[0]]:e[1].data};if(C.actionData)return Object.keys(C.actionData).length===0?null:C.actionData}function Te(e){return e.forEach(e=>{let t=C.fetchers.get(e.key),n=Fn(void 0,t?t.data:void 0);C.fetchers.set(e.key,n)}),new Map(C.fetchers)}function Ee(e,t,n,i){if(r)throw Error(`router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.`);ze(e);let a=(i&&i.flushSync)===!0,l=s||o,u=Ht(C.location,C.matches,c,d.v7_prependBasename,n,d.v7_relativeSplatPath,t,i?.relative),f=Je(l,u,c),p=it(f,l,u);if(p.active&&p.matches&&(f=p.matches),!f){Pe(e,t,mn(404,{pathname:u}),{flushSync:a});return}let{path:m,submission:h,error:g}=Ut(d.v7_normalizeFormMethod,!0,u,i);if(g){Pe(e,t,g,{flushSync:a});return}let _=jn(f,m),v=(i&&i.preventScrollReset)===!0;if(h&&En(h.formMethod)){De(e,t,m,_,f,p.active,a,v,h);return}le.set(e,{routeId:t,path:m}),Oe(e,t,m,_,f,p.active,a,v,h)}async function De(t,n,r,i,a,l,u,f,p){Me(),le.delete(t);function m(e){return!e.route.action&&!e.route.lazy?(Pe(t,n,mn(405,{method:p.formMethod,pathname:r,routeId:n}),{flushSync:u}),!0):!1}if(!l&&m(i))return;Ne(t,In(p,C.fetchers.get(t)),{flushSync:u});let h=new AbortController,g=an(e.history,r,h.signal,p);if(l){let e=await at(a,new URL(g.url).pathname,g.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){Pe(t,n,e.error,{flushSync:u});return}else if(!e.matches){Pe(t,n,mn(404,{pathname:r}),{flushSync:u});return}else if(a=e.matches,i=jn(a,r),m(i))return}O.set(t,h);let _=oe,v=(await Ae(`action`,C,g,[i],a,t))[i.route.id];if(g.signal.aborted){O.get(t)===h&&O.delete(t);return}if(d.v7_fetcherPersist&&de.has(t)){if(xn(v)||bn(v)){Ne(t,Ln(void 0));return}}else{if(xn(v))if(O.delete(t),se>_){Ne(t,Ln(void 0));return}else return k.add(t),Ne(t,Fn(p)),ke(g,v,!1,{fetcherSubmission:p,preventScrollReset:f});if(bn(v)){Pe(t,n,v.error);return}}if(yn(v))throw mn(400,{type:`defer-action`});let y=C.navigation.location||C.location,b=an(e.history,y,h.signal),x=s||o,S=C.navigation.state===`idle`?C.matches:Je(x,C.navigation.location,c);N(S,`Didn't find any matches after fetcher action`);let T=++oe;ce.set(t,T);let ee=Fn(p,v.data);C.fetchers.set(t,ee);let[te,D]=Gt(e.history,C,S,p,y,!1,d.v7_skipActionErrorRevalidation,re,ie,ae,de,le,k,x,c,[i.route.id,v]);D.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=C.fetchers.get(t),r=Fn(void 0,n?n.data:void 0);C.fetchers.set(t,r),ze(t),e.controller&&O.set(t,e.controller)}),_e({fetchers:new Map(C.fetchers)});let ne=()=>D.forEach(e=>ze(e.key));h.signal.addEventListener(`abort`,ne);let{loaderResults:ue,fetcherResults:pe}=await je(C,S,te,D,b);if(h.signal.aborted)return;h.signal.removeEventListener(`abort`,ne),ce.delete(t),O.delete(t),D.forEach(e=>O.delete(e.key));let me=hn(ue);if(me)return ke(b,me.result,!1,{preventScrollReset:f});if(me=hn(pe),me)return k.add(me.key),ke(b,me.result,!1,{preventScrollReset:f});let{loaderData:he,errors:A}=ln(C,S,ue,void 0,D,pe,fe);if(C.fetchers.has(t)){let e=Ln(v.data);C.fetchers.set(t,e)}Ue(T),C.navigation.state===`loading`&&T>se?(N(w,`Expected pending action`),E&&E.abort(),ve(C.navigation.location,{matches:S,loaderData:he,errors:A,fetchers:new Map(C.fetchers)})):(_e({errors:A,loaderData:un(C.loaderData,he,S,A),fetchers:new Map(C.fetchers)}),re=!1)}async function Oe(t,n,r,i,a,o,s,c,l){let u=C.fetchers.get(t);Ne(t,Fn(l,u?u.data:void 0),{flushSync:s});let d=new AbortController,f=an(e.history,r,d.signal);if(o){let e=await at(a,new URL(f.url).pathname,f.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){Pe(t,n,e.error,{flushSync:s});return}else if(e.matches)a=e.matches,i=jn(a,r);else{Pe(t,n,mn(404,{pathname:r}),{flushSync:s});return}}O.set(t,d);let p=oe,m=(await Ae(`loader`,C,f,[i],a,t))[i.route.id];if(yn(m)&&(m=await kn(m,f.signal,!0)||m),O.get(t)===d&&O.delete(t),!f.signal.aborted){if(de.has(t)){Ne(t,Ln(void 0));return}if(xn(m))if(se>p){Ne(t,Ln(void 0));return}else{k.add(t),await ke(f,m,!1,{preventScrollReset:c});return}if(bn(m)){Pe(t,n,m.error);return}N(!yn(m),`Unhandled fetcher deferred data`),Ne(t,Ln(m.data))}}async function ke(r,i,a,o){let{submission:s,fetcherSubmission:l,preventScrollReset:u,replace:d}=o===void 0?{}:o;i.response.headers.has(`X-Remix-Revalidate`)&&(re=!0);let f=i.response.headers.get(`Location`);N(f,`Expected a Location header on the redirect Response`),f=rn(f,new URL(r.url),c,e.history);let p=Ve(C.location,f,{_isRedirect:!0});if(n){let n=!1;if(i.response.headers.has(`X-Remix-Reload-Document`))n=!0;else if(Lt.test(f)){let r=e.history.createURL(f);n=r.origin!==t.location.origin||pt(r.pathname,c)==null}if(n){d?t.location.replace(f):t.location.assign(f);return}}E=null;let m=d===!0||i.response.headers.has(`X-Remix-Replace`)?M.Replace:M.Push,{formMethod:h,formAction:g,formEncType:_}=C.navigation;!s&&!l&&h&&g&&_&&(s=Mn(C.navigation));let v=s||l;Nt.has(i.response.status)&&v&&En(v.formMethod)?await xe(m,p,{submission:j({},v,{formAction:f}),preventScrollReset:u||T,enableViewTransition:a?ee:void 0}):await xe(m,p,{overrideNavigation:Nn(p,s),fetcherSubmission:l,preventScrollReset:u||T,enableViewTransition:a?ee:void 0})}async function Ae(e,t,n,r,o,s){let u,f={};try{u=await $t(l,e,t,n,r,o,s,a,i)}catch(e){return r.forEach(t=>{f[t.route.id]={type:P.error,error:e}}),f}for(let[e,t]of Object.entries(u))if(vn(t)){let r=t.result;f[e]={type:P.redirect,response:nn(r,n,e,o,c,d.v7_relativeSplatPath)}}else f[e]=await tn(t);return f}async function je(t,n,r,i,a){let o=t.matches,s=Ae(`loader`,t,a,r,n,null),c=Promise.all(i.map(async n=>{if(n.matches&&n.match&&n.controller){let r=(await Ae(`loader`,t,an(e.history,n.path,n.controller.signal),[n.match],n.matches,n.key))[n.match.route.id];return{[n.key]:r}}else return Promise.resolve({[n.key]:{type:P.error,error:mn(404,{pathname:n.path})}})})),l=await s,u=(await c).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([Dn(n,l,a.signal,o,t.loaderData),On(n,u,i)]),{loaderResults:l,fetcherResults:u}}function Me(){re=!0,ie.push(...$e()),le.forEach((e,t)=>{O.has(t)&&ae.add(t),ze(t)})}function Ne(e,t,n){n===void 0&&(n={}),C.fetchers.set(e,t),_e({fetchers:new Map(C.fetchers)},{flushSync:(n&&n.flushSync)===!0})}function Pe(e,t,n,r){r===void 0&&(r={});let i=fn(C.matches,t);Ie(e),_e({errors:{[i.route.id]:n},fetchers:new Map(C.fetchers)},{flushSync:(r&&r.flushSync)===!0})}function Fe(e){return ue.set(e,(ue.get(e)||0)+1),de.has(e)&&de.delete(e),C.fetchers.get(e)||Ft}function Ie(e){let t=C.fetchers.get(e);O.has(e)&&!(t&&t.state===`loading`&&ce.has(e))&&ze(e),le.delete(e),ce.delete(e),k.delete(e),d.v7_fetcherPersist&&de.delete(e),ae.delete(e),C.fetchers.delete(e)}function Le(e){let t=(ue.get(e)||0)-1;t<=0?(ue.delete(e),de.add(e),d.v7_fetcherPersist||Ie(e)):ue.set(e,t),_e({fetchers:new Map(C.fetchers)})}function ze(e){let t=O.get(e);t&&(t.abort(),O.delete(e))}function Be(e){for(let t of e){let e=Ln(Fe(t).data);C.fetchers.set(t,e)}}function He(){let e=[],t=!1;for(let n of k){let r=C.fetchers.get(n);N(r,`Expected fetcher: `+n),r.state===`loading`&&(k.delete(n),e.push(n),t=!0)}return Be(e),t}function Ue(e){let t=[];for(let[n,r]of ce)if(r<e){let e=C.fetchers.get(n);N(e,`Expected fetcher: `+n),e.state===`loading`&&(ze(n),ce.delete(n),t.push(n))}return Be(t),t.length>0}function We(e,t){let n=C.blockers.get(e)||It;return pe.get(e)!==t&&pe.set(e,t),n}function Ge(e){C.blockers.delete(e),pe.delete(e)}function Ke(e,t){let n=C.blockers.get(e)||It;N(n.state===`unblocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`proceeding`||n.state===`blocked`&&t.state===`unblocked`||n.state===`proceeding`&&t.state===`unblocked`,`Invalid blocker state transition: `+n.state+` -> `+t.state);let r=new Map(C.blockers);r.set(e,t),_e({blockers:r})}function Ze(e){let{currentLocation:t,nextLocation:n,historyAction:r}=e;if(pe.size===0)return;pe.size>1&&Re(!1,`A router only supports one blocker at a time`);let i=Array.from(pe.entries()),[a,o]=i[i.length-1],s=C.blockers.get(a);if(!(s&&s.state===`proceeding`)&&o({currentLocation:t,nextLocation:n,historyAction:r}))return a}function Qe(e){let t=mn(404,{pathname:e}),{matches:n,route:r}=pn(s||o);return $e(),{notFoundMatches:n,route:r,error:t}}function $e(e){let t=[];return fe.forEach((n,r)=>{(!e||e(r))&&(n.cancel(),t.push(r),fe.delete(r))}),t}function et(e,t,n){if(m=e,g=t,h=n||null,!_&&C.navigation===Pt){_=!0;let e=rt(C.location,C.matches);e!=null&&_e({restoreScrollPosition:e})}return()=>{m=null,g=null,h=null}}function tt(e,t){return h&&h(e,t.map(e=>Xe(e,C.loaderData)))||e.key}function nt(e,t){if(m&&g){let n=tt(e,t);m[n]=g()}}function rt(e,t){if(m){let n=tt(e,t),r=m[n];if(typeof r==`number`)return r}return null}function it(e,t,n){if(u){if(!e)return{active:!0,matches:Ye(t,n,c,!0)||[]};if(Object.keys(e[0].params).length>0)return{active:!0,matches:Ye(t,n,c,!0)}}return{active:!1,matches:null}}async function at(e,t,n,r){if(!u)return{type:`success`,matches:e};let l=e;for(;;){let e=s==null,d=s||o,f=a;try{await u({signal:n,path:t,matches:l,fetcherKey:r,patch:(e,t)=>{n.aborted||Yt(e,t,d,f,i)}})}catch(e){return{type:`error`,error:e,partialMatches:l}}finally{e&&!n.aborted&&(o=[...o])}if(n.aborted)return{type:`aborted`};let p=Je(d,t,c);if(p)return{type:`success`,matches:p};let m=Ye(d,t,c,!0);if(!m||l.length===m.length&&l.every((e,t)=>e.route.id===m[t].route.id))return{type:`success`,matches:null};l=m}}function ot(e){a={},s=qe(e,i,void 0,a)}function st(e,t){let n=s==null;Yt(e,t,s||o,a,i),n&&(o=[...o],_e({}))}return S={get basename(){return c},get future(){return d},get state(){return C},get routes(){return o},get window(){return t},initialize:he,subscribe:ge,enableScrollRestoration:et,navigate:ye,fetch:Ee,revalidate:be,createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Fe,deleteFetcher:Le,dispose:A,getBlocker:We,deleteBlocker:Ge,patchRoutes:st,_internalFetchControllers:O,_internalActiveDeferreds:fe,_internalSetRoutes:ot},S}function Vt(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function Ht(e,t,n,r,i,a,o,s){let c,l;if(o){c=[];for(let e of t)if(c.push(e),e.route.id===o){l=e;break}}else c=t,l=t[t.length-1];let u=F(i||`.`,bt(c,a),pt(e.pathname,n)||e.pathname,s===`path`);if(i??(u.search=e.search,u.hash=e.hash),(i==null||i===``||i===`.`)&&l){let e=An(u.search);if(l.route.index&&!e)u.search=u.search?u.search.replace(/^\?/,`?index&`):`?index`;else if(!l.route.index&&e){let e=new URLSearchParams(u.search),t=e.getAll(`index`);e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();u.search=n?`?`+n:``}}return r&&n!==`/`&&(u.pathname=u.pathname===`/`?n:St([n,u.pathname])),He(u)}function Ut(e,t,n,r){if(!r||!Vt(r))return{path:n};if(r.formMethod&&!Tn(r.formMethod))return{path:n,error:mn(405,{method:r.formMethod})};let i=()=>({path:n,error:mn(400,{type:`invalid-body`})}),a=r.formMethod||`get`,o=e?a.toUpperCase():a.toLowerCase(),s=gn(n);if(r.body!==void 0){if(r.formEncType===`text/plain`){if(!En(o))return i();let e=typeof r.body==`string`?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((e,t)=>{let[n,r]=t;return``+e+n+`=`+r+`
10`},``):String(r.body);return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}else if(r.formEncType===`application/json`){if(!En(o))return i();try{let e=typeof r.body==`string`?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch{return i()}}}N(typeof FormData==`function`,`FormData is not available in this environment`);let c,l;if(r.formData)c=on(r.formData),l=r.formData;else if(r.body instanceof FormData)c=on(r.body),l=r.body;else if(r.body instanceof URLSearchParams)c=r.body,l=sn(c);else if(r.body==null)c=new URLSearchParams,l=new FormData;else try{c=new URLSearchParams(r.body),l=sn(c)}catch{return i()}let u={formMethod:o,formAction:s,formEncType:r&&r.formEncType||`application/x-www-form-urlencoded`,formData:l,json:void 0,text:void 0};if(En(u.formMethod))return{path:n,submission:u};let d=Ue(n);return t&&d.search&&An(d.search)&&c.append(`index`,``),d.search=`?`+c,{path:He(d),submission:u}}function Wt(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(e=>e.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function Gt(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){let g=h?bn(h[1])?h[1].error:h[1].data:void 0,_=e.createURL(t.location),v=e.createURL(i),y=n;a&&t.errors?y=Wt(n,Object.keys(t.errors)[0],!0):h&&bn(h[1])&&(y=Wt(n,h[0]));let b=h?h[1].statusCode:void 0,x=o&&b&&b>=400,S=y.filter((e,n)=>{let{route:i}=e;if(i.lazy)return!0;if(i.loader==null)return!1;if(a)return I(i,t.loaderData,t.errors);if(Kt(t.loaderData,t.matches[n],e)||c.some(t=>t===e.route.id))return!0;let o=t.matches[n],l=e;return Jt(e,j({currentUrl:_,currentParams:o.params,nextUrl:v,nextParams:l.params},r,{actionResult:g,actionStatus:b,defaultShouldRevalidate:x?!1:s||_.pathname+_.search===v.pathname+v.search||_.search!==v.search||qt(o,l)}))}),C=[];return d.forEach((e,i)=>{if(a||!n.some(t=>t.route.id===e.routeId)||u.has(i))return;let o=Je(p,e.path,m);if(!o){C.push({key:i,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});return}let c=t.fetchers.get(i),d=jn(o,e.path),h=!1;f.has(i)?h=!1:l.has(i)?(l.delete(i),h=!0):h=c&&c.state!==`idle`&&c.data===void 0?s:Jt(d,j({currentUrl:_,currentParams:t.matches[t.matches.length-1].params,nextUrl:v,nextParams:n[n.length-1].params},r,{actionResult:g,actionStatus:b,defaultShouldRevalidate:!x&&s})),h&&C.push({key:i,routeId:e.routeId,path:e.path,matches:o,match:d,controller:new AbortController})}),[S,C]}function I(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,i=n!=null&&n[e.id]!==void 0;return!r&&i?!1:typeof e.loader==`function`&&e.loader.hydrate===!0||!r&&!i}
10function Kt(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function qt(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith(`*`)&&e.params[`*`]!==t.params[`*`]}function Jt(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==`boolean`)return n}return t.defaultShouldRevalidate}function Yt(e,t,n,r,i){let a;if(e){let t=r[e];N(t,`No route found to patch children into: routeId = `+e),t.children||=[],a=t.children}else a=n;let o=qe(t.filter(e=>!a.some(t=>Xt(e,t))),i,[e||`_`,`patch`,String(a?.length||`0`)],r);a.push(...o)}function Xt(e,t){return`id`in e&&`id`in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)||e.children.every((e,n)=>t.children?.some(t=>Xt(e,t))):!1}async function Zt(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];N(i,`No route found in manifest`);let a={};for(let e in r){let t=i[e]!==void 0&&e!==`hasErrorBoundary`;Re(!t,`Route "`+i.id+`" has a static property "`+e+`" defined but its lazy function is also returning a value for this property. `+(`The lazy route property "`+e+`" will be ignored.`)),!t&&!Ge.has(e)&&(a[e]=r[e])}Object.assign(i,a),Object.assign(i,j({},t(i),{lazy:void 0}))}async function Qt(e){let{matches:t}=e,n=t.filter(e=>e.shouldLoad);return(await Promise.all(n.map(e=>e.resolve()))).reduce((e,t,r)=>Object.assign(e,{[n[r].route.id]:t}),{})}async function $t(e,t,n,r,i,a,o,s,c,l){let u=a.map(e=>e.route.lazy?Zt(e.route,c,s):void 0),d=await e({matches:a.map((e,n)=>{let a=u[n],o=i.some(t=>t.route.id===e.route.id);return j({},e,{shouldLoad:o,resolve:async n=>(n&&r.method===`GET`&&(e.route.lazy||e.route.loader)&&(o=!0),o?en(t,r,e,a,n,l):Promise.resolve({type:P.data,result:void 0}))})}),request:r,params:a[0].params,fetcherKey:o,context:l});try{await Promise.all(u)}catch{}return d}async function en(e,t,n,r,i,a){let o,s,c=r=>{let o,c=new Promise((e,t)=>o=t);s=()=>o(),t.signal.addEventListener(`abort`,s);let l=i=>typeof r==`function`?r({request:t,params:n.params,context:a},...i===void 0?[]:[i]):Promise.reject(Error(`You cannot call the handler for a route which defines a boolean `+(`"`+e+`" [routeId: `+n.route.id+`]`))),u=(async()=>{try{return{type:`data`,result:await(i?i(e=>l(e)):l())}}catch(e){return{type:`error`,result:e}}})();return Promise.race([u,c])};try{let i=n.route[e];if(r)if(i){let e,[t]=await Promise.all([c(i).catch(t=>{e=t}),r]);if(e!==void 0)throw e;o=t}else if(await r,i=n.route[e],i)o=await c(i);else if(e===`action`){let e=new URL(t.url),r=e.pathname+e.search;throw mn(405,{method:t.method,pathname:r,routeId:n.route.id})}else return{type:P.data,result:void 0};else if(i)o=await c(i);else{let e=new URL(t.url);throw mn(404,{pathname:e.pathname+e.search})}N(o.result!==void 0,`You defined `+(e===`action`?`an action`:`a loader`)+` for route `+(`"`+n.route.id+`" but didn't return anything from your \``+e+"` ")+"function. Please return a value or `null`.")}catch(e){return{type:P.error,result:e}}finally{s&&t.signal.removeEventListener(`abort`,s)}return o}async function tn(e){let{result:t,type:n}=e;if(wn(t)){let e;try{let n=t.headers.get(`Content-Type`);e=n&&/\bapplication\/json\b/.test(n)?t.body==null?null:await t.json():await t.text()}catch(e){return{type:P.error,error:e}}return n===P.error?{type:P.error,error:new Et(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:P.data,data:e,statusCode:t.status,headers:t.headers}}if(n===P.error){if(Sn(t)){var r;if(t.data instanceof Error){var i;return{type:P.error,error:t.data,statusCode:t.init?.status,headers:(i=t.init)!=null&&i.headers?new Headers(t.init.headers):void 0}}return{type:P.error,error:new Et(t.init?.status||500,void 0,t.data),statusCode:Dt(t)?t.status:void 0,headers:(r=t.init)!=null&&r.headers?new Headers(t.init.headers):void 0}}return{type:P.error,error:t,statusCode:Dt(t)?t.status:void 0}}if(Cn(t))return{type:P.deferred,deferredData:t,statusCode:t.init?.status,headers:t.init?.headers&&new Headers(t.init.headers)};if(Sn(t)){var a;return{type:P.data,data:t.data,statusCode:t.init?.status,headers:(a=t.init)!=null&&a.headers?new Headers(t.init.headers):void 0}}return{type:P.data,data:t}}function nn(e,t,n,r,i,a){let o=e.headers.get(`Location`);if(N(o,`Redirects returned/thrown from loaders/actions must have a Location header`),!Lt.test(o)){let s=r.slice(0,r.findIndex(e=>e.route.id===n)+1);o=Ht(new URL(t.url),s,i,!0,o,a),e.headers.set(`Location`,o)}return e}function rn(e,t,n,r){let i=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];if(Lt.test(e)){let r=e,a=r.startsWith(`//`)?new URL(t.protocol+r):new URL(r);if(i.includes(a.protocol))throw Error(`Invalid redirect location`);let o=pt(a.pathname,n)!=null;if(a.origin===t.origin&&o)return xt(a.pathname)+a.search+a.hash}try{let t=r.createURL(e);if(i.includes(t.protocol))throw Error(`Invalid redirect location`)}catch{}return e}function an(e,t,n,r){let i=e.createURL(gn(t)).toString(),a={signal:n};if(r&&En(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),t===`application/json`?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):t===`text/plain`?a.body=r.text:t===`application/x-www-form-urlencoded`&&r.formData?a.body=on(r.formData):a.body=r.formData}
vendor: 4,667 bytes, line 10
10return new Request(i,a)}function on(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r==`string`?r:r.name);return t}function sn(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function cn(e,t,n,r,i){let a={},o=null,s,c=!1,l={},u=n&&bn(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let d=n.route.id,f=t[d];if(N(!xn(f),`Cannot handle redirect results in processLoaderData`),bn(f)){let t=f.error;if(u!==void 0&&(t=u,u=void 0),o||={},i)o[d]=t;else{let n=fn(e,d);o[n.route.id]??(o[n.route.id]=t)}a[d]=void 0,c||(c=!0,s=Dt(f.error)?f.error.status:500),f.headers&&(l[d]=f.headers)}else yn(f)?(r.set(d,f.deferredData),a[d]=f.deferredData.data,f.statusCode!=null&&f.statusCode!==200&&!c&&(s=f.statusCode),f.headers&&(l[d]=f.headers)):(a[d]=f.data,f.statusCode&&f.statusCode!==200&&!c&&(s=f.statusCode),f.headers&&(l[d]=f.headers))}),u!==void 0&&n&&(o={[n[0]]:u},a[n[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:l}}function ln(e,t,n,r,i,a,o){let{loaderData:s,errors:c}=cn(t,n,r,o,!1);return i.forEach(t=>{let{key:n,match:r,controller:i}=t,o=a[n];if(N(o,`Did not find corresponding fetcher result`),!(i&&i.signal.aborted))if(bn(o)){let t=fn(e.matches,r?.route.id);c&&c[t.route.id]||(c=j({},c,{[t.route.id]:o.error})),e.fetchers.delete(n)}else if(xn(o))N(!1,`Unhandled fetcher revalidation redirect`);else if(yn(o))N(!1,`Unhandled fetcher deferred data`);else{let t=Ln(o.data);e.fetchers.set(n,t)}}),{loaderData:s,errors:c}}function un(e,t,n,r){let i=j({},t);for(let a of n){let n=a.route.id;if(t.hasOwnProperty(n)?t[n]!==void 0&&(i[n]=t[n]):e[n]!==void 0&&a.route.loader&&(i[n]=e[n]),r&&r.hasOwnProperty(n))break}return i}function dn(e){return e?bn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function fn(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>e.route.hasErrorBoundary===!0)||e[0]}function pn(e){let t=e.length===1?e[0]:e.find(e=>e.index||!e.path||e.path===`/`)||{id:`__shim-error-route__`};return{matches:[{params:{},pathname:``,pathnameBase:``,route:t}],route:t}}function mn(e,t){let{pathname:n,routeId:r,method:i,type:a,message:o}=t===void 0?{}:t,s=`Unknown Server Error`,c=`Unknown @remix-run/router error`;return e===400?(s=`Bad Request`,i&&n&&r?c=`You made a `+i+` request to "`+n+`" but `+('did not provide a `loader` for route "'+r+`", `)+`so there is no way to handle the request.`:a===`defer-action`?c=`defer() is not supported in actions`:a===`invalid-body`&&(c=`Unable to encode submission body`)):e===403?(s=`Forbidden`,c=`Route "`+r+`" does not match URL "`+n+`"`):e===404?(s=`Not Found`,c=`No route matches URL "`+n+`"`):e===405&&(s=`Method Not Allowed`,i&&n&&r?c=`You made a `+i.toUpperCase()+` request to "`+n+`" but `+('did not provide an `action` for route "'+r+`", `)+`so there is no way to handle the request.`:i&&(c=`Invalid request method "`+i.toUpperCase()+`"`)),new Et(e||500,s,Error(c),!0)}function hn(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(xn(r))return{key:n,result:r}}}function gn(e){let t=typeof e==`string`?Ue(e):e;return He(j({},t,{hash:``}))}function _n(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===``?t.hash!==``:e.hash===t.hash||t.hash!==``}function vn(e){return wn(e.result)&&Mt.has(e.result.status)}function yn(e){return e.type===P.deferred}function bn(e){return e.type===P.error}function xn(e){return(e&&e.type)===P.redirect}function Sn(e){return typeof e==`object`&&!!e&&`type`in e&&`data`in e&&`init`in e&&e.type===`DataWithResponseInit`}function Cn(e){let t=e;return t&&typeof t==`object`&&typeof t.data==`object`&&typeof t.subscribe==`function`&&typeof t.cancel==`function`&&typeof t.resolveData==`function`}function wn(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.headers==`object`&&e.body!==void 0}function Tn(e){return jt.has(e.toLowerCase())}function En(e){return kt.has(e.toLowerCase())}async function Dn(e,t,n,r,i){let a=Object.entries(t);for(let o=0;o<a.length;o++){let[s,c]=a[o],l=e.find(e=>e?.route.id===s);if(!l)continue;let u=r.find(e=>e.route.id===l.route.id),d=u!=null&&!qt(u,l)&&(i&&i[l.route.id])!==void 0;yn(c)&&d&&await kn(c,n,!1).then(e=>{e&&(t[s]=e)})}}async function On(e,t,n){for(let r=0;r<n.length;r++){let{key:i,routeId:a,controller:o}=n[r],s=t[i];e.find(e=>e?.route.id===a)&&yn(s)&&(N(o,`Expected an AbortController for revalidating fetcher deferred result`),await kn(s,o.signal,!0).then(e=>{e&&(t[i]=e)}))}}async function kn(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:P.data,data:e.deferredData.unwrappedData}
10}catch(e){return{type:P.error,error:e}}return{type:P.data,data:e.deferredData.data}}}function An(e){return new URLSearchParams(e).getAll(`index`).some(e=>e===``)}function jn(e,t){let n=typeof t==`string`?Ue(t).search:t.search;if(e[e.length-1].route.index&&An(n||``))return e[e.length-1];let r=yt(e);return r[r.length-1]}function Mn(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function Nn(e,t){return t?{state:`loading`,location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:`loading`,location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Pn(e,t){return{state:`submitting`,location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Fn(e,t){return e?{state:`loading`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:`loading`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function In(e,t){return{state:`submitting`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Ln(e){return{state:`idle`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Rn(e,t){try{let n=e.sessionStorage.getItem(zt);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch{}}function zn(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(zt,JSON.stringify(n))}catch(e){Re(!1,`Failed to save applied view transitions in sessionStorage (`+e+`).`)}}}function Bn(){return Bn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bn.apply(null,arguments)}var Vn=h.createContext(null),Hn=h.createContext(null),Un=h.createContext(null),Wn=h.createContext(null),Gn=h.createContext({outlet:null,matches:[],isDataRoute:!1}),Kn=h.createContext(null);function qn(e,t){let{relative:n}=t===void 0?{}:t;!Jn()&&N(!1);let{basename:r,navigator:i}=h.useContext(Un),{hash:a,pathname:o,search:s}=tr(e,{relative:n}),c=o;return r!==`/`&&(c=o===`/`?r:St([r,o])),i.createHref({pathname:c,search:s,hash:a})}function Jn(){return h.useContext(Wn)!=null}function Yn(){return!Jn()&&N(!1),h.useContext(Wn).location}function Xn(e){h.useContext(Un).static||h.useLayoutEffect(e)}function Zn(){let{isDataRoute:e}=h.useContext(Gn);return e?hr():Qn()}function Qn(){!Jn()&&N(!1);let e=h.useContext(Vn),{basename:t,future:n,navigator:r}=h.useContext(Un),{matches:i}=h.useContext(Gn),{pathname:a}=Yn(),o=JSON.stringify(bt(i,n.v7_relativeSplatPath)),s=h.useRef(!1);return Xn(()=>{s.current=!0}),h.useCallback(function(n,i){if(i===void 0&&(i={}),!s.current)return;if(typeof n==`number`){r.go(n);return}let c=F(n,JSON.parse(o),a,i.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:St([t,c.pathname])),(i.replace?r.replace:r.push)(c,i.state,i)},[t,r,o,a,e])}var $n=h.createContext(null);function er(e){let t=h.useContext(Gn).outlet;return t&&h.createElement($n.Provider,{value:e},t)}function tr(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=h.useContext(Un),{matches:i}=h.useContext(Gn),{pathname:a}=Yn(),o=JSON.stringify(bt(i,r.v7_relativeSplatPath));return h.useMemo(()=>F(e,JSON.parse(o),a,n===`path`),[e,o,a,n])}function nr(e,t,n,r){!Jn()&&N(!1);let{navigator:i}=h.useContext(Un),{matches:a}=h.useContext(Gn),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let c=o?o.pathnameBase:`/`;o&&o.route;let l=Yn(),u;if(t){let e=typeof t==`string`?Ue(t):t;!(c===`/`||e.pathname?.startsWith(c))&&N(!1),u=e}else u=l;
10let d=u.pathname||`/`,f=d;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);f=`/`+d.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let p=Je(e,{pathname:f}),m=sr(p&&p.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:St([c,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:St([c,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),a,n,r);return t&&m?h.createElement(Wn.Provider,{value:{location:Bn({pathname:`/`,search:``,hash:``,state:null,key:`default`},u),navigationType:M.Pop}},m):m}function rr(){let e=mr(),t=Dt(e)?e.status+` `+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return h.createElement(h.Fragment,null,h.createElement(`h2`,null,`Unexpected Application Error!`),h.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?h.createElement(`pre`,{style:{padding:`0.5rem`,backgroundColor:`rgba(200,200,200, 0.5)`}},n):null,null)}var ir=h.createElement(rr,null),ar=class extends h.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error(`React Router caught the following error during render`,e,t)}render(){return this.state.error===void 0?this.props.children:h.createElement(Gn.Provider,{value:this.props.routeContext},h.createElement(Kn.Provider,{value:this.state.error,children:this.props.component}))}};function or(e){let{routeContext:t,match:n,children:r}=e,i=h.useContext(Vn);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),h.createElement(Gn.Provider,{value:t},r)}function sr(e,t,n,r){if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,o=n?.errors;if(o!=null){let e=a.findIndex(e=>e.route.id&&o?.[e.route.id]!==void 0);!(e>=0)&&N(!1),a=a.slice(0,Math.min(a.length,e+1))}let s=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:r}=n,i=t.route.loader&&e[t.route.id]===void 0&&(!r||r[t.route.id]===void 0);if(t.route.lazy||i){s=!0,a=c>=0?a.slice(0,c+1):[a[0]];break}}}return a.reduceRight((e,r,i)=>{let l,u=!1,d=null,f=null;n&&(l=o&&r.route.id?o[r.route.id]:void 0,d=r.route.errorElement||ir,s&&(c<0&&i===0?(_r(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),u=!0,f=null):c===i&&(u=!0,f=r.route.hydrateFallbackElement||null)));let p=t.concat(a.slice(0,i+1)),m=()=>{let t;return t=l?d:u?f:r.route.Component?h.createElement(r.route.Component,null):r.route.element?r.route.element:e,h.createElement(or,{match:r,routeContext:{outlet:e,matches:p,isDataRoute:n!=null},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||i===0)?h.createElement(ar,{location:n.location,revalidation:n.revalidation,component:d,error:l,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()},null)}var cr=function(e){return e.UseBlocker=`useBlocker`,e.UseRevalidator=`useRevalidator`,e.UseNavigateStable=`useNavigate`,e}(cr||{}),lr=function(e){return e.UseBlocker=`useBlocker`,e.UseLoaderData=`useLoaderData`,e.UseActionData=`useActionData`,e.UseRouteError=`useRouteError`,e.UseNavigation=`useNavigation`,e.UseRouteLoaderData=`useRouteLoaderData`,e.UseMatches=`useMatches`,e.UseRevalidator=`useRevalidator`,e.UseNavigateStable=`useNavigate`,e.UseRouteId=`useRouteId`,e}(lr||{});function ur(e){let t=h.useContext(Vn);return!t&&N(!1),t}function dr(e){let t=h.useContext(Hn);return!t&&N(!1),t}function fr(e){let t=h.useContext(Gn);return!t&&N(!1),t}function pr(e){let t=fr(e),n=t.matches[t.matches.length-1];return!n.route.id&&N(!1),n.route.id}function mr(){let e=h.useContext(Kn),t=dr(lr.UseRouteError),n=pr(lr.UseRouteError);return e===void 0?t.errors?.[n]:e}function hr(){let{router:e}=ur(cr.UseNavigateStable),t=pr(lr.UseNavigateStable),n=h.useRef(!1);return Xn(()=>{n.current=!0}),h.useCallback(function(r,i){i===void 0&&(i={}),n.current&&(typeof r==`number`?e.navigate(r):e.navigate(r,Bn({fromRouteId:t},i)))},[e,t])}var gr={};function _r(e,t,n){!t&&!gr[e]&&(gr[e]=!0)}var vr=(e,t,n)=>(``+t+("You can use the `"+e+"` future flag to opt-in early. ")+(`For more information, see `+n+`.`),void 0);function yr(e,t){e?.v7_startTransition===void 0&&vr(`v7_startTransition`,"React Router will begin wrapping state updates in `React.startTransition` in v7",`https://reactrouter.com/v6/upgrading/future#v7_starttransition`),e?.v7_relativeSplatPath===void 0&&(!t||t.v7_relativeSplatPath===void 0)&&vr(`v7_relativeSplatPath`,`Relative route resolution within Splat routes is changing in v7`,`https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath`),t&&(t.v7_fetcherPersist===void 0&&vr(`v7_fetcherPersist`,`The persistence behavior of fetchers is changing in v7`,`https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist`),t.v7_normalizeFormMethod===void 0&&vr(`v7_normalizeFormMethod`,"Casing of `formMethod` fields is being normalized to uppercase in v7",`https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod`),t.v7_partialHydration===void 0&&vr(`v7_partialHydration`,"`RouterProvider` hydration behavior is changing in v7",`https://reactrouter.com/v6/upgrading/future#v7_partialhydration`),t.v7_skipActionErrorRevalidation===void 0&&vr(`v7_skipActionErrorRevalidation`,"The revalidation behavior after 4xx/5xx `action` responses is changing in v7",`https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation`))}function br(e){return er(e.context)}function xr(e){let{basename:t=`/`,children:n=null,location:r,navigationType:i=M.Pop,navigator:a,static:o=!1,future:s}=e;Jn()&&N(!1);let c=t.replace(/^\/*/,`/`),l=h.useMemo(()=>({basename:c,navigator:a,static:o,future:Bn({v7_relativeSplatPath:!1},s)}),[c,s,a,o]);typeof r==`string`&&(r=Ue(r));let{pathname:u=`/`,search:d=``,hash:f=``,state:p=null,key:m=`default`}=r,g=h.useMemo(()=>{let e=pt(u,c);return e==null?null:{location:{pathname:e,search:d,hash:f,state:p,key:m},navigationType:i}},[c,u,d,f,p,m,i]);return g==null?null:h.createElement(Un.Provider,{value:l},h.createElement(Wn.Provider,{children:n,value:g}))}
10var Sr=function(e){return e[e.pending=0]=`pending`,e[e.success=1]=`success`,e[e.error=2]=`error`,e}(Sr||{});new Promise(()=>{}),h.Component;function Cr(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:h.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:h.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:h.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function wr(){return wr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wr.apply(null,arguments)}function Tr(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Er(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Dr(e,t){return e.button===0&&(!t||t===`_self`)&&!Er(e)}var Or=[`onClick`,`relative`,`reloadDocument`,`replace`,`state`,`target`,`to`,`preventScrollReset`,`viewTransition`],kr=[`aria-current`,`caseSensitive`,`className`,`end`,`style`,`to`,`viewTransition`,`children`],Ar=`6`;try{window.__reactRouterVersion=Ar}catch{}function jr(e,t){return Bt({basename:t?.basename,future:wr({},t?.future,{v7_prependBasename:!0}),history:Le({window:t?.window}),hydrationData:t?.hydrationData||Mr(),routes:e,mapRouteProperties:Cr,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function Mr(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e=wr({},e,{errors:Nr(e.errors)})),e}function Nr(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&r.__type===`RouteErrorResponse`)n[e]=new Et(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type===`Error`){if(r.__subType){let t=window[r.__subType];if(typeof t==`function`)try{let i=new t(r.message);i.stack=``,n[e]=i}catch{}}if(n[e]==null){let t=Error(r.message);t.stack=``,n[e]=t}}else n[e]=r;return n}var Pr=h.createContext({isTransitioning:!1}),Fr=h.createContext(new Map),Ir=h.startTransition,Lr=Fe.flushSync;function Rr(e){Ir?Ir(e):e()}function zr(e){Lr?Lr(e):e()}var Br=class{constructor(){this.status=`pending`,this.promise=new Promise((e,t)=>{this.resolve=t=>{this.status===`pending`&&(this.status=`resolved`,e(t))},this.reject=e=>{this.status===`pending`&&(this.status=`rejected`,t(e))}})}};function Vr(e){let{fallbackElement:t,router:n,future:r}=e,[i,a]=h.useState(n.state),[o,s]=h.useState(),[c,l]=h.useState({isTransitioning:!1}),[u,d]=h.useState(),[f,p]=h.useState(),[m,g]=h.useState(),_=h.useRef(new Map),{v7_startTransition:v}=r||{},y=h.useCallback(e=>{v?Rr(e):e()},[v]),b=h.useCallback((e,t)=>{let{deletedFetchers:r,flushSync:i,viewTransitionOpts:o}=t;e.fetchers.forEach((e,t)=>{e.data!==void 0&&_.current.set(t,e.data)}),r.forEach(e=>_.current.delete(e));let c=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!=`function`;if(!o||c){i?zr(()=>a(e)):y(()=>a(e));return}if(i){zr(()=>{f&&(u&&u.resolve(),f.skipTransition()),l({isTransitioning:!0,flushSync:!0,currentLocation:o.currentLocation,nextLocation:o.nextLocation})});let t=n.window.document.startViewTransition(()=>{zr(()=>a(e))});t.finished.finally(()=>{zr(()=>{d(void 0),p(void 0),s(void 0),l({isTransitioning:!1})})}),zr(()=>p(t));return}f?(u&&u.resolve(),f.skipTransition(),g({state:e,currentLocation:o.currentLocation,nextLocation:o.nextLocation})):(s(e),l({isTransitioning:!0,flushSync:!1,currentLocation:o.currentLocation,nextLocation:o.nextLocation}))},[n.window,f,u,_,y]);h.useLayoutEffect(()=>n.subscribe(b),[n,b]),h.useEffect(()=>{c.isTransitioning&&!c.flushSync&&d(new Br)},[c]),h.useEffect(()=>{if(u&&o&&n.window){let e=o,t=u.promise,r=n.window.document.startViewTransition(async()=>{y(()=>a(e)),await t});r.finished.finally(()=>{d(void 0),p(void 0),s(void 0),l({isTransitioning:!1})}),p(r)}},[y,o,u,n.window]),h.useEffect(()=>{u&&o&&i.location.key===o.location.key&&u.resolve()},[u,f,i.location,o]),h.useEffect(()=>{!c.isTransitioning&&m&&(s(m.state),l({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),g(void 0))},[c.isTransitioning,m]),h.useEffect(()=>{},[]);let x=h.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:e=>n.navigate(e),push:(e,t,r)=>n.navigate(e,{state:t,preventScrollReset:r?.preventScrollReset}),replace:(e,t,r)=>n.navigate(e,{replace:!0,state:t,preventScrollReset:r?.preventScrollReset})}),[n]),S=n.basename||`/`,C=h.useMemo(()=>({router:n,navigator:x,static:!1,basename:S}),[n,x,S]),w=h.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return h.useEffect(()=>yr(r,n.future),[r,n.future]),h.createElement(h.Fragment,null,h.createElement(Vn.Provider,{value:C},h.createElement(Hn.Provider,{value:i},h.createElement(Fr.Provider,{value:_.current},h.createElement(Pr.Provider,{value:c},h.createElement(xr,{basename:S,location:i.location,navigationType:i.historyAction,navigator:x,future:w},i.initialized||n.future.v7_partialHydration?h.createElement(Hr,{routes:n.routes,future:n.future,state:i}):t))))),null)}var Hr=h.memo(Ur);function Ur(e){let{routes:t,future:n,state:r}=e;
10return nr(t,void 0,r,n)}var Wr=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Gr=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Kr=h.forwardRef(function(e,t){let{onClick:n,relative:r,reloadDocument:i,replace:a,state:o,target:s,to:c,preventScrollReset:l,viewTransition:u}=e,d=Tr(e,Or),{basename:f}=h.useContext(Un),p,m=!1;if(typeof c==`string`&&Gr.test(c)&&(p=c,Wr))try{let e=new URL(window.location.href),t=c.startsWith(`//`)?new URL(e.protocol+c):new URL(c),n=pt(t.pathname,f);t.origin===e.origin&&n!=null?c=n+t.search+t.hash:m=!0}catch{}let g=qn(c,{relative:r}),_=Zr(c,{replace:a,state:o,target:s,preventScrollReset:l,relative:r,viewTransition:u});function v(e){n&&n(e),e.defaultPrevented||_(e)}return h.createElement(`a`,wr({},d,{href:p||g,onClick:m||i?n:v,ref:t,target:s}))}),qr=h.forwardRef(function(e,t){let{"aria-current":n=`page`,caseSensitive:r=!1,className:i=``,end:a=!1,style:o,to:s,viewTransition:c,children:l}=e,u=Tr(e,kr),d=tr(s,{relative:u.relative}),f=Yn(),p=h.useContext(Hn),{navigator:m,basename:g}=h.useContext(Un),_=p!=null&&Qr(d)&&c===!0,v=m.encodeLocation?m.encodeLocation(d).pathname:d.pathname,y=f.pathname,b=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;r||(y=y.toLowerCase(),b=b?b.toLowerCase():null,v=v.toLowerCase()),b&&g&&(b=pt(b,g)||b);let x=v!==`/`&&v.endsWith(`/`)?v.length-1:v.length,S=y===v||!a&&y.startsWith(v)&&y.charAt(x)===`/`,C=b!=null&&(b===v||!a&&b.startsWith(v)&&b.charAt(v.length)===`/`),w={isActive:S,isPending:C,isTransitioning:_},T=S?n:void 0,E;E=typeof i==`function`?i(w):[i,S?`active`:null,C?`pending`:null,_?`transitioning`:null].filter(Boolean).join(` `);let ee=typeof o==`function`?o(w):o;return h.createElement(Kr,wr({},u,{"aria-current":T,className:E,ref:t,style:ee,to:s,viewTransition:c}),typeof l==`function`?l(w):l)}),Jr;(function(e){e.UseScrollRestoration=`useScrollRestoration`,e.UseSubmit=`useSubmit`,e.UseSubmitFetcher=`useSubmitFetcher`,e.UseFetcher=`useFetcher`,e.useViewTransitionState=`useViewTransitionState`})(Jr||={});var Yr;(function(e){e.UseFetcher=`useFetcher`,e.UseFetchers=`useFetchers`,e.UseScrollRestoration=`useScrollRestoration`})(Yr||={});function Xr(e){let t=h.useContext(Vn);return!t&&N(!1),t}function Zr(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:o,viewTransition:s}=t===void 0?{}:t,c=Zn(),l=Yn(),u=tr(e,{relative:o});return h.useCallback(t=>{if(Dr(t,n)){t.preventDefault();let n=r===void 0?He(l)===He(u):r;c(e,{replace:n,state:i,preventScrollReset:a,relative:o,viewTransition:s})}},[l,c,u,r,i,n,e,a,o,s])}function Qr(e,t){t===void 0&&(t={});let n=h.useContext(Pr);n??N(!1);let{basename:r}=Xr(Jr.useViewTransitionState),i=tr(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=pt(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=pt(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ut(i.pathname,o)!=null||ut(i.pathname,a)!=null}var $r=`modulepreload`,ei=function(e){return`/`+e},ti={},ni=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=ei(t,n),t=s(t),t in ti)return;ti[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:$r,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},ri={...Fe},{version:ii,render:ai,hydrate:oi}=ri,si=Number((ii||``).split(`.`)[0])>17,ci=Number((ii||``).split(`.`)[0])>18;function li(e,t,n={}){let{useLegacyRender:i}=n;if(i||!si)oi(e,t);else if(ci)ni(async()=>{let{default:{hydrateRoot:e}}=await import(`./client-DRJOb1Hk.js`).then(e=>r(e.default,1));return{default:{hydrateRoot:e}}},__vite__mapDeps([0,1])).then(({default:{hydrateRoot:n}})=>{h.startTransition(()=>{n(t,e)})});
10else{ri.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint=!0;let{hydrateRoot:n}=ri;if(!n)throw Error(`hydrateRoot not found`);h.startTransition(()=>{n(t,e),ri.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint=!1})}}function ui(e){return document.readyState===`loading`?new Promise(t=>{document.addEventListener(`DOMContentLoaded`,()=>t(e))}):Promise.resolve(e)}function di(e){return(0,m.jsx)(Ae,{...e})}function L(e,t){return!e||!t?e||t||``:(e[e.length-1]===`/`&&(e=e.substring(0,e.length-1)),t[0]!==`/`&&(t=`/${t}`),e+t)}function fi(e,t){if(e===t)return`/`;let n=pi(t);return e.startsWith(n)?e.slice(n.length-1):e}function pi(e){return e[e.length-1]===`/`?e:`${e}/`}function mi(e){return e[0]===`/`?e:`/${e}`}function hi(e,t,n=[]){return e.map((e,r)=>{let i=[...n,String(r)],a=typeof e.id==`string`?e.id:i.join(`-`);if(e.id=a,gi(e))return{...e,...t(e),id:a};{let n={...e,...t(e),id:a,children:void 0};return e.children&&(n.children=hi(e.children,t,i)),n}})}function gi(e){return e.index===!0}function _i(e){try{return JSON.parse(e||`{}`)}catch(t){return console.error(`[SSG] On state deserialization -`,t,e),{}}}var vi=(0,h.forwardRef)((e,t)=>{let{replace:n,state:r,target:i,preventScrollReset:a,relative:o,to:s,onClick:c}=e,l=Zr(s,{replace:n,state:r,target:i,preventScrollReset:a,relative:o});function u(e){c&&c(e),e.defaultPrevented||h.startTransition(()=>{l(e)}),e.defaultPrevented=!0,e.preventDefault()}return(0,m.jsx)(Kr,{...e,ref:t,onClick:u})});vi.displayName=`Link`;var yi=(0,h.forwardRef)((e,t)=>{let{replace:n,state:r,target:i,preventScrollReset:a,relative:o,to:s,onClick:c}=e,l=Zr(s,{replace:n,state:r,target:i,preventScrollReset:a,relative:o});function u(e){c&&c(e),e.defaultPrevented||h.startTransition(()=>{l(e)}),e.defaultPrevented=!0,e.preventDefault()}return(0,m.jsx)(qr,{...e,ref:t,onClick:u})});yi.displayName=`NavLink`;function bi(e,t,n={}){let{transformState:r,rootContainer:i=`#root`,ssrWhenDev:a,getStyleCollector:o=null}=n,s=typeof window<`u`,c=e.basename??`/`,{v7_startTransition:l=!0,...u}=e.future??{};async function d(n=!1,i){let a=n?jr(hi(e.routes,f),{basename:c,future:u}):void 0,l=[],d=n?()=>{}:e=>l.push(e),p={isClient:s,routes:e.routes,router:a,routerOptions:e,onSSRAppRendered:d,triggerOnSSRAppRendered:()=>Promise.all(l.map(e=>e())),initialState:{},transformState:r,routePath:i,base:c,getStyleCollector:o,routerType:`remix`};n&&(await ui(),p.initialState=r?.(window.__INITIAL_STATE__||{})||_i(window.__INITIAL_STATE__)),await t?.(p);let m=p.initialState;return{...p,initialState:m}}return s&&(async()=>{let t=typeof i==`string`?document.querySelector(i):i;if(!t){typeof $jsdom>`u`&&console.warn(`[vite-react-ssg] Root container not found.`);return}let r=Je(e.routes,window.location,c)?.filter(e=>e.route.lazy);r&&r?.length>0&&await Promise.all(r.map(async e=>{let t=await e.route.lazy();Object.assign(e.route,{...t,lazy:void 0})}));let a=await d(!0);window.__VITE_REACT_SSG_CONTEXT__=a;let{router:o}=a,s=(0,m.jsx)(Se,{children:(0,m.jsx)(Vr,{router:o,future:{v7_startTransition:l}})});document.querySelector(`[data-server-rendered=true]`),li(s,t,n)})(),d;function f(e){return document.querySelector(`[data-server-rendered=true]`)===null||(e.loader=async({request:t})=>{{let n;if(window.__VITE_REACT_SSG_STATIC_LOADER_DATA__)n=window.__VITE_REACT_SSG_STATIC_LOADER_DATA__;else{let e=L(c,`static-loader-data-manifest-${window.__VITE_REACT_SSG_HASH__}.json`);n=await(await fetch(mi(e))).json(),window.__VITE_REACT_SSG_STATIC_LOADER_DATA__=n}let{url:r}=t,{pathname:i}=new URL(r);return c!==`/`&&(i=fi(i,c)),n?.[i]?.[e.id]??null}}),e}}var xi=`G-XPSYBREWRX`,Si=[`goldsand.fi`,`www.goldsand.fi`],Ci=!1;function wi(){return typeof window>`u`?!1:Si.includes(window.location.hostname)}function Ti(){let e=`https://www.googletagmanager.com/gtag/js?id=${encodeURIComponent(xi)}`;if(document.querySelector(`script[src="${e}"]`))return;let t=document.createElement(`script`);t.async=!0,t.src=e,document.head.appendChild(t)}function Ei(){Ci||!wi()||(Ci=!0,window.dataLayer=window.dataLayer??[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag(`consent`,`default`,{analytics_storage:`granted`,ad_storage:`denied`,ad_user_data:`denied`,ad_personalization:`denied`}),window.gtag(`js`,new Date),window.gtag(`config`,xi,{send_page_view:!1}),Ti())}function Di(e){wi()&&window.gtag?.(`event`,`page_view`,{page_path:e,page_location:window.location.href,page_title:document.title})}function Oi(e,t){wi()&&window.gtag?.(`event`,e,t)}var ki=new Map;function Ai(e,t,n,r=700){if(!wi())return;let i=ki.get(n);i!==void 0&&window.clearTimeout(i),ki.set(n,window.setTimeout(()=>{ki.delete(n),Oi(e,t)},r))}function ji(e){return e.startsWith(`mailto:`)?`email`:e.startsWith(`tel:`)?`phone`:/(?:^|\/\/|\.)(?:wa\.me|whatsapp\.com)(?:\/|$)/i.test(e)?`whatsapp`:null}function Mi(e,t){let n=ji(e);n&&Oi(`contact_click`,{method:n,placement:t,link_url:e})}function Ni(){let{pathname:e,search:t}=Yn();return(0,h.useEffect)(()=>{Ei()},[]),(0,h.useEffect)(()=>{let n=window.setTimeout(()=>{Di(`${e}${t}`)},0);return()=>window.clearTimeout(n)},[e,t]),null}var Pi=`https://goldsand.fi`,Fi=`${Pi}
10/images/BWACdXqDJNmioQvnuyKLfTM4sM.jpg`,Ii={"/":{title:`Goldsand | Halal High-Yield Savings App`,description:`Earn up to 7% on your cash with Goldsand, a halal savings app built on profit-sharing, not interest. Stay liquid and withdraw anytime.`},"/waitlist":{title:`Join the Waitlist | Goldsand`,description:`Join the Goldsand waitlist for early access to a halal high-yield savings app paying up to 7% on your cash — profit-sharing, not interest.`},"/about":{title:`About Goldsand | Team, Story & Shariah Board`,description:`Meet the team and Shariah scholars building Goldsand, combining financial technology, Islamic finance expertise, and an interest-free profit-sharing model.`},"/faq":{title:`FAQ — Halal Savings & Profit-Sharing Explained | Goldsand`,description:`Read clear, visual guides to how Goldsand works, where returns come from, and how risks are reduced without interest or conventional lending.`},"/faq/where-returns-come-from":{title:`Where Do Goldsand Returns Come From? | Goldsand`,description:`Learn how stablecoin payment activity generates fees and how Goldsand shares approved profits with users without lending or interest.`,type:`article`},"/faq/risks-and-risk-reduction":{title:`Goldsand Risks & Risk Reduction | Goldsand`,description:`Understand Goldsand’s key risks, what it avoids, and the safeguards designed to reduce risk while keeping funds outside its balance sheet.`,type:`article`},"/shariah-policy":{title:`Shariah Compliance | Goldsand`,description:`Learn how Goldsand approaches Shariah compliance, meet its Shariah board, and review the product’s Shariah documentation.`},"/privacy-policy":{title:`Privacy Policy | Goldsand`,description:`Learn how Goldsand and Camelcorn Inc. collect, use, share, and protect personal information across the website and mobile app.`},"/terms-of-use":{title:`Terms of Use | Goldsand`,description:`Read the terms governing use of the Goldsand website, mobile app, and related non-custodial services.`}},Li={"@context":`https://schema.org`,"@graph":[{"@type":`Organization`,"@id":`${Pi}/#organization`,name:`Goldsand`,legalName:`Camelcorn Inc.`,url:`${Pi}/`,logo:{"@type":`ImageObject`,url:`${Pi}/images/0jJXkMeT8g6i75th9SZYTg9ZUVI.png`,width:184,height:184}},{"@type":`WebSite`,"@id":`${Pi}/#website`,url:`${Pi}/`,name:`Goldsand`,publisher:{"@id":`${Pi}/#organization`}}]};function Ri(e){return e===`/`?e:e.replace(/\/+$/,``)}function zi({pathname:e}){let t=Ri(e),n=Ii[t]??Ii[`/`],r=t===`/`?`${Pi}/`:`${Pi}${t}`;return(0,m.jsxs)(di,{children:[(0,m.jsx)(`title`,{children:n.title}),(0,m.jsx)(`meta`,{name:`description`,content:n.description}),(0,m.jsx)(`link`,{rel:`canonical`,href:r}),(0,m.jsx)(`meta`,{property:`og:site_name`,content:`Goldsand`}),(0,m.jsx)(`meta`,{property:`og:locale`,content:`en_US`}),(0,m.jsx)(`meta`,{property:`og:type`,content:n.type??`website`}),(0,m.jsx)(`meta`,{property:`og:title`,content:n.title}),(0,m.jsx)(`meta`,{property:`og:description`,content:n.description}),(0,m.jsx)(`meta`,{property:`og:url`,content:r}),(0,m.jsx)(`meta`,{property:`og:image`,content:Fi}),(0,m.jsx)(`meta`,{property:`og:image:secure_url`,content:Fi}),(0,m.jsx)(`meta`,{property:`og:image:type`,content:`image/jpeg`}),(0,m.jsx)(`meta`,{property:`og:image:width`,content:`1200`}),(0,m.jsx)(`meta`,{property:`og:image:height`,content:`630`}),(0,m.jsx)(`meta`,{property:`og:image:alt`,content:`Goldsand halal savings app`}),(0,m.jsx)(`meta`,{name:`twitter:card`,content:`summary_large_image`}),(0,m.jsx)(`meta`,{name:`twitter:title`,content:n.title}),(0,m.jsx)(`meta`,{name:`twitter:description`,content:n.description}),(0,m.jsx)(`meta`,{name:`twitter:image`,content:Fi}),(0,m.jsx)(`meta`,{name:`twitter:image:alt`,content:`Goldsand halal savings app`}),t===`/`&&(0,m.jsx)(`script`,{type:`application/ld+json`,children:JSON.stringify(Li).replace(/</g,`\\u003c`)})]})}var Bi=(0,h.createContext)({});function Vi(e){let t=(0,h.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Hi=typeof window<`u`?h.useLayoutEffect:h.useEffect,Ui=(0,h.createContext)(null);function Wi(e,t){e.indexOf(t)===-1&&e.push(t)}function Gi(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var Ki=(e,t,n)=>n>t?t:n<e?e:n,qi=()=>{},Ji={},Yi=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Xi=e=>typeof e==`object`&&!!e,R=e=>/^0[^.\s]+$/u.test(e);function z(e){let t;return()=>(t===void 0&&(t=e()),t)}var Zi=e=>e,Qi=(...e)=>e.reduce((e,t)=>
10n=>t(e(n))),$i=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},ea=class{constructor(){this.subscriptions=[]}add(e){return Wi(this.subscriptions,e),()=>Gi(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},ta=e=>e*1e3,B=e=>e/1e3,na=(e,t)=>t?1e3/t*e:0,ra=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,ia=1e-7,aa=12;function oa(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=ra(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>ia&&++s<aa);return o}function sa(e,t,n,r){if(e===t&&n===r)return Zi;let i=t=>oa(t,0,1,e,n);return e=>e===0||e===1?e:ra(i(e),t,r)}var ca=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,la=e=>t=>1-e(1-t),ua=sa(.33,1.53,.69,.99),da=la(ua),fa=ca(da),pa=e=>e>=1?1:(e*=2)<1?.5*da(e):.5*(2-2**(-10*(e-1))),ma=e=>1-Math.sin(Math.acos(e)),ha=la(ma),ga=ca(ma),_a=sa(.42,0,1,1),va=sa(0,0,.58,1),ya=sa(.42,0,.58,1),ba=e=>Array.isArray(e)&&typeof e[0]!=`number`,xa=e=>Array.isArray(e)&&typeof e[0]==`number`,Sa={linear:Zi,easeIn:_a,easeInOut:ya,easeOut:va,circIn:ma,circInOut:ga,circOut:ha,backIn:da,backInOut:fa,backOut:ua,anticipate:pa},Ca=e=>typeof e==`string`,wa=e=>{if(xa(e)){e.length;let[t,n,r,i]=e;return sa(t,n,r,i)}else if(Ca(e))return Sa[e],`${e}`,Sa[e];return e},Ta=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Ea(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var Da=40;function V(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Ta.reduce((e,t)=>(e[t]=Ea(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=Ji.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,Da),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Ta.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Ta.length;t++)o[Ta[t]].cancel(e)},state:i,steps:o}}var{schedule:H,cancel:Oa,state:ka,steps:Aa}=V(typeof requestAnimationFrame<`u`?requestAnimationFrame:Zi,!0),ja;function Ma(){ja=void 0}var Na={now:()=>(ja===void 0&&Na.set(ka.isProcessing||Ji.useManualTiming?ka.timestamp:performance.now()),ja),set:e=>{ja=e,queueMicrotask(Ma)}},Pa=e=>t=>typeof t==`string`&&t.startsWith(e),Fa=Pa(`--`),Ia=Pa(`var(--`),La=e=>Ia(e)?Ra.test(e.split(`/*`)[0].trim()):!1,Ra=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function za(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var Ba={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Va={...Ba,transform:e=>Ki(0,1,e)},Ha={...Ba,default:1},Ua=e=>Math.round(e*1e5)/1e5,Wa=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ga(e){return e==null}var Ka=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,qa=(e,t)=>n=>!!(typeof n==`string`&&Ka.test(n)&&n.startsWith(e)||t&&!Ga(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ja=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Wa);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Ya=e=>Ki(0,255,e),Xa={...Ba,transform:e=>Math.round(Ya(e))},Za={test:qa(`rgb`,`red`),parse:Ja(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Xa.transform(e)+`, `+Xa.transform(t)+`, `+Xa.transform(n)+`, `+Ua(Va.transform(r))+`)`};function Qa(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alph
10a:i?parseInt(i,16)/255:1}}var $a={test:qa(`#`),parse:Qa,transform:Za.transform},eo=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),to=eo(`deg`),no=eo(`%`),U=eo(`px`),ro=eo(`vh`),io=eo(`vw`),ao={...no,parse:e=>no.parse(e)/100,transform:e=>no.transform(e*100)},oo={test:qa(`hsl`,`hue`),parse:Ja(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+no.transform(Ua(t))+`, `+no.transform(Ua(n))+`, `+Ua(Va.transform(r))+`)`},W={test:e=>Za.test(e)||$a.test(e)||oo.test(e),parse:e=>Za.test(e)?Za.parse(e):oo.test(e)?oo.parse(e):$a.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Za.transform(e):oo.transform(e),getAnimatableNone:e=>{let t=W.parse(e);return t.alpha=0,W.transform(t)}},so=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function co(e){return isNaN(e)&&typeof e==`string`&&(e.match(Wa)?.length||0)+(e.match(so)?.length||0)>0}var lo=`number`,uo=`color`,fo=`var`,po=`var(`,mo="${}",ho=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function go(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(ho,e=>(W.test(e)?(r.color.push(a),i.push(uo),n.push(W.parse(e))):e.startsWith(po)?(r.var.push(a),i.push(fo),n.push(e)):(r.number.push(a),i.push(lo),n.push(parseFloat(e))),++a,mo)).split(mo),indexes:r,types:i}}function _o(e){return go(e).values}function vo({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===lo?i+=Ua(r[a]):e===uo?i+=W.transform(r[a]):i+=r[a]}return i}}function yo(e){return vo(go(e))}var G=e=>typeof e==`number`?0:W.test(e)?W.getAnimatableNone(e):e,bo=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:G(e);function xo(e){let t=go(e);return vo(t)(t.values.map((e,n)=>bo(e,t.split[n])))}var So={test:co,parse:_o,createTransformer:yo,getAnimatableNone:xo};function Co(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function wo({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Co(s,r,e+1/3),a=Co(s,r,e),o=Co(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function To(e,t){return n=>n>0?t:e}var K=(e,t,n)=>e+(t-e)*n,Eo=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Do=[$a,Za,oo],Oo=e=>Do.find(t=>t.test(e));function ko(e){let t=Oo(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===oo&&(n=wo(n)),n}var Ao=(e,t)=>{let n=ko(e),r=ko(t);if(!n||!r)return To(e,t);let i={...n};return e=>(i.red=Eo(n.red,r.red,e),i.green=Eo(n.green,r.green,e),i.blue=Eo(n.blue,r.blue,e),i.alpha=K(n.alpha,r.alpha,e),Za.transform(i))},jo=new Set([`none`,`hidden`]);function Mo(e,t){return jo.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function No(e,t){return n=>K(e,t,n)}function Po(e){return typeof e==`number`?No:typeof e==`string`?La(e)?To:W.test(e)?Ao:Ro:Array.isArray(e)?Fo:typeof e==`object`?W.test(e)?Ao:Io:To}function Fo(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Po(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Io(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Po(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Lo(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var Ro=(e,t)=>{let n=So.createTransformer(t),r=go(e),i=go(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?jo.has(e)&&!i.values.length||jo.has(t)&&!r.values.length?Mo(e,t):Qi(Fo(Lo(r,i),i.values),n):(`${e}${t}`,To(e,t))};function zo(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`
10number`?K(e,t,n):Po(e)(e,t)}var Bo=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>H.update(t,e),stop:()=>Oa(t),now:()=>ka.isProcessing?ka.timestamp:Na.now()}},Vo=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Ho=2e4;function Uo(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function Wo(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Uo(r),Ho);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:B(i)}}var q={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Go(e,t){return e*Math.sqrt(1-t*t)}var Ko=12;function qo(e,t,n){let r=n;for(let n=1;n<Ko;n++)r-=e(r)/t(r);return r}var Jo=.001;function Yo({duration:e=q.duration,bounce:t=q.bounce,velocity:n=q.velocity,mass:r=q.mass}){let i,a;q.maxDuration;let o=1-t;o=Ki(q.minDamping,q.maxDamping,o),e=Ki(q.minDuration,q.maxDuration,B(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=Go(t,o),c=Math.exp(-i);return Jo-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=Go(t**2,o);return(-i(t)+Jo>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=qo(i,a,s);if(e=ta(e),isNaN(c))return{stiffness:q.stiffness,damping:q.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Xo=[`duration`,`bounce`],Zo=[`stiffness`,`damping`,`mass`];function Qo(e,t){return t.some(t=>e[t]!==void 0)}function $o(e){let t={velocity:q.velocity,stiffness:q.stiffness,damping:q.damping,mass:q.mass,isResolvedFromDuration:!1,...e};if(!Qo(e,Zo)&&Qo(e,Xo))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Ki(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:q.mass,stiffness:i,damping:a}}else{let n=Yo({...e,velocity:0});t={...t,...n,mass:q.mass},t.isResolvedFromDuration=!0}return t}function es(e=q.visualDuration,t=q.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=$o({...n,velocity:-B(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=B(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?q.restSpeed.granular:q.restSpeed.default,i||=v?q.restDelta.granular:q.restDelta.default;let y,b,x,S,C,w;if(h<1)x=Go(_,h),S=(m+h*_*g)/x,y=e=>{let t=Math.exp(-h*_*e);return o-t*(S*Math.sin(x*e)+g*Math.cos(x*e))},C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>ta(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=ta(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=ta(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(Uo(T),Ho),t=Vo(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}es.applyToOptions=e=>{let t=Wo(e,100,es);return e.ease=t.ease,e.duration=ta(t.duration),e.type=`keyframes`,e};var ts=5;function ns(e,t,n){let r=Math.max(t-ts,0);return na(n-e(r),t-r)}function rs({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>
10{p(f.value)&&(x=e,S=es({keyframes:[f.value,m(f.value)],velocity:ns(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function is(e,t,n){let r=[],i=n||Ji.mix||zo,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=Qi(Array.isArray(t)?t[n]||Zi:t,a)),r.push(a)}return r}function as(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=is(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=$i(e[r],e[r+1],n);return s[r](i)};return n?t=>l(Ki(e[0],e[a-1],t)):l}function os(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=$i(0,t,r);e.push(K(n,1,i))}}function ss(e){let t=[0];return os(t,e.length-1),t}function cs(e,t){return e.map(e=>e*t)}function ls(e,t){return e.map(()=>t||ya).splice(0,e.length-1)}function us({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=ba(r)?r.map(wa):wa(r),a={done:!1,value:t[0]},o=as(cs(n&&n.length===t.length?n:ss(t),e),t,{ease:Array.isArray(i)?i:ls(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var ds=e=>e!==null;function fs(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(ds),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var ps={decay:rs,inertia:rs,tween:us,keyframes:us,spring:es};function ms(e){typeof e.type==`string`&&(e.type=ps[e.type])}var hs=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},gs=e=>e/100,_s=class extends hs{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==Na.now()&&this.tick(Na.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;ms(e);let{type:t=us,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||us;s!==us&&typeof o[0]!=`number`&&(this.mixKeyframes=Qi(gs,zo(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Uo(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=Ki(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==rs&&(b.value=fs(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return B(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+B(e)}get time(){return B(this.currentTime)}set time(e){e=ta(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return ns(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(Na.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=B(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Bo,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(Na.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function vs(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var ys=e=>e*180/Math.PI,bs=e=>Ss(ys(Math.atan2(e[1],e[0]))),xs={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:bs,rotateZ:bs,skewX:e=>ys(Math.atan(e[1])),skewY:e=>ys(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Ss=e=>(e%=360,e<0&&(e+=360),e),Cs=bs,ws=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Ts=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Es={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ws,scaleY:Ts,scale:e=>(ws(e)+Ts(e))/2,rotateX:e=>Ss(ys(Math.atan2(e[6],e[5]))),rotateY:e=>Ss(ys(Math.atan2(-e[2],e[0]))),rotateZ:Cs,rotate:Cs,skewX:e=>ys(Math.atan(e[4])),skewY:e=>ys(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ds(e){return+!!e.includes(`scale`)}
10function Os(e,t){if(!e||e===`none`)return Ds(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Es,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=xs,i=t}if(!i)return Ds(t);let a=r[t],o=i[1].split(`,`).map(As);return typeof a==`function`?a(o):o[a]}var ks=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Os(n,t)};function As(e){return parseFloat(e.trim())}var js=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Ms=new Set([...js,`pathRotation`]),Ns=e=>e===Ba||e===U,Ps=new Set([`x`,`y`,`z`]),Fs=js.filter(e=>!Ps.has(e));function Is(e){let t=[];return Fs.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var J={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Os(t,`x`),y:(e,{transform:t})=>Os(t,`y`)};J.translateX=J.x,J.translateY=J.y;var Ls=new Set,Rs=!1,zs=!1,Bs=!1;function Vs(){if(zs){let e=Array.from(Ls).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Is(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}zs=!1,Rs=!1,Ls.forEach(e=>e.complete(Bs)),Ls.clear()}function Hs(){Ls.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(zs=!0)})}function Us(){Bs=!0,Hs(),Vs(),Bs=!1}var Ws=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(Ls.add(this),Rs||(Rs=!0,H.read(Hs),H.resolveKeyframes(Vs))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}vs(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Ls.delete(this)}cancel(){this.state===`scheduled`&&(Ls.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Gs=e=>e.startsWith(`--`);function Ks(e,t,n){Gs(t)?e.style.setProperty(t,n):e.style[t]=n}var qs={};function Js(e,t){let n=z(e);return()=>qs[t]??n()}var Ys=Js(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Xs=Js(()=>window.ViewTimeline!==void 0,`viewTimeline`),Zs=Js(()=>{try{document.createElement(`div`).animate({opacity:0}
10,{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Qs=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,$s={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Qs([0,.65,.55,1]),circOut:Qs([.55,0,1,.45]),backIn:Qs([.31,.01,.66,-.59]),backOut:Qs([.33,1.53,.69,.99])};function ec(e,t){if(e)return typeof e==`function`?Zs()?Vo(e,t):`ease-out`:xa(e)?Qs(e):Array.isArray(e)?e.map(e=>ec(e,t)||$s.easeOut):$s[e]}function tc(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=ec(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function nc(e){return typeof e==`function`&&`applyToOptions`in e}function rc({type:e,...t}){return nc(e)&&Zs()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var ic=class extends hs{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=rc(e);this.animation=tc(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=fs(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Ks(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return B(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+B(e)}get time(){return B(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ta(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`f
10inished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Ys()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),Zi):r(this)}},ac={anticipate:pa,backInOut:fa,circInOut:ga};function oc(e){return e in ac}function sc(e){typeof e.ease==`string`&&oc(e.ease)&&(e.ease=ac[e.ease])}var cc=10,lc=class extends ic{constructor(e){sc(e),ms(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new _s({...a,autoplay:!1}),s=Math.max(cc,Na.now()-this.startTime),c=Ki(0,cc,s-cc),l=o.sample(s).value,{name:u}=this.options;i&&u&&Ks(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},uc=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(So.test(e)||e===`0`)&&!e.startsWith(`url(`));function dc(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function fc(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=uc(i,t),s=uc(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:dc(e)||(n===`spring`||nc(n))&&r}function pc(e){e.duration=0,e.type=`keyframes`}var mc=new Set([`opacity`,`clipPath`,`filter`,`transform`]),Y=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function hc(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Y.test(e[t]))return!0;return!1}var gc=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),_c=z(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function vc(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return _c()&&n&&(mc.has(n)||gc.has(n)&&hc(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var yc=40,bc=class extends hs{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Na.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||Ws;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=Na.now();let u=!0;fc(e,i,a,o)||(u=!1,(Ji.instantAnimations||!s)&&l?.(fs(e,n,t)),e[0]=e[e.length-1],pc(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>yc?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&vc(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new lc({...d,element:p})}catch{m=new _s(d)}else m=new _s(d);m.finished.then(()=>{this.notifyFinished()}).catch(Zi),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Us()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function xc(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>
10e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Sc=30,Cc=e=>!isNaN(parseFloat(e)),wc={current:void 0},Tc=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=Na.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Na.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Cc(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new ea);let n=this.events[e].add(t);return e===`change`?()=>{n(),H.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return wc.current&&wc.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=Na.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Sc)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Sc);return na(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Ec(e,t){return new Tc(e,t)}function Dc(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Oc(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Dc(n,e)}var kc={type:`spring`,stiffness:500,damping:25,restSpeed:10},Ac=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),jc={type:`keyframes`,duration:.8},Mc={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Nc=(e,{keyframes:t})=>t.length>2?jc:Ms.has(e)?e.startsWith(`scale`)?Ac(t[1]):kc:Mc,Pc=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Fc(e){for(let t in e)if(!Pc.has(t))return!0;return!1}var Ic=(e,t,n,r={},i,a)=>o=>{let s=Oc(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=ta(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Fc(s)||Object.assign(u,Nc(e,u)),u.duration&&=ta(u.duration),u.repeatDelay&&=ta(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(pc(u),u.delay===0&&(d=!0)),(Ji.instantAnimations||Ji.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,pc(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=fs(u.keyframes,s);if(e!==void 0){H.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new _s(u):new bc(u)},Lc=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Rc(e){let t=Lc.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function zc(e,t,n=1){`${e}`;let[r,i]=Rc(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return Yi(e)?parseFloat(e):e}return La(i)?zc(i,t,n+1):i}function Bc(e){let t=[{},{}];
10return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Vc(e,t,n,r){if(typeof t==`function`){let[i,a]=Bc(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Bc(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Hc(e,t,n){let r=e.getProps();return Vc(r,t,n===void 0?r.custom:n,e)}var Uc=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...js]),X=e=>Array.isArray(e);function Wc(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ec(n))}function Gc(e){return X(e)?e[e.length-1]||0:e}function Kc(e,t){let{transitionEnd:n={},transition:r={},...i}=Hc(e,t)||{};i={...i,...n};for(let t in i)Wc(e,t,Gc(i[t]))}var Z=e=>!!(e&&e.getVelocity);function qc(e){return!!(Z(e)&&e.add)}function Jc(e,t){let n=e.getValue(`willChange`);if(qc(n))return n.add(t);if(!n&&Ji.WillChange){let n=new Ji.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Yc(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Xc=`data-`+Yc(`framerAppearId`);function Zc(e){return e.props[Xc]}function Qc({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function $c(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Dc(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&Qc(f,t))continue;let o={delay:n,...Oc(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){H.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=Zc(e);if(n){let e=window.MotionHandoffAnimation(n,t,H);e!==null&&(o.startTime=e,p=!0)}}Jc(e,t);let m=l??e.shouldReduceMotion;r.start(Ic(t,r,i,m&&Uc.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>H.update(()=>{o&&Kc(e,o)});d.length?Promise.all(d).then(t):t()}return d}function el(e,t,n={}){let r=Hc(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all($c(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return tl(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function tl(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(el(c,t,{...o,delay:n+(typeof r==`function`?0:r)+xc(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function nl(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>el(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=el(e,t,n);else{let i=typeof t==`function`?Hc(e,t,n.custom):t;r=Promise.all($c(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var rl={test:e=>e===`auto`,parse:e=>e},il=e=>t=>t.test(e),al=[Ba,U,no,to,io,ro,rl],ol=e=>al.find(il(e));function sl(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||R(e)}var cl=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function ll(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Wa)||[];if(!r)return e;let i=n.replace(r,``),a=+!!cl.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var ul=/\b([a-z-]*)\(.*?\)/gu,dl={...So,getAnimatableNone:e=>{let t=e.match(ul);return t?t.map(ll).join(` `):e}},fl={...So,getAnimatableNone:e=>{let t=So.parse(e);return So.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},pl={...Ba,transform:Math.round},ml={borderWidth:U,borderTopWidth:U,borderRightWidth:U,borderBottomWidth:U,borderLeftWidth:U,borderRadius:U,borderTopLeftRadius:U,borderTopRightRadius:U,borderBottomRightRadius:U,borderBottomLeftRadius:U,width:U,maxWidth:U,height:U,maxHeight:U,top:U,right:U,bottom:U,left:U,inset:U,insetBlock:U,insetBlockStart:U,insetBlockEnd:U,insetInline:U,insetInlineStart:U,insetInlineEnd:U,padding:U,paddingTop:U,paddingRight:U,paddingBottom:U,paddingLeft:U,paddingBlock:U,paddingBlockStart:U,paddingBlockEnd:U,paddingInline:U,paddingInlineStart:U,paddingInlineEnd:U,margin:U,marginTop:U,marginRight:U,marginBottom:U,marginLeft:U,marginBlock:U,marginBlockStart:U,marginBlockEnd:U,marginInline:U,marginInlineStart:U,marginInlineEnd:U,fontSize:U,backgroundPositionX:U,backgroundPositionY:U,rotate:to,pathRotation:to,rotateX:to,rotateY:to,rotateZ:to,scale:Ha,scaleX:Ha,scaleY:Ha,scaleZ:Ha,skew:to,skewX:to,skewY:to,distance:U,translateX:U,translateY:U,translateZ:U,x:U,y:U,z:U,perspective:U,transformPerspective:U,opacity:Va,originX:ao,originY:ao,originZ:U,zIndex:pl,fillOpacity:Va,strokeOpacity:Va,numOctaves:pl},hl={...ml,color:W,backgroundColor:W,outlineColor:W,fill:W,stroke:W,borderColor:W,borderTopColor:W,borderRightColor:W,borderBottomColor:W,borderLeftColor:W,filter:dl,WebkitFilter:dl,mask:fl,WebkitMask:fl},gl=e=>hl[e],_l=new Set([dl,fl]);function vl(e,t){let n=gl(e);return _l.has(n)||(n=So),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var yl=new Set([`auto`,`none`,`0`]);function bl(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!yl.has(t)&&go(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=vl(n,i)}var xl=class extends Ws{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),La(r))){let i=zc(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Uc.has(n)||e.length!==2)return;let[r,i]=e,a=ol(r),o=ol(i);if(za(r)!==za(i)&&J[n]){this.needsMeasurement=!0;return}if(a!==o)if(Ns(a)&&Ns(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else J[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||sl(e[t]))&&n.push(t);n.length&&bl(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=J[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=J[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEac
10h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},Sl=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function Cl(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var wl=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Tl(e){return Xi(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:El,cancel:Dl}=V(queueMicrotask,!1),Ol={x:!1,y:!1};function kl(){return Ol.x||Ol.y}function Al(e){return e===`x`||e===`y`?Ol[e]?null:(Ol[e]=!0,()=>{Ol[e]=!1}):Ol.x||Ol.y?null:(Ol.x=Ol.y=!0,()=>{Ol.x=Ol.y=!1})}function jl(e,t){let n=Cl(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Ml(e){return!(e.pointerType===`touch`||kl())}function Nl(e,t,n={}){let[r,i,a]=jl(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!Ml(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Pl=(e,t)=>t?e===t||Pl(e,t.parentElement):!1,Fl=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Il=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Ll(e){return Il.has(e.tagName)||e.isContentEditable===!0}var Rl=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function zl(e){return Rl.has(e.tagName)||e.isContentEditable===!0}var Q=new WeakSet;function Bl(e){return t=>{t.key===`Enter`&&e(t)}}function Vl(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Hl=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Bl(()=>{if(Q.has(n))return;Vl(n,`down`);let e=Bl(()=>{Vl(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Vl(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Ul(e){return Fl(e)&&!kl()}var Wl=new WeakSet;function Gl(e,t,n={}){let[r,i,a]=jl(e,n),o=e=>{let r=e.currentTarget;if(!Ul(e)||Wl.has(e))return;Q.add(r),n.stopPropagation&&Wl.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),Q.has(r)&&Q.delete(r),Ul(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||Pl(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Tl(e)&&(e.addEventListener(`focus`,e=>Hl(e,i)),!Ll(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Kl(e){return Xi(e)&&`ownerSVGElement`in e}var ql=new WeakMap,Jl,Yl=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Kl(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Xl=Yl(`inline`,`width`,`offsetWidth`),Zl=Yl(`block`,`height`,`offsetHeight`);function Ql({target:e,borderBoxSize:t}){ql.get(e)?.forEach(n=>{n(e,{get width(){return Xl(e,t)},get height(){return Zl(e,t)}})})}function $l(e){e.forEach(Ql)}function eu(){typeof ResizeObserver>`u`||(Jl=new ResizeObserver($l))}function tu(e,t){Jl||eu();let n=Cl(e);return n.forEach(e=>{let n=ql.get(e);n||(n=new Set,ql.set(e,n)),n.add(t),Jl?.observe(e)}),()=>{n.forEach(e=>{let n=ql.get(e);n?.delete(t),n?.size||Jl?.unobserve(e)})}}var nu=new Set,ru;function iu(){ru=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};nu.forEach(t=>t(e))},window.addEventListener(`resize`,ru)}function au(e){return nu.add(e),ru||iu(),()=>{nu.delete(e),!nu.size&&typeof ru==`function`&&(window.removeEventListener(`resize`,ru),ru=void 0)}}function ou(e,t){return typeof e==`function`?au(e):tu(e,t)}var su={value:null,addProjectionMetrics:null};function cu(e){return Kl(e)&&e.tagName===`svg`}var lu=[...al,W,So],uu=e=>lu.find(il(e)),du=()=>({translate:0,scale:1,origin:0,originPoint:0}),fu=()=>({x:du(),y:du()}),pu=()=>({min:0,max:0}),$=()=>({x:pu(),y:pu()}),mu=new WeakMap;function hu(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function gu(e){return typeof e==`string`||Array.isArray(e)}var _u=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],vu=[`initial`,..._u];function yu(e){return hu(e.animate)||vu.some(t=>gu(e[t]))}function bu(e){return!!(yu(e)||e.variants)}function xu(e,t,n){for(let r in t){let i=t[r],a=n[r];if(Z(i))e.addValue(r,i);else if(Z(a))e.addValue(r,Ec(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Ec(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Su={current:null},Cu={current:!1},wu=typeof window<`u`;function Tu(){if(Cu.current=!0,wu)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Su.current=e.matches;e.addEventListener(`change`,t),t()}else Su.current=!1}var Eu=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Du={};function Ou(e){Du=e}function ku(){return Du}var Au=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Ws,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=Na.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,H.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=yu(t),this.isVariantNode=bu(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&Z(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,mu.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
10h((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Cu.current||Tu(),this.shouldReduceMotion=Su.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Oa(this.notifyUpdate),Oa(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&mc.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new ic({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:ta(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=Ms.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&H.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Du){let t=Du[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Eu.length;t++){let n=Eu[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=xu(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Ec(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);
10return n!=null&&(typeof n==`string`&&(Yi(n)||R(n))?n=parseFloat(n):!uu(n)&&So.test(t)&&(n=vl(e,t)),this.setBaseTarget(e,Z(n)?n.get():n)),Z(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=Vc(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!Z(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new ea),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){El.render(this.render)}},ju=class extends Au{constructor(){super(...arguments),this.KeyframeResolver=xl}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;Z(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},Mu=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function Nu({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Pu({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Fu(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Iu(e){return e===void 0||e===1}function Lu({scale:e,scaleX:t,scaleY:n}){return!Iu(e)||!Iu(t)||!Iu(n)}function Ru(e){return Lu(e)||zu(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function zu(e){return Bu(e.x)||Bu(e.y)}function Bu(e){return e&&e!==`0%`}function Vu(e,t,n){return n+t*(e-n)}function Hu(e,t,n,r,i){return i!==void 0&&(e=Vu(e,i,r)),Vu(e,n,r)+t}function Uu(e,t=0,n=1,r,i){e.min=Hu(e.min,t,n,r,i),e.max=Hu(e.max,t,n,r,i)}function Wu(e,{x:t,y:n}){Uu(e.x,t.translate,t.scale,t.originPoint),Uu(e.y,n.translate,n.scale,n.originPoint)}var Gu=.999999999999,Ku=1.0000000000001;function qu(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(Ju(e.x,-a.scroll.offset.x),Ju(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Wu(e,o)),r&&Ru(a.latestValues)&&Zu(e,a.latestValues,a.layout?.layoutBox))}t.x<Ku&&t.x>Gu&&(t.x=1),t.y<Ku&&t.y>Gu&&(t.y=1)}function Ju(e,t){e.min+=t,e.max+=t}function Yu(e,t,n,r,i=.5){Uu(e,t,n,K(e.min,e.max,i),r)}function Xu(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Zu(e,t,n){let r=n??e;Yu(e.x,Xu(t.x,r.x),t.scaleX,t.scale,t.originX),Yu(e.y,Xu(t.y,r.y),t.scaleY,t.scale,t.originY)}function Qu(e,t){return Nu(Fu(e.getBoundingClientRect(),t))}function $u(e,t,n){let r=Qu(e,n),{scroll:i}=t;return i&&(Ju(r.x,i.offset.x),Ju(r.y,i.offset.y)),r}var ed={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},td=js.length;function nd(e,t,n){let r=``,i=!0;for(let a=0;a<td;a++){let o=js[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=wl(s,ml[o]);if(!c){i=!1;let t=ed[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${wl(a,ml.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function rd(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(Ms.has(e)){o=!0;continue}else if(Fa(e)){i[e]=n;continue}else{let t=wl(n,ml[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=nd(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function id(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function ad(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var od={correct:(e,t)=>
10{if(!t.target)return e;if(typeof e==`string`)if(U.test(e))e=parseFloat(e);else return e;return`${ad(e,t.target.x)}% ${ad(e,t.target.y)}%`}},sd={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=So.parse(e);if(i.length>5)return r;let a=So.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=K(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},cd={borderRadius:{...od,applyTo:[...Sl]},borderTopLeftRadius:od,borderTopRightRadius:od,borderBottomLeftRadius:od,borderBottomRightRadius:od,boxShadow:sd};function ld(e,{layout:t,layoutId:n}){return Ms.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!cd[e]||e===`opacity`)}function ud(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(Z(r[t])||i&&Z(i[t])||ld(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function dd(e){return window.getComputedStyle(e)}var fd=class extends ju{constructor(){super(...arguments),this.type=`html`,this.renderInstance=id}readValueFromInstance(e,t){if(Ms.has(t))return this.projection?.isProjecting?Ds(t):ks(e,t);{let n=dd(e),r=(Fa(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Qu(e,t)}build(e,t,n){rd(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return ud(e,t,n)}},pd={offset:`stroke-dashoffset`,array:`stroke-dasharray`},md={offset:`strokeDashoffset`,array:`strokeDasharray`};function hd(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?pd:md;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var gd=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function _d(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(rd(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of gd)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&hd(d,i,a,o,!1)}var vd=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),yd=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function bd(e,t,n,r){id(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(vd.has(n)?n:Yc(n),t.attrs[n])}function xd(e,t,n){let r=ud(e,t,n);for(let n in e)if(Z(e[n])||Z(t[n])){let t=js.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Sd=class extends ju{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=$}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Ms.has(t)){let e=gl(t);return e&&e.default||0}return t=vd.has(t)?t:Yc(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return xd(e,t,n)}
10build(e,t,n){_d(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){bd(e,t,n,r)}mount(e){this.isSVGTag=yd(e.tagName),super.mount(e)}},Cd=vu.length;function wd(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&wd(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Cd;n++){let r=vu[n],i=e.props[r];(gu(i)||i===!1)&&(t[r]=i)}return t}function Td(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Ed=[..._u].reverse(),Dd=_u.length;function Od(e){return t=>Promise.all(t.map(({animation:t,options:n})=>nl(e,t,n)))}function kd(e){let t=Od(e),n=Md(),r=!0,i=!1,a=t=>(n,r)=>{let i=Hc(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=wd(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Dd;t++){let p=Ed[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=gu(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||hu(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=Ad(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=X(t)&&X(n)?!Td(t,n)||y:t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let ee=v&&y;b&&(!ee||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!ee&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=Hc(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=xc(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=Hc(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Md(),i=!0}}}function Ad(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Td(t,e):!1}function jd(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Md(){return{animate:jd(!0),whileInView:jd(),whileHover:jd(),whileTap:jd(),whileDrag:jd(),whileFocus:jd(),exit:jd()}}function Nd(e,t){e.min=t.min,e.max=t.max}function Pd(e,t){Nd(e.x,t.x),Nd(e.y,t.y)}function Fd(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Id=.9999,Ld=1.0001,Rd=-.01,zd=.01;function Bd(e){return e.max-e.min}function Vd(e,t,n){return Math.abs(e-t)<=n}function Hd(e,t,n,r=.5){e.origin=r,e.originPoint=K(t.min,t.max,e.origin),e.scale=Bd(n)/Bd(t),e.translate=K(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Id&&e.scale<=Ld||isNaN(e.scale))&&(e.scale=1),(e.translate>=Rd&&e.translate<=zd||isNaN(e.translate))&&(e.translate=0)}function Ud(e,t,n,r){Hd(e.x,t.x,n.x,r?r.originX:void 0),Hd(e.y,t.y,n.y,r?r.originY:void 0)}function Wd(e,t,n,r=0){e.min=(r?K(n.min,n.max,r):n.min)+t.min,e.max=e.min+Bd(t)}function Gd(e,t,n,r){Wd(e.x,t.x,n.x,r?.x),Wd(e.y,t.y,n.y,r?.y)}function Kd(e,t,n,r=0){let i=r?K(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Bd(t)}function qd(e,t,n,r){Kd(e.x,t.x,n.x,r?.x),Kd(e.y,t.y,n.y,r?.y)}function Jd(e,t,n,r,i){return e-=t,e=Vu(e,1/n,r),i!==void 0&&(e=Vu(e,1/i,r)),e}function Yd(e,t=0,n=1,r=.5,i,a=e,o=e){if(no.test(t)&&(t=parseFloat(t),t=K(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=K(a.min,a.max,r);e===a&&(s-=t),e.min=Jd(e.min,t,n,s,i),e.max=Jd(e.max,t,n,s,i)}function Xd(e,t,[n,r,i],a,o){Yd(e,t[n],t[r],t[i],t.scale,a,o)}var Zd=[`x`,`scaleX`,`originX`],Qd=[`y`,`scaleY`,`originY`];function $d(e,t,n,r){Xd(e.x,t,Zd,n?n.x:void 0,r?r.x:void 0),Xd(e.y,t,Qd,n?n.y:void 0,r?r.y:void 0)}function ef(e){return e.translate===0&&e.scale===1}function tf(e){return ef(e.x)&&ef(e.y)}function nf(e,t){return e.min===t.min&&e.max===t.max}function rf(e,t){return nf(e.x,t.x)&&nf(e.y,t.y)}function af(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function of(e,t){return af(e.x,t.x)&&af(e.y,t.y)}function sf(e){return Bd(e.x)/Bd(e.y)}function cf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function lf(e){return[e(`x`),e(`y`)]}function uf(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var df=Sl.length,ff=e=>typeof e==`string`?parseFloat(e):e,pf=e=>typeof e==`number`||U.test(e);function mf(e,t,n,r,i,a){i?(e.opacity=K(0,n.opacity??1,gf(r)),e.o
10pacityExit=K(t.opacity??1,0,_f(r))):a&&(e.opacity=K(t.opacity??1,n.opacity??1,r));for(let i=0;i<df;i++){let a=Sl[i],o=hf(t,a),s=hf(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||pf(o)===pf(s)?(e[a]=Math.max(K(ff(o),ff(s),r),0),(no.test(s)||no.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=K(t.rotate||0,n.rotate||0,r))}function hf(e,t){return e[t]===void 0?e.borderRadius:e[t]}var gf=vf(0,.5,ha),_f=vf(.5,.95,Zi);function vf(e,t,n){return r=>r<e?0:r>t?1:n($i(e,t,r))}function yf(e,t,n){let r=Z(e)?e:Ec(e);return r.start(Ic(``,r,t,n)),r.animation}function bf(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var xf=(e,t)=>e.depth-t.depth,Sf=class{constructor(){this.children=[],this.isDirty=!1}add(e){Wi(this.children,e),this.isDirty=!0}remove(e){Gi(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(xf),this.isDirty=!1,this.children.forEach(e)}};function Cf(e,t){let n=Na.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Oa(r),e(a-t))};return H.setup(r,!0),()=>Oa(r)}function wf(e){return Z(e)?e.get():e}var Tf=class{constructor(){this.members=[]}add(e){Wi(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(Gi(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Gi(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},Ef={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Df={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Of=[``,`X`,`Y`,`Z`],kf=1e3,Af=0;function jf(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Mf(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Zc(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,H,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Mf(r)}function Nf({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Af++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,su.value&&(Df.nodes=Df.calculatedTargetDeltas=Df.calculatedProjections=0),this.nodes.forEach(If),this.nodes.forEach(Gf),this.nodes.forEach(Kf),this.nodes.forEach(Lf),su.addProjectionMetrics&&su.addProjectionMetrics(Df)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Sf)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ea),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=Kl(t)&&!cu(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;H.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Cf(i,250),Ef.hasAnimatedSinceResize&&(Ef.hasAnimatedSinceResize=!1,this.nodes.forEac
10h(Wf)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||$f,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!of(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Oc(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||Wf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Oa(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(qf),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Mf(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Bf),this.nodes.forEach(zf);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Vf);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Hf),this.nodes.forEach(Uf),this.nodes.forEach(Pf),this.nodes.forEach(Ff)):this.nodes.forEach(Vf),this.clearAllSnapshots();let e=Na.now();ka.delta=Ki(0,1e3/60,e-ka.timestamp),ka.timestamp=e,ka.isProcessing=!0,Aa.update.process(ka),Aa.preRender.process(ka),Aa.render.process(ka),ka.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,El.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Rf),this.sharedNodes.forEach(Jf)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,H.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){H.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Bd(this.snapshot.measuredBox.x)&&!Bd(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=$(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!tf(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Ru(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),rp(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return $();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(ap))){let{scroll:e}=this.root;e&&(Ju(t.x,e.offset.x),Ju(t.y,e.offset.y))}return t}removeElementScroll(e){let t=$();if(Pd(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Pd(t,e),Ju(t.x,i.offset.x),Ju(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||$();Pd(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(Ju(r.x,-n.scroll.offset.x),Ju(r.y,-n.scroll.offset.y)),Ru(n.latestValues)&&Zu(r,n.latestValues,n.layout?.layoutBox)}return Ru(this.latestValues)&&Zu(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=$();Pd(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!Ru(n.latestValues))continue;let r;n.instance&&(Lu(n.latestValues)&&n.updateSnapshot(),r=$(),Pd(r,n.measurePageBox())),$d(t,n.latestValues,n.snapshot?.layoutBox,r)}return Ru(this.latestValues)&&$d(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ka.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;
10if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=ka.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=$(),this.targetWithTransforms=$()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Gd(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Pd(this.target,this.layout.layoutBox),Wu(this.target,this.targetDelta)):Pd(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),su.value&&Df.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Lu(this.parent.latestValues)||zu(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$(),this.relativeTargetOrigin=$(),qd(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Pd(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===ka.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Pd(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;qu(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=$());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Fd(this.prevProjectionDelta.x,this.projectionDelta.x),Fd(this.prevProjectionDelta.y,this.projectionDelta.y)),Ud(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!cf(this.projectionDelta.x,this.prevProjectionDelta.x)||!cf(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),su.value&&Df.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=fu(),this.projectionDelta=fu(),this.projectionDeltaWithTransform=fu()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=fu();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=$(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(Qf));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=K(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=K(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(Yf(o.x,e.x,n),Yf(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(qd(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Zf(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&rf(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=$(),Pd(f,this.relativeTarget)),c&&(this.animationValues=a,mf(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(Oa(this.pendingAnimation),void 0),this.pendingAnimation=H.update(()=>{Ef.hasAnimatedSinceResize=!0,this.motionValue||=Ec(0),this.motionValue.jump(0,!1),this.currentAnimation=yf(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(kf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&ip(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||$();let t=Bd(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Bd(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}
10Pd(t,n),Zu(t,i),Ud(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Tf),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&jf(`z`,e,r,this.animationValues);for(let t=0;t<Of.length;t++)jf(`rotate${Of[t]}`,e,r,this.animationValues),jf(`skew${Of[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=wf(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=wf(t?.pointerEvents)||``),this.hasProjected&&!Ru(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=uf(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in cd){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=cd[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?wf(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(zf),this.root.sharedNodes.clear()}}}function Pf(e){e.updateLayout()}function Ff(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)lf(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Bd(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Nd(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else ip(i,t.layoutBox,n)&&lf(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Bd(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=fu();Ud(o,n,t.layoutBox);let s=fu();a?Ud(s,e.applyTransform(r,!0),t.measuredBox):Ud(s,n,t.layoutBox);let c=!tf(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=$();qd(s,t.layoutBox,i.layoutBox,o);let c=$();qd(c,n,a.layoutBox,o),of(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function If(e){su.value&&Df.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Lf(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Rf(e){e.clearSnapshot()}function zf(e){e.clearMeasurements()}function Bf(e){e.isLayoutDirty=!0,e.updateLayout()}function Vf(e){e.isLayoutDirty=!1}function Hf(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Uf(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Wf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Gf(e){e.resolveTargetDelta()}function Kf(e){e.calcProjection()}
10function qf(e){e.resetSkewAndRotation()}function Jf(e){e.removeLeadSnapshot()}function Yf(e,t,n){e.translate=K(t.translate,0,n),e.scale=K(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Xf(e,t,n,r){e.min=K(t.min,n.min,r),e.max=K(t.max,n.max,r)}function Zf(e,t,n,r){Xf(e.x,t.x,n.x,r),Xf(e.y,t.y,n.y,r)}function Qf(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var $f={duration:.45,ease:[.4,0,.1,1]},ep=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),tp=ep(`applewebkit/`)&&!ep(`chrome/`)?Math.round:Zi;function np(e){e.min=tp(e.min),e.max=tp(e.max)}function rp(e){np(e.x),np(e.y)}function ip(e,t,n){return e===`position`||e===`preserve-aspect`&&!Vd(sf(t),sf(n),.2)}function ap(e){return e!==e.root&&e.scroll?.wasRoot}var op=Nf({attachResizeListener:(e,t)=>bf(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),sp={current:void 0},cp=Nf({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sp.current){let e=new op({});e.mount(window),e.setOptions({layoutScroll:!0}),sp.current=e}return sp.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),lp=(0,h.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function up(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function dp(...e){return t=>{let n=!1,r=e.map(e=>{let r=up(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():up(e[t],null)}}}}function fp(...e){return h.useCallback(dp(...e),e)}var pp=class extends h.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(Tl(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=Tl(e)&&e.offsetWidth||0,r=Tl(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function mp({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,h.useId)(),s=(0,h.useRef)(null),c=(0,h.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:l}=(0,h.useContext)(lp),u=fp(s,e.props?.ref??e?.ref);return(0,h.useInsertionEffect)(()=>{let{width:e,height:u,top:d,left:f,right:p,bottom:m,direction:h}=c.current;if(t||a===!1||!s.current||!e||!u)return;let g=h===`rtl`,_=n===`left`?g?`right: ${p}`:`left: ${f}`:g?`left: ${f}`:`right: ${p}`,v=r===`bottom`?`bottom: ${m}`:`top: ${d}`;s.current.dataset.motionPopId=o;let y=document.createElement(`style`);l&&(y.nonce=l);let b=i??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(`
11          [data-motion-pop-id="${o}"] {
12            position: absolute !important;
13            width: ${e}px !important;
14            height: ${u}px !important;
15            ${_}px !important;
16            ${v}px !important;
17          }
18        `),()=>{s.current?.removeAttribute(`data-motion-pop-id`),b.contains(y)&&b.removeChild(y)}},[t]),(0,m.jsx)(pp,{isPresent:t,childRef:s,sizeRef:c,pop:a,children:a===!1?e:h.cloneElement(e,{ref:u})})}var hp=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=Vi(gp),d=(0,h.useId)(),f=(0,h.useRef)(n),p=(0,h.useRef)(r);Hi(()=>{f.current=n,p.current=r});let g=!0,_=(0,h.useMemo)(()=>(g=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:e=>(u.set(e,!1),()=>{u.delete(e),!f.current&&!u.size&&p.current?.()})}),[n,u,r]);return a&&g&&(_={..._}),(0,h.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),h.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,m.jsx)(mp,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,children:e}),(0,m.jsx)(Ui.Provider,{value:_,children:e})};function gp(){return new Map}function _p(e=!0){let t=(0,h.useContext)(Ui);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,h.useId)();(0,h.useEffect)(()=>
18{if(e)return i(a)},[e]);let o=(0,h.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var vp=e=>e.key||``;function yp(e){let t=[];return h.Children.forEach(e,e=>{(0,h.isValidElement)(e)&&t.push(e)}),t}var bp=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=_p(o),f=(0,h.useMemo)(()=>yp(e),[e]),p=o&&!u?[]:f.map(vp),g=(0,h.useRef)(!0),_=(0,h.useRef)(f),v=Vi(()=>new Map),y=(0,h.useRef)(new Set),[b,x]=(0,h.useState)(f),[S,C]=(0,h.useState)(f);Hi(()=>{g.current=!1,_.current=f;for(let e=0;e<S.length;e++){let t=vp(S[e]);p.includes(t)?(v.delete(t),y.current.delete(t)):v.get(t)!==!0&&v.set(t,!1)}},[S,p.length,p.join(`-`)]);let w=[];if(f!==b){let e=[...f];for(let t=0;t<S.length;t++){let n=S[t],r=vp(n);p.includes(r)||(e.splice(t,0,n),w.push(n))}return a===`wait`&&w.length&&(e=w),C(yp(e)),x(f),null}let{forceRender:T}=(0,h.useContext)(Bi);return(0,m.jsx)(m.Fragment,{children:S.map(e=>{let h=vp(e),b=o&&!u?!1:f===S||p.includes(h);return(0,m.jsx)(hp,{isPresent:b,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:b?void 0:()=>{if(y.current.has(h))return;if(v.has(h))y.current.add(h),v.set(h,!0);else return;let e=!0;v.forEach(t=>{t||(e=!1)}),e&&(T?.(),C(_.current),o&&d?.(),r&&r())},anchorX:s,anchorY:c,children:e},h)})})},xp=(0,h.createContext)({strict:!1}),Sp={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},Cp=!1;function wp(){if(Cp)return;let e={};for(let t in Sp)e[t]={isEnabled:e=>Sp[t].some(t=>!!e[t])};Ou(e),Cp=!0}function Tp(){return wp(),ku()}function Ep(e){let t=Tp();for(let n in e)t[n]={...t[n],...e[n]};Ou(t)}var Dp=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function Op(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||Dp.has(e)}var kp=t({default:()=>Ap}),Ap,jp=i((()=>{throw Ap={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),Mp=e=>!Op(e);function Np(e){typeof e==`function`&&(Mp=t=>t.startsWith(`on`)?!Op(t):e(t))}try{Np((jp(),e(kp)).default)}catch{}function Pp(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||Z(e[i])||(Mp(i)||n===!0&&Op(i)||!t&&!Op(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var Fp=(0,h.createContext)({});function Ip(e,t){if(yu(e)){let{initial:t,animate:n}=e;return{initial:t===!1||gu(t)?t:void 0,animate:gu(n)?n:void 0}}return e.inherit===!1?{}:t}function Lp(e){let{initial:t,animate:n}=Ip(e,(0,h.useContext)(Fp));return(0,h.useMemo)(()=>({initial:t,animate:n}),[Rp(t),Rp(n)])}function Rp(e){return Array.isArray(e)?e.join(` `):e}var zp=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Bp(e,t,n){for(let r in t)!Z(t[r])&&!ld(r,n)&&(e[r]=t[r])}function Vp({transformTemplate:e},t){return(0,h.useMemo)(()=>{let n=zp();return rd(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Hp(e,t){let n=e.style||{},r={};return Bp(r,n,e),Object.assign(r,Vp(e,t)),r}function Up(e,t){let n={},r=Hp(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var Wp=()=>({...zp(),attrs:{}});function Gp(e,t,n,r){let i=(0,h.useMemo)(()=>{let n=Wp();return _d(n,t,yd(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};Bp(t,e.style,e),i.style={...t,...i.style}}return i}var Kp=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function qp(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Kp.indexOf(e)>-1||/[A-Z]/u.test(e))}function Jp(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??qp(e)?Gp:Up)(t,r,i,e),c=Pp(t,typeof e==`string`,a),l=e===h.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,h.useMemo)(()=>Z(u)?u.get():u,[u]);return(0,h.createElement)(e,{...l,children:d})}function Yp({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Xp(n,r,i,e),renderState:t()}}function Xp(e,t,n,r){let i={}
18,a=r(e,{});for(let e in a)i[e]=wf(a[e]);let{initial:o,animate:s}=e,c=yu(e),l=bu(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!hu(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Vc(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var Zp=e=>(t,n)=>{let r=(0,h.useContext)(Fp),i=(0,h.useContext)(Ui),a=()=>Yp(e,t,r,i);return n?a():Vi(a)},Qp=Zp({scrapeMotionValuesFromProps:ud,createRenderState:zp}),$p=Zp({scrapeMotionValuesFromProps:xd,createRenderState:Wp}),em=Symbol.for(`motionComponentSymbol`);function tm(e,t,n){let r=(0,h.useRef)(n);(0,h.useInsertionEffect)(()=>{r.current=n});let i=(0,h.useRef)(null);return(0,h.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n)},[t])}var nm=(0,h.createContext)({});function rm(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function im(e,t,n,r,i,a){let{visualElement:o}=(0,h.useContext)(Fp),s=(0,h.useContext)(xp),c=(0,h.useContext)(Ui),l=(0,h.useContext)(lp),u=l.reducedMotion,d=l.skipAnimations,f=(0,h.useRef)(null),p=(0,h.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,g=(0,h.useContext)(nm);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&am(f.current,n,i,g);let _=(0,h.useRef)(!1);(0,h.useInsertionEffect)(()=>{m&&_.current&&m.update(n,c)});let v=n[Xc],y=(0,h.useRef)(!!v&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return Hi(()=>{p.current=!0,m&&(_.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),y.current&&m.animationState&&m.animationState.animateChanges())}),(0,h.useEffect)(()=>{m&&(!y.current&&m.animationState&&m.animationState.animateChanges(),y.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),!1),m.enteringChildren=void 0)}),m}function am(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:om(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&rm(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function om(e){if(e)return e.options.allowProjection===!1?om(e.parent):e.projection}function sm(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&Ep(r);let a=n?n===`svg`:qp(e),o=a?$p:Qp;function s(n,s){let c,l={...(0,h.useContext)(lp),...n,layoutId:cm(n)},{isStatic:u}=l,d=Lp(n),f=o(n,u);if(!u&&typeof window<`u`){lm(l,r);let t=um(l);c=t.MeasureLayout,d.visualElement=im(e,f,l,i,t.ProjectionNode,a)}return(0,m.jsxs)(Fp.Provider,{value:d,children:[c&&d.visualElement?(0,m.jsx)(c,{visualElement:d.visualElement,...l}):null,Jp(e,n,tm(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,h.forwardRef)(s);return c[em]=e,c}function cm({layoutId:e}){let t=(0,h.useContext)(Bi).id;return t&&e!==void 0?t+`-`+e:e}function lm(e,t){(0,h.useContext)(xp).strict}function um(e){let{drag:t,layout:n}=Tp();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function dm(e,t){if(typeof Proxy>`u`)return sm;let n=new Map,r=(n,r)=>sm(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,sm(a,void 0,e,t)),n.get(a))})}var fm=(e,t)=>t.isSVG??qp(e)?new Sd(t):new fd(t,{allowProjection:e!==h.Fragment}),pm=class extends Mu{constructor(e){super(e),e.animationState||=kd(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();hu(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},mm=0,hm={animation:{Feature:pm},exit:{Feature:class extends Mu{constructor(){super(...arguments),this.id=mm++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=Hc(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>
18{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function gm(e){return{point:{x:e.pageX,y:e.pageY}}}var _m=e=>t=>Fl(t)&&e(t,gm(t));function vm(e,t,n,r){return bf(e,t,_m(n),r)}var ym=({current:e})=>e?e.ownerDocument.defaultView:null,bm=(e,t)=>Math.abs(e-t);function xm(e,t){let n=bm(e.x,t.x),r=bm(e.y,t.y);return Math.sqrt(n**2+r**2)}var Sm=new Set([`auto`,`scroll`]),Cm=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=wm(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Em(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=xm(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=ka;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=wm(t,this.transformPagePoint),H.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Em(e.type===`pointercancel`?this.lastMoveEventInfo:wm(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Fl(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=wm(gm(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=ka;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Em(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=Qi(vm(this.contextWindow,`pointermove`,this.handlePointerMove,d),vm(this.contextWindow,`pointerup`,this.handlePointerUp,d),vm(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Sm.has(e.overflowX)||Sm.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),H.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Oa(this.updatePoint)}};function wm(e,t){return t?{point:t(e.point)}:e}function Tm(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Em({point:e},t){return{point:e,delta:Tm(e,Om(t)),offset:Tm(e,Dm(t)),velocity:km(t,.1)}}function Dm(e){return e[0]}function Om(e){return e[e.length-1]}function km(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Om(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ta(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>ta(t)*2&&(r=e[1]);let a=B(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Am(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?K(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?K(n,e,r.max):Math.min(e,n)),e}function jm(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Mm(e,{top:t,left:n,bottom:r,right:i}){return{x:jm(e.x,n,i),y:jm(e.y,t,r)}}function Nm(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Pm(e,t){return{x:Nm(e.x,t.x),y:Nm(e.y,t.y)}}function Fm(e,t){let n=.5,r=Bd(e),i=Bd(t);return i>r?n=$i(t.min,t.max-r,e.min):r>i&&(n=$i(e.min,e.max-i,t.min)),Ki(0,1,n)}function Im(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var Lm=.35;function Rm(e=Lm){return e===!1?e=0:e===!0&&(e=Lm),{x:zm(e,`left`,`right`),y:zm(e,`top`,`bottom`)}}function zm(e,t,n){return{min:Bm(e,t),max:Bm(e,n)}}function Bm(e,t){return typeof e==`number`?e:e[t]||0}var Vm=new WeakMap,Hm=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(gm(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Al(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),lf(e=>{let t=this.getAxisMotionValue(e).get()||0;if(no.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Bd(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&H.update(()=>i(e,t),!1,!0),Jc(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=Km(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&H.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Cm(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:ym(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&H.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!Gm(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Am(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&rm(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=Mm(n.layoutBox,e):this.constraints=!1,this.elastic=Rm(t),r!==this.constraints&&!rm(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&lf(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Im(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!rm(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=$u(n,r.root,this.visualElement.getTransformPagePoint()),a=Pm(r.layout.layoutBox,i);if(t){let e=t(Pu(a));this.hasMutatedConstraints=!!e,e&&(a=Nu(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=lf(o=>{if(!Gm(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Jc(this.visualElement,e),n.start(Ic(e,n,0,t,this.visualElement,!1))}stopAnimation(){lf(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){lf(t=>{let{drag:n}=this.getProps();if(!Gm(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-K(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!rm(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};lf(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Fm({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),lf(t=>{if(!Gm(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(K(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Vm.set(this.visualElement,this);let e=this.visualElement.current,t=vm(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&zl(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();rm(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=Wm(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),H.read(r);let o=bf(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(lf(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=Lm,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function Um(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function Wm(e,t,n){let r=ou(e,Um(n)),i=ou(t,Um(n));return()=>{r(),i()}}function Gm(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Km(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var qm=class extends Mu{constructor(e){super(e),this.removeGroupControls=Zi,this.removeListeners=Zi,this.controls=new Hm(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Zi}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},Jm=e=>(t,n)=>{e&&H.update(()=>e(t,n),!1,!0)},Ym=class extends Mu{constructor(){super(...arguments),this.removePointerDownListener=Zi}onPointerDown(e){this.session=new Cm(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ym(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Jm(e),onStart:Jm(t),onMove:Jm(n),onEnd:(e,t)=>{delete this.session,r&&H.postRender(()=>r(e,t))}}}
18mount(){this.removePointerDownListener=vm(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},Xm=!1,Zm=class extends h.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),Xm&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Ef.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),Xm=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||H.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),El.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Xm=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function Qm(e){let[t,n]=_p(),r=(0,h.useContext)(Bi);return(0,m.jsx)(Zm,{...e,layoutGroup:r,switchLayoutGroup:(0,h.useContext)(nm),isPresent:t,safeToRemove:n})}var $m={pan:{Feature:Ym},drag:{Feature:qm,ProjectionNode:cp,MeasureLayout:Qm}};function eh(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&H.postRender(()=>i(t,gm(t)))}var th=class extends Mu{mount(){let{current:e}=this.node;e&&(this.unmount=Nl(e,(e,t)=>(eh(this.node,t,`Start`),e=>eh(this.node,e,`End`))))}unmount(){}},nh=class extends Mu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=Qi(bf(this.node.current,`focus`,()=>this.onFocus()),bf(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function rh(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&H.postRender(()=>i(t,gm(t)))}var ih=class extends Mu{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Gl(e,(e,t)=>(rh(this.node,t,`Start`),(e,{success:t})=>rh(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},ah=new WeakMap,oh=new WeakMap,sh=e=>{let t=ah.get(e.target);t&&t(e)},ch=e=>{e.forEach(sh)};function lh({root:e,...t}){let n=e||document;oh.has(n)||oh.set(n,{});let r=oh.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(ch,{root:e,...t})),r[i]}function uh(e,t,n){let r=lh(t);return ah.set(e,n),r.observe(e),()=>{ah.delete(e),r.unobserve(e)}}var dh={some:0,all:1},fh=class extends Mu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:dh[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=uh(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(ph(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function ph({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var mh={inView:{Feature:fh},tap:{Feature:ih},focus:{Feature:nh},hover:{Feature:th}},hh={layout:{ProjectionNode:cp,MeasureLayout:Qm}},gh=dm({...hm,...mh,...$m,...hh},fm),_h={some:0,all:1};function vh(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=Cl(e),o=new WeakMap,s=new IntersectionObserver(e=>
18{e.forEach(e=>{let n=o.get(e.target);if(e.isIntersecting!==!!n)if(e.isIntersecting){let n=t(e.target,e);typeof n==`function`?o.set(e.target,n):s.unobserve(e.target)}else typeof n==`function`&&(n(e),o.delete(e.target))})},{root:n,rootMargin:r,threshold:typeof i==`number`?i:_h[i]});return a.forEach(e=>s.observe(e)),()=>s.disconnect()}function yh(e,{root:t,margin:n,amount:r,once:i=!1,initial:a=!1}={}){let[o,s]=(0,h.useState)(a);return(0,h.useEffect)(()=>{if(!e.current||i&&o)return;let a=()=>(s(!0),i?void 0:()=>s(!1)),c={root:t&&t.current||void 0,margin:n,amount:r};return vh(e.current,a,c)},[t,e,n,i,r]),o}var bh=gh;function xh({children:e,className:t=``,as:n=`div`}){return(0,m.jsx)(n,{className:`mx-auto w-full max-w-[1200px] px-6 md:px-10 ${t}`,children:e})}function Sh({children:e,className:t=``,id:n,pt:r=`pt-16 md:pt-28`,pb:i=`pb-16 md:pb-28`}){return(0,m.jsx)(`section`,{id:n,className:`${r} ${i} ${t}`,children:e})}function Ch({children:e,className:t=``,delay:n=0,y:r=24,once:i=!0}){let a=(0,h.useRef)(null),o=yh(a,{once:i,margin:`-10% 0px -10% 0px`});return(0,m.jsx)(bh.div,{ref:a,className:t,initial:{opacity:0,y:r},animate:o?{opacity:1,y:0}:{opacity:0,y:r},transition:{duration:.7,delay:n,ease:[.16,1,.3,1]},children:e})}var wh={ios:`https://testflight.apple.com/join/Jg2zEECn`,googlePlay:`https://play.google.com/store/apps/details?id=com.inshallah.goldsand`};function Th({size:e=`default`}){return(0,m.jsx)(`img`,{src:`/images/ic_baseline-apple.png`,alt:``,"aria-hidden":`true`,draggable:!1,className:`select-none object-contain ${e===`sm`?`h-[13px] w-[13px]`:`h-[18px] w-[18px]`}`})}function Eh({size:e=`default`}){return(0,m.jsx)(`img`,{src:`/images/mdi_google.png`,alt:``,"aria-hidden":`true`,draggable:!1,className:`select-none object-contain ${e===`sm`?`h-[13px] w-[13px]`:`h-[18px] w-[18px]`}`})}function Dh({href:e,label:t,ariaLabel:n,icon:r,size:i=`default`,platform:a,placement:o}){let s=i===`sm`?`h-[34px] gap-2 px-4 text-xs`:`h-[44px] w-[240px] gap-2.5 px-5 text-base sm:h-[50px] sm:w-auto`;return(0,m.jsxs)(bh.a,{href:e,target:`_blank`,rel:`noopener noreferrer`,"aria-label":n,onClick:()=>Oi(`app_download_click`,{platform:a,placement:o,link_url:e}),whileHover:{y:-2},whileTap:{scale:.97},transition:{type:`spring`,stiffness:420,damping:26},className:`inline-flex items-center justify-center rounded-full bg-ink text-white transition-colors hover:bg-ink-soft focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ink focus-visible:ring-offset-2 focus-visible:ring-offset-white ${s}`,children:[r,(0,m.jsx)(`span`,{className:`whitespace-nowrap font-sans font-[550]`,children:t})]})}function Oh({placement:e,align:t=`center`,showNote:n=!0,size:r=`default`,stack:i=!1,shortLabels:a=!1,className:o=``}){let s=i?`items-end`:t===`center`?`items-center`:`items-center sm:items-start`,c=t===`center`?`sm:justify-center`:`sm:justify-start`,l=t===`center`?`text-center`:`text-center sm:text-left`,u=i?`items-end`:`items-center`,d=`${i?`flex-col`:r===`sm`?`flex-row flex-nowrap`:`flex-col sm:flex-row sm:flex-nowrap`}
18 ${r===`sm`?`gap-2`:`gap-3`}`;return(0,m.jsxs)(`div`,{className:`flex flex-col ${s} ${o}`,children:[(0,m.jsxs)(`div`,{className:`flex ${u} ${d} ${c}`,children:[(0,m.jsx)(Dh,{href:wh.ios,label:a?`iOS`:`Download on iOS`,ariaLabel:`Download on iOS`,icon:(0,m.jsx)(Th,{size:r}),size:r,platform:`ios`,placement:e}),(0,m.jsx)(Dh,{href:wh.googlePlay,label:a?`Google Play`:`Download on Google Play`,ariaLabel:`Download on Google Play`,icon:(0,m.jsx)(Eh,{size:r}),size:r,platform:`android`,placement:e})]}),n&&(0,m.jsxs)(`p`,{className:`mt-4 font-sans text-base leading-snug text-gray-light ${l}`,children:[`iOS is in TestFlight beta · Early access`,(0,m.jsx)(`br`,{className:`sm:hidden`}),` available in the 🇺🇸 US only.`]})]})}var kh=[.16,1,.3,1];function Ah(){let{pathname:e}=Yn(),[t,n]=(0,h.useState)(!1),[r,i]=(0,h.useState)(!1),[a,o]=(0,h.useState)(!1),s=e===`/`,c=e===`/about`,l=e===`/shariah-policy`,u=e.startsWith(`/faq`);(0,h.useEffect)(()=>{n(!1),i(!1)},[e]),(0,h.useEffect)(()=>{if(!s){o(!0);return}let e=document.querySelector(`main section`);if(!e){o(!0);return}let t=new IntersectionObserver(([e])=>o(!e.isIntersecting),{rootMargin:`-82px 0px 0px 0px`});return t.observe(e),()=>t.disconnect()},[e,s]),(0,h.useEffect)(()=>{a||i(!1)},[a]),(0,h.useEffect)(()=>(document.body.style.overflow=t?`hidden`:``,()=>{document.body.style.overflow=``}),[t]),(0,h.useEffect)(()=>{let e=e=>{e.key===`Escape`&&(n(!1),i(!1))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[]);let d=`font-['Season_Sans_SemiBold'] text-lg font-[650] leading-none transition-colors`;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(`header`,{id:`top`,className:`sticky top-0 z-40 h-[82px] w-full px-6 min-[1200px]:px-10 ${c?`min-[1200px]:h-[136px] min-[1200px]:pt-4 min-[1400px]:h-[152px]`:`min-[1200px]:h-[104px] min-[1400px]:h-[152px] min-[1400px]:pt-4`}`,children:[(0,m.jsx)(`div`,{"aria-hidden":`true`,className:`absolute inset-0 overflow-hidden`,style:{WebkitMaskImage:`linear-gradient(to bottom, black 0%, black 55%, transparent 100%)`,maskImage:`linear-gradient(to bottom, black 0%, black 55%, transparent 100%)`},children:(0,m.jsx)(`div`,{className:`absolute inset-0 backdrop-blur-lg`,style:{background:`linear-gradient(rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.9) 45%, rgba(255,255,255,0) 100%)`}})}),(0,m.jsxs)(`nav`,{className:`relative mx-auto hidden h-[104px] w-full max-w-[1336px] items-center pb-4 min-[1200px]:grid min-[1200px]:grid-cols-[1fr_auto_1fr]`,children:[(0,m.jsx)(Kr,{to:`/`,"aria-label":`Goldsand — home`,className:`flex items-center justify-self-start transition-opacity hover:opacity-70`,children:(0,m.jsx)(`img`,{src:`/images/Goldsand_Logo.svg`,alt:`Goldsand`,className:`h-[26px] w-auto`})}),(0,m.jsxs)(`div`,{className:`flex items-center gap-9 justify-self-center`,children:[(0,m.jsx)(Kr,{to:`/`,"aria-current":s?`page`:void 0,className:`${d} ${s?`text-gold`:`text-gray-light hover:text-ink`}`,children:`Home`}),(0,m.jsx)(Kr,{to:`/about`,"aria-current":c?`page`:void 0,className:`${d} ${c?`text-gold`:`text-gray-light hover:text-ink`}`,children:`Team`}),(0,m.jsx)(Kr,{to:`/shariah-policy`,"aria-current":l?`page`:void 0,className:`${d} ${l?`text-gold`:`text-gray-light hover:text-ink`}`,children:`Shariah`}),(0,m.jsx)(Kr,{to:`/faq`,"aria-current":u?`page`:void 0,className:`${d} ${u?`text-gold`:`text-gray-light hover:text-ink`}`,children:`FAQ`})]}),(0,m.jsx)(`div`,{className:`justify-self-end`,children:(0,m.jsx)(Oh,{placement:`nav_desktop`,size:`sm`,showNote:!1,shortLabels:!0})})]}),(0,m.jsxs)(`div`,{className:`relative mx-auto flex h-[82px] w-full max-w-[1200px] items-center justify-between min-[1200px]:hidden`,children:[(0,m.jsx)(Kr,{to:`/`,"aria-label":`Goldsand — home`,className:`flex items-center`,children:(0,m.jsx)(`img`,{src:`/images/Goldsand_Logo.svg`,alt:`Goldsand`,className:`h-[23px] w-auto`})}),(0,m.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,m.jsxs)(`div`,{className:`relative`,children:[(0,m.jsx)(bp,{children:a&&(0,m.jsx)(bh.button,{type:`button`,"aria-haspopup":`true`,"aria-expanded":r,onClick:()=>{i(e=>!e),n(!1)},initial:{opacity:0,scale:.9}
18,animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},whileHover:{y:-2},whileTap:{scale:.95},transition:{duration:.2,ease:kh},className:`flex h-[38px] items-center justify-center rounded-full bg-gold px-4 font-sans text-sm font-[650] text-white transition-colors hover:bg-gold-dark`,children:`Get the app`})}),(0,m.jsx)(bp,{children:r&&(0,m.jsx)(bh.div,{initial:{opacity:0,y:-6},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:{duration:.2,ease:kh},className:`absolute right-0 top-[54px] z-50 flex flex-col`,children:(0,m.jsx)(Oh,{placement:`nav_mobile`,size:`sm`,showNote:!1,stack:!0,shortLabels:!0})})})]}),(0,m.jsx)(`button`,{type:`button`,"aria-label":`Open menu`,"aria-expanded":t,onClick:()=>{n(!0),i(!1)},className:`flex h-[38px] w-10 items-center justify-center rounded-full bg-ink text-white transition-colors hover:bg-ink-soft`,children:(0,m.jsx)(`svg`,{width:`15`,height:`11`,viewBox:`0 0 15 11`,fill:`none`,"aria-hidden":`true`,children:(0,m.jsx)(`path`,{d:`M1 1h13M1 5.5h13M1 10h13`,stroke:`currentColor`,strokeWidth:`1.4`})})})]})]})]}),(0,m.jsx)(bp,{children:r&&(0,m.jsx)(bh.div,{"aria-hidden":`true`,onClick:()=>i(!1),initial:{opacity:0}
18,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2,ease:kh},className:`fixed inset-x-0 top-0 z-30 h-[302px] overflow-hidden min-[1200px]:hidden`,style:{WebkitMaskImage:`linear-gradient(to bottom, black 0%, black 70%, transparent 100%)`,maskImage:`linear-gradient(to bottom, black 0%, black 70%, transparent 100%)`},children:(0,m.jsx)(`div`,{className:`absolute inset-0 backdrop-blur-lg`,style:{background:`linear-gradient(rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.85) 60%, rgba(255,255,255,0) 100%)`}})})}),(0,m.jsx)(bp,{children:t&&(0,m.jsxs)(bh.div,{className:`fixed inset-0 z-50 bg-white p-6 min-[1200px]:hidden`,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.25,ease:kh},children:[(0,m.jsxs)(`div`,{className:`flex h-[34px] items-center justify-between`,children:[(0,m.jsx)(Kr,{to:`/`,"aria-label":`Goldsand — home`,onClick:()=>n(!1),className:`flex items-center`,children:(0,m.jsx)(`img`,{src:`/images/Goldsand_Logo.svg`,alt:`Goldsand`,className:`h-[23px] w-auto`})}),(0,m.jsx)(`button`,{type:`button`,"aria-label":`Close menu`,onClick:()=>n(!1),className:`flex h-[34px] w-[38px] items-center justify-center rounded-full border border-ink/10 bg-white text-ink transition-colors hover:border-ink/30 hover:bg-panel`,children:(0,m.jsx)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,"aria-hidden":`true`,children:(0,m.jsx)(`path`,{d:`m1.5 1.5 11 11m0-11-11 11`,stroke:`currentColor`,strokeWidth:`1.4`})})})]}),(0,m.jsxs)(bh.nav,{"aria-label":`Mobile navigation`,initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:6},transition:{duration:.35,delay:.04,ease:kh},className:`mt-10`,children:[(0,m.jsx)(Kr,{to:`/`,"aria-current":s?`page`:void 0,onClick:()=>n(!1),className:`block font-['Season_Sans_SemiBold'] text-2xl font-[650] leading-none ${s?`text-gold`:`text-gray-light`}`,children:`Home`}),(0,m.jsx)(Kr,{to:`/about`,"aria-current":c?`page`:void 0,onClick:()=>n(!1),className:`mt-8 block font-['Season_Sans_SemiBold'] text-2xl font-[650] leading-none ${c?`text-gold`:`text-gray-light`}`,children:`Team`}),(0,m.jsx)(Kr,{to:`/shariah-policy`,"aria-current":l?`page`:void 0,onClick:()=>n(!1),className:`mt-8 block font-['Season_Sans_SemiBold'] text-2xl font-[650] leading-none ${l?`text-gold`:`text-gray-light`}`,children:`Shariah`}),(0,m.jsx)(Kr,{to:`/faq`,"aria-current":u?`page`:void 0,onClick:()=>n(!1),className:`mt-8 block font-['Season_Sans_SemiBold'] text-2xl font-[650] leading-none ${u?`text-gold`:`text-gray-light`}`,children:`FAQ`})]})]})})]})}var jh=`/images/On6f0cL5eYjXoU5CfKcMAESN5EY.png`,Mh=`/images/FdBBiwStlcs4DWHlHI1FuXZ4z4.png`,Nh=`/images/s4NgRCAyJkUtoT08QUtMDgcCYZI.png`,Ph=`/images/luZdQCyXwM4jzdqWxUZXsAdY4.png`,Fh={name:`Goldsand`,addressLines:[`5540 Centerview Dr Ste 204`,`Raleigh, NC 27606`],phone:`+1 (650) 509-3131`,phoneHref:`tel:+16505093131`,email:`[email protected]`},Ih=[{heading:`About`,links:[{label:`Team`,to:`/about`},{label:`Shariah`,to:`/shariah-policy`}]},{heading:`FAQ`,links:[{label:`Returns`,to:`/faq/where-returns-come-from`}]},{heading:`Terms`,links:[{label:`Terms of use`,to:`/terms-of-use`},{label:`Privacy policy`,to:`/privacy-policy`}]},{heading:`Contact`,links:[{label:`WhatsApp`,to:`https://wa.me/message/WILE4YSNZYMOD1`,external:!0}]}];function Lh({label:e,to:t,external:n}){let r=`text-gray-light transition-colors hover:text-ink`;return n?(0,m.jsx)(`a`,{href:t,target:`_blank`,rel:`noopener noreferrer`,onClick:()=>Mi(t,`footer`),className:r,children:e}):(0,m.jsx)(Kr,{to:t,className:r,children:e})}function Rh({mobile:e=!1}){return(0,m.jsx)(`div`,{className:e?`flex flex-col gap-6`:`flex flex-row gap-16`,children:Ih.map((t,n)=>(0,m.jsxs)(`nav`,{className:`flex flex-col font-sans text-lg font-[550] leading-[170%] tracking-[0.02em] ${e?``:n<3?`w-[120px]`:`w-[88.203px]`}`,children:[(0,m.jsx)(`span`,{className:`text-ink`,children:t.heading}),t.links.map(e=>(0,m.jsx)(Lh,{...e},e.label))]},t.heading))})}function zh({className:e=``}){let t=`text-gray transition-colors hover:text-ink`;return(0,m.jsxs)(`address`,{className:`not-italic ${e}`,children:[(0,m.jsxs)(`p`,{className:`font-sans text-base font-[550] leading-[165%] tracking-[0.01em] text-gray`,children:[(0,m.jsx)(`span`,{className:`block text-ink`,children:Fh.name}),Fh.addressLines.map(e=>(0,m.jsx)(`span`,{className:`block`,children:e},e))]}),(0,m.jsx)(`p`,{className:`mt-3.5 flex flex-wrap font-sans text-base font-[550] leading-[165%] tracking-[0.01em]`,children:(0,m.jsx)(`a`,{href:Fh.phoneHref,onClick:()=>Mi(Fh.phoneHref,`footer_business_details`),className:t,children:Fh.phone})}),(0,m.jsx)(`p`,{className:`flex flex-wrap font-sans text-base font-[550] tracking-[0.01em]`,children:(0,m.jsx)(`a`,{href:`mailto:${Fh.email}`,onClick:()=>Mi(`mailto:${Fh.email}`,`footer_business_details`),className:t,children:Fh.email})})]})}var Bh=`mt-9 w-[272.203px]`,Vh=`/waitlist`,Hh={bare:{block:`h-[986.8125px]`,horse:`top-[386.8125px]`,cat:`top-[758.305px]`,bird:`top-[913.625px]`},withDetails:{block:`h-[1206.8125px]`,horse:`top-[606.8125px]`,cat:`top-[978.3
1805px]`,bird:`top-[1133.625px]`}};function Uh(){let{pathname:e}=Yn(),t=e.replace(/\/+$/,``)===Vh,n=t?Hh.withDetails:Hh.bare;return(0,m.jsxs)(`footer`,{className:`bg-white`,children:[(0,m.jsxs)(`div`,{className:`relative overflow-hidden min-[810px]:hidden ${n.block}`,children:[(0,m.jsxs)(`div`,{className:`absolute left-6 top-6 z-10`,children:[(0,m.jsxs)(`p`,{className:`text-h2 text-ink`,children:[`Finance tooling for`,(0,m.jsx)(`br`,{}),`the next-generation`]}),(0,m.jsx)(`div`,{className:`mt-6`,children:(0,m.jsx)(Rh,{mobile:!0})}),t&&(0,m.jsx)(zh,{className:`mt-8`})]}),(0,m.jsx)(`img`,{src:Mh,alt:``,"aria-hidden":`true`,loading:`lazy`,decoding:`async`,className:`pointer-events-none absolute left-[-457px] h-[685.992px] w-[802.078px] max-w-none select-none ${n.horse}`,draggable:!1}),(0,m.jsx)(`img`,{src:Nh,alt:``,"aria-hidden":`true`,loading:`lazy`,decoding:`async`,className:`pointer-events-none absolute left-[calc(100%_-_415px)] h-[272.508px] w-[270px] max-w-none select-none ${n.cat}`,draggable:!1}),(0,m.jsx)(`img`,{src:jh,alt:`Goldsand`,"aria-hidden":`true`,loading:`lazy`,decoding:`async`,className:`pointer-events-none absolute bottom-[10px] left-6 w-3/4 select-none`,draggable:!1}),(0,m.jsx)(`img`,{src:Ph,alt:``,"aria-hidden":`true`,loading:`lazy`,decoding:`async`,className:`pointer-events-none absolute left-[calc(100%_-_242px)] h-[101.188px] w-[105px] max-w-none select-none ${n.bird}`,draggable:!1})]}),(0,m.jsxs)(`div`,{className:`relative hidden h-[1272px] overflow-hidden min-[810px]:block min-[1400px]:hidden`,children:[(0,m.jsxs)(`div`,{className:`absolute left-8 right-8 top-8 z-10 flex items-start justify-between`,children:[(0,m.jsx)(`p`,{className:`w-[249px] text-h2 text-ink`,children:`Finance tooling for the next-generation`}),(0,m.jsxs)(`div`,{className:`flex flex-col items-end`,children:[(0,m.jsx)(Rh,{}),t&&(0,m.jsx)(zh,{className:Bh})]})]}),(0,m.jsx)(`img`,{src:jh,alt:`Goldsand`,"aria-hidden":`true`,loading:`lazy`,decoding:`async`,className:`pointer-events-none absolute left-[2.5%] top-[1065.961px] w-[95%] select-none`,draggable:!1}),(0,m.jsx)(`img`,{src:Mh,alt:``,"aria-hidden":`true`,loading:`lazy`,decoding:`async`,className:`pointer-events-none absolute left-[-1078px] top-[109px] h-[1342.992px] w-[1570.258px] max-w-none select-none`,draggable:!1}),(0,m.jsx)(`img`,{src:Nh,alt:``,"aria-hidden":`true`,loading:`lazy`,decoding:`async`,className:`pointer-events-none absolute left-[calc(50%_-_758.5px)] top-[720.133px] h-[635.867px] w-[630px] max-w-none select-none`,draggable:!1}),(0,m.jsx)(`img`,{src:Ph,alt:``,"aria-hidden":`true`,loading:`lazy`,decoding:`async`,className:`pointer-events-none absolute left-[calc(50%_-_266px)] top-[1095.102px] h-[241.898px] w-[251px] max-w-none select-none`,draggable:!1})]}),(0,m.jsxs)(`div`,{className:`relative hidden h-[1145px] overflow-hidden min-[1400px]:block`,children:[(0,m.jsxs)(`div`,{className:`absolute left-1/2 top-8 z-10 flex w-full max-w-[1336px] -translate-x-1/2 items-start justify-between`,children:[(0,m.jsx)(`p`,{className:`w-[249px] text-h2 text-ink`,children:`Finance tooling for the next-generation`}),(0,m.jsxs)(`div`,{className:`flex flex-col items-end`,children:[(0,m.jsx)(Rh,{}),t&&(0,m.jsx)(zh,{className:Bh})]})]}),(0,m.jsx)(`img`,{src:Mh,alt:``,"aria-hidden":`true`,loading:`lazy`,decoding:`async`,className:`pointer-events-none absolute left-[-723px] top-[-13px] z-[1] h-[1329.086px] w-[1554px] max-w-none select-none`,draggable:!1}),(0,m.jsx)(`img`,{src:Nh,alt:``,"aria-hidden":`true`,loading:`lazy`,decoding:`async`,className:`pointer-events-none absolute left-[60px] top-[584.133px] z-[2] h-[635.867px] w-[630px] max-w-none select-none`,draggable:!1}),(0,m.jsx)(`img`,{src:jh,alt:`Goldsand`,"aria-hidden":`true`,loading:`lazy`,decoding:`async`,className:`pointer-events-none absolute bottom-7 left-[1.5%] z-[3] w-[97%] select-none`,draggable:!1}),(0,m.jsx)(`img`,{src:Ph,alt:``,"aria-hidden":`true`,loading:`lazy`,decoding:`async`,className:`pointer-events-none absolute left-[475px] top-[978.102px] z-[4] h-[241.898px] w-[251px] max-w-none select-none`,draggable:!1})]})]})}function Wh(){let{pathname:e,hash:t}=Yn();return(0,h.useEffect)(()=>
18{if(t){requestAnimationFrame(()=>{document.querySelector(t)?.scrollIntoView({block:`start`})});return}document.documentElement.scrollTop=0,document.body.scrollTop=0},[e,t]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(zi,{pathname:e}),(0,m.jsx)(Ni,{}),(0,m.jsx)(Ah,{}),(0,m.jsx)(`main`,{children:(0,m.jsx)(br,{})}),(0,m.jsx)(Uh,{})]})}bi({routes:[{path:`/`,element:(0,m.jsx)(Wh,{}),children:[{index:!0,lazy:()=>ni(async()=>{let{default:e}=await import(`./Home-DZ3Vmjlx.js`);return{default:e}},__vite__mapDeps([2,1,3,4])).then(({default:e})=>({Component:e})),entry:`src/pages/Home.tsx`},{path:`waitlist`,lazy:()=>ni(async()=>{let{default:e}=await import(`./Waitlist-DyaHnt7p.js`);return{default:e}},__vite__mapDeps([5,1])).then(({default:e})=>({Component:e})),entry:`src/pages/Waitlist.tsx`},{path:`about`,lazy:()=>ni(async()=>{let{default:e}=await import(`./About-Bz9SR0OT.js`);return{default:e}},__vite__mapDeps([6,1,7,8])).then(({default:e})=>({Component:e})),entry:`src/pages/About.tsx`},{path:`faq`,lazy:()=>ni(async()=>{let{default:e}=await import(`./Faq-BYmW6BrF.js`);return{default:e}},__vite__mapDeps([9,1,8,3,4])).then(({default:e})=>({Component:e})),entry:`src/pages/Faq.tsx`},{path:`faq/where-returns-come-from`,lazy:()=>ni(async()=>{let{default:e}=await import(`./ReturnsArticle-DEhZa_8m.js`);return{default:e}},__vite__mapDeps([10,11,1,8,3])).then(({default:e})=>({Component:e})),entry:`src/pages/ReturnsArticle.tsx`},{path:`faq/risks-and-risk-reduction`,lazy:()=>ni(async()=>{let{default:e}=await import(`./RiskArticle-DHS0dujS.js`);return{default:e}},__vite__mapDeps([12,11,1,8,3])).then(({default:e})=>({Component:e})),entry:`src/pages/RiskArticle.tsx`},{path:`privacy-policy`,lazy:()=>ni(async()=>{let{default:e}=await import(`./Privacy-B2lspgF_.js`);return{default:e}},__vite__mapDeps([13,14,1])).then(({default:e})=>({Component:e})),entry:`src/pages/Privacy.tsx`},{path:`terms-of-use`,lazy:()=>ni(async()=>{let{default:e}=await import(`./Terms-3PtgR9JN.js`);return{default:e}},__vite__mapDeps([15,14,1])).then(({default:e})=>({Component:e})),entry:`src/pages/Terms.tsx`},{path:`shariah-policy`,lazy:()=>ni(async()=>{let{default:e}=await import(`./Shariah-BU1KuoVs.js`);return{default:e}},__vite__mapDeps([16,1,7])).then(({default:e})=>({Component:e})),entry:`src/pages/Shariah.tsx`}]}]});export{Vi as A,ka as C,qi as D,Zi as E,Pe as F,s as I,Oi as M,Ai as N,Ki as O,Kr as P,H as S,$i as T,Ys as _,bh as a,as as b,lp as c,Su as d,ou as f,Ec as g,Tl as h,Sh as i,Mi as j,Hi as k,Tu as l,El as m,xh as n,yh as o,Dl as p,Ch as r,bp as s,Oh as t,Cu as u,Xs as v,na as w,Oa as x,ss as y};

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.