troy-flow-engine
Version:
<!-- * @Descripttion: * @version: * @Author: wangmin * @Date: 2025-04-27 15:03:16 * @LastEditors: wangmin * @LastEditTime: 2025-05-14 16:43:12 -->
29 lines (23 loc) • 832 kB
JavaScript
(function(bt,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("vue"),require("element-plus"),require("@element-plus/icons-vue")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus","@element-plus/icons-vue"],_):(bt=typeof globalThis<"u"?globalThis:bt||self,_(bt.TroyFlowEngine={},bt.Vue,bt.ElementPlus,bt.ElementPlusIconsVue))})(this,function(bt,_,Oi,ss){"use strict";var nk=Object.defineProperty;var rk=(bt,_,Oi)=>_ in bt?nk(bt,_,{enumerable:!0,configurable:!0,writable:!0,value:Oi}):bt[_]=Oi;var yn=(bt,_,Oi)=>rk(bt,typeof _!="symbol"?_+"":_,Oi);function ob(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const ei=ob(_);var ls,Ge,Yf,Ni,$f,Kf,qf,Zf,Ru,Lu,Iu,Yo={},Jf=[],ab=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,$o=Array.isArray;function jr(t,e){for(var n in e)t[n]=e[n];return t}function ku(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function ee(t,e,n){var r,i,o,a={};for(o in e)o=="key"?r=e[o]:o=="ref"?i=e[o]:a[o]=e[o];if(arguments.length>2&&(a.children=arguments.length>3?ls.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(o in t.defaultProps)a[o]==null&&(a[o]=t.defaultProps[o]);return us(t,a,r,i,null)}function us(t,e,n,r,i){var o={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++Yf,__i:-1,__u:0};return i==null&&Ge.vnode!=null&&Ge.vnode(o),o}function ds(){return{current:null}}function to(t){return t.children}function Ye(t,e){this.props=t,this.context=e}function no(t,e){if(e==null)return t.__?no(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?no(t):null}function Qf(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return Qf(t)}}function eh(t){(!t.__d&&(t.__d=!0)&&Ni.push(t)&&!cs.__r++||$f!=Ge.debounceRendering)&&(($f=Ge.debounceRendering)||Kf)(cs)}function cs(){for(var t,e,n,r,i,o,a,s=1;Ni.length;)Ni.length>s&&Ni.sort(qf),t=Ni.shift(),s=Ni.length,t.__d&&(n=void 0,i=(r=(e=t).__v).__e,o=[],a=[],e.__P&&((n=jr({},r)).__v=r.__v+1,Ge.vnode&&Ge.vnode(n),Bu(e.__P,n,r,e.__n,e.__P.namespaceURI,32&r.__u?[i]:null,o,i??no(r),!!(32&r.__u),a),n.__v=r.__v,n.__.__k[n.__i]=n,oh(o,n,a),n.__e!=i&&Qf(n)));cs.__r=0}function th(t,e,n,r,i,o,a,s,l,u,d){var c,f,h,v,p,g,y=r&&r.__k||Jf,m=e.length;for(l=sb(n,e,y,l,m),c=0;c<m;c++)(h=n.__k[c])!=null&&(f=h.__i==-1?Yo:y[h.__i]||Yo,h.__i=c,g=Bu(t,h,f,i,o,a,s,l,u,d),v=h.__e,h.ref&&f.ref!=h.ref&&(f.ref&&ju(f.ref,null,h),d.push(h.ref,h.__c||v,h)),p==null&&v!=null&&(p=v),4&h.__u||f.__k===h.__k?l=nh(h,l,t):typeof h.type=="function"&&g!==void 0?l=g:v&&(l=v.nextSibling),h.__u&=-7);return n.__e=p,l}function sb(t,e,n,r,i){var o,a,s,l,u,d=n.length,c=d,f=0;for(t.__k=new Array(i),o=0;o<i;o++)(a=e[o])!=null&&typeof a!="boolean"&&typeof a!="function"?(l=o+f,(a=t.__k[o]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?us(null,a,null,null,null):$o(a)?us(to,{children:a},null,null,null):a.constructor==null&&a.__b>0?us(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=t,a.__b=t.__b+1,s=null,(u=a.__i=lb(a,n,l,c))!=-1&&(c--,(s=n[u])&&(s.__u|=2)),s==null||s.__v==null?(u==-1&&(i>d?f--:i<d&&f++),typeof a.type!="function"&&(a.__u|=4)):u!=l&&(u==l-1?f--:u==l+1?f++:(u>l?f--:f++,a.__u|=4))):t.__k[o]=null;if(c)for(o=0;o<d;o++)(s=n[o])!=null&&(2&s.__u)==0&&(s.__e==r&&(r=no(s)),sh(s,s));return r}function nh(t,e,n){var r,i;if(typeof t.type=="function"){for(r=t.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=t,e=nh(r[i],e,n));return e}t.__e!=e&&(e&&t.type&&!n.contains(e)&&(e=no(t)),n.insertBefore(t.__e,e||null),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function fs(t,e){return e=e||[],t==null||typeof t=="boolean"||($o(t)?t.some(function(n){fs(n,e)}):e.push(t)),e}function lb(t,e,n,r){var i,o,a=t.key,s=t.type,l=e[n];if(l===null&&t.key==null||l&&a==l.key&&s==l.type&&(2&l.__u)==0)return n;if(r>(l!=null&&(2&l.__u)==0?1:0))for(i=n-1,o=n+1;i>=0||o<e.length;){if(i>=0){if((l=e[i])&&(2&l.__u)==0&&a==l.key&&s==l.type)return i;i--}if(o<e.length){if((l=e[o])&&(2&l.__u)==0&&a==l.key&&s==l.type)return o;o++}}return-1}function rh(t,e,n){e[0]=="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||ab.test(e)?n:n+"px"}function hs(t,e,n,r,i){var o;e:if(e=="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||rh(t.style,e,"");if(n)for(e in n)r&&n[e]==r[e]||rh(t.style,e,n[e])}else if(e[0]=="o"&&e[1]=="n")o=e!=(e=e.replace(Zf,"$1")),e=e.toLowerCase()in t||e=="onFocusOut"||e=="onFocusIn"?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=n,n?r?n.u=r.u:(n.u=Ru,t.addEventListener(e,o?Iu:Lu,o)):t.removeEventListener(e,o?Iu:Lu,o);else{if(i=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e[4]!="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&n==1?"":n))}}function ih(t){return function(e){if(this.l){var n=this.l[e.type+t];if(e.t==null)e.t=Ru++;else if(e.t<n.u)return;return n(Ge.event?Ge.event(e):e)}}}function Bu(t,e,n,r,i,o,a,s,l,u){var d,c,f,h,v,p,g,y,m,E,O,P,N,C,M,F,K,re=e.type;if(e.constructor!=null)return null;128&n.__u&&(l=!!(32&n.__u),o=[s=e.__e=n.__e]),(d=Ge.__b)&&d(e);e:if(typeof re=="function")try{if(y=e.props,m="prototype"in re&&re.prototype.render,E=(d=re.contextType)&&r[d.__c],O=d?E?E.props.value:d.__:r,n.__c?g=(c=e.__c=n.__c).__=c.__E:(m?e.__c=c=new re(y,O):(e.__c=c=new Ye(y,O),c.constructor=re,c.render=db),E&&E.sub(c),c.props=y,c.state||(c.state={}),c.context=O,c.__n=r,f=c.__d=!0,c.__h=[],c._sb=[]),m&&c.__s==null&&(c.__s=c.state),m&&re.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=jr({},c.__s)),jr(c.__s,re.getDerivedStateFromProps(y,c.__s))),h=c.props,v=c.state,c.__v=e,f)m&&re.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),m&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(m&&re.getDerivedStateFromProps==null&&y!==h&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(y,O),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(y,c.__s,O)===!1||e.__v==n.__v){for(e.__v!=n.__v&&(c.props=y,c.state=c.__s,c.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(Y){Y&&(Y.__=e)}),P=0;P<c._sb.length;P++)c.__h.push(c._sb[P]);c._sb=[],c.__h.length&&a.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(y,c.__s,O),m&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(h,v,p)})}if(c.context=O,c.props=y,c.__P=t,c.__e=!1,N=Ge.__r,C=0,m){for(c.state=c.__s,c.__d=!1,N&&N(e),d=c.render(c.props,c.state,c.context),M=0;M<c._sb.length;M++)c.__h.push(c._sb[M]);c._sb=[]}else do c.__d=!1,N&&N(e),d=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++C<25);c.state=c.__s,c.getChildContext!=null&&(r=jr(jr({},r),c.getChildContext())),m&&!f&&c.getSnapshotBeforeUpdate!=null&&(p=c.getSnapshotBeforeUpdate(h,v)),F=d,d!=null&&d.type===to&&d.key==null&&(F=ah(d.props.children)),s=th(t,$o(F)?F:[F],e,n,r,i,o,a,s,l,u),c.base=e.__e,e.__u&=-161,c.__h.length&&a.push(c),g&&(c.__E=c.__=null)}catch(Y){if(e.__v=null,l||o!=null)if(Y.then){for(e.__u|=l?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,e.__e=s}else for(K=o.length;K--;)ku(o[K]);else e.__e=n.__e,e.__k=n.__k;Ge.__e(Y,e,n)}else o==null&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):s=e.__e=ub(n.__e,e,n,r,i,o,a,l,u);return(d=Ge.diffed)&&d(e),128&e.__u?void 0:s}function oh(t,e,n){for(var r=0;r<n.length;r++)ju(n[r],n[++r],n[++r]);Ge.__c&&Ge.__c(e,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(o){o.call(i)})}catch(o){Ge.__e(o,i.__v)}})}function ah(t){return typeof t!="object"||t==null||t.__b&&t.__b>0?t:$o(t)?t.map(ah):jr({},t)}function ub(t,e,n,r,i,o,a,s,l){var u,d,c,f,h,v,p,g=n.props,y=e.props,m=e.type;if(m=="svg"?i="http://www.w3.org/2000/svg":m=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(u=0;u<o.length;u++)if((h=o[u])&&"setAttribute"in h==!!m&&(m?h.localName==m:h.nodeType==3)){t=h,o[u]=null;break}}if(t==null){if(m==null)return document.createTextNode(y);t=document.createElementNS(i,m,y.is&&y),s&&(Ge.__m&&Ge.__m(e,o),s=!1),o=null}if(m==null)g===y||s&&t.data==y||(t.data=y);else{if(o=o&&ls.call(t.childNodes),g=n.props||Yo,!s&&o!=null)for(g={},u=0;u<t.attributes.length;u++)g[(h=t.attributes[u]).name]=h.value;for(u in g)if(h=g[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=h;else if(!(u in y)){if(u=="value"&&"defaultValue"in y||u=="checked"&&"defaultChecked"in y)continue;hs(t,u,null,h,i)}}for(u in y)h=y[u],u=="children"?f=h:u=="dangerouslySetInnerHTML"?d=h:u=="value"?v=h:u=="checked"?p=h:s&&typeof h!="function"||g[u]===h||hs(t,u,h,g[u],i);if(d)s||c&&(d.__html==c.__html||d.__html==t.innerHTML)||(t.innerHTML=d.__html),e.__k=[];else if(c&&(t.innerHTML=""),th(e.type=="template"?t.content:t,$o(f)?f:[f],e,n,r,m=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:n.__k&&no(n,0),s,l),o!=null)for(u=o.length;u--;)ku(o[u]);s||(u="value",m=="progress"&&v==null?t.removeAttribute("value"):v!=null&&(v!==t[u]||m=="progress"&&!v||m=="option"&&v!=g[u])&&hs(t,u,v,g[u],i),u="checked",p!=null&&p!=t[u]&&hs(t,u,p,g[u],i))}return t}function ju(t,e,n){try{if(typeof t=="function"){var r=typeof t.__u=="function";r&&t.__u(),r&&e==null||(t.__u=t(e))}else t.current=e}catch(i){Ge.__e(i,n)}}function sh(t,e,n){var r,i;if(Ge.unmount&&Ge.unmount(t),(r=t.ref)&&(r.current&&r.current!=t.__e||ju(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){Ge.__e(o,e)}r.base=r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&sh(r[i],e,n||typeof t.type!="function");n||ku(t.__e),t.__c=t.__=t.__e=void 0}function db(t,e,n){return this.constructor(t,n)}function cb(t,e,n){var r,i,o,a;e==document&&(e=document.documentElement),Ge.__&&Ge.__(t,e),i=(r=!1)?null:e.__k,o=[],a=[],Bu(e,t=e.__k=ee(to,null,[t]),i||Yo,Yo,e.namespaceURI,i?null:e.firstChild?ls.call(e.childNodes):null,o,i?i.__e:e.firstChild,r,a),oh(o,t,a)}ls=Jf.slice,Ge={__e:function(t,e,n,r){for(var i,o,a;e=e.__;)if((i=e.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(t)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,r||{}),a=i.__d),a)return i.__E=i}catch(s){t=s}throw t}},Yf=0,Ye.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=jr({},this.state),typeof t=="function"&&(t=t(jr({},n),this.props)),t&&jr(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),eh(this))},Ye.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),eh(this))},Ye.prototype.render=to,Ni=[],Kf=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,qf=function(t,e){return t.__v.__b-e.__v.__b},cs.__r=0,Zf=/(PointerCapture)$|Capture$/i,Ru=0,Lu=ih(!1),Iu=ih(!0);var fb="An invariant failed, however the error is obfuscated because this is a production build.",ps=[];Object.freeze(ps);var Fu={};Object.freeze(Fu);function mn(){return++le.mobxGuid}function Le(t){throw St(!1,t),"X"}function St(t,e){if(!t)throw new Error("[mobx] "+(e||fb))}var lh=[];function hb(t,e){return process.env.NODE_ENV==="production"||lh.indexOf(t)!==-1?!1:(lh.push(t),console.error("[mobx] Deprecated: "+t),!0)}function Hu(t){var e=!1;return function(){if(!e)return e=!0,t.apply(this,arguments)}}var vs=function(){};function pb(t){var e=[];return t.forEach(function(n){e.indexOf(n)===-1&&e.push(n)}),e}function Vu(t){return t!==null&&typeof t=="object"}function Ti(t){if(t===null||typeof t!="object")return!1;var e=Object.getPrototypeOf(t);return e===Object.prototype||e===null}function vb(t){if(io(t)||an(t))return t;if(Array.isArray(t))return new Map(t);if(Ti(t)){var e=new Map;for(var n in t)e.set(n,t[n]);return e}else return Le("Cannot convert to map from '"+t+"'")}function ro(t,e,n){Object.defineProperty(t,e,{enumerable:!1,writable:!0,configurable:!0,value:n})}function gb(t,e,n){Object.defineProperty(t,e,{enumerable:!1,writable:!1,configurable:!0,value:n})}function uh(t,e){var n=Object.getOwnPropertyDescriptor(t,e);return!n||n.configurable!==!1&&n.writable!==!1}function yb(t,e){process.env.NODE_ENV!=="production"&&!uh(t,e)&&Le("Cannot make property '"+e.toString()+"' observable, it is not configurable and writable in the target object")}function ti(t,e){var n="isMobX"+t;return e.prototype[n]=!0,function(r){return Vu(r)&&r[n]===!0}}function io(t){return t instanceof Map}function Ko(t){return t instanceof Set}function Uu(t){var e=new Set;for(var n in t)e.add(n);return Object.getOwnPropertySymbols(t).forEach(function(r){Object.getOwnPropertyDescriptor(t,r).enumerable&&e.add(r)}),Array.from(e)}function Hn(t){return t&&t.toString?t.toString():new String(t).toString()}function dh(t){return t===null?null:typeof t=="object"?""+t:t}var mb=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,De=Symbol("mobx administration"),oo=function(){function t(e){e===void 0&&(e="Atom@"+mn()),this.name=e,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=new Set,this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=lt.NOT_TRACKING}return t.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(function(e){return e()})},t.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(function(e){return e()})},t.prototype.reportObserved=function(){return Ch(this)},t.prototype.reportChanged=function(){ar(),Gb(this),sr()},t.prototype.toString=function(){return this.name},t}(),Gu=ti("Atom",oo);function Wu(t,e,n){e===void 0&&(e=vs),n===void 0&&(n=vs);var r=new oo(t);return e!==vs&&ix(r,e),n!==vs&&Dh(r,n),r}function _b(t,e){return qh(t,e)}function bb(t,e){return Object.is(t,e)}var ao={structural:_b,default:bb};/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var zu=function(t,e){return zu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},zu(t,e)};function xb(t,e){zu(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Et=function(){return Et=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Et.apply(this,arguments)};function ir(t){var e=typeof Symbol=="function"&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function so(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}function Xu(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(so(arguments[e]));return t}var gs=Symbol("mobx did run lazy initializers"),qo=Symbol("mobx pending decorators"),Eb={},wb={};function Cb(t,e){var n=e?Eb:wb;return n[t]||(n[t]={configurable:!0,enumerable:e,get:function(){return Mi(this),this[t]},set:function(r){Mi(this),this[t]=r}})}function Mi(t){var e,n;if(t[gs]!==!0){var r=t[qo];if(r){ro(t,gs,!0);var i=Xu(Object.getOwnPropertySymbols(r),Object.keys(r));try{for(var o=ir(i),a=o.next();!a.done;a=o.next()){var s=a.value,l=r[s];l.propertyCreator(t,l.prop,l.descriptor,l.decoratorTarget,l.decoratorArguments)}}catch(u){e={error:u}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}}}}function ch(t,e){return function(){var r,i=function(a,s,l,u){if(u===!0)return e(a,s,l,a,r),null;if(process.env.NODE_ENV!=="production"&&!fh(arguments)&&Le("This function is a decorator, but it wasn't invoked like a decorator"),!Object.prototype.hasOwnProperty.call(a,qo)){var d=a[qo];ro(a,qo,Et({},d))}return a[qo][s]={prop:s,propertyCreator:e,descriptor:l,decoratorTarget:a,decoratorArguments:r},Cb(s,t)};return fh(arguments)?(r=ps,i.apply(null,arguments)):(r=Array.prototype.slice.call(arguments),i)}}function fh(t){return(t.length===2||t.length===3)&&(typeof t[1]=="string"||typeof t[1]=="symbol")||t.length===4&&t[3]===!0}function Zo(t,e,n){return ri(t)?t:Array.isArray(t)?U.array(t,{name:n}):Ti(t)?U.object(t,void 0,{name:n}):io(t)?U.map(t,{name:n}):Ko(t)?U.set(t,{name:n}):t}function Sb(t,e,n){return t==null||fr(t)||Sr(t)||an(t)||Vn(t)?t:Array.isArray(t)?U.array(t,{name:n,deep:!1}):Ti(t)?U.object(t,void 0,{name:n,deep:!1}):io(t)?U.map(t,{name:n,deep:!1}):Ko(t)?U.set(t,{name:n,deep:!1}):Le(process.env.NODE_ENV!=="production"&&"The shallow modifier / decorator can only used in combination with arrays, objects, maps and sets")}function ys(t){return t}function Ab(t,e,n){if(process.env.NODE_ENV!=="production"&&ri(t))throw"observable.struct should not be used with observable values";return qh(t,e)?e:t}function ms(t){St(t);var e=ch(!0,function(r,i,o,a,s){process.env.NODE_ENV!=="production"&&St(!o||!o.get,'@observable cannot be used on getter (property "'+Hn(i)+'"), use @computed instead.');var l=o?o.initializer?o.initializer.call(r):o.value:void 0;rd(r).addObservableProp(i,l,t)}),n=typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"?function(){return arguments.length<2?Le("Incorrect decorator invocation. @observable decorator doesn't expect any arguments"):e.apply(null,arguments)}:e;return n.enhancer=t,n}var hh={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(hh);function Ob(t){/^(deep|name|equals|defaultDecorator|proxy)$/.test(t)||Le("invalid option for (extend)observable: "+t)}function lo(t){if(t==null)return hh;if(typeof t=="string")return{name:t,deep:!0,proxy:!0};if(process.env.NODE_ENV!=="production"){if(typeof t!="object")return Le("expected options object");Object.keys(t).forEach(Ob)}return t}var Yu=ms(Zo),Nb=ms(Sb),ph=ms(ys),Tb=ms(Ab);function _s(t){return t.defaultDecorator?t.defaultDecorator.enhancer:t.deep===!1?ys:Zo}function Mb(t,e,n){if(typeof arguments[1]=="string"||typeof arguments[1]=="symbol")return Yu.apply(null,arguments);if(ri(t))return t;var r=Ti(t)?U.object(t,e,n):Array.isArray(t)?U.array(t,e):io(t)?U.map(t,e):Ko(t)?U.set(t,e):t;if(r!==t)return r;Le(process.env.NODE_ENV!=="production"&&"The provided value could not be converted into an observable. If you want just create an observable reference to the object use 'observable.box(value)'")}var vh={box:function(t,e){arguments.length>2&&Jo("box");var n=lo(e);return new Di(t,_s(n),n.name,!0,n.equals)},array:function(t,e){arguments.length>2&&Jo("array");var n=lo(e);return mx(t,_s(n),n.name)},map:function(t,e){arguments.length>2&&Jo("map");var n=lo(e);return new nd(t,_s(n),n.name)},set:function(t,e){arguments.length>2&&Jo("set");var n=lo(e);return new Wh(t,_s(n),n.name)},object:function(t,e,n){typeof arguments[1]=="string"&&Jo("object");var r=lo(n);if(r.proxy===!1)return ed({},t,e,r);var i=Lh(r),o=ed({},void 0,void 0,r),a=vx(o);return Ih(a,t,e,i),a},ref:ph,shallow:Nb,deep:Yu,struct:Tb},U=Mb;Object.keys(vh).forEach(function(t){return U[t]=vh[t]});function Jo(t){Le("Expected one or two arguments to observable."+t+". Did you accidentally try to use observable."+t+" as decorator?")}var bs=ch(!1,function(t,e,n,r,i){process.env.NODE_ENV!=="production"&&St(n&&n.get,"Trying to declare a computed value for unspecified getter '"+Hn(e)+"'");var o=n.get,a=n.set,s=i[0]||{};rd(t).addComputedProp(t,e,Et({get:o,set:a,context:t},s))}),Pb=bs({equals:ao.structural}),mt=function(e,n,r){if(typeof n=="string"||e!==null&&typeof e=="object"&&arguments.length===1)return bs.apply(null,arguments);process.env.NODE_ENV!=="production"&&(St(typeof e=="function","First argument to `computed` should be an expression."),St(arguments.length<3,"Computed takes one or two arguments if used as function"));var i=typeof n=="object"?n:{};return i.get=e,i.set=typeof n=="function"?n:i.set,i.name=i.name||e.name||"",new fo(i)};mt.struct=Pb;var lt;(function(t){t[t.NOT_TRACKING=-1]="NOT_TRACKING",t[t.UP_TO_DATE=0]="UP_TO_DATE",t[t.POSSIBLY_STALE=1]="POSSIBLY_STALE",t[t.STALE=2]="STALE"})(lt||(lt={}));var or;(function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK"})(or||(or={}));var xs=function(){function t(e){this.cause=e}return t}();function Qo(t){return t instanceof xs}function $u(t){switch(t.dependenciesState){case lt.UP_TO_DATE:return!1;case lt.NOT_TRACKING:case lt.STALE:return!0;case lt.POSSIBLY_STALE:{for(var e=qu(!0),n=co(),r=t.observing,i=r.length,o=0;o<i;o++){var a=r[o];if(ho(a)){if(le.disableErrorBoundaries)a.get();else try{a.get()}catch{return ni(n),ea(e),!0}if(t.dependenciesState===lt.STALE)return ni(n),ea(e),!0}}return mh(t),ni(n),ea(e),!1}}}function uo(t){var e=t.observers.size>0;le.computationDepth>0&&e&&Le(process.env.NODE_ENV!=="production"&&"Computed values are not allowed to cause side effects by changing observables that are already being observed. Tried to modify: "+t.name),!le.allowStateChanges&&(e||le.enforceActions==="strict")&&Le(process.env.NODE_ENV!=="production"&&(le.enforceActions?"Since strict-mode is enabled, changing observed observable values outside actions is not allowed. Please wrap the code in an `action` if this change is intended. Tried to modify: ":"Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, the render function of a React component? Tried to modify: ")+t.name)}function Db(t){process.env.NODE_ENV!=="production"&&!le.allowStateReads&&le.observableRequiresReaction&&console.warn("[mobx] Observable "+t.name+" being read outside a reactive context")}function gh(t,e,n){var r=qu(!0);mh(t),t.newObserving=new Array(t.observing.length+100),t.unboundDepsCount=0,t.runId=++le.runId;var i=le.trackingDerivation;le.trackingDerivation=t;var o;if(le.disableErrorBoundaries===!0)o=e.call(n);else try{o=e.call(n)}catch(a){o=new xs(a)}return le.trackingDerivation=i,Lb(t),Rb(t),ea(r),o}function Rb(t){process.env.NODE_ENV!=="production"&&t.observing.length===0&&(le.reactionRequiresObservable||t.requiresObservable)&&console.warn("[mobx] Derivation "+t.name+" is created/updated without reading any observable value")}function Lb(t){for(var e=t.observing,n=t.observing=t.newObserving,r=lt.UP_TO_DATE,i=0,o=t.unboundDepsCount,a=0;a<o;a++){var s=n[a];s.diffValue===0&&(s.diffValue=1,i!==a&&(n[i]=s),i++),s.dependenciesState>r&&(r=s.dependenciesState)}for(n.length=i,t.newObserving=null,o=e.length;o--;){var s=e[o];s.diffValue===0&&Eh(s,t),s.diffValue=0}for(;i--;){var s=n[i];s.diffValue===1&&(s.diffValue=0,Ub(s,t))}r!==lt.UP_TO_DATE&&(t.dependenciesState=r,t.onBecomeStale())}function Ku(t){var e=t.observing;t.observing=[];for(var n=e.length;n--;)Eh(e[n],t);t.dependenciesState=lt.NOT_TRACKING}function yh(t){var e=co();try{return t()}finally{ni(e)}}function co(){var t=le.trackingDerivation;return le.trackingDerivation=null,t}function ni(t){le.trackingDerivation=t}function qu(t){var e=le.allowStateReads;return le.allowStateReads=t,e}function ea(t){le.allowStateReads=t}function mh(t){if(t.dependenciesState!==lt.UP_TO_DATE){t.dependenciesState=lt.UP_TO_DATE;for(var e=t.observing,n=e.length;n--;)e[n].lowestObserverState=lt.UP_TO_DATE}}var Es=0,Ib=1,_h=Object.getOwnPropertyDescriptor(function(){},"name"),kb=_h&&_h.configurable;function Pi(t,e,n){process.env.NODE_ENV!=="production"&&(St(typeof e=="function","`action` can only be invoked on functions"),(typeof t!="string"||!t)&&Le("actions should have valid names, got: '"+t+"'"));var r=function(){return bh(t,e,n||this,arguments)};return r.isMobxAction=!0,process.env.NODE_ENV!=="production"&&kb&&Object.defineProperty(r,"name",{value:t}),r}function bh(t,e,n,r){var i=Bb(t,n,r);try{return e.apply(n,r)}catch(o){throw i.error=o,o}finally{jb(i)}}function Bb(t,e,n){var r=Wt()&&!!t,i=0;if(r&&process.env.NODE_ENV!=="production"){i=Date.now();var o=n&&n.length||0,a=new Array(o);if(o>0)for(var s=0;s<o;s++)a[s]=n[s];On({type:"action",name:t,object:e,arguments:a})}var l=co();ar();var u=ws(!0),d=qu(!0),c={prevDerivation:l,prevAllowStateChanges:u,prevAllowStateReads:d,notifySpy:r,startTime:i,actionId:Ib++,parentActionId:Es};return Es=c.actionId,c}function jb(t){Es!==t.actionId&&Le("invalid action stack. did you forget to finish an action?"),Es=t.parentActionId,t.error!==void 0&&(le.suppressReactionErrors=!0),Cs(t.prevAllowStateChanges),ea(t.prevAllowStateReads),sr(),ni(t.prevDerivation),t.notifySpy&&process.env.NODE_ENV!=="production"&&Nn({time:Date.now()-t.startTime}),le.suppressReactionErrors=!1}function ws(t){var e=le.allowStateChanges;return le.allowStateChanges=t,e}function Cs(t){le.allowStateChanges=t}var Di=function(t){xb(e,t);function e(n,r,i,o,a){i===void 0&&(i="ObservableValue@"+mn()),o===void 0&&(o=!0),a===void 0&&(a=ao.default);var s=t.call(this,i)||this;return s.enhancer=r,s.name=i,s.equals=a,s.hasUnreportedChange=!1,s.value=r(n,void 0,i),o&&Wt()&&process.env.NODE_ENV!=="production"&&Ri({type:"create",name:s.name,newValue:""+s.value}),s}return e.prototype.dehanceValue=function(n){return this.dehancer!==void 0?this.dehancer(n):n},e.prototype.set=function(n){var r=this.value;if(n=this.prepareNewValue(n),n!==le.UNCHANGED){var i=Wt();i&&process.env.NODE_ENV!=="production"&&On({type:"update",name:this.name,newValue:n,oldValue:r}),this.setNewValue(n),i&&process.env.NODE_ENV!=="production"&&Nn()}},e.prototype.prepareNewValue=function(n){if(uo(this),wr(this)){var r=Cr(this,{object:this,type:"update",newValue:n});if(!r)return le.UNCHANGED;n=r.newValue}return n=this.enhancer(n,this.value,this.name),this.equals(this.value,n)?le.UNCHANGED:n},e.prototype.setNewValue=function(n){var r=this.value;this.value=n,this.reportChanged(),dr(this)&&cr(this,{type:"update",object:this,newValue:n,oldValue:r})},e.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},e.prototype.intercept=function(n){return na(this,n)},e.prototype.observe=function(n,r){return r&&n({object:this,type:"update",newValue:this.value,oldValue:void 0}),ra(this,n)},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.value+"]"},e.prototype.valueOf=function(){return dh(this.get())},e.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},e}(oo),Fb=ti("ObservableValue",Di),fo=function(){function t(e){this.dependenciesState=lt.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=new Set,this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=lt.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+mn(),this.value=new xs(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=or.NONE,St(e.get,"missing option for computed: get"),this.derivation=e.get,this.name=e.name||"ComputedValue@"+mn(),e.set&&(this.setter=Pi(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?ao.structural:ao.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,this.keepAlive=!!e.keepAlive}return t.prototype.onBecomeStale=function(){zb(this)},t.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(function(e){return e()})},t.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(function(e){return e()})},t.prototype.get=function(){this.isComputing&&Le("Cycle detected in computation "+this.name+": "+this.derivation),le.inBatch===0&&this.observers.size===0&&!this.keepAlive?$u(this)&&(this.warnAboutUntrackedRead(),ar(),this.value=this.computeValue(!1),sr()):(Ch(this),$u(this)&&this.trackAndCompute()&&Wb(this));var e=this.value;if(Qo(e))throw e.cause;return e},t.prototype.peek=function(){var e=this.computeValue(!1);if(Qo(e))throw e.cause;return e},t.prototype.set=function(e){if(this.setter){St(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else St(!1,process.env.NODE_ENV!=="production"&&"[ComputedValue '"+this.name+"'] It is not possible to assign a new value to a computed value.")},t.prototype.trackAndCompute=function(){Wt()&&process.env.NODE_ENV!=="production"&&Ri({object:this.scope,type:"compute",name:this.name});var e=this.value,n=this.dependenciesState===lt.NOT_TRACKING,r=this.computeValue(!0),i=n||Qo(e)||Qo(r)||!this.equals(e,r);return i&&(this.value=r),i},t.prototype.computeValue=function(e){this.isComputing=!0,le.computationDepth++;var n;if(e)n=gh(this,this.derivation,this.scope);else if(le.disableErrorBoundaries===!0)n=this.derivation.call(this.scope);else try{n=this.derivation.call(this.scope)}catch(r){n=new xs(r)}return le.computationDepth--,this.isComputing=!1,n},t.prototype.suspend=function(){this.keepAlive||(Ku(this),this.value=void 0)},t.prototype.observe=function(e,n){var r=this,i=!0,o=void 0;return tx(function(){var a=r.get();if(!i||n){var s=co();e({type:"update",object:r,newValue:a,oldValue:o}),ni(s)}i=!1,o=a})},t.prototype.warnAboutUntrackedRead=function(){process.env.NODE_ENV!=="production"&&(this.requiresReaction===!0&&Le("[mobx] Computed value "+this.name+" is read outside a reactive context"),this.isTracing!==or.NONE&&console.log("[mobx.trace] '"+this.name+"' is being read outside a reactive context. Doing a full recompute"),le.computedRequiresReaction&&console.warn("[mobx] Computed value "+this.name+" is being read outside a reactive context. Doing a full recompute"))},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},t.prototype.valueOf=function(){return dh(this.get())},t.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},t}(),ho=ti("ComputedValue",fo),Ss=function(){function t(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1}return t}(),Hb={};function As(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:Hb}var Os=!0,xh=!1,le=function(){var t=As();return t.__mobxInstanceCount>0&&!t.__mobxGlobals&&(Os=!1),t.__mobxGlobals&&t.__mobxGlobals.version!==new Ss().version&&(Os=!1),Os?t.__mobxGlobals?(t.__mobxInstanceCount+=1,t.__mobxGlobals.UNCHANGED||(t.__mobxGlobals.UNCHANGED={}),t.__mobxGlobals):(t.__mobxInstanceCount=1,t.__mobxGlobals=new Ss):(setTimeout(function(){xh||Le("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new Ss)}();function Vb(){(le.pendingReactions.length||le.inBatch||le.isRunningReactions)&&Le("isolateGlobalState should be called before MobX is running any reactions"),xh=!0,Os&&(--As().__mobxInstanceCount===0&&(As().__mobxGlobals=void 0),le=new Ss)}function Zu(){return le}function Ub(t,e){t.observers.add(e),t.lowestObserverState>e.dependenciesState&&(t.lowestObserverState=e.dependenciesState)}function Eh(t,e){t.observers.delete(e),t.observers.size===0&&wh(t)}function wh(t){t.isPendingUnobservation===!1&&(t.isPendingUnobservation=!0,le.pendingUnobservations.push(t))}function ar(){le.inBatch++}function sr(){if(--le.inBatch===0){Nh();for(var t=le.pendingUnobservations,e=0;e<t.length;e++){var n=t[e];n.isPendingUnobservation=!1,n.observers.size===0&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBecomeUnobserved()),n instanceof fo&&n.suspend())}le.pendingUnobservations=[]}}function Ch(t){Db(t);var e=le.trackingDerivation;return e!==null?(e.runId!==t.lastAccessedBy&&(t.lastAccessedBy=e.runId,e.newObserving[e.unboundDepsCount++]=t,t.isBeingObserved||(t.isBeingObserved=!0,t.onBecomeObserved())),!0):(t.observers.size===0&&le.inBatch>0&&wh(t),!1)}function Gb(t){t.lowestObserverState!==lt.STALE&&(t.lowestObserverState=lt.STALE,t.observers.forEach(function(e){e.dependenciesState===lt.UP_TO_DATE&&(e.isTracing!==or.NONE&&Sh(e,t),e.onBecomeStale()),e.dependenciesState=lt.STALE}))}function Wb(t){t.lowestObserverState!==lt.STALE&&(t.lowestObserverState=lt.STALE,t.observers.forEach(function(e){e.dependenciesState===lt.POSSIBLY_STALE?e.dependenciesState=lt.STALE:e.dependenciesState===lt.UP_TO_DATE&&(t.lowestObserverState=lt.UP_TO_DATE)}))}function zb(t){t.lowestObserverState===lt.UP_TO_DATE&&(t.lowestObserverState=lt.POSSIBLY_STALE,t.observers.forEach(function(e){e.dependenciesState===lt.UP_TO_DATE&&(e.dependenciesState=lt.POSSIBLY_STALE,e.isTracing!==or.NONE&&Sh(e,t),e.onBecomeStale())}))}function Sh(t,e){if(console.log("[mobx.trace] '"+t.name+"' is invalidated due to a change in: '"+e.name+"'"),t.isTracing===or.BREAK){var n=[];Ah(ax(t),n,1),new Function(`debugger;
/*
Tracing '`+t.name+`'
You are entering this break point because derivation '`+t.name+"' is being traced and '"+e.name+`' is now forcing it to update.
Just follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update
The stackframe you are looking for is at least ~6-8 stack-frames up.
`+(t instanceof fo?t.derivation.toString().replace(/[*]\//g,"/"):"")+`
The dependencies for this derivation are:
`+n.join(`
`)+`
*/
`)()}}function Ah(t,e,n){if(e.length>=1e3){e.push("(and many more)");return}e.push(""+new Array(n).join(" ")+t.name),t.dependencies&&t.dependencies.forEach(function(r){return Ah(r,e,n+1)})}var ta=function(){function t(e,n,r,i){e===void 0&&(e="Reaction@"+mn()),i===void 0&&(i=!1),this.name=e,this.onInvalidate=n,this.errorHandler=r,this.requiresObservable=i,this.observing=[],this.newObserving=[],this.dependenciesState=lt.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+mn(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=or.NONE}return t.prototype.onBecomeStale=function(){this.schedule()},t.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,le.pendingReactions.push(this),Nh())},t.prototype.isScheduled=function(){return this._isScheduled},t.prototype.runReaction=function(){if(!this.isDisposed){if(ar(),this._isScheduled=!1,$u(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&Wt()&&process.env.NODE_ENV!=="production"&&Ri({name:this.name,type:"scheduled-reaction"})}catch(e){this.reportExceptionInDerivation(e)}}sr()}},t.prototype.track=function(e){if(!this.isDisposed){ar();var n=Wt(),r;n&&process.env.NODE_ENV!=="production"&&(r=Date.now(),On({name:this.name,type:"reaction"})),this._isRunning=!0;var i=gh(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&Ku(this),Qo(i)&&this.reportExceptionInDerivation(i.cause),n&&process.env.NODE_ENV!=="production"&&Nn({time:Date.now()-r}),sr()}},t.prototype.reportExceptionInDerivation=function(e){var n=this;if(this.errorHandler){this.errorHandler(e,this);return}if(le.disableErrorBoundaries)throw e;var r="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";le.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(r,e),Wt()&&Ri({type:"error",name:this.name,message:r,error:""+e}),le.globalReactionErrorHandlers.forEach(function(i){return i(e,n)})},t.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(ar(),Ku(this),sr()))},t.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e[De]=this,e},t.prototype.toString=function(){return"Reaction["+this.name+"]"},t.prototype.trace=function(e){e===void 0&&(e=!1),fx(this,e)},t}(),Oh=100,Ju=function(t){return t()};function Nh(){le.inBatch>0||le.isRunningReactions||Ju(Xb)}function Xb(){le.isRunningReactions=!0;for(var t=le.pendingReactions,e=0;t.length>0;){++e===Oh&&(console.error("Reaction doesn't converge to a stable state after "+Oh+" iterations."+(" Probably there is a cycle in the reactive function: "+t[0])),t.splice(0));for(var n=t.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction()}le.isRunningReactions=!1}var Ns=ti("Reaction",ta);function Yb(t){var e=Ju;Ju=function(n){return t(function(){return e(n)})}}function Wt(){return process.env.NODE_ENV!=="production"&&!!le.spyListeners.length}function Ri(t){if(process.env.NODE_ENV!=="production"&&le.spyListeners.length)for(var e=le.spyListeners,n=0,r=e.length;n<r;n++)e[n](t)}function On(t){if(process.env.NODE_ENV!=="production"){var e=Et(Et({},t),{spyReportStart:!0});Ri(e)}}var $b={spyReportEnd:!0};function Nn(t){process.env.NODE_ENV!=="production"&&Ri(t?Et(Et({},t),{spyReportEnd:!0}):$b)}function Kb(t){return process.env.NODE_ENV==="production"?(console.warn("[mobx.spy] Is a no-op in production builds"),function(){}):(le.spyListeners.push(t),Hu(function(){le.spyListeners=le.spyListeners.filter(function(e){return e!==t})}))}function qb(){Le(process.env.NODE_ENV!=="production"&&"@action fields are not reassignable")}function Th(t){return function(e,n,r){if(r){if(process.env.NODE_ENV!=="production"&&r.get!==void 0)return Le("@action cannot be used with getters");if(r.value)return{value:Pi(t,r.value),enumerable:!1,configurable:!0,writable:!0};var i=r.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return Pi(t,i.call(this))}}}return Zb(t).apply(this,arguments)}}function Zb(t){return function(e,n,r){Object.defineProperty(e,n,{configurable:!0,enumerable:!1,get:function(){},set:function(i){ro(this,n,H(t,i))}})}}function Jb(t,e,n,r){return r===!0?(Qu(t,e,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return Qu(this,e,n.value||n.initializer.call(this)),this[e]},set:qb}:{enumerable:!1,configurable:!0,set:function(i){Qu(this,e,i)},get:function(){}}}var H=function(e,n,r,i){if(arguments.length===1&&typeof e=="function")return Pi(e.name||"<unnamed action>",e);if(arguments.length===2&&typeof n=="function")return Pi(e,n);if(arguments.length===1&&typeof e=="string")return Th(e);if(i===!0)ro(e,n,Pi(e.name||n,r.value,this));else return Th(n).apply(null,arguments)};H.bound=Jb;function Qb(t,e){var n=typeof t=="string"?t:t.name||"<unnamed action>",r=typeof t=="function"?t:e;return process.env.NODE_ENV!=="production"&&(St(typeof r=="function"&&r.length===0,"`runInAction` expects a function without arguments"),(typeof n!="string"||!n)&&Le("actions should have valid names, got: '"+n+"'")),bh(n,r,this,void 0)}function ex(t){return typeof t=="function"&&t.isMobxAction===!0}function Qu(t,e,n){ro(t,e,Pi(e,n.bind(t)))}function tx(t,e){e===void 0&&(e=Fu),process.env.NODE_ENV!=="production"&&(St(typeof t=="function","Autorun expects a function as first argument"),St(ex(t)===!1,"Autorun does not accept actions since actions are untrackable"));var n=e&&e.name||t.name||"Autorun@"+mn(),r=!e.scheduler&&!e.delay,i;if(r)i=new ta(n,function(){this.track(s)},e.onError,e.requiresObservable);else{var o=Mh(e),a=!1;i=new ta(n,function(){a||(a=!0,o(function(){a=!1,i.isDisposed||i.track(s)}))},e.onError,e.requiresObservable)}function s(){t(i)}return i.schedule(),i.getDisposer()}var nx=function(t){return t()};function Mh(t){return t.scheduler?t.scheduler:t.delay?function(e){return setTimeout(e,t.delay)}:nx}function Ph(t,e,n){n===void 0&&(n=Fu),process.env.NODE_ENV!=="production"&&(St(typeof t=="function","First argument to reaction should be a function"),St(typeof n=="object","Third argument of reactions should be an object"));var r=n.name||"Reaction@"+mn(),i=H(r,n.onError?rx(n.onError,e):e),o=!n.scheduler&&!n.delay,a=Mh(n),s=!0,l=!1,u,d=n.compareStructural?ao.structural:n.equals||ao.default,c=new ta(r,function(){s||o?f():l||(l=!0,a(f))},n.onError,n.requiresObservable);function f(){if(l=!1,!c.isDisposed){var h=!1;c.track(function(){var v=t(c);h=s||!d(u,v),u=v}),s&&n.fireImmediately&&i(u,c),!s&&h===!0&&i(u,c),s&&(s=!1)}}return c.schedule(),c.getDisposer()}function rx(t,e){return function(){try{return e.apply(this,arguments)}catch(n){t.call(this,n)}}}function ix(t,e,n){return Rh("onBecomeObserved",t,e)}function Dh(t,e,n){return Rh("onBecomeUnobserved",t,e)}function Rh(t,e,n,r){var i=oi(e),o=n,a=t+"Listeners";i[a]?i[a].add(o):i[a]=new Set([o]);var s=i[t];return typeof s!="function"?Le(process.env.NODE_ENV!=="production"&&"Not an atom that can be (un)observed"):function(){var l=i[a];l&&(l.delete(o),l.size===0&&delete i[a])}}function ox(t){var e=t.enforceActions,n=t.computedRequiresReaction,r=t.computedConfigurable,i=t.disableErrorBoundaries,o=t.reactionScheduler,a=t.reactionRequiresObservable,s=t.observableRequiresReaction;if(Vb(),e!==void 0){(typeof e=="boolean"||e==="strict")&&hb(`Deprecated value for 'enforceActions', use 'false' => '"never"', 'true' => '"observed"', '"strict"' => "'always'" instead`);var l=void 0;switch(e){case!0:case"observed":l=!0;break;case!1:case"never":l=!1;break;case"strict":case"always":l="strict";break;default:Le("Invalid value for 'enforceActions': '"+e+"', expected 'never', 'always' or 'observed'")}le.enforceActions=l,le.allowStateChanges=!(l===!0||l==="strict")}n!==void 0&&(le.computedRequiresReaction=!!n),a!==void 0&&(le.reactionRequiresObservable=!!a),s!==void 0&&(le.observableRequiresReaction=!!s,le.allowStateReads=!le.observableRequiresReaction),r!==void 0&&(le.computedConfigurable=!!r),i!==void 0&&(i===!0&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),le.disableErrorBoundaries=!!i),o&&Yb(o)}function ed(t,e,n,r){process.env.NODE_ENV!=="production"&&(St(arguments.length>=2&&arguments.length<=4,"'extendObservable' expected 2-4 arguments"),St(typeof t=="object","'extendObservable' expects an object as first argument"),St(!an(t),"'extendObservable' should not be used on maps, use map.merge instead")),r=lo(r);var i=Lh(r);return Mi(t),rd(t,r.name,i.enhancer),e&&Ih(t,e,n,i),t}function Lh(t){return t.defaultDecorator||(t.deep===!1?ph:Yu)}function Ih(t,e,n,r){var i,o,a,s;if(process.env.NODE_ENV!=="production"&&(St(!ri(e),"Extending an object with another observable (object) is not supported. Please construct an explicit propertymap, using `toJS` if need. See issue #540"),n)){var l=Uu(n);try{for(var u=ir(l),d=u.next();!d.done;d=u.next()){var c=d.value;c in e||Le("Trying to declare a decorator for unspecified property '"+Hn(c)+"'")}}catch(y){i={error:y}}finally{try{d&&!d.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}}ar();try{var l=mb(e);try{for(var f=ir(l),h=f.next();!h.done;h=f.next()){var c=h.value,v=Object.getOwnPropertyDescriptor(e,c);process.env.NODE_ENV!=="production"&&(Ti(e)||Le("'extendObservable' only accepts plain objects as second argument"),jh(v.value)&&Le("Passing a 'computed' as initial property value is no longer supported by extendObservable. Use a getter or decorator instead"));var p=n&&c in n?n[c]:v.get?bs:r;process.env.NODE_ENV!=="production"&&typeof p!="function"&&Le("Not a valid decorator for '"+Hn(c)+"', got: "+p);var g=p(t,c,v,!0);g&&Object.defineProperty(t,c,g)}}catch(m){a={error:m}}finally{try{h&&!h.done&&(s=f.return)&&s.call(f)}finally{if(a)throw a.error}}}finally{sr()}}function ax(t,e){return kh(oi(t,e))}function kh(t){var e={name:t.name};return t.observing&&t.observing.length>0&&(e.dependencies=pb(t.observing).map(kh)),e}function Bh(t,e){if(t==null)return!1;if(e!==void 0){if(fr(t)===!1||!t[De].values.has(e))return!1;var n=oi(t,e);return ho(n)}return ho(t)}function jh(t){return arguments.length>1?Le(process.env.NODE_ENV!=="production"&&"isComputed expects only 1 argument. Use isObservableProp to inspect the observability of a property"):Bh(t)}function Fh(t,e){return typeof e!="string"?Le(process.env.NODE_ENV!=="production"&&"isComputed expected a property name as second argument"):Bh(t,e)}function sx(t,e){return t==null?!1:fr(t)||!!t[De]||Gu(t)||Ns(t)||ho(t)}function ri(t){return arguments.length!==1&&Le(process.env.NODE_ENV!=="production"&&"isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property"),sx(t)}function po(t){return fr(t)?t[De].getKeys():an(t)||Vn(t)?Array.from(t.keys()):Sr(t)?t.map(function(e,n){return n}):Le(process.env.NODE_ENV!=="production"&&"'keys()' can only be used on observable objects, arrays, sets and maps")}function lx(t){return fr(t)?po(t).map(function(e){return t[e]}):an(t)?po(t).map(function(e){return t.get(e)}):Vn(t)?Array.from(t.values()):Sr(t)?t.slice():Le(process.env.NODE_ENV!=="production"&&"'values()' can only be used on observable objects, arrays, sets and maps")}function ux(t){return fr(t)?po(t).map(function(e){return[e,t[e]]}):an(t)?po(t).map(function(e){return[e,t.get(e)]}):Vn(t)?Array.from(t.entries()):Sr(t)?t.map(function(e,n){return[n,e]}):Le(process.env.NODE_ENV!=="production"&&"'entries()' can only be used on observable objects, arrays and maps")}function td(t,e,n){if(arguments.length===2&&!Vn(t)){ar();var r=e;try{for(var i in r)td(t,i,r[i])}finally{sr()}return}if(fr(t)){var o=t[De],a=o.values.get(e);a?o.write(e,n):o.addObservableProp(e,n,o.defaultEnhancer)}else if(an(t))t.set(e,n);else if(Vn(t))t.add(e);else if(Sr(t))typeof e!="number"&&(e=parseInt(e,10)),St(e>=0,"Not a valid index: '"+e+"'"),ar(),e>=t.length&&(t.length=e+1),t[e]=n,sr();else return Le(process.env.NODE_ENV!=="production"&&"'set()' can only be used on observable objects, arrays and maps")}function Hh(t,e,n,r){return dx(t,e,n)}function dx(t,e,n){return Ps(t).observe(e,n)}var cx={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function vo(t,e,n,r){return r.detectCycles&&t.set(e,n),n}function ii(t,e,n){if(!e.recurseEverything&&!ri(t)||typeof t!="object")return t;if(t===null)return null;if(t instanceof Date)return t;if(Fb(t))return ii(t.get(),e,n);ri(t)&&po(t);var r=e.detectCycles===!0;if(r&&t!==null&&n.has(t))return n.get(t);if(Sr(t)||Array.isArray(t)){var i=vo(n,t,[],e),o=t.map(function(h){return ii(h,e,n)});i.length=o.length;for(var a=0,s=o.length;a<s;a++)i[a]=o[a];return i}if(Vn(t)||Object.getPrototypeOf(t)===Set.prototype)if(e.exportMapsAsObjects===!1){var l=vo(n,t,new Set,e);return t.forEach(function(h){l.add(ii(h,e,n))}),l}else{var u=vo(n,t,[],e);return t.forEach(function(h){u.push(ii(h,e,n))}),u}if(an(t)||Object.getPrototypeOf(t)===Map.prototype)if(e.exportMapsAsObjects===!1){var d=vo(n,t,new Map,e);return t.forEach(function(h,v){d.set(v,ii(h,e,n))}),d}else{var c=vo(n,t,{},e);return t.forEach(function(h,v){c[v]=ii(h,e,n)}),c}var f=vo(n,t,{},e);return Uu(t).forEach(function(h){f[h]=ii(t[h],e,n)}),f}function lr(t,e){typeof e=="boolean"&&(e={detectCycles:e}),e||(e=cx),e.detectCycles=e.detectCycles===void 0?e.recurseEverything===!0:e.detectCycles===!0;var n;return e.detectCycles&&(n=new Map),ii(t,e,n)}function fx(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=!1;typeof t[t.length-1]=="boolean"&&(n=t.pop());var r=hx(t);if(!r)return Le(process.env.NODE_ENV!=="production"&&"'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");r.isTracing===or.NONE&&console.log("[mobx.trace] '"+r.name+"' tracing enabled"),r.isTracing=n?or.BREAK:or.LOG}function hx(t){switch(t.length){case 0:return le.trackingDerivation;case 1:return oi(t[0]);case 2:return oi(t[0],t[1])}}function ur(t,e){e===void 0&&(e=void 0),ar();try{return t.apply(e)}finally{sr()}}function Ts(t){return t[De]}function Ms(t){return typeof t=="string"||typeof t=="number"||typeof t=="symbol"}var px={has:function(t,e){if(e===De||e==="constructor"||e===gs)return!0;var n=Ts(t);return Ms(e)?n.has(e):e in t},get:function(t,e){if(e===De||e==="constructor"||e===gs)return t[e];var n=Ts(t),r=n.values.get(e);if(r instanceof oo){var i=r.get();return i===void 0&&n.has(e),i}return Ms(e)&&n.has(e),t[e]},set:function(t,e,n){return Ms(e)?(td(t,e,n),!0):!1},deleteProperty:function(t,e){if(!Ms(e))return!1;var n=Ts(t);return n.remove(e),!0},ownKeys:function(t){var e=Ts(t);return e.keysAtom.reportObserved(),Reflect.ownKeys(t)},preventExtensions:function(t){return Le("Dynamic observable objects cannot be frozen"),!1}};function vx(t){var e=new Proxy(t,px);return t[De].proxy=e,e}function wr(t){return t.interceptors!==void 0&&t.interceptors.