=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}},Ce=!!t.useInsertionEffect&&t.useInsertionEffect,Ie=Ce||function(e){return e()},xe=Ce||e.useLayoutEffect,_e=e.createContext("undefined"!==typeof HTMLElement?le({key:"css"}):null);_e.Provider;var Se=function(t){return(0,e.forwardRef)((function(n,r){var i=(0,e.useContext)(_e);return t(n,i,r)}))};var Be=e.createContext({});var ke=function(){return e.useContext(Be)},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(Be);return t.theme!==n&&(n=Re(n)(t.theme)),e.createElement(Be.Provider,{value:n},t.children)};var Oe,Qe,Me,Te=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){Te(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)}},Le=u,Pe=function(e){return"theme"!==e},Fe=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?Le:Pe},je=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},Ue=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Te(t,n,r),Ie((function(){return De(t,n,r)})),null},He=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=je(n,r,s),l=c||Fe(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,v=1;ve.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 At(){return At=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 xt(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=Ge.Pop,f=null,d=h();function h(){return(c.state||{idx:null}).idx}function p(){l=Ge.Pop;var e=h(),t=null==e?null:e-d;d=e,f&&f({action:l,location:A.location,delta:t})}function v(e){var t="null"!==a.location.origin?a.location.origin:a.location.href,n="string"===typeof e?e:Ct(e);return yt(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==d&&(d=0,c.replaceState(At({},c.state,{idx:d}),""));var A={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(mt,p),f=e,function(){a.removeEventListener(mt,p),f=null}},createHref:function(e){return t(a,e)},createURL:v,encodeLocation:function(e){var t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){l=Ge.Push;var r=Et(A.location,e,t);n&&n(r,e);var i=wt(r,d=h()+1),o=A.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:A.location,delta:1})},replace:function(e,t){l=Ge.Replace;var r=Et(A.location,e,t);n&&n(r,e);var i=wt(r,d=h()),o=A.createHref(r);c.replaceState(i,"",o),u&&f&&f({action:l,location:A.location,delta:0})},go:function(e){return c.go(e)}};return A}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(gt||(gt={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function _t(e,t,n){void 0===n&&(n="/");var r=jt(("string"===typeof t?It(t):t).pathname||"/",n);if(null==r)return null;var i=St(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&&(yt(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),St(e.children,t,u,s)),(null!=e.path||e.index)&&t.push({path:s,score:Dt(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=vt(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=pt(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,qe(s.map((function(e){return""===e?a:[a,e].join("/")})))),o&&u.push.apply(u,qe(s)),u.map((function(t){return e.startsWith("/")&&""===t?"/":t}))}var kt=/^:\w+$/,Rt=3,Nt=2,Ot=1,Qt=10,Mt=-2,Tt=function(e){return"*"===e};function Dt(e,t){var n=e.split("/"),r=n.length;return n.some(Tt)&&(r+=Mt),t&&(r+=Nt),n.filter((function(e){return!Tt(e)})).reduce((function(e,t){return e+(kt.test(t)?Rt:""===t?Ot:Qt)}),r)}function Lt(e,t){for(var n=e.routesMeta,r={},i="/",o=[],a=0;a and the router will parse it for you.'}function Ht(e){return e.filter((function(e,t){return 0===t||e.route.path&&e.route.path.length>0}))}function Gt(e,t,n,r){var i;void 0===r&&(r=!1),"string"===typeof e?i=It(e):(yt(!(i=At({},e)).pathname||!i.pathname.includes("?"),Ut("?","pathname","search",i)),yt(!i.pathname||!i.pathname.includes("#"),Ut("#","pathname","hash",i)),yt(!i.search||!i.search.includes("#"),Ut("#","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?It(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:Vt(o),hash:Wt(s)}}(i,o),f=s&&"/"!==s&&s.endsWith("/"),d=(a||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!f&&!d||(l.pathname+="/"),l}var zt=function(e){return e.join("/").replace(/\/\/+/g,"/")},Jt=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},Vt=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},Wt=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""},Xt=function(e){rt(n,e);var t=ut(n);function n(){return Ze(this,n),t.apply(this,arguments)}return tt(n)}(lt(Error));function Yt(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}var qt=["post","put","patch","delete"],Zt=(new Set(qt),["get"].concat(qt));new Set(Zt),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function Kt(){return Kt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||yt(!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||pn);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(An,{match:i,routeContext:{outlet:t,matches:l,isDataRoute:null!=r},children:n})};return r&&(i.route.ErrorBoundary||i.route.errorElement||0===o)?e.createElement(vn,{location:r.location,revalidation:r.revalidation,component:c,error:u,children:f(),routeContext:{outlet:null,matches:l,isDataRoute:!0}}):f()}),null)}var mn=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(mn||{}),yn=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}(yn||{});function bn(t){var n=e.useContext($t);return n||yt(!1),n}function wn(t){var n=e.useContext(en);return n||yt(!1),n}function En(t){var n=function(t){var n=e.useContext(on);return n||yt(!1),n}(),r=n.matches[n.matches.length-1];return r.route.id||yt(!1),r.route.id}t.startTransition;function Cn(t){var n=t.to,r=t.replace,i=t.state,o=t.relative;sn()||yt(!1);var a=e.useContext(on).matches,s=un().pathname,u=ln(),c=Gt(n,Ht(a).map((function(e){return e.pathnameBase})),s,"path"===o),l=JSON.stringify(c);return e.useEffect((function(){return u(JSON.parse(l),{replace:r,state:i,relative:o})}),[u,l,o,r,i]),null}function In(e){yt(!1)}function xn(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?Ge.Pop:s,c=t.navigator,l=t.static,f=void 0!==l&&l;sn()&&yt(!1);var d=r.replace(/^\/*/,"/"),h=e.useMemo((function(){return{basename:d,navigator:c,static:f}}),[d,c,f]);"string"===typeof a&&(a=It(a));var p=a,v=p.pathname,A=void 0===v?"/":v,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,C=p.key,I=void 0===C?"default":C,x=e.useMemo((function(){var e=jt(A,d);return null==e?null:{location:{pathname:e,search:m,hash:b,state:E,key:I},navigationType:u}}),[d,A,m,b,E,I,u]);return null==x?null:e.createElement(nn.Provider,{value:h},e.createElement(rn.Provider,{children:o,value:x}))}function _n(e){var t=e.children,n=e.location;return dn(kn(t),n)}var Sn=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(Sn||{}),Bn=new Promise((function(){}));e.Component;function kn(t,n){void 0===n&&(n=[]);var r=[];return e.Children.forEach(t,(function(t,i){if(e.isValidElement(t)){var o=[].concat(qe(n),[i]);if(t.type!==e.Fragment){t.type!==In&&yt(!1),t.props.index&&t.props.children&&yt(!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=kn(t.props.children,o)),r.push(a)}else r.push.apply(r,kn(t.props.children,o))}})),r}function Rn(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 hr(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 pr=Symbol("mobx-stored-annotations");function vr(e){return Object.assign((function(t,n){Ar(t,n,e)}),e)}function Ar(e,t,n){rr(e,pr)||Yn(e,pr,sr({},e[pr])),function(e){return e.annotationType_===Ir}(n)||(e[pr][t]=n)}var gr=Symbol("mobx administration"),mr=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_=yi.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e,this.batchId_=Pi.inBatch?Pi.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 zi(this)},t.reportChanged=function(){Pi.inBatch&&this.batchId_===Pi.batchId||(Pi.stateVersion=Pi.stateVersionr&&(r=s.dependenciesState_)}n.length=i,e.newObserving_=null,o=t.length;for(;o--;){var u=t[o];0===u.diffValue_&&ji(u,e),u.diffValue_=0}for(;i--;){var c=n[i];1===c.diffValue_&&(c.diffValue_=0,Fi(c,e))}r!==yi.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),Qi(r),i}function Bi(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)ji(t[n],e);e.dependenciesState_=yi.NOT_TRACKING_}function ki(e){var t=Ri();try{return e()}finally{Ni(t)}}function Ri(){var e=Pi.trackingDerivation;return Pi.trackingDerivation=null,e}function Ni(e){Pi.trackingDerivation=e}function Oi(e){var t=Pi.allowStateReads;return Pi.allowStateReads=e,t}function Qi(e){Pi.allowStateReads=e}function Mi(e){if(e.dependenciesState_!==yi.UP_TO_DATE_){e.dependenciesState_=yi.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=yi.UP_TO_DATE_}}var Ti=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},Di=!0,Li=!1,Pi=function(){var e=On();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Di=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new Ti).version&&(Di=!1),Di?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Ti):(setTimeout((function(){Li||Rn(35)}),1),new Ti)}();function Fi(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function ji(e,t){e.observers_.delete(t),0===e.observers_.size&&Ui(e)}function Ui(e){!1===e.isPendingUnobservation_&&(e.isPendingUnobservation_=!0,Pi.pendingUnobservations.push(e))}function Hi(){0===Pi.inBatch&&(Pi.batchId=Pi.batchId0&&Ui(e),!1)}function Ji(e){e.lowestObserverState_!==yi.STALE_&&(e.lowestObserverState_=yi.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===yi.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=yi.STALE_})))}var Vi=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_=yi.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_=bi.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,Pi.pendingReactions.push(this),Yi())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){Hi(),this.isScheduled_=!1;var e=Pi.trackingContext;if(Pi.trackingContext=this,xi(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(PS){this.reportExceptionInDerivation_(PS)}}Pi.trackingContext=e,Gi()}},t.track=function(e){if(!this.isDisposed_){Hi();0,this.isRunning_=!0;var t=Pi.trackingContext;Pi.trackingContext=this;var n=Si(this,e,void 0);Pi.trackingContext=t,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&Bi(this),Ii(n)&&this.reportExceptionInDerivation_(n.cause),Gi()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(Pi.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";Pi.suppressReactionErrors||console.error(n,e),Pi.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(Hi(),Bi(this),Gi()))},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[gr]=this,n},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1)},e}();var Wi=100,Xi=function(e){return e()};function Yi(){Pi.inBatch>0||Pi.isRunningReactions||Xi(qi)}function qi(){Pi.isRunningReactions=!0;for(var e=Pi.pendingReactions,t=0;e.length>0;){++t===Wi&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r",to=xr(Ki),no=xr("action.bound",{bound:!0}),ro=xr($i,{autoAction:!0}),io=xr("autoAction.bound",{autoAction:!0,bound:!0});function oo(e){return function(t,n){return zn(t)?di(t.name||eo,t,e):zn(n)?di(t,n,e):Jn(n)?Ar(t,n,e?ro:to):Jn(t)?vr(xr(e?$i:Ki,{name:t,autoAction:e})):void 0}}var ao=oo(!1);Object.assign(ao,to);var so=oo(!0);function uo(e){return zn(e)&&!0===e.isMobxAction}function co(e,t){var n,r,i,o,a;void 0===t&&(t=Pn);var s,u=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(!t.scheduler&&!t.delay)s=new Vi(u,(function(){this.track(f)}),t.onError,t.requiresObservable);else{var c=fo(t),l=!1;s=new Vi(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(so,ro),ao.bound=vr(no),so.bound=vr(io);var lo=function(e){return e()};function fo(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:lo}function ho(e,t,n){var r,i,o,a;void 0===n&&(n=Pn);var s,u,c,l,f=null!=(r=n.name)?r:"Reaction",d=ao(f,n.onError?(s=n.onError,u=t,function(){try{return u.apply(this,arguments)}catch(PS){s.call(this,PS)}}):t),h=!n.scheduler&&!n.delay,p=fo(n),v=!0,A=!1,g=n.compareStructural?wr.structural:n.equals||wr.default,m=new Vi(f,(function(){v||h?y():A||(A=!0,p(y))}),n.onError,n.requiresObservable);function y(){if(A=!1,!m.isDisposed_){var t=!1;m.track((function(){var n=pi(!1,(function(){return e(m)}));t=v||!g(c,n),l=c,c=n})),(v&&n.fireImmediately||!v&&t)&&d(c,l,m),v=!1}}return null!=(i=n)&&null!=(o=i.signal)&&o.aborted||m.schedule_(),m.getDisposer_(null==(a=n)?void 0:a.signal)}var po="onBO",vo="onBUO";function Ao(e,t,n){return go(vo,e,t,n)}function go(e,t,n,r){var i="function"===typeof r?La(t,n):La(t),o=zn(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 mo="never",yo="always",bo="observed";function wo(e){!0===e.isolateGlobalState&&function(){if((Pi.pendingReactions.length||Pi.inBatch||Pi.isRunningReactions)&&Rn(36),Li=!0,Di){var e=On();0===--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),Pi=new Ti}}();var t=e.useProxies,n=e.enforceActions;if(void 0!==t&&(Pi.useProxies=t===yo||t!==mo&&"undefined"!==typeof Proxy),"ifavailable"===t&&(Pi.verifyProxies=!0),void 0!==n){var r=n===yo?yo:n===bo;Pi.enforceActions=r,Pi.allowStateChanges=!0!==r&&r!==yo}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in e&&(Pi[t]=!!e[t])})),Pi.allowStateReads=!Pi.observableRequiresReaction,e.reactionScheduler&&function(e){var t=Xi;Xi=function(n){return e((function(){return t(n)}))}}(e.reactionScheduler)}function Eo(e,t,n,r){var i=ir(t);return ja((function(){var t=ba(e,r)[gr];tr(i).forEach((function(e){t.extend_(e,i[e],!n||(!(e in n)||n[e]))}))})),e}function Co(e,t){return Io(La(e,t))}function Io(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(Io)),n}var xo=0;function _o(){this.message="FLOW_CANCELLED"}_o.prototype=Object.create(Error.prototype);var So=kr("flow"),Bo=kr("flow.bound",{bound:!0}),ko=Object.assign((function(e,t){if(Jn(t))return Ar(e,t,So);var n=e,r=n.name||"