chaoticbackup.github.io/build/vendor.js
2020-08-12 10:08:02 -04:00

2 lines
712 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! For license information please see vendor.js.LICENSE.txt */
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[function(t,e,n){"use strict";t.exports=n(1030)},function(t,e,n){var r=n(9),i=n(19),o=n(33),s=n(29),a=n(43),u=function(t,e,n){var c,l,h,f,p=t&u.F,d=t&u.G,m=t&u.S,v=t&u.P,y=t&u.B,g=d?r:m?r[e]||(r[e]={}):(r[e]||{}).prototype,b=d?i:i[e]||(i[e]={}),_=b.prototype||(b.prototype={});for(c in d&&(n=e),n)h=((l=!p&&g&&void 0!==g[c])?g:n)[c],f=y&&l?a(h,r):v&&"function"==typeof h?a(Function.call,h):h,g&&s(g,c,h,t&u.U),b[c]!=h&&o(b,c,f),v&&_[c]!=h&&(_[c]=h)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return s})),n.d(e,"e",(function(){return a})),n.d(e,"f",(function(){return u})),n.d(e,"g",(function(){return c})),n.d(e,"i",(function(){return l})),n.d(e,"h",(function(){return h})),n.d(e,"j",(function(){return f})),n.d(e,"k",(function(){return p}));const r=new WeakSet,i=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap,u=new WeakMap,c=new WeakMap,l=new WeakMap,h=new WeakMap,f=new WeakMap,p=new WeakMap},function(t,e,n){"use strict";(function(t,r){n.d(e,"a",(function(){return w})),n.d(e,"b",(function(){return Ft})),n.d(e,"c",(function(){return gt})),n.d(e,"d",(function(){return ht})),n.d(e,"e",(function(){return lt})),n.d(e,"f",(function(){return Kt})),n.d(e,"g",(function(){return ee})),n.d(e,"h",(function(){return T})),n.d(e,"i",(function(){return oe})),n.d(e,"j",(function(){return Ae})),n.d(e,"k",(function(){return Me})),n.d(e,"l",(function(){return Ue})),n.d(e,"m",(function(){return X})),n.d(e,"n",(function(){return le})),n.d(e,"o",(function(){return Gt})),n.d(e,"p",(function(){return Ut})),n.d(e,"q",(function(){return fe})),n.d(e,"r",(function(){return at}));var i=[];Object.freeze(i);var o={};function s(){return++At.mobxGuid}function a(t){throw u(!1,t),"X"}function u(t,e){if(!t)throw new Error("[mobx] "+(e||"An invariant failed, however the error is obfuscated because this is a production build."))}Object.freeze(o);function c(t){var e=!1;return function(){if(!e)return e=!0,t.apply(this,arguments)}}var l=function(){};function h(t){return null!==t&&"object"==typeof t}function f(t){if(null===t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);return e===Object.prototype||null===e}function p(t,e,n){Object.defineProperty(t,e,{enumerable:!1,writable:!0,configurable:!0,value:n})}function d(t,e){var n="isMobX"+t;return e.prototype[n]=!0,function(t){return h(t)&&!0===t[n]}}function m(t){return t instanceof Map}function v(t){return t instanceof Set}function y(t){var e=new Set;for(var n in t)e.add(n);return Object.getOwnPropertySymbols(t).forEach((function(n){Object.getOwnPropertyDescriptor(t,n).enumerable&&e.add(n)})),Array.from(e)}function g(t){return t&&t.toString?t.toString():new String(t).toString()}function b(t){return null===t?null:"object"==typeof t?""+t:t}var _="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,w=Symbol("mobx administration"),x=function(){function t(t){void 0===t&&(t="Atom@"+s()),this.name=t,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=new Set,this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=Q.NOT_TRACKING}return t.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach((function(t){return t()}))},t.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach((function(t){return t()}))},t.prototype.reportObserved=function(){return Nt(this)},t.prototype.reportChanged=function(){Mt(),function(t){if(t.lowestObserverState===Q.STALE)return;t.lowestObserverState=Q.STALE,t.observers.forEach((function(e){e.dependenciesState===Q.UP_TO_DATE&&(e.isTracing!==Z.NONE&&Rt(e,t),e.onBecomeStale()),e.dependenciesState=Q.STALE}))}(this),Dt()},t.prototype.toString=function(){return this.name},t}(),O=d("Atom",x);function T(t,e,n){void 0===e&&(e=l),void 0===n&&(n=l);var r,i=new x(t);return e!==l&&te("onBecomeObserved",i,e,r),n!==l&&Zt(i,n),i}var S={identity:function(t,e){return t===e},structural:function(t,e){return Ke(t,e)},default:function(t,e){return Object.is(t,e)},shallow:function(t,e){return Ke(t,e,1)}},k=function(t,e){return(k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};var C=function(){return(C=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function E(t){var e="function"==typeof Symbol&&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 A(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function P(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(A(arguments[e]));return t}var j=Symbol("mobx did run lazy initializers"),I=Symbol("mobx pending decorators"),M={},D={};function N(t,e){var n=e?M:D;return n[t]||(n[t]={configurable:!0,enumerable:e,get:function(){return R(this),this[t]},set:function(e){R(this),this[t]=e}})}function R(t){var e,n;if(!0!==t[j]){var r=t[I];if(r){p(t,j,!0);var i=P(Object.getOwnPropertySymbols(r),Object.keys(r));try{for(var o=E(i),s=o.next();!s.done;s=o.next()){var a=r[s.value];a.propertyCreator(t,a.prop,a.descriptor,a.decoratorTarget,a.decoratorArguments)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}}}}function F(t,e){return function(){var n,r=function(r,i,o,s){if(!0===s)return e(r,i,o,r,n),null;if(!Object.prototype.hasOwnProperty.call(r,I)){var a=r[I];p(r,I,C({},a))}return r[I][i]={prop:i,propertyCreator:e,descriptor:o,decoratorTarget:r,decoratorArguments:n},N(i,t)};return L(arguments)?(n=i,r.apply(null,arguments)):(n=Array.prototype.slice.call(arguments),r)}}function L(t){return(2===t.length||3===t.length)&&("string"==typeof t[1]||"symbol"==typeof t[1])||4===t.length&&!0===t[3]}function V(t,e,n){return ce(t)?t:Array.isArray(t)?X.array(t,{name:n}):f(t)?X.object(t,void 0,{name:n}):m(t)?X.map(t,{name:n}):v(t)?X.set(t,{name:n}):t}function z(t){return t}function B(e){u(e);var n=F(!0,(function(t,n,r,i,o){var s=r?r.initializer?r.initializer.call(t):r.value:void 0;Le(t).addObservableProp(n,s,e)})),r=(void 0!==t&&t.env,n);return r.enhancer=e,r}var q={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function U(t){return null==t?q:"string"==typeof t?{name:t,deep:!0,proxy:!0}:t}Object.freeze(q);var W=B(V),$=B((function(t,e,n){return null==t||Ue(t)||Ae(t)||Me(t)||Re(t)?t:Array.isArray(t)?X.array(t,{name:n,deep:!1}):f(t)?X.object(t,void 0,{name:n,deep:!1}):m(t)?X.map(t,{name:n,deep:!1}):v(t)?X.set(t,{name:n,deep:!1}):a(!1)})),H=B(z),K=B((function(t,e,n){return Ke(t,e)?e:t}));function G(t){return t.defaultDecorator?t.defaultDecorator.enhancer:!1===t.deep?z:V}var Y={box:function(t,e){arguments.length>2&&J("box");var n=U(e);return new wt(t,G(n),n.name,!0,n.equals)},array:function(t,e){arguments.length>2&&J("array");var n=U(e);return Te(t,G(n),n.name)},map:function(t,e){arguments.length>2&&J("map");var n=U(e);return new Ie(t,G(n),n.name)},set:function(t,e){arguments.length>2&&J("set");var n=U(e);return new Ne(t,G(n),n.name)},object:function(t,e,n){"string"==typeof arguments[1]&&J("object");var r=U(n);if(!1===r.proxy)return ne({},t,e,r);var i=re(r),o=ne({},void 0,void 0,r),s=ve(o);return ie(s,t,e,i),s},ref:H,shallow:$,deep:W,struct:K},X=function(t,e,n){if("string"==typeof arguments[1]||"symbol"==typeof arguments[1])return W.apply(null,arguments);if(ce(t))return t;var r=f(t)?X.object(t,e,n):Array.isArray(t)?X.array(t,e):m(t)?X.map(t,e):v(t)?X.set(t,e):t;if(r!==t)return r;a(!1)};function J(t){a("Expected one or two arguments to observable."+t+". Did you accidentally try to use observable."+t+" as decorator?")}Object.keys(Y).forEach((function(t){return X[t]=Y[t]}));var Q,Z,tt=F(!1,(function(t,e,n,r,i){var o=n.get,s=n.set,a=i[0]||{};Le(t).addComputedProp(t,e,C({get:o,set:s,context:t},a))}));tt({equals:S.structural});!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"}(Q||(Q={})),function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK"}(Z||(Z={}));var et=function(t){this.cause=t};function nt(t){return t instanceof et}function rt(t){switch(t.dependenciesState){case Q.UP_TO_DATE:return!1;case Q.NOT_TRACKING:case Q.STALE:return!0;case Q.POSSIBLY_STALE:for(var e=lt(!0),n=ut(),r=t.observing,i=r.length,o=0;o<i;o++){var s=r[o];if(Ot(s)){if(At.disableErrorBoundaries)s.get();else try{s.get()}catch(t){return ct(n),ht(e),!0}if(t.dependenciesState===Q.STALE)return ct(n),ht(e),!0}}return ft(t),ct(n),ht(e),!1}}function it(t){var e=t.observers.size>0;At.computationDepth>0&&e&&a(!1),At.allowStateChanges||!e&&"strict"!==At.enforceActions||a(!1)}function ot(t,e,n){var r=lt(!0);ft(t),t.newObserving=new Array(t.observing.length+100),t.unboundDepsCount=0,t.runId=++At.runId;var i,o=At.trackingDerivation;if(At.trackingDerivation=t,!0===At.disableErrorBoundaries)i=e.call(n);else try{i=e.call(n)}catch(t){i=new et(t)}return At.trackingDerivation=o,function(t){for(var e=t.observing,n=t.observing=t.newObserving,r=Q.UP_TO_DATE,i=0,o=t.unboundDepsCount,s=0;s<o;s++){0===(a=n[s]).diffValue&&(a.diffValue=1,i!==s&&(n[i]=a),i++),a.dependenciesState>r&&(r=a.dependenciesState)}n.length=i,t.newObserving=null,o=e.length;for(;o--;){0===(a=e[o]).diffValue&&jt(a,t),a.diffValue=0}for(;i--;){var a;1===(a=n[i]).diffValue&&(a.diffValue=0,Pt(a,t))}r!==Q.UP_TO_DATE&&(t.dependenciesState=r,t.onBecomeStale())}(t),ht(r),i}function st(t){var e=t.observing;t.observing=[];for(var n=e.length;n--;)jt(e[n],t);t.dependenciesState=Q.NOT_TRACKING}function at(t){var e=ut();try{return t()}finally{ct(e)}}function ut(){var t=At.trackingDerivation;return At.trackingDerivation=null,t}function ct(t){At.trackingDerivation=t}function lt(t){var e=At.allowStateReads;return At.allowStateReads=t,e}function ht(t){At.allowStateReads=t}function ft(t){if(t.dependenciesState!==Q.UP_TO_DATE){t.dependenciesState=Q.UP_TO_DATE;for(var e=t.observing,n=e.length;n--;)e[n].lowestObserverState=Q.UP_TO_DATE}}var pt=0,dt=1,mt=Object.getOwnPropertyDescriptor((function(){}),"name");mt&&mt.configurable;function vt(t,e,n){var r=function(){return yt(t,e,n||this,arguments)};return r.isMobxAction=!0,r}function yt(t,e,n,r){var i=function(t,e,n){var r=0;var i=ut();Mt();var o=bt(!0),s=lt(!0),a={prevDerivation:i,prevAllowStateChanges:o,prevAllowStateReads:s,notifySpy:!1,startTime:r,actionId:dt++,parentActionId:pt};return pt=a.actionId,a}();try{return e.apply(n,r)}catch(t){throw i.error=t,t}finally{!function(t){pt!==t.actionId&&a("invalid action stack. did you forget to finish an action?");pt=t.parentActionId,void 0!==t.error&&(At.suppressReactionErrors=!0);_t(t.prevAllowStateChanges),ht(t.prevAllowStateReads),Dt(),ct(t.prevDerivation),t.notifySpy&&!1;At.suppressReactionErrors=!1}(i)}}function gt(t,e){var n,r=bt(t);try{n=e()}finally{_t(r)}return n}function bt(t){var e=At.allowStateChanges;return At.allowStateChanges=t,e}function _t(t){At.allowStateChanges=t}var wt=function(t){function e(e,n,r,i,o){void 0===r&&(r="ObservableValue@"+s()),void 0===i&&(i=!0),void 0===o&&(o=S.default);var a=t.call(this,r)||this;return a.enhancer=n,a.name=r,a.equals=o,a.hasUnreportedChange=!1,a.value=n(e,void 0,r),a}return function(t,e){function n(){this.constructor=t}k(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e.prototype.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},e.prototype.set=function(t){this.value;if((t=this.prepareNewValue(t))!==At.UNCHANGED){0,this.setNewValue(t)}},e.prototype.prepareNewValue=function(t){if(it(this),ye(this)){var e=be(this,{object:this,type:"update",newValue:t});if(!e)return At.UNCHANGED;t=e.newValue}return t=this.enhancer(t,this.value,this.name),this.equals(this.value,t)?At.UNCHANGED:t},e.prototype.setNewValue=function(t){var e=this.value;this.value=t,this.reportChanged(),_e(this)&&xe(this,{type:"update",object:this,newValue:t,oldValue:e})},e.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},e.prototype.intercept=function(t){return ge(this,t)},e.prototype.observe=function(t,e){return e&&t({object:this,type:"update",newValue:this.value,oldValue:void 0}),we(this,t)},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.value+"]"},e.prototype.valueOf=function(){return b(this.get())},e.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},e}(x),xt=(d("ObservableValue",wt),function(){function t(t){this.dependenciesState=Q.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=Q.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+s(),this.value=new et(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Z.NONE,u(t.get,"missing option for computed: get"),this.derivation=t.get,this.name=t.name||"ComputedValue@"+s(),t.set&&(this.setter=vt(this.name+"-setter",t.set)),this.equals=t.equals||(t.compareStructural||t.struct?S.structural:S.default),this.scope=t.context,this.requiresReaction=!!t.requiresReaction,this.keepAlive=!!t.keepAlive}return t.prototype.onBecomeStale=function(){!function(t){if(t.lowestObserverState!==Q.UP_TO_DATE)return;t.lowestObserverState=Q.POSSIBLY_STALE,t.observers.forEach((function(e){e.dependenciesState===Q.UP_TO_DATE&&(e.dependenciesState=Q.POSSIBLY_STALE,e.isTracing!==Z.NONE&&Rt(e,t),e.onBecomeStale())}))}(this)},t.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach((function(t){return t()}))},t.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach((function(t){return t()}))},t.prototype.get=function(){this.isComputing&&a("Cycle detected in computation "+this.name+": "+this.derivation),0!==At.inBatch||0!==this.observers.size||this.keepAlive?(Nt(this),rt(this)&&this.trackAndCompute()&&function(t){if(t.lowestObserverState===Q.STALE)return;t.lowestObserverState=Q.STALE,t.observers.forEach((function(e){e.dependenciesState===Q.POSSIBLY_STALE?e.dependenciesState=Q.STALE:e.dependenciesState===Q.UP_TO_DATE&&(t.lowestObserverState=Q.UP_TO_DATE)}))}(this)):rt(this)&&(this.warnAboutUntrackedRead(),Mt(),this.value=this.computeValue(!1),Dt());var t=this.value;if(nt(t))throw t.cause;return t},t.prototype.peek=function(){var t=this.computeValue(!1);if(nt(t))throw t.cause;return t},t.prototype.set=function(t){if(this.setter){u(!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,t)}finally{this.isRunningSetter=!1}}else u(!1,!1)},t.prototype.trackAndCompute=function(){var t=this.value,e=this.dependenciesState===Q.NOT_TRACKING,n=this.computeValue(!0),r=e||nt(t)||nt(n)||!this.equals(t,n);return r&&(this.value=n),r},t.prototype.computeValue=function(t){var e;if(this.isComputing=!0,At.computationDepth++,t)e=ot(this,this.derivation,this.scope);else if(!0===At.disableErrorBoundaries)e=this.derivation.call(this.scope);else try{e=this.derivation.call(this.scope)}catch(t){e=new et(t)}return At.computationDepth--,this.isComputing=!1,e},t.prototype.suspend=function(){this.keepAlive||(st(this),this.value=void 0)},t.prototype.observe=function(t,e){var n=this,r=!0,i=void 0;return Xt((function(){var o=n.get();if(!r||e){var s=ut();t({type:"update",object:n,newValue:o,oldValue:i}),ct(s)}r=!1,i=o}))},t.prototype.warnAboutUntrackedRead=function(){},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},t.prototype.valueOf=function(){return b(this.get())},t.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},t}()),Ot=d("ComputedValue",xt),Tt=function(){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},St={};function kt(){return"undefined"!=typeof window?window:void 0!==r?r:"undefined"!=typeof self?self:St}var Ct=!0,Et=!1,At=function(){var t=kt();return t.__mobxInstanceCount>0&&!t.__mobxGlobals&&(Ct=!1),t.__mobxGlobals&&t.__mobxGlobals.version!==(new Tt).version&&(Ct=!1),Ct?t.__mobxGlobals?(t.__mobxInstanceCount+=1,t.__mobxGlobals.UNCHANGED||(t.__mobxGlobals.UNCHANGED={}),t.__mobxGlobals):(t.__mobxInstanceCount=1,t.__mobxGlobals=new Tt):(setTimeout((function(){Et||a("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new Tt)}();function Pt(t,e){t.observers.add(e),t.lowestObserverState>e.dependenciesState&&(t.lowestObserverState=e.dependenciesState)}function jt(t,e){t.observers.delete(e),0===t.observers.size&&It(t)}function It(t){!1===t.isPendingUnobservation&&(t.isPendingUnobservation=!0,At.pendingUnobservations.push(t))}function Mt(){At.inBatch++}function Dt(){if(0==--At.inBatch){Vt();for(var t=At.pendingUnobservations,e=0;e<t.length;e++){var n=t[e];n.isPendingUnobservation=!1,0===n.observers.size&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBecomeUnobserved()),n instanceof xt&&n.suspend())}At.pendingUnobservations=[]}}function Nt(t){var e=At.trackingDerivation;return null!==e?(e.runId!==t.lastAccessedBy&&(t.lastAccessedBy=e.runId,e.newObserving[e.unboundDepsCount++]=t,t.isBeingObserved||(t.isBeingObserved=!0,t.onBecomeObserved())),!0):(0===t.observers.size&&At.inBatch>0&&It(t),!1)}function Rt(t,e){if(console.log("[mobx.trace] '"+t.name+"' is invalidated due to a change in: '"+e.name+"'"),t.isTracing===Z.BREAK){var n=[];!function t(e,n,r){if(n.length>=1e3)return void n.push("(and many more)");n.push(""+new Array(r).join("\t")+e.name),e.dependencies&&e.dependencies.forEach((function(e){return t(e,n,r+1)}))}(oe(t),n,1),new Function("debugger;\n/*\nTracing '"+t.name+"'\n\nYou are entering this break point because derivation '"+t.name+"' is being traced and '"+e.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(t instanceof xt?t.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}}var Ft=function(){function t(t,e,n,r){void 0===t&&(t="Reaction@"+s()),void 0===r&&(r=!1),this.name=t,this.onInvalidate=e,this.errorHandler=n,this.requiresObservable=r,this.observing=[],this.newObserving=[],this.dependenciesState=Q.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+s(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Z.NONE}return t.prototype.onBecomeStale=function(){this.schedule()},t.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,At.pendingReactions.push(this),Vt())},t.prototype.isScheduled=function(){return this._isScheduled},t.prototype.runReaction=function(){if(!this.isDisposed){if(Mt(),this._isScheduled=!1,rt(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(t){this.reportExceptionInDerivation(t)}}Dt()}},t.prototype.track=function(t){if(!this.isDisposed){Mt();0,this._isRunning=!0;var e=ot(this,t,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&st(this),nt(e)&&this.reportExceptionInDerivation(e.cause),Dt()}},t.prototype.reportExceptionInDerivation=function(t){var e=this;if(this.errorHandler)this.errorHandler(t,this);else{if(At.disableErrorBoundaries)throw t;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";At.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(n,t),At.globalReactionErrorHandlers.forEach((function(n){return n(t,e)}))}},t.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Mt(),st(this),Dt()))},t.prototype.getDisposer=function(){var t=this.dispose.bind(this);return t[w]=this,t},t.prototype.toString=function(){return"Reaction["+this.name+"]"},t.prototype.trace=function(t){void 0===t&&(t=!1),function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=!1;"boolean"==typeof t[t.length-1]&&(n=t.pop());var r=he(t);if(!r)return a(!1);r.isTracing===Z.NONE&&console.log("[mobx.trace] '"+r.name+"' tracing enabled");r.isTracing=n?Z.BREAK:Z.LOG}(this,t)},t}();var Lt=function(t){return t()};function Vt(){At.inBatch>0||At.isRunningReactions||Lt(zt)}function zt(){At.isRunningReactions=!0;for(var t=At.pendingReactions,e=0;t.length>0;){100==++e&&(console.error("Reaction doesn't converge to a stable state after 100 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()}At.isRunningReactions=!1}var Bt=d("Reaction",Ft);function qt(t){var e=Lt;Lt=function(n){return t((function(){return e(n)}))}}function Ut(t){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}function Wt(){a(!1)}function $t(t){return function(e,n,r){if(r){if(r.value)return{value:vt(t,r.value),enumerable:!1,configurable:!0,writable:!0};var i=r.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return vt(t,i.call(this))}}}return Ht(t).apply(this,arguments)}}function Ht(t){return function(e,n,r){Object.defineProperty(e,n,{configurable:!0,enumerable:!1,get:function(){},set:function(e){p(this,n,Kt(t,e))}})}}var Kt=function(t,e,n,r){return 1===arguments.length&&"function"==typeof t?vt(t.name||"<unnamed action>",t):2===arguments.length&&"function"==typeof e?vt(t,e):1===arguments.length&&"string"==typeof t?$t(t):!0!==r?$t(e).apply(null,arguments):void p(t,e,vt(t.name||e,n.value,this))};function Gt(t,e){"string"==typeof t||t.name;return yt(0,"function"==typeof t?t:e,this,void 0)}function Yt(t,e,n){p(t,e,vt(e,n.bind(t)))}function Xt(t,e){void 0===e&&(e=o);var n,r=e&&e.name||t.name||"Autorun@"+s();if(!e.scheduler&&!e.delay)n=new Ft(r,(function(){this.track(u)}),e.onError,e.requiresObservable);else{var i=Qt(e),a=!1;n=new Ft(r,(function(){a||(a=!0,i((function(){a=!1,n.isDisposed||n.track(u)})))}),e.onError,e.requiresObservable)}function u(){t(n)}return n.schedule(),n.getDisposer()}Kt.bound=function(t,e,n,r){return!0===r?(Yt(t,e,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return Yt(this,e,n.value||n.initializer.call(this)),this[e]},set:Wt}:{enumerable:!1,configurable:!0,set:function(t){Yt(this,e,t)},get:function(){}}};var Jt=function(t){return t()};function Qt(t){return t.scheduler?t.scheduler:t.delay?function(e){return setTimeout(e,t.delay)}:Jt}function Zt(t,e,n){return te("onBecomeUnobserved",t,e,n)}function te(t,e,n,r){var i="function"==typeof r?We(e,n):We(e),o="function"==typeof r?r:n,s=t+"Listeners";return i[s]?i[s].add(o):i[s]=new Set([o]),"function"!=typeof i[t]?a(!1):function(){var t=i[s];t&&(t.delete(o),0===t.size&&delete i[s])}}function ee(t){var e=t.enforceActions,n=t.computedRequiresReaction,r=t.computedConfigurable,i=t.disableErrorBoundaries,o=t.reactionScheduler,s=t.reactionRequiresObservable,u=t.observableRequiresReaction;if(!0===t.isolateGlobalState&&((At.pendingReactions.length||At.inBatch||At.isRunningReactions)&&a("isolateGlobalState should be called before MobX is running any reactions"),Et=!0,Ct&&(0==--kt().__mobxInstanceCount&&(kt().__mobxGlobals=void 0),At=new Tt)),void 0!==e){var c=void 0;switch(e){case!0:case"observed":c=!0;break;case!1:case"never":c=!1;break;case"strict":case"always":c="strict";break;default:a("Invalid value for 'enforceActions': '"+e+"', expected 'never', 'always' or 'observed'")}At.enforceActions=c,At.allowStateChanges=!0!==c&&"strict"!==c}void 0!==n&&(At.computedRequiresReaction=!!n),void 0!==s&&(At.reactionRequiresObservable=!!s),void 0!==u&&(At.observableRequiresReaction=!!u,At.allowStateReads=!At.observableRequiresReaction),void 0!==r&&(At.computedConfigurable=!!r),void 0!==i&&(!0===i&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),At.disableErrorBoundaries=!!i),o&&qt(o)}function ne(t,e,n,r){var i=re(r=U(r));return R(t),Le(t,r.name,i.enhancer),e&&ie(t,e,n,i),t}function re(t){return t.defaultDecorator||(!1===t.deep?H:W)}function ie(t,e,n,r){var i,o;Mt();try{var s=_(e);try{for(var a=E(s),u=a.next();!u.done;u=a.next()){var c=u.value,l=Object.getOwnPropertyDescriptor(e,c);0;var h=(n&&c in n?n[c]:l.get?tt:r)(t,c,l,!0);h&&Object.defineProperty(t,c,h)}}catch(t){i={error:t}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}}finally{Dt()}}function oe(t,e){return se(We(t,e))}function se(t){var e,n,r={name:t.name};return t.observing&&t.observing.length>0&&(r.dependencies=(e=t.observing,n=[],e.forEach((function(t){-1===n.indexOf(t)&&n.push(t)})),n).map(se)),r}function ae(){this.message="FLOW_CANCELLED"}function ue(t,e){return null!=t&&(void 0!==e?!!Ue(t)&&t[w].values.has(e):Ue(t)||!!t[w]||O(t)||Bt(t)||Ot(t))}function ce(t){return 1!==arguments.length&&a(!1),ue(t)}function le(t,e,n,r){return"function"==typeof n?function(t,e,n,r){return $e(t,e).observe(n,r)}(t,e,n,r):function(t,e,n){return $e(t).observe(e,n)}(t,e,n)}ae.prototype=Object.create(Error.prototype);function he(t){switch(t.length){case 0:return At.trackingDerivation;case 1:return We(t[0]);case 2:return We(t[0],t[1])}}function fe(t,e){void 0===e&&(e=void 0),Mt();try{return t.apply(e)}finally{Dt()}}function pe(t){return t[w]}function de(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t}var me={has:function(t,e){if(e===w||"constructor"===e||e===j)return!0;var n=pe(t);return de(e)?n.has(e):e in t},get:function(t,e){if(e===w||"constructor"===e||e===j)return t[e];var n=pe(t),r=n.values.get(e);if(r instanceof x){var i=r.get();return void 0===i&&n.has(e),i}return de(e)&&n.has(e),t[e]},set:function(t,e,n){return!!de(e)&&(function t(e,n,r){if(2!==arguments.length||Re(e))if(Ue(e)){var i=e[w],o=i.values.get(n);o?i.write(n,r):i.addObservableProp(n,r,i.defaultEnhancer)}else if(Me(e))e.set(n,r);else if(Re(e))e.add(n);else{if(!Ae(e))return a(!1);"number"!=typeof n&&(n=parseInt(n,10)),u(n>=0,"Not a valid index: '"+n+"'"),Mt(),n>=e.length&&(e.length=n+1),e[n]=r,Dt()}else{Mt();var s=n;try{for(var c in s)t(e,c,s[c])}finally{Dt()}}}(t,e,n),!0)},deleteProperty:function(t,e){return!!de(e)&&(pe(t).remove(e),!0)},ownKeys:function(t){return pe(t).keysAtom.reportObserved(),Reflect.ownKeys(t)},preventExtensions:function(t){return a("Dynamic observable objects cannot be frozen"),!1}};function ve(t){var e=new Proxy(t,me);return t[w].proxy=e,e}function ye(t){return void 0!==t.interceptors&&t.interceptors.length>0}function ge(t,e){var n=t.interceptors||(t.interceptors=[]);return n.push(e),c((function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}))}function be(t,e){var n=ut();try{for(var r=P(t.interceptors||[]),i=0,o=r.length;i<o&&(u(!(e=r[i](e))||e.type,"Intercept handlers should return nothing or a change object"),e);i++);return e}finally{ct(n)}}function _e(t){return void 0!==t.changeListeners&&t.changeListeners.length>0}function we(t,e){var n=t.changeListeners||(t.changeListeners=[]);return n.push(e),c((function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}))}function xe(t,e){var n=ut(),r=t.changeListeners;if(r){for(var i=0,o=(r=r.slice()).length;i<o;i++)r[i](e);ct(n)}}var Oe={get:function(t,e){return e===w?t[w]:"length"===e?t[w].getArrayLength():"number"==typeof e?ke.get.call(t,e):"string"!=typeof e||isNaN(e)?ke.hasOwnProperty(e)?ke[e]:t[e]:ke.get.call(t,parseInt(e))},set:function(t,e,n){return"length"===e&&t[w].setArrayLength(n),"number"==typeof e&&ke.set.call(t,e,n),"symbol"==typeof e||isNaN(e)?t[e]=n:ke.set.call(t,parseInt(e),n),!0},preventExtensions:function(t){return a("Observable arrays cannot be frozen"),!1}};function Te(t,e,n,r){void 0===n&&(n="ObservableArray@"+s()),void 0===r&&(r=!1);var i,o,a,u=new Se(n,e,r);i=u.values,o=w,a=u,Object.defineProperty(i,o,{enumerable:!1,writable:!1,configurable:!0,value:a});var c=new Proxy(u.values,Oe);if(u.proxy=c,t&&t.length){var l=bt(!0);u.spliceWithArray(0,0,t),_t(l)}return c}var Se=function(){function t(t,e,n){this.owned=n,this.values=[],this.proxy=void 0,this.lastKnownLength=0,this.atom=new x(t||"ObservableArray@"+s()),this.enhancer=function(n,r){return e(n,r,t+"[..]")}}return t.prototype.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},t.prototype.dehanceValues=function(t){return void 0!==this.dehancer&&t.length>0?t.map(this.dehancer):t},t.prototype.intercept=function(t){return ge(this,t)},t.prototype.observe=function(t,e){return void 0===e&&(e=!1),e&&t({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),we(this,t)},t.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},t.prototype.setArrayLength=function(t){if("number"!=typeof t||t<0)throw new Error("[mobx.array] Out of range: "+t);var e=this.values.length;if(t!==e)if(t>e){for(var n=new Array(t-e),r=0;r<t-e;r++)n[r]=void 0;this.spliceWithArray(e,0,n)}else this.spliceWithArray(t,e-t)},t.prototype.updateArrayLength=function(t,e){if(t!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed.");this.lastKnownLength+=e},t.prototype.spliceWithArray=function(t,e,n){var r=this;it(this.atom);var o=this.values.length;if(void 0===t?t=0:t>o?t=o:t<0&&(t=Math.max(0,o+t)),e=1===arguments.length?o-t:null==e?0:Math.max(0,Math.min(e,o-t)),void 0===n&&(n=i),ye(this)){var s=be(this,{object:this.proxy,type:"splice",index:t,removedCount:e,added:n});if(!s)return i;e=s.removedCount,n=s.added}n=0===n.length?n:n.map((function(t){return r.enhancer(t,void 0)}));var a=this.spliceItemsIntoValues(t,e,n);return 0===e&&0===n.length||this.notifyArraySplice(t,n,a),this.dehanceValues(a)},t.prototype.spliceItemsIntoValues=function(t,e,n){var r;if(n.length<1e4)return(r=this.values).splice.apply(r,P([t,e],n));var i=this.values.slice(t,t+e);return this.values=this.values.slice(0,t).concat(n,this.values.slice(t+e)),i},t.prototype.notifyArrayChildUpdate=function(t,e,n){var r=!this.owned&&!1,i=_e(this),o=i||r?{object:this.proxy,type:"update",index:t,newValue:e,oldValue:n}:null;this.atom.reportChanged(),i&&xe(this,o)},t.prototype.notifyArraySplice=function(t,e,n){var r=!this.owned&&!1,i=_e(this),o=i||r?{object:this.proxy,type:"splice",index:t,removed:n,added:e,removedCount:n.length,addedCount:e.length}:null;this.atom.reportChanged(),i&&xe(this,o)},t}(),ke={intercept:function(t){return this[w].intercept(t)},observe:function(t,e){return void 0===e&&(e=!1),this[w].observe(t,e)},clear:function(){return this.splice(0)},replace:function(t){var e=this[w];return e.spliceWithArray(0,e.values.length,t)},toJS:function(){return this.slice()},toJSON:function(){return this.toJS()},splice:function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=this[w];switch(arguments.length){case 0:return[];case 1:return i.spliceWithArray(t);case 2:return i.spliceWithArray(t,e)}return i.spliceWithArray(t,e,n)},spliceWithArray:function(t,e,n){return this[w].spliceWithArray(t,e,n)},push:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this[w];return n.spliceWithArray(n.values.length,0,t),n.values.length},pop:function(){return this.splice(Math.max(this[w].values.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this[w];return n.spliceWithArray(0,0,t),n.values.length},reverse:function(){var t=this.slice();return t.reverse.apply(t,arguments)},sort:function(t){var e=this.slice();return e.sort.apply(e,arguments)},remove:function(t){var e=this[w],n=e.dehanceValues(e.values).indexOf(t);return n>-1&&(this.splice(n,1),!0)},get:function(t){var e=this[w];if(e){if(t<e.values.length)return e.atom.reportObserved(),e.dehanceValue(e.values[t]);console.warn("[mobx.array] Attempt to read an array index ("+t+") that is out of bounds ("+e.values.length+"). Please check length first. Out of bound indices will not be tracked by MobX")}},set:function(t,e){var n=this[w],r=n.values;if(t<r.length){it(n.atom);var i=r[t];if(ye(n)){var o=be(n,{type:"update",object:n.proxy,index:t,newValue:e});if(!o)return;e=o.newValue}(e=n.enhancer(e,i))!==i&&(r[t]=e,n.notifyArrayChildUpdate(t,e,i))}else{if(t!==r.length)throw new Error("[mobx.array] Index out of bounds, "+t+" is larger than "+r.length);n.spliceWithArray(t,0,[e])}}};["concat","flat","includes","indexOf","join","lastIndexOf","slice","toString","toLocaleString"].forEach((function(t){"function"==typeof Array.prototype[t]&&(ke[t]=function(){var e=this[w];e.atom.reportObserved();var n=e.dehanceValues(e.values);return n[t].apply(n,arguments)})})),["every","filter","find","findIndex","flatMap","forEach","map","some"].forEach((function(t){"function"==typeof Array.prototype[t]&&(ke[t]=function(e,n){var r=this,i=this[w];return i.atom.reportObserved(),i.values[t]((function(t,o){return t=i.dehanceValue(t),e.call(n,t,o,r)}),n)})})),["reduce","reduceRight"].forEach((function(t){ke[t]=function(e,n){var r=this,i=this[w];return i.atom.reportObserved(),i.values[t]((function(t,n,o){return n=i.dehanceValue(n),e(t,n,o,r)}),n)}}));var Ce,Ee=d("ObservableArrayAdministration",Se);function Ae(t){return h(t)&&Ee(t[w])}var Pe,je={},Ie=function(){function t(t,e,n){if(void 0===e&&(e=V),void 0===n&&(n="ObservableMap@"+s()),this.enhancer=e,this.name=n,this[Ce]=je,this._keysAtom=T(this.name+".keys()"),this[Symbol.toStringTag]="Map","function"!=typeof Map)throw new Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");this._data=new Map,this._hasMap=new Map,this.merge(t)}return t.prototype._has=function(t){return this._data.has(t)},t.prototype.has=function(t){var e=this;if(!At.trackingDerivation)return this._has(t);var n=this._hasMap.get(t);if(!n){var r=n=new wt(this._has(t),z,this.name+"."+g(t)+"?",!1);this._hasMap.set(t,r),Zt(r,(function(){return e._hasMap.delete(t)}))}return n.get()},t.prototype.set=function(t,e){var n=this._has(t);if(ye(this)){var r=be(this,{type:n?"update":"add",object:this,newValue:e,name:t});if(!r)return this;e=r.newValue}return n?this._updateValue(t,e):this._addValue(t,e),this},t.prototype.delete=function(t){var e=this;if((it(this._keysAtom),ye(this))&&!(r=be(this,{type:"delete",object:this,name:t})))return!1;if(this._has(t)){var n=_e(this),r=n?{type:"delete",object:this,oldValue:this._data.get(t).value,name:t}:null;return fe((function(){e._keysAtom.reportChanged(),e._updateHasMapEntry(t,!1),e._data.get(t).setNewValue(void 0),e._data.delete(t)})),n&&xe(this,r),!0}return!1},t.prototype._updateHasMapEntry=function(t,e){var n=this._hasMap.get(t);n&&n.setNewValue(e)},t.prototype._updateValue=function(t,e){var n=this._data.get(t);if((e=n.prepareNewValue(e))!==At.UNCHANGED){var r=_e(this),i=r?{type:"update",object:this,oldValue:n.value,name:t,newValue:e}:null;0,n.setNewValue(e),r&&xe(this,i)}},t.prototype._addValue=function(t,e){var n=this;it(this._keysAtom),fe((function(){var r=new wt(e,n.enhancer,n.name+"."+g(t),!1);n._data.set(t,r),e=r.value,n._updateHasMapEntry(t,!0),n._keysAtom.reportChanged()}));var r=_e(this),i=r?{type:"add",object:this,name:t,newValue:e}:null;r&&xe(this,i)},t.prototype.get=function(t){return this.has(t)?this.dehanceValue(this._data.get(t).get()):this.dehanceValue(void 0)},t.prototype.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},t.prototype.keys=function(){return this._keysAtom.reportObserved(),this._data.keys()},t.prototype.values=function(){var t=this,e=this.keys();return Xe({next:function(){var n=e.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:t.get(i)}}})},t.prototype.entries=function(){var t=this,e=this.keys();return Xe({next:function(){var n=e.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:[i,t.get(i)]}}})},t.prototype[(Ce=w,Symbol.iterator)]=function(){return this.entries()},t.prototype.forEach=function(t,e){var n,r;try{for(var i=E(this),o=i.next();!o.done;o=i.next()){var s=A(o.value,2),a=s[0],u=s[1];t.call(e,u,a,this)}}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},t.prototype.merge=function(t){var e=this;return Me(t)&&(t=t.toJS()),fe((function(){f(t)?y(t).forEach((function(n){return e.set(n,t[n])})):Array.isArray(t)?t.forEach((function(t){var n=A(t,2),r=n[0],i=n[1];return e.set(r,i)})):m(t)?(t.constructor!==Map&&a("Cannot initialize from classes that inherit from Map: "+t.constructor.name),t.forEach((function(t,n){return e.set(n,t)}))):null!=t&&a("Cannot initialize map from "+t)})),this},t.prototype.clear=function(){var t=this;fe((function(){at((function(){var e,n;try{for(var r=E(t.keys()),i=r.next();!i.done;i=r.next()){var o=i.value;t.delete(o)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}}))}))},t.prototype.replace=function(t){var e=this;return fe((function(){var n,r,i,o,s=function(t){if(m(t)||Me(t))return t;if(Array.isArray(t))return new Map(t);if(f(t)){var e=new Map;for(var n in t)e.set(n,t[n]);return e}return a("Cannot convert to map from '"+t+"'")}(t),u=new Map,c=!1;try{for(var l=E(e._data.keys()),h=l.next();!h.done;h=l.next()){var p=h.value;if(!s.has(p))if(e.delete(p))c=!0;else{var d=e._data.get(p);u.set(p,d)}}}catch(t){n={error:t}}finally{try{h&&!h.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}try{for(var v=E(s.entries()),y=v.next();!y.done;y=v.next()){var g=A(y.value,2),b=(p=g[0],d=g[1],e._data.has(p));if(e.set(p,d),e._data.has(p)){var _=e._data.get(p);u.set(p,_),b||(c=!0)}}}catch(t){i={error:t}}finally{try{y&&!y.done&&(o=v.return)&&o.call(v)}finally{if(i)throw i.error}}if(!c)if(e._data.size!==u.size)e._keysAtom.reportChanged();else for(var w=e._data.keys(),x=u.keys(),O=w.next(),T=x.next();!O.done;){if(O.value!==T.value){e._keysAtom.reportChanged();break}O=w.next(),T=x.next()}e._data=u})),this},Object.defineProperty(t.prototype,"size",{get:function(){return this._keysAtom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),t.prototype.toPOJO=function(){var t,e,n={};try{for(var r=E(this),i=r.next();!i.done;i=r.next()){var o=A(i.value,2),s=o[0],a=o[1];n["symbol"==typeof s?s:g(s)]=a}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}return n},t.prototype.toJS=function(){return new Map(this)},t.prototype.toJSON=function(){return this.toPOJO()},t.prototype.toString=function(){var t=this;return this.name+"[{ "+Array.from(this.keys()).map((function(e){return g(e)+": "+t.get(e)})).join(", ")+" }]"},t.prototype.observe=function(t,e){return we(this,t)},t.prototype.intercept=function(t){return ge(this,t)},t}(),Me=d("ObservableMap",Ie),De={},Ne=function(){function t(t,e,n){if(void 0===e&&(e=V),void 0===n&&(n="ObservableSet@"+s()),this.name=n,this[Pe]=De,this._data=new Set,this._atom=T(this.name),this[Symbol.toStringTag]="Set","function"!=typeof Set)throw new Error("mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js");this.enhancer=function(t,r){return e(t,r,n)},t&&this.replace(t)}return t.prototype.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},t.prototype.clear=function(){var t=this;fe((function(){at((function(){var e,n;try{for(var r=E(t._data.values()),i=r.next();!i.done;i=r.next()){var o=i.value;t.delete(o)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}}))}))},t.prototype.forEach=function(t,e){var n,r;try{for(var i=E(this),o=i.next();!o.done;o=i.next()){var s=o.value;t.call(e,s,s,this)}}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},Object.defineProperty(t.prototype,"size",{get:function(){return this._atom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),t.prototype.add=function(t){var e=this;if((it(this._atom),ye(this))&&!(r=be(this,{type:"add",object:this,newValue:t})))return this;if(!this.has(t)){fe((function(){e._data.add(e.enhancer(t,void 0)),e._atom.reportChanged()}));var n=_e(this),r=n?{type:"add",object:this,newValue:t}:null;0,n&&xe(this,r)}return this},t.prototype.delete=function(t){var e=this;if(ye(this)&&!(r=be(this,{type:"delete",object:this,oldValue:t})))return!1;if(this.has(t)){var n=_e(this),r=n?{type:"delete",object:this,oldValue:t}:null;return fe((function(){e._atom.reportChanged(),e._data.delete(t)})),n&&xe(this,r),!0}return!1},t.prototype.has=function(t){return this._atom.reportObserved(),this._data.has(this.dehanceValue(t))},t.prototype.entries=function(){var t=0,e=Array.from(this.keys()),n=Array.from(this.values());return Xe({next:function(){var r=t;return t+=1,r<n.length?{value:[e[r],n[r]],done:!1}:{done:!0}}})},t.prototype.keys=function(){return this.values()},t.prototype.values=function(){this._atom.reportObserved();var t=this,e=0,n=Array.from(this._data.values());return Xe({next:function(){return e<n.length?{value:t.dehanceValue(n[e++]),done:!1}:{done:!0}}})},t.prototype.replace=function(t){var e=this;return Re(t)&&(t=t.toJS()),fe((function(){Array.isArray(t)||v(t)?(e.clear(),t.forEach((function(t){return e.add(t)}))):null!=t&&a("Cannot initialize set from "+t)})),this},t.prototype.observe=function(t,e){return we(this,t)},t.prototype.intercept=function(t){return ge(this,t)},t.prototype.toJS=function(){return new Set(this)},t.prototype.toString=function(){return this.name+"[ "+Array.from(this).join(", ")+" ]"},t.prototype[(Pe=w,Symbol.iterator)]=function(){return this.values()},t}(),Re=d("ObservableSet",Ne),Fe=function(){function t(t,e,n,r){void 0===e&&(e=new Map),this.target=t,this.values=e,this.name=n,this.defaultEnhancer=r,this.keysAtom=new x(n+".keys")}return t.prototype.read=function(t){return this.values.get(t).get()},t.prototype.write=function(t,e){var n=this.target,r=this.values.get(t);if(r instanceof xt)r.set(e);else{if(ye(this)){if(!(o=be(this,{type:"update",object:this.proxy||n,name:t,newValue:e})))return;e=o.newValue}if((e=r.prepareNewValue(e))!==At.UNCHANGED){var i=_e(this),o=i?{type:"update",object:this.proxy||n,oldValue:r.value,name:t,newValue:e}:null;0,r.setNewValue(e),i&&xe(this,o)}}},t.prototype.has=function(t){var e=this.pendingKeys||(this.pendingKeys=new Map),n=e.get(t);if(n)return n.get();var r=!!this.values.get(t);return n=new wt(r,z,this.name+"."+g(t)+"?",!1),e.set(t,n),n.get()},t.prototype.addObservableProp=function(t,e,n){void 0===n&&(n=this.defaultEnhancer);var r=this.target;if(ye(this)){var i=be(this,{object:this.proxy||r,name:t,type:"add",newValue:e});if(!i)return;e=i.newValue}var o=new wt(e,n,this.name+"."+g(t),!1);this.values.set(t,o),e=o.value,Object.defineProperty(r,t,function(t){return Ve[t]||(Ve[t]={configurable:!0,enumerable:!0,get:function(){return this[w].read(t)},set:function(e){this[w].write(t,e)}})}(t)),this.notifyPropertyAddition(t,e)},t.prototype.addComputedProp=function(t,e,n){var r,i,o,s=this.target;n.name=n.name||this.name+"."+g(e),this.values.set(e,new xt(n)),(t===s||(r=t,i=e,!(o=Object.getOwnPropertyDescriptor(r,i))||!1!==o.configurable&&!1!==o.writable))&&Object.defineProperty(t,e,function(t){return ze[t]||(ze[t]={configurable:At.computedConfigurable,enumerable:!1,get:function(){return Be(this).read(t)},set:function(e){Be(this).write(t,e)}})}(e))},t.prototype.remove=function(t){if(this.values.has(t)){var e=this.target;if(ye(this))if(!(s=be(this,{object:this.proxy||e,name:t,type:"remove"})))return;try{Mt();var n=_e(this),r=this.values.get(t),i=r&&r.get();if(r&&r.set(void 0),this.keysAtom.reportChanged(),this.values.delete(t),this.pendingKeys){var o=this.pendingKeys.get(t);o&&o.set(!1)}delete this.target[t];var s=n?{type:"remove",object:this.proxy||e,oldValue:i,name:t}:null;0,n&&xe(this,s)}finally{Dt()}}},t.prototype.illegalAccess=function(t,e){console.warn("Property '"+e+"' of '"+t+"' was accessed through the prototype chain. Use 'decorate' instead to declare the prop or access it statically through it's owner")},t.prototype.observe=function(t,e){return we(this,t)},t.prototype.intercept=function(t){return ge(this,t)},t.prototype.notifyPropertyAddition=function(t,e){var n=_e(this),r=n?{type:"add",object:this.proxy||this.target,name:t,newValue:e}:null;if(n&&xe(this,r),this.pendingKeys){var i=this.pendingKeys.get(t);i&&i.set(!0)}this.keysAtom.reportChanged()},t.prototype.getKeys=function(){var t,e;this.keysAtom.reportObserved();var n=[];try{for(var r=E(this.values),i=r.next();!i.done;i=r.next()){var o=A(i.value,2),s=o[0];o[1]instanceof wt&&n.push(s)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}return n},t}();function Le(t,e,n){if(void 0===e&&(e=""),void 0===n&&(n=V),Object.prototype.hasOwnProperty.call(t,w))return t[w];f(t)||(e=(t.constructor.name||"ObservableObject")+"@"+s()),e||(e="ObservableObject@"+s());var r=new Fe(t,new Map,g(e),n);return p(t,w,r),r}var Ve=Object.create(null),ze=Object.create(null);function Be(t){var e=t[w];return e||(R(t),t[w])}var qe=d("ObservableObjectAdministration",Fe);function Ue(t){return!!h(t)&&(R(t),qe(t[w]))}function We(t,e){if("object"==typeof t&&null!==t){if(Ae(t))return void 0!==e&&a(!1),t[w].atom;if(Re(t))return t[w];if(Me(t)){var n=t;return void 0===e?n._keysAtom:((r=n._data.get(e)||n._hasMap.get(e))||a(!1),r)}var r;if(R(t),e&&!t[w]&&t[e],Ue(t))return e?((r=t[w].values.get(e))||a(!1),r):a(!1);if(O(t)||Ot(t)||Bt(t))return t}else if("function"==typeof t&&Bt(t[w]))return t[w];return a(!1)}function $e(t,e){return t||a("Expecting some object"),void 0!==e?$e(We(t,e)):O(t)||Ot(t)||Bt(t)||Me(t)||Re(t)?t:(R(t),t[w]?t[w]:void a(!1))}var He=Object.prototype.toString;function Ke(t,e,n){return void 0===n&&(n=-1),function t(e,n,r,i,o){if(e===n)return 0!==e||1/e==1/n;if(null==e||null==n)return!1;if(e!=e)return n!=n;var s=typeof e;if("function"!==s&&"object"!==s&&"object"!=typeof n)return!1;var a=He.call(e);if(a!==He.call(n))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e==""+n;case"[object Number]":return+e!=+e?+n!=+n:0==+e?1/+e==1/n:+e==+n;case"[object Date]":case"[object Boolean]":return+e==+n;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(n);case"[object Map]":case"[object Set]":r>=0&&r++}e=Ge(e),n=Ge(n);var u="[object Array]"===a;if(!u){if("object"!=typeof e||"object"!=typeof n)return!1;var c=e.constructor,l=n.constructor;if(c!==l&&!("function"==typeof c&&c instanceof c&&"function"==typeof l&&l instanceof l)&&"constructor"in e&&"constructor"in n)return!1}if(0===r)return!1;r<0&&(r=-1);o=o||[];var h=(i=i||[]).length;for(;h--;)if(i[h]===e)return o[h]===n;if(i.push(e),o.push(n),u){if((h=e.length)!==n.length)return!1;for(;h--;)if(!t(e[h],n[h],r-1,i,o))return!1}else{var f=Object.keys(e),p=void 0;if(h=f.length,Object.keys(n).length!==h)return!1;for(;h--;)if(p=f[h],!Ye(n,p)||!t(e[p],n[p],r-1,i,o))return!1}return i.pop(),o.pop(),!0}(t,e,n)}function Ge(t){return Ae(t)?t.slice():m(t)||Me(t)||v(t)||Re(t)?Array.from(t.entries()):t}function Ye(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Xe(t){return t[Symbol.iterator]=Je,t}function Je(){return this}if("undefined"==typeof Proxy||"undefined"==typeof Symbol)throw new Error("[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.");"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Ut,extras:{getDebugName:function(t,e){return(void 0!==e?We(t,e):Ue(t)||Me(t)||Re(t)?$e(t):We(t)).name}},$mobx:w})}).call(this,n(207),n(123))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(7);const i=(t,e)=>{Object(r.a)(t,e,"channelCount"),Object(r.a)(t,e,"channelCountMode"),Object(r.a)(t,e,"channelInterpretation")}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));const r=-34028234663852886e22,i=-r},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>t.context===e},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n)=>{const r=e[n];void 0!==r&&r!==t[n]&&(t[n]=r)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n)=>{const r=e[n];void 0!==r&&r!==t[n].value&&(t[n].value=r)}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(12);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(2),i=n(23);const o=t=>Object(i.a)(r.c,t)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>{try{return new DOMException("","InvalidStateError")}catch(t){return t.code=11,t.name="InvalidStateError",t}}},function(t,e,n){var r=n(110)("wks"),i=n(66),o=n(9).Symbol,s="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=s&&o[t]||(s?o:i)("Symbol."+t))}).store=r},function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}n.d(e,"a",(function(){return r}))},function(t,e,n){var r=n(45),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return x})),n.d(e,"b",(function(){return k})),n.d(e,"c",(function(){return y})),n.d(e,"d",(function(){return I})),n.d(e,"e",(function(){return v})),n.d(e,"f",(function(){return S})),n.d(e,"g",(function(){return M}));var r=n(27),i=n(0),o=n.n(i),s=(n(76),n(37)),a=n(163),u=n(31),c=n(16),l=n(164),h=n.n(l),f=(n(206),n(50)),p=n(125),d=n.n(p),m=function(t){var e=Object(a.a)();return e.displayName=t,e}("Router-History"),v=function(t){var e=Object(a.a)();return e.displayName=t,e}("Router"),y=function(t){function e(e){var n;return(n=t.call(this,e)||this).state={location:e.history.location},n._isMounted=!1,n._pendingLocation=null,e.staticContext||(n.unlisten=e.history.listen((function(t){n._isMounted?n.setState({location:t}):n._pendingLocation=t}))),n}Object(r.a)(e,t),e.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}};var n=e.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return o.a.createElement(v.Provider,{value:{history:this.props.history,location:this.state.location,match:e.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.a.createElement(m.Provider,{children:this.props.children||null,value:this.props.history}))},e}(o.a.Component);o.a.Component;var g=function(t){function e(){return t.apply(this,arguments)||this}Object(r.a)(e,t);var n=e.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(t){this.props.onUpdate&&this.props.onUpdate.call(this,this,t)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},e}(o.a.Component);var b={},_=0;function w(t,e){return void 0===t&&(t="/"),void 0===e&&(e={}),"/"===t?t:function(t){if(b[t])return b[t];var e=h.a.compile(t);return _<1e4&&(b[t]=e,_++),e}(t)(e,{pretty:!0})}function x(t){var e=t.computedMatch,n=t.to,r=t.push,i=void 0!==r&&r;return o.a.createElement(v.Consumer,null,(function(t){t||Object(u.a)(!1);var r=t.history,a=t.staticContext,l=i?r.push:r.replace,h=Object(s.c)(e?"string"==typeof n?w(n,e.params):Object(c.a)({},n,{pathname:w(n.pathname,e.params)}):n);return a?(l(h),null):o.a.createElement(g,{onMount:function(){l(h)},onUpdate:function(t,e){var n=Object(s.c)(e.to);Object(s.f)(n,Object(c.a)({},h,{key:n.key}))||l(h)},to:n})}))}var O={},T=0;function S(t,e){void 0===e&&(e={}),("string"==typeof e||Array.isArray(e))&&(e={path:e});var n=e,r=n.path,i=n.exact,o=void 0!==i&&i,s=n.strict,a=void 0!==s&&s,u=n.sensitive,c=void 0!==u&&u;return[].concat(r).reduce((function(e,n){if(!n&&""!==n)return null;if(e)return e;var r=function(t,e){var n=""+e.end+e.strict+e.sensitive,r=O[n]||(O[n]={});if(r[t])return r[t];var i=[],o={regexp:h()(t,i,e),keys:i};return T<1e4&&(r[t]=o,T++),o}(n,{end:o,strict:a,sensitive:c}),i=r.regexp,s=r.keys,u=i.exec(t);if(!u)return null;var l=u[0],f=u.slice(1),p=t===l;return o&&!p?null:{path:n,url:"/"===n&&""===l?"/":l,isExact:p,params:s.reduce((function(t,e,n){return t[e.name]=f[n],t}),{})}}),null)}var k=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e.prototype.render=function(){var t=this;return o.a.createElement(v.Consumer,null,(function(e){e||Object(u.a)(!1);var n=t.props.location||e.location,r=t.props.computedMatch?t.props.computedMatch:t.props.path?S(n.pathname,t.props):e.match,i=Object(c.a)({},e,{location:n,match:r}),s=t.props,a=s.children,l=s.component,h=s.render;return Array.isArray(a)&&0===a.length&&(a=null),o.a.createElement(v.Provider,{value:i},i.match?a?"function"==typeof a?a(i):a:l?o.a.createElement(l,i):h?h(i):null:"function"==typeof a?a(i):null)}))},e}(o.a.Component);function C(t){return"/"===t.charAt(0)?t:"/"+t}function E(t,e){if(!t)return e;var n=C(t);return 0!==e.pathname.indexOf(n)?e:Object(c.a)({},e,{pathname:e.pathname.substr(n.length)})}function A(t){return"string"==typeof t?t:Object(s.e)(t)}function P(t){return function(){Object(u.a)(!1)}}function j(){}o.a.Component;var I=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e.prototype.render=function(){var t=this;return o.a.createElement(v.Consumer,null,(function(e){e||Object(u.a)(!1);var n,r,i=t.props.location||e.location;return o.a.Children.forEach(t.props.children,(function(t){if(null==r&&o.a.isValidElement(t)){n=t;var s=t.props.path||t.props.from;r=s?S(i.pathname,Object(c.a)({},t.props,{path:s})):e.match}})),r?o.a.cloneElement(n,{location:i,computedMatch:r}):null}))},e}(o.a.Component);function M(t){var e="withRouter("+(t.displayName||t.name)+")",n=function(e){var n=e.wrappedComponentRef,r=Object(f.a)(e,["wrappedComponentRef"]);return o.a.createElement(v.Consumer,null,(function(e){return e||Object(u.a)(!1),o.a.createElement(t,Object(c.a)({},r,e,{ref:n}))}))};return n.displayName=e,n.WrappedComponent=t,d()(n,t)}o.a.useContext},function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(2),i=n(23);const o=t=>Object(i.a)(r.b,t)},function(t,e,n){t.exports=!n(10)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(11),i=n(172),o=n(58),s=Object.defineProperty;e.f=n(21)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>{const n=t.get(e);if(void 0===n)throw new Error("A value with the given key could not be found.");return n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>{try{return new DOMException("","NotSupportedError")}catch(t){return t.code=9,t.name="NotSupportedError",t}}},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return w})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return b}));var r=n(3),i=n(0),o=n.n(i);if(!i.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!r.p)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");var s=!1;function a(){return s}function u(){return(u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function c(){var t=Object(i.useState)(0)[1];return Object(i.useCallback)((function(){t((function(t){return t+1}))}),[])}function l(t){return Object(r.i)(t)}var h,f=1e4,p=new Set;function d(){void 0===h&&(h=setTimeout(m,1e4))}function m(){h=void 0;var t=Date.now();p.forEach((function(e){var n=e.current;n&&t>=n.cleanAt&&(n.reaction.dispose(),e.current=null,p.delete(e))})),p.size>0&&d()}var v={};function y(t){return"observer"+t}function g(t,e,n){if(void 0===e&&(e="observed"),void 0===n&&(n=v),a())return t();var i,s=(n.useForceUpdate||c)(),u=o.a.useRef(null);if(!u.current){var h=new r.b(y(e),(function(){m.mounted?s():(h.dispose(),u.current=null)})),m=function(t){return{cleanAt:Date.now()+f,reaction:t}}(h);u.current=m,i=u,p.add(i),d()}var g,b,_=u.current.reaction;if(o.a.useDebugValue(_,l),o.a.useEffect((function(){var t;return t=u,p.delete(t),u.current?u.current.mounted=!0:(u.current={reaction:new r.b(y(e),(function(){s()})),cleanAt:1/0},s()),function(){u.current.reaction.dispose(),u.current=null}}),[]),_.track((function(){try{g=t()}catch(t){b=t}})),b)throw b;return g}function b(t,e){if(a())return t;var n,r,o,s=u({forwardRef:!1},e),c=t.displayName||t.name,l=function(e,n){return g((function(){return t(e,n)}),c)};return l.displayName=c,n=s.forwardRef?Object(i.memo)(Object(i.forwardRef)(l)):Object(i.memo)(l),r=t,o=n,Object.keys(r).forEach((function(t){_[t]||Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(r,t))})),n.displayName=c,n}var _={$$typeof:!0,render:!0,compare:!0,type:!0};function w(t){var e=t.children,n=t.render,r=e||n;return"function"!=typeof r?null:g(r)}function x(t,e,n,r,i){var o="children"===e?"render":"children",s="function"==typeof t[e],a="function"==typeof t[o];return s&&a?new Error("MobX Observer: Do not use children and render in the same time in`"+n):s||a?null:new Error("Invalid prop `"+i+"` of type `"+typeof t[e]+"` supplied to `"+n+"`, expected `function`.")}w.propTypes={children:x,render:x},w.displayName="Observer"}).call(this,n(123))},function(t,e,n){var r=n(54);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>(t.connect=e.connect.bind(e),t.disconnect=e.disconnect.bind(e),t)},function(t,e,n){var r=n(9),i=n(33),o=n(32),s=n(66)("src"),a=n(849),u=(""+a).split("toString");n(19).inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(c&&(o(n,s)||i(n,s,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:a?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[s]||a.call(this)}))},function(t,e,n){var r=n(1),i=n(10),o=n(54),s=/"/g,a=function(t,e,n,r){var i=String(o(t)),a="<"+e;return""!==n&&(a+=" "+n+'="'+String(r).replace(s,"&quot;")+'"'),a+">"+i+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(a),r(r.P+r.F*i((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",n)}},function(t,e,n){"use strict";e.a=function(t,e){if(!t)throw new Error("Invariant failed")}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(22),i=n(65);t.exports=n(21)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(103),i=n(54);t.exports=function(t){return r(i(t))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>"inputs"in t},function(t,e,n){"use strict";n.d(e,"AudioContext",(function(){return li})),n.d(e,"AudioWorkletNode",(function(){return _i})),n.d(e,"OfflineAudioContext",(function(){return Oi})),n.d(e,"isAnyAudioContext",(function(){return Ti})),n.d(e,"isAnyAudioNode",(function(){return Si})),n.d(e,"isAnyAudioParam",(function(){return ki})),n.d(e,"isAnyOfflineAudioContext",(function(){return Ci}));var r=n(51),i=n(680),o=n(681),s=n(682),a=n(832),u=n(683),c=n(684),l=n(685),h=n(686),f=n(687),p=n(688),d=n(689),m=n(690),v=n(691),y=n(692),g=n(693),b=n(829),_=n(694),w=n(695),x=n(696),O=n(835),T=n(697),S=n(698),k=n(699),C=n(700),E=n(701),A=n(702),P=n(703),j=n(704),I=n(705),M=n(706),D=n(707),N=n(708),R=n(709),F=n(710),L=n(711),V=n(712),z=n(713),B=n(714),q=n(836),U=n(715),W=n(716),$=n(717),H=n(718),K=n(837),G=n(719),Y=n(720),X=n(721),J=n(722),Q=n(723),Z=n(724),tt=n(725),et=n(726),nt=n(727),rt=n(728),it=n(729),ot=n(730),st=n(731),at=n(732),ut=n(733),ct=n(838),lt=n(734),ht=n(735),ft=n(41),pt=n(100),dt=n(14),mt=n(736),vt=n(737),yt=n(738),gt=n(739),bt=n(740),_t=n(741),wt=n(742),xt=n(743),Ot=n(744),Tt=n(745),St=(n(746),n(747)),kt=n(748),Ct=n(749),Et=n(750),At=n(751),Pt=n(752),jt=n(753),It=n(754),Mt=n(833),Dt=n(755),Nt=n(834),Rt=n(756),Ft=n(757),Lt=n(758),Vt=n(759),zt=n(839),Bt=n(830),qt=n(760),Ut=n(761),Wt=n(840),$t=n(762),Ht=n(763),Kt=n(764),Gt=n(765),Yt=n(766),Xt=n(767),Jt=n(768),Qt=n(769),Zt=n(770),te=n(771),ee=n(772),ne=n(773),re=n(774),ie=n(775),oe=n(776),se=n(777),ae=n(778),ue=n(779),ce=n(780),le=n(781),he=n(782),fe=n(783),pe=n(784),de=n(24),me=n(785),ve=n(786),ye=n(787),ge=n(788),be=n(789),_e=n(790),we=n(791),xe=n(792),Oe=n(793),Te=n(794),Se=n(795),ke=n(796),Ce=n(797),Ee=n(798),Ae=(n(799),n(800)),Pe=n(801),je=n(802),Ie=n(803),Me=(n(804),n(805),n(806),n(807),n(808)),De=n(809),Ne=n(810),Re=(n(811),n(812),n(813),n(814),n(815),n(816),n(817)),Fe=(n(818),n(165)),Le=n(819),Ve=n(820),ze=n(821),Be=n(822),qe=n(823),Ue=n(824),We=n(825),$e=n(826),He=n(2),Ke=n(96),Ge=n(97),Ye=n(20),Xe=n(79),Je=n(13),Qe=n(80),Ze=n(23),tn=n(42),en=n(62),nn=n(166),rn=n(52),on=n(107),sn=n(95),an=n(39),un=(n(827),n(828)),cn=n(81);n(208),n(292);const ln=Object(C.a)(new Map,new WeakMap),hn=Object(ze.a)(),fn=Object(ie.a)(hn),pn=Object(Ot.a)(fn),dn=Object(Rt.a)(hn),mn=Object(st.a)(pn,dn,fn),vn=Object(Lt.a)(mn),yn=Object(Mt.a)(ln,ft.a,vn),gn=Object(it.a)(Ye.a),bn=Object(xe.a)(Ye.a,gn,rn.a),_n=Object(h.a)(yn,Je.a,bn),wn=new WeakMap,xn=Object(at.a)(He.g),On=new WeakMap,Tn=Object(Z.a)(cn.a),Sn=Object(bt.a)(dn),kn=Object(_t.a)(hn),Cn=Object(wt.a)(hn),En=Object(b.a)(Object(o.a)(He.b),wn,ln,Object(ht.a)(He.h,Ge.a,Ye.a,Je.a,Qe.a,en.a),ft.a,pt.a,de.a,Object(U.a)(Ke.a,He.h,Ye.a,Je.a,Qe.a,xn,en.a,pn),Object(K.a)(On,Ye.a,Ze.a),Tn,xn,Sn,kn,Cn,pn),An=Object(l.a)(En,_n,ft.a,yn,xn,pn),Pn=new WeakSet,jn=Object(Dt.a)(hn),In=Object(F.a)(new Uint32Array(1)),Mn=Object(Be.a)(In,ft.a),Dn=Object(qe.a)(In),Nn=Object(f.a)(Pn,ln,de.a,jn,fn,Object(Ee.a)(jn),Mn,Dn),Rn=Object(Jt.a)(vn),Fn=Object(u.a)(Rn),Ln=Object(Me.a)(vn),Vn=Object(De.a)(vn),zn=Object(Ne.a)(vn),Bn=Object(We.a)(vn),qn=Object(Oe.a)(gn,Xe.a,rn.a),Un=Object(I.a)(qn),Wn=Object(Nt.a)(Fn,ln,vn,Object(Ae.a)(vn),Object(Pe.a)(fn),Object(je.a)(vn),Object(Ie.a)(vn),Ln,Vn,zn,un.a,Object(Ue.a)(on.a),Bn),$n=Object(we.a)(Object(ot.a)(Xe.a),qn),Hn=Object(d.a)(Un,Wn,Je.a,$n,bn),Kn=Object(_.a)(Object(s.a)(He.d),On,He.e,w.a,r.createCancelAndHoldAutomationEvent,r.createCancelScheduledValuesAutomationEvent,r.createExponentialRampToValueAutomationEvent,r.createLinearRampToValueAutomationEvent,r.createSetTargetAutomationEvent,r.createSetValueAutomationEvent,r.createSetValueCurveAutomationEvent,dn),Gn=Object(p.a)(En,Hn,Kn,dt.a,Wn,xn,pn,cn.a),Yn=Object(v.a)(En,y.a,ft.a,dt.a,Object(Ft.a)(Rn,on.a),xn,pn,bn),Xn=Object(qt.a)(vn),Jn=Object(k.a)(Un,Xn,Je.a,$n,bn),Qn=Object(S.a)(En,Kn,Jn,pt.a,Xn,xn,pn),Zn=Object(It.a)(tn.a,kn),tr=Object($e.a)(dt.a,vn,Zn),er=Object(Ut.a)(vn,tr),nr=Object(A.a)(er,Je.a,bn),rr=Object(E.a)(En,nr,er,xn,pn),ir=Object(Wt.a)(vn),or=Object(j.a)(ir,Je.a,bn),sr=Object(P.a)(En,or,ir,xn,pn),ar=Object(Ht.a)(Fn,Wn,Rn,Zn),ur=Object($t.a)(Fn,ln,vn,ar,Ln,zn),cr=Object(R.a)(Un,ur,Je.a,$n,bn),lr=Object(N.a)(En,Kn,cr,ur,xn,pn,cn.a),hr=Object(Gt.a)(vn,Rn,Zn),fr=Object(Kt.a)(vn,hr,de.a,on.a),pr=Object(V.a)(fr,Je.a,bn),dr=Object(L.a)(En,pr,fr,xn,pn),mr=Object(Yt.a)(vn),vr=Object($.a)(Un,mr,Je.a,$n,bn),yr=Object(W.a)(En,Kn,vr,mr,xn,pn),gr=Object(Xt.a)(vn,de.a),br=Object(X.a)(Un,gr,Je.a,$n,bn),_r=Object(Y.a)(En,Kn,br,gr,de.a,xn,pn),wr=Object(rt.a)(Un,Rn,Je.a,$n,bn),xr=Object(nt.a)(En,Kn,wr,Rn,xn,pn),Or=Object(ce.a)(vn),Tr=Object(Zt.a)(pt.a,dt.a,Or,de.a),Sr=Object(Te.a)(ln,Rn,Or,Object(Re.a)(Rn,fn)),kr=Object(lt.a)(Wn,vn,Je.a,fn,bn,Sr),Cr=Object(Qt.a)(vn,Tr),Er=Object(ct.a)(En,Cr,kr,xn,pn),Ar=Object(g.a)(Kn,er,ur,Or,pn),Pr=new WeakMap,jr=Object(Pt.a)(Yn,Ar,Tn,pn,Pr,cn.a),Ir=Object(oe.a)(Fn,ln,vn,Ln,Vn,zn,Bn),Mr=Object(ye.a)(Un,Ir,Je.a,$n,bn),Dr=Object(ve.a)(En,Kn,dt.a,Ir,Mr,xn,pn,cn.a),Nr=Object(D.a)(Wn),Rr=Object(pe.a)(Nr,dt.a,vn,Rn,nn.a,Zn),Fr=Object(fe.a)(Nr,dt.a,vn,Rr,nn.a,Zn,on.a),Lr=Object(ae.a)(Ke.a,dt.a,vn,er,Rn,Or,Fr,de.a,Ge.a,Zn),Vr=Object(se.a)(vn,Lr),zr=Object(be.a)(Un,er,ur,Rn,Vr,Je.a,fn,$n,bn,Sr),Br=Object(ge.a)(En,Kn,Vr,zr,xn,pn),qr=Object(ue.a)(mn),Ur=Object(_e.a)(qr,xn,new WeakSet),Wr=Object(he.a)(er,ir,Rn,Fr,de.a,Zn),$r=Object(le.a)(vn,Wr,de.a),Hr=Object(Ce.a)(Un,$r,Je.a,$n,bn),Kr=Object(ke.a)(En,Kn,$r,Hr,xn,pn),Gr=Object(Ve.a)(Fr,Je.a,bn),Yr=Object(Le.a)(En,dt.a,Fr,Gr,xn,pn),Xr=Object(Tt.a)(hn),Jr=Object(tt.a)(hn),Qr=Xr?Object(a.a)(de.a,Object(Q.a)(hn),Jr,Object(et.a)(i.a),mn,xn,new WeakMap,new WeakMap,hn):void 0,Zr=Object(xt.a)(Sn,pn),ti=Object(q.a)(Pn,ln,B.a,J.a,new WeakSet,xn,Zr,pn,fn,sn.a,an.a,Mn,Dn),ei=Object(T.a)(Qr,An,Nn,Gn,Qn,rr,sr,lr,dr,ti,yr,_r,xr,Er,jr,Dr,Br,Ur,Kr,Yr),ni=Object(te.a)(vn),ri=Object(St.a)(En,ni,xn,pn),ii=Object(ee.a)(vn,de.a),oi=Object(kt.a)(En,ii,xn,pn),si=Object(ne.a)(vn),ai=Object(Ct.a)(En,si,xn,pn),ui=Object(re.a)(dt.a,vn,pn),ci=Object(Et.a)(En,ui,xn),li=Object(m.a)(ei,dt.a,de.a,Fe.a,ri,oi,ai,ci,dn),hi=Object(ut.a)(Pr),fi=Object(c.a)(hi),pi=Object(M.a)(ft.a),di=Object(H.a)(hi),mi=Object(G.a)(ft.a),vi=Object(Bt.a)(wn,pi,ft.a,dt.a,er,ir,ur,Rn,Or,de.a,mi,Jr,Zn),yi=Object(zt.a)(dt.a,vn,vi,Rn,de.a,Zn),gi=Object(Vt.a)(hn),bi=Object(O.a)(Un,pi,Wn,er,ir,ur,Rn,di,mi,Jr,Je.a,gi,fn,$n,bn,Sr),_i=Xr?Object(x.a)(fi,En,Kn,bi,yi,xn,pn,gi,cn.a):void 0,wi=(Object(At.a)(dt.a,de.a,Fe.a,jr,dn),Object(z.a)(de.a,fn)),xi=Object(Se.a)(Pn,ln,gn,hi,Sr,sn.a,Mn,Dn),Oi=(Object(jt.a)(ln,dt.a,wi,jr,xi),Object(me.a)(ei,ln,dt.a,wi,xi)),Ti=Object(mt.a)(He.g,Sn),Si=Object(vt.a)(He.c,kn),ki=Object(yt.a)(He.e,Cn),Ci=Object(gt.a)(He.g,pn)},function(t,e,n){"use strict";n.d(e,"a",(function(){return w})),n.d(e,"b",(function(){return k})),n.d(e,"d",(function(){return E})),n.d(e,"c",(function(){return m})),n.d(e,"f",(function(){return v})),n.d(e,"e",(function(){return d}));var r=n(16);function i(t){return"/"===t.charAt(0)}function o(t,e){for(var n=e,r=n+1,i=t.length;r<i;n+=1,r+=1)t[n]=t[r];t.pop()}var s=function(t,e){void 0===e&&(e="");var n,r=t&&t.split("/")||[],s=e&&e.split("/")||[],a=t&&i(t),u=e&&i(e),c=a||u;if(t&&i(t)?s=r:r.length&&(s.pop(),s=s.concat(r)),!s.length)return"/";if(s.length){var l=s[s.length-1];n="."===l||".."===l||""===l}else n=!1;for(var h=0,f=s.length;f>=0;f--){var p=s[f];"."===p?o(s,f):".."===p?(o(s,f),h++):h&&(o(s,f),h--)}if(!c)for(;h--;h)s.unshift("..");!c||""===s[0]||s[0]&&i(s[0])||s.unshift("");var d=s.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};function a(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}var u=function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every((function(e,r){return t(e,n[r])}));if("object"==typeof e||"object"==typeof n){var r=a(e),i=a(n);return r!==e||i!==n?t(r,i):Object.keys(Object.assign({},e,n)).every((function(r){return t(e[r],n[r])}))}return!1},c=n(31);function l(t){return"/"===t.charAt(0)?t:"/"+t}function h(t){return"/"===t.charAt(0)?t.substr(1):t}function f(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function p(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function d(t){var e=t.pathname,n=t.search,r=t.hash,i=e||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function m(t,e,n,i){var o;"string"==typeof t?(o=function(t){var e=t||"/",n="",r="",i=e.indexOf("#");-1!==i&&(r=e.substr(i),e=e.substr(0,i));var o=e.indexOf("?");return-1!==o&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t)).state=e:(void 0===(o=Object(r.a)({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==e&&void 0===o.state&&(o.state=e));try{o.pathname=decodeURI(o.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=s(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function v(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&u(t.state,e.state)}function y(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,i){if(null!=t){var o="function"==typeof t?t(e,n):t;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(t){var n=!0;function r(){n&&t.apply(void 0,arguments)}return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.forEach((function(t){return t.apply(void 0,n)}))}}}var g=!("undefined"==typeof window||!window.document||!window.document.createElement);function b(t,e){e(window.confirm(t))}function _(){try{return window.history.state||{}}catch(t){return{}}}function w(t){void 0===t&&(t={}),g||Object(c.a)(!1);var e,n=window.history,i=(-1===(e=window.navigator.userAgent).indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),s=t,a=s.forceRefresh,u=void 0!==a&&a,h=s.getUserConfirmation,v=void 0===h?b:h,w=s.keyLength,x=void 0===w?6:w,O=t.basename?p(l(t.basename)):"";function T(t){var e=t||{},n=e.key,r=e.state,i=window.location,o=i.pathname+i.search+i.hash;return O&&(o=f(o,O)),m(o,r,n)}function S(){return Math.random().toString(36).substr(2,x)}var k=y();function C(t){Object(r.a)(V,t),V.length=n.length,k.notifyListeners(V.location,V.action)}function E(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||j(T(t.state))}function A(){j(T(_()))}var P=!1;function j(t){if(P)P=!1,C();else{k.confirmTransitionTo(t,"POP",v,(function(e){e?C({action:"POP",location:t}):function(t){var e=V.location,n=M.indexOf(e.key);-1===n&&(n=0);var r=M.indexOf(t.key);-1===r&&(r=0);var i=n-r;i&&(P=!0,N(i))}(t)}))}}var I=T(_()),M=[I.key];function D(t){return O+d(t)}function N(t){n.go(t)}var R=0;function F(t){1===(R+=t)&&1===t?(window.addEventListener("popstate",E),o&&window.addEventListener("hashchange",A)):0===R&&(window.removeEventListener("popstate",E),o&&window.removeEventListener("hashchange",A))}var L=!1;var V={length:n.length,action:"POP",location:I,createHref:D,push:function(t,e){var r=m(t,e,S(),V.location);k.confirmTransitionTo(r,"PUSH",v,(function(t){if(t){var e=D(r),o=r.key,s=r.state;if(i)if(n.pushState({key:o,state:s},null,e),u)window.location.href=e;else{var a=M.indexOf(V.location.key),c=M.slice(0,a+1);c.push(r.key),M=c,C({action:"PUSH",location:r})}else window.location.href=e}}))},replace:function(t,e){var r=m(t,e,S(),V.location);k.confirmTransitionTo(r,"REPLACE",v,(function(t){if(t){var e=D(r),o=r.key,s=r.state;if(i)if(n.replaceState({key:o,state:s},null,e),u)window.location.replace(e);else{var a=M.indexOf(V.location.key);-1!==a&&(M[a]=r.key),C({action:"REPLACE",location:r})}else window.location.replace(e)}}))},go:N,goBack:function(){N(-1)},goForward:function(){N(1)},block:function(t){void 0===t&&(t=!1);var e=k.setPrompt(t);return L||(F(1),L=!0),function(){return L&&(L=!1,F(-1)),e()}},listen:function(t){var e=k.appendListener(t);return F(1),function(){F(-1),e()}}};return V}var x={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+h(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:h,decodePath:l},slash:{encodePath:l,decodePath:l}};function O(t){var e=t.indexOf("#");return-1===e?t:t.slice(0,e)}function T(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.substring(e+1)}function S(t){window.location.replace(O(window.location.href)+"#"+t)}function k(t){void 0===t&&(t={}),g||Object(c.a)(!1);var e=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),t),i=n.getUserConfirmation,o=void 0===i?b:i,s=n.hashType,a=void 0===s?"slash":s,u=t.basename?p(l(t.basename)):"",h=x[a],v=h.encodePath,_=h.decodePath;function w(){var t=_(T());return u&&(t=f(t,u)),m(t)}var k=y();function C(t){Object(r.a)(V,t),V.length=e.length,k.notifyListeners(V.location,V.action)}var E=!1,A=null;function P(){var t,e,n=T(),r=v(n);if(n!==r)S(r);else{var i=w(),s=V.location;if(!E&&(e=i,(t=s).pathname===e.pathname&&t.search===e.search&&t.hash===e.hash))return;if(A===d(i))return;A=null,function(t){if(E)E=!1,C();else{k.confirmTransitionTo(t,"POP",o,(function(e){e?C({action:"POP",location:t}):function(t){var e=V.location,n=D.lastIndexOf(d(e));-1===n&&(n=0);var r=D.lastIndexOf(d(t));-1===r&&(r=0);var i=n-r;i&&(E=!0,N(i))}(t)}))}}(i)}}var j=T(),I=v(j);j!==I&&S(I);var M=w(),D=[d(M)];function N(t){e.go(t)}var R=0;function F(t){1===(R+=t)&&1===t?window.addEventListener("hashchange",P):0===R&&window.removeEventListener("hashchange",P)}var L=!1;var V={length:e.length,action:"POP",location:M,createHref:function(t){var e=document.querySelector("base"),n="";return e&&e.getAttribute("href")&&(n=O(window.location.href)),n+"#"+v(u+d(t))},push:function(t,e){var n=m(t,void 0,void 0,V.location);k.confirmTransitionTo(n,"PUSH",o,(function(t){if(t){var e=d(n),r=v(u+e);if(T()!==r){A=e,function(t){window.location.hash=t}(r);var i=D.lastIndexOf(d(V.location)),o=D.slice(0,i+1);o.push(e),D=o,C({action:"PUSH",location:n})}else C()}}))},replace:function(t,e){var n=m(t,void 0,void 0,V.location);k.confirmTransitionTo(n,"REPLACE",o,(function(t){if(t){var e=d(n),r=v(u+e);T()!==r&&(A=e,S(r));var i=D.indexOf(d(V.location));-1!==i&&(D[i]=e),C({action:"REPLACE",location:n})}}))},go:N,goBack:function(){N(-1)},goForward:function(){N(1)},block:function(t){void 0===t&&(t=!1);var e=k.setPrompt(t);return L||(F(1),L=!0),function(){return L&&(L=!1,F(-1)),e()}},listen:function(t){var e=k.appendListener(t);return F(1),function(){F(-1),e()}}};return V}function C(t,e,n){return Math.min(Math.max(t,e),n)}function E(t){void 0===t&&(t={});var e=t,n=e.getUserConfirmation,i=e.initialEntries,o=void 0===i?["/"]:i,s=e.initialIndex,a=void 0===s?0:s,u=e.keyLength,c=void 0===u?6:u,l=y();function h(t){Object(r.a)(_,t),_.length=_.entries.length,l.notifyListeners(_.location,_.action)}function f(){return Math.random().toString(36).substr(2,c)}var p=C(a,0,o.length-1),v=o.map((function(t){return m(t,void 0,"string"==typeof t?f():t.key||f())})),g=d;function b(t){var e=C(_.index+t,0,_.entries.length-1),r=_.entries[e];l.confirmTransitionTo(r,"POP",n,(function(t){t?h({action:"POP",location:r,index:e}):h()}))}var _={length:v.length,action:"POP",location:v[p],index:p,entries:v,createHref:g,push:function(t,e){var r=m(t,e,f(),_.location);l.confirmTransitionTo(r,"PUSH",n,(function(t){if(t){var e=_.index+1,n=_.entries.slice(0);n.length>e?n.splice(e,n.length-e,r):n.push(r),h({action:"PUSH",location:r,index:e,entries:n})}}))},replace:function(t,e){var r=m(t,e,f(),_.location);l.confirmTransitionTo(r,"REPLACE",n,(function(t){t&&(_.entries[_.index]=r,h({action:"REPLACE",location:r}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(t){var e=_.index+t;return e>=0&&e<_.entries.length},block:function(t){return void 0===t&&(t=!1),l.setPrompt(t)},listen:function(t){return l.appendListener(t)}};return _}},function(t,e,n){"use strict";var r=n(10);t.exports=function(t,e){return!!t&&r((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>{const e=new Uint32Array([1179011410,40,1163280727,544501094,16,131073,44100,176400,1048580,1635017060,4,0]);try{const n=t.decodeAudioData(e.buffer,()=>{});return void 0!==n&&(n.catch(()=>{}),!0)}catch{}return!1}},function(t,e,n){t.exports=n(203)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>{try{return new DOMException("","IndexSizeError")}catch(t){return t.code=1,t.name="IndexSizeError",t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r)=>{for(const e of t)if(n(e)){if(r)return!1;throw Error("The set contains at least one similar element.")}return t.add(e),!0}},function(t,e,n){var r=n(44);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(104),i=n(65),o=n(34),s=n(58),a=n(32),u=n(172),c=Object.getOwnPropertyDescriptor;e.f=n(21)?c:function(t,e){if(t=o(t),e=s(e,!0),u)try{return c(t,e)}catch(t){}if(a(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(1),i=n(19),o=n(10);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],s={};s[t]=e(n),r(r.S+r.F*o((function(){n(1)})),"Object",s)}},function(t,e,n){var r=n(43),i=n(103),o=n(26),s=n(17),a=n(188);t.exports=function(t,e){var n=1==t,u=2==t,c=3==t,l=4==t,h=6==t,f=5==t||h,p=e||a;return function(e,a,d){for(var m,v,y=o(e),g=i(y),b=r(a,d,3),_=s(g.length),w=0,x=n?p(e,_):u?p(e,0):void 0;_>w;w++)if((f||w in g)&&(v=b(m=g[w],w,y),t))if(n)x[w]=v;else if(v)switch(t){case 3:return!0;case 5:return m;case 6:return w;case 2:x.push(m)}else if(l)return!1;return h?-1:c||l?l:x}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(2),i=n(56);const o=t=>{if(r.a.has(t))throw new Error("The AudioNode is already stored.");r.a.add(t),Object(i.a)(t).forEach(t=>t(!0))}},function(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}n.d(e,"a",(function(){return r}))},function(t,e,n){!function(t,e,n,r){"use strict";e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e,n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n,r=r&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r;var i=function(t,e,n){return{endTime:e,insertTime:n,type:"exponentialRampToValue",value:t}},o=function(t,e,n){return{endTime:e,insertTime:n,type:"linearRampToValue",value:t}},s=function(t,e){return{startTime:e,type:"setValue",value:t}},a=function(t,e,n){return{duration:n,startTime:e,type:"setValueCurve",values:t}},u=function(t,e,n){var r=n.startTime,i=n.target,o=n.timeConstant;return i+(e-i)*Math.exp((r-t)/o)},c=function(t){return"exponentialRampToValue"===t.type},l=function(t){return"linearRampToValue"===t.type},h=function(t){return c(t)||l(t)},f=function(t){return"setValue"===t.type},p=function(t){return"setValueCurve"===t.type},d=function t(e,n,r,i){var o=e[n];return void 0===o?i:h(o)||f(o)?o.value:p(o)?o.values[o.values.length-1]:u(r,t(e,n-1,o.startTime,i),o)},m=function(t,e,n,r,i){return void 0===n?[r.insertTime,i]:h(n)?[n.endTime,n.value]:f(n)?[n.startTime,n.value]:p(n)?[n.startTime+n.duration,n.values[n.values.length-1]]:[n.startTime,d(t,e-1,n.startTime,i)]},v=function(t){return"cancelAndHold"===t.type},y=function(t){return"cancelScheduledValues"===t.type},g=function(t){return v(t)||y(t)?t.cancelTime:c(t)||l(t)?t.endTime:t.startTime},b=function(t,e,n,r){var i=r.endTime,o=r.value;return n===o?o:0<n&&0<o||n<0&&o<0?n*Math.pow(o/n,(t-e)/(i-e)):0},_=function(t,e,n,r){return n+(t-e)/(r.endTime-e)*(r.value-n)},w=function(t,e){var n=e.duration,r=e.startTime,i=e.values;return function(t,e){var n=Math.floor(e),r=Math.ceil(e);return n===r?t[n]:(1-(e-n))*t[n]+(1-(r-e))*t[r]}(i,(t-r)/n*(i.length-1))},x=function(t){return"setTarget"===t.type},O=function(){function t(e){n(this,t),this._automationEvents=[],this._currenTime=0,this._defaultValue=e}return r(t,[{key:Symbol.iterator,value:function(){return this._automationEvents[Symbol.iterator]()}},{key:"add",value:function(t){var e=g(t);if(v(t)||y(t)){var n=this._automationEvents.findIndex((function(t){return g(t)>=e})),r=this._automationEvents[n];if(-1!==n&&(this._automationEvents=this._automationEvents.slice(0,n)),v(t)){var u=this._automationEvents[this._automationEvents.length-1];if(void 0!==r&&h(r)){if(x(u))throw new Error("The internal list is malformed.");var f=p(u)?u.startTime+u.duration:g(u),d=p(u)?u.values[u.values.length-1]:u.value,m=c(r)?b(e,f,d,r):_(e,f,d,r),w=c(r)?i(m,e,this._currenTime):o(m,e,this._currenTime);this._automationEvents.push(w)}void 0!==u&&x(u)&&this._automationEvents.push(s(this.getValue(e),e)),void 0!==u&&p(u)&&u.startTime+u.duration>e&&(this._automationEvents[this._automationEvents.length-1]=a(new Float32Array([6,7]),u.startTime,e-u.startTime))}}else{var O=this._automationEvents.findIndex((function(t){return g(t)>e})),T=-1===O?this._automationEvents[this._automationEvents.length-1]:this._automationEvents[O-1];if(void 0!==T&&p(T)&&g(T)+T.duration>e)return!1;var S=c(t)?i(t.value,t.endTime,this._currenTime):l(t)?o(t.value,e,this._currenTime):t;if(-1===O)this._automationEvents.push(S);else{if(p(t)&&e+t.duration>g(this._automationEvents[O]))return!1;this._automationEvents.splice(O,0,S)}}return!0}},{key:"flush",value:function(t){var e=this._automationEvents.findIndex((function(e){return g(e)>t}));if(e>1){var n=this._automationEvents.slice(e-1),r=n[0];x(r)&&n.unshift(s(d(this._automationEvents,e-2,r.startTime,this._defaultValue),r.startTime)),this._automationEvents=n}}},{key:"getValue",value:function(t){if(0===this._automationEvents.length)return this._defaultValue;var n=this._automationEvents[this._automationEvents.length-1],r=this._automationEvents.findIndex((function(e){return g(e)>t})),i=this._automationEvents[r],o=g(n)<=t?n:this._automationEvents[r-1];if(void 0!==o&&x(o)&&(void 0===i||!h(i)||i.insertTime>t))return u(t,d(this._automationEvents,r-2,o.startTime,this._defaultValue),o);if(void 0!==o&&f(o)&&(void 0===i||!h(i)))return o.value;if(void 0!==o&&p(o)&&(void 0===i||!h(i)||o.startTime+o.duration>t))return t<o.startTime+o.duration?w(t,o):o.values[o.values.length-1];if(void 0!==o&&h(o)&&(void 0===i||!h(i)))return o.value;if(void 0!==i&&c(i)){var s=m(this._automationEvents,r-1,o,i,this._defaultValue),a=e(s,2),v=a[0],y=a[1];return b(t,v,y,i)}if(void 0!==i&&l(i)){var O=m(this._automationEvents,r-1,o,i,this._defaultValue),T=e(O,2),S=T[0],k=T[1];return _(t,S,k,i)}return this._defaultValue}}]),t}();t.AutomationEventList=O,t.createCancelAndHoldAutomationEvent=function(t){return{cancelTime:t,type:"cancelAndHold"}},t.createCancelScheduledValuesAutomationEvent=function(t){return{cancelTime:t,type:"cancelScheduledValues"}},t.createExponentialRampToValueAutomationEvent=function(t,e){return{endTime:e,type:"exponentialRampToValue",value:t}},t.createLinearRampToValueAutomationEvent=function(t,e){return{endTime:e,type:"linearRampToValue",value:t}},t.createSetTargetAutomationEvent=function(t,e,n){return{startTime:e,target:t,timeConstant:n,type:"setTarget"}},t.createSetValueAutomationEvent=s,t.createSetValueCurveAutomationEvent=a,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(843),n(82),n(63))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(2);const i=t=>r.h.has(t)},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";if(n(21)){var r=n(67),i=n(9),o=n(10),s=n(1),a=n(121),u=n(158),c=n(43),l=n(88),h=n(65),f=n(33),p=n(89),d=n(45),m=n(17),v=n(199),y=n(69),g=n(58),b=n(32),_=n(105),w=n(12),x=n(26),O=n(150),T=n(70),S=n(72),k=n(71).f,C=n(152),E=n(66),A=n(15),P=n(48),j=n(111),I=n(106),M=n(154),D=n(86),N=n(114),R=n(87),F=n(153),L=n(190),V=n(22),z=n(46),B=V.f,q=z.f,U=i.RangeError,W=i.TypeError,$=i.Uint8Array,H=Array.prototype,K=u.ArrayBuffer,G=u.DataView,Y=P(0),X=P(2),J=P(3),Q=P(4),Z=P(5),tt=P(6),et=j(!0),nt=j(!1),rt=M.values,it=M.keys,ot=M.entries,st=H.lastIndexOf,at=H.reduce,ut=H.reduceRight,ct=H.join,lt=H.sort,ht=H.slice,ft=H.toString,pt=H.toLocaleString,dt=A("iterator"),mt=A("toStringTag"),vt=E("typed_constructor"),yt=E("def_constructor"),gt=a.CONSTR,bt=a.TYPED,_t=a.VIEW,wt=P(1,(function(t,e){return kt(I(t,t[yt]),e)})),xt=o((function(){return 1===new $(new Uint16Array([1]).buffer)[0]})),Ot=!!$&&!!$.prototype.set&&o((function(){new $(1).set({})})),Tt=function(t,e){var n=d(t);if(n<0||n%e)throw U("Wrong offset!");return n},St=function(t){if(w(t)&&bt in t)return t;throw W(t+" is not a typed array!")},kt=function(t,e){if(!w(t)||!(vt in t))throw W("It is not a typed array constructor!");return new t(e)},Ct=function(t,e){return Et(I(t,t[yt]),e)},Et=function(t,e){for(var n=0,r=e.length,i=kt(t,r);r>n;)i[n]=e[n++];return i},At=function(t,e,n){B(t,e,{get:function(){return this._d[n]}})},Pt=function(t){var e,n,r,i,o,s,a=x(t),u=arguments.length,l=u>1?arguments[1]:void 0,h=void 0!==l,f=C(a);if(null!=f&&!O(f)){for(s=f.call(a),r=[],e=0;!(o=s.next()).done;e++)r.push(o.value);a=r}for(h&&u>2&&(l=c(l,arguments[2],2)),e=0,n=m(a.length),i=kt(this,n);n>e;e++)i[e]=h?l(a[e],e):a[e];return i},jt=function(){for(var t=0,e=arguments.length,n=kt(this,e);e>t;)n[t]=arguments[t++];return n},It=!!$&&o((function(){pt.call(new $(1))})),Mt=function(){return pt.apply(It?ht.call(St(this)):St(this),arguments)},Dt={copyWithin:function(t,e){return L.call(St(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return Q(St(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return F.apply(St(this),arguments)},filter:function(t){return Ct(this,X(St(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Z(St(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(St(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Y(St(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(St(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(St(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ct.apply(St(this),arguments)},lastIndexOf:function(t){return st.apply(St(this),arguments)},map:function(t){return wt(St(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return at.apply(St(this),arguments)},reduceRight:function(t){return ut.apply(St(this),arguments)},reverse:function(){for(var t,e=St(this).length,n=Math.floor(e/2),r=0;r<n;)t=this[r],this[r++]=this[--e],this[e]=t;return this},some:function(t){return J(St(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return lt.call(St(this),t)},subarray:function(t,e){var n=St(this),r=n.length,i=y(t,r);return new(I(n,n[yt]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,m((void 0===e?r:y(e,r))-i))}},Nt=function(t,e){return Ct(this,ht.call(St(this),t,e))},Rt=function(t){St(this);var e=Tt(arguments[1],1),n=this.length,r=x(t),i=m(r.length),o=0;if(i+e>n)throw U("Wrong length!");for(;o<i;)this[e+o]=r[o++]},Ft={entries:function(){return ot.call(St(this))},keys:function(){return it.call(St(this))},values:function(){return rt.call(St(this))}},Lt=function(t,e){return w(t)&&t[bt]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Vt=function(t,e){return Lt(t,e=g(e,!0))?h(2,t[e]):q(t,e)},zt=function(t,e,n){return!(Lt(t,e=g(e,!0))&&w(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?B(t,e,n):(t[e]=n.value,t)};gt||(z.f=Vt,V.f=zt),s(s.S+s.F*!gt,"Object",{getOwnPropertyDescriptor:Vt,defineProperty:zt}),o((function(){ft.call({})}))&&(ft=pt=function(){return ct.call(this)});var Bt=p({},Dt);p(Bt,Ft),f(Bt,dt,Ft.values),p(Bt,{slice:Nt,set:Rt,constructor:function(){},toString:ft,toLocaleString:Mt}),At(Bt,"buffer","b"),At(Bt,"byteOffset","o"),At(Bt,"byteLength","l"),At(Bt,"length","e"),B(Bt,mt,{get:function(){return this[bt]}}),t.exports=function(t,e,n,u){var c=t+((u=!!u)?"Clamped":"")+"Array",h="get"+t,p="set"+t,d=i[c],y=d||{},g=d&&S(d),b=!d||!a.ABV,x={},O=d&&d.prototype,C=function(t,n){B(t,n,{get:function(){return function(t,n){var r=t._d;return r.v[h](n*e+r.o,xt)}(this,n)},set:function(t){return function(t,n,r){var i=t._d;u&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),i.v[p](n*e+i.o,r,xt)}(this,n,t)},enumerable:!0})};b?(d=n((function(t,n,r,i){l(t,d,c,"_d");var o,s,a,u,h=0,p=0;if(w(n)){if(!(n instanceof K||"ArrayBuffer"==(u=_(n))||"SharedArrayBuffer"==u))return bt in n?Et(d,n):Pt.call(d,n);o=n,p=Tt(r,e);var y=n.byteLength;if(void 0===i){if(y%e)throw U("Wrong length!");if((s=y-p)<0)throw U("Wrong length!")}else if((s=m(i)*e)+p>y)throw U("Wrong length!");a=s/e}else a=v(n),o=new K(s=a*e);for(f(t,"_d",{b:o,o:p,l:s,e:a,v:new G(o)});h<a;)C(t,h++)})),O=d.prototype=T(Bt),f(O,"constructor",d)):o((function(){d(1)}))&&o((function(){new d(-1)}))&&N((function(t){new d,new d(null),new d(1.5),new d(t)}),!0)||(d=n((function(t,n,r,i){var o;return l(t,d,c),w(n)?n instanceof K||"ArrayBuffer"==(o=_(n))||"SharedArrayBuffer"==o?void 0!==i?new y(n,Tt(r,e),i):void 0!==r?new y(n,Tt(r,e)):new y(n):bt in n?Et(d,n):Pt.call(d,n):new y(v(n))})),Y(g!==Function.prototype?k(y).concat(k(g)):k(y),(function(t){t in d||f(d,t,y[t])})),d.prototype=O,r||(O.constructor=d));var E=O[dt],A=!!E&&("values"==E.name||null==E.name),P=Ft.values;f(d,vt,!0),f(O,bt,c),f(O,_t,!0),f(O,yt,d),(u?new d(1)[mt]==c:mt in O)||B(O,mt,{get:function(){return c}}),x[c]=d,s(s.G+s.W+s.F*(d!=y),x),s(s.S,c,{BYTES_PER_ELEMENT:e}),s(s.S+s.F*o((function(){y.of.call(d,1)})),c,{from:Pt,of:jt}),"BYTES_PER_ELEMENT"in O||f(O,"BYTES_PER_ELEMENT",e),s(s.P,c,Dt),R(c),s(s.P+s.F*Ot,c,{set:Rt}),s(s.P+s.F*!A,c,Ft),r||O.toString==ft||(O.toString=ft),s(s.P+s.F*o((function(){new d(1).slice()})),c,{slice:Nt}),s(s.P+s.F*(o((function(){return[1,2].toLocaleString()!=new d([1,2]).toLocaleString()}))||!o((function(){O.toLocaleString.call([1,2])}))),c,{toLocaleString:Mt}),D[c]=A?E:P,r||A||f(O,dt,P)}}else t.exports=function(){}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(2),i=n(23);const o=t=>Object(i.a)(r.i,t)},,function(t,e,n){var r=n(12);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(66)("meta"),i=n(12),o=n(32),s=n(22).f,a=0,u=Object.isExtensible||function(){return!0},c=!n(10)((function(){return u(Object.preventExtensions({}))})),l=function(t){s(t,r,{value:{i:"O"+ ++a,w:{}}})},h=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[r].i},getWeak:function(t,e){if(!o(t,r)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[r].w},onFreeze:function(t){return c&&h.NEED&&u(t)&&!o(t,r)&&l(t),t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(2),i=n(56);const o=t=>{if(!r.a.has(t))throw new Error("The AudioNode is not stored.");r.a.delete(t),Object(i.a)(t).forEach(t=>t(!1))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(77);const i=t=>Object(r.a)(t[0])},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(2);const i=t=>r.a.has(t)},function(t,e){function n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t.exports=function(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}},function(t,e){t.exports=function(t,e,n,r,i){var o={};return Object.keys(r).forEach((function(t){o[t]=r[t]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,r){return r(t,e,n)||n}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(t,e,o),o=null),o}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports=!1},function(t,e,n){var r=n(174),i=n(137);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(45),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=r(t))<0?i(t+e,0):o(t,e)}},function(t,e,n){var r=n(11),i=n(175),o=n(137),s=n(136)("IE_PROTO"),a=function(){},u=function(){var t,e=n(134)("iframe"),r=o.length;for(e.style.display="none",n(138).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u.prototype[o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=r(t),n=new a,a.prototype=null,n[s]=t):n=u(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(174),i=n(137).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){var r=n(32),i=n(26),o=n(136)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){var r=n(15)("unscopables"),i=Array.prototype;null==i[r]&&n(33)(i,r,{}),t.exports=function(t){i[r][t]=!0}},function(t,e,n){var r=n(12);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.childInteractiveProps=e.defaultTapTimeCutoff=e.queueTime=e.knownProps=e.knownRoleTags=e.nonBlurrableTags=e.statePropOptionKeys=e.stateProps=e.iStates=e.otherEvents=e.touchEvents=e.mouseEvents=e.passiveEventSupport=e.deviceHasMouse=e.deviceHasTouch=e.deviceType=void 0;var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.enterKeyTrigger=function(t,e){return"select"!==t&&("input"!==t||"checkbox"!==e&&"radio"!==e)},e.spaceKeyTrigger=function(t,e){return"button"===t||"select"===t||"input"===t&&("checkbox"===e||"radio"===e||"submit"===e)},e.dummyEvent=function(t){return{type:t,persist:function(){},preventDefault:function(){},stopPropagation:function(){}}};var i,o=n(1046),s=(i=o)&&i.__esModule?i:{default:i};e.deviceType=s.default.deviceType,e.deviceHasTouch=s.default.hasTouch,e.deviceHasMouse=s.default.hasMouse,e.passiveEventSupport=s.default.passiveEvents,e.mouseEvents={mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mousemove:"onMouseMove",mousedown:"onMouseDown",mouseup:"onMouseUp"},e.touchEvents={touchstart:"onTouchStart",touchend:"onTouchEnd",touchcancel:"onTouchCancel"},e.otherEvents={focus:"onFocus",blur:"onBlur",keydown:"onKeyDown",keyup:"onKeyUp",dragstart:"onDragStart",dragend:"onDragEnd"};var a=e.iStates={normal:!0,hover:!0,hoverActive:!0,touchActive:!0,keyActive:!0},u=e.stateProps=r({},a,{active:!0,focus:!0,focusFromTab:!0,focusFromMouse:!0,focusFromTouch:!0}),c=(e.statePropOptionKeys=["style","className"],e.nonBlurrableTags={input:!0,textarea:!0,select:!0});e.knownRoleTags=r({},c,{button:!0,a:!0,area:!0});e.knownProps=r({},u,{children:!0,as:!0,style:!0,className:!0,wrapperStyle:!0,wrapperClassName:!0,onStateChange:!0,setStateCallback:!0,onClick:!0,onTapTwo:!0,onTapThree:!0,onTapFour:!0,onLongPress:!0,tapTimeCutoff:!0,onMouseEnter:!0,onMouseLeave:!0,onMouseMove:!0,onMouseDown:!0,onMouseUp:!0,onTouchStart:!0,onTouchMove:!0,onTouchEnd:!0,onTouchCancel:!0,onFocus:!0,onBlur:!0,onKeyDown:!0,onKeyUp:!0,forceState:!0,initialState:!0,refDOMNode:!0,mutableProps:!0,useBrowserOutlineFocus:!0,useBrowserCursor:!0,touchActiveTapOnly:!0,extraTouchNoTap:!0,focusToggleOff:!0,stylePriority:!0,nonContainedChild:!0,interactiveChild:!0}),e.queueTime=600,e.defaultTapTimeCutoff=500;e.childInteractiveProps={showOnParent:!0,onParentNormal:!0,onParentHover:!0,onParentActive:!0,onParentHoverActive:!0,onParentTouchActive:!0,onParentKeyActive:!0,onParentFocus:!0,onParentFocusFromTab:!0,onParentFocusFromMouse:!0,onParentFocusFromTouch:!0}},function(t,e,n){t.exports=n(1042)()},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>"context"in t},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>"context"in t},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(2),i=n(23);const o=t=>Object(i.a)(r.d,t)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(2),i=n(23);const o=t=>Object(i.a)(r.e,t)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>{const r={value:t};return Object.defineProperties(n,{currentTarget:r,target:r}),"function"==typeof e?e.call(t,n):e.handleEvent.call(t,n)}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return y}));var r=n(18),i=n(27),o=n(0),s=n.n(o),a=n(37),u=(n(76),n(16)),c=n(50),l=n(31),h=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).history=Object(a.a)(e.props),e}return Object(i.a)(e,t),e.prototype.render=function(){return s.a.createElement(r.c,{history:this.history,children:this.props.children})},e}(s.a.Component);s.a.Component;var f=function(t,e){return"function"==typeof t?t(e):t},p=function(t,e){return"string"==typeof t?Object(a.c)(t,null,null,e):t},d=function(t){return t},m=s.a.forwardRef;void 0===m&&(m=d);var v=m((function(t,e){var n=t.innerRef,r=t.navigate,i=t.onClick,o=Object(c.a)(t,["innerRef","navigate","onClick"]),a=o.target,l=Object(u.a)({},o,{onClick:function(t){try{i&&i(t)}catch(e){throw t.preventDefault(),e}t.defaultPrevented||0!==t.button||a&&"_self"!==a||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t)||(t.preventDefault(),r())}});return l.ref=d!==m&&e||n,s.a.createElement("a",l)}));var y=m((function(t,e){var n=t.component,i=void 0===n?v:n,o=t.replace,a=t.to,h=t.innerRef,y=Object(c.a)(t,["component","replace","to","innerRef"]);return s.a.createElement(r.e.Consumer,null,(function(t){t||Object(l.a)(!1);var n=t.history,r=p(f(a,t.location),t.location),c=r?n.createHref(r):"",v=Object(u.a)({},y,{href:c,navigate:function(){var e=f(a,t.location);(o?n.replace:n.push)(e)}});return d!==m?v.ref=e||h:v.innerRef=h,s.a.createElement(i,v)}))})),g=function(t){return t},b=s.a.forwardRef;void 0===b&&(b=g);b((function(t,e){var n=t["aria-current"],i=void 0===n?"page":n,o=t.activeClassName,a=void 0===o?"active":o,h=t.activeStyle,d=t.className,m=t.exact,v=t.isActive,_=t.location,w=t.sensitive,x=t.strict,O=t.style,T=t.to,S=t.innerRef,k=Object(c.a)(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return s.a.createElement(r.e.Consumer,null,(function(t){t||Object(l.a)(!1);var n=_||t.location,o=p(f(T,n),n),c=o.pathname,C=c&&c.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),E=C?Object(r.f)(n.pathname,{path:C,exact:m,sensitive:w,strict:x}):null,A=!!(v?v(E,n):E),P=A?function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter((function(t){return t})).join(" ")}(d,a):d,j=A?Object(u.a)({},O,{},h):O,I=Object(u.a)({"aria-current":A&&i||null,className:P,style:j,to:o},k);return g!==b?I.ref=e||S:I.innerRef=S,s.a.createElement(y,I)}))}))},function(t,e,n){var r=n(22).f,i=n(32),o=n(15)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){var r=n(1),i=n(54),o=n(10),s=n(140),a="["+s+"]",u=RegExp("^"+a+a+"*"),c=RegExp(a+a+"*$"),l=function(t,e,n){var i={},a=o((function(){return!!s[t]()||"…"!="…"[t]()})),u=i[t]=a?e(h):s[t];n&&(i[n]=u),r(r.P+r.F*a,"String",i)},h=l.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(c,"")),t};t.exports=l},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(9),i=n(22),o=n(21),s=n(15)("species");t.exports=function(t){var e=r[t];o&&e&&!e[s]&&i.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(29);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(41);const i=t=>{var e;t.getChannelData=(e=t.getChannelData,n=>{try{return e.call(t,n)}catch(t){if(12===t.code)throw Object(r.a)();throw t}})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>{var e;t.start=(e=t.start,(n=0,r=0,i)=>{if("number"==typeof i&&i<0||r<0||n<0)throw new RangeError("The parameters can't be negative.");e.call(t,n,r,i)})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>{var e;t.stop=(e=t.stop,(n=0)=>{if(n<0)throw new RangeError("The parameter can't be negative.");e.call(t,n)})}},function(t,e){function n(t,e,n,r,i,o,s){try{var a=t[o](s),u=a.value}catch(t){return void n(t)}a.done?e(u):Promise.resolve(u).then(r,i)}t.exports=function(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var s=t.apply(e,r);function a(t){n(s,i,o,a,u,"next",t)}function u(t){n(s,i,o,a,u,"throw",t)}a(void 0)}))}}},function(t,e,n){"use strict";e.parse=function(t,e){if("string"!=typeof t)throw new TypeError("argument str must be a string");for(var n={},i=e||{},s=t.split(o),u=i.decode||r,c=0;c<s.length;c++){var l=s[c],h=l.indexOf("=");if(!(h<0)){var f=l.substr(0,h).trim(),p=l.substr(++h,l.length).trim();'"'==p[0]&&(p=p.slice(1,-1)),null==n[f]&&(n[f]=a(p,u))}}return n},e.serialize=function(t,e,n){var r=n||{},o=r.encode||i;if("function"!=typeof o)throw new TypeError("option encode is invalid");if(!s.test(t))throw new TypeError("argument name is invalid");var a=o(e);if(a&&!s.test(a))throw new TypeError("argument val is invalid");var u=t+"="+a;if(null!=r.maxAge){var c=r.maxAge-0;if(isNaN(c))throw new Error("maxAge should be a Number");u+="; Max-Age="+Math.floor(c)}if(r.domain){if(!s.test(r.domain))throw new TypeError("option domain is invalid");u+="; Domain="+r.domain}if(r.path){if(!s.test(r.path))throw new TypeError("option path is invalid");u+="; Path="+r.path}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");u+="; Expires="+r.expires.toUTCString()}r.httpOnly&&(u+="; HttpOnly");r.secure&&(u+="; Secure");if(r.sameSite){switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"strict":u+="; SameSite=Strict";break;case"none":u+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return u};var r=decodeURIComponent,i=encodeURIComponent,o=/; */,s=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function a(t,e){try{return e(t)}catch(e){return t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>{try{t.copyToChannel(new Float32Array(1),0,-1)}catch{return!1}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(35);const i=(t,e,n,i)=>{if(Object(r.a)(e)){const r=e.inputs[i];return t.connect(r,n,0),[r,n,0]}return t.connect(e,n,i),[e,n,i]}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(35);const i=(t,e,n,i)=>{Object(r.a)(e)?t.disconnect(e.inputs[i],n,0):t.disconnect(e,n,i)}},function(t,e,n){"use strict";function r(t,e,n,r,i){if("function"==typeof t.copyFromChannel)0===e[n].byteLength&&(e[n]=new Float32Array(128)),t.copyFromChannel(e[n],r,i);else{const o=t.getChannelData(r);if(0===e[n].byteLength)e[n]=o.slice(i,i+128);else{const t=new Float32Array(o.buffer,i*Float32Array.BYTES_PER_ELEMENT,128);e[n].set(t)}}}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>{const n=[];for(let r=0;r<t;r+=1){const t=[],i="number"==typeof e?e:e[r];for(let e=0;e<i;e+=1)t.push(new Float32Array(128));n.push(t)}return n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>{try{return new DOMException("","InvalidAccessError")}catch(t){return t.code=15,t.name="InvalidAccessError",t}}},,function(t,e){t.exports=function(t,e,n,r){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}},function(t,e,n){var r=n(53);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(53),i=n(15)("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:o?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,n){var r=n(11),i=n(44),o=n(15)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||null==(n=r(s)[o])?e:i(n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r)=>{let i=Object.getPrototypeOf(t);for(;!i.hasOwnProperty(e);)i=Object.getPrototypeOf(i);const{get:o,set:s}=Object.getOwnPropertyDescriptor(i,e);Object.defineProperty(t,e,{get:n(o),set:r(s)})}},function(t,e,n){"use strict";var r=n(0),i=n.n(r),o=n(50),s=n(16);function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var u=n(27),c=n(678),l=n(125),h=n.n(l);function f(t,e){if(!t){var n=new Error("loadable: "+e);throw n.framesToPop=1,n.name="Invariant Violation",n}}var p=i.a.createContext();var d={initialChunks:{}};var m=function(t){return t};function v(t){var e=t.defaultResolveComponent,n=void 0===e?m:e,r=t.render,l=t.onLoad;function v(t,e){void 0===e&&(e={});var m=function(t){return"function"==typeof t?{requireAsync:t}:t}(t),v={};function y(t){return e.cacheKey?e.cacheKey(t):m.resolve?m.resolve(t):null}function g(t,r,i){var o=e.resolveComponent?e.resolveComponent(t,r):n(t);if(e.resolveComponent&&!Object(c.isValidElementType)(o))throw new Error("resolveComponent returned something that is not a React component!");return h()(i,o,{preload:!0}),o}var b,_=function(t){function n(n){var r;return(r=t.call(this,n)||this).state={result:null,error:null,loading:!0,cacheKey:y(n)},r.promise=null,f(!n.__chunkExtractor||m.requireSync,"SSR requires `@loadable/babel-plugin`, please install it"),n.__chunkExtractor?(!1===e.ssr||(m.requireAsync(n).catch((function(){})),r.loadSync(),n.__chunkExtractor.addChunk(m.chunkName(n))),a(r)):(!1!==e.ssr&&(m.isReady&&m.isReady(n)||m.chunkName&&d.initialChunks[m.chunkName(n)])&&r.loadSync(),r)}Object(u.a)(n,t),n.getDerivedStateFromProps=function(t,e){var n=y(t);return Object(s.a)({},e,{cacheKey:n,loading:e.loading||e.cacheKey!==n})};var i=n.prototype;return i.componentDidMount=function(){this.mounted=!0,this.state.loading?this.loadAsync():this.state.error||this.triggerOnLoad()},i.componentDidUpdate=function(t,e){e.cacheKey!==this.state.cacheKey&&(this.promise=null,this.loadAsync())},i.componentWillUnmount=function(){this.mounted=!1},i.safeSetState=function(t,e){this.mounted&&this.setState(t,e)},i.triggerOnLoad=function(){var t=this;l&&setTimeout((function(){l(t.state.result,t.props)}))},i.loadSync=function(){if(this.state.loading)try{var t=g(m.requireSync(this.props),this.props,x);this.state.result=t,this.state.loading=!1}catch(t){this.state.error=t}},i.getCacheKey=function(){return y(this.props)||JSON.stringify(this.props)},i.getCache=function(){return v[this.getCacheKey()]},i.setCache=function(t){v[this.getCacheKey()]=t},i.loadAsync=function(){var t=this;if(!this.promise){var n=this.props,r=(n.__chunkExtractor,n.forwardedRef,Object(o.a)(n,["__chunkExtractor","forwardedRef"]));this.promise=m.requireAsync(r).then((function(n){var r=g(n,t.props,x);e.suspense&&t.setCache(r),t.safeSetState({result:g(n,t.props,x),loading:!1},(function(){return t.triggerOnLoad()}))})).catch((function(e){t.safeSetState({error:e,loading:!1})}))}return this.promise},i.render=function(){var t=this.props,n=t.forwardedRef,i=t.fallback,a=(t.__chunkExtractor,Object(o.a)(t,["forwardedRef","fallback","__chunkExtractor"])),u=this.state,c=u.error,l=u.loading,h=u.result;if(e.suspense){var f=this.getCache();if(!f)throw this.loadAsync();return r({loading:!1,fallback:null,result:f,options:e,props:Object(s.a)({},a,{ref:n})})}if(c)throw c;var p=i||e.fallback||null;return l?p:r({loading:l,fallback:p,result:h,options:e,props:Object(s.a)({},a,{ref:n})})},n}(i.a.Component),w=(b=_,function(t){return i.a.createElement(p.Consumer,null,(function(e){return i.a.createElement(b,Object.assign({__chunkExtractor:e},t))}))}),x=i.a.forwardRef((function(t,e){return i.a.createElement(w,Object.assign({forwardedRef:e},t))}));return x.preload=function(t){m.requireAsync(t)},x.load=function(t){return m.requireAsync(t)},x}return{loadable:v,lazy:function(t,e){return v(t,Object(s.a)({},e,{suspense:!0}))}}}var y=v({defaultResolveComponent:function(t){return t.__esModule?t.default:t.default||t},render:function(t){var e=t.result,n=t.props;return i.a.createElement(e,n)}}),g=y.loadable,b=y.lazy,_=v({onLoad:function(t,e){t&&e.forwardedRef&&("function"==typeof e.forwardedRef?e.forwardedRef(t):e.forwardedRef.current=t)},render:function(t){var e=t.result,n=t.loading,r=t.props;return!n&&r.children?r.children(e):null}}),w=_.loadable,x=_.lazy;var O=g;O.lib=w,b.lib=x;e.a=O},,function(t,e,n){var r=n(19),i=n(9),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(67)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(34),i=n(17),o=n(69);t.exports=function(t){return function(e,n,s){var a,u=r(e),c=i(u.length),l=o(s,c);if(t&&n!=n){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(53);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(15)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},t(o)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(11);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";var r=n(105),i=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var o=n.call(t,e);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},function(t,e,n){"use strict";n(192);var r=n(29),i=n(33),o=n(10),s=n(54),a=n(15),u=n(155),c=a("species"),l=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),h=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var f=a(t),p=!o((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),d=p?!o((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[f](""),!e})):void 0;if(!p||!d||"replace"===t&&!l||"split"===t&&!h){var m=/./[f],v=n(s,f,""[t],(function(t,e,n,r,i){return e.exec===u?p&&!i?{done:!0,value:m.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}})),y=v[0],g=v[1];r(String.prototype,t,y),i(RegExp.prototype,f,2==e?function(t,e){return g.call(t,this,e)}:function(t){return g.call(t,this)})}}},function(t,e,n){var r=n(43),i=n(187),o=n(150),s=n(11),a=n(17),u=n(152),c={},l={};(e=t.exports=function(t,e,n,h,f){var p,d,m,v,y=f?function(){return t}:u(t),g=r(n,h,e?2:1),b=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(o(y)){for(p=a(t.length);p>b;b++)if((v=e?g(s(d=t[b])[0],d[1]):g(t[b]))===c||v===l)return v}else for(m=y.call(t);!(d=m.next()).done;)if((v=i(m,g,d.value,e))===c||v===l)return v}).BREAK=c,e.RETURN=l},function(t,e,n){var r=n(9).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){"use strict";var r=n(9),i=n(1),o=n(29),s=n(89),a=n(59),u=n(118),c=n(88),l=n(12),h=n(10),f=n(114),p=n(84),d=n(141);t.exports=function(t,e,n,m,v,y){var g=r[t],b=g,_=v?"set":"add",w=b&&b.prototype,x={},O=function(t){var e=w[t];o(w,t,"delete"==t||"has"==t?function(t){return!(y&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return y&&!l(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof b&&(y||w.forEach&&!h((function(){(new b).entries().next()})))){var T=new b,S=T[_](y?{}:-0,1)!=T,k=h((function(){T.has(1)})),C=f((function(t){new b(t)})),E=!y&&h((function(){for(var t=new b,e=5;e--;)t[_](e,e);return!t.has(-0)}));C||((b=e((function(e,n){c(e,b,t);var r=d(new g,e,b);return null!=n&&u(n,v,r[_],r),r}))).prototype=w,w.constructor=b),(k||E)&&(O("delete"),O("has"),v&&O("get")),(E||S)&&O(_),y&&w.clear&&delete w.clear}else b=m.getConstructor(e,t,v,_),s(b.prototype,n),a.NEED=!0;return p(b,t),x[t]=b,i(i.G+i.W+i.F*(b!=g),x),y||m.setStrong(b,t,v),b}},function(t,e,n){for(var r,i=n(9),o=n(33),s=n(66),a=s("typed_array"),u=s("view"),c=!(!i.ArrayBuffer||!i.DataView),l=c,h=0,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");h<9;)(r=i[f[h++]])?(o(r.prototype,a,!0),o(r.prototype,u,!0)):l=!1;t.exports={ABV:c,CONSTR:l,TYPED:a,VIEW:u}},function(t,e,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function s(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,a,u=s(t),c=1;c<arguments.length;c++){for(var l in n=Object(arguments[c]))i.call(n,l)&&(u[l]=n[l]);if(r){a=r(n);for(var h=0;h<a.length;h++)o.call(n,a[h])&&(u[a[h]]=n[a[h]])}}return u}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";!function t(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(t){console.error(t)}}}(),t.exports=n(1031)},function(t,e,n){"use strict";var r=n(206),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function u(t){return r.isMemo(t)?s:a[t.$$typeof]||i}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var c=Object.defineProperty,l=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,d=Object.prototype;t.exports=function t(e,n,r){if("string"!=typeof n){if(d){var i=p(n);i&&i!==d&&t(e,i,r)}var s=l(n);h&&(s=s.concat(h(n)));for(var a=u(e),m=u(n),v=0;v<s.length;++v){var y=s[v];if(!(o[y]||r&&r[y]||m&&m[y]||a&&a[y])){var g=f(n,y);try{c(e,y,g)}catch(t){}}}}return e}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>void 0===t||"number"==typeof t||"string"==typeof t&&("balanced"===t||"interactive"===t||"playback"===t)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));class r{constructor(t){this._map=new Map(t)}get size(){return this._map.size}entries(){return this._map.entries()}forEach(t,e=null){return this._map.forEach((n,r)=>t.call(e,n,r,this))}get(t){return this._map.get(t)}has(t){return this._map.has(t)}keys(){return this._map.keys()}values(){return this._map.values()}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r,i)=>{"function"==typeof t.copyToChannel?0!==e[n].byteLength&&t.copyToChannel(e[n],r,i):0!==e[n].byteLength&&t.getChannelData(r).set(e[n],i)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r,i,o,s,a,u,c,l)=>{const h=c.length;let f=a;for(let a=0;a<h;a+=1){let h=n[0]*c[a];for(let e=1;e<i;e+=1){const r=f-e&u-1;h+=n[e]*o[r],h-=t[e]*s[r]}for(let t=i;t<r;t+=1)h+=n[t]*o[f-t&u-1];for(let n=i;n<e;n+=1)h-=t[n]*s[f-n&u-1];o[f]=c[a],s[f]=h,f=f+1&u-1,l[a]=h}return f}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>null===t?512:Math.max(512,Math.min(16384,Math.pow(2,Math.round(Math.log2(t*e)))))},function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},n(e)}t.exports=n},function(t,e,n){"use strict";n.d(e,"a",(function(){return F})),n.d(e,"b",(function(){return I}));var r=n(3),i=n(0),o=n.n(i),s=n(25),a=0;var u={};function c(t){return u[t]||(u[t]=function(t){if("function"==typeof Symbol)return Symbol(t);var e="__$mobx-react "+t+" ("+a+")";return a++,e}(t)),u[t]}function l(t,e){if(h(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.hasOwnProperty.call(e,n[i])||!h(t[n[i]],e[n[i]]))return!1;return!0}function h(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}var f={$$typeof:1,render:1,compare:1,type:1,childContextTypes:1,contextType:1,contextTypes:1,defaultProps:1,getDefaultProps:1,getDerivedStateFromError:1,getDerivedStateFromProps:1,mixins:1,propTypes:1};function p(t,e,n){Object.hasOwnProperty.call(t,e)?t[e]=n:Object.defineProperty(t,e,{enumerable:!1,configurable:!0,writable:!0,value:n})}var d=c("patchMixins"),m=c("patchedDefinition");function v(t,e){for(var n=this,r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];e.locks++;try{var s;return null!=t&&(s=t.apply(this,i)),s}finally{e.locks--,0===e.locks&&e.methods.forEach((function(t){t.apply(n,i)}))}}function y(t,e){return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];v.call.apply(v,[this,t,e].concat(r))}}function g(t,e,n){var r=function(t,e){var n=t[d]=t[d]||{},r=n[e]=n[e]||{};return r.locks=r.locks||0,r.methods=r.methods||[],r}(t,e);r.methods.indexOf(n)<0&&r.methods.push(n);var i=Object.getOwnPropertyDescriptor(t,e);if(!i||!i[m]){var o=t[e],s=function t(e,n,r,i,o){var s,a=y(o,i);return(s={})[m]=!0,s.get=function(){return a},s.set=function(o){if(this===e)a=y(o,i);else{var s=t(this,n,r,i,o);Object.defineProperty(this,n,s)}},s.configurable=!0,s.enumerable=r,s}(t,e,i?i.enumerable:void 0,r,o);Object.defineProperty(t,e,s)}}var b=r.a||"$mobx",_=c("isMobXReactObserver"),w=c("isUnmounted"),x=c("skipRender"),O=c("isForcingUpdate");function T(t){var e=t.prototype;if(t[_]){var n=S(e);console.warn("The provided component class ("+n+") \n has already been declared as an observer component.")}else t[_]=!0;if(e.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(t.__proto__!==i.PureComponent)if(e.shouldComponentUpdate){if(e.shouldComponentUpdate!==C)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else e.shouldComponentUpdate=C;E(e,"props"),E(e,"state");var r=e.render;return e.render=function(){return k.call(this,r)},g(e,"componentWillUnmount",(function(){var t;if(!0!==Object(s.b)()&&(null===(t=this.render[b])||void 0===t||t.dispose(),this[w]=!0,!this.render[b])){var e=S(this);console.warn("The reactive render of an observer class component ("+e+") \n was overriden after MobX attached. This may result in a memory leak if the \n overriden reactive render was not properly disposed.")}})),t}function S(t){return t.displayName||t.name||t.constructor&&(t.constructor.displayName||t.constructor.name)||"<component>"}function k(t){var e=this;if(!0===Object(s.b)())return t.call(this);p(this,x,!1),p(this,O,!1);var n=S(this),o=t.bind(this),a=!1,u=new r.b(n+".render()",(function(){if(!a&&(a=!0,!0!==e[w])){var t=!0;try{p(e,O,!0),e[x]||i.Component.prototype.forceUpdate.call(e),t=!1}finally{p(e,O,!1),t&&u.dispose()}}}));function c(){a=!1;var t=void 0,e=void 0;if(u.track((function(){try{e=Object(r.c)(!1,o)}catch(e){t=e}})),t)throw t;return e}return u.reactComponent=this,c[b]=u,this.render=c,c.call(this)}function C(t,e){return Object(s.b)()&&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!==e||!l(this.props,t)}function E(t,e){var n=c("reactProp_"+e+"_valueHolder"),i=c("reactProp_"+e+"_atomHolder");function o(){return this[i]||p(this,i,Object(r.h)("reactive "+e)),this[i]}Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var t=!1;return r.e&&r.d&&(t=Object(r.e)(!0)),o.call(this).reportObserved(),r.e&&r.d&&Object(r.d)(t),this[n]},set:function(t){this[O]||l(this[n],t)?p(this,n,t):(p(this,n,t),p(this,x,!0),o.call(this).reportChanged(),p(this,x,!1))}})}var A="function"==typeof Symbol&&Symbol.for,P=A?Symbol.for("react.forward_ref"):"function"==typeof i.forwardRef&&Object(i.forwardRef)((function(t){return null})).$$typeof,j=A?Symbol.for("react.memo"):"function"==typeof i.memo&&Object(i.memo)((function(t){return null})).$$typeof;function I(t){if(!0===t.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),j&&t.$$typeof===j)throw new Error("Mobx observer: 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(P&&t.$$typeof===P){var e=t.render;if("function"!=typeof e)throw new Error("render property of ForwardRef was not a function");return Object(i.forwardRef)((function(){var t=arguments;return Object(i.createElement)(s.a,null,(function(){return e.apply(void 0,t)}))}))}return"function"!=typeof t||t.prototype&&t.prototype.render||t.isReactClass||Object.prototype.isPrototypeOf.call(i.Component,t)?T(t):Object(s.c)(t)}function M(){return(M=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var D=o.a.createContext({});function N(t,e,n,r){var i,s,a,u=o.a.forwardRef((function(n,r){var i=M({},n),s=o.a.useContext(D);return Object.assign(i,t(s||{},i)||{}),r&&(i.ref=r),o.a.createElement(e,i)}));return r&&(u=I(u)),u.isMobxInjector=!0,i=e,s=u,a=Object.getOwnPropertyNames(Object.getPrototypeOf(i)),Object.getOwnPropertyNames(i).forEach((function(t){f[t]||-1!==a.indexOf(t)||Object.defineProperty(s,t,Object.getOwnPropertyDescriptor(i,t))})),u.wrappedComponent=e,u.displayName=function(t,e){var n,r=t.displayName||t.name||t.constructor&&t.constructor.name||"Component";n=e?"inject-with-"+e+"("+r+")":"inject("+r+")";return n}(e,n),u}function R(t){return function(e,n){return t.forEach((function(t){if(!(t in n)){if(!(t in e))throw new Error("MobX injector: Store '"+t+"' is not available! Make sure it is provided by some Provider");n[t]=e[t]}})),n}}function F(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if("function"==typeof arguments[0]){var r=arguments[0];return function(t){return N(r,t,r.name,!0)}}return function(t){return N(R(e),t,e.join("-"),!1)}}if(!i.Component)throw new Error("mobx-react requires React to be available");if(!r.m)throw new Error("mobx-react requires mobx to be available")},,function(t,e,n){var r=n(12),i=n(9).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){e.f=n(15)},function(t,e,n){var r=n(110)("keys"),i=n(66);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(9).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(12),i=n(11),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(43)(Function.call,n(46).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},function(t,e){t.exports="\t\n\v\f\r    \u2028\u2029\ufeff"},function(t,e,n){var r=n(12),i=n(139).set;t.exports=function(t,e,n){var o,s=e.constructor;return s!==n&&"function"==typeof s&&(o=s.prototype)!==n.prototype&&r(o)&&i&&i(t,o),t}},function(t,e,n){"use strict";var r=n(45),i=n(54);t.exports=function(t){var e=String(i(this)),n="",o=r(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(n+=e);return n}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){var r=n(45),i=n(54);t.exports=function(t){return function(e,n){var o,s,a=String(i(e)),u=r(n),c=a.length;return u<0||u>=c?t?"":void 0:(o=a.charCodeAt(u))<55296||o>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?t?a.charAt(u):o:t?a.slice(u,u+2):s-56320+(o-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(67),i=n(1),o=n(29),s=n(33),a=n(86),u=n(186),c=n(84),l=n(72),h=n(15)("iterator"),f=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,d,m,v,y){u(n,e,d);var g,b,_,w=function(t){if(!f&&t in S)return S[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",O="values"==m,T=!1,S=t.prototype,k=S[h]||S["@@iterator"]||m&&S[m],C=k||w(m),E=m?O?w("entries"):C:void 0,A="Array"==e&&S.entries||k;if(A&&(_=l(A.call(new t)))!==Object.prototype&&_.next&&(c(_,x,!0),r||"function"==typeof _[h]||s(_,h,p)),O&&k&&"values"!==k.name&&(T=!0,C=function(){return k.call(this)}),r&&!y||!f&&!T&&S[h]||s(S,h,C),a[e]=C,a[x]=p,m)if(g={values:O?C:w("values"),keys:v?C:w("keys"),entries:E},y)for(b in g)b in S||o(S,b,g[b]);else i(i.P+i.F*(f||T),e,g);return g}},function(t,e,n){var r=n(148),i=n(54);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(t))}},function(t,e,n){var r=n(12),i=n(53),o=n(15)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},function(t,e,n){var r=n(15)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var r=n(86),i=n(15)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){"use strict";var r=n(22),i=n(65);t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},function(t,e,n){var r=n(105),i=n(15)("iterator"),o=n(86);t.exports=n(19).getIteratorMethod=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){"use strict";var r=n(26),i=n(69),o=n(17);t.exports=function(t){for(var e=r(this),n=o(e.length),s=arguments.length,a=i(s>1?arguments[1]:void 0,n),u=s>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>a;)e[a++]=t;return e}},function(t,e,n){"use strict";var r=n(73),i=n(191),o=n(86),s=n(34);t.exports=n(146)(Array,"Array",(function(t,e){this._t=s(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e,n){"use strict";var r,i,o=n(115),s=RegExp.prototype.exec,a=String.prototype.replace,u=s,c=(r=/a/,i=/b*/g,s.call(r,"a"),s.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),l=void 0!==/()??/.exec("")[1];(c||l)&&(u=function(t){var e,n,r,i,u=this;return l&&(n=new RegExp("^"+u.source+"$(?!\\s)",o.call(u))),c&&(e=u.lastIndex),r=s.call(u,t),c&&r&&(u.lastIndex=u.global?r.index+r[0].length:e),l&&r&&r.length>1&&a.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),t.exports=u},function(t,e,n){"use strict";var r=n(145)(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){var r,i,o,s=n(43),a=n(180),u=n(138),c=n(134),l=n(9),h=l.process,f=l.setImmediate,p=l.clearImmediate,d=l.MessageChannel,m=l.Dispatch,v=0,y={},g=function(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}},b=function(t){g.call(t.data)};f&&p||(f=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return y[++v]=function(){a("function"==typeof t?t:Function(t),e)},r(v),v},p=function(t){delete y[t]},"process"==n(53)(h)?r=function(t){h.nextTick(s(g,t,1))}:m&&m.now?r=function(t){m.now(s(g,t,1))}:d?(o=(i=new d).port2,i.port1.onmessage=b,r=s(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",b,!1)):r="onreadystatechange"in c("script")?function(t){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),g.call(t)}}:function(t){setTimeout(s(g,t,1),0)}),t.exports={set:f,clear:p}},function(t,e,n){"use strict";var r=n(9),i=n(21),o=n(67),s=n(121),a=n(33),u=n(89),c=n(10),l=n(88),h=n(45),f=n(17),p=n(199),d=n(71).f,m=n(22).f,v=n(153),y=n(84),g=r.ArrayBuffer,b=r.DataView,_=r.Math,w=r.RangeError,x=r.Infinity,O=g,T=_.abs,S=_.pow,k=_.floor,C=_.log,E=_.LN2,A=i?"_b":"buffer",P=i?"_l":"byteLength",j=i?"_o":"byteOffset";function I(t,e,n){var r,i,o,s=new Array(n),a=8*n-e-1,u=(1<<a)-1,c=u>>1,l=23===e?S(2,-24)-S(2,-77):0,h=0,f=t<0||0===t&&1/t<0?1:0;for((t=T(t))!=t||t===x?(i=t!=t?1:0,r=u):(r=k(C(t)/E),t*(o=S(2,-r))<1&&(r--,o*=2),(t+=r+c>=1?l/o:l*S(2,1-c))*o>=2&&(r++,o/=2),r+c>=u?(i=0,r=u):r+c>=1?(i=(t*o-1)*S(2,e),r+=c):(i=t*S(2,c-1)*S(2,e),r=0));e>=8;s[h++]=255&i,i/=256,e-=8);for(r=r<<e|i,a+=e;a>0;s[h++]=255&r,r/=256,a-=8);return s[--h]|=128*f,s}function M(t,e,n){var r,i=8*n-e-1,o=(1<<i)-1,s=o>>1,a=i-7,u=n-1,c=t[u--],l=127&c;for(c>>=7;a>0;l=256*l+t[u],u--,a-=8);for(r=l&(1<<-a)-1,l>>=-a,a+=e;a>0;r=256*r+t[u],u--,a-=8);if(0===l)l=1-s;else{if(l===o)return r?NaN:c?-x:x;r+=S(2,e),l-=s}return(c?-1:1)*r*S(2,l-e)}function D(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function N(t){return[255&t]}function R(t){return[255&t,t>>8&255]}function F(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function L(t){return I(t,52,8)}function V(t){return I(t,23,4)}function z(t,e,n){m(t.prototype,e,{get:function(){return this[n]}})}function B(t,e,n,r){var i=p(+n);if(i+e>t[P])throw w("Wrong index!");var o=t[A]._b,s=i+t[j],a=o.slice(s,s+e);return r?a:a.reverse()}function q(t,e,n,r,i,o){var s=p(+n);if(s+e>t[P])throw w("Wrong index!");for(var a=t[A]._b,u=s+t[j],c=r(+i),l=0;l<e;l++)a[u+l]=c[o?l:e-l-1]}if(s.ABV){if(!c((function(){g(1)}))||!c((function(){new g(-1)}))||c((function(){return new g,new g(1.5),new g(NaN),"ArrayBuffer"!=g.name}))){for(var U,W=(g=function(t){return l(this,g),new O(p(t))}).prototype=O.prototype,$=d(O),H=0;$.length>H;)(U=$[H++])in g||a(g,U,O[U]);o||(W.constructor=g)}var K=new b(new g(2)),G=b.prototype.setInt8;K.setInt8(0,2147483648),K.setInt8(1,2147483649),!K.getInt8(0)&&K.getInt8(1)||u(b.prototype,{setInt8:function(t,e){G.call(this,t,e<<24>>24)},setUint8:function(t,e){G.call(this,t,e<<24>>24)}},!0)}else g=function(t){l(this,g,"ArrayBuffer");var e=p(t);this._b=v.call(new Array(e),0),this[P]=e},b=function(t,e,n){l(this,b,"DataView"),l(t,g,"DataView");var r=t[P],i=h(e);if(i<0||i>r)throw w("Wrong offset!");if(i+(n=void 0===n?r-i:f(n))>r)throw w("Wrong length!");this[A]=t,this[j]=i,this[P]=n},i&&(z(g,"byteLength","_l"),z(b,"buffer","_b"),z(b,"byteLength","_l"),z(b,"byteOffset","_o")),u(b.prototype,{getInt8:function(t){return B(this,1,t)[0]<<24>>24},getUint8:function(t){return B(this,1,t)[0]},getInt16:function(t){var e=B(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=B(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return D(B(this,4,t,arguments[1]))},getUint32:function(t){return D(B(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return M(B(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return M(B(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){q(this,1,t,N,e)},setUint8:function(t,e){q(this,1,t,N,e)},setInt16:function(t,e){q(this,2,t,R,e,arguments[2])},setUint16:function(t,e){q(this,2,t,R,e,arguments[2])},setInt32:function(t,e){q(this,4,t,F,e,arguments[2])},setUint32:function(t,e){q(this,4,t,F,e,arguments[2])},setFloat32:function(t,e){q(this,4,t,V,e,arguments[2])},setFloat64:function(t,e){q(this,8,t,L,e,arguments[2])}});y(g,"ArrayBuffer"),y(b,"DataView"),a(b.prototype,s.VIEW,!0),e.ArrayBuffer=g,e.DataView=b},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(205)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.notifyOfNext=function(t,e){var n=function t(e){a===Number.MAX_SAFE_INTEGER&&(a=0);return a++,void 0===s[e][a]?a:t(e)}(t);return s[t][n]=o[t].push({id:n,callback:e})-1,n},e.cancelNotifyOfNext=function(t,e){"undefined"!==s[t][e]&&(o[t][s[t][e]].callback=u,delete s[t][e])},e.notifyOfAll=function(t,e){t.forEach((function(t){i[t]=e}))};var r=n(75),i={},o={},s={},a=0;var u=function(){};function c(t){i[t.type](t)}function l(t){if(0!==o[t.type].length){t.persist=u;var e=[],n={};o[t.type].forEach((function(r){"reNotifyOfNext"===r.callback(t)&&(n[r.id]=e.push(r)-1)})),o[t.type]=e,s[t.type]=n}}function h(t){c(t),l(t)}function f(t,e,n,i){o[e]=[],s[e]={},t.addEventListener(e,n,r.passiveEventSupport?{capture:i,passive:"click"!==e}:i)}if(r.deviceHasTouch&&(f(window,"click",c,!0),Object.keys(r.touchEvents).forEach((function(t){f(document,t,"touchstart"===t?h:c,!0)}))),r.deviceHasMouse){Object.keys(r.mouseEvents).forEach((function(t){f(document,t,"mouseenter"===t?h:c,!("mouseenter"===t||"mouseleave"===t))})),f(document,"dragstart",l,!0),r.passiveEventSupport&&f(document,"scroll",l,!0),o.mutation=[],s.mutation={};var p=(0,r.dummyEvent)("mutation");(window.MutationObserver?new MutationObserver(l.bind(null,p)):{observe:function(){}}).observe(document,{childList:!0,attributes:!0,subtree:!0,characterData:!0})}["focus","blur"].forEach((function(t){f(window,t,l,!1)})),f(document,"keydown",c,!0)},function(t,e,n){"use strict";(function(t){var r=n(0),i=n.n(r),o=n(27),s=n(76),a=n.n(s),u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:{};function c(t){var e=[];return{on:function(t){e.push(t)},off:function(t){e=e.filter((function(e){return e!==t}))},get:function(){return t},set:function(n,r){t=n,e.forEach((function(e){return e(t,r)}))}}}var l=i.a.createContext||function(t,e){var n,i,s,l="__create-react-context-"+((u[s="__global_unique_id__"]=(u[s]||0)+1)+"__"),h=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).emitter=c(e.props.value),e}Object(o.a)(n,t);var r=n.prototype;return r.getChildContext=function(){var t;return(t={})[l]=this.emitter,t},r.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var n,r=this.props.value,i=t.value;((o=r)===(s=i)?0!==o||1/o==1/s:o!=o&&s!=s)?n=0:(n="function"==typeof e?e(r,i):1073741823,0!==(n|=0)&&this.emitter.set(t.value,n))}var o,s},r.render=function(){return this.props.children},n}(r.Component);h.childContextTypes=((n={})[l]=a.a.object.isRequired,n);var f=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).state={value:t.getValue()},t.onUpdate=function(e,n){0!=((0|t.observedBits)&n)&&t.setState({value:t.getValue()})},t}Object(o.a)(n,e);var r=n.prototype;return r.componentWillReceiveProps=function(t){var e=t.observedBits;this.observedBits=null==e?1073741823:e},r.componentDidMount=function(){this.context[l]&&this.context[l].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=null==t?1073741823:t},r.componentWillUnmount=function(){this.context[l]&&this.context[l].off(this.onUpdate)},r.getValue=function(){return this.context[l]?this.context[l].get():t},r.render=function(){return(t=this.props.children,Array.isArray(t)?t[0]:t)(this.state.value);var t},n}(r.Component);return f.contextTypes=((i={})[l]=a.a.object,i),{Provider:h,Consumer:f}};e.a=l}).call(this,n(123))},function(t,e,n){var r=n(1044);t.exports=p,t.exports.parse=o,t.exports.compile=function(t,e){return a(o(t,e),e)},t.exports.tokensToFunction=a,t.exports.tokensToRegExp=f;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(t,e){for(var n,r=[],o=0,s=0,a="",l=e&&e.delimiter||"/";null!=(n=i.exec(t));){var h=n[0],f=n[1],p=n.index;if(a+=t.slice(s,p),s=p+h.length,f)a+=f[1];else{var d=t[s],m=n[2],v=n[3],y=n[4],g=n[5],b=n[6],_=n[7];a&&(r.push(a),a="");var w=null!=m&&null!=d&&d!==m,x="+"===b||"*"===b,O="?"===b||"*"===b,T=n[2]||l,S=y||g;r.push({name:v||o++,prefix:m||"",delimiter:T,optional:O,repeat:x,partial:w,asterisk:!!_,pattern:S?c(S):_?".*":"[^"+u(T)+"]+?"})}}return s<t.length&&(a+=t.substr(s)),a&&r.push(a),r}function s(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function a(t,e){for(var n=new Array(t.length),i=0;i<t.length;i++)"object"==typeof t[i]&&(n[i]=new RegExp("^(?:"+t[i].pattern+")$",h(e)));return function(e,i){for(var o="",a=e||{},u=(i||{}).pretty?s:encodeURIComponent,c=0;c<t.length;c++){var l=t[c];if("string"!=typeof l){var h,f=a[l.name];if(null==f){if(l.optional){l.partial&&(o+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(r(f)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var p=0;p<f.length;p++){if(h=u(f[p]),!n[c].test(h))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(h)+"`");o+=(0===p?l.prefix:l.delimiter)+h}}else{if(h=l.asterisk?encodeURI(f).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):u(f),!n[c].test(h))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+h+'"');o+=l.prefix+h}}else o+=l}return o}}function u(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function l(t,e){return t.keys=e,t}function h(t){return t&&t.sensitive?"":"i"}function f(t,e,n){r(e)||(n=e||n,e=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,s="",a=0;a<t.length;a++){var c=t[a];if("string"==typeof c)s+=u(c);else{var f=u(c.prefix),p="(?:"+c.pattern+")";e.push(c),c.repeat&&(p+="(?:"+f+p+")*"),s+=p=c.optional?c.partial?f+"("+p+")?":"(?:"+f+"("+p+"))?":f+"("+p+")"}}var d=u(n.delimiter||"/"),m=s.slice(-d.length)===d;return i||(s=(m?s.slice(0,-d.length):s)+"(?:"+d+"(?=$))?"),s+=o?"$":i&&m?"":"(?="+d+"|$)",l(new RegExp("^"+s,h(n)),e)}function p(t,e,n){return r(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return l(t,e)}(t,e):r(t)?function(t,e,n){for(var r=[],i=0;i<t.length;i++)r.push(p(t[i],e,n).source);return l(new RegExp("(?:"+r.join("|")+")",h(n)),e)}(t,e,n):function(t,e,n){return f(o(t,n),e,n)}(t,e,n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>{try{return new DOMException("","UnknownError")}catch(t){return t.name="UnknownError",t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>{if(null===t)return!1;const e=t.length;return e%2!=0?0!==t[Math.floor(e/2)]:t[e/2-1]+t[e/2]!==0}},function(t,e,n){var r=n(1040);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}},function(t,e,n){var r=n(1041),i=n(842);t.exports=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?i(t):e}},function(t,e){function n(){return t.exports=n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},n.apply(this,arguments)}t.exports=n},function(t,e,n){(function(r,i){var o,s,a;s=[],void 0===(a="function"==typeof(o=function(){return function(){"use strict";var t=Object.prototype.hasOwnProperty;function e(t){var n,r;if(Array.isArray(t)){for(r=0;r<t.length;r++)e(t[r]);o(t)}else if(null!==t&&"object"==typeof t){for(n in t)t.hasOwnProperty(n)&&e(t[n]);o(t)}}function o(t){Object.isFrozen(t)||Object.freeze(t)}function s(t){return Object.isFrozen(t)?g(t,"shallow"):t}var a={copyProperties:function(t,e){var n;for(n in t)e[n]=t[n]},resolveTransformObject:function(t,e,n){var r,i;if("number"!=typeof n&&(n=0),++n>=10)return t;for(r in t)"string"==typeof t[r]&&0===t[r].indexOf("[%lktxp]")?(i=t[r].substring(8),e.hasOwnProperty(i)&&(t[r]=e[i])):"object"==typeof t[r]&&(t[r]=a.resolveTransformObject(t[r],e,n));return t},resolveTransformParams:function(t,e){var n,r,i=[];if(void 0===e)return t;for(n=0;n<t.length;n++)r=g(t[n],"shallow-recurse-objects"),i.push(a.resolveTransformObject(r,e));return i},getIn:function(t,e,n){if(null!=t){if(!n)return t[e];if("string"==typeof e&&(e=e.split(".")),!Array.isArray(e))throw new Error("path must be a string or array. Found "+typeof e);for(var r=0,i=e.length;null!=t&&r<i;)t=t[e[r++]];return r&&r==i?t:void 0}}},u={aeq:c,lt:l,gt:h};function c(t,e){var n,r,i,o;if(t===e)return!0;if(!t||!e||!0===t||!0===e||t!=t||e!=e){switch(t){case void 0:case null:i=1;break;case!1:i=3;break;case!0:i=4;break;case"":i=5;break;default:i=t==t?9:0}switch(e){case void 0:case null:o=1;break;case!1:o=3;break;case!0:o=4;break;case"":o=5;break;default:o=e==e?9:0}if(9!==i||9!==o)return i===o}return n=Number(t),r=Number(e),n==n||r==r?n===r:(n=t.toString())==(r=e.toString())}function l(t,e,n){var r,i,o,s;if(!t||!e||!0===t||!0===e||t!=t||e!=e){switch(t){case void 0:case null:o=1;break;case!1:o=3;break;case!0:o=4;break;case"":o=5;break;default:o=t==t?9:0}switch(e){case void 0:case null:s=1;break;case!1:s=3;break;case!0:s=4;break;case"":s=5;break;default:s=e==e?9:0}if(9!==o||9!==s)return o===s?n:o<s}return r=Number(t),i=Number(e),r==r&&i==i?r<i||!(r>i)&&n:r==r&&i!=i||(i!=i||r==r)&&(t<e||!(t>e)&&(t==e?n:(r=t.toString())<(i=e.toString())||r==i&&n))}function h(t,e,n){var r,i,o,s;if(!t||!e||!0===t||!0===e||t!=t||e!=e){switch(t){case void 0:case null:o=1;break;case!1:o=3;break;case!0:o=4;break;case"":o=5;break;default:o=t==t?9:0}switch(e){case void 0:case null:s=1;break;case!1:s=3;break;case!0:s=4;break;case"":s=5;break;default:s=e==e?9:0}if(9!==o||9!==s)return o===s?n:o>s}return r=Number(t),i=Number(e),r==r&&i==i?r>i||!(r<i)&&n:(r!=r||i==i)&&(i==i&&r!=r||t>e||!(t<e)&&(t==e?n:(r=t.toString())>(i=e.toString())||r==i&&n))}function f(t,e,n){return u.aeq(t,e)?0:u.lt(t,e,!1)?n?1:-1:u.gt(t,e,!1)?n?-1:1:0}function p(t,e,n,r,i,o){var s,a=o||0,u=e[a],c=!1;if("object"==typeof t&&u in t&&(s=t[u]),a+1>=e.length)c=n(s,r,i);else if(Array.isArray(s))for(var l=0,h=s.length;l<h&&!0!==(c=p(s[l],e,n,r,i,a+1));l+=1);else c=p(s,e,n,r,i,a+1);return c}function d(e){return"string"==typeof e||Array.isArray(e)?function(t){return-1!==e.indexOf(t)}:"object"==typeof e&&null!==e?function(n){return t.call(e,n)}:null}function m(e,n,r){for(var i in n)if(t.call(n,i))return v[i](e,n[i],r);return!1}var v={$eq:function(t,e){return t===e},$aeq:function(t,e){return t==e},$ne:function(t,e){return e!=e?t==t:t!==e},$dteq:function(t,e){return u.aeq(t,e)},$gt:function(t,e){return u.gt(t,e,!1)},$gte:function(t,e){return u.gt(t,e,!0)},$lt:function(t,e){return u.lt(t,e,!1)},$lte:function(t,e){return u.lt(t,e,!0)},$jgt:function(t,e){return t>e},$jgte:function(t,e){return t>=e},$jlt:function(t,e){return t<e},$jlte:function(t,e){return t<=e},$between:function(t,e){return null!=t&&u.gt(t,e[0],!0)&&u.lt(t,e[1],!0)},$jbetween:function(t,e){return null!=t&&t>=e[0]&&t<=e[1]},$in:function(t,e){return-1!==e.indexOf(t)},$nin:function(t,e){return-1===e.indexOf(t)},$keyin:function(t,e){return t in e},$nkeyin:function(t,e){return!(t in e)},$definedin:function(t,e){return void 0!==e[t]},$undefinedin:function(t,e){return void 0===e[t]},$regex:function(t,e){return e.test(t)},$containsString:function(t,e){return"string"==typeof t&&-1!==t.indexOf(e)},$containsNone:function(t,e){return!v.$containsAny(t,e)},$containsAny:function(t,e){var n=d(t);return null!==n&&(Array.isArray(e)?e.some(n):n(e))},$contains:function(t,e){var n=d(t);return null!==n&&(Array.isArray(e)?e.every(n):n(e))},$elemMatch:function(t,e){return!!Array.isArray(t)&&t.some((function(t){return Object.keys(e).every((function(n){var r=e[n];return"object"==typeof r&&r||(r={$eq:r}),-1!==n.indexOf(".")?p(t,n.split("."),m,e[n],t):m(t[n],r,t)}))}))},$type:function(t,e,n){var r=typeof t;return"object"===r&&(Array.isArray(t)?r="array":t instanceof Date&&(r="date")),"object"!=typeof e?r===e:m(r,e,n)},$finite:function(t,e){return e===isFinite(t)},$size:function(t,e,n){return!!Array.isArray(t)&&("object"!=typeof e?t.length===e:m(t.length,e,n))},$len:function(t,e,n){return"string"==typeof t&&("object"!=typeof e?t.length===e:m(t.length,e,n))},$where:function(t,e){return!0===e(t)},$not:function(t,e,n){return!m(t,e,n)},$and:function(t,e,n){for(var r=0,i=e.length;r<i;r+=1)if(!m(t,e[r],n))return!1;return!0},$or:function(t,e,n){for(var r=0,i=e.length;r<i;r+=1)if(m(t,e[r],n))return!0;return!1},$exists:function(t,e){return e?void 0!==t:void 0===t}};["$eq","$aeq","$ne","$dteq","$gt","$gte","$lt","$lte","$jgt","$jgte","$jlt","$jlte","$type"].forEach((function(t){var e=v[t];v["$"+t]=function(t,n,r){if("string"==typeof n)return e(t,r[n]);if("function"==typeof n)return e(t,n(r));throw new Error("Invalid argument to $$ matcher")}}));var y={$eq:v.$eq,$aeq:!0,$dteq:!0,$gt:!0,$gte:!0,$lt:!0,$lte:!0,$in:!0,$between:!0};function g(t,e){if(null==t)return null;var n;switch(e||"parse-stringify"){case"parse-stringify":n=JSON.parse(JSON.stringify(t));break;case"jquery-extend-deep":n=jQuery.extend(!0,{},t);break;case"shallow":n=Object.create(t.constructor.prototype),Object.keys(t).map((function(e){n[e]=t[e]}));break;case"shallow-assign":n=Object.create(t.constructor.prototype),Object.assign(n,t);break;case"shallow-recurse-objects":n=g(t,"shallow"),Object.keys(t).forEach((function(e){"object"==typeof t[e]&&"Object"===t[e].constructor.name?n[e]=g(t[e],"shallow-recurse-objects"):Array.isArray(t[e])&&(n[e]=function(t,e){if("parse-stringify"==e)return g(t,e);for(var n=[],r=0,i=t.length;r<i;r++)n[r]=g(t[r],e);return n}(t[e],"shallow-recurse-objects"))}))}return n}function b(){try{return window&&void 0!==window.localStorage&&null!==window.localStorage}catch(t){return!1}}function _(){}function w(t,e){this.filename=t||"loki.db",this.collections=[],this.databaseVersion=1.5,this.engineVersion=1.5,this.autosave=!1,this.autosaveInterval=5e3,this.autosaveHandle=null,this.throttledSaves=!0,this.options={},this.persistenceMethod=null,this.persistenceAdapter=null,this.throttledSavePending=!1,this.throttledCallbacks=[],this.verbose=!(!e||!e.hasOwnProperty("verbose"))&&e.verbose,this.events={init:[],loaded:[],flushChanges:[],close:[],changes:[],warning:[]},e&&e.hasOwnProperty("env")?this.ENV=e.env:this.ENV=void 0!==r&&(r.android||r.NSObject)?"NATIVESCRIPT":"undefined"==typeof window||void 0!==r&&r.window&&void 0!==i?"NODEJS":"undefined"!=typeof document?-1===document.URL.indexOf("http://")&&-1===document.URL.indexOf("https://")?"CORDOVA":"BROWSER":"CORDOVA","undefined"===this.ENV&&(this.ENV="NODEJS"),this.configureOptions(e,!0),this.on("init",this.clearChanges)}function x(t){this.hashStore={},this.options=t||{},this.options.hasOwnProperty("asyncResponses")||(this.options.asyncResponses=!1),this.options.hasOwnProperty("asyncTimeout")||(this.options.asyncTimeout=50)}function O(t,e){if(this.mode="reference",this.adapter=null,this.options=e||{},this.dbref=null,this.dbname="",this.pageIterator={},!t)throw new Error("LokiPartitioningAdapter requires a (non-reference mode) adapter on construction");if("reference"===t.mode)throw new Error("LokiPartitioningAdapter cannot be instantiated with a reference mode adapter");this.adapter=t,this.options.hasOwnProperty("paging")||(this.options.paging=!1),this.options.hasOwnProperty("pageSize")||(this.options.pageSize=26214400),this.options.hasOwnProperty("delimiter")||(this.options.delimiter="$<\n")}function T(){try{this.fs=n(1038)}catch(t){this.fs=null}}function S(){}function k(t,e){return e=e||{},this.collection=t,this.filteredrows=[],this.filterInitialized=!1,this}function C(t,e,n){this.collection=t,this.name=e,this.rebuildPending=!1,this.options=n||{},this.options.hasOwnProperty("persistent")||(this.options.persistent=!1),this.options.hasOwnProperty("sortPriority")||(this.options.sortPriority="passive"),this.options.hasOwnProperty("minRebuildInterval")||(this.options.minRebuildInterval=1),this.resultset=new k(t),this.resultdata=[],this.resultsdirty=!1,this.cachedresultset=null,this.filterPipeline=[],this.collection.disableFreeze||Object.freeze(this.filterPipeline),this.sortFunction=null,this.sortCriteria=null,this.sortCriteriaSimple=null,this.sortDirty=!1,this.events={rebuild:[],filter:[],sort:[]}}function E(e,n){this.name=e,this.data=[],this.idIndex=[],this.binaryIndices={},this.constraints={unique:{},exact:{}},this.uniqueNames=[],this.transforms={},this.objType=e,this.dirty=!0,this.cachedIndex=null,this.cachedBinaryIndex=null,this.cachedData=null;var r=this;(n=n||{}).hasOwnProperty("unique")&&(Array.isArray(n.unique)||(n.unique=[n.unique]),n.unique.forEach((function(t){r.uniqueNames.push(t),r.constraints.unique[t]=new L(t)}))),n.hasOwnProperty("exact")&&n.exact.forEach((function(t){r.constraints.exact[t]=new V(t)})),this.adaptiveBinaryIndices=!n.hasOwnProperty("adaptiveBinaryIndices")||n.adaptiveBinaryIndices,this.transactional=!!n.hasOwnProperty("transactional")&&n.transactional,this.cloneObjects=!!n.hasOwnProperty("clone")&&n.clone,this.cloneMethod=n.hasOwnProperty("cloneMethod")?n.cloneMethod:"parse-stringify",this.asyncListeners=!!n.hasOwnProperty("asyncListeners")&&n.asyncListeners,this.disableMeta=!!n.hasOwnProperty("disableMeta")&&n.disableMeta,this.disableChangesApi=!n.hasOwnProperty("disableChangesApi")||n.disableChangesApi,this.disableDeltaChangesApi=!n.hasOwnProperty("disableDeltaChangesApi")||n.disableDeltaChangesApi,this.disableChangesApi&&(this.disableDeltaChangesApi=!0),this.autoupdate=!!n.hasOwnProperty("autoupdate")&&n.autoupdate,this.serializableIndices=!n.hasOwnProperty("serializableIndices")||n.serializableIndices,this.disableFreeze=!n.hasOwnProperty("disableFreeze")||n.disableFreeze,this.ttl={age:null,ttlInterval:null,daemon:null},this.setTTL(n.ttl||-1,n.ttlInterval),this.maxId=0,this.DynamicViews=[],this.events={insert:[],update:[],"pre-insert":[],"pre-update":[],close:[],flushbuffer:[],error:[],delete:[],warning:[]},this.changes=[],this.dirtyIds=[],this.ensureId();var i=[];if(n&&n.indices)if("[object Array]"===Object.prototype.toString.call(n.indices))i=n.indices;else{if("string"!=typeof n.indices)throw new TypeError("Indices needs to be a string or an array of strings");i=[n.indices]}for(var o=0;o<i.length;o++)this.ensureIndex(i[o]);function s(t,e){var n=null!==e&&"object"==typeof e?Object.keys(e):null;if(n&&n.length&&["string","boolean","number"].indexOf(typeof e)<0){for(var i={},o=0;o<n.length;o++){var a=n[o];if(e.hasOwnProperty(a))if(!t.hasOwnProperty(a)||r.uniqueNames.indexOf(a)>=0||"$loki"==a||"meta"==a)i[a]=e[a];else{var u=s(t[a],e[a]);void 0!==u&&u!={}&&(i[a]=u)}}return 0===Object.keys(i).length?void 0:i}return t===e?void 0:e}function a(){r.changes=[]}this.observerCallback=function(e){var n="function"==typeof Set?new Set:[];n.add||(n.add=function(t){return-1===this.indexOf(t)&&this.push(t),this}),e.forEach((function(t){n.add(t.object)})),n.forEach((function(e){if(!t.call(e,"$loki"))return r.removeAutoUpdateObserver(e);try{r.update(e)}catch(t){}}))},this.getChangeDelta=function(t,e){return e?s(e,t):JSON.parse(JSON.stringify(t))},this.getObjectDelta=s,this.getChanges=function(){return r.changes},this.flushChanges=a,this.setChangesApi=function(t){r.disableChangesApi=!t,t||(r.disableDeltaChangesApi=!1)},this.on("delete",(function(t){r.disableChangesApi||r.createChange(r.name,"R",t)})),this.on("warning",(function(t){r.lokiConsoleWrapper.warn(t)})),a()}function A(t){return-1!==t.indexOf(".")}function P(t){return parseFloat(t,10)}function j(t,e){return t+e}function I(t,e){return t-e}function M(t){return t.reduce(j,0)/t.length}function D(t,e,n){if(!1===n)return t[e];for(var r=e.split("."),i=t;r.length>0;)i=i[r.shift()];return i}function N(t,e,n){for(var r,i,o=0,s=t.length;o<s;){if(i=o+s>>1,0===(r=n.apply(null,[e,t[i]])))return{found:!0,index:i};r<0?s=i:o=i+1}return{found:!1,index:s}}function R(t){return function(e,n){return N(e,n,t)}}function F(){}function L(t){this.field=t,this.keyMap=Object.create(null),this.lokiMap=Object.create(null)}function V(t){this.index=Object.create(null),this.field=t}return _.prototype.events={},_.prototype.asyncListeners=!1,_.prototype.on=function(t,e){var n,r=this;return Array.isArray(t)?(t.forEach((function(t){r.on(t,e)})),e):((n=this.events[t])||(n=this.events[t]=[]),n.push(e),e)},_.prototype.emit=function(t){var e,n=this;if(!t||!this.events[t])throw new Error("No event "+t+" defined");this.events[t].length&&(e=Array.prototype.slice.call(arguments,1),this.events[t].forEach((function(t){n.asyncListeners?setTimeout((function(){t.apply(n,e)}),1):t.apply(n,e)})))},_.prototype.addListener=_.prototype.on,_.prototype.removeListener=function(t,e){var n=this;if(Array.isArray(t))t.forEach((function(t){n.removeListener(t,e)}));else if(this.events[t]){var r=this.events[t];r.splice(r.indexOf(e),1)}},w.prototype=new _,w.prototype.constructor=w,w.prototype.getIndexedAdapter=function(){return n(1037)},w.prototype.configureOptions=function(t,e){var n={fs:T,localStorage:S,memory:x};if(this.options={},this.persistenceMethod=null,this.persistenceAdapter=null,void 0!==t){if(this.options=t,this.options.hasOwnProperty("persistenceMethod")&&"function"==typeof n[t.persistenceMethod]&&(this.persistenceMethod=t.persistenceMethod,this.persistenceAdapter=new n[t.persistenceMethod]),this.options.hasOwnProperty("adapter")&&(this.persistenceMethod="adapter",this.persistenceAdapter=t.adapter,this.options.adapter=null,this.isIncremental="incremental"===this.persistenceAdapter.mode),t.autoload&&e){var r=this;setTimeout((function(){r.loadDatabase(t,t.autoloadCallback)}),1)}this.options.hasOwnProperty("autosaveInterval")&&(this.autosaveDisable(),this.autosaveInterval=parseInt(this.options.autosaveInterval,10)),this.options.hasOwnProperty("autosave")&&this.options.autosave&&(this.autosaveDisable(),this.autosave=!0,this.options.hasOwnProperty("autosaveCallback")?this.autosaveEnable(t,t.autosaveCallback):this.autosaveEnable()),this.options.hasOwnProperty("throttledSaves")&&(this.throttledSaves=this.options.throttledSaves)}this.options.hasOwnProperty("serializationMethod")||(this.options.serializationMethod="normal"),this.options.hasOwnProperty("destructureDelimiter")||(this.options.destructureDelimiter="$<\n"),null===this.persistenceAdapter&&(this.persistenceMethod={NODEJS:"fs",BROWSER:"localStorage",CORDOVA:"localStorage",MEMORY:"memory"}[this.ENV],this.persistenceMethod&&(this.persistenceAdapter=new n[this.persistenceMethod]))},w.prototype.copy=function(t){var e,n,r=new w(this.filename,{env:"NA"});if(t=t||{},r.loadJSONObject(this,{retainDirtyFlags:!0}),t.hasOwnProperty("removeNonSerializable")&&!0===t.removeNonSerializable)for(r.autosaveHandle=null,r.persistenceAdapter=null,e=r.collections.length,n=0;n<e;n++)r.collections[n].constraints=null,r.collections[n].ttl=null;return r},w.prototype.addCollection=function(t,e){var n,r=this.collections.length;if(e&&!0===e.disableMeta){if(!1===e.disableChangesApi)throw new Error("disableMeta option cannot be passed as true when disableChangesApi is passed as false");if(!1===e.disableDeltaChangesApi)throw new Error("disableMeta option cannot be passed as true when disableDeltaChangesApi is passed as false");if("number"==typeof e.ttl&&e.ttl>0)throw new Error("disableMeta option cannot be passed as true when ttl is enabled")}for(n=0;n<r;n+=1)if(this.collections[n].name===t)return this.collections[n];var i=new E(t,e);return i.isIncremental=this.isIncremental,this.collections.push(i),this.verbose&&(i.lokiConsoleWrapper=console),i},w.prototype.loadCollection=function(t){if(!t.name)throw new Error("Collection must have a name property to be loaded");this.collections.push(t)},w.prototype.getCollection=function(t){var e,n=this.collections.length;for(e=0;e<n;e+=1)if(this.collections[e].name===t)return this.collections[e];return this.emit("warning","collection "+t+" not found"),null},w.prototype.renameCollection=function(t,e){var n=this.getCollection(t);return n&&(n.name=e),n},w.prototype.listCollections=function(){for(var t=this.collections.length,e=[];t--;)e.push({name:this.collections[t].name,type:this.collections[t].objType,count:this.collections[t].data.length});return e},w.prototype.removeCollection=function(t){var e,n=this.collections.length;for(e=0;e<n;e+=1)if(this.collections[e].name===t){var r=new E(t,{}),i=this.collections[e];for(var o in i)i.hasOwnProperty(o)&&r.hasOwnProperty(o)&&(i[o]=r[o]);return void this.collections.splice(e,1)}},w.prototype.getName=function(){return this.name},w.prototype.serializeReplacer=function(t,e){switch(t){case"autosaveHandle":case"persistenceAdapter":case"constraints":case"ttl":return null;case"throttledSavePending":case"throttledCallbacks":return;case"lokiConsoleWrapper":return null;default:return e}},w.prototype.serialize=function(t){switch((t=t||{}).hasOwnProperty("serializationMethod")||(t.serializationMethod=this.options.serializationMethod),t.serializationMethod){case"normal":return JSON.stringify(this,this.serializeReplacer);case"pretty":return JSON.stringify(this,this.serializeReplacer,2);case"destructured":return this.serializeDestructured();default:return JSON.stringify(this,this.serializeReplacer)}},w.prototype.toJson=w.prototype.serialize,w.prototype.serializeDestructured=function(t){var e,n,r,i,o,s=[];if((t=t||{}).hasOwnProperty("partitioned")||(t.partitioned=!1),t.hasOwnProperty("delimited")||(t.delimited=!0),t.hasOwnProperty("delimiter")||(t.delimiter=this.options.destructureDelimiter),!0===t.partitioned&&t.hasOwnProperty("partition")&&t.partition>=0)return this.serializeCollection({delimited:t.delimited,delimiter:t.delimiter,collectionIndex:t.partition});for((o=new w(this.filename)).loadJSONObject(this),e=0;e<o.collections.length;e++)o.collections[e].data=[];if(!0===t.partitioned&&-1===t.partition)return o.serialize({serializationMethod:"normal"});for(s.push(o.serialize({serializationMethod:"normal"})),o=null,e=0;e<this.collections.length;e++)if(r=this.serializeCollection({delimited:t.delimited,delimiter:t.delimiter,collectionIndex:e}),!1===t.partitioned&&!1===t.delimited){if(!Array.isArray(r))throw new Error("a nondelimited, non partitioned collection serialization did not return an expected array");for(i=r.length,n=0;n<i;n++)s.push(r[n]),r[n]=null;s.push("")}else s.push(r);return t.partitioned?(t.delimited,s):t.delimited?(s.push(""),s.join(t.delimiter)):(s.push(""),s)},w.prototype.serializeCollection=function(t){var e,n,r=[];if((t=t||{}).hasOwnProperty("delimited")||(t.delimited=!0),!t.hasOwnProperty("collectionIndex"))throw new Error("serializeCollection called without 'collectionIndex' option");for(e=this.collections[t.collectionIndex].data.length,r=[],n=0;n<e;n++)r.push(JSON.stringify(this.collections[t.collectionIndex].data[n]));return t.delimited?(r.push(""),r.join(t.delimiter)):r},w.prototype.deserializeDestructured=function(t,e){var n,r,i,o=[],s=0,a=1,u=!1;if((e=e||{}).hasOwnProperty("partitioned")||(e.partitioned=!1),e.hasOwnProperty("delimited")||(e.delimited=!0),e.hasOwnProperty("delimiter")||(e.delimiter=this.options.destructureDelimiter),e.partitioned){if(e.hasOwnProperty("partition"))return-1===e.partition?n=JSON.parse(t[0]):this.deserializeCollection(t[e.partition+1],e);for(r=(n=JSON.parse(t[0])).collections.length,s=0;s<r;s++)n.collections[s].data=this.deserializeCollection(t[s+1],e);return n}if(e.delimited){if(o=t.split(e.delimiter),t=null,0===o.length)return null}else o=t;for(r=(n=JSON.parse(o[0])).collections.length,o[0]=null;!u;)o[a],""===o[a]?++s>r&&(u=!0):(i=JSON.parse(o[a]),n.collections[s].data.push(i)),o[a++]=null;return n},w.prototype.deserializeCollection=function(t,e){var n,r,i=[];for((e=e||{}).hasOwnProperty("partitioned")||(e.partitioned=!1),e.hasOwnProperty("delimited")||(e.delimited=!0),e.hasOwnProperty("delimiter")||(e.delimiter=this.options.destructureDelimiter),e.delimited?(i=t.split(e.delimiter)).pop():i=t,r=i.length,n=0;n<r;n++)i[n]=JSON.parse(i[n]);return i},w.prototype.loadJSON=function(t,e){var n;if(0===t.length)n={};else switch(this.options.serializationMethod){case"normal":case"pretty":n=JSON.parse(t);break;case"destructured":n=this.deserializeDestructured(t);break;default:n=JSON.parse(t)}this.loadJSONObject(n,e)},w.prototype.loadJSONObject=function(t,n){var r,i,o,s,u,c,l=0,h=t.collections?t.collections.length:0;function f(t){var e,r=n[t.name];return r.proto?(e=r.inflate||a.copyProperties,function(t){var n=new r.proto;return e(t,n),n}):r.inflate}for(this.name=t.name,t.hasOwnProperty("throttledSaves")&&n&&!n.hasOwnProperty("throttledSaves")&&(this.throttledSaves=t.throttledSaves),this.collections=[];l<h;l+=1){if(r=t.collections[l],(i=this.addCollection(r.name,{disableChangesApi:r.disableChangesApi,disableDeltaChangesApi:r.disableDeltaChangesApi,disableMeta:r.disableMeta,disableFreeze:!r.hasOwnProperty("disableFreeze")||r.disableFreeze})).adaptiveBinaryIndices=!!r.hasOwnProperty("adaptiveBinaryIndices")&&!0===r.adaptiveBinaryIndices,i.transactional=r.transactional,i.asyncListeners=r.asyncListeners,i.cloneObjects=r.cloneObjects,i.cloneMethod=r.cloneMethod||"parse-stringify",i.autoupdate=r.autoupdate,i.changes=r.changes,i.dirtyIds=r.dirtyIds||[],n&&!0===n.retainDirtyFlags?i.dirty=r.dirty:i.dirty=!1,o=r.data.length,s=0,n&&n.hasOwnProperty(r.name))for(u=f(r);s<o;s++)c=u(r.data[s]),i.data[s]=c,i.addAutoUpdateObserver(c),i.disableFreeze||e(i.data[s]);else for(;s<o;s++)i.data[s]=r.data[s],i.addAutoUpdateObserver(i.data[s]),i.disableFreeze||e(i.data[s]);if(i.maxId=void 0===r.maxId?0:r.maxId,i.idIndex=r.idIndex,void 0!==r.binaryIndices&&(i.binaryIndices=r.binaryIndices),void 0!==r.transforms&&(i.transforms=r.transforms),i.ensureId(),i.uniqueNames=[],r.hasOwnProperty("uniqueNames"))for(i.uniqueNames=r.uniqueNames,s=0;s<i.uniqueNames.length;s++)i.ensureUniqueIndex(i.uniqueNames[s]);if(void 0!==r.DynamicViews){for(var p=0;p<r.DynamicViews.length;p++){var d=r.DynamicViews[p],m=i.addDynamicView(d.name,d.options);m.resultdata=d.resultdata,m.resultsdirty=d.resultsdirty,m.filterPipeline=d.filterPipeline,m.sortCriteriaSimple=d.sortCriteriaSimple,m.sortCriteria=d.sortCriteria,m.sortFunction=null,m.sortDirty=d.sortDirty,i.disableFreeze||(e(m.filterPipeline),m.sortCriteriaSimple?e(m.sortCriteriaSimple):m.sortCriteria&&e(m.sortCriteria)),m.resultset.filteredrows=d.resultset.filteredrows,m.resultset.filterInitialized=d.resultset.filterInitialized,m.rematerialize({removeWhereFilters:!0})}t.databaseVersion<1.5&&(i.ensureAllIndexes(!0),i.dirty=!0)}}},w.prototype.close=function(t){this.autosave&&(this.autosaveDisable(),this.autosaveDirty()&&(this.saveDatabase(t),t=void 0)),t&&this.on("close",t),this.emit("close")},w.prototype.generateChangesNotification=function(t){function e(t){return t.name}var n=[],r=t||this.collections.map(e);return this.collections.forEach((function(t){-1!==r.indexOf(e(t))&&(n=n.concat(t.getChanges()))})),n},w.prototype.serializeChanges=function(t){return JSON.stringify(this.generateChangesNotification(t))},w.prototype.clearChanges=function(){this.collections.forEach((function(t){t.flushChanges&&t.flushChanges()}))},x.prototype.loadDatabase=function(t,e){var n=this;this.options.asyncResponses?setTimeout((function(){n.hashStore.hasOwnProperty(t)?e(n.hashStore[t].value):e(null)}),this.options.asyncTimeout):this.hashStore.hasOwnProperty(t)?e(this.hashStore[t].value):e(null)},x.prototype.saveDatabase=function(t,e,n){var r,i=this;this.options.asyncResponses?setTimeout((function(){r=i.hashStore.hasOwnProperty(t)?i.hashStore[t].savecount:0,i.hashStore[t]={savecount:r+1,lastsave:new Date,value:e},n()}),this.options.asyncTimeout):(r=this.hashStore.hasOwnProperty(t)?this.hashStore[t].savecount:0,this.hashStore[t]={savecount:r+1,lastsave:new Date,value:e},n())},x.prototype.deleteDatabase=function(t,e){this.hashStore.hasOwnProperty(t)&&delete this.hashStore[t],"function"==typeof e&&e()},O.prototype.loadDatabase=function(t,e){var n=this;this.dbname=t,this.dbref=new w(t),this.adapter.loadDatabase(t,(function(t){if(t){"string"!=typeof t&&e(new Error("LokiPartitioningAdapter received an unexpected response from inner adapter loadDatabase()"));var r=JSON.parse(t);n.dbref.loadJSONObject(r),r=null,n.dbref.collections.length,0!==n.dbref.collections.length?(n.pageIterator={collection:0,pageIndex:0},n.loadNextPartition(0,(function(){e(n.dbref)}))):e(n.dbref)}else e(t)}))},O.prototype.loadNextPartition=function(t,e){var n=this.dbname+"."+t,r=this;if(!0===this.options.paging)return this.pageIterator.pageIndex=0,void this.loadNextPage(e);this.adapter.loadDatabase(n,(function(n){var i=r.dbref.deserializeCollection(n,{delimited:!0,collectionIndex:t});r.dbref.collections[t].data=i,++t<r.dbref.collections.length?r.loadNextPartition(t,e):e()}))},O.prototype.loadNextPage=function(t){var e=this.dbname+"."+this.pageIterator.collection+"."+this.pageIterator.pageIndex,n=this;this.adapter.loadDatabase(e,(function(e){var r=e.split(n.options.delimiter);e="";var i,o=r.length,s=""===r[o-1];for(s&&(r.pop(),""===r[(o=r.length)-1]&&1===o&&(r.pop(),o=r.length)),i=0;i<o;i++)n.dbref.collections[n.pageIterator.collection].data.push(JSON.parse(r[i])),r[i]=null;r=[],s?++n.pageIterator.collection<n.dbref.collections.length?n.loadNextPartition(n.pageIterator.collection,t):t():(n.pageIterator.pageIndex++,n.loadNextPage(t))}))},O.prototype.exportDatabase=function(t,e,n){var r,i=e.collections.length;for(this.dbref=e,this.dbname=t,this.dirtyPartitions=[-1],r=0;r<i;r++)e.collections[r].dirty&&this.dirtyPartitions.push(r);this.saveNextPartition((function(t){n(t)}))},O.prototype.saveNextPartition=function(t){var e=this,n=this.dirtyPartitions.shift(),r=this.dbname+(-1===n?"":"."+n);if(this.options.paging&&-1!==n)return this.pageIterator={collection:n,docIndex:0,pageIndex:0},void this.saveNextPage((function(n){0===e.dirtyPartitions.length?t(n):e.saveNextPartition(t)}));var i=this.dbref.serializeDestructured({partitioned:!0,delimited:!0,partition:n});this.adapter.saveDatabase(r,i,(function(n){n?t(n):0===e.dirtyPartitions.length?t(null):e.saveNextPartition(t)}))},O.prototype.saveNextPage=function(t){var e=this,n=this.dbref.collections[this.pageIterator.collection],r=this.dbname+"."+this.pageIterator.collection+"."+this.pageIterator.pageIndex,i=0,o=n.data.length,s=this.options.delimiter.length,a="",u="",c=!1,l=!1,h=function(n){u="",n&&t(n),c?t(null):(e.pageIterator.pageIndex++,e.saveNextPage(t))};for(0===n.data.length&&(c=!0);;)if(c||(a=JSON.stringify(n.data[this.pageIterator.docIndex]),u+=a,i+=a.length,++this.pageIterator.docIndex>=o&&(c=!0)),i>=this.options.pageSize&&(l=!0),l&&!c||(u+=this.options.delimiter,i+=s),c||l)return void this.adapter.saveDatabase(r,u,h)},T.prototype.loadDatabase=function(t,e){var n=this;this.fs.stat(t,(function(r,i){!r&&i.isFile()?n.fs.readFile(t,{encoding:"utf8"},(function(t,n){e(t?new Error(t):n)})):e(null)}))},T.prototype.saveDatabase=function(t,e,n){var r=this,i=t+"~";this.fs.writeFile(i,e,(function(e){e?n(new Error(e)):r.fs.rename(i,t,n)}))},T.prototype.deleteDatabase=function(t,e){this.fs.unlink(t,(function(t){t?e(new Error(t)):e()}))},S.prototype.loadDatabase=function(t,e){b()?e(localStorage.getItem(t)):e(new Error("localStorage is not available"))},S.prototype.saveDatabase=function(t,e,n){b()?(localStorage.setItem(t,e),n(null)):n(new Error("localStorage is not available"))},S.prototype.deleteDatabase=function(t,e){b()?(localStorage.removeItem(t),e(null)):e(new Error("localStorage is not available"))},w.prototype.throttledSaveDrain=function(t,e){var n=this,r=(new Date).getTime();if(this.throttledSaves||t(!0),(e=e||{}).hasOwnProperty("recursiveWait")||(e.recursiveWait=!0),e.hasOwnProperty("recursiveWaitLimit")||(e.recursiveWaitLimit=!1),e.hasOwnProperty("recursiveWaitLimitDuration")||(e.recursiveWaitLimitDuration=2e3),e.hasOwnProperty("started")||(e.started=(new Date).getTime()),this.throttledSaves&&this.throttledSavePending){if(!e.recursiveWait)return void this.throttledCallbacks.push(t);this.throttledCallbacks.push((function(){return n.throttledSavePending?e.recursiveWaitLimit&&r-e.started>e.recursiveWaitLimitDuration?void t(!1):void n.throttledSaveDrain(t,e):void t(!0)}))}else t(!0)},w.prototype.loadDatabaseInternal=function(t,e){var n=e||function(t,e){if(t)throw t},r=this;null!==this.persistenceAdapter?this.persistenceAdapter.loadDatabase(this.filename,(function(e){if("string"==typeof e){var i=!1;try{r.loadJSON(e,t||{}),i=!0}catch(t){n(t)}i&&(n(null),r.emit("loaded","database "+r.filename+" loaded"))}else{if(!e)return n(null),void r.emit("loaded","empty database "+r.filename+" loaded");if(e instanceof Error)return void n(e);if("object"==typeof e)return r.loadJSONObject(e,t||{}),n(null),void r.emit("loaded","database "+r.filename+" loaded");n("unexpected adapter response : "+e)}})):n(new Error("persistenceAdapter not configured"))},w.prototype.loadDatabase=function(t,e){var n=this;this.throttledSaves?this.throttledSaveDrain((function(r){if(r)return n.throttledSavePending=!0,void n.loadDatabaseInternal(t,(function(t){0===n.throttledCallbacks.length?n.throttledSavePending=!1:n.saveDatabase(),"function"==typeof e&&e(t)}));"function"==typeof e&&e(new Error("Unable to pause save throttling long enough to read database"))}),t):this.loadDatabaseInternal(t,e)},w.prototype.saveDatabaseInternal=function(t){var e=t||function(t){if(t)throw t},n=this;if(this.persistenceAdapter)if("reference"!==this.persistenceAdapter.mode&&this.autosaveClearFlags(),"incremental"===this.persistenceAdapter.mode){var r=this.copy({removeNonSerializable:!0}),i=this.collections.map((function(t){return t.dirtyIds}));this.collections.forEach((function(t){t.dirtyIds=[]})),this.persistenceAdapter.saveDatabase(this.filename,r,(function(t){t&&n.collections.forEach((function(t,e){t.dirtyIds=t.dirtyIds.concat(i[e])})),e(t)}))}else"reference"===this.persistenceAdapter.mode&&"function"==typeof this.persistenceAdapter.exportDatabase?this.persistenceAdapter.exportDatabase(this.filename,this.copy({removeNonSerializable:!0}),(function(t){n.autosaveClearFlags(),e(t)})):this.persistenceAdapter.saveDatabase(this.filename,this.serialize(),(function(t){e(t)}));else e(new Error("persistenceAdapter not configured"))},w.prototype.saveDatabase=function(t){if(this.throttledSaves)if(this.throttledSavePending)this.throttledCallbacks.push(t);else{var e=this.throttledCallbacks;this.throttledCallbacks=[],e.unshift(t),this.throttledSavePending=!0;var n=this;this.saveDatabaseInternal((function(t){n.throttledSavePending=!1,e.forEach((function(e){"function"==typeof e&&setTimeout((function(){e(t)}),1)})),n.throttledCallbacks.length>0&&n.saveDatabase()}))}else this.saveDatabaseInternal(t)},w.prototype.save=w.prototype.saveDatabase,w.prototype.deleteDatabase=function(t,e){var n=e||function(t,e){if(t)throw t};"function"!=typeof t||e||(n=t),null!==this.persistenceAdapter?this.persistenceAdapter.deleteDatabase(this.filename,(function(t){n(t)})):n(new Error("persistenceAdapter not configured"))},w.prototype.autosaveDirty=function(){for(var t=0;t<this.collections.length;t++)if(this.collections[t].dirty)return!0;return!1},w.prototype.autosaveClearFlags=function(){for(var t=0;t<this.collections.length;t++)this.collections[t].dirty=!1},w.prototype.autosaveEnable=function(t,e){this.autosave=!0;var n=5e3,r=this;void 0!==this.autosaveInterval&&null!==this.autosaveInterval&&(n=this.autosaveInterval),this.autosaveHandle=setInterval((function(){r.autosaveDirty()&&r.saveDatabase(e)}),n)},w.prototype.autosaveDisable=function(){void 0!==this.autosaveHandle&&null!==this.autosaveHandle&&(clearInterval(this.autosaveHandle),this.autosaveHandle=null)},k.prototype.reset=function(){return this.filteredrows.length>0&&(this.filteredrows=[]),this.filterInitialized=!1,this},k.prototype.toJSON=function(){var t=this.copy();return t.collection=null,t},k.prototype.limit=function(t){this.filterInitialized||0!==this.filteredrows.length||(this.filteredrows=this.collection.prepareFullDocIndex());var e=new k(this.collection);return e.filteredrows=this.filteredrows.slice(0,t),e.filterInitialized=!0,e},k.prototype.offset=function(t){this.filterInitialized||0!==this.filteredrows.length||(this.filteredrows=this.collection.prepareFullDocIndex());var e=new k(this.collection);return e.filteredrows=this.filteredrows.slice(t),e.filterInitialized=!0,e},k.prototype.copy=function(){var t=new k(this.collection);return this.filteredrows.length>0&&(t.filteredrows=this.filteredrows.slice()),t.filterInitialized=this.filterInitialized,t},k.prototype.branch=k.prototype.copy,k.prototype.transform=function(t,e){var n,r,i=this;if("string"==typeof t&&this.collection.transforms.hasOwnProperty(t)&&(t=this.collection.transforms[t]),"object"!=typeof t||!Array.isArray(t))throw new Error("Invalid transform");for(void 0!==e&&(t=a.resolveTransformParams(t,e)),n=0;n<t.length;n++)switch((r=t[n]).type){case"find":i.find(r.value);break;case"where":i.where(r.value);break;case"simplesort":i.simplesort(r.property,r.desc||r.options);break;case"compoundsort":i.compoundsort(r.value);break;case"sort":i.sort(r.value);break;case"limit":i=i.limit(r.value);break;case"offset":i=i.offset(r.value);break;case"map":i=i.map(r.value,r.dataOptions);break;case"eqJoin":i=i.eqJoin(r.joinData,r.leftJoinKey,r.rightJoinKey,r.mapFun,r.dataOptions);break;case"mapReduce":i=i.mapReduce(r.mapFunction,r.reduceFunction);break;case"update":i.update(r.value);break;case"remove":i.remove()}return i},k.prototype.sort=function(t){this.filterInitialized||0!==this.filteredrows.length||(this.filteredrows=this.collection.prepareFullDocIndex());var e,n,r=(e=t,n=this.collection.data,function(t,r){return e(n[t],n[r])});return this.filteredrows.sort(r),this},k.prototype.simplesort=function(t,e){var n,r=10,i=this.collection.data.length,o=this.filteredrows.length,s=this.collection.binaryIndices.hasOwnProperty(t);if(void 0!==e&&!1!==e||(e={desc:!1}),!0===e&&(e={desc:!0}),0===o){if(this.filterInitialized)return this;if(this.collection.binaryIndices.hasOwnProperty(t))return this.collection.ensureIndex(t),this.filteredrows=this.collection.binaryIndices[t].values.slice(0),e.desc&&this.filteredrows.reverse(),this;this.filteredrows=this.collection.prepareFullDocIndex()}else if(!e.disableIndexIntersect&&s&&(n=i/o,e.useJavascriptSorting&&(r=6),n<=r||e.forceIndexIntersect)){var u,c=this.filteredrows,l={};for(u=0;u<o;u++)l[c[u]]=!0;var h=this.collection.binaryIndices[t].values;return this.filteredrows=h.filter((function(t){return l[t]})),e.desc&&this.filteredrows.reverse(),this}if(e.useJavascriptSorting)return this.sort((function(e,n){return e[t]===n[t]?0:e[t]>n[t]?1:e[t]<n[t]?-1:void 0}));var p,d,m,v,y,g,b=(p=t,d=e.desc,m=this.collection.data,function(t,e){return~p.indexOf(".")?(g=p.split("."),v=a.getIn(m[t],g,!0),y=a.getIn(m[e],g,!0)):(v=m[t][p],y=m[e][p]),f(v,y,d)});return this.filteredrows.sort(b),this},k.prototype.compoundsort=function(t){if(0===t.length)throw new Error("Invalid call to compoundsort, need at least one property");var e;if(1===t.length)return e=t[0],Array.isArray(e)?this.simplesort(e[0],e[1]):this.simplesort(e,!1);for(var n=0,r=t.length;n<r;n+=1)e=t[n],Array.isArray(e)||(t[n]=[e,!1]);this.filterInitialized||0!==this.filteredrows.length||(this.filteredrows=this.collection.prepareFullDocIndex());var i,o,s=(i=t,o=this.collection.data,function(t,e){return function(t,e,n){for(var r,i,o,s,u,c=0,l=0,h=t.length;l<h;l++)if(~(i=(r=t[l])[0]).indexOf(".")?(u=i.split("."),o=a.getIn(e,u,!0),s=a.getIn(n,u,!0)):(o=e[i],s=n[i]),0!==(c=f(o,s,r[1])))return c;return 0}(i,o[t],o[e])});return this.filteredrows.sort(s),this},k.prototype.findOr=function(t){for(var e=null,n=0,r=0,i=[],o=[],s=0,a=(this.count(),0),u=t.length;a<u;a++)for(r=(e=this.branch().find(t[a]).filteredrows).length,n=0;n<r;n++)void 0===o[s=e[n]]&&(o[s]=!0,i.push(s));return this.filteredrows=i,this.filterInitialized=!0,this},k.prototype.$or=k.prototype.findOr,k.prototype.findAnd=function(t){for(var e=0,n=t.length;e<n;e++){if(0===this.count())return this;this.find(t[e])}return this},k.prototype.$and=k.prototype.findAnd,k.prototype.find=function(e,n){if(0===this.collection.data.length)return this.filteredrows=[],this.filterInitialized=!0,this;var r,i,o,s,u,c,l,h=e||"getAll",f=!1,d=[],m=[],g=null;if(n=n||!1,"object"==typeof h){for(r in h)(s={})[r]=h[r],m.push(s),t.call(h,r)&&(i=r,o=h[r]);if(m.length>1)return this.find({$and:m},n)}if(!i||"getAll"===h)return n&&(this.filterInitialized?this.filteredrows=this.filteredrows.slice(0,1):(this.filteredrows=this.collection.data.length>0?[0]:[],this.filterInitialized=!0)),this;if("$and"===i||"$or"===i)return this[i](o),n&&this.filteredrows.length>1&&(this.filteredrows=this.filteredrows.slice(0,1)),this;if(null===o||"object"!=typeof o||o instanceof Date)u="$eq",c=o;else{if("object"!=typeof o)throw new Error("Do not know what you want to do.");for(l in o)if(t.call(o,l)){u=l,c=o[l];break}}"$regex"!==u&&"object"!=typeof c||(c=function t(e,n){if("$regex"===e)Array.isArray(n)?n=new RegExp(n[0],n[1]):n instanceof RegExp||(n=new RegExp(n));else if("object"==typeof n)for(var r in n)"$regex"!==r&&"object"!=typeof n[r]||(n[r]=t(r,n[r]));return n}(u,c));var b=-1!==i.indexOf(".");!this.filterInitialized&&this.collection.binaryIndices[i]&&y[u]&&(!0!==this.collection.adaptiveBinaryIndices&&this.collection.ensureIndex(i),f=!0,g=this.collection.binaryIndices[i]);var _,w,x=v[u],O=this.collection.data,T=0,S=0,k=0;if(this.filterInitialized){if(S=(_=this.filteredrows).length,b){for(i=i.split("."),T=0;T<S;T++)if(p(w=O[k=_[T]],i,x,c,w)&&(d.push(k),n))return this.filteredrows=d,this}else for(T=0;T<S;T++)if(x((w=O[k=_[T]])[i],c,w)&&(d.push(k),n))return this.filteredrows=d,this}else if(f){var C=this.collection.calculateRange(u,i,c);if("$in"!==u){for(T=C[0];T<=C[1];T++)if(!0!==y[u]){if(y[u](a.getIn(O[g.values[T]],i,b),c)&&(d.push(g.values[T]),n))return this.filteredrows=d,this.filterInitialized=!0,this}else if(d.push(g.values[T]),n)return this.filteredrows=d,this.filterInitialized=!0,this}else for(T=0,S=C.length;T<S;T++)if(d.push(g.values[C[T]]),n)return this.filteredrows=d,this.filterInitialized=!0,this}else if(S=O.length,b){for(i=i.split("."),T=0;T<S;T++)if(p(w=O[T],i,x,c,w)&&(d.push(T),n))return this.filteredrows=d,this.filterInitialized=!0,this}else for(T=0;T<S;T++)if(x((w=O[T])[i],c,w)&&(d.push(T),n))return this.filteredrows=d,this.filterInitialized=!0,this;return this.filteredrows=d,this.filterInitialized=!0,this},k.prototype.where=function(t){var e,n=[];if("function"!=typeof t)throw new TypeError("Argument is not a stored view or a function");e=t;try{if(this.filterInitialized){for(var r=this.filteredrows.length;r--;)!0===e(this.collection.data[this.filteredrows[r]])&&n.push(this.filteredrows[r]);return this.filteredrows=n,this}for(var i=this.collection.data.length;i--;)!0===e(this.collection.data[i])&&n.push(i);return this.filteredrows=n,this.filterInitialized=!0,this}catch(t){throw t}},k.prototype.count=function(){return this.filterInitialized?this.filteredrows.length:this.collection.count()},k.prototype.data=function(t){var e,n,r,i,o=[],s=this.collection.data;if((t=t||{}).removeMeta&&!t.forceClones&&(t.forceClones=!0,t.forceCloneMethod=t.forceCloneMethod||"shallow"),!this.collection.disableDeltaChangesApi&&this.collection.disableFreeze&&(t.forceClones=!0,t.forceCloneMethod="parse-stringify"),!this.filterInitialized){if(0===this.filteredrows.length){if(this.collection.cloneObjects||t.forceClones){for(n=s.length,i=t.forceCloneMethod||this.collection.cloneMethod,r=0;r<n;r++)e=g(s[r],i),t.removeMeta&&(delete e.$loki,delete e.meta),o.push(e);return o}return s.slice()}this.filterInitialized=!0}var a=this.filteredrows;if(n=a.length,this.collection.cloneObjects||t.forceClones)for(i=t.forceCloneMethod||this.collection.cloneMethod,r=0;r<n;r++)e=g(s[a[r]],i),t.removeMeta&&(delete e.$loki,delete e.meta),o.push(e);else for(r=0;r<n;r++)o.push(s[a[r]]);return o},k.prototype.update=function(t){if("function"!=typeof t)throw new TypeError("Argument is not a function");this.filterInitialized||0!==this.filteredrows.length||(this.filteredrows=this.collection.prepareFullDocIndex());for(var e,n=this.filteredrows.length,r=this.collection.data,i=0;i<n;i++)this.disableFreeze&&!this.collection.cloneObjects&&this.collection.disableDeltaChangesApi?(t(r[this.filteredrows[i]]),this.collection.update(r[this.filteredrows[i]])):(t(e=g(r[this.filteredrows[i]],this.collection.cloneMethod)),this.collection.update(e));return this},k.prototype.remove=function(){return this.filterInitialized||0!==this.filteredrows.length||(this.filteredrows=this.collection.prepareFullDocIndex()),this.collection.removeBatchByPositions(this.filteredrows),this.filteredrows=[],this},k.prototype.mapReduce=function(t,e){try{return e(this.data().map(t))}catch(t){throw t}},k.prototype.eqJoin=function(t,e,n,r,i){var o,s,a,u,c=[],l=[],h="function"==typeof e,f="function"==typeof n,p={};if(s=(o=this.data(i)).length,t instanceof E)c=t.chain().data(i);else if(t instanceof k)c=t.data(i);else{if(!Array.isArray(t))throw new TypeError("joinData needs to be an array or result set");c=t}a=c.length;for(var d=0;d<a;d++)p[u=f?n(c[d]):c[d][n]]=c[d];r||(r=function(t,e){return{left:t,right:e}});for(var m=0;m<s;m++)u=h?e(o[m]):o[m][e],l.push(r(o[m],p[u]||{}));return this.collection=new E("joinData"),this.collection.insert(l),this.filteredrows=[],this.filterInitialized=!1,this},k.prototype.map=function(t,e){var n=this.data(e).map(t);return this.collection=new E("mappedData"),this.collection.insert(n),this.filteredrows=[],this.filterInitialized=!1,this},C.prototype=new _,C.prototype.constructor=C,C.prototype.getSort=function(){return this.sortFunction||this.sortCriteria||this.sortCriteriaSimple},C.prototype.rematerialize=function(t){var e,n,r;t=t||{},this.resultdata=[],this.resultsdirty=!0,this.resultset=new k(this.collection),(this.sortFunction||this.sortCriteria||this.sortCriteriaSimple)&&(this.sortDirty=!0);var i=Object.isFrozen(this.filterPipeline);if(t.hasOwnProperty("removeWhereFilters"))for(i&&(this.filterPipeline=this.filterPipeline.slice()),n=e=this.filterPipeline.length;n--;)"where"===this.filterPipeline[n].type&&(n!==this.filterPipeline.length-1&&(this.filterPipeline[n]=this.filterPipeline[this.filterPipeline.length-1]),this.filterPipeline.length--);var o=this.filterPipeline;for(this.filterPipeline=[],e=o.length,r=0;r<e;r++)this.applyFind(o[r].val,o[r].uid);return i&&Object.freeze(this.filterPipeline),this.data(),this.emit("rebuild",this),this},C.prototype.branchResultset=function(t,e){var n=this.resultset.branch();return void 0===t?n:n.transform(t,e)},C.prototype.toJSON=function(){var t=new C(this.collection,this.name,this.options);return t.resultset=this.resultset,t.resultdata=[],t.resultsdirty=!0,t.filterPipeline=this.filterPipeline,t.sortFunction=this.sortFunction,t.sortCriteria=this.sortCriteria,t.sortCriteriaSimple=this.sortCriteriaSimple||null,t.sortDirty=this.sortDirty,t.collection=null,t},C.prototype.removeFilters=function(t){t=t||{},this.rebuildPending=!1,this.resultset.reset(),this.resultdata=[],this.resultsdirty=!0,this.cachedresultset=null;var e=Object.isFrozen(this.filterPipeline),n=this.filterPipeline.length>0;this.filterPipeline=[],e&&Object.freeze(this.filterPipeline),this.sortFunction=null,this.sortCriteria=null,this.sortCriteriaSimple=null,this.sortDirty=!1,!0===t.queueSortPhase&&this.queueSortPhase(),n&&this.emit("filter")},C.prototype.applySort=function(t){return this.sortFunction=t,this.sortCriteria=null,this.sortCriteriaSimple=null,this.queueSortPhase(),this.emit("sort"),this},C.prototype.applySimpleSort=function(t,n){return this.sortCriteriaSimple={propname:t,options:n||!1},this.collection.disableFreeze||e(this.sortCriteriaSimple),this.sortCriteria=null,this.sortFunction=null,this.queueSortPhase(),this.emit("sort"),this},C.prototype.applySortCriteria=function(t){return this.sortCriteria=t,this.collection.disableFreeze||e(this.sortCriteria),this.sortCriteriaSimple=null,this.sortFunction=null,this.queueSortPhase(),this.emit("sort"),this},C.prototype.startTransaction=function(){return this.cachedresultset=this.resultset.copy(),this},C.prototype.commit=function(){return this.cachedresultset=null,this},C.prototype.rollback=function(){return this.resultset=this.cachedresultset,this.options.persistent&&(this.resultdata=this.resultset.data(),this.emit("rebuild",this)),this},C.prototype._indexOfFilterWithId=function(t){if("string"==typeof t||"number"==typeof t)for(var e=0,n=this.filterPipeline.length;e<n;e+=1)if(t===this.filterPipeline[e].uid)return e;return-1},C.prototype._addFilter=function(t){var n=Object.isFrozen(this.filterPipeline);n&&(this.filterPipeline=this.filterPipeline.slice()),this.collection.disableFreeze||e(t),this.filterPipeline.push(t),n&&Object.freeze(this.filterPipeline),this.resultset[t.type](t.val)},C.prototype.reapplyFilters=function(){this.resultset.reset(),this.cachedresultset=null,this.options.persistent&&(this.resultdata=[],this.resultsdirty=!0);var t=this.filterPipeline,e=Object.isFrozen(t);this.filterPipeline=[];for(var n=0,r=t.length;n<r;n+=1)this._addFilter(t[n]);return e&&Object.freeze(this.filterPipeline),this.sortFunction||this.sortCriteria||this.sortCriteriaSimple?this.queueSortPhase():this.queueRebuildEvent(),this.emit("filter"),this},C.prototype.applyFilter=function(t){var e=this._indexOfFilterWithId(t.uid);if(e>=0){var n=Object.isFrozen(this.filterPipeline);return n&&(this.filterPipeline=this.filterPipeline.slice()),this.filterPipeline[e]=t,n&&(o(t),Object.freeze(this.filterPipeline)),this.reapplyFilters()}return this.cachedresultset=null,this.options.persistent&&(this.resultdata=[],this.resultsdirty=!0),this._addFilter(t),this.sortFunction||this.sortCriteria||this.sortCriteriaSimple?this.queueSortPhase():this.queueRebuildEvent(),this.emit("filter"),this},C.prototype.applyFind=function(t,e){return this.applyFilter({type:"find",val:t,uid:e}),this},C.prototype.applyWhere=function(t,e){return this.applyFilter({type:"where",val:t,uid:e}),this},C.prototype.removeFilter=function(t){var e=this._indexOfFilterWithId(t);if(e<0)throw new Error("Dynamic view does not contain a filter with ID: "+t);var n=Object.isFrozen(this.filterPipeline);return n&&(this.filterPipeline=this.filterPipeline.slice()),this.filterPipeline.splice(e,1),n&&Object.freeze(this.filterPipeline),this.reapplyFilters(),this},C.prototype.count=function(){return this.resultsdirty&&(this.resultdata=this.resultset.data()),this.resultset.count()},C.prototype.data=function(t){return(this.sortDirty||this.resultsdirty)&&this.performSortPhase({suppressRebuildEvent:!0}),this.options.persistent?this.resultdata:this.resultset.data(t)},C.prototype.queueRebuildEvent=function(){if(!this.rebuildPending){this.rebuildPending=!0;var t=this;setTimeout((function(){t.rebuildPending&&(t.rebuildPending=!1,t.emit("rebuild",t))}),this.options.minRebuildInterval)}},C.prototype.queueSortPhase=function(){if(!this.sortDirty){this.sortDirty=!0;var t=this;"active"===this.options.sortPriority?setTimeout((function(){t.performSortPhase()}),this.options.minRebuildInterval):this.queueRebuildEvent()}},C.prototype.performSortPhase=function(t){(this.sortDirty||this.resultsdirty)&&(t=t||{},this.sortDirty&&(this.sortFunction?this.resultset.sort(this.sortFunction):this.sortCriteria?this.resultset.compoundsort(this.sortCriteria):this.sortCriteriaSimple&&this.resultset.simplesort(this.sortCriteriaSimple.propname,this.sortCriteriaSimple.options),this.sortDirty=!1),this.options.persistent&&(this.resultdata=this.resultset.data(),this.resultsdirty=!1),t.suppressRebuildEvent||this.emit("rebuild",this))},C.prototype.evaluateDocument=function(t,e){if(!this.resultset.filterInitialized)return this.options.persistent&&(this.resultdata=this.resultset.data()),void(this.sortFunction||this.sortCriteria||this.sortCriteriaSimple?this.queueSortPhase():this.queueRebuildEvent());var n,r=this.resultset.filteredrows,i=e?-1:r.indexOf(+t),o=r.length,s=new k(this.collection);s.filteredrows=[t],s.filterInitialized=!0;for(var a=0,u=this.filterPipeline.length;a<u;a++)s[(n=this.filterPipeline[a]).type](n.val);var c=0===s.filteredrows.length?-1:0;return-1!==i||-1!==c?-1===i&&-1!==c?(r.push(t),this.options.persistent&&this.resultdata.push(this.collection.data[t]),void(this.sortFunction||this.sortCriteria||this.sortCriteriaSimple?this.queueSortPhase():this.queueRebuildEvent())):-1!==i&&-1===c?(i<o-1?(r.splice(i,1),this.options.persistent&&this.resultdata.splice(i,1)):(r.length=o-1,this.options.persistent&&(this.resultdata.length=o-1)),void(this.sortFunction||this.sortCriteria||this.sortCriteriaSimple?this.queueSortPhase():this.queueRebuildEvent())):-1!==i&&-1!==c?(this.options.persistent&&(this.resultdata[i]=this.collection.data[t]),void(this.sortFunction||this.sortCriteria||this.sortCriteriaSimple?this.queueSortPhase():this.queueRebuildEvent())):void 0:void 0},C.prototype.removeDocument=function(t){var e,n,r,i={},o={},s=[],a=this.resultset,u=this.resultset.filteredrows,c=u.length;if(!this.resultset.filterInitialized)return this.options.persistent&&(this.resultdata=this.resultset.data()),void(this.sortFunction||this.sortCriteria||this.sortCriteriaSimple?this.queueSortPhase():this.queueRebuildEvent());for(Array.isArray(t)||(t=[t]),r=t.length,n=0;n<r;n++)i[t[n]]=!0;for(e=0;e<c;e++)i[u[e]]&&(o[e]=!0);Object.keys(o).length>0&&(this.resultset.filteredrows=this.resultset.filteredrows.filter((function(t,e){return!o[e]})),this.options.persistent&&(this.resultdata=this.resultdata.filter((function(t,e){return!o[e]}))),this.sortFunction||this.sortCriteria||this.sortCriteriaSimple?this.queueSortPhase():this.queueRebuildEvent());var l=function(t){return function(e){return e<a.filteredrows[t]}};for(c=a.filteredrows.length,e=0;e<c;e++)s=t.filter(l(e)),a.filteredrows[e]-=s.length},C.prototype.mapReduce=function(t,e){try{return e(this.data().map(t))}catch(t){throw t}},E.prototype=new _,E.prototype.contructor=E,E.prototype.createChange=function(t,e,n,r){this.changes.push({name:t,operation:e,obj:"U"!=e||this.disableDeltaChangesApi?JSON.parse(JSON.stringify(n)):this.getChangeDelta(n,r)})},E.prototype.insertMeta=function(t){var e,n;if(!this.disableMeta&&t)if(Array.isArray(t))for(e=t.length,n=0;n<e;n++)t[n].hasOwnProperty("meta")||(t[n].meta={}),t[n].meta.created=(new Date).getTime(),t[n].meta.revision=0;else t.meta||(t.meta={}),t.meta.created=(new Date).getTime(),t.meta.revision=0},E.prototype.updateMeta=function(t){return this.disableMeta||!t||(this.disableFreeze||((t=s(t)).meta=s(t.meta)),t.meta.updated=(new Date).getTime(),t.meta.revision+=1),t},E.prototype.createInsertChange=function(t){this.createChange(this.name,"I",t)},E.prototype.createUpdateChange=function(t,e){this.createChange(this.name,"U",t,e)},E.prototype.insertMetaWithChange=function(t){this.insertMeta(t),this.createInsertChange(t)},E.prototype.updateMetaWithChange=function(t,e,n){return t=this.updateMeta(t,n),this.createUpdateChange(t,e),t},E.prototype.lokiConsoleWrapper={log:function(){},warn:function(){},error:function(){}},E.prototype.addAutoUpdateObserver=function(t){this.autoupdate&&"function"==typeof Object.observe&&Object.observe(t,this.observerCallback,["add","update","delete","reconfigure","setPrototype"])},E.prototype.removeAutoUpdateObserver=function(t){this.autoupdate&&"function"==typeof Object.observe&&Object.unobserve(t,this.observerCallback)},E.prototype.addTransform=function(t,e){if(this.transforms.hasOwnProperty(t))throw new Error("a transform by that name already exists");this.transforms[t]=e},E.prototype.getTransform=function(t){return this.transforms[t]},E.prototype.setTransform=function(t,e){this.transforms[t]=e},E.prototype.removeTransform=function(t){delete this.transforms[t]},E.prototype.byExample=function(t){var e,n,r;for(e in r=[],t)t.hasOwnProperty(e)&&r.push(((n={})[e]=t[e],n));return{$and:r}},E.prototype.findObject=function(t){return this.findOne(this.byExample(t))},E.prototype.findObjects=function(t){return this.find(this.byExample(t))},E.prototype.ttlDaemonFuncGen=function(){var t=this,e=this.ttl.age;return function(){var n=Date.now();t.chain().where((function(t){var r=t.meta.updated||t.meta.created;return e<n-r})).remove()}},E.prototype.setTTL=function(t,e){t<0?clearInterval(this.ttl.daemon):(this.ttl.age=t,this.ttl.ttlInterval=e,this.ttl.daemon=setInterval(this.ttlDaemonFuncGen(),e))},E.prototype.prepareFullDocIndex=function(){for(var t=this.data.length,e=new Array(t),n=0;n<t;n+=1)e[n]=n;return e},E.prototype.configureOptions=function(t){(t=t||{}).hasOwnProperty("adaptiveBinaryIndices")&&(this.adaptiveBinaryIndices=t.adaptiveBinaryIndices,this.adaptiveBinaryIndices&&this.ensureAllIndexes())},E.prototype.ensureIndex=function(t,e){if(void 0===e&&(e=!1),null==t)throw new Error("Attempting to set index without an associated property");if((!this.binaryIndices[t]||e||this.binaryIndices[t].dirty)&&(!0!==this.adaptiveBinaryIndices||!this.binaryIndices.hasOwnProperty(t)||e)){var n={name:t,dirty:!0,values:this.prepareFullDocIndex()};this.binaryIndices[t]=n;var r,i,o,s,c,l=(r=t,i=this.data,c=!!~r.indexOf(".")&&r.split("."),function(t,e){if(c?(o=a.getIn(i[t],c,!0),s=a.getIn(i[e],c,!0)):(o=i[t][r],s=i[e][r]),o!==s){if(u.lt(o,s,!1))return-1;if(u.gt(o,s,!1))return 1}return 0});n.values.sort(l),n.dirty=!1,this.dirty=!0}},E.prototype.checkAllIndexes=function(e){var n,r=this.binaryIndices,i=[];for(n in r)t.call(r,n)&&(this.checkIndex(n,e)||i.push(n));return i},E.prototype.checkIndex=function(t,e){(e=e||{}).randomSamplingFactor&&!1!==e.randomSampling&&(e.randomSampling=!0),e.randomSamplingFactor=e.randomSamplingFactor||.1,(e.randomSamplingFactor<0||e.randomSamplingFactor>1)&&(e.randomSamplingFactor=.1);var n,r,i,o,s,u=!0;if(!this.binaryIndices.hasOwnProperty(t))throw new Error("called checkIndex on property without an index: "+t);if(this.adaptiveBinaryIndices||this.ensureIndex(t),(o=(s=this.binaryIndices[t].values).length)!==this.data.length)return e.repair&&this.ensureIndex(t,!0),!1;if(0===o)return!0;var c=-1!==t.indexOf(".");if(1===o)u=0===s[0];else if(e.randomSampling){if(v.$lte(a.getIn(this.data[s[0]],t,c),a.getIn(this.data[s[1]],t,c))||(u=!1),v.$lte(a.getIn(this.data[s[o-2]],t,c),a.getIn(this.data[s[o-1]],t,c))||(u=!1),u)for(r=Math.floor((o-1)*e.randomSamplingFactor),n=0;n<r-1;n++)if(i=Math.floor(Math.random()*(o-1)),!v.$lte(a.getIn(this.data[s[i]],t,c),a.getIn(this.data[s[i+1]],t,c))){u=!1;break}}else for(n=0;n<o-1;n++)if(!v.$lte(a.getIn(this.data[s[n]],t,c),a.getIn(this.data[s[n+1]],t,c))){u=!1;break}return!u&&e.repair&&this.ensureIndex(t,!0),u},E.prototype.getBinaryIndexValues=function(t){var e,n=this.binaryIndices[t].values,r=[];for(e=0;e<n.length;e++)r.push(a.getIn(this.data[n[e]],t,!0));return r},E.prototype.ensureUniqueIndex=function(t){var e=this.constraints.unique[t];return e||-1==this.uniqueNames.indexOf(t)&&this.uniqueNames.push(t),this.constraints.unique[t]=e=new L(t),this.data.forEach((function(t){e.set(t)})),e},E.prototype.ensureAllIndexes=function(e){var n,r=this.binaryIndices;for(n in r)t.call(r,n)&&this.ensureIndex(n,e)},E.prototype.flagBinaryIndexesDirty=function(){var e,n=this.binaryIndices;for(e in n)t.call(n,e)&&(n[e].dirty=!0)},E.prototype.flagBinaryIndexDirty=function(t){this.binaryIndices[t]&&(this.binaryIndices[t].dirty=!0)},E.prototype.count=function(t){return t?this.chain().find(t).filteredrows.length:this.data.length},E.prototype.ensureId=function(){var t=this.data.length,e=0;for(this.idIndex=[];e<t;e+=1)this.idIndex.push(this.data[e].$loki)},E.prototype.ensureIdAsync=function(t){this.async((function(){this.ensureId()}),t)},E.prototype.addDynamicView=function(t,e){var n=new C(this,t,e);return this.DynamicViews.push(n),n},E.prototype.removeDynamicView=function(t){this.DynamicViews=this.DynamicViews.filter((function(e){return e.name!==t}))},E.prototype.getDynamicView=function(t){for(var e=0;e<this.DynamicViews.length;e++)if(this.DynamicViews[e].name===t)return this.DynamicViews[e];return null},E.prototype.findAndUpdate=function(t,e){"function"==typeof t?this.updateWhere(t,e):this.chain().find(t).update(e)},E.prototype.findAndRemove=function(t){this.chain().find(t).remove()},E.prototype.insert=function(t,e){if(!Array.isArray(t))return this.insertOne(t);var n,r=[],i=e&&!this.cloneObjects&&this.adaptiveBinaryIndices&&Object.keys(this.binaryIndices).length>0;i&&(this.adaptiveBinaryIndices=!1);try{this.emit("pre-insert",t);for(var o=0,s=t.length;o<s;o++){if(!(n=this.insertOne(t[o],!0)))return;r.push(n)}}finally{i&&(this.ensureAllIndexes(),this.adaptiveBinaryIndices=!0)}return this.emit("insert",r),1===(r=this.cloneObjects?g(r,this.cloneMethod):r).length?r[0]:r},E.prototype.insertOne=function(t,n){var r,i=null;if("object"!=typeof t?i=new TypeError("Document needs to be an object"):null===t&&(i=new TypeError("Object cannot be null")),null!==i)throw this.emit("error",i),i;var o=this.cloneObjects?g(t,this.cloneMethod):t;if(this.disableFreeze||(o=s(o)),this.disableMeta||(void 0===o.meta?o.meta={revision:0,created:0}:this.disableFreeze||(o.meta=s(o.meta))),n||this.emit("pre-insert",o),this.add(o))return this.disableChangesApi?this.insertMeta(o):this.insertMetaWithChange(o),this.disableFreeze||e(o),r=this.cloneObjects?g(o,this.cloneMethod):o,n||this.emit("insert",r),this.addAutoUpdateObserver(r),r},E.prototype.clear=function(t){var e=this;t=t||{},this.data=[],this.idIndex=[],this.cachedIndex=null,this.cachedBinaryIndex=null,this.cachedData=null,this.maxId=0,this.DynamicViews=[],this.dirty=!0,!0===t.removeIndices?(this.binaryIndices={},this.constraints={unique:{},exact:{}},this.uniqueNames=[]):(Object.keys(this.binaryIndices).forEach((function(t){e.binaryIndices[t].dirty=!1,e.binaryIndices[t].values=[]})),this.constraints={unique:{},exact:{}},this.uniqueNames.forEach((function(t){e.ensureUniqueIndex(t)})))},E.prototype.update=function(n){var r,i,o;if(Array.isArray(n)){o=n.length,(r=!this.cloneObjects&&this.adaptiveBinaryIndices&&Object.keys(this.binaryIndices).length>0)&&(this.adaptiveBinaryIndices=!1);try{for(i=0;i<o;i+=1)this.update(n[i])}finally{r&&(this.ensureAllIndexes(),this.adaptiveBinaryIndices=!0)}}else{if(!t.call(n,"$loki"))throw new Error("Trying to update unsynced document. Please save the document first by using insert() or addMany()");try{this.startTransaction();var s,a,u,c,l,h=this.get(n.$loki,!0),f=this;if(!h)throw new Error("Trying to update a document not in collection.");s=h[0],u=h[1],a=this.cloneObjects||!this.disableDeltaChangesApi&&this.disableFreeze?g(n,this.cloneMethod):n,this.emit("pre-update",n),Object.keys(this.constraints.unique).forEach((function(t){f.constraints.unique[t].update(s,a)})),this.data[u]=a,a!==n&&this.addAutoUpdateObserver(n);for(var p=0;p<this.DynamicViews.length;p++)this.DynamicViews[p].evaluateDocument(u,!1);if(this.adaptiveBinaryIndices){var d=this.binaryIndices;for(c in d)this.adaptiveBinaryIndexUpdate(u,c)}else this.flagBinaryIndexesDirty();return this.idIndex[u]=a.$loki,this.isIncremental&&this.dirtyIds.push(a.$loki),this.commit(),this.dirty=!0,a=this.disableChangesApi?this.updateMeta(a):this.updateMetaWithChange(a,s),this.disableFreeze||e(a),l=this.cloneObjects?g(a,this.cloneMethod):a,this.emit("update",l,s),l}catch(t){throw this.rollback(),this.lokiConsoleWrapper.error(t.message),this.emit("error",t),t}}},E.prototype.add=function(e){if("object"!=typeof e)throw new TypeError("Object being added needs to be an object");if(void 0!==e.$loki)throw new Error("Document is already in collection, please use update()");try{this.startTransaction(),this.maxId++,isNaN(this.maxId)&&(this.maxId=this.data[this.data.length-1].$loki+1),e.$loki=this.maxId,this.disableMeta||(e.meta.version=0);var n,r=this.constraints.unique;for(n in r)t.call(r,n)&&r[n].set(e);this.idIndex.push(e.$loki),this.isIncremental&&this.dirtyIds.push(e.$loki),this.data.push(e);for(var i=this.data.length-1,o=this.DynamicViews.length,s=0;s<o;s++)this.DynamicViews[s].evaluateDocument(i,!0);if(this.adaptiveBinaryIndices){var a=this.binaryIndices;for(n in a)this.adaptiveBinaryIndexInsert(i,n)}else this.flagBinaryIndexesDirty();return this.commit(),this.dirty=!0,this.cloneObjects?g(e,this.cloneMethod):e}catch(t){throw this.rollback(),this.lokiConsoleWrapper.error(t.message),this.emit("error",t),t}},E.prototype.updateWhere=function(t,e){var n,r=this.where(t),i=0;try{for(;i<r.length;i++)n=e(r[i]),this.update(n)}catch(t){this.rollback(),this.lokiConsoleWrapper.error(t.message)}},E.prototype.removeWhere=function(t){var e;"function"==typeof t?(e=this.data.filter(t),this.remove(e)):this.chain().find(t).remove()},E.prototype.removeDataOnly=function(){this.remove(this.data.slice())},E.prototype.removeBatchByPositions=function(t){var e,n,r,i,o=t.length,s={},a=Object.keys(this.binaryIndices).length,u=Object.keys(this.constraints.unique).length,c=this.adaptiveBinaryIndices&&Object.keys(this.binaryIndices).length>0,l=this;try{for(this.startTransaction(),r=0;r<o;r++)s[this.idIndex[t[r]]]=!0;if((e=this.DynamicViews.length)>0||a>0||u>0){if(e>0)for(n=0;n<e;n++)this.DynamicViews[n].removeDocument(t);if(this.adaptiveBinaryIndices&&!c){var h,f=this.binaryIndices;for(h in f)this.adaptiveBinaryIndexRemove(t,h)}else this.flagBinaryIndexesDirty();u&&Object.keys(this.constraints.unique).forEach((function(e){for(r=0;r<o;r++)null!==(i=l.data[t[r]])[e]&&void 0!==i[e]&&l.constraints.unique[e].remove(i[e])}))}if(!this.disableChangesApi||this.events.delete.length>1)for(r=0;r<o;r++)this.emit("delete",this.data[t[r]]);if(this.data=this.data.filter((function(t){return!s[t.$loki]})),this.isIncremental)for(r=0;r<o;r++)this.dirtyIds.push(this.idIndex[t[r]]);this.idIndex=this.idIndex.filter((function(t){return!s[t]})),this.adaptiveBinaryIndices&&c&&(this.adaptiveBinaryIndices=!1,this.ensureAllIndexes(!0),this.adaptiveBinaryIndices=!0),this.commit(),this.dirty=!0}catch(t){return this.rollback(),c&&(this.adaptiveBinaryIndices=!0),this.lokiConsoleWrapper.error(t.message),this.emit("error",t),null}},E.prototype.removeBatch=function(t){var e,n=t.length,r=this.data.length,i={},o=[];for(e=0;e<r;e++)i[this.data[e].$loki]=e;for(e=0;e<n;e++)"object"==typeof t[e]?o.push(i[t[e].$loki]):o.push(i[t[e]]);this.removeBatchByPositions(o)},E.prototype.remove=function(e){if("number"==typeof e&&(e=this.get(e)),"object"!=typeof e)throw new Error("Parameter is not an object");if(Array.isArray(e))this.removeBatch(e);else{if(!t.call(e,"$loki"))throw new Error("Object is not a document stored in the collection");try{this.startTransaction();var n=this.get(e.$loki,!0),r=n[1],i=this;Object.keys(this.constraints.unique).forEach((function(t){null!==e[t]&&void 0!==e[t]&&i.constraints.unique[t].remove(e[t])}));for(var a=0;a<this.DynamicViews.length;a++)this.DynamicViews[a].removeDocument(r);if(this.adaptiveBinaryIndices){var u,c=this.binaryIndices;for(u in c)this.adaptiveBinaryIndexRemove(r,u)}else this.flagBinaryIndexesDirty();return this.data.splice(r,1),this.removeAutoUpdateObserver(e),this.idIndex.splice(r,1),this.isIncremental&&this.dirtyIds.push(e.$loki),this.commit(),this.dirty=!0,this.emit("delete",n[0]),this.disableFreeze||(e=s(e)),delete e.$loki,delete e.meta,this.disableFreeze||o(e),e}catch(t){return this.rollback(),this.lokiConsoleWrapper.error(t.message),this.emit("error",t),null}}},E.prototype.get=function(t,e){var n=e||!1,r=this.idIndex,i=r.length-1,o=0,s=o+i>>1;if(t="number"==typeof t?t:parseInt(t,10),isNaN(t))throw new TypeError("Passed id is not an integer");for(;r[o]<r[i];)r[s=o+i>>1]<t?o=s+1:i=s;return i===o&&r[o]===t?n?[this.data[o],o]:this.data[o]:null},E.prototype.getBinaryIndexPosition=function(t,e){var n=a.getIn(this.data[t],e,!0),r=this.binaryIndices[e].values,i=this.calculateRange("$eq",e,n);if(0===i[0]&&-1===i[1])return null;for(var o=i[0],s=i[1],u=o;u<=s;u++)if(r[u]===t)return u;return null},E.prototype.adaptiveBinaryIndexInsert=function(t,e){var n=-1!==e.indexOf("."),r=this.binaryIndices[e].values,i=a.getIn(this.data[t],e,n);!0===this.serializableIndices&&i instanceof Date&&(this.data[t][e]=i.getTime(),i=a.getIn(this.data[t],e));var o=0===r.length?0:this.calculateRangeStart(e,i,!0,n);this.binaryIndices[e].values.splice(o,0,t)},E.prototype.adaptiveBinaryIndexUpdate=function(t,e){var n,r=this.binaryIndices[e].values,i=r.length;for(n=0;n<i&&r[n]!==t;n++);this.binaryIndices[e].values.splice(n,1),this.adaptiveBinaryIndexInsert(t,e)},E.prototype.adaptiveBinaryIndexRemove=function(t,e,n){var r,i,o,s,a,u,c,l=this.binaryIndices[e],h={};if(Array.isArray(t)){if(1!==(s=t.length)){for(o=0;o<s;o++)h[t[o]]=!0;if(l.values=l.values.filter((function(t){return!h[t]})),!0===n)return;var f=t.slice();for(f.sort((function(t,e){return t-e})),r=l.values.length,i=0;i<r;i++){for(a=l.values[i],u=0,o=0;o<s&&a>f[o];o++)u++;l.values[i]-=u}return}t=t[0]}if(null===(c=this.getBinaryIndexPosition(t,e)))return null;if(l.values.splice(c,1),!0!==n)for(r=l.values.length,i=0;i<r;i++)l.values[i]>t&&l.values[i]--},E.prototype.calculateRangeStart=function(t,e,n,r){var i=this.data,o=this.binaryIndices[t].values,s=0,c=o.length-1,l=0;if(0===o.length)return-1;for(a.getIn(i[o[s]],t,r),a.getIn(i[o[c]],t,r);s<c;)l=s+c>>1,u.lt(a.getIn(i[o[l]],t,r),e,!1)?s=l+1:c=l;var h=s;return u.aeq(e,a.getIn(i[o[h]],t,r))?h:u.lt(e,a.getIn(i[o[h]],t,r),!1)?n?h:h-1:n?h+1:h},E.prototype.calculateRangeEnd=function(t,e,n){var r=this.data,i=this.binaryIndices[t].values,o=0,s=i.length-1,c=0;if(0===i.length)return-1;for(a.getIn(r[i[o]],t,n),a.getIn(r[i[s]],t,n);o<s;)c=o+s>>1,u.lt(e,a.getIn(r[i[c]],t,n),!1)?s=c:o=c+1;var l=s;return u.aeq(e,a.getIn(r[i[l]],t,n))?l:u.gt(e,a.getIn(r[i[l]],t,n),!1)?l+1:u.aeq(e,a.getIn(r[i[l-1]],t,n))?l-1:l},E.prototype.calculateRange=function(t,e,n){var r,i,o,s=this.data,c=this.binaryIndices[e].values,l=c.length-1;if(0===s.length)return[0,-1];var h=-1!==e.indexOf("."),f=a.getIn(s[c[0]],e,h),p=a.getIn(s[c[l]],e,h);switch(t){case"$eq":case"$aeq":case"$dteq":if(u.lt(n,f,!1)||u.gt(n,p,!1))return[0,-1];break;case"$gt":if(u.gt(n,p,!0))return[0,-1];if(u.gt(f,n,!1))return[0,l];break;case"$gte":if(u.gt(n,p,!1))return[0,-1];if(u.gt(f,n,!0))return[0,l];break;case"$lt":if(u.lt(n,f,!0))return[0,-1];if(u.lt(p,n,!1))return[0,l];break;case"$lte":if(u.lt(n,f,!1))return[0,-1];if(u.lt(p,n,!0))return[0,l];break;case"$between":return u.gt(n[0],p,!1)||u.lt(n[1],f,!1)?[0,-1]:((r=this.calculateRangeStart(e,n[0],!1,h))<0&&r++,(o=this.calculateRangeEnd(e,n[1],h))>l&&o--,u.gt(a.getIn(s[c[r]],e,h),n[0],!0)||r++,u.lt(a.getIn(s[c[o]],e,h),n[1],!0)||o--,o<r?[0,-1]:[r,o]);case"$in":for(var d=[],m=[],v=0,y=n.length;v<y;v++)for(var g=this.calculateRange("$eq",e,n[v]),b=g[0];b<=g[1];b++)void 0===d[b]&&(d[b]=!0,m.push(b));return m}switch(t){case"$eq":case"$aeq":case"$dteq":case"$gte":case"$lt":r=this.calculateRangeStart(e,n,!1,h),i=a.getIn(s[c[r]],e,h)}switch(t){case"$eq":case"$aeq":case"$dteq":case"$lte":case"$gt":o=this.calculateRangeEnd(e,n,h),a.getIn(s[c[o]],e,h)}switch(t){case"$eq":case"$aeq":case"$dteq":return u.aeq(i,n)?[r,o]:[0,-1];case"$gt":return u.aeq(a.getIn(s[c[o]],e,h),n)?[o+1,l]:[o,l];case"$gte":return u.aeq(a.getIn(s[c[r]],e,h),n)?[r,l]:[r+1,l];case"$lt":return u.aeq(a.getIn(s[c[r]],e,h),n)?[0,r-1]:[0,r];case"$lte":return u.aeq(a.getIn(s[c[o]],e,h),n)?[0,o]:[0,o-1];default:return[0,s.length-1]}},E.prototype.by=function(t,e){var n;if(void 0===e)return n=this,function(e){return n.by(t,e)};var r=this.constraints.unique[t].get(e);return this.cloneObjects?g(r,this.cloneMethod):r},E.prototype.findOne=function(t){t=t||{};var e=this.chain().find(t,!0).data();return Array.isArray(e)&&0===e.length?null:this.cloneObjects?g(e[0],this.cloneMethod):e[0]},E.prototype.chain=function(t,e){var n=new k(this);return void 0===t?n:n.transform(t,e)},E.prototype.find=function(t){return this.chain().find(t).data()},E.prototype.findOneUnindexed=function(t,e){for(var n=this.data.length;n--;)if(a.getIn(this.data[n],t,!0)===e)return this.data[n];return null},E.prototype.startTransaction=function(){if(this.transactional){this.cachedData=g(this.data,this.cloneMethod),this.cachedIndex=this.idIndex,this.cachedBinaryIndex=this.binaryIndices,this.cachedDirtyIds=this.dirtyIds;for(var t=0;t<this.DynamicViews.length;t++)this.DynamicViews[t].startTransaction()}},E.prototype.commit=function(){if(this.transactional){this.cachedData=null,this.cachedIndex=null,this.cachedBinaryIndex=null,this.cachedDirtyIds=null;for(var t=0;t<this.DynamicViews.length;t++)this.DynamicViews[t].commit()}},E.prototype.rollback=function(){if(this.transactional){null!==this.cachedData&&null!==this.cachedIndex&&(this.data=this.cachedData,this.idIndex=this.cachedIndex,this.binaryIndices=this.cachedBinaryIndex,this.dirtyIds=this.cachedDirtyIds);for(var t=0;t<this.DynamicViews.length;t++)this.DynamicViews[t].rollback()}},E.prototype.async=function(t,e){setTimeout((function(){if("function"!=typeof t)throw new TypeError("Argument passed for async execution is not a function");t(),e()}),0)},E.prototype.where=function(t){return this.chain().where(t).data()},E.prototype.mapReduce=function(t,e){try{return e(this.data.map(t))}catch(t){throw t}},E.prototype.eqJoin=function(t,e,n,r,i){return new k(this).eqJoin(t,e,n,r,i)},E.prototype.stages={},E.prototype.getStage=function(t){return this.stages[t]||(this.stages[t]={}),this.stages[t]},E.prototype.commitLog=[],E.prototype.stage=function(t,e){var n=JSON.parse(JSON.stringify(e));return this.getStage(t)[e.$loki]=n,n},E.prototype.commitStage=function(t,e){var n,r=this.getStage(t),i=(new Date).getTime();for(n in r)this.update(r[n]),this.commitLog.push({timestamp:i,message:e,data:JSON.parse(JSON.stringify(r[n]))});this.stages[t]={}},E.prototype.no_op=function(){},E.prototype.extract=function(t){for(var e=0,n=this.data.length,r=A(t),i=[];e<n;e+=1)i.push(D(this.data[e],t,r));return i},E.prototype.max=function(t){return Math.max.apply(null,this.extract(t))},E.prototype.min=function(t){return Math.min.apply(null,this.extract(t))},E.prototype.maxRecord=function(t){for(var e,n=0,r=this.data.length,i=A(t),o={index:0,value:void 0};n<r;n+=1)void 0!==e?e<D(this.data[n],t,i)&&(e=D(this.data[n],t,i),o.index=this.data[n].$loki):(e=D(this.data[n],t,i),o.index=this.data[n].$loki);return o.value=e,o},E.prototype.minRecord=function(t){for(var e,n=0,r=this.data.length,i=A(t),o={index:0,value:void 0};n<r;n+=1)void 0!==e?e>D(this.data[n],t,i)&&(e=D(this.data[n],t,i),o.index=this.data[n].$loki):(e=D(this.data[n],t,i),o.index=this.data[n].$loki);return o.value=e,o},E.prototype.extractNumerical=function(t){return this.extract(t).map(P).filter(Number).filter((function(t){return!isNaN(t)}))},E.prototype.avg=function(t){return M(this.extractNumerical(t))},E.prototype.stdDev=function(t){return e=this.extractNumerical(t),n=M(e),r=M(e.map((function(t){var e=t-n;return e*e}))),Math.sqrt(r);var e,n,r},E.prototype.mode=function(t){var e,n,r,i={},o=this.extract(t);for(n in o.forEach((function(t){i[t]?i[t]+=1:i[t]=1})),i)e?e<i[n]&&(r=n):(r=n,e=i[n]);return r},E.prototype.median=function(t){var e=this.extractNumerical(t);e.sort(I);var n=Math.floor(e.length/2);return e.length%2?e[n]:(e[n-1]+e[n])/2},F.prototype={keys:[],values:[],sort:function(t,e){return t<e?-1:t>e?1:0},setSort:function(t){this.bs=new R(t)},bs:function(){return new R(this.sort)},set:function(t,e){var n=this.bs(this.keys,t);n.found?this.values[n.index]=e:(this.keys.splice(n.index,0,t),this.values.splice(n.index,0,e))},get:function(t){return this.values[N(this.keys,t,this.sort).index]}},L.prototype.keyMap={},L.prototype.lokiMap={},L.prototype.set=function(t){var e=t[this.field];if(null!=e){if(this.keyMap[e])throw new Error("Duplicate key for property "+this.field+": "+e);this.keyMap[e]=t,this.lokiMap[t.$loki]=e}},L.prototype.get=function(t){return this.keyMap[t]},L.prototype.byId=function(t){return this.keyMap[this.lokiMap[t]]},L.prototype.update=function(t,e){if(this.lokiMap[t.$loki]!==e[this.field]){var n=this.lokiMap[t.$loki];this.set(e),this.keyMap[n]=void 0}else this.keyMap[t[this.field]]=e},L.prototype.remove=function(t){var e=this.keyMap[t];if(null==e)throw new Error("Key is not in unique index: "+this.field);this.keyMap[t]=void 0,this.lokiMap[e.$loki]=void 0},L.prototype.clear=function(){this.keyMap=Object.create(null),this.lokiMap=Object.create(null)},V.prototype={set:function(t,e){this.index[t]?this.index[t].push(e):this.index[t]=[e]},remove:function(t,e){var n=this.index[t];for(var r in n)n[r]==e&&n.splice(r,1);n.length<1&&(this.index[t]=void 0)},get:function(t){return this.index[t]},clear:function(t){this.index={}}},w.deepFreeze=e,w.freeze=o,w.unFreeze=s,w.LokiOps=v,w.Collection=E,w.DynamicView=C,w.Resultset=k,w.KeyValueStore=F,w.LokiMemoryAdapter=x,w.LokiPartitioningAdapter=O,w.LokiLocalStorageAdapter=S,w.LokiFsAdapter=T,w.persistenceAdapters={fs:T,localStorage:S},w.aeq=c,w.lt=l,w.gt=h,w.Comparators=u,w}()})?o.apply(e,s):o)||(t.exports=a)}).call(this,n(123),n(207))},,function(t,e,n){t.exports=!n(21)&&!n(10)((function(){return 7!=Object.defineProperty(n(134)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(9),i=n(19),o=n(67),s=n(135),a=n(22).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},function(t,e,n){var r=n(32),i=n(34),o=n(111)(!1),s=n(136)("IE_PROTO");t.exports=function(t,e){var n,a=i(t),u=0,c=[];for(n in a)n!=s&&r(a,n)&&c.push(n);for(;e.length>u;)r(a,n=e[u++])&&(~o(c,n)||c.push(n));return c}},function(t,e,n){var r=n(22),i=n(11),o=n(68);t.exports=n(21)?Object.defineProperties:function(t,e){i(t);for(var n,s=o(e),a=s.length,u=0;a>u;)r.f(t,n=s[u++],e[n]);return t}},function(t,e,n){var r=n(34),i=n(71).f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return s.slice()}}(t):i(r(t))}},function(t,e,n){"use strict";var r=n(21),i=n(68),o=n(112),s=n(104),a=n(26),u=n(103),c=Object.assign;t.exports=!c||n(10)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r}))?function(t,e){for(var n=a(t),c=arguments.length,l=1,h=o.f,f=s.f;c>l;)for(var p,d=u(arguments[l++]),m=h?i(d).concat(h(d)):i(d),v=m.length,y=0;v>y;)p=m[y++],r&&!f.call(d,p)||(n[p]=d[p]);return n}:c},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){"use strict";var r=n(44),i=n(12),o=n(180),s=[].slice,a={},u=function(t,e,n){if(!(e in a)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";a[e]=Function("F,a","return new F("+r.join(",")+")")}return a[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=s.call(arguments,1),a=function(){var r=n.concat(s.call(arguments));return this instanceof a?u(e,r.length,r):o(e,r,t)};return i(e.prototype)&&(a.prototype=e.prototype),a}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(9).parseInt,i=n(85).trim,o=n(140),s=/^[-+]?0[xX]/;t.exports=8!==r(o+"08")||22!==r(o+"0x16")?function(t,e){var n=i(String(t),3);return r(n,e>>>0||(s.test(n)?16:10))}:r},function(t,e,n){var r=n(9).parseFloat,i=n(85).trim;t.exports=1/r(n(140)+"-0")!=-1/0?function(t){var e=i(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){var r=n(53);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){var r=n(12),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){"use strict";var r=n(70),i=n(65),o=n(84),s={};n(33)(s,n(15)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(s,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var r=n(11);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e,n){var r=n(939);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(44),i=n(26),o=n(103),s=n(17);t.exports=function(t,e,n,a,u){r(e);var c=i(t),l=o(c),h=s(c.length),f=u?h-1:0,p=u?-1:1;if(n<2)for(;;){if(f in l){a=l[f],f+=p;break}if(f+=p,u?f<0:h<=f)throw TypeError("Reduce of empty array with no initial value")}for(;u?f>=0:h>f;f+=p)f in l&&(a=e(a,l[f],f,c));return a}},function(t,e,n){"use strict";var r=n(26),i=n(69),o=n(17);t.exports=[].copyWithin||function(t,e){var n=r(this),s=o(n.length),a=i(t,s),u=i(e,s),c=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===c?s:i(c,s))-u,s-a),h=1;for(u<a&&a<u+l&&(h=-1,u+=l-1,a+=l-1);l-- >0;)u in n?n[a]=n[u]:delete n[a],a+=h,u+=h;return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r=n(155);n(1)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,e,n){n(21)&&"g"!=/./g.flags&&n(22).f(RegExp.prototype,"flags",{configurable:!0,get:n(115)})},function(t,e,n){"use strict";var r,i,o,s,a=n(67),u=n(9),c=n(43),l=n(105),h=n(1),f=n(12),p=n(44),d=n(88),m=n(118),v=n(106),y=n(157).set,g=n(959)(),b=n(195),_=n(960),w=n(119),x=n(196),O=u.TypeError,T=u.process,S=T&&T.versions,k=S&&S.v8||"",C=u.Promise,E="process"==l(T),A=function(){},P=i=b.f,j=!!function(){try{var t=C.resolve(1),e=(t.constructor={})[n(15)("species")]=function(t){t(A,A)};return(E||"function"==typeof PromiseRejectionEvent)&&t.then(A)instanceof e&&0!==k.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),I=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},M=function(t,e){if(!t._n){t._n=!0;var n=t._c;g((function(){for(var r=t._v,i=1==t._s,o=0,s=function(e){var n,o,s,a=i?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{a?(i||(2==t._h&&R(t),t._h=1),!0===a?n=r:(l&&l.enter(),n=a(r),l&&(l.exit(),s=!0)),n===e.promise?c(O("Promise-chain cycle")):(o=I(n))?o.call(n,u,c):u(n)):c(r)}catch(t){l&&!s&&l.exit(),c(t)}};n.length>o;)s(n[o++]);t._c=[],t._n=!1,e&&!t._h&&D(t)}))}},D=function(t){y.call(u,(function(){var e,n,r,i=t._v,o=N(t);if(o&&(e=_((function(){E?T.emit("unhandledRejection",i,t):(n=u.onunhandledrejection)?n({promise:t,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)})),t._h=E||N(t)?2:1),t._a=void 0,o&&e.e)throw e.v}))},N=function(t){return 1!==t._h&&0===(t._a||t._c).length},R=function(t){y.call(u,(function(){var e;E?T.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})}))},F=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),M(e,!0))},L=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw O("Promise can't be resolved itself");(e=I(t))?g((function(){var r={_w:n,_d:!1};try{e.call(t,c(L,r,1),c(F,r,1))}catch(t){F.call(r,t)}})):(n._v=t,n._s=1,M(n,!1))}catch(t){F.call({_w:n,_d:!1},t)}}};j||(C=function(t){d(this,C,"Promise","_h"),p(t),r.call(this);try{t(c(L,this,1),c(F,this,1))}catch(t){F.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(89)(C.prototype,{then:function(t,e){var n=P(v(this,C));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=E?T.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&M(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=c(L,t,1),this.reject=c(F,t,1)},b.f=P=function(t){return t===C||t===s?new o(t):i(t)}),h(h.G+h.W+h.F*!j,{Promise:C}),n(84)(C,"Promise"),n(87)("Promise"),s=n(19).Promise,h(h.S+h.F*!j,"Promise",{reject:function(t){var e=P(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(a||!j),"Promise",{resolve:function(t){return x(a&&this===s?C:this,t)}}),h(h.S+h.F*!(j&&n(114)((function(t){C.all(t).catch(A)}))),"Promise",{all:function(t){var e=this,n=P(e),r=n.resolve,i=n.reject,o=_((function(){var n=[],o=0,s=1;m(t,!1,(function(t){var a=o++,u=!1;n.push(void 0),s++,e.resolve(t).then((function(t){u||(u=!0,n[a]=t,--s||r(n))}),i)})),--s||r(n)}));return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=P(e),r=n.reject,i=_((function(){m(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},function(t,e,n){"use strict";var r=n(44);function i(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new i(t)}},function(t,e,n){var r=n(11),i=n(12),o=n(195);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(22).f,i=n(70),o=n(89),s=n(43),a=n(88),u=n(118),c=n(146),l=n(191),h=n(87),f=n(21),p=n(59).fastKey,d=n(74),m=f?"_s":"size",v=function(t,e){var n,r=p(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,c){var l=t((function(t,r){a(t,l,e,"_i"),t._t=e,t._i=i(null),t._f=void 0,t._l=void 0,t[m]=0,null!=r&&u(r,n,t[c],t)}));return o(l.prototype,{clear:function(){for(var t=d(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[m]=0},delete:function(t){var n=d(this,e),r=v(n,t);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[m]--}return!!r},forEach:function(t){d(this,e);for(var n,r=s(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!v(d(this,e),t)}}),f&&r(l.prototype,"size",{get:function(){return d(this,e)[m]}}),l},def:function(t,e,n){var r,i,o=v(t,e);return o?o.v=n:(t._l=o={i:i=p(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=o),r&&(r.n=o),t[m]++,"F"!==i&&(t._i[i]=o)),t},getEntry:v,setStrong:function(t,e,n){c(t,e,(function(t,n){this._t=d(t,e),this._k=n,this._l=void 0}),(function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?l(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,l(1))}),n?"entries":"values",!n,!0),h(e)}}},function(t,e,n){"use strict";var r=n(89),i=n(59).getWeak,o=n(11),s=n(12),a=n(88),u=n(118),c=n(48),l=n(32),h=n(74),f=c(5),p=c(6),d=0,m=function(t){return t._l||(t._l=new v)},v=function(){this.a=[]},y=function(t,e){return f(t.a,(function(t){return t[0]===e}))};v.prototype={get:function(t){var e=y(this,t);if(e)return e[1]},has:function(t){return!!y(this,t)},set:function(t,e){var n=y(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=p(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,o){var c=t((function(t,r){a(t,c,e,"_i"),t._t=e,t._i=d++,t._l=void 0,null!=r&&u(r,n,t[o],t)}));return r(c.prototype,{delete:function(t){if(!s(t))return!1;var n=i(t);return!0===n?m(h(this,e)).delete(t):n&&l(n,this._i)&&delete n[this._i]},has:function(t){if(!s(t))return!1;var n=i(t);return!0===n?m(h(this,e)).has(t):n&&l(n,this._i)}}),c},def:function(t,e,n){var r=i(o(e),!0);return!0===r?m(t).set(e,n):r[t._i]=n,t},ufstore:m}},function(t,e,n){var r=n(45),i=n(17);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=i(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){var r=n(71),i=n(112),o=n(11),s=n(9).Reflect;t.exports=s&&s.ownKeys||function(t){var e=r.f(o(t)),n=i.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(17),i=n(142),o=n(54);t.exports=function(t,e,n,s){var a=String(o(t)),u=a.length,c=void 0===n?" ":String(n),l=r(e);if(l<=u||""==c)return a;var h=l-u,f=i.call(c,Math.ceil(h/c.length));return f.length>h&&(f=f.slice(0,h)),s?f+a:a+f}},function(t,e,n){var r=n(21),i=n(68),o=n(34),s=n(104).f;t.exports=function(t){return function(e){for(var n,a=o(e),u=i(a),c=u.length,l=0,h=[];c>l;)n=u[l++],r&&!s.call(a,n)||h.push(t?[n,a[n]]:a[n]);return h}}},function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function a(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{a({},"")}catch(t){a=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof h?e:h,o=Object.create(i.prototype),s=new O(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return S()}for(n.method=i,n.arg=o;;){var s=n.delegate;if(s){var a=_(s,n);if(a){if(a===l)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(t,n,s),o}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var l={};function h(){}function f(){}function p(){}var d={};d[i]=function(){return this};var m=Object.getPrototypeOf,v=m&&m(m(T([])));v&&v!==e&&n.call(v,i)&&(d=v);var y=p.prototype=h.prototype=Object.create(d);function g(t){["next","throw","return"].forEach((function(e){a(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){var r;this._invoke=function(i,o){function s(){return new e((function(r,s){!function r(i,o,s,a){var u=c(t[i],t,o);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"==typeof h&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,s,a)}),(function(t){r("throw",t,s,a)})):e.resolve(h).then((function(t){l.value=t,s(l)}),(function(t){return r("throw",t,s,a)}))}a(u.arg)}(i,o,r,s)}))}return r=r?r.then(s,s):s()}}function _(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,l;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function T(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return f.prototype=y.constructor=p,p.constructor=f,f.displayName=a(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,a(t,s,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},g(b.prototype),b.prototype[o]=function(){return this},t.AsyncIterator=b,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var s=new b(u(e,n,r,i),o);return t.isGeneratorFunction(n)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},g(y),a(y,s,"Generator"),y[i]=function(){return this},y.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=T,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return s.type="throw",s.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var a=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(a&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=t,s.arg=e,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;x(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";t.exports=n(1035)},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var u,c=[],l=!1,h=-1;function f(){l&&u&&(l=!1,u.length?c=u.concat(c):h=-1,c.length&&p())}function p(){if(!l){var t=a(f);l=!0;for(var e=c.length;e;){for(u=c,c=[];++h<e;)u&&u[h].run();h=-1,e=c.length}u=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function m(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new d(t,e)),1!==c.length||l||a(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){"use strict";n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(224),n(225),n(226),n(227),n(228),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(289),n(290),n(291)},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";n(293),n(294),n(295),n(296),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(325),n(326),n(327),n(328),n(329),n(330),n(331),n(332),n(333),n(334),n(335),n(336),n(337),n(338),n(339),n(340),n(341),n(342),n(343),n(344),n(345),n(346),n(347),n(348),n(349),n(350),n(351),n(352),n(353),n(354),n(355),n(356),n(357),n(358),n(359),n(360),n(361),n(362),n(363),n(364),n(365),n(366),n(367),n(368),n(369),n(370),n(371),n(372),n(373),n(374),n(375),n(376),n(377),n(378),n(379),n(380),n(381),n(382),n(383),n(384),n(385),n(386),n(387),n(388),n(389),n(390),n(391),n(392),n(393),n(394),n(395),n(396),n(397),n(398),n(399),n(400),n(401),n(402),n(403),n(404),n(405),n(406),n(407),n(408),n(409),n(410),n(411),n(412),n(413),n(414),n(415),n(416),n(417),n(418),n(419),n(420),n(421),n(422),n(423),n(424),n(425),n(426),n(427),n(428),n(429),n(430),n(431),n(432),n(433),n(434),n(435),n(436),n(437),n(438),n(439),n(440),n(441),n(442),n(443),n(444),n(445),n(446),n(447),n(448),n(449),n(450),n(451),n(452),n(453),n(454),n(455),n(456),n(457),n(458),n(459),n(460),n(461),n(462),n(463),n(464),n(465),n(466),n(467),n(468),n(469),n(470),n(471),n(472),n(473),n(474),n(475),n(476),n(477),n(478),n(479),n(480),n(481),n(482),n(483),n(484),n(485),n(486),n(487),n(488),n(489),n(490),n(491),n(492),n(493),n(494),n(495),n(496),n(497),n(498),n(499),n(500),n(501),n(502),n(503),n(504),n(505),n(506),n(507),n(508),n(509),n(510),n(511),n(512),n(513),n(514),n(515),n(516),n(517),n(518),n(519),n(520),n(521),n(522),n(523),n(524),n(525),n(526),n(527),n(528),n(529),n(530),n(531),n(532),n(533),n(534),n(535),n(536),n(537),n(538),n(539),n(540),n(541),n(542),n(543),n(544),n(545),n(546),n(547),n(548),n(549),n(550),n(551),n(552),n(553),n(554),n(555),n(556),n(557),n(558),n(559),n(560),n(561),n(562),n(563),n(564),n(565),n(566),n(567),n(568),n(569),n(570),n(571),n(572),n(573),n(574),n(575),n(576),n(577),n(578),n(579),n(580),n(581),n(582),n(583),n(584),n(585),n(586),n(587),n(588),n(589),n(590),n(591),n(592),n(593),n(594),n(595),n(596),n(597),n(598),n(599),n(600),n(601),n(602),n(603),n(604),n(605),n(606),n(607),n(608),n(609),n(610),n(611),n(612),n(613),n(614),n(615),n(616),n(617),n(618),n(619),n(620),n(621),n(622),n(623),n(624),n(625),n(626),n(627),n(628),n(629),n(630),n(631),n(632),n(633),n(634),n(635),n(636),n(637),n(638),n(639),n(640),n(641),n(642),n(643),n(644),n(645),n(646),n(647),n(648),n(649),n(650),n(651),n(652),n(653),n(654),n(655),n(656),n(657),n(658),n(659),n(660),n(661),n(662),n(663),n(664),n(665),n(666),n(667),n(668),n(669),n(670),n(671),n(672),n(673),n(674),n(675),n(676)},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";t.exports=n(1034)},function(t,e,n){"use strict";t.exports=function(t){var e=0;return function(n){return t&&Array.isArray(t)&&t.length?(t.forEach((function(t){return n=function t(n,r){if(!n.fn||"function"!=typeof n.fn)return r;if(!(n.regex&&n.regex instanceof RegExp))return r;if("string"==typeof r){for(var i=n.regex,o=null,s=[];null!==(o=i.exec(r));){var a=o.index,u=o[0];s.push(r.substring(0,a)),s.push(n.fn(++e,o)),r=r.substring(a+u.length,r.length+1),i.lastIndex=0}return s.push(r),s}return Array.isArray(r)?r.map((function(e){return t(n,e)})):r}(t,n)})),n):n}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>{try{return new DOMException("","AbortError")}catch(t){return t.code=20,t.name="AbortError",t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n,r)=>{const i=[];for(let t=0;t<r.numberOfInputs;t+=1)i.push(new Set);t.set(e,{activeInputs:i,outputs:new Set,passiveInputs:new WeakMap,renderer:n})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n)=>{t.set(e,{activeInputs:new Set,passiveInputs:new WeakMap,renderer:n})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n)=>{const r=t(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});n.connect(r).connect(r.context.destination);const i=()=>{n.removeEventListener("ended",i),n.disconnect(r),r.disconnect()};n.addEventListener("ended",i)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n)=>{t(e).add(n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const r={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",fftSize:2048,maxDecibels:-30,minDecibels:-100,smoothingTimeConstant:.8},i=(t,e,n,i,o,s)=>class extends t{constructor(t,n=r){const a=o(t),u={...r,...n},c=i(a,u);super(t,!1,c,s(a)?e():null),this._nativeAnalyserNode=c}get fftSize(){return this._nativeAnalyserNode.fftSize}set fftSize(t){this._nativeAnalyserNode.fftSize=t}get frequencyBinCount(){return this._nativeAnalyserNode.frequencyBinCount}get maxDecibels(){return this._nativeAnalyserNode.maxDecibels}set maxDecibels(t){const e=this._nativeAnalyserNode.maxDecibels;if(this._nativeAnalyserNode.maxDecibels=t,!(t>this._nativeAnalyserNode.minDecibels))throw this._nativeAnalyserNode.maxDecibels=e,n()}get minDecibels(){return this._nativeAnalyserNode.minDecibels}set minDecibels(t){const e=this._nativeAnalyserNode.minDecibels;if(this._nativeAnalyserNode.minDecibels=t,!(this._nativeAnalyserNode.maxDecibels>t))throw this._nativeAnalyserNode.minDecibels=e,n()}get smoothingTimeConstant(){return this._nativeAnalyserNode.smoothingTimeConstant}set smoothingTimeConstant(t){this._nativeAnalyserNode.smoothingTimeConstant=t}getByteFrequencyData(t){this._nativeAnalyserNode.getByteFrequencyData(t)}getByteTimeDomainData(t){this._nativeAnalyserNode.getByteTimeDomainData(t)}getFloatFrequencyData(t){this._nativeAnalyserNode.getFloatFrequencyData(t)}getFloatTimeDomainData(t){this._nativeAnalyserNode.getFloatTimeDomainData(t)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(6);const i=(t,e,n)=>()=>{const i=new WeakMap;return{render(o,s,a){const u=i.get(s);return void 0!==u?Promise.resolve(u):(async(o,s,a)=>{let u=e(o);if(!Object(r.a)(u,s)){const e={channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,fftSize:u.fftSize,maxDecibels:u.maxDecibels,minDecibels:u.minDecibels,smoothingTimeConstant:u.smoothingTimeConstant};u=t(s,e)}return i.set(s,u),await n(o,s,u,a),u})(o,s,a)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(95),i=n(90);const o={numberOfChannels:1},s=(t,e,n,s,a,u,c,l)=>{let h=null;return class f{constructor(f){if(null===a)throw new Error("Missing the native OfflineAudioContext constructor.");const{length:p,numberOfChannels:d,sampleRate:m}={...o,...f};null===h&&(h=new a(1,1,44100));const v=null!==s&&e(u,u)?new s({length:p,numberOfChannels:d,sampleRate:m}):h.createBuffer(d,p,m);if(0===v.numberOfChannels)throw n();return"function"!=typeof v.copyFromChannel?(c(v),Object(i.a)(v)):e(r.a,()=>Object(r.a)(v))||l(v),t.add(v),v}static[Symbol.hasInstance](e){return null!==e&&"object"==typeof e&&Object.getPrototypeOf(e)===f.prototype||t.has(e)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(5),i=n(49),o=n(60);const s={buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1},a=(t,e,n,a,u,c,l,h)=>class extends t{constructor(t,i=s){const o=c(t),a={...s,...i},h=u(o,a),f=l(o),p=f?e():null;super(t,!1,h,p),this._audioBufferSourceNodeRenderer=p,this._isBufferNullified=!1,this._isBufferSet=null!==i.buffer&&void 0!==i.buffer,this._nativeAudioBufferSourceNode=h,this._onended=null,this._playbackRate=n(this,f,h.playbackRate,r.b,r.a)}get buffer(){return this._isBufferNullified?null:this._nativeAudioBufferSourceNode.buffer}set buffer(t){try{this._nativeAudioBufferSourceNode.buffer=t}catch(e){if(null!==t||17!==e.code)throw e;if(null!==this._nativeAudioBufferSourceNode.buffer){const t=this._nativeAudioBufferSourceNode.buffer,e=t.numberOfChannels;for(let n=0;n<e;n+=1)t.getChannelData(n).fill(0);this._isBufferNullified=!0}}if(null!==t){if(this._isBufferSet)throw a();this._isBufferSet=!0}}get loop(){return this._nativeAudioBufferSourceNode.loop}set loop(t){this._nativeAudioBufferSourceNode.loop=t}get loopEnd(){return this._nativeAudioBufferSourceNode.loopEnd}set loopEnd(t){this._nativeAudioBufferSourceNode.loopEnd=t}get loopStart(){return this._nativeAudioBufferSourceNode.loopStart}set loopStart(t){this._nativeAudioBufferSourceNode.loopStart=t}get onended(){return this._onended}set onended(t){const e="function"==typeof t?h(this,t):null;this._nativeAudioBufferSourceNode.onended=e;const n=this._nativeAudioBufferSourceNode.onended;this._onended=null!==n&&n===e?t:n}get playbackRate(){return this._playbackRate}start(t=0,e=0,n){if(this._nativeAudioBufferSourceNode.start(t,e,n),null!==this._audioBufferSourceNodeRenderer)this._audioBufferSourceNodeRenderer.start=void 0===n?[t,e]:[t,e,n];else{Object(i.a)(this);const t=()=>{this._nativeAudioBufferSourceNode.removeEventListener("ended",t),setTimeout(()=>Object(o.a)(this),1e3)};this._nativeAudioBufferSourceNode.addEventListener("ended",t)}}stop(t=0){this._nativeAudioBufferSourceNode.stop(t),null!==this._audioBufferSourceNodeRenderer&&(this._audioBufferSourceNodeRenderer.stop=t)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(6);const i=(t,e,n,i,o)=>()=>{const s=new WeakMap;let a=null,u=null;return{set start(t){a=t},set stop(t){u=t},render(c,l,h){const f=s.get(l);return void 0!==f?Promise.resolve(f):(async(c,l,h)=>{let f=n(c);const p=Object(r.a)(f,l);if(!p){const t={buffer:f.buffer,channelCount:f.channelCount,channelCountMode:f.channelCountMode,channelInterpretation:f.channelInterpretation,loop:f.loop,loopEnd:f.loopEnd,loopStart:f.loopStart,playbackRate:f.playbackRate.value};f=e(l,t),null!==a&&f.start(...a),null!==u&&f.stop(u)}return s.set(l,f),p?await t(l,c.playbackRate,f.playbackRate,h):await i(l,c.playbackRate,f.playbackRate,h),await o(c,l,f,h),f})(c,l,h)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(126);const i=(t,e,n,i,o,s,a,u,c)=>class extends t{constructor(t={}){if(null===c)throw new Error("Missing the native AudioContext constructor.");const e=new c(t);if(null===e)throw i();if(!Object(r.a)(t.latencyHint))throw new TypeError(`The provided value '${t.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(void 0!==t.sampleRate&&e.sampleRate!==t.sampleRate)throw n();super(e,2);const{latencyHint:o}=t,{sampleRate:s}=e;if(this._baseLatency="number"==typeof e.baseLatency?e.baseLatency:"balanced"===o?512/s:"interactive"===o||void 0===o?256/s:"playback"===o?1024/s:128*Math.max(2,Math.min(128,Math.round(o*s/128)))/s,this._nativeAudioContext=e,this._state=null,"running"===e.state){this._state="suspended";const t=()=>{"suspended"===this._state&&(this._state=null),e.removeEventListener("statechange",t)};e.addEventListener("statechange",t)}}get baseLatency(){return this._baseLatency}get state(){return null!==this._state?this._state:this._nativeAudioContext.state}close(){return"closed"===this.state?this._nativeAudioContext.close().then(()=>{throw e()}):("suspended"===this._state&&(this._state=null),this._nativeAudioContext.close())}createMediaElementSource(t){return new o(this,{mediaElement:t})}createMediaStreamDestination(){return new s(this)}createMediaStreamSource(t){return new a(this,{mediaStream:t})}createMediaStreamTrackSource(t){return new u(this,{mediaStreamTrack:t})}resume(){return"suspended"===this._state?new Promise((t,e)=>{const n=()=>{this._nativeAudioContext.removeEventListener("statechange",n),"running"===this._nativeAudioContext.state?t():this.resume().then(t,e)};this._nativeAudioContext.addEventListener("statechange",n)}):this._nativeAudioContext.resume().catch(t=>{if(void 0===t||15===t.code)throw e();throw t})}suspend(){return this._nativeAudioContext.suspend().catch(t=>{if(void 0===t)throw e();throw t})}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r,i,o,s,a)=>class extends t{constructor(t,n){const r=o(t),u=s(r),c=i(r,n,u);super(t,!1,c,u?e(a):null),this._isNodeOfNativeOfflineAudioContext=u,this._nativeAudioDestinationNode=c}get channelCount(){return this._nativeAudioDestinationNode.channelCount}set channelCount(t){if(this._isNodeOfNativeOfflineAudioContext)throw r();if(t>this._nativeAudioDestinationNode.maxChannelCount)throw n();this._nativeAudioDestinationNode.channelCount=t}get channelCountMode(){return this._nativeAudioDestinationNode.channelCountMode}set channelCountMode(t){if(this._isNodeOfNativeOfflineAudioContext)throw r();this._nativeAudioDestinationNode.channelCountMode=t}get maxChannelCount(){return this._nativeAudioDestinationNode.maxChannelCount}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>{let e=null;return{render:(n,r,i)=>(null===e&&(e=(async(e,n,r)=>{const i=n.destination;return await t(e,n,i,r),i})(n,r,i)),e)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(5);const i=(t,e,n,i,o)=>(s,a)=>{const u=a.listener,{forwardX:c,forwardY:l,forwardZ:h,positionX:f,positionY:p,positionZ:d,upX:m,upY:v,upZ:y}=void 0===u.forwardX?(()=>{const c=e(a,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:9}),l=o(a),h=i(a,256,9,0),f=(e,i)=>{const o=n(a,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:i});return o.connect(c,0,e),o.start(),Object.defineProperty(o.offset,"defaultValue",{get:()=>i}),t({context:s},l,o.offset,r.b,r.a)};let p=[0,0,-1,0,1,0],d=[0,0,0];return h.onaudioprocess=({inputBuffer:t})=>{const e=[t.getChannelData(0)[0],t.getChannelData(1)[0],t.getChannelData(2)[0],t.getChannelData(3)[0],t.getChannelData(4)[0],t.getChannelData(5)[0]];e.some((t,e)=>t!==p[e])&&(u.setOrientation(...e),p=e);const n=[t.getChannelData(6)[0],t.getChannelData(7)[0],t.getChannelData(8)[0]];n.some((t,e)=>t!==d[e])&&(u.setPosition(...n),d=n)},c.connect(h),{forwardX:f(0,0),forwardY:f(1,0),forwardZ:f(2,-1),positionX:f(6,0),positionY:f(7,0),positionZ:f(8,0),upX:f(3,0),upY:f(4,1),upZ:f(5,0)}})():u;return{get forwardX(){return c},get forwardY(){return l},get forwardZ(){return h},get positionX(){return f},get positionY(){return p},get positionZ(){return d},get upX(){return m},get upY(){return v},get upZ(){return y}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(51);const i=(t,e,n,i,o,s,a,u,c,l,h,f)=>(p,d,m,v=null,y=null)=>{const g=new r.AutomationEventList(m.defaultValue),b=d?i(g):null,_={get defaultValue(){return m.defaultValue},get maxValue(){return null===v?m.maxValue:v},get minValue(){return null===y?m.minValue:y},get value(){return m.value},set value(t){m.value=t,_.setValueAtTime(t,p.context.currentTime)},cancelAndHoldAtTime(t){if("function"==typeof m.cancelAndHoldAtTime)null===b&&g.flush(p.context.currentTime),g.add(o(t)),m.cancelAndHoldAtTime(t);else{const e=Array.from(g).pop();null===b&&g.flush(p.context.currentTime),g.add(o(t));const n=Array.from(g).pop();m.cancelScheduledValues(t),e!==n&&void 0!==n&&("exponentialRampToValue"===n.type?m.exponentialRampToValueAtTime(n.value,n.endTime):"linearRampToValue"===n.type?m.linearRampToValueAtTime(n.value,n.endTime):"setValue"===n.type?m.setValueAtTime(n.value,n.startTime):"setValueCurve"===n.type&&m.setValueCurveAtTime(n.values,n.startTime,n.duration))}return _},cancelScheduledValues:t=>(null===b&&g.flush(p.context.currentTime),g.add(s(t)),m.cancelScheduledValues(t),_),exponentialRampToValueAtTime:(t,e)=>(null===b&&g.flush(p.context.currentTime),g.add(a(t,e)),m.exponentialRampToValueAtTime(t,e),_),linearRampToValueAtTime:(t,e)=>(null===b&&g.flush(p.context.currentTime),g.add(u(t,e)),m.linearRampToValueAtTime(t,e),_),setTargetAtTime:(t,e,n)=>(null===b&&g.flush(p.context.currentTime),g.add(c(t,e,n)),m.setTargetAtTime(t,e,n),_),setValueAtTime:(t,e)=>(null===b&&g.flush(p.context.currentTime),g.add(l(t,e)),m.setValueAtTime(t,e),_),setValueCurveAtTime(t,e,n){if(null!==f&&"webkitAudioContext"===f.name){const r=e+n,i=p.context.sampleRate,o=Math.ceil(e*i),s=Math.floor(r*i),a=s-o,u=new Float32Array(a);for(let r=0;r<a;r+=1){const s=(t.length-1)/n*((o+r)/i-e),a=Math.floor(s),c=Math.ceil(s);u[r]=a===c?t[a]:(1-(s-a))*t[a]+(1-(c-s))*t[c]}null===b&&g.flush(p.context.currentTime),g.add(h(u,e,n)),m.setValueCurveAtTime(u,e,n);const c=s/i;c<r&&_.setValueAtTime(u[u.length-1],c),_.setValueAtTime(t[t.length-1],r)}else null===b&&g.flush(p.context.currentTime),g.add(h(t,e,n)),m.setValueCurveAtTime(t,e,n);return _}};return n.set(_,m),e.set(_,p),t(_,b),_}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>({replay(e){for(const n of t)if("exponentialRampToValue"===n.type){const{endTime:t,value:r}=n;e.exponentialRampToValueAtTime(r,t)}else if("linearRampToValue"===n.type){const{endTime:t,value:r}=n;e.linearRampToValueAtTime(r,t)}else if("setTarget"===n.type){const{startTime:t,target:r,timeConstant:i}=n;e.setTargetAtTime(r,t,i)}else if("setValue"===n.type){const{startTime:t,value:r}=n;e.setValueAtTime(r,t)}else{if("setValueCurve"!==n.type)throw new Error("Can't apply an unknown automation.");{const{duration:t,startTime:r,values:i}=n;e.setValueCurveAtTime(i,r,t)}}}})},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(2),i=n(127);const o={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:1,numberOfOutputs:1,outputChannelCount:void 0,parameterData:{},processorOptions:{}},s=t=>{const e=[];for(let n=0;n<t;n+=1)e.push(1);return e},a=(t,e,n,a,u,c,l,h,f)=>class extends e{constructor(e,f,p=o){const d=c(e),m=l(d),v=(t=>({...t,outputChannelCount:void 0!==t.outputChannelCount?t.outputChannelCount:1===t.numberOfInputs&&1===t.numberOfOutputs?[t.channelCount]:s(t.numberOfOutputs)}))({...o,...p}),y=r.j.get(d),g=void 0===y?void 0:y.get(f),b=u(d,m?null:e.baseLatency,h,f,g,v);super(e,!0,b,m?a(f,v,g):null);const _=[];b.parameters.forEach((t,e)=>{const r=n(this,m,t);_.push([e,r])}),this._nativeAudioWorkletNode=b,this._onprocessorerror=null,this._parameters=new i.a(_),m&&t(d,this)}get onprocessorerror(){return this._onprocessorerror}set onprocessorerror(t){const e="function"==typeof t?f(this,t):null;this._nativeAudioWorkletNode.onprocessorerror=e;const n=this._nativeAudioWorkletNode.onprocessorerror;this._onprocessorerror=null!==n&&n===e?t:n}get parameters(){return null===this._parameters?this._nativeAudioWorkletNode.parameters:this._parameters}get port(){return this._nativeAudioWorkletNode.port}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r,i,o,s,a,u,c,l,h,f,p,d,m,v,y,g,b)=>class extends d{constructor(e,n){super(e,n),this._nativeContext=e,this._audioWorklet=void 0===t?void 0:{addModule:(e,n)=>t(this,e,n)}}get audioWorklet(){return this._audioWorklet}createAnalyser(){return new e(this)}createBiquadFilter(){return new i(this)}createBuffer(t,e,r){return new n({length:e,numberOfChannels:t,sampleRate:r})}createBufferSource(){return new r(this)}createChannelMerger(t=6){return new o(this,{numberOfInputs:t})}createChannelSplitter(t=6){return new s(this,{numberOfOutputs:t})}createConstantSource(){return new a(this)}createConvolver(){return new u(this)}createDelay(t=1){return new l(this,{maxDelayTime:t})}createDynamicsCompressor(){return new h(this)}createGain(){return new f(this)}createIIRFilter(t,e){return new p(this,{feedback:e,feedforward:t})}createOscillator(){return new m(this)}createPanner(){return new v(this)}createPeriodicWave(t,e,n={disableNormalization:!1}){return new y(this,{...n,imag:e,real:t})}createStereoPanner(){return new g(this)}createWaveShaper(){return new b(this)}decodeAudioData(t,e,n){return c(this._nativeContext,t).then(t=>("function"==typeof e&&e(t),t)).catch(t=>{throw"function"==typeof n&&n(t),t})}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(5);const i={Q:1,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:350,gain:0,type:"lowpass"},o=(t,e,n,o,s,a,u)=>class extends t{constructor(t,o=i){const c=a(t),l={...i,...o},h=s(c,l),f=u(c);super(t,!1,h,f?n():null),this._Q=e(this,f,h.Q,r.b,r.a),this._detune=e(this,f,h.detune,1200*Math.log2(r.b),-1200*Math.log2(r.b)),this._frequency=e(this,f,h.frequency,t.sampleRate/2,0),this._gain=e(this,f,h.gain,40*Math.log10(r.b),r.a),this._nativeBiquadFilterNode=h}get detune(){return this._detune}get frequency(){return this._frequency}get gain(){return this._gain}get Q(){return this._Q}get type(){return this._nativeBiquadFilterNode.type}set type(t){this._nativeBiquadFilterNode.type=t}getFrequencyResponse(t,e,n){if(this._nativeBiquadFilterNode.getFrequencyResponse(t,e,n),t.length!==e.length||e.length!==n.length)throw o()}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(6);const i=(t,e,n,i,o)=>()=>{const s=new WeakMap;return{render(a,u,c){const l=s.get(u);return void 0!==l?Promise.resolve(l):(async(a,u,c)=>{let l=n(a);const h=Object(r.a)(l,u);if(!h){const t={Q:l.Q.value,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,detune:l.detune.value,frequency:l.frequency.value,gain:l.gain.value,type:l.type};l=e(u,t)}return s.set(u,l),h?(await t(u,a.Q,l.Q,c),await t(u,a.detune,l.detune,c),await t(u,a.frequency,l.frequency,c),await t(u,a.gain,l.gain,c)):(await i(u,a.Q,l.Q,c),await i(u,a.detune,l.detune,c),await i(u,a.frequency,l.frequency,c),await i(u,a.gain,l.gain,c)),await o(a,u,l,c),l})(a,u,c)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>(n,r)=>{const i=e.get(n);if(void 0!==i)return i;const o=t.get(n);if(void 0!==o)return o;try{const i=r();return i instanceof Promise?(t.set(n,i),i.catch(()=>!1).then(r=>(t.delete(n),e.set(n,r),r))):(e.set(n,i),i)}catch{return e.set(n,!1),!1}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const r={channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6},i=(t,e,n,i,o)=>class extends t{constructor(t,s=r){const a=i(t),u={...r,...s};super(t,!1,n(a,u),o(a)?e():null)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(6);const i=(t,e,n)=>()=>{const i=new WeakMap;return{render(o,s,a){const u=i.get(s);return void 0!==u?Promise.resolve(u):(async(o,s,a)=>{let u=e(o);if(!Object(r.a)(u,s)){const e={channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,numberOfInputs:u.numberOfInputs};u=t(s,e)}return i.set(s,u),await n(o,s,u,a),u})(o,s,a)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const r={channelCount:6,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:6},i=(t,e,n,i,o)=>class extends t{constructor(t,s=r){const a=i(t),u=(t=>({...t,channelCount:t.numberOfOutputs}))({...r,...s});super(t,!1,n(a,u),o(a)?e():null)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(6);const i=(t,e,n)=>()=>{const i=new WeakMap;return{render(o,s,a){const u=i.get(s);return void 0!==u?Promise.resolve(u):(async(o,s,a)=>{let u=e(o);if(!Object(r.a)(u,s)){const e={channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,numberOfOutputs:u.numberOfOutputs};u=t(s,e)}return i.set(s,u),await n(o,s,u,a),u})(o,s,a)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n,r,i)=>t(n,e,r,i)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(78);const i=t=>(e,n,i=0,o=0)=>{const s=e[i];if(void 0===s)throw t();return Object(r.a)(n)?s.connect(n,0,o):s.connect(n,0)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n)=>{const r=t(e,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),i=e.createBuffer(1,2,e.sampleRate);return r.buffer=i,r.loop=!0,r.connect(n),r.start(),()=>{r.stop(),r.disconnect(n)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(5),i=n(49),o=n(60);const s={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",offset:1},a=(t,e,n,a,u,c,l)=>class extends t{constructor(t,i=s){const o=u(t),l={...s,...i},h=a(o,l),f=c(o),p=f?n():null;super(t,!1,h,p),this._constantSourceNodeRenderer=p,this._nativeConstantSourceNode=h,this._offset=e(this,f,h.offset,r.b,r.a),this._onended=null}get offset(){return this._offset}get onended(){return this._onended}set onended(t){const e="function"==typeof t?l(this,t):null;this._nativeConstantSourceNode.onended=e;const n=this._nativeConstantSourceNode.onended;this._onended=null!==n&&n===e?t:n}start(t=0){if(this._nativeConstantSourceNode.start(t),null!==this._constantSourceNodeRenderer)this._constantSourceNodeRenderer.start=t;else{Object(i.a)(this);const t=()=>{this._nativeConstantSourceNode.removeEventListener("ended",t),setTimeout(()=>Object(o.a)(this),1e3)};this._nativeConstantSourceNode.addEventListener("ended",t)}}stop(t=0){this._nativeConstantSourceNode.stop(t),null!==this._constantSourceNodeRenderer&&(this._constantSourceNodeRenderer.stop=t)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(6);const i=(t,e,n,i,o)=>()=>{const s=new WeakMap;let a=null,u=null;return{set start(t){a=t},set stop(t){u=t},render(c,l,h){const f=s.get(l);return void 0!==f?Promise.resolve(f):(async(c,l,h)=>{let f=n(c);const p=Object(r.a)(f,l);if(!p){const t={channelCount:f.channelCount,channelCountMode:f.channelCountMode,channelInterpretation:f.channelInterpretation,offset:f.offset.value};f=e(l,t),null!==a&&f.start(a),null!==u&&f.stop(u)}return s.set(l,f),p?await t(l,c.offset,f.offset,h):await i(l,c.offset,f.offset,h),await o(c,l,f,h),f})(c,l,h)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>(t[0]=e,t[0])},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const r={buffer:null,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",disableNormalization:!1},i=(t,e,n,i,o)=>class extends t{constructor(t,s=r){const a=i(t),u={...r,...s},c=n(a,u);super(t,!1,c,o(a)?e():null),this._isBufferNullified=!1,this._nativeConvolverNode=c}get buffer(){return this._isBufferNullified?null:this._nativeConvolverNode.buffer}set buffer(t){if(this._nativeConvolverNode.buffer=t,null===t&&null!==this._nativeConvolverNode.buffer){const t=this._nativeConvolverNode.context;this._nativeConvolverNode.buffer=t.createBuffer(1,1,t.sampleRate),this._isBufferNullified=!0}else this._isBufferNullified=!1}get normalize(){return this._nativeConvolverNode.normalize}set normalize(t){this._nativeConvolverNode.normalize=t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(35),i=n(6);const o=(t,e,n)=>()=>{const o=new WeakMap;return{render(s,a,u){const c=o.get(a);return void 0!==c?Promise.resolve(c):(async(s,a,u)=>{let c=e(s);if(!Object(i.a)(c,a)){const e={buffer:c.buffer,channelCount:c.channelCount,channelCountMode:c.channelCountMode,channelInterpretation:c.channelInterpretation,disableNormalization:!c.normalize};c=t(a,e)}return o.set(a,c),Object(r.a)(c)?await n(s,a,c.inputs[0],u):await n(s,a,c,u),c})(s,a,u)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>(n,r,i)=>{if(null===e)throw new Error("Missing the native OfflineAudioContext constructor.");try{return new e(n,r,i)}catch(e){if("IndexSizeError"===e.name||"SyntaxError"===e.name)throw t();throw e}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>{try{return new DOMException("","DataCloneError")}catch(t){return t.code=25,t.name="DataCloneError",t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(61);const i=(t,e,n,i,o,s,a,u)=>(c,l)=>{const h=e.get(c);if(void 0===h)throw new Error("Missing the expected cycle count.");const f=s(c.context),p=u(f);if(h===l){if(e.delete(c),!p&&a(c)){const e=i(c),{outputs:s}=n(c);for(const n of s)if(Object(r.a)(n)){const r=i(n[0]);t(e,r,n[1],n[2])}else{const t=o(n[0]);e.connect(t,n[1])}}}else e.set(c,h-l)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const r={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",delayTime:0,maxDelayTime:1},i=(t,e,n,i,o,s)=>class extends t{constructor(t,a=r){const u=o(t),c={...r,...a},l=i(u,c),h=s(u);super(t,!1,l,h?n(c.maxDelayTime):null),this._delayTime=e(this,h,l.delayTime,c.maxDelayTime,0)}get delayTime(){return this._delayTime}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(6);const i=(t,e,n,i,o)=>s=>{const a=new WeakMap;return{render(u,c,l){const h=a.get(c);return void 0!==h?Promise.resolve(h):(async(u,c,l)=>{let h=n(u);const f=Object(r.a)(h,c);if(!f){const t={channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,delayTime:h.delayTime.value,maxDelayTime:s};h=e(c,t)}return a.set(c,h),f?await t(c,u.delayTime,h.delayTime,l):await i(c,u.delayTime,h.delayTime,l),await o(u,c,h,l),h})(u,c,l)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n)=>{t(e).delete(n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(78);const i=(t,e,n)=>{const r=e[n];if(void 0===r)throw t();return r},o=t=>(e,n,o,s=0)=>void 0===n?e.forEach(t=>t.disconnect()):"number"==typeof n?i(t,e,n).disconnect():Object(r.a)(n)?void 0===o?e.forEach(t=>t.disconnect(n)):void 0===s?i(t,e,o).disconnect(n,0):i(t,e,o).disconnect(n,0,s):void 0===o?e.forEach(t=>t.disconnect(n)):i(t,e,o).disconnect(n,0)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const r={attack:.003,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",knee:30,ratio:12,release:.25,threshold:-24},i=(t,e,n,i,o,s,a)=>class extends t{constructor(t,o=r){const u=s(t),c={...r,...o},l=i(u,c),h=a(u);super(t,!1,l,h?n():null),this._attack=e(this,h,l.attack,1,0),this._knee=e(this,h,l.knee,40,0),this._nativeDynamicsCompressorNode=l,this._ratio=e(this,h,l.ratio,20,1),this._release=e(this,h,l.release,1,0),this._threshold=e(this,h,l.threshold,0,-100)}get attack(){return this._attack}get channelCount(){return this._nativeDynamicsCompressorNode.channelCount}set channelCount(t){const e=this._nativeDynamicsCompressorNode.channelCount;if(this._nativeDynamicsCompressorNode.channelCount=t,t>2)throw this._nativeDynamicsCompressorNode.channelCount=e,o()}get channelCountMode(){return this._nativeDynamicsCompressorNode.channelCountMode}set channelCountMode(t){const e=this._nativeDynamicsCompressorNode.channelCountMode;if(this._nativeDynamicsCompressorNode.channelCountMode=t,"max"===t)throw this._nativeDynamicsCompressorNode.channelCountMode=e,o()}get knee(){return this._knee}get ratio(){return this._ratio}get reduction(){return"number"==typeof this._nativeDynamicsCompressorNode.reduction.value?this._nativeDynamicsCompressorNode.reduction.value:this._nativeDynamicsCompressorNode.reduction}get release(){return this._release}get threshold(){return this._threshold}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(6);const i=(t,e,n,i,o)=>()=>{const s=new WeakMap;return{render(a,u,c){const l=s.get(u);return void 0!==l?Promise.resolve(l):(async(a,u,c)=>{let l=n(a);const h=Object(r.a)(l,u);if(!h){const t={attack:l.attack.value,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,knee:l.knee.value,ratio:l.ratio.value,release:l.release.value,threshold:l.threshold.value};l=e(u,t)}return s.set(u,l),h?(await t(u,a.attack,l.attack,c),await t(u,a.knee,l.knee,c),await t(u,a.ratio,l.ratio,c),await t(u,a.release,l.release,c),await t(u,a.threshold,l.threshold,c)):(await i(u,a.attack,l.attack,c),await i(u,a.knee,l.knee,c),await i(u,a.ratio,l.ratio,c),await i(u,a.release,l.release,c),await i(u,a.threshold,l.threshold,c)),await o(a,u,l,c),l})(a,u,c)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>{try{return new DOMException("","EncodingError")}catch(t){return t.code=0,t.name="EncodingError",t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>new Promise((n,r)=>{if(null===t)return void r(new SyntaxError);const i=t.document.head;if(null===i)r(new SyntaxError);else{const o=t.document.createElement("script"),s=new Blob([e],{type:"application/javascript"}),a=URL.createObjectURL(s),u=t.onerror,c=()=>{t.onerror=u,URL.revokeObjectURL(a)};t.onerror=(e,n,i,o,s)=>n===a||n===t.location.href&&1===i&&1===o?(c(),r(s),!1):null!==u?u(e,n,i,o,s):void 0,o.onerror=()=>{c(),r(new SyntaxError)},o.onload=()=>{c(),n()},o.src=a,o.type="module",i.appendChild(o)}})},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>class{constructor(t){this._nativeEventTarget=t,this._listeners=new WeakMap}addEventListener(e,n,r){if(null!==n){let i=this._listeners.get(n);void 0===i&&(i=t(this,n),"function"==typeof n&&this._listeners.set(n,i)),this._nativeEventTarget.addEventListener(e,i,r)}}dispatchEvent(t){return this._nativeEventTarget.dispatchEvent(t)}removeEventListener(t,e,n){const r=null===e?void 0:this._listeners.get(e);this._nativeEventTarget.removeEventListener(t,void 0===r?null:r,n)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n,r)=>{Object.defineProperties(t,{currentFrame:{configurable:!0,get:()=>Math.round(e*n)},currentTime:{configurable:!0,get:()=>e}});try{return r()}finally{null!==t&&(delete t.currentFrame,delete t.currentTime)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>async e=>{try{const t=await fetch(e);if(t.ok)return t.text()}catch{}throw t()}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(5);const i={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",gain:1},o=(t,e,n,o,s,a)=>class extends t{constructor(t,u=i){const c=s(t),l={...i,...u},h=o(c,l),f=a(c);super(t,!1,h,f?n():null),this._gain=e(this,f,h.gain,r.b,r.a)}get gain(){return this._gain}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(6);const i=(t,e,n,i,o)=>()=>{const s=new WeakMap;return{render(a,u,c){const l=s.get(u);return void 0!==l?Promise.resolve(l):(async(a,u,c)=>{let l=n(a);const h=Object(r.a)(l,u);if(!h){const t={channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,gain:l.gain.value};l=e(u,t)}return s.set(u,l),h?await t(u,a.gain,l.gain,c):await i(u,a.gain,l.gain,c),await o(a,u,l,c),l})(a,u,c)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e);if(null===n.renderer)throw new Error("Missing the renderer of the given AudioNode in the audio graph.");return n.renderer}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e);if(null===n.renderer)throw new Error("Missing the renderer of the given AudioParam in the audio graph.");return n.renderer}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(2);const i=(t,e,n)=>i=>{if("closed"===i.state&&null!==e&&"webkitAudioContext"!==e.name){if(!t(i)){const t=r.f.get(i);if(void 0!==t)return t;const n=new e;return r.f.set(i,n),n}{const t=r.f.get(i);if(void 0!==t)return t;if(null!==n){const t=new n(1,1,44100);return r.f.set(i,t),t}}}return null}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(14);const i=t=>e=>{const n=t.get(e);if(void 0===n)throw Object(r.a)();return n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t.get(e);if(void 0===n)throw new Error("The context has no set of AudioWorkletNodes.");return n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(129),i=n(6);const o=(t,e,n,o,s,a)=>(u,c)=>{const l=new WeakMap;let h=null;const f=async(f,p,d)=>{let m=null,v=n(f);const y=Object(i.a)(v,p);if(void 0===p.createIIRFilter?m=t(p,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}):y||(v=e(p,t=>t.createIIRFilter(c,u))),l.set(p,null===m?v:m),null!==m){if(null===h){if(null===o)throw new Error("Missing the native OfflineAudioContext constructor.");const t=new o(f.context.destination.channelCount,f.context.length,p.sampleRate);h=(async()=>{await s(f,t,t.destination,d);return((t,e,n,i)=>{const o=n.length,s=i.length,a=Math.min(o,s);if(1!==n[0]){for(let t=0;t<o;t+=1)i[t]/=n[0];for(let t=1;t<s;t+=1)n[t]/=n[0]}const u=new Float32Array(32),c=new Float32Array(32),l=e.createBuffer(t.numberOfChannels,t.length,t.sampleRate),h=t.numberOfChannels;for(let e=0;e<h;e+=1){const h=t.getChannelData(e),f=l.getChannelData(e);u.fill(0),c.fill(0),Object(r.a)(n,o,i,s,a,u,c,0,32,h,f)}return l})(await a(t),p,u,c)})()}const t=await h;return m.buffer=t,m.start(0),m}return await s(f,p,v,d),v};return{render(t,e,n){const r=l.get(e);return void 0!==r?Promise.resolve(r):f(t,e,n)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(61);const i=(t,e,n,i,o,s)=>a=>(u,c)=>{const l=t.get(u);if(void 0===l){if(!a&&s(u)){const t=i(u),{outputs:s}=n(u);for(const n of s)if(Object(r.a)(n)){const r=i(n[0]);e(t,r,n[1],n[2])}else{const e=o(n[0]);t.disconnect(e,n[1])}}t.set(u,c)}else t.set(u,l+c)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>{const r=t.get(n);return e(r)||e(n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>t.has(n)||e(n)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>t.has(n)||e(n)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>{const r=t.get(n);return e(r)||e(n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>null!==t&&e instanceof t},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>null!==t&&"function"==typeof t.AudioNode&&e instanceof t.AudioNode},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>null!==t&&"function"==typeof t.AudioParam&&e instanceof t.AudioParam},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>t(n)||e(n)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>null!==t&&e instanceof t},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>null!==t&&t.isSecureContext},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=async(t,e,n,r,i,o,s,a,u,c,l,h,f,p)=>{if(t(e,e)&&t(n,n)&&t(i,i)&&t(o,o)&&t(a,a)&&t(u,u)&&t(c,c)&&t(l,l)&&t(h,h)){return(await Promise.all([t(r,r),t(s,s),t(f,f),t(p,p)])).every(t=>t)}return!1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r)=>class extends t{constructor(t,i){const o=n(t),s=e(o,i);if(r(o))throw TypeError();super(t,!0,s,null),this._mediaElement=i.mediaElement,this._nativeMediaElementAudioSourceNode=s}get mediaElement(){return void 0===this._nativeMediaElementAudioSourceNode.mediaElement?this._mediaElement:this._nativeMediaElementAudioSourceNode.mediaElement}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const r={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers"},i=(t,e,n,i)=>class extends t{constructor(t,o=r){const s=n(t);if(i(s))throw new TypeError;const a={...r,...o},u=e(s,a);super(t,!1,u,null),this._nativeMediaStreamAudioDestinationNode=u}get stream(){return this._nativeMediaStreamAudioDestinationNode.stream}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r)=>class extends t{constructor(t,i){const o=n(t),s=e(o,i);if(r(o))throw new TypeError;super(t,!0,s,null),this._nativeMediaStreamAudioSourceNode=s}get mediaStream(){return this._nativeMediaStreamAudioSourceNode.mediaStream}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n)=>class extends t{constructor(t,r){const i=n(t);super(t,!0,e(i,r),null)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(126);const i=(t,e,n,i,o)=>class extends i{constructor(t={}){if(null===o)throw new Error("Missing the native AudioContext constructor.");const i=new o(t);if(null===i)throw n();if(!Object(r.a)(t.latencyHint))throw new TypeError(`The provided value '${t.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(void 0!==t.sampleRate&&i.sampleRate!==t.sampleRate)throw e();super(i,2);const{latencyHint:s}=t,{sampleRate:a}=i;if(this._baseLatency="number"==typeof i.baseLatency?i.baseLatency:"balanced"===s?512/a:"interactive"===s||void 0===s?256/a:"playback"===s?1024/a:128*Math.max(2,Math.min(128,Math.round(s*a/128)))/a,this._nativeAudioContext=i,this._state=null,"running"===i.state){this._state="suspended";const t=()=>{"suspended"===this._state&&(this._state=null),i.removeEventListener("statechange",t)};i.addEventListener("statechange",t)}}get baseLatency(){return this._baseLatency}get state(){return null!==this._state?this._state:this._nativeAudioContext.state}close(){return"closed"===this.state?this._nativeAudioContext.close().then(()=>{throw t()}):("suspended"===this._state&&(this._state=null),this._nativeAudioContext.close())}resume(){return"suspended"===this._state?new Promise((t,e)=>{const n=()=>{this._nativeAudioContext.removeEventListener("statechange",n),"running"===this._nativeAudioContext.state?t():this.resume().then(t,e)};this._nativeAudioContext.addEventListener("statechange",n)}):this._nativeAudioContext.resume().catch(e=>{if(void 0===e||15===e.code)throw t();throw e})}suspend(){return this._nativeAudioContext.suspend().catch(e=>{if(void 0===e)throw t();throw e})}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(2);const i=(t,e,n,i,o,s)=>class extends n{constructor(n,s){super(n),this._nativeContext=n,r.g.set(this,n);const a=n.sampleRate;Object.defineProperty(n,"sampleRate",{get:()=>a}),i(n)&&o.set(n,new Set),this._destination=new t(this,s),this._listener=e(this,n),this._onstatechange=null}get currentTime(){return this._nativeContext.currentTime}get destination(){return this._destination}get listener(){return this._listener}get onstatechange(){return this._onstatechange}set onstatechange(t){const e="function"==typeof t?s(this,t):null;this._nativeContext.onstatechange=e;const n=this._nativeContext.onstatechange;this._onstatechange=null!==n&&n===e?t:n}get sampleRate(){return this._nativeContext.sampleRate}get state(){return this._nativeContext.state}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(39);const i={numberOfChannels:1},o=(t,e,n,o,s)=>class extends o{constructor(e){const{length:o,numberOfChannels:s,sampleRate:a}={...i,...e},u=n(s,o,a);t(r.a,()=>Object(r.a)(u))||u.addEventListener("statechange",(()=>{let t=0;const e=n=>{"running"===this._state&&(t>0?(u.removeEventListener("statechange",e),n.stopImmediatePropagation(),this._waitForThePromiseToSettle(n)):t+=1)};return e})()),super(u,s),this._length=o,this._nativeOfflineAudioContext=u,this._state=null}get length(){return void 0===this._nativeOfflineAudioContext.length?this._length:this._nativeOfflineAudioContext.length}get state(){return null===this._state?this._nativeOfflineAudioContext.state:this._state}startRendering(){return"running"===this._state?Promise.reject(e()):(this._state="running",s(this.destination,this._nativeOfflineAudioContext).then(t=>(this._state=null,t)).catch(t=>{throw this._state=null,t}))}_waitForThePromiseToSettle(t){null===this._state?this._nativeOfflineAudioContext.dispatchEvent(t):setTimeout(()=>this._waitForThePromiseToSettle(t))}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>(n,r,i)=>{const o=new Set;var s,a;return n.connect=(s=n.connect,(i,a=0,u=0)=>{const c=0===o.size;if(e(i))return s.call(n,i,a,u),t(o,[i,a,u],t=>t[0]===i&&t[1]===a&&t[2]===u,!0),c&&r(),i;s.call(n,i,a),t(o,[i,a],t=>t[0]===i&&t[1]===a,!0),c&&r()}),n.disconnect=(a=n.disconnect,(t,r,s)=>{const u=o.size>0;if(void 0===t)a.apply(n),o.clear();else if("number"==typeof t){a.call(n,t);for(const e of o)e[1]===t&&o.delete(e)}else{e(t)?a.call(n,t,r,s):a.call(n,t,r);for(const e of o)e[0]!==t||void 0!==r&&e[1]!==r||void 0!==s&&e[2]!==s||o.delete(e)}const c=0===o.size;u&&c&&i()}),n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>null===t?null:t.hasOwnProperty("AudioBuffer")?t.AudioBuffer:null},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>null===t?null:t.hasOwnProperty("AudioContext")?t.AudioContext:t.hasOwnProperty("webkitAudioContext")?t.webkitAudioContext:null},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>(n,r,i)=>{const o=n.destination;if(o.channelCount!==r)try{o.channelCount=r}catch{}i&&"explicit"!==o.channelCountMode&&(o.channelCountMode="explicit"),0===o.maxChannelCount&&Object.defineProperty(o,"maxChannelCount",{value:r});const s=t(n,{channelCount:r,channelCountMode:o.channelCountMode,channelInterpretation:o.channelInterpretation,gain:1});return e(s,"channelCount",t=>()=>t.call(s),t=>e=>{t.call(s,e);try{o.channelCount=e}catch(t){if(e>o.maxChannelCount)throw t}}),e(s,"channelCountMode",t=>()=>t.call(s),t=>e=>{t.call(s,e),o.channelCountMode=e}),e(s,"channelInterpretation",t=>()=>t.call(s),t=>e=>{t.call(s,e),o.channelInterpretation=e}),Object.defineProperty(s,"maxChannelCount",{get:()=>o.maxChannelCount}),s.connect(o),s}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n)=>{const r=t(e);return n(null!==r?r:e)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>null===t?null:t.hasOwnProperty("AudioWorkletNode")?t.AudioWorkletNode:null},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8),i=n(7),o=n(4);const s=t=>(e,n)=>{const s=t(e,t=>t.createBiquadFilter());return Object(o.a)(s,n),Object(r.a)(s,n,"Q"),Object(r.a)(s,n,"detune"),Object(r.a)(s,n,"frequency"),Object(r.a)(s,n,"gain"),Object(i.a)(s,n,"type"),s}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4);const i=(t,e)=>(n,i)=>{const o=t(n,t=>t.createChannelMerger(i.numberOfInputs));return 1!==o.channelCount&&"explicit"!==o.channelCountMode&&e(n,o),Object(r.a)(o,i),o}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(8),i=n(4),o=n(91),s=n(92);const a=(t,e,n,a,u,c)=>(l,h)=>{if(void 0===l.createConstantSource)return a(l,h);const f=n(l,t=>t.createConstantSource());return Object(i.a)(f,h),Object(r.a)(f,h,"offset"),e(u,()=>u(l))||Object(o.a)(f),e(c,()=>c(l))||Object(s.a)(f),t(l,f),f}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(28);const i=(t,e,n,i)=>(o,{offset:s,...a})=>{const u=o.createBuffer(1,2,o.sampleRate),c=e(o,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),l=n(o,{...a,gain:s}),h=u.getChannelData(0);h[0]=1,h[1]=1,c.buffer=u,c.loop=!0;const f={get bufferSize(){},get channelCount(){return l.channelCount},set channelCount(t){l.channelCount=t},get channelCountMode(){return l.channelCountMode},set channelCountMode(t){l.channelCountMode=t},get channelInterpretation(){return l.channelInterpretation},set channelInterpretation(t){l.channelInterpretation=t},get context(){return l.context},get inputs(){return[]},get numberOfInputs(){return c.numberOfInputs},get numberOfOutputs(){return l.numberOfOutputs},get offset(){return l.gain},get onended(){return c.onended},set onended(t){c.onended=t},addEventListener:(...t)=>c.addEventListener(t[0],t[1],t[2]),dispatchEvent:(...t)=>c.dispatchEvent(t[0]),removeEventListener:(...t)=>c.removeEventListener(t[0],t[1],t[2]),start(t=0){c.start.call(c,t)},stop(t=0){c.stop.call(c,t)}};return t(o,c),i(Object(r.a)(f,l),()=>c.connect(l),()=>c.disconnect(l))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(7),i=n(4);const o=(t,e,n,o)=>(s,a)=>{const u=t(s,t=>t.createConvolver());try{u.channelCount=1}catch(t){return e(s,a)}if(Object(i.a)(u,a),a.disableNormalization===u.normalize&&(u.normalize=!a.disableNormalization),Object(r.a)(u,a,"buffer"),a.channelCount>2)throw n();if(o(u,"channelCount",t=>()=>t.call(u),t=>e=>{if(e>2)throw n();return t.call(u,e)}),"max"===a.channelCountMode)throw n();return o(u,"channelCountMode",t=>()=>t.call(u),t=>e=>{if("max"===e)throw n();return t.call(u,e)}),u}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=n(28);const o=(t,e,n)=>(o,{buffer:s,channelCount:a,channelCountMode:u,channelInterpretation:c,disableNormalization:l})=>{const h=t(o,t=>t.createConvolver());Object(r.a)(h,{channelCount:Math.max(a,2),channelCountMode:"max"===u?u:"clamped-max",channelInterpretation:c});const f=e(o,{channelCount:a,channelCountMode:u,channelInterpretation:c,gain:1}),p={get buffer(){return h.buffer},set buffer(t){h.buffer=t},get bufferSize(){},get channelCount(){return f.channelCount},set channelCount(t){t>2&&(h.channelCount=t),f.channelCount=t},get channelCountMode(){return f.channelCountMode},set channelCountMode(t){"max"===t&&(h.channelCountMode=t),f.channelCountMode=t},get channelInterpretation(){return h.channelInterpretation},set channelInterpretation(t){h.channelInterpretation=t,f.channelInterpretation=t},get context(){return h.context},get inputs(){return[h]},get numberOfInputs(){return h.numberOfInputs},get numberOfOutputs(){return h.numberOfOutputs},get normalize(){return h.normalize},set normalize(t){h.normalize=t},addEventListener:(...t)=>h.addEventListener(t[0],t[1],t[2]),dispatchEvent:(...t)=>h.dispatchEvent(t[0]),removeEventListener:(...t)=>h.removeEventListener(t[0],t[1],t[2])};l===p.normalize&&(p.normalize=!l),s!==p.buffer&&(p.buffer=s);return n(Object(i.a)(p,f),()=>h.connect(f),()=>h.disconnect(f))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(8),i=n(4);const o=t=>(e,n)=>{const o=t(e,t=>t.createDelay(n.maxDelayTime));return Object(i.a)(o,n),Object(r.a)(o,n,"delayTime"),o}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(8),i=n(4);const o=(t,e)=>(n,o)=>{const s=t(n,t=>t.createDynamicsCompressor());if(Object(i.a)(s,o),o.channelCount>2)throw e();if("max"===o.channelCountMode)throw e();return Object(r.a)(s,o,"attack"),Object(r.a)(s,o,"knee"),Object(r.a)(s,o,"ratio"),Object(r.a)(s,o,"release"),Object(r.a)(s,o,"threshold"),s}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(8),i=n(4);const o=t=>(e,n)=>{const o=t(e,t=>t.createGain());return Object(i.a)(o,n),Object(r.a)(o,n,"gain"),o}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4);const i=(t,e)=>(n,i,o)=>{if(void 0===n.createIIRFilter)return e(n,i,o);const s=t(n,t=>t.createIIRFilter(o.feedforward,o.feedback));return Object(r.a)(s,o),s}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(130),i=n(129),o=n(28);function s(t,e){const n=e[0]*e[0]+e[1]*e[1];return[(t[0]*e[0]+t[1]*e[1])/n,(t[1]*e[0]-t[0]*e[1])/n]}function a(t,e){let n=[0,0];for(let o=t.length-1;o>=0;o-=1)i=e,n=[(r=n)[0]*i[0]-r[1]*i[1],r[0]*i[1]+r[1]*i[0]],n[0]+=t[o];var r,i;return n}const u=(t,e,n,u)=>(c,l,{channelCount:h,channelCountMode:f,channelInterpretation:p,feedback:d,feedforward:m})=>{const v=Object(r.a)(l,c.sampleRate),y=d.length,g=m.length,b=Math.min(y,g);if(0===d.length||d.length>20)throw u();if(0===d[0])throw e();if(0===m.length||m.length>20)throw u();if(0===m[0])throw e();if(1!==d[0]){for(let t=0;t<g;t+=1)m[t]/=d[0];for(let t=1;t<y;t+=1)d[t]/=d[0]}const _=n(c,v,h,h);_.channelCount=h,_.channelCountMode=f,_.channelInterpretation=p;const w=[],x=[],O=[];for(let t=0;t<h;t+=1){w.push(0);const t=new Float32Array(32),e=new Float32Array(32);t.fill(0),e.fill(0),x.push(t),O.push(e)}_.onaudioprocess=t=>{const e=t.inputBuffer,n=t.outputBuffer,r=e.numberOfChannels;for(let t=0;t<r;t+=1){const r=e.getChannelData(t),o=n.getChannelData(t);w[t]=Object(i.a)(d,y,m,g,b,x[t],O[t],w[t],32,r,o)}};const T=c.sampleRate/2,S={get bufferSize(){return v},get channelCount(){return _.channelCount},set channelCount(t){_.channelCount=t},get channelCountMode(){return _.channelCountMode},set channelCountMode(t){_.channelCountMode=t},get channelInterpretation(){return _.channelInterpretation},set channelInterpretation(t){_.channelInterpretation=t},get context(){return _.context},get inputs(){return[_]},get numberOfInputs(){return _.numberOfInputs},get numberOfOutputs(){return _.numberOfOutputs},addEventListener:(...t)=>_.addEventListener(t[0],t[1],t[2]),dispatchEvent:(...t)=>_.dispatchEvent(t[0]),getFrequencyResponse(e,n,r){if(e.length!==n.length||n.length!==r.length)throw t();const i=e.length;for(let t=0;t<i;t+=1){const i=-Math.PI*(e[t]/T),o=[Math.cos(i),Math.sin(i)],u=s(a(m,o),a(d,o));n[t]=Math.sqrt(u[0]*u[0]+u[1]*u[1]),r[t]=Math.atan2(u[1],u[0])}},removeEventListener:(...t)=>_.removeEventListener(t[0],t[1],t[2])};return Object(o.a)(S,_)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n)=>t(e,t=>t.createMediaElementSource(n.mediaElement))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4);const i=(t,e)=>(n,i)=>{if(void 0===n.createMediaStreamDestination)throw e();const o=t(n,t=>t.createMediaStreamDestination());return Object(r.a)(o,i),1===o.numberOfOutputs&&Object.defineProperty(o,"numberOfOutputs",{get:()=>0}),o}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,{mediaStream:n})=>{const r=n.getAudioTracks(),i=t(e,t=>{r.sort((t,e)=>t.id<e.id?-1:t.id>e.id?1:0);const e=r.slice(0,1);return t.createMediaStreamSource(new MediaStream(e))});return Object.defineProperty(i,"mediaStream",{value:n}),i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n)=>(r,{mediaStreamTrack:i})=>"function"==typeof r.createMediaStreamTrackSource?e(r,t=>t.createMediaStreamTrackSource(i)):e(r,e=>{const r=new MediaStream([i]),o=e.createMediaStreamSource(r);if("audio"!==i.kind)throw t();if(n(e))throw new TypeError;return o})},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>null===t?null:t.hasOwnProperty("OfflineAudioContext")?t.OfflineAudioContext:t.hasOwnProperty("webkitOfflineAudioContext")?t.webkitOfflineAudioContext:null},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(8),i=n(7),o=n(4),s=n(91),a=n(92);const u=(t,e,n,u,c,l,h)=>(f,p)=>{const d=n(f,t=>t.createOscillator());return Object(o.a)(d,p),Object(r.a)(d,p,"detune"),Object(r.a)(d,p,"frequency"),void 0!==p.periodicWave?d.setPeriodicWave(p.periodicWave):Object(i.a)(d,p,"type"),e(u,()=>u(f))||Object(s.a)(d),e(c,()=>c(f))||h(d,f),e(l,()=>l(f))||Object(a.a)(d),t(f,d),d}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8),i=n(7),o=n(4);const s=(t,e)=>(n,s)=>{const a=t(n,t=>t.createPanner());return void 0===a.orientationX?e(n,s):(Object(o.a)(a,s),Object(r.a)(a,s,"orientationX"),Object(r.a)(a,s,"orientationY"),Object(r.a)(a,s,"orientationZ"),Object(r.a)(a,s,"positionX"),Object(r.a)(a,s,"positionY"),Object(r.a)(a,s,"positionZ"),Object(i.a)(a,s,"coneInnerAngle"),Object(i.a)(a,s,"coneOuterAngle"),Object(i.a)(a,s,"coneOuterGain"),Object(i.a)(a,s,"distanceModel"),Object(i.a)(a,s,"maxDistance"),Object(i.a)(a,s,"panningModel"),Object(i.a)(a,s,"refDistance"),Object(i.a)(a,s,"rolloffFactor"),a)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=n(28);const o=(t,e,n,o,s,a,u,c,l,h)=>(f,{coneInnerAngle:p,coneOuterAngle:d,coneOuterGain:m,distanceModel:v,maxDistance:y,orientationX:g,orientationY:b,orientationZ:_,panningModel:w,positionX:x,positionY:O,positionZ:T,refDistance:S,rolloffFactor:k,...C})=>{const E=n(f,t=>t.createPanner());if(C.channelCount>2)throw c();if("max"===C.channelCountMode)throw c();Object(r.a)(E,C);const A={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},P=o(f,{...A,channelInterpretation:"speakers",numberOfInputs:6}),j=s(f,{...C,gain:1}),I=s(f,{...A,gain:1}),M=s(f,{...A,gain:0}),D=s(f,{...A,gain:0}),N=s(f,{...A,gain:0}),R=s(f,{...A,gain:0}),F=s(f,{...A,gain:0}),L=a(f,256,6,1),V=u(f,{...A,curve:new Float32Array([1,1]),oversample:"none"});let z=[g,b,_],B=[x,O,T];L.onaudioprocess=({inputBuffer:t})=>{const e=[t.getChannelData(0)[0],t.getChannelData(1)[0],t.getChannelData(2)[0]];e.some((t,e)=>t!==z[e])&&(E.setOrientation(...e),z=e);const n=[t.getChannelData(3)[0],t.getChannelData(4)[0],t.getChannelData(5)[0]];n.some((t,e)=>t!==B[e])&&(E.setPosition(...n),B=n)},Object.defineProperty(M.gain,"defaultValue",{get:()=>0}),Object.defineProperty(D.gain,"defaultValue",{get:()=>0}),Object.defineProperty(N.gain,"defaultValue",{get:()=>0}),Object.defineProperty(R.gain,"defaultValue",{get:()=>0}),Object.defineProperty(F.gain,"defaultValue",{get:()=>0});const q={get bufferSize(){},get channelCount(){return E.channelCount},set channelCount(t){if(t>2)throw c();j.channelCount=t,E.channelCount=t},get channelCountMode(){return E.channelCountMode},set channelCountMode(t){if("max"===t)throw c();j.channelCountMode=t,E.channelCountMode=t},get channelInterpretation(){return E.channelInterpretation},set channelInterpretation(t){j.channelInterpretation=t,E.channelInterpretation=t},get coneInnerAngle(){return E.coneInnerAngle},set coneInnerAngle(t){E.coneInnerAngle=t},get coneOuterAngle(){return E.coneOuterAngle},set coneOuterAngle(t){E.coneOuterAngle=t},get coneOuterGain(){return E.coneOuterGain},set coneOuterGain(t){if(t<0||t>1)throw e();E.coneOuterGain=t},get context(){return E.context},get distanceModel(){return E.distanceModel},set distanceModel(t){E.distanceModel=t},get inputs(){return[j]},get maxDistance(){return E.maxDistance},set maxDistance(t){if(t<0)throw new RangeError;E.maxDistance=t},get numberOfInputs(){return E.numberOfInputs},get numberOfOutputs(){return E.numberOfOutputs},get orientationX(){return I.gain},get orientationY(){return M.gain},get orientationZ(){return D.gain},get panningModel(){return E.panningModel},set panningModel(t){if(E.panningModel=t,E.panningModel!==t&&"HRTF"===t)throw c()},get positionX(){return N.gain},get positionY(){return R.gain},get positionZ(){return F.gain},get refDistance(){return E.refDistance},set refDistance(t){if(t<0)throw new RangeError;E.refDistance=t},get rolloffFactor(){return E.rolloffFactor},set rolloffFactor(t){if(t<0)throw new RangeError;E.rolloffFactor=t},addEventListener:(...t)=>j.addEventListener(t[0],t[1],t[2]),dispatchEvent:(...t)=>j.dispatchEvent(t[0]),removeEventListener:(...t)=>j.removeEventListener(t[0],t[1],t[2])};p!==q.coneInnerAngle&&(q.coneInnerAngle=p),d!==q.coneOuterAngle&&(q.coneOuterAngle=d),m!==q.coneOuterGain&&(q.coneOuterGain=m),v!==q.distanceModel&&(q.distanceModel=v),y!==q.maxDistance&&(q.maxDistance=y),g!==q.orientationX.value&&(q.orientationX.value=g),b!==q.orientationY.value&&(q.orientationY.value=b),_!==q.orientationZ.value&&(q.orientationZ.value=_),w!==q.panningModel&&(q.panningModel=w),x!==q.positionX.value&&(q.positionX.value=x),O!==q.positionY.value&&(q.positionY.value=O),T!==q.positionZ.value&&(q.positionZ.value=T),S!==q.refDistance&&(q.refDistance=S),k!==q.rolloffFactor&&(q.rolloffFactor=k),1===z[0]&&0===z[1]&&0===z[2]||E.setOrientation(...z),0===B[0]&&0===B[1]&&0===B[2]||E.setPosition(...B);return h(Object(i.a)(q,E),()=>{j.connect(E),t(j,V,0,0),V.connect(I).connect(P,0,0),V.connect(M).connect(P,0,1),V.connect(D).connect(P,0,2),V.connect(N).connect(P,0,3),V.connect(R).connect(P,0,4),V.connect(F).connect(P,0,5),P.connect(L).connect(f.destination)},()=>{j.disconnect(E),l(j,V,0,0),V.disconnect(I),I.disconnect(P),V.disconnect(M),M.disconnect(P),V.disconnect(D),D.disconnect(P),V.disconnect(N),N.disconnect(P),V.disconnect(R),R.disconnect(P),V.disconnect(F),F.disconnect(P),P.disconnect(L),L.disconnect(f.destination)})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,{disableNormalization:n,imag:r,real:i})=>{const o=t(e),s=new Float32Array(r),a=new Float32Array(i);return null!==o?o.createPeriodicWave(a,s,{disableNormalization:n}):e.createPeriodicWave(a,s,{disableNormalization:n})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n,r,i)=>t(e,t=>t.createScriptProcessor(n,r,i))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(8),i=n(4);const o=(t,e,n)=>(o,s)=>t(o,t=>{const a=s.channelCountMode;if("clamped-max"===a)throw n();if(void 0===o.createStereoPanner)return e(o,s);const u=t.createStereoPanner();return Object(i.a)(u,s),Object(r.a)(u,s,"pan"),Object.defineProperty(u,"channelCountMode",{get:()=>a,set:t=>{if(t!==a)throw n()}}),u})},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(28);const i=(t,e,n,i,o,s)=>{const a=new Float32Array([1,1]),u=Math.PI/2,c={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},l={...c,oversample:"none"},h=(t,r,s,h,f)=>{if(1===r)return((t,e,r,o)=>{const s=new Float32Array(16385),h=new Float32Array(16385);for(let t=0;t<16385;t+=1){const e=t/16384*u;s[t]=Math.cos(e),h[t]=Math.sin(e)}const f=n(t,{...c,gain:0}),p=i(t,{...l,curve:s}),d=i(t,{...l,curve:a}),m=n(t,{...c,gain:0}),v=i(t,{...l,curve:h});return{connectGraph(){e.connect(f),e.connect(d.inputs[0]),e.connect(m),d.connect(r),r.connect(p.inputs[0]),r.connect(v.inputs[0]),p.connect(f.gain),v.connect(m.gain),f.connect(o,0,0),m.connect(o,0,1)},disconnectGraph(){e.disconnect(f),e.disconnect(d.inputs[0]),e.disconnect(m),d.disconnect(r),r.disconnect(p.inputs[0]),r.disconnect(v.inputs[0]),p.disconnect(f.gain),v.disconnect(m.gain),f.disconnect(o,0,0),m.disconnect(o,0,1)}}})(t,s,h,f);if(2===r)return((t,r,o,s)=>{const h=new Float32Array(16385),f=new Float32Array(16385),p=new Float32Array(16385),d=new Float32Array(16385),m=Math.floor(8192.5);for(let t=0;t<16385;t+=1)if(t>m){const e=(t-m)/(16384-m)*u;h[t]=Math.cos(e),f[t]=Math.sin(e),p[t]=0,d[t]=1}else{const e=t/(16384-m)*u;h[t]=1,f[t]=0,p[t]=Math.cos(e),d[t]=Math.sin(e)}const v=e(t,{channelCount:2,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:2}),y=n(t,{...c,gain:0}),g=i(t,{...l,curve:h}),b=n(t,{...c,gain:0}),_=i(t,{...l,curve:f}),w=i(t,{...l,curve:a}),x=n(t,{...c,gain:0}),O=i(t,{...l,curve:p}),T=n(t,{...c,gain:0}),S=i(t,{...l,curve:d});return{connectGraph(){r.connect(v),r.connect(w.inputs[0]),v.connect(y,1),v.connect(b,1),v.connect(x,1),v.connect(T,1),w.connect(o),o.connect(g.inputs[0]),o.connect(_.inputs[0]),o.connect(O.inputs[0]),o.connect(S.inputs[0]),g.connect(y.gain),_.connect(b.gain),O.connect(x.gain),S.connect(T.gain),y.connect(s,0,0),x.connect(s,0,0),b.connect(s,0,1),T.connect(s,0,1)},disconnectGraph(){r.disconnect(v),r.disconnect(w.inputs[0]),v.disconnect(y,1),v.disconnect(b,1),v.disconnect(x,1),v.disconnect(T,1),w.disconnect(o),o.disconnect(g.inputs[0]),o.disconnect(_.inputs[0]),o.disconnect(O.inputs[0]),o.disconnect(S.inputs[0]),g.disconnect(y.gain),_.disconnect(b.gain),O.disconnect(x.gain),S.disconnect(T.gain),y.disconnect(s,0,0),x.disconnect(s,0,0),b.disconnect(s,0,1),T.disconnect(s,0,1)}}})(t,s,h,f);throw o()};return(e,{channelCount:i,channelCountMode:a,pan:u,...c})=>{if("max"===a)throw o();const l=t(e,{...c,channelCount:1,channelCountMode:a,numberOfInputs:2}),f=n(e,{...c,channelCount:i,channelCountMode:a,gain:1}),p=n(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:u});let{connectGraph:d,disconnectGraph:m}=h(e,i,f,p,l);Object.defineProperty(p.gain,"defaultValue",{get:()=>0});const v={get bufferSize(){},get channelCount(){return f.channelCount},set channelCount(t){f.channelCount!==t&&(y&&m(),({connectGraph:d,disconnectGraph:m}=h(e,t,f,p,l)),y&&d()),f.channelCount=t},get channelCountMode(){return f.channelCountMode},set channelCountMode(t){if("clamped-max"===t||"max"===t)throw o();f.channelCountMode=t},get channelInterpretation(){return f.channelInterpretation},set channelInterpretation(t){f.channelInterpretation=t},get context(){return f.context},get inputs(){return[f]},get numberOfInputs(){return f.numberOfInputs},get numberOfOutputs(){return f.numberOfOutputs},get pan(){return p.gain},addEventListener:(...t)=>f.addEventListener(t[0],t[1],t[2]),dispatchEvent:(...t)=>f.dispatchEvent(t[0]),removeEventListener:(...t)=>f.removeEventListener(t[0],t[1],t[2])};let y=!1;return s(Object(r.a)(v,l),()=>{d(),y=!0},()=>{m(),y=!1})}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(7),i=n(4);const o=(t,e,n,o,s,a,u)=>(c,l)=>{const h=n(c,t=>t.createWaveShaper());try{return h.curve=new Float32Array([1]),o(c,l)}catch{}Object(i.a)(h,l);const f=l.curve;if(null!==f&&f.length<2)throw e();Object(r.a)(h,l,"curve"),Object(r.a)(h,l,"oversample");let p=null,d=!1;u(h,"curve",t=>()=>t.call(h),e=>n=>(e.call(h,n),d&&(s(n)&&null===p?p=t(c,h):s(n)||null===p||(p(),p=null)),n));return a(h,()=>{d=!0,s(h.curve)&&(p=t(c,h))},()=>{d=!1,null!==p&&(p(),p=null)})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=n(28);const o=(t,e,n,o,s,a)=>(u,{curve:c,oversample:l,...h})=>{const f=n(u,t=>t.createWaveShaper()),p=n(u,t=>t.createWaveShaper());Object(r.a)(f,h),Object(r.a)(p,h);const d=o(u,{...h,gain:1}),m=o(u,{...h,gain:-1}),v=o(u,{...h,gain:1}),y=o(u,{...h,gain:-1});let g=null,b=!1,_=null;const w={get bufferSize(){},get channelCount(){return f.channelCount},set channelCount(t){d.channelCount=t,m.channelCount=t,f.channelCount=t,v.channelCount=t,p.channelCount=t,y.channelCount=t},get channelCountMode(){return f.channelCountMode},set channelCountMode(t){d.channelCountMode=t,m.channelCountMode=t,f.channelCountMode=t,v.channelCountMode=t,p.channelCountMode=t,y.channelCountMode=t},get channelInterpretation(){return f.channelInterpretation},set channelInterpretation(t){d.channelInterpretation=t,m.channelInterpretation=t,f.channelInterpretation=t,v.channelInterpretation=t,p.channelInterpretation=t,y.channelInterpretation=t},get context(){return f.context},get curve(){return _},set curve(n){if(null!==c&&c.length<2)throw e();if(null===n)f.curve=n,p.curve=n;else{const t=n.length,e=new Float32Array(t+2-t%2),r=new Float32Array(t+2-t%2);e[0]=n[0],r[0]=-n[t-1];const i=Math.ceil((t+1)/2),o=(t+1)/2-1;for(let s=1;s<i;s+=1){const a=s/i*o,u=Math.floor(a),c=Math.ceil(a);e[s]=u===c?n[u]:(1-(a-u))*n[u]+(1-(c-a))*n[c],r[s]=u===c?-n[t-1-u]:-(1-(a-u))*n[t-1-u]-(1-(c-a))*n[t-1-c]}e[i]=t%2==1?n[i-1]:(n[i-2]+n[i-1])/2,f.curve=e,p.curve=r}_=n,b&&(s(_)&&null===g?g=t(u,d):null!==g&&(g(),g=null))},get inputs(){return[d]},get numberOfInputs(){return f.numberOfInputs},get numberOfOutputs(){return f.numberOfOutputs},get oversample(){return f.oversample},set oversample(t){f.oversample=t,p.oversample=t},addEventListener:(...t)=>d.addEventListener(t[0],t[1],t[2]),dispatchEvent:(...t)=>d.dispatchEvent(t[0]),removeEventListener:(...t)=>d.removeEventListener(t[0],t[1],t[2])};c!==w.curve&&(w.curve=c),l!==w.oversample&&(w.oversample=l);return a(Object(i.a)(w,v),()=>{d.connect(f).connect(v),d.connect(m).connect(p).connect(y).connect(v),b=!0,s(_)&&(g=t(u,d))},()=>{d.disconnect(f),f.disconnect(v),d.disconnect(m),m.disconnect(p),p.disconnect(y),y.disconnect(v),b=!1,null!==g&&(g(),g=null)})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(39);const i={numberOfChannels:1},o=(t,e,n,o,s)=>class extends t{constructor(t,n,s){let a;if("number"==typeof t&&void 0!==n&&void 0!==s)a={length:n,numberOfChannels:t,sampleRate:s};else{if("object"!=typeof t)throw new Error("The given parameters are not valid.");a=t}const{length:u,numberOfChannels:c,sampleRate:l}={...i,...a},h=o(c,u,l);e(r.a,()=>Object(r.a)(h))||h.addEventListener("statechange",(()=>{let t=0;const e=n=>{"running"===this._state&&(t>0?(h.removeEventListener("statechange",e),n.stopImmediatePropagation(),this._waitForThePromiseToSettle(n)):t+=1)};return e})()),super(h,c),this._length=u,this._nativeOfflineAudioContext=h,this._state=null}get length(){return void 0===this._nativeOfflineAudioContext.length?this._length:this._nativeOfflineAudioContext.length}get state(){return null===this._state?this._nativeOfflineAudioContext.state:this._state}startRendering(){return"running"===this._state?Promise.reject(n()):(this._state="running",s(this.destination,this._nativeOfflineAudioContext).then(t=>(this._state=null,t)).catch(t=>{throw this._state=null,t}))}_waitForThePromiseToSettle(t){null===this._state?this._nativeOfflineAudioContext.dispatchEvent(t):setTimeout(()=>this._waitForThePromiseToSettle(t))}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(49),i=n(60);const o={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:440,type:"sine"},s=(t,e,n,s,a,u,c,l)=>class extends t{constructor(t,n=o){const r=u(t),i={...o,...n},l=s(r,i),h=c(r),f=h?a():null,p=t.sampleRate/2;super(t,!1,l,f),this._detune=e(this,h,l.detune,153600,-153600),this._frequency=e(this,h,l.frequency,p,-p),this._nativeOscillatorNode=l,this._onended=null,this._oscillatorNodeRenderer=f,null!==this._oscillatorNodeRenderer&&void 0!==i.periodicWave&&(this._oscillatorNodeRenderer.periodicWave=i.periodicWave)}get detune(){return this._detune}get frequency(){return this._frequency}get onended(){return this._onended}set onended(t){const e="function"==typeof t?l(this,t):null;this._nativeOscillatorNode.onended=e;const n=this._nativeOscillatorNode.onended;this._onended=null!==n&&n===e?t:n}get type(){return this._nativeOscillatorNode.type}set type(t){if(this._nativeOscillatorNode.type=t,"custom"===t)throw n();null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.periodicWave=null)}setPeriodicWave(t){this._nativeOscillatorNode.setPeriodicWave(t),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.periodicWave=t)}start(t=0){if(this._nativeOscillatorNode.start(t),null!==this._oscillatorNodeRenderer)this._oscillatorNodeRenderer.start=t;else{Object(r.a)(this);const t=()=>{this._nativeOscillatorNode.removeEventListener("ended",t),setTimeout(()=>Object(i.a)(this),1e3)};this._nativeOscillatorNode.addEventListener("ended",t)}}stop(t=0){this._nativeOscillatorNode.stop(t),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.stop=t)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(6);const i=(t,e,n,i,o)=>()=>{const s=new WeakMap;let a=null,u=null,c=null;return{set periodicWave(t){a=t},set start(t){u=t},set stop(t){c=t},render(l,h,f){const p=s.get(h);return void 0!==p?Promise.resolve(p):(async(l,h,f)=>{let p=n(l);const d=Object(r.a)(p,h);if(!d){const t={channelCount:p.channelCount,channelCountMode:p.channelCountMode,channelInterpretation:p.channelInterpretation,detune:p.detune.value,frequency:p.frequency.value,periodicWave:null===a?void 0:a,type:p.type};p=e(h,t),null!==u&&p.start(u),null!==c&&p.stop(c)}return s.set(h,p),d?(await t(h,l.detune,p.detune,f),await t(h,l.frequency,p.frequency,f)):(await i(h,l.detune,p.detune,f),await i(h,l.frequency,p.frequency,f)),await o(l,h,p,f),p})(l,h,f)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(5);const i={channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",coneInnerAngle:360,coneOuterAngle:360,coneOuterGain:0,distanceModel:"inverse",maxDistance:1e4,orientationX:1,orientationY:0,orientationZ:0,panningModel:"equalpower",positionX:0,positionY:0,positionZ:0,refDistance:1,rolloffFactor:1},o=(t,e,n,o,s,a)=>class extends t{constructor(t,u=i){const c=s(t),l={...i,...u},h=n(c,l),f=a(c);super(t,!1,h,f?o():null),this._nativePannerNode=h,this._orientationX=e(this,f,h.orientationX,r.b,r.a),this._orientationY=e(this,f,h.orientationY,r.b,r.a),this._orientationZ=e(this,f,h.orientationZ,r.b,r.a),this._positionX=e(this,f,h.positionX,r.b,r.a),this._positionY=e(this,f,h.positionY,r.b,r.a),this._positionZ=e(this,f,h.positionZ,r.b,r.a)}get coneInnerAngle(){return this._nativePannerNode.coneInnerAngle}set coneInnerAngle(t){this._nativePannerNode.coneInnerAngle=t}get coneOuterAngle(){return this._nativePannerNode.coneOuterAngle}set coneOuterAngle(t){this._nativePannerNode.coneOuterAngle=t}get coneOuterGain(){return this._nativePannerNode.coneOuterGain}set coneOuterGain(t){this._nativePannerNode.coneOuterGain=t}get distanceModel(){return this._nativePannerNode.distanceModel}set distanceModel(t){this._nativePannerNode.distanceModel=t}get maxDistance(){return this._nativePannerNode.maxDistance}set maxDistance(t){this._nativePannerNode.maxDistance=t}get orientationX(){return this._orientationX}get orientationY(){return this._orientationY}get orientationZ(){return this._orientationZ}get panningModel(){return this._nativePannerNode.panningModel}set panningModel(t){this._nativePannerNode.panningModel=t}get positionX(){return this._positionX}get positionY(){return this._positionY}get positionZ(){return this._positionZ}get refDistance(){return this._nativePannerNode.refDistance}set refDistance(t){this._nativePannerNode.refDistance=t}get rolloffFactor(){return this._nativePannerNode.rolloffFactor}set rolloffFactor(t){this._nativePannerNode.rolloffFactor=t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(35),i=n(6);const o=(t,e,n,o,s,a,u,c,l,h)=>()=>{const f=new WeakMap;let p=null;return{render(d,m,v){const y=f.get(m);return void 0!==y?Promise.resolve(y):(async(d,m,v)=>{let y=null,g=a(d);const b={channelCount:g.channelCount,channelCountMode:g.channelCountMode,channelInterpretation:g.channelInterpretation},_={...b,coneInnerAngle:g.coneInnerAngle,coneOuterAngle:g.coneOuterAngle,coneOuterGain:g.coneOuterGain,distanceModel:g.distanceModel,maxDistance:g.maxDistance,panningModel:g.panningModel,refDistance:g.refDistance,rolloffFactor:g.rolloffFactor},w=Object(i.a)(g,m);if("bufferSize"in g)y=o(m,{...b,gain:1});else if(!w){const t={..._,orientationX:g.orientationX.value,orientationY:g.orientationY.value,orientationZ:g.orientationZ.value,positionX:g.positionX.value,positionY:g.positionY.value,positionZ:g.positionZ.value};g=s(m,t)}if(f.set(m,null===y?g:y),null!==y){if(null===p){if(null===u)throw new Error("Missing the native OfflineAudioContext constructor.");const t=new u(6,d.context.length,m.sampleRate),r=e(t,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6});r.connect(t.destination),p=(async()=>{const e=await Promise.all([d.orientationX,d.orientationY,d.orientationZ,d.positionX,d.positionY,d.positionZ].map(async(e,r)=>{const i=n(t,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:0===r?1:0});return await c(t,e,i.offset,v),i}));for(let t=0;t<6;t+=1)e[t].connect(r,0,t),e[t].start(0);return h(t)})()}const t=await p,r=o(m,{...b,gain:1});await l(d,m,r,v);const i=[];for(let e=0;e<t.numberOfChannels;e+=1)i.push(t.getChannelData(e));let a=[i[0][0],i[1][0],i[2][0]],f=[i[3][0],i[4][0],i[5][0]],g=o(m,{...b,gain:1}),w=s(m,{..._,orientationX:a[0],orientationY:a[1],orientationZ:a[2],positionX:f[0],positionY:f[1],positionZ:f[2]});r.connect(g).connect(w.inputs[0]),w.connect(y);for(let e=128;e<t.length;e+=128){const t=[i[0][e],i[1][e],i[2][e]],n=[i[3][e],i[4][e],i[5][e]];if(t.some((t,e)=>t!==a[e])||n.some((t,e)=>t!==f[e])){a=t,f=n;const i=e/m.sampleRate;g.gain.setValueAtTime(0,i),g=o(m,{...b,gain:0}),w=s(m,{..._,orientationX:a[0],orientationY:a[1],orientationZ:a[2],positionX:f[0],positionY:f[1],positionZ:f[2]}),g.gain.setValueAtTime(1,i),r.connect(g).connect(w.inputs[0]),w.connect(y)}}return y}return w?(await t(m,d.orientationX,g.orientationX,v),await t(m,d.orientationY,g.orientationY,v),await t(m,d.orientationZ,g.orientationZ,v),await t(m,d.positionX,g.positionX,v),await t(m,d.positionY,g.positionY,v),await t(m,d.positionZ,g.positionZ,v)):(await c(m,d.orientationX,g.orientationX,v),await c(m,d.orientationY,g.orientationY,v),await c(m,d.orientationZ,g.orientationZ,v),await c(m,d.positionX,g.positionX,v),await c(m,d.positionY,g.positionY,v),await c(m,d.positionZ,g.positionZ,v)),Object(r.a)(g)?await l(d,m,g.inputs[0],v):await l(d,m,g,v),g})(d,m,v)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const r={disableNormalization:!1},i=(t,e,n)=>class i{constructor(i,o){const s=e(i),a={...r,...o},u=t(s,a);return n.add(u),u}static[Symbol.hasInstance](t){return null!==t&&"object"==typeof t&&Object.getPrototypeOf(t)===i.prototype||n.has(t)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>(n,r,i,o)=>(t(r).replay(i),e(r,n,i,o))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n)=>async(r,i,o,s)=>{const a=t(r),u=[...s,r];await Promise.all(a.activeInputs.map((t,s)=>Array.from(t).filter(([t])=>!u.includes(t)).map(async([t,a])=>{const c=e(t),l=await c.render(t,i,u),h=r.context.destination;n(t)||r===h&&n(r)||l.connect(o,a,s)})).reduce((t,e)=>[...t,...e],[]))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n)=>async(r,i,o,s)=>{const a=e(r);await Promise.all(Array.from(a.activeInputs).map(async([e,r])=>{const a=t(e),u=await a.render(e,i,s);n(e)||u.connect(o,r)}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(39);const i=(t,e,n,i)=>o=>t(r.a,()=>Object(r.a)(o))?Promise.resolve(t(i,i)).then(t=>{if(!t){const t=n(o,512,0,1);o.oncomplete=()=>{t.onaudioprocess=null,t.disconnect()},t.onaudioprocess=()=>o.currentTime,t.connect(o.destination)}return o.startRendering()}):new Promise(t=>{const n=e(o,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});o.oncomplete=e=>{n.disconnect(),t(e.renderedBuffer)},n.connect(o.destination),o.startRendering()})},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(90);const i=(t,e,n,i,o,s,a,u)=>{const c=[];return(l,h)=>n(l).render(l,h,c).then(()=>Promise.all(Array.from(i(h)).map(t=>n(t).render(t,h,c)))).then(()=>o(h)).then(n=>("function"!=typeof n.copyFromChannel?(a(n),Object(r.a)(n)):e(s,()=>s(n))||u(n),t.add(n),n))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const r={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",pan:0},i=(t,e,n,i,o,s)=>class extends t{constructor(t,a=r){const u=o(t),c={...r,...a},l=n(u,c),h=s(u);super(t,!1,l,h?i():null),this._pan=e(this,h,l.pan,1,-1)}get pan(){return this._pan}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(35),i=n(6);const o=(t,e,n,o,s)=>()=>{const a=new WeakMap;return{render(u,c,l){const h=a.get(c);return void 0!==h?Promise.resolve(h):(async(u,c,l)=>{let h=n(u);const f=Object(i.a)(h,c);if(!f){const t={channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,pan:h.pan.value};h=e(c,t)}return a.set(c,h),f?await t(c,u.pan,h.pan,l):await o(c,u.pan,h.pan,l),Object(r.a)(h)?await s(u,c,h.inputs[0],l):await s(u,c,h,l),h})(u,c,l)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;try{new t({length:1,sampleRate:44100})}catch{return!1}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;const e=new t(1,1,44100).createBuffer(1,1,44100);if(void 0===e.copyToChannel)return!0;const n=new Float32Array(2);try{e.copyFromChannel(n,0,0)}catch{return!1}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e,t=>t.createBufferSource());n.start();try{n.start()}catch{return!0}return!1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return Promise.resolve(!1);const e=new t(1,1,44100),n=e.createBuffer(1,1,e.sampleRate),r=e.createBufferSource();return n.getChannelData(0)[0]=1,r.buffer=n,r.start(0,0,0),r.connect(e.destination),new Promise(t=>{e.oncomplete=({renderedBuffer:e})=>{t(0===e.getChannelData(0)[0])},e.startRendering()})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e,t=>t.createBufferSource()),r=e.createBuffer(1,1,44100);n.buffer=r;try{n.start(0,1)}catch{return!1}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e,t=>t.createBufferSource());n.start();try{n.stop()}catch{return!1}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;if(void 0!==t.prototype&&void 0!==t.prototype.close)return!0;const e=new t,n=void 0!==e.close;try{e.close()}catch{}return n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return Promise.resolve(!1);const e=new t(1,1,44100);return new Promise(t=>{let n=!0;const r=r=>{n&&(n=!1,e.startRendering(),t(r instanceof TypeError))};let i;try{i=e.decodeAudioData(null,()=>{},r)}catch(t){r(t)}void 0!==i&&i.catch(r)})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;let e;try{e=new t({latencyHint:"balanced"})}catch{return!1}return e.close(),!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;const e=new t(1,1,44100).createGain(),n=e.connect(e)===e;return e.disconnect(e),n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e,t=>t.createOscillator());try{n.start(-1)}catch(t){return t instanceof RangeError}return!1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=e.createBuffer(1,1,44100),r=t(e,t=>t.createBufferSource());r.buffer=n,r.start(),r.stop();try{return r.stop(),!0}catch{return!1}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{const n=t(e,t=>t.createOscillator());try{n.stop(-1)}catch(t){return t instanceof RangeError}return!1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>async()=>{if(null===t)return!0;if(null===e)return!1;const n=new Blob(['class A extends AudioWorkletProcessor{process(){this.port.postMessage(0)}}registerProcessor("a",A)'],{type:"application/javascript; charset=utf-8"}),r=new e(1,128,3200),i=URL.createObjectURL(n);let o=!1;try{await r.audioWorklet.addModule(i);const e=r.createGain(),n=new t(r,"a",{numberOfOutputs:0});n.port.onmessage=()=>o=!0,e.connect(n),await r.startRendering()}catch{}finally{URL.revokeObjectURL(i)}return o}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>()=>{if(null===e)return!1;const n=new e(1,1,44100),r=t(n,t=>t.createChannelMerger());if("max"===r.channelCountMode)return!0;try{r.channelCount=2}catch{return!0}return!1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>()=>{if(null===e)return!1;const n=new e(1,1,44100);if(void 0===n.createConstantSource)return!0;return t(n,t=>t.createConstantSource()).offset.maxValue!==Number.POSITIVE_INFINITY}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;const e=new t(1,1,44100),n=e.createConvolver();n.buffer=e.createBuffer(1,1,e.sampleRate);try{n.buffer=e.createBuffer(1,1,e.sampleRate)}catch{return!1}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>null!==t&&t.hasOwnProperty("isSecureContext")},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return!1;const e=new t;try{return e.createMediaStreamSource(new MediaStream),!1}catch(t){return!0}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>()=>{if(null===e)return Promise.resolve(!1);const n=new e(1,1,44100),r=t(n,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return new Promise(t=>{n.oncomplete=()=>{r.disconnect(),t(0!==n.currentTime)},n.startRendering()})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>()=>{if(null===t)return Promise.resolve(!1);const e=new t(1,1,44100);if(void 0===e.createStereoPanner)return Promise.resolve(!0);if(void 0===e.createConstantSource)return Promise.resolve(!0);const n=e.createConstantSource(),r=e.createStereoPanner();return n.channelCount=1,n.offset.value=1,r.channelCount=1,n.start(),n.connect(r).connect(e.destination),e.startRendering().then(t=>1!==t.getChannelData(0)[0])}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const r={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",curve:null,oversample:"none"},i=(t,e,n,i,o,s)=>class extends t{constructor(t,e=r){const a=o(t),u={...r,...e},c=n(a,u);super(t,!0,c,s(a)?i():null),this._isCurveNullified=!1,this._nativeWaveShaperNode=c}get curve(){return this._isCurveNullified?null:this._nativeWaveShaperNode.curve}set curve(t){if(null===t)this._isCurveNullified=!0,this._nativeWaveShaperNode.curve=new Float32Array([0,0]);else{if(t.length<2)throw e();this._isCurveNullified=!1,this._nativeWaveShaperNode.curve=t}}get oversample(){return this._nativeWaveShaperNode.oversample}set oversample(t){this._nativeWaveShaperNode.oversample=t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(35),i=n(6);const o=(t,e,n)=>()=>{const o=new WeakMap;return{render(s,a,u){const c=o.get(a);return void 0!==c?Promise.resolve(c):(async(s,a,u)=>{let c=e(s);if(!Object(i.a)(c,a)){const e={channelCount:c.channelCount,channelCountMode:c.channelCountMode,channelInterpretation:c.channelInterpretation,curve:c.curve,oversample:c.oversample};c=t(a,e)}return o.set(a,c),Object(r.a)(c)?await n(s,a,c.inputs[0],u):await n(s,a,c,u),c})(s,a,u)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>"undefined"==typeof window?null:window},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e)=>n=>{n.copyFromChannel=(r,i,o=0)=>{const s=t(o),a=t(i);if(a>=n.numberOfChannels)throw e();const u=n.length,c=n.getChannelData(a),l=r.length;for(let t=s<0?-s:0;t+s<u&&t<l;t+=1)r[t]=c[t+s]},n.copyToChannel=(r,i,o=0)=>{const s=t(o),a=t(i);if(a>=n.numberOfChannels)throw e();const u=n.length,c=n.getChannelData(a),l=r.length;for(let t=s<0?-s:0;t+s<u&&t<l;t+=1)c[t+s]=r[t]}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{var n,r;e.copyFromChannel=(n=e.copyFromChannel,(r,i,o=0)=>{const s=t(o),a=t(i);if(s<e.length)return n.call(e,r,a,s)}),e.copyToChannel=(r=e.copyToChannel,(n,i,o=0)=>{const s=t(o),a=t(i);if(s<e.length)return r.call(e,n,a,s)})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>(e,n)=>{const r=n.createBuffer(1,1,n.sampleRate);null===e.buffer&&(e.buffer=r),t(e,"buffer",t=>()=>{const n=t.call(e);return n===r?null:n},t=>n=>t.call(e,null===n?r:n))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(28);const i=t=>(e,n)=>{const i=t(n,t=>t.createGain());e.connect(i);const o=(s=e.disconnect,()=>{s.call(e,i),e.removeEventListener("ended",o)});var s;e.addEventListener("ended",o),Object(r.a)(e,i),e.stop=(t=>{let n=!1;return(r=0)=>{if(n)try{t.call(e,r)}catch{i.gain.setValueAtTime(0,r)}else t.call(e,r),n=!0}})(e.stop)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n)=>(r,i)=>{i.channelCount=1,i.channelCountMode="explicit",Object.defineProperty(i,"channelCount",{get:()=>1,set:()=>{throw t()}}),Object.defineProperty(i,"channelCountMode",{get:()=>"explicit",set:()=>{throw t()}});const o=e(r,t=>t.createBufferSource());n(i,()=>{const t=i.numberOfInputs;for(let e=0;e<t;e+=1)o.connect(i,0,e)},()=>o.disconnect(i))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=()=>new Promise(t=>{const e=new ArrayBuffer(0),{port1:n,port2:r}=new MessageChannel;n.onmessage=({data:e})=>t(null!==e),r.postMessage(e,[e])})},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>{var e;t.start=(e=t.start,(n=0,r=0,i)=>{const o=t.buffer,s=null===o?r:Math.min(o.duration,r);null!==o&&s>o.duration-.5/t.context.sampleRate?e.call(t,n,0,0):e.call(t,n,s,i)})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return L}));var r=n(2),i=n(77),o=n(61);const s=t=>"port"in t;var a=n(96),u=n(56);const c=(t,e)=>{if(!Object(u.a)(t).delete(e))throw new Error("Missing the expected event listener.")};var l=n(97),h=n(20),f=n(79),p=n(13),d=n(80),m=n(23),v=n(42),y=n(62),g=n(52);const b=t=>!r.a.has(t),_=(t,e)=>{const n=Array.from(t).filter(e);if(n.length>1)throw Error("More than one element was found.");if(0===n.length)throw Error("No element was found.");const[r]=n;return t.delete(r),r};var w=n(49),x=n(60);const O=(t,e)=>{!s(t)&&e.every(t=>0===t.size)&&Object(x.a)(t)},T=t=>new Promise(e=>{const n=t.createScriptProcessor(256,1,1),r=t.createGain(),i=t.createBuffer(1,2,44100),o=i.getChannelData(0);o[0]=1,o[1]=1;const s=t.createBufferSource();s.buffer=i,s.loop=!0,s.connect(n).connect(t.destination),s.connect(r),s.disconnect(r),n.onaudioprocess=r=>{const i=r.inputBuffer.getChannelData(0);Array.prototype.some.call(i,t=>1===t)?e(!0):e(!1),s.stop(),n.onaudioprocess=null,s.disconnect(n),n.disconnect(t.destination)},s.start()}),S=(t,e)=>{const n=new Map;for(const e of t)for(const t of e){const e=n.get(t);n.set(t,void 0===e?1:e+1)}n.forEach((t,n)=>e(n,t))};var k=n(78);const C=(t,e,[n,r,i],o)=>{Object(v.a)(t[r],[e,n,i],t=>t[0]===e&&t[1]===n,o)},E=(t,e,[n,r],i)=>{Object(v.a)(t,[e,n,r],t=>t[0]===e&&t[1]===n,i)},A=(t,e,[n,r,i],o)=>{const s=t.get(n);void 0===s?t.set(n,new Set([[r,e,i]])):Object(v.a)(s,[r,e,i],t=>t[0]===r&&t[1]===e,o)},P=(t,[e,n,r],i)=>{const o=t.get(e);void 0===o?t.set(e,new Set([[n,r]])):Object(v.a)(o,[n,r],t=>t[0]===n,i)},j=(t,e,n,r)=>{const i=Object(m.a)(t,e),o=_(i,t=>t[0]===n&&t[1]===r);return 0===i.size&&t.delete(e),o},I=(t,e,n)=>{const r=Object(m.a)(t,e),i=_(r,t=>t[0]===n);return 0===r.size&&t.delete(e),i},M=(t,e,n,r)=>{const{activeInputs:i,passiveInputs:o}=Object(h.a)(e),{outputs:s}=Object(h.a)(t),c=Object(u.a)(t),f=s=>{const u=Object(p.a)(e),c=Object(p.a)(t);if(s){const s=j(o,t,n,r);C(i,t,s,!1),Object(g.a)(t)||Object(a.a)(c,u,n,r),b(e)&&Object(w.a)(e)}else{const s=((t,e,n,r)=>_(t[r],t=>t[0]===e&&t[1]===n))(i,t,n,r);A(o,r,s,!1),Object(g.a)(t)||Object(l.a)(c,u,n,r),Object(y.a)(e)&&O(e,i)}};return!!Object(v.a)(s,[e,n,r],t=>t[0]===e&&t[1]===n&&t[2]===r,!0)&&(c.add(f),Object(y.a)(t)?C(i,t,[n,r,f],!0):A(o,r,[t,n,f],!0),!0)},D=(t,e,n)=>{const{activeInputs:r,passiveInputs:i}=Object(f.a)(e),{outputs:o}=Object(h.a)(t),s=Object(u.a)(t),a=o=>{const s=Object(p.a)(t),a=Object(d.a)(e);if(o){const e=I(i,t,n);E(r,t,e,!1),Object(g.a)(t)||s.connect(a,n)}else{const e=((t,e,n)=>_(t,t=>t[0]===e&&t[1]===n))(r,t,n);P(i,e,!1),Object(g.a)(t)||s.disconnect(a,n)}};return!!Object(v.a)(o,[e,n],t=>t[0]===e&&t[1]===n,!0)&&(s.add(a),Object(y.a)(t)?E(r,t,[n,a],!0):P(i,[t,n,a],!0),!0)},N=(t,e,n)=>{for(const r of t)if(r[0]===e&&r[1]===n)return t.delete(r),r;return null},R=(t,e,n,r)=>{const[i,o]=((t,e,n,r)=>{const{activeInputs:i,passiveInputs:o}=Object(h.a)(e),s=N(i[r],t,n);if(null===s){return[j(o,t,n,r)[2],!1]}return[s[2],!0]})(t,e,n,r);if(null!==i&&(c(t,i),o&&!Object(g.a)(t)&&Object(l.a)(Object(p.a)(t),Object(p.a)(e),n,r)),Object(y.a)(e)){const{activeInputs:t}=Object(h.a)(e);O(e,t)}},F=(t,e,n)=>{const[r,i]=((t,e,n)=>{const{activeInputs:r,passiveInputs:i}=Object(f.a)(e),o=N(r,t,n);if(null===o){return[I(i,t,n)[1],!1]}return[o[2],!0]})(t,e,n);null!==r&&(c(t,r),i&&!Object(g.a)(t)&&Object(p.a)(t).disconnect(Object(d.a)(e),n))},L=(t,e,n,u,c,l,m,y,g,_,x,O,A,P,j)=>class extends _{constructor(e,i,o,s){super(o),this._context=e,this._nativeAudioNode=o;const a=x(e);O(a)&&!0!==n(T,()=>T(a))&&(t=>{const e=new Map;var n,r;t.connect=(n=t.connect.bind(t),(t,r=0,i=0)=>{const o=Object(k.a)(t)?n(t,r,i):n(t,r),s=e.get(t);return void 0===s?e.set(t,[{input:i,output:r}]):s.every(t=>t.input!==i||t.output!==r)&&s.push({input:i,output:r}),o}),t.disconnect=(r=t.disconnect,(n,i,o)=>{if(r.apply(t),void 0===n)e.clear();else if("number"==typeof n)for(const[t,r]of e){const i=r.filter(t=>t.output!==n);0===i.length?e.delete(t):e.set(t,i)}else if(e.has(n))if(void 0===i)e.delete(n);else{const t=e.get(n);if(void 0!==t){const r=t.filter(t=>t.output!==i&&(t.input!==o||void 0===o));0===r.length?e.delete(n):e.set(n,r)}}for(const[n,r]of e)r.forEach(e=>{Object(k.a)(n)?t.connect(n,e.output,e.input):t.connect(n,e.output)})})})(o),r.c.set(this,o),r.i.set(this,new Set),i&&Object(w.a)(this),t(this,s,o)}get channelCount(){return this._nativeAudioNode.channelCount}set channelCount(t){this._nativeAudioNode.channelCount=t}get channelCountMode(){return this._nativeAudioNode.channelCountMode}set channelCountMode(t){this._nativeAudioNode.channelCountMode=t}get channelInterpretation(){return this._nativeAudioNode.channelInterpretation}set channelInterpretation(t){this._nativeAudioNode.channelInterpretation=t}get context(){return this._context}get numberOfInputs(){return this._nativeAudioNode.numberOfInputs}get numberOfOutputs(){return this._nativeAudioNode.numberOfOutputs}connect(t,n=0,r=0){if(n<0||n>=this._nativeAudioNode.numberOfOutputs)throw c();const o=x(this._context),y=j(o);if(A(t)||P(t))throw l();if(Object(i.a)(t)){const i=Object(p.a)(t);try{const u=Object(a.a)(this._nativeAudioNode,i,n,r);if(y||b(this)?this._nativeAudioNode.disconnect(...u):b(t)&&Object(w.a)(t),s(t)){const t=e.get(i);if(void 0===t){const t=o.createGain();t.connect(u[0],0,u[2]),e.set(i,new Map([[r,t]]))}else if(void 0===t.get(r)){const e=o.createGain();e.connect(u[0],0,u[2]),t.set(r,e)}}}catch(t){if(12===t.code)throw l();throw t}if(y?((t,e,n,r)=>{const{outputs:i}=Object(h.a)(t);if(Object(v.a)(i,[e,n,r],t=>t[0]===e&&t[1]===n&&t[2]===r,!0)){const{activeInputs:i}=Object(h.a)(e);return C(i,t,[n,r,null],!0),!0}return!1})(this,t,n,r):M(this,t,n,r)){const e=g([this],t);S(e,u(y))}return t}const _=Object(d.a)(t);if("playbackRate"===_.name)throw m();try{this._nativeAudioNode.connect(_,n),(y||b(this))&&this._nativeAudioNode.disconnect(_,n)}catch(t){if(12===t.code)throw l();throw t}if(y?((t,e,n)=>{const{outputs:r}=Object(h.a)(t);if(Object(v.a)(r,[e,n],t=>t[0]===e&&t[1]===n,!0)){const{activeInputs:r}=Object(f.a)(e);return E(r,t,[n,null],!0),!0}return!1})(this,t,n):D(this,t,n)){const e=g([this],t);S(e,u(y))}}disconnect(t,e,n){let r;if(void 0===t)r=(t=>{const e=Object(h.a)(t),n=[];for(const r of e.outputs)Object(o.a)(r)?R(t,...r):F(t,...r),n.push(r[0]);return e.outputs.clear(),n})(this);else if("number"==typeof t){if(t<0||t>=this.numberOfOutputs)throw c();r=((t,e)=>{const n=Object(h.a)(t),r=[];for(const i of n.outputs)i[1]===e&&(Object(o.a)(i)?R(t,...i):F(t,...i),r.push(i[0]),n.outputs.delete(i));return r})(this,t)}else{if(void 0!==e&&(e<0||e>=this.numberOfOutputs))throw c();if(Object(i.a)(t)&&void 0!==n&&(n<0||n>=t.numberOfInputs))throw c();if(r=((t,e,n,r)=>{const i=Object(h.a)(t);return Array.from(i.outputs).filter(t=>!(t[0]!==e||void 0!==n&&t[1]!==n||void 0!==r&&t[2]!==r)).map(e=>(Object(o.a)(e)?R(t,...e):F(t,...e),i.outputs.delete(e),e[0]))})(this,t,e,n),0===r.length)throw l()}for(const t of r){const e=g([this],t);S(e,y)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n(5),i=n(130),o=n(98),s=n(128),a=n(2);const u=async(t,e)=>new t(await(t=>new Promise((e,n)=>{const{port1:r,port2:i}=new MessageChannel;r.onmessage=({data:t})=>{r.close(),i.close(),e(t)},r.onmessageerror=({data:t})=>{r.close(),i.close(),n(t)},i.postMessage(t)}))(e));var c=n(99),l=n(127);const h=(t,e,n,h,f,p,d,m,v,y,g,b,_)=>(w,x,O,T)=>{if(0===T.numberOfInputs&&0===T.numberOfOutputs)throw y();if(void 0!==T.outputChannelCount){if(T.outputChannelCount.some(t=>t<1))throw y();if(T.outputChannelCount.length!==T.numberOfOutputs)throw n()}if("explicit"!==T.channelCountMode)throw y();const S=T.channelCount*T.numberOfInputs,k=T.outputChannelCount.reduce((t,e)=>t+e,0),C=void 0===O.parameterDescriptors?0:O.parameterDescriptors.length;if(S+C>6||k>6)throw y();const E=new MessageChannel,A=[],P=[];for(let t=0;t<T.numberOfInputs;t+=1)A.push(m(w,{channelCount:T.channelCount,channelCountMode:T.channelCountMode,channelInterpretation:T.channelInterpretation,gain:1})),P.push(p(w,{channelCount:T.channelCount,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:T.channelCount}));const j=[];if(void 0!==O.parameterDescriptors)for(const{defaultValue:t,maxValue:e,minValue:n,name:i}of O.parameterDescriptors){const o=d(w,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:void 0!==T.parameterData[i]?T.parameterData[i]:void 0===t?0:t});Object.defineProperties(o.offset,{defaultValue:{get:()=>void 0===t?0:t},maxValue:{get:()=>void 0===e?r.b:e},minValue:{get:()=>void 0===n?r.a:n}}),j.push(o)}const I=f(w,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,S+C)}),M=Object(i.a)(x,w.sampleRate),D=v(w,M,S+C,Math.max(1,k)),N=p(w,{channelCount:Math.max(1,k),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,k)}),R=[];for(let t=0;t<T.numberOfOutputs;t+=1)R.push(f(w,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:T.outputChannelCount[t]}));for(let t=0;t<T.numberOfInputs;t+=1){A[t].connect(P[t]);for(let e=0;e<T.channelCount;e+=1)P[t].connect(I,e,t*T.channelCount+e)}const F=new l.a(void 0===O.parameterDescriptors?[]:O.parameterDescriptors.map(({name:t},e)=>{const n=j[e];return n.connect(I,0,S+e),n.start(0),[t,n.offset]}));I.connect(D);let L=T.channelInterpretation,V=null;const z=0===T.numberOfOutputs?[D]:R,B={get bufferSize(){return M},get channelCount(){return T.channelCount},set channelCount(t){throw h()},get channelCountMode(){return T.channelCountMode},set channelCountMode(t){throw h()},get channelInterpretation(){return L},set channelInterpretation(t){for(const e of A)e.channelInterpretation=t;L=t},get context(){return D.context},get inputs(){return A},get numberOfInputs(){return T.numberOfInputs},get numberOfOutputs(){return T.numberOfOutputs},get onprocessorerror(){return V},set onprocessorerror(t){"function"==typeof V&&B.removeEventListener("processorerror",V),V="function"==typeof t?t:null,"function"==typeof V&&B.addEventListener("processorerror",V)},get parameters(){return F},get port(){return E.port2},addEventListener:(...t)=>D.addEventListener(t[0],t[1],t[2]),connect:e.bind(null,z),disconnect:g.bind(null,z),dispatchEvent:(...t)=>D.dispatchEvent(t[0]),removeEventListener:(...t)=>D.removeEventListener(t[0],t[1],t[2])},q=new Map;var U,W;E.port1.addEventListener=(U=E.port1.addEventListener,(...t)=>{if("message"===t[0]){const e="function"==typeof t[1]?t[1]:"object"==typeof t[1]&&null!==t[1]&&"function"==typeof t[1].handleEvent?t[1].handleEvent:null;if(null!==e){const n=q.get(t[1]);void 0!==n?t[1]=n:(t[1]=t=>{b(w.currentTime,w.sampleRate,()=>e(t))},q.set(e,t[1]))}}return U.call(E.port1,t[0],t[1],t[2])}),E.port1.removeEventListener=(W=E.port1.removeEventListener,(...t)=>{if("message"===t[0]){const e=q.get(t[1]);void 0!==e&&(q.delete(t[1]),t[1]=e)}return W.call(E.port1,t[0],t[1],t[2])});let $=null;Object.defineProperty(E.port1,"onmessage",{get:()=>$,set:t=>{"function"==typeof $&&E.port1.removeEventListener("message",$),$="function"==typeof t?t:null,"function"==typeof $&&(E.port1.addEventListener("message",$),E.port1.start())}}),O.prototype.port=E.port1;let H=null;((t,e,n,r)=>{let i=a.k.get(t);void 0===i&&(i=new WeakMap,a.k.set(t,i));const o=u(n,r);return i.set(e,o),o})(w,B,O,T).then(t=>H=t);const K=Object(c.a)(T.numberOfInputs,T.channelCount),G=Object(c.a)(T.numberOfOutputs,T.outputChannelCount),Y=void 0===O.parameterDescriptors?[]:O.parameterDescriptors.reduce((t,{name:e})=>({...t,[e]:new Float32Array(128)}),{});let X=!0;const J=()=>{T.numberOfOutputs>0&&D.disconnect(N);for(let t=0,e=0;t<T.numberOfOutputs;t+=1){const n=R[t];for(let r=0;r<T.outputChannelCount[t];r+=1)N.disconnect(n,e+r,r);e+=T.outputChannelCount[t]}};D.onaudioprocess=({inputBuffer:e,outputBuffer:n})=>{if(null!==H)for(let r=0;r<M;r+=128){for(let t=0;t<T.numberOfInputs;t+=1)for(let n=0;n<T.channelCount;n+=1)Object(o.a)(e,K[t],n,n,r);void 0!==O.parameterDescriptors&&O.parameterDescriptors.forEach(({name:t},n)=>{Object(o.a)(e,Y,t,S+n,r)});for(let t=0;t<T.numberOfInputs;t+=1)for(let e=0;e<T.outputChannelCount[t];e+=1)0===G[t][e].byteLength&&(G[t][e]=new Float32Array(128));try{const e=K.map((e,n)=>{const r=t.get(B);return void 0===r||void 0===r.get(n)?[]:e}),i=b(w.currentTime+r/w.sampleRate,w.sampleRate,()=>H.process(e,G,Y));X=i;for(let t=0,e=0;t<T.numberOfOutputs;t+=1){for(let i=0;i<T.outputChannelCount[t];i+=1)Object(s.a)(n,G[t],i,e+i,r);e+=T.outputChannelCount[t]}}catch(t){X=!1,B.dispatchEvent(new ErrorEvent("processorerror",{error:t}))}if(!X){for(let t=0;t<T.numberOfInputs;t+=1){A[t].disconnect(P[t]);for(let e=0;e<T.channelCount;e+=1)P[r].disconnect(I,e,t*T.channelCount+e)}if(void 0!==O.parameterDescriptors){const t=O.parameterDescriptors.length;for(let e=0;e<t;e+=1){const t=j[e];t.disconnect(I,0,S+e),t.stop()}}I.disconnect(D),D.onaudioprocess=null,Q?J():et();break}}};let Q=!1;const Z=m(w,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0}),tt=()=>D.connect(Z).connect(Z.context.destination),et=()=>{D.disconnect(Z),Z.disconnect()};return tt(),_(B,()=>{if(X){et(),T.numberOfOutputs>0&&D.connect(N);for(let t=0,e=0;t<T.numberOfOutputs;t+=1){const n=R[t];for(let r=0;r<T.outputChannelCount[t];r+=1)N.connect(n,e+r,r);e+=T.outputChannelCount[t]}}Q=!0},()=>{X&&(tt(),J()),Q=!1})}},function(t,e,n){"use strict";var r=n(94);function i(t,e){void 0===e&&(e={});var n=function(t){if(t&&"j"===t[0]&&":"===t[1])return t.substr(2);return t}(t);if(function(t,e){return void 0===e&&(e=!t||"{"!==t[0]&&"["!==t[0]&&'"'!==t[0]),!e}(n,e.doNotParse))try{return JSON.parse(n)}catch(t){}return t}var o=n(122),s=function(){function t(t,e){var n=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies=function(t,e){return"string"==typeof t?r.parse(t,e):"object"==typeof t&&null!==t?t:{}}(t,e),new Promise((function(){n.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof document.cookie})).catch((function(){}))}return t.prototype._updateBrowserValues=function(t){this.HAS_DOCUMENT_COOKIE&&(this.cookies=r.parse(document.cookie,t))},t.prototype._emitChange=function(t){for(var e=0;e<this.changeListeners.length;++e)this.changeListeners[e](t)},t.prototype.get=function(t,e,n){return void 0===e&&(e={}),this._updateBrowserValues(n),i(this.cookies[t],e)},t.prototype.getAll=function(t,e){void 0===t&&(t={}),this._updateBrowserValues(e);var n={};for(var r in this.cookies)n[r]=i(this.cookies[r],t);return n},t.prototype.set=function(t,e,n){var i;"object"==typeof e&&(e=JSON.stringify(e)),this.cookies=o({},this.cookies,((i={})[t]=e,i)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=r.serialize(t,e,n)),this._emitChange({name:t,value:e,options:n})},t.prototype.remove=function(t,e){var n=e=o({},e,{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=o({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=r.serialize(t,"",n)),this._emitChange({name:t,value:void 0,options:e})},t.prototype.addChangeListener=function(t){this.changeListeners.push(t)},t.prototype.removeChangeListener=function(t){var e=this.changeListeners.indexOf(t);e>=0&&this.changeListeners.splice(e,1)},t}();e.a=s},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(2);const i={construct:()=>i},o=/^import(?:(?:[\s]+[\w]+|(?:[\s]+[\w]+[\s]*,)?[\s]*\{[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?(?:[\s]*,[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?)*[\s]*}|(?:[\s]+[\w]+[\s]*,)?[\s]*\*[\s]+as[\s]+[\w]+)[\s]+from)?(?:[\s]*)("([^"\\]|\\.)+"|'([^'\\]|\\.)+')(?:[\s]*);?/,s=(t,e)=>{const n=[];let r=t.replace(/^[\s]+/,""),i=r.match(o);for(;null!==i;){const t=i[1].slice(1,-1),s=i[0].replace(/([\s]+)?;?$/,"").replace(t,new URL(t,e).toString());n.push(s),r=r.slice(i[0].length).replace(/^[\s]+/,""),i=r.match(o)}return[n.join(";"),r]},a=t=>{if(void 0!==t&&!Array.isArray(t))throw new TypeError("The parameterDescriptors property of given value for processorCtor is not an array.")},u=t=>{if(!(t=>{try{new new Proxy(t,i)}catch{return!1}return!0})(t))throw new TypeError("The given value for processorCtor should be a constructor.");if(null===t.prototype||"object"!=typeof t.prototype)throw new TypeError("The given value for processorCtor should have a prototype.")},c=(t,e,n,i,o,c,l,h,f)=>(p,d,m={credentials:"omit"})=>{const v=c(p),y=new URL(d,f.location.href).toString();if(void 0!==v.audioWorklet)return i(d).then(t=>{const[e,n]=s(t,y),r=new Blob([`${e};(registerProcessor=>{${n}\n})((n,p)=>registerProcessor(n,class extends p{process(i,o,p){return super.process(i.map(j=>j.some(k=>k.length===0)?[]:j),o,p)}}))`],{type:"application/javascript; charset=utf-8"}),i=URL.createObjectURL(r),a=o(v);return(null!==a?a:v).audioWorklet.addModule(i,m).then(()=>URL.revokeObjectURL(i)).catch(t=>{throw URL.revokeObjectURL(i),void 0!==t.code&&"SyntaxError"!==t.name||(t.code=12),t})});const g=h.get(p);if(void 0!==g&&g.has(d))return Promise.resolve();const b=l.get(p);if(void 0!==b){const t=b.get(d);if(void 0!==t)return t}const _=i(d).then(t=>{const[n,r]=s(t,y);return e(`${n};((a,b)=>{(a[b]=a[b]||[]).push((AudioWorkletProcessor,global,registerProcessor,sampleRate,self,window)=>{${r}\n})})(window,'_AWGS')`)}).then(()=>{const e=f._AWGS.pop();if(void 0===e)throw new SyntaxError;n(v.currentTime,v.sampleRate,()=>e(class{},void 0,(e,n)=>{if(""===e.trim())throw t();const i=r.j.get(v);if(void 0!==i){if(i.has(e))throw t();u(n),a(n.parameterDescriptors),i.set(e,n)}else u(n),a(n.parameterDescriptors),r.j.set(v,new Map([[e,n]]))},v.sampleRate,void 0,void 0))}).catch(t=>{throw void 0!==t.code&&"SyntaxError"!==t.name||(t.code=12),t});return void 0===b?l.set(p,new Map([[d,_]])):b.set(d,_),_.then(()=>{const t=h.get(p);void 0===t?h.set(p,new Set([d])):t.add(d)}).catch(()=>{}).then(()=>{const t=l.get(p);void 0!==t&&t.delete(d)}),_}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(7),i=n(4);const o=t=>"function"==typeof t.getFloatTimeDomainData,s=(t,e,n)=>(s,a)=>{const u=n(s,t=>t.createAnalyser());if(Object(i.a)(u,a),!(a.maxDecibels>a.minDecibels))throw e();return Object(r.a)(u,a,"fftSize"),Object(r.a)(u,a,"maxDecibels"),Object(r.a)(u,a,"minDecibels"),Object(r.a)(u,a,"smoothingTimeConstant"),t(o,()=>o(u))||(t=>{t.getFloatTimeDomainData=e=>{const n=new Uint8Array(e.length);t.getByteTimeDomainData(n);const r=Math.max(n.length,t.fftSize);for(let t=0;t<r;t+=1)e[t]=.0078125*(n[t]-128);return e}})(u),u}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(8),i=n(7),o=n(4),s=n(14);var a=n(91),u=n(92);const c=(t,e,n,c,l,h,f,p,d,m,v,y,g)=>(b,_)=>{const w=n(b,t=>t.createBufferSource());return Object(o.a)(w,_),Object(r.a)(w,_,"playbackRate"),Object(i.a)(w,_,"buffer"),Object(i.a)(w,_,"loop"),Object(i.a)(w,_,"loopEnd"),Object(i.a)(w,_,"loopStart"),e(c,()=>c(b))||(t=>{t.start=(e=>{let n=!1;return(r=0,i=0,o)=>{if(n)throw Object(s.a)();e.call(t,r,i,o),n=!0}})(t.start)})(w),e(l,l)||((t,e)=>{let n=Number.POSITIVE_INFINITY,r=Number.POSITIVE_INFINITY;var i,o;t.start=(i=t.start,o=t.stop,(s=0,a=0,u=Number.POSITIVE_INFINITY)=>{if(i.call(t,s,a),u>=0&&u<Number.POSITIVE_INFINITY){const i=Math.max(s,e.currentTime),a=u/t.playbackRate.value;n=i+a,o.call(t,Math.min(n,r))}}),t.stop=(i=>(o=0)=>{r=Math.max(o,e.currentTime),i.call(t,Math.min(n,r))})(t.stop)})(w,b),e(h,()=>h(b))||v(w),e(f,()=>f(b))||y(w,b),e(p,()=>p(b))||Object(a.a)(w),e(d,()=>d(b))||g(w,b),e(m,()=>m(b))||Object(u.a)(w),t(b,w),w}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(98),i=n(128),o=n(99),s=n(20),a=n(2),u=n(13),c=n(23);var l=n(6);const h=async(t,e,n,l,h,f)=>{const p=null===e?128*Math.ceil(t.context.length/128):e.length,d=l.channelCount*l.numberOfInputs,m=l.outputChannelCount.reduce((t,e)=>t+e,0),v=0===m?null:n.createBuffer(m,p,n.sampleRate);if(void 0===h)throw new Error("Missing the processor constructor.");const y=Object(s.a)(t),g=await((t,e)=>{const n=Object(c.a)(a.k,t),r=Object(u.a)(e);return Object(c.a)(n,r)})(n,t),b=Object(o.a)(l.numberOfInputs,l.channelCount),_=Object(o.a)(l.numberOfOutputs,l.outputChannelCount),w=Array.from(t.parameters.keys()).reduce((t,e)=>({...t,[e]:new Float32Array(128)}),{});for(let o=0;o<p;o+=128){if(l.numberOfInputs>0&&null!==e)for(let t=0;t<l.numberOfInputs;t+=1)for(let n=0;n<l.channelCount;n+=1)Object(r.a)(e,b[t],n,n,o);void 0!==h.parameterDescriptors&&null!==e&&h.parameterDescriptors.forEach(({name:t},n)=>{Object(r.a)(e,w,t,d+n,o)});for(let t=0;t<l.numberOfInputs;t+=1)for(let e=0;e<l.outputChannelCount[t];e+=1)0===_[t][e].byteLength&&(_[t][e]=new Float32Array(128));try{const t=b.map((t,e)=>0===y.activeInputs[e].size?[]:t),e=f(o/n.sampleRate,n.sampleRate,()=>g.process(t,_,w));if(null!==v)for(let t=0,e=0;t<l.numberOfOutputs;t+=1){for(let n=0;n<l.outputChannelCount[t];n+=1)Object(i.a)(v,_[t],n,e+n,o);e+=l.outputChannelCount[t]}if(!e)break}catch(e){t.dispatchEvent(new ErrorEvent("processorerror",{error:e}));break}}return v},f=(t,e,n,r,i,o,s,a,u,c,f,p,d,m,v,y)=>(g,b,_)=>{const w=new WeakMap;let x=null;return{render(O,T,S){a(T,O);const k=w.get(T);return void 0!==k?Promise.resolve(k):(async(a,O,T)=>{let S=f(a),k=null;const C=Object(l.a)(S,O);if(null===p){const t=b.outputChannelCount.reduce((t,e)=>t+e,0),n=i(O,{channelCount:Math.max(1,t),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,t)}),o=[];for(let t=0;t<a.numberOfOutputs;t+=1)o.push(r(O,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:b.outputChannelCount[t]}));const c=s(O,{channelCount:b.channelCount,channelCountMode:b.channelCountMode,channelInterpretation:b.channelInterpretation,gain:1});c.connect=e.bind(null,o),c.disconnect=u.bind(null,o),k=[n,o,c]}else C||(S=new p(O,g));if(w.set(O,null===k?S:k[2]),null!==k){if(null===x){if(void 0===_)throw new Error("Missing the processor constructor.");if(null===d)throw new Error("Missing the native OfflineAudioContext constructor.");const t=a.channelCount*a.numberOfInputs,e=void 0===_.parameterDescriptors?0:_.parameterDescriptors.length,n=t+e,u=async()=>{const u=new d(n,128*Math.ceil(a.context.length/128),O.sampleRate),c=[],l=[];for(let t=0;t<b.numberOfInputs;t+=1)c.push(s(u,{channelCount:b.channelCount,channelCountMode:b.channelCountMode,channelInterpretation:b.channelInterpretation,gain:1})),l.push(i(u,{channelCount:b.channelCount,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:b.channelCount}));const h=await Promise.all(Array.from(a.parameters.values()).map(async t=>{const e=o(u,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:t.value});return await m(u,t,e.offset,T),e})),f=r(u,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,t+e)});for(let t=0;t<b.numberOfInputs;t+=1){c[t].connect(l[t]);for(let e=0;e<b.channelCount;e+=1)l[t].connect(f,e,t*b.channelCount+e)}for(const[e,n]of h.entries())n.connect(f,0,t+e),n.start(0);return f.connect(u.destination),await Promise.all(c.map(t=>v(a,u,t,T))),y(u)};x=h(a,0===n?null:await u(),O,b,_,c)}const t=await x,e=n(O,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),[u,l,f]=k;null!==t&&(e.buffer=t,e.start(0)),e.connect(u);for(let t=0,e=0;t<a.numberOfOutputs;t+=1){const n=l[t];for(let r=0;r<b.outputChannelCount[t];r+=1)u.connect(n,e+r,r);e+=b.outputChannelCount[t]}return f}if(C)for(const[e,n]of a.parameters.entries())await t(O,n,S.parameters.get(e),T);else for(const[t,e]of a.parameters.entries())await m(O,e,S.parameters.get(t),T);return await v(a,O,S,T),S})(O,T,S)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(90);const i=(t,e,n,i,o,s,a,u,c,l,h,f,p)=>(d,m)=>{const v=a(d)?d:s(d);if(o.has(m)){const t=n();return Promise.reject(t)}try{o.add(m)}catch{}if(e(h,()=>h(v))){return("closed"===v.state&&null!==c&&u(v)?new c(1,1,v.sampleRate):v).decodeAudioData(m).catch(t=>{if(t instanceof DOMException&&"NotSupportedError"===t.name)throw new TypeError;throw t}).then(n=>(e(l,()=>l(n))||p(n),t.add(n),n))}return new Promise((e,n)=>{const o=()=>{try{(t=>{const{port1:e}=new MessageChannel;e.postMessage(t,[t])})(m)}catch{}},s=t=>{n(t),o()};try{v.decodeAudioData(m,n=>{"function"!=typeof n.copyFromChannel&&(f(n),Object(r.a)(n)),t.add(n),o(),e(n)},t=>{s(null===t?i():t)})}catch(t){s(t)}})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(77);const i=(t,e,n)=>function i(o,s){const a=Object(r.a)(s)?s:n(t,s);if((t=>"delayTime"in t)(a))return[];if(o[0]===a)return[o];if(o.includes(a))return[];const{outputs:u}=e(a);return Array.from(u).map(t=>i([...o,a],t[0])).reduce((t,e)=>t.concat(e),[])}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(100);const i={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers"},o=(t,e,n,o,s)=>class extends t{constructor(t,a){const u=o(t),c=s(u),l={...i,...a},h=e(u,c?null:t.baseLatency,l);super(t,!1,h,c?n(l.feedback,l.feedforward):null),(t=>{var e;t.getFrequencyResponse=(e=t.getFrequencyResponse,(n,i,o)=>{if(n.length!==i.length||i.length!==o.length)throw Object(r.a)();return e.call(t,n,i,o)})})(h),this._nativeIIRFilterNode=h}getFrequencyResponse(t,e,n){return this._nativeIIRFilterNode.getFrequencyResponse(t,e,n)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r,i,o)=>(s,a,u,c,l,h)=>{if(null!==u)try{const n=e(s,t=>new u(t,c,h)),i=new Map;let a=null;if(Object.defineProperties(n,{channelCount:{get:()=>h.channelCount,set:()=>{throw t()}},channelCountMode:{get:()=>"explicit",set:()=>{throw t()}},onprocessorerror:{get:()=>a,set:t=>{"function"==typeof a&&n.removeEventListener("processorerror",a),a="function"==typeof t?t:null,"function"==typeof a&&n.addEventListener("processorerror",a)}}}),n.addEventListener=(p=n.addEventListener,(...t)=>{if("processorerror"===t[0]){const e="function"==typeof t[1]?t[1]:"object"==typeof t[1]&&null!==t[1]&&"function"==typeof t[1].handleEvent?t[1].handleEvent:null;if(null!==e){const n=i.get(t[1]);void 0!==n?t[1]=n:(t[1]=n=>{e(new ErrorEvent(t[0],{...n,error:new Error}))},i.set(e,t[1]))}}return p.call(n,t[0],t[1],t[2])}),n.removeEventListener=(f=n.removeEventListener,(...t)=>{if("processorerror"===t[0]){const e=i.get(t[1]);void 0!==e&&(i.delete(t[1]),t[1]=e)}return f.call(n,t[0],t[1],t[2])}),0!==h.numberOfOutputs){const t=r(s,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});n.connect(t).connect(t.context.destination);return o(n,()=>t.disconnect(),()=>t.connect(t.context.destination))}return n}catch(t){if(11===t.code)throw i();throw t}var f,p;if(void 0===l)throw i();return(t=>{const{port1:e}=new MessageChannel;try{e.postMessage(t)}finally{e.close()}})(h),n(s,a,l,h)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=n(14);const o=t=>(e,n)=>{const o=t(e,t=>t.createChannelSplitter(n.numberOfOutputs));return Object(r.a)(o,n),(t=>{const e=t.numberOfOutputs;Object.defineProperty(t,"channelCount",{get:()=>e,set:t=>{if(t!==e)throw Object(i.a)()}}),Object.defineProperty(t,"channelCountMode",{get:()=>"explicit",set:t=>{if("explicit"!==t)throw Object(i.a)()}}),Object.defineProperty(t,"channelInterpretation",{get:()=>"discrete",set:t=>{if("discrete"!==t)throw Object(i.a)()}})})(o),o}},function(t,e){t.exports=function(t,e){throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and runs after the decorators transform.")}},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e,n){var r=n(1057),i=n(1058),o=n(1059),s=n(1061);t.exports=function(t,e){return r(t)||i(t,e)||o(t,e)||s()}},,function(t,e,n){"use strict";n(846);var r,i=(r=n(1017))&&r.__esModule?r:{default:r};i.default._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),i.default._babelPolyfill=!0},function(t,e,n){"use strict";n(847),n(990),n(992),n(995),n(997),n(999),n(1001),n(1003),n(1005),n(1007),n(1009),n(1011),n(1013),n(203)},function(t,e,n){n(848),n(851),n(852),n(853),n(854),n(855),n(856),n(857),n(858),n(859),n(860),n(861),n(862),n(863),n(864),n(865),n(866),n(867),n(868),n(869),n(870),n(871),n(872),n(873),n(874),n(875),n(876),n(877),n(878),n(879),n(880),n(881),n(882),n(883),n(884),n(885),n(886),n(887),n(888),n(889),n(890),n(891),n(892),n(894),n(895),n(896),n(897),n(898),n(899),n(900),n(901),n(902),n(903),n(904),n(905),n(906),n(907),n(908),n(909),n(910),n(911),n(912),n(913),n(914),n(915),n(916),n(917),n(918),n(919),n(920),n(921),n(922),n(923),n(924),n(925),n(926),n(927),n(929),n(930),n(932),n(933),n(934),n(935),n(936),n(937),n(938),n(940),n(941),n(942),n(943),n(944),n(945),n(946),n(947),n(948),n(949),n(950),n(951),n(952),n(154),n(953),n(192),n(954),n(193),n(955),n(956),n(957),n(958),n(194),n(961),n(962),n(963),n(964),n(965),n(966),n(967),n(968),n(969),n(970),n(971),n(972),n(973),n(974),n(975),n(976),n(977),n(978),n(979),n(980),n(981),n(982),n(983),n(984),n(985),n(986),n(987),n(988),n(989),t.exports=n(19)},function(t,e,n){"use strict";var r=n(9),i=n(32),o=n(21),s=n(1),a=n(29),u=n(59).KEY,c=n(10),l=n(110),h=n(84),f=n(66),p=n(15),d=n(135),m=n(173),v=n(850),y=n(113),g=n(11),b=n(12),_=n(26),w=n(34),x=n(58),O=n(65),T=n(70),S=n(176),k=n(46),C=n(112),E=n(22),A=n(68),P=k.f,j=E.f,I=S.f,M=r.Symbol,D=r.JSON,N=D&&D.stringify,R=p("_hidden"),F=p("toPrimitive"),L={}.propertyIsEnumerable,V=l("symbol-registry"),z=l("symbols"),B=l("op-symbols"),q=Object.prototype,U="function"==typeof M&&!!C.f,W=r.QObject,$=!W||!W.prototype||!W.prototype.findChild,H=o&&c((function(){return 7!=T(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=P(q,e);r&&delete q[e],j(t,e,n),r&&t!==q&&j(q,e,r)}:j,K=function(t){var e=z[t]=T(M.prototype);return e._k=t,e},G=U&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},Y=function(t,e,n){return t===q&&Y(B,e,n),g(t),e=x(e,!0),g(n),i(z,e)?(n.enumerable?(i(t,R)&&t[R][e]&&(t[R][e]=!1),n=T(n,{enumerable:O(0,!1)})):(i(t,R)||j(t,R,O(1,{})),t[R][e]=!0),H(t,e,n)):j(t,e,n)},X=function(t,e){g(t);for(var n,r=v(e=w(e)),i=0,o=r.length;o>i;)Y(t,n=r[i++],e[n]);return t},J=function(t){var e=L.call(this,t=x(t,!0));return!(this===q&&i(z,t)&&!i(B,t))&&(!(e||!i(this,t)||!i(z,t)||i(this,R)&&this[R][t])||e)},Q=function(t,e){if(t=w(t),e=x(e,!0),t!==q||!i(z,e)||i(B,e)){var n=P(t,e);return!n||!i(z,e)||i(t,R)&&t[R][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=I(w(t)),r=[],o=0;n.length>o;)i(z,e=n[o++])||e==R||e==u||r.push(e);return r},tt=function(t){for(var e,n=t===q,r=I(n?B:w(t)),o=[],s=0;r.length>s;)!i(z,e=r[s++])||n&&!i(q,e)||o.push(z[e]);return o};U||(a((M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(n){this===q&&e.call(B,n),i(this,R)&&i(this[R],t)&&(this[R][t]=!1),H(this,t,O(1,n))};return o&&$&&H(q,t,{configurable:!0,set:e}),K(t)}).prototype,"toString",(function(){return this._k})),k.f=Q,E.f=Y,n(71).f=S.f=Z,n(104).f=J,C.f=tt,o&&!n(67)&&a(q,"propertyIsEnumerable",J,!0),d.f=function(t){return K(p(t))}),s(s.G+s.W+s.F*!U,{Symbol:M});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)p(et[nt++]);for(var rt=A(p.store),it=0;rt.length>it;)m(rt[it++]);s(s.S+s.F*!U,"Symbol",{for:function(t){return i(V,t+="")?V[t]:V[t]=M(t)},keyFor:function(t){if(!G(t))throw TypeError(t+" is not a symbol!");for(var e in V)if(V[e]===t)return e},useSetter:function(){$=!0},useSimple:function(){$=!1}}),s(s.S+s.F*!U,"Object",{create:function(t,e){return void 0===e?T(t):X(T(t),e)},defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:tt});var ot=c((function(){C.f(1)}));s(s.S+s.F*ot,"Object",{getOwnPropertySymbols:function(t){return C.f(_(t))}}),D&&s(s.S+s.F*(!U||c((function(){var t=M();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(b(e)||void 0!==t)&&!G(t))return y(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!G(e))return e}),r[1]=e,N.apply(D,r)}}),M.prototype[F]||n(33)(M.prototype,F,M.prototype.valueOf),h(M,"Symbol"),h(Math,"Math",!0),h(r.JSON,"JSON",!0)},function(t,e,n){t.exports=n(110)("native-function-to-string",Function.toString)},function(t,e,n){var r=n(68),i=n(112),o=n(104);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var s,a=n(t),u=o.f,c=0;a.length>c;)u.call(t,s=a[c++])&&e.push(s);return e}},function(t,e,n){var r=n(1);r(r.S,"Object",{create:n(70)})},function(t,e,n){var r=n(1);r(r.S+r.F*!n(21),"Object",{defineProperty:n(22).f})},function(t,e,n){var r=n(1);r(r.S+r.F*!n(21),"Object",{defineProperties:n(175)})},function(t,e,n){var r=n(34),i=n(46).f;n(47)("getOwnPropertyDescriptor",(function(){return function(t,e){return i(r(t),e)}}))},function(t,e,n){var r=n(26),i=n(72);n(47)("getPrototypeOf",(function(){return function(t){return i(r(t))}}))},function(t,e,n){var r=n(26),i=n(68);n(47)("keys",(function(){return function(t){return i(r(t))}}))},function(t,e,n){n(47)("getOwnPropertyNames",(function(){return n(176).f}))},function(t,e,n){var r=n(12),i=n(59).onFreeze;n(47)("freeze",(function(t){return function(e){return t&&r(e)?t(i(e)):e}}))},function(t,e,n){var r=n(12),i=n(59).onFreeze;n(47)("seal",(function(t){return function(e){return t&&r(e)?t(i(e)):e}}))},function(t,e,n){var r=n(12),i=n(59).onFreeze;n(47)("preventExtensions",(function(t){return function(e){return t&&r(e)?t(i(e)):e}}))},function(t,e,n){var r=n(12);n(47)("isFrozen",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(12);n(47)("isSealed",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(12);n(47)("isExtensible",(function(t){return function(e){return!!r(e)&&(!t||t(e))}}))},function(t,e,n){var r=n(1);r(r.S+r.F,"Object",{assign:n(177)})},function(t,e,n){var r=n(1);r(r.S,"Object",{is:n(178)})},function(t,e,n){var r=n(1);r(r.S,"Object",{setPrototypeOf:n(139).set})},function(t,e,n){"use strict";var r=n(105),i={};i[n(15)("toStringTag")]="z",i+""!="[object z]"&&n(29)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(t,e,n){var r=n(1);r(r.P,"Function",{bind:n(179)})},function(t,e,n){var r=n(22).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||n(21)&&r(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(12),i=n(72),o=n(15)("hasInstance"),s=Function.prototype;o in s||n(22).f(s,o,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(1),i=n(181);r(r.G+r.F*(parseInt!=i),{parseInt:i})},function(t,e,n){var r=n(1),i=n(182);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},function(t,e,n){"use strict";var r=n(9),i=n(32),o=n(53),s=n(141),a=n(58),u=n(10),c=n(71).f,l=n(46).f,h=n(22).f,f=n(85).trim,p=r.Number,d=p,m=p.prototype,v="Number"==o(n(70)(m)),y="trim"in String.prototype,g=function(t){var e=a(t,!1);if("string"==typeof e&&e.length>2){var n,r,i,o=(e=y?e.trim():f(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+e}for(var s,u=e.slice(2),c=0,l=u.length;c<l;c++)if((s=u.charCodeAt(c))<48||s>i)return NaN;return parseInt(u,r)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof p&&(v?u((function(){m.valueOf.call(n)})):"Number"!=o(n))?s(new d(g(e)),n,p):g(e)};for(var b,_=n(21)?c(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;_.length>w;w++)i(d,b=_[w])&&!i(p,b)&&h(p,b,l(d,b));p.prototype=m,m.constructor=p,n(29)(r,"Number",p)}},function(t,e,n){"use strict";var r=n(1),i=n(45),o=n(183),s=n(142),a=1..toFixed,u=Math.floor,c=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",h=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*c[n],c[n]=r%1e7,r=u(r/1e7)},f=function(t){for(var e=6,n=0;--e>=0;)n+=c[e],c[e]=u(n/t),n=n%t*1e7},p=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var n=String(c[t]);e=""===e?n:e+s.call("0",7-n.length)+n}return e},d=function(t,e,n){return 0===e?n:e%2==1?d(t,e-1,n*t):d(t*t,e/2,n)};r(r.P+r.F*(!!a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(10)((function(){a.call({})}))),"Number",{toFixed:function(t){var e,n,r,a,u=o(this,l),c=i(t),m="",v="0";if(c<0||c>20)throw RangeError(l);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(m="-",u=-u),u>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(u*d(2,69,1))-69)<0?u*d(2,-e,1):u/d(2,e,1),n*=4503599627370496,(e=52-e)>0){for(h(0,n),r=c;r>=7;)h(1e7,0),r-=7;for(h(d(10,r,1),0),r=e-1;r>=23;)f(1<<23),r-=23;f(1<<r),h(1,1),f(2),v=p()}else h(0,n),h(1<<-e,0),v=p()+s.call("0",c);return v=c>0?m+((a=v.length)<=c?"0."+s.call("0",c-a)+v:v.slice(0,a-c)+"."+v.slice(a-c)):m+v}})},function(t,e,n){"use strict";var r=n(1),i=n(10),o=n(183),s=1..toPrecision;r(r.P+r.F*(i((function(){return"1"!==s.call(1,void 0)}))||!i((function(){s.call({})}))),"Number",{toPrecision:function(t){var e=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?s.call(e):s.call(e,t)}})},function(t,e,n){var r=n(1);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(1),i=n(9).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,e,n){var r=n(1);r(r.S,"Number",{isInteger:n(184)})},function(t,e,n){var r=n(1);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(1),i=n(184),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,e,n){var r=n(1);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(1);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(1),i=n(182);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,e,n){var r=n(1),i=n(181);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,e,n){var r=n(1),i=n(185),o=Math.sqrt,s=Math.acosh;r(r.S+r.F*!(s&&710==Math.floor(s(Number.MAX_VALUE))&&s(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,e,n){var r=n(1),i=Math.asinh;r(r.S+r.F*!(i&&1/i(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,n){var r=n(1),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(1),i=n(143);r(r.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(1);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(1),i=Math.exp;r(r.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,e,n){var r=n(1),i=n(144);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,e,n){var r=n(1);r(r.S,"Math",{fround:n(893)})},function(t,e,n){var r=n(143),i=Math.pow,o=i(2,-52),s=i(2,-23),a=i(2,127)*(2-s),u=i(2,-126);t.exports=Math.fround||function(t){var e,n,i=Math.abs(t),c=r(t);return i<u?c*(i/u/s+1/o-1/o)*u*s:(n=(e=(1+s/o)*i)-(e-i))>a||n!=n?c*(1/0):c*n}},function(t,e,n){var r=n(1),i=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,o=0,s=0,a=arguments.length,u=0;s<a;)u<(n=i(arguments[s++]))?(o=o*(r=u/n)*r+1,u=n):o+=n>0?(r=n/u)*r:n;return u===1/0?1/0:u*Math.sqrt(o)}})},function(t,e,n){var r=n(1),i=Math.imul;r(r.S+r.F*n(10)((function(){return-5!=i(4294967295,5)||2!=i.length})),"Math",{imul:function(t,e){var n=+t,r=+e,i=65535&n,o=65535&r;return 0|i*o+((65535&n>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(1);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(1);r(r.S,"Math",{log1p:n(185)})},function(t,e,n){var r=n(1);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(1);r(r.S,"Math",{sign:n(143)})},function(t,e,n){var r=n(1),i=n(144),o=Math.exp;r(r.S+r.F*n(10)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(1),i=n(144),o=Math.exp;r(r.S,"Math",{tanh:function(t){var e=i(t=+t),n=i(-t);return e==1/0?1:n==1/0?-1:(e-n)/(o(t)+o(-t))}})},function(t,e,n){var r=n(1);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(1),i=n(69),o=String.fromCharCode,s=String.fromCodePoint;r(r.S+r.F*(!!s&&1!=s.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,s=0;r>s;){if(e=+arguments[s++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(1),i=n(34),o=n(17);r(r.S,"String",{raw:function(t){for(var e=i(t.raw),n=o(e.length),r=arguments.length,s=[],a=0;n>a;)s.push(String(e[a++])),a<r&&s.push(String(arguments[a]));return s.join("")}})},function(t,e,n){"use strict";n(85)("trim",(function(t){return function(){return t(this,3)}}))},function(t,e,n){"use strict";var r=n(145)(!0);n(146)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var r=n(1),i=n(145)(!1);r(r.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,e,n){"use strict";var r=n(1),i=n(17),o=n(147),s="".endsWith;r(r.P+r.F*n(149)("endsWith"),"String",{endsWith:function(t){var e=o(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=i(e.length),a=void 0===n?r:Math.min(i(n),r),u=String(t);return s?s.call(e,u,a):e.slice(a-u.length,a)===u}})},function(t,e,n){"use strict";var r=n(1),i=n(147);r(r.P+r.F*n(149)("includes"),"String",{includes:function(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(1);r(r.P,"String",{repeat:n(142)})},function(t,e,n){"use strict";var r=n(1),i=n(17),o=n(147),s="".startsWith;r(r.P+r.F*n(149)("startsWith"),"String",{startsWith:function(t){var e=o(this,t,"startsWith"),n=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return s?s.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(30)("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},function(t,e,n){"use strict";n(30)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,e,n){"use strict";n(30)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,e,n){"use strict";n(30)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,e,n){"use strict";n(30)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,e,n){"use strict";n(30)("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}}))},function(t,e,n){"use strict";n(30)("fontsize",(function(t){return function(e){return t(this,"font","size",e)}}))},function(t,e,n){"use strict";n(30)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,e,n){"use strict";n(30)("link",(function(t){return function(e){return t(this,"a","href",e)}}))},function(t,e,n){"use strict";n(30)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,e,n){"use strict";n(30)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,e,n){"use strict";n(30)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,e,n){"use strict";n(30)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,e,n){var r=n(1);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(1),i=n(26),o=n(58);r(r.P+r.F*n(10)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=i(this),n=o(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(1),i=n(928);r(r.P+r.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(t,e,n){"use strict";var r=n(10),i=Date.prototype.getTime,o=Date.prototype.toISOString,s=function(t){return t>9?t:"0"+t};t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-50000000000001))}))||!r((function(){o.call(new Date(NaN))}))?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+s(t.getUTCMonth()+1)+"-"+s(t.getUTCDate())+"T"+s(t.getUTCHours())+":"+s(t.getUTCMinutes())+":"+s(t.getUTCSeconds())+"."+(n>99?n:"0"+s(n))+"Z"}:o},function(t,e,n){var r=Date.prototype,i=r.toString,o=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(29)(r,"toString",(function(){var t=o.call(this);return t==t?i.call(this):"Invalid Date"}))},function(t,e,n){var r=n(15)("toPrimitive"),i=Date.prototype;r in i||n(33)(i,r,n(931))},function(t,e,n){"use strict";var r=n(11),i=n(58);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(r(this),"number"!=t)}},function(t,e,n){var r=n(1);r(r.S,"Array",{isArray:n(113)})},function(t,e,n){"use strict";var r=n(43),i=n(1),o=n(26),s=n(187),a=n(150),u=n(17),c=n(151),l=n(152);i(i.S+i.F*!n(114)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,i,h,f=o(t),p="function"==typeof this?this:Array,d=arguments.length,m=d>1?arguments[1]:void 0,v=void 0!==m,y=0,g=l(f);if(v&&(m=r(m,d>2?arguments[2]:void 0,2)),null==g||p==Array&&a(g))for(n=new p(e=u(f.length));e>y;y++)c(n,y,v?m(f[y],y):f[y]);else for(h=g.call(f),n=new p;!(i=h.next()).done;y++)c(n,y,v?s(h,m,[i.value,y],!0):i.value);return n.length=y,n}})},function(t,e,n){"use strict";var r=n(1),i=n(151);r(r.S+r.F*n(10)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)i(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(1),i=n(34),o=[].join;r(r.P+r.F*(n(103)!=Object||!n(38)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(1),i=n(138),o=n(53),s=n(69),a=n(17),u=[].slice;r(r.P+r.F*n(10)((function(){i&&u.call(i)})),"Array",{slice:function(t,e){var n=a(this.length),r=o(this);if(e=void 0===e?n:e,"Array"==r)return u.call(this,t,e);for(var i=s(t,n),c=s(e,n),l=a(c-i),h=new Array(l),f=0;f<l;f++)h[f]="String"==r?this.charAt(i+f):this[i+f];return h}})},function(t,e,n){"use strict";var r=n(1),i=n(44),o=n(26),s=n(10),a=[].sort,u=[1,2,3];r(r.P+r.F*(s((function(){u.sort(void 0)}))||!s((function(){u.sort(null)}))||!n(38)(a)),"Array",{sort:function(t){return void 0===t?a.call(o(this)):a.call(o(this),i(t))}})},function(t,e,n){"use strict";var r=n(1),i=n(48)(0),o=n(38)([].forEach,!0);r(r.P+r.F*!o,"Array",{forEach:function(t){return i(this,t,arguments[1])}})},function(t,e,n){var r=n(12),i=n(113),o=n(15)("species");t.exports=function(t){var e;return i(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!i(e.prototype)||(e=void 0),r(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){"use strict";var r=n(1),i=n(48)(1);r(r.P+r.F*!n(38)([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(1),i=n(48)(2);r(r.P+r.F*!n(38)([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(1),i=n(48)(3);r(r.P+r.F*!n(38)([].some,!0),"Array",{some:function(t){return i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(1),i=n(48)(4);r(r.P+r.F*!n(38)([].every,!0),"Array",{every:function(t){return i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(1),i=n(189);r(r.P+r.F*!n(38)([].reduce,!0),"Array",{reduce:function(t){return i(this,t,arguments.length,arguments[1],!1)}})},function(t,e,n){"use strict";var r=n(1),i=n(189);r(r.P+r.F*!n(38)([].reduceRight,!0),"Array",{reduceRight:function(t){return i(this,t,arguments.length,arguments[1],!0)}})},function(t,e,n){"use strict";var r=n(1),i=n(111)(!1),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(s||!n(38)(o)),"Array",{indexOf:function(t){return s?o.apply(this,arguments)||0:i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(1),i=n(34),o=n(45),s=n(17),a=[].lastIndexOf,u=!!a&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(u||!n(38)(a)),"Array",{lastIndexOf:function(t){if(u)return a.apply(this,arguments)||0;var e=i(this),n=s(e.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,o(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){var r=n(1);r(r.P,"Array",{copyWithin:n(190)}),n(73)("copyWithin")},function(t,e,n){var r=n(1);r(r.P,"Array",{fill:n(153)}),n(73)("fill")},function(t,e,n){"use strict";var r=n(1),i=n(48)(5),o=!0;"find"in[]&&Array(1).find((function(){o=!1})),r(r.P+r.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(73)("find")},function(t,e,n){"use strict";var r=n(1),i=n(48)(6),o="findIndex",s=!0;o in[]&&Array(1)[o]((function(){s=!1})),r(r.P+r.F*s,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(73)(o)},function(t,e,n){n(87)("Array")},function(t,e,n){var r=n(9),i=n(141),o=n(22).f,s=n(71).f,a=n(148),u=n(115),c=r.RegExp,l=c,h=c.prototype,f=/a/g,p=/a/g,d=new c(f)!==f;if(n(21)&&(!d||n(10)((function(){return p[n(15)("match")]=!1,c(f)!=f||c(p)==p||"/a/i"!=c(f,"i")})))){c=function(t,e){var n=this instanceof c,r=a(t),o=void 0===e;return!n&&r&&t.constructor===c&&o?t:i(d?new l(r&&!o?t.source:t,e):l((r=t instanceof c)?t.source:t,r&&o?u.call(t):e),n?this:h,c)};for(var m=function(t){t in c||o(c,t,{configurable:!0,get:function(){return l[t]},set:function(e){l[t]=e}})},v=s(l),y=0;v.length>y;)m(v[y++]);h.constructor=c,c.prototype=h,n(29)(r,"RegExp",c)}n(87)("RegExp")},function(t,e,n){"use strict";n(193);var r=n(11),i=n(115),o=n(21),s=/./.toString,a=function(t){n(29)(RegExp.prototype,"toString",t,!0)};n(10)((function(){return"/a/b"!=s.call({source:"a",flags:"b"})}))?a((function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)})):"toString"!=s.name&&a((function(){return s.call(this)}))},function(t,e,n){"use strict";var r=n(11),i=n(17),o=n(156),s=n(116);n(117)("match",1,(function(t,e,n,a){return[function(n){var r=t(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=a(n,t,this);if(e.done)return e.value;var u=r(t),c=String(this);if(!u.global)return s(u,c);var l=u.unicode;u.lastIndex=0;for(var h,f=[],p=0;null!==(h=s(u,c));){var d=String(h[0]);f[p]=d,""===d&&(u.lastIndex=o(c,i(u.lastIndex),l)),p++}return 0===p?null:f}]}))},function(t,e,n){"use strict";var r=n(11),i=n(26),o=n(17),s=n(45),a=n(156),u=n(116),c=Math.max,l=Math.min,h=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n(117)("replace",2,(function(t,e,n,d){return[function(r,i){var o=t(this),s=null==r?void 0:r[e];return void 0!==s?s.call(r,o,i):n.call(String(o),r,i)},function(t,e){var i=d(n,t,this,e);if(i.done)return i.value;var h=r(t),f=String(this),p="function"==typeof e;p||(e=String(e));var v=h.global;if(v){var y=h.unicode;h.lastIndex=0}for(var g=[];;){var b=u(h,f);if(null===b)break;if(g.push(b),!v)break;""===String(b[0])&&(h.lastIndex=a(f,o(h.lastIndex),y))}for(var _,w="",x=0,O=0;O<g.length;O++){b=g[O];for(var T=String(b[0]),S=c(l(s(b.index),f.length),0),k=[],C=1;C<b.length;C++)k.push(void 0===(_=b[C])?_:String(_));var E=b.groups;if(p){var A=[T].concat(k,S,f);void 0!==E&&A.push(E);var P=String(e.apply(void 0,A))}else P=m(T,f,S,k,E,e);S>=x&&(w+=f.slice(x,S)+P,x=S+T.length)}return w+f.slice(x)}];function m(t,e,r,o,s,a){var u=r+t.length,c=o.length,l=p;return void 0!==s&&(s=i(s),l=f),n.call(a,l,(function(n,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(u);case"<":a=s[i.slice(1,-1)];break;default:var l=+i;if(0===l)return n;if(l>c){var f=h(l/10);return 0===f?n:f<=c?void 0===o[f-1]?i.charAt(1):o[f-1]+i.charAt(1):n}a=o[l-1]}return void 0===a?"":a}))}}))},function(t,e,n){"use strict";var r=n(11),i=n(178),o=n(116);n(117)("search",1,(function(t,e,n,s){return[function(n){var r=t(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=s(n,t,this);if(e.done)return e.value;var a=r(t),u=String(this),c=a.lastIndex;i(c,0)||(a.lastIndex=0);var l=o(a,u);return i(a.lastIndex,c)||(a.lastIndex=c),null===l?-1:l.index}]}))},function(t,e,n){"use strict";var r=n(148),i=n(11),o=n(106),s=n(156),a=n(17),u=n(116),c=n(155),l=n(10),h=Math.min,f=[].push,p="length",d=!l((function(){RegExp(4294967295,"y")}));n(117)("split",2,(function(t,e,n,l){var m;return m="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[p]||2!="ab".split(/(?:ab)*/)[p]||4!=".".split(/(.?)(.?)/)[p]||".".split(/()()/)[p]>1||"".split(/.?/)[p]?function(t,e){var i=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(i,t,e);for(var o,s,a,u=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,d=void 0===e?4294967295:e>>>0,m=new RegExp(t.source,l+"g");(o=c.call(m,i))&&!((s=m.lastIndex)>h&&(u.push(i.slice(h,o.index)),o[p]>1&&o.index<i[p]&&f.apply(u,o.slice(1)),a=o[0][p],h=s,u[p]>=d));)m.lastIndex===o.index&&m.lastIndex++;return h===i[p]?!a&&m.test("")||u.push(""):u.push(i.slice(h)),u[p]>d?u.slice(0,d):u}:"0".split(void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var i=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,i,r):m.call(String(i),n,r)},function(t,e){var r=l(m,t,this,e,m!==n);if(r.done)return r.value;var c=i(t),f=String(this),p=o(c,RegExp),v=c.unicode,y=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(d?"y":"g"),g=new p(d?c:"^(?:"+c.source+")",y),b=void 0===e?4294967295:e>>>0;if(0===b)return[];if(0===f.length)return null===u(g,f)?[f]:[];for(var _=0,w=0,x=[];w<f.length;){g.lastIndex=d?w:0;var O,T=u(g,d?f:f.slice(w));if(null===T||(O=h(a(g.lastIndex+(d?0:w)),f.length))===_)w=s(f,w,v);else{if(x.push(f.slice(_,w)),x.length===b)return x;for(var S=1;S<=T.length-1;S++)if(x.push(T[S]),x.length===b)return x;w=_=O}}return x.push(f.slice(_)),x}]}))},function(t,e,n){var r=n(9),i=n(157).set,o=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,u="process"==n(53)(s);t.exports=function(){var t,e,n,c=function(){var r,i;for(u&&(r=s.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(u)n=function(){s.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var l=a.resolve(void 0);n=function(){l.then(c)}}else n=function(){i.call(r,c)};else{var h=!0,f=document.createTextNode("");new o(c).observe(f,{characterData:!0}),n=function(){f.data=h=!h}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){"use strict";var r=n(197),i=n(74);t.exports=n(120)("Map",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=r.getEntry(i(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(i(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(197),i=n(74);t.exports=n(120)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(i(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,i=n(9),o=n(48)(0),s=n(29),a=n(59),u=n(177),c=n(198),l=n(12),h=n(74),f=n(74),p=!i.ActiveXObject&&"ActiveXObject"in i,d=a.getWeak,m=Object.isExtensible,v=c.ufstore,y=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},g={get:function(t){if(l(t)){var e=d(t);return!0===e?v(h(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return c.def(h(this,"WeakMap"),t,e)}},b=t.exports=n(120)("WeakMap",y,g,c,!0,!0);f&&p&&(u((r=c.getConstructor(y,"WeakMap")).prototype,g),a.NEED=!0,o(["delete","has","get","set"],(function(t){var e=b.prototype,n=e[t];s(e,t,(function(e,i){if(l(e)&&!m(e)){this._f||(this._f=new r);var o=this._f[t](e,i);return"set"==t?this:o}return n.call(this,e,i)}))})))},function(t,e,n){"use strict";var r=n(198),i=n(74);n(120)("WeakSet",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(i(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(1),i=n(121),o=n(158),s=n(11),a=n(69),u=n(17),c=n(12),l=n(9).ArrayBuffer,h=n(106),f=o.ArrayBuffer,p=o.DataView,d=i.ABV&&l.isView,m=f.prototype.slice,v=i.VIEW;r(r.G+r.W+r.F*(l!==f),{ArrayBuffer:f}),r(r.S+r.F*!i.CONSTR,"ArrayBuffer",{isView:function(t){return d&&d(t)||c(t)&&v in t}}),r(r.P+r.U+r.F*n(10)((function(){return!new f(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(t,e){if(void 0!==m&&void 0===e)return m.call(s(this),t);for(var n=s(this).byteLength,r=a(t,n),i=a(void 0===e?n:e,n),o=new(h(this,f))(u(i-r)),c=new p(this),l=new p(o),d=0;r<i;)l.setUint8(d++,c.getUint8(r++));return o}}),n(87)("ArrayBuffer")},function(t,e,n){var r=n(1);r(r.G+r.W+r.F*!n(121).ABV,{DataView:n(158).DataView})},function(t,e,n){n(55)("Int8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(55)("Uint8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(55)("Uint8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}),!0)},function(t,e,n){n(55)("Int16",2,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(55)("Uint16",2,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(55)("Int32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(55)("Uint32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(55)("Float32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(55)("Float64",8,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){var r=n(1),i=n(44),o=n(11),s=(n(9).Reflect||{}).apply,a=Function.apply;r(r.S+r.F*!n(10)((function(){s((function(){}))})),"Reflect",{apply:function(t,e,n){var r=i(t),u=o(n);return s?s(r,e,u):a.call(r,e,u)}})},function(t,e,n){var r=n(1),i=n(70),o=n(44),s=n(11),a=n(12),u=n(10),c=n(179),l=(n(9).Reflect||{}).construct,h=u((function(){function t(){}return!(l((function(){}),[],t)instanceof t)})),f=!u((function(){l((function(){}))}));r(r.S+r.F*(h||f),"Reflect",{construct:function(t,e){o(t),s(e);var n=arguments.length<3?t:o(arguments[2]);if(f&&!h)return l(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(c.apply(t,r))}var u=n.prototype,p=i(a(u)?u:Object.prototype),d=Function.apply.call(t,p,e);return a(d)?d:p}})},function(t,e,n){var r=n(22),i=n(1),o=n(11),s=n(58);i(i.S+i.F*n(10)((function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,e,n){o(t),e=s(e,!0),o(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},function(t,e,n){var r=n(1),i=n(46).f,o=n(11);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=i(o(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){"use strict";var r=n(1),i=n(11),o=function(t){this._t=i(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(186)(o,"Object",(function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}})),r(r.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,e,n){var r=n(46),i=n(72),o=n(32),s=n(1),a=n(12),u=n(11);s(s.S,"Reflect",{get:function t(e,n){var s,c,l=arguments.length<3?e:arguments[2];return u(e)===l?e[n]:(s=r.f(e,n))?o(s,"value")?s.value:void 0!==s.get?s.get.call(l):void 0:a(c=i(e))?t(c,n,l):void 0}})},function(t,e,n){var r=n(46),i=n(1),o=n(11);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(o(t),e)}})},function(t,e,n){var r=n(1),i=n(72),o=n(11);r(r.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,e,n){var r=n(1);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(1),i=n(11),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,e,n){var r=n(1);r(r.S,"Reflect",{ownKeys:n(200)})},function(t,e,n){var r=n(1),i=n(11),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(22),i=n(46),o=n(72),s=n(32),a=n(1),u=n(65),c=n(11),l=n(12);a(a.S,"Reflect",{set:function t(e,n,a){var h,f,p=arguments.length<4?e:arguments[3],d=i.f(c(e),n);if(!d){if(l(f=o(e)))return t(f,n,a,p);d=u(0)}if(s(d,"value")){if(!1===d.writable||!l(p))return!1;if(h=i.f(p,n)){if(h.get||h.set||!1===h.writable)return!1;h.value=a,r.f(p,n,h)}else r.f(p,n,u(0,a));return!0}return void 0!==d.set&&(d.set.call(p,a),!0)}})},function(t,e,n){var r=n(1),i=n(139);i&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){i.check(t,e);try{return i.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){n(991),t.exports=n(19).Array.includes},function(t,e,n){"use strict";var r=n(1),i=n(111)(!0);r(r.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(73)("includes")},function(t,e,n){n(993),t.exports=n(19).Array.flatMap},function(t,e,n){"use strict";var r=n(1),i=n(994),o=n(26),s=n(17),a=n(44),u=n(188);r(r.P,"Array",{flatMap:function(t){var e,n,r=o(this);return a(t),e=s(r.length),n=u(r,0),i(n,r,r,e,0,1,t,arguments[1]),n}}),n(73)("flatMap")},function(t,e,n){"use strict";var r=n(113),i=n(12),o=n(17),s=n(43),a=n(15)("isConcatSpreadable");t.exports=function t(e,n,u,c,l,h,f,p){for(var d,m,v=l,y=0,g=!!f&&s(f,p,3);y<c;){if(y in u){if(d=g?g(u[y],y,n):u[y],m=!1,i(d)&&(m=void 0!==(m=d[a])?!!m:r(d)),m&&h>0)v=t(e,n,d,o(d.length),v,h-1)-1;else{if(v>=9007199254740991)throw TypeError();e[v]=d}v++}y++}return v}},function(t,e,n){n(996),t.exports=n(19).String.padStart},function(t,e,n){"use strict";var r=n(1),i=n(201),o=n(119),s=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*s,"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){n(998),t.exports=n(19).String.padEnd},function(t,e,n){"use strict";var r=n(1),i=n(201),o=n(119),s=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*s,"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){n(1e3),t.exports=n(19).String.trimLeft},function(t,e,n){"use strict";n(85)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},function(t,e,n){n(1002),t.exports=n(19).String.trimRight},function(t,e,n){"use strict";n(85)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},function(t,e,n){n(1004),t.exports=n(135).f("asyncIterator")},function(t,e,n){n(173)("asyncIterator")},function(t,e,n){n(1006),t.exports=n(19).Object.getOwnPropertyDescriptors},function(t,e,n){var r=n(1),i=n(200),o=n(34),s=n(46),a=n(151);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=o(t),u=s.f,c=i(r),l={},h=0;c.length>h;)void 0!==(n=u(r,e=c[h++]))&&a(l,e,n);return l}})},function(t,e,n){n(1008),t.exports=n(19).Object.values},function(t,e,n){var r=n(1),i=n(202)(!1);r(r.S,"Object",{values:function(t){return i(t)}})},function(t,e,n){n(1010),t.exports=n(19).Object.entries},function(t,e,n){var r=n(1),i=n(202)(!0);r(r.S,"Object",{entries:function(t){return i(t)}})},function(t,e,n){"use strict";n(194),n(1012),t.exports=n(19).Promise.finally},function(t,e,n){"use strict";var r=n(1),i=n(19),o=n(9),s=n(106),a=n(196);r(r.P+r.R,"Promise",{finally:function(t){var e=s(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return a(e,t()).then((function(){return n}))}:t,n?function(n){return a(e,t()).then((function(){throw n}))}:t)}})},function(t,e,n){n(1014),n(1015),n(1016),t.exports=n(19)},function(t,e,n){var r=n(9),i=n(1),o=n(119),s=[].slice,a=/MSIE .\./.test(o),u=function(t){return function(e,n){var r=arguments.length>2,i=!!r&&s.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,i)}:e,n)}};i(i.G+i.B+i.F*a,{setTimeout:u(r.setTimeout),setInterval:u(r.setInterval)})},function(t,e,n){var r=n(1),i=n(157);r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,e,n){for(var r=n(154),i=n(68),o=n(29),s=n(9),a=n(33),u=n(86),c=n(15),l=c("iterator"),h=c("toStringTag"),f=u.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=i(p),m=0;m<d.length;m++){var v,y=d[m],g=p[y],b=s[y],_=b&&b.prototype;if(_&&(_[l]||a(_,l,f),_[h]||a(_,h,y),u[y]=f,g))for(v in r)_[v]||o(_,v,r[v],!0)}},function(t,e,n){n(1018),t.exports=n(204).global},function(t,e,n){var r=n(1019);r(r.G,{global:n(159)})},function(t,e,n){var r=n(159),i=n(204),o=n(1020),s=n(1022),a=n(1029),u=function(t,e,n){var c,l,h,f=t&u.F,p=t&u.G,d=t&u.S,m=t&u.P,v=t&u.B,y=t&u.W,g=p?i:i[e]||(i[e]={}),b=g.prototype,_=p?r:d?r[e]:(r[e]||{}).prototype;for(c in p&&(n=e),n)(l=!f&&_&&void 0!==_[c])&&a(g,c)||(h=l?_[c]:n[c],g[c]=p&&"function"!=typeof _[c]?n[c]:v&&l?o(h,r):y&&_[c]==h?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(h):m&&"function"==typeof h?o(Function.call,h):h,m&&((g.virtual||(g.virtual={}))[c]=h,t&u.R&&b&&!b[c]&&s(b,c,h)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){var r=n(1021);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(1023),i=n(1028);t.exports=n(161)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(1024),i=n(1025),o=n(1027),s=Object.defineProperty;e.f=n(161)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(160);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(161)&&!n(205)((function(){return 7!=Object.defineProperty(n(1026)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(160),i=n(159).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){var r=n(160);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){"use strict";var r=n(122),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,s=i?Symbol.for("react.portal"):60106,a=i?Symbol.for("react.fragment"):60107,u=i?Symbol.for("react.strict_mode"):60108,c=i?Symbol.for("react.profiler"):60114,l=i?Symbol.for("react.provider"):60109,h=i?Symbol.for("react.context"):60110,f=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113,d=i?Symbol.for("react.memo"):60115,m=i?Symbol.for("react.lazy"):60116,v="function"==typeof Symbol&&Symbol.iterator;function y(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function _(t,e,n){this.props=t,this.context=e,this.refs=b,this.updater=n||g}function w(){}function x(t,e,n){this.props=t,this.context=e,this.refs=b,this.updater=n||g}_.prototype.isReactComponent={},_.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error(y(85));this.updater.enqueueSetState(this,t,e,"setState")},_.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},w.prototype=_.prototype;var O=x.prototype=new w;O.constructor=x,r(O,_.prototype),O.isPureReactComponent=!0;var T={current:null},S=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function C(t,e,n){var r,i={},s=null,a=null;if(null!=e)for(r in void 0!==e.ref&&(a=e.ref),void 0!==e.key&&(s=""+e.key),e)S.call(e,r)&&!k.hasOwnProperty(r)&&(i[r]=e[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var c=Array(u),l=0;l<u;l++)c[l]=arguments[l+2];i.children=c}if(t&&t.defaultProps)for(r in u=t.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:o,type:t,key:s,ref:a,props:i,_owner:T.current}}function E(t){return"object"==typeof t&&null!==t&&t.$$typeof===o}var A=/\/+/g,P=[];function j(t,e,n,r){if(P.length){var i=P.pop();return i.result=t,i.keyPrefix=e,i.func=n,i.context=r,i.count=0,i}return{result:t,keyPrefix:e,func:n,context:r,count:0}}function I(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>P.length&&P.push(t)}function M(t,e,n){return null==t?0:function t(e,n,r,i){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var u=!1;if(null===e)u=!0;else switch(a){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case o:case s:u=!0}}if(u)return r(i,e,""===n?"."+D(e,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(e))for(var c=0;c<e.length;c++){var l=n+D(a=e[c],c);u+=t(a,l,r,i)}else if(null===e||"object"!=typeof e?l=null:l="function"==typeof(l=v&&e[v]||e["@@iterator"])?l:null,"function"==typeof l)for(e=l.call(e),c=0;!(a=e.next()).done;)u+=t(a=a.value,l=n+D(a,c++),r,i);else if("object"===a)throw r=""+e,Error(y(31,"[object Object]"===r?"object with keys {"+Object.keys(e).join(", ")+"}":r,""));return u}(t,"",e,n)}function D(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,(function(t){return e[t]}))}(t.key):e.toString(36)}function N(t,e){t.func.call(t.context,e,t.count++)}function R(t,e,n){var r=t.result,i=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?F(t,r,n,(function(t){return t})):null!=t&&(E(t)&&(t=function(t,e){return{$$typeof:o,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(t,i+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(A,"$&/")+"/")+n)),r.push(t))}function F(t,e,n,r,i){var o="";null!=n&&(o=(""+n).replace(A,"$&/")+"/"),M(t,R,e=j(e,o,r,i)),I(e)}var L={current:null};function V(){var t=L.current;if(null===t)throw Error(y(321));return t}var z={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:T,IsSomeRendererActing:{current:!1},assign:r};e.Children={map:function(t,e,n){if(null==t)return t;var r=[];return F(t,r,null,e,n),r},forEach:function(t,e,n){if(null==t)return t;M(t,N,e=j(null,null,e,n)),I(e)},count:function(t){return M(t,(function(){return null}),null)},toArray:function(t){var e=[];return F(t,e,null,(function(t){return t})),e},only:function(t){if(!E(t))throw Error(y(143));return t}},e.Component=_,e.Fragment=a,e.Profiler=c,e.PureComponent=x,e.StrictMode=u,e.Suspense=p,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,e.cloneElement=function(t,e,n){if(null==t)throw Error(y(267,t));var i=r({},t.props),s=t.key,a=t.ref,u=t._owner;if(null!=e){if(void 0!==e.ref&&(a=e.ref,u=T.current),void 0!==e.key&&(s=""+e.key),t.type&&t.type.defaultProps)var c=t.type.defaultProps;for(l in e)S.call(e,l)&&!k.hasOwnProperty(l)&&(i[l]=void 0===e[l]&&void 0!==c?c[l]:e[l])}var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){c=Array(l);for(var h=0;h<l;h++)c[h]=arguments[h+2];i.children=c}return{$$typeof:o,type:t.type,key:s,ref:a,props:i,_owner:u}},e.createContext=function(t,e){return void 0===e&&(e=null),(t={$$typeof:h,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:l,_context:t},t.Consumer=t},e.createElement=C,e.createFactory=function(t){var e=C.bind(null,t);return e.type=t,e},e.createRef=function(){return{current:null}},e.forwardRef=function(t){return{$$typeof:f,render:t}},e.isValidElement=E,e.lazy=function(t){return{$$typeof:m,_ctor:t,_status:-1,_result:null}},e.memo=function(t,e){return{$$typeof:d,type:t,compare:void 0===e?null:e}},e.useCallback=function(t,e){return V().useCallback(t,e)},e.useContext=function(t,e){return V().useContext(t,e)},e.useDebugValue=function(){},e.useEffect=function(t,e){return V().useEffect(t,e)},e.useImperativeHandle=function(t,e,n){return V().useImperativeHandle(t,e,n)},e.useLayoutEffect=function(t,e){return V().useLayoutEffect(t,e)},e.useMemo=function(t,e){return V().useMemo(t,e)},e.useReducer=function(t,e,n){return V().useReducer(t,e,n)},e.useRef=function(t){return V().useRef(t)},e.useState=function(t){return V().useState(t)},e.version="16.13.1"},function(t,e,n){"use strict";var r=n(0),i=n(122),o=n(1032);function s(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(s(227));function a(t,e,n,r,i,o,s,a,u){var c=Array.prototype.slice.call(arguments,3);try{e.apply(n,c)}catch(t){this.onError(t)}}var u=!1,c=null,l=!1,h=null,f={onError:function(t){u=!0,c=t}};function p(t,e,n,r,i,o,s,l,h){u=!1,c=null,a.apply(f,arguments)}var d=null,m=null,v=null;function y(t,e,n){var r=t.type||"unknown-event";t.currentTarget=v(n),function(t,e,n,r,i,o,a,f,d){if(p.apply(this,arguments),u){if(!u)throw Error(s(198));var m=c;u=!1,c=null,l||(l=!0,h=m)}}(r,e,void 0,t),t.currentTarget=null}var g=null,b={};function _(){if(g)for(var t in b){var e=b[t],n=g.indexOf(t);if(!(-1<n))throw Error(s(96,t));if(!x[n]){if(!e.extractEvents)throw Error(s(97,t));for(var r in x[n]=e,n=e.eventTypes){var i=void 0,o=n[r],a=e,u=r;if(O.hasOwnProperty(u))throw Error(s(99,u));O[u]=o;var c=o.phasedRegistrationNames;if(c){for(i in c)c.hasOwnProperty(i)&&w(c[i],a,u);i=!0}else o.registrationName?(w(o.registrationName,a,u),i=!0):i=!1;if(!i)throw Error(s(98,r,t))}}}}function w(t,e,n){if(T[t])throw Error(s(100,t));T[t]=e,S[t]=e.eventTypes[n].dependencies}var x=[],O={},T={},S={};function k(t){var e,n=!1;for(e in t)if(t.hasOwnProperty(e)){var r=t[e];if(!b.hasOwnProperty(e)||b[e]!==r){if(b[e])throw Error(s(102,e));b[e]=r,n=!0}}n&&_()}var C=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),E=null,A=null,P=null;function j(t){if(t=m(t)){if("function"!=typeof E)throw Error(s(280));var e=t.stateNode;e&&(e=d(e),E(t.stateNode,t.type,e))}}function I(t){A?P?P.push(t):P=[t]:A=t}function M(){if(A){var t=A,e=P;if(P=A=null,j(t),e)for(t=0;t<e.length;t++)j(e[t])}}function D(t,e){return t(e)}function N(t,e,n,r,i){return t(e,n,r,i)}function R(){}var F=D,L=!1,V=!1;function z(){null===A&&null===P||(R(),M())}function B(t,e,n){if(V)return t(e,n);V=!0;try{return F(t,e,n)}finally{V=!1,z()}}var q=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,U=Object.prototype.hasOwnProperty,W={},$={};function H(t,e,n,r,i,o){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o}var K={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){K[t]=new H(t,0,!1,t,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];K[e]=new H(e,1,!1,t[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){K[t]=new H(t,2,!1,t.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){K[t]=new H(t,2,!1,t,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(t){K[t]=new H(t,3,!1,t.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(t){K[t]=new H(t,3,!0,t,null,!1)})),["capture","download"].forEach((function(t){K[t]=new H(t,4,!1,t,null,!1)})),["cols","rows","size","span"].forEach((function(t){K[t]=new H(t,6,!1,t,null,!1)})),["rowSpan","start"].forEach((function(t){K[t]=new H(t,5,!1,t.toLowerCase(),null,!1)}));var G=/[\-:]([a-z])/g;function Y(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(t){var e=t.replace(G,Y);K[e]=new H(e,1,!1,t,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace(G,Y);K[e]=new H(e,1,!1,t,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace(G,Y);K[e]=new H(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(t){K[t]=new H(t,1,!1,t.toLowerCase(),null,!1)})),K.xlinkHref=new H("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(t){K[t]=new H(t,1,!1,t.toLowerCase(),null,!0)}));var X=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function J(t,e,n,r){var i=K.hasOwnProperty(e)?K[e]:null;(null!==i?0===i.type:!r&&(2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])))||(function(t,e,n,r){if(null==e||function(t,e,n,r){if(null!==n&&0===n.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}(t,e,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}(e,n,i,r)&&(n=null),r||null===i?function(t){return!!U.call($,t)||!U.call(W,t)&&(q.test(t)?$[t]=!0:(W[t]=!0,!1))}(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=null===n?3!==i.type&&"":n:(e=i.attributeName,r=i.attributeNamespace,null===n?t.removeAttribute(e):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}X.hasOwnProperty("ReactCurrentDispatcher")||(X.ReactCurrentDispatcher={current:null}),X.hasOwnProperty("ReactCurrentBatchConfig")||(X.ReactCurrentBatchConfig={suspense:null});var Q=/^(.*)[\\\/]/,Z="function"==typeof Symbol&&Symbol.for,tt=Z?Symbol.for("react.element"):60103,et=Z?Symbol.for("react.portal"):60106,nt=Z?Symbol.for("react.fragment"):60107,rt=Z?Symbol.for("react.strict_mode"):60108,it=Z?Symbol.for("react.profiler"):60114,ot=Z?Symbol.for("react.provider"):60109,st=Z?Symbol.for("react.context"):60110,at=Z?Symbol.for("react.concurrent_mode"):60111,ut=Z?Symbol.for("react.forward_ref"):60112,ct=Z?Symbol.for("react.suspense"):60113,lt=Z?Symbol.for("react.suspense_list"):60120,ht=Z?Symbol.for("react.memo"):60115,ft=Z?Symbol.for("react.lazy"):60116,pt=Z?Symbol.for("react.block"):60121,dt="function"==typeof Symbol&&Symbol.iterator;function mt(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=dt&&t[dt]||t["@@iterator"])?t:null}function vt(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case nt:return"Fragment";case et:return"Portal";case it:return"Profiler";case rt:return"StrictMode";case ct:return"Suspense";case lt:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case st:return"Context.Consumer";case ot:return"Context.Provider";case ut:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case ht:return vt(t.type);case pt:return vt(t.render);case ft:if(t=1===t._status?t._result:null)return vt(t)}return null}function yt(t){var e="";do{t:switch(t.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break t;default:var r=t._debugOwner,i=t._debugSource,o=vt(t.type);n=null,r&&(n=vt(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(Q,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}e+=n,t=t.return}while(t);return e}function gt(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function bt(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function _t(t){t._valueTracker||(t._valueTracker=function(t){var e=bt(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(t){r=""+t,o.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(t){r=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function wt(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=bt(t)?t.checked?"true":"false":t.value),(t=r)!==n&&(e.setValue(t),!0)}function xt(t,e){var n=e.checked;return i({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function Ot(t,e){var n=null==e.defaultValue?"":e.defaultValue,r=null!=e.checked?e.checked:e.defaultChecked;n=gt(null!=e.value?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function Tt(t,e){null!=(e=e.checked)&&J(t,"checked",e,!1)}function St(t,e){Tt(t,e);var n=gt(e.value),r=e.type;if(null!=n)"number"===r?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if("submit"===r||"reset"===r)return void t.removeAttribute("value");e.hasOwnProperty("value")?Ct(t,e.type,n):e.hasOwnProperty("defaultValue")&&Ct(t,e.type,gt(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function kt(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!("submit"!==r&&"reset"!==r||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}""!==(n=t.name)&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,""!==n&&(t.name=n)}function Ct(t,e,n){"number"===e&&t.ownerDocument.activeElement===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function Et(t,e){return t=i({children:void 0},e),(e=function(t){var e="";return r.Children.forEach(t,(function(t){null!=t&&(e+=t)})),e}(e.children))&&(t.children=e),t}function At(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+gt(n),e=null,i=0;i<t.length;i++){if(t[i].value===n)return t[i].selected=!0,void(r&&(t[i].defaultSelected=!0));null!==e||t[i].disabled||(e=t[i])}null!==e&&(e.selected=!0)}}function Pt(t,e){if(null!=e.dangerouslySetInnerHTML)throw Error(s(91));return i({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function jt(t,e){var n=e.value;if(null==n){if(n=e.children,e=e.defaultValue,null!=n){if(null!=e)throw Error(s(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(s(93));n=n[0]}e=n}null==e&&(e=""),n=e}t._wrapperState={initialValue:gt(n)}}function It(t,e){var n=gt(e.value),r=gt(e.defaultValue);null!=n&&((n=""+n)!==t.value&&(t.value=n),null==e.defaultValue&&t.defaultValue!==n&&(t.defaultValue=n)),null!=r&&(t.defaultValue=""+r)}function Mt(t){var e=t.textContent;e===t._wrapperState.initialValue&&""!==e&&null!==e&&(t.value=e)}var Dt="http://www.w3.org/1999/xhtml",Nt="http://www.w3.org/2000/svg";function Rt(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ft(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?Rt(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var Lt,Vt=function(t){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,r,i){MSApp.execUnsafeLocalFunction((function(){return t(e,n)}))}:t}((function(t,e){if(t.namespaceURI!==Nt||"innerHTML"in t)t.innerHTML=e;else{for((Lt=Lt||document.createElement("div")).innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Lt.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}}));function zt(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}function Bt(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var qt={animationend:Bt("Animation","AnimationEnd"),animationiteration:Bt("Animation","AnimationIteration"),animationstart:Bt("Animation","AnimationStart"),transitionend:Bt("Transition","TransitionEnd")},Ut={},Wt={};function $t(t){if(Ut[t])return Ut[t];if(!qt[t])return t;var e,n=qt[t];for(e in n)if(n.hasOwnProperty(e)&&e in Wt)return Ut[t]=n[e];return t}C&&(Wt=document.createElement("div").style,"AnimationEvent"in window||(delete qt.animationend.animation,delete qt.animationiteration.animation,delete qt.animationstart.animation),"TransitionEvent"in window||delete qt.transitionend.transition);var Ht=$t("animationend"),Kt=$t("animationiteration"),Gt=$t("animationstart"),Yt=$t("transitionend"),Xt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Jt=new("function"==typeof WeakMap?WeakMap:Map);function Qt(t){var e=Jt.get(t);return void 0===e&&(e=new Map,Jt.set(t,e)),e}function Zt(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do{0!=(1026&(e=t).effectTag)&&(n=e.return),t=e.return}while(t)}return 3===e.tag?n:null}function te(t){if(13===t.tag){var e=t.memoizedState;if(null===e&&(null!==(t=t.alternate)&&(e=t.memoizedState)),null!==e)return e.dehydrated}return null}function ee(t){if(Zt(t)!==t)throw Error(s(188))}function ne(t){if(!(t=function(t){var e=t.alternate;if(!e){if(null===(e=Zt(t)))throw Error(s(188));return e!==t?null:t}for(var n=t,r=e;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return ee(i),t;if(o===r)return ee(i),e;o=o.sibling}throw Error(s(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,u=i.child;u;){if(u===n){a=!0,n=i,r=o;break}if(u===r){a=!0,r=i,n=o;break}u=u.sibling}if(!a){for(u=o.child;u;){if(u===n){a=!0,n=o,r=i;break}if(u===r){a=!0,r=o,n=i;break}u=u.sibling}if(!a)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(3!==n.tag)throw Error(s(188));return n.stateNode.current===n?t:e}(t)))return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function re(t,e){if(null==e)throw Error(s(30));return null==t?e:Array.isArray(t)?Array.isArray(e)?(t.push.apply(t,e),t):(t.push(e),t):Array.isArray(e)?[t].concat(e):[t,e]}function ie(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)}var oe=null;function se(t){if(t){var e=t._dispatchListeners,n=t._dispatchInstances;if(Array.isArray(e))for(var r=0;r<e.length&&!t.isPropagationStopped();r++)y(t,e[r],n[r]);else e&&y(t,e,n);t._dispatchListeners=null,t._dispatchInstances=null,t.isPersistent()||t.constructor.release(t)}}function ae(t){if(null!==t&&(oe=re(oe,t)),t=oe,oe=null,t){if(ie(t,se),oe)throw Error(s(95));if(l)throw t=h,l=!1,h=null,t}}function ue(t){return(t=t.target||t.srcElement||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}function ce(t){if(!C)return!1;var e=(t="on"+t)in document;return e||((e=document.createElement("div")).setAttribute(t,"return;"),e="function"==typeof e[t]),e}var le=[];function he(t){t.topLevelType=null,t.nativeEvent=null,t.targetInst=null,t.ancestors.length=0,10>le.length&&le.push(t)}function fe(t,e,n,r){if(le.length){var i=le.pop();return i.topLevelType=t,i.eventSystemFlags=r,i.nativeEvent=e,i.targetInst=n,i}return{topLevelType:t,eventSystemFlags:r,nativeEvent:e,targetInst:n,ancestors:[]}}function pe(t){var e=t.targetInst,n=e;do{if(!n){t.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(e=n.tag)&&6!==e||t.ancestors.push(n),n=Cn(r)}while(n);for(n=0;n<t.ancestors.length;n++){e=t.ancestors[n];var i=ue(t.nativeEvent);r=t.topLevelType;var o=t.nativeEvent,s=t.eventSystemFlags;0===n&&(s|=64);for(var a=null,u=0;u<x.length;u++){var c=x[u];c&&(c=c.extractEvents(r,e,o,i,s))&&(a=re(a,c))}ae(a)}}function de(t,e,n){if(!n.has(t)){switch(t){case"scroll":Ge(e,"scroll",!0);break;case"focus":case"blur":Ge(e,"focus",!0),Ge(e,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ce(t)&&Ge(e,t,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Xt.indexOf(t)&&Ke(t,e)}n.set(t,null)}}var me,ve,ye,ge=!1,be=[],_e=null,we=null,xe=null,Oe=new Map,Te=new Map,Se=[],ke="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Ce="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Ee(t,e,n,r,i){return{blockedOn:t,topLevelType:e,eventSystemFlags:32|n,nativeEvent:i,container:r}}function Ae(t,e){switch(t){case"focus":case"blur":_e=null;break;case"dragenter":case"dragleave":we=null;break;case"mouseover":case"mouseout":xe=null;break;case"pointerover":case"pointerout":Oe.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Te.delete(e.pointerId)}}function Pe(t,e,n,r,i,o){return null===t||t.nativeEvent!==o?(t=Ee(e,n,r,i,o),null!==e&&(null!==(e=En(e))&&ve(e)),t):(t.eventSystemFlags|=r,t)}function je(t){var e=Cn(t.target);if(null!==e){var n=Zt(e);if(null!==n)if(13===(e=n.tag)){if(null!==(e=te(n)))return t.blockedOn=e,void o.unstable_runWithPriority(t.priority,(function(){ye(n)}))}else if(3===e&&n.stateNode.hydrate)return void(t.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}t.blockedOn=null}function Ie(t){if(null!==t.blockedOn)return!1;var e=Qe(t.topLevelType,t.eventSystemFlags,t.container,t.nativeEvent);if(null!==e){var n=En(e);return null!==n&&ve(n),t.blockedOn=e,!1}return!0}function Me(t,e,n){Ie(t)&&n.delete(e)}function De(){for(ge=!1;0<be.length;){var t=be[0];if(null!==t.blockedOn){null!==(t=En(t.blockedOn))&&me(t);break}var e=Qe(t.topLevelType,t.eventSystemFlags,t.container,t.nativeEvent);null!==e?t.blockedOn=e:be.shift()}null!==_e&&Ie(_e)&&(_e=null),null!==we&&Ie(we)&&(we=null),null!==xe&&Ie(xe)&&(xe=null),Oe.forEach(Me),Te.forEach(Me)}function Ne(t,e){t.blockedOn===e&&(t.blockedOn=null,ge||(ge=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,De)))}function Re(t){function e(e){return Ne(e,t)}if(0<be.length){Ne(be[0],t);for(var n=1;n<be.length;n++){var r=be[n];r.blockedOn===t&&(r.blockedOn=null)}}for(null!==_e&&Ne(_e,t),null!==we&&Ne(we,t),null!==xe&&Ne(xe,t),Oe.forEach(e),Te.forEach(e),n=0;n<Se.length;n++)(r=Se[n]).blockedOn===t&&(r.blockedOn=null);for(;0<Se.length&&null===(n=Se[0]).blockedOn;)je(n),null===n.blockedOn&&Se.shift()}var Fe={},Le=new Map,Ve=new Map,ze=["abort","abort",Ht,"animationEnd",Kt,"animationIteration",Gt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Yt,"transitionEnd","waiting","waiting"];function Be(t,e){for(var n=0;n<t.length;n+=2){var r=t[n],i=t[n+1],o="on"+(i[0].toUpperCase()+i.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[r],eventPriority:e},Ve.set(r,e),Le.set(r,o),Fe[i]=o}}Be("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Be("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Be(ze,2);for(var qe="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Ue=0;Ue<qe.length;Ue++)Ve.set(qe[Ue],0);var We=o.unstable_UserBlockingPriority,$e=o.unstable_runWithPriority,He=!0;function Ke(t,e){Ge(e,t,!1)}function Ge(t,e,n){var r=Ve.get(e);switch(void 0===r?2:r){case 0:r=Ye.bind(null,e,1,t);break;case 1:r=Xe.bind(null,e,1,t);break;default:r=Je.bind(null,e,1,t)}n?t.addEventListener(e,r,!0):t.addEventListener(e,r,!1)}function Ye(t,e,n,r){L||R();var i=Je,o=L;L=!0;try{N(i,t,e,n,r)}finally{(L=o)||z()}}function Xe(t,e,n,r){$e(We,Je.bind(null,t,e,n,r))}function Je(t,e,n,r){if(He)if(0<be.length&&-1<ke.indexOf(t))t=Ee(null,t,e,n,r),be.push(t);else{var i=Qe(t,e,n,r);if(null===i)Ae(t,r);else if(-1<ke.indexOf(t))t=Ee(i,t,e,n,r),be.push(t);else if(!function(t,e,n,r,i){switch(e){case"focus":return _e=Pe(_e,t,e,n,r,i),!0;case"dragenter":return we=Pe(we,t,e,n,r,i),!0;case"mouseover":return xe=Pe(xe,t,e,n,r,i),!0;case"pointerover":var o=i.pointerId;return Oe.set(o,Pe(Oe.get(o)||null,t,e,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Te.set(o,Pe(Te.get(o)||null,t,e,n,r,i)),!0}return!1}(i,t,e,n,r)){Ae(t,r),t=fe(t,r,null,e);try{B(pe,t)}finally{he(t)}}}}function Qe(t,e,n,r){if(null!==(n=Cn(n=ue(r)))){var i=Zt(n);if(null===i)n=null;else{var o=i.tag;if(13===o){if(null!==(n=te(i)))return n;n=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}t=fe(t,r,n,e);try{B(pe,t)}finally{he(t)}return null}var Ze={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},tn=["Webkit","ms","Moz","O"];function en(t,e,n){return null==e||"boolean"==typeof e||""===e?"":n||"number"!=typeof e||0===e||Ze.hasOwnProperty(t)&&Ze[t]?(""+e).trim():e+"px"}function nn(t,e){for(var n in t=t.style,e)if(e.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=en(n,e[n],r);"float"===n&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}Object.keys(Ze).forEach((function(t){tn.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Ze[e]=Ze[t]}))}));var rn=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function on(t,e){if(e){if(rn[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML))throw Error(s(137,t,""));if(null!=e.dangerouslySetInnerHTML){if(null!=e.children)throw Error(s(60));if("object"!=typeof e.dangerouslySetInnerHTML||!("__html"in e.dangerouslySetInnerHTML))throw Error(s(61))}if(null!=e.style&&"object"!=typeof e.style)throw Error(s(62,""))}}function sn(t,e){if(-1===t.indexOf("-"))return"string"==typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var an=Dt;function un(t,e){var n=Qt(t=9===t.nodeType||11===t.nodeType?t:t.ownerDocument);e=S[e];for(var r=0;r<e.length;r++)de(e[r],t,n)}function cn(){}function ln(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function hn(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function fn(t,e){var n,r=hn(t);for(t=0;r;){if(3===r.nodeType){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=hn(r)}}function pn(){for(var t=window,e=ln();e instanceof t.HTMLIFrameElement;){try{var n="string"==typeof e.contentWindow.location.href}catch(t){n=!1}if(!n)break;e=ln((t=e.contentWindow).document)}return e}function dn(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}var mn=null,vn=null;function yn(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function gn(t,e){return"textarea"===t||"option"===t||"noscript"===t||"string"==typeof e.children||"number"==typeof e.children||"object"==typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}var bn="function"==typeof setTimeout?setTimeout:void 0,_n="function"==typeof clearTimeout?clearTimeout:void 0;function wn(t){for(;null!=t;t=t.nextSibling){var e=t.nodeType;if(1===e||3===e)break}return t}function xn(t){t=t.previousSibling;for(var e=0;t;){if(8===t.nodeType){var n=t.data;if("$"===n||"$!"===n||"$?"===n){if(0===e)return t;e--}else"/$"===n&&e++}t=t.previousSibling}return null}var On=Math.random().toString(36).slice(2),Tn="__reactInternalInstance$"+On,Sn="__reactEventHandlers$"+On,kn="__reactContainere$"+On;function Cn(t){var e=t[Tn];if(e)return e;for(var n=t.parentNode;n;){if(e=n[kn]||n[Tn]){if(n=e.alternate,null!==e.child||null!==n&&null!==n.child)for(t=xn(t);null!==t;){if(n=t[Tn])return n;t=xn(t)}return e}n=(t=n).parentNode}return null}function En(t){return!(t=t[Tn]||t[kn])||5!==t.tag&&6!==t.tag&&13!==t.tag&&3!==t.tag?null:t}function An(t){if(5===t.tag||6===t.tag)return t.stateNode;throw Error(s(33))}function Pn(t){return t[Sn]||null}function jn(t){do{t=t.return}while(t&&5!==t.tag);return t||null}function In(t,e){var n=t.stateNode;if(!n)return null;var r=d(n);if(!r)return null;n=r[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(t=t.type)||"input"===t||"select"===t||"textarea"===t)),t=!r;break t;default:t=!1}if(t)return null;if(n&&"function"!=typeof n)throw Error(s(231,e,typeof n));return n}function Mn(t,e,n){(e=In(t,n.dispatchConfig.phasedRegistrationNames[e]))&&(n._dispatchListeners=re(n._dispatchListeners,e),n._dispatchInstances=re(n._dispatchInstances,t))}function Dn(t){if(t&&t.dispatchConfig.phasedRegistrationNames){for(var e=t._targetInst,n=[];e;)n.push(e),e=jn(e);for(e=n.length;0<e--;)Mn(n[e],"captured",t);for(e=0;e<n.length;e++)Mn(n[e],"bubbled",t)}}function Nn(t,e,n){t&&n&&n.dispatchConfig.registrationName&&(e=In(t,n.dispatchConfig.registrationName))&&(n._dispatchListeners=re(n._dispatchListeners,e),n._dispatchInstances=re(n._dispatchInstances,t))}function Rn(t){t&&t.dispatchConfig.registrationName&&Nn(t._targetInst,null,t)}function Fn(t){ie(t,Dn)}var Ln=null,Vn=null,zn=null;function Bn(){if(zn)return zn;var t,e,n=Vn,r=n.length,i="value"in Ln?Ln.value:Ln.textContent,o=i.length;for(t=0;t<r&&n[t]===i[t];t++);var s=r-t;for(e=1;e<=s&&n[r-e]===i[o-e];e++);return zn=i.slice(t,1<e?1-e:void 0)}function qn(){return!0}function Un(){return!1}function Wn(t,e,n,r){for(var i in this.dispatchConfig=t,this._targetInst=e,this.nativeEvent=n,t=this.constructor.Interface)t.hasOwnProperty(i)&&((e=t[i])?this[i]=e(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?qn:Un,this.isPropagationStopped=Un,this}function $n(t,e,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,t,e,n,r),i}return new this(t,e,n,r)}function Hn(t){if(!(t instanceof this))throw Error(s(279));t.destructor(),10>this.eventPool.length&&this.eventPool.push(t)}function Kn(t){t.eventPool=[],t.getPooled=$n,t.release=Hn}i(Wn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=qn)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=qn)},persist:function(){this.isPersistent=qn},isPersistent:Un,destructor:function(){var t,e=this.constructor.Interface;for(t in e)this[t]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Un,this._dispatchInstances=this._dispatchListeners=null}}),Wn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Wn.extend=function(t){function e(){}function n(){return r.apply(this,arguments)}var r=this;e.prototype=r.prototype;var o=new e;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,t),n.extend=r.extend,Kn(n),n},Kn(Wn);var Gn=Wn.extend({data:null}),Yn=Wn.extend({data:null}),Xn=[9,13,27,32],Jn=C&&"CompositionEvent"in window,Qn=null;C&&"documentMode"in document&&(Qn=document.documentMode);var Zn=C&&"TextEvent"in window&&!Qn,tr=C&&(!Jn||Qn&&8<Qn&&11>=Qn),er=String.fromCharCode(32),nr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},rr=!1;function ir(t,e){switch(t){case"keyup":return-1!==Xn.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function or(t){return"object"==typeof(t=t.detail)&&"data"in t?t.data:null}var sr=!1;var ar={eventTypes:nr,extractEvents:function(t,e,n,r){var i;if(Jn)t:{switch(t){case"compositionstart":var o=nr.compositionStart;break t;case"compositionend":o=nr.compositionEnd;break t;case"compositionupdate":o=nr.compositionUpdate;break t}o=void 0}else sr?ir(t,n)&&(o=nr.compositionEnd):"keydown"===t&&229===n.keyCode&&(o=nr.compositionStart);return o?(tr&&"ko"!==n.locale&&(sr||o!==nr.compositionStart?o===nr.compositionEnd&&sr&&(i=Bn()):(Vn="value"in(Ln=r)?Ln.value:Ln.textContent,sr=!0)),o=Gn.getPooled(o,e,n,r),i?o.data=i:null!==(i=or(n))&&(o.data=i),Fn(o),i=o):i=null,(t=Zn?function(t,e){switch(t){case"compositionend":return or(e);case"keypress":return 32!==e.which?null:(rr=!0,er);case"textInput":return(t=e.data)===er&&rr?null:t;default:return null}}(t,n):function(t,e){if(sr)return"compositionend"===t||!Jn&&ir(t,e)?(t=Bn(),zn=Vn=Ln=null,sr=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return tr&&"ko"!==e.locale?null:e.data;default:return null}}(t,n))?((e=Yn.getPooled(nr.beforeInput,e,n,r)).data=t,Fn(e)):e=null,null===i?e:null===e?i:[i,e]}},ur={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function cr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!ur[t.type]:"textarea"===e}var lr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function hr(t,e,n){return(t=Wn.getPooled(lr.change,t,e,n)).type="change",I(n),Fn(t),t}var fr=null,pr=null;function dr(t){ae(t)}function mr(t){if(wt(An(t)))return t}function vr(t,e){if("change"===t)return e}var yr=!1;function gr(){fr&&(fr.detachEvent("onpropertychange",br),pr=fr=null)}function br(t){if("value"===t.propertyName&&mr(pr))if(t=hr(pr,t,ue(t)),L)ae(t);else{L=!0;try{D(dr,t)}finally{L=!1,z()}}}function _r(t,e,n){"focus"===t?(gr(),pr=n,(fr=e).attachEvent("onpropertychange",br)):"blur"===t&&gr()}function wr(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return mr(pr)}function xr(t,e){if("click"===t)return mr(e)}function Or(t,e){if("input"===t||"change"===t)return mr(e)}C&&(yr=ce("input")&&(!document.documentMode||9<document.documentMode));var Tr={eventTypes:lr,_isInputEventSupported:yr,extractEvents:function(t,e,n,r){var i=e?An(e):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var s=vr;else if(cr(i))if(yr)s=Or;else{s=wr;var a=_r}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(s=xr);if(s&&(s=s(t,e)))return hr(s,n,r);a&&a(t,i,e),"blur"===t&&(t=i._wrapperState)&&t.controlled&&"number"===i.type&&Ct(i,"number",i.value)}},Sr=Wn.extend({view:null,detail:null}),kr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cr(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=kr[t])&&!!e[t]}function Er(){return Cr}var Ar=0,Pr=0,jr=!1,Ir=!1,Mr=Sr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Er,button:null,buttons:null,relatedTarget:function(t){return t.relatedTarget||(t.fromElement===t.srcElement?t.toElement:t.fromElement)},movementX:function(t){if("movementX"in t)return t.movementX;var e=Ar;return Ar=t.screenX,jr?"mousemove"===t.type?t.screenX-e:0:(jr=!0,0)},movementY:function(t){if("movementY"in t)return t.movementY;var e=Pr;return Pr=t.screenY,Ir?"mousemove"===t.type?t.screenY-e:0:(Ir=!0,0)}}),Dr=Mr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Nr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Rr={eventTypes:Nr,extractEvents:function(t,e,n,r,i){var o="mouseover"===t||"pointerover"===t,s="mouseout"===t||"pointerout"===t;if(o&&0==(32&i)&&(n.relatedTarget||n.fromElement)||!s&&!o)return null;(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,s)?(s=e,null!==(e=(e=n.relatedTarget||n.toElement)?Cn(e):null)&&(e!==Zt(e)||5!==e.tag&&6!==e.tag)&&(e=null)):s=null;if(s===e)return null;if("mouseout"===t||"mouseover"===t)var a=Mr,u=Nr.mouseLeave,c=Nr.mouseEnter,l="mouse";else"pointerout"!==t&&"pointerover"!==t||(a=Dr,u=Nr.pointerLeave,c=Nr.pointerEnter,l="pointer");if(t=null==s?o:An(s),o=null==e?o:An(e),(u=a.getPooled(u,s,n,r)).type=l+"leave",u.target=t,u.relatedTarget=o,(n=a.getPooled(c,e,n,r)).type=l+"enter",n.target=o,n.relatedTarget=t,l=e,(r=s)&&l)t:{for(c=l,s=0,t=a=r;t;t=jn(t))s++;for(t=0,e=c;e;e=jn(e))t++;for(;0<s-t;)a=jn(a),s--;for(;0<t-s;)c=jn(c),t--;for(;s--;){if(a===c||a===c.alternate)break t;a=jn(a),c=jn(c)}a=null}else a=null;for(c=a,a=[];r&&r!==c&&(null===(s=r.alternate)||s!==c);)a.push(r),r=jn(r);for(r=[];l&&l!==c&&(null===(s=l.alternate)||s!==c);)r.push(l),l=jn(l);for(l=0;l<a.length;l++)Nn(a[l],"bubbled",u);for(l=r.length;0<l--;)Nn(r[l],"captured",n);return 0==(64&i)?[u]:[u,n]}};var Fr="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},Lr=Object.prototype.hasOwnProperty;function Vr(t,e){if(Fr(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Lr.call(e,n[r])||!Fr(t[n[r]],e[n[r]]))return!1;return!0}var zr=C&&"documentMode"in document&&11>=document.documentMode,Br={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},qr=null,Ur=null,Wr=null,$r=!1;function Hr(t,e){var n=e.window===e?e.document:9===e.nodeType?e:e.ownerDocument;return $r||null==qr||qr!==ln(n)?null:("selectionStart"in(n=qr)&&dn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Wr&&Vr(Wr,n)?null:(Wr=n,(t=Wn.getPooled(Br.select,Ur,t,e)).type="select",t.target=qr,Fn(t),t))}var Kr={eventTypes:Br,extractEvents:function(t,e,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){t:{i=Qt(i),o=S.onSelect;for(var s=0;s<o.length;s++)if(!i.has(o[s])){i=!1;break t}i=!0}o=!i}if(o)return null;switch(i=e?An(e):window,t){case"focus":(cr(i)||"true"===i.contentEditable)&&(qr=i,Ur=e,Wr=null);break;case"blur":Wr=Ur=qr=null;break;case"mousedown":$r=!0;break;case"contextmenu":case"mouseup":case"dragend":return $r=!1,Hr(n,r);case"selectionchange":if(zr)break;case"keydown":case"keyup":return Hr(n,r)}return null}},Gr=Wn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Yr=Wn.extend({clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Xr=Sr.extend({relatedTarget:null});function Jr(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,10===t&&(t=13),32<=t||13===t?t:0}var Qr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ti=Sr.extend({key:function(t){if(t.key){var e=Qr[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?13===(t=Jr(t))?"Enter":String.fromCharCode(t):"keydown"===t.type||"keyup"===t.type?Zr[t.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Er,charCode:function(t){return"keypress"===t.type?Jr(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?Jr(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),ei=Mr.extend({dataTransfer:null}),ni=Sr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Er}),ri=Wn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ii=Mr.extend({deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null}),oi={eventTypes:Fe,extractEvents:function(t,e,n,r){var i=Le.get(t);if(!i)return null;switch(t){case"keypress":if(0===Jr(n))return null;case"keydown":case"keyup":t=ti;break;case"blur":case"focus":t=Xr;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":t=Mr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":t=ei;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":t=ni;break;case Ht:case Kt:case Gt:t=Gr;break;case Yt:t=ri;break;case"scroll":t=Sr;break;case"wheel":t=ii;break;case"copy":case"cut":case"paste":t=Yr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":t=Dr;break;default:t=Wn}return Fn(e=t.getPooled(i,e,n,r)),e}};if(g)throw Error(s(101));g=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),_(),d=Pn,m=En,v=An,k({SimpleEventPlugin:oi,EnterLeaveEventPlugin:Rr,ChangeEventPlugin:Tr,SelectEventPlugin:Kr,BeforeInputEventPlugin:ar});var si=[],ai=-1;function ui(t){0>ai||(t.current=si[ai],si[ai]=null,ai--)}function ci(t,e){ai++,si[ai]=t.current,t.current=e}var li={},hi={current:li},fi={current:!1},pi=li;function di(t,e){var n=t.type.contextTypes;if(!n)return li;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=e[i];return r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function mi(t){return null!=(t=t.childContextTypes)}function vi(){ui(fi),ui(hi)}function yi(t,e,n){if(hi.current!==li)throw Error(s(168));ci(hi,e),ci(fi,n)}function gi(t,e,n){var r=t.stateNode;if(t=e.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(s(108,vt(e)||"Unknown",o));return i({},n,{},r)}function bi(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||li,pi=hi.current,ci(hi,t),ci(fi,fi.current),!0}function _i(t,e,n){var r=t.stateNode;if(!r)throw Error(s(169));n?(t=gi(t,e,pi),r.__reactInternalMemoizedMergedChildContext=t,ui(fi),ui(hi),ci(hi,t)):ui(fi),ci(fi,n)}var wi=o.unstable_runWithPriority,xi=o.unstable_scheduleCallback,Oi=o.unstable_cancelCallback,Ti=o.unstable_requestPaint,Si=o.unstable_now,ki=o.unstable_getCurrentPriorityLevel,Ci=o.unstable_ImmediatePriority,Ei=o.unstable_UserBlockingPriority,Ai=o.unstable_NormalPriority,Pi=o.unstable_LowPriority,ji=o.unstable_IdlePriority,Ii={},Mi=o.unstable_shouldYield,Di=void 0!==Ti?Ti:function(){},Ni=null,Ri=null,Fi=!1,Li=Si(),Vi=1e4>Li?Si:function(){return Si()-Li};function zi(){switch(ki()){case Ci:return 99;case Ei:return 98;case Ai:return 97;case Pi:return 96;case ji:return 95;default:throw Error(s(332))}}function Bi(t){switch(t){case 99:return Ci;case 98:return Ei;case 97:return Ai;case 96:return Pi;case 95:return ji;default:throw Error(s(332))}}function qi(t,e){return t=Bi(t),wi(t,e)}function Ui(t,e,n){return t=Bi(t),xi(t,e,n)}function Wi(t){return null===Ni?(Ni=[t],Ri=xi(Ci,Hi)):Ni.push(t),Ii}function $i(){if(null!==Ri){var t=Ri;Ri=null,Oi(t)}Hi()}function Hi(){if(!Fi&&null!==Ni){Fi=!0;var t=0;try{var e=Ni;qi(99,(function(){for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}})),Ni=null}catch(e){throw null!==Ni&&(Ni=Ni.slice(t+1)),xi(Ci,$i),e}finally{Fi=!1}}}function Ki(t,e,n){return 1073741821-(1+((1073741821-t+e/10)/(n/=10)|0))*n}function Gi(t,e){if(t&&t.defaultProps)for(var n in e=i({},e),t=t.defaultProps)void 0===e[n]&&(e[n]=t[n]);return e}var Yi={current:null},Xi=null,Ji=null,Qi=null;function Zi(){Qi=Ji=Xi=null}function to(t){var e=Yi.current;ui(Yi),t.type._context._currentValue=e}function eo(t,e){for(;null!==t;){var n=t.alternate;if(t.childExpirationTime<e)t.childExpirationTime=e,null!==n&&n.childExpirationTime<e&&(n.childExpirationTime=e);else{if(!(null!==n&&n.childExpirationTime<e))break;n.childExpirationTime=e}t=t.return}}function no(t,e){Xi=t,Qi=Ji=null,null!==(t=t.dependencies)&&null!==t.firstContext&&(t.expirationTime>=e&&(Ps=!0),t.firstContext=null)}function ro(t,e){if(Qi!==t&&!1!==e&&0!==e)if("number"==typeof e&&1073741823!==e||(Qi=t,e=1073741823),e={context:t,observedBits:e,next:null},null===Ji){if(null===Xi)throw Error(s(308));Ji=e,Xi.dependencies={expirationTime:0,firstContext:e,responders:null}}else Ji=Ji.next=e;return t._currentValue}var io=!1;function oo(t){t.updateQueue={baseState:t.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function so(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,baseQueue:t.baseQueue,shared:t.shared,effects:t.effects})}function ao(t,e){return(t={expirationTime:t,suspenseConfig:e,tag:0,payload:null,callback:null,next:null}).next=t}function uo(t,e){if(null!==(t=t.updateQueue)){var n=(t=t.shared).pending;null===n?e.next=e:(e.next=n.next,n.next=e),t.pending=e}}function co(t,e){var n=t.alternate;null!==n&&so(n,t),null===(n=(t=t.updateQueue).baseQueue)?(t.baseQueue=e.next=e,e.next=e):(e.next=n.next,n.next=e)}function lo(t,e,n,r){var o=t.updateQueue;io=!1;var s=o.baseQueue,a=o.shared.pending;if(null!==a){if(null!==s){var u=s.next;s.next=a.next,a.next=u}s=a,o.shared.pending=null,null!==(u=t.alternate)&&(null!==(u=u.updateQueue)&&(u.baseQueue=a))}if(null!==s){u=s.next;var c=o.baseState,l=0,h=null,f=null,p=null;if(null!==u)for(var d=u;;){if((a=d.expirationTime)<r){var m={expirationTime:d.expirationTime,suspenseConfig:d.suspenseConfig,tag:d.tag,payload:d.payload,callback:d.callback,next:null};null===p?(f=p=m,h=c):p=p.next=m,a>l&&(l=a)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:d.suspenseConfig,tag:d.tag,payload:d.payload,callback:d.callback,next:null}),ou(a,d.suspenseConfig);t:{var v=t,y=d;switch(a=e,m=n,y.tag){case 1:if("function"==typeof(v=y.payload)){c=v.call(m,c,a);break t}c=v;break t;case 3:v.effectTag=-4097&v.effectTag|64;case 0:if(null==(a="function"==typeof(v=y.payload)?v.call(m,c,a):v))break t;c=i({},c,a);break t;case 2:io=!0}}null!==d.callback&&(t.effectTag|=32,null===(a=o.effects)?o.effects=[d]:a.push(d))}if(null===(d=d.next)||d===u){if(null===(a=o.shared.pending))break;d=s.next=a.next,a.next=u,o.baseQueue=s=a,o.shared.pending=null}}null===p?h=c:p.next=f,o.baseState=h,o.baseQueue=p,su(l),t.expirationTime=l,t.memoizedState=c}}function ho(t,e,n){if(t=e.effects,e.effects=null,null!==t)for(e=0;e<t.length;e++){var r=t[e],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,"function"!=typeof r)throw Error(s(191,r));r.call(i)}}}var fo=X.ReactCurrentBatchConfig,po=(new r.Component).refs;function mo(t,e,n,r){n=null==(n=n(r,e=t.memoizedState))?e:i({},e,n),t.memoizedState=n,0===t.expirationTime&&(t.updateQueue.baseState=n)}var vo={isMounted:function(t){return!!(t=t._reactInternalFiber)&&Zt(t)===t},enqueueSetState:function(t,e,n){t=t._reactInternalFiber;var r=Ha(),i=fo.suspense;(i=ao(r=Ka(r,t,i),i)).payload=e,null!=n&&(i.callback=n),uo(t,i),Ga(t,r)},enqueueReplaceState:function(t,e,n){t=t._reactInternalFiber;var r=Ha(),i=fo.suspense;(i=ao(r=Ka(r,t,i),i)).tag=1,i.payload=e,null!=n&&(i.callback=n),uo(t,i),Ga(t,r)},enqueueForceUpdate:function(t,e){t=t._reactInternalFiber;var n=Ha(),r=fo.suspense;(r=ao(n=Ka(n,t,r),r)).tag=2,null!=e&&(r.callback=e),uo(t,r),Ga(t,n)}};function yo(t,e,n,r,i,o,s){return"function"==typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(r,o,s):!e.prototype||!e.prototype.isPureReactComponent||(!Vr(n,r)||!Vr(i,o))}function go(t,e,n){var r=!1,i=li,o=e.contextType;return"object"==typeof o&&null!==o?o=ro(o):(i=mi(e)?pi:hi.current,o=(r=null!=(r=e.contextTypes))?di(t,i):li),e=new e(n,o),t.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=vo,t.stateNode=e,e._reactInternalFiber=t,r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=o),e}function bo(t,e,n,r){t=e.state,"function"==typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(n,r),"function"==typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&vo.enqueueReplaceState(e,e.state,null)}function _o(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs=po,oo(t);var o=e.contextType;"object"==typeof o&&null!==o?i.context=ro(o):(o=mi(e)?pi:hi.current,i.context=di(t,o)),lo(t,n,i,r),i.state=t.memoizedState,"function"==typeof(o=e.getDerivedStateFromProps)&&(mo(t,e,o,n),i.state=t.memoizedState),"function"==typeof e.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(e=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),e!==i.state&&vo.enqueueReplaceState(i,i.state,null),lo(t,n,i,r),i.state=t.memoizedState),"function"==typeof i.componentDidMount&&(t.effectTag|=4)}var wo=Array.isArray;function xo(t,e,n){if(null!==(t=n.ref)&&"function"!=typeof t&&"object"!=typeof t){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(s(309));var r=n.stateNode}if(!r)throw Error(s(147,t));var i=""+t;return null!==e&&null!==e.ref&&"function"==typeof e.ref&&e.ref._stringRef===i?e.ref:((e=function(t){var e=r.refs;e===po&&(e=r.refs={}),null===t?delete e[i]:e[i]=t})._stringRef=i,e)}if("string"!=typeof t)throw Error(s(284));if(!n._owner)throw Error(s(290,t))}return t}function Oo(t,e){if("textarea"!==t.type)throw Error(s(31,"[object Object]"===Object.prototype.toString.call(e)?"object with keys {"+Object.keys(e).join(", ")+"}":e,""))}function To(t){function e(e,n){if(t){var r=e.lastEffect;null!==r?(r.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!t)return null;for(;null!==r;)e(n,r),r=r.sibling;return null}function r(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(t,e){return(t=ku(t,e)).index=0,t.sibling=null,t}function o(e,n,r){return e.index=r,t?null!==(r=e.alternate)?(r=r.index)<n?(e.effectTag=2,n):r:(e.effectTag=2,n):n}function a(e){return t&&null===e.alternate&&(e.effectTag=2),e}function u(t,e,n,r){return null===e||6!==e.tag?((e=Au(n,t.mode,r)).return=t,e):((e=i(e,n)).return=t,e)}function c(t,e,n,r){return null!==e&&e.elementType===n.type?((r=i(e,n.props)).ref=xo(t,e,n),r.return=t,r):((r=Cu(n.type,n.key,n.props,null,t.mode,r)).ref=xo(t,e,n),r.return=t,r)}function l(t,e,n,r){return null===e||4!==e.tag||e.stateNode.containerInfo!==n.containerInfo||e.stateNode.implementation!==n.implementation?((e=Pu(n,t.mode,r)).return=t,e):((e=i(e,n.children||[])).return=t,e)}function h(t,e,n,r,o){return null===e||7!==e.tag?((e=Eu(n,t.mode,r,o)).return=t,e):((e=i(e,n)).return=t,e)}function f(t,e,n){if("string"==typeof e||"number"==typeof e)return(e=Au(""+e,t.mode,n)).return=t,e;if("object"==typeof e&&null!==e){switch(e.$$typeof){case tt:return(n=Cu(e.type,e.key,e.props,null,t.mode,n)).ref=xo(t,null,e),n.return=t,n;case et:return(e=Pu(e,t.mode,n)).return=t,e}if(wo(e)||mt(e))return(e=Eu(e,t.mode,n,null)).return=t,e;Oo(t,e)}return null}function p(t,e,n,r){var i=null!==e?e.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:u(t,e,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case tt:return n.key===i?n.type===nt?h(t,e,n.props.children,r,i):c(t,e,n,r):null;case et:return n.key===i?l(t,e,n,r):null}if(wo(n)||mt(n))return null!==i?null:h(t,e,n,r,null);Oo(t,n)}return null}function d(t,e,n,r,i){if("string"==typeof r||"number"==typeof r)return u(e,t=t.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case tt:return t=t.get(null===r.key?n:r.key)||null,r.type===nt?h(e,t,r.props.children,i,r.key):c(e,t,r,i);case et:return l(e,t=t.get(null===r.key?n:r.key)||null,r,i)}if(wo(r)||mt(r))return h(e,t=t.get(n)||null,r,i,null);Oo(e,r)}return null}function m(i,s,a,u){for(var c=null,l=null,h=s,m=s=0,v=null;null!==h&&m<a.length;m++){h.index>m?(v=h,h=null):v=h.sibling;var y=p(i,h,a[m],u);if(null===y){null===h&&(h=v);break}t&&h&&null===y.alternate&&e(i,h),s=o(y,s,m),null===l?c=y:l.sibling=y,l=y,h=v}if(m===a.length)return n(i,h),c;if(null===h){for(;m<a.length;m++)null!==(h=f(i,a[m],u))&&(s=o(h,s,m),null===l?c=h:l.sibling=h,l=h);return c}for(h=r(i,h);m<a.length;m++)null!==(v=d(h,i,m,a[m],u))&&(t&&null!==v.alternate&&h.delete(null===v.key?m:v.key),s=o(v,s,m),null===l?c=v:l.sibling=v,l=v);return t&&h.forEach((function(t){return e(i,t)})),c}function v(i,a,u,c){var l=mt(u);if("function"!=typeof l)throw Error(s(150));if(null==(u=l.call(u)))throw Error(s(151));for(var h=l=null,m=a,v=a=0,y=null,g=u.next();null!==m&&!g.done;v++,g=u.next()){m.index>v?(y=m,m=null):y=m.sibling;var b=p(i,m,g.value,c);if(null===b){null===m&&(m=y);break}t&&m&&null===b.alternate&&e(i,m),a=o(b,a,v),null===h?l=b:h.sibling=b,h=b,m=y}if(g.done)return n(i,m),l;if(null===m){for(;!g.done;v++,g=u.next())null!==(g=f(i,g.value,c))&&(a=o(g,a,v),null===h?l=g:h.sibling=g,h=g);return l}for(m=r(i,m);!g.done;v++,g=u.next())null!==(g=d(m,i,v,g.value,c))&&(t&&null!==g.alternate&&m.delete(null===g.key?v:g.key),a=o(g,a,v),null===h?l=g:h.sibling=g,h=g);return t&&m.forEach((function(t){return e(i,t)})),l}return function(t,r,o,u){var c="object"==typeof o&&null!==o&&o.type===nt&&null===o.key;c&&(o=o.props.children);var l="object"==typeof o&&null!==o;if(l)switch(o.$$typeof){case tt:t:{for(l=o.key,c=r;null!==c;){if(c.key===l){switch(c.tag){case 7:if(o.type===nt){n(t,c.sibling),(r=i(c,o.props.children)).return=t,t=r;break t}break;default:if(c.elementType===o.type){n(t,c.sibling),(r=i(c,o.props)).ref=xo(t,c,o),r.return=t,t=r;break t}}n(t,c);break}e(t,c),c=c.sibling}o.type===nt?((r=Eu(o.props.children,t.mode,u,o.key)).return=t,t=r):((u=Cu(o.type,o.key,o.props,null,t.mode,u)).ref=xo(t,r,o),u.return=t,t=u)}return a(t);case et:t:{for(c=o.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(t,r.sibling),(r=i(r,o.children||[])).return=t,t=r;break t}n(t,r);break}e(t,r),r=r.sibling}(r=Pu(o,t.mode,u)).return=t,t=r}return a(t)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(t,r.sibling),(r=i(r,o)).return=t,t=r):(n(t,r),(r=Au(o,t.mode,u)).return=t,t=r),a(t);if(wo(o))return m(t,r,o,u);if(mt(o))return v(t,r,o,u);if(l&&Oo(t,o),void 0===o&&!c)switch(t.tag){case 1:case 0:throw t=t.type,Error(s(152,t.displayName||t.name||"Component"))}return n(t,r)}}var So=To(!0),ko=To(!1),Co={},Eo={current:Co},Ao={current:Co},Po={current:Co};function jo(t){if(t===Co)throw Error(s(174));return t}function Io(t,e){switch(ci(Po,e),ci(Ao,t),ci(Eo,Co),t=e.nodeType){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Ft(null,"");break;default:e=Ft(e=(t=8===t?e.parentNode:e).namespaceURI||null,t=t.tagName)}ui(Eo),ci(Eo,e)}function Mo(){ui(Eo),ui(Ao),ui(Po)}function Do(t){jo(Po.current);var e=jo(Eo.current),n=Ft(e,t.type);e!==n&&(ci(Ao,t),ci(Eo,n))}function No(t){Ao.current===t&&(ui(Eo),ui(Ao))}var Ro={current:0};function Fo(t){for(var e=t;null!==e;){if(13===e.tag){var n=e.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(0!=(64&e.effectTag))return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function Lo(t,e){return{responder:t,props:e}}var Vo=X.ReactCurrentDispatcher,zo=X.ReactCurrentBatchConfig,Bo=0,qo=null,Uo=null,Wo=null,$o=!1;function Ho(){throw Error(s(321))}function Ko(t,e){if(null===e)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Fr(t[n],e[n]))return!1;return!0}function Go(t,e,n,r,i,o){if(Bo=o,qo=e,e.memoizedState=null,e.updateQueue=null,e.expirationTime=0,Vo.current=null===t||null===t.memoizedState?ys:gs,t=n(r,i),e.expirationTime===Bo){o=0;do{if(e.expirationTime=0,!(25>o))throw Error(s(301));o+=1,Wo=Uo=null,e.updateQueue=null,Vo.current=bs,t=n(r,i)}while(e.expirationTime===Bo)}if(Vo.current=vs,e=null!==Uo&&null!==Uo.next,Bo=0,Wo=Uo=qo=null,$o=!1,e)throw Error(s(300));return t}function Yo(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Wo?qo.memoizedState=Wo=t:Wo=Wo.next=t,Wo}function Xo(){if(null===Uo){var t=qo.alternate;t=null!==t?t.memoizedState:null}else t=Uo.next;var e=null===Wo?qo.memoizedState:Wo.next;if(null!==e)Wo=e,Uo=t;else{if(null===t)throw Error(s(310));t={memoizedState:(Uo=t).memoizedState,baseState:Uo.baseState,baseQueue:Uo.baseQueue,queue:Uo.queue,next:null},null===Wo?qo.memoizedState=Wo=t:Wo=Wo.next=t}return Wo}function Jo(t,e){return"function"==typeof e?e(t):e}function Qo(t){var e=Xo(),n=e.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=t;var r=Uo,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var u=a=o=null,c=i;do{var l=c.expirationTime;if(l<Bo){var h={expirationTime:c.expirationTime,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===u?(a=u=h,o=r):u=u.next=h,l>qo.expirationTime&&(qo.expirationTime=l,su(l))}else null!==u&&(u=u.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),ou(l,c.suspenseConfig),r=c.eagerReducer===t?c.eagerState:t(r,c.action);c=c.next}while(null!==c&&c!==i);null===u?o=r:u.next=a,Fr(r,e.memoizedState)||(Ps=!0),e.memoizedState=r,e.baseState=o,e.baseQueue=u,n.lastRenderedState=r}return[e.memoizedState,n.dispatch]}function Zo(t){var e=Xo(),n=e.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,o=e.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=t(o,a.action),a=a.next}while(a!==i);Fr(o,e.memoizedState)||(Ps=!0),e.memoizedState=o,null===e.baseQueue&&(e.baseState=o),n.lastRenderedState=o}return[o,r]}function ts(t){var e=Yo();return"function"==typeof t&&(t=t()),e.memoizedState=e.baseState=t,t=(t=e.queue={pending:null,dispatch:null,lastRenderedReducer:Jo,lastRenderedState:t}).dispatch=ms.bind(null,qo,t),[e.memoizedState,t]}function es(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},null===(e=qo.updateQueue)?(e={lastEffect:null},qo.updateQueue=e,e.lastEffect=t.next=t):null===(n=e.lastEffect)?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t),t}function ns(){return Xo().memoizedState}function rs(t,e,n,r){var i=Yo();qo.effectTag|=t,i.memoizedState=es(1|e,n,void 0,void 0===r?null:r)}function is(t,e,n,r){var i=Xo();r=void 0===r?null:r;var o=void 0;if(null!==Uo){var s=Uo.memoizedState;if(o=s.destroy,null!==r&&Ko(r,s.deps))return void es(e,n,o,r)}qo.effectTag|=t,i.memoizedState=es(1|e,n,o,r)}function os(t,e){return rs(516,4,t,e)}function ss(t,e){return is(516,4,t,e)}function as(t,e){return is(4,2,t,e)}function us(t,e){return"function"==typeof e?(t=t(),e(t),function(){e(null)}):null!=e?(t=t(),e.current=t,function(){e.current=null}):void 0}function cs(t,e,n){return n=null!=n?n.concat([t]):null,is(4,2,us.bind(null,e,t),n)}function ls(){}function hs(t,e){return Yo().memoizedState=[t,void 0===e?null:e],t}function fs(t,e){var n=Xo();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&Ko(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function ps(t,e){var n=Xo();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&Ko(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function ds(t,e,n){var r=zi();qi(98>r?98:r,(function(){t(!0)})),qi(97<r?97:r,(function(){var r=zo.suspense;zo.suspense=void 0===e?null:e;try{t(!1),n()}finally{zo.suspense=r}}))}function ms(t,e,n){var r=Ha(),i=fo.suspense;i={expirationTime:r=Ka(r,t,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var o=e.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),e.pending=i,o=t.alternate,t===qo||null!==o&&o===qo)$o=!0,i.expirationTime=Bo,qo.expirationTime=Bo;else{if(0===t.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=e.lastRenderedReducer))try{var s=e.lastRenderedState,a=o(s,n);if(i.eagerReducer=o,i.eagerState=a,Fr(a,s))return}catch(t){}Ga(t,r)}}var vs={readContext:ro,useCallback:Ho,useContext:Ho,useEffect:Ho,useImperativeHandle:Ho,useLayoutEffect:Ho,useMemo:Ho,useReducer:Ho,useRef:Ho,useState:Ho,useDebugValue:Ho,useResponder:Ho,useDeferredValue:Ho,useTransition:Ho},ys={readContext:ro,useCallback:hs,useContext:ro,useEffect:os,useImperativeHandle:function(t,e,n){return n=null!=n?n.concat([t]):null,rs(4,2,us.bind(null,e,t),n)},useLayoutEffect:function(t,e){return rs(4,2,t,e)},useMemo:function(t,e){var n=Yo();return e=void 0===e?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Yo();return e=void 0!==n?n(e):e,r.memoizedState=r.baseState=e,t=(t=r.queue={pending:null,dispatch:null,lastRenderedReducer:t,lastRenderedState:e}).dispatch=ms.bind(null,qo,t),[r.memoizedState,t]},useRef:function(t){return t={current:t},Yo().memoizedState=t},useState:ts,useDebugValue:ls,useResponder:Lo,useDeferredValue:function(t,e){var n=ts(t),r=n[0],i=n[1];return os((function(){var n=zo.suspense;zo.suspense=void 0===e?null:e;try{i(t)}finally{zo.suspense=n}}),[t,e]),r},useTransition:function(t){var e=ts(!1),n=e[0];return e=e[1],[hs(ds.bind(null,e,t),[e,t]),n]}},gs={readContext:ro,useCallback:fs,useContext:ro,useEffect:ss,useImperativeHandle:cs,useLayoutEffect:as,useMemo:ps,useReducer:Qo,useRef:ns,useState:function(){return Qo(Jo)},useDebugValue:ls,useResponder:Lo,useDeferredValue:function(t,e){var n=Qo(Jo),r=n[0],i=n[1];return ss((function(){var n=zo.suspense;zo.suspense=void 0===e?null:e;try{i(t)}finally{zo.suspense=n}}),[t,e]),r},useTransition:function(t){var e=Qo(Jo),n=e[0];return e=e[1],[fs(ds.bind(null,e,t),[e,t]),n]}},bs={readContext:ro,useCallback:fs,useContext:ro,useEffect:ss,useImperativeHandle:cs,useLayoutEffect:as,useMemo:ps,useReducer:Zo,useRef:ns,useState:function(){return Zo(Jo)},useDebugValue:ls,useResponder:Lo,useDeferredValue:function(t,e){var n=Zo(Jo),r=n[0],i=n[1];return ss((function(){var n=zo.suspense;zo.suspense=void 0===e?null:e;try{i(t)}finally{zo.suspense=n}}),[t,e]),r},useTransition:function(t){var e=Zo(Jo),n=e[0];return e=e[1],[fs(ds.bind(null,e,t),[e,t]),n]}},_s=null,ws=null,xs=!1;function Os(t,e){var n=Tu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=e,n.return=t,n.effectTag=8,null!==t.lastEffect?(t.lastEffect.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n}function Ts(t,e){switch(t.tag){case 5:var n=t.type;return null!==(e=1!==e.nodeType||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e)&&(t.stateNode=e,!0);case 6:return null!==(e=""===t.pendingProps||3!==e.nodeType?null:e)&&(t.stateNode=e,!0);case 13:default:return!1}}function Ss(t){if(xs){var e=ws;if(e){var n=e;if(!Ts(t,e)){if(!(e=wn(n.nextSibling))||!Ts(t,e))return t.effectTag=-1025&t.effectTag|2,xs=!1,void(_s=t);Os(_s,n)}_s=t,ws=wn(e.firstChild)}else t.effectTag=-1025&t.effectTag|2,xs=!1,_s=t}}function ks(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag&&13!==t.tag;)t=t.return;_s=t}function Cs(t){if(t!==_s)return!1;if(!xs)return ks(t),xs=!0,!1;var e=t.type;if(5!==t.tag||"head"!==e&&"body"!==e&&!gn(e,t.memoizedProps))for(e=ws;e;)Os(t,e),e=wn(e.nextSibling);if(ks(t),13===t.tag){if(!(t=null!==(t=t.memoizedState)?t.dehydrated:null))throw Error(s(317));t:{for(t=t.nextSibling,e=0;t;){if(8===t.nodeType){var n=t.data;if("/$"===n){if(0===e){ws=wn(t.nextSibling);break t}e--}else"$"!==n&&"$!"!==n&&"$?"!==n||e++}t=t.nextSibling}ws=null}}else ws=_s?wn(t.stateNode.nextSibling):null;return!0}function Es(){ws=_s=null,xs=!1}var As=X.ReactCurrentOwner,Ps=!1;function js(t,e,n,r){e.child=null===t?ko(e,null,n,r):So(e,t.child,n,r)}function Is(t,e,n,r,i){n=n.render;var o=e.ref;return no(e,i),r=Go(t,e,n,r,o,i),null===t||Ps?(e.effectTag|=1,js(t,e,r,i),e.child):(e.updateQueue=t.updateQueue,e.effectTag&=-517,t.expirationTime<=i&&(t.expirationTime=0),Gs(t,e,i))}function Ms(t,e,n,r,i,o){if(null===t){var s=n.type;return"function"!=typeof s||Su(s)||void 0!==s.defaultProps||null!==n.compare||void 0!==n.defaultProps?((t=Cu(n.type,null,r,null,e.mode,o)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=s,Ds(t,e,s,r,i,o))}return s=t.child,i<o&&(i=s.memoizedProps,(n=null!==(n=n.compare)?n:Vr)(i,r)&&t.ref===e.ref)?Gs(t,e,o):(e.effectTag|=1,(t=ku(s,r)).ref=e.ref,t.return=e,e.child=t)}function Ds(t,e,n,r,i,o){return null!==t&&Vr(t.memoizedProps,r)&&t.ref===e.ref&&(Ps=!1,i<o)?(e.expirationTime=t.expirationTime,Gs(t,e,o)):Rs(t,e,n,r,o)}function Ns(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.effectTag|=128)}function Rs(t,e,n,r,i){var o=mi(n)?pi:hi.current;return o=di(e,o),no(e,i),n=Go(t,e,n,r,o,i),null===t||Ps?(e.effectTag|=1,js(t,e,n,i),e.child):(e.updateQueue=t.updateQueue,e.effectTag&=-517,t.expirationTime<=i&&(t.expirationTime=0),Gs(t,e,i))}function Fs(t,e,n,r,i){if(mi(n)){var o=!0;bi(e)}else o=!1;if(no(e,i),null===e.stateNode)null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),go(e,n,r),_o(e,n,r,i),r=!0;else if(null===t){var s=e.stateNode,a=e.memoizedProps;s.props=a;var u=s.context,c=n.contextType;"object"==typeof c&&null!==c?c=ro(c):c=di(e,c=mi(n)?pi:hi.current);var l=n.getDerivedStateFromProps,h="function"==typeof l||"function"==typeof s.getSnapshotBeforeUpdate;h||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==r||u!==c)&&bo(e,s,r,c),io=!1;var f=e.memoizedState;s.state=f,lo(e,r,s,i),u=e.memoizedState,a!==r||f!==u||fi.current||io?("function"==typeof l&&(mo(e,n,l,r),u=e.memoizedState),(a=io||yo(e,n,a,r,f,u,c))?(h||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(e.effectTag|=4)):("function"==typeof s.componentDidMount&&(e.effectTag|=4),e.memoizedProps=r,e.memoizedState=u),s.props=r,s.state=u,s.context=c,r=a):("function"==typeof s.componentDidMount&&(e.effectTag|=4),r=!1)}else s=e.stateNode,so(t,e),a=e.memoizedProps,s.props=e.type===e.elementType?a:Gi(e.type,a),u=s.context,"object"==typeof(c=n.contextType)&&null!==c?c=ro(c):c=di(e,c=mi(n)?pi:hi.current),(h="function"==typeof(l=n.getDerivedStateFromProps)||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==r||u!==c)&&bo(e,s,r,c),io=!1,u=e.memoizedState,s.state=u,lo(e,r,s,i),f=e.memoizedState,a!==r||u!==f||fi.current||io?("function"==typeof l&&(mo(e,n,l,r),f=e.memoizedState),(l=io||yo(e,n,a,r,u,f,c))?(h||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(r,f,c),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,f,c)),"function"==typeof s.componentDidUpdate&&(e.effectTag|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(e.effectTag|=256)):("function"!=typeof s.componentDidUpdate||a===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=256),e.memoizedProps=r,e.memoizedState=f),s.props=r,s.state=f,s.context=c,r=l):("function"!=typeof s.componentDidUpdate||a===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=256),r=!1);return Ls(t,e,n,r,o,i)}function Ls(t,e,n,r,i,o){Ns(t,e);var s=0!=(64&e.effectTag);if(!r&&!s)return i&&_i(e,n,!1),Gs(t,e,o);r=e.stateNode,As.current=e;var a=s&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return e.effectTag|=1,null!==t&&s?(e.child=So(e,t.child,null,o),e.child=So(e,null,a,o)):js(t,e,a,o),e.memoizedState=r.state,i&&_i(e,n,!0),e.child}function Vs(t){var e=t.stateNode;e.pendingContext?yi(0,e.pendingContext,e.pendingContext!==e.context):e.context&&yi(0,e.context,!1),Io(t,e.containerInfo)}var zs,Bs,qs,Us={dehydrated:null,retryTime:0};function Ws(t,e,n){var r,i=e.mode,o=e.pendingProps,s=Ro.current,a=!1;if((r=0!=(64&e.effectTag))||(r=0!=(2&s)&&(null===t||null!==t.memoizedState)),r?(a=!0,e.effectTag&=-65):null!==t&&null===t.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(s|=1),ci(Ro,1&s),null===t){if(void 0!==o.fallback&&Ss(e),a){if(a=o.fallback,(o=Eu(null,i,0,null)).return=e,0==(2&e.mode))for(t=null!==e.memoizedState?e.child.child:e.child,o.child=t;null!==t;)t.return=o,t=t.sibling;return(n=Eu(a,i,n,null)).return=e,o.sibling=n,e.memoizedState=Us,e.child=o,n}return i=o.children,e.memoizedState=null,e.child=ko(e,null,i,n)}if(null!==t.memoizedState){if(i=(t=t.child).sibling,a){if(o=o.fallback,(n=ku(t,t.pendingProps)).return=e,0==(2&e.mode)&&(a=null!==e.memoizedState?e.child.child:e.child)!==t.child)for(n.child=a;null!==a;)a.return=n,a=a.sibling;return(i=ku(i,o)).return=e,n.sibling=i,n.childExpirationTime=0,e.memoizedState=Us,e.child=n,i}return n=So(e,t.child,o.children,n),e.memoizedState=null,e.child=n}if(t=t.child,a){if(a=o.fallback,(o=Eu(null,i,0,null)).return=e,o.child=t,null!==t&&(t.return=o),0==(2&e.mode))for(t=null!==e.memoizedState?e.child.child:e.child,o.child=t;null!==t;)t.return=o,t=t.sibling;return(n=Eu(a,i,n,null)).return=e,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,e.memoizedState=Us,e.child=o,n}return e.memoizedState=null,e.child=So(e,t,o.children,n)}function $s(t,e){t.expirationTime<e&&(t.expirationTime=e);var n=t.alternate;null!==n&&n.expirationTime<e&&(n.expirationTime=e),eo(t.return,e)}function Hs(t,e,n,r,i,o){var s=t.memoizedState;null===s?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:o}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailExpiration=0,s.tailMode=i,s.lastEffect=o)}function Ks(t,e,n){var r=e.pendingProps,i=r.revealOrder,o=r.tail;if(js(t,e,r.children,n),0!=(2&(r=Ro.current)))r=1&r|2,e.effectTag|=64;else{if(null!==t&&0!=(64&t.effectTag))t:for(t=e.child;null!==t;){if(13===t.tag)null!==t.memoizedState&&$s(t,n);else if(19===t.tag)$s(t,n);else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;null===t.sibling;){if(null===t.return||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(ci(Ro,r),0==(2&e.mode))e.memoizedState=null;else switch(i){case"forwards":for(n=e.child,i=null;null!==n;)null!==(t=n.alternate)&&null===Fo(t)&&(i=n),n=n.sibling;null===(n=i)?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),Hs(e,!1,i,n,o,e.lastEffect);break;case"backwards":for(n=null,i=e.child,e.child=null;null!==i;){if(null!==(t=i.alternate)&&null===Fo(t)){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}Hs(e,!0,n,null,o,e.lastEffect);break;case"together":Hs(e,!1,null,null,void 0,e.lastEffect);break;default:e.memoizedState=null}return e.child}function Gs(t,e,n){null!==t&&(e.dependencies=t.dependencies);var r=e.expirationTime;if(0!==r&&su(r),e.childExpirationTime<n)return null;if(null!==t&&e.child!==t.child)throw Error(s(153));if(null!==e.child){for(n=ku(t=e.child,t.pendingProps),e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,(n=n.sibling=ku(t,t.pendingProps)).return=e;n.sibling=null}return e.child}function Ys(t,e){switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;null!==e;)null!==e.alternate&&(n=e),e=e.sibling;null===n?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?e||null===t.tail?t.tail=null:t.tail.sibling=null:r.sibling=null}}function Xs(t,e,n){var r=e.pendingProps;switch(e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return mi(e.type)&&vi(),null;case 3:return Mo(),ui(fi),ui(hi),(n=e.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==t&&null!==t.child||!Cs(e)||(e.effectTag|=4),null;case 5:No(e),n=jo(Po.current);var o=e.type;if(null!==t&&null!=e.stateNode)Bs(t,e,o,r,n),t.ref!==e.ref&&(e.effectTag|=128);else{if(!r){if(null===e.stateNode)throw Error(s(166));return null}if(t=jo(Eo.current),Cs(e)){r=e.stateNode,o=e.type;var a=e.memoizedProps;switch(r[Tn]=e,r[Sn]=a,o){case"iframe":case"object":case"embed":Ke("load",r);break;case"video":case"audio":for(t=0;t<Xt.length;t++)Ke(Xt[t],r);break;case"source":Ke("error",r);break;case"img":case"image":case"link":Ke("error",r),Ke("load",r);break;case"form":Ke("reset",r),Ke("submit",r);break;case"details":Ke("toggle",r);break;case"input":Ot(r,a),Ke("invalid",r),un(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Ke("invalid",r),un(n,"onChange");break;case"textarea":jt(r,a),Ke("invalid",r),un(n,"onChange")}for(var u in on(o,a),t=null,a)if(a.hasOwnProperty(u)){var c=a[u];"children"===u?"string"==typeof c?r.textContent!==c&&(t=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(t=["children",""+c]):T.hasOwnProperty(u)&&null!=c&&un(n,u)}switch(o){case"input":_t(r),kt(r,a,!0);break;case"textarea":_t(r),Mt(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=cn)}n=t,e.updateQueue=n,null!==n&&(e.effectTag|=4)}else{switch(u=9===n.nodeType?n:n.ownerDocument,t===an&&(t=Rt(o)),t===an?"script"===o?((t=u.createElement("div")).innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):"string"==typeof r.is?t=u.createElement(o,{is:r.is}):(t=u.createElement(o),"select"===o&&(u=t,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):t=u.createElementNS(t,o),t[Tn]=e,t[Sn]=r,zs(t,e),e.stateNode=t,u=sn(o,r),o){case"iframe":case"object":case"embed":Ke("load",t),c=r;break;case"video":case"audio":for(c=0;c<Xt.length;c++)Ke(Xt[c],t);c=r;break;case"source":Ke("error",t),c=r;break;case"img":case"image":case"link":Ke("error",t),Ke("load",t),c=r;break;case"form":Ke("reset",t),Ke("submit",t),c=r;break;case"details":Ke("toggle",t),c=r;break;case"input":Ot(t,r),c=xt(t,r),Ke("invalid",t),un(n,"onChange");break;case"option":c=Et(t,r);break;case"select":t._wrapperState={wasMultiple:!!r.multiple},c=i({},r,{value:void 0}),Ke("invalid",t),un(n,"onChange");break;case"textarea":jt(t,r),c=Pt(t,r),Ke("invalid",t),un(n,"onChange");break;default:c=r}on(o,c);var l=c;for(a in l)if(l.hasOwnProperty(a)){var h=l[a];"style"===a?nn(t,h):"dangerouslySetInnerHTML"===a?null!=(h=h?h.__html:void 0)&&Vt(t,h):"children"===a?"string"==typeof h?("textarea"!==o||""!==h)&&zt(t,h):"number"==typeof h&&zt(t,""+h):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(T.hasOwnProperty(a)?null!=h&&un(n,a):null!=h&&J(t,a,h,u))}switch(o){case"input":_t(t),kt(t,r,!1);break;case"textarea":_t(t),Mt(t);break;case"option":null!=r.value&&t.setAttribute("value",""+gt(r.value));break;case"select":t.multiple=!!r.multiple,null!=(n=r.value)?At(t,!!r.multiple,n,!1):null!=r.defaultValue&&At(t,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof c.onClick&&(t.onclick=cn)}yn(o,r)&&(e.effectTag|=4)}null!==e.ref&&(e.effectTag|=128)}return null;case 6:if(t&&null!=e.stateNode)qs(0,e,t.memoizedProps,r);else{if("string"!=typeof r&&null===e.stateNode)throw Error(s(166));n=jo(Po.current),jo(Eo.current),Cs(e)?(n=e.stateNode,r=e.memoizedProps,n[Tn]=e,n.nodeValue!==r&&(e.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Tn]=e,e.stateNode=n)}return null;case 13:return ui(Ro),r=e.memoizedState,0!=(64&e.effectTag)?(e.expirationTime=n,e):(n=null!==r,r=!1,null===t?void 0!==e.memoizedProps.fallback&&Cs(e):(r=null!==(o=t.memoizedState),n||null===o||null!==(o=t.child.sibling)&&(null!==(a=e.firstEffect)?(e.firstEffect=o,o.nextEffect=a):(e.firstEffect=e.lastEffect=o,o.nextEffect=null),o.effectTag=8)),n&&!r&&0!=(2&e.mode)&&(null===t&&!0!==e.memoizedProps.unstable_avoidThisFallback||0!=(1&Ro.current)?Ca===_a&&(Ca=wa):(Ca!==_a&&Ca!==wa||(Ca=xa),0!==Ia&&null!==Ta&&(Mu(Ta,ka),Du(Ta,Ia)))),(n||r)&&(e.effectTag|=4),null);case 4:return Mo(),null;case 10:return to(e),null;case 17:return mi(e.type)&&vi(),null;case 19:if(ui(Ro),null===(r=e.memoizedState))return null;if(o=0!=(64&e.effectTag),null===(a=r.rendering)){if(o)Ys(r,!1);else if(Ca!==_a||null!==t&&0!=(64&t.effectTag))for(a=e.child;null!==a;){if(null!==(t=Fo(a))){for(e.effectTag|=64,Ys(r,!1),null!==(o=t.updateQueue)&&(e.updateQueue=o,e.effectTag|=4),null===r.lastEffect&&(e.firstEffect=null),e.lastEffect=r.lastEffect,r=e.child;null!==r;)a=n,(o=r).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(t=o.alternate)?(o.childExpirationTime=0,o.expirationTime=a,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=t.childExpirationTime,o.expirationTime=t.expirationTime,o.child=t.child,o.memoizedProps=t.memoizedProps,o.memoizedState=t.memoizedState,o.updateQueue=t.updateQueue,a=t.dependencies,o.dependencies=null===a?null:{expirationTime:a.expirationTime,firstContext:a.firstContext,responders:a.responders}),r=r.sibling;return ci(Ro,1&Ro.current|2),e.child}a=a.sibling}}else{if(!o)if(null!==(t=Fo(a))){if(e.effectTag|=64,o=!0,null!==(n=t.updateQueue)&&(e.updateQueue=n,e.effectTag|=4),Ys(r,!0),null===r.tail&&"hidden"===r.tailMode&&!a.alternate)return null!==(e=e.lastEffect=r.lastEffect)&&(e.nextEffect=null),null}else 2*Vi()-r.renderingStartTime>r.tailExpiration&&1<n&&(e.effectTag|=64,o=!0,Ys(r,!1),e.expirationTime=e.childExpirationTime=n-1);r.isBackwards?(a.sibling=e.child,e.child=a):(null!==(n=r.last)?n.sibling=a:e.child=a,r.last=a)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Vi()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=e.lastEffect,r.renderingStartTime=Vi(),n.sibling=null,e=Ro.current,ci(Ro,o?1&e|2:1&e),n):null}throw Error(s(156,e.tag))}function Js(t){switch(t.tag){case 1:mi(t.type)&&vi();var e=t.effectTag;return 4096&e?(t.effectTag=-4097&e|64,t):null;case 3:if(Mo(),ui(fi),ui(hi),0!=(64&(e=t.effectTag)))throw Error(s(285));return t.effectTag=-4097&e|64,t;case 5:return No(t),null;case 13:return ui(Ro),4096&(e=t.effectTag)?(t.effectTag=-4097&e|64,t):null;case 19:return ui(Ro),null;case 4:return Mo(),null;case 10:return to(t),null;default:return null}}function Qs(t,e){return{value:t,source:e,stack:yt(e)}}zs=function(t,e){for(var n=e.child;null!==n;){if(5===n.tag||6===n.tag)t.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Bs=function(t,e,n,r,o){var s=t.memoizedProps;if(s!==r){var a,u,c=e.stateNode;switch(jo(Eo.current),t=null,n){case"input":s=xt(c,s),r=xt(c,r),t=[];break;case"option":s=Et(c,s),r=Et(c,r),t=[];break;case"select":s=i({},s,{value:void 0}),r=i({},r,{value:void 0}),t=[];break;case"textarea":s=Pt(c,s),r=Pt(c,r),t=[];break;default:"function"!=typeof s.onClick&&"function"==typeof r.onClick&&(c.onclick=cn)}for(a in on(n,r),n=null,s)if(!r.hasOwnProperty(a)&&s.hasOwnProperty(a)&&null!=s[a])if("style"===a)for(u in c=s[a])c.hasOwnProperty(u)&&(n||(n={}),n[u]="");else"dangerouslySetInnerHTML"!==a&&"children"!==a&&"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(T.hasOwnProperty(a)?t||(t=[]):(t=t||[]).push(a,null));for(a in r){var l=r[a];if(c=null!=s?s[a]:void 0,r.hasOwnProperty(a)&&l!==c&&(null!=l||null!=c))if("style"===a)if(c){for(u in c)!c.hasOwnProperty(u)||l&&l.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in l)l.hasOwnProperty(u)&&c[u]!==l[u]&&(n||(n={}),n[u]=l[u])}else n||(t||(t=[]),t.push(a,n)),n=l;else"dangerouslySetInnerHTML"===a?(l=l?l.__html:void 0,c=c?c.__html:void 0,null!=l&&c!==l&&(t=t||[]).push(a,l)):"children"===a?c===l||"string"!=typeof l&&"number"!=typeof l||(t=t||[]).push(a,""+l):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&(T.hasOwnProperty(a)?(null!=l&&un(o,a),t||c===l||(t=[])):(t=t||[]).push(a,l))}n&&(t=t||[]).push("style",n),o=t,(e.updateQueue=o)&&(e.effectTag|=4)}},qs=function(t,e,n,r){n!==r&&(e.effectTag|=4)};var Zs="function"==typeof WeakSet?WeakSet:Set;function ta(t,e){var n=e.source,r=e.stack;null===r&&null!==n&&(r=yt(n)),null!==n&&vt(n.type),e=e.value,null!==t&&1===t.tag&&vt(t.type);try{console.error(e)}catch(t){setTimeout((function(){throw t}))}}function ea(t){var e=t.ref;if(null!==e)if("function"==typeof e)try{e(null)}catch(e){gu(t,e)}else e.current=null}function na(t,e){switch(e.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&e.effectTag&&null!==t){var n=t.memoizedProps,r=t.memoizedState;e=(t=e.stateNode).getSnapshotBeforeUpdate(e.elementType===e.type?n:Gi(e.type,n),r),t.__reactInternalSnapshotBeforeUpdate=e}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(s(163))}function ra(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var n=e=e.next;do{if((n.tag&t)===t){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==e)}}function ia(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function oa(t,e,n){switch(n.tag){case 0:case 11:case 15:case 22:return void ia(3,n);case 1:if(t=n.stateNode,4&n.effectTag)if(null===e)t.componentDidMount();else{var r=n.elementType===n.type?e.memoizedProps:Gi(n.type,e.memoizedProps);t.componentDidUpdate(r,e.memoizedState,t.__reactInternalSnapshotBeforeUpdate)}return void(null!==(e=n.updateQueue)&&ho(n,e,t));case 3:if(null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}ho(n,e,t)}return;case 5:return t=n.stateNode,void(null===e&&4&n.effectTag&&yn(n.type,n.memoizedProps)&&t.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Re(n)))));case 19:case 17:case 20:case 21:return}throw Error(s(163))}function sa(t,e,n){switch("function"==typeof xu&&xu(e),e.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(t=e.updateQueue)&&null!==(t=t.lastEffect)){var r=t.next;qi(97<n?97:n,(function(){var t=r;do{var n=t.destroy;if(void 0!==n){var i=e;try{n()}catch(t){gu(i,t)}}t=t.next}while(t!==r)}))}break;case 1:ea(e),"function"==typeof(n=e.stateNode).componentWillUnmount&&function(t,e){try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){gu(t,e)}}(e,n);break;case 5:ea(e);break;case 4:la(t,e,n)}}function aa(t){var e=t.alternate;t.return=null,t.child=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.alternate=null,t.firstEffect=null,t.lastEffect=null,t.pendingProps=null,t.memoizedProps=null,t.stateNode=null,null!==e&&aa(e)}function ua(t){return 5===t.tag||3===t.tag||4===t.tag}function ca(t){t:{for(var e=t.return;null!==e;){if(ua(e)){var n=e;break t}e=e.return}throw Error(s(160))}switch(e=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:e=e.containerInfo,r=!0;break;default:throw Error(s(161))}16&n.effectTag&&(zt(e,""),n.effectTag&=-17);t:e:for(n=t;;){for(;null===n.sibling;){if(null===n.return||ua(n.return)){n=null;break t}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue e;if(null===n.child||4===n.tag)continue e;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break t}}r?function t(e,n,r){var i=e.tag,o=5===i||6===i;if(o)e=o?e.stateNode:e.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(e,n):r.insertBefore(e,n):(8===r.nodeType?(n=r.parentNode).insertBefore(e,r):(n=r).appendChild(e),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=cn));else if(4!==i&&null!==(e=e.child))for(t(e,n,r),e=e.sibling;null!==e;)t(e,n,r),e=e.sibling}(t,n,e):function t(e,n,r){var i=e.tag,o=5===i||6===i;if(o)e=o?e.stateNode:e.stateNode.instance,n?r.insertBefore(e,n):r.appendChild(e);else if(4!==i&&null!==(e=e.child))for(t(e,n,r),e=e.sibling;null!==e;)t(e,n,r),e=e.sibling}(t,n,e)}function la(t,e,n){for(var r,i,o=e,a=!1;;){if(!a){a=o.return;t:for(;;){if(null===a)throw Error(s(160));switch(r=a.stateNode,a.tag){case 5:i=!1;break t;case 3:case 4:r=r.containerInfo,i=!0;break t}a=a.return}a=!0}if(5===o.tag||6===o.tag){t:for(var u=t,c=o,l=n,h=c;;)if(sa(u,h,l),null!==h.child&&4!==h.tag)h.child.return=h,h=h.child;else{if(h===c)break t;for(;null===h.sibling;){if(null===h.return||h.return===c)break t;h=h.return}h.sibling.return=h.return,h=h.sibling}i?(u=r,c=o.stateNode,8===u.nodeType?u.parentNode.removeChild(c):u.removeChild(c)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(sa(t,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;4===(o=o.return).tag&&(a=!1)}o.sibling.return=o.return,o=o.sibling}}function ha(t,e){switch(e.tag){case 0:case 11:case 14:case 15:case 22:return void ra(3,e);case 1:return;case 5:var n=e.stateNode;if(null!=n){var r=e.memoizedProps,i=null!==t?t.memoizedProps:r;t=e.type;var o=e.updateQueue;if(e.updateQueue=null,null!==o){for(n[Sn]=r,"input"===t&&"radio"===r.type&&null!=r.name&&Tt(n,r),sn(t,i),e=sn(t,r),i=0;i<o.length;i+=2){var a=o[i],u=o[i+1];"style"===a?nn(n,u):"dangerouslySetInnerHTML"===a?Vt(n,u):"children"===a?zt(n,u):J(n,a,u,e)}switch(t){case"input":St(n,r);break;case"textarea":It(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(t=r.value)?At(n,!!r.multiple,t,!1):e!==!!r.multiple&&(null!=r.defaultValue?At(n,!!r.multiple,r.defaultValue,!0):At(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===e.stateNode)throw Error(s(162));return void(e.stateNode.nodeValue=e.memoizedProps);case 3:return void((e=e.stateNode).hydrate&&(e.hydrate=!1,Re(e.containerInfo)));case 12:return;case 13:if(n=e,null===e.memoizedState?r=!1:(r=!0,n=e.child,Da=Vi()),null!==n)t:for(t=n;;){if(5===t.tag)o=t.stateNode,r?"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=t.stateNode,i=null!=(i=t.memoizedProps.style)&&i.hasOwnProperty("display")?i.display:null,o.style.display=en("display",i));else if(6===t.tag)t.stateNode.nodeValue=r?"":t.memoizedProps;else{if(13===t.tag&&null!==t.memoizedState&&null===t.memoizedState.dehydrated){(o=t.child.sibling).return=t,t=o;continue}if(null!==t.child){t.child.return=t,t=t.child;continue}}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}return void fa(e);case 19:return void fa(e);case 17:return}throw Error(s(163))}function fa(t){var e=t.updateQueue;if(null!==e){t.updateQueue=null;var n=t.stateNode;null===n&&(n=t.stateNode=new Zs),e.forEach((function(e){var r=_u.bind(null,t,e);n.has(e)||(n.add(e),e.then(r,r))}))}}var pa="function"==typeof WeakMap?WeakMap:Map;function da(t,e,n){(n=ao(n,null)).tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Ra||(Ra=!0,Fa=r),ta(t,e)},n}function ma(t,e,n){(n=ao(n,null)).tag=3;var r=t.type.getDerivedStateFromError;if("function"==typeof r){var i=e.value;n.payload=function(){return ta(t,e),r(i)}}var o=t.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===La?La=new Set([this]):La.add(this),ta(t,e));var n=e.stack;this.componentDidCatch(e.value,{componentStack:null!==n?n:""})}),n}var va,ya=Math.ceil,ga=X.ReactCurrentDispatcher,ba=X.ReactCurrentOwner,_a=0,wa=3,xa=4,Oa=0,Ta=null,Sa=null,ka=0,Ca=_a,Ea=null,Aa=1073741823,Pa=1073741823,ja=null,Ia=0,Ma=!1,Da=0,Na=null,Ra=!1,Fa=null,La=null,Va=!1,za=null,Ba=90,qa=null,Ua=0,Wa=null,$a=0;function Ha(){return 0!=(48&Oa)?1073741821-(Vi()/10|0):0!==$a?$a:$a=1073741821-(Vi()/10|0)}function Ka(t,e,n){if(0==(2&(e=e.mode)))return 1073741823;var r=zi();if(0==(4&e))return 99===r?1073741823:1073741822;if(0!=(16&Oa))return ka;if(null!==n)t=Ki(t,0|n.timeoutMs||5e3,250);else switch(r){case 99:t=1073741823;break;case 98:t=Ki(t,150,100);break;case 97:case 96:t=Ki(t,5e3,250);break;case 95:t=2;break;default:throw Error(s(326))}return null!==Ta&&t===ka&&--t,t}function Ga(t,e){if(50<Ua)throw Ua=0,Wa=null,Error(s(185));if(null!==(t=Ya(t,e))){var n=zi();1073741823===e?0!=(8&Oa)&&0==(48&Oa)?Za(t):(Ja(t),0===Oa&&$i()):Ja(t),0==(4&Oa)||98!==n&&99!==n||(null===qa?qa=new Map([[t,e]]):(void 0===(n=qa.get(t))||n>e)&&qa.set(t,e))}}function Ya(t,e){t.expirationTime<e&&(t.expirationTime=e);var n=t.alternate;null!==n&&n.expirationTime<e&&(n.expirationTime=e);var r=t.return,i=null;if(null===r&&3===t.tag)i=t.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<e&&(r.childExpirationTime=e),null!==n&&n.childExpirationTime<e&&(n.childExpirationTime=e),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return null!==i&&(Ta===i&&(su(e),Ca===xa&&Mu(i,ka)),Du(i,e)),i}function Xa(t){var e=t.lastExpiredTime;if(0!==e)return e;if(!Iu(t,e=t.firstPendingTime))return e;var n=t.lastPingedTime;return 2>=(t=n>(t=t.nextKnownPendingLevel)?n:t)&&e!==t?0:t}function Ja(t){if(0!==t.lastExpiredTime)t.callbackExpirationTime=1073741823,t.callbackPriority=99,t.callbackNode=Wi(Za.bind(null,t));else{var e=Xa(t),n=t.callbackNode;if(0===e)null!==n&&(t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90);else{var r=Ha();if(1073741823===e?r=99:1===e||2===e?r=95:r=0>=(r=10*(1073741821-e)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=t.callbackPriority;if(t.callbackExpirationTime===e&&i>=r)return;n!==Ii&&Oi(n)}t.callbackExpirationTime=e,t.callbackPriority=r,e=1073741823===e?Wi(Za.bind(null,t)):Ui(r,Qa.bind(null,t),{timeout:10*(1073741821-e)-Vi()}),t.callbackNode=e}}}function Qa(t,e){if($a=0,e)return Nu(t,e=Ha()),Ja(t),null;var n=Xa(t);if(0!==n){if(e=t.callbackNode,0!=(48&Oa))throw Error(s(327));if(mu(),t===Ta&&n===ka||nu(t,n),null!==Sa){var r=Oa;Oa|=16;for(var i=iu();;)try{uu();break}catch(e){ru(t,e)}if(Zi(),Oa=r,ga.current=i,1===Ca)throw e=Ea,nu(t,n),Mu(t,n),Ja(t),e;if(null===Sa)switch(i=t.finishedWork=t.current.alternate,t.finishedExpirationTime=n,r=Ca,Ta=null,r){case _a:case 1:throw Error(s(345));case 2:Nu(t,2<n?2:n);break;case wa:if(Mu(t,n),n===(r=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=hu(i)),1073741823===Aa&&10<(i=Da+500-Vi())){if(Ma){var o=t.lastPingedTime;if(0===o||o>=n){t.lastPingedTime=n,nu(t,n);break}}if(0!==(o=Xa(t))&&o!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}t.timeoutHandle=bn(fu.bind(null,t),i);break}fu(t);break;case xa:if(Mu(t,n),n===(r=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=hu(i)),Ma&&(0===(i=t.lastPingedTime)||i>=n)){t.lastPingedTime=n,nu(t,n);break}if(0!==(i=Xa(t))&&i!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}if(1073741823!==Pa?r=10*(1073741821-Pa)-Vi():1073741823===Aa?r=0:(r=10*(1073741821-Aa)-5e3,0>(r=(i=Vi())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ya(r/1960))-r)&&(r=n)),10<r){t.timeoutHandle=bn(fu.bind(null,t),r);break}fu(t);break;case 5:if(1073741823!==Aa&&null!==ja){o=Aa;var a=ja;if(0>=(r=0|a.busyMinDurationMs)?r=0:(i=0|a.busyDelayMs,r=(o=Vi()-(10*(1073741821-o)-(0|a.timeoutMs||5e3)))<=i?0:i+r-o),10<r){Mu(t,n),t.timeoutHandle=bn(fu.bind(null,t),r);break}}fu(t);break;default:throw Error(s(329))}if(Ja(t),t.callbackNode===e)return Qa.bind(null,t)}}return null}function Za(t){var e=t.lastExpiredTime;if(e=0!==e?e:1073741823,0!=(48&Oa))throw Error(s(327));if(mu(),t===Ta&&e===ka||nu(t,e),null!==Sa){var n=Oa;Oa|=16;for(var r=iu();;)try{au();break}catch(e){ru(t,e)}if(Zi(),Oa=n,ga.current=r,1===Ca)throw n=Ea,nu(t,e),Mu(t,e),Ja(t),n;if(null!==Sa)throw Error(s(261));t.finishedWork=t.current.alternate,t.finishedExpirationTime=e,Ta=null,fu(t),Ja(t)}return null}function tu(t,e){var n=Oa;Oa|=1;try{return t(e)}finally{0===(Oa=n)&&$i()}}function eu(t,e){var n=Oa;Oa&=-2,Oa|=8;try{return t(e)}finally{0===(Oa=n)&&$i()}}function nu(t,e){t.finishedWork=null,t.finishedExpirationTime=0;var n=t.timeoutHandle;if(-1!==n&&(t.timeoutHandle=-1,_n(n)),null!==Sa)for(n=Sa.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&vi();break;case 3:Mo(),ui(fi),ui(hi);break;case 5:No(r);break;case 4:Mo();break;case 13:case 19:ui(Ro);break;case 10:to(r)}n=n.return}Ta=t,Sa=ku(t.current,null),ka=e,Ca=_a,Ea=null,Pa=Aa=1073741823,ja=null,Ia=0,Ma=!1}function ru(t,e){for(;;){try{if(Zi(),Vo.current=vs,$o)for(var n=qo.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Bo=0,Wo=Uo=qo=null,$o=!1,null===Sa||null===Sa.return)return Ca=1,Ea=e,Sa=null;t:{var i=t,o=Sa.return,s=Sa,a=e;if(e=ka,s.effectTag|=2048,s.firstEffect=s.lastEffect=null,null!==a&&"object"==typeof a&&"function"==typeof a.then){var u=a;if(0==(2&s.mode)){var c=s.alternate;c?(s.updateQueue=c.updateQueue,s.memoizedState=c.memoizedState,s.expirationTime=c.expirationTime):(s.updateQueue=null,s.memoizedState=null)}var l=0!=(1&Ro.current),h=o;do{var f;if(f=13===h.tag){var p=h.memoizedState;if(null!==p)f=null!==p.dehydrated;else{var d=h.memoizedProps;f=void 0!==d.fallback&&(!0!==d.unstable_avoidThisFallback||!l)}}if(f){var m=h.updateQueue;if(null===m){var v=new Set;v.add(u),h.updateQueue=v}else m.add(u);if(0==(2&h.mode)){if(h.effectTag|=64,s.effectTag&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=ao(1073741823,null);y.tag=2,uo(s,y)}s.expirationTime=1073741823;break t}a=void 0,s=e;var g=i.pingCache;if(null===g?(g=i.pingCache=new pa,a=new Set,g.set(u,a)):void 0===(a=g.get(u))&&(a=new Set,g.set(u,a)),!a.has(s)){a.add(s);var b=bu.bind(null,i,u,s);u.then(b,b)}h.effectTag|=4096,h.expirationTime=e;break t}h=h.return}while(null!==h);a=Error((vt(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+yt(s))}5!==Ca&&(Ca=2),a=Qs(a,s),h=o;do{switch(h.tag){case 3:u=a,h.effectTag|=4096,h.expirationTime=e,co(h,da(h,u,e));break t;case 1:u=a;var _=h.type,w=h.stateNode;if(0==(64&h.effectTag)&&("function"==typeof _.getDerivedStateFromError||null!==w&&"function"==typeof w.componentDidCatch&&(null===La||!La.has(w)))){h.effectTag|=4096,h.expirationTime=e,co(h,ma(h,u,e));break t}}h=h.return}while(null!==h)}Sa=lu(Sa)}catch(t){e=t;continue}break}}function iu(){var t=ga.current;return ga.current=vs,null===t?vs:t}function ou(t,e){t<Aa&&2<t&&(Aa=t),null!==e&&t<Pa&&2<t&&(Pa=t,ja=e)}function su(t){t>Ia&&(Ia=t)}function au(){for(;null!==Sa;)Sa=cu(Sa)}function uu(){for(;null!==Sa&&!Mi();)Sa=cu(Sa)}function cu(t){var e=va(t.alternate,t,ka);return t.memoizedProps=t.pendingProps,null===e&&(e=lu(t)),ba.current=null,e}function lu(t){Sa=t;do{var e=Sa.alternate;if(t=Sa.return,0==(2048&Sa.effectTag)){if(e=Xs(e,Sa,ka),1===ka||1!==Sa.childExpirationTime){for(var n=0,r=Sa.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}Sa.childExpirationTime=n}if(null!==e)return e;null!==t&&0==(2048&t.effectTag)&&(null===t.firstEffect&&(t.firstEffect=Sa.firstEffect),null!==Sa.lastEffect&&(null!==t.lastEffect&&(t.lastEffect.nextEffect=Sa.firstEffect),t.lastEffect=Sa.lastEffect),1<Sa.effectTag&&(null!==t.lastEffect?t.lastEffect.nextEffect=Sa:t.firstEffect=Sa,t.lastEffect=Sa))}else{if(null!==(e=Js(Sa)))return e.effectTag&=2047,e;null!==t&&(t.firstEffect=t.lastEffect=null,t.effectTag|=2048)}if(null!==(e=Sa.sibling))return e;Sa=t}while(null!==Sa);return Ca===_a&&(Ca=5),null}function hu(t){var e=t.expirationTime;return e>(t=t.childExpirationTime)?e:t}function fu(t){var e=zi();return qi(99,pu.bind(null,t,e)),null}function pu(t,e){do{mu()}while(null!==za);if(0!=(48&Oa))throw Error(s(327));var n=t.finishedWork,r=t.finishedExpirationTime;if(null===n)return null;if(t.finishedWork=null,t.finishedExpirationTime=0,n===t.current)throw Error(s(177));t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90,t.nextKnownPendingLevel=0;var i=hu(n);if(t.firstPendingTime=i,r<=t.lastSuspendedTime?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:r<=t.firstSuspendedTime&&(t.firstSuspendedTime=r-1),r<=t.lastPingedTime&&(t.lastPingedTime=0),r<=t.lastExpiredTime&&(t.lastExpiredTime=0),t===Ta&&(Sa=Ta=null,ka=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var o=Oa;Oa|=32,ba.current=null,mn=He;var a=pn();if(dn(a)){if("selectionStart"in a)var u={start:a.selectionStart,end:a.selectionEnd};else t:{var c=(u=(u=a.ownerDocument)&&u.defaultView||window).getSelection&&u.getSelection();if(c&&0!==c.rangeCount){u=c.anchorNode;var l=c.anchorOffset,h=c.focusNode;c=c.focusOffset;try{u.nodeType,h.nodeType}catch(t){u=null;break t}var f=0,p=-1,d=-1,m=0,v=0,y=a,g=null;e:for(;;){for(var b;y!==u||0!==l&&3!==y.nodeType||(p=f+l),y!==h||0!==c&&3!==y.nodeType||(d=f+c),3===y.nodeType&&(f+=y.nodeValue.length),null!==(b=y.firstChild);)g=y,y=b;for(;;){if(y===a)break e;if(g===u&&++m===l&&(p=f),g===h&&++v===c&&(d=f),null!==(b=y.nextSibling))break;g=(y=g).parentNode}y=b}u=-1===p||-1===d?null:{start:p,end:d}}else u=null}u=u||{start:0,end:0}}else u=null;vn={activeElementDetached:null,focusedElem:a,selectionRange:u},He=!1,Na=i;do{try{du()}catch(t){if(null===Na)throw Error(s(330));gu(Na,t),Na=Na.nextEffect}}while(null!==Na);Na=i;do{try{for(a=t,u=e;null!==Na;){var _=Na.effectTag;if(16&_&&zt(Na.stateNode,""),128&_){var w=Na.alternate;if(null!==w){var x=w.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&_){case 2:ca(Na),Na.effectTag&=-3;break;case 6:ca(Na),Na.effectTag&=-3,ha(Na.alternate,Na);break;case 1024:Na.effectTag&=-1025;break;case 1028:Na.effectTag&=-1025,ha(Na.alternate,Na);break;case 4:ha(Na.alternate,Na);break;case 8:la(a,l=Na,u),aa(l)}Na=Na.nextEffect}}catch(t){if(null===Na)throw Error(s(330));gu(Na,t),Na=Na.nextEffect}}while(null!==Na);if(x=vn,w=pn(),_=x.focusedElem,u=x.selectionRange,w!==_&&_&&_.ownerDocument&&function t(e,n){return!(!e||!n)&&(e===n||(!e||3!==e.nodeType)&&(n&&3===n.nodeType?t(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}(_.ownerDocument.documentElement,_)){null!==u&&dn(_)&&(w=u.start,void 0===(x=u.end)&&(x=w),"selectionStart"in _?(_.selectionStart=w,_.selectionEnd=Math.min(x,_.value.length)):(x=(w=_.ownerDocument||document)&&w.defaultView||window).getSelection&&(x=x.getSelection(),l=_.textContent.length,a=Math.min(u.start,l),u=void 0===u.end?a:Math.min(u.end,l),!x.extend&&a>u&&(l=u,u=a,a=l),l=fn(_,a),h=fn(_,u),l&&h&&(1!==x.rangeCount||x.anchorNode!==l.node||x.anchorOffset!==l.offset||x.focusNode!==h.node||x.focusOffset!==h.offset)&&((w=w.createRange()).setStart(l.node,l.offset),x.removeAllRanges(),a>u?(x.addRange(w),x.extend(h.node,h.offset)):(w.setEnd(h.node,h.offset),x.addRange(w))))),w=[];for(x=_;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof _.focus&&_.focus(),_=0;_<w.length;_++)(x=w[_]).element.scrollLeft=x.left,x.element.scrollTop=x.top}He=!!mn,vn=mn=null,t.current=n,Na=i;do{try{for(_=t;null!==Na;){var O=Na.effectTag;if(36&O&&oa(_,Na.alternate,Na),128&O){w=void 0;var T=Na.ref;if(null!==T){var S=Na.stateNode;switch(Na.tag){case 5:w=S;break;default:w=S}"function"==typeof T?T(w):T.current=w}}Na=Na.nextEffect}}catch(t){if(null===Na)throw Error(s(330));gu(Na,t),Na=Na.nextEffect}}while(null!==Na);Na=null,Di(),Oa=o}else t.current=n;if(Va)Va=!1,za=t,Ba=e;else for(Na=i;null!==Na;)e=Na.nextEffect,Na.nextEffect=null,Na=e;if(0===(e=t.firstPendingTime)&&(La=null),1073741823===e?t===Wa?Ua++:(Ua=0,Wa=t):Ua=0,"function"==typeof wu&&wu(n.stateNode,r),Ja(t),Ra)throw Ra=!1,t=Fa,Fa=null,t;return 0!=(8&Oa)||$i(),null}function du(){for(;null!==Na;){var t=Na.effectTag;0!=(256&t)&&na(Na.alternate,Na),0==(512&t)||Va||(Va=!0,Ui(97,(function(){return mu(),null}))),Na=Na.nextEffect}}function mu(){if(90!==Ba){var t=97<Ba?97:Ba;return Ba=90,qi(t,vu)}}function vu(){if(null===za)return!1;var t=za;if(za=null,0!=(48&Oa))throw Error(s(331));var e=Oa;for(Oa|=32,t=t.current.firstEffect;null!==t;){try{var n=t;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:ra(5,n),ia(5,n)}}catch(e){if(null===t)throw Error(s(330));gu(t,e)}n=t.nextEffect,t.nextEffect=null,t=n}return Oa=e,$i(),!0}function yu(t,e,n){uo(t,e=da(t,e=Qs(n,e),1073741823)),null!==(t=Ya(t,1073741823))&&Ja(t)}function gu(t,e){if(3===t.tag)yu(t,t,e);else for(var n=t.return;null!==n;){if(3===n.tag){yu(n,t,e);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===La||!La.has(r))){uo(n,t=ma(n,t=Qs(e,t),1073741823)),null!==(n=Ya(n,1073741823))&&Ja(n);break}}n=n.return}}function bu(t,e,n){var r=t.pingCache;null!==r&&r.delete(e),Ta===t&&ka===n?Ca===xa||Ca===wa&&1073741823===Aa&&Vi()-Da<500?nu(t,ka):Ma=!0:Iu(t,n)&&(0!==(e=t.lastPingedTime)&&e<n||(t.lastPingedTime=n,Ja(t)))}function _u(t,e){var n=t.stateNode;null!==n&&n.delete(e),0===(e=0)&&(e=Ka(e=Ha(),t,null)),null!==(t=Ya(t,e))&&Ja(t)}va=function(t,e,n){var r=e.expirationTime;if(null!==t){var i=e.pendingProps;if(t.memoizedProps!==i||fi.current)Ps=!0;else{if(r<n){switch(Ps=!1,e.tag){case 3:Vs(e),Es();break;case 5:if(Do(e),4&e.mode&&1!==n&&i.hidden)return e.expirationTime=e.childExpirationTime=1,null;break;case 1:mi(e.type)&&bi(e);break;case 4:Io(e,e.stateNode.containerInfo);break;case 10:r=e.memoizedProps.value,i=e.type._context,ci(Yi,i._currentValue),i._currentValue=r;break;case 13:if(null!==e.memoizedState)return 0!==(r=e.child.childExpirationTime)&&r>=n?Ws(t,e,n):(ci(Ro,1&Ro.current),null!==(e=Gs(t,e,n))?e.sibling:null);ci(Ro,1&Ro.current);break;case 19:if(r=e.childExpirationTime>=n,0!=(64&t.effectTag)){if(r)return Ks(t,e,n);e.effectTag|=64}if(null!==(i=e.memoizedState)&&(i.rendering=null,i.tail=null),ci(Ro,Ro.current),!r)return null}return Gs(t,e,n)}Ps=!1}}else Ps=!1;switch(e.expirationTime=0,e.tag){case 2:if(r=e.type,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps,i=di(e,hi.current),no(e,n),i=Go(null,e,r,t,i,n),e.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(e.tag=1,e.memoizedState=null,e.updateQueue=null,mi(r)){var o=!0;bi(e)}else o=!1;e.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,oo(e);var a=r.getDerivedStateFromProps;"function"==typeof a&&mo(e,r,a,t),i.updater=vo,e.stateNode=i,i._reactInternalFiber=e,_o(e,r,t,n),e=Ls(null,e,r,!0,o,n)}else e.tag=0,js(null,e,i,n),e=e.child;return e;case 16:t:{if(i=e.elementType,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps,function(t){if(-1===t._status){t._status=0;var e=t._ctor;e=e(),t._result=e,e.then((function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)}),(function(e){0===t._status&&(t._status=2,t._result=e)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,e.type=i,o=e.tag=function(t){if("function"==typeof t)return Su(t)?1:0;if(null!=t){if((t=t.$$typeof)===ut)return 11;if(t===ht)return 14}return 2}(i),t=Gi(i,t),o){case 0:e=Rs(null,e,i,t,n);break t;case 1:e=Fs(null,e,i,t,n);break t;case 11:e=Is(null,e,i,t,n);break t;case 14:e=Ms(null,e,i,Gi(i.type,t),r,n);break t}throw Error(s(306,i,""))}return e;case 0:return r=e.type,i=e.pendingProps,Rs(t,e,r,i=e.elementType===r?i:Gi(r,i),n);case 1:return r=e.type,i=e.pendingProps,Fs(t,e,r,i=e.elementType===r?i:Gi(r,i),n);case 3:if(Vs(e),r=e.updateQueue,null===t||null===r)throw Error(s(282));if(r=e.pendingProps,i=null!==(i=e.memoizedState)?i.element:null,so(t,e),lo(e,r,null,n),(r=e.memoizedState.element)===i)Es(),e=Gs(t,e,n);else{if((i=e.stateNode.hydrate)&&(ws=wn(e.stateNode.containerInfo.firstChild),_s=e,i=xs=!0),i)for(n=ko(e,null,r,n),e.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else js(t,e,r,n),Es();e=e.child}return e;case 5:return Do(e),null===t&&Ss(e),r=e.type,i=e.pendingProps,o=null!==t?t.memoizedProps:null,a=i.children,gn(r,i)?a=null:null!==o&&gn(r,o)&&(e.effectTag|=16),Ns(t,e),4&e.mode&&1!==n&&i.hidden?(e.expirationTime=e.childExpirationTime=1,e=null):(js(t,e,a,n),e=e.child),e;case 6:return null===t&&Ss(e),null;case 13:return Ws(t,e,n);case 4:return Io(e,e.stateNode.containerInfo),r=e.pendingProps,null===t?e.child=So(e,null,r,n):js(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,Is(t,e,r,i=e.elementType===r?i:Gi(r,i),n);case 7:return js(t,e,e.pendingProps,n),e.child;case 8:case 12:return js(t,e,e.pendingProps.children,n),e.child;case 10:t:{r=e.type._context,i=e.pendingProps,a=e.memoizedProps,o=i.value;var u=e.type._context;if(ci(Yi,u._currentValue),u._currentValue=o,null!==a)if(u=a.value,0===(o=Fr(u,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,o):1073741823))){if(a.children===i.children&&!fi.current){e=Gs(t,e,n);break t}}else for(null!==(u=e.child)&&(u.return=e);null!==u;){var c=u.dependencies;if(null!==c){a=u.child;for(var l=c.firstContext;null!==l;){if(l.context===r&&0!=(l.observedBits&o)){1===u.tag&&((l=ao(n,null)).tag=2,uo(u,l)),u.expirationTime<n&&(u.expirationTime=n),null!==(l=u.alternate)&&l.expirationTime<n&&(l.expirationTime=n),eo(u.return,n),c.expirationTime<n&&(c.expirationTime=n);break}l=l.next}}else a=10===u.tag&&u.type===e.type?null:u.child;if(null!==a)a.return=u;else for(a=u;null!==a;){if(a===e){a=null;break}if(null!==(u=a.sibling)){u.return=a.return,a=u;break}a=a.return}u=a}js(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=(o=e.pendingProps).children,no(e,n),r=r(i=ro(i,o.unstable_observedBits)),e.effectTag|=1,js(t,e,r,n),e.child;case 14:return o=Gi(i=e.type,e.pendingProps),Ms(t,e,i,o=Gi(i.type,o),r,n);case 15:return Ds(t,e,e.type,e.pendingProps,r,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Gi(r,i),null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),e.tag=1,mi(r)?(t=!0,bi(e)):t=!1,no(e,n),go(e,r,i),_o(e,r,i,n),Ls(null,e,r,!0,t,n);case 19:return Ks(t,e,n)}throw Error(s(156,e.tag))};var wu=null,xu=null;function Ou(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Tu(t,e,n,r){return new Ou(t,e,n,r)}function Su(t){return!(!(t=t.prototype)||!t.isReactComponent)}function ku(t,e){var n=t.alternate;return null===n?((n=Tu(t.tag,e,t.key,t.mode)).elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=t.childExpirationTime,n.expirationTime=t.expirationTime,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=null===e?null:{expirationTime:e.expirationTime,firstContext:e.firstContext,responders:e.responders},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Cu(t,e,n,r,i,o){var a=2;if(r=t,"function"==typeof t)Su(t)&&(a=1);else if("string"==typeof t)a=5;else t:switch(t){case nt:return Eu(n.children,i,o,e);case at:a=8,i|=7;break;case rt:a=8,i|=1;break;case it:return(t=Tu(12,n,e,8|i)).elementType=it,t.type=it,t.expirationTime=o,t;case ct:return(t=Tu(13,n,e,i)).type=ct,t.elementType=ct,t.expirationTime=o,t;case lt:return(t=Tu(19,n,e,i)).elementType=lt,t.expirationTime=o,t;default:if("object"==typeof t&&null!==t)switch(t.$$typeof){case ot:a=10;break t;case st:a=9;break t;case ut:a=11;break t;case ht:a=14;break t;case ft:a=16,r=null;break t;case pt:a=22;break t}throw Error(s(130,null==t?t:typeof t,""))}return(e=Tu(a,n,e,i)).elementType=t,e.type=r,e.expirationTime=o,e}function Eu(t,e,n,r){return(t=Tu(7,t,r,e)).expirationTime=n,t}function Au(t,e,n){return(t=Tu(6,t,null,e)).expirationTime=n,t}function Pu(t,e,n){return(e=Tu(4,null!==t.children?t.children:[],t.key,e)).expirationTime=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function ju(t,e,n){this.tag=e,this.current=null,this.containerInfo=t,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Iu(t,e){var n=t.firstSuspendedTime;return t=t.lastSuspendedTime,0!==n&&n>=e&&t<=e}function Mu(t,e){var n=t.firstSuspendedTime,r=t.lastSuspendedTime;n<e&&(t.firstSuspendedTime=e),(r>e||0===n)&&(t.lastSuspendedTime=e),e<=t.lastPingedTime&&(t.lastPingedTime=0),e<=t.lastExpiredTime&&(t.lastExpiredTime=0)}function Du(t,e){e>t.firstPendingTime&&(t.firstPendingTime=e);var n=t.firstSuspendedTime;0!==n&&(e>=n?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:e>=t.lastSuspendedTime&&(t.lastSuspendedTime=e+1),e>t.nextKnownPendingLevel&&(t.nextKnownPendingLevel=e))}function Nu(t,e){var n=t.lastExpiredTime;(0===n||n>e)&&(t.lastExpiredTime=e)}function Ru(t,e,n,r){var i=e.current,o=Ha(),a=fo.suspense;o=Ka(o,i,a);t:if(n){e:{if(Zt(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(s(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break e;case 1:if(mi(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break e}}u=u.return}while(null!==u);throw Error(s(171))}if(1===n.tag){var c=n.type;if(mi(c)){n=gi(n,c,u);break t}}n=u}else n=li;return null===e.context?e.context=n:e.pendingContext=n,(e=ao(o,a)).payload={element:t},null!==(r=void 0===r?null:r)&&(e.callback=r),uo(i,e),Ga(i,o),o}function Fu(t){if(!(t=t.current).child)return null;switch(t.child.tag){case 5:default:return t.child.stateNode}}function Lu(t,e){null!==(t=t.memoizedState)&&null!==t.dehydrated&&t.retryTime<e&&(t.retryTime=e)}function Vu(t,e){Lu(t,e),(t=t.alternate)&&Lu(t,e)}function zu(t,e,n){var r=new ju(t,e,n=null!=n&&!0===n.hydrate),i=Tu(3,null,null,2===e?7:1===e?3:0);r.current=i,i.stateNode=r,oo(i),t[kn]=r.current,n&&0!==e&&function(t,e){var n=Qt(e);ke.forEach((function(t){de(t,e,n)})),Ce.forEach((function(t){de(t,e,n)}))}(0,9===t.nodeType?t:t.ownerDocument),this._internalRoot=r}function Bu(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function qu(t,e,n,r,i){var o=n._reactRootContainer;if(o){var s=o._internalRoot;if("function"==typeof i){var a=i;i=function(){var t=Fu(s);a.call(t)}}Ru(e,s,t,i)}else{if(o=n._reactRootContainer=function(t,e){if(e||(e=!(!(e=t?9===t.nodeType?t.documentElement:t.firstChild:null)||1!==e.nodeType||!e.hasAttribute("data-reactroot"))),!e)for(var n;n=t.lastChild;)t.removeChild(n);return new zu(t,0,e?{hydrate:!0}:void 0)}(n,r),s=o._internalRoot,"function"==typeof i){var u=i;i=function(){var t=Fu(s);u.call(t)}}eu((function(){Ru(e,s,t,i)}))}return Fu(s)}function Uu(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:et,key:null==r?null:""+r,children:t,containerInfo:e,implementation:n}}function Wu(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Bu(e))throw Error(s(200));return Uu(t,e,null,n)}zu.prototype.render=function(t){Ru(t,this._internalRoot,null,null)},zu.prototype.unmount=function(){var t=this._internalRoot,e=t.containerInfo;Ru(null,t,null,(function(){e[kn]=null}))},me=function(t){if(13===t.tag){var e=Ki(Ha(),150,100);Ga(t,e),Vu(t,e)}},ve=function(t){13===t.tag&&(Ga(t,3),Vu(t,3))},ye=function(t){if(13===t.tag){var e=Ha();Ga(t,e=Ka(e,t,null)),Vu(t,e)}},E=function(t,e,n){switch(e){case"input":if(St(t,n),e=n.name,"radio"===n.type&&null!=e){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=Pn(r);if(!i)throw Error(s(90));wt(r),St(r,i)}}}break;case"textarea":It(t,n);break;case"select":null!=(e=n.value)&&At(t,!!n.multiple,e,!1)}},D=tu,N=function(t,e,n,r,i){var o=Oa;Oa|=4;try{return qi(98,t.bind(null,e,n,r,i))}finally{0===(Oa=o)&&$i()}},R=function(){0==(49&Oa)&&(function(){if(null!==qa){var t=qa;qa=null,t.forEach((function(t,e){Nu(e,t),Ja(e)})),$i()}}(),mu())},F=function(t,e){var n=Oa;Oa|=2;try{return t(e)}finally{0===(Oa=n)&&$i()}};var $u,Hu,Ku={Events:[En,An,Pn,k,O,Fn,function(t){ie(t,Rn)},I,M,Je,ae,mu,{current:!1}]};Hu=($u={findFiberByHostInstance:Cn,bundleType:0,version:"16.13.1",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(t){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var e=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(e.isDisabled||!e.supportsFiber)return!0;try{var n=e.inject(t);wu=function(t){try{e.onCommitFiberRoot(n,t,void 0,64==(64&t.current.effectTag))}catch(t){}},xu=function(t){try{e.onCommitFiberUnmount(n,t)}catch(t){}}}catch(t){}}(i({},$u,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:X.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return null===(t=ne(t))?null:t.stateNode},findFiberByHostInstance:function(t){return Hu?Hu(t):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null})),e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ku,e.createPortal=Wu,e.findDOMNode=function(t){if(null==t)return null;if(1===t.nodeType)return t;var e=t._reactInternalFiber;if(void 0===e){if("function"==typeof t.render)throw Error(s(188));throw Error(s(268,Object.keys(t)))}return t=null===(t=ne(e))?null:t.stateNode},e.flushSync=function(t,e){if(0!=(48&Oa))throw Error(s(187));var n=Oa;Oa|=1;try{return qi(99,t.bind(null,e))}finally{Oa=n,$i()}},e.hydrate=function(t,e,n){if(!Bu(e))throw Error(s(200));return qu(null,t,e,!0,n)},e.render=function(t,e,n){if(!Bu(e))throw Error(s(200));return qu(null,t,e,!1,n)},e.unmountComponentAtNode=function(t){if(!Bu(t))throw Error(s(40));return!!t._reactRootContainer&&(eu((function(){qu(null,null,t,!1,(function(){t._reactRootContainer=null,t[kn]=null}))})),!0)},e.unstable_batchedUpdates=tu,e.unstable_createPortal=function(t,e){return Wu(t,e,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},e.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!Bu(n))throw Error(s(200));if(null==t||void 0===t._reactInternalFiber)throw Error(s(38));return qu(t,e,n,!1,r)},e.version="16.13.1"},function(t,e,n){"use strict";t.exports=n(1033)},function(t,e,n){"use strict";var r,i,o,s,a;if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,l=function(){if(null!==u)try{var t=e.unstable_now();u(!0,t),u=null}catch(t){throw setTimeout(l,0),t}},h=Date.now();e.unstable_now=function(){return Date.now()-h},r=function(t){null!==u?setTimeout(r,0,t):(u=t,setTimeout(l,0))},i=function(t,e){c=setTimeout(t,e)},o=function(){clearTimeout(c)},s=function(){return!1},a=e.unstable_forceFrameRate=function(){}}else{var f=window.performance,p=window.Date,d=window.setTimeout,m=window.clearTimeout;if("undefined"!=typeof console){var v=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof f&&"function"==typeof f.now)e.unstable_now=function(){return f.now()};else{var y=p.now();e.unstable_now=function(){return p.now()-y}}var g=!1,b=null,_=-1,w=5,x=0;s=function(){return e.unstable_now()>=x},a=function(){},e.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<t?Math.floor(1e3/t):5};var O=new MessageChannel,T=O.port2;O.port1.onmessage=function(){if(null!==b){var t=e.unstable_now();x=t+w;try{b(!0,t)?T.postMessage(null):(g=!1,b=null)}catch(t){throw T.postMessage(null),t}}else g=!1},r=function(t){b=t,g||(g=!0,T.postMessage(null))},i=function(t,n){_=d((function(){t(e.unstable_now())}),n)},o=function(){m(_),_=-1}}function S(t,e){var n=t.length;t.push(e);t:for(;;){var r=n-1>>>1,i=t[r];if(!(void 0!==i&&0<E(i,e)))break t;t[r]=e,t[n]=i,n=r}}function k(t){return void 0===(t=t[0])?null:t}function C(t){var e=t[0];if(void 0!==e){var n=t.pop();if(n!==e){t[0]=n;t:for(var r=0,i=t.length;r<i;){var o=2*(r+1)-1,s=t[o],a=o+1,u=t[a];if(void 0!==s&&0>E(s,n))void 0!==u&&0>E(u,s)?(t[r]=u,t[a]=n,r=a):(t[r]=s,t[o]=n,r=o);else{if(!(void 0!==u&&0>E(u,n)))break t;t[r]=u,t[a]=n,r=a}}}return e}return null}function E(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}var A=[],P=[],j=1,I=null,M=3,D=!1,N=!1,R=!1;function F(t){for(var e=k(P);null!==e;){if(null===e.callback)C(P);else{if(!(e.startTime<=t))break;C(P),e.sortIndex=e.expirationTime,S(A,e)}e=k(P)}}function L(t){if(R=!1,F(t),!N)if(null!==k(A))N=!0,r(V);else{var e=k(P);null!==e&&i(L,e.startTime-t)}}function V(t,n){N=!1,R&&(R=!1,o()),D=!0;var r=M;try{for(F(n),I=k(A);null!==I&&(!(I.expirationTime>n)||t&&!s());){var a=I.callback;if(null!==a){I.callback=null,M=I.priorityLevel;var u=a(I.expirationTime<=n);n=e.unstable_now(),"function"==typeof u?I.callback=u:I===k(A)&&C(A),F(n)}else C(A);I=k(A)}if(null!==I)var c=!0;else{var l=k(P);null!==l&&i(L,l.startTime-n),c=!1}return c}finally{I=null,M=r,D=!1}}function z(t){switch(t){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var B=a;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){N||D||(N=!0,r(V))},e.unstable_getCurrentPriorityLevel=function(){return M},e.unstable_getFirstCallbackNode=function(){return k(A)},e.unstable_next=function(t){switch(M){case 1:case 2:case 3:var e=3;break;default:e=M}var n=M;M=e;try{return t()}finally{M=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=B,e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=M;M=t;try{return e()}finally{M=n}},e.unstable_scheduleCallback=function(t,n,s){var a=e.unstable_now();if("object"==typeof s&&null!==s){var u=s.delay;u="number"==typeof u&&0<u?a+u:a,s="number"==typeof s.timeout?s.timeout:z(t)}else s=z(t),u=a;return t={id:j++,callback:n,priorityLevel:t,startTime:u,expirationTime:s=u+s,sortIndex:-1},u>a?(t.sortIndex=u,S(P,t),null===k(A)&&t===k(P)&&(R?o():R=!0,i(L,u-a))):(t.sortIndex=s,S(A,t),N||D||(N=!0,r(V))),t},e.unstable_shouldYield=function(){var t=e.unstable_now();F(t);var n=k(A);return n!==I&&null!==I&&null!==n&&null!==n.callback&&n.startTime<=t&&n.expirationTime<I.expirationTime||s()},e.unstable_wrapCallback=function(t){var e=M;return function(){var n=M;M=e;try{return t.apply(this,arguments)}finally{M=n}}}},function(t,e,n){"use strict";var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,h=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,_=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case i:switch(t=t.type){case h:case f:case s:case u:case a:case d:return t;default:switch(t=t&&t.$$typeof){case l:case p:case y:case v:case c:return t;default:return e}}case o:return e}}}function O(t){return x(t)===f}e.AsyncMode=h,e.ConcurrentMode=f,e.ContextConsumer=l,e.ContextProvider=c,e.Element=i,e.ForwardRef=p,e.Fragment=s,e.Lazy=y,e.Memo=v,e.Portal=o,e.Profiler=u,e.StrictMode=a,e.Suspense=d,e.isAsyncMode=function(t){return O(t)||x(t)===h},e.isConcurrentMode=O,e.isContextConsumer=function(t){return x(t)===l},e.isContextProvider=function(t){return x(t)===c},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===i},e.isForwardRef=function(t){return x(t)===p},e.isFragment=function(t){return x(t)===s},e.isLazy=function(t){return x(t)===y},e.isMemo=function(t){return x(t)===v},e.isPortal=function(t){return x(t)===o},e.isProfiler=function(t){return x(t)===u},e.isStrictMode=function(t){return x(t)===a},e.isSuspense=function(t){return x(t)===d},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===s||t===f||t===u||t===a||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===v||t.$$typeof===c||t.$$typeof===l||t.$$typeof===p||t.$$typeof===b||t.$$typeof===_||t.$$typeof===w||t.$$typeof===g)},e.typeOf=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,h=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118;function _(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case i:switch(t=t.type){case h:case f:case s:case u:case a:case d:return t;default:switch(t=t&&t.$$typeof){case l:case p:case c:return t;default:return e}}case y:case v:case o:return e}}}function w(t){return _(t)===f}e.typeOf=_,e.AsyncMode=h,e.ConcurrentMode=f,e.ContextConsumer=l,e.ContextProvider=c,e.Element=i,e.ForwardRef=p,e.Fragment=s,e.Lazy=y,e.Memo=v,e.Portal=o,e.Profiler=u,e.StrictMode=a,e.Suspense=d,e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===s||t===f||t===u||t===a||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===v||t.$$typeof===c||t.$$typeof===l||t.$$typeof===p||t.$$typeof===g||t.$$typeof===b)},e.isAsyncMode=function(t){return w(t)||_(t)===h},e.isConcurrentMode=w,e.isContextConsumer=function(t){return _(t)===l},e.isContextProvider=function(t){return _(t)===c},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===i},e.isForwardRef=function(t){return _(t)===p},e.isFragment=function(t){return _(t)===s},e.isLazy=function(t){return _(t)===y},e.isMemo=function(t){return _(t)===v},e.isPortal=function(t){return _(t)===o},e.isProfiler=function(t){return _(t)===u},e.isStrictMode=function(t){return _(t)===a},e.isSuspense=function(t){return _(t)===d}},function(t,e,n){"use strict";var r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r&&r,i="URLSearchParams"in r,o="Symbol"in r&&"iterator"in Symbol,s="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(t){return!1}}(),a="FormData"in r,u="ArrayBuffer"in r;if(u)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(t){return t&&c.indexOf(Object.prototype.toString.call(t))>-1};function h(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function f(t){return"string"!=typeof t&&(t=String(t)),t}function p(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o&&(e[Symbol.iterator]=function(){return e}),e}function d(t){this.map={},t instanceof d?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function m(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function v(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function y(t){var e=new FileReader,n=v(e);return e.readAsArrayBuffer(t),n}function g(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:s&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:a&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():u&&s&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=g(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(t)||l(t))?this._bodyArrayBuffer=g(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var t=m(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=m(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(y)}),this.text=function(){var t,e,n,r=m(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,n=v(e),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(t,e){t=h(t),e=f(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},d.prototype.delete=function(t){delete this.map[h(t)]},d.prototype.get=function(t){return t=h(t),this.has(t)?this.map[t]:null},d.prototype.has=function(t){return this.map.hasOwnProperty(h(t))},d.prototype.set=function(t,e){this.map[h(t)]=f(e)},d.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},d.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),p(t)},d.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),p(t)},d.prototype.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),p(t)},o&&(d.prototype[Symbol.iterator]=d.prototype.entries);var _=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(t,e){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,i=(e=e||{}).body;if(t instanceof w){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new d(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new d(e.headers)),this.method=(n=e.method||this.method||"GET",r=n.toUpperCase(),_.indexOf(r)>-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var o=/([?&])_=[^&]*/;if(o.test(this.url))this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function x(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function O(t,e){if(!(this instanceof O))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"",this.headers=new d(e.headers),this.url=e.url||"",this._initBody(t)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},b.call(w.prototype),b.call(O.prototype),O.prototype.clone=function(){return new O(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},O.error=function(){var t=new O(null,{status:0,statusText:""});return t.type="error",t};var T=[301,302,303,307,308];O.redirect=function(t,e){if(-1===T.indexOf(e))throw new RangeError("Invalid status code");return new O(null,{status:e,headers:{location:t}})};var S=r.DOMException;try{new S}catch(t){(S=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),S.prototype.constructor=S}function k(t,e){return new Promise((function(n,i){var o=new w(t,e);if(o.signal&&o.signal.aborted)return i(new S("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var t,e,r={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new d,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();e.append(r,i)}})),e)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;setTimeout((function(){n(new O(i,r))}),0)},a.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},a.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},a.onabort=function(){setTimeout((function(){i(new S("Aborted","AbortError"))}),0)},a.open(o.method,function(t){try{return""===t&&r.location.href?r.location.href:t}catch(e){return t}}(o.url),!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&(s?a.responseType="blob":u&&o.headers.get("Content-Type")&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(a.responseType="arraybuffer")),!e||"object"!=typeof e.headers||e.headers instanceof d?o.headers.forEach((function(t,e){a.setRequestHeader(e,t)})):Object.getOwnPropertyNames(e.headers).forEach((function(t){a.setRequestHeader(t,f(e.headers[t]))})),o.signal&&(o.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",c)}),a.send(void 0===o._bodyInit?null:o._bodyInit)}))}k.polyfill=!0,r.fetch||(r.fetch=k,r.Headers=d,r.Request=w,r.Response=O)},function(t,e,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){return function(){function t(t,e){if(this.app="loki",this.options=e||{},void 0!==t&&(this.app=t),this.catalog=null,!this.checkAvailability())throw new Error("indexedDB does not seem to be supported for your environment")}function e(t){this.db=null,this.initializeLokiCatalog(t)}return t.prototype.closeDatabase=function(){this.catalog&&this.catalog.db&&(this.catalog.db.close(),this.catalog.db=null)},t.prototype.checkAvailability=function(){return!("undefined"==typeof indexedDB||!indexedDB)},t.prototype.loadDatabase=function(t,n){var r=this.app,i=this;null!==this.catalog&&null!==this.catalog.db?this.catalog.getAppKey(r,t,(function(t){if("function"==typeof n){if(0===t.id)return void n(null);n(t.val)}else console.log(t.val)})):this.catalog=new e((function(e){i.catalog=e,i.loadDatabase(t,n)}))},t.prototype.loadKey=t.prototype.loadDatabase,t.prototype.saveDatabase=function(t,n,r){var i=this.app,o=this;function s(t){t&&!0===t.success?r(null):r(new Error("Error saving database")),o.options.closeAfterSave&&o.closeDatabase()}null!==this.catalog&&null!==this.catalog.db?this.catalog.setAppKey(i,t,n,s):this.catalog=new e((function(e){o.saveDatabase(t,n,s)}))},t.prototype.saveKey=t.prototype.saveDatabase,t.prototype.deleteDatabase=function(t,n){var r=this.app,i=this;null!==this.catalog&&null!==this.catalog.db?this.catalog.getAppKey(r,t,(function(t){var e=t.id;0!==e?i.catalog.deleteAppKey(e,n):"function"==typeof n&&n({success:!0})})):this.catalog=new e((function(e){i.catalog=e,i.deleteDatabase(t,n)}))},t.prototype.deleteKey=t.prototype.deleteDatabase,t.prototype.deleteDatabasePartitions=function(t){var e=this;this.getDatabaseList((function(n){n.forEach((function(n){n.startsWith(t)&&e.deleteDatabase(n)}))}))},t.prototype.getDatabaseList=function(t){var n=this.app,r=this;null!==this.catalog&&null!==this.catalog.db?this.catalog.getAppKeys(n,(function(e){for(var n=[],r=0;r<e.length;r++)n.push(e[r].key);"function"==typeof t?t(n):n.forEach((function(t){console.log(t)}))})):this.catalog=new e((function(e){r.catalog=e,r.getDatabaseList(t)}))},t.prototype.getKeyList=t.prototype.getDatabaseList,t.prototype.getCatalogSummary=function(t){this.app;var n=this;null!==this.catalog&&null!==this.catalog.db?this.catalog.getAllKeys((function(e){for(var n,r,i,o,s,a=[],u=0;u<e.length;u++)i=(n=e[u]).app||"",o=n.key||"",s=n.val||"",r=2*i.length+2*o.length+s.length+1,a.push({app:n.app,key:n.key,size:r});"function"==typeof t?t(a):a.forEach((function(t){console.log(t)}))})):this.catalog=new e((function(e){n.catalog=e,n.getCatalogSummary(t)}))},e.prototype.initializeLokiCatalog=function(t){var e=indexedDB.open("LokiCatalog",1),n=this;e.onupgradeneeded=function(t){var e=t.target.result;if(e.objectStoreNames.contains("LokiAKV")&&e.deleteObjectStore("LokiAKV"),!e.objectStoreNames.contains("LokiAKV")){var n=e.createObjectStore("LokiAKV",{keyPath:"id",autoIncrement:!0});n.createIndex("app","app",{unique:!1}),n.createIndex("key","key",{unique:!1}),n.createIndex("appkey","appkey",{unique:!0})}},e.onsuccess=function(e){n.db=e.target.result,"function"==typeof t&&t(n)},e.onerror=function(t){throw t}},e.prototype.getAppKey=function(t,e,n){var r,i=t+","+e,o=this.db.transaction(["LokiAKV"],"readonly").objectStore("LokiAKV").index("appkey").get(i);o.onsuccess=(r=n,function(t){var e=t.target.result;null==e&&(e={id:0,success:!1}),"function"==typeof r?r(e):console.log(e)}),o.onerror=function(t){return function(e){if("function"!=typeof t)throw e;t({id:0,success:!1})}}(n)},e.prototype.getAppKeyById=function(t,e,n){this.db.transaction(["LokiAKV"],"readonly").objectStore("LokiAKV").get(t).onsuccess=function(t,e){return function(n){"function"==typeof e?e(n.target.result,t):console.log(n.target.result)}}(n,e)},e.prototype.setAppKey=function(t,e,n,r){var i,o=this.db.transaction(["LokiAKV"],"readwrite").objectStore("LokiAKV"),s=o.index("appkey"),a=t+","+e,u=s.get(a);u.onsuccess=function(i){var s=i.target.result;null==s?s={app:t,key:e,appkey:t+","+e,val:n}:s.val=n;var a,c=o.put(s);c.onerror=(a=r,function(t){"function"==typeof a?a({success:!1}):(console.error("LokiCatalog.setAppKey (set) onerror"),console.error(u.error))}),c.onsuccess=function(t){return function(e){"function"==typeof t&&t({success:!0})}}(r)},u.onerror=(i=r,function(t){"function"==typeof i?i({success:!1}):(console.error("LokiCatalog.setAppKey (get) onerror"),console.error(u.error))})},e.prototype.deleteAppKey=function(t,e){var n,r=this.db.transaction(["LokiAKV"],"readwrite").objectStore("LokiAKV").delete(t);r.onsuccess=(n=e,function(t){"function"==typeof n&&n({success:!0})}),r.onerror=function(t){return function(e){"function"==typeof t?t({success:!1}):(console.error("LokiCatalog.deleteAppKey raised onerror"),console.error(r.error))}}(e)},e.prototype.getAppKeys=function(t,e){var n,r=this.db.transaction(["LokiAKV"],"readonly").objectStore("LokiAKV").index("app"),i=IDBKeyRange.only(t),o=r.openCursor(i);o.onsuccess=function(t,e){return function(n){var r=n.target.result;if(r){var i=r.value;t.push(i),r.continue()}else"function"==typeof e?e(t):console.log(t)}}([],e),o.onerror=(n=e,function(t){"function"==typeof n?n(null):(console.error("LokiCatalog.getAppKeys raised onerror"),console.error(t))})},e.prototype.getAllKeys=function(t){var e,n=this.db.transaction(["LokiAKV"],"readonly").objectStore("LokiAKV").openCursor();n.onsuccess=function(t,e){return function(n){var r=n.target.result;if(r){var i=r.value;t.push(i),r.continue()}else"function"==typeof e?e(t):console.log(t)}}([],t),n.onerror=(e=t,function(t){"function"==typeof e&&e(null)})},t}()})?r.apply(e,i):r)||(t.exports=o)},function(t,e){},,function(t,e){function n(e,r){return t.exports=n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},n(e,r)}t.exports=n},function(t,e){function n(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=n=function(t){return typeof t}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(e)}t.exports=n},function(t,e,n){"use strict";var r=n(1043);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,n,i,o,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultProps=e.propTypes=void 0;var r,i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=n(76),s=(r=o)&&r.__esModule?r:{default:r},a=n(75);function u(t){var e=i({},a.stateProps);return delete e[t],Object.keys(e)}var c={};Object.keys(a.iStates).forEach((function(t){c[t]=s.default.bool}));var l={as:s.default.any.isRequired,children:s.default.node,normal:s.default.oneOfType([s.default.object,s.default.oneOf(u("normal"))]),hover:s.default.oneOfType([s.default.object,s.default.oneOf(u("hover"))]),active:s.default.oneOfType([s.default.object,s.default.oneOf(u("active"))]),hoverActive:s.default.oneOfType([s.default.object,s.default.oneOf(u("hoverActive"))]),touchActive:s.default.oneOfType([s.default.object,s.default.oneOf(u("touchActive"))]),keyActive:s.default.oneOfType([s.default.object,s.default.oneOf(u("keyActive"))]),focus:s.default.oneOfType([s.default.object,s.default.oneOf(u("focus"))]),focusFromTab:s.default.oneOfType([s.default.object,s.default.oneOf(u("focusFromTab"))]),focusFromTouch:s.default.oneOfType([s.default.object,s.default.oneOf(u("focusFromTouch"))]),focusFromMouse:s.default.oneOfType([s.default.object,s.default.oneOf(u("focusFromMouse"))]),forceState:s.default.shape({iState:s.default.oneOf(Object.keys(a.iStates)),focus:s.default.oneOf([!1,"tab","mouse","touch"])}),initialState:s.default.shape({iState:s.default.oneOf(Object.keys(a.iStates)),focus:s.default.oneOf([!1,"tab","mouse","touch"])}),style:s.default.object,className:s.default.string,wrapperStyle:s.default.object,wrapperClassName:s.default.string,onStateChange:s.default.func,setStateCallback:s.default.func,onClick:s.default.func,onTapTwo:s.default.func,onTapThree:s.default.func,onTapFour:s.default.func,tapTimeCutoff:s.default.number,onMouseEnter:s.default.func,onMouseLeave:s.default.func,onMouseMove:s.default.func,onMouseDown:s.default.func,onMouseUp:s.default.func,onTouchStart:s.default.func,onTouchMove:s.default.func,onTouchEnd:s.default.func,onTouchCancel:s.default.func,onFocus:s.default.func,onBlur:s.default.func,onKeyDown:s.default.func,onKeyUp:s.default.func,mutableProps:s.default.bool,refDOMNode:s.default.func,tabIndex:s.default.string,useBrowserOutlineFocus:s.default.bool,useBrowserCursor:s.default.bool,touchActiveTapOnly:s.default.bool,extraTouchNoTap:s.default.bool,focusToggleOff:s.default.bool,stylePriority:s.default.shape(c),nonContainedChild:s.default.bool,interactiveChild:s.default.bool},h={tapTimeCutoff:a.defaultTapTimeCutoff};e.propTypes=l,e.defaultProps=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(1047)),i=a(n(1048)),o=a(n(1049)),s=a(n(1050));function a(t){return t&&t.__esModule?t:{default:t}}var u={state:{detectHover:r.default,detectPointer:i.default,detectTouchEvents:o.default,detectPassiveEvents:s.default},update:function(){u.state.detectHover.update(),u.state.detectPointer.update(),u.state.detectTouchEvents.update(),u.state.detectPassiveEvents.update(),u.updateOnlyOwnProperties()},updateOnlyOwnProperties:function(){if("undefined"!=typeof window){u.passiveEvents=u.state.detectPassiveEvents.hasSupport||!1,u.hasTouch=u.state.detectTouchEvents.hasSupport||!1,u.deviceType=(e=u.hasTouch,n=u.state.detectHover.anyHover,r=u.state.detectPointer.anyFine,i=u.state,e&&(n||r)?"hybrid":e&&Object.keys(i.detectHover).filter((function(t){return"update"!==t})).every((function(t){return!1===i.detectHover[t]}))&&Object.keys(i.detectPointer).filter((function(t){return"update"!==t})).every((function(t){return!1===i.detectPointer[t]}))?window.navigator&&/android/.test(window.navigator.userAgent.toLowerCase())?"touchOnly":"hybrid":e?"touchOnly":"mouseOnly"),u.hasMouse="touchOnly"!==u.deviceType,u.primaryInput=("mouseOnly"===u.deviceType?"mouse":"touchOnly"===u.deviceType&&"touch")||u.state.detectPointer.fine&&"mouse"||u.state.detectPointer.coarse&&"touch"||"mouse";/windows/.test(window.navigator.userAgent.toLowerCase())&&/chrome/.test(window.navigator.userAgent.toLowerCase())&&((t=parseInt(/Chrome\/([0-9.]+)/.exec(navigator.userAgent)[1],10))>=59&&t<62)&&u.hasTouch&&(u.deviceType="hybrid",u.hasMouse=!0,u.primaryInput="mouse")}var t,e,n,r,i}};u.updateOnlyOwnProperties(),e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={update:function(){"undefined"!=typeof window&&"function"==typeof window.matchMedia&&(r.hover=window.matchMedia("(hover: hover)").matches,r.none=window.matchMedia("(hover: none)").matches||window.matchMedia("(hover: on-demand)").matches,r.anyHover=window.matchMedia("(any-hover: hover)").matches,r.anyNone=window.matchMedia("(any-hover: none)").matches||window.matchMedia("(any-hover: on-demand)").matches)}};r.update(),e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={update:function(){"undefined"!=typeof window&&"function"==typeof window.matchMedia&&(r.fine=window.matchMedia("(pointer: fine)").matches,r.coarse=window.matchMedia("(pointer: coarse)").matches,r.none=window.matchMedia("(pointer: none)").matches,r.anyFine=window.matchMedia("(any-pointer: fine)").matches,r.anyCoarse=window.matchMedia("(any-pointer: coarse)").matches,r.anyNone=window.matchMedia("(any-pointer: none)").matches)}};r.update(),e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={update:function(){"undefined"!=typeof window&&(r.hasSupport="ontouchstart"in window,r.browserSupportsApi=Boolean(window.TouchEvent))}};r.update(),e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={update:function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}}),n=function(){};window.addEventListener("testPassiveEventSupport",n,e),window.removeEventListener("testPassiveEventSupport",n,e),r.hasSupport=t}}};r.update(),e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(e,n){if(e.children!==n.children)return!1;var r=Object.keys(n),i=n.forceState?-1:0,a=e.forceState?-1:0;if(r.length+i!==Object.keys(e).length+a)return!1;for(var u=function(t){return!!s.statePropOptionKeys.some((function(e){return n[t][e]}))&&s.statePropOptionKeys.every((function(r){return n[t][r]===e[t][r]}))},c=0;c<r.length;c++)if("forceState"!==r[c]){if(!Object.prototype.hasOwnProperty.call(e,r[c]))return!1;if(n[r[c]]!==e[r[c]])if("as"===r[c]){if(!o.default.isValidElement(e.as)||!o.default.isValidElement(n.as))return!1;if(e.as.type!==n.as.type)return!1;if(!t(e.as.props,n.as.props))return!1}else if(!s.stateProps[r[c]]||!u(r[c]))return!1}return!0};var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},s=n(75);t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n={},r={};Object.keys(t).forEach((function(i){n[i]=t[i],e[i]||(r[i]=t[i])})),o.default.isValidElement(t.as)?(Object.keys(t.as.props).forEach((function(i){n[i]=t.as.props[i],e[i]||(r[i]=t.as.props[i])})),n.as=t.as.type):n.as=t.as;return{mergedProps:n,passThroughProps:r}};var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r};t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.extractStyle=function(t,e){var n="hoverActive"!==e||t.hoverActive?e:"hover",o=0;for(;"string"==typeof n&&o<10;)n=t[n],o++;if("object"!==(void 0===n?"undefined":r(n)))return{style:null,className:""};var s={};i.statePropOptionKeys.some((function(t){return n[t]}))?(s.style=n.style||null,s.className=n.className||""):(s.style=n,s.className="");return s},e.setActiveAndFocusProps=function(t){t.active&&(t.hoverActive||(t.hoverActive=t.active),t.touchActive||(t.touchActive=t.active),t.keyActive||(t.keyActive=t.active));t.focus&&(t.focusFromTab||(t.focusFromTab=t.focus),t.focusFromMouse||(t.focusFromMouse=t.focus),t.focusFromTouch||(t.focusFromTouch=t.focus))},e.joinClasses=function(t,e,n){var r=t;return r+=r&&e?" "+e:""+e,r+=r&&n?" "+n:""+n};var i=n(75)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(e,n){if(n(e))return!0;for(var r=0;r<e.children.length;r++)if(t(e.children[r],n))return!0;return!1},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.focusRegistry=void 0,e.updateMouseFromRI=function(t){a(t),o.mouse.mouseOnDocument=!0};var r=n(162),i=n(75),o={mouse:{mouseOnDocument:!1,clientX:0,clientY:0,buttons:0},touch:{touchOnScreen:!1,recentTouch:!1},key:{recentEnterKeyDown:!1}},s=null;function a(t){o.mouse.clientX=t.clientX,o.mouse.clientY=t.clientY,o.mouse.buttons=t.buttons,"mouseleave"===t.type?o.mouse.mouseOnDocument=!1:o.mouse.mouseOnDocument=!0}var u=null;i.deviceHasTouch&&(0,r.notifyOfAll)(Object.keys(i.touchEvents),(function(t){"touchstart"===t.type?(o.touch.touchOnScreen=!0,o.mouse.mouseOnDocument=!1):"touchend"!==t.type&&"touchcancel"!==t.type||(o.touch.recentTouch=!0,s&&window.clearTimeout(s),s=window.setTimeout((function(){o.touch.recentTouch=!1,s=null}),i.queueTime)),0===t.touches.length&&(o.touch.touchOnScreen=!1)})),i.deviceHasMouse&&(0,r.notifyOfAll)(Object.keys(i.mouseEvents),"hybrid"===i.deviceType?function(t){o.touch.recentTouch||o.touch.touchOnScreen||a(t)}:a),(0,r.notifyOfAll)(["keydown"],(function(t){"Enter"===t.key&&(o.key.recentEnterKeyDown=!0,u&&window.clearTimeout(u),u=window.setTimeout((function(){o.key.recentEnterKeyDown=!1,u=null}),i.queueTime))}));e.focusRegistry={focus:null,blur:null};e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){a++,null!==s&&window.clearTimeout(s);o=!1,t.click(),o=!0,s=window.setTimeout((function(){o=!1,a=0,s=null}),i.queueTime)};var r=n(162),i=n(75),o=!1,s=null,a=0;i.deviceHasTouch&&(0,r.notifyOfAll)(["click"],(function(t){o&&(t.stopPropagation(),t.preventDefault(),0===--a&&(o=!1,null!==s&&(window.clearTimeout(s),s=null)))})),t.exports=e.default},function(t,e){t.exports=function(t){if(Array.isArray(t))return t}},function(t,e){t.exports=function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}}},function(t,e,n){var r=n(1060);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=y(n(0)),s=y(n(122)),a=n(1045),u=y(n(1051)),c=y(n(1052)),l=n(1053),h=y(n(1054)),f=n(1055),p=y(f),d=n(162),m=y(n(1056)),v=n(75);function y(t){return t&&t.__esModule?t:{default:t}}var g=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.refCallback=function(t){if(n.refNode=t,t){var e=n.topNode;"string"!=typeof n.p.props.as?n.topNode=t.firstChild:n.topNode=t,n.tagName=n.topNode.tagName.toLowerCase(),n.type=n.topNode.type&&n.topNode.type.toLowerCase(),n.enterKeyTrigger=(0,v.enterKeyTrigger)(n.tagName,n.type),n.spaceKeyTrigger=(0,v.spaceKeyTrigger)(n.tagName,n.type),n.setClickListener(n.p.props)&&(n.p.passThroughProps.onClick=n.handleEvent),e!==n.topNode&&(n.manageFocus("refCallback"),n.p.props.refDOMNode&&n.p.props.refDOMNode(n.topNode))}},n.handleEvent=function(t){if(n.isValidEvent(t)){if(v.mouseEvents[t.type]){if("terminate"===n.handleMouseEvent(t))return}else if(v.touchEvents[t.type]||"touchmove"===t.type||"touchtapcancel"===t.type){if("terminate"===n.handleTouchEvent(t))return}else if("click"===t.type){if("terminate"===n.handleClickEvent(t))return}else if("terminate"===n.handleOtherEvent(t))return;n.updateState(n.computeState(),n.p.props,t)}},n.handleNotifyOfNext=function(t){var e=!1;switch(t.type){case"scroll":case"mouseenter":case"mutation":if(n.track.mouseOn&&"mouseOn"===n.checkMousePosition())return"reNotifyOfNext";n.track.mouseOn=!1,n.track.buttonDown=!1,e=!0;break;case"touchstart":if(n.p.props.extraTouchNoTap){if(n.track.touches.active<n.maxTapPoints&&(0,h.default)(n.topNode,(function(e){return t.target===e})))return"reNotifyOfNext";e="updateState"===n.handleTouchEvent({type:"touchtapcancel"})}break;case"dragstart":n.manageSetTimeout("dragstart",(function(){n.track.drag||(n.forceTrackIState("normal"),n.updateState(n.computeState(),n.p.props,t,!0))}),30);break;case"focus":!1!==n.track.previousFocus&&(n.track.reinstateFocus=!0,n.manageSetTimeout("windowFocus",(function(){n.track.reinstateFocus=!1}),v.queueTime));break;case"blur":n.cancelTimeout("elementBlur"),n.track.notifyOfNext.focus||(n.track.notifyOfNext.focus=(0,d.notifyOfNext)("focus",n.handleNotifyOfNext))}return e&&n.updateState(n.computeState(),n.p.props,t,!0),delete n.track.notifyOfNext[t.type],null},n.state={iState:"normal",focus:!1},n.track={touchDown:!1,recentTouch:!1,touches:{points:{},active:0},mouseOn:!1,buttonDown:!1,clickType:"reset",focus:!1,previousFocus:!1,reinstateFocus:!1,focusTransition:"reset",focusStateOnMouseDown:!1,spaceKeyDown:!1,enterKeyDown:!1,drag:!1,updateTopNode:!1,notifyOfNext:{},timeoutIDs:{},state:n.state},n.refNode=null,n.topNode=null,n.tagName="string"==typeof t.as&&t.as||"",n.type=t.type||"",n.enterKeyTrigger=!1,n.spaceKeyTrigger=!1,n.maxTapPoints=1,n.eventHandlers=n.setupEventHandlers(),n.p={sameProps:!1},n.propsSetup(t),n.p.props.initialState&&n.p.props.initialState.iState&&(n.forceTrackIState(n.p.props.initialState.iState),n.state=n.computeState()),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"componentDidMount",value:function(){this.p.props.initialState&&void 0!==this.p.props.initialState.focus&&this.forceState({focus:this.p.props.initialState.focus})}},{key:"UNSAFE_componentWillReceiveProps",value:function(t){this.track.updateTopNode=this.props.as!==t.as&&"string"!=typeof this.props.as&&"string"!=typeof t.as,this.p.sameProps=!1,!t.mutableProps&&(0,u.default)(this.props,t)?this.p.sameProps=!0:this.propsSetup(t),this.p.props.forceState&&this.forceState(this.p.props.forceState)}},{key:"shouldComponentUpdate",value:function(t,e){return!this.p.sameProps&&t!==this.props||t.interactiveChild||e.iState!==this.state.iState&&(this.p[e.iState+"Style"].style!==this.p[this.state.iState+"Style"].style||this.p[e.iState+"Style"].className!==this.p[this.state.iState+"Style"].className)||e.focus!==this.state.focus}},{key:"componentDidUpdate",value:function(){this.track.updateTopNode&&(this.track.updateTopNode=!1,this.refCallback(this.refNode))}},{key:"componentWillUnmount",value:function(){var t=this;Object.keys(this.track.notifyOfNext).forEach((function(e){(0,d.cancelNotifyOfNext)(e,t.track.notifyOfNext[e])})),Object.keys(this.track.timeoutIDs).forEach((function(e){window.clearTimeout(t.track.timeoutIDs[e])}))}},{key:"setupEventHandlers",value:function(){var t=this,e={};return Object.keys(v.otherEvents).forEach((function(n){e[v.otherEvents[n]]=t.handleEvent})),v.deviceHasTouch&&Object.keys(v.touchEvents).forEach((function(n){e[v.touchEvents[n]]=t.handleEvent})),v.deviceHasMouse&&Object.keys(v.mouseEvents).forEach((function(n){e[v.mouseEvents[n]]=t.handleEvent})),e}},{key:"setClickListener",value:function(t){if(t.onClick)return!0;if(v.deviceHasTouch){if(t.tabIndex)return!0;if(v.knownRoleTags[this.tagName])return!0}return!1}},{key:"propsSetup",value:function(t){var e=(0,c.default)(t,v.knownProps),n=e.mergedProps,r=e.passThroughProps;(0,l.setActiveAndFocusProps)(n),null===r.tabIndex?delete r.tabIndex:!r.tabIndex&&(n.focus||n.focusFromTab||n.focusFromMouse||n.focusFromTouch||n.onClick)&&(n.tabIndex="0",r.tabIndex="0"),null===r.role?delete r.role:!n.onClick||n.role||"string"!=typeof n.as||v.knownRoleTags[n.as]||(n.role="button",r.role="button"),this.maxTapPoints=(n.onTapFour?4:n.onTapThree&&3)||n.onTapTwo&&2||1,this.setClickListener(n)&&(r.onClick=this.handleEvent),v.deviceHasTouch&&(n.touchActiveTapOnly||n.onLongPress||n.onTouchMove)&&(r.onTouchMove=this.handleEvent),(0,s.default)(r,this.eventHandlers),this.p.normalStyle=(0,l.extractStyle)(n,"normal"),this.p.hoverStyle=(0,l.extractStyle)(n,"hover"),this.p.hoverActiveStyle=(0,l.extractStyle)(n,"hoverActive"),this.p.touchActiveStyle=(0,l.extractStyle)(n,"touchActive"),this.p.keyActiveStyle=(0,l.extractStyle)(n,"keyActive"),this.p.tabFocusStyle=(0,l.extractStyle)(n,"focusFromTab"),this.p.mouseFocusStyle=(0,l.extractStyle)(n,"focusFromMouse"),this.p.touchFocusStyle=(0,l.extractStyle)(n,"focusFromTouch"),this.p.passThroughProps=r,this.p.props=n}},{key:"manageSetTimeout",value:function(t,e,n){var r=this;void 0!==this.track.timeoutIDs[t]&&window.clearTimeout(this.track.timeoutIDs[t]),this.track.timeoutIDs[t]=window.setTimeout((function(){delete r.track.timeoutIDs[t],e()}),n)}},{key:"cancelTimeout",value:function(t){void 0!==this.track.timeoutIDs[t]&&(window.clearTimeout(this.track.timeoutIDs[t]),delete this.track.timeoutIDs[t])}},{key:"forceTrackIState",value:function(t){this.computeState().iState!==t&&(this.track.mouseOn="hover"===t||"hoverActive"===t,this.track.buttonDown="hoverActive"===t,this.track.touchDown="touchActive"===t,this.track.spaceKeyDown="keyActive"===t,this.track.enterKeyDown="keyActive"===t,this.track.drag=!1)}},{key:"forceState",value:function(t){if(void 0!==t.iState&&this.forceTrackIState(t.iState),void 0!==t.focus&&t.focus!==this.track.state.focus)return this.track.focus=t.focus,void this.manageFocus(t.focus?"forceStateFocusTrue":"forceStateFocusFalse");this.updateState(this.computeState(),this.p.props,(0,v.dummyEvent)("forcestate"))}},{key:"computeState",value:function(){var t=this.track,e=t.mouseOn,n=t.buttonDown,r=t.touchDown,i=t.focus,o=t.drag,s=i&&(this.track.enterKeyDown&&this.enterKeyTrigger||this.track.spaceKeyDown&&this.spaceKeyTrigger),a={focus:i};return e||n||r||s||o?!e||n||r||s||o?e&&n&&!r&&!s||o&&!r?a.iState="hoverActive":s&&!r?a.iState="keyActive":(r||o)&&(a.iState="touchActive"):a.iState="hover":a.iState="normal",a}},{key:"updateState",value:function(t,e,n,r){r||this.manageNotifyOfNext(t);var i=this.track.state.iState,o=t.iState,s=o!==i,a=t.focus!==this.track.state.focus;if(s||a){var u={iState:i,focus:this.track.state.focus},c={iState:o,focus:t.focus};e.onStateChange&&e.onStateChange({prevState:u,nextState:c,event:n}),this.track.state=t,this.setState(t,e.setStateCallback&&e.setStateCallback.bind(this,{prevState:u,nextState:c}))}}},{key:"isValidEvent",value:function(t){if("click"===t.type&&"reset"!==this.track.clickType)return!0;if(("focus"===t.type||"blur"===t.type)&&t.target!==this.topNode)return!0;if("focus"===t.type&&"refCallbackFocus"===this.track.focusTransition)return t.stopPropagation(),this.track.focusTransition="reset",!1;if("blur"===t.type&&"focusForceBlur"===this.track.focusTransition&&!this.track.state.focus)return t.stopPropagation(),this.track.focusTransition="reset",!1;if(v.deviceHasTouch){if("click"===t.type&&(p.default.touch.recentTouch||p.default.touch.touchOnScreen)&&(this.p.props.active||this.p.props.touchActive))return t.preventDefault(),t.stopPropagation(),!1;if("focus"===t.type&&"reset"===this.track.focusTransition&&(p.default.touch.recentTouch||!this.track.touchDown&&p.default.touch.touchOnScreen))return t.preventDefault(),t.stopPropagation(),this.manageFocus("focusForceBlur"),!1}return"hybrid"!==v.deviceType||!/mouse/.test(t.type)||!p.default.touch.touchOnScreen&&!p.default.touch.recentTouch||(t.preventDefault(),t.stopPropagation(),!1)}},{key:"manageNotifyOfNext",value:function(t){var e=this,n=function(t){e.track.notifyOfNext[t]||(e.track.notifyOfNext[t]=(0,d.notifyOfNext)(t,e.handleNotifyOfNext))},r=function(t){e.track.notifyOfNext[t]&&((0,d.cancelNotifyOfNext)(t,e.track.notifyOfNext[t]),delete e.track.notifyOfNext[t])};if(v.deviceHasMouse){var i="normal"!==t.iState&&!this.track.drag;i?n("mouseenter"):r("mouseenter"),i?n("dragstart"):r("dragstart"),v.passiveEventSupport&&(i?n("scroll"):r("scroll")),this.track.mouseOn?n("mutation"):r("mutation")}v.deviceHasTouch&&("touchActive"===t.iState?this.p.props.extraTouchNoTap&&n("touchstart"):r("touchstart")),this.track.state.focus&&!t.focus&&(n("blur"),this.manageSetTimeout("elementBlur",(function(){e.track.previousFocus=!1,r("blur")}),v.queueTime))}},{key:"checkMousePosition",value:function(t){if(!v.deviceHasMouse)return null;var e=t&&t.clientX||p.default.mouse.clientX,n=t&&t.clientY||p.default.mouse.clientY;function r(t){var r=t.getBoundingClientRect();return e>=r.left-1&&e<=r.right+1&&n>=r.top-1&&n<=r.bottom+1}return!!p.default.mouse.mouseOnDocument&&(this.p.props.nonContainedChild?(0,h.default)(this.topNode,r):r(this.topNode))?"mouseOn":"mouseOff"}},{key:"manageFocus",value:function(t,e){var n=this;if(e&&(f.focusRegistry.focus===e||f.focusRegistry.blur===e))return"updateState";var r,i,o=!v.nonBlurrableTags[this.tagName]&&!this.p.props.focusToggleOff,s=this.p.props.tabIndex||v.knownRoleTags[this.tagName],a=function(t,r,i){return("force"===i||"focus"===t&&s||"blur"===t&&o)&&(e&&(f.focusRegistry[t]=e,n.manageSetTimeout("focusRegistry",(function(){f.focusRegistry[t]=null}),0)),n.track.focusTransition=r,n.topNode[t](),n.track.focusTransition!==r)?"terminate":(n.track.focusTransition="reset","updateState")};switch(t){case"mousedown":return a("focus","mouseDownFocus");case"mouseup":return this.track.focusStateOnMouseDown?a("blur","mouseUpBlur"):(this.track.focusTransition="reset","updateState");case"touchclick":return r="touchClick",n.track.state.focus?a("blur",r+"Blur",i):a("focus",r+"Focus",i);case"forceStateFocusTrue":return this.manageSetTimeout("forceStateFocusTrue",(function(){!n.track.state.focus&&a("focus","forceStateFocus","force")}),0),"terminate";case"forceStateFocusFalse":return this.manageSetTimeout("forceStateFocusFalse",(function(){n.track.state.focus&&a("blur","forceStateBlur","force")}),0),"terminate";case"refCallback":return this.track.state.focus?a("focus","refCallbackFocus","force"):(this.track.focusTransition="reset","terminate");case"focusForceBlur":return a("blur","focusForceBlur","force");default:return"updateState"}}},{key:"handleMouseEvent",value:function(t){switch(t.type){case"mouseenter":return(0,f.updateMouseFromRI)(t),this.p.props.onMouseEnter&&this.p.props.onMouseEnter(t),this.track.mouseOn=!0,this.track.buttonDown=1===t.buttons,"updateState";case"mouseleave":return(0,f.updateMouseFromRI)(t),this.p.props.onMouseLeave&&this.p.props.onMouseLeave(t),this.track.mouseOn=!1,this.track.buttonDown=!1,"updateState";case"mousemove":return this.p.props.onMouseMove&&this.p.props.onMouseMove(t),this.track.mouseOn&&this.track.buttonDown===(1===t.buttons)?"terminate":(this.track.mouseOn=!0,this.track.buttonDown=1===t.buttons,"updateState");case"mousedown":return this.p.props.onMouseDown&&this.p.props.onMouseDown(t),this.track.mouseOn=!0,this.track.buttonDown=!0,this.track.focusStateOnMouseDown=this.track.state.focus,this.manageFocus("mousedown",t);case"mouseup":this.p.props.onMouseUp&&this.p.props.onMouseUp(t),this.track.buttonDown=!1;var e=this.manageFocus("mouseup",t);return this.manageClick("mouseClick"),e;default:return"terminate"}}},{key:"handleTouchEvent",value:function(t){var e=this;this.track.mouseOn=!1,this.track.buttonDown=!1;var n=function(){e.track.touchDown=!1,e.track.touches={points:{},active:0},e.cancelTimeout("touchTapTimer")},r=function(){e.track.recentTouch=!0,e.manageSetTimeout("recentTouchTimer",(function(){e.track.recentTouch=!1}),v.queueTime)},i=function(){return e.p.props.extraTouchNoTap&&t.touches.length!==e.track.touches.active||e.track.touches.active>e.maxTapPoints},o=function(t,e,n){return Math.abs(t.clientX-e.startX)>=15+3*n||Math.abs(t.clientY-e.startY)>=15+3*n},s=function(n){for(var r=0;r<t.changedTouches.length;r++){var i=e.track.touches.points[t.changedTouches[r].identifier]||{};i[n+"X"]=t.changedTouches[r].clientX,i[n+"Y"]=t.changedTouches[r].clientY,e.track.touches.points[t.changedTouches[r].identifier]=i}};switch(t.type){case"touchstart":if(this.p.props.onTouchStart&&this.p.props.onTouchStart(t),this.track.touches.active+=t.changedTouches.length,this.track.touches.tapCanceled)return"terminate";var a=!this.track.touchDown;return this.track.touchDown=!0,this.track.touches.touchend||i()?"updateState"===this.handleTouchEvent({type:"touchtapcancel"})||a?"updateState":"terminate":(a&&(t.persist(),this.manageSetTimeout("touchTapTimer",(function(){e.p.props.onLongPress&&e.p.props.onLongPress(t),e.handleEvent((0,v.dummyEvent)("touchtapcancel"))}),this.p.props.tapTimeCutoff)),s("start"),"updateState");case"touchmove":if(this.p.props.onTouchMove&&this.p.props.onTouchMove(t),this.track.touches.tapCanceled)return"terminate";if(i())return this.handleTouchEvent({type:"touchtapcancel"});if(this.p.props.touchActiveTapOnly||this.p.props.onLongPress)for(var u=0;u<t.changedTouches.length;u++){var c=this.track.touches.points[t.changedTouches[u].identifier];if(c&&o(t.changedTouches[u],c,this.maxTapPoints))return this.handleTouchEvent({type:"touchtapcancel"})}return"terminate";case"touchend":if(r(),this.p.props.onTouchEnd&&this.p.props.onTouchEnd(t),this.track.touches.active-=t.changedTouches.length,this.track.touches.active<0||0===t.touches.length&&this.track.touches.active>0)return n(),"updateState";if(this.track.touches.touchend=!0,0===this.track.touches.active&&(this.track.touches.tapCanceled||i()))return n(),"updateState";if(this.track.touches.tapCanceled)return"terminate";if(i())return this.handleTouchEvent({type:"touchtapcancel"});if(s("client"),0===this.track.touches.active){var l=this.track.touches.points,h=Object.keys(l),f=h.length,p=h.every((function(t){return!o(l[t],l[t],f)}))?f:0;switch(n(),p){case 1:var d="updateState";return(this.p.props.active||this.p.props.touchActive)&&(d=this.manageFocus("touchclick",t),this.manageClick("tapClick")),d;case 2:this.p.props.onTapTwo&&this.p.props.onTapTwo(t);break;case 3:this.p.props.onTapThree&&this.p.props.onTapThree(t);break;case 4:this.p.props.onTapFour&&this.p.props.onTapFour(t)}}return"updateState";case"touchcancel":return r(),this.p.props.onTouchCancel&&this.p.props.onTouchCancel(t),this.track.touches.active-=t.changedTouches.length,0===this.track.touches.active?(n(),"updateState"):this.handleTouchEvent({type:"touchtapcancel"});case"touchtapcancel":return this.cancelTimeout("touchTapTimer"),this.track.touchDown&&(this.track.touches.tapCanceled=!0,this.p.props.touchActiveTapOnly)?(this.track.touchDown=!1,"updateState"):"terminate";default:return"terminate"}}},{key:"manageClick",value:function(t){var e=this;this.cancelTimeout("clickType");var n=function(){e.manageSetTimeout("clickType",(function(){e.track.clickType="reset"}),v.queueTime)};switch(t){case"mouseClick":this.track.clickType="mouseClick",n();break;case"tapClick":this.track.clickType="tapClick",(0,m.default)(this.topNode),this.track.clickType="reset";break;case"keyClick":this.track.clickType="keyClick",v.knownRoleTags[this.tagName]?n():this.p.props.onClick&&(this.topNode.click(),this.track.clickType="reset")}}},{key:"handleClickEvent",value:function(t){this.cancelTimeout("clickType");var e="terminate";"reset"===this.track.clickType&&("input"===this.tagName&&"submit"===this.type&&p.default.key.recentEnterKeyDown?this.track.clickType="keyClick":p.default.touch.recentTouch||p.default.touch.touchOnScreen||"touchOnly"===v.deviceType?(e=this.manageFocus("touchclick",t),this.track.keyClick="tapClick"):this.track.keyClick="mouseClick");return"_blank"!==this.p.props.target||"tapClick"!==this.track.clickType||this.track.notifyOfNext.focus||(this.track.previousFocus="touch",this.track.notifyOfNext.focus=(0,d.notifyOfNext)("focus",this.handleNotifyOfNext)),this.p.props.onClick&&this.p.props.onClick(t,this.track.clickType),this.track.clickType="reset",e}},{key:"handleOtherEvent",value:function(t){switch(t.type){case"focus":if(this.p.props.onFocus&&this.p.props.onFocus(t),t.target!==this.topNode)return"terminate";if("reset"!==this.track.focusTransition||!this.track.focus){var e=this.track.focusTransition.toLowerCase();/mouse/.test(e)?this.track.focus="mouse":/touch/.test(e)||this.track.touchDown?this.track.focus="touch":this.track.reinstateFocus?this.track.focus=this.track.previousFocus:/forcestate/.test(e)||(this.track.focus="tab")}return this.cancelTimeout("windowFocus"),this.track.reinstateFocus=!1,this.track.focusTransition="reset","updateState";case"blur":return this.p.props.onBlur&&this.p.props.onBlur(t),t.target!==this.topNode?"terminate":(this.track.focusTransition="reset",this.track.previousFocus=this.track.focus,this.track.focus=!1,this.track.spaceKeyDown=!1,this.track.enterKeyDown=!1,"updateState");case"keydown":if(this.p.props.onKeyDown&&this.p.props.onKeyDown(t),!this.track.focus)return"terminate";if(" "===t.key)this.track.spaceKeyDown=!0;else{if("Enter"!==t.key)return"terminate";this.track.enterKeyDown=!0,this.enterKeyTrigger&&this.manageClick("keyClick")}return"updateState";case"keyup":if(this.p.props.onKeyUp&&this.p.props.onKeyUp(t),!this.track.focus)return"terminate";if("Enter"===t.key)this.track.enterKeyDown=!1;else{if(" "!==t.key)return"terminate";this.track.spaceKeyDown=!1,this.spaceKeyTrigger&&this.manageClick("keyClick")}return"updateState";case"dragstart":return this.p.props.onDragStart&&this.p.props.onDragStart(t),this.track.drag=!0,"updateState";case"dragend":return this.p.props.onDragEnd&&this.p.props.onDragEnd(t),this.forceTrackIState("normal"),"updateState";default:return"terminate"}}},{key:"computeStyle",value:function(){var t={};this.p.props.useBrowserOutlineFocus||!this.p.props.focusFromTab&&("tab"===this.state.focus||v.nonBlurrableTags[this.tagName])||(t.outline=0,t.outlineOffset=0),(this.p.props.touchActive||this.p.props.active)&&v.deviceHasTouch&&(t.WebkitTapHighlightColor="rgba(0, 0, 0, 0)");var e="string"==typeof this.p.props.as&&this.p.props.as.toLowerCase();this.p.props.useBrowserCursor||!(this.p.props.onClick||"input"!==e&&this.p.props.tabIndex&&(this.p.mouseFocusStyle.style||this.p.mouseFocusStyle.className)||"input"===e&&("checkbox"===this.p.props.type||"radio"===this.p.props.type||"submit"===this.p.props.type)||"button"===e||"a"===e||"area"===e||"select"===e)||this.p.props.disabled||(t.cursor="pointer"),(0,s.default)(t,this.p.props.style);var n="keyActive"===this.state.iState||this.p.props.stylePriority&&this.p.props.stylePriority[this.state.iState],r=this.p[this.state.iState+"Style"].style,i=this.state.focus?this.p[this.state.focus+"FocusStyle"].style:null;return n?(0,s.default)(t,i,r):(0,s.default)(t,r,i),t}},{key:"computeClassName",value:function(){return(0,l.joinClasses)(this.p.props.className||"",this.p[this.state.iState+"Style"].className,this.state.focus?this.p[this.state.focus+"FocusStyle"].className:"")}},{key:"computeChildren",value:function(){var t=this,n=this.state.focus&&"focusFrom"+this.state.focus.charAt(0).toUpperCase()+this.state.focus.slice(1),i=this.p.props.stylePriority&&this.p.props.stylePriority[this.state.iState];return function a(u){return o.default.Children.map(u,(function(u){if(!o.default.isValidElement(u))return u;if(u.props.showOnParent&&!u.props.showOnParent.split(" ").some((function(e){return e===t.state.iState||/Active/.test(t.state.iState)&&"active"===e||t.state.focus&&(e===n||"focus"===e)})))return null;var c=Object.keys(u.props);if(!c.some((function(t){return v.childInteractiveProps[t]})))return u.type===e?u:o.default.cloneElement(u,{},a(u.props.children));var h={},f={};c.forEach((function(t){v.childInteractiveProps[t]?"showOnParent"!==t&&(f[""+t.slice(8).charAt(0).toLowerCase()+t.slice(9)]=u.props[t]):h[t]=u.props[t]})),f.style=u.props.style,f.className=u.props.className;var p=function(e){var o=e.style?r({},e.style):{};(0,l.setActiveAndFocusProps)(e);var a=(0,l.extractStyle)(e,t.state.iState),u=t.state.focus&&(0,l.extractStyle)(e,n);return{className:(0,l.joinClasses)(e.className||"",a.className,u&&u.className||""),style:i&&(0,s.default)(o,u.style,a.style)||(0,s.default)(o,a.style,u.style)}}(f),d=p.style,m=p.className;return h.style=d,m&&(h.className=m),o.default.createElement(u.type,h,u.type===e?u.props.children:a(u.props.children))}))}(this.p.props.children)}},{key:"render",value:function(){this.p.passThroughProps.style=this.computeStyle();var t=this.computeClassName();t&&(this.p.passThroughProps.className=t);var e=this.p.props.interactiveChild?this.computeChildren():this.p.props.children;return"string"==typeof this.p.props.as?(this.p.passThroughProps.ref=this.refCallback,o.default.createElement(this.p.props.as,this.p.passThroughProps,e)):o.default.createElement("span",{ref:this.refCallback,style:this.p.props.wrapperStyle,className:this.p.props.wrapperClassName},o.default.createElement(this.p.props.as,this.p.passThroughProps,e))}}]),e}(o.default.Component);g.propTypes=a.propTypes,g.defaultProps=a.defaultProps,e.default=g,t.exports=e.default},function(t,e,n){"use strict";e.__esModule=!0;var r=n(0);e.default=function(t){for(var e=t.acceptedCharacters,n=t.length,i=t.value,o=t.onChange,s=function(t,e){for(;t.length<e;)t+=" ";return t.substr(0,e)}(i,n),a=r.useRef(Array.from({length:n})),u=r.useRef(Array.from({length:n})),c=[],l=function(t){var r=u.current[t]=u.current[t]||function(e){a.current[t]=e||void 0},i=" "===s[t]?"":s[t];c.push({ref:r,value:i,onClick:function(t){var e=t.currentTarget;window.requestAnimationFrame((function(){e.setSelectionRange(0,1)}))},onFocus:function(t){t.currentTarget.setSelectionRange(0,1)},onKeyDown:function(r){switch(r.key){case"Backspace":if(r.preventDefault(),i)o(s.substring(0,t)+" "+s.substring(t+1));else if(t>0){o(s.substring(0,t-1)+" "+s.substring(t));var u=a.current[t-1];u&&u.focus()}break;case"ArrowUp":case"ArrowLeft":if(r.preventDefault(),t>0){var c=a.current[t-1];c&&(c.focus(),window.requestAnimationFrame((function(){c.setSelectionRange(0,1)})))}break;case"ArrowDown":case"ArrowRight":if(r.preventDefault(),t+1<n){var l=a.current[t+1];l&&(l.focus(),window.requestAnimationFrame((function(){l.setSelectionRange(0,1)})))}break;default:if(1===r.key.length&&!(r.metaKey||r.altKey||r.ctrlKey)&&(r.preventDefault(),e.test(r.key)))if(o(s.substring(0,t)+r.key+s.substring(t+1)),t+1<n){var h=a.current[t+1];h&&(h.focus(),window.requestAnimationFrame((function(){h.setSelectionRange(0,1)})))}else{var f=r.currentTarget;window.requestAnimationFrame((function(){f.setSelectionRange(0,1)}))}}},onChange:function(r){var i=r.target.value.split("").filter((function(t){return e.test(t)})).join("");if(o((s.substring(0,t)+i+s.substring(t+i.length)).substr(0,n)),t<n-1){var u=a.current[t+i.length<n?t+i.length:n-1];u&&(u.focus(),window.requestAnimationFrame((function(){u.setSelectionRange(0,1)})))}}})},h=0;h<n;h++)l(h);return c}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(0),s=u(o),a=u(n(76));function u(t){return t&&t.__esModule?t:{default:t}}var c=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.timeout=void 0,n.handleTriggerClick=n.handleTriggerClick.bind(n),n.handleTransitionEnd=n.handleTransitionEnd.bind(n),n.continueOpenCollapsible=n.continueOpenCollapsible.bind(n),n.setInnerRef=n.setInnerRef.bind(n),t.open?n.state={isClosed:!1,shouldSwitchAutoOnNextCycle:!1,height:"auto",transition:"none",hasBeenOpened:!0,overflow:t.overflowWhenOpen,inTransition:!1}:n.state={isClosed:!0,shouldSwitchAutoOnNextCycle:!1,height:0,transition:"height "+t.transitionTime+"ms "+t.easing,hasBeenOpened:!1,overflow:"hidden",inTransition:!1},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"componentDidUpdate",value:function(t,e){var n=this;this.state.shouldOpenOnNextCycle&&this.continueOpenCollapsible(),"auto"===e.height&&!0===this.state.shouldSwitchAutoOnNextCycle&&(window.clearTimeout(this.timeout),this.timeout=window.setTimeout((function(){n.setState({height:0,overflow:"hidden",isClosed:!0,shouldSwitchAutoOnNextCycle:!1})}),50)),t.open!==this.props.open&&(!0===this.props.open?(this.openCollapsible(),this.props.onOpening()):(this.closeCollapsible(),this.props.onClosing()))}},{key:"componentWillUnmount",value:function(){window.clearTimeout(this.timeout)}},{key:"closeCollapsible",value:function(){this.setState({shouldSwitchAutoOnNextCycle:!0,height:this.innerRef.scrollHeight,transition:"height "+(this.props.transitionCloseTime?this.props.transitionCloseTime:this.props.transitionTime)+"ms "+this.props.easing,inTransition:!0})}},{key:"openCollapsible",value:function(){this.setState({inTransition:!0,shouldOpenOnNextCycle:!0})}},{key:"continueOpenCollapsible",value:function(){this.setState({height:this.innerRef.scrollHeight,transition:"height "+this.props.transitionTime+"ms "+this.props.easing,isClosed:!1,hasBeenOpened:!0,inTransition:!0,shouldOpenOnNextCycle:!1})}},{key:"handleTriggerClick",value:function(t){this.props.triggerDisabled||this.state.inTransition||(t.preventDefault(),this.props.handleTriggerClick?this.props.handleTriggerClick(this.props.accordionPosition):!0===this.state.isClosed?(this.openCollapsible(),this.props.onOpening(),this.props.onTriggerOpening()):(this.closeCollapsible(),this.props.onClosing(),this.props.onTriggerClosing()))}},{key:"renderNonClickableTriggerElement",value:function(){return this.props.triggerSibling&&"string"==typeof this.props.triggerSibling?s.default.createElement("span",{className:this.props.classParentString+"__trigger-sibling"},this.props.triggerSibling):this.props.triggerSibling&&"function"==typeof this.props.triggerSibling?this.props.triggerSibling():this.props.triggerSibling?s.default.createElement(this.props.triggerSibling,null):null}},{key:"handleTransitionEnd",value:function(t){t.target===this.innerRef&&(this.state.isClosed?(this.setState({inTransition:!1}),this.props.onClose()):(this.setState({height:"auto",overflow:this.props.overflowWhenOpen,inTransition:!1}),this.props.onOpen()))}},{key:"setInnerRef",value:function(t){this.innerRef=t}},{key:"render",value:function(){var t=this,e={height:this.state.height,WebkitTransition:this.state.transition,msTransition:this.state.transition,transition:this.state.transition,overflow:this.state.overflow},n=this.state.isClosed?"is-closed":"is-open",i=this.props.triggerDisabled?"is-disabled":"",o=!1===this.state.isClosed&&void 0!==this.props.triggerWhenOpen?this.props.triggerWhenOpen:this.props.trigger,a=this.props.contentContainerTagName,u=this.props.triggerTagName,c=this.props.lazyRender&&!this.state.hasBeenOpened&&this.state.isClosed&&!this.state.inTransition?null:this.props.children,l=this.props.classParentString+"__trigger "+n+" "+i+" "+(this.state.isClosed?this.props.triggerClassName:this.props.triggerOpenedClassName),h=this.props.classParentString+" "+(this.state.isClosed?this.props.className:this.props.openedClassName),f=this.props.classParentString+"__contentOuter "+this.props.contentOuterClassName,p=this.props.classParentString+"__contentInner "+this.props.contentInnerClassName;return s.default.createElement(a,r({className:h.trim()},this.props.containerElementProps),s.default.createElement(u,r({className:l.trim(),onClick:this.handleTriggerClick,style:this.props.triggerStyle&&this.props.triggerStyle,onKeyPress:function(e){var n=e.key;(" "===n&&"button"!==t.props.triggerTagName.toLowerCase()||"Enter"===n)&&t.handleTriggerClick(e)},tabIndex:this.props.tabIndex&&this.props.tabIndex},this.props.triggerElementProps),o),this.renderNonClickableTriggerElement(),s.default.createElement("div",{className:f.trim(),style:e,onTransitionEnd:this.handleTransitionEnd,ref:this.setInnerRef},s.default.createElement("div",{className:p.trim()},c)))}}]),e}(o.Component);c.propTypes={transitionTime:a.default.number,transitionCloseTime:a.default.number,triggerTagName:a.default.string,easing:a.default.string,open:a.default.bool,containerElementProps:a.default.object,triggerElementProps:a.default.object,classParentString:a.default.string,openedClassName:a.default.string,triggerStyle:a.default.object,triggerClassName:a.default.string,triggerOpenedClassName:a.default.string,contentOuterClassName:a.default.string,contentInnerClassName:a.default.string,accordionPosition:a.default.oneOfType([a.default.string,a.default.number]),handleTriggerClick:a.default.func,onOpen:a.default.func,onClose:a.default.func,onOpening:a.default.func,onClosing:a.default.func,onTriggerOpening:a.default.func,onTriggerClosing:a.default.func,trigger:a.default.oneOfType([a.default.string,a.default.element]),triggerWhenOpen:a.default.oneOfType([a.default.string,a.default.element]),triggerDisabled:a.default.bool,lazyRender:a.default.bool,overflowWhenOpen:a.default.oneOf(["hidden","visible","auto","scroll","inherit","initial","unset"]),triggerSibling:a.default.oneOfType([a.default.element,a.default.func]),tabIndex:a.default.number,contentContainerTagName:a.default.string},c.defaultProps={transitionTime:400,transitionCloseTime:null,triggerTagName:"span",easing:"linear",open:!1,classParentString:"Collapsible",triggerDisabled:!1,lazyRender:!1,overflowWhenOpen:"hidden",openedClassName:"",triggerStyle:null,triggerClassName:"",triggerOpenedClassName:"",contentOuterClassName:"",contentInnerClassName:"",className:"",triggerSibling:null,onOpen:function(){},onClose:function(){},onOpening:function(){},onClosing:function(){},onTriggerOpening:function(){},onTriggerClosing:function(){},tabIndex:null,contentContainerTagName:"div"},e.default=c},function(t,e,n){"use strict";n.r(e),n.d(e,"IGNORE_CLASS_NAME",(function(){return f}));var r=n(0),i=n(124);function o(t,e,n){return t===e||(t.correspondingElement?t.correspondingElement.classList.contains(n):t.classList.contains(n))}var s,a,u=(void 0===s&&(s=0),function(){return++s}),c={},l={},h=["touchstart","touchmove"],f="ignore-react-onclickoutside";function p(t,e){var n=null;return-1!==h.indexOf(e)&&a&&(n={passive:!t.props.preventDefault}),n}e.default=function(t,e){var n,s,h=t.displayName||t.name||"Component";return s=n=function(n){var s,f;function d(t){var r;return(r=n.call(this,t)||this).__outsideClickHandler=function(t){if("function"!=typeof r.__clickOutsideHandlerProp){var e=r.getInstance();if("function"!=typeof e.props.handleClickOutside){if("function"!=typeof e.handleClickOutside)throw new Error("WrappedComponent: "+h+" lacks a handleClickOutside(event) function for processing outside click events.");e.handleClickOutside(t)}else e.props.handleClickOutside(t)}else r.__clickOutsideHandlerProp(t)},r.__getComponentNode=function(){var t=r.getInstance();return e&&"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef()(t):"function"==typeof t.setClickOutsideRef?t.setClickOutsideRef():Object(i.findDOMNode)(t)},r.enableOnClickOutside=function(){if("undefined"!=typeof document&&!l[r._uid]){void 0===a&&(a=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,e),window.removeEventListener("testPassiveEventSupport",n,e),t}}()),l[r._uid]=!0;var t=r.props.eventTypes;t.forEach||(t=[t]),c[r._uid]=function(t){var e;null!==r.componentNode&&(r.props.preventDefault&&t.preventDefault(),r.props.stopPropagation&&t.stopPropagation(),r.props.excludeScrollbar&&(e=t,document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY)||function(t,e,n){if(t===e)return!0;for(;t.parentNode;){if(o(t,e,n))return!0;t=t.parentNode}return t}(t.target,r.componentNode,r.props.outsideClickIgnoreClass)===document&&r.__outsideClickHandler(t))},t.forEach((function(t){document.addEventListener(t,c[r._uid],p(r,t))}))}},r.disableOnClickOutside=function(){delete l[r._uid];var t=c[r._uid];if(t&&"undefined"!=typeof document){var e=r.props.eventTypes;e.forEach||(e=[e]),e.forEach((function(e){return document.removeEventListener(e,t,p(r,e))})),delete c[r._uid]}},r.getRef=function(t){return r.instanceRef=t},r._uid=u(),r}f=n,(s=d).prototype=Object.create(f.prototype),s.prototype.constructor=s,s.__proto__=f;var m=d.prototype;return m.getInstance=function(){if(!t.prototype.isReactComponent)return this;var e=this.instanceRef;return e.getInstance?e.getInstance():e},m.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var t=this.getInstance();if(e&&"function"==typeof e.handleClickOutside&&(this.__clickOutsideHandlerProp=e.handleClickOutside(t),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+h+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},m.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},m.componentWillUnmount=function(){this.disableOnClickOutside()},m.render=function(){var e=this.props,n=(e.excludeScrollbar,function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(e,["excludeScrollbar"]));return t.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,Object(r.createElement)(t,n)},d}(r.Component),n.displayName="OnClickOutside("+h+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:e&&e.excludeScrollbar||!1,outsideClickIgnoreClass:f,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return t.getClass?t.getClass():t},s}},function(t,e,n){"use strict";n.d(e,"c",(function(){return lt})),n.d(e,"b",(function(){return fe})),n.d(e,"a",(function(){return be})),n.d(e,"d",(function(){return Se}));var r=n(36);function i(t,e){if(!t)throw new Error(e)}function o(t,e,n=1/0){if(!(e<=t&&t<=n))throw new RangeError(`Value must be within [${e}, ${n}], got: ${t}`)}function s(t){t.isOffline||"running"===t.state||u('The AudioContext is "suspended". Invoke Tone.start() from a user action to start the audio.')}let a=console;function u(...t){a.warn(...t)}function c(t){return void 0===t}function l(t){return!c(t)}function h(t){return"number"==typeof t}function f(t){return"[object Object]"===Object.prototype.toString.call(t)&&t.constructor===Object}function p(t){return"boolean"==typeof t}function d(t){return Array.isArray(t)}function m(t){return"string"==typeof t}function v(t){return m(t)&&/^([a-g]{1}(?:b|#|x|bb)?)(-?[0-9]+)/i.test(t)}const y="object"==typeof self?self:null,g=y&&(y.hasOwnProperty("AudioContext")||y.hasOwnProperty("webkitAudioContext"));function b(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function _(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))}class w{constructor(t,e,n){this._callback=t,this._type=e,this._updateInterval=n,this._createClock()}_createWorker(){const t=new Blob([`\n\t\t\t// the initial timeout time\n\t\t\tlet timeoutTime = ${(1e3*this._updateInterval).toFixed(1)};\n\t\t\t// onmessage callback\n\t\t\tself.onmessage = function(msg){\n\t\t\t\ttimeoutTime = parseInt(msg.data);\n\t\t\t};\n\t\t\t// the tick function which posts a message\n\t\t\t// and schedules a new tick\n\t\t\tfunction tick(){\n\t\t\t\tsetTimeout(tick, timeoutTime);\n\t\t\t\tself.postMessage('tick');\n\t\t\t}\n\t\t\t// call tick initially\n\t\t\ttick();\n\t\t\t`],{type:"text/javascript"}),e=URL.createObjectURL(t),n=new Worker(e);n.onmessage=this._callback.bind(this),this._worker=n}_createTimeout(){this._timeout=setTimeout(()=>{this._createTimeout(),this._callback()},1e3*this._updateInterval)}_createClock(){if("worker"===this._type)try{this._createWorker()}catch(t){this._type="timeout",this._createClock()}else"timeout"===this._type&&this._createTimeout()}_disposeClock(){this._timeout&&(clearTimeout(this._timeout),this._timeout=0),this._worker&&(this._worker.terminate(),this._worker.onmessage=null)}get updateInterval(){return this._updateInterval}set updateInterval(t){this._updateInterval=Math.max(t,128/44100),"worker"===this._type&&this._worker.postMessage(Math.max(1e3*t,1))}get type(){return this._type}set type(t){this._disposeClock(),this._type=t,this._createClock()}dispose(){this._disposeClock()}}function x(t){return Object(r.isAnyAudioParam)(t)}function O(t){return Object(r.isAnyAudioNode)(t)}function T(t){return Object(r.isAnyOfflineAudioContext)(t)}function S(t){return Object(r.isAnyAudioContext)(t)}function k(t){return t instanceof AudioBuffer}function C(t,e){return"value"===t||x(e)||O(e)||k(e)}function E(t,...e){if(!e.length)return t;const n=e.shift();if(f(t)&&f(n))for(const e in n)C(e,n[e])?t[e]=n[e]:f(n[e])?(t[e]||Object.assign(t,{[e]:{}}),E(t[e],n[e])):Object.assign(t,{[e]:n[e]});return E(t,...e)}function A(t,e,n=[],r){const i={},o=Array.from(e);if(f(o[0])&&r&&!Reflect.has(o[0],r)){Object.keys(o[0]).some(e=>Reflect.has(t,e))||(E(i,{[r]:o[0]}),n.splice(n.indexOf(r),1),o.shift())}if(1===o.length&&f(o[0]))E(i,o[0]);else for(let t=0;t<n.length;t++)l(o[t])&&(i[n[t]]=o[t]);return E(t,i)}function P(t,e){return c(t)?e:t}function j(t,e){return e.forEach(e=>{Reflect.has(t,e)&&delete t[e]}),t}class I{constructor(){this.debug=!1,this._wasDisposed=!1}static getDefaults(){return{}}log(...t){(this.debug||y&&this.toString()===y.TONE_DEBUG_CLASS)&&function(...t){a.log(...t)}(this,...t)}dispose(){return this._wasDisposed=!0,this}get disposed(){return this._wasDisposed}toString(){return this.name}}I.version="14.7.39";function M(t,e){return t>e+1e-6}function D(t,e){return M(t,e)||R(t,e)}function N(t,e){return t+1e-6<e}function R(t,e){return Math.abs(t-e)<1e-6}function F(t,e,n){return Math.max(Math.min(t,n),e)}class L extends I{constructor(){super(),this.name="Timeline",this._timeline=[];const t=A(L.getDefaults(),arguments,["memory"]);this.memory=t.memory,this.increasing=t.increasing}static getDefaults(){return{memory:1/0,increasing:!1}}get length(){return this._timeline.length}add(t){if(i(Reflect.has(t,"time"),"Timeline: events must have a time attribute"),t.time=t.time.valueOf(),this.increasing&&this.length){const e=this._timeline[this.length-1];i(D(t.time,e.time),"The time must be greater than or equal to the last scheduled time"),this._timeline.push(t)}else{const e=this._search(t.time);this._timeline.splice(e+1,0,t)}if(this.length>this.memory){const t=this.length-this.memory;this._timeline.splice(0,t)}return this}remove(t){const e=this._timeline.indexOf(t);return-1!==e&&this._timeline.splice(e,1),this}get(t,e="time"){const n=this._search(t,e);return-1!==n?this._timeline[n]:null}peek(){return this._timeline[0]}shift(){return this._timeline.shift()}getAfter(t,e="time"){const n=this._search(t,e);return n+1<this._timeline.length?this._timeline[n+1]:null}getBefore(t){const e=this._timeline.length;if(e>0&&this._timeline[e-1].time<t)return this._timeline[e-1];const n=this._search(t);return n-1>=0?this._timeline[n-1]:null}cancel(t){if(this._timeline.length>1){let e=this._search(t);if(e>=0)if(R(this._timeline[e].time,t)){for(let n=e;n>=0&&R(this._timeline[n].time,t);n--)e=n;this._timeline=this._timeline.slice(0,e)}else this._timeline=this._timeline.slice(0,e+1);else this._timeline=[]}else 1===this._timeline.length&&D(this._timeline[0].time,t)&&(this._timeline=[]);return this}cancelBefore(t){const e=this._search(t);return e>=0&&(this._timeline=this._timeline.slice(e+1)),this}previousEvent(t){const e=this._timeline.indexOf(t);return e>0?this._timeline[e-1]:null}_search(t,e="time"){if(0===this._timeline.length)return-1;let n=0;const r=this._timeline.length;let i=r;if(r>0&&this._timeline[r-1][e]<=t)return r-1;for(;n<i;){let r=Math.floor(n+(i-n)/2);const o=this._timeline[r],s=this._timeline[r+1];if(R(o[e],t)){for(let n=r;n<this._timeline.length;n++){if(!R(this._timeline[n][e],t))break;r=n}return r}if(N(o[e],t)&&M(s[e],t))return r;M(o[e],t)?i=r:n=r+1}return-1}_iterate(t,e=0,n=this._timeline.length-1){this._timeline.slice(e,n+1).forEach(t)}forEach(t){return this._iterate(t),this}forEachBefore(t,e){const n=this._search(t);return-1!==n&&this._iterate(e,0,n),this}forEachAfter(t,e){const n=this._search(t);return this._iterate(e,n+1),this}forEachBetween(t,e,n){let r=this._search(t),i=this._search(e);return-1!==r&&-1!==i?(this._timeline[r].time!==t&&(r+=1),this._timeline[i].time===e&&(i-=1),this._iterate(n,r,i)):-1===r&&this._iterate(n,0,i),this}forEachFrom(t,e){let n=this._search(t);for(;n>=0&&this._timeline[n].time>=t;)n--;return this._iterate(e,n+1),this}forEachAtTime(t,e){const n=this._search(t);if(-1!==n&&R(this._timeline[n].time,t)){let r=n;for(let e=n;e>=0&&R(this._timeline[e].time,t);e--)r=e;this._iterate(t=>{e(t)},r,n)}return this}dispose(){return super.dispose(),this._timeline=[],this}}const V=[];function z(t){V.push(t)}const B=[];function q(t){B.push(t)}class U extends I{constructor(){super(...arguments),this.name="Emitter"}on(t,e){return t.split(/\W+/).forEach(t=>{c(this._events)&&(this._events={}),this._events.hasOwnProperty(t)||(this._events[t]=[]),this._events[t].push(e)}),this}once(t,e){const n=(...r)=>{e(...r),this.off(t,n)};return this.on(t,n),this}off(t,e){return t.split(/\W+/).forEach(n=>{if(c(this._events)&&(this._events={}),this._events.hasOwnProperty(t))if(c(e))this._events[t]=[];else{const n=this._events[t];for(let t=0;t<n.length;t++)n[t]===e&&n.splice(t,1)}}),this}emit(t,...e){if(this._events&&this._events.hasOwnProperty(t)){const n=this._events[t].slice(0);for(let t=0,r=n.length;t<r;t++)n[t].apply(this,e)}return this}static mixin(t){["on","once","off","emit"].forEach(e=>{const n=Object.getOwnPropertyDescriptor(U.prototype,e);Object.defineProperty(t.prototype,e,n)})}dispose(){return super.dispose(),this._events=void 0,this}}class W extends U{constructor(){super(...arguments),this.isOffline=!1}}class $ extends W{constructor(){super(),this.name="Context",this._constants=new Map,this._timeouts=new L,this._timeoutIds=0,this._initialized=!1,this.isOffline=!1,this._workletModules=new Map;const t=A($.getDefaults(),arguments,["context"]);t.context?this._context=t.context:this._context=function(t){return new r.AudioContext(t)}({latencyHint:t.latencyHint}),this._ticker=new w(this.emit.bind(this,"tick"),t.clockSource,t.updateInterval),this.on("tick",this._timeoutLoop.bind(this)),this._context.onstatechange=()=>{this.emit("statechange",this.state)},this._setLatencyHint(t.latencyHint),this.lookAhead=t.lookAhead}static getDefaults(){return{clockSource:"worker",latencyHint:"interactive",lookAhead:.1,updateInterval:.05}}initialize(){var t;return this._initialized||(t=this,V.forEach(e=>e(t)),this._initialized=!0),this}createAnalyser(){return this._context.createAnalyser()}createOscillator(){return this._context.createOscillator()}createBufferSource(){return this._context.createBufferSource()}createBiquadFilter(){return this._context.createBiquadFilter()}createBuffer(t,e,n){return this._context.createBuffer(t,e,n)}createChannelMerger(t){return this._context.createChannelMerger(t)}createChannelSplitter(t){return this._context.createChannelSplitter(t)}createConstantSource(){return this._context.createConstantSource()}createConvolver(){return this._context.createConvolver()}createDelay(t){return this._context.createDelay(t)}createDynamicsCompressor(){return this._context.createDynamicsCompressor()}createGain(){return this._context.createGain()}createIIRFilter(t,e){return this._context.createIIRFilter(t,e)}createPanner(){return this._context.createPanner()}createPeriodicWave(t,e,n){return this._context.createPeriodicWave(t,e,n)}createStereoPanner(){return this._context.createStereoPanner()}createWaveShaper(){return this._context.createWaveShaper()}createMediaStreamSource(t){i(S(this._context),"Not available if OfflineAudioContext");return this._context.createMediaStreamSource(t)}createMediaStreamDestination(){i(S(this._context),"Not available if OfflineAudioContext");return this._context.createMediaStreamDestination()}decodeAudioData(t){return this._context.decodeAudioData(t)}get currentTime(){return this._context.currentTime}get state(){return this._context.state}get sampleRate(){return this._context.sampleRate}get listener(){return this.initialize(),this._listener}set listener(t){i(!this._initialized,"The listener cannot be set after initialization."),this._listener=t}get transport(){return this.initialize(),this._transport}set transport(t){i(!this._initialized,"The transport cannot be set after initialization."),this._transport=t}get draw(){return this.initialize(),this._draw}set draw(t){i(!this._initialized,"Draw cannot be set after initialization."),this._draw=t}get destination(){return this.initialize(),this._destination}set destination(t){i(!this._initialized,"The destination cannot be set after initialization."),this._destination=t}createAudioWorkletNode(t,e){return function(t,e,n){return i(l(r.AudioWorkletNode),"This node only works in a secure context (https or localhost)"),new r.AudioWorkletNode(t,e,n)}(this.rawContext,t,e)}addAudioWorkletModule(t,e){return _(this,void 0,void 0,(function*(){i(l(this.rawContext.audioWorklet),"AudioWorkletNode is only available in a secure context (https or localhost)"),this._workletModules.has(e)||this._workletModules.set(e,this.rawContext.audioWorklet.addModule(t)),yield this._workletModules.get(e)}))}workletsAreReady(){return _(this,void 0,void 0,(function*(){const t=[];this._workletModules.forEach(e=>t.push(e)),yield Promise.all(t)}))}get updateInterval(){return this._ticker.updateInterval}set updateInterval(t){this._ticker.updateInterval=t}get clockSource(){return this._ticker.type}set clockSource(t){this._ticker.type=t}get latencyHint(){return this._latencyHint}_setLatencyHint(t){let e=0;if(this._latencyHint=t,m(t))switch(t){case"interactive":e=.1;break;case"playback":e=.5;break;case"balanced":e=.25}this.lookAhead=e,this.updateInterval=e/2}get rawContext(){return this._context}now(){return this._context.currentTime+this.lookAhead}immediate(){return this._context.currentTime}resume(){return"suspended"===this._context.state&&S(this._context)?this._context.resume():Promise.resolve()}close(){return _(this,void 0,void 0,(function*(){var t;S(this._context)&&(yield this._context.close()),this._initialized&&(t=this,B.forEach(e=>e(t)))}))}getConstant(t){if(this._constants.has(t))return this._constants.get(t);{const e=this._context.createBuffer(1,128,this._context.sampleRate),n=e.getChannelData(0);for(let e=0;e<n.length;e++)n[e]=t;const r=this._context.createBufferSource();return r.channelCount=1,r.channelCountMode="explicit",r.buffer=e,r.loop=!0,r.start(0),this._constants.set(t,r),r}}dispose(){return super.dispose(),this._ticker.dispose(),this._timeouts.dispose(),Object.keys(this._constants).map(t=>this._constants[t].disconnect()),this}_timeoutLoop(){const t=this.now();let e=this._timeouts.peek();for(;this._timeouts.length&&e&&e.time<=t;)e.callback(),this._timeouts.shift(),e=this._timeouts.peek()}setTimeout(t,e){this._timeoutIds++;const n=this.now();return this._timeouts.add({callback:t,id:this._timeoutIds,time:n+e}),this._timeoutIds}clearTimeout(t){return this._timeouts.forEach(e=>{e.id===t&&this._timeouts.remove(e)}),this}clearInterval(t){return this.clearTimeout(t)}setInterval(t,e){const n=++this._timeoutIds,r=()=>{const i=this.now();this._timeouts.add({callback:()=>{t(),r()},id:n,time:i+e})};return r(),n}}function H(t,e){d(e)?e.forEach(e=>H(t,e)):Object.defineProperty(t,e,{enumerable:!0,writable:!1})}function K(t,e){d(e)?e.forEach(e=>K(t,e)):Object.defineProperty(t,e,{writable:!0})}const G=()=>{};class Y extends I{constructor(){super(),this.name="ToneAudioBuffer",this.onload=G;const t=A(Y.getDefaults(),arguments,["url","onload","onerror"]);this.reverse=t.reverse,this.onload=t.onload,t.url&&k(t.url)||t.url instanceof Y?this.set(t.url):m(t.url)&&this.load(t.url).catch(t.onerror)}static getDefaults(){return{onerror:G,onload:G,reverse:!1}}get sampleRate(){return this._buffer?this._buffer.sampleRate:Z().sampleRate}set(t){return t instanceof Y?t.loaded?this._buffer=t.get():t.onload=()=>{this.set(t),this.onload(this)}:this._buffer=t,this._reversed&&this._reverse(),this}get(){return this._buffer}load(t){return _(this,void 0,void 0,(function*(){const e=Y.load(t).then(t=>{this.set(t),this.onload(this)});Y.downloads.push(e);try{yield e}finally{const t=Y.downloads.indexOf(e);Y.downloads.splice(t,1)}return this}))}dispose(){return super.dispose(),this._buffer=void 0,this}fromArray(t){const e=d(t)&&t[0].length>0,n=e?t.length:1,r=e?t[0].length:t.length,i=Z(),o=i.createBuffer(n,r,i.sampleRate),s=e||1!==n?t:[t];for(let t=0;t<n;t++)o.copyToChannel(s[t],t);return this._buffer=o,this}toMono(t){if(h(t))this.fromArray(this.toArray(t));else{let t=new Float32Array(this.length);const e=this.numberOfChannels;for(let n=0;n<e;n++){const e=this.toArray(n);for(let n=0;n<e.length;n++)t[n]+=e[n]}t=t.map(t=>t/e),this.fromArray(t)}return this}toArray(t){if(h(t))return this.getChannelData(t);if(1===this.numberOfChannels)return this.toArray(0);{const t=[];for(let e=0;e<this.numberOfChannels;e++)t[e]=this.getChannelData(e);return t}}getChannelData(t){return this._buffer?this._buffer.getChannelData(t):new Float32Array(0)}slice(t,e=this.duration){const n=Math.floor(t*this.sampleRate),r=Math.floor(e*this.sampleRate);i(n<r,"The start time must be less than the end time");const o=r-n,s=Z().createBuffer(this.numberOfChannels,o,this.sampleRate);for(let t=0;t<this.numberOfChannels;t++)s.copyToChannel(this.getChannelData(t).subarray(n,r),t);return new Y(s)}_reverse(){if(this.loaded)for(let t=0;t<this.numberOfChannels;t++)this.getChannelData(t).reverse();return this}get loaded(){return this.length>0}get duration(){return this._buffer?this._buffer.duration:0}get length(){return this._buffer?this._buffer.length:0}get numberOfChannels(){return this._buffer?this._buffer.numberOfChannels:0}get reverse(){return this._reversed}set reverse(t){this._reversed!==t&&(this._reversed=t,this._reverse())}static fromArray(t){return(new Y).fromArray(t)}static fromUrl(t){return _(this,void 0,void 0,(function*(){const e=new Y;return yield e.load(t)}))}static load(t){return _(this,void 0,void 0,(function*(){const e=t.match(/\[(.+\|?)+\]$/);if(e){const n=e[1].split("|");let r=n[0];for(const t of n)if(Y.supportsType(t)){r=t;break}t=t.replace(e[0],r)}const n=""===Y.baseUrl||Y.baseUrl.endsWith("/")?Y.baseUrl:Y.baseUrl+"/",r=yield fetch(n+t);if(!r.ok)throw new Error("could not load url: "+t);const i=yield r.arrayBuffer();return yield Z().decodeAudioData(i)}))}static supportsType(t){const e=t.split("."),n=e[e.length-1];return""!==document.createElement("audio").canPlayType("audio/"+n)}static loaded(){return _(this,void 0,void 0,(function*(){for(yield Promise.resolve();Y.downloads.length;)yield Y.downloads[0]}))}}Y.baseUrl="",Y.downloads=[];class X extends ${constructor(){var t,e,n;super({clockSource:"offline",context:T(arguments[0])?arguments[0]:(t=arguments[0],e=arguments[1]*arguments[2],n=arguments[2],new r.OfflineAudioContext(t,e,n)),lookAhead:0,updateInterval:T(arguments[0])?128/arguments[0].sampleRate:128/arguments[2]}),this.name="OfflineContext",this._currentTime=0,this.isOffline=!0,this._duration=T(arguments[0])?arguments[0].length/arguments[0].sampleRate:arguments[1]}now(){return this._currentTime}get currentTime(){return this._currentTime}_renderClock(t){return _(this,void 0,void 0,(function*(){let e=0;for(;this._duration-this._currentTime>=0;){this.emit("tick"),this._currentTime+=128/this.sampleRate,e++;const n=Math.floor(this.sampleRate/128);t&&e%n==0&&(yield new Promise(t=>setTimeout(t,1)))}}))}render(t=!0){return _(this,void 0,void 0,(function*(){yield this.workletsAreReady(),yield this._renderClock(t);const e=yield this._context.startRendering();return new Y(e)}))}close(){return Promise.resolve()}}const J=new class extends W{constructor(){super(...arguments),this.lookAhead=0,this.latencyHint=0,this.isOffline=!1}createAnalyser(){return{}}createOscillator(){return{}}createBufferSource(){return{}}createBiquadFilter(){return{}}createBuffer(t,e,n){return{}}createChannelMerger(t){return{}}createChannelSplitter(t){return{}}createConstantSource(){return{}}createConvolver(){return{}}createDelay(t){return{}}createDynamicsCompressor(){return{}}createGain(){return{}}createIIRFilter(t,e){return{}}createPanner(){return{}}createPeriodicWave(t,e,n){return{}}createStereoPanner(){return{}}createWaveShaper(){return{}}createMediaStreamSource(t){return{}}createMediaStreamDestination(){return{}}decodeAudioData(t){return Promise.resolve({})}createAudioWorkletNode(t,e){return{}}get rawContext(){return{}}addAudioWorkletModule(t,e){return _(this,void 0,void 0,(function*(){return Promise.resolve()}))}resume(){return Promise.resolve()}setTimeout(t,e){return 0}clearTimeout(t){return this}setInterval(t,e){return 0}clearInterval(t){return this}getConstant(t){return{}}get currentTime(){return 0}get state(){return{}}get sampleRate(){return 0}get listener(){return{}}get transport(){return{}}get draw(){return{}}set draw(t){}get destination(){return{}}set destination(t){}now(){return 0}immediate(){return 0}};let Q=J;function Z(){return Q===J&&g&&tt(new $),Q}function tt(t){Q=S(t)?new $(t):T(t)?new X(t):t}if(y&&!y.TONE_SILENCE_LOGGING){let t="v";0;const e=` * Tone.js ${t}14.7.39 * `;console.log("%c"+e,"background: #000; color: #fff")}function et(t){return Math.pow(10,t/20)}function nt(t){return Math.log(t)/Math.LN10*20}function rt(t){return Math.pow(2,t/12)}let it=440;function ot(t){return Math.round(st(t))}function st(t){return 69+12*Math.log2(t/it)}function at(t){return it*Math.pow(2,(t-69)/12)}class ut extends I{constructor(t,e,n){super(),this.defaultUnits="s",this._val=e,this._units=n,this.context=t,this._expressions=this._getExpressions()}_getExpressions(){return{hz:{method:t=>this._frequencyToUnits(parseFloat(t)),regexp:/^(\d+(?:\.\d+)?)hz$/i},i:{method:t=>this._ticksToUnits(parseInt(t,10)),regexp:/^(\d+)i$/i},m:{method:t=>this._beatsToUnits(parseInt(t,10)*this._getTimeSignature()),regexp:/^(\d+)m$/i},n:{method:(t,e)=>{const n=parseInt(t,10),r="."===e?1.5:1;return 1===n?this._beatsToUnits(this._getTimeSignature())*r:this._beatsToUnits(4/n)*r},regexp:/^(\d+)n(\.?)$/i},number:{method:t=>this._expressions[this.defaultUnits].method.call(this,t),regexp:/^(\d+(?:\.\d+)?)$/},s:{method:t=>this._secondsToUnits(parseFloat(t)),regexp:/^(\d+(?:\.\d+)?)s$/},samples:{method:t=>parseInt(t,10)/this.context.sampleRate,regexp:/^(\d+)samples$/},t:{method:t=>{const e=parseInt(t,10);return this._beatsToUnits(8/(3*Math.floor(e)))},regexp:/^(\d+)t$/i},tr:{method:(t,e,n)=>{let r=0;return t&&"0"!==t&&(r+=this._beatsToUnits(this._getTimeSignature()*parseFloat(t))),e&&"0"!==e&&(r+=this._beatsToUnits(parseFloat(e))),n&&"0"!==n&&(r+=this._beatsToUnits(parseFloat(n)/4)),r},regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?$/}}}valueOf(){if(this._val instanceof ut&&this.fromType(this._val),c(this._val))return this._noArg();if(m(this._val)&&c(this._units)){for(const t in this._expressions)if(this._expressions[t].regexp.test(this._val.trim())){this._units=t;break}}else if(f(this._val)){let t=0;for(const e in this._val)if(l(this._val[e])){const n=this._val[e];t+=new this.constructor(this.context,e).valueOf()*n}return t}if(l(this._units)){const t=this._expressions[this._units],e=this._val.toString().trim().match(t.regexp);return e?t.method.apply(this,e.slice(1)):t.method.call(this,this._val)}return m(this._val)?parseFloat(this._val):this._val}_frequencyToUnits(t){return 1/t}_beatsToUnits(t){return 60/this._getBpm()*t}_secondsToUnits(t){return t}_ticksToUnits(t){return t*this._beatsToUnits(1)/this._getPPQ()}_noArg(){return this._now()}_getBpm(){return this.context.transport.bpm.value}_getTimeSignature(){return this.context.transport.timeSignature}_getPPQ(){return this.context.transport.PPQ}fromType(t){switch(this._units=void 0,this.defaultUnits){case"s":this._val=t.toSeconds();break;case"i":this._val=t.toTicks();break;case"hz":this._val=t.toFrequency();break;case"midi":this._val=t.toMidi()}return this}toFrequency(){return 1/this.toSeconds()}toSamples(){return this.toSeconds()*this.context.sampleRate}toMilliseconds(){return 1e3*this.toSeconds()}}class ct extends ut{constructor(){super(...arguments),this.name="TimeClass"}_getExpressions(){return Object.assign(super._getExpressions(),{now:{method:t=>this._now()+new this.constructor(this.context,t).valueOf(),regexp:/^\+(.+)/},quantize:{method:t=>{const e=new ct(this.context,t).valueOf();return this._secondsToUnits(this.context.transport.nextSubdivision(e))},regexp:/^@(.+)/}})}quantize(t,e=1){const n=new this.constructor(this.context,t).valueOf(),r=this.valueOf();return r+(Math.round(r/n)*n-r)*e}toNotation(){const t=this.toSeconds(),e=["1m"];for(let t=1;t<9;t++){const n=Math.pow(2,t);e.push(n+"n."),e.push(n+"n"),e.push(n+"t")}e.push("0");let n=e[0],r=new ct(this.context,e[0]).toSeconds();return e.forEach(e=>{const i=new ct(this.context,e).toSeconds();Math.abs(i-t)<Math.abs(r-t)&&(n=e,r=i)}),n}toBarsBeatsSixteenths(){const t=this._beatsToUnits(1);let e=this.valueOf()/t;e=parseFloat(e.toFixed(4));const n=Math.floor(e/this._getTimeSignature());let r=e%1*4;e=Math.floor(e)%this._getTimeSignature();const i=r.toString();i.length>3&&(r=parseFloat(parseFloat(i).toFixed(3)));return[n,e,r].join(":")}toTicks(){const t=this._beatsToUnits(1),e=this.valueOf()/t;return Math.round(e*this._getPPQ())}toSeconds(){return this.valueOf()}toMidi(){return ot(this.toFrequency())}_now(){return this.context.now()}}function lt(t,e){return new ct(Z(),t,e)}class ht extends ct{constructor(){super(...arguments),this.name="Frequency",this.defaultUnits="hz"}static get A4(){return it}static set A4(t){!function(t){it=t}(t)}_getExpressions(){return Object.assign({},super._getExpressions(),{midi:{regexp:/^(\d+(?:\.\d+)?midi)/,method(t){return"midi"===this.defaultUnits?t:ht.mtof(t)}},note:{regexp:/^([a-g]{1}(?:b|#|x|bb)?)(-?[0-9]+)/i,method(t,e){const n=ft[t.toLowerCase()]+12*(parseInt(e,10)+1);return"midi"===this.defaultUnits?n:ht.mtof(n)}},tr:{regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?/,method(t,e,n){let r=1;return t&&"0"!==t&&(r*=this._beatsToUnits(this._getTimeSignature()*parseFloat(t))),e&&"0"!==e&&(r*=this._beatsToUnits(parseFloat(e))),n&&"0"!==n&&(r*=this._beatsToUnits(parseFloat(n)/4)),r}}})}transpose(t){return new ht(this.context,this.valueOf()*rt(t))}harmonize(t){return t.map(t=>this.transpose(t))}toMidi(){return ot(this.valueOf())}toNote(){const t=this.toFrequency(),e=Math.log2(t/ht.A4);let n=Math.round(12*e)+57;const r=Math.floor(n/12);r<0&&(n+=-12*r);return pt[n%12]+r.toString()}toSeconds(){return 1/super.toSeconds()}toTicks(){const t=this._beatsToUnits(1),e=this.valueOf()/t;return Math.floor(e*this._getPPQ())}_noArg(){return 0}_frequencyToUnits(t){return t}_ticksToUnits(t){return 1/(60*t/(this._getBpm()*this._getPPQ()))}_beatsToUnits(t){return 1/super._beatsToUnits(t)}_secondsToUnits(t){return 1/t}static mtof(t){return at(t)}static ftom(t){return ot(t)}}const ft={cbb:-2,cb:-1,c:0,"c#":1,cx:2,dbb:0,db:1,d:2,"d#":3,dx:4,ebb:2,eb:3,e:4,"e#":5,ex:6,fbb:3,fb:4,f:5,"f#":6,fx:7,gbb:5,gb:6,g:7,"g#":8,gx:9,abb:7,ab:8,a:9,"a#":10,ax:11,bbb:9,bb:10,b:11,"b#":12,bx:13},pt=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"];class dt extends ct{constructor(){super(...arguments),this.name="TransportTime"}_now(){return this.context.transport.seconds}}class mt extends I{constructor(){super();const t=A(mt.getDefaults(),arguments,["context"]);this.defaultContext?this.context=this.defaultContext:this.context=t.context}static getDefaults(){return{context:Z()}}now(){return this.context.currentTime+this.context.lookAhead}immediate(){return this.context.currentTime}get sampleTime(){return 1/this.context.sampleRate}get blockTime(){return 128/this.context.sampleRate}toSeconds(t){return new ct(this.context,t).toSeconds()}toFrequency(t){return new ht(this.context,t).toFrequency()}toTicks(t){return new dt(this.context,t).toTicks()}_getPartialProperties(t){const e=this.get();return Object.keys(e).forEach(n=>{c(t[n])&&delete e[n]}),e}get(){const t=this.constructor.getDefaults();return Object.keys(t).forEach(e=>{if(Reflect.has(this,e)){const n=this[e];l(n)&&l(n.value)&&l(n.setValueAtTime)?t[e]=n.value:n instanceof mt?t[e]=n._getPartialProperties(t[e]):d(n)||h(n)||m(n)||p(n)?t[e]=n:delete t[e]}}),t}set(t){return Object.keys(t).forEach(e=>{Reflect.has(this,e)&&l(this[e])&&(this[e]&&l(this[e].value)&&l(this[e].setValueAtTime)?this[e].value!==t[e]&&(this[e].value=t[e]):this[e]instanceof mt?this[e].set(t[e]):this[e]=t[e])}),this}}class vt extends L{constructor(t="stopped"){super(),this.name="StateTimeline",this._initial=t,this.setStateAtTime(this._initial,0)}getValueAtTime(t){const e=this.get(t);return null!==e?e.state:this._initial}setStateAtTime(t,e,n){return o(e,0),this.add(Object.assign({},n,{state:t,time:e})),this}getLastState(t,e){for(let n=this._search(e);n>=0;n--){const e=this._timeline[n];if(e.state===t)return e}}getNextState(t,e){const n=this._search(e);if(-1!==n)for(let e=n;e<this._timeline.length;e++){const n=this._timeline[e];if(n.state===t)return n}}}class yt extends mt{constructor(){super(A(yt.getDefaults(),arguments,["param","units","convert"])),this.name="Param",this.overridden=!1,this._minOutput=1e-7;const t=A(yt.getDefaults(),arguments,["param","units","convert"]);for(i(l(t.param)&&(x(t.param)||t.param instanceof yt),"param must be an AudioParam");!x(t.param);)t.param=t.param._param;this._swappable=!!l(t.swappable)&&t.swappable,this._swappable?(this.input=this.context.createGain(),this._param=t.param,this.input.connect(this._param)):this._param=this.input=t.param,this._events=new L(1e3),this._initialValue=this._param.defaultValue,this.units=t.units,this.convert=t.convert,this._minValue=t.minValue,this._maxValue=t.maxValue,l(t.value)&&t.value!==this._toType(this._initialValue)&&this.setValueAtTime(t.value,0)}static getDefaults(){return Object.assign(mt.getDefaults(),{convert:!0,units:"number"})}get value(){const t=this.now();return this.getValueAtTime(t)}set value(t){this.cancelScheduledValues(this.now()),this.setValueAtTime(t,this.now())}get minValue(){return l(this._minValue)?this._minValue:"time"===this.units||"frequency"===this.units||"normalRange"===this.units||"positive"===this.units||"transportTime"===this.units||"ticks"===this.units||"bpm"===this.units||"hertz"===this.units||"samples"===this.units?0:"audioRange"===this.units?-1:"decibels"===this.units?-1/0:this._param.minValue}get maxValue(){return l(this._maxValue)?this._maxValue:"normalRange"===this.units||"audioRange"===this.units?1:this._param.maxValue}_is(t,e){return this.units===e}_assertRange(t){return l(this.maxValue)&&l(this.minValue)&&o(t,this._fromType(this.minValue),this._fromType(this.maxValue)),t}_fromType(t){return this.convert&&!this.overridden?this._is(t,"time")?this.toSeconds(t):this._is(t,"decibels")?et(t):this._is(t,"frequency")?this.toFrequency(t):t:this.overridden?0:t}_toType(t){return this.convert&&"decibels"===this.units?nt(t):t}setValueAtTime(t,e){const n=this.toSeconds(e),r=this._fromType(t);return i(isFinite(r)&&isFinite(n),`Invalid argument(s) to setValueAtTime: ${JSON.stringify(t)}, ${JSON.stringify(e)}`),this._assertRange(r),this.log(this.units,"setValueAtTime",t,n),this._events.add({time:n,type:"setValueAtTime",value:r}),this._param.setValueAtTime(r,n),this}getValueAtTime(t){const e=Math.max(this.toSeconds(t),0),n=this._events.getAfter(e),r=this._events.get(e);let i=this._initialValue;if(null===r)i=this._initialValue;else if("setTargetAtTime"!==r.type||null!==n&&"setValueAtTime"!==n.type)if(null===n)i=r.value;else if("linearRampToValueAtTime"===n.type||"exponentialRampToValueAtTime"===n.type){let t=r.value;if("setTargetAtTime"===r.type){const e=this._events.getBefore(r.time);t=null===e?this._initialValue:e.value}i="linearRampToValueAtTime"===n.type?this._linearInterpolate(r.time,t,n.time,n.value,e):this._exponentialInterpolate(r.time,t,n.time,n.value,e)}else i=r.value;else{const t=this._events.getBefore(r.time);let n;n=null===t?this._initialValue:t.value,"setTargetAtTime"===r.type&&(i=this._exponentialApproach(r.time,n,r.value,r.constant,e))}return this._toType(i)}setRampPoint(t){t=this.toSeconds(t);let e=this.getValueAtTime(t);return this.cancelAndHoldAtTime(t),0===this._fromType(e)&&(e=this._toType(this._minOutput)),this.setValueAtTime(e,t),this}linearRampToValueAtTime(t,e){const n=this._fromType(t),r=this.toSeconds(e);return i(isFinite(n)&&isFinite(r),`Invalid argument(s) to linearRampToValueAtTime: ${JSON.stringify(t)}, ${JSON.stringify(e)}`),this._assertRange(n),this._events.add({time:r,type:"linearRampToValueAtTime",value:n}),this.log(this.units,"linearRampToValueAtTime",t,r),this._param.linearRampToValueAtTime(n,r),this}exponentialRampToValueAtTime(t,e){let n=this._fromType(t);n=Math.max(this._minOutput,n),this._assertRange(n);const r=this.toSeconds(e);return i(isFinite(n)&&isFinite(r),`Invalid argument(s) to exponentialRampToValueAtTime: ${JSON.stringify(t)}, ${JSON.stringify(e)}`),this._events.add({time:r,type:"exponentialRampToValueAtTime",value:n}),this.log(this.units,"exponentialRampToValueAtTime",t,r),this._param.exponentialRampToValueAtTime(n,r),this}exponentialRampTo(t,e,n){return n=this.toSeconds(n),this.setRampPoint(n),this.exponentialRampToValueAtTime(t,n+this.toSeconds(e)),this}linearRampTo(t,e,n){return n=this.toSeconds(n),this.setRampPoint(n),this.linearRampToValueAtTime(t,n+this.toSeconds(e)),this}targetRampTo(t,e,n){return n=this.toSeconds(n),this.setRampPoint(n),this.exponentialApproachValueAtTime(t,n,e),this}exponentialApproachValueAtTime(t,e,n){e=this.toSeconds(e),n=this.toSeconds(n);const r=Math.log(n+1)/Math.log(200);return this.setTargetAtTime(t,e,r),this.cancelAndHoldAtTime(e+.9*n),this.linearRampToValueAtTime(t,e+n),this}setTargetAtTime(t,e,n){const r=this._fromType(t);i(isFinite(n)&&n>0,"timeConstant must be a number greater than 0");const o=this.toSeconds(e);return this._assertRange(r),i(isFinite(r)&&isFinite(o),`Invalid argument(s) to setTargetAtTime: ${JSON.stringify(t)}, ${JSON.stringify(e)}`),this._events.add({constant:n,time:o,type:"setTargetAtTime",value:r}),this.log(this.units,"setTargetAtTime",t,o,n),this._param.setTargetAtTime(r,o,n),this}setValueCurveAtTime(t,e,n,r=1){n=this.toSeconds(n),e=this.toSeconds(e);const i=this._fromType(t[0])*r;this.setValueAtTime(this._toType(i),e);const o=n/(t.length-1);for(let n=1;n<t.length;n++){const i=this._fromType(t[n])*r;this.linearRampToValueAtTime(this._toType(i),e+n*o)}return this}cancelScheduledValues(t){const e=this.toSeconds(t);return i(isFinite(e),"Invalid argument to cancelScheduledValues: "+JSON.stringify(t)),this._events.cancel(e),this._param.cancelScheduledValues(e),this.log(this.units,"cancelScheduledValues",e),this}cancelAndHoldAtTime(t){const e=this.toSeconds(t),n=this._fromType(this.getValueAtTime(e));i(isFinite(e),"Invalid argument to cancelAndHoldAtTime: "+JSON.stringify(t)),this.log(this.units,"cancelAndHoldAtTime",e,"value="+n);const r=this._events.get(e),o=this._events.getAfter(e);return r&&R(r.time,e)?o?(this._param.cancelScheduledValues(o.time),this._events.cancel(o.time)):(this._param.cancelAndHoldAtTime(e),this._events.cancel(e+this.sampleTime)):o&&(this._param.cancelScheduledValues(o.time),this._events.cancel(o.time),"linearRampToValueAtTime"===o.type?this.linearRampToValueAtTime(this._toType(n),e):"exponentialRampToValueAtTime"===o.type&&this.exponentialRampToValueAtTime(this._toType(n),e)),this._events.add({time:e,type:"setValueAtTime",value:n}),this._param.setValueAtTime(n,e),this}rampTo(t,e=.1,n){return"frequency"===this.units||"bpm"===this.units||"decibels"===this.units?this.exponentialRampTo(t,e,n):this.linearRampTo(t,e,n),this}apply(t){const e=this.context.currentTime;t.setValueAtTime(this.getValueAtTime(e),e);const n=this._events.get(e);if(n&&"setTargetAtTime"===n.type){const r=this._events.getAfter(n.time),i=r?r.time:e+2,o=(i-e)/10;for(let n=e;n<i;n+=o)t.linearRampToValueAtTime(this.getValueAtTime(n),n)}return this._events.forEachAfter(this.context.currentTime,e=>{"cancelScheduledValues"===e.type?t.cancelScheduledValues(e.time):"setTargetAtTime"===e.type?t.setTargetAtTime(e.value,e.time,e.constant):t[e.type](e.value,e.time)}),this}setParam(t){i(this._swappable,"The Param must be assigned as 'swappable' in the constructor");const e=this.input;return e.disconnect(this._param),this.apply(t),this._param=t,e.connect(this._param),this}dispose(){return super.dispose(),this._events.dispose(),this}get defaultValue(){return this._toType(this._param.defaultValue)}_exponentialApproach(t,e,n,r,i){return n+(e-n)*Math.exp(-(i-t)/r)}_linearInterpolate(t,e,n,r,i){return e+(i-t)/(n-t)*(r-e)}_exponentialInterpolate(t,e,n,r,i){return e*Math.pow(r/e,(i-t)/(n-t))}}class gt extends mt{constructor(){super(...arguments),this.name="ToneAudioNode",this._internalChannels=[]}get numberOfInputs(){return l(this.input)?x(this.input)||this.input instanceof yt?1:this.input.numberOfInputs:0}get numberOfOutputs(){return l(this.output)?this.output.numberOfOutputs:0}_isAudioNode(t){return l(t)&&(t instanceof gt||O(t))}_getInternalNodes(){const t=this._internalChannels.slice(0);return this._isAudioNode(this.input)&&t.push(this.input),this._isAudioNode(this.output)&&this.input!==this.output&&t.push(this.output),t}_setChannelProperties(t){this._getInternalNodes().forEach(e=>{e.channelCount=t.channelCount,e.channelCountMode=t.channelCountMode,e.channelInterpretation=t.channelInterpretation})}_getChannelProperties(){const t=this._getInternalNodes();i(t.length>0,"ToneAudioNode does not have any internal nodes");const e=t[0];return{channelCount:e.channelCount,channelCountMode:e.channelCountMode,channelInterpretation:e.channelInterpretation}}get channelCount(){return this._getChannelProperties().channelCount}set channelCount(t){const e=this._getChannelProperties();this._setChannelProperties(Object.assign(e,{channelCount:t}))}get channelCountMode(){return this._getChannelProperties().channelCountMode}set channelCountMode(t){const e=this._getChannelProperties();this._setChannelProperties(Object.assign(e,{channelCountMode:t}))}get channelInterpretation(){return this._getChannelProperties().channelInterpretation}set channelInterpretation(t){const e=this._getChannelProperties();this._setChannelProperties(Object.assign(e,{channelInterpretation:t}))}connect(t,e=0,n=0){return _t(this,t,e,n),this}toDestination(){return this.connect(this.context.destination),this}toMaster(){return u("toMaster() has been renamed toDestination()"),this.toDestination()}disconnect(t,e=0,n=0){return wt(this,t,e,n),this}chain(...t){return bt(this,...t),this}fan(...t){return t.forEach(t=>this.connect(t)),this}dispose(){return super.dispose(),l(this.input)&&(this.input instanceof gt?this.input.dispose():O(this.input)&&this.input.disconnect()),l(this.output)&&(this.output instanceof gt?this.output.dispose():O(this.output)&&this.output.disconnect()),this._internalChannels=[],this}}function bt(...t){const e=t.shift();t.reduce((t,e)=>(t instanceof gt?t.connect(e):O(t)&&_t(t,e),e),e)}function _t(t,e,n=0,r=0){for(i(l(t),"Cannot connect from undefined node"),i(l(e),"Cannot connect to undefined node"),(e instanceof gt||O(e))&&i(e.numberOfInputs>0,"Cannot connect to node with no inputs"),i(t.numberOfOutputs>0,"Cannot connect from node with no outputs");e instanceof gt||e instanceof yt;)l(e.input)&&(e=e.input);for(;t instanceof gt;)l(t.output)&&(t=t.output);x(e)?t.connect(e,n):t.connect(e,n,r)}function wt(t,e,n=0,r=0){if(l(e))for(;e instanceof gt;)e=e.input;for(;!O(t);)l(t.output)&&(t=t.output);x(e)?t.disconnect(e,n):O(e)?t.disconnect(e,n,r):t.disconnect()}class xt extends gt{constructor(){super(A(xt.getDefaults(),arguments,["gain","units"])),this.name="Gain",this._gainNode=this.context.createGain(),this.input=this._gainNode,this.output=this._gainNode;const t=A(xt.getDefaults(),arguments,["gain","units"]);this.gain=new yt({context:this.context,convert:t.convert,param:this._gainNode.gain,units:t.units,value:t.gain,minValue:t.minValue,maxValue:t.maxValue}),H(this,"gain")}static getDefaults(){return Object.assign(gt.getDefaults(),{convert:!0,gain:1,units:"gain"})}dispose(){return super.dispose(),this._gainNode.disconnect(),this.gain.dispose(),this}}class Ot extends gt{constructor(t){super(t),this.onended=G,this._startTime=-1,this._stopTime=-1,this._timeout=-1,this.output=new xt({context:this.context,gain:0}),this._gainNode=this.output,this.getStateAtTime=function(t){const e=this.toSeconds(t);return-1!==this._startTime&&e>=this._startTime&&(-1===this._stopTime||e<=this._stopTime)?"started":"stopped"},this._fadeIn=t.fadeIn,this._fadeOut=t.fadeOut,this._curve=t.curve,this.onended=t.onended}static getDefaults(){return Object.assign(gt.getDefaults(),{curve:"linear",fadeIn:0,fadeOut:0,onended:G})}_startGain(t,e=1){i(-1===this._startTime,"Source cannot be started more than once");const n=this.toSeconds(this._fadeIn);return this._startTime=t+n,this._startTime=Math.max(this._startTime,this.context.currentTime),n>0?(this._gainNode.gain.setValueAtTime(0,t),"linear"===this._curve?this._gainNode.gain.linearRampToValueAtTime(e,t+n):this._gainNode.gain.exponentialApproachValueAtTime(e,t,n)):this._gainNode.gain.setValueAtTime(e,t),this}stop(t){return this.log("stop",t),this._stopGain(this.toSeconds(t)),this}_stopGain(t){i(-1!==this._startTime,"'start' must be called before 'stop'"),this.cancelStop();const e=this.toSeconds(this._fadeOut);return this._stopTime=this.toSeconds(t)+e,this._stopTime=Math.max(this._stopTime,this.context.currentTime),e>0?"linear"===this._curve?this._gainNode.gain.linearRampTo(0,e,t):this._gainNode.gain.targetRampTo(0,e,t):(this._gainNode.gain.cancelAndHoldAtTime(t),this._gainNode.gain.setValueAtTime(0,t)),this.context.clearTimeout(this._timeout),this._timeout=this.context.setTimeout(()=>{const t="exponential"===this._curve?2*e:0;this._stopSource(this.now()+t),this._onended()},this._stopTime-this.context.currentTime),this}_onended(){if(this.onended!==G&&(this.onended(this),this.onended=G,!this.context.isOffline)){const t=()=>this.dispose();void 0!==window.requestIdleCallback?window.requestIdleCallback(t):setTimeout(t,1e3)}}get state(){return this.getStateAtTime(this.now())}cancelStop(){return this.log("cancelStop"),i(-1!==this._startTime,"Source is not started"),this._gainNode.gain.cancelScheduledValues(this._startTime+this.sampleTime),this.context.clearTimeout(this._timeout),this._stopTime=-1,this}dispose(){return super.dispose(),this._gainNode.disconnect(),this}}class Tt extends Ot{constructor(){super(A(Tt.getDefaults(),arguments,["offset"])),this.name="ToneConstantSource",this._source=this.context.createConstantSource();const t=A(Tt.getDefaults(),arguments,["offset"]);_t(this._source,this._gainNode),this.offset=new yt({context:this.context,convert:t.convert,param:this._source.offset,units:t.units,value:t.offset,minValue:t.minValue,maxValue:t.maxValue})}static getDefaults(){return Object.assign(Ot.getDefaults(),{convert:!0,offset:1,units:"number"})}start(t){const e=this.toSeconds(t);return this.log("start",e),this._startGain(e),this._source.start(e),this}_stopSource(t){this._source.stop(t)}dispose(){return super.dispose(),"started"===this.state&&this.stop(),this._source.disconnect(),this.offset.dispose(),this}}class St extends gt{constructor(){super(A(St.getDefaults(),arguments,["value","units"])),this.name="Signal",this.override=!0;const t=A(St.getDefaults(),arguments,["value","units"]);this.output=this._constantSource=new Tt({context:this.context,convert:t.convert,offset:t.value,units:t.units,minValue:t.minValue,maxValue:t.maxValue}),this._constantSource.start(0),this.input=this._param=this._constantSource.offset}static getDefaults(){return Object.assign(gt.getDefaults(),{convert:!0,units:"number",value:0})}connect(t,e=0,n=0){return kt(this,t,e,n),this}dispose(){return super.dispose(),this._param.dispose(),this._constantSource.dispose(),this}setValueAtTime(t,e){return this._param.setValueAtTime(t,e),this}getValueAtTime(t){return this._param.getValueAtTime(t)}setRampPoint(t){return this._param.setRampPoint(t),this}linearRampToValueAtTime(t,e){return this._param.linearRampToValueAtTime(t,e),this}exponentialRampToValueAtTime(t,e){return this._param.exponentialRampToValueAtTime(t,e),this}exponentialRampTo(t,e,n){return this._param.exponentialRampTo(t,e,n),this}linearRampTo(t,e,n){return this._param.linearRampTo(t,e,n),this}targetRampTo(t,e,n){return this._param.targetRampTo(t,e,n),this}exponentialApproachValueAtTime(t,e,n){return this._param.exponentialApproachValueAtTime(t,e,n),this}setTargetAtTime(t,e,n){return this._param.setTargetAtTime(t,e,n),this}setValueCurveAtTime(t,e,n,r){return this._param.setValueCurveAtTime(t,e,n,r),this}cancelScheduledValues(t){return this._param.cancelScheduledValues(t),this}cancelAndHoldAtTime(t){return this._param.cancelAndHoldAtTime(t),this}rampTo(t,e,n){return this._param.rampTo(t,e,n),this}get value(){return this._param.value}set value(t){this._param.value=t}get convert(){return this._param.convert}set convert(t){this._param.convert=t}get units(){return this._param.units}get overridden(){return this._param.overridden}set overridden(t){this._param.overridden=t}get maxValue(){return this._param.maxValue}get minValue(){return this._param.minValue}apply(t){return this._param.apply(t),this}}function kt(t,e,n,r){(e instanceof yt||x(e)||e instanceof St&&e.override)&&(e.cancelScheduledValues(0),e.setValueAtTime(0,0),e instanceof St&&(e.overridden=!0)),_t(t,e,n,r)}class Ct extends yt{constructor(){super(A(Ct.getDefaults(),arguments,["value"])),this.name="TickParam",this._events=new L(1/0),this._multiplier=1;const t=A(Ct.getDefaults(),arguments,["value"]);this._multiplier=t.multiplier,this._events.cancel(0),this._events.add({ticks:0,time:0,type:"setValueAtTime",value:this._fromType(t.value)}),this.setValueAtTime(t.value,0)}static getDefaults(){return Object.assign(yt.getDefaults(),{multiplier:1,units:"hertz",value:1})}setTargetAtTime(t,e,n){e=this.toSeconds(e),this.setRampPoint(e);const r=this._fromType(t),i=this._events.get(e),o=Math.round(Math.max(1/n,1));for(let t=0;t<=o;t++){const o=n*t+e,s=this._exponentialApproach(i.time,i.value,r,n,o);this.linearRampToValueAtTime(this._toType(s),o)}return this}setValueAtTime(t,e){const n=this.toSeconds(e);super.setValueAtTime(t,e);const r=this._events.get(n),i=this._events.previousEvent(r),o=this._getTicksUntilEvent(i,n);return r.ticks=Math.max(o,0),this}linearRampToValueAtTime(t,e){const n=this.toSeconds(e);super.linearRampToValueAtTime(t,e);const r=this._events.get(n),i=this._events.previousEvent(r),o=this._getTicksUntilEvent(i,n);return r.ticks=Math.max(o,0),this}exponentialRampToValueAtTime(t,e){e=this.toSeconds(e);const n=this._fromType(t),r=this._events.get(e),i=Math.round(Math.max(10*(e-r.time),1)),o=(e-r.time)/i;for(let t=0;t<=i;t++){const i=o*t+r.time,s=this._exponentialInterpolate(r.time,r.value,e,n,i);this.linearRampToValueAtTime(this._toType(s),i)}return this}_getTicksUntilEvent(t,e){if(null===t)t={ticks:0,time:0,type:"setValueAtTime",value:0};else if(c(t.ticks)){const e=this._events.previousEvent(t);t.ticks=this._getTicksUntilEvent(e,t.time)}const n=this._fromType(this.getValueAtTime(t.time));let r=this._fromType(this.getValueAtTime(e));const i=this._events.get(e);return i&&i.time===e&&"setValueAtTime"===i.type&&(r=this._fromType(this.getValueAtTime(e-this.sampleTime))),.5*(e-t.time)*(n+r)+t.ticks}getTicksAtTime(t){const e=this.toSeconds(t),n=this._events.get(e);return Math.max(this._getTicksUntilEvent(n,e),0)}getDurationOfTicks(t,e){const n=this.toSeconds(e),r=this.getTicksAtTime(e);return this.getTimeOfTick(r+t)-n}getTimeOfTick(t){const e=this._events.get(t,"ticks"),n=this._events.getAfter(t,"ticks");if(e&&e.ticks===t)return e.time;if(e&&n&&"linearRampToValueAtTime"===n.type&&e.value!==n.value){const r=this._fromType(this.getValueAtTime(e.time)),i=(this._fromType(this.getValueAtTime(n.time))-r)/(n.time-e.time),o=Math.sqrt(Math.pow(r,2)-2*i*(e.ticks-t)),s=(-r+o)/i,a=(-r-o)/i;return(s>0?s:a)+e.time}return e?0===e.value?1/0:e.time+(t-e.ticks)/e.value:t/this._initialValue}ticksToTime(t,e){return this.getDurationOfTicks(t,e)}timeToTicks(t,e){const n=this.toSeconds(e),r=this.toSeconds(t),i=this.getTicksAtTime(n);return this.getTicksAtTime(n+r)-i}_fromType(t){return"bpm"===this.units&&this.multiplier?1/(60/t/this.multiplier):super._fromType(t)}_toType(t){return"bpm"===this.units&&this.multiplier?t/this.multiplier*60:super._toType(t)}get multiplier(){return this._multiplier}set multiplier(t){const e=this.value;this._multiplier=t,this.cancelScheduledValues(0),this.setValueAtTime(e,0)}}class Et extends St{constructor(){super(A(Et.getDefaults(),arguments,["value"])),this.name="TickSignal";const t=A(Et.getDefaults(),arguments,["value"]);this.input=this._param=new Ct({context:this.context,convert:t.convert,multiplier:t.multiplier,param:this._constantSource.offset,units:t.units,value:t.value})}static getDefaults(){return Object.assign(St.getDefaults(),{multiplier:1,units:"hertz",value:1})}ticksToTime(t,e){return this._param.ticksToTime(t,e)}timeToTicks(t,e){return this._param.timeToTicks(t,e)}getTimeOfTick(t){return this._param.getTimeOfTick(t)}getDurationOfTicks(t,e){return this._param.getDurationOfTicks(t,e)}getTicksAtTime(t){return this._param.getTicksAtTime(t)}get multiplier(){return this._param.multiplier}set multiplier(t){this._param.multiplier=t}dispose(){return super.dispose(),this._param.dispose(),this}}class At extends mt{constructor(){super(A(At.getDefaults(),arguments,["frequency"])),this.name="TickSource",this._state=new vt,this._tickOffset=new L;const t=A(At.getDefaults(),arguments,["frequency"]);this.frequency=new Et({context:this.context,units:t.units,value:t.frequency}),H(this,"frequency"),this._state.setStateAtTime("stopped",0),this.setTicksAtTime(0,0)}static getDefaults(){return Object.assign({frequency:1,units:"hertz"},mt.getDefaults())}get state(){return this.getStateAtTime(this.now())}start(t,e){const n=this.toSeconds(t);return"started"!==this._state.getValueAtTime(n)&&(this._state.setStateAtTime("started",n),l(e)&&this.setTicksAtTime(e,n)),this}stop(t){const e=this.toSeconds(t);if("stopped"===this._state.getValueAtTime(e)){const t=this._state.get(e);t&&t.time>0&&(this._tickOffset.cancel(t.time),this._state.cancel(t.time))}return this._state.cancel(e),this._state.setStateAtTime("stopped",e),this.setTicksAtTime(0,e),this}pause(t){const e=this.toSeconds(t);return"started"===this._state.getValueAtTime(e)&&this._state.setStateAtTime("paused",e),this}cancel(t){return t=this.toSeconds(t),this._state.cancel(t),this._tickOffset.cancel(t),this}getTicksAtTime(t){const e=this.toSeconds(t),n=this._state.getLastState("stopped",e),r={state:"paused",time:e};this._state.add(r);let i=n,o=0;return this._state.forEachBetween(n.time,e+this.sampleTime,t=>{let e=i.time;const n=this._tickOffset.get(t.time);n&&n.time>=i.time&&(o=n.ticks,e=n.time),"started"===i.state&&"started"!==t.state&&(o+=this.frequency.getTicksAtTime(t.time)-this.frequency.getTicksAtTime(e)),i=t}),this._state.remove(r),o}get ticks(){return this.getTicksAtTime(this.now())}set ticks(t){this.setTicksAtTime(t,this.now())}get seconds(){return this.getSecondsAtTime(this.now())}set seconds(t){const e=this.now(),n=this.frequency.timeToTicks(t,e);this.setTicksAtTime(n,e)}getSecondsAtTime(t){t=this.toSeconds(t);const e=this._state.getLastState("stopped",t),n={state:"paused",time:t};this._state.add(n);let r=e,i=0;return this._state.forEachBetween(e.time,t+this.sampleTime,t=>{let e=r.time;const n=this._tickOffset.get(t.time);n&&n.time>=r.time&&(i=n.seconds,e=n.time),"started"===r.state&&"started"!==t.state&&(i+=t.time-e),r=t}),this._state.remove(n),i}setTicksAtTime(t,e){return e=this.toSeconds(e),this._tickOffset.cancel(e),this._tickOffset.add({seconds:this.frequency.getDurationOfTicks(t,e),ticks:t,time:e}),this}getStateAtTime(t){return t=this.toSeconds(t),this._state.getValueAtTime(t)}getTimeOfTick(t,e=this.now()){const n=this._tickOffset.get(e),r=this._state.get(e),i=Math.max(n.time,r.time),o=this.frequency.getTicksAtTime(i)+t-n.ticks;return this.frequency.getTimeOfTick(o)}forEachTickBetween(t,e,n){let r=this._state.get(t);this._state.forEachBetween(t,e,e=>{r&&"started"===r.state&&"started"!==e.state&&this.forEachTickBetween(Math.max(r.time,t),e.time-this.sampleTime,n),r=e});let i=null;if(r&&"started"===r.state){const o=Math.max(r.time,t),s=this.frequency.getTicksAtTime(o),a=s-this.frequency.getTicksAtTime(r.time);let u=Math.ceil(a)-a;u=R(u,1)?0:u;let c=this.frequency.getTimeOfTick(s+u);for(;c<e;){try{n(c,Math.round(this.getTicksAtTime(c)))}catch(t){i=t;break}c+=this.frequency.getDurationOfTicks(1,c)}}if(i)throw i;return this}dispose(){return super.dispose(),this._state.dispose(),this._tickOffset.dispose(),this.frequency.dispose(),this}}class Pt extends mt{constructor(){super(A(Pt.getDefaults(),arguments,["callback","frequency"])),this.name="Clock",this.callback=G,this._lastUpdate=0,this._state=new vt("stopped"),this._boundLoop=this._loop.bind(this);const t=A(Pt.getDefaults(),arguments,["callback","frequency"]);this.callback=t.callback,this._tickSource=new At({context:this.context,frequency:t.frequency,units:t.units}),this._lastUpdate=0,this.frequency=this._tickSource.frequency,H(this,"frequency"),this._state.setStateAtTime("stopped",0),this.context.on("tick",this._boundLoop)}static getDefaults(){return Object.assign(mt.getDefaults(),{callback:G,frequency:1,units:"hertz"})}get state(){return this._state.getValueAtTime(this.now())}start(t,e){s(this.context);const n=this.toSeconds(t);return this.log("start",n),"started"!==this._state.getValueAtTime(n)&&(this._state.setStateAtTime("started",n),this._tickSource.start(n,e),n<this._lastUpdate&&this.emit("start",n,e)),this}stop(t){const e=this.toSeconds(t);return this.log("stop",e),this._state.cancel(e),this._state.setStateAtTime("stopped",e),this._tickSource.stop(e),e<this._lastUpdate&&this.emit("stop",e),this}pause(t){const e=this.toSeconds(t);return"started"===this._state.getValueAtTime(e)&&(this._state.setStateAtTime("paused",e),this._tickSource.pause(e),e<this._lastUpdate&&this.emit("pause",e)),this}get ticks(){return Math.ceil(this.getTicksAtTime(this.now()))}set ticks(t){this._tickSource.ticks=t}get seconds(){return this._tickSource.seconds}set seconds(t){this._tickSource.seconds=t}getSecondsAtTime(t){return this._tickSource.getSecondsAtTime(t)}setTicksAtTime(t,e){return this._tickSource.setTicksAtTime(t,e),this}getTimeOfTick(t,e=this.now()){return this._tickSource.getTimeOfTick(t,e)}getTicksAtTime(t){return this._tickSource.getTicksAtTime(t)}nextTickTime(t,e){const n=this.toSeconds(e),r=this.getTicksAtTime(n);return this._tickSource.getTimeOfTick(r+t,n)}_loop(){const t=this._lastUpdate,e=this.now();this._lastUpdate=e,this.log("loop",t,e),t!==e&&(this._state.forEachBetween(t,e,t=>{switch(t.state){case"started":const e=this._tickSource.getTicksAtTime(t.time);this.emit("start",t.time,e);break;case"stopped":0!==t.time&&this.emit("stop",t.time);break;case"paused":this.emit("pause",t.time)}}),this._tickSource.forEachTickBetween(t,e,(t,e)=>{this.callback(t,e)}))}getStateAtTime(t){const e=this.toSeconds(t);return this._state.getValueAtTime(e)}dispose(){return super.dispose(),this.context.off("tick",this._boundLoop),this._tickSource.dispose(),this._state.dispose(),this}}U.mixin(Pt);class jt extends I{constructor(t){super(),this.name="TimelineValue",this._timeline=new L({memory:10}),this._initialValue=t}set(t,e){return this._timeline.add({value:t,time:e}),this}get(t){const e=this._timeline.get(t);return e?e.value:this._initialValue}}class It extends dt{constructor(){super(...arguments),this.name="Ticks",this.defaultUnits="i"}_now(){return this.context.transport.ticks}_beatsToUnits(t){return this._getPPQ()*t}_secondsToUnits(t){return Math.floor(t/(60/this._getBpm())*this._getPPQ())}_ticksToUnits(t){return t}toTicks(){return this.valueOf()}toSeconds(){return this.valueOf()/this._getPPQ()*(60/this._getBpm())}}class Mt extends I{constructor(){super(...arguments),this.name="IntervalTimeline",this._root=null,this._length=0}add(t){i(l(t.time),"Events must have a time property"),i(l(t.duration),"Events must have a duration parameter"),t.time=t.time.valueOf();let e=new Dt(t.time,t.time+t.duration,t);for(null===this._root?this._root=e:this._root.insert(e),this._length++;null!==e;)e.updateHeight(),e.updateMax(),this._rebalance(e),e=e.parent;return this}remove(t){if(null!==this._root){const e=[];this._root.search(t.time,e);for(const n of e)if(n.event===t){this._removeNode(n),this._length--;break}}return this}get length(){return this._length}cancel(t){return this.forEachFrom(t,t=>this.remove(t)),this}_setRoot(t){this._root=t,null!==this._root&&(this._root.parent=null)}_replaceNodeInParent(t,e){null!==t.parent?(t.isLeftChild()?t.parent.left=e:t.parent.right=e,this._rebalance(t.parent)):this._setRoot(e)}_removeNode(t){if(null===t.left&&null===t.right)this._replaceNodeInParent(t,null);else if(null===t.right)this._replaceNodeInParent(t,t.left);else if(null===t.left)this._replaceNodeInParent(t,t.right);else{let e,n=null;if(t.getBalance()>0)if(null===t.left.right)e=t.left,e.right=t.right,n=e;else{for(e=t.left.right;null!==e.right;)e=e.right;e.parent&&(e.parent.right=e.left,n=e.parent,e.left=t.left,e.right=t.right)}else if(null===t.right.left)e=t.right,e.left=t.left,n=e;else{for(e=t.right.left;null!==e.left;)e=e.left;e.parent&&(e.parent.left=e.right,n=e.parent,e.left=t.left,e.right=t.right)}null!==t.parent?t.isLeftChild()?t.parent.left=e:t.parent.right=e:this._setRoot(e),n&&this._rebalance(n)}t.dispose()}_rotateLeft(t){const e=t.parent,n=t.isLeftChild(),r=t.right;r&&(t.right=r.left,r.left=t),null!==e?n?e.left=r:e.right=r:this._setRoot(r)}_rotateRight(t){const e=t.parent,n=t.isLeftChild(),r=t.left;r&&(t.left=r.right,r.right=t),null!==e?n?e.left=r:e.right=r:this._setRoot(r)}_rebalance(t){const e=t.getBalance();e>1&&t.left?t.left.getBalance()<0?this._rotateLeft(t.left):this._rotateRight(t):e<-1&&t.right&&(t.right.getBalance()>0?this._rotateRight(t.right):this._rotateLeft(t))}get(t){if(null!==this._root){const e=[];if(this._root.search(t,e),e.length>0){let t=e[0];for(let n=1;n<e.length;n++)e[n].low>t.low&&(t=e[n]);return t.event}}return null}forEach(t){if(null!==this._root){const e=[];this._root.traverse(t=>e.push(t)),e.forEach(e=>{e.event&&t(e.event)})}return this}forEachAtTime(t,e){if(null!==this._root){const n=[];this._root.search(t,n),n.forEach(t=>{t.event&&e(t.event)})}return this}forEachFrom(t,e){if(null!==this._root){const n=[];this._root.searchAfter(t,n),n.forEach(t=>{t.event&&e(t.event)})}return this}dispose(){return super.dispose(),null!==this._root&&this._root.traverse(t=>t.dispose()),this._root=null,this}}class Dt{constructor(t,e,n){this._left=null,this._right=null,this.parent=null,this.height=0,this.event=n,this.low=t,this.high=e,this.max=this.high}insert(t){t.low<=this.low?null===this.left?this.left=t:this.left.insert(t):null===this.right?this.right=t:this.right.insert(t)}search(t,e){t>this.max||(null!==this.left&&this.left.search(t,e),this.low<=t&&this.high>t&&e.push(this),this.low>t||null!==this.right&&this.right.search(t,e))}searchAfter(t,e){this.low>=t&&(e.push(this),null!==this.left&&this.left.searchAfter(t,e)),null!==this.right&&this.right.searchAfter(t,e)}traverse(t){t(this),null!==this.left&&this.left.traverse(t),null!==this.right&&this.right.traverse(t)}updateHeight(){null!==this.left&&null!==this.right?this.height=Math.max(this.left.height,this.right.height)+1:null!==this.right?this.height=this.right.height+1:null!==this.left?this.height=this.left.height+1:this.height=0}updateMax(){this.max=this.high,null!==this.left&&(this.max=Math.max(this.max,this.left.max)),null!==this.right&&(this.max=Math.max(this.max,this.right.max))}getBalance(){let t=0;return null!==this.left&&null!==this.right?t=this.left.height-this.right.height:null!==this.left?t=this.left.height+1:null!==this.right&&(t=-(this.right.height+1)),t}isLeftChild(){return null!==this.parent&&this.parent.left===this}get left(){return this._left}set left(t){this._left=t,null!==t&&(t.parent=this),this.updateHeight(),this.updateMax()}get right(){return this._right}set right(t){this._right=t,null!==t&&(t.parent=this),this.updateHeight(),this.updateMax()}dispose(){this.parent=null,this._left=null,this._right=null,this.event=null}}class Nt{constructor(t,e){this.id=Nt._eventId++;const n=Object.assign(Nt.getDefaults(),e);this.transport=t,this.callback=n.callback,this._once=n.once,this.time=n.time}static getDefaults(){return{callback:G,once:!1,time:0}}invoke(t){this.callback&&(this.callback(t),this._once&&this.transport.clear(this.id))}dispose(){return this.callback=void 0,this}}Nt._eventId=0;class Rt extends Nt{constructor(t,e){super(t,e),this._currentId=-1,this._nextId=-1,this._nextTick=this.time,this._boundRestart=this._restart.bind(this);const n=Object.assign(Rt.getDefaults(),e);this.duration=new It(t.context,n.duration).valueOf(),this._interval=new It(t.context,n.interval).valueOf(),this._nextTick=n.time,this.transport.on("start",this._boundRestart),this.transport.on("loopStart",this._boundRestart),this.context=this.transport.context,this._restart()}static getDefaults(){return Object.assign({},Nt.getDefaults(),{duration:1/0,interval:1,once:!1})}invoke(t){this._createEvents(t),super.invoke(t)}_createEvents(t){const e=this.transport.getTicksAtTime(t);e>=this.time&&e>=this._nextTick&&this._nextTick+this._interval<this.time+this.duration&&(this._nextTick+=this._interval,this._currentId=this._nextId,this._nextId=this.transport.scheduleOnce(this.invoke.bind(this),new It(this.context,this._nextTick).toSeconds()))}_restart(t){this.transport.clear(this._currentId),this.transport.clear(this._nextId),this._nextTick=this.time;const e=this.transport.getTicksAtTime(t);e>this.time&&(this._nextTick=this.time+Math.ceil((e-this.time)/this._interval)*this._interval),this._currentId=this.transport.scheduleOnce(this.invoke.bind(this),new It(this.context,this._nextTick).toSeconds()),this._nextTick+=this._interval,this._nextId=this.transport.scheduleOnce(this.invoke.bind(this),new It(this.context,this._nextTick).toSeconds())}dispose(){return super.dispose(),this.transport.clear(this._currentId),this.transport.clear(this._nextId),this.transport.off("start",this._boundRestart),this.transport.off("loopStart",this._boundRestart),this}}class Ft extends mt{constructor(){super(A(Ft.getDefaults(),arguments)),this.name="Transport",this._loop=new jt(!1),this._loopStart=0,this._loopEnd=0,this._scheduledEvents={},this._timeline=new L,this._repeatedEvents=new Mt,this._syncedSignals=[],this._swingAmount=0;const t=A(Ft.getDefaults(),arguments);this._ppq=t.ppq,this._clock=new Pt({callback:this._processTick.bind(this),context:this.context,frequency:0,units:"bpm"}),this._bindClockEvents(),this.bpm=this._clock.frequency,this._clock.frequency.multiplier=t.ppq,this.bpm.setValueAtTime(t.bpm,0),H(this,"bpm"),this._timeSignature=t.timeSignature,this._swingTicks=t.ppq/2}static getDefaults(){return Object.assign(mt.getDefaults(),{bpm:120,loopEnd:"4m",loopStart:0,ppq:192,swing:0,swingSubdivision:"8n",timeSignature:4})}_processTick(t,e){if(this._swingAmount>0&&e%this._ppq!=0&&e%(2*this._swingTicks)!=0){const n=e%(2*this._swingTicks)/(2*this._swingTicks),r=Math.sin(n*Math.PI)*this._swingAmount;t+=new It(this.context,2*this._swingTicks/3).toSeconds()*r}this._loop.get(t)&&e>=this._loopEnd&&(this.emit("loopEnd",t),this._clock.setTicksAtTime(this._loopStart,t),e=this._loopStart,this.emit("loopStart",t,this._clock.getSecondsAtTime(t)),this.emit("loop",t)),this._timeline.forEachAtTime(e,e=>e.invoke(t))}schedule(t,e){const n=new Nt(this,{callback:t,time:new dt(this.context,e).toTicks()});return this._addEvent(n,this._timeline)}scheduleRepeat(t,e,n,r=1/0){const i=new Rt(this,{callback:t,duration:new ct(this.context,r).toTicks(),interval:new ct(this.context,e).toTicks(),time:new dt(this.context,n).toTicks()});return this._addEvent(i,this._repeatedEvents)}scheduleOnce(t,e){const n=new Nt(this,{callback:t,once:!0,time:new dt(this.context,e).toTicks()});return this._addEvent(n,this._timeline)}clear(t){if(this._scheduledEvents.hasOwnProperty(t)){const e=this._scheduledEvents[t.toString()];e.timeline.remove(e.event),e.event.dispose(),delete this._scheduledEvents[t.toString()]}return this}_addEvent(t,e){return this._scheduledEvents[t.id.toString()]={event:t,timeline:e},e.add(t),t.id}cancel(t=0){const e=this.toTicks(t);return this._timeline.forEachFrom(e,t=>this.clear(t.id)),this._repeatedEvents.forEachFrom(e,t=>this.clear(t.id)),this}_bindClockEvents(){this._clock.on("start",(t,e)=>{e=new It(this.context,e).toSeconds(),this.emit("start",t,e)}),this._clock.on("stop",t=>{this.emit("stop",t)}),this._clock.on("pause",t=>{this.emit("pause",t)})}get state(){return this._clock.getStateAtTime(this.now())}start(t,e){let n;return l(e)&&(n=this.toTicks(e)),this._clock.start(t,n),this}stop(t){return this._clock.stop(t),this}pause(t){return this._clock.pause(t),this}toggle(t){return t=this.toSeconds(t),"started"!==this._clock.getStateAtTime(t)?this.start(t):this.stop(t),this}get timeSignature(){return this._timeSignature}set timeSignature(t){d(t)&&(t=t[0]/t[1]*4),this._timeSignature=t}get loopStart(){return new ct(this.context,this._loopStart,"i").toSeconds()}set loopStart(t){this._loopStart=this.toTicks(t)}get loopEnd(){return new ct(this.context,this._loopEnd,"i").toSeconds()}set loopEnd(t){this._loopEnd=this.toTicks(t)}get loop(){return this._loop.get(this.now())}set loop(t){this._loop.set(t,this.now())}setLoopPoints(t,e){return this.loopStart=t,this.loopEnd=e,this}get swing(){return this._swingAmount}set swing(t){this._swingAmount=t}get swingSubdivision(){return new It(this.context,this._swingTicks).toNotation()}set swingSubdivision(t){this._swingTicks=this.toTicks(t)}get position(){const t=this.now(),e=this._clock.getTicksAtTime(t);return new It(this.context,e).toBarsBeatsSixteenths()}set position(t){const e=this.toTicks(t);this.ticks=e}get seconds(){return this._clock.seconds}set seconds(t){const e=this.now(),n=this._clock.frequency.timeToTicks(t,e);this.ticks=n}get progress(){if(this.loop){const t=this.now();return(this._clock.getTicksAtTime(t)-this._loopStart)/(this._loopEnd-this._loopStart)}return 0}get ticks(){return this._clock.ticks}set ticks(t){if(this._clock.ticks!==t){const e=this.now();if("started"===this.state){const n=this._clock.getTicksAtTime(e),r=this._clock.getTimeOfTick(Math.ceil(n));this.emit("stop",r),this._clock.setTicksAtTime(t,r),this.emit("start",r,this._clock.getSecondsAtTime(r))}else this._clock.setTicksAtTime(t,e)}}getTicksAtTime(t){return Math.round(this._clock.getTicksAtTime(t))}getSecondsAtTime(t){return this._clock.getSecondsAtTime(t)}get PPQ(){return this._clock.frequency.multiplier}set PPQ(t){this._clock.frequency.multiplier=t}nextSubdivision(t){if(t=this.toTicks(t),"started"!==this.state)return 0;{const e=this.now(),n=t-this.getTicksAtTime(e)%t;return this._clock.nextTickTime(n,e)}}syncSignal(t,e){if(!e){const n=this.now();if(0!==t.getValueAtTime(n)){const r=1/(60/this.bpm.getValueAtTime(n)/this.PPQ);e=t.getValueAtTime(n)/r}else e=0}const n=new xt(e);return this.bpm.connect(n),n.connect(t._param),this._syncedSignals.push({initial:t.value,ratio:n,signal:t}),t.value=0,this}unsyncSignal(t){for(let e=this._syncedSignals.length-1;e>=0;e--){const n=this._syncedSignals[e];n.signal===t&&(n.ratio.dispose(),n.signal.value=n.initial,this._syncedSignals.splice(e,1))}return this}dispose(){return super.dispose(),this._clock.dispose(),K(this,"bpm"),this._timeline.dispose(),this._repeatedEvents.dispose(),this}}U.mixin(Ft),z(t=>{t.transport=new Ft({context:t})}),q(t=>{t.transport.dispose()});class Lt extends gt{constructor(){super(A(Lt.getDefaults(),arguments,["volume"])),this.name="Volume";const t=A(Lt.getDefaults(),arguments,["volume"]);this.input=this.output=new xt({context:this.context,gain:t.volume,units:"decibels"}),this.volume=this.output.gain,H(this,"volume"),this._unmutedVolume=t.volume,this.mute=t.mute}static getDefaults(){return Object.assign(gt.getDefaults(),{mute:!1,volume:0})}get mute(){return this.volume.value===-1/0}set mute(t){!this.mute&&t?(this._unmutedVolume=this.volume.value,this.volume.value=-1/0):this.mute&&!t&&(this.volume.value=this._unmutedVolume)}dispose(){return super.dispose(),this.input.dispose(),this.volume.dispose(),this}}class Vt extends gt{constructor(){super(A(Vt.getDefaults(),arguments)),this.name="Destination",this.input=new Lt({context:this.context}),this.output=new xt({context:this.context}),this.volume=this.input.volume;const t=A(Vt.getDefaults(),arguments);bt(this.input,this.output,this.context.rawContext.destination),this.mute=t.mute,this._internalChannels=[this.input,this.context.rawContext.destination,this.output]}static getDefaults(){return Object.assign(gt.getDefaults(),{mute:!1,volume:0})}get mute(){return this.input.mute}set mute(t){this.input.mute=t}chain(...t){return this.input.disconnect(),t.unshift(this.input),t.push(this.output),bt(...t),this}get maxChannelCount(){return this.context.rawContext.destination.maxChannelCount}dispose(){return super.dispose(),this.volume.dispose(),this}}z(t=>{t.destination=new Vt({context:t})}),q(t=>{t.destination.dispose()});class zt extends I{constructor(){super(),this.name="ToneAudioBuffers",this._buffers=new Map,this._loadingCount=0;const t=A(zt.getDefaults(),arguments,["urls","onload","baseUrl"],"urls");this.baseUrl=t.baseUrl,Object.keys(t.urls).forEach(e=>{this._loadingCount++;const n=t.urls[e];this.add(e,n,this._bufferLoaded.bind(this,t.onload),t.onerror)})}static getDefaults(){return{baseUrl:"",onerror:G,onload:G,urls:{}}}has(t){return this._buffers.has(t.toString())}get(t){return i(this.has(t),"ToneAudioBuffers has no buffer named: "+t),this._buffers.get(t.toString())}_bufferLoaded(t){this._loadingCount--,0===this._loadingCount&&t&&t()}get loaded(){return Array.from(this._buffers).every(([t,e])=>e.loaded)}add(t,e,n=G,r=G){return m(e)?this._buffers.set(t.toString(),new Y(this.baseUrl+e,n,r)):this._buffers.set(t.toString(),new Y(e,n,r)),this}dispose(){return super.dispose(),this._buffers.forEach(t=>t.dispose()),this._buffers.clear(),this}}class Bt extends mt{constructor(){super(...arguments),this.name="Draw",this.expiration=.25,this.anticipation=.008,this._events=new L,this._boundDrawLoop=this._drawLoop.bind(this),this._animationFrame=-1}schedule(t,e){return this._events.add({callback:t,time:this.toSeconds(e)}),1===this._events.length&&(this._animationFrame=requestAnimationFrame(this._boundDrawLoop)),this}cancel(t){return this._events.cancel(this.toSeconds(t)),this}_drawLoop(){const t=this.context.currentTime;for(;this._events.length&&this._events.peek().time-this.anticipation<=t;){const e=this._events.shift();e&&t-e.time<=this.expiration&&e.callback()}this._events.length>0&&(this._animationFrame=requestAnimationFrame(this._boundDrawLoop))}dispose(){return super.dispose(),this._events.dispose(),cancelAnimationFrame(this._animationFrame),this}}z(t=>{t.draw=new Bt({context:t})}),q(t=>{t.draw.dispose()});n(677);class qt extends gt{constructor(t){super(t),this.input=void 0,this._state=new vt("stopped"),this._synced=!1,this._scheduled=[],this._syncedStart=G,this._syncedStop=G,this._state.memory=100,this._state.increasing=!0,this._volume=this.output=new Lt({context:this.context,mute:t.mute,volume:t.volume}),this.volume=this._volume.volume,H(this,"volume"),this.onstop=t.onstop}static getDefaults(){return Object.assign(gt.getDefaults(),{mute:!1,onstop:G,volume:0})}get state(){return this._synced?"started"===this.context.transport.state?this._state.getValueAtTime(this.context.transport.seconds):"stopped":this._state.getValueAtTime(this.now())}get mute(){return this._volume.mute}set mute(t){this._volume.mute=t}_clampToCurrentTime(t){return this._synced?t:Math.max(t,this.context.currentTime)}start(t,e,n){let r=c(t)&&this._synced?this.context.transport.seconds:this.toSeconds(t);if(r=this._clampToCurrentTime(r),this._synced||"started"!==this._state.getValueAtTime(r))if(this.log("start",r),this._state.setStateAtTime("started",r),this._synced){const t=this._state.get(r);t&&(t.offset=this.toSeconds(P(e,0)),t.duration=n?this.toSeconds(n):void 0);const i=this.context.transport.schedule(t=>{this._start(t,e,n)},r);this._scheduled.push(i),"started"===this.context.transport.state&&this.context.transport.getSecondsAtTime(this.immediate())>r&&this._syncedStart(this.now(),this.context.transport.seconds)}else s(this.context),this._start(r,e,n);else i(M(r,this._state.get(r).time),"Start time must be strictly greater than previous start time"),this._state.cancel(r),this._state.setStateAtTime("started",r),this.log("restart",r),this.restart(r,e,n);return this}stop(t){let e=c(t)&&this._synced?this.context.transport.seconds:this.toSeconds(t);if(e=this._clampToCurrentTime(e),"started"===this._state.getValueAtTime(e)||l(this._state.getNextState("started",e))){if(this.log("stop",e),this._synced){const t=this.context.transport.schedule(this._stop.bind(this),e);this._scheduled.push(t)}else this._stop(e);this._state.cancel(e),this._state.setStateAtTime("stopped",e)}return this}restart(t,e,n){return t=this.toSeconds(t),"started"===this._state.getValueAtTime(t)&&(this._state.cancel(t),this._restart(t,e,n)),this}sync(){return this._synced||(this._synced=!0,this._syncedStart=(t,e)=>{if(e>0){const n=this._state.get(e);if(n&&"started"===n.state&&n.time!==e){const r=e-this.toSeconds(n.time);let i;n.duration&&(i=this.toSeconds(n.duration)-r),this._start(t,this.toSeconds(n.offset)+r,i)}}},this._syncedStop=t=>{const e=this.context.transport.getSecondsAtTime(Math.max(t-this.sampleTime,0));"started"===this._state.getValueAtTime(e)&&this._stop(t)},this.context.transport.on("start",this._syncedStart),this.context.transport.on("loopStart",this._syncedStart),this.context.transport.on("stop",this._syncedStop),this.context.transport.on("pause",this._syncedStop),this.context.transport.on("loopEnd",this._syncedStop)),this}unsync(){return this._synced&&(this.context.transport.off("stop",this._syncedStop),this.context.transport.off("pause",this._syncedStop),this.context.transport.off("loopEnd",this._syncedStop),this.context.transport.off("start",this._syncedStart),this.context.transport.off("loopStart",this._syncedStart)),this._synced=!1,this._scheduled.forEach(t=>this.context.transport.clear(t)),this._scheduled=[],this._state.cancel(0),this._stop(0),this}dispose(){return super.dispose(),this.onstop=G,this.unsync(),this._volume.dispose(),this._state.dispose(),this}}class Ut extends Ot{constructor(){super(A(Ut.getDefaults(),arguments,["url","onload"])),this.name="ToneBufferSource",this._source=this.context.createBufferSource(),this._internalChannels=[this._source],this._sourceStarted=!1,this._sourceStopped=!1;const t=A(Ut.getDefaults(),arguments,["url","onload"]);_t(this._source,this._gainNode),this._source.onended=()=>this._stopSource(),this.playbackRate=new yt({context:this.context,param:this._source.playbackRate,units:"positive",value:t.playbackRate}),this.loop=t.loop,this.loopStart=t.loopStart,this.loopEnd=t.loopEnd,this._buffer=new Y(t.url,t.onload,t.onerror),this._internalChannels.push(this._source)}static getDefaults(){return Object.assign(Ot.getDefaults(),{url:new Y,loop:!1,loopEnd:0,loopStart:0,onload:G,onerror:G,playbackRate:1})}get fadeIn(){return this._fadeIn}set fadeIn(t){this._fadeIn=t}get fadeOut(){return this._fadeOut}set fadeOut(t){this._fadeOut=t}get curve(){return this._curve}set curve(t){this._curve=t}start(t,e,n,r=1){i(this.buffer.loaded,"buffer is either not set or not loaded");const o=this.toSeconds(t);this._startGain(o,r),e=this.loop?P(e,this.loopStart):P(e,0);let s=Math.max(this.toSeconds(e),0);if(this.loop){const t=this.toSeconds(this.loopEnd)||this.buffer.duration,e=this.toSeconds(this.loopStart),n=t-e;D(s,t)&&(s=(s-e)%n+e),R(s,this.buffer.duration)&&(s=0)}if(this._source.buffer=this.buffer.get(),this._source.loopEnd=this.toSeconds(this.loopEnd)||this.buffer.duration,N(s,this.buffer.duration)&&(this._sourceStarted=!0,this._source.start(o,s)),l(n)){let t=this.toSeconds(n);t=Math.max(t,0),this.stop(o+t)}return this}_stopSource(t){!this._sourceStopped&&this._sourceStarted&&(this._sourceStopped=!0,this._source.stop(this.toSeconds(t)),this._onended())}get loopStart(){return this._source.loopStart}set loopStart(t){this._source.loopStart=this.toSeconds(t)}get loopEnd(){return this._source.loopEnd}set loopEnd(t){this._source.loopEnd=this.toSeconds(t)}get buffer(){return this._buffer}set buffer(t){this._buffer.set(t)}get loop(){return this._source.loop}set loop(t){this._source.loop=t,this._sourceStarted&&this.cancelStop()}dispose(){return super.dispose(),this._source.onended=null,this._source.disconnect(),this._buffer.dispose(),this.playbackRate.dispose(),this}}function Wt(t,e){return _(this,void 0,void 0,(function*(){const n=e/t.context.sampleRate,r=new X(1,n,t.context.sampleRate);new t.constructor(Object.assign(t.get(),{frequency:2/n,detune:0,context:r})).toDestination().start(0);return(yield r.render()).getChannelData(0)}))}class $t extends Ot{constructor(){super(A($t.getDefaults(),arguments,["frequency","type"])),this.name="ToneOscillatorNode",this._oscillator=this.context.createOscillator(),this._internalChannels=[this._oscillator];const t=A($t.getDefaults(),arguments,["frequency","type"]);_t(this._oscillator,this._gainNode),this.type=t.type,this.frequency=new yt({context:this.context,param:this._oscillator.frequency,units:"frequency",value:t.frequency}),this.detune=new yt({context:this.context,param:this._oscillator.detune,units:"cents",value:t.detune}),H(this,["frequency","detune"])}static getDefaults(){return Object.assign(Ot.getDefaults(),{detune:0,frequency:440,type:"sine"})}start(t){const e=this.toSeconds(t);return this.log("start",e),this._startGain(e),this._oscillator.start(e),this}_stopSource(t){this._oscillator.stop(t)}setPeriodicWave(t){return this._oscillator.setPeriodicWave(t),this}get type(){return this._oscillator.type}set type(t){this._oscillator.type=t}dispose(){return super.dispose(),"started"===this.state&&this.stop(),this._oscillator.disconnect(),this.frequency.dispose(),this.detune.dispose(),this}}class Ht extends qt{constructor(){super(A(Ht.getDefaults(),arguments,["frequency","type"])),this.name="Oscillator",this._oscillator=null;const t=A(Ht.getDefaults(),arguments,["frequency","type"]);this.frequency=new St({context:this.context,units:"frequency",value:t.frequency}),H(this,"frequency"),this.detune=new St({context:this.context,units:"cents",value:t.detune}),H(this,"detune"),this._partials=t.partials,this._partialCount=t.partialCount,this._type=t.type,t.partialCount&&"custom"!==t.type&&(this._type=this.baseType+t.partialCount.toString()),this.phase=t.phase}static getDefaults(){return Object.assign(qt.getDefaults(),{detune:0,frequency:440,partialCount:0,partials:[],phase:0,type:"sine"})}_start(t){const e=this.toSeconds(t),n=new $t({context:this.context,onended:()=>this.onstop(this)});this._oscillator=n,this._wave?this._oscillator.setPeriodicWave(this._wave):this._oscillator.type=this._type,this._oscillator.connect(this.output),this.frequency.connect(this._oscillator.frequency),this.detune.connect(this._oscillator.detune),this._oscillator.start(e)}_stop(t){const e=this.toSeconds(t);this._oscillator&&this._oscillator.stop(e)}_restart(t){const e=this.toSeconds(t);return this.log("restart",e),this._oscillator&&this._oscillator.cancelStop(),this._state.cancel(e),this}syncFrequency(){return this.context.transport.syncSignal(this.frequency),this}unsyncFrequency(){return this.context.transport.unsyncSignal(this.frequency),this}_getCachedPeriodicWave(){if("custom"===this._type){return Ht._periodicWaveCache.find(t=>{return t.phase===this._phase&&(e=t.partials,n=this._partials,e.length===n.length&&e.every((t,e)=>n[e]===t));var e,n})}{const t=Ht._periodicWaveCache.find(t=>t.type===this._type&&t.phase===this._phase);return this._partialCount=t?t.partialCount:this._partialCount,t}}get type(){return this._type}set type(t){this._type=t;const e=-1!==["sine","square","sawtooth","triangle"].indexOf(t);if(0===this._phase&&e)this._wave=void 0,this._partialCount=0,null!==this._oscillator&&(this._oscillator.type=t);else{const e=this._getCachedPeriodicWave();if(l(e)){const{partials:t,wave:n}=e;this._wave=n,this._partials=t,null!==this._oscillator&&this._oscillator.setPeriodicWave(this._wave)}else{const[e,n]=this._getRealImaginary(t,this._phase),r=this.context.createPeriodicWave(e,n);this._wave=r,null!==this._oscillator&&this._oscillator.setPeriodicWave(this._wave),Ht._periodicWaveCache.push({imag:n,partialCount:this._partialCount,partials:this._partials,phase:this._phase,real:e,type:this._type,wave:this._wave}),Ht._periodicWaveCache.length>100&&Ht._periodicWaveCache.shift()}}}get baseType(){return this._type.replace(this.partialCount.toString(),"")}set baseType(t){this.partialCount&&"custom"!==this._type&&"custom"!==t?this.type=t+this.partialCount:this.type=t}get partialCount(){return this._partialCount}set partialCount(t){o(t,0);let e=this._type;const n=/^(sine|triangle|square|sawtooth)(\d+)$/.exec(this._type);if(n&&(e=n[1]),"custom"!==this._type)this.type=0===t?e:e+t.toString();else{const e=new Float32Array(t);this._partials.forEach((t,n)=>e[n]=t),this._partials=Array.from(e),this.type=this._type}}_getRealImaginary(t,e){let n=2048;const r=new Float32Array(n),i=new Float32Array(n);let o=1;if("custom"===t){if(o=this._partials.length+1,this._partialCount=this._partials.length,n=o,0===this._partials.length)return[r,i]}else{const e=/^(sine|triangle|square|sawtooth)(\d+)$/.exec(t);e?(o=parseInt(e[2],10)+1,this._partialCount=parseInt(e[2],10),t=e[1],o=Math.max(o,2),n=o):this._partialCount=0,this._partials=[]}for(let s=1;s<n;++s){const n=2/(s*Math.PI);let a;switch(t){case"sine":a=s<=o?1:0,this._partials[s-1]=a;break;case"square":a=1&s?2*n:0,this._partials[s-1]=a;break;case"sawtooth":a=n*(1&s?1:-1),this._partials[s-1]=a;break;case"triangle":a=1&s?n*n*2*(s-1>>1&1?-1:1):0,this._partials[s-1]=a;break;case"custom":a=this._partials[s-1];break;default:throw new TypeError("Oscillator: invalid type: "+t)}0!==a?(r[s]=-a*Math.sin(e*s),i[s]=a*Math.cos(e*s)):(r[s]=0,i[s]=0)}return[r,i]}_inverseFFT(t,e,n){let r=0;const i=t.length;for(let o=0;o<i;o++)r+=t[o]*Math.cos(o*n)+e[o]*Math.sin(o*n);return r}getInitialValue(){const[t,e]=this._getRealImaginary(this._type,0);let n=0;const r=2*Math.PI;for(let i=0;i<32;i++)n=Math.max(this._inverseFFT(t,e,i/32*r),n);return F(-this._inverseFFT(t,e,this._phase)/n,-1,1)}get partials(){return this._partials.slice(0,this.partialCount)}set partials(t){this._partials=t,this._partialCount=this._partials.length,t.length&&(this.type="custom")}get phase(){return this._phase*(180/Math.PI)}set phase(t){this._phase=t*Math.PI/180,this.type=this._type}asArray(t=1024){return _(this,void 0,void 0,(function*(){return Wt(this,t)}))}dispose(){return super.dispose(),null!==this._oscillator&&this._oscillator.dispose(),this._wave=void 0,this.frequency.dispose(),this.detune.dispose(),this}}Ht._periodicWaveCache=[];class Kt extends gt{constructor(){super(Object.assign(A(Kt.getDefaults(),arguments,["context"])))}connect(t,e=0,n=0){return kt(this,t,e,n),this}}class Gt extends Kt{constructor(){super(Object.assign(A(Gt.getDefaults(),arguments,["mapping","length"]))),this.name="WaveShaper",this._shaper=this.context.createWaveShaper(),this.input=this._shaper,this.output=this._shaper;const t=A(Gt.getDefaults(),arguments,["mapping","length"]);d(t.mapping)||t.mapping instanceof Float32Array?this.curve=Float32Array.from(t.mapping):"function"==typeof t.mapping&&this.setMap(t.mapping,t.length)}static getDefaults(){return Object.assign(St.getDefaults(),{length:1024})}setMap(t,e=1024){const n=new Float32Array(e);for(let r=0,i=e;r<i;r++){const e=r/(i-1)*2-1;n[r]=t(e,r)}return this.curve=n,this}get curve(){return this._shaper.curve}set curve(t){this._shaper.curve=t}get oversample(){return this._shaper.oversample}set oversample(t){i(["none","2x","4x"].some(e=>e.includes(t)),"oversampling must be either 'none', '2x', or '4x'"),this._shaper.oversample=t}dispose(){return super.dispose(),this._shaper.disconnect(),this}}class Yt extends Kt{constructor(){super(...arguments),this.name="AudioToGain",this._norm=new Gt({context:this.context,mapping:t=>(t+1)/2}),this.input=this._norm,this.output=this._norm}dispose(){return super.dispose(),this._norm.dispose(),this}}class Xt extends St{constructor(){super(Object.assign(A(Xt.getDefaults(),arguments,["value"]))),this.name="Multiply",this.override=!1;const t=A(Xt.getDefaults(),arguments,["value"]);this._mult=this.input=this.output=new xt({context:this.context,minValue:t.minValue,maxValue:t.maxValue}),this.factor=this._param=this._mult.gain,this.factor.setValueAtTime(t.value,0)}static getDefaults(){return Object.assign(St.getDefaults(),{value:0})}dispose(){return super.dispose(),this._mult.dispose(),this}}class Jt extends qt{constructor(){super(A(Jt.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="AMOscillator",this._modulationScale=new Yt({context:this.context}),this._modulationNode=new xt({context:this.context});const t=A(Jt.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new Ht({context:this.context,detune:t.detune,frequency:t.frequency,onstop:()=>this.onstop(this),phase:t.phase,type:t.type}),this.frequency=this._carrier.frequency,this.detune=this._carrier.detune,this._modulator=new Ht({context:this.context,phase:t.phase,type:t.modulationType}),this.harmonicity=new Xt({context:this.context,units:"positive",value:t.harmonicity}),this.frequency.chain(this.harmonicity,this._modulator.frequency),this._modulator.chain(this._modulationScale,this._modulationNode.gain),this._carrier.chain(this._modulationNode,this.output),H(this,["frequency","detune","harmonicity"])}static getDefaults(){return Object.assign(Ht.getDefaults(),{harmonicity:1,modulationType:"square"})}_start(t){this._modulator.start(t),this._carrier.start(t)}_stop(t){this._modulator.stop(t),this._carrier.stop(t)}_restart(t){this._modulator.restart(t),this._carrier.restart(t)}get type(){return this._carrier.type}set type(t){this._carrier.type=t}get baseType(){return this._carrier.baseType}set baseType(t){this._carrier.baseType=t}get partialCount(){return this._carrier.partialCount}set partialCount(t){this._carrier.partialCount=t}get modulationType(){return this._modulator.type}set modulationType(t){this._modulator.type=t}get phase(){return this._carrier.phase}set phase(t){this._carrier.phase=t,this._modulator.phase=t}get partials(){return this._carrier.partials}set partials(t){this._carrier.partials=t}asArray(t=1024){return _(this,void 0,void 0,(function*(){return Wt(this,t)}))}dispose(){return super.dispose(),this.frequency.dispose(),this.detune.dispose(),this.harmonicity.dispose(),this._carrier.dispose(),this._modulator.dispose(),this._modulationNode.dispose(),this._modulationScale.dispose(),this}}class Qt extends qt{constructor(){super(A(Qt.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="FMOscillator",this._modulationNode=new xt({context:this.context,gain:0});const t=A(Qt.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new Ht({context:this.context,detune:t.detune,frequency:0,onstop:()=>this.onstop(this),phase:t.phase,type:t.type}),this.detune=this._carrier.detune,this.frequency=new St({context:this.context,units:"frequency",value:t.frequency}),this._modulator=new Ht({context:this.context,phase:t.phase,type:t.modulationType}),this.harmonicity=new Xt({context:this.context,units:"positive",value:t.harmonicity}),this.modulationIndex=new Xt({context:this.context,units:"positive",value:t.modulationIndex}),this.frequency.connect(this._carrier.frequency),this.frequency.chain(this.harmonicity,this._modulator.frequency),this.frequency.chain(this.modulationIndex,this._modulationNode),this._modulator.connect(this._modulationNode.gain),this._modulationNode.connect(this._carrier.frequency),this._carrier.connect(this.output),this.detune.connect(this._modulator.detune),H(this,["modulationIndex","frequency","detune","harmonicity"])}static getDefaults(){return Object.assign(Ht.getDefaults(),{harmonicity:1,modulationIndex:2,modulationType:"square"})}_start(t){this._modulator.start(t),this._carrier.start(t)}_stop(t){this._modulator.stop(t),this._carrier.stop(t)}_restart(t){return this._modulator.restart(t),this._carrier.restart(t),this}get type(){return this._carrier.type}set type(t){this._carrier.type=t}get baseType(){return this._carrier.baseType}set baseType(t){this._carrier.baseType=t}get partialCount(){return this._carrier.partialCount}set partialCount(t){this._carrier.partialCount=t}get modulationType(){return this._modulator.type}set modulationType(t){this._modulator.type=t}get phase(){return this._carrier.phase}set phase(t){this._carrier.phase=t,this._modulator.phase=t}get partials(){return this._carrier.partials}set partials(t){this._carrier.partials=t}asArray(t=1024){return _(this,void 0,void 0,(function*(){return Wt(this,t)}))}dispose(){return super.dispose(),this.frequency.dispose(),this.harmonicity.dispose(),this._carrier.dispose(),this._modulator.dispose(),this._modulationNode.dispose(),this.modulationIndex.dispose(),this}}class Zt extends qt{constructor(){super(A(Zt.getDefaults(),arguments,["frequency","width"])),this.name="PulseOscillator",this._widthGate=new xt({context:this.context,gain:0}),this._thresh=new Gt({context:this.context,mapping:t=>t<=0?-1:1});const t=A(Zt.getDefaults(),arguments,["frequency","width"]);this.width=new St({context:this.context,units:"audioRange",value:t.width}),this._triangle=new Ht({context:this.context,detune:t.detune,frequency:t.frequency,onstop:()=>this.onstop(this),phase:t.phase,type:"triangle"}),this.frequency=this._triangle.frequency,this.detune=this._triangle.detune,this._triangle.chain(this._thresh,this.output),this.width.chain(this._widthGate,this._thresh),H(this,["width","frequency","detune"])}static getDefaults(){return Object.assign(qt.getDefaults(),{detune:0,frequency:440,phase:0,type:"pulse",width:.2})}_start(t){t=this.toSeconds(t),this._triangle.start(t),this._widthGate.gain.setValueAtTime(1,t)}_stop(t){t=this.toSeconds(t),this._triangle.stop(t),this._widthGate.gain.cancelScheduledValues(t),this._widthGate.gain.setValueAtTime(0,t)}_restart(t){this._triangle.restart(t),this._widthGate.gain.cancelScheduledValues(t),this._widthGate.gain.setValueAtTime(1,t)}get phase(){return this._triangle.phase}set phase(t){this._triangle.phase=t}get type(){return"pulse"}get baseType(){return"pulse"}get partials(){return[]}get partialCount(){return 0}set carrierType(t){this._triangle.type=t}asArray(t=1024){return _(this,void 0,void 0,(function*(){return Wt(this,t)}))}dispose(){return super.dispose(),this._triangle.dispose(),this.width.dispose(),this._widthGate.dispose(),this._thresh.dispose(),this}}class te extends qt{constructor(){super(A(te.getDefaults(),arguments,["frequency","type","spread"])),this.name="FatOscillator",this._oscillators=[];const t=A(te.getDefaults(),arguments,["frequency","type","spread"]);this.frequency=new St({context:this.context,units:"frequency",value:t.frequency}),this.detune=new St({context:this.context,units:"cents",value:t.detune}),this._spread=t.spread,this._type=t.type,this._phase=t.phase,this._partials=t.partials,this._partialCount=t.partialCount,this.count=t.count,H(this,["frequency","detune"])}static getDefaults(){return Object.assign(Ht.getDefaults(),{count:3,spread:20,type:"sawtooth"})}_start(t){t=this.toSeconds(t),this._forEach(e=>e.start(t))}_stop(t){t=this.toSeconds(t),this._forEach(e=>e.stop(t))}_restart(t){this._forEach(e=>e.restart(t))}_forEach(t){for(let e=0;e<this._oscillators.length;e++)t(this._oscillators[e],e)}get type(){return this._type}set type(t){this._type=t,this._forEach(e=>e.type=t)}get spread(){return this._spread}set spread(t){if(this._spread=t,this._oscillators.length>1){const e=-t/2,n=t/(this._oscillators.length-1);this._forEach((t,r)=>t.detune.value=e+n*r)}}get count(){return this._oscillators.length}set count(t){if(o(t,1),this._oscillators.length!==t){this._forEach(t=>t.dispose()),this._oscillators=[];for(let e=0;e<t;e++){const n=new Ht({context:this.context,volume:-6-1.1*t,type:this._type,phase:this._phase+e/t*360,partialCount:this._partialCount,onstop:0===e?()=>this.onstop(this):G});"custom"===this.type&&(n.partials=this._partials),this.frequency.connect(n.frequency),this.detune.connect(n.detune),n.detune.overridden=!1,n.connect(this.output),this._oscillators[e]=n}this.spread=this._spread,"started"===this.state&&this._forEach(t=>t.start())}}get phase(){return this._phase}set phase(t){this._phase=t,this._forEach(e=>e.phase=t)}get baseType(){return this._oscillators[0].baseType}set baseType(t){this._forEach(e=>e.baseType=t),this._type=this._oscillators[0].type}get partials(){return this._oscillators[0].partials}set partials(t){this._partials=t,this._partialCount=this._partials.length,t.length&&(this._type="custom",this._forEach(e=>e.partials=t))}get partialCount(){return this._oscillators[0].partialCount}set partialCount(t){this._partialCount=t,this._forEach(e=>e.partialCount=t),this._type=this._oscillators[0].type}asArray(t=1024){return _(this,void 0,void 0,(function*(){return Wt(this,t)}))}dispose(){return super.dispose(),this.frequency.dispose(),this.detune.dispose(),this._forEach(t=>t.dispose()),this}}class ee extends qt{constructor(){super(A(ee.getDefaults(),arguments,["frequency","modulationFrequency"])),this.name="PWMOscillator",this.sourceType="pwm",this._scale=new Xt({context:this.context,value:2});const t=A(ee.getDefaults(),arguments,["frequency","modulationFrequency"]);this._pulse=new Zt({context:this.context,frequency:t.modulationFrequency}),this._pulse.carrierType="sine",this.modulationFrequency=this._pulse.frequency,this._modulator=new Ht({context:this.context,detune:t.detune,frequency:t.frequency,onstop:()=>this.onstop(this),phase:t.phase}),this.frequency=this._modulator.frequency,this.detune=this._modulator.detune,this._modulator.chain(this._scale,this._pulse.width),this._pulse.connect(this.output),H(this,["modulationFrequency","frequency","detune"])}static getDefaults(){return Object.assign(qt.getDefaults(),{detune:0,frequency:440,modulationFrequency:.4,phase:0,type:"pwm"})}_start(t){t=this.toSeconds(t),this._modulator.start(t),this._pulse.start(t)}_stop(t){t=this.toSeconds(t),this._modulator.stop(t),this._pulse.stop(t)}_restart(t){this._modulator.restart(t),this._pulse.restart(t)}get type(){return"pwm"}get baseType(){return"pwm"}get partials(){return[]}get partialCount(){return 0}get phase(){return this._modulator.phase}set phase(t){this._modulator.phase=t}asArray(t=1024){return _(this,void 0,void 0,(function*(){return Wt(this,t)}))}dispose(){return super.dispose(),this._pulse.dispose(),this._scale.dispose(),this._modulator.dispose(),this}}const ne={am:Jt,fat:te,fm:Qt,oscillator:Ht,pulse:Zt,pwm:ee};class re extends qt{constructor(){super(A(re.getDefaults(),arguments,["frequency","type"])),this.name="OmniOscillator";const t=A(re.getDefaults(),arguments,["frequency","type"]);this.frequency=new St({context:this.context,units:"frequency",value:t.frequency}),this.detune=new St({context:this.context,units:"cents",value:t.detune}),H(this,["frequency","detune"]),this.set(t)}static getDefaults(){return Object.assign(Ht.getDefaults(),Qt.getDefaults(),Jt.getDefaults(),te.getDefaults(),Zt.getDefaults(),ee.getDefaults())}_start(t){this._oscillator.start(t)}_stop(t){this._oscillator.stop(t)}_restart(t){return this._oscillator.restart(t),this}get type(){let t="";return["am","fm","fat"].some(t=>this._sourceType===t)&&(t=this._sourceType),t+this._oscillator.type}set type(t){"fm"===t.substr(0,2)?(this._createNewOscillator("fm"),this._oscillator=this._oscillator,this._oscillator.type=t.substr(2)):"am"===t.substr(0,2)?(this._createNewOscillator("am"),this._oscillator=this._oscillator,this._oscillator.type=t.substr(2)):"fat"===t.substr(0,3)?(this._createNewOscillator("fat"),this._oscillator=this._oscillator,this._oscillator.type=t.substr(3)):"pwm"===t?(this._createNewOscillator("pwm"),this._oscillator=this._oscillator):"pulse"===t?this._createNewOscillator("pulse"):(this._createNewOscillator("oscillator"),this._oscillator=this._oscillator,this._oscillator.type=t)}get partials(){return this._oscillator.partials}set partials(t){this._getOscType(this._oscillator,"pulse")||this._getOscType(this._oscillator,"pwm")||(this._oscillator.partials=t)}get partialCount(){return this._oscillator.partialCount}set partialCount(t){this._getOscType(this._oscillator,"pulse")||this._getOscType(this._oscillator,"pwm")||(this._oscillator.partialCount=t)}set(t){return Reflect.has(t,"type")&&t.type&&(this.type=t.type),super.set(t),this}_createNewOscillator(t){if(t!==this._sourceType){this._sourceType=t;const e=ne[t],n=this.now();if(this._oscillator){const t=this._oscillator;t.stop(n),this.context.setTimeout(()=>t.dispose(),this.blockTime)}this._oscillator=new e({context:this.context}),this.frequency.connect(this._oscillator.frequency),this.detune.connect(this._oscillator.detune),this._oscillator.connect(this.output),this._oscillator.onstop=()=>this.onstop(this),"started"===this.state&&this._oscillator.start(n)}}get phase(){return this._oscillator.phase}set phase(t){this._oscillator.phase=t}get sourceType(){return this._sourceType}set sourceType(t){let e="sine";"pwm"!==this._oscillator.type&&"pulse"!==this._oscillator.type&&(e=this._oscillator.type),"fm"===t?this.type="fm"+e:"am"===t?this.type="am"+e:"fat"===t?this.type="fat"+e:"oscillator"===t?this.type=e:"pulse"===t?this.type="pulse":"pwm"===t&&(this.type="pwm")}_getOscType(t,e){return t instanceof ne[e]}get baseType(){return this._oscillator.baseType}set baseType(t){this._getOscType(this._oscillator,"pulse")||this._getOscType(this._oscillator,"pwm")||"pulse"===t||"pwm"===t||(this._oscillator.baseType=t)}get width(){return this._getOscType(this._oscillator,"pulse")?this._oscillator.width:void 0}get count(){return this._getOscType(this._oscillator,"fat")?this._oscillator.count:void 0}set count(t){this._getOscType(this._oscillator,"fat")&&h(t)&&(this._oscillator.count=t)}get spread(){return this._getOscType(this._oscillator,"fat")?this._oscillator.spread:void 0}set spread(t){this._getOscType(this._oscillator,"fat")&&h(t)&&(this._oscillator.spread=t)}get modulationType(){return this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am")?this._oscillator.modulationType:void 0}set modulationType(t){(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))&&m(t)&&(this._oscillator.modulationType=t)}get modulationIndex(){return this._getOscType(this._oscillator,"fm")?this._oscillator.modulationIndex:void 0}get harmonicity(){return this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am")?this._oscillator.harmonicity:void 0}get modulationFrequency(){return this._getOscType(this._oscillator,"pwm")?this._oscillator.modulationFrequency:void 0}asArray(t=1024){return _(this,void 0,void 0,(function*(){return Wt(this,t)}))}dispose(){return super.dispose(),this.detune.dispose(),this.frequency.dispose(),this._oscillator.dispose(),this}}function ie(t,e=1/0){const n=new WeakMap;return function(r,i){Reflect.defineProperty(r,i,{configurable:!0,enumerable:!0,get:function(){return n.get(this)},set:function(r){o(r,t,e),n.set(this,r)}})}}function oe(t,e=1/0){const n=new WeakMap;return function(r,i){Reflect.defineProperty(r,i,{configurable:!0,enumerable:!0,get:function(){return n.get(this)},set:function(r){o(this.toSeconds(r),t,e),n.set(this,r)}})}}class se extends qt{constructor(){super(A(se.getDefaults(),arguments,["url","onload"])),this.name="Player",this._activeSources=new Set;const t=A(se.getDefaults(),arguments,["url","onload"]);this._buffer=new Y({onload:this._onload.bind(this,t.onload),onerror:t.onerror,reverse:t.reverse,url:t.url}),this.autostart=t.autostart,this._loop=t.loop,this._loopStart=t.loopStart,this._loopEnd=t.loopEnd,this._playbackRate=t.playbackRate,this.fadeIn=t.fadeIn,this.fadeOut=t.fadeOut}static getDefaults(){return Object.assign(qt.getDefaults(),{autostart:!1,fadeIn:0,fadeOut:0,loop:!1,loopEnd:0,loopStart:0,onload:G,onerror:G,playbackRate:1,reverse:!1})}load(t){return _(this,void 0,void 0,(function*(){return yield this._buffer.load(t),this._onload(),this}))}_onload(t=G){t(),this.autostart&&this.start()}_onSourceEnd(t){this.onstop(this),this._activeSources.delete(t),0!==this._activeSources.size||this._synced||"started"!==this._state.getValueAtTime(this.now())||this._state.setStateAtTime("stopped",this.now())}start(t,e,n){return super.start(t,e,n),this}_start(t,e,n){e=this._loop?P(e,this._loopStart):P(e,0);let r=this.toSeconds(e);this._synced&&(r*=this._playbackRate);const i=n;n=P(n,Math.max(this._buffer.duration-r,0));let o=this.toSeconds(n);o/=this._playbackRate,t=this.toSeconds(t);const s=new Ut({url:this._buffer,context:this.context,fadeIn:this.fadeIn,fadeOut:this.fadeOut,loop:this._loop,loopEnd:this._loopEnd,loopStart:this._loopStart,onended:this._onSourceEnd.bind(this),playbackRate:this._playbackRate}).connect(this.output);this._loop||this._synced||(this._state.cancel(t+o),this._state.setStateAtTime("stopped",t+o,{implicitEnd:!0})),this._activeSources.add(s),this._loop&&c(i)?s.start(t,r):s.start(t,r,o-this.toSeconds(this.fadeOut))}_stop(t){const e=this.toSeconds(t);this._activeSources.forEach(t=>t.stop(e))}restart(t,e,n){return super.restart(t,e,n),this}_restart(t,e,n){this._stop(t),this._start(t,e,n)}seek(t,e){const n=this.toSeconds(e);if("started"===this._state.getValueAtTime(n)){const e=this.toSeconds(t);this._stop(n),this._start(n,e)}return this}setLoopPoints(t,e){return this.loopStart=t,this.loopEnd=e,this}get loopStart(){return this._loopStart}set loopStart(t){this._loopStart=t,this.buffer.loaded&&o(this.toSeconds(t),0,this.buffer.duration),this._activeSources.forEach(e=>{e.loopStart=t})}get loopEnd(){return this._loopEnd}set loopEnd(t){this._loopEnd=t,this.buffer.loaded&&o(this.toSeconds(t),0,this.buffer.duration),this._activeSources.forEach(e=>{e.loopEnd=t})}get buffer(){return this._buffer}set buffer(t){this._buffer.set(t)}get loop(){return this._loop}set loop(t){if(this._loop!==t&&(this._loop=t,this._activeSources.forEach(e=>{e.loop=t}),t)){const t=this._state.getNextState("stopped",this.now());t&&this._state.cancel(t.time)}}get playbackRate(){return this._playbackRate}set playbackRate(t){this._playbackRate=t;const e=this.now(),n=this._state.getNextState("stopped",e);n&&n.implicitEnd&&(this._state.cancel(n.time),this._activeSources.forEach(t=>t.cancelStop())),this._activeSources.forEach(n=>{n.playbackRate.setValueAtTime(t,e)})}get reverse(){return this._buffer.reverse}set reverse(t){this._buffer.reverse=t}get loaded(){return this._buffer.loaded}dispose(){return super.dispose(),this._activeSources.forEach(t=>t.dispose()),this._activeSources.clear(),this._buffer.dispose(),this}}b([oe(0)],se.prototype,"fadeIn",void 0),b([oe(0)],se.prototype,"fadeOut",void 0);class ae extends gt{constructor(){super(A(ae.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="Envelope",this._sig=new St({context:this.context,value:0}),this.output=this._sig,this.input=void 0;const t=A(ae.getDefaults(),arguments,["attack","decay","sustain","release"]);this.attack=t.attack,this.decay=t.decay,this.sustain=t.sustain,this.release=t.release,this.attackCurve=t.attackCurve,this.releaseCurve=t.releaseCurve,this.decayCurve=t.decayCurve}static getDefaults(){return Object.assign(gt.getDefaults(),{attack:.01,attackCurve:"linear",decay:.1,decayCurve:"exponential",release:1,releaseCurve:"exponential",sustain:.5})}get value(){return this.getValueAtTime(this.now())}_getCurve(t,e){if(m(t))return t;{let n;for(n in ue)if(ue[n][e]===t)return n;return t}}_setCurve(t,e,n){if(m(n)&&Reflect.has(ue,n)){const r=ue[n];f(r)?"_decayCurve"!==t&&(this[t]=r[e]):this[t]=r}else{if(!d(n)||"_decayCurve"===t)throw new Error("Envelope: invalid curve: "+n);this[t]=n}}get attackCurve(){return this._getCurve(this._attackCurve,"In")}set attackCurve(t){this._setCurve("_attackCurve","In",t)}get releaseCurve(){return this._getCurve(this._releaseCurve,"Out")}set releaseCurve(t){this._setCurve("_releaseCurve","Out",t)}get decayCurve(){return this._decayCurve}set decayCurve(t){i(["linear","exponential"].some(e=>e===t),"Invalid envelope curve: "+t),this._decayCurve=t}triggerAttack(t,e=1){this.log("triggerAttack",t,e),t=this.toSeconds(t);let n=this.toSeconds(this.attack);const r=this.toSeconds(this.decay),i=this.getValueAtTime(t);if(i>0){n=(1-i)/(1/n)}if(n<this.sampleTime)this._sig.cancelScheduledValues(t),this._sig.setValueAtTime(e,t);else if("linear"===this._attackCurve)this._sig.linearRampTo(e,n,t);else if("exponential"===this._attackCurve)this._sig.targetRampTo(e,n,t);else{this._sig.cancelAndHoldAtTime(t);let r=this._attackCurve;for(let t=1;t<r.length;t++)if(r[t-1]<=i&&i<=r[t]){r=this._attackCurve.slice(t),r[0]=i;break}this._sig.setValueCurveAtTime(r,t,n,e)}if(r&&this.sustain<1){const i=e*this.sustain,o=t+n;this.log("decay",o),"linear"===this._decayCurve?this._sig.linearRampToValueAtTime(i,r+o):this._sig.exponentialApproachValueAtTime(i,o,r)}return this}triggerRelease(t){this.log("triggerRelease",t),t=this.toSeconds(t);const e=this.getValueAtTime(t);if(e>0){const n=this.toSeconds(this.release);n<this.sampleTime?this._sig.setValueAtTime(0,t):"linear"===this._releaseCurve?this._sig.linearRampTo(0,n,t):"exponential"===this._releaseCurve?this._sig.targetRampTo(0,n,t):(i(d(this._releaseCurve),"releaseCurve must be either 'linear', 'exponential' or an array"),this._sig.cancelAndHoldAtTime(t),this._sig.setValueCurveAtTime(this._releaseCurve,t,n,e))}return this}getValueAtTime(t){return this._sig.getValueAtTime(t)}triggerAttackRelease(t,e,n=1){return e=this.toSeconds(e),this.triggerAttack(e,n),this.triggerRelease(e+this.toSeconds(t)),this}cancel(t){return this._sig.cancelScheduledValues(this.toSeconds(t)),this}connect(t,e=0,n=0){return kt(this,t,e,n),this}asArray(t=1024){return _(this,void 0,void 0,(function*(){const e=t/this.context.sampleRate,n=new X(1,e,this.context.sampleRate),r=this.toSeconds(this.attack)+this.toSeconds(this.decay),i=r+this.toSeconds(this.release),o=.1*i,s=i+o,a=new this.constructor(Object.assign(this.get(),{attack:e*this.toSeconds(this.attack)/s,decay:e*this.toSeconds(this.decay)/s,release:e*this.toSeconds(this.release)/s,context:n}));a._sig.toDestination(),a.triggerAttackRelease(e*(r+o)/s,0);return(yield n.render()).getChannelData(0)}))}dispose(){return super.dispose(),this._sig.dispose(),this}}b([oe(0)],ae.prototype,"attack",void 0),b([oe(0)],ae.prototype,"decay",void 0),b([ie(0,1)],ae.prototype,"sustain",void 0),b([oe(0)],ae.prototype,"release",void 0);const ue=(()=>{let t,e;const n=[];for(t=0;t<128;t++)n[t]=Math.sin(t/127*(Math.PI/2));const r=[];for(t=0;t<127;t++){e=t/127;const n=Math.sin(e*(2*Math.PI)*6.4-Math.PI/2)+1;r[t]=n/10+.83*e}r[127]=1;const i=[];for(t=0;t<128;t++)i[t]=Math.ceil(t/127*5)/5;const o=[];for(t=0;t<128;t++)e=t/127,o[t]=.5*(1-Math.cos(Math.PI*e));const s=[];for(t=0;t<128;t++){e=t/127;const n=4*Math.pow(e,3)+.2,r=Math.cos(n*Math.PI*2*e);s[t]=Math.abs(r*(1-e))}function a(t){const e=new Array(t.length);for(let n=0;n<t.length;n++)e[n]=1-t[n];return e}return{bounce:{In:a(s),Out:s},cosine:{In:n,Out:(u=n,u.slice(0).reverse())},exponential:"exponential",linear:"linear",ripple:{In:r,Out:a(r)},sine:{In:o,Out:a(o)},step:{In:i,Out:a(i)}};var u})();class ce extends gt{constructor(){super(A(ce.getDefaults(),arguments)),this._scheduledEvents=[],this._synced=!1,this._original_triggerAttack=this.triggerAttack,this._original_triggerRelease=this.triggerRelease;const t=A(ce.getDefaults(),arguments);this._volume=this.output=new Lt({context:this.context,volume:t.volume}),this.volume=this._volume.volume,H(this,"volume")}static getDefaults(){return Object.assign(gt.getDefaults(),{volume:0})}sync(){return this._synced||(this._synced=!0,this._syncMethod("triggerAttack",1),this._syncMethod("triggerRelease",0)),this}_syncMethod(t,e){const n=this["_original_"+t]=this[t];this[t]=(...t)=>{const r=t[e],i=this.context.transport.schedule(r=>{t[e]=r,n.apply(this,t)},r);this._scheduledEvents.push(i)}}unsync(){return this._scheduledEvents.forEach(t=>this.context.transport.clear(t)),this._scheduledEvents=[],this._synced&&(this._synced=!1,this.triggerAttack=this._original_triggerAttack,this.triggerRelease=this._original_triggerRelease),this}triggerAttackRelease(t,e,n,r){const i=this.toSeconds(n),o=this.toSeconds(e);return this.triggerAttack(t,i,r),this.triggerRelease(i+o),this}dispose(){return super.dispose(),this._volume.dispose(),this.unsync(),this._scheduledEvents=[],this}}class le extends ce{constructor(){super(A(le.getDefaults(),arguments));const t=A(le.getDefaults(),arguments);this.portamento=t.portamento,this.onsilence=t.onsilence}static getDefaults(){return Object.assign(ce.getDefaults(),{detune:0,onsilence:G,portamento:0})}triggerAttack(t,e,n=1){this.log("triggerAttack",t,e,n);const r=this.toSeconds(e);return this._triggerEnvelopeAttack(r,n),this.setNote(t,r),this}triggerRelease(t){this.log("triggerRelease",t);const e=this.toSeconds(t);return this._triggerEnvelopeRelease(e),this}setNote(t,e){const n=this.toSeconds(e),r=t instanceof ht?t.toFrequency():t;if(this.portamento>0&&this.getLevelAtTime(n)>.05){const t=this.toSeconds(this.portamento);this.frequency.exponentialRampTo(r,t,n)}else this.frequency.setValueAtTime(r,n);return this}}b([oe(0)],le.prototype,"portamento",void 0);class he extends ae{constructor(){super(A(he.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="AmplitudeEnvelope",this._gainNode=new xt({context:this.context,gain:0}),this.output=this._gainNode,this.input=this._gainNode,this._sig.connect(this._gainNode.gain),this.output=this._gainNode,this.input=this._gainNode}dispose(){return super.dispose(),this._gainNode.dispose(),this}}class fe extends le{constructor(){super(A(fe.getDefaults(),arguments)),this.name="Synth";const t=A(fe.getDefaults(),arguments);this.oscillator=new re(Object.assign({context:this.context,detune:t.detune,onstop:()=>this.onsilence(this)},t.oscillator)),this.frequency=this.oscillator.frequency,this.detune=this.oscillator.detune,this.envelope=new he(Object.assign({context:this.context},t.envelope)),this.oscillator.chain(this.envelope,this.output),H(this,["oscillator","frequency","detune","envelope"])}static getDefaults(){return Object.assign(le.getDefaults(),{envelope:Object.assign(j(ae.getDefaults(),Object.keys(gt.getDefaults())),{attack:.005,decay:.1,release:1,sustain:.3}),oscillator:Object.assign(j(re.getDefaults(),[...Object.keys(qt.getDefaults()),"frequency","detune"]),{type:"triangle"})})}_triggerEnvelopeAttack(t,e){if(this.envelope.triggerAttack(t,e),this.oscillator.start(t),0===this.envelope.sustain){const e=this.toSeconds(this.envelope.attack),n=this.toSeconds(this.envelope.decay);this.oscillator.stop(t+e+n)}}_triggerEnvelopeRelease(t){this.envelope.triggerRelease(t),this.oscillator.stop(t+this.toSeconds(this.envelope.release))}getLevelAtTime(t){return t=this.toSeconds(t),this.envelope.getValueAtTime(t)}dispose(){return super.dispose(),this.oscillator.dispose(),this.envelope.dispose(),this}}class pe extends fe{constructor(){super(A(pe.getDefaults(),arguments)),this.name="MembraneSynth",this.portamento=0;const t=A(pe.getDefaults(),arguments);this.pitchDecay=t.pitchDecay,this.octaves=t.octaves,H(this,["oscillator","envelope"])}static getDefaults(){return E(le.getDefaults(),fe.getDefaults(),{envelope:{attack:.001,attackCurve:"exponential",decay:.4,release:1.4,sustain:.01},octaves:10,oscillator:{type:"sine"},pitchDecay:.05})}setNote(t,e){const n=this.toSeconds(e),r=this.toFrequency(t instanceof ht?t.toFrequency():t),i=r*this.octaves;return this.oscillator.frequency.setValueAtTime(i,n),this.oscillator.frequency.exponentialRampToValueAtTime(r,n+this.toSeconds(this.pitchDecay)),this}dispose(){return super.dispose(),this}}b([ie(0)],pe.prototype,"octaves",void 0),b([oe(0)],pe.prototype,"pitchDecay",void 0);const de=new Set;function me(t){de.add(t)}function ve(t,e){const n=`registerProcessor("${t}", ${e})`;de.add(n)}me('\n\t/**\n\t * The base AudioWorkletProcessor for use in Tone.js. Works with the [[ToneAudioWorklet]]. \n\t */\n\tclass ToneAudioWorkletProcessor extends AudioWorkletProcessor {\n\n\t\tconstructor(options) {\n\t\t\t\n\t\t\tsuper(options);\n\t\t\t/**\n\t\t\t * If the processor was disposed or not. Keep alive until it\'s disposed.\n\t\t\t */\n\t\t\tthis.disposed = false;\n\t\t \t/** \n\t\t\t * The number of samples in the processing block\n\t\t\t */\n\t\t\tthis.blockSize = 128;\n\t\t\t/**\n\t\t\t * the sample rate\n\t\t\t */\n\t\t\tthis.sampleRate = sampleRate;\n\n\t\t\tthis.port.onmessage = (event) => {\n\t\t\t\t// when it receives a dispose \n\t\t\t\tif (event.data === "dispose") {\n\t\t\t\t\tthis.disposed = true;\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t}\n');me("\n\t/**\n\t * Abstract class for a single input/output processor. \n\t * has a 'generate' function which processes one sample at a time\n\t */\n\tclass SingleIOProcessor extends ToneAudioWorkletProcessor {\n\n\t\tconstructor(options) {\n\t\t\tsuper(Object.assign(options, {\n\t\t\t\tnumberOfInputs: 1,\n\t\t\t\tnumberOfOutputs: 1\n\t\t\t}));\n\t\t\t/**\n\t\t\t * Holds the name of the parameter and a single value of that\n\t\t\t * parameter at the current sample\n\t\t\t * @type { [name: string]: number }\n\t\t\t */\n\t\t\tthis.params = {}\n\t\t}\n\n\t\t/**\n\t\t * Generate an output sample from the input sample and parameters\n\t\t * @abstract\n\t\t * @param input number\n\t\t * @param channel number\n\t\t * @param parameters { [name: string]: number }\n\t\t * @returns number\n\t\t */\n\t\tgenerate(){}\n\n\t\t/**\n\t\t * Update the private params object with the \n\t\t * values of the parameters at the given index\n\t\t * @param parameters { [name: string]: Float32Array },\n\t\t * @param index number\n\t\t */\n\t\tupdateParams(parameters, index) {\n\t\t\tfor (const paramName in parameters) {\n\t\t\t\tconst param = parameters[paramName];\n\t\t\t\tif (param.length > 1) {\n\t\t\t\t\tthis.params[paramName] = parameters[paramName][index];\n\t\t\t\t} else {\n\t\t\t\t\tthis.params[paramName] = parameters[paramName][0];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/**\n\t\t * Process a single frame of the audio\n\t\t * @param inputs Float32Array[][]\n\t\t * @param outputs Float32Array[][]\n\t\t */\n\t\tprocess(inputs, outputs, parameters) {\n\t\t\tconst input = inputs[0];\n\t\t\tconst output = outputs[0];\n\t\t\t// get the parameter values\n\t\t\tconst channelCount = Math.max(input && input.length || 0, output.length);\n\t\t\tfor (let sample = 0; sample < this.blockSize; sample++) {\n\t\t\t\tthis.updateParams(parameters, sample);\n\t\t\t\tfor (let channel = 0; channel < channelCount; channel++) {\n\t\t\t\t\tconst inputSample = input && input.length ? input[channel][sample] : 0;\n\t\t\t\t\toutput[channel][sample] = this.generate(inputSample, channel, this.params);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn !this.disposed;\n\t\t}\n\t};\n");me("\n\t/**\n\t * A multichannel buffer for use within an AudioWorkletProcessor as a delay line\n\t */\n\tclass DelayLine {\n\t\t\n\t\tconstructor(size, channels) {\n\t\t\tthis.buffer = [];\n\t\t\tthis.writeHead = []\n\t\t\tthis.size = size;\n\n\t\t\t// create the empty channels\n\t\t\tfor (let i = 0; i < channels; i++) {\n\t\t\t\tthis.buffer[i] = new Float32Array(this.size);\n\t\t\t\tthis.writeHead[i] = 0;\n\t\t\t}\n\t\t}\n\n\t\t/**\n\t\t * Push a value onto the end\n\t\t * @param channel number\n\t\t * @param value number\n\t\t */\n\t\tpush(channel, value) {\n\t\t\tthis.writeHead[channel] += 1;\n\t\t\tif (this.writeHead[channel] > this.size) {\n\t\t\t\tthis.writeHead[channel] = 0;\n\t\t\t}\n\t\t\tthis.buffer[channel][this.writeHead[channel]] = value;\n\t\t}\n\n\t\t/**\n\t\t * Get the recorded value of the channel given the delay\n\t\t * @param channel number\n\t\t * @param delay number delay samples\n\t\t */\n\t\tget(channel, delay) {\n\t\t\tlet readHead = this.writeHead[channel] - Math.floor(delay);\n\t\t\tif (readHead < 0) {\n\t\t\t\treadHead += this.size;\n\t\t\t}\n\t\t\treturn this.buffer[channel][readHead];\n\t\t}\n\t}\n");ve("feedback-comb-filter",'\n\tclass FeedbackCombFilterWorklet extends SingleIOProcessor {\n\n\t\tconstructor(options) {\n\t\t\tsuper(options);\n\t\t\tthis.delayLine = new DelayLine(this.sampleRate, options.channelCount || 2);\n\t\t}\n\n\t\tstatic get parameterDescriptors() {\n\t\t\treturn [{\n\t\t\t\tname: "delayTime",\n\t\t\t\tdefaultValue: 0.1,\n\t\t\t\tminValue: 0,\n\t\t\t\tmaxValue: 1,\n\t\t\t\tautomationRate: "k-rate"\n\t\t\t}, {\n\t\t\t\tname: "feedback",\n\t\t\t\tdefaultValue: 0.5,\n\t\t\t\tminValue: 0,\n\t\t\t\tmaxValue: 0.9999,\n\t\t\t\tautomationRate: "k-rate"\n\t\t\t}];\n\t\t}\n\n\t\tgenerate(input, channel, parameters) {\n\t\t\tconst delayedSample = this.delayLine.get(channel, parameters.delayTime * this.sampleRate);\n\t\t\tthis.delayLine.push(channel, input + delayedSample * parameters.feedback);\n\t\t\treturn delayedSample;\n\t\t}\n\t}\n');class ye extends ce{constructor(){super(A(ye.getDefaults(),arguments,["urls","onload","baseUrl"],"urls")),this.name="Sampler",this._activeSources=new Map;const t=A(ye.getDefaults(),arguments,["urls","onload","baseUrl"],"urls"),e={};Object.keys(t.urls).forEach(n=>{const r=parseInt(n,10);if(i(v(n)||h(r)&&isFinite(r),"url key is neither a note or midi pitch: "+n),v(n)){const r=new ht(this.context,n).toMidi();e[r]=t.urls[n]}else h(r)&&isFinite(r)&&(e[r]=t.urls[r])}),this._buffers=new zt({urls:e,onload:t.onload,baseUrl:t.baseUrl,onerror:t.onerror}),this.attack=t.attack,this.release=t.release,this.curve=t.curve,this._buffers.loaded&&Promise.resolve().then(t.onload)}static getDefaults(){return Object.assign(ce.getDefaults(),{attack:0,baseUrl:"",curve:"exponential",onload:G,onerror:G,release:.1,urls:{}})}_findClosest(t){let e=0;for(;e<96;){if(this._buffers.has(t+e))return-e;if(this._buffers.has(t-e))return e;e++}throw new Error("No available buffers for note: "+t)}triggerAttack(t,e,n=1){return this.log("triggerAttack",t,e,n),Array.isArray(t)||(t=[t]),t.forEach(t=>{const r=st(new ht(this.context,t).toFrequency()),i=Math.round(r),o=r-i,s=this._findClosest(i),a=i-s,u=this._buffers.get(a),c=rt(s+o),l=new Ut({url:u,context:this.context,curve:this.curve,fadeIn:this.attack,fadeOut:this.release,playbackRate:c}).connect(this.output);l.start(e,0,u.duration/c,n),d(this._activeSources.get(i))||this._activeSources.set(i,[]),this._activeSources.get(i).push(l),l.onended=()=>{if(this._activeSources&&this._activeSources.has(i)){const t=this._activeSources.get(i),e=t.indexOf(l);-1!==e&&t.splice(e,1)}}}),this}triggerRelease(t,e){return this.log("triggerRelease",t,e),Array.isArray(t)||(t=[t]),t.forEach(t=>{const n=new ht(this.context,t).toMidi();if(this._activeSources.has(n)&&this._activeSources.get(n).length){const t=this._activeSources.get(n);e=this.toSeconds(e),t.forEach(t=>{t.stop(e)}),this._activeSources.set(n,[])}}),this}releaseAll(t){const e=this.toSeconds(t);return this._activeSources.forEach(t=>{for(;t.length;){t.shift().stop(e)}}),this}sync(){return this._syncMethod("triggerAttack",1),this._syncMethod("triggerRelease",1),this}triggerAttackRelease(t,e,n,r=1){const o=this.toSeconds(n);return this.triggerAttack(t,o,r),d(e)?(i(d(t),"notes must be an array when duration is array"),t.forEach((t,n)=>{const r=e[Math.min(n,e.length-1)];this.triggerRelease(t,o+this.toSeconds(r))})):this.triggerRelease(t,o+this.toSeconds(e)),this}add(t,e,n){if(i(v(t)||isFinite(t),"note must be a pitch or midi: "+t),v(t)){const r=new ht(this.context,t).toMidi();this._buffers.add(r,e,n)}else this._buffers.add(t,e,n);return this}get loaded(){return this._buffers.loaded}dispose(){return super.dispose(),this._buffers.dispose(),this._activeSources.forEach(t=>{t.forEach(t=>t.dispose())}),this._activeSources.clear(),this}}b([oe(0)],ye.prototype,"attack",void 0),b([oe(0)],ye.prototype,"release",void 0);class ge extends mt{constructor(){super(A(ge.getDefaults(),arguments,["callback","value"])),this.name="ToneEvent",this._state=new vt("stopped"),this._startOffset=0;const t=A(ge.getDefaults(),arguments,["callback","value"]);this._loop=t.loop,this.callback=t.callback,this.value=t.value,this._loopStart=this.toTicks(t.loopStart),this._loopEnd=this.toTicks(t.loopEnd),this._playbackRate=t.playbackRate,this._probability=t.probability,this._humanize=t.humanize,this.mute=t.mute,this._playbackRate=t.playbackRate,this._state.increasing=!0,this._rescheduleEvents()}static getDefaults(){return Object.assign(mt.getDefaults(),{callback:G,humanize:!1,loop:!1,loopEnd:"1m",loopStart:0,mute:!1,playbackRate:1,probability:1,value:null})}_rescheduleEvents(t=-1){this._state.forEachFrom(t,t=>{let e;if("started"===t.state){-1!==t.id&&this.context.transport.clear(t.id);const n=t.time+Math.round(this.startOffset/this._playbackRate);if(!0===this._loop||h(this._loop)&&this._loop>1){e=1/0,h(this._loop)&&(e=this._loop*this._getLoopDuration());const r=this._state.getAfter(n);null!==r&&(e=Math.min(e,r.time-n)),e!==1/0&&(this._state.setStateAtTime("stopped",n+e+1,{id:-1}),e=new It(this.context,e));const i=new It(this.context,this._getLoopDuration());t.id=this.context.transport.scheduleRepeat(this._tick.bind(this),i,new It(this.context,n),e)}else t.id=this.context.transport.schedule(this._tick.bind(this),new It(this.context,n))}})}get state(){return this._state.getValueAtTime(this.context.transport.ticks)}get startOffset(){return this._startOffset}set startOffset(t){this._startOffset=t}get probability(){return this._probability}set probability(t){this._probability=t}get humanize(){return this._humanize}set humanize(t){this._humanize=t}start(t){const e=this.toTicks(t);return"stopped"===this._state.getValueAtTime(e)&&(this._state.add({id:-1,state:"started",time:e}),this._rescheduleEvents(e)),this}stop(t){this.cancel(t);const e=this.toTicks(t);if("started"===this._state.getValueAtTime(e)){this._state.setStateAtTime("stopped",e,{id:-1});const t=this._state.getBefore(e);let n=e;null!==t&&(n=t.time),this._rescheduleEvents(n)}return this}cancel(t){t=P(t,-1/0);const e=this.toTicks(t);return this._state.forEachFrom(e,t=>{this.context.transport.clear(t.id)}),this._state.cancel(e),this}_tick(t){const e=this.context.transport.getTicksAtTime(t);if(!this.mute&&"started"===this._state.getValueAtTime(e)){if(this.probability<1&&Math.random()>this.probability)return;if(this.humanize){let e=.02;p(this.humanize)||(e=this.toSeconds(this.humanize)),t+=(2*Math.random()-1)*e}this.callback(t,this.value)}}_getLoopDuration(){return Math.round((this._loopEnd-this._loopStart)/this._playbackRate)}get loop(){return this._loop}set loop(t){this._loop=t,this._rescheduleEvents()}get playbackRate(){return this._playbackRate}set playbackRate(t){this._playbackRate=t,this._rescheduleEvents()}get loopEnd(){return new It(this.context,this._loopEnd).toSeconds()}set loopEnd(t){this._loopEnd=this.toTicks(t),this._loop&&this._rescheduleEvents()}get loopStart(){return new It(this.context,this._loopStart).toSeconds()}set loopStart(t){this._loopStart=this.toTicks(t),this._loop&&this._rescheduleEvents()}get progress(){if(this._loop){const t=this.context.transport.ticks,e=this._state.get(t);if(null!==e&&"started"===e.state){const n=this._getLoopDuration();return(t-e.time)%n/n}return 0}return 0}dispose(){return super.dispose(),this.cancel(),this._state.dispose(),this}}class be extends ge{constructor(){super(A(be.getDefaults(),arguments,["callback","events"])),this.name="Part",this._state=new vt("stopped"),this._events=new Set;const t=A(be.getDefaults(),arguments,["callback","events"]);this._state.increasing=!0,t.events.forEach(t=>{d(t)?this.add(t[0],t[1]):this.add(t)})}static getDefaults(){return Object.assign(ge.getDefaults(),{events:[]})}start(t,e){const n=this.toTicks(t);if("started"!==this._state.getValueAtTime(n)){e=P(e,this._loop?this._loopStart:0),e=this._loop?P(e,this._loopStart):P(e,0);const t=this.toTicks(e);this._state.add({id:-1,offset:t,state:"started",time:n}),this._forEach(e=>{this._startNote(e,n,t)})}return this}_startNote(t,e,n){e-=n,this._loop?t.startOffset>=this._loopStart&&t.startOffset<this._loopEnd?(t.startOffset<n&&(e+=this._getLoopDuration()),t.start(new It(this.context,e))):t.startOffset<this._loopStart&&t.startOffset>=n&&(t.loop=!1,t.start(new It(this.context,e))):t.startOffset>=n&&t.start(new It(this.context,e))}get startOffset(){return this._startOffset}set startOffset(t){this._startOffset=t,this._forEach(t=>{t.startOffset+=this._startOffset})}stop(t){const e=this.toTicks(t);return this._state.cancel(e),this._state.setStateAtTime("stopped",e),this._forEach(e=>{e.stop(t)}),this}at(t,e){const n=new dt(this.context,t).toTicks(),r=new It(this.context,1).toSeconds(),i=this._events.values();let o=i.next();for(;!o.done;){const t=o.value;if(Math.abs(n-t.startOffset)<r)return l(e)&&(t.value=e),t;o=i.next()}return l(e)?(this.add(t,e),this.at(t)):null}add(t,e){t instanceof Object&&Reflect.has(t,"time")&&(t=(e=t).time);const n=this.toTicks(t);let r;return e instanceof ge?(r=e,r.callback=this._tick.bind(this)):r=new ge({callback:this._tick.bind(this),context:this.context,value:e}),r.startOffset=n,r.set({humanize:this.humanize,loop:this.loop,loopEnd:this.loopEnd,loopStart:this.loopStart,playbackRate:this.playbackRate,probability:this.probability}),this._events.add(r),this._restartEvent(r),this}_restartEvent(t){this._state.forEach(e=>{"started"===e.state?this._startNote(t,e.time,e.offset):t.stop(new It(this.context,e.time))})}remove(t,e){return f(t)&&t.hasOwnProperty("time")&&(t=(e=t).time),t=this.toTicks(t),this._events.forEach(n=>{n.startOffset===t&&(c(e)||l(e)&&n.value===e)&&(this._events.delete(n),n.dispose())}),this}clear(){return this._forEach(t=>t.dispose()),this._events.clear(),this}cancel(t){return this._forEach(e=>e.cancel(t)),this._state.cancel(this.toTicks(t)),this}_forEach(t){return this._events&&this._events.forEach(e=>{e instanceof be?e._forEach(t):t(e)}),this}_setAll(t,e){this._forEach(n=>{n[t]=e})}_tick(t,e){this.mute||this.callback(t,e)}_testLoopBoundries(t){this._loop&&(t.startOffset<this._loopStart||t.startOffset>=this._loopEnd)?t.cancel(0):"stopped"===t.state&&this._restartEvent(t)}get probability(){return this._probability}set probability(t){this._probability=t,this._setAll("probability",t)}get humanize(){return this._humanize}set humanize(t){this._humanize=t,this._setAll("humanize",t)}get loop(){return this._loop}set loop(t){this._loop=t,this._forEach(e=>{e.loopStart=this.loopStart,e.loopEnd=this.loopEnd,e.loop=t,this._testLoopBoundries(e)})}get loopEnd(){return new It(this.context,this._loopEnd).toSeconds()}set loopEnd(t){this._loopEnd=this.toTicks(t),this._loop&&this._forEach(e=>{e.loopEnd=t,this._testLoopBoundries(e)})}get loopStart(){return new It(this.context,this._loopStart).toSeconds()}set loopStart(t){this._loopStart=this.toTicks(t),this._loop&&this._forEach(t=>{t.loopStart=this.loopStart,this._testLoopBoundries(t)})}get playbackRate(){return this._playbackRate}set playbackRate(t){this._playbackRate=t,this._setAll("playbackRate",t)}get length(){return this._events.size}dispose(){return super.dispose(),this.clear(),this}}class _e extends gt{constructor(){super(Object.assign(A(_e.getDefaults(),arguments,["pan"]))),this.name="Panner",this._panner=this.context.createStereoPanner(),this.input=this._panner,this.output=this._panner;const t=A(_e.getDefaults(),arguments,["pan"]);this.pan=new yt({context:this.context,param:this._panner.pan,value:t.pan,minValue:-1,maxValue:1}),this._panner.channelCount=t.channelCount,this._panner.channelCountMode="explicit",H(this,"pan")}static getDefaults(){return Object.assign(gt.getDefaults(),{pan:0,channelCount:1})}dispose(){return super.dispose(),this._panner.disconnect(),this.pan.dispose(),this}}ve("bit-crusher","\n\tclass BitCrusherWorklet extends SingleIOProcessor {\n\n\t\tstatic get parameterDescriptors() {\n\t\t\treturn [{\n\t\t\t\tname: \"bits\",\n\t\t\t\tdefaultValue: 12,\n\t\t\t\tminValue: 1,\n\t\t\t\tmaxValue: 16,\n\t\t\t\tautomationRate: 'k-rate'\n\t\t\t}];\n\t\t}\n\n\t\tgenerate(input, _channel, parameters) {\n\t\t\tconst step = Math.pow(0.5, parameters.bits - 1);\n\t\t\tconst val = step * Math.floor(input / step + 0.5);\n\t\t\treturn val;\n\t\t}\n\t}\n");class we extends gt{constructor(){super(A(we.getDefaults(),arguments,["solo"])),this.name="Solo";const t=A(we.getDefaults(),arguments,["solo"]);this.input=this.output=new xt({context:this.context}),we._allSolos.has(this.context)||we._allSolos.set(this.context,new Set),we._allSolos.get(this.context).add(this),this.solo=t.solo}static getDefaults(){return Object.assign(gt.getDefaults(),{solo:!1})}get solo(){return this._isSoloed()}set solo(t){t?this._addSolo():this._removeSolo(),we._allSolos.get(this.context).forEach(t=>t._updateSolo())}get muted(){return 0===this.input.gain.value}_addSolo(){we._soloed.has(this.context)||we._soloed.set(this.context,new Set),we._soloed.get(this.context).add(this)}_removeSolo(){we._soloed.has(this.context)&&we._soloed.get(this.context).delete(this)}_isSoloed(){return we._soloed.has(this.context)&&we._soloed.get(this.context).has(this)}_noSolos(){return!we._soloed.has(this.context)||we._soloed.has(this.context)&&0===we._soloed.get(this.context).size}_updateSolo(){this._isSoloed()||this._noSolos()?this.input.gain.value=1:this.input.gain.value=0}dispose(){return super.dispose(),we._allSolos.get(this.context).delete(this),this._removeSolo(),this}}we._allSolos=new Map,we._soloed=new Map;class xe extends gt{constructor(){super(A(xe.getDefaults(),arguments,["pan","volume"])),this.name="PanVol";const t=A(xe.getDefaults(),arguments,["pan","volume"]);this._panner=this.input=new _e({context:this.context,pan:t.pan,channelCount:t.channelCount}),this.pan=this._panner.pan,this._volume=this.output=new Lt({context:this.context,volume:t.volume}),this.volume=this._volume.volume,this._panner.connect(this._volume),this.mute=t.mute,H(this,["pan","volume"])}static getDefaults(){return Object.assign(gt.getDefaults(),{mute:!1,pan:0,volume:0,channelCount:1})}get mute(){return this._volume.mute}set mute(t){this._volume.mute=t}dispose(){return super.dispose(),this._panner.dispose(),this.pan.dispose(),this._volume.dispose(),this.volume.dispose(),this}}class Oe extends gt{constructor(){super(A(Oe.getDefaults(),arguments,["volume","pan"])),this.name="Channel";const t=A(Oe.getDefaults(),arguments,["volume","pan"]);this._solo=this.input=new we({solo:t.solo,context:this.context}),this._panVol=this.output=new xe({context:this.context,pan:t.pan,volume:t.volume,mute:t.mute,channelCount:t.channelCount}),this.pan=this._panVol.pan,this.volume=this._panVol.volume,this._solo.connect(this._panVol),H(this,["pan","volume"])}static getDefaults(){return Object.assign(gt.getDefaults(),{pan:0,volume:0,mute:!1,solo:!1,channelCount:1})}get solo(){return this._solo.solo}set solo(t){this._solo.solo=t}get muted(){return this._solo.muted||this.mute}get mute(){return this._panVol.mute}set mute(t){this._panVol.mute=t}_getBus(t){return Oe.buses.has(t)||Oe.buses.set(t,new xt({context:this.context})),Oe.buses.get(t)}send(t,e=0){const n=this._getBus(t),r=new xt({context:this.context,units:"decibels",gain:e});return this.connect(r),r.connect(n),r}receive(t){return this._getBus(t).connect(this),this}dispose(){return super.dispose(),this._panVol.dispose(),this.pan.dispose(),this.volume.dispose(),this._solo.dispose(),this}}Oe.buses=new Map;class Te extends gt{constructor(){super(...arguments),this.name="Listener",this.positionX=new yt({context:this.context,param:this.context.rawContext.listener.positionX}),this.positionY=new yt({context:this.context,param:this.context.rawContext.listener.positionY}),this.positionZ=new yt({context:this.context,param:this.context.rawContext.listener.positionZ}),this.forwardX=new yt({context:this.context,param:this.context.rawContext.listener.forwardX}),this.forwardY=new yt({context:this.context,param:this.context.rawContext.listener.forwardY}),this.forwardZ=new yt({context:this.context,param:this.context.rawContext.listener.forwardZ}),this.upX=new yt({context:this.context,param:this.context.rawContext.listener.upX}),this.upY=new yt({context:this.context,param:this.context.rawContext.listener.upY}),this.upZ=new yt({context:this.context,param:this.context.rawContext.listener.upZ})}static getDefaults(){return Object.assign(gt.getDefaults(),{positionX:0,positionY:0,positionZ:0,forwardX:0,forwardY:0,forwardZ:-1,upX:0,upY:1,upZ:0})}dispose(){return super.dispose(),this.positionX.dispose(),this.positionY.dispose(),this.positionZ.dispose(),this.forwardX.dispose(),this.forwardY.dispose(),this.forwardZ.dispose(),this.upX.dispose(),this.upY.dispose(),this.upZ.dispose(),this}}z(t=>{t.listener=new Te({context:t})}),q(t=>{t.listener.dispose()});const Se=Z().transport;Z().destination,Z().destination;Z().listener;Z().draw;Z()}]]);