=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+u;return{name:c,styles:i,next:be}},Ie=!!t.useInsertionEffect&&t.useInsertionEffect,Ce=Ie||function(e){return e()},_e=Ie||e.useLayoutEffect,Be=e.createContext("undefined"!==typeof HTMLElement?le({key:"css"}):null);Be.Provider;var xe=function(t){return(0,e.forwardRef)((function(n,r){var i=(0,e.useContext)(Be);return t(n,i,r)}))};var ke=e.createContext({});var Se=function(){return e.useContext(ke)},Re=fe((function(e){return fe((function(t){return function(e,t){return"function"===typeof t?t(e):o({},e,t)}(e,t)}))})),Ne=function(t){var n=e.useContext(ke);return t.theme!==n&&(n=Re(n)(t.theme)),e.createElement(ke.Provider,{value:n},t.children)};var Qe,Oe,Me=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},De=function(e,t,n){Me(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}},Te=u,Le=function(e){return"theme"!==e},Pe=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?Te:Le},Fe=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},je=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Me(t,n,r),Ce((function(){return De(t,n,r)})),null},Ue=function t(n,r){var i,a,s=n.__emotion_real===n,u=s&&n.__emotion_base||n;void 0!==r&&(i=r.label,a=r.target);var c=Fe(n,r,s),l=c||Pe(u),f=!l("as");return function(){var d=arguments,h=s&&void 0!==n.__emotion_styles?n.__emotion_styles.slice(0):[];if(void 0!==i&&h.push("label:"+i+";"),null==d[0]||void 0===d[0].raw)h.push.apply(h,d);else{0,h.push(d[0][0]);for(var p=d.length,A=1;Ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function pt(){return pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function It(e,t,n,r){void 0===r&&(r={});var i=r,o=i.window,a=void 0===o?document.defaultView:o,s=i.v5Compat,u=void 0!==s&&s,c=a.history,l=He.Pop,f=null,d=h();function h(){return(c.state||{idx:null}).idx}function p(){l=He.Pop;var e=h(),t=null==e?null:e-d;d=e,f&&f({action:l,location:v.location,delta:t})}function A(e){var t="null"!==a.location.origin?a.location.origin:a.location.href,n="string"===typeof e?e:wt(e);return gt(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==d&&(d=0,c.replaceState(pt({},c.state,{idx:d}),""));var v={get action(){return l},get location(){return e(a,c)},listen:function(e){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(vt,p),f=e,function(){a.removeEventListener(vt,p),f=null}},createHref:function(e){return t(a,e)},createURL:A,encodeLocation:function(e){var t=A(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){l=He.Push;var r=bt(v.location,e,t);n&&n(r,e);var i=yt(r,d=h()+1),o=v.createHref(r);try{c.pushState(i,"",o)}catch(s){if(s instanceof DOMException&&"DataCloneError"===s.name)throw s;a.location.assign(o)}u&&f&&f({action:l,location:v.location,delta:1})},replace:function(e,t){l=He.Replace;var r=bt(v.location,e,t);n&&n(r,e);var i=yt(r,d=h()),o=v.createHref(r);c.replaceState(i,"",o),u&&f&&f({action:l,location:v.location,delta:0})},go:function(e){return c.go(e)}};return v}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(At||(At={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function Ct(e,t,n){void 0===n&&(n="/");var r=Pt(("string"===typeof t?Et(t):t).pathname||"/",n);if(null==r)return null;var i=_t(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var n=e.length===t.length&&e.slice(0,-1).every((function(e,n){return e===t[n]}));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(i);for(var o=null,a=0;null==o&&a0&&(gt(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),_t(e.children,t,u,s)),(null!=e.path||e.index)&&t.push({path:s,score:Mt(s,e.index),routesMeta:u})};return e.forEach((function(e,t){var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?")){var r,o=ht(Bt(e.path));try{for(o.s();!(r=o.n()).done;){var a=r.value;i(e,t,a)}}catch(s){o.e(s)}finally{o.f()}}else i(e,t)})),t}function Bt(e){var t=e.split("/");if(0===t.length)return[];var n=dt(t),r=n[0],i=n.slice(1),o=r.endsWith("?"),a=r.replace(/\?$/,"");if(0===i.length)return o?[a,""]:[a];var s=Bt(i.join("/")),u=[];return u.push.apply(u,Ye(s.map((function(e){return""===e?a:[a,e].join("/")})))),o&&u.push.apply(u,Ye(s)),u.map((function(t){return e.startsWith("/")&&""===t?"/":t}))}var xt=/^:\w+$/,kt=3,St=2,Rt=1,Nt=10,Qt=-2,Ot=function(e){return"*"===e};function Mt(e,t){var n=e.split("/"),r=n.length;return n.some(Ot)&&(r+=Qt),t&&(r+=St),n.filter((function(e){return!Ot(e)})).reduce((function(e,t){return e+(xt.test(t)?kt:""===t?Rt:Nt)}),r)}function Dt(e,t){for(var n=e.routesMeta,r={},i="/",o=[],a=0;a and the router will parse it for you.'}function jt(e){return e.filter((function(e,t){return 0===t||e.route.path&&e.route.path.length>0}))}function Ut(e,t,n,r){var i;void 0===r&&(r=!1),"string"===typeof e?i=Et(e):(gt(!(i=pt({},e)).pathname||!i.pathname.includes("?"),Ft("?","pathname","search",i)),gt(!i.pathname||!i.pathname.includes("#"),Ft("#","pathname","hash",i)),gt(!i.search||!i.search.includes("#"),Ft("#","search","hash",i)));var o,a=""===e||""===i.pathname,s=a?"/":i.pathname;if(r||null==s)o=n;else{var u=t.length-1;if(s.startsWith("..")){for(var c=s.split("/");".."===c[0];)c.shift(),u-=1;i.pathname=c.join("/")}o=u>=0?t[u]:"/"}var l=function(e,t){void 0===t&&(t="/");var n="string"===typeof e?Et(e):e,r=n.pathname,i=n.search,o=void 0===i?"":i,a=n.hash,s=void 0===a?"":a,u=r?r.startsWith("/")?r:function(e,t){var n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(r,t):t;return{pathname:u,search:zt(o),hash:Vt(s)}}(i,o),f=s&&"/"!==s&&s.endsWith("/"),d=(a||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!f&&!d||(l.pathname+="/"),l}var Ht=function(e){return e.join("/").replace(/\/\/+/g,"/")},Gt=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},zt=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},Vt=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""},Jt=function(e){tt(n,e);var t=at(n);function n(){return We(this,n),t.apply(this,arguments)}return $e(n)}(ut(Error));function Xt(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}var Yt=["post","put","patch","delete"],Wt=(new Set(Yt),["get"].concat(Yt));new Set(Wt),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function Zt(){return Zt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||gt(!1),a=a.slice(0,Math.min(a.length,u+1))}return a.reduceRight((function(t,i,o){var u=i.route.id?null==s?void 0:s[i.route.id]:null,c=null;r&&(c=i.route.errorElement||dn);var l=n.concat(a.slice(0,o+1)),f=function(){var n;return n=u?c:i.route.Component?e.createElement(i.route.Component,null):i.route.element?i.route.element:t,e.createElement(pn,{match:i,routeContext:{outlet:t,matches:l,isDataRoute:null!=r},children:n})};return r&&(i.route.ErrorBoundary||i.route.errorElement||0===o)?e.createElement(hn,{location:r.location,revalidation:r.revalidation,component:c,error:u,children:f(),routeContext:{outlet:null,matches:l,isDataRoute:!0}}):f()}),null)}var vn=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(vn||{}),gn=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}(gn||{});function mn(t){var n=e.useContext(qt);return n||gt(!1),n}function yn(t){var n=e.useContext(Kt);return n||gt(!1),n}function bn(t){var n=function(t){var n=e.useContext(nn);return n||gt(!1),n}(),r=n.matches[n.matches.length-1];return r.route.id||gt(!1),r.route.id}t.startTransition;function wn(e){gt(!1)}function En(t){var n=t.basename,r=void 0===n?"/":n,i=t.children,o=void 0===i?null:i,a=t.location,s=t.navigationType,u=void 0===s?He.Pop:s,c=t.navigator,l=t.static,f=void 0!==l&&l;on()&>(!1);var d=r.replace(/^\/*/,"/"),h=e.useMemo((function(){return{basename:d,navigator:c,static:f}}),[d,c,f]);"string"===typeof a&&(a=Et(a));var p=a,A=p.pathname,v=void 0===A?"/":A,g=p.search,m=void 0===g?"":g,y=p.hash,b=void 0===y?"":y,w=p.state,E=void 0===w?null:w,I=p.key,C=void 0===I?"default":I,_=e.useMemo((function(){var e=Pt(v,d);return null==e?null:{location:{pathname:e,search:m,hash:b,state:E,key:C},navigationType:u}}),[d,v,m,b,E,C,u]);return null==_?null:e.createElement(en.Provider,{value:h},e.createElement(tn.Provider,{children:o,value:_}))}function In(e){var t=e.children,n=e.location;return ln(Bn(t),n)}var Cn=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(Cn||{}),_n=new Promise((function(){}));e.Component;function Bn(t,n){void 0===n&&(n=[]);var r=[];return e.Children.forEach(t,(function(t,i){if(e.isValidElement(t)){var o=[].concat(Ye(n),[i]);if(t.type!==e.Fragment){t.type!==wn&>(!1),t.props.index&&t.props.children&>(!1);var a={id:t.props.id||o.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(a.children=Bn(t.props.children,o)),r.push(a)}else r.push.apply(r,Bn(t.props.children,o))}})),r}function xn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function lr(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}var fr=Symbol("mobx-stored-annotations");function dr(e){return Object.assign((function(t,n){hr(t,n,e)}),e)}function hr(e,t,n){er(e,fr)||Jn(e,fr,ir({},e[fr])),function(e){return e.annotationType_===wr}(n)||(e[fr][t]=n)}var pr=Symbol("mobx administration"),Ar=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.batchId_=void 0,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=vi.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e,this.batchId_=Di.inBatch?Di.batchId:NaN}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.reportObserved=function(){return Ui(this)},t.reportChanged=function(){Di.inBatch&&this.batchId_===Di.batchId||(Di.stateVersion=Di.stateVersionr&&(r=s.dependenciesState_)}n.length=i,e.newObserving_=null,o=t.length;for(;o--;){var u=t[o];0===u.diffValue_&&Li(u,e),u.diffValue_=0}for(;i--;){var c=n[i];1===c.diffValue_&&(c.diffValue_=0,Ti(c,e))}r!==vi.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),Ri(r),i}function _i(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)Li(t[n],e);e.dependenciesState_=vi.NOT_TRACKING_}function Bi(e){var t=xi();try{return e()}finally{ki(t)}}function xi(){var e=Di.trackingDerivation;return Di.trackingDerivation=null,e}function ki(e){Di.trackingDerivation=e}function Si(e){var t=Di.allowStateReads;return Di.allowStateReads=e,t}function Ri(e){Di.allowStateReads=e}function Ni(e){if(e.dependenciesState_!==vi.UP_TO_DATE_){e.dependenciesState_=vi.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=vi.UP_TO_DATE_}}var Qi=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.batchId=Number.MIN_SAFE_INTEGER,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0,this.stateVersion=Number.MIN_SAFE_INTEGER},Oi=!0,Mi=!1,Di=function(){var e=Sn();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Oi=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new Qi).version&&(Oi=!1),Oi?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Qi):(setTimeout((function(){Mi||xn(35)}),1),new Qi)}();function Ti(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function Li(e,t){e.observers_.delete(t),0===e.observers_.size&&Pi(e)}function Pi(e){!1===e.isPendingUnobservation_&&(e.isPendingUnobservation_=!0,Di.pendingUnobservations.push(e))}function Fi(){0===Di.inBatch&&(Di.batchId=Di.batchId0&&Pi(e),!1)}function Hi(e){e.lowestObserverState_!==vi.STALE_&&(e.lowestObserverState_=vi.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===vi.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=vi.STALE_})))}var Gi=function(){function e(e,t,n,r){void 0===e&&(e="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=vi.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=gi.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,Di.pendingReactions.push(this),Ji())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){Fi(),this.isScheduled_=!1;var e=Di.trackingContext;if(Di.trackingContext=this,Ei(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(ux){this.reportExceptionInDerivation_(ux)}}Di.trackingContext=e,ji()}},t.track=function(e){if(!this.isDisposed_){Fi();0,this.isRunning_=!0;var t=Di.trackingContext;Di.trackingContext=this;var n=Ci(this,e,void 0);Di.trackingContext=t,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&_i(this),wi(n)&&this.reportExceptionInDerivation_(n.cause),ji()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(Di.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";Di.suppressReactionErrors||console.error(n,e),Di.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(Fi(),_i(this),ji()))},t.getDisposer_=function(e){var t=this,n=function n(){t.dispose(),null==e||null==e.removeEventListener||e.removeEventListener("abort",n)};return null==e||null==e.addEventListener||e.addEventListener("abort",n),n[pr]=this,n},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1)},e}();var zi=100,Vi=function(e){return e()};function Ji(){Di.inBatch>0||Di.isRunningReactions||Vi(Xi)}function Xi(){Di.isRunningReactions=!0;for(var e=Di.pendingReactions,t=0;e.length>0;){++t===zi&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r",Ki=Er(Wi),$i=Er("action.bound",{bound:!0}),eo=Er(Zi,{autoAction:!0}),to=Er("autoAction.bound",{autoAction:!0,bound:!0});function no(e){return function(t,n){return Un(t)?ci(t.name||qi,t,e):Un(n)?ci(t,n,e):Hn(n)?hr(t,n,e?eo:Ki):Hn(t)?dr(Er(e?Zi:Wi,{name:t,autoAction:e})):void 0}}var ro=no(!1);Object.assign(ro,Ki);var io=no(!0);function oo(e){return Un(e)&&!0===e.isMobxAction}function ao(e,t){var n,r,i,o,a;void 0===t&&(t=Dn);var s,u=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(!t.scheduler&&!t.delay)s=new Gi(u,(function(){this.track(f)}),t.onError,t.requiresObservable);else{var c=uo(t),l=!1;s=new Gi(u,(function(){l||(l=!0,c((function(){l=!1,s.isDisposed_||s.track(f)})))}),t.onError,t.requiresObservable)}function f(){e(s)}return null!=(i=t)&&null!=(o=i.signal)&&o.aborted||s.schedule_(),s.getDisposer_(null==(a=t)?void 0:a.signal)}Object.assign(io,eo),ro.bound=dr($i),io.bound=dr(to);var so=function(e){return e()};function uo(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:so}function co(e,t,n){var r,i,o,a;void 0===n&&(n=Dn);var s,u,c,l,f=null!=(r=n.name)?r:"Reaction",d=ro(f,n.onError?(s=n.onError,u=t,function(){try{return u.apply(this,arguments)}catch(ux){s.call(this,ux)}}):t),h=!n.scheduler&&!n.delay,p=uo(n),A=!0,v=!1,g=n.compareStructural?mr.structural:n.equals||mr.default,m=new Gi(f,(function(){A||h?y():v||(v=!0,p(y))}),n.onError,n.requiresObservable);function y(){if(v=!1,!m.isDisposed_){var t=!1;m.track((function(){var n=fi(!1,(function(){return e(m)}));t=A||!g(c,n),l=c,c=n})),(A&&n.fireImmediately||!A&&t)&&d(c,l,m),A=!1}}return null!=(i=n)&&null!=(o=i.signal)&&o.aborted||m.schedule_(),m.getDisposer_(null==(a=n)?void 0:a.signal)}var lo="onBO",fo="onBUO";function ho(e,t,n){return po(fo,e,t,n)}function po(e,t,n,r){var i="function"===typeof r?Ma(t,n):Ma(t),o=Un(r)?r:n,a=e+"L";return i[a]?i[a].add(o):i[a]=new Set([o]),function(){var e=i[a];e&&(e.delete(o),0===e.size&&delete i[a])}}var Ao="never",vo="always",go="observed";function mo(e){!0===e.isolateGlobalState&&function(){if((Di.pendingReactions.length||Di.inBatch||Di.isRunningReactions)&&xn(36),Mi=!0,Oi){var e=Sn();0===--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),Di=new Qi}}();var t=e.useProxies,n=e.enforceActions;if(void 0!==t&&(Di.useProxies=t===vo||t!==Ao&&"undefined"!==typeof Proxy),"ifavailable"===t&&(Di.verifyProxies=!0),void 0!==n){var r=n===vo?vo:n===go;Di.enforceActions=r,Di.allowStateChanges=!0!==r&&r!==vo}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in e&&(Di[t]=!!e[t])})),Di.allowStateReads=!Di.observableRequiresReaction,e.reactionScheduler&&function(e){var t=Vi;Vi=function(n){return e((function(){return t(n)}))}}(e.reactionScheduler)}function yo(e,t,n,r){var i=tr(t);return La((function(){var t=ga(e,r)[pr];Kn(i).forEach((function(e){t.extend_(e,i[e],!n||(!(e in n)||n[e]))}))})),e}function bo(e,t){return wo(Ma(e,t))}function wo(e){var t,n={name:e.name_};return e.observing_&&e.observing_.length>0&&(n.dependencies=(t=e.observing_,Array.from(new Set(t))).map(wo)),n}var Eo=0;function Io(){this.message="FLOW_CANCELLED"}Io.prototype=Object.create(Error.prototype);var Co=Br("flow"),_o=Br("flow.bound",{bound:!0}),Bo=Object.assign((function(e,t){if(Hn(t))return hr(e,t,Co);var n=e,r=n.name||"",i=function(){var e,t=arguments,i=++Eo,o=ro(r+" - runid: "+i+" - init",n).apply(this,t),a=void 0,s=new Promise((function(t,n){var s=0;function u(e){var t;a=void 0;try{t=ro(r+" - runid: "+i+" - yield "+s++,o.next).call(o,e)}catch(ux){return n(ux)}l(t)}function c(e){var t;a=void 0;try{t=ro(r+" - runid: "+i+" - yield "+s++,o.throw).call(o,e)}catch(ux){return n(ux)}l(t)}function l(e){if(!Un(null==e?void 0:e.then))return e.done?t(e.value):(a=Promise.resolve(e.value)).then(u,c);e.then(l,n)}e=n,u(void 0)}));return s.cancel=ro(r+" - runid: "+i+" - cancel",(function(){try{a&&xo(a);var t=o.return(void 0),n=Promise.resolve(t.value);n.then(jn,jn),xo(n),e(new Io)}catch(ux){e(ux)}})),s};return i.isMobXFlow=!0,i}),Co);function xo(e){Un(e.cancel)&&e.cancel()}function ko(e){return!0===(null==e?void 0:e.isMobXFlow)}function So(e,t){return!!e&&(void 0!==t?!!ba(e)&&e[pr].values_.has(t):ba(e)||!!e[pr]||vr(e)||Yi(e)||yi(e))}function Ro(e){return So(e)}function No(e,t){void 0===t&&(t=void 0),Fi();try{return e.apply(t)}finally{ji()}}function Qo(e,t,n){return 1===arguments.length||t&&"object"===typeof t?function(e,t){var n,r,i;0;if(null!=t&&null!=(n=t.signal)&&n.aborted)return Object.assign(Promise.reject(new Error("WHEN_ABORTED")),{cancel:function(){return null}});var o=new Promise((function(n,o){var a,s=Oo(e,n,ir({},t,{onError:o}));r=function(){s(),o(new Error("WHEN_CANCELLED"))},i=function(){s(),o(new Error("WHEN_ABORTED"))},null==t||null==(a=t.signal)||null==a.addEventListener||a.addEventListener("abort",i)})).finally((function(){var e;return null==t||null==(e=t.signal)||null==e.removeEventListener?void 0:e.removeEventListener("abort",i)}));return o.cancel=r,o}(e,t):Oo(e,t,n||{})}function Oo(e,t,n){var r;if("number"===typeof n.timeout){var i=new Error("WHEN_TIMEOUT");r=setTimeout((function(){if(!a[pr].isDisposed_){if(a(),!n.onError)throw i;n.onError(i)}}),n.timeout)}n.name="When";var o=ci("When-effect",t),a=ao((function(t){fi(!1,e)&&(t.dispose(),r&&clearTimeout(r),o())}),n);return a}function Mo(e){return e[pr]}Bo.bound=dr(_o);var Do={has:function(e,t){return Mo(e).has_(t)},get:function(e,t){return Mo(e).get_(t)},set:function(e,t,n){var r;return!!Hn(t)&&(null==(r=Mo(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return!!Hn(t)&&(null==(n=Mo(e).delete_(t,!0))||n)},defineProperty:function(e,t,n){var r;return null==(r=Mo(e).defineProperty_(t,n))||r},ownKeys:function(e){return Mo(e).ownKeys_()},preventExtensions:function(e){xn(13)}};function To(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function Lo(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),Fn((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Po(e,t){var n=xi();try{for(var r=[].concat(e.interceptors_||[]),i=0,o=r.length;i0}function jo(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),Fn((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Uo(e,t){var n=xi(),r=e.changeListeners_;if(r){for(var i=0,o=(r=r.slice()).length;i0?e.map(this.dehancer):e},t.intercept_=function(e){return Lo(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),jo(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!==typeof e||isNaN(e)||e<0)&&xn("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=new Array(e-t),r=0;r0&&Qa(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var i=this.values_.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:void 0===t||null===t?0:Math.max(0,Math.min(t,i-e)),void 0===n&&(n=Mn),To(this)){var o=Po(this,{object:this.proxy_,type:zo,index:e,removedCount:t,added:n});if(!o)return Mn;t=o.removedCount,n=o.added}if(n=0===n.length?n:n.map((function(e){return r.enhancer_(e,void 0)})),this.legacyMode_){var a=n.length-t;this.updateArrayLength_(i,a)}var s=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,s),this.dehanceValues_(s)},t.spliceItemsIntoValues_=function(e,t,n){var r;if(n.length<1e4)return(r=this.values_).splice.apply(r,[e,t].concat(n));var i=this.values_.slice(e,e+t),o=this.values_.slice(e+t);this.values_.length+=n.length-t;for(var a=0;a=this.values_.length))return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]);console.warn("[mobx] Out of bounds read: "+e)},t.set_=function(e,t){var n=this.values_;if(this.legacyMode_&&e>n.length&&xn(17,e,n.length),e2?n-2:0),i=2;i-1&&(this.splice(n,1),!0)}};function Zo(e,t){"function"===typeof Array.prototype[e]&&(Wo[e]=t(e))}function qo(e){return function(){var t=this[pr];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function Ko(e){return function(t,n){var r=this,i=this[pr];return i.atom_.reportObserved(),i.dehanceValues_(i.values_)[e]((function(e,i){return t.call(n,e,i,r)}))}}function $o(e){return function(){var t=this,n=this[pr];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(e,n,r){return i(e,n,r,t)},r[e].apply(r,arguments)}}Zo("concat",qo),Zo("flat",qo),Zo("includes",qo),Zo("indexOf",qo),Zo("join",qo),Zo("lastIndexOf",qo),Zo("slice",qo),Zo("toString",qo),Zo("toLocaleString",qo),Zo("every",Ko),Zo("filter",Ko),Zo("find",Ko),Zo("findIndex",Ko),Zo("flatMap",Ko),Zo("forEach",Ko),Zo("map",Ko),Zo("some",Ko),Zo("reduce",$o),Zo("reduceRight",$o);var ea,ta,na=Yn("ObservableArrayAdministration",Xo);function ra(e){return Gn(e)&&na(e[pr])}var ia={},oa="add",aa="delete";ea=Symbol.iterator,ta=Symbol.toStringTag;var sa,ua,ca=function(){function e(e,t,n){var r=this;void 0===t&&(t=yr),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[pr]=ia,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,Un(Map)||xn(18),La((function(){r.keysAtom_=gr("ObservableMap.keys()"),r.data_=new Map,r.hasMap_=new Map,e&&r.merge(e)}))}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!Di.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new Ai(this.has_(e),br,"ObservableMap.key?",!1);this.hasMap_.set(e,r),ho(r,(function(){return t.hasMap_.delete(e)}))}return n.get()},t.set=function(e,t){var n=this.has_(e);if(To(this)){var r=Po(this,{type:n?Vo:oa,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if((this.keysAtom_,To(this))&&!Po(this,{type:aa,object:this,name:e}))return!1;if(this.has_(e)){var n=Fo(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:aa,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return No((function(){var n;t.keysAtom_.reportChanged(),null==(n=t.hasMap_.get(e))||n.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)})),n&&Uo(this,r),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==Di.UNCHANGED){var r=Fo(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:Vo,object:this,oldValue:n.value_,name:e,newValue:t}:null;0,n.setNewValue_(t),r&&Uo(this,i)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,No((function(){var r,i=new Ai(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,i),t=i.value_,null==(r=n.hasMap_.get(e))||r.setNewValue_(!0),n.keysAtom_.reportChanged()}));var r=Fo(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:oa,object:this,name:e,newValue:t}:null;r&&Uo(this,i)},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return Ha({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:e.get(i)}}})},t.entries=function(){var e=this,t=this.keys();return Ha({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:[i,e.get(i)]}}})},t[ea]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=cr(this);!(n=r()).done;){var i=n.value,o=i[0],a=i[1];e.call(t,a,o,this)}},t.merge=function(e){var t=this;return la(e)&&(e=new Map(e)),No((function(){zn(e)?function(e){var t=Object.keys(e);if(!qn)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter((function(t){return On.propertyIsEnumerable.call(e,t)}))):t}(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=e[0],r=e[1];return t.set(n,r)})):Wn(e)?(e.constructor!==Map&&xn(19,e),e.forEach((function(e,n){return t.set(n,e)}))):null!==e&&void 0!==e&&xn(20,e)})),this},t.clear=function(){var e=this;No((function(){Bi((function(){for(var t,n=cr(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.replace=function(e){var t=this;return No((function(){for(var n,r=function(e){if(Wn(e)||la(e))return e;if(Array.isArray(e))return new Map(e);if(zn(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return xn(21,e)}(e),i=new Map,o=!1,a=cr(t.data_.keys());!(n=a()).done;){var s=n.value;if(!r.has(s))if(t.delete(s))o=!0;else{var u=t.data_.get(s);i.set(s,u)}}for(var c,l=cr(r.entries());!(c=l()).done;){var f=c.value,d=f[0],h=f[1],p=t.data_.has(d);if(t.set(d,h),t.data_.has(d)){var A=t.data_.get(d);i.set(d,A),p||(o=!0)}}if(!o)if(t.data_.size!==i.size)t.keysAtom_.reportChanged();else for(var v=t.data_.keys(),g=i.keys(),m=v.next(),y=g.next();!m.done;){if(m.value!==y.value){t.keysAtom_.reportChanged();break}m=v.next(),y=g.next()}t.data_=i})),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return jo(this,e)},t.intercept_=function(e){return Lo(this,e)},rr(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:ta,get:function(){return"Map"}}]),e}(),la=Yn("ObservableMap",ca);var fa={};sa=Symbol.iterator,ua=Symbol.toStringTag;var da=function(){function e(e,t,n){var r=this;void 0===t&&(t=yr),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[pr]=fa,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,Un(Set)||xn(22),this.enhancer_=function(e,r){return t(e,r,n)},La((function(){r.atom_=gr(r.name_),e&&r.replace(e)}))}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.clear=function(){var e=this;No((function(){Bi((function(){for(var t,n=cr(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.forEach=function(e,t){for(var n,r=cr(this);!(n=r()).done;){var i=n.value;e.call(t,i,i,this)}},t.add=function(e){var t=this;if((this.atom_,To(this))&&!Po(this,{type:oa,object:this,newValue:e}))return this;if(!this.has(e)){No((function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()}));var n=!1,r=Fo(this),i=r?{observableKind:"set",debugObjectName:this.name_,type:oa,object:this,newValue:e}:null;n,r&&Uo(this,i)}return this},t.delete=function(e){var t=this;if(To(this)&&!Po(this,{type:aa,object:this,oldValue:e}))return!1;if(this.has(e)){var n=Fo(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:aa,object:this,oldValue:e}:null;return No((function(){t.atom_.reportChanged(),t.data_.delete(e)})),n&&Uo(this,r),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=0,t=Array.from(this.keys()),n=Array.from(this.values());return Ha({next:function(){var r=e;return e+=1,rxa){for(var t=xa;t=0&&n++}e=Ua(e),t=Ua(t);var s="[object Array]"===a;if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;var u=e.constructor,c=t.constructor;if(u!==c&&!(Un(u)&&u instanceof u&&Un(c)&&c instanceof c)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),i=i||[];for(var l=(r=r||[]).length;l--;)if(r[l]===e)return i[l]===t;if(r.push(e),i.push(t),s){if((l=e.length)!==t.length)return!1;for(;l--;)if(!ja(e[l],t[l],n-1,r,i))return!1}else{var f,d=Object.keys(e);if(l=d.length,Object.keys(t).length!==l)return!1;for(;l--;)if(!er(t,f=d[l])||!ja(e[f],t[f],n-1,r,i))return!1}return r.pop(),i.pop(),!0}function Ua(e){return ra(e)?e.slice():Wn(e)||la(e)||Zn(e)||ha(e)?Array.from(e.entries()):e}function Ha(e){return e[Symbol.iterator]=Ga,e}function Ga(){return this}if(["Symbol","Map","Set"].forEach((function(e){"undefined"===typeof Sn()[e]&&xn("MobX requires global '"+e+"' to be available or polyfilled")})),"object"===typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}},extras:{getDebugName:Ta},$mobx:pr}),!e.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!function(e,t,n){return La((function(){var r=ga(e,n)[pr];null!=t||(t=function(e){return er(e,fr)||Jn(e,fr,ir({},e[fr])),e[fr]}(e)),Kn(t).forEach((function(e){return r.make_(e,t[e])}))})),e})throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var za=n(4164);function Va(e){e()}function Ja(e){return bo(e)}var Xa=!1;function Ya(){return Xa}var Wa=function(){function e(e){var t=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(e){void 0===e&&(e=1e4),clearTimeout(t.sweepTimeout),t.sweepTimeout=void 0;var n=Date.now();t.registrations.forEach((function(r,i){n-r.registeredAt>=e&&(t.finalize(r.value),t.registrations.delete(i))})),t.registrations.size>0&&t.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){t.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){this.registrations.set(n,{value:t,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.registrations.delete(e)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){void 0===this.sweepTimeout&&(this.sweepTimeout=setTimeout(this.sweep,1e4))}}),e}(),Za=new("undefined"!==typeof FinalizationRegistry?FinalizationRegistry:Wa)((function(e){var t;null===(t=e.reaction)||void 0===t||t.dispose(),e.reaction=null})),qa=n(7248),Ka=function(){};function $a(e){e.reaction=new Gi("observer".concat(e.name),(function(){var t;e.stateVersion=Symbol(),null===(t=e.onStoreChange)||void 0===t||t.call(e)}))}function es(t,n){if(void 0===n&&(n="observed"),Ya())return t();var r=e.useRef(null);if(!r.current){var i={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:n,subscribe:function(e){return Za.unregister(i),i.onStoreChange=e,i.reaction||($a(i),i.stateVersion=Symbol()),function(){var e;i.onStoreChange=null,null===(e=i.reaction)||void 0===e||e.dispose(),i.reaction=null}},getSnapshot:function(){return i.stateVersion}};r.current=i}var o,a,s=r.current;if(s.reaction||($a(s),Za.register(r,s,s)),e.useDebugValue(s.reaction,Ja),(0,qa.useSyncExternalStore)(s.subscribe,s.getSnapshot,Ka),s.reaction.track((function(){try{o=t()}catch(ux){a=ux}})),a)throw a;return o}var ts="function"===typeof Symbol&&Symbol.for,ns=ts?Symbol.for("react.forward_ref"):"function"===typeof e.forwardRef&&(0,e.forwardRef)((function(e){return null})).$$typeof,rs=ts?Symbol.for("react.memo"):"function"===typeof e.memo&&(0,e.memo)((function(e){return null})).$$typeof;function is(t,n){var r;if(rs&&t.$$typeof===rs)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");if(Ya())return t;var i=null!==(r=null===n||void 0===n?void 0:n.forwardRef)&&void 0!==r&&r,o=t,a=t.displayName||t.name;if(ns&&t.$$typeof===ns&&(i=!0,"function"!==typeof(o=t.render)))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var s,u,c=function(e,t){return es((function(){return o(e,t)}),a)};return c.displayName=t.displayName,Object.defineProperty(c,"name",{value:t.name,writable:!0,configurable:!0}),t.contextTypes&&(c.contextTypes=t.contextTypes),i&&(c=(0,e.forwardRef)(c)),c=(0,e.memo)(c),s=t,u=c,Object.keys(s).forEach((function(e){os[e]||Object.defineProperty(u,e,Object.getOwnPropertyDescriptor(s,e))})),c}var os={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};var as;!function(e){e||(e=Va),mo({reactionScheduler:e})}(za.unstable_batchedUpdates);as=Za.finalizeAllImmediately;function ss(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}var us=Symbol("patchMixins"),cs=Symbol("patchedDefinition");function ls(e,t){for(var n=this,r=arguments.length,i=new Array(r>2?r-2:0),o=2;o"}function ms(e){var t=e.bind(this),n=vs(this);return function(){n.reaction||(n.reaction=function(t){return new Gi(t.name+".render()",(function(){if(t.mounted)try{null==t.forceUpdate||t.forceUpdate()}catch(e){var n;null==(n=t.reaction)||n.dispose(),t.reaction=null}else t.reactionInvalidatedBeforeMount=!0}))}(n),n.mounted||Za.register(this,n,this));var e=void 0,r=void 0;if(n.reaction.track((function(){try{r=fi(!1,t)}catch(ux){e=ux}})),e)throw e;return r}}function ys(e,t){return Ya()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==t||!function(e,t){if(ss(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i {}` or `render = function() {}` is not supported.")}n.render=function(){return Object.defineProperty(this,"render",{configurable:!1,writable:!1,value:Ya()?i:ms.call(this,i)}),this.render()};var a=n.componentDidMount;return n.componentDidMount=function(){var e=this,t=vs(this);return t.mounted=!0,Za.unregister(t),t.forceUpdate=function(){return e.forceUpdate()},t.reaction&&!t.reactionInvalidatedBeforeMount||t.forceUpdate(),null==a?void 0:a.apply(this,arguments)},ds(n,"componentWillUnmount",(function(){var e;if(!Ya()){var t=vs(this);null==(e=t.reaction)||e.dispose(),t.reaction=null,t.forceUpdate=null,t.mounted=!1,t.reactionInvalidatedBeforeMount=!1}})),t}(t):is(t)}e.version.split(".")[0];if(!e.Component)throw new Error("mobx-react requires React to be available");if(!$r)throw new Error("mobx-react requires mobx to be available");function ws(e,t,n){return(t=qe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Es(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Is(e){for(var t=1;t=0||(i[n]=e[n]);return i}function _s(e,t){if(null==e)return{};var n,r,i=Cs(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Bs=n(184),xs=["width","height","style"],ks=function(e){var t=e.width,n=e.height,r=e.style,i=_s(e,xs);return(0,Bs.jsx)("div",Is({style:Is({width:t,height:n,display:"flex",flex:"0 0 auto"},r)},i))},Ss=JSON.parse('[{"name":"Ethereum","symbol":"ETH","decimals":9,"assetId":"0x0000000000000000000000000000000000000000000000000000000000000000"},{"name":"Bitcoin","symbol":"BTC","decimals":8,"assetId":"0x49fab925448594b61c280b5c580b2a63a6f6a8aaa3c199a06798b1c568808158"},{"name":"USDC","symbol":"USDC","decimals":6,"assetId":"0x8bf7951ea3222fe0bae9b811c2b142a1ff417361dcf7457855ed477d2d9a8550"},{"name":"Uniswap","symbol":"UNI","decimals":9,"assetId":"0xae37bc0feb66e60a89e301d450bb4640aa9bd7cedd856e253e23989eae536e92"},{"name":"Chainlink","symbol":"LINK","decimals":9,"assetId":"0xfa36ce38f74ee0bcd12c11ec367ca237cee3e6b7a937761f4f762bbc11d2da21"},{"name":"Sway","symbol":"SWAY","decimals":9,"assetId":"0x60dc449c0bcffab46a7adae03ed92778dc8bb985f62acac831521d598d249d23"},{"name":"Compound","symbol":"COMP","decimals":9,"assetId":"0xc23da8f4073523e84e4fdd2b6a28f3273af2b70361345a63307313f0f489c48b"}]');var Rs=n.p+"static/media/ethereum.eba924eeaba637abfcc634f7f6ff5fef.svg";var Ns=n.p+"static/media/bitcoin.418ae0c4fea1a2b9413996ac86334673.svg";var Qs=n.p+"static/media/usdc.ade17eb5cef67a7b4b932510051494cc.svg";var Os,Ms,Ds,Ts,Ls,Ps,Fs,js={ETH:Rs,BTC:Ns,USDC:Qs,UNI:n.p+"static/media/uni.6391a5f3e78c0e2f99a71c47e7e9c78d.svg"},Us="/",Hs="/ui",Gs=Object.values(Ss).map((function(e){return Is(Is({},e),{},{logo:js[e.symbol]})})),zs=Gs.reduce((function(e,t){return Is(Is({},e),{},ws({},t.symbol,t))}),{}),Vs=Gs.reduce((function(e,t){return Is(Is({},e),{},ws({},t.assetId,t))}),{}),Js="0x5a9df5f00aa49789540fda8adc16d8569f78280e3884b66548a6a28afc53435bbe4c9ee4aa6c6a8f2298b0db36448be8d336b02708e38eb3c24481c3ce9ca968",Xs="https://beta-4.fuel.network/graphql",Ys="0xe2058c9c621c42bde654dd31560ab3bf68a5b9f517894ee7db0b6f82ea5d3e3a",Ws=function(e){return e[e.H1=0]="H1",e[e.H2=1]="H2",e[e.H3=2]="H3",e[e.BODY_LARGE=3]="BODY_LARGE",e[e.BODY_MEDIUM=4]="BODY_MEDIUM",e[e.BODY_SMALL=5]="BODY_SMALL",e[e.LABEL=6]="LABEL",e[e.BUTTON=7]="BUTTON",e[e.NUMBER_LARGE=8]="NUMBER_LARGE",e[e.NUMBER_MEDIUM=9]="NUMBER_MEDIUM",e[e.NUMBER_SMALL=10]="NUMBER_SMALL",e}({}),Zs=(ws(Os={},Ws.H1,"\nfont-family: Syne;\nfont-size: 13px;\nfont-style: normal;\nfont-weight: 600;\nline-height: normal;\n"),ws(Os,Ws.H2,"\nfont-family: Syne;\nfont-size: 10px;\nfont-style: normal;\nfont-weight: 600;\nline-height: normal;\nletter-spacing: 1px;\n"),ws(Os,Ws.H3,"\nfont-family: Syne;\nfont-size: 10px;\nfont-style: normal;\nfont-weight: 500;\nline-height: normal;\nletter-spacing: 1px;\n"),ws(Os,Ws.BODY_LARGE,"\nfont-family: Space Grotesk;\nfont-size: 12px;\nfont-style: normal;\nfont-weight: 400;\nline-height: normal;\n"),ws(Os,Ws.BODY_MEDIUM,"\nfont-family: Space Grotesk;\nfont-size: 10px;\nfont-style: normal;\nfont-weight: 400;\nline-height: normal;\n"),ws(Os,Ws.BODY_SMALL,"\nfont-family: Space Grotesk;\nfont-size: 8px;\nfont-style: normal;\nfont-weight: 400;\nline-height: normal;\n"),ws(Os,Ws.LABEL,"\nfont-family: Space Grotesk;\nfont-size: 8px;\nfont-style: normal;\nfont-weight: 400;\nline-height: normal;\nletter-spacing: 1.12px;\n"),ws(Os,Ws.BUTTON,"\nfont-family: Space Grotesk;\nfont-size: 8px;\nfont-style: normal;\nfont-weight: 500;\nline-height: normal;\nletter-spacing: 0.8px;\n"),ws(Os,Ws.NUMBER_LARGE,"\nfont-family: JetBrains Mono;\nfont-size: 16px;\nfont-style: normal;\nfont-weight: 500;\nline-height: normal;\n"),ws(Os,Ws.NUMBER_MEDIUM,"\nfont-family: JetBrains Mono;\nfont-size: 12px;\nfont-style: normal;\nfont-weight: 500;\nline-height: normal;\nletter-spacing: 0.6px;\n"),ws(Os,Ws.NUMBER_SMALL,"\nfont-family: JetBrains Mono;\nfont-size: 10px;\nfont-style: normal;\nfont-weight: 500;\nline-height: normal;\nletter-spacing: 1px;\n"),Os),qs=Ue.div(Ms||(Ms=i(["\n\tcolor: ",";\n\t","\n"])),(function(e){var t=e.color,n=e.theme;return null!==t&&void 0!==t?t:n.colors.white}),(function(e){var t=e.type;return null!=t?Zs[t]:Zs[Ws.BODY_MEDIUM]})),Ks=qs,$s=Ue.button(Ds||(Ds=i(["\n\twhite-space: nowrap;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\ttransition: 0.4s;\n\theight: ","px;\n\tborder-radius: 100px;\n\tbox-shadow: none;\n\tcolor: ",";\n\t","\n\twidth: ",";\n\tpadding: 0 12px;\n\toutline: none;\n\n\tborder: 1px solid\n\t\t",";\n\topacity: 0.9;\n\tbackground-color: ",";\n\n\tpath {\n\t\ttransition: 0.4s;\n\t\tfill: ",";\n\t}\n\n\t:active {\n\t\tpath {\n\t\t\tfill: ",";\n\t\t}\n\n\t\tcolor: ",";\n\t}\n\n\t:hover {\n\t\tbackground-color: ",";\n\t\tborder: 1px solid\n\t\t\t",";\n\t\tcursor: pointer;\n\t}\n\n\t:disabled {\n\t\tborder: ",";\n\t\tbackground-color: ",";\n\t\topacity: 0.4;\n\t\tcursor: not-allowed;\n\t}\n"])),(function(e){return e.outline?26:32}),(function(e){var t=e.outline,n=e.theme;return t?n.colors.gray1:n.colors.white}),(function(e){return e.outline?Zs[Ws.BUTTON]:Zs[Ws.H1]}),(function(e){return e.fitContent?"fit-content":"100%"}),(function(e){var t=e.theme,n=e.primary,r=e.secondary,i=e.outline;return n?t.colors.green:r?t.colors.red:i?t.colors.gray3:t.colors.gray1}),(function(e){var t=e.primary,n=e.secondary,r=e.outline,i=e.theme;return t?"rgba(0, 255, 152, 0.10)":n?"rgba(253, 10, 83, 0.10)":r?i.colors.gray5:"rgba(255, 255, 253, 0.10)"}),(function(e){var t=e.outline,n=e.theme;return t?n.colors.gray1:n.colors.white}),(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.white}),(function(e){var t=e.primary,n=e.secondary,r=e.outline,i=e.theme;return t?"rgba(0, 255, 152, 0.40)":n?"rgba(253, 10, 83, 0.40)":r?i.colors.gray5:"rgba(255, 255, 253, 0.40)"}),(function(e){var t=e.theme,n=e.primary,r=e.secondary,i=e.outline;return n?t.colors.green:r?t.colors.red:i?t.colors.gray2:t.colors.gray1}),(function(e){var t=e.outline,n=e.theme;return t?"1px solid ".concat(n.colors.gray3):0}),(function(e){var t=e.primary,n=e.secondary,r=e.outline,i=e.theme;return t?"rgba(0, 255, 152, 0.10)":n?"rgba(253, 10, 83, 0.10)":r?i.colors.gray5:"rgba(255, 255, 253, 0.10)"})),eu=$s,tu=Ue.div(Ts||(Ts=i(["\n\tdisplay: flex;\n\twidth: 100%;\n\n\t& > button {\n\t\theight: 44px;\n\t\tborder-radius: 0;\n\t\t","\n\t}\n\n\t& > :first-of-type {\n\t\tborder-radius: 10px 0 0 10px;\n\t}\n\n\t& > :last-of-type {\n\t\tborder-radius: 0 10px 10px 0;\n\t}\n"])),Zs[Ws.BODY_LARGE]),nu=function(e){var t=e.children;return(0,Bs.jsx)(tu,{children:t})},ru=Ue.div(Ls||(Ls=i(["\n\tdisplay: flex;\n\talign-items: center;\n\tbox-sizing: border-box;\n\t//border: 1px solid #fff;\n\theight: 50px;\n\twidth: 100%;\n\tbackground: ",";\n\tborder-radius: 10px;\n"])),(function(e){return e.theme.colors.gray4})),iu=Ue.div(Ps||(Ps=i(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tpadding: 0 16px;\n\tbox-sizing: border-box;\n\tflex: 2;\n\theight: 100%;\n"]))),ou=Ue.div(Fs||(Fs=i(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tpadding: 0 16px;\n\t//border-left: 1px solid #fff;\n\tflex: 7;\n\tbox-sizing: border-box;\n\twidth: 100%;\n"]))),au=function(){var e=Se();return(0,Bs.jsxs)(ru,{children:[(0,Bs.jsxs)(iu,{children:[(0,Bs.jsxs)(Ge,{alignItems:"center",children:[(0,Bs.jsx)("img",{style:{borderRadius:"50%",width:24,height:24},src:zs.UNI.logo,alt:"btc"}),(0,Bs.jsx)(ks,{width:8}),(0,Bs.jsx)(Ks,{type:Ws.H1,children:"UNI / USDC"})]}),(0,Bs.jsx)("h4",{style:{transform:"rotate(90deg)"},children:">"})]}),(0,Bs.jsx)(ks,{width:1,height:32,style:{background:e.colors.gray5}}),(0,Bs.jsxs)(ou,{children:[(0,Bs.jsxs)(Ge,{alignItems:"center",children:[(0,Bs.jsxs)(ze,{alignItems:"flex-end",children:[(0,Bs.jsx)(Ks,{type:Ws.NUMBER_LARGE,children:"$ 25 000,00"}),(0,Bs.jsx)(Ks,{type:Ws.NUMBER_SMALL,color:e.colors.green,children:"+2.22 %"})]}),(0,Bs.jsx)(ks,{width:12}),(0,Bs.jsx)(ks,{width:1,height:32,style:{background:e.colors.gray5}}),(0,Bs.jsx)(ks,{width:12}),(0,Bs.jsxs)(ze,{children:[(0,Bs.jsx)(Ks,{type:Ws.LABEL,color:e.colors.gray2,children:"Market price"}),(0,Bs.jsx)(ks,{height:4}),(0,Bs.jsx)(Ks,{type:Ws.NUMBER_SMALL,children:"$ 25 000,00"})]}),(0,Bs.jsx)(ks,{width:12}),(0,Bs.jsx)(ks,{width:1,height:32,style:{background:e.colors.gray5}}),(0,Bs.jsx)(ks,{width:12}),(0,Bs.jsxs)(ze,{children:[(0,Bs.jsx)(Ks,{type:Ws.LABEL,color:e.colors.gray2,children:"Volume"}),(0,Bs.jsx)(ks,{height:4}),(0,Bs.jsx)(Ks,{type:Ws.NUMBER_SMALL,children:"250,000k"})]})]}),(0,Bs.jsx)(eu,{fitContent:!0,outline:!0,children:"SEE ALL MARKET DETAILS"})]})]})};function su(){su=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new R(r||[]);return i(a,"_invoke",{value:B(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var d="suspendedStart",h="suspendedYield",p="executing",A="completed",v={};function g(){}function m(){}function y(){}var b={};c(b,a,(function(){return this}));var w=Object.getPrototypeOf,E=w&&w(w(N([])));E&&E!==n&&r.call(E,a)&&(b=E);var I=y.prototype=g.prototype=Object.create(b);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var u=f(e[i],e,o);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==Ze(l)&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(l).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function B(t,n,r){var i=d;return function(o,a){if(i===p)throw new Error("Generator is already running");if(i===A){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=x(s,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=A,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var c=f(t,n,r);if("normal"===c.type){if(i=r.done?A:h,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=A,r.method="throw",r.arg=c.arg)}}}function x(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var o=f(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i